changedInput schema / properties / blocks / items / oneOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "chart": {
- "additionalProperties": false,
- "properties": {
- "chart": {
- "enum": [
- "line",
- "area",
- "columns",
- "bar",
- "donut",
- "treemap",
- "waffle",
- "funnel",
- "pareto",
- "scatter",
- "heatmap",
- "histogram",
- "kpi",
- "table",
- "variance",
- "bullet",
- "waterfall",
- "scorecard",
- "combo",
- "radar",
- "candlestick",
- "gauge",
- "box",
- "dotPlot"
- ],
- "type": "string"
- },
- "currency": {
- "maxLength": 3,
- "minLength": 3,
- "type": "string"
- },
- "format": {
- "enum": [
- "number",
- "percent",
- "currency",
- "compact"
- ],
- "type": "string"
- },
- "grain": {
- "enum": [
- "day",
- "week",
- "month",
- "quarter",
- "year"
- ],
- "type": "string"
- },
- "highlight": {
- "items": {
- "maxLength": 200,
- "type": "string"
- },
- "maxItems": 8,
- "type": "array"
- },
- "invert": {
- "type": "boolean"
- },
- "mode": {
- "enum": [
- "stacked",
- "grouped",
- "percent"
- ],
- "type": "string"
- },
- "note": {
- "maxLength": 300,
- "type": "string"
- },
- "pie": {
- "type": "boolean"
- },
- "series": {
- "maxLength": 200,
- "type": "string"
- },
- "source": {
- "maxLength": 200,
- "type": "string"
- },
- "subtitle": {
- "maxLength": 300,
- "type": "string"
- },
- "title": {
- "maxLength": 200,
- "type": "string"
- },
- "words": {
- "additionalProperties": {
- "maxLength": 120,
- "type": "string"
- },
- "propertyNames": {
- "maxLength": 60,
- "type": "string"
- },
- "type": "object"
- },
- "x": {
- "maxLength": 200,
- "type": "string"
- },
- "y": {
- "items": {
- "maxLength": 200,
- "type": "string"
- },
- "maxItems": 8,
- "type": "array"
- }
- },
- "required": [
- "chart"
- ],
- "type": "object"
- },
- "dataset_id": {
- "maxLength": 80,
- "type": "string"
- },
- "kind": {
- "const": "chart",
- "type": "string"
- },
- "layout": {
- "additionalProperties": false,
- "properties": {
- "h": {
- "maximum": 100,
- "minimum": 1,
- "type": "number"
- },
- "w": {
- "maximum": 100,
- "minimum": 1,
- "type": "number"
- },
- "x": {
- "maximum": 100,
- "minimum": 0,
- "type": "number"
- },
- "y": {
- "maximum": 400,
- "minimum": 0,
- "type": "number"
- },
- "z": {
- "maximum": 999,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "x",
- "y",
- "w",
- "h"
- ],
- "type": "object"
- },
- "query": {
- "additionalProperties": false,
- "properties": {
- "grain": {
- "description": "Group date and timestamp columns in group_by by this period (week starts Monday); each group is labelled with the period's first day",
- "enum": [
- "day",
- "week",
- "month",
- "quarter",
- "year"
- ],
- "type": "string"
- },
- "group_by": {
- "items": {
- "type": "string"
- },
- "maxItems": 10,
- "type": "array"
- },
- "limit": {
- "default": 100,
- "maximum": 1000,
- "minimum": 1,
- "type": "integer"
- },
- "metrics": {
- "items": {
- "properties": {
- "as": {
- "pattern": "^[a-z_][a-z0-9_]{0,62}$",
- "type": "string"
- },
- "column": {
- "type": "string"
- },
- "fn": {
- "enum": [
- "count",
- "count_distinct",
- "sum",
- "avg",
- "min",
- "max"
- ],
- "type": "string"
- },
- "metric": {
- "description": "A saved metric of the dataset, by name (describe_dataset lists them), instead of fn/column/where",
- "maxLength": 63,
- "type": "string"
- },
- "where": {
- "description": "Only rows matching these filters count toward this metric (e.g. revenue where status is not refunded), next to unfiltered metrics in the same call",
- "items": {
- "properties": {
- "column": {
- "type": "string"
- },
- "op": {
- "description": "between takes [low, high] and includes both ends; in/not_in take an array; contains/starts_with are case-insensitive text matches",
- "enum": [
- "eq",
- "neq",
- "gt",
- "gte",
- "lt",
- "lte",
- "in",
- "not_in",
- "contains",
- "starts_with",
- "is_null",
- "not_null",
- "between"
- ],
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "maxLength": 1000,
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "type": "boolean"
- }
- ]
- },
- {
- "items": {
- "anyOf": [
- {
- "maxLength": 1000,
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "type": "boolean"
- }
- ]
- },
- "maxItems": 100,
- "type": "array"
- }
- ]
- }
- },
- "required": [
- "column",
- "op"
- ],
- "type": "object"
- },
- "maxItems": 10,
- "type": "array"
- }
- },
- "type": "object"
- },
- "maxItems": 20,
- "type": "array"
- },
- "offset": {
- "default": 0,
- "maximum": 100000,
- "minimum": 0,
- "type": "integer"
- },
- "order_by": {
- "items": {
- "properties": {
- "column": {
- "type": "string"
- },
- "dir": {
- "default": "asc",
- "enum": [
- "asc",
- "desc"
- ],
- "type": "string"
- }
- },
- "required": [
- "column"
- ],
- "type": "object"
- },
- "maxItems": 10,
- "type": "array"
- },
- "select": {
- "items": {
- "type": "string"
- },
- "maxItems": 200,
- "type": "array"
- },
- "where": {
- "items": {
- "properties": {
- "column": {
- "type": "string"
- },
- "op": {
- "description": "between takes [low, high] and includes both ends; in/not_in take an array; contains/starts_with are case-insensitive text matches",
- "enum": [
- "eq",
- "neq",
- "gt",
- "gte",
- "lt",
- "lte",
- "in",
- "not_in",
- "contains",
- "starts_with",
- "is_null",
- "not_null",
- "between"
- ],
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "maxLength": 1000,
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "type": "boolean"
- }
- ]
- },
- {
- "items": {
- "anyOf": [
- {
- "maxLength": 1000,
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "type": "boolean"
- }
- ]
- },
- "maxItems": 100,
- "type": "array"
- }
- ]
- }
- },
- "required": [
- "column",
- "op"
- ],
- "type": "object"
- },
- "maxItems": 30,
- "type": "array"
- }
- },
- "type": "object"
- },
- "style": {
- "additionalProperties": false,
- "properties": {
- "align": {
- "enum": [
- "left",
- "center",
- "right"
- ],
- "type": "string"
- },
- "color": {
- "pattern": "^#[0-9a-fA-F]{6}$",
- "type": "string"
- },
- "fill": {
- "pattern": "^(#[0-9a-fA-F]{6}|none)$",
- "type": "string"
- },
- "fontSize": {
- "maximum": 96,
- "minimum": 8,
- "type": "number"
- },
- "shape": {
- "enum": [
- "rect",
- "ellipse",
- "line",
- "arrow"
- ],
- "type": "string"
- },
- "stroke": {
- "pattern": "^(#[0-9a-fA-F]{6}|none)$",
- "type": "string"
- },
- "subtitleSize": {
- "maximum": 48,
- "minimum": 8,
- "type": "number"
- },
- "titleSize": {
- "maximum": 96,
- "minimum": 10,
- "type": "number"
- },
- "weight": {
- "enum": [
- "regular",
- "bold"
- ],
- "type": "string"
- }
- },
- "type": "object"
- },
- "version": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "kind",
- "dataset_id",
- "query",
- "chart"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "currency": {
- "maxLength": 3,
- "minLength": 3,
- "type": "string"
- },
- "dataset_id": {
- "maxLength": 80,
- "type": "string"
- },
- "format": {
- "enum": [
- "number",
- "percent",
- "currency",
- "compact"
- ],
- "type": "string"
- },
- "kind": {
- "const": "kpi",
- "type": "string"
- },
- "layout": {
- "additionalProperties": false,
- "properties": {
- "h": {
- "maximum": 100,
- "minimum": 1,
- "type": "number"
- },
- "w": {
- "maximum": 100,
- "minimum": 1,
- "type": "number"
- },
- "x": {
- "maximum": 100,
- "minimum": 0,
- "type": "number"
- },
- "y": {
- "maximum": 400,
- "minimum": 0,
- "type": "number"
- },
- "z": {
- "maximum": 999,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "x",
- "y",
- "w",
- "h"
- ],
- "type": "object"
- },
- "query": {
- "additionalProperties": false,
- "properties": {
- "grain": {
- "description": "Group date and timestamp columns in group_by by this period (week starts Monday); each group is labelled with the period's first day",
- "enum": [
- "day",
- "week",
- "month",
- "quarter",
- "year"
- ],
- "type": "string"
- },
- "group_by": {
- "items": {
- "type": "string"
- },
- "maxItems": 10,
- "type": "array"
- },
- "limit": {
- "default": 100,
- "maximum": 1000,
- "minimum": 1,
- "type": "integer"
- },
- "metrics": {
- "items": {
- "properties": {
- "as": {
- "pattern": "^[a-z_][a-z0-9_]{0,62}$",
- "type": "string"
- },
- "column": {
- "type": "string"
- },
- "fn": {
- "enum": [
- "count",
- "count_distinct",
- "sum",
- "avg",
- "min",
- "max"
- ],
- "type": "string"
- },
- "metric": {
- "description": "A saved metric of the dataset, by name (describe_dataset lists them), instead of fn/column/where",
- "maxLength": 63,
- "type": "string"
- },
- "where": {
- "description": "Only rows matching these filters count toward this metric (e.g. revenue where status is not refunded), next to unfiltered metrics in the same call",
- "items": {
- "properties": {
- "column": {
- "type": "string"
- },
- "op": {
- "description": "between takes [low, high] and includes both ends; in/not_in take an array; contains/starts_with are case-insensitive text matches",
- "enum": [
- "eq",
- "neq",
- "gt",
- "gte",
- "lt",
- "lte",
- "in",
- "not_in",
- "contains",
- "starts_with",
- "is_null",
- "not_null",
- "between"
- ],
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "maxLength": 1000,
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "type": "boolean"
- }
- ]
- },
- {
- "items": {
- "anyOf": [
- {
- "maxLength": 1000,
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "type": "boolean"
- }
- ]
- },
- "maxItems": 100,
- "type": "array"
- }
- ]
- }
- },
- "required": [
- "column",
- "op"
- ],
- "type": "object"
- },
- "maxItems": 10,
- "type": "array"
- }
- },
- "type": "object"
- },
- "maxItems": 20,
- "type": "array"
- },
- "offset": {
- "default": 0,
- "maximum": 100000,
- "minimum": 0,
- "type": "integer"
- },
- "order_by": {
- "items": {
- "properties": {
- "column": {
- "type": "string"
- },
- "dir": {
- "default": "asc",
- "enum": [
- "asc",
- "desc"
- ],
- "type": "string"
- }
- },
- "required": [
- "column"
- ],
- "type": "object"
- },
- "maxItems": 10,
- "type": "array"
- },
- "select": {
- "items": {
- "type": "string"
- },
- "maxItems": 200,
- "type": "array"
- },
- "where": {
- "items": {
- "properties": {
- "column": {
- "type": "string"
- },
- "op": {
- "description": "between takes [low, high] and includes both ends; in/not_in take an array; contains/starts_with are case-insensitive text matches",
- "enum": [
- "eq",
- "neq",
- "gt",
- "gte",
- "lt",
- "lte",
- "in",
- "not_in",
- "contains",
- "starts_with",
- "is_null",
- "not_null",
- "between"
- ],
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "maxLength": 1000,
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "type": "boolean"
- }
- ]
- },
- {
- "items": {
- "anyOf": [
- {
- "maxLength": 1000,
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "type": "boolean"
- }
- ]
- },
- "maxItems": 100,
- "type": "array"
- }
- ]
- }
- },
- "required": [
- "column",
- "op"
- ],
- "type": "object"
- },
- "maxItems": 30,
- "type": "array"
- }
- },
- "type": "object"
- },
- "style": {
- "additionalProperties": false,
- "properties": {
- "align": {
- "enum": [
- "left",
- "center",
- "right"
- ],
- "type": "string"
- },
- "color": {
- "pattern": "^#[0-9a-fA-F]{6}$",
- "type": "string"
- },
- "fill": {
- "pattern": "^(#[0-9a-fA-F]{6}|none)$",
- "type": "string"
- },
- "fontSize": {
- "maximum": 96,
- "minimum": 8,
- "type": "number"
- },
- "shape": {
- "enum": [
- "rect",
- "ellipse",
- "line",
- "arrow"
- ],
- "type": "string"
- },
- "stroke": {
- "pattern": "^(#[0-9a-fA-F]{6}|none)$",
- "type": "string"
- },
- "subtitleSize": {
- "maximum": 48,
- "minimum": 8,
- "type": "number"
- },
- "titleSize": {
- "maximum": 96,
- "minimum": 10,
- "type": "number"
- },
- "weight": {
- "enum": [
- "regular",
- "bold"
- ],
- "type": "string"
- }
- },
- "type": "object"
- },
- "title": {
- "maxLength": 200,
- "type": "string"
- },
- "version": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "kind",
- "dataset_id",
- "query"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "kind": {
- "const": "text",
- "type": "string"
- },
- "layout": {
- "additionalProperties": false,
- "properties": {
- "h": {
- "maximum": 100,
- "minimum": 1,
- "type": "number"
- },
- "w": {
- "maximum": 100,
- "minimum": 1,
- "type": "number"
- },
- "x": {
- "maximum": 100,
- "minimum": 0,
- "type": "number"
- },
- "y": {
- "maximum": 400,
- "minimum": 0,
- "type": "number"
- },
- "z": {
- "maximum": 999,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "x",
- "y",
- "w",
- "h"
- ],
- "type": "object"
- },
- "style": {
- "additionalProperties": false,
- "properties": {
- "align": {
- "enum": [
- "left",
- "center",
- "right"
- ],
- "type": "string"
- },
- "color": {
- "pattern": "^#[0-9a-fA-F]{6}$",
- "type": "string"
- },
- "fill": {
- "pattern": "^(#[0-9a-fA-F]{6}|none)$",
- "type": "string"
- },
- "fontSize": {
- "maximum": 96,
- "minimum": 8,
- "type": "number"
- },
- "shape": {
- "enum": [
- "rect",
- "ellipse",
- "line",
- "arrow"
- ],
- "type": "string"
- },
- "stroke": {
- "pattern": "^(#[0-9a-fA-F]{6}|none)$",
- "type": "string"
- },
- "subtitleSize": {
- "maximum": 48,
- "minimum": 8,
- "type": "number"
- },
- "titleSize": {
- "maximum": 96,
- "minimum": 10,
- "type": "number"
- },
- "weight": {
- "enum": [
- "regular",
- "bold"
- ],
- "type": "string"
- }
- },
- "type": "object"
- },
- "text": {
- "maxLength": 4000,
- "type": "string"
- }
- },
- "required": [
- "kind",
- "text"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "kind": {
- "const": "shape",
- "type": "string"
- },
- "layout": {
- "additionalProperties": false,
- "properties": {
- "h": {
- "maximum": 100,
- "minimum": 1,
- "type": "number"
- },
- "w": {
- "maximum": 100,
- "minimum": 1,
- "type": "number"
- },
- "x": {
- "maximum": 100,
- "minimum": 0,
- "type": "number"
- },
- "y": {
- "maximum": 400,
- "minimum": 0,
- "type": "number"
- },
- "z": {
- "maximum": 999,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "x",
- "y",
- "w",
- "h"
- ],
- "type": "object"
- },
- "shape": {
- "enum": [
- "rect",
- "ellipse",
- "line",
- "arrow"
- ],
- "type": "string"
- },
- "style": {
- "additionalProperties": false,
- "properties": {
- "align": {
- "enum": [
- "left",
- "center",
- "right"
- ],
- "type": "string"
- },
- "color": {
- "pattern": "^#[0-9a-fA-F]{6}$",
- "type": "string"
- },
- "fill": {
- "pattern": "^(#[0-9a-fA-F]{6}|none)$",
- "type": "string"
- },
- "fontSize": {
- "maximum": 96,
- "minimum": 8,
- "type": "number"
- },
- "shape": {
- "enum": [
- "rect",
- "ellipse",
- "line",
- "arrow"
- ],
- "type": "string"
- },
- "stroke": {
- "pattern": "^(#[0-9a-fA-F]{6}|none)$",
- "type": "string"
- },
- "subtitleSize": {
- "maximum": 48,
- "minimum": 8,
- "type": "number"
- },
- "titleSize": {
- "maximum": 96,
- "minimum": 10,
- "type": "number"
- },
- "weight": {
- "enum": [
- "regular",
- "bold"
- ],
- "type": "string"
- }
- },
- "type": "object"
- }
- },
- "required": [
- "kind"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "kind": {
- "const": "commentary",
- "type": "string"
- },
- "layout": {
- "additionalProperties": false,
- "properties": {
- "h": {
- "maximum": 100,
- "minimum": 1,
- "type": "number"
- },
- "w": {
- "maximum": 100,
- "minimum": 1,
- "type": "number"
- },
- "x": {
- "maximum": 100,
- "minimum": 0,
- "type": "number"
- },
- "y": {
- "maximum": 400,
- "minimum": 0,
- "type": "number"
- },
- "z": {
- "maximum": 999,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "x",
- "y",
- "w",
- "h"
- ],
- "type": "object"
- },
- "prompt": {
- "maxLength": 1000,
- "type": "string"
- },
- "style": {
- "additionalProperties": false,
- "properties": {
- "align": {
- "enum": [
- "left",
- "center",
- "right"
- ],
- "type": "string"
- },
- "color": {
- "pattern": "^#[0-9a-fA-F]{6}$",
- "type": "string"
- },
- "fill": {
- "pattern": "^(#[0-9a-fA-F]{6}|none)$",
- "type": "string"
- },
- "fontSize": {
- "maximum": 96,
- "minimum": 8,
- "type": "number"
- },
- "shape": {
- "enum": [
- "rect",
- "ellipse",
- "line",
- "arrow"
- ],
- "type": "string"
- },
- "stroke": {
- "pattern": "^(#[0-9a-fA-F]{6}|none)$",
- "type": "string"
- },
- "subtitleSize": {
- "maximum": 48,
- "minimum": 8,
- "type": "number"
- },
- "titleSize": {
- "maximum": 96,
- "minimum": 10,
- "type": "number"
- },
- "weight": {
- "enum": [
- "regular",
- "bold"
- ],
- "type": "string"
- }
- },
- "type": "object"
- },
- "text": {
- "maxLength": 4000,
- "type": "string"
- }
- },
- "required": [
- "kind"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "chart": {
+ "additionalProperties": false,
+ "properties": {
+ "chart": {
+ "enum": [
+ "line",
+ "area",
+ "columns",
+ "bar",
+ "donut",
+ "treemap",
+ "waffle",
+ "funnel",
+ "pareto",
+ "scatter",
+ "heatmap",
+ "histogram",
+ "kpi",
+ "table",
+ "variance",
+ "bullet",
+ "waterfall",
+ "scorecard",
+ "combo",
+ "radar",
+ "candlestick",
+ "gauge",
+ "box",
+ "dotPlot"
+ ],
+ "type": "string"
+ },
+ "currency": {
+ "maxLength": 3,
+ "minLength": 3,
+ "type": "string"
+ },
+ "format": {
+ "enum": [
+ "number",
+ "percent",
+ "currency",
+ "compact"
+ ],
+ "type": "string"
+ },
+ "grain": {
+ "enum": [
+ "day",
+ "week",
+ "month",
+ "quarter",
+ "year"
+ ],
+ "type": "string"
+ },
+ "highlight": {
+ "items": {
+ "maxLength": 200,
+ "type": "string"
+ },
+ "maxItems": 8,
+ "type": "array"
+ },
+ "invert": {
+ "type": "boolean"
+ },
+ "mode": {
+ "enum": [
+ "stacked",
+ "grouped",
+ "percent"
+ ],
+ "type": "string"
+ },
+ "note": {
+ "maxLength": 300,
+ "type": "string"
+ },
+ "pie": {
+ "type": "boolean"
+ },
+ "series": {
+ "maxLength": 200,
+ "type": "string"
+ },
+ "source": {
+ "maxLength": 200,
+ "type": "string"
+ },
+ "subtitle": {
+ "maxLength": 300,
+ "type": "string"
+ },
+ "title": {
+ "maxLength": 200,
+ "type": "string"
+ },
+ "words": {
+ "additionalProperties": {
+ "maxLength": 120,
+ "type": "string"
+ },
+ "propertyNames": {
+ "maxLength": 60,
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "x": {
+ "maxLength": 200,
+ "type": "string"
+ },
+ "y": {
+ "items": {
+ "maxLength": 200,
+ "type": "string"
+ },
+ "maxItems": 8,
+ "type": "array"
+ }
+ },
+ "required": [
+ "chart"
+ ],
+ "type": "object"
+ },
+ "dataset_id": {
+ "maxLength": 80,
+ "type": "string"
+ },
+ "kind": {
+ "const": "chart",
+ "type": "string"
+ },
+ "layout": {
+ "additionalProperties": false,
+ "properties": {
+ "h": {
+ "maximum": 100,
+ "minimum": 1,
+ "type": "number"
+ },
+ "w": {
+ "maximum": 100,
+ "minimum": 1,
+ "type": "number"
+ },
+ "x": {
+ "maximum": 100,
+ "minimum": 0,
+ "type": "number"
+ },
+ "y": {
+ "maximum": 400,
+ "minimum": 0,
+ "type": "number"
+ },
+ "z": {
+ "maximum": 999,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "x",
+ "y",
+ "w",
+ "h"
+ ],
+ "type": "object"
+ },
+ "query": {
+ "additionalProperties": false,
+ "properties": {
+ "grain": {
+ "description": "Group date and timestamp columns in group_by by this period (week starts Monday); each group is labelled with the period's first day",
+ "enum": [
+ "day",
+ "week",
+ "month",
+ "quarter",
+ "year"
+ ],
+ "type": "string"
+ },
+ "group_by": {
+ "items": {
+ "type": "string"
+ },
+ "maxItems": 10,
+ "type": "array"
+ },
+ "limit": {
+ "default": 100,
+ "maximum": 1000,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "metrics": {
+ "items": {
+ "properties": {
+ "as": {
+ "pattern": "^[a-z_][a-z0-9_]{0,62}$",
+ "type": "string"
+ },
+ "column": {
+ "type": "string"
+ },
+ "fn": {
+ "enum": [
+ "count",
+ "count_distinct",
+ "sum",
+ "avg",
+ "min",
+ "max"
+ ],
+ "type": "string"
+ },
+ "metric": {
+ "description": "A saved metric of the dataset, by name (describe_dataset lists them), instead of fn/column/where",
+ "maxLength": 63,
+ "type": "string"
+ },
+ "where": {
+ "description": "Only rows matching these filters count toward this metric (e.g. revenue where status is not refunded), next to unfiltered metrics in the same call",
+ "items": {
+ "properties": {
+ "column": {
+ "type": "string"
+ },
+ "op": {
+ "description": "between takes [low, high] and includes both ends; in/not_in take an array; contains/starts_with are case-insensitive text matches; on date and timestamp columns a value can be relative to the time of the query: now, now-30d, now-12w, now-3m, now-1y",
+ "enum": [
+ "eq",
+ "neq",
+ "gt",
+ "gte",
+ "lt",
+ "lte",
+ "in",
+ "not_in",
+ "contains",
+ "starts_with",
+ "is_null",
+ "not_null",
+ "between"
+ ],
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "anyOf": [
+ {
+ "maxLength": 1000,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ {
+ "items": {
+ "anyOf": [
+ {
+ "maxLength": 1000,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "maxItems": 100,
+ "type": "array"
+ }
+ ]
+ }
+ },
+ "required": [
+ "column",
+ "op"
+ ],
+ "type": "object"
+ },
+ "maxItems": 10,
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "maxItems": 20,
+ "type": "array"
+ },
+ "offset": {
+ "default": 0,
+ "maximum": 100000,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "order_by": {
+ "items": {
+ "properties": {
+ "column": {
+ "type": "string"
+ },
+ "dir": {
+ "default": "asc",
+ "enum": [
+ "asc",
+ "desc"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "column"
+ ],
+ "type": "object"
+ },
+ "maxItems": 10,
+ "type": "array"
+ },
+ "select": {
+ "items": {
+ "type": "string"
+ },
+ "maxItems": 200,
+ "type": "array"
+ },
+ "where": {
+ "items": {
+ "properties": {
+ "column": {
+ "type": "string"
+ },
+ "op": {
+ "description": "between takes [low, high] and includes both ends; in/not_in take an array; contains/starts_with are case-insensitive text matches; on date and timestamp columns a value can be relative to the time of the query: now, now-30d, now-12w, now-3m, now-1y",
+ "enum": [
+ "eq",
+ "neq",
+ "gt",
+ "gte",
+ "lt",
+ "lte",
+ "in",
+ "not_in",
+ "contains",
+ "starts_with",
+ "is_null",
+ "not_null",
+ "between"
+ ],
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "anyOf": [
+ {
+ "maxLength": 1000,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ {
+ "items": {
+ "anyOf": [
+ {
+ "maxLength": 1000,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "maxItems": 100,
+ "type": "array"
+ }
+ ]
+ }
+ },
+ "required": [
+ "column",
+ "op"
+ ],
+ "type": "object"
+ },
+ "maxItems": 30,
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "style": {
+ "additionalProperties": false,
+ "properties": {
+ "align": {
+ "enum": [
+ "left",
+ "center",
+ "right"
+ ],
+ "type": "string"
+ },
+ "color": {
+ "pattern": "^#[0-9a-fA-F]{6}$",
+ "type": "string"
+ },
+ "fill": {
+ "pattern": "^(#[0-9a-fA-F]{6}|none)$",
+ "type": "string"
+ },
+ "fontSize": {
+ "maximum": 96,
+ "minimum": 8,
+ "type": "number"
+ },
+ "shape": {
+ "enum": [
+ "rect",
+ "ellipse",
+ "line",
+ "arrow"
+ ],
+ "type": "string"
+ },
+ "stroke": {
+ "pattern": "^(#[0-9a-fA-F]{6}|none)$",
+ "type": "string"
+ },
+ "subtitleSize": {
+ "maximum": 48,
+ "minimum": 8,
+ "type": "number"
+ },
+ "titleSize": {
+ "maximum": 96,
+ "minimum": 10,
+ "type": "number"
+ },
+ "weight": {
+ "enum": [
+ "regular",
+ "bold"
+ ],
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "version": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "dataset_id",
+ "query",
+ "chart"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "currency": {
+ "maxLength": 3,
+ "minLength": 3,
+ "type": "string"
+ },
+ "dataset_id": {
+ "maxLength": 80,
+ "type": "string"
+ },
+ "format": {
+ "enum": [
+ "number",
+ "percent",
+ "currency",
+ "compact"
+ ],
+ "type": "string"
+ },
+ "kind": {
+ "const": "kpi",
+ "type": "string"
+ },
+ "layout": {
+ "additionalProperties": false,
+ "properties": {
+ "h": {
+ "maximum": 100,
+ "minimum": 1,
+ "type": "number"
+ },
+ "w": {
+ "maximum": 100,
+ "minimum": 1,
+ "type": "number"
+ },
+ "x": {
+ "maximum": 100,
+ "minimum": 0,
+ "type": "number"
+ },
+ "y": {
+ "maximum": 400,
+ "minimum": 0,
+ "type": "number"
+ },
+ "z": {
+ "maximum": 999,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "x",
+ "y",
+ "w",
+ "h"
+ ],
+ "type": "object"
+ },
+ "query": {
+ "additionalProperties": false,
+ "properties": {
+ "grain": {
+ "description": "Group date and timestamp columns in group_by by this period (week starts Monday); each group is labelled with the period's first day",
+ "enum": [
+ "day",
+ "week",
+ "month",
+ "quarter",
+ "year"
+ ],
+ "type": "string"
+ },
+ "group_by": {
+ "items": {
+ "type": "string"
+ },
+ "maxItems": 10,
+ "type": "array"
+ },
+ "limit": {
+ "default": 100,
+ "maximum": 1000,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "metrics": {
+ "items": {
+ "properties": {
+ "as": {
+ "pattern": "^[a-z_][a-z0-9_]{0,62}$",
+ "type": "string"
+ },
+ "column": {
+ "type": "string"
+ },
+ "fn": {
+ "enum": [
+ "count",
+ "count_distinct",
+ "sum",
+ "avg",
+ "min",
+ "max"
+ ],
+ "type": "string"
+ },
+ "metric": {
+ "description": "A saved metric of the dataset, by name (describe_dataset lists them), instead of fn/column/where",
+ "maxLength": 63,
+ "type": "string"
+ },
+ "where": {
+ "description": "Only rows matching these filters count toward this metric (e.g. revenue where status is not refunded), next to unfiltered metrics in the same call",
+ "items": {
+ "properties": {
+ "column": {
+ "type": "string"
+ },
+ "op": {
+ "description": "between takes [low, high] and includes both ends; in/not_in take an array; contains/starts_with are case-insensitive text matches; on date and timestamp columns a value can be relative to the time of the query: now, now-30d, now-12w, now-3m, now-1y",
+ "enum": [
+ "eq",
+ "neq",
+ "gt",
+ "gte",
+ "lt",
+ "lte",
+ "in",
+ "not_in",
+ "contains",
+ "starts_with",
+ "is_null",
+ "not_null",
+ "between"
+ ],
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "anyOf": [
+ {
+ "maxLength": 1000,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ {
+ "items": {
+ "anyOf": [
+ {
+ "maxLength": 1000,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "maxItems": 100,
+ "type": "array"
+ }
+ ]
+ }
+ },
+ "required": [
+ "column",
+ "op"
+ ],
+ "type": "object"
+ },
+ "maxItems": 10,
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "maxItems": 20,
+ "type": "array"
+ },
+ "offset": {
+ "default": 0,
+ "maximum": 100000,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "order_by": {
+ "items": {
+ "properties": {
+ "column": {
+ "type": "string"
+ },
+ "dir": {
+ "default": "asc",
+ "enum": [
+ "asc",
+ "desc"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "column"
+ ],
+ "type": "object"
+ },
+ "maxItems": 10,
+ "type": "array"
+ },
+ "select": {
+ "items": {
+ "type": "string"
+ },
+ "maxItems": 200,
+ "type": "array"
+ },
+ "where": {
+ "items": {
+ "properties": {
+ "column": {
+ "type": "string"
+ },
+ "op": {
+ "description": "between takes [low, high] and includes both ends; in/not_in take an array; contains/starts_with are case-insensitive text matches; on date and timestamp columns a value can be relative to the time of the query: now, now-30d, now-12w, now-3m, now-1y",
+ "enum": [
+ "eq",
+ "neq",
+ "gt",
+ "gte",
+ "lt",
+ "lte",
+ "in",
+ "not_in",
+ "contains",
+ "starts_with",
+ "is_null",
+ "not_null",
+ "between"
+ ],
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "anyOf": [
+ {
+ "maxLength": 1000,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ {
+ "items": {
+ "anyOf": [
+ {
+ "maxLength": 1000,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "maxItems": 100,
+ "type": "array"
+ }
+ ]
+ }
+ },
+ "required": [
+ "column",
+ "op"
+ ],
+ "type": "object"
+ },
+ "maxItems": 30,
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "style": {
+ "additionalProperties": false,
+ "properties": {
+ "align": {
+ "enum": [
+ "left",
+ "center",
+ "right"
+ ],
+ "type": "string"
+ },
+ "color": {
+ "pattern": "^#[0-9a-fA-F]{6}$",
+ "type": "string"
+ },
+ "fill": {
+ "pattern": "^(#[0-9a-fA-F]{6}|none)$",
+ "type": "string"
+ },
+ "fontSize": {
+ "maximum": 96,
+ "minimum": 8,
+ "type": "number"
+ },
+ "shape": {
+ "enum": [
+ "rect",
+ "ellipse",
+ "line",
+ "arrow"
+ ],
+ "type": "string"
+ },
+ "stroke": {
+ "pattern": "^(#[0-9a-fA-F]{6}|none)$",
+ "type": "string"
+ },
+ "subtitleSize": {
+ "maximum": 48,
+ "minimum": 8,
+ "type": "number"
+ },
+ "titleSize": {
+ "maximum": 96,
+ "minimum": 10,
+ "type": "number"
+ },
+ "weight": {
+ "enum": [
+ "regular",
+ "bold"
+ ],
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "title": {
+ "maxLength": 200,
+ "type": "string"
+ },
+ "version": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "dataset_id",
+ "query"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "text",
+ "type": "string"
+ },
+ "layout": {
+ "additionalProperties": false,
+ "properties": {
+ "h": {
+ "maximum": 100,
+ "minimum": 1,
+ "type": "number"
+ },
+ "w": {
+ "maximum": 100,
+ "minimum": 1,
+ "type": "number"
+ },
+ "x": {
+ "maximum": 100,
+ "minimum": 0,
+ "type": "number"
+ },
+ "y": {
+ "maximum": 400,
+ "minimum": 0,
+ "type": "number"
+ },
+ "z": {
+ "maximum": 999,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "x",
+ "y",
+ "w",
+ "h"
+ ],
+ "type": "object"
+ },
+ "style": {
+ "additionalProperties": false,
+ "properties": {
+ "align": {
+ "enum": [
+ "left",
+ "center",
+ "right"
+ ],
+ "type": "string"
+ },
+ "color": {
+ "pattern": "^#[0-9a-fA-F]{6}$",
+ "type": "string"
+ },
+ "fill": {
+ "pattern": "^(#[0-9a-fA-F]{6}|none)$",
+ "type": "string"
+ },
+ "fontSize": {
+ "maximum": 96,
+ "minimum": 8,
+ "type": "number"
+ },
+ "shape": {
+ "enum": [
+ "rect",
+ "ellipse",
+ "line",
+ "arrow"
+ ],
+ "type": "string"
+ },
+ "stroke": {
+ "pattern": "^(#[0-9a-fA-F]{6}|none)$",
+ "type": "string"
+ },
+ "subtitleSize": {
+ "maximum": 48,
+ "minimum": 8,
+ "type": "number"
+ },
+ "titleSize": {
+ "maximum": 96,
+ "minimum": 10,
+ "type": "number"
+ },
+ "weight": {
+ "enum": [
+ "regular",
+ "bold"
+ ],
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "text": {
+ "maxLength": 4000,
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "text"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "shape",
+ "type": "string"
+ },
+ "layout": {
+ "additionalProperties": false,
+ "properties": {
+ "h": {
+ "maximum": 100,
+ "minimum": 1,
+ "type": "number"
+ },
+ "w": {
+ "maximum": 100,
+ "minimum": 1,
+ "type": "number"
+ },
+ "x": {
+ "maximum": 100,
+ "minimum": 0,
+ "type": "number"
+ },
+ "y": {
+ "maximum": 400,
+ "minimum": 0,
+ "type": "number"
+ },
+ "z": {
+ "maximum": 999,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "x",
+ "y",
+ "w",
+ "h"
+ ],
+ "type": "object"
+ },
+ "shape": {
+ "enum": [
+ "rect",
+ "ellipse",
+ "line",
+ "arrow"
+ ],
+ "type": "string"
+ },
+ "style": {
+ "additionalProperties": false,
+ "properties": {
+ "align": {
+ "enum": [
+ "left",
+ "center",
+ "right"
+ ],
+ "type": "string"
+ },
+ "color": {
+ "pattern": "^#[0-9a-fA-F]{6}$",
+ "type": "string"
+ },
+ "fill": {
+ "pattern": "^(#[0-9a-fA-F]{6}|none)$",
+ "type": "string"
+ },
+ "fontSize": {
+ "maximum": 96,
+ "minimum": 8,
+ "type": "number"
+ },
+ "shape": {
+ "enum": [
+ "rect",
+ "ellipse",
+ "line",
+ "arrow"
+ ],
+ "type": "string"
+ },
+ "stroke": {
+ "pattern": "^(#[0-9a-fA-F]{6}|none)$",
+ "type": "string"
+ },
+ "subtitleSize": {
+ "maximum": 48,
+ "minimum": 8,
+ "type": "number"
+ },
+ "titleSize": {
+ "maximum": 96,
+ "minimum": 10,
+ "type": "number"
+ },
+ "weight": {
+ "enum": [
+ "regular",
+ "bold"
+ ],
+ "type": "string"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "required": [
+ "kind"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "commentary",
+ "type": "string"
+ },
+ "layout": {
+ "additionalProperties": false,
+ "properties": {
+ "h": {
+ "maximum": 100,
+ "minimum": 1,
+ "type": "number"
+ },
+ "w": {
+ "maximum": 100,
+ "minimum": 1,
+ "type": "number"
+ },
+ "x": {
+ "maximum": 100,
+ "minimum": 0,
+ "type": "number"
+ },
+ "y": {
+ "maximum": 400,
+ "minimum": 0,
+ "type": "number"
+ },
+ "z": {
+ "maximum": 999,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "x",
+ "y",
+ "w",
+ "h"
+ ],
+ "type": "object"
+ },
+ "prompt": {
+ "maxLength": 1000,
+ "type": "string"
+ },
+ "style": {
+ "additionalProperties": false,
+ "properties": {
+ "align": {
+ "enum": [
+ "left",
+ "center",
+ "right"
+ ],
+ "type": "string"
+ },
+ "color": {
+ "pattern": "^#[0-9a-fA-F]{6}$",
+ "type": "string"
+ },
+ "fill": {
+ "pattern": "^(#[0-9a-fA-F]{6}|none)$",
+ "type": "string"
+ },
+ "fontSize": {
+ "maximum": 96,
+ "minimum": 8,
+ "type": "number"
+ },
+ "shape": {
+ "enum": [
+ "rect",
+ "ellipse",
+ "line",
+ "arrow"
+ ],
+ "type": "string"
+ },
+ "stroke": {
+ "pattern": "^(#[0-9a-fA-F]{6}|none)$",
+ "type": "string"
+ },
+ "subtitleSize": {
+ "maximum": 48,
+ "minimum": 8,
+ "type": "number"
+ },
+ "titleSize": {
+ "maximum": 96,
+ "minimum": 10,
+ "type": "number"
+ },
+ "weight": {
+ "enum": [
+ "regular",
+ "bold"
+ ],
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "text": {
+ "maxLength": 4000,
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind"
+ ],
+ "type": "object"
+ }
+]
changedInput schema / properties / slides / items / properties / blocks / items / oneOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "chart": {
- "additionalProperties": false,
- "properties": {
- "chart": {
- "enum": [
- "line",
- "area",
- "columns",
- "bar",
- "donut",
- "treemap",
- "waffle",
- "funnel",
- "pareto",
- "scatter",
- "heatmap",
- "histogram",
- "kpi",
- "table",
- "variance",
- "bullet",
- "waterfall",
- "scorecard",
- "combo",
- "radar",
- "candlestick",
- "gauge",
- "box",
- "dotPlot"
- ],
- "type": "string"
- },
- "currency": {
- "maxLength": 3,
- "minLength": 3,
- "type": "string"
- },
- "format": {
- "enum": [
- "number",
- "percent",
- "currency",
- "compact"
- ],
- "type": "string"
- },
- "grain": {
- "enum": [
- "day",
- "week",
- "month",
- "quarter",
- "year"
- ],
- "type": "string"
- },
- "highlight": {
- "items": {
- "maxLength": 200,
- "type": "string"
- },
- "maxItems": 8,
- "type": "array"
- },
- "invert": {
- "type": "boolean"
- },
- "mode": {
- "enum": [
- "stacked",
- "grouped",
- "percent"
- ],
- "type": "string"
- },
- "note": {
- "maxLength": 300,
- "type": "string"
- },
- "pie": {
- "type": "boolean"
- },
- "series": {
- "maxLength": 200,
- "type": "string"
- },
- "source": {
- "maxLength": 200,
- "type": "string"
- },
- "subtitle": {
- "maxLength": 300,
- "type": "string"
- },
- "title": {
- "maxLength": 200,
- "type": "string"
- },
- "words": {
- "additionalProperties": {
- "maxLength": 120,
- "type": "string"
- },
- "propertyNames": {
- "maxLength": 60,
- "type": "string"
- },
- "type": "object"
- },
- "x": {
- "maxLength": 200,
- "type": "string"
- },
- "y": {
- "items": {
- "maxLength": 200,
- "type": "string"
- },
- "maxItems": 8,
- "type": "array"
- }
- },
- "required": [
- "chart"
- ],
- "type": "object"
- },
- "dataset_id": {
- "maxLength": 80,
- "type": "string"
- },
- "kind": {
- "const": "chart",
- "type": "string"
- },
- "layout": {
- "additionalProperties": false,
- "properties": {
- "h": {
- "maximum": 100,
- "minimum": 1,
- "type": "number"
- },
- "w": {
- "maximum": 100,
- "minimum": 1,
- "type": "number"
- },
- "x": {
- "maximum": 100,
- "minimum": 0,
- "type": "number"
- },
- "y": {
- "maximum": 400,
- "minimum": 0,
- "type": "number"
- },
- "z": {
- "maximum": 999,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "x",
- "y",
- "w",
- "h"
- ],
- "type": "object"
- },
- "query": {
- "additionalProperties": false,
- "properties": {
- "grain": {
- "description": "Group date and timestamp columns in group_by by this period (week starts Monday); each group is labelled with the period's first day",
- "enum": [
- "day",
- "week",
- "month",
- "quarter",
- "year"
- ],
- "type": "string"
- },
- "group_by": {
- "items": {
- "type": "string"
- },
- "maxItems": 10,
- "type": "array"
- },
- "limit": {
- "default": 100,
- "maximum": 1000,
- "minimum": 1,
- "type": "integer"
- },
- "metrics": {
- "items": {
- "properties": {
- "as": {
- "pattern": "^[a-z_][a-z0-9_]{0,62}$",
- "type": "string"
- },
- "column": {
- "type": "string"
- },
- "fn": {
- "enum": [
- "count",
- "count_distinct",
- "sum",
- "avg",
- "min",
- "max"
- ],
- "type": "string"
- },
- "metric": {
- "description": "A saved metric of the dataset, by name (describe_dataset lists them), instead of fn/column/where",
- "maxLength": 63,
- "type": "string"
- },
- "where": {
- "description": "Only rows matching these filters count toward this metric (e.g. revenue where status is not refunded), next to unfiltered metrics in the same call",
- "items": {
- "properties": {
- "column": {
- "type": "string"
- },
- "op": {
- "description": "between takes [low, high] and includes both ends; in/not_in take an array; contains/starts_with are case-insensitive text matches",
- "enum": [
- "eq",
- "neq",
- "gt",
- "gte",
- "lt",
- "lte",
- "in",
- "not_in",
- "contains",
- "starts_with",
- "is_null",
- "not_null",
- "between"
- ],
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "maxLength": 1000,
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "type": "boolean"
- }
- ]
- },
- {
- "items": {
- "anyOf": [
- {
- "maxLength": 1000,
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "type": "boolean"
- }
- ]
- },
- "maxItems": 100,
- "type": "array"
- }
- ]
- }
- },
- "required": [
- "column",
- "op"
- ],
- "type": "object"
- },
- "maxItems": 10,
- "type": "array"
- }
- },
- "type": "object"
- },
- "maxItems": 20,
- "type": "array"
- },
- "offset": {
- "default": 0,
- "maximum": 100000,
- "minimum": 0,
- "type": "integer"
- },
- "order_by": {
- "items": {
- "properties": {
- "column": {
- "type": "string"
- },
- "dir": {
- "default": "asc",
- "enum": [
- "asc",
- "desc"
- ],
- "type": "string"
- }
- },
- "required": [
- "column"
- ],
- "type": "object"
- },
- "maxItems": 10,
- "type": "array"
- },
- "select": {
- "items": {
- "type": "string"
- },
- "maxItems": 200,
- "type": "array"
- },
- "where": {
- "items": {
- "properties": {
- "column": {
- "type": "string"
- },
- "op": {
- "description": "between takes [low, high] and includes both ends; in/not_in take an array; contains/starts_with are case-insensitive text matches",
- "enum": [
- "eq",
- "neq",
- "gt",
- "gte",
- "lt",
- "lte",
- "in",
- "not_in",
- "contains",
- "starts_with",
- "is_null",
- "not_null",
- "between"
- ],
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "maxLength": 1000,
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "type": "boolean"
- }
- ]
- },
- {
- "items": {
- "anyOf": [
- {
- "maxLength": 1000,
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "type": "boolean"
- }
- ]
- },
- "maxItems": 100,
- "type": "array"
- }
- ]
- }
- },
- "required": [
- "column",
- "op"
- ],
- "type": "object"
- },
- "maxItems": 30,
- "type": "array"
- }
- },
- "type": "object"
- },
- "style": {
- "additionalProperties": false,
- "properties": {
- "align": {
- "enum": [
- "left",
- "center",
- "right"
- ],
- "type": "string"
- },
- "color": {
- "pattern": "^#[0-9a-fA-F]{6}$",
- "type": "string"
- },
- "fill": {
- "pattern": "^(#[0-9a-fA-F]{6}|none)$",
- "type": "string"
- },
- "fontSize": {
- "maximum": 96,
- "minimum": 8,
- "type": "number"
- },
- "shape": {
- "enum": [
- "rect",
- "ellipse",
- "line",
- "arrow"
- ],
- "type": "string"
- },
- "stroke": {
- "pattern": "^(#[0-9a-fA-F]{6}|none)$",
- "type": "string"
- },
- "subtitleSize": {
- "maximum": 48,
- "minimum": 8,
- "type": "number"
- },
- "titleSize": {
- "maximum": 96,
- "minimum": 10,
- "type": "number"
- },
- "weight": {
- "enum": [
- "regular",
- "bold"
- ],
- "type": "string"
- }
- },
- "type": "object"
- },
- "version": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "kind",
- "dataset_id",
- "query",
- "chart"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "currency": {
- "maxLength": 3,
- "minLength": 3,
- "type": "string"
- },
- "dataset_id": {
- "maxLength": 80,
- "type": "string"
- },
- "format": {
- "enum": [
- "number",
- "percent",
- "currency",
- "compact"
- ],
- "type": "string"
- },
- "kind": {
- "const": "kpi",
- "type": "string"
- },
- "layout": {
- "additionalProperties": false,
- "properties": {
- "h": {
- "maximum": 100,
- "minimum": 1,
- "type": "number"
- },
- "w": {
- "maximum": 100,
- "minimum": 1,
- "type": "number"
- },
- "x": {
- "maximum": 100,
- "minimum": 0,
- "type": "number"
- },
- "y": {
- "maximum": 400,
- "minimum": 0,
- "type": "number"
- },
- "z": {
- "maximum": 999,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "x",
- "y",
- "w",
- "h"
- ],
- "type": "object"
- },
- "query": {
- "additionalProperties": false,
- "properties": {
- "grain": {
- "description": "Group date and timestamp columns in group_by by this period (week starts Monday); each group is labelled with the period's first day",
- "enum": [
- "day",
- "week",
- "month",
- "quarter",
- "year"
- ],
- "type": "string"
- },
- "group_by": {
- "items": {
- "type": "string"
- },
- "maxItems": 10,
- "type": "array"
- },
- "limit": {
- "default": 100,
- "maximum": 1000,
- "minimum": 1,
- "type": "integer"
- },
- "metrics": {
- "items": {
- "properties": {
- "as": {
- "pattern": "^[a-z_][a-z0-9_]{0,62}$",
- "type": "string"
- },
- "column": {
- "type": "string"
- },
- "fn": {
- "enum": [
- "count",
- "count_distinct",
- "sum",
- "avg",
- "min",
- "max"
- ],
- "type": "string"
- },
- "metric": {
- "description": "A saved metric of the dataset, by name (describe_dataset lists them), instead of fn/column/where",
- "maxLength": 63,
- "type": "string"
- },
- "where": {
- "description": "Only rows matching these filters count toward this metric (e.g. revenue where status is not refunded), next to unfiltered metrics in the same call",
- "items": {
- "properties": {
- "column": {
- "type": "string"
- },
- "op": {
- "description": "between takes [low, high] and includes both ends; in/not_in take an array; contains/starts_with are case-insensitive text matches",
- "enum": [
- "eq",
- "neq",
- "gt",
- "gte",
- "lt",
- "lte",
- "in",
- "not_in",
- "contains",
- "starts_with",
- "is_null",
- "not_null",
- "between"
- ],
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "maxLength": 1000,
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "type": "boolean"
- }
- ]
- },
- {
- "items": {
- "anyOf": [
- {
- "maxLength": 1000,
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "type": "boolean"
- }
- ]
- },
- "maxItems": 100,
- "type": "array"
- }
- ]
- }
- },
- "required": [
- "column",
- "op"
- ],
- "type": "object"
- },
- "maxItems": 10,
- "type": "array"
- }
- },
- "type": "object"
- },
- "maxItems": 20,
- "type": "array"
- },
- "offset": {
- "default": 0,
- "maximum": 100000,
- "minimum": 0,
- "type": "integer"
- },
- "order_by": {
- "items": {
- "properties": {
- "column": {
- "type": "string"
- },
- "dir": {
- "default": "asc",
- "enum": [
- "asc",
- "desc"
- ],
- "type": "string"
- }
- },
- "required": [
- "column"
- ],
- "type": "object"
- },
- "maxItems": 10,
- "type": "array"
- },
- "select": {
- "items": {
- "type": "string"
- },
- "maxItems": 200,
- "type": "array"
- },
- "where": {
- "items": {
- "properties": {
- "column": {
- "type": "string"
- },
- "op": {
- "description": "between takes [low, high] and includes both ends; in/not_in take an array; contains/starts_with are case-insensitive text matches",
- "enum": [
- "eq",
- "neq",
- "gt",
- "gte",
- "lt",
- "lte",
- "in",
- "not_in",
- "contains",
- "starts_with",
- "is_null",
- "not_null",
- "between"
- ],
- "type": "string"
- },
- "value": {
- "anyOf": [
- {
- "anyOf": [
- {
- "maxLength": 1000,
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "type": "boolean"
- }
- ]
- },
- {
- "items": {
- "anyOf": [
- {
- "maxLength": 1000,
- "type": "string"
- },
- {
- "type": "number"
- },
- {
- "type": "boolean"
- }
- ]
- },
- "maxItems": 100,
- "type": "array"
- }
- ]
- }
- },
- "required": [
- "column",
- "op"
- ],
- "type": "object"
- },
- "maxItems": 30,
- "type": "array"
- }
- },
- "type": "object"
- },
- "style": {
- "additionalProperties": false,
- "properties": {
- "align": {
- "enum": [
- "left",
- "center",
- "right"
- ],
- "type": "string"
- },
- "color": {
- "pattern": "^#[0-9a-fA-F]{6}$",
- "type": "string"
- },
- "fill": {
- "pattern": "^(#[0-9a-fA-F]{6}|none)$",
- "type": "string"
- },
- "fontSize": {
- "maximum": 96,
- "minimum": 8,
- "type": "number"
- },
- "shape": {
- "enum": [
- "rect",
- "ellipse",
- "line",
- "arrow"
- ],
- "type": "string"
- },
- "stroke": {
- "pattern": "^(#[0-9a-fA-F]{6}|none)$",
- "type": "string"
- },
- "subtitleSize": {
- "maximum": 48,
- "minimum": 8,
- "type": "number"
- },
- "titleSize": {
- "maximum": 96,
- "minimum": 10,
- "type": "number"
- },
- "weight": {
- "enum": [
- "regular",
- "bold"
- ],
- "type": "string"
- }
- },
- "type": "object"
- },
- "title": {
- "maxLength": 200,
- "type": "string"
- },
- "version": {
- "maximum": 9007199254740991,
- "minimum": -9007199254740991,
- "type": "integer"
- }
- },
- "required": [
- "kind",
- "dataset_id",
- "query"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "kind": {
- "const": "text",
- "type": "string"
- },
- "layout": {
- "additionalProperties": false,
- "properties": {
- "h": {
- "maximum": 100,
- "minimum": 1,
- "type": "number"
- },
- "w": {
- "maximum": 100,
- "minimum": 1,
- "type": "number"
- },
- "x": {
- "maximum": 100,
- "minimum": 0,
- "type": "number"
- },
- "y": {
- "maximum": 400,
- "minimum": 0,
- "type": "number"
- },
- "z": {
- "maximum": 999,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "x",
- "y",
- "w",
- "h"
- ],
- "type": "object"
- },
- "style": {
- "additionalProperties": false,
- "properties": {
- "align": {
- "enum": [
- "left",
- "center",
- "right"
- ],
- "type": "string"
- },
- "color": {
- "pattern": "^#[0-9a-fA-F]{6}$",
- "type": "string"
- },
- "fill": {
- "pattern": "^(#[0-9a-fA-F]{6}|none)$",
- "type": "string"
- },
- "fontSize": {
- "maximum": 96,
- "minimum": 8,
- "type": "number"
- },
- "shape": {
- "enum": [
- "rect",
- "ellipse",
- "line",
- "arrow"
- ],
- "type": "string"
- },
- "stroke": {
- "pattern": "^(#[0-9a-fA-F]{6}|none)$",
- "type": "string"
- },
- "subtitleSize": {
- "maximum": 48,
- "minimum": 8,
- "type": "number"
- },
- "titleSize": {
- "maximum": 96,
- "minimum": 10,
- "type": "number"
- },
- "weight": {
- "enum": [
- "regular",
- "bold"
- ],
- "type": "string"
- }
- },
- "type": "object"
- },
- "text": {
- "maxLength": 4000,
- "type": "string"
- }
- },
- "required": [
- "kind",
- "text"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "kind": {
- "const": "shape",
- "type": "string"
- },
- "layout": {
- "additionalProperties": false,
- "properties": {
- "h": {
- "maximum": 100,
- "minimum": 1,
- "type": "number"
- },
- "w": {
- "maximum": 100,
- "minimum": 1,
- "type": "number"
- },
- "x": {
- "maximum": 100,
- "minimum": 0,
- "type": "number"
- },
- "y": {
- "maximum": 400,
- "minimum": 0,
- "type": "number"
- },
- "z": {
- "maximum": 999,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "x",
- "y",
- "w",
- "h"
- ],
- "type": "object"
- },
- "shape": {
- "enum": [
- "rect",
- "ellipse",
- "line",
- "arrow"
- ],
- "type": "string"
- },
- "style": {
- "additionalProperties": false,
- "properties": {
- "align": {
- "enum": [
- "left",
- "center",
- "right"
- ],
- "type": "string"
- },
- "color": {
- "pattern": "^#[0-9a-fA-F]{6}$",
- "type": "string"
- },
- "fill": {
- "pattern": "^(#[0-9a-fA-F]{6}|none)$",
- "type": "string"
- },
- "fontSize": {
- "maximum": 96,
- "minimum": 8,
- "type": "number"
- },
- "shape": {
- "enum": [
- "rect",
- "ellipse",
- "line",
- "arrow"
- ],
- "type": "string"
- },
- "stroke": {
- "pattern": "^(#[0-9a-fA-F]{6}|none)$",
- "type": "string"
- },
- "subtitleSize": {
- "maximum": 48,
- "minimum": 8,
- "type": "number"
- },
- "titleSize": {
- "maximum": 96,
- "minimum": 10,
- "type": "number"
- },
- "weight": {
- "enum": [
- "regular",
- "bold"
- ],
- "type": "string"
- }
- },
- "type": "object"
- }
- },
- "required": [
- "kind"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "kind": {
- "const": "commentary",
- "type": "string"
- },
- "layout": {
- "additionalProperties": false,
- "properties": {
- "h": {
- "maximum": 100,
- "minimum": 1,
- "type": "number"
- },
- "w": {
- "maximum": 100,
- "minimum": 1,
- "type": "number"
- },
- "x": {
- "maximum": 100,
- "minimum": 0,
- "type": "number"
- },
- "y": {
- "maximum": 400,
- "minimum": 0,
- "type": "number"
- },
- "z": {
- "maximum": 999,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "x",
- "y",
- "w",
- "h"
- ],
- "type": "object"
- },
- "prompt": {
- "maxLength": 1000,
- "type": "string"
- },
- "style": {
- "additionalProperties": false,
- "properties": {
- "align": {
- "enum": [
- "left",
- "center",
- "right"
- ],
- "type": "string"
- },
- "color": {
- "pattern": "^#[0-9a-fA-F]{6}$",
- "type": "string"
- },
- "fill": {
- "pattern": "^(#[0-9a-fA-F]{6}|none)$",
- "type": "string"
- },
- "fontSize": {
- "maximum": 96,
- "minimum": 8,
- "type": "number"
- },
- "shape": {
- "enum": [
- "rect",
- "ellipse",
- "line",
- "arrow"
- ],
- "type": "string"
- },
- "stroke": {
- "pattern": "^(#[0-9a-fA-F]{6}|none)$",
- "type": "string"
- },
- "subtitleSize": {
- "maximum": 48,
- "minimum": 8,
- "type": "number"
- },
- "titleSize": {
- "maximum": 96,
- "minimum": 10,
- "type": "number"
- },
- "weight": {
- "enum": [
- "regular",
- "bold"
- ],
- "type": "string"
- }
- },
- "type": "object"
- },
- "text": {
- "maxLength": 4000,
- "type": "string"
- }
- },
- "required": [
- "kind"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "chart": {
+ "additionalProperties": false,
+ "properties": {
+ "chart": {
+ "enum": [
+ "line",
+ "area",
+ "columns",
+ "bar",
+ "donut",
+ "treemap",
+ "waffle",
+ "funnel",
+ "pareto",
+ "scatter",
+ "heatmap",
+ "histogram",
+ "kpi",
+ "table",
+ "variance",
+ "bullet",
+ "waterfall",
+ "scorecard",
+ "combo",
+ "radar",
+ "candlestick",
+ "gauge",
+ "box",
+ "dotPlot"
+ ],
+ "type": "string"
+ },
+ "currency": {
+ "maxLength": 3,
+ "minLength": 3,
+ "type": "string"
+ },
+ "format": {
+ "enum": [
+ "number",
+ "percent",
+ "currency",
+ "compact"
+ ],
+ "type": "string"
+ },
+ "grain": {
+ "enum": [
+ "day",
+ "week",
+ "month",
+ "quarter",
+ "year"
+ ],
+ "type": "string"
+ },
+ "highlight": {
+ "items": {
+ "maxLength": 200,
+ "type": "string"
+ },
+ "maxItems": 8,
+ "type": "array"
+ },
+ "invert": {
+ "type": "boolean"
+ },
+ "mode": {
+ "enum": [
+ "stacked",
+ "grouped",
+ "percent"
+ ],
+ "type": "string"
+ },
+ "note": {
+ "maxLength": 300,
+ "type": "string"
+ },
+ "pie": {
+ "type": "boolean"
+ },
+ "series": {
+ "maxLength": 200,
+ "type": "string"
+ },
+ "source": {
+ "maxLength": 200,
+ "type": "string"
+ },
+ "subtitle": {
+ "maxLength": 300,
+ "type": "string"
+ },
+ "title": {
+ "maxLength": 200,
+ "type": "string"
+ },
+ "words": {
+ "additionalProperties": {
+ "maxLength": 120,
+ "type": "string"
+ },
+ "propertyNames": {
+ "maxLength": 60,
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "x": {
+ "maxLength": 200,
+ "type": "string"
+ },
+ "y": {
+ "items": {
+ "maxLength": 200,
+ "type": "string"
+ },
+ "maxItems": 8,
+ "type": "array"
+ }
+ },
+ "required": [
+ "chart"
+ ],
+ "type": "object"
+ },
+ "dataset_id": {
+ "maxLength": 80,
+ "type": "string"
+ },
+ "kind": {
+ "const": "chart",
+ "type": "string"
+ },
+ "layout": {
+ "additionalProperties": false,
+ "properties": {
+ "h": {
+ "maximum": 100,
+ "minimum": 1,
+ "type": "number"
+ },
+ "w": {
+ "maximum": 100,
+ "minimum": 1,
+ "type": "number"
+ },
+ "x": {
+ "maximum": 100,
+ "minimum": 0,
+ "type": "number"
+ },
+ "y": {
+ "maximum": 400,
+ "minimum": 0,
+ "type": "number"
+ },
+ "z": {
+ "maximum": 999,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "x",
+ "y",
+ "w",
+ "h"
+ ],
+ "type": "object"
+ },
+ "query": {
+ "additionalProperties": false,
+ "properties": {
+ "grain": {
+ "description": "Group date and timestamp columns in group_by by this period (week starts Monday); each group is labelled with the period's first day",
+ "enum": [
+ "day",
+ "week",
+ "month",
+ "quarter",
+ "year"
+ ],
+ "type": "string"
+ },
+ "group_by": {
+ "items": {
+ "type": "string"
+ },
+ "maxItems": 10,
+ "type": "array"
+ },
+ "limit": {
+ "default": 100,
+ "maximum": 1000,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "metrics": {
+ "items": {
+ "properties": {
+ "as": {
+ "pattern": "^[a-z_][a-z0-9_]{0,62}$",
+ "type": "string"
+ },
+ "column": {
+ "type": "string"
+ },
+ "fn": {
+ "enum": [
+ "count",
+ "count_distinct",
+ "sum",
+ "avg",
+ "min",
+ "max"
+ ],
+ "type": "string"
+ },
+ "metric": {
+ "description": "A saved metric of the dataset, by name (describe_dataset lists them), instead of fn/column/where",
+ "maxLength": 63,
+ "type": "string"
+ },
+ "where": {
+ "description": "Only rows matching these filters count toward this metric (e.g. revenue where status is not refunded), next to unfiltered metrics in the same call",
+ "items": {
+ "properties": {
+ "column": {
+ "type": "string"
+ },
+ "op": {
+ "description": "between takes [low, high] and includes both ends; in/not_in take an array; contains/starts_with are case-insensitive text matches; on date and timestamp columns a value can be relative to the time of the query: now, now-30d, now-12w, now-3m, now-1y",
+ "enum": [
+ "eq",
+ "neq",
+ "gt",
+ "gte",
+ "lt",
+ "lte",
+ "in",
+ "not_in",
+ "contains",
+ "starts_with",
+ "is_null",
+ "not_null",
+ "between"
+ ],
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "anyOf": [
+ {
+ "maxLength": 1000,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ {
+ "items": {
+ "anyOf": [
+ {
+ "maxLength": 1000,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "maxItems": 100,
+ "type": "array"
+ }
+ ]
+ }
+ },
+ "required": [
+ "column",
+ "op"
+ ],
+ "type": "object"
+ },
+ "maxItems": 10,
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "maxItems": 20,
+ "type": "array"
+ },
+ "offset": {
+ "default": 0,
+ "maximum": 100000,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "order_by": {
+ "items": {
+ "properties": {
+ "column": {
+ "type": "string"
+ },
+ "dir": {
+ "default": "asc",
+ "enum": [
+ "asc",
+ "desc"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "column"
+ ],
+ "type": "object"
+ },
+ "maxItems": 10,
+ "type": "array"
+ },
+ "select": {
+ "items": {
+ "type": "string"
+ },
+ "maxItems": 200,
+ "type": "array"
+ },
+ "where": {
+ "items": {
+ "properties": {
+ "column": {
+ "type": "string"
+ },
+ "op": {
+ "description": "between takes [low, high] and includes both ends; in/not_in take an array; contains/starts_with are case-insensitive text matches; on date and timestamp columns a value can be relative to the time of the query: now, now-30d, now-12w, now-3m, now-1y",
+ "enum": [
+ "eq",
+ "neq",
+ "gt",
+ "gte",
+ "lt",
+ "lte",
+ "in",
+ "not_in",
+ "contains",
+ "starts_with",
+ "is_null",
+ "not_null",
+ "between"
+ ],
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "anyOf": [
+ {
+ "maxLength": 1000,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ {
+ "items": {
+ "anyOf": [
+ {
+ "maxLength": 1000,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "maxItems": 100,
+ "type": "array"
+ }
+ ]
+ }
+ },
+ "required": [
+ "column",
+ "op"
+ ],
+ "type": "object"
+ },
+ "maxItems": 30,
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "style": {
+ "additionalProperties": false,
+ "properties": {
+ "align": {
+ "enum": [
+ "left",
+ "center",
+ "right"
+ ],
+ "type": "string"
+ },
+ "color": {
+ "pattern": "^#[0-9a-fA-F]{6}$",
+ "type": "string"
+ },
+ "fill": {
+ "pattern": "^(#[0-9a-fA-F]{6}|none)$",
+ "type": "string"
+ },
+ "fontSize": {
+ "maximum": 96,
+ "minimum": 8,
+ "type": "number"
+ },
+ "shape": {
+ "enum": [
+ "rect",
+ "ellipse",
+ "line",
+ "arrow"
+ ],
+ "type": "string"
+ },
+ "stroke": {
+ "pattern": "^(#[0-9a-fA-F]{6}|none)$",
+ "type": "string"
+ },
+ "subtitleSize": {
+ "maximum": 48,
+ "minimum": 8,
+ "type": "number"
+ },
+ "titleSize": {
+ "maximum": 96,
+ "minimum": 10,
+ "type": "number"
+ },
+ "weight": {
+ "enum": [
+ "regular",
+ "bold"
+ ],
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "version": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "dataset_id",
+ "query",
+ "chart"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "currency": {
+ "maxLength": 3,
+ "minLength": 3,
+ "type": "string"
+ },
+ "dataset_id": {
+ "maxLength": 80,
+ "type": "string"
+ },
+ "format": {
+ "enum": [
+ "number",
+ "percent",
+ "currency",
+ "compact"
+ ],
+ "type": "string"
+ },
+ "kind": {
+ "const": "kpi",
+ "type": "string"
+ },
+ "layout": {
+ "additionalProperties": false,
+ "properties": {
+ "h": {
+ "maximum": 100,
+ "minimum": 1,
+ "type": "number"
+ },
+ "w": {
+ "maximum": 100,
+ "minimum": 1,
+ "type": "number"
+ },
+ "x": {
+ "maximum": 100,
+ "minimum": 0,
+ "type": "number"
+ },
+ "y": {
+ "maximum": 400,
+ "minimum": 0,
+ "type": "number"
+ },
+ "z": {
+ "maximum": 999,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "x",
+ "y",
+ "w",
+ "h"
+ ],
+ "type": "object"
+ },
+ "query": {
+ "additionalProperties": false,
+ "properties": {
+ "grain": {
+ "description": "Group date and timestamp columns in group_by by this period (week starts Monday); each group is labelled with the period's first day",
+ "enum": [
+ "day",
+ "week",
+ "month",
+ "quarter",
+ "year"
+ ],
+ "type": "string"
+ },
+ "group_by": {
+ "items": {
+ "type": "string"
+ },
+ "maxItems": 10,
+ "type": "array"
+ },
+ "limit": {
+ "default": 100,
+ "maximum": 1000,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "metrics": {
+ "items": {
+ "properties": {
+ "as": {
+ "pattern": "^[a-z_][a-z0-9_]{0,62}$",
+ "type": "string"
+ },
+ "column": {
+ "type": "string"
+ },
+ "fn": {
+ "enum": [
+ "count",
+ "count_distinct",
+ "sum",
+ "avg",
+ "min",
+ "max"
+ ],
+ "type": "string"
+ },
+ "metric": {
+ "description": "A saved metric of the dataset, by name (describe_dataset lists them), instead of fn/column/where",
+ "maxLength": 63,
+ "type": "string"
+ },
+ "where": {
+ "description": "Only rows matching these filters count toward this metric (e.g. revenue where status is not refunded), next to unfiltered metrics in the same call",
+ "items": {
+ "properties": {
+ "column": {
+ "type": "string"
+ },
+ "op": {
+ "description": "between takes [low, high] and includes both ends; in/not_in take an array; contains/starts_with are case-insensitive text matches; on date and timestamp columns a value can be relative to the time of the query: now, now-30d, now-12w, now-3m, now-1y",
+ "enum": [
+ "eq",
+ "neq",
+ "gt",
+ "gte",
+ "lt",
+ "lte",
+ "in",
+ "not_in",
+ "contains",
+ "starts_with",
+ "is_null",
+ "not_null",
+ "between"
+ ],
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "anyOf": [
+ {
+ "maxLength": 1000,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ {
+ "items": {
+ "anyOf": [
+ {
+ "maxLength": 1000,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "maxItems": 100,
+ "type": "array"
+ }
+ ]
+ }
+ },
+ "required": [
+ "column",
+ "op"
+ ],
+ "type": "object"
+ },
+ "maxItems": 10,
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "maxItems": 20,
+ "type": "array"
+ },
+ "offset": {
+ "default": 0,
+ "maximum": 100000,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "order_by": {
+ "items": {
+ "properties": {
+ "column": {
+ "type": "string"
+ },
+ "dir": {
+ "default": "asc",
+ "enum": [
+ "asc",
+ "desc"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "column"
+ ],
+ "type": "object"
+ },
+ "maxItems": 10,
+ "type": "array"
+ },
+ "select": {
+ "items": {
+ "type": "string"
+ },
+ "maxItems": 200,
+ "type": "array"
+ },
+ "where": {
+ "items": {
+ "properties": {
+ "column": {
+ "type": "string"
+ },
+ "op": {
+ "description": "between takes [low, high] and includes both ends; in/not_in take an array; contains/starts_with are case-insensitive text matches; on date and timestamp columns a value can be relative to the time of the query: now, now-30d, now-12w, now-3m, now-1y",
+ "enum": [
+ "eq",
+ "neq",
+ "gt",
+ "gte",
+ "lt",
+ "lte",
+ "in",
+ "not_in",
+ "contains",
+ "starts_with",
+ "is_null",
+ "not_null",
+ "between"
+ ],
+ "type": "string"
+ },
+ "value": {
+ "anyOf": [
+ {
+ "anyOf": [
+ {
+ "maxLength": 1000,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ {
+ "items": {
+ "anyOf": [
+ {
+ "maxLength": 1000,
+ "type": "string"
+ },
+ {
+ "type": "number"
+ },
+ {
+ "type": "boolean"
+ }
+ ]
+ },
+ "maxItems": 100,
+ "type": "array"
+ }
+ ]
+ }
+ },
+ "required": [
+ "column",
+ "op"
+ ],
+ "type": "object"
+ },
+ "maxItems": 30,
+ "type": "array"
+ }
+ },
+ "type": "object"
+ },
+ "style": {
+ "additionalProperties": false,
+ "properties": {
+ "align": {
+ "enum": [
+ "left",
+ "center",
+ "right"
+ ],
+ "type": "string"
+ },
+ "color": {
+ "pattern": "^#[0-9a-fA-F]{6}$",
+ "type": "string"
+ },
+ "fill": {
+ "pattern": "^(#[0-9a-fA-F]{6}|none)$",
+ "type": "string"
+ },
+ "fontSize": {
+ "maximum": 96,
+ "minimum": 8,
+ "type": "number"
+ },
+ "shape": {
+ "enum": [
+ "rect",
+ "ellipse",
+ "line",
+ "arrow"
+ ],
+ "type": "string"
+ },
+ "stroke": {
+ "pattern": "^(#[0-9a-fA-F]{6}|none)$",
+ "type": "string"
+ },
+ "subtitleSize": {
+ "maximum": 48,
+ "minimum": 8,
+ "type": "number"
+ },
+ "titleSize": {
+ "maximum": 96,
+ "minimum": 10,
+ "type": "number"
+ },
+ "weight": {
+ "enum": [
+ "regular",
+ "bold"
+ ],
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "title": {
+ "maxLength": 200,
+ "type": "string"
+ },
+ "version": {
+ "maximum": 9007199254740991,
+ "minimum": -9007199254740991,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "kind",
+ "dataset_id",
+ "query"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "text",
+ "type": "string"
+ },
+ "layout": {
+ "additionalProperties": false,
+ "properties": {
+ "h": {
+ "maximum": 100,
+ "minimum": 1,
+ "type": "number"
+ },
+ "w": {
+ "maximum": 100,
+ "minimum": 1,
+ "type": "number"
+ },
+ "x": {
+ "maximum": 100,
+ "minimum": 0,
+ "type": "number"
+ },
+ "y": {
+ "maximum": 400,
+ "minimum": 0,
+ "type": "number"
+ },
+ "z": {
+ "maximum": 999,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "x",
+ "y",
+ "w",
+ "h"
+ ],
+ "type": "object"
+ },
+ "style": {
+ "additionalProperties": false,
+ "properties": {
+ "align": {
+ "enum": [
+ "left",
+ "center",
+ "right"
+ ],
+ "type": "string"
+ },
+ "color": {
+ "pattern": "^#[0-9a-fA-F]{6}$",
+ "type": "string"
+ },
+ "fill": {
+ "pattern": "^(#[0-9a-fA-F]{6}|none)$",
+ "type": "string"
+ },
+ "fontSize": {
+ "maximum": 96,
+ "minimum": 8,
+ "type": "number"
+ },
+ "shape": {
+ "enum": [
+ "rect",
+ "ellipse",
+ "line",
+ "arrow"
+ ],
+ "type": "string"
+ },
+ "stroke": {
+ "pattern": "^(#[0-9a-fA-F]{6}|none)$",
+ "type": "string"
+ },
+ "subtitleSize": {
+ "maximum": 48,
+ "minimum": 8,
+ "type": "number"
+ },
+ "titleSize": {
+ "maximum": 96,
+ "minimum": 10,
+ "type": "number"
+ },
+ "weight": {
+ "enum": [
+ "regular",
+ "bold"
+ ],
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "text": {
+ "maxLength": 4000,
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind",
+ "text"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "shape",
+ "type": "string"
+ },
+ "layout": {
+ "additionalProperties": false,
+ "properties": {
+ "h": {
+ "maximum": 100,
+ "minimum": 1,
+ "type": "number"
+ },
+ "w": {
+ "maximum": 100,
+ "minimum": 1,
+ "type": "number"
+ },
+ "x": {
+ "maximum": 100,
+ "minimum": 0,
+ "type": "number"
+ },
+ "y": {
+ "maximum": 400,
+ "minimum": 0,
+ "type": "number"
+ },
+ "z": {
+ "maximum": 999,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "x",
+ "y",
+ "w",
+ "h"
+ ],
+ "type": "object"
+ },
+ "shape": {
+ "enum": [
+ "rect",
+ "ellipse",
+ "line",
+ "arrow"
+ ],
+ "type": "string"
+ },
+ "style": {
+ "additionalProperties": false,
+ "properties": {
+ "align": {
+ "enum": [
+ "left",
+ "center",
+ "right"
+ ],
+ "type": "string"
+ },
+ "color": {
+ "pattern": "^#[0-9a-fA-F]{6}$",
+ "type": "string"
+ },
+ "fill": {
+ "pattern": "^(#[0-9a-fA-F]{6}|none)$",
+ "type": "string"
+ },
+ "fontSize": {
+ "maximum": 96,
+ "minimum": 8,
+ "type": "number"
+ },
+ "shape": {
+ "enum": [
+ "rect",
+ "ellipse",
+ "line",
+ "arrow"
+ ],
+ "type": "string"
+ },
+ "stroke": {
+ "pattern": "^(#[0-9a-fA-F]{6}|none)$",
+ "type": "string"
+ },
+ "subtitleSize": {
+ "maximum": 48,
+ "minimum": 8,
+ "type": "number"
+ },
+ "titleSize": {
+ "maximum": 96,
+ "minimum": 10,
+ "type": "number"
+ },
+ "weight": {
+ "enum": [
+ "regular",
+ "bold"
+ ],
+ "type": "string"
+ }
+ },
+ "type": "object"
+ }
+ },
+ "required": [
+ "kind"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "kind": {
+ "const": "commentary",
+ "type": "string"
+ },
+ "layout": {
+ "additionalProperties": false,
+ "properties": {
+ "h": {
+ "maximum": 100,
+ "minimum": 1,
+ "type": "number"
+ },
+ "w": {
+ "maximum": 100,
+ "minimum": 1,
+ "type": "number"
+ },
+ "x": {
+ "maximum": 100,
+ "minimum": 0,
+ "type": "number"
+ },
+ "y": {
+ "maximum": 400,
+ "minimum": 0,
+ "type": "number"
+ },
+ "z": {
+ "maximum": 999,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "x",
+ "y",
+ "w",
+ "h"
+ ],
+ "type": "object"
+ },
+ "prompt": {
+ "maxLength": 1000,
+ "type": "string"
+ },
+ "style": {
+ "additionalProperties": false,
+ "properties": {
+ "align": {
+ "enum": [
+ "left",
+ "center",
+ "right"
+ ],
+ "type": "string"
+ },
+ "color": {
+ "pattern": "^#[0-9a-fA-F]{6}$",
+ "type": "string"
+ },
+ "fill": {
+ "pattern": "^(#[0-9a-fA-F]{6}|none)$",
+ "type": "string"
+ },
+ "fontSize": {
+ "maximum": 96,
+ "minimum": 8,
+ "type": "number"
+ },
+ "shape": {
+ "enum": [
+ "rect",
+ "ellipse",
+ "line",
+ "arrow"
+ ],
+ "type": "string"
+ },
+ "stroke": {
+ "pattern": "^(#[0-9a-fA-F]{6}|none)$",
+ "type": "string"
+ },
+ "subtitleSize": {
+ "maximum": 48,
+ "minimum": 8,
+ "type": "number"
+ },
+ "titleSize": {
+ "maximum": 96,
+ "minimum": 10,
+ "type": "number"
+ },
+ "weight": {
+ "enum": [
+ "regular",
+ "bold"
+ ],
+ "type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "text": {
+ "maxLength": 4000,
+ "type": "string"
+ }
+ },
+ "required": [
+ "kind"
+ ],
+ "type": "object"
+ }
+]