changedOutput schema / oneOf
Previous value: -[
- {
- "additionalProperties": true,
- "properties": {
- "evidence": {
- "additionalProperties": false,
- "properties": {
- "authoritative": {
- "const": true
- },
- "reconciliation": {
- "additionalProperties": false,
- "properties": {
- "difference": {
- "const": 0
- },
- "invoice_total": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "number"
- },
- "reason_code": {
- "const": "invoice_rows_equal_trend_total"
- },
- "status": {
- "const": "matched"
- },
- "trend_total": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "status",
- "reason_code",
- "invoice_total",
- "trend_total",
- "difference"
- ],
- "type": "object"
- },
- "source": {
- "const": "live_axonaut_api"
- },
- "status": {
- "const": "verified_live_connector_data"
- }
- },
- "required": [
- "status",
- "authoritative",
- "source",
- "reconciliation"
- ],
- "type": "object"
- },
- "execution_receipt": {
- "additionalProperties": false,
- "properties": {
- "data_sha256": {
- "pattern": "^[0-9a-f]{64}$",
- "type": "string"
- },
- "font_sha256": {
- "additionalProperties": false,
- "properties": {
- "bold": {
- "pattern": "^[0-9a-f]{64}$",
- "type": "string"
- },
- "regular": {
- "pattern": "^[0-9a-f]{64}$",
- "type": "string"
- },
- "semibold": {
- "pattern": "^[0-9a-f]{64}$",
- "type": "string"
- }
- },
- "required": [
- "regular",
- "semibold",
- "bold"
- ],
- "type": "object"
- },
- "image_sha256": {
- "pattern": "^[0-9a-f]{64}$",
- "type": "string"
- },
- "query_sha256": {
- "pattern": "^[0-9a-f]{64}$",
- "type": "string"
- },
- "renderer_version": {
- "minLength": 1,
- "type": "string"
- },
- "version": {
- "const": 1
- }
- },
- "required": [
- "version",
- "renderer_version",
- "font_sha256",
- "query_sha256",
- "data_sha256",
- "image_sha256"
- ],
- "type": "object"
- },
- "facts": {
- "additionalProperties": false,
- "properties": {
- "company_name": {
- "maxLength": 72,
- "minLength": 1,
- "type": "string"
- },
- "currency": {
- "pattern": "^[A-Z]{3}$",
- "type": "string"
- },
- "invoice_delta_percent": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": [
- "number",
- "null"
- ]
- },
- "invoice_total": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "number"
- },
- "open_pipeline_total": {
- "description": "Sum of explicitly priced open opportunities; unpriced opportunities are excluded and counted in pipeline_coverage.",
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "number"
- },
- "outstanding_total": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "number"
- },
- "payments_total": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "number"
- },
- "period_counts": {
- "additionalProperties": false,
- "properties": {
- "invoices": {
- "minimum": 0,
- "type": "integer"
- },
- "open_opportunities": {
- "minimum": 0,
- "type": "integer"
- },
- "payments": {
- "minimum": 0,
- "type": "integer"
- },
- "prior_invoices": {
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "invoices",
- "prior_invoices",
- "payments",
- "open_opportunities"
- ],
- "type": "object"
- },
- "pipeline_coverage": {
- "additionalProperties": false,
- "properties": {
- "open_opportunities": {
- "minimum": 0,
- "type": "integer"
- },
- "priced_opportunities": {
- "minimum": 0,
- "type": "integer"
- },
- "unpriced_opportunities": {
- "minimum": 0,
- "type": "integer"
- },
- "unweighted_priced_opportunities": {
- "minimum": 0,
- "type": "integer"
- },
- "weighted_opportunities": {
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "open_opportunities",
- "priced_opportunities",
- "weighted_opportunities",
- "unpriced_opportunities",
- "unweighted_priced_opportunities"
- ],
- "type": "object"
- },
- "pipeline_stages": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "label": {
- "maxLength": 24,
- "minLength": 1,
- "type": "string"
- },
- "value": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "number"
- },
- "weighted_value": {
- "oneOf": [
- {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "label",
- "value",
- "weighted_value"
- ],
- "type": "object"
- },
- "maxItems": 8,
- "type": "array"
- },
- "prior_invoice_total": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "number"
- },
- "reconciliation": {
- "additionalProperties": false,
- "properties": {
- "difference": {
- "const": 0
- },
- "invoice_total": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "number"
- },
- "reason_code": {
- "const": "invoice_rows_equal_trend_total"
- },
- "status": {
- "const": "matched"
- },
- "trend_total": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "status",
- "reason_code",
- "invoice_total",
- "trend_total",
- "difference"
- ],
- "type": "object"
- },
- "source_counts": {
- "additionalProperties": false,
- "properties": {
- "invoices": {
- "minimum": 0,
- "type": "integer"
- },
- "opportunities": {
- "minimum": 0,
- "type": "integer"
- },
- "payments": {
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "invoices",
- "payments",
- "opportunities"
- ],
- "type": "object"
- },
- "trend": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "date": {
- "pattern": "^[0-9]{4}-[0-9]{2}(?:-[0-9]{2})?$",
- "type": "string"
- },
- "value": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "date",
- "value"
- ],
- "type": "object"
- },
- "maxItems": 366,
- "type": "array"
- },
- "weighted_pipeline_total": {
- "description": "Probability-weighted total for explicitly priced open opportunities, or null when no open opportunity has a price or when any priced opportunity has no probability.",
- "oneOf": [
- {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "company_name",
- "currency",
- "invoice_total",
- "prior_invoice_total",
- "invoice_delta_percent",
- "payments_total",
- "outstanding_total",
- "open_pipeline_total",
- "weighted_pipeline_total",
- "trend",
- "pipeline_stages",
- "pipeline_coverage",
- "reconciliation",
- "source_counts",
- "period_counts"
- ],
- "type": "object"
- },
- "height": {
- "const": 992
- },
- "image_sha256": {
- "pattern": "^[0-9a-f]{64}$",
- "type": "string"
- },
- "mime_type": {
- "const": "image/png"
- },
- "provider": {
- "const": "Axonaut"
- },
- "query_ranges": {
- "additionalProperties": false,
- "properties": {
- "current": {
- "additionalProperties": false,
- "properties": {
- "end_date": {
- "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
- "type": "string"
- },
- "start_date": {
- "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
- "type": "string"
- }
- },
- "required": [
- "start_date",
- "end_date"
- ],
- "type": "object"
- },
- "prior": {
- "additionalProperties": false,
- "properties": {
- "end_date": {
- "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
- "type": "string"
- },
- "start_date": {
- "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
- "type": "string"
- }
- },
- "required": [
- "start_date",
- "end_date"
- ],
- "type": "object"
- }
- },
- "required": [
- "current",
- "prior"
- ],
- "type": "object"
- },
- "status": {
- "const": "ok"
- },
- "summary_text": {
- "minLength": 1,
- "type": "string"
- },
- "tool": {
- "const": "axonaut_dashboard"
- },
- "width": {
- "const": 1600
- }
- },
- "required": [
- "tool",
- "status",
- "summary_text",
- "mime_type",
- "width",
- "height",
- "image_sha256",
- "evidence",
- "execution_receipt",
- "provider",
- "query_ranges",
- "facts"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "evidence": {
- "additionalProperties": false,
- "properties": {
- "authoritative": {
- "const": true
- },
- "status": {
- "const": "verified_live_connector_no_data"
- }
- },
- "required": [
- "status",
- "authoritative"
- ],
- "type": "object"
- },
- "period_counts": {
- "additionalProperties": false,
- "properties": {
- "invoices": {
- "minimum": 0,
- "type": "integer"
- },
- "open_opportunities": {
- "minimum": 0,
- "type": "integer"
- },
- "payments": {
- "minimum": 0,
- "type": "integer"
- },
- "prior_invoices": {
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "invoices",
- "prior_invoices",
- "payments",
- "open_opportunities"
- ],
- "type": "object"
- },
- "provider": {
- "const": "Axonaut"
- },
- "query_ranges": {
- "additionalProperties": false,
- "properties": {
- "current": {
- "additionalProperties": false,
- "properties": {
- "end_date": {
- "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
- "type": "string"
- },
- "start_date": {
- "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
- "type": "string"
- }
- },
- "required": [
- "start_date",
- "end_date"
- ],
- "type": "object"
- },
- "prior": {
- "additionalProperties": false,
- "properties": {
- "end_date": {
- "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
- "type": "string"
- },
- "start_date": {
- "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
- "type": "string"
- }
- },
- "required": [
- "start_date",
- "end_date"
- ],
- "type": "object"
- }
- },
- "required": [
- "current",
- "prior"
- ],
- "type": "object"
- },
- "source_counts": {
- "additionalProperties": false,
- "properties": {
- "invoices": {
- "minimum": 0,
- "type": "integer"
- },
- "opportunities": {
- "minimum": 0,
- "type": "integer"
- },
- "payments": {
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "invoices",
- "payments",
- "opportunities"
- ],
- "type": "object"
- },
- "status": {
- "const": "no_data"
- },
- "summary_text": {
- "minLength": 1,
- "type": "string"
- },
- "tool": {
- "const": "axonaut_dashboard"
- }
- },
- "required": [
- "tool",
- "status",
- "summary_text",
- "provider",
- "query_ranges",
- "source_counts",
- "period_counts",
- "evidence"
- ],
- "type": "object"
- },
- {
- "additionalProperties": true,
- "properties": {
- "error": {
- "minLength": 1,
- "type": "string"
- },
- "evidence": {
- "additionalProperties": true,
- "properties": {
- "status": {
- "type": "string"
- }
- },
- "required": [
- "status"
- ],
- "type": "object"
- },
- "message": {
- "minLength": 1,
- "type": "string"
- },
- "status": {
- "const": "error"
- },
- "summary_text": {
- "minLength": 1,
- "type": "string"
- },
- "tool": {
- "const": "axonaut_dashboard"
- }
- },
- "required": [
- "tool",
- "status",
- "summary_text",
- "error",
- "message",
- "evidence"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": true,
+ "properties": {
+ "evidence": {
+ "additionalProperties": false,
+ "properties": {
+ "authoritative": {
+ "const": true
+ },
+ "reconciliation": {
+ "additionalProperties": false,
+ "properties": {
+ "difference": {
+ "const": 0
+ },
+ "gross_invoice_total": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "number"
+ },
+ "invoice_credits_total": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "number"
+ },
+ "invoice_total": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "number"
+ },
+ "reason_code": {
+ "const": "signed_invoice_rows_equal_trend_total"
+ },
+ "status": {
+ "const": "matched"
+ },
+ "trend_total": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "number"
+ }
+ },
+ "required": [
+ "status",
+ "reason_code",
+ "gross_invoice_total",
+ "invoice_credits_total",
+ "invoice_total",
+ "trend_total",
+ "difference"
+ ],
+ "type": "object"
+ },
+ "source": {
+ "const": "live_axonaut_api"
+ },
+ "status": {
+ "const": "verified_live_connector_data"
+ }
+ },
+ "required": [
+ "status",
+ "authoritative",
+ "source",
+ "reconciliation"
+ ],
+ "type": "object"
+ },
+ "execution_receipt": {
+ "additionalProperties": false,
+ "properties": {
+ "data_sha256": {
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "font_sha256": {
+ "additionalProperties": false,
+ "properties": {
+ "bold": {
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "regular": {
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "semibold": {
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "regular",
+ "semibold",
+ "bold"
+ ],
+ "type": "object"
+ },
+ "image_sha256": {
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "query_sha256": {
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "renderer_version": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "version": {
+ "const": 1
+ }
+ },
+ "required": [
+ "version",
+ "renderer_version",
+ "font_sha256",
+ "query_sha256",
+ "data_sha256",
+ "image_sha256"
+ ],
+ "type": "object"
+ },
+ "facts": {
+ "additionalProperties": false,
+ "properties": {
+ "company_name": {
+ "maxLength": 72,
+ "minLength": 1,
+ "type": "string"
+ },
+ "currency": {
+ "pattern": "^[A-Z]{3}$",
+ "type": "string"
+ },
+ "gross_invoice_total": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "number"
+ },
+ "invoice_credits_total": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "number"
+ },
+ "invoice_delta_percent": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "invoice_total": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "number"
+ },
+ "open_pipeline_total": {
+ "description": "Sum of explicitly priced open opportunities; unpriced opportunities are excluded and counted in pipeline_coverage.",
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "number"
+ },
+ "outstanding_coverage": {
+ "additionalProperties": false,
+ "properties": {
+ "current_invoices": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "missing_invoices": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "valued_invoices": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "current_invoices",
+ "valued_invoices",
+ "missing_invoices"
+ ],
+ "type": "object"
+ },
+ "outstanding_total": {
+ "description": "Signed net outstanding amount, or null when any current-period invoice omits Axonaut's nullable outstanding_amount field.",
+ "oneOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "payments_total": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "number"
+ },
+ "period_counts": {
+ "additionalProperties": false,
+ "properties": {
+ "credit_invoices": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "invoices": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "open_opportunities": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "payments": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "prior_invoices": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "invoices",
+ "prior_invoices",
+ "credit_invoices",
+ "payments",
+ "open_opportunities"
+ ],
+ "type": "object"
+ },
+ "pipeline_coverage": {
+ "additionalProperties": false,
+ "properties": {
+ "open_opportunities": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "priced_opportunities": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "unpriced_opportunities": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "unweighted_priced_opportunities": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "weighted_opportunities": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "open_opportunities",
+ "priced_opportunities",
+ "weighted_opportunities",
+ "unpriced_opportunities",
+ "unweighted_priced_opportunities"
+ ],
+ "type": "object"
+ },
+ "pipeline_stages": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "label": {
+ "maxLength": 24,
+ "minLength": 1,
+ "type": "string"
+ },
+ "value": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "number"
+ },
+ "weighted_value": {
+ "oneOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "label",
+ "value",
+ "weighted_value"
+ ],
+ "type": "object"
+ },
+ "maxItems": 8,
+ "type": "array"
+ },
+ "prior_invoice_total": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "number"
+ },
+ "reconciliation": {
+ "additionalProperties": false,
+ "properties": {
+ "difference": {
+ "const": 0
+ },
+ "gross_invoice_total": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "number"
+ },
+ "invoice_credits_total": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "number"
+ },
+ "invoice_total": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "number"
+ },
+ "reason_code": {
+ "const": "signed_invoice_rows_equal_trend_total"
+ },
+ "status": {
+ "const": "matched"
+ },
+ "trend_total": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "number"
+ }
+ },
+ "required": [
+ "status",
+ "reason_code",
+ "gross_invoice_total",
+ "invoice_credits_total",
+ "invoice_total",
+ "trend_total",
+ "difference"
+ ],
+ "type": "object"
+ },
+ "source_counts": {
+ "additionalProperties": false,
+ "properties": {
+ "invoices": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "opportunities": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "payments": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "invoices",
+ "payments",
+ "opportunities"
+ ],
+ "type": "object"
+ },
+ "trend": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "date": {
+ "pattern": "^[0-9]{4}-[0-9]{2}(?:-[0-9]{2})?$",
+ "type": "string"
+ },
+ "value": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "number"
+ }
+ },
+ "required": [
+ "date",
+ "value"
+ ],
+ "type": "object"
+ },
+ "maxItems": 366,
+ "type": "array"
+ },
+ "weighted_pipeline_total": {
+ "description": "Probability-weighted total for explicitly priced open opportunities, or null when no open opportunity has a price or when any priced opportunity has no probability.",
+ "oneOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "company_name",
+ "currency",
+ "gross_invoice_total",
+ "invoice_credits_total",
+ "invoice_total",
+ "prior_invoice_total",
+ "invoice_delta_percent",
+ "payments_total",
+ "outstanding_total",
+ "outstanding_coverage",
+ "open_pipeline_total",
+ "weighted_pipeline_total",
+ "trend",
+ "pipeline_stages",
+ "pipeline_coverage",
+ "reconciliation",
+ "source_counts",
+ "period_counts"
+ ],
+ "type": "object"
+ },
+ "height": {
+ "const": 992
+ },
+ "image_sha256": {
+ "pattern": "^[0-9a-f]{64}$",
+ "type": "string"
+ },
+ "mime_type": {
+ "const": "image/png"
+ },
+ "provider": {
+ "const": "Axonaut"
+ },
+ "query_ranges": {
+ "additionalProperties": false,
+ "properties": {
+ "current": {
+ "additionalProperties": false,
+ "properties": {
+ "end_date": {
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
+ "type": "string"
+ },
+ "start_date": {
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "start_date",
+ "end_date"
+ ],
+ "type": "object"
+ },
+ "prior": {
+ "additionalProperties": false,
+ "properties": {
+ "end_date": {
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
+ "type": "string"
+ },
+ "start_date": {
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "start_date",
+ "end_date"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "current",
+ "prior"
+ ],
+ "type": "object"
+ },
+ "status": {
+ "const": "ok"
+ },
+ "summary_text": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "tool": {
+ "const": "axonaut_dashboard"
+ },
+ "width": {
+ "const": 1600
+ }
+ },
+ "required": [
+ "tool",
+ "status",
+ "summary_text",
+ "mime_type",
+ "width",
+ "height",
+ "image_sha256",
+ "evidence",
+ "execution_receipt",
+ "provider",
+ "query_ranges",
+ "facts"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "evidence": {
+ "additionalProperties": false,
+ "properties": {
+ "authoritative": {
+ "const": true
+ },
+ "status": {
+ "const": "verified_live_connector_no_data"
+ }
+ },
+ "required": [
+ "status",
+ "authoritative"
+ ],
+ "type": "object"
+ },
+ "period_counts": {
+ "additionalProperties": false,
+ "properties": {
+ "credit_invoices": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "invoices": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "open_opportunities": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "payments": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "prior_invoices": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "invoices",
+ "prior_invoices",
+ "credit_invoices",
+ "payments",
+ "open_opportunities"
+ ],
+ "type": "object"
+ },
+ "provider": {
+ "const": "Axonaut"
+ },
+ "query_ranges": {
+ "additionalProperties": false,
+ "properties": {
+ "current": {
+ "additionalProperties": false,
+ "properties": {
+ "end_date": {
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
+ "type": "string"
+ },
+ "start_date": {
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "start_date",
+ "end_date"
+ ],
+ "type": "object"
+ },
+ "prior": {
+ "additionalProperties": false,
+ "properties": {
+ "end_date": {
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
+ "type": "string"
+ },
+ "start_date": {
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "start_date",
+ "end_date"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "current",
+ "prior"
+ ],
+ "type": "object"
+ },
+ "source_counts": {
+ "additionalProperties": false,
+ "properties": {
+ "invoices": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "opportunities": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "payments": {
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "invoices",
+ "payments",
+ "opportunities"
+ ],
+ "type": "object"
+ },
+ "status": {
+ "const": "no_data"
+ },
+ "summary_text": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "tool": {
+ "const": "axonaut_dashboard"
+ }
+ },
+ "required": [
+ "tool",
+ "status",
+ "summary_text",
+ "provider",
+ "query_ranges",
+ "source_counts",
+ "period_counts",
+ "evidence"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": true,
+ "properties": {
+ "error": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "evidence": {
+ "additionalProperties": true,
+ "properties": {
+ "status": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "status"
+ ],
+ "type": "object"
+ },
+ "message": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "status": {
+ "const": "error"
+ },
+ "summary_text": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "tool": {
+ "const": "axonaut_dashboard"
+ }
+ },
+ "required": [
+ "tool",
+ "status",
+ "summary_text",
+ "error",
+ "message",
+ "evidence"
+ ],
+ "type": "object"
+ }
+]