**גרסאות API** · **V2 (Latest)** · [V1](/integrations/v1/docs?lang=he)

# Statistics

OpenAPI 3.0.3 · API 2.0.0

```json
[
  {
    "url": "https://api.unisoft.world/integrations/v2",
    "description": "API"
  }
]
```

Discover the registered statistics and their independently audited execution and source-detail capabilities.

## פעולות

## GET /statistics/catalog

Discover the complete statistics catalogue

`list_statistics_catalog`

Requires the explicitly granted statistics:read scope. Discovers the current canonical registry without executing any statistic, querying client business data, calling a provider, reading cached values or triggering a nightly calculation. Authentication may read the API key/organisation and update key usage telemetry. Every definition has a public identity and required data scopes. Rich capabilities are included only when every required data scope is present and the key has no campaign restriction; otherwise availability.details is false with MISSING_DATA_SCOPE, CAMPAIGN_RESTRICTED_KEY or OWNER_ACCESS_UNAVAILABLE. No restricted calculation, source rows, private implementation description, collection, pipeline, function, cache or execution settings are returned. Catalogue visibility grants no authority to execute. Only positive audited capabilities are advertised: timeField alone never implies range support, a grouping dimension is not a filter, and fixed or mixed periods do not accept arbitrary range. calculation and sourceDetail report the external owner's availability; unavailable operations must not be retried as a different statistic. Empty results do not mean a zero business value. Labels are the canonical French captions. No financial action or business mutation occurs. Search uses all words, case/accent-insensitive, in id, label, category and tags. Results are sorted by stable id. limit defaults to 25 and is limited to 100. Reuse q/category/scopeType/tag with nextCursor; a cursor is tied to the current registry identities, organisation, permissions and campaign restriction. Invalid or incompatible cursors return INVALID_CURSOR. Unknown parameters, repeated/non-scalar query values and non-empty request bodies are rejected.

### אימות

```json
[
  {
    "bearerAuth": []
  },
  {
    "apiKeyHeader": []
  }
]
```

### הרשאות נדרשות

```json
{
  "accepted": "statistics:read",
  "additional": []
}
```

### פרמטרים

```json
{
  "name": "q",
  "in": "query",
  "required": false,
  "schema": {
    "type": "string",
    "minLength": 1,
    "maxLength": 200
  },
  "description": "All search words; canonical French labels, stable identifiers, categories and tags."
}
```

```json
{
  "name": "scopeType",
  "in": "query",
  "required": false,
  "schema": {
    "type": "string",
    "enum": [
      "contacts",
      "payments",
      "abonnements",
      "global",
      "campaigns",
      "forms",
      "events",
      "caisses",
      "messages"
    ]
  },
  "description": "Entity scope declared by the statistic owner."
}
```

```json
{
  "name": "tag",
  "in": "query",
  "required": false,
  "schema": {
    "type": "string",
    "minLength": 1,
    "maxLength": 160
  },
  "description": "Exact canonical tag; use the catalogue's tags."
}
```

```json
{
  "name": "category",
  "in": "query",
  "required": false,
  "schema": {
    "type": "string",
    "enum": [
      "donations",
      "promesses",
      "subscriptions",
      "crm",
      "caisses",
      "campaigns",
      "events",
      "forms",
      "communication",
      "treasury"
    ]
  },
  "description": "Exact category returned by /statistics/categories."
}
```

```json
{
  "name": "limit",
  "in": "query",
  "required": false,
  "schema": {
    "type": "integer",
    "minimum": 1,
    "maximum": 100,
    "default": 25
  },
  "description": "Number of definitions per page; registry metadata only."
}
```

```json
{
  "name": "cursor",
  "in": "query",
  "required": false,
  "schema": {
    "type": "string",
    "maxLength": 1500
  },
  "description": "Opaque nextCursor from the preceding page; keep the search filters and permissions unchanged."
}
```

### תגובות

#### HTTP 200

```json
{
  "description": "Public registry metadata only; inspect availability before using capabilities.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StatisticsCatalogResponse"
      }
    }
  }
}
```

#### HTTP 400

```json
{
  "description": "Invalid statistic id, query, limit, cursor or unexpected request body.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "success",
          "error"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          },
          "required": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}
```

#### HTTP 401

```json
{
  "description": "Missing or invalid API key.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "success",
          "error"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          },
          "required": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}
```

#### HTTP 403

```json
{
  "description": "Missing statistics:read scope or unavailable organisation.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "success",
          "error"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          },
          "required": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}
```

#### HTTP 404

```json
{
  "description": "STATISTIC_NOT_FOUND.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "success",
          "error"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          },
          "required": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}
```

#### HTTP 503

```json
{
  "description": "STATISTICS_CATALOG_UNAVAILABLE. Retry discovery later; no calculation was performed.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "success",
          "error"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          },
          "required": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}
```

### OpenAPI

```json
{
  "x-unisoft-scope": "statistics:read",
  "x-unisoft-mcp": {
    "category": "read",
    "readOnly": true,
    "destructive": false,
    "idempotent": true,
    "warn": false
  }
}
```

## GET /statistics/categories

Discover statistics categories

`list_statistics_categories`

Requires the explicitly granted statistics:read scope. Discovers the current canonical registry without executing any statistic, querying client business data, calling a provider, reading cached values or triggering a nightly calculation. Authentication may read the API key/organisation and update key usage telemetry. Every definition has a public identity and required data scopes. Rich capabilities are included only when every required data scope is present and the key has no campaign restriction; otherwise availability.details is false with MISSING_DATA_SCOPE, CAMPAIGN_RESTRICTED_KEY or OWNER_ACCESS_UNAVAILABLE. No restricted calculation, source rows, private implementation description, collection, pipeline, function, cache or execution settings are returned. Catalogue visibility grants no authority to execute. Only positive audited capabilities are advertised: timeField alone never implies range support, a grouping dimension is not a filter, and fixed or mixed periods do not accept arbitrary range. calculation and sourceDetail report the external owner's availability; unavailable operations must not be retried as a different statistic. Empty results do not mean a zero business value. Labels are the canonical French captions. No financial action or business mutation occurs. Returns category counts for the same q/scopeType/tag search. total counts public identities; detailsAvailable counts definitions whose rich capabilities are admitted for this key. These are registry counts, never client business counts. Unknown parameters and non-empty bodies are rejected.

### אימות

```json
[
  {
    "bearerAuth": []
  },
  {
    "apiKeyHeader": []
  }
]
```

### הרשאות נדרשות

```json
{
  "accepted": "statistics:read",
  "additional": []
}
```

### פרמטרים

```json
{
  "name": "q",
  "in": "query",
  "required": false,
  "schema": {
    "type": "string",
    "minLength": 1,
    "maxLength": 200
  },
  "description": "All search words; canonical French labels, stable identifiers, categories and tags."
}
```

```json
{
  "name": "scopeType",
  "in": "query",
  "required": false,
  "schema": {
    "type": "string",
    "enum": [
      "contacts",
      "payments",
      "abonnements",
      "global",
      "campaigns",
      "forms",
      "events",
      "caisses",
      "messages"
    ]
  },
  "description": "Entity scope declared by the statistic owner."
}
```

```json
{
  "name": "tag",
  "in": "query",
  "required": false,
  "schema": {
    "type": "string",
    "minLength": 1,
    "maxLength": 160
  },
  "description": "Exact canonical tag; use the catalogue's tags."
}
```

### תגובות

#### HTTP 200

```json
{
  "description": "Public registry metadata only; inspect availability before using capabilities.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StatisticsCatalogCategoriesResponse"
      }
    }
  }
}
```

#### HTTP 400

```json
{
  "description": "Invalid statistic id, query, limit, cursor or unexpected request body.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "success",
          "error"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          },
          "required": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}
```

#### HTTP 401

```json
{
  "description": "Missing or invalid API key.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "success",
          "error"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          },
          "required": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}
```

#### HTTP 403

```json
{
  "description": "Missing statistics:read scope or unavailable organisation.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "success",
          "error"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          },
          "required": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}
```

#### HTTP 404

```json
{
  "description": "STATISTIC_NOT_FOUND.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "success",
          "error"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          },
          "required": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}
```

#### HTTP 503

```json
{
  "description": "STATISTICS_CATALOG_UNAVAILABLE. Retry discovery later; no calculation was performed.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "success",
          "error"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          },
          "required": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}
```

### OpenAPI

```json
{
  "x-unisoft-scope": "statistics:read",
  "x-unisoft-mcp": {
    "category": "read",
    "readOnly": true,
    "destructive": false,
    "idempotent": true,
    "warn": false
  }
}
```

## GET /statistics/catalog/{statisticId}

Read one statistic's supported capabilities

`get_statistics_catalog_entry`

Requires the explicitly granted statistics:read scope. Discovers the current canonical registry without executing any statistic, querying client business data, calling a provider, reading cached values or triggering a nightly calculation. Authentication may read the API key/organisation and update key usage telemetry. Every definition has a public identity and required data scopes. Rich capabilities are included only when every required data scope is present and the key has no campaign restriction; otherwise availability.details is false with MISSING_DATA_SCOPE, CAMPAIGN_RESTRICTED_KEY or OWNER_ACCESS_UNAVAILABLE. No restricted calculation, source rows, private implementation description, collection, pipeline, function, cache or execution settings are returned. Catalogue visibility grants no authority to execute. Only positive audited capabilities are advertised: timeField alone never implies range support, a grouping dimension is not a filter, and fixed or mixed periods do not accept arbitrary range. calculation and sourceDetail report the external owner's availability; unavailable operations must not be retried as a different statistic. Empty results do not mean a zero business value. Labels are the canonical French captions. No financial action or business mutation occurs. Use statisticId exactly as returned by the catalogue; it is a dotted identifier, never a UUID. Unknown identifiers return STATISTIC_NOT_FOUND. A known definition without data rights returns only its public identity, requiredScopes and availability, with no capabilities. Unknown query parameters and non-empty bodies are rejected. Owner period metadata describes inputs actually read by that definition; external calculation.period may impose a stricter required bounded range. Filters are empty unless expressly audited, and input positions in dimensions are zero-based. Missing unit audit remains NOT_REVIEWED rather than assuming minor or major currency units.

### אימות

```json
[
  {
    "bearerAuth": []
  },
  {
    "apiKeyHeader": []
  }
]
```

### הרשאות נדרשות

```json
{
  "accepted": "statistics:read",
  "additional": []
}
```

### פרמטרים

```json
{
  "name": "statisticId",
  "in": "path",
  "required": true,
  "schema": {
    "type": "string",
    "maxLength": 160,
    "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$"
  },
  "description": "Stable dotted statistic identifier returned by the catalogue, such as global.donations.count."
}
```

### תגובות

#### HTTP 200

```json
{
  "description": "Public registry metadata only; inspect availability before using capabilities.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StatisticsCatalogDetailResponse"
      }
    }
  }
}
```

#### HTTP 400

```json
{
  "description": "Invalid statistic id, query, limit, cursor or unexpected request body.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "success",
          "error"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          },
          "required": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}
```

#### HTTP 401

```json
{
  "description": "Missing or invalid API key.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "success",
          "error"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          },
          "required": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}
```

#### HTTP 403

```json
{
  "description": "Missing statistics:read scope or unavailable organisation.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "success",
          "error"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          },
          "required": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}
```

#### HTTP 404

```json
{
  "description": "STATISTIC_NOT_FOUND.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "success",
          "error"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          },
          "required": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}
```

#### HTTP 503

```json
{
  "description": "STATISTICS_CATALOG_UNAVAILABLE. Retry discovery later; no calculation was performed.",
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "success",
          "error"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          },
          "required": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}
```

### OpenAPI

```json
{
  "x-unisoft-scope": "statistics:read",
  "x-unisoft-mcp": {
    "category": "read",
    "readOnly": true,
    "destructive": false,
    "idempotent": true,
    "warn": false
  }
}
```

## POST /statistics/{statId}/run

Calculate an unambiguous authorized statistic

`run_statistic`

Calculate a canonical statistic only when calculation.available is true in its live catalogue entry. Requires statistics:read and every calculation.sourceScopes declared for this exact identifier; missing source rights return INSUFFICIENT_SCOPE. Inspect its real period, entity selection, dimensions and units before building the request. For period.mode=range, provide range.from and range.to as timezone-qualified ISO instants, inclusive, at most 366 days. Fixed-window or all-time definitions reject a range they would ignore. dimensions is a positional array matching the declared dimension types: a granularity string, an integer row limit, or an integer threshold in major currency units, only when declared. entityIds is accepted only for a declared entity selection; exact UUID objects must exist in the same organisation before calculation. Unknown parameters, filters, pipelines, expressions, comparisons and forceFresh are rejected. Every source is read through a bounded read-only port, with the canonical formula and source-quality checks consuming the same aggregation facet. Each read admits at most 10000 source documents, with a maximum of 100 reads and a 10000ms Mongo bound per read; no partial value is published on an ambiguous source, source limit or changed owner contract. Temporal reads also admit non-Date candidates from the same non-temporal population before applying the exact canonical date filter inside the value facet; missing, string or array dates cannot silently become an empty period. Valid native dates outside the requested period remain excluded. A multi-read statistic is not a transaction-wide snapshot. No historical statistics cache is read or written, and no provider sync or financial mutation is triggered. Missing or malformed monetary values/currencies are refused rather than replaced by EUR or zero, including a caught native fallback. Each result supplies units and its actual period/perimeter; payment amounts are minor units, manual treasury amounts use their separately declared major units, and percentages/counts/durations remain distinct. Never total different currencies. COMPLETED is the recorded payment outcome, can represent an Axepta authorization before capture, and does not prove bank settlement or tax-receipt eligibility. The native top-donor ranking is refused when its included sources span currencies, because its raw rank sum has no conversion basis. Net/fee statistics are conditionally available only when every included payment has explicit numeric bankFees=0 AND orgfees=0 and a proven source currency. Any missing, nonzero or malformed fee is refused with STATISTIC_SOURCE_AMBIGUOUS; no missing fee is converted into zero and no fee-currency assumption is made. An empty result means no matching recorded source observed, not proof of no real-world activity. observedAt is external observation time; computedAt=null, freshness=unknown and cacheHit=false do not claim bank freshness. Campaign-restricted keys, including empty or malformed allowlists, are refused. Scope/org/input admission completes before owner reads. Errors expose stable codes; do not retry a financial action or use an internal route to bypass a refusal.

### אימות

```json
[
  {
    "bearerAuth": []
  },
  {
    "apiKeyHeader": []
  }
]
```

### הרשאות נדרשות

```json
{
  "accepted": "statistics:read",
  "additional": []
}
```

### פרמטרים

```json
{
  "name": "statId",
  "in": "path",
  "required": true,
  "description": "Exact catalogue identifier; inspect calculation.available and calculation.reason first.",
  "schema": {
    "type": "string",
    "maxLength": 160,
    "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$"
  }
}
```

### גוף הבקשה

```json
{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "properties": {
          "range": {
            "allOf": [
              {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string",
                    "maxLength": 35,
                    "format": "date-time"
                  },
                  "to": {
                    "type": "string",
                    "maxLength": 35,
                    "format": "date-time"
                  }
                },
                "required": [
                  "from",
                  "to"
                ],
                "additionalProperties": false,
                "description": "Both inclusive instants require a timezone (Z or explicit offset); maximum interval 366 days. No implicit day-end or timezone conversion."
              }
            ],
            "type": "object",
            "properties": {
              "from": {},
              "to": {}
            },
            "additionalProperties": false
          },
          "dimensions": {
            "type": "array",
            "maxItems": 1,
            "items": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "day",
                    "week",
                    "month",
                    "year"
                  ]
                },
                {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 1000000000
                }
              ]
            }
          },
          "entityIds": {
            "type": "array",
            "minItems": 1,
            "maxItems": 100,
            "uniqueItems": true,
            "items": {
              "type": "string",
              "format": "uuid"
            }
          }
        },
        "additionalProperties": false
      }
    }
  }
}
```

### תגובות

#### HTTP 200

```json
{
  "description": "Authorized source-qualified canonical result.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StatisticsRunResponse"
      }
    }
  }
}
```

#### HTTP 400

```json
{
  "description": "INVALID_STATISTIC_ID, INVALID_STATISTIC_INPUT, UNKNOWN_STATISTIC_PARAMETER, INVALID_STATISTIC_RANGE, UNSUPPORTED_STATISTIC_RANGE, INVALID_STATISTIC_DIMENSIONS, INVALID_STATISTIC_ENTITY_SELECTION or INVALID_STATISTIC_BATCH. Correct the request according to the live catalogue.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StatisticsRunError"
      }
    }
  }
}
```

#### HTTP 401

```json
{
  "description": "Authentication is required.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StatisticsRunError"
      }
    }
  }
}
```

#### HTTP 403

```json
{
  "description": "INSUFFICIENT_SCOPE, INVALID_ORGANISATION_CONTEXT or CAMPAIGN_RESTRICTED_KEY.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StatisticsRunError"
      }
    }
  }
}
```

#### HTTP 404

```json
{
  "description": "STATISTIC_NOT_FOUND: unknown identifier.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StatisticsRunError"
      }
    }
  }
}
```

#### HTTP 422

```json
{
  "description": "STATISTIC_UNAVAILABLE, STATISTIC_SOURCE_AMBIGUOUS, STATISTIC_SOURCE_LIMIT_EXCEEDED or STATISTIC_OWNER_CONTRACT_CHANGED. No partial result is returned.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StatisticsRunError"
      }
    }
  }
}
```

#### HTTP 500

```json
{
  "description": "INTERNAL_ERROR.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StatisticsRunError"
      }
    }
  }
}
```

#### HTTP 502

```json
{
  "description": "STATISTIC_CALCULATION_FAILED or INVALID_STATISTIC_RESULT: no usable result was returned; no financial action is authorized.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StatisticsRunError"
      }
    }
  }
}
```

### OpenAPI

```json
{
  "x-unisoft-scope": "statistics:read",
  "x-unisoft-additional-scopes": [],
  "x-unisoft-mcp": {
    "category": "read",
    "readOnly": true,
    "destructive": false,
    "idempotent": true,
    "warn": false
  },
  "x-unisoft-conditional-scopes": [
    "abonnements:read",
    "budgets:read",
    "caisses:read",
    "contacts:read",
    "events:read",
    "forms:read",
    "forms_submit:read",
    "fundraising:read",
    "messages:read",
    "paiements:read",
    "promesses:read"
  ]
}
```

## POST /statistics/run-batch

Calculate a bounded batch of unambiguous statistics

`run_statistics_batch`

Calculate 1 to 10 items sequentially in input order, preserving duplicate identifiers. Every item is admitted before the first owner read. Invalid, unavailable or unauthorized input rejects the whole batch. Source ambiguity, limit or changed-owner failures reject the complete response before publishing partial results. Other runtime failures are isolated per entry; success=true describes the envelope, so inspect every result.status. Each item observes its own sources; there is no batch-wide snapshot. Calculate a canonical statistic only when calculation.available is true in its live catalogue entry. Requires statistics:read and every calculation.sourceScopes declared for this exact identifier; missing source rights return INSUFFICIENT_SCOPE. Inspect its real period, entity selection, dimensions and units before building the request. For period.mode=range, provide range.from and range.to as timezone-qualified ISO instants, inclusive, at most 366 days. Fixed-window or all-time definitions reject a range they would ignore. dimensions is a positional array matching the declared dimension types: a granularity string, an integer row limit, or an integer threshold in major currency units, only when declared. entityIds is accepted only for a declared entity selection; exact UUID objects must exist in the same organisation before calculation. Unknown parameters, filters, pipelines, expressions, comparisons and forceFresh are rejected. Every source is read through a bounded read-only port, with the canonical formula and source-quality checks consuming the same aggregation facet. Each read admits at most 10000 source documents, with a maximum of 100 reads and a 10000ms Mongo bound per read; no partial value is published on an ambiguous source, source limit or changed owner contract. Temporal reads also admit non-Date candidates from the same non-temporal population before applying the exact canonical date filter inside the value facet; missing, string or array dates cannot silently become an empty period. Valid native dates outside the requested period remain excluded. A multi-read statistic is not a transaction-wide snapshot. No historical statistics cache is read or written, and no provider sync or financial mutation is triggered. Missing or malformed monetary values/currencies are refused rather than replaced by EUR or zero, including a caught native fallback. Each result supplies units and its actual period/perimeter; payment amounts are minor units, manual treasury amounts use their separately declared major units, and percentages/counts/durations remain distinct. Never total different currencies. COMPLETED is the recorded payment outcome, can represent an Axepta authorization before capture, and does not prove bank settlement or tax-receipt eligibility. The native top-donor ranking is refused when its included sources span currencies, because its raw rank sum has no conversion basis. Net/fee statistics are conditionally available only when every included payment has explicit numeric bankFees=0 AND orgfees=0 and a proven source currency. Any missing, nonzero or malformed fee is refused with STATISTIC_SOURCE_AMBIGUOUS; no missing fee is converted into zero and no fee-currency assumption is made. An empty result means no matching recorded source observed, not proof of no real-world activity. observedAt is external observation time; computedAt=null, freshness=unknown and cacheHit=false do not claim bank freshness. Campaign-restricted keys, including empty or malformed allowlists, are refused. Scope/org/input admission completes before owner reads. Errors expose stable codes; do not retry a financial action or use an internal route to bypass a refusal.

### אימות

```json
[
  {
    "bearerAuth": []
  },
  {
    "apiKeyHeader": []
  }
]
```

### הרשאות נדרשות

```json
{
  "accepted": "statistics:read",
  "additional": []
}
```

### גוף הבקשה

```json
{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "minItems": 1,
            "maxItems": 10,
            "items": {
              "$ref": "#/components/schemas/UnisoftRequest_e393f12bc9c7560472d2"
            }
          }
        },
        "required": [
          "items"
        ],
        "additionalProperties": false
      }
    }
  }
}
```

### תגובות

#### HTTP 200

```json
{
  "description": "Authorized source-qualified canonical result.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StatisticsRunBatchResponse"
      }
    }
  }
}
```

#### HTTP 400

```json
{
  "description": "INVALID_STATISTIC_ID, INVALID_STATISTIC_INPUT, UNKNOWN_STATISTIC_PARAMETER, INVALID_STATISTIC_RANGE, UNSUPPORTED_STATISTIC_RANGE, INVALID_STATISTIC_DIMENSIONS, INVALID_STATISTIC_ENTITY_SELECTION or INVALID_STATISTIC_BATCH. Correct the request according to the live catalogue.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StatisticsRunError"
      }
    }
  }
}
```

#### HTTP 401

```json
{
  "description": "Authentication is required.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StatisticsRunError"
      }
    }
  }
}
```

#### HTTP 403

```json
{
  "description": "INSUFFICIENT_SCOPE, INVALID_ORGANISATION_CONTEXT or CAMPAIGN_RESTRICTED_KEY.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StatisticsRunError"
      }
    }
  }
}
```

#### HTTP 404

```json
{
  "description": "STATISTIC_NOT_FOUND: unknown identifier.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StatisticsRunError"
      }
    }
  }
}
```

#### HTTP 422

```json
{
  "description": "STATISTIC_UNAVAILABLE, STATISTIC_SOURCE_AMBIGUOUS, STATISTIC_SOURCE_LIMIT_EXCEEDED or STATISTIC_OWNER_CONTRACT_CHANGED. No partial result is returned.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StatisticsRunError"
      }
    }
  }
}
```

#### HTTP 500

```json
{
  "description": "INTERNAL_ERROR.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StatisticsRunError"
      }
    }
  }
}
```

#### HTTP 502

```json
{
  "description": "STATISTIC_CALCULATION_FAILED or INVALID_STATISTIC_RESULT: no usable result was returned; no financial action is authorized.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StatisticsRunError"
      }
    }
  }
}
```

### OpenAPI

```json
{
  "x-unisoft-scope": "statistics:read",
  "x-unisoft-additional-scopes": [],
  "x-unisoft-mcp": {
    "category": "read",
    "readOnly": true,
    "destructive": false,
    "idempotent": true,
    "warn": false
  },
  "x-unisoft-conditional-scopes": [
    "abonnements:read",
    "budgets:read",
    "caisses:read",
    "contacts:read",
    "events:read",
    "forms:read",
    "forms_submit:read",
    "fundraising:read",
    "messages:read",
    "paiements:read",
    "promesses:read"
  ]
}
```

## POST /statistics/{statId}/source-snapshots

Capture a statistic and its exact admitted payment sources

`create_statistic_source_snapshot`

Requires statistics:read AND paiements:read, an exact organisation context and a stable API-key identity. Any fundraising-campaign restriction, including an empty or malformed allowlist, is refused. Supported mapping is limited to global.donations.total_period, global.donations.count, global.donations.by_method, global.donations.by_platform, global.donations.by_type, global.donations.by_source, global.donations.time_series: every captured payment is an input composing that exact canonical total/count/breakdown/time-series result. No arbitrary indicator, ranking, maximum, distinct-donor or multi-source drilldown is inferred. The result and rows come from the same admitted bounded canonical aggregation, not a separate payment export or Explorer query. Monetary rows carry amountMinor and explicit lowercase currency; count rows intentionally carry no monetary fields. No donor identity, provider reference, configuration, raw snapshot or error message is returned. COMPLETED is a recorded result and can be an Axepta authorization before capture; imports and native inclusion rules remain unchanged, REFUNDED is excluded. Neither the result nor its rows prove bank settlement or tax eligibility. Missing/array/string dates are admitted for qualification and refused, never hidden as an empty period; missing money/currency is not replaced with EUR or zero. Payment IDs must be exact unique UUIDs for this source capability, even if a normal count could run without them. At most 10000 candidate rows and 8388608 stored bytes are allowed, with no truncated capture. The captured result is additionally bounded to 6000 JSON nodes/24 levels so every source page fits the MCP transport. Any ambiguity/limit refuses creation. Snapshot expiration is 600 seconds after creation and is enforced on every read. Data is private to the same API key and organisation; current scopes are checked again on every page. It captures a NEW observation and is never linked to an earlier run result. Its canonical result keeps computedAt=null, freshness=unknown and cacheHit=false. No provider sync, financial action or historical statistics-cache write occurs. Stable error codes only; no internal-route or credential workaround is authorized. Capture additionally requires the explicitly granted reports:write scope because POST stores a private artifact; it is never a default read grant. Provide an idempotencyKey of 8–100 ASCII letters/digits/underscore/hyphen plus timezone-qualified inclusive range.from/range.to, maximum 366 days. Only time_series accepts its declared granularity dimension, default month UTC. POST explicitly stores the private immutable result and sources for paging; it returns the first 50 rows. Repeating the same key/input returns the same stored capture without recalculating. A changed input with the same key returns 409 STATISTIC_SOURCE_SNAPSHOT_IDEMPOTENCY_CONFLICT. Reusing an expired key returns 410 STATISTIC_SOURCE_SNAPSHOT_EXPIRED: create a new capture with a new key. If creation acknowledgement is uncertain, retry this same idempotency key/input, never treat it as an empty result. Unknown parameters/query strings are refused.

### אימות

```json
[
  {
    "bearerAuth": []
  },
  {
    "apiKeyHeader": []
  }
]
```

### הרשאות נדרשות

```json
{
  "accepted": "statistics:read",
  "additional": [
    "paiements:read",
    "reports:write"
  ]
}
```

### פרמטרים

```json
{
  "name": "statId",
  "in": "path",
  "required": true,
  "schema": {
    "type": "string",
    "enum": [
      "global.donations.total_period",
      "global.donations.count",
      "global.donations.by_method",
      "global.donations.by_platform",
      "global.donations.by_type",
      "global.donations.by_source",
      "global.donations.time_series"
    ]
  },
  "description": "Exact supported additive donation statistic identifier from the catalogue."
}
```

### גוף הבקשה

```json
{
  "required": true,
  "content": {
    "application/json": {
      "schema": {
        "type": "object",
        "properties": {
          "idempotencyKey": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{8,100}$"
          },
          "range": {
            "allOf": [
              {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string",
                    "maxLength": 35,
                    "format": "date-time"
                  },
                  "to": {
                    "type": "string",
                    "maxLength": 35,
                    "format": "date-time"
                  }
                },
                "required": [
                  "from",
                  "to"
                ],
                "additionalProperties": false,
                "description": "Both inclusive instants require a timezone (Z or explicit offset); maximum interval 366 days. No implicit day-end or timezone conversion."
              }
            ],
            "type": "object",
            "properties": {
              "from": {},
              "to": {}
            },
            "additionalProperties": false
          },
          "dimensions": {
            "type": "array",
            "maxItems": 1,
            "items": {
              "type": "string",
              "enum": [
                "day",
                "week",
                "month",
                "year"
              ]
            }
          }
        },
        "required": [
          "idempotencyKey",
          "range"
        ],
        "additionalProperties": false
      }
    }
  }
}
```

### תגובות

#### HTTP 201

```json
{
  "description": "Private captured result and bounded source page.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StatisticsSourceSnapshotResponse"
      }
    }
  }
}
```

#### HTTP 400

```json
{
  "description": "Invalid or unknown parameters, unsupported dimension or cursor.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StatisticsSourceSnapshotError"
      }
    }
  }
}
```

#### HTTP 401

```json
{
  "description": "Authentication is required.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StatisticsSourceSnapshotError"
      }
    }
  }
}
```

#### HTTP 403

```json
{
  "description": "Missing source scope, key identity, organisation or unrestricted campaign context.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StatisticsSourceSnapshotError"
      }
    }
  }
}
```

#### HTTP 404

```json
{
  "description": "Snapshot absent or owned by another principal.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StatisticsSourceSnapshotError"
      }
    }
  }
}
```

#### HTTP 409

```json
{
  "description": "Idempotency key conflicts with different inputs.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StatisticsSourceSnapshotError"
      }
    }
  }
}
```

#### HTTP 410

```json
{
  "description": "Snapshot expired; request a new capture explicitly.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StatisticsSourceSnapshotError"
      }
    }
  }
}
```

#### HTTP 422

```json
{
  "description": "Unsupported source mapping, ambiguous/invalid sources or snapshot limits; no partial result.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StatisticsSourceSnapshotError"
      }
    }
  }
}
```

#### HTTP 502

```json
{
  "description": "Canonical calculation failed; no result was captured.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StatisticsSourceSnapshotError"
      }
    }
  }
}
```

#### HTTP 503

```json
{
  "description": "Snapshot storage or creation acknowledgement unavailable. Retry the same idempotency key before considering a new capture.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StatisticsSourceSnapshotError"
      }
    }
  }
}
```

### OpenAPI

```json
{
  "x-unisoft-mcp-output-schema": true,
  "x-unisoft-scope": "statistics:read",
  "x-unisoft-additional-scopes": [
    "paiements:read",
    "reports:write"
  ],
  "x-unisoft-mcp": {
    "category": "write",
    "readOnly": false,
    "destructive": false,
    "idempotent": true,
    "warn": false
  }
}
```

## GET /statistics/source-snapshots/{snapshotId}

Page a private captured statistic source snapshot

`get_statistic_source_snapshot`

Requires statistics:read AND paiements:read, an exact organisation context and a stable API-key identity. Any fundraising-campaign restriction, including an empty or malformed allowlist, is refused. Supported mapping is limited to global.donations.total_period, global.donations.count, global.donations.by_method, global.donations.by_platform, global.donations.by_type, global.donations.by_source, global.donations.time_series: every captured payment is an input composing that exact canonical total/count/breakdown/time-series result. No arbitrary indicator, ranking, maximum, distinct-donor or multi-source drilldown is inferred. The result and rows come from the same admitted bounded canonical aggregation, not a separate payment export or Explorer query. Monetary rows carry amountMinor and explicit lowercase currency; count rows intentionally carry no monetary fields. No donor identity, provider reference, configuration, raw snapshot or error message is returned. COMPLETED is a recorded result and can be an Axepta authorization before capture; imports and native inclusion rules remain unchanged, REFUNDED is excluded. Neither the result nor its rows prove bank settlement or tax eligibility. Missing/array/string dates are admitted for qualification and refused, never hidden as an empty period; missing money/currency is not replaced with EUR or zero. Payment IDs must be exact unique UUIDs for this source capability, even if a normal count could run without them. At most 10000 candidate rows and 8388608 stored bytes are allowed, with no truncated capture. The captured result is additionally bounded to 6000 JSON nodes/24 levels so every source page fits the MCP transport. Any ambiguity/limit refuses creation. Snapshot expiration is 600 seconds after creation and is enforced on every read. Data is private to the same API key and organisation; current scopes are checked again on every page. It captures a NEW observation and is never linked to an earlier run result. Its canonical result keeps computedAt=null, freshness=unknown and cacheHit=false. No provider sync, financial action or historical statistics-cache write occurs. Stable error codes only; no internal-route or credential workaround is authorized. Passive GET of the captured result and one immutable source page; no recalculation, source re-read, write, expiry cleanup or provider call. limit is 1–200, default 50. Use nextCursor unchanged with the same snapshot; it is signed and bound to the snapshot, organisation, API key, inputs and row content. 400 INVALID_STATISTIC_SOURCE_SNAPSHOT_CURSOR means restart paging that same unexpired snapshot. 404 STATISTIC_SOURCE_SNAPSHOT_NOT_FOUND also covers another key/organisation. 410 STATISTIC_SOURCE_SNAPSHOT_EXPIRED requires a newly requested capture, never an automatic fresh result. Do not combine pages from different capture IDs. Unknown query keys and non-empty bodies are refused.

### אימות

```json
[
  {
    "bearerAuth": []
  },
  {
    "apiKeyHeader": []
  }
]
```

### הרשאות נדרשות

```json
{
  "accepted": "statistics:read",
  "additional": [
    "paiements:read"
  ]
}
```

### פרמטרים

```json
{
  "name": "snapshotId",
  "in": "path",
  "required": true,
  "schema": {
    "type": "string",
    "format": "uuid"
  },
  "description": "Snapshot UUID returned by create_statistic_source_snapshot."
}
```

```json
{
  "name": "limit",
  "in": "query",
  "schema": {
    "type": "integer",
    "minimum": 1,
    "maximum": 200
  },
  "description": "Rows in this page, default 50."
}
```

```json
{
  "name": "cursor",
  "in": "query",
  "schema": {
    "type": "string",
    "maxLength": 2048
  },
  "description": "Opaque nextCursor from the same captured snapshot."
}
```

### תגובות

#### HTTP 200

```json
{
  "description": "Private captured result and bounded source page.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StatisticsSourceSnapshotResponse"
      }
    }
  }
}
```

#### HTTP 400

```json
{
  "description": "Invalid or unknown parameters, unsupported dimension or cursor.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StatisticsSourceSnapshotError"
      }
    }
  }
}
```

#### HTTP 401

```json
{
  "description": "Authentication is required.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StatisticsSourceSnapshotError"
      }
    }
  }
}
```

#### HTTP 403

```json
{
  "description": "Missing source scope, key identity, organisation or unrestricted campaign context.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StatisticsSourceSnapshotError"
      }
    }
  }
}
```

#### HTTP 404

```json
{
  "description": "Snapshot absent or owned by another principal.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StatisticsSourceSnapshotError"
      }
    }
  }
}
```

#### HTTP 409

```json
{
  "description": "Idempotency key conflicts with different inputs.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StatisticsSourceSnapshotError"
      }
    }
  }
}
```

#### HTTP 410

```json
{
  "description": "Snapshot expired; request a new capture explicitly.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StatisticsSourceSnapshotError"
      }
    }
  }
}
```

#### HTTP 422

```json
{
  "description": "Unsupported source mapping, ambiguous/invalid sources or snapshot limits; no partial result.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StatisticsSourceSnapshotError"
      }
    }
  }
}
```

#### HTTP 502

```json
{
  "description": "Canonical calculation failed; no result was captured.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StatisticsSourceSnapshotError"
      }
    }
  }
}
```

#### HTTP 503

```json
{
  "description": "Snapshot storage or creation acknowledgement unavailable. Retry the same idempotency key before considering a new capture.",
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/StatisticsSourceSnapshotError"
      }
    }
  }
}
```

### OpenAPI

```json
{
  "x-unisoft-mcp-output-schema": true,
  "x-unisoft-scope": "statistics:read",
  "x-unisoft-additional-scopes": [
    "paiements:read"
  ],
  "x-unisoft-mcp": {
    "category": "read",
    "readOnly": true,
    "destructive": false,
    "idempotent": true,
    "warn": false
  }
}
```

## סכמות

```json
{
  "components": {
    "schemas": {
      "StatisticsCatalogResponse": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "success",
          "data",
          "meta"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              true
            ]
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StatisticsCatalogEntry"
            }
          },
          "meta": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "total",
              "limit",
              "hasMore",
              "nextCursor"
            ],
            "properties": {
              "total": {
                "type": "integer",
                "minimum": 0
              },
              "limit": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "hasMore": {
                "type": "boolean"
              },
              "nextCursor": {
                "type": "string",
                "nullable": true
              }
            }
          }
        }
      },
      "StatisticsCatalogEntry": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "label",
          "category",
          "scopeType",
          "requiredScopes",
          "availability"
        ],
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$",
            "maxLength": 160
          },
          "label": {
            "type": "string"
          },
          "category": {
            "type": "string",
            "nullable": true
          },
          "scopeType": {
            "type": "string",
            "enum": [
              "contacts",
              "payments",
              "abonnements",
              "global",
              "campaigns",
              "forms",
              "events",
              "caisses",
              "messages"
            ]
          },
          "requiredScopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "availability": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "details",
              "reason"
            ],
            "properties": {
              "details": {
                "type": "boolean"
              },
              "reason": {
                "type": "string",
                "nullable": true,
                "enum": [
                  null,
                  "MISSING_DATA_SCOPE",
                  "CAMPAIGN_RESTRICTED_KEY",
                  "OWNER_ACCESS_UNAVAILABLE"
                ]
              }
            }
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sourceScopes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "accessSupported": {
            "type": "boolean"
          },
          "campaignSafe": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "period": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "supported",
              "mode",
              "bounds",
              "timezone"
            ],
            "properties": {
              "supported": {
                "type": "boolean"
              },
              "mode": {
                "type": "string"
              },
              "bounds": {
                "type": "string",
                "nullable": true
              },
              "timezone": {
                "type": "string",
                "nullable": true
              }
            }
          },
          "dimensions": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "name",
                "position",
                "type",
                "values",
                "default",
                "unit",
                "minimum",
                "maximum"
              ],
              "properties": {
                "name": {
                  "type": "string",
                  "enum": [
                    "granularity",
                    "limit",
                    "threshold"
                  ]
                },
                "position": {
                  "type": "integer",
                  "minimum": 0
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "string",
                    "integer"
                  ]
                },
                "values": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "default": {
                  "oneOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "integer"
                    }
                  ]
                },
                "unit": {
                  "type": "string",
                  "nullable": true
                },
                "minimum": {
                  "type": "integer",
                  "nullable": true
                },
                "maximum": {
                  "type": "integer",
                  "nullable": true
                }
              }
            }
          },
          "parameters": {
            "type": "array",
            "maxItems": 0,
            "items": {
              "type": "object"
            }
          },
          "filters": {
            "type": "array",
            "maxItems": 0,
            "items": {
              "type": "object"
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "status",
              "values"
            ],
            "properties": {
              "status": {
                "type": "string",
                "enum": [
                  "DECLARED",
                  "NOT_REVIEWED"
                ]
              },
              "values": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "minor_currency_units",
                    "major_currency_units",
                    "count",
                    "percentage",
                    "days",
                    "months",
                    "score",
                    "ratio"
                  ]
                }
              }
            }
          },
          "entitySelection": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "mode",
              "required",
              "maximum"
            ],
            "properties": {
              "mode": {
                "type": "string",
                "enum": [
                  "organisation",
                  "single",
                  "selection"
                ]
              },
              "required": {
                "type": "boolean"
              },
              "maximum": {
                "type": "integer",
                "nullable": true,
                "minimum": 1
              }
            }
          },
          "calculation": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "available",
              "requiredScopes",
              "sourceScopes",
              "period",
              "entitySelection",
              "campaignRestricted",
              "sourceAdmission",
              "historicalCache",
              "dimensions",
              "reason",
              "conditional",
              "conditions"
            ],
            "properties": {
              "available": {
                "type": "boolean"
              },
              "requiredScopes": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "sourceScopes": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "period": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "mode",
                  "maxDays",
                  "inclusive",
                  "timezone"
                ],
                "properties": {
                  "mode": {
                    "type": "string"
                  },
                  "maxDays": {
                    "type": "integer",
                    "nullable": true
                  },
                  "inclusive": {
                    "type": "boolean"
                  },
                  "timezone": {
                    "type": "string",
                    "nullable": true,
                    "enum": [
                      "UTC",
                      "SERVER_LOCAL",
                      null
                    ]
                  }
                }
              },
              "entitySelection": {
                "type": "boolean"
              },
              "campaignRestricted": {
                "type": "boolean"
              },
              "sourceAdmission": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "mode",
                  "maxRows"
                ],
                "properties": {
                  "mode": {
                    "type": "string",
                    "enum": [
                      "same_aggregation",
                      "unavailable",
                      "same_aggregation_per_read"
                    ]
                  },
                  "maxRows": {
                    "type": "integer",
                    "nullable": true,
                    "maximum": 10000
                  }
                }
              },
              "historicalCache": {
                "type": "boolean",
                "enum": [
                  false
                ]
              },
              "dimensions": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "reason": {
                "type": "string",
                "nullable": true
              },
              "conditional": {
                "type": "boolean"
              },
              "conditions": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "sourceDetail": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "supported",
              "reason"
            ],
            "properties": {
              "supported": {
                "type": "boolean"
              },
              "reason": {
                "type": "string",
                "nullable": true,
                "enum": [
                  "SOURCE_DETAIL_UNAVAILABLE",
                  null
                ]
              },
              "captureRequired": {
                "type": "boolean",
                "enum": [
                  true
                ]
              },
              "requiredScopes": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "expiresAfterSeconds": {
                "type": "integer",
                "enum": [
                  600
                ]
              }
            }
          }
        }
      },
      "StatisticsCatalogCategoriesResponse": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "success",
          "data"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              true
            ]
          },
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "category",
                "total",
                "detailsAvailable"
              ],
              "properties": {
                "category": {
                  "type": "string",
                  "nullable": true
                },
                "total": {
                  "type": "integer",
                  "minimum": 0
                },
                "detailsAvailable": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            }
          }
        }
      },
      "StatisticsCatalogDetailResponse": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "success",
          "data"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              true
            ]
          },
          "data": {
            "$ref": "#/components/schemas/StatisticsCatalogEntry"
          }
        }
      },
      "StatisticsRunResponse": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "success",
          "data"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              true
            ]
          },
          "data": {
            "$ref": "#/components/schemas/StatisticsRunResult"
          }
        }
      },
      "StatisticsRunResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "statId",
          "status",
          "value",
          "meta"
        ],
        "properties": {
          "statId": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "ok"
            ]
          },
          "value": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "object",
                "x-unisoft-map-key-pattern": "^[a-z]{3}$",
                "maxProperties": 200,
                "additionalProperties": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "byDevise",
                  "count"
                ],
                "properties": {
                  "byDevise": {
                    "type": "object",
                    "x-unisoft-map-key-pattern": "^[a-z]{3}$",
                    "maxProperties": 200,
                    "additionalProperties": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                }
              },
              {
                "type": "array",
                "maxItems": 1000,
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "key",
                        "byDevise",
                        "count"
                      ],
                      "properties": {
                        "key": {
                          "type": "string",
                          "maxLength": 256
                        },
                        "byDevise": {
                          "type": "object",
                          "x-unisoft-map-key-pattern": "^[a-z]{3}$",
                          "maxProperties": 200,
                          "additionalProperties": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "count": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        }
                      }
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "period",
                        "byDevise",
                        "count"
                      ],
                      "properties": {
                        "period": {
                          "type": "string",
                          "maxLength": 256
                        },
                        "byDevise": {
                          "type": "object",
                          "x-unisoft-map-key-pattern": "^[a-z]{3}$",
                          "maxProperties": 200,
                          "additionalProperties": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "count": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        }
                      }
                    }
                  ]
                }
              },
              {
                "type": "object",
                "maxProperties": 200,
                "additionalProperties": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "description": "Keys are lowercase three-letter currencies; each amount remains separate.",
                "x-unisoft-map-key-pattern": "^[a-z]{3}$"
              },
              {
                "type": "object",
                "maxProperties": 200,
                "additionalProperties": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "brut",
                    "fees",
                    "ratioPct"
                  ],
                  "properties": {
                    "brut": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "fees": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "ratioPct": {
                      "type": "number",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    }
                  }
                },
                "x-unisoft-map-key-pattern": "^[a-z]{3}$"
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "year",
                  "current",
                  "previous"
                ],
                "properties": {
                  "year": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "current": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "byDevise",
                      "count"
                    ],
                    "properties": {
                      "byDevise": {
                        "type": "object",
                        "maxProperties": 200,
                        "additionalProperties": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "description": "Keys are lowercase three-letter currencies; each amount remains separate.",
                        "x-unisoft-map-key-pattern": "^[a-z]{3}$"
                      },
                      "count": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    }
                  },
                  "previous": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "byDevise",
                      "count"
                    ],
                    "properties": {
                      "byDevise": {
                        "type": "object",
                        "maxProperties": 200,
                        "additionalProperties": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "description": "Keys are lowercase three-letter currencies; each amount remains separate.",
                        "x-unisoft-map-key-pattern": "^[a-z]{3}$"
                      },
                      "count": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    }
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "previousDonors",
                  "retained",
                  "ratePct"
                ],
                "properties": {
                  "previousDonors": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "retained": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "ratePct": {
                    "type": "number",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  }
                }
              },
              {
                "type": "array",
                "maxItems": 100,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "contactId",
                    "label",
                    "byDevise",
                    "rankTotal"
                  ],
                  "properties": {
                    "contactId": {
                      "type": "string",
                      "maxLength": 256
                    },
                    "label": {
                      "type": "string",
                      "maxLength": 1000
                    },
                    "byDevise": {
                      "type": "object",
                      "maxProperties": 200,
                      "additionalProperties": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "description": "Keys are lowercase three-letter currencies; each amount remains separate.",
                      "x-unisoft-map-key-pattern": "^[a-z]{3}$"
                    },
                    "rankTotal": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "label",
                  "unit",
                  "devise",
                  "current",
                  "previous",
                  "deltaPct",
                  "direction"
                ],
                "properties": {
                  "label": {
                    "type": "string",
                    "maxLength": 256
                  },
                  "unit": {
                    "type": "string",
                    "enum": [
                      "money"
                    ]
                  },
                  "devise": {
                    "type": "string",
                    "pattern": "^[a-z]{3}$"
                  },
                  "current": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "byDevise",
                      "value",
                      "count"
                    ],
                    "properties": {
                      "byDevise": {
                        "type": "object",
                        "maxProperties": 200,
                        "additionalProperties": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "description": "Keys are lowercase three-letter currencies; each amount remains separate.",
                        "x-unisoft-map-key-pattern": "^[a-z]{3}$"
                      },
                      "value": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "count": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "period": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "monthIndex",
                          "year"
                        ],
                        "properties": {
                          "monthIndex": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "year": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        }
                      },
                      "periodLabel": {
                        "type": "string",
                        "maxLength": 256
                      }
                    }
                  },
                  "previous": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "byDevise",
                      "value",
                      "count"
                    ],
                    "properties": {
                      "byDevise": {
                        "type": "object",
                        "maxProperties": 200,
                        "additionalProperties": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "description": "Keys are lowercase three-letter currencies; each amount remains separate.",
                        "x-unisoft-map-key-pattern": "^[a-z]{3}$"
                      },
                      "value": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "count": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "period": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "monthIndex",
                          "year"
                        ],
                        "properties": {
                          "monthIndex": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "year": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        }
                      },
                      "periodLabel": {
                        "type": "string",
                        "maxLength": 256
                      }
                    }
                  },
                  "deltaPct": {
                    "type": "number",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991,
                    "nullable": true
                  },
                  "direction": {
                    "type": "string",
                    "enum": [
                      "up",
                      "down",
                      "flat"
                    ]
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "rows",
                  "projectedTotal",
                  "alreadyIn",
                  "monthlyPace",
                  "monthsElapsed",
                  "monthsRemaining",
                  "devise"
                ],
                "properties": {
                  "rows": {
                    "type": "array",
                    "maxItems": 20,
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "label",
                        "value"
                      ],
                      "properties": {
                        "label": {
                          "type": "string",
                          "maxLength": 256
                        },
                        "value": {
                          "oneOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "money"
                              ],
                              "properties": {
                                "money": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "byDevise"
                                  ],
                                  "properties": {
                                    "byDevise": {
                                      "type": "object",
                                      "maxProperties": 200,
                                      "additionalProperties": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "description": "Keys are lowercase three-letter currencies; each amount remains separate.",
                                      "x-unisoft-map-key-pattern": "^[a-z]{3}$"
                                    }
                                  }
                                }
                              }
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "number"
                              ],
                              "properties": {
                                "number": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              }
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "duration"
                              ],
                              "properties": {
                                "duration": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "n",
                                    "unit"
                                  ],
                                  "properties": {
                                    "n": {
                                      "type": "number",
                                      "minimum": -9007199254740991,
                                      "maximum": 9007199254740991
                                    },
                                    "unit": {
                                      "type": "string",
                                      "enum": [
                                        "months"
                                      ]
                                    }
                                  }
                                }
                              }
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "pct"
                              ],
                              "properties": {
                                "pct": {
                                  "type": "number",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                }
                              }
                            }
                          ]
                        },
                        "bar": {
                          "type": "number",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        }
                      }
                    }
                  },
                  "projectedTotal": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "alreadyIn": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "monthlyPace": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "monthsElapsed": {
                    "type": "number",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "monthsRemaining": {
                    "type": "number",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "devise": {
                    "type": "string",
                    "pattern": "^[a-z]{3}$"
                  }
                }
              },
              {
                "type": "array",
                "maxItems": 1000,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "period",
                    "byDevise",
                    "count"
                  ],
                  "properties": {
                    "period": {
                      "type": "string",
                      "maxLength": 256
                    },
                    "byDevise": {
                      "type": "object",
                      "maxProperties": 200,
                      "additionalProperties": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "description": "Keys are lowercase three-letter currencies; each amount remains separate.",
                      "x-unisoft-map-key-pattern": "^[a-z]{3}$"
                    },
                    "count": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "series",
                  "total"
                ],
                "properties": {
                  "series": {
                    "type": "array",
                    "maxItems": 7,
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "name",
                        "data"
                      ],
                      "properties": {
                        "name": {
                          "type": "string",
                          "maxLength": 256
                        },
                        "data": {
                          "type": "array",
                          "maxItems": 8,
                          "items": {
                            "type": "object",
                            "additionalProperties": false,
                            "required": [
                              "x",
                              "y"
                            ],
                            "properties": {
                              "x": {
                                "type": "string",
                                "maxLength": 256
                              },
                              "y": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "total": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "label",
                  "unit",
                  "a",
                  "b",
                  "ratio",
                  "deltaPct",
                  "direction",
                  "totalDonors"
                ],
                "properties": {
                  "label": {
                    "type": "string",
                    "maxLength": 256
                  },
                  "unit": {
                    "type": "string",
                    "enum": [
                      "pct"
                    ]
                  },
                  "a": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "label",
                      "value",
                      "donors"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "maxLength": 256
                      },
                      "value": {
                        "type": "number",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "donors": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    }
                  },
                  "b": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "label",
                      "value",
                      "donors"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "maxLength": 256
                      },
                      "value": {
                        "type": "number",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "donors": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    }
                  },
                  "ratio": {
                    "type": "number",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991,
                    "nullable": true
                  },
                  "deltaPct": {
                    "type": "number",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991,
                    "nullable": true
                  },
                  "direction": {
                    "type": "string",
                    "enum": [
                      "up",
                      "down",
                      "flat"
                    ]
                  },
                  "totalDonors": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "rows",
                  "newDonors",
                  "returningDonors",
                  "newAmount",
                  "returningAmount",
                  "devise"
                ],
                "properties": {
                  "rows": {
                    "type": "array",
                    "maxItems": 20,
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "label",
                        "value"
                      ],
                      "properties": {
                        "label": {
                          "type": "string",
                          "maxLength": 256
                        },
                        "value": {
                          "oneOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "money"
                              ],
                              "properties": {
                                "money": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "byDevise"
                                  ],
                                  "properties": {
                                    "byDevise": {
                                      "type": "object",
                                      "maxProperties": 200,
                                      "additionalProperties": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "description": "Keys are lowercase three-letter currencies; each amount remains separate.",
                                      "x-unisoft-map-key-pattern": "^[a-z]{3}$"
                                    }
                                  }
                                }
                              }
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "number"
                              ],
                              "properties": {
                                "number": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              }
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "duration"
                              ],
                              "properties": {
                                "duration": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "n",
                                    "unit"
                                  ],
                                  "properties": {
                                    "n": {
                                      "type": "number",
                                      "minimum": -9007199254740991,
                                      "maximum": 9007199254740991
                                    },
                                    "unit": {
                                      "type": "string",
                                      "enum": [
                                        "months"
                                      ]
                                    }
                                  }
                                }
                              }
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "pct"
                              ],
                              "properties": {
                                "pct": {
                                  "type": "number",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                }
                              }
                            }
                          ]
                        },
                        "bar": {
                          "type": "number",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        }
                      }
                    }
                  },
                  "newDonors": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "returningDonors": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "newAmount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "returningAmount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "devise": {
                    "type": "string",
                    "pattern": "^[a-z]{3}$"
                  }
                }
              },
              {
                "type": "array",
                "maxItems": 1000,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "key",
                    "label",
                    "byDevise",
                    "count"
                  ],
                  "properties": {
                    "key": {
                      "type": "string",
                      "maxLength": 256
                    },
                    "label": {
                      "type": "string",
                      "maxLength": 256
                    },
                    "byDevise": {
                      "type": "object",
                      "maxProperties": 200,
                      "additionalProperties": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "description": "Keys are lowercase three-letter currencies; each amount remains separate.",
                      "x-unisoft-map-key-pattern": "^[a-z]{3}$"
                    },
                    "count": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "byDevise",
                  "median",
                  "avg",
                  "count",
                  "devise"
                ],
                "properties": {
                  "byDevise": {
                    "type": "object",
                    "maxProperties": 200,
                    "additionalProperties": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "description": "Keys are lowercase three-letter currencies; each amount remains separate.",
                    "x-unisoft-map-key-pattern": "^[a-z]{3}$"
                  },
                  "median": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991,
                    "nullable": true
                  },
                  "avg": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991,
                    "nullable": true
                  },
                  "count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "devise": {
                    "type": "string",
                    "pattern": "^[a-z]{3}$"
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "points",
                  "headline",
                  "donors",
                  "devise"
                ],
                "properties": {
                  "points": {
                    "type": "array",
                    "maxItems": 10,
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "p",
                        "cum"
                      ],
                      "properties": {
                        "p": {
                          "type": "number",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        "cum": {
                          "type": "number",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        }
                      }
                    }
                  },
                  "headline": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "topPct",
                      "sharePct"
                    ],
                    "properties": {
                      "topPct": {
                        "type": "number",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "sharePct": {
                        "type": "number",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      }
                    }
                  },
                  "donors": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "devise": {
                    "type": "string",
                    "pattern": "^[a-z]{3}$"
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "rows",
                  "count",
                  "sharePct",
                  "threshold",
                  "totalBig",
                  "totalAll",
                  "devise"
                ],
                "properties": {
                  "rows": {
                    "type": "array",
                    "maxItems": 20,
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "label",
                        "value"
                      ],
                      "properties": {
                        "label": {
                          "type": "string",
                          "maxLength": 256
                        },
                        "value": {
                          "oneOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "money"
                              ],
                              "properties": {
                                "money": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "byDevise"
                                  ],
                                  "properties": {
                                    "byDevise": {
                                      "type": "object",
                                      "maxProperties": 200,
                                      "additionalProperties": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "description": "Keys are lowercase three-letter currencies; each amount remains separate.",
                                      "x-unisoft-map-key-pattern": "^[a-z]{3}$"
                                    }
                                  }
                                }
                              }
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "number"
                              ],
                              "properties": {
                                "number": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              }
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "duration"
                              ],
                              "properties": {
                                "duration": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "n",
                                    "unit"
                                  ],
                                  "properties": {
                                    "n": {
                                      "type": "number",
                                      "minimum": -9007199254740991,
                                      "maximum": 9007199254740991
                                    },
                                    "unit": {
                                      "type": "string",
                                      "enum": [
                                        "months"
                                      ]
                                    }
                                  }
                                }
                              }
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "pct"
                              ],
                              "properties": {
                                "pct": {
                                  "type": "number",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                }
                              }
                            }
                          ]
                        },
                        "bar": {
                          "type": "number",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        }
                      }
                    }
                  },
                  "count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "sharePct": {
                    "type": "number",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "threshold": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "totalBig": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "totalAll": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "devise": {
                    "type": "string",
                    "pattern": "^[a-z]{3}$"
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "count",
                  "dormant",
                  "active",
                  "cutoffMonths"
                ],
                "properties": {
                  "count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "dormant": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "active": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "cutoffMonths": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "days",
                  "lastDonationAt"
                ],
                "properties": {
                  "days": {
                    "type": "number",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "lastDonationAt": {
                    "type": "string",
                    "format": "date-time"
                  }
                },
                "nullable": true
              },
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "byDevise",
                  "count",
                  "firstDonationAt",
                  "lastDonationAt"
                ],
                "properties": {
                  "byDevise": {
                    "type": "object",
                    "maxProperties": 200,
                    "additionalProperties": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "description": "Keys are lowercase three-letter currencies; each amount remains separate.",
                    "x-unisoft-map-key-pattern": "^[a-z]{3}$"
                  },
                  "count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "firstDonationAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "lastDonationAt": {
                    "type": "string",
                    "format": "date-time"
                  }
                },
                "nullable": true
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "donors",
                  "total",
                  "pct"
                ],
                "properties": {
                  "donors": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "total": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "pct": {
                    "type": "number",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  }
                },
                "nullable": true
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "label",
                  "unit",
                  "devise",
                  "a",
                  "b",
                  "ratio",
                  "deltaPct",
                  "direction"
                ],
                "properties": {
                  "label": {
                    "type": "string",
                    "maxLength": 256
                  },
                  "unit": {
                    "type": "string",
                    "enum": [
                      "money"
                    ]
                  },
                  "devise": {
                    "type": "string",
                    "pattern": "^[a-z]{3}$"
                  },
                  "a": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "label",
                      "byDevise",
                      "value"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "maxLength": 256
                      },
                      "byDevise": {
                        "type": "object",
                        "maxProperties": 200,
                        "additionalProperties": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "description": "Keys are lowercase three-letter currencies; each amount remains separate.",
                        "x-unisoft-map-key-pattern": "^[a-z]{3}$"
                      },
                      "value": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    }
                  },
                  "b": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "label",
                      "byDevise",
                      "value"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "maxLength": 256
                      },
                      "byDevise": {
                        "type": "object",
                        "maxProperties": 200,
                        "additionalProperties": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "description": "Keys are lowercase three-letter currencies; each amount remains separate.",
                        "x-unisoft-map-key-pattern": "^[a-z]{3}$"
                      },
                      "value": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    }
                  },
                  "ratio": {
                    "type": "number",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991,
                    "nullable": true
                  },
                  "deltaPct": {
                    "type": "number",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991,
                    "nullable": true
                  },
                  "direction": {
                    "type": "string",
                    "enum": [
                      "up",
                      "down",
                      "flat"
                    ]
                  }
                },
                "nullable": true
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "label",
                  "unit",
                  "a",
                  "b",
                  "ratio",
                  "deltaPct",
                  "direction"
                ],
                "properties": {
                  "label": {
                    "type": "string",
                    "maxLength": 256
                  },
                  "unit": {
                    "type": "string",
                    "enum": [
                      "pct"
                    ]
                  },
                  "a": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "label",
                      "value",
                      "donors",
                      "total"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "maxLength": 256
                      },
                      "value": {
                        "type": "number",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "donors": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "total": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    }
                  },
                  "b": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "label",
                      "value",
                      "donors",
                      "total"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "maxLength": 256
                      },
                      "value": {
                        "type": "number",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "donors": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "total": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    }
                  },
                  "ratio": {
                    "type": "number",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991,
                    "nullable": true
                  },
                  "deltaPct": {
                    "type": "number",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991,
                    "nullable": true
                  },
                  "direction": {
                    "type": "string",
                    "enum": [
                      "up",
                      "down",
                      "flat"
                    ]
                  }
                },
                "nullable": true
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "label",
                  "unit",
                  "a",
                  "b",
                  "ratio",
                  "deltaPct",
                  "direction"
                ],
                "properties": {
                  "label": {
                    "type": "string",
                    "maxLength": 256
                  },
                  "unit": {
                    "type": "string",
                    "enum": [
                      "pct"
                    ]
                  },
                  "a": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "label",
                      "value",
                      "donors",
                      "repeat"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "maxLength": 256
                      },
                      "value": {
                        "type": "number",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "donors": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "repeat": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    }
                  },
                  "b": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "label",
                      "value",
                      "donors",
                      "repeat"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "maxLength": 256
                      },
                      "value": {
                        "type": "number",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "donors": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "repeat": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    }
                  },
                  "ratio": {
                    "type": "number",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991,
                    "nullable": true
                  },
                  "deltaPct": {
                    "type": "number",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991,
                    "nullable": true
                  },
                  "direction": {
                    "type": "string",
                    "enum": [
                      "up",
                      "down",
                      "flat"
                    ]
                  }
                },
                "nullable": true
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "label",
                  "unit",
                  "devise",
                  "current",
                  "previous",
                  "deltaPct",
                  "direction"
                ],
                "properties": {
                  "label": {
                    "type": "string",
                    "maxLength": 256
                  },
                  "unit": {
                    "type": "string",
                    "enum": [
                      "money"
                    ]
                  },
                  "devise": {
                    "type": "string",
                    "pattern": "^[a-z]{3}$"
                  },
                  "current": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "byDevise",
                      "value",
                      "periodLabel"
                    ],
                    "properties": {
                      "byDevise": {
                        "type": "object",
                        "maxProperties": 200,
                        "additionalProperties": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "description": "Keys are lowercase three-letter currencies; each amount remains separate.",
                        "x-unisoft-map-key-pattern": "^[a-z]{3}$"
                      },
                      "value": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "periodLabel": {
                        "type": "string",
                        "maxLength": 256
                      }
                    }
                  },
                  "previous": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "byDevise",
                      "value",
                      "periodLabel"
                    ],
                    "properties": {
                      "byDevise": {
                        "type": "object",
                        "maxProperties": 200,
                        "additionalProperties": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "description": "Keys are lowercase three-letter currencies; each amount remains separate.",
                        "x-unisoft-map-key-pattern": "^[a-z]{3}$"
                      },
                      "value": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "periodLabel": {
                        "type": "string",
                        "maxLength": 256
                      }
                    }
                  },
                  "deltaPct": {
                    "type": "number",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991,
                    "nullable": true
                  },
                  "direction": {
                    "type": "string",
                    "enum": [
                      "up",
                      "down",
                      "flat"
                    ]
                  }
                },
                "nullable": true
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "metricLabel",
                  "value",
                  "devise",
                  "percentile",
                  "rank",
                  "of",
                  "median"
                ],
                "properties": {
                  "metricLabel": {
                    "type": "string",
                    "maxLength": 256
                  },
                  "value": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "byDevise"
                    ],
                    "properties": {
                      "byDevise": {
                        "type": "object",
                        "maxProperties": 200,
                        "additionalProperties": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "description": "Keys are lowercase three-letter currencies; each amount remains separate.",
                        "x-unisoft-map-key-pattern": "^[a-z]{3}$"
                      }
                    }
                  },
                  "devise": {
                    "type": "string",
                    "pattern": "^[a-z]{3}$"
                  },
                  "percentile": {
                    "type": "number",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "rank": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "of": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "median": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "byDevise"
                    ],
                    "properties": {
                      "byDevise": {
                        "type": "object",
                        "maxProperties": 200,
                        "additionalProperties": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "description": "Keys are lowercase three-letter currencies; each amount remains separate.",
                        "x-unisoft-map-key-pattern": "^[a-z]{3}$"
                      }
                    }
                  }
                },
                "nullable": true
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "points",
                  "headline",
                  "donors",
                  "devise"
                ],
                "properties": {
                  "points": {
                    "type": "array",
                    "maxItems": 10,
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "p",
                        "cum"
                      ],
                      "properties": {
                        "p": {
                          "type": "number",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        "cum": {
                          "type": "number",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        }
                      }
                    }
                  },
                  "headline": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "topPct",
                      "sharePct"
                    ],
                    "properties": {
                      "topPct": {
                        "type": "number",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "sharePct": {
                        "type": "number",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      }
                    }
                  },
                  "donors": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "devise": {
                    "type": "string",
                    "pattern": "^[a-z]{3}$"
                  }
                },
                "nullable": true
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "rows",
                  "scores"
                ],
                "properties": {
                  "rows": {
                    "type": "array",
                    "maxItems": 20,
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "label",
                        "value"
                      ],
                      "properties": {
                        "label": {
                          "type": "string",
                          "maxLength": 256
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "maxLength": 256
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "money"
                              ],
                              "properties": {
                                "money": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "byDevise"
                                  ],
                                  "properties": {
                                    "byDevise": {
                                      "type": "object",
                                      "maxProperties": 200,
                                      "additionalProperties": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "description": "Keys are lowercase three-letter currencies; each amount remains separate.",
                                      "x-unisoft-map-key-pattern": "^[a-z]{3}$"
                                    }
                                  }
                                }
                              }
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "duration"
                              ],
                              "properties": {
                                "duration": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "n",
                                    "unit"
                                  ],
                                  "properties": {
                                    "n": {
                                      "type": "number",
                                      "minimum": -9007199254740991,
                                      "maximum": 9007199254740991
                                    },
                                    "unit": {
                                      "type": "string",
                                      "enum": [
                                        "days"
                                      ]
                                    }
                                  }
                                }
                              }
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "ratio"
                              ],
                              "properties": {
                                "ratio": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "n",
                                    "of"
                                  ],
                                  "properties": {
                                    "n": {
                                      "type": "number",
                                      "minimum": -9007199254740991,
                                      "maximum": 9007199254740991
                                    },
                                    "of": {
                                      "type": "number",
                                      "minimum": -9007199254740991,
                                      "maximum": 9007199254740991
                                    }
                                  }
                                }
                              }
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "cadence"
                              ],
                              "properties": {
                                "cadence": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "days"
                                  ],
                                  "properties": {
                                    "days": {
                                      "type": "number",
                                      "minimum": -9007199254740991,
                                      "maximum": 9007199254740991
                                    }
                                  }
                                }
                              }
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "number"
                              ],
                              "properties": {
                                "number": {
                                  "type": "number",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                }
                              }
                            }
                          ]
                        },
                        "bar": {
                          "type": "number",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        }
                      }
                    }
                  },
                  "scores": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "recency",
                      "frequency",
                      "monetary"
                    ],
                    "properties": {
                      "recency": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "frequency": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "monetary": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    }
                  },
                  "lastDonationAt": {
                    "type": "string",
                    "format": "date-time",
                    "nullable": true
                  }
                },
                "nullable": true
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "rows",
                  "intervalMedianDays",
                  "perYear"
                ],
                "properties": {
                  "rows": {
                    "type": "array",
                    "maxItems": 20,
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "label",
                        "value"
                      ],
                      "properties": {
                        "label": {
                          "type": "string",
                          "maxLength": 256
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "maxLength": 256
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "money"
                              ],
                              "properties": {
                                "money": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "byDevise"
                                  ],
                                  "properties": {
                                    "byDevise": {
                                      "type": "object",
                                      "maxProperties": 200,
                                      "additionalProperties": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "description": "Keys are lowercase three-letter currencies; each amount remains separate.",
                                      "x-unisoft-map-key-pattern": "^[a-z]{3}$"
                                    }
                                  }
                                }
                              }
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "duration"
                              ],
                              "properties": {
                                "duration": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "n",
                                    "unit"
                                  ],
                                  "properties": {
                                    "n": {
                                      "type": "number",
                                      "minimum": -9007199254740991,
                                      "maximum": 9007199254740991
                                    },
                                    "unit": {
                                      "type": "string",
                                      "enum": [
                                        "days"
                                      ]
                                    }
                                  }
                                }
                              }
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "ratio"
                              ],
                              "properties": {
                                "ratio": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "n",
                                    "of"
                                  ],
                                  "properties": {
                                    "n": {
                                      "type": "number",
                                      "minimum": -9007199254740991,
                                      "maximum": 9007199254740991
                                    },
                                    "of": {
                                      "type": "number",
                                      "minimum": -9007199254740991,
                                      "maximum": 9007199254740991
                                    }
                                  }
                                }
                              }
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "cadence"
                              ],
                              "properties": {
                                "cadence": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "days"
                                  ],
                                  "properties": {
                                    "days": {
                                      "type": "number",
                                      "minimum": -9007199254740991,
                                      "maximum": 9007199254740991
                                    }
                                  }
                                }
                              }
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "number"
                              ],
                              "properties": {
                                "number": {
                                  "type": "number",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                }
                              }
                            }
                          ]
                        },
                        "bar": {
                          "type": "number",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        }
                      }
                    }
                  },
                  "intervalMedianDays": {
                    "type": "number",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991,
                    "nullable": true
                  },
                  "perYear": {
                    "type": "number",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991,
                    "nullable": true
                  }
                },
                "nullable": true
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "rows",
                  "biggest",
                  "latest"
                ],
                "properties": {
                  "rows": {
                    "type": "array",
                    "maxItems": 20,
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "label",
                        "value"
                      ],
                      "properties": {
                        "label": {
                          "type": "string",
                          "maxLength": 256
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "maxLength": 256
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "money"
                              ],
                              "properties": {
                                "money": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "byDevise"
                                  ],
                                  "properties": {
                                    "byDevise": {
                                      "type": "object",
                                      "maxProperties": 200,
                                      "additionalProperties": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "description": "Keys are lowercase three-letter currencies; each amount remains separate.",
                                      "x-unisoft-map-key-pattern": "^[a-z]{3}$"
                                    }
                                  }
                                }
                              }
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "duration"
                              ],
                              "properties": {
                                "duration": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "n",
                                    "unit"
                                  ],
                                  "properties": {
                                    "n": {
                                      "type": "number",
                                      "minimum": -9007199254740991,
                                      "maximum": 9007199254740991
                                    },
                                    "unit": {
                                      "type": "string",
                                      "enum": [
                                        "days"
                                      ]
                                    }
                                  }
                                }
                              }
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "ratio"
                              ],
                              "properties": {
                                "ratio": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "n",
                                    "of"
                                  ],
                                  "properties": {
                                    "n": {
                                      "type": "number",
                                      "minimum": -9007199254740991,
                                      "maximum": 9007199254740991
                                    },
                                    "of": {
                                      "type": "number",
                                      "minimum": -9007199254740991,
                                      "maximum": 9007199254740991
                                    }
                                  }
                                }
                              }
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "cadence"
                              ],
                              "properties": {
                                "cadence": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "days"
                                  ],
                                  "properties": {
                                    "days": {
                                      "type": "number",
                                      "minimum": -9007199254740991,
                                      "maximum": 9007199254740991
                                    }
                                  }
                                }
                              }
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "number"
                              ],
                              "properties": {
                                "number": {
                                  "type": "number",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                }
                              }
                            }
                          ]
                        },
                        "bar": {
                          "type": "number",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        }
                      }
                    }
                  },
                  "biggest": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "amount",
                      "devise",
                      "at"
                    ],
                    "properties": {
                      "amount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "devise": {
                        "type": "string",
                        "pattern": "^[a-z]{3}$"
                      },
                      "at": {
                        "type": "string",
                        "format": "date-time"
                      }
                    },
                    "nullable": true
                  },
                  "latest": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "amount",
                      "devise",
                      "at"
                    ],
                    "properties": {
                      "amount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "devise": {
                        "type": "string",
                        "pattern": "^[a-z]{3}$"
                      },
                      "at": {
                        "type": "string",
                        "format": "date-time"
                      }
                    },
                    "nullable": true
                  }
                },
                "nullable": true
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "Janvier",
                  "Février",
                  "Mars",
                  "Avril",
                  "Mai",
                  "Juin",
                  "Juillet",
                  "Août",
                  "Septembre",
                  "Octobre",
                  "Novembre",
                  "Décembre"
                ],
                "properties": {
                  "Janvier": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Février": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Mars": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Avril": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Mai": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Juin": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Juillet": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Août": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Septembre": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Octobre": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Novembre": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Décembre": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "__peakMonth": {
                    "type": "string",
                    "enum": [
                      "Janvier",
                      "Février",
                      "Mars",
                      "Avril",
                      "Mai",
                      "Juin",
                      "Juillet",
                      "Août",
                      "Septembre",
                      "Octobre",
                      "Novembre",
                      "Décembre"
                    ]
                  }
                }
              },
              {
                "type": "object",
                "maxProperties": 200,
                "additionalProperties": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "x-unisoft-map-key-pattern": "^[^\\u0000-\\u001f]{0,256}$"
              },
              {
                "type": "array",
                "maxItems": 10000,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "period",
                    "count"
                  ],
                  "properties": {
                    "period": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "count": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "total",
                  "local",
                  "pct"
                ],
                "properties": {
                  "total": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "local": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "pct": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "men",
                  "women",
                  "unknown"
                ],
                "properties": {
                  "men": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "women": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "unknown": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "total",
                  "withEmail",
                  "pct"
                ],
                "properties": {
                  "total": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "withEmail": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "pct": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "total",
                  "withTel",
                  "pct"
                ],
                "properties": {
                  "total": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "withTel": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "pct": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "total",
                  "addressable",
                  "pct"
                ],
                "properties": {
                  "total": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "addressable": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "pct": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  }
                }
              },
              {
                "type": "array",
                "maxItems": 100,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "key",
                    "count"
                  ],
                  "properties": {
                    "key": {
                      "type": "string",
                      "maxLength": 256
                    },
                    "count": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "total",
                  "withAccount",
                  "pct"
                ],
                "properties": {
                  "total": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "withAccount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "pct": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  }
                }
              },
              {
                "type": "array",
                "maxItems": 7,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "range",
                    "count"
                  ],
                  "properties": {
                    "range": {
                      "type": "string",
                      "enum": [
                        "0-17",
                        "18-25",
                        "26-40",
                        "41-60",
                        "61-80",
                        "80+",
                        "other"
                      ]
                    },
                    "count": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "total",
                  "donors",
                  "pct"
                ],
                "properties": {
                  "total": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "donors": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "pct": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  }
                }
              },
              {
                "nullable": true,
                "type": "object",
                "oneOf": [
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "score",
                      "filled",
                      "missing"
                    ],
                    "properties": {
                      "score": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "filled": {
                        "type": "array",
                        "maxItems": 4,
                        "items": {
                          "type": "string",
                          "enum": [
                            "email",
                            "tel",
                            "adresse",
                            "ddn"
                          ]
                        }
                      },
                      "missing": {
                        "type": "array",
                        "maxItems": 4,
                        "items": {
                          "type": "string",
                          "enum": [
                            "email",
                            "tel",
                            "adresse",
                            "ddn"
                          ]
                        }
                      }
                    }
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "avgScore",
                      "byFieldPct",
                      "contacts"
                    ],
                    "properties": {
                      "avgScore": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 100
                      },
                      "byFieldPct": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "email",
                          "tel",
                          "adresse",
                          "ddn"
                        ],
                        "properties": {
                          "email": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "tel": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "adresse": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100
                          },
                          "ddn": {
                            "type": "number",
                            "minimum": 0,
                            "maximum": 100
                          }
                        }
                      },
                      "contacts": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    }
                  }
                ]
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "rows"
                ],
                "properties": {
                  "rows": {
                    "type": "array",
                    "maxItems": 5,
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "label",
                        "value"
                      ],
                      "properties": {
                        "label": {
                          "type": "string",
                          "maxLength": 256
                        },
                        "value": {
                          "oneOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "number"
                              ],
                              "properties": {
                                "number": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              }
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "pct"
                              ],
                              "properties": {
                                "pct": {
                                  "type": "number",
                                  "minimum": 0,
                                  "maximum": 100
                                }
                              }
                            }
                          ]
                        },
                        "bar": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 100
                        }
                      }
                    }
                  }
                },
                "nullable": true
              },
              {
                "type": "object",
                "maxProperties": 200,
                "additionalProperties": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "rentree",
                    "charges",
                    "net"
                  ],
                  "properties": {
                    "rentree": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 90071992547409.9
                    },
                    "charges": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 90071992547409.9
                    },
                    "net": {
                      "type": "number",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    }
                  }
                },
                "x-unisoft-map-key-pattern": "^[a-z]{3}$"
              },
              {
                "type": "array",
                "maxItems": 1000,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "period",
                    "byDevise",
                    "count"
                  ],
                  "properties": {
                    "period": {
                      "type": "string",
                      "maxLength": 256
                    },
                    "byDevise": {
                      "type": "object",
                      "maxProperties": 200,
                      "additionalProperties": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 90071992547409.9
                      },
                      "x-unisoft-map-key-pattern": "^[a-z]{3}$"
                    },
                    "count": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  }
                }
              },
              {
                "type": "array",
                "maxItems": 1000,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "key",
                    "byDevise"
                  ],
                  "properties": {
                    "key": {
                      "type": "string",
                      "maxLength": 256
                    },
                    "byDevise": {
                      "type": "object",
                      "maxProperties": 200,
                      "additionalProperties": {
                        "type": "number",
                        "minimum": 0,
                        "maximum": 90071992547409.9
                      },
                      "x-unisoft-map-key-pattern": "^[a-z]{3}$"
                    }
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "rentree",
                  "charges",
                  "inter",
                  "total"
                ],
                "properties": {
                  "rentree": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "charges": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "inter": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "total": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                }
              },
              {
                "type": "array",
                "maxItems": 10000,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "channel",
                    "period",
                    "count"
                  ],
                  "properties": {
                    "channel": {
                      "type": "string",
                      "maxLength": 64
                    },
                    "period": {
                      "type": "string",
                      "pattern": "^\\d{4}-(?:0[1-9]|1[0-2])$"
                    },
                    "count": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "unsubscribed",
                  "emailBase",
                  "pct"
                ],
                "properties": {
                  "unsubscribed": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "emailBase": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "pct": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "sent",
                  "success",
                  "error",
                  "successPct",
                  "errorPct"
                ],
                "properties": {
                  "sent": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "success": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "error": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "successPct": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  },
                  "errorPct": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  }
                }
              },
              {
                "type": "array",
                "maxItems": 10000,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "key",
                    "count"
                  ],
                  "properties": {
                    "key": {
                      "type": "string",
                      "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]{0,127}$",
                      "maxLength": 128
                    },
                    "count": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "whatsappSent",
                  "delivered",
                  "pct"
                ],
                "properties": {
                  "whatsappSent": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "delivered": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "pct": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "delivered",
                  "read",
                  "pct"
                ],
                "properties": {
                  "delivered": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "read": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "pct": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "emailsSent",
                  "opened",
                  "pct"
                ],
                "properties": {
                  "emailsSent": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "opened": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "pct": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "VALIDE",
                  "SUBMIT",
                  "INVALIDE",
                  "ARCHIVED"
                ],
                "properties": {
                  "VALIDE": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "SUBMIT": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "INVALIDE": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "ARCHIVED": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "valide",
                  "total",
                  "pct"
                ],
                "properties": {
                  "valide": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "total": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "pct": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  }
                }
              },
              {
                "type": "object",
                "maxProperties": 200,
                "additionalProperties": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "engaged",
                    "paid",
                    "reste"
                  ],
                  "properties": {
                    "engaged": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "paid": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "reste": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  }
                },
                "x-unisoft-map-key-pattern": "^[a-z]{3}$"
              },
              {
                "type": "array",
                "maxItems": 1000,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "id",
                    "label",
                    "quantity",
                    "amount"
                  ],
                  "properties": {
                    "id": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "label": {
                      "type": "string",
                      "maxLength": 1000
                    },
                    "quantity": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "amount": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "categories",
                  "totalQuantity",
                  "totalAmount"
                ],
                "properties": {
                  "categories": {
                    "type": "array",
                    "maxItems": 1000,
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "categoryId",
                        "categoryName",
                        "totalQuantity",
                        "totalAmount"
                      ],
                      "properties": {
                        "categoryId": {
                          "type": "string",
                          "maxLength": 128,
                          "nullable": true
                        },
                        "categoryName": {
                          "type": "string",
                          "maxLength": 1000
                        },
                        "totalQuantity": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "totalAmount": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        }
                      }
                    }
                  },
                  "totalQuantity": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "totalAmount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "capacity",
                  "occupied",
                  "pct"
                ],
                "properties": {
                  "capacity": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "occupied": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "pct": {
                    "type": "number",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  }
                },
                "nullable": true
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "open",
                  "startEventDate",
                  "cutoffHours",
                  "daysToCutoff"
                ],
                "properties": {
                  "open": {
                    "type": "boolean"
                  },
                  "startEventDate": {
                    "type": "string",
                    "format": "date-time",
                    "nullable": true
                  },
                  "cutoffHours": {
                    "type": "number",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "daysToCutoff": {
                    "type": "number",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991,
                    "nullable": true
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "total",
                  "active",
                  "pct"
                ],
                "properties": {
                  "total": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "active": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "pct": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 100
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "rows",
                  "count",
                  "lastEventAt"
                ],
                "properties": {
                  "rows": {
                    "type": "array",
                    "maxItems": 4,
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "label",
                        "value"
                      ],
                      "properties": {
                        "label": {
                          "type": "string",
                          "maxLength": 256
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "maxLength": 256
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "number"
                              ],
                              "properties": {
                                "number": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              }
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "ratePerYear"
                              ],
                              "properties": {
                                "ratePerYear": {
                                  "type": "number",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                }
                              }
                            }
                          ]
                        }
                      }
                    }
                  },
                  "count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "lastEventAt": {
                    "type": "string",
                    "format": "date-time",
                    "nullable": true
                  }
                }
              },
              {
                "type": "array",
                "maxItems": 10000,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "period",
                    "count"
                  ],
                  "properties": {
                    "period": {
                      "type": "string",
                      "maxLength": 256
                    },
                    "count": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "active",
                  "finished",
                  "churnPct"
                ],
                "properties": {
                  "active": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "finished": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "churnPct": {
                    "type": "number",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  }
                }
              },
              {
                "type": "object",
                "maxProperties": 100,
                "additionalProperties": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "x-unisoft-map-key-pattern": "^[^\\u0000-\\u001f]{0,256}$"
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "total",
                  "managed",
                  "pct"
                ],
                "properties": {
                  "total": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "managed": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "pct": {
                    "type": "number",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "label",
                  "unit",
                  "devise",
                  "current",
                  "previous",
                  "deltaPct",
                  "direction"
                ],
                "properties": {
                  "label": {
                    "type": "string",
                    "maxLength": 256
                  },
                  "unit": {
                    "type": "string",
                    "enum": [
                      "money"
                    ]
                  },
                  "devise": {
                    "type": "string",
                    "pattern": "^[a-z]{3}$"
                  },
                  "current": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "byDevise",
                      "value",
                      "periodLabel"
                    ],
                    "properties": {
                      "byDevise": {
                        "type": "object",
                        "maxProperties": 200,
                        "additionalProperties": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "description": "Keys are lowercase three-letter currencies; each amount remains separate.",
                        "x-unisoft-map-key-pattern": "^[a-z]{3}$"
                      },
                      "value": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "periodLabel": {
                        "type": "string",
                        "maxLength": 256
                      }
                    }
                  },
                  "previous": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "byDevise",
                      "value",
                      "periodLabel"
                    ],
                    "properties": {
                      "byDevise": {
                        "type": "object",
                        "maxProperties": 200,
                        "additionalProperties": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "description": "Keys are lowercase three-letter currencies; each amount remains separate.",
                        "x-unisoft-map-key-pattern": "^[a-z]{3}$"
                      },
                      "value": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "periodLabel": {
                        "type": "string",
                        "maxLength": 256
                      }
                    }
                  },
                  "deltaPct": {
                    "type": "number",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991,
                    "nullable": true
                  },
                  "direction": {
                    "type": "string",
                    "enum": [
                      "up",
                      "down",
                      "flat"
                    ]
                  }
                }
              },
              {
                "type": "array",
                "maxItems": 24,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "period",
                    "byDevise",
                    "count"
                  ],
                  "properties": {
                    "period": {
                      "type": "string",
                      "maxLength": 256
                    },
                    "byDevise": {
                      "type": "object",
                      "maxProperties": 200,
                      "additionalProperties": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "description": "Keys are lowercase three-letter currencies; each amount remains separate.",
                      "x-unisoft-map-key-pattern": "^[a-z]{3}$"
                    },
                    "count": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "rows",
                  "ltvByDevise",
                  "avgByDevise",
                  "churnMonthlyPct",
                  "lifetimeMonths",
                  "devise"
                ],
                "properties": {
                  "rows": {
                    "type": "array",
                    "maxItems": 10,
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "label",
                        "value"
                      ],
                      "properties": {
                        "label": {
                          "type": "string",
                          "maxLength": 256
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "maxLength": 256
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "money"
                              ],
                              "properties": {
                                "money": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "byDevise"
                                  ],
                                  "properties": {
                                    "byDevise": {
                                      "type": "object",
                                      "maxProperties": 200,
                                      "additionalProperties": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "description": "Keys are lowercase three-letter currencies; each amount remains separate.",
                                      "x-unisoft-map-key-pattern": "^[a-z]{3}$"
                                    }
                                  }
                                }
                              }
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "duration"
                              ],
                              "properties": {
                                "duration": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "n",
                                    "unit"
                                  ],
                                  "properties": {
                                    "n": {
                                      "type": "number",
                                      "minimum": -9007199254740991,
                                      "maximum": 9007199254740991
                                    },
                                    "unit": {
                                      "type": "string",
                                      "enum": [
                                        "months"
                                      ]
                                    }
                                  }
                                }
                              }
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "pct"
                              ],
                              "properties": {
                                "pct": {
                                  "type": "number",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                }
                              }
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "number"
                              ],
                              "properties": {
                                "number": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              }
                            }
                          ]
                        }
                      }
                    }
                  },
                  "ltvByDevise": {
                    "type": "object",
                    "maxProperties": 200,
                    "additionalProperties": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "description": "Keys are lowercase three-letter currencies; each amount remains separate.",
                    "x-unisoft-map-key-pattern": "^[a-z]{3}$"
                  },
                  "avgByDevise": {
                    "type": "object",
                    "maxProperties": 200,
                    "additionalProperties": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "description": "Keys are lowercase three-letter currencies; each amount remains separate.",
                    "x-unisoft-map-key-pattern": "^[a-z]{3}$"
                  },
                  "churnMonthlyPct": {
                    "type": "number",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "lifetimeMonths": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "devise": {
                    "type": "string",
                    "pattern": "^[a-z]{3}$"
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "rows",
                  "avgMonths",
                  "medianMonths",
                  "count"
                ],
                "properties": {
                  "rows": {
                    "type": "array",
                    "maxItems": 10,
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "label",
                        "value"
                      ],
                      "properties": {
                        "label": {
                          "type": "string",
                          "maxLength": 256
                        },
                        "value": {
                          "anyOf": [
                            {
                              "type": "string",
                              "maxLength": 256
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "money"
                              ],
                              "properties": {
                                "money": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "byDevise"
                                  ],
                                  "properties": {
                                    "byDevise": {
                                      "type": "object",
                                      "maxProperties": 200,
                                      "additionalProperties": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "description": "Keys are lowercase three-letter currencies; each amount remains separate.",
                                      "x-unisoft-map-key-pattern": "^[a-z]{3}$"
                                    }
                                  }
                                }
                              }
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "duration"
                              ],
                              "properties": {
                                "duration": {
                                  "type": "object",
                                  "additionalProperties": false,
                                  "required": [
                                    "n",
                                    "unit"
                                  ],
                                  "properties": {
                                    "n": {
                                      "type": "number",
                                      "minimum": -9007199254740991,
                                      "maximum": 9007199254740991
                                    },
                                    "unit": {
                                      "type": "string",
                                      "enum": [
                                        "months"
                                      ]
                                    }
                                  }
                                }
                              }
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "pct"
                              ],
                              "properties": {
                                "pct": {
                                  "type": "number",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                }
                              }
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "number"
                              ],
                              "properties": {
                                "number": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              }
                            }
                          ]
                        }
                      }
                    }
                  },
                  "avgMonths": {
                    "type": "number",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991,
                    "nullable": true
                  },
                  "medianMonths": {
                    "type": "number",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991,
                    "nullable": true
                  },
                  "count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "rows",
                  "cohorts"
                ],
                "properties": {
                  "rows": {
                    "type": "array",
                    "maxItems": 12,
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "labelPrefix",
                        "period",
                        "value",
                        "bar"
                      ],
                      "properties": {
                        "labelPrefix": {
                          "type": "string",
                          "maxLength": 256
                        },
                        "period": {
                          "type": "string",
                          "maxLength": 256
                        },
                        "value": {
                          "type": "object",
                          "additionalProperties": false,
                          "required": [
                            "retention"
                          ],
                          "properties": {
                            "retention": {
                              "type": "object",
                              "additionalProperties": false,
                              "required": [
                                "active",
                                "total",
                                "pct"
                              ],
                              "properties": {
                                "active": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "total": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "pct": {
                                  "type": "number",
                                  "minimum": -9007199254740991,
                                  "maximum": 9007199254740991
                                }
                              }
                            }
                          }
                        },
                        "bar": {
                          "type": "number",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        }
                      }
                    }
                  },
                  "cohorts": {
                    "type": "array",
                    "maxItems": 12,
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "period",
                        "total",
                        "active",
                        "retentionPct"
                      ],
                      "properties": {
                        "period": {
                          "type": "string",
                          "maxLength": 256
                        },
                        "total": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "active": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "retentionPct": {
                          "type": "number",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        }
                      }
                    }
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "active",
                  "withPayment",
                  "reactivated",
                  "ratePct"
                ],
                "properties": {
                  "active": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "withPayment": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "reactivated": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "ratePct": {
                    "type": "number",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991,
                    "nullable": true
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "0–10 €",
                  "10–25 €",
                  "25–50 €",
                  "50–100 €",
                  "100 € +"
                ],
                "properties": {
                  "0–10 €": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "10–25 €": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "25–50 €": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "50–100 €": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "100 € +": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "label",
                  "unit",
                  "a",
                  "b",
                  "ratio",
                  "deltaPct",
                  "direction",
                  "net"
                ],
                "properties": {
                  "label": {
                    "type": "string",
                    "maxLength": 256
                  },
                  "unit": {
                    "type": "string",
                    "enum": [
                      "number"
                    ]
                  },
                  "a": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "label",
                      "value"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "maxLength": 256
                      },
                      "value": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    }
                  },
                  "b": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "label",
                      "value"
                    ],
                    "properties": {
                      "label": {
                        "type": "string",
                        "maxLength": 256
                      },
                      "value": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    }
                  },
                  "ratio": {
                    "type": "number",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991,
                    "nullable": true
                  },
                  "deltaPct": {
                    "type": "number",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991,
                    "nullable": true
                  },
                  "direction": {
                    "type": "string",
                    "enum": [
                      "up",
                      "down",
                      "flat"
                    ]
                  },
                  "net": {
                    "type": "number",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  }
                }
              },
              {
                "type": "array",
                "maxItems": 15,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "contactId",
                    "label",
                    "byDevise",
                    "rankTotal",
                    "count"
                  ],
                  "properties": {
                    "contactId": {
                      "type": "string",
                      "maxLength": 256
                    },
                    "label": {
                      "type": "string",
                      "maxLength": 1000
                    },
                    "byDevise": {
                      "type": "object",
                      "maxProperties": 200,
                      "additionalProperties": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "description": "Keys are lowercase three-letter currencies; each amount remains separate.",
                      "x-unisoft-map-key-pattern": "^[a-z]{3}$"
                    },
                    "rankTotal": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "count": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "count",
                  "cardExpired",
                  "paused"
                ],
                "properties": {
                  "count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "cardExpired": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "paused": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "count",
                  "monthlyByDevise"
                ],
                "properties": {
                  "count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "monthlyByDevise": {
                    "type": "object",
                    "maxProperties": 200,
                    "additionalProperties": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "description": "Keys are lowercase three-letter currencies; each amount remains separate.",
                    "x-unisoft-map-key-pattern": "^[a-z]{3}$"
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "since",
                  "days"
                ],
                "properties": {
                  "since": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "days": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "nullable": true
              },
              {
                "type": "object",
                "maxProperties": 200,
                "additionalProperties": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "payed",
                    "montant",
                    "ratePct"
                  ],
                  "properties": {
                    "payed": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 90071992547409.9
                    },
                    "montant": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 90071992547409.9
                    },
                    "ratePct": {
                      "type": "number",
                      "minimum": -9007199254740991,
                      "maximum": 9007199254740991
                    }
                  }
                },
                "x-unisoft-map-key-pattern": "^[a-z]{3}$"
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "OPEN",
                  "PARTIAL",
                  "FULFILLED",
                  "COVERED",
                  "CANCELED"
                ],
                "properties": {
                  "OPEN": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "PARTIAL": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "FULFILLED": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "COVERED": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "CANCELED": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "avgDays",
                  "count"
                ],
                "properties": {
                  "avgDays": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "total",
                  "canceled",
                  "pct"
                ],
                "properties": {
                  "total": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "canceled": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "pct": {
                    "type": "number",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "0-30 j",
                  "30-90 j",
                  "90-180 j",
                  "180-365 j",
                  "365 j +",
                  "__buckets"
                ],
                "properties": {
                  "0-30 j": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "30-90 j": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "90-180 j": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "180-365 j": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "365 j +": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "__buckets": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "0-30 j",
                      "30-90 j",
                      "90-180 j",
                      "180-365 j",
                      "365 j +"
                    ],
                    "properties": {
                      "0-30 j": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "count",
                          "byDevise"
                        ],
                        "properties": {
                          "count": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "byDevise": {
                            "type": "object",
                            "maxProperties": 200,
                            "additionalProperties": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "description": "Keys are lowercase three-letter currencies; each amount remains separate.",
                            "x-unisoft-map-key-pattern": "^[a-z]{3}$"
                          }
                        }
                      },
                      "30-90 j": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "count",
                          "byDevise"
                        ],
                        "properties": {
                          "count": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "byDevise": {
                            "type": "object",
                            "maxProperties": 200,
                            "additionalProperties": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "description": "Keys are lowercase three-letter currencies; each amount remains separate.",
                            "x-unisoft-map-key-pattern": "^[a-z]{3}$"
                          }
                        }
                      },
                      "90-180 j": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "count",
                          "byDevise"
                        ],
                        "properties": {
                          "count": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "byDevise": {
                            "type": "object",
                            "maxProperties": 200,
                            "additionalProperties": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "description": "Keys are lowercase three-letter currencies; each amount remains separate.",
                            "x-unisoft-map-key-pattern": "^[a-z]{3}$"
                          }
                        }
                      },
                      "180-365 j": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "count",
                          "byDevise"
                        ],
                        "properties": {
                          "count": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "byDevise": {
                            "type": "object",
                            "maxProperties": 200,
                            "additionalProperties": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "description": "Keys are lowercase three-letter currencies; each amount remains separate.",
                            "x-unisoft-map-key-pattern": "^[a-z]{3}$"
                          }
                        }
                      },
                      "365 j +": {
                        "type": "object",
                        "additionalProperties": false,
                        "required": [
                          "count",
                          "byDevise"
                        ],
                        "properties": {
                          "count": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "byDevise": {
                            "type": "object",
                            "maxProperties": 200,
                            "additionalProperties": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "description": "Keys are lowercase three-letter currencies; each amount remains separate.",
                            "x-unisoft-map-key-pattern": "^[a-z]{3}$"
                          }
                        }
                      }
                    }
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "steps"
                ],
                "properties": {
                  "steps": {
                    "type": "array",
                    "maxItems": 3,
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "label",
                        "value",
                        "pct"
                      ],
                      "properties": {
                        "label": {
                          "type": "string",
                          "maxLength": 256
                        },
                        "value": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "pct": {
                          "type": "number",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        }
                      }
                    }
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "fulfilled",
                  "total",
                  "pct"
                ],
                "properties": {
                  "fulfilled": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "total": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "pct": {
                    "type": "number",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "Janvier",
                  "Février",
                  "Mars",
                  "Avril",
                  "Mai",
                  "Juin",
                  "Juillet",
                  "Août",
                  "Septembre",
                  "Octobre",
                  "Novembre",
                  "Décembre",
                  "__peakMonth"
                ],
                "properties": {
                  "Janvier": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Février": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Mars": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Avril": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Mai": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Juin": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Juillet": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Août": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Septembre": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Octobre": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Novembre": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "Décembre": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "__peakMonth": {
                    "type": "string",
                    "nullable": true,
                    "enum": [
                      "Janvier",
                      "Février",
                      "Mars",
                      "Avril",
                      "Mai",
                      "Juin",
                      "Juillet",
                      "Août",
                      "Septembre",
                      "Octobre",
                      "Novembre",
                      "Décembre",
                      null
                    ]
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "donors",
                  "points",
                  "headline"
                ],
                "properties": {
                  "donors": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "points": {
                    "type": "array",
                    "maxItems": 10,
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "p",
                        "cum"
                      ],
                      "properties": {
                        "p": {
                          "type": "number",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        },
                        "cum": {
                          "type": "number",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991
                        }
                      }
                    }
                  },
                  "headline": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "topPct",
                      "sharePct"
                    ],
                    "properties": {
                      "topPct": {
                        "type": "number",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      "sharePct": {
                        "type": "number",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      }
                    }
                  }
                },
                "nullable": true
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "count",
                  "byDevise"
                ],
                "properties": {
                  "count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "byDevise": {
                    "type": "object",
                    "maxProperties": 200,
                    "additionalProperties": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "description": "Keys are lowercase three-letter currencies; each amount remains separate.",
                    "x-unisoft-map-key-pattern": "^[a-z]{3}$"
                  }
                }
              },
              {
                "type": "object",
                "maxProperties": 1000,
                "additionalProperties": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "x-unisoft-map-key-pattern": "^[^\\u0000-\\u001f]{0,256}$"
              },
              {
                "type": "object",
                "minProperties": 2,
                "maxProperties": 2,
                "required": [
                  "count"
                ],
                "properties": {
                  "count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "additionalProperties": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "x-unisoft-map-key-pattern": "^(?:[a-z]{3}|count)$"
              },
              {
                "type": "array",
                "maxItems": 100,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "contactId",
                    "label",
                    "byDevise",
                    "rankTotal",
                    "count"
                  ],
                  "properties": {
                    "contactId": {
                      "type": "string",
                      "maxLength": 256
                    },
                    "label": {
                      "type": "string",
                      "maxLength": 1000
                    },
                    "byDevise": {
                      "type": "object",
                      "maxProperties": 200,
                      "additionalProperties": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "description": "Keys are lowercase three-letter currencies; each amount remains separate.",
                      "x-unisoft-map-key-pattern": "^[a-z]{3}$"
                    },
                    "rankTotal": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "count": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "total",
                  "fulfilled",
                  "pending",
                  "pct"
                ],
                "properties": {
                  "total": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "fulfilled": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "pending": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "pct": {
                    "type": "number",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  }
                },
                "nullable": true
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "active",
                  "total"
                ],
                "properties": {
                  "active": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "total": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "count"
                ],
                "properties": {
                  "count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "byDevise"
                ],
                "properties": {
                  "byDevise": {
                    "type": "object",
                    "maxProperties": 200,
                    "additionalProperties": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "description": "Keys are lowercase three-letter currencies; each amount remains separate.",
                    "x-unisoft-map-key-pattern": "^[a-z]{3}$"
                  },
                  "count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "label",
                  "unit",
                  "devise",
                  "current",
                  "previous",
                  "deltaPct",
                  "direction"
                ],
                "properties": {
                  "label": {
                    "type": "string",
                    "maxLength": 256
                  },
                  "unit": {
                    "type": "string",
                    "enum": [
                      "money"
                    ]
                  },
                  "devise": {
                    "type": "string",
                    "pattern": "^[a-z]{3}$"
                  },
                  "current": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "byDevise",
                      "value",
                      "count",
                      "periodLabel"
                    ],
                    "properties": {
                      "byDevise": {
                        "type": "object",
                        "maxProperties": 200,
                        "additionalProperties": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "description": "Keys are lowercase three-letter currencies; each amount remains separate.",
                        "x-unisoft-map-key-pattern": "^[a-z]{3}$"
                      },
                      "value": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "count": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "periodLabel": {
                        "type": "string",
                        "maxLength": 256
                      }
                    }
                  },
                  "previous": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "byDevise",
                      "value",
                      "count",
                      "periodLabel"
                    ],
                    "properties": {
                      "byDevise": {
                        "type": "object",
                        "maxProperties": 200,
                        "additionalProperties": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "description": "Keys are lowercase three-letter currencies; each amount remains separate.",
                        "x-unisoft-map-key-pattern": "^[a-z]{3}$"
                      },
                      "value": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "count": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "periodLabel": {
                        "type": "string",
                        "maxLength": 256
                      }
                    }
                  },
                  "deltaPct": {
                    "type": "number",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991,
                    "nullable": true
                  },
                  "direction": {
                    "type": "string",
                    "enum": [
                      "up",
                      "down",
                      "flat"
                    ]
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "donors"
                ],
                "properties": {
                  "donors": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                }
              },
              {
                "type": "array",
                "maxItems": 1000,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "source",
                    "total",
                    "count"
                  ],
                  "properties": {
                    "source": {
                      "type": "string",
                      "maxLength": 256
                    },
                    "total": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "count": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  }
                }
              },
              {
                "type": "array",
                "maxItems": 100,
                "items": {
                  "type": "object",
                  "additionalProperties": false,
                  "required": [
                    "contactId",
                    "total",
                    "label"
                  ],
                  "properties": {
                    "contactId": {
                      "type": "string",
                      "maxLength": 256
                    },
                    "total": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "label": {
                      "type": "string",
                      "maxLength": 1000
                    }
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "payed",
                  "montant",
                  "pct"
                ],
                "properties": {
                  "payed": {
                    "type": "number",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "montant": {
                    "type": "number",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  "pct": {
                    "type": "number",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  }
                }
              }
            ]
          },
          "meta": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "observedAt",
                  "computedAt",
                  "freshness",
                  "cacheHit",
                  "period",
                  "perimeter",
                  "units",
                  "sourceAdmission",
                  "dimensions"
                ],
                "properties": {
                  "observedAt": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Time the external result was observed. computedAt is null because the canonical definition exposes no reliable source timestamp; source freshness remains unknown."
                  },
                  "computedAt": {
                    "type": "string",
                    "nullable": true,
                    "enum": [
                      null
                    ]
                  },
                  "freshness": {
                    "type": "string",
                    "enum": [
                      "unknown"
                    ]
                  },
                  "cacheHit": {
                    "type": "boolean",
                    "enum": [
                      false
                    ]
                  },
                  "period": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "from",
                      "to",
                      "field",
                      "inclusive"
                    ],
                    "properties": {
                      "from": {
                        "type": "string",
                        "format": "date-time"
                      },
                      "to": {
                        "type": "string",
                        "format": "date-time"
                      },
                      "field": {
                        "type": "string",
                        "enum": [
                          "datetime"
                        ]
                      },
                      "inclusive": {
                        "type": "boolean",
                        "enum": [
                          true
                        ]
                      }
                    }
                  },
                  "perimeter": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "organisationId",
                      "scopeType",
                      "campaignRestricted"
                    ],
                    "properties": {
                      "organisationId": {
                        "type": "string"
                      },
                      "scopeType": {
                        "type": "string",
                        "enum": [
                          "global"
                        ]
                      },
                      "campaignRestricted": {
                        "type": "boolean",
                        "enum": [
                          false
                        ]
                      }
                    }
                  },
                  "units": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "count"
                    ],
                    "properties": {
                      "count": {
                        "type": "string",
                        "enum": [
                          "records",
                          "distinct_contact_identifiers"
                        ]
                      },
                      "amount": {
                        "type": "string",
                        "enum": [
                          "minor"
                        ]
                      },
                      "currencies": {
                        "type": "string",
                        "enum": [
                          "separate"
                        ]
                      }
                    }
                  },
                  "sourceAdmission": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "mode",
                      "maxRows"
                    ],
                    "properties": {
                      "mode": {
                        "type": "string",
                        "enum": [
                          "same_aggregation"
                        ]
                      },
                      "maxRows": {
                        "type": "integer",
                        "enum": [
                          10000
                        ]
                      }
                    }
                  },
                  "dimensions": {
                    "type": "array",
                    "maxItems": 1,
                    "items": {
                      "type": "string",
                      "enum": [
                        "day",
                        "week",
                        "month",
                        "year"
                      ]
                    }
                  }
                }
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "observedAt",
                  "computedAt",
                  "freshness",
                  "cacheHit",
                  "period",
                  "perimeter",
                  "units",
                  "dimensions",
                  "sourceAdmission"
                ],
                "properties": {
                  "observedAt": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "computedAt": {
                    "type": "string",
                    "nullable": true,
                    "enum": [
                      null
                    ]
                  },
                  "freshness": {
                    "type": "string",
                    "enum": [
                      "unknown"
                    ]
                  },
                  "cacheHit": {
                    "type": "boolean",
                    "enum": [
                      false
                    ]
                  },
                  "period": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "mode",
                      "field",
                      "description",
                      "timezone"
                    ],
                    "properties": {
                      "mode": {
                        "type": "string",
                        "enum": [
                          "range",
                          "fixed",
                          "all_time"
                        ]
                      },
                      "field": {
                        "type": "string",
                        "nullable": true
                      },
                      "description": {
                        "type": "string"
                      },
                      "timezone": {
                        "type": "string",
                        "nullable": true,
                        "enum": [
                          "UTC",
                          "SERVER_LOCAL",
                          null
                        ]
                      },
                      "from": {
                        "type": "string",
                        "format": "date-time"
                      },
                      "to": {
                        "type": "string",
                        "format": "date-time"
                      },
                      "inclusive": {
                        "type": "boolean",
                        "enum": [
                          true
                        ]
                      }
                    }
                  },
                  "perimeter": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "organisationId",
                      "scopeType",
                      "campaignRestricted"
                    ],
                    "properties": {
                      "organisationId": {
                        "type": "string"
                      },
                      "scopeType": {
                        "type": "string"
                      },
                      "campaignRestricted": {
                        "type": "boolean",
                        "enum": [
                          false
                        ]
                      },
                      "entityIds": {
                        "type": "array",
                        "minItems": 1,
                        "maxItems": 100,
                        "uniqueItems": true,
                        "items": {
                          "type": "string",
                          "format": "uuid"
                        }
                      }
                    }
                  },
                  "units": {
                    "type": "object",
                    "maxProperties": 10,
                    "additionalProperties": false,
                    "properties": {
                      "amount": {
                        "type": "string",
                        "maxLength": 100
                      },
                      "currencies": {
                        "type": "string",
                        "maxLength": 100
                      },
                      "count": {
                        "type": "string",
                        "maxLength": 100
                      },
                      "ratio": {
                        "type": "string",
                        "maxLength": 100
                      },
                      "duration": {
                        "type": "string",
                        "maxLength": 100
                      },
                      "score": {
                        "type": "string",
                        "maxLength": 100
                      },
                      "percentage": {
                        "type": "string",
                        "maxLength": 100
                      },
                      "meaning": {
                        "type": "string",
                        "maxLength": 100
                      },
                      "balance": {
                        "type": "string",
                        "maxLength": 100
                      },
                      "currency": {
                        "type": "string",
                        "pattern": "^[a-z]{3}$"
                      }
                    }
                  },
                  "dimensions": {
                    "type": "array",
                    "maxItems": 1,
                    "items": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "day",
                            "week",
                            "month",
                            "year"
                          ]
                        },
                        {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 1000000000
                        }
                      ]
                    }
                  },
                  "sourceAdmission": {
                    "type": "object",
                    "additionalProperties": false,
                    "required": [
                      "mode",
                      "maxRows",
                      "maxReads",
                      "maxTimeMS",
                      "crossReadSnapshot"
                    ],
                    "properties": {
                      "mode": {
                        "type": "string",
                        "enum": [
                          "same_aggregation_per_read"
                        ]
                      },
                      "maxRows": {
                        "type": "integer",
                        "enum": [
                          10000
                        ]
                      },
                      "maxReads": {
                        "type": "integer",
                        "enum": [
                          100
                        ]
                      },
                      "maxTimeMS": {
                        "type": "integer",
                        "enum": [
                          10000
                        ]
                      },
                      "crossReadSnapshot": {
                        "type": "boolean",
                        "enum": [
                          false
                        ]
                      }
                    }
                  }
                }
              }
            ]
          }
        }
      },
      "StatisticsRunError": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "success",
          "error"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          },
          "param": {
            "type": "string"
          }
        }
      },
      "UnisoftRequest_e393f12bc9c7560472d2": {
        "type": "object",
        "properties": {
          "statId": {
            "type": "string",
            "maxLength": 160,
            "pattern": "^[a-z][a-z0-9_]*(?:\\.[a-z][a-z0-9_]*)+$"
          },
          "range": {
            "allOf": [
              {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string",
                    "maxLength": 35,
                    "format": "date-time"
                  },
                  "to": {
                    "type": "string",
                    "maxLength": 35,
                    "format": "date-time"
                  }
                },
                "required": [
                  "from",
                  "to"
                ],
                "additionalProperties": false,
                "description": "Both inclusive instants require a timezone (Z or explicit offset); maximum interval 366 days. No implicit day-end or timezone conversion."
              }
            ],
            "type": "object",
            "properties": {
              "from": {},
              "to": {}
            },
            "additionalProperties": false
          },
          "dimensions": {
            "type": "array",
            "maxItems": 1,
            "items": {
              "anyOf": [
                {
                  "type": "string",
                  "enum": [
                    "day",
                    "week",
                    "month",
                    "year"
                  ]
                },
                {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 1000000000
                }
              ]
            }
          },
          "entityIds": {
            "type": "array",
            "minItems": 1,
            "maxItems": 100,
            "uniqueItems": true,
            "items": {
              "type": "string",
              "format": "uuid"
            }
          }
        },
        "required": [
          "statId"
        ],
        "additionalProperties": false
      },
      "StatisticsRunBatchResponse": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "success",
          "results"
        ],
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              true
            ]
          },
          "results": {
            "type": "array",
            "minItems": 1,
            "maxItems": 10,
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/StatisticsRunResult"
                },
                {
                  "$ref": "#/components/schemas/StatisticsRunFailure"
                }
              ]
            }
          }
        }
      },
      "StatisticsRunFailure": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "statId",
          "status",
          "error"
        ],
        "properties": {
          "statId": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "error"
            ]
          },
          "error": {
            "type": "string",
            "enum": [
              "STATISTIC_CALCULATION_FAILED",
              "INVALID_STATISTIC_RESULT"
            ]
          }
        }
      },
      "StatisticsSourceSnapshotResponse": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              true
            ]
          },
          "data": {
            "$ref": "#/components/schemas/StatisticsSourceSnapshotResult"
          }
        },
        "required": [
          "success",
          "data"
        ]
      },
      "StatisticsSourceSnapshotResult": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "statId": {
            "type": "string",
            "enum": [
              "global.donations.total_period",
              "global.donations.count",
              "global.donations.by_method",
              "global.donations.by_platform",
              "global.donations.by_type",
              "global.donations.by_source",
              "global.donations.time_series"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          },
          "result": {
            "$ref": "#/components/schemas/StatisticsSourceSnapshotRunResult"
          },
          "rows": {
            "type": "array",
            "maxItems": 200,
            "items": {
              "$ref": "#/components/schemas/StatisticsSourceSnapshotRow"
            }
          },
          "meta": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "totalRows": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              "count": {
                "type": "integer",
                "minimum": 0,
                "maximum": 200
              },
              "hasMore": {
                "type": "boolean"
              },
              "nextCursor": {
                "type": "string",
                "nullable": true,
                "maxLength": 2048
              },
              "sourceMeaning": {
                "type": "string",
                "enum": [
                  "RECORDED_COMPLETED_PAYMENTS_COMPOSING_THIS_CAPTURED_RESULT"
                ]
              },
              "sameCapture": {
                "type": "boolean",
                "enum": [
                  true
                ]
              },
              "historicalRunLinked": {
                "type": "boolean",
                "enum": [
                  false
                ]
              }
            },
            "required": [
              "totalRows",
              "count",
              "hasMore",
              "nextCursor",
              "sourceMeaning",
              "sameCapture",
              "historicalRunLinked"
            ]
          }
        },
        "required": [
          "id",
          "statId",
          "createdAt",
          "expiresAt",
          "result",
          "rows",
          "meta"
        ]
      },
      "StatisticsSourceSnapshotRunResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "statId",
          "status",
          "value",
          "meta"
        ],
        "properties": {
          "statId": {
            "type": "string",
            "enum": [
              "global.donations.total_period",
              "global.donations.count",
              "global.donations.by_method",
              "global.donations.by_platform",
              "global.donations.by_type",
              "global.donations.by_source",
              "global.donations.time_series"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "ok"
            ]
          },
          "value": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "byDevise",
                  "count"
                ],
                "properties": {
                  "byDevise": {
                    "type": "object",
                    "x-unisoft-map-key-pattern": "^[a-z]{3}$",
                    "maxProperties": 200,
                    "additionalProperties": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "count": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                }
              },
              {
                "type": "array",
                "maxItems": 1000,
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "key",
                        "byDevise",
                        "count"
                      ],
                      "properties": {
                        "key": {
                          "type": "string",
                          "maxLength": 256
                        },
                        "byDevise": {
                          "type": "object",
                          "x-unisoft-map-key-pattern": "^[a-z]{3}$",
                          "maxProperties": 200,
                          "additionalProperties": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "count": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        }
                      }
                    },
                    {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "period",
                        "byDevise",
                        "count"
                      ],
                      "properties": {
                        "period": {
                          "type": "string",
                          "maxLength": 256
                        },
                        "byDevise": {
                          "type": "object",
                          "x-unisoft-map-key-pattern": "^[a-z]{3}$",
                          "maxProperties": 200,
                          "additionalProperties": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "count": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        }
                      }
                    }
                  ]
                }
              }
            ]
          },
          "meta": {
            "$ref": "#/components/schemas/StatisticsRunMeta"
          }
        }
      },
      "StatisticsRunMeta": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "observedAt",
          "computedAt",
          "freshness",
          "cacheHit",
          "period",
          "perimeter",
          "units",
          "sourceAdmission",
          "dimensions"
        ],
        "properties": {
          "observedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Time the external result was observed. computedAt is null because the canonical definition exposes no reliable source timestamp; source freshness remains unknown."
          },
          "computedAt": {
            "type": "string",
            "nullable": true,
            "enum": [
              null
            ]
          },
          "freshness": {
            "type": "string",
            "enum": [
              "unknown"
            ]
          },
          "cacheHit": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "period": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "from",
              "to",
              "field",
              "inclusive"
            ],
            "properties": {
              "from": {
                "type": "string",
                "format": "date-time"
              },
              "to": {
                "type": "string",
                "format": "date-time"
              },
              "field": {
                "type": "string",
                "enum": [
                  "datetime"
                ]
              },
              "inclusive": {
                "type": "boolean",
                "enum": [
                  true
                ]
              }
            }
          },
          "perimeter": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "organisationId",
              "scopeType",
              "campaignRestricted"
            ],
            "properties": {
              "organisationId": {
                "type": "string"
              },
              "scopeType": {
                "type": "string",
                "enum": [
                  "global"
                ]
              },
              "campaignRestricted": {
                "type": "boolean",
                "enum": [
                  false
                ]
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "count"
            ],
            "properties": {
              "count": {
                "type": "string",
                "enum": [
                  "records",
                  "distinct_contact_identifiers"
                ]
              },
              "amount": {
                "type": "string",
                "enum": [
                  "minor"
                ]
              },
              "currencies": {
                "type": "string",
                "enum": [
                  "separate"
                ]
              }
            }
          },
          "sourceAdmission": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "mode",
              "maxRows"
            ],
            "properties": {
              "mode": {
                "type": "string",
                "enum": [
                  "same_aggregation"
                ]
              },
              "maxRows": {
                "type": "integer",
                "enum": [
                  10000
                ]
              }
            }
          },
          "dimensions": {
            "type": "array",
            "maxItems": 1,
            "items": {
              "type": "string",
              "enum": [
                "day",
                "week",
                "month",
                "year"
              ]
            }
          }
        }
      },
      "StatisticsSourceSnapshotRow": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "paymentId": {
            "type": "string",
            "format": "uuid"
          },
          "recordedAt": {
            "type": "string",
            "format": "date-time"
          },
          "state": {
            "type": "string",
            "enum": [
              "COMPLETED"
            ]
          },
          "amountMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "currency": {
            "type": "string",
            "pattern": "^[a-z]{3}$"
          },
          "dimension": {
            "type": "string",
            "maxLength": 256
          }
        },
        "required": [
          "paymentId",
          "recordedAt",
          "state"
        ]
      },
      "StatisticsSourceSnapshotError": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "success": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string"
          }
        },
        "required": [
          "success",
          "error"
        ]
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "API Key",
        "description": "Format: `ke_live_xxx`"
      },
      "apiKeyHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key"
      }
    }
  }
}
```
