@lotics/app-sdk 0.134.5 → 0.134.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2903,10 +2903,12 @@ var expression_string_exports = {};
2903
2903
  __export(expression_string_exports, {
2904
2904
  capitalize: () => capitalize,
2905
2905
  charAt: () => charAt,
2906
+ containerNumberCheckDigit: () => containerNumberCheckDigit,
2906
2907
  contains: () => contains,
2907
2908
  endsWith: () => endsWith,
2908
2909
  formatDecimal: () => formatDecimal,
2909
2910
  formatNumber: () => formatNumber2,
2911
+ isContainerNumber: () => isContainerNumber,
2910
2912
  join: () => join,
2911
2913
  length: () => length,
2912
2914
  localeCompare: () => localeCompare,
@@ -2939,6 +2941,31 @@ function isUsableLocale(locale) {
2939
2941
  }
2940
2942
  }
2941
2943
 
2944
+ // ../shared/src/container_number.ts
2945
+ var SHAPE = /^[A-Z]{3}[UJZ]\d{7}$/;
2946
+ function letterValue(letter) {
2947
+ const index = letter.charCodeAt(0) - 65;
2948
+ let value = 9;
2949
+ for (let counted = -1; counted < index; ) {
2950
+ value += 1;
2951
+ if (value % 11 !== 0) counted += 1;
2952
+ }
2953
+ return value;
2954
+ }
2955
+ function containerCheckDigit(head) {
2956
+ const sum2 = Array.from(head.slice(0, 10)).reduce((total, char, at2) => total + (char >= "0" && char <= "9" ? Number(char) : letterValue(char)) * 2 ** at2, 0);
2957
+ return sum2 % 11 % 10;
2958
+ }
2959
+ function normalizeContainerNumber(read2) {
2960
+ return read2.toUpperCase().replace(/[\s-]+/g, "");
2961
+ }
2962
+ function readContainerNumber(read2) {
2963
+ const number = normalizeContainerNumber(read2);
2964
+ if (!SHAPE.test(number)) return { kind: "shape" };
2965
+ const expected = containerCheckDigit(number);
2966
+ return Number(number[10]) === expected ? { kind: "holds", number } : { kind: "check", number, expected };
2967
+ }
2968
+
2942
2969
  // ../../node_modules/@noble/hashes/_u64.js
2943
2970
  var fromNumH = (n) => n / 2 ** 32 | 0;
2944
2971
  var fromNumL = (n) => n >>> 0;
@@ -3471,6 +3498,22 @@ function removeSpaces(text2) {
3471
3498
  }
3472
3499
  return text2.replace(/\s/gu, "");
3473
3500
  }
3501
+ function isContainerNumber(text2) {
3502
+ if (text2 == null) return null;
3503
+ if (typeof text2 !== "string") {
3504
+ throw new ExpressionArgumentError("isContainerNumber: expected string, got " + typeof text2);
3505
+ }
3506
+ return readContainerNumber(text2).kind === "holds";
3507
+ }
3508
+ function containerNumberCheckDigit(text2) {
3509
+ if (text2 == null) return null;
3510
+ if (typeof text2 !== "string") {
3511
+ throw new ExpressionArgumentError("containerNumberCheckDigit: expected string, got " + typeof text2);
3512
+ }
3513
+ const read2 = readContainerNumber(normalizeContainerNumber(text2).slice(0, 10) + "0");
3514
+ if (read2.kind === "shape") return null;
3515
+ return read2.kind === "holds" ? 0 : read2.expected;
3516
+ }
3474
3517
  function matchCount(str, search) {
3475
3518
  if (search === "") return Math.max(0, str.length - 1);
3476
3519
  let matches = 0;
@@ -7992,6 +8035,8 @@ var HELPER_COST = {
7992
8035
  replaceAll: "builds",
7993
8036
  removeChars: "builds",
7994
8037
  removeSpaces: "builds",
8038
+ isContainerNumber: "reads",
8039
+ containerNumberCheckDigit: "reads",
7995
8040
  startsWith: "reads",
7996
8041
  endsWith: "reads",
7997
8042
  substring: "builds",
@@ -27,7 +27,7 @@ export interface AppFile {
27
27
  place?: PhotoPlace;
28
28
  }
29
29
  export type AppLoadTiming = { boot_ms?: number | undefined; page_bytes?: number | undefined; page_connect_ms?: number | undefined; page_decoded_bytes?: number | undefined; page_download_ms?: number | undefined; page_ttfb_ms?: number | undefined; };
30
- export type AppSpec = { version: 73; app: { alias: string; label: string; description: string | null; locale: DocumentTemplateLocale; scope: { entity: string; param: string; counts: { query: string; param: string | null; } | null; list: string | null; } | null; opens_on: { days: number; } | { span: "day" | "month" | "quarter" | "week" | "year"; view: "day" | "month" | "week" | null; ahead: boolean; } | null; }; entities: Record<string, { alias: string; label: string; singular: string | null; table: string; fields: Record<string, { alias: string; id: string; type: "autonumber" | "boolean" | "date" | "files" | "formula" | "lookup" | "number" | "rollup" | "select" | "select_member" | "select_record_link" | "text"; result: "boolean" | "date" | "files" | "number" | "select" | "select_member" | "select_record_link" | "text" | null; label: string; description: string | null; format: "datetime" | "email" | "link" | "markdown" | "month" | "phone" | "text" | "time" | null; multi: boolean; photo_places: boolean; required: boolean; readonly: boolean; notation: { style: "decimal"; decimals: number | null; } | { style: "currency"; currency: string | { per_row: string; }; } | { style: "unit"; unit: string | { per_row: string; }; decimals: number | null; } | null; rating: number | null; limit: { field: string; } | { value: number; } | null; gate: { field: string; } | { value: number; } | null; due: boolean; frees: boolean; summed: boolean; accumulates: boolean; serial: boolean; whole: boolean; restates: string | null; starts: "me" | "today" | null; default: string | number | boolean | string[] | null; options: { id: string; alias: string; label: string; color: "amber" | "blue" | "cyan" | "emerald" | "fuchsia" | "gray" | "green" | "indigo" | "lime" | "neutral" | "orange" | "pink" | "purple" | "red" | "rose" | "sky" | "slate" | "stone" | "teal" | "violet" | "yellow" | "zinc" | null; mark: { kind: string; name: string; } | null; short: string | null; }[] | null; link: string | null; accept: string | null; image: string | null; party: "organization" | "person" | null; pictures: { query: string; param: string; } | null; face: Record<string, string>; default_from: { link: string; field: string; } | null; reads: string[]; reads_through: string[]; counts: { entity: string; back: string | null; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; })[]; } | null; missing: { entity: string; } | null; through: { link: string; field: string; } | null; pick: { query: string; param: string; same: { field: string; param: string; }[]; bounds: { field: string; param: string; of: "date" | "number"; lookup: boolean; }[]; } | null; suggest: { query: string; param: string; column: string; } | null; applies: ({ field: string; options: string[]; } | { field: string; value: boolean; })[]; }>; title: string; subtitle: string[]; image: string | null; image_from: "any" | "images"; image_shape: "landscape" | "portrait" | "square" | null; mark: string | null; description: string | null; party: "organization" | "person" | null; lead: string | null; image_order: string[]; mine: string | null; unique: string[][]; status: { field: string; closed: string[]; dropped: string[]; history: string | null; dates: Record<string, string>; stages: { option: string; label: string; owner: { kind: "member"; column: string; link: string | null; label: string; } | { kind: "group"; group: string; label: string; }; within: number | null; when: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; }[]; maker: string | null; moves: { query: string; param: string; link: string; status: string; at: string; by: string | null; went: Record<string, string>; } | null; } | null; settled: string | null; task: { close: { to: string; act: string | null; } | null; reopen: { to: string; act: string | null; } | null; member: string | null; } | null; progress: { entity: string; via: string; passed: string | null; read: { query: string; param: string; }; }[]; figure: string | null; scan: { read: "iso6346" | "text"; agent: string; field: string | null; photo: string | null; } | { read: "code"; field: string | null; photo: string | null; } | null; place: { address: string; latitude: string; longitude: string; accuracy: string | null; } | null; pin: { on: string; x: string; y: string; } | null; cadence: { on: { days: ("fri" | "mon" | "sat" | "sun" | "thu" | "tue" | "wed")[]; } | { field: string; }; every: { days: number | RecordBound; } | { months: number | RecordBound; } | { years: number | RecordBound; } | null; start: string | null; end: string | null; from: string | null; until: string | null; }[]; nests: { parent: string; children: string; closed: string | null; } | null; filed: Record<string, string>; list: { query: string; param: string | null; }; listed: string[] | null; one: { query: string; param: string; } | null; query: { opens: string[]; } | null; create: { workflow: string; fields: string[]; picker: string[] | null; picker_only: boolean; inputs: Record<string, { alias: string; id: string; type: "autonumber" | "boolean" | "date" | "files" | "formula" | "lookup" | "number" | "rollup" | "select" | "select_member" | "select_record_link" | "text"; result: "boolean" | "date" | "files" | "number" | "select" | "select_member" | "select_record_link" | "text" | null; label: string; description: string | null; format: "datetime" | "email" | "link" | "markdown" | "month" | "phone" | "text" | "time" | null; multi: boolean; photo_places: boolean; required: boolean; readonly: boolean; notation: { style: "decimal"; decimals: number | null; } | { style: "currency"; currency: string | { per_row: string; }; } | { style: "unit"; unit: string | { per_row: string; }; decimals: number | null; } | null; rating: number | null; limit: { field: string; } | { value: number; } | null; gate: { field: string; } | { value: number; } | null; due: boolean; frees: boolean; summed: boolean; accumulates: boolean; serial: boolean; whole: boolean; restates: string | null; starts: "me" | "today" | null; default: string | number | boolean | string[] | null; options: { id: string; alias: string; label: string; color: "amber" | "blue" | "cyan" | "emerald" | "fuchsia" | "gray" | "green" | "indigo" | "lime" | "neutral" | "orange" | "pink" | "purple" | "red" | "rose" | "sky" | "slate" | "stone" | "teal" | "violet" | "yellow" | "zinc" | null; mark: { kind: string; name: string; } | null; short: string | null; }[] | null; link: string | null; accept: string | null; image: string | null; party: "organization" | "person" | null; pictures: { query: string; param: string; } | null; face: Record<string, string>; default_from: { link: string; field: string; } | null; reads: string[]; reads_through: string[]; counts: { entity: string; back: string | null; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; })[]; } | null; missing: { entity: string; } | null; through: { link: string; field: string; } | null; pick: { query: string; param: string; same: { field: string; param: string; }[]; bounds: { field: string; param: string; of: "date" | "number"; lookup: boolean; }[]; } | null; suggest: { query: string; param: string; column: string; } | null; applies: ({ field: string; options: string[]; } | { field: string; value: boolean; })[]; }>; } | null; update: { workflow: string; fields: string[]; } | null; remove: { workflow: string; with: string[]; } | null; }>; views: ({ kind: "list"; key: string; label: string; entity: string; scope: { field: string; } | null; register: { columns: string[]; columns_stated: boolean; edits: string[]; filters: (string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; })[]; source_column: boolean; scroll: boolean | null; beside: boolean; search: string[] | null; chips: boolean; checks: boolean; regroup: boolean; sort: { field: string; desc: boolean; }[] | null; group: string | null; tabs: { tab: string; label: string; term: { kind: "in"; field: string; } | { kind: "open"; from: string; to: string; } | null; totals: { via: string; read: { query: string; }; columns: { alias: string; label: string; notation: { style: "decimal"; decimals: number | null; } | { style: "currency"; currency: string | { per_row: string; }; } | { style: "unit"; unit: string | { per_row: string; }; decimals: number | null; } | null; aggregate: "avg" | "max" | "min" | "sum"; }[]; } | null; where: ({ field: string; options: string[]; } | { field: string; value: boolean; } | { field: string; member: "me"; })[]; sort: { field: string; desc: boolean; }[] | null; }[] | null; opens_on: { days: number; } | { span: "day" | "month" | "quarter" | "week" | "year"; view: "day" | "month" | "week" | null; ahead: boolean; } | null; layout: SpecLayout; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; opens: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; })[]; remove: boolean; create: string[] | null; add_label: string | null; export: boolean; readings: ({ entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "list"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number | RecordBound>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | RecordBound | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; } | { field: string; record: string; })[]; tab: string | null; columns: string[]; column_readings: { read: { query: string; param: string; window: boolean; change: boolean; } | null; period: "month" | "quarter" | "today" | "tomorrow" | "week" | "year" | { days: number; } | null; columns: { key: string; at: number; child: boolean; reading: { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "breakdown"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "metric"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; over: string | null; target: number | { field: string; } | null; better: "down" | "up" | null; bound: { value: number; } | { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "progress"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; planned: { start: string; end: string; }; done: string; finished: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "trend"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; over: string; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; ahead: boolean; split: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; } | null; within: { low: number | RecordBound | null; high: number | RecordBound | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { kind: "funnel"; entity: string; label: string; steps: string[]; read: { query: string; param: string | null; }; }; }[]; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "breakdown"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "metric"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; over: string | null; target: number | { field: string; } | null; better: "down" | "up" | null; bound: { value: number; } | { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "pivot"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; rows: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; columns: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "progress"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; planned: { start: string; end: string; }; done: string; finished: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "shortfall"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string; across: string | null; value: string | null; on_hand: { entity: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; by: string | null; across: string | null; value: string | null; }; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "trend"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; over: string; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; ahead: boolean; split: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; } | null; within: { low: number | RecordBound | null; high: number | RecordBound | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; })[]; attention: boolean; column_readings: { read: { query: string; param: string; window: boolean; change: boolean; } | null; period: "month" | "quarter" | "today" | "tomorrow" | "week" | "year" | { days: number; } | null; columns: { key: string; at: number; child: boolean; reading: { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "breakdown"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "metric"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; over: string | null; target: number | { field: string; } | null; better: "down" | "up" | null; bound: { value: number; } | { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "progress"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; planned: { start: string; end: string; }; done: string; finished: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "trend"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; over: string; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; ahead: boolean; split: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; } | null; within: { low: number | RecordBound | null; high: number | RecordBound | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { kind: "funnel"; entity: string; label: string; steps: string[]; read: { query: string; param: string | null; }; }; }[]; } | null; }; entities: string[]; sources: { entity: string; fields: Record<string, string>; scope: string | null; register: { columns: string[]; columns_stated: boolean; edits: string[]; filters: (string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; })[]; source_column: boolean; scroll: boolean | null; beside: boolean; search: string[] | null; chips: boolean; checks: boolean; regroup: boolean; sort: { field: string; desc: boolean; }[] | null; group: string | null; tabs: { tab: string; label: string; term: { kind: "in"; field: string; } | { kind: "open"; from: string; to: string; } | null; totals: { via: string; read: { query: string; }; columns: { alias: string; label: string; notation: { style: "decimal"; decimals: number | null; } | { style: "currency"; currency: string | { per_row: string; }; } | { style: "unit"; unit: string | { per_row: string; }; decimals: number | null; } | null; aggregate: "avg" | "max" | "min" | "sum"; }[]; } | null; where: ({ field: string; options: string[]; } | { field: string; value: boolean; } | { field: string; member: "me"; })[]; sort: { field: string; desc: boolean; }[] | null; }[] | null; opens_on: { days: number; } | { span: "day" | "month" | "quarter" | "week" | "year"; view: "day" | "month" | "week" | null; ahead: boolean; } | null; layout: SpecLayout; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; opens: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; })[]; remove: boolean; create: string[] | null; add_label: string | null; export: boolean; readings: ({ entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "list"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number | RecordBound>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | RecordBound | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; } | { field: string; record: string; })[]; tab: string | null; columns: string[]; column_readings: { read: { query: string; param: string; window: boolean; change: boolean; } | null; period: "month" | "quarter" | "today" | "tomorrow" | "week" | "year" | { days: number; } | null; columns: { key: string; at: number; child: boolean; reading: { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "breakdown"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "metric"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; over: string | null; target: number | { field: string; } | null; better: "down" | "up" | null; bound: { value: number; } | { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "progress"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; planned: { start: string; end: string; }; done: string; finished: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "trend"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; over: string; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; ahead: boolean; split: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; } | null; within: { low: number | RecordBound | null; high: number | RecordBound | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { kind: "funnel"; entity: string; label: string; steps: string[]; read: { query: string; param: string | null; }; }; }[]; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "breakdown"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "metric"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; over: string | null; target: number | { field: string; } | null; better: "down" | "up" | null; bound: { value: number; } | { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "pivot"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; rows: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; columns: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "progress"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; planned: { start: string; end: string; }; done: string; finished: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "shortfall"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string; across: string | null; value: string | null; on_hand: { entity: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; by: string | null; across: string | null; value: string | null; }; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "trend"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; over: string; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; ahead: boolean; split: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; } | null; within: { low: number | RecordBound | null; high: number | RecordBound | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; })[]; attention: boolean; column_readings: { read: { query: string; param: string; window: boolean; change: boolean; } | null; period: "month" | "quarter" | "today" | "tomorrow" | "week" | "year" | { days: number; } | null; columns: { key: string; at: number; child: boolean; reading: { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "breakdown"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "metric"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; over: string | null; target: number | { field: string; } | null; better: "down" | "up" | null; bound: { value: number; } | { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "progress"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; planned: { start: string; end: string; }; done: string; finished: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "trend"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; over: string; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; ahead: boolean; split: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; } | null; within: { low: number | RecordBound | null; high: number | RecordBound | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { kind: "funnel"; entity: string; label: string; steps: string[]; read: { query: string; param: string | null; }; }; }[]; } | null; }; }[]; place: { options: Record<string, { id: string; alias: string; label: string; color: "amber" | "blue" | "cyan" | "emerald" | "fuchsia" | "gray" | "green" | "indigo" | "lime" | "neutral" | "orange" | "pink" | "purple" | "red" | "rose" | "sky" | "slate" | "stone" | "teal" | "violet" | "yellow" | "zinc" | null; mark: { kind: string; name: string; } | null; short: string | null; }[]>; closed: string[]; } | null; read: string | null; bound: { read: { query: string; param: string; }; listed: string[]; same: { field: string; param: string; } | null; bounds: { field: string; param: string; lookup: boolean; of: "date" | "link" | "member" | "number" | "select"; options: Record<string, string> | null; }[]; via: string; } | null; } | { kind: "sheet"; key: string; label: string; readings: { reading: { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "list"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number | RecordBound>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | RecordBound | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; } | { field: string; record: string; })[]; tab: string | null; columns: string[]; column_readings: { read: { query: string; param: string; window: boolean; change: boolean; } | null; period: "month" | "quarter" | "today" | "tomorrow" | "week" | "year" | { days: number; } | null; columns: { key: string; at: number; child: boolean; reading: { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "breakdown"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "metric"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; over: string | null; target: number | { field: string; } | null; better: "down" | "up" | null; bound: { value: number; } | { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "progress"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; planned: { start: string; end: string; }; done: string; finished: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "trend"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; over: string; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; ahead: boolean; split: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; } | null; within: { low: number | RecordBound | null; high: number | RecordBound | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { kind: "funnel"; entity: string; label: string; steps: string[]; read: { query: string; param: string | null; }; }; }[]; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "breakdown"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "metric"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; over: string | null; target: number | { field: string; } | null; better: "down" | "up" | null; bound: { value: number; } | { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "pivot"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; rows: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; columns: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "shortfall"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string; across: string | null; value: string | null; on_hand: { entity: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; by: string | null; across: string | null; value: string | null; }; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "trend"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; over: string; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; ahead: boolean; split: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; } | null; within: { low: number | RecordBound | null; high: number | RecordBound | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; }; scope: { field: string; } | null; }[]; })[]; pages: Record<string, { door: "drawer" | "page" | null; facts: string[]; checks: boolean; sections: { title: string | null; description: string | null; at: string[] | null; fields: string[]; groups: { label: string; fields: string[]; acts: string[]; heads: string[] | null; lines: { key: string; label: string | null; cells: ({ kind: "field"; field: string; } | { kind: "blank"; } | { kind: "act"; act: string; } | { kind: "value"; key: string; label: string; compute: { expression: string; reads: Record<string, { from: "row"; field: string; } | { from: "record"; field: string; } | { from: "place"; field: string; } | { from: "formula"; expression: string; }>; }; output: "boolean" | "date" | "datetime" | "number" | "text"; notation: { style: "decimal"; decimals: number | null; } | { style: "currency"; currency: string | { per_row: string; }; } | { style: "unit"; unit: string | { per_row: string; }; decimals: number | null; } | null; })[]; }[] | null; }[]; reads: string[]; blocks: ({ kind: "funnel"; entity: string; read: { query: string; param: string; }; label: string; steps: string[]; when: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; } | { key: string; totals: Record<string, string>; narrower: string[]; soonest: string[]; expect: string | null; of: string | null; add_form: { preset: Record<string, { id: string; label: string; }>; among: Record<string, string[]>; } | null; edits: string[]; pick: { read: { query: string; param: string | null; }; back: string; same: { field: string; param: string; }[]; admits: { query: string; param: string | null; } | null; } | null; checklist: { photo: string | null; clause: string | null; words: string[]; failed: string[]; passed: string | null; } | null; gantt: { start: string; end: string; milestones: string[]; planned: { start: string | null; end: string | null; } | null; progress: string | null; after: string | null; } | null; compare: { before: string; after: string; } | null; current: string | null; post: { bodies: string[]; text: string; compute: { expression: string; reads: Record<string, { from: "row"; field: string; } | { from: "record"; field: string; } | { from: "place"; field: string; } | { from: "formula"; expression: string; }>; } | null; media: string; link: string | null; network: string; group: string | null; networks: Record<string, "facebook" | "instagram" | "linkedin" | "threads" | "x">; } | null; under: { field: string; entity: string; via: string; back: string; read: { query: string; param: string; listed: string[]; }; key: string; where: { field: string; options: string[]; }[]; add_form: { preset: Record<string, { id: string; label: string; }>; among: Record<string, string[]>; } | null; } | null; layout: "cards" | "table" | null | undefined; when: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; kind: "rows"; } | { key: string; totals: Record<string, string>; narrower: string[]; soonest: string[]; expect: string | null; of: string | null; add_form: { preset: Record<string, { id: string; label: string; }>; among: Record<string, string[]>; } | null; edits: string[]; pick: { read: { query: string; param: string | null; }; back: string; same: { field: string; param: string; }[]; admits: { query: string; param: string | null; } | null; } | null; checklist: { photo: string | null; clause: string | null; words: string[]; failed: string[]; passed: string | null; } | null; gantt: { start: string; end: string; milestones: string[]; planned: { start: string | null; end: string | null; } | null; progress: string | null; after: string | null; } | null; compare: { before: string; after: string; } | null; current: string | null; post: { bodies: string[]; text: string; compute: { expression: string; reads: Record<string, { from: "row"; field: string; } | { from: "record"; field: string; } | { from: "place"; field: string; } | { from: "formula"; expression: string; }>; } | null; media: string; link: string | null; network: string; group: string | null; networks: Record<string, "facebook" | "instagram" | "linkedin" | "threads" | "x">; } | null; under: { field: string; entity: string; via: string; back: string; read: { query: string; param: string; listed: string[]; }; key: string; where: { field: string; options: string[]; }[]; add_form: { preset: Record<string, { id: string; label: string; }>; among: Record<string, string[]>; } | null; } | null; layout: "cards" | "table" | null | undefined; when: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; kind: "outline"; counts: { query: string; param: string; }; } | { kind: "figures"; fields: string[]; labels: Record<string, string>; when: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; } | { kind: "list"; key: string; when: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; } | { kind: "statement"; title: string; lines: { field: string; op: "equals" | "minus" | "plus" | "times" | null; rate: string | null; parts: { entity: string; read: { query: string; param: string; listed: string[]; }; same: string; before: { field: string; param: string; } | null; columns: string[]; figure: string; } | null; }[]; when: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; } | { kind: "timeline"; key: string; at: string; by: string | null; when: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; } | { kind: "agenda"; key: string; day: string; time: string | null; part: string | null; start: string | null; when: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; } | { kind: "files"; fields: string[]; title: string; add_label: string | null; when: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; } | { kind: "reading"; reading: { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "list"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number | RecordBound>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | RecordBound | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; } | { field: string; record: string; })[]; tab: string | null; columns: string[]; column_readings: { read: { query: string; param: string; window: boolean; change: boolean; } | null; period: "month" | "quarter" | "today" | "tomorrow" | "week" | "year" | { days: number; } | null; columns: { key: string; at: number; child: boolean; reading: { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "breakdown"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "metric"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; over: string | null; target: number | { field: string; } | null; better: "down" | "up" | null; bound: { value: number; } | { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "progress"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; planned: { start: string; end: string; }; done: string; finished: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "trend"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; over: string; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; ahead: boolean; split: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; } | null; within: { low: number | RecordBound | null; high: number | RecordBound | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { kind: "funnel"; entity: string; label: string; steps: string[]; read: { query: string; param: string | null; }; }; }[]; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "breakdown"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "metric"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; over: string | null; target: number | { field: string; } | null; better: "down" | "up" | null; bound: { value: number; } | { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "pivot"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; rows: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; columns: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "progress"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; planned: { start: string; end: string; }; done: string; finished: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "shortfall"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string; across: string | null; value: string | null; on_hand: { entity: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; by: string | null; across: string | null; value: string | null; }; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "trend"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; over: string; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; ahead: boolean; split: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; } | null; within: { low: number | RecordBound | null; high: number | RecordBound | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; }; via: string; when: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; } | { kind: "text"; field: string; title: string; when: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; } | { kind: "comments"; key: string; title: string; when: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; } | { kind: "choices"; field: string; title: string; when: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; } | { kind: "linked"; field: string; title: string; when: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; })[]; acts: string[]; entry: string[]; acts_last: boolean; when: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; side: boolean; tab: string | null; }[]; steps: boolean; views: { kind: "list"; key: string; label: string; entity: string; scope: { field: string; } | null; register: { columns: string[]; columns_stated: boolean; edits: string[]; filters: (string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; })[]; source_column: boolean; scroll: boolean | null; beside: boolean; search: string[] | null; chips: boolean; checks: boolean; regroup: boolean; sort: { field: string; desc: boolean; }[] | null; group: string | null; tabs: { tab: string; label: string; term: { kind: "in"; field: string; } | { kind: "open"; from: string; to: string; } | null; totals: { via: string; read: { query: string; }; columns: { alias: string; label: string; notation: { style: "decimal"; decimals: number | null; } | { style: "currency"; currency: string | { per_row: string; }; } | { style: "unit"; unit: string | { per_row: string; }; decimals: number | null; } | null; aggregate: "avg" | "max" | "min" | "sum"; }[]; } | null; where: ({ field: string; options: string[]; } | { field: string; value: boolean; } | { field: string; member: "me"; })[]; sort: { field: string; desc: boolean; }[] | null; }[] | null; opens_on: { days: number; } | { span: "day" | "month" | "quarter" | "week" | "year"; view: "day" | "month" | "week" | null; ahead: boolean; } | null; layout: SpecLayout; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; opens: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; })[]; remove: boolean; create: string[] | null; add_label: string | null; export: boolean; readings: ({ entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "list"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number | RecordBound>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | RecordBound | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; } | { field: string; record: string; })[]; tab: string | null; columns: string[]; column_readings: { read: { query: string; param: string; window: boolean; change: boolean; } | null; period: "month" | "quarter" | "today" | "tomorrow" | "week" | "year" | { days: number; } | null; columns: { key: string; at: number; child: boolean; reading: { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "breakdown"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "metric"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; over: string | null; target: number | { field: string; } | null; better: "down" | "up" | null; bound: { value: number; } | { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "progress"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; planned: { start: string; end: string; }; done: string; finished: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "trend"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; over: string; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; ahead: boolean; split: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; } | null; within: { low: number | RecordBound | null; high: number | RecordBound | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { kind: "funnel"; entity: string; label: string; steps: string[]; read: { query: string; param: string | null; }; }; }[]; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "breakdown"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "metric"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; over: string | null; target: number | { field: string; } | null; better: "down" | "up" | null; bound: { value: number; } | { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "pivot"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; rows: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; columns: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "progress"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; planned: { start: string; end: string; }; done: string; finished: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "shortfall"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string; across: string | null; value: string | null; on_hand: { entity: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; by: string | null; across: string | null; value: string | null; }; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "trend"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; over: string; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; ahead: boolean; split: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; } | null; within: { low: number | RecordBound | null; high: number | RecordBound | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; })[]; attention: boolean; column_readings: { read: { query: string; param: string; window: boolean; change: boolean; } | null; period: "month" | "quarter" | "today" | "tomorrow" | "week" | "year" | { days: number; } | null; columns: { key: string; at: number; child: boolean; reading: { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "breakdown"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "metric"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; over: string | null; target: number | { field: string; } | null; better: "down" | "up" | null; bound: { value: number; } | { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "progress"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; planned: { start: string; end: string; }; done: string; finished: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "trend"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; over: string; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; ahead: boolean; split: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; } | null; within: { low: number | RecordBound | null; high: number | RecordBound | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { kind: "funnel"; entity: string; label: string; steps: string[]; read: { query: string; param: string | null; }; }; }[]; } | null; }; entities: string[]; sources: { entity: string; fields: Record<string, string>; scope: string | null; register: { columns: string[]; columns_stated: boolean; edits: string[]; filters: (string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; })[]; source_column: boolean; scroll: boolean | null; beside: boolean; search: string[] | null; chips: boolean; checks: boolean; regroup: boolean; sort: { field: string; desc: boolean; }[] | null; group: string | null; tabs: { tab: string; label: string; term: { kind: "in"; field: string; } | { kind: "open"; from: string; to: string; } | null; totals: { via: string; read: { query: string; }; columns: { alias: string; label: string; notation: { style: "decimal"; decimals: number | null; } | { style: "currency"; currency: string | { per_row: string; }; } | { style: "unit"; unit: string | { per_row: string; }; decimals: number | null; } | null; aggregate: "avg" | "max" | "min" | "sum"; }[]; } | null; where: ({ field: string; options: string[]; } | { field: string; value: boolean; } | { field: string; member: "me"; })[]; sort: { field: string; desc: boolean; }[] | null; }[] | null; opens_on: { days: number; } | { span: "day" | "month" | "quarter" | "week" | "year"; view: "day" | "month" | "week" | null; ahead: boolean; } | null; layout: SpecLayout; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; opens: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; })[]; remove: boolean; create: string[] | null; add_label: string | null; export: boolean; readings: ({ entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "list"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number | RecordBound>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | RecordBound | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; } | { field: string; record: string; })[]; tab: string | null; columns: string[]; column_readings: { read: { query: string; param: string; window: boolean; change: boolean; } | null; period: "month" | "quarter" | "today" | "tomorrow" | "week" | "year" | { days: number; } | null; columns: { key: string; at: number; child: boolean; reading: { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "breakdown"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "metric"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; over: string | null; target: number | { field: string; } | null; better: "down" | "up" | null; bound: { value: number; } | { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "progress"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; planned: { start: string; end: string; }; done: string; finished: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "trend"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; over: string; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; ahead: boolean; split: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; } | null; within: { low: number | RecordBound | null; high: number | RecordBound | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { kind: "funnel"; entity: string; label: string; steps: string[]; read: { query: string; param: string | null; }; }; }[]; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "breakdown"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "metric"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; over: string | null; target: number | { field: string; } | null; better: "down" | "up" | null; bound: { value: number; } | { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "pivot"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; rows: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; columns: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "progress"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; planned: { start: string; end: string; }; done: string; finished: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "shortfall"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string; across: string | null; value: string | null; on_hand: { entity: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; by: string | null; across: string | null; value: string | null; }; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "trend"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; over: string; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; ahead: boolean; split: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; } | null; within: { low: number | RecordBound | null; high: number | RecordBound | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; })[]; attention: boolean; column_readings: { read: { query: string; param: string; window: boolean; change: boolean; } | null; period: "month" | "quarter" | "today" | "tomorrow" | "week" | "year" | { days: number; } | null; columns: { key: string; at: number; child: boolean; reading: { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "breakdown"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "metric"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; over: string | null; target: number | { field: string; } | null; better: "down" | "up" | null; bound: { value: number; } | { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "progress"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; planned: { start: string; end: string; }; done: string; finished: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "trend"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; over: string; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; ahead: boolean; split: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; } | null; within: { low: number | RecordBound | null; high: number | RecordBound | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { kind: "funnel"; entity: string; label: string; steps: string[]; read: { query: string; param: string | null; }; }; }[]; } | null; }; }[]; place: { options: Record<string, { id: string; alias: string; label: string; color: "amber" | "blue" | "cyan" | "emerald" | "fuchsia" | "gray" | "green" | "indigo" | "lime" | "neutral" | "orange" | "pink" | "purple" | "red" | "rose" | "sky" | "slate" | "stone" | "teal" | "violet" | "yellow" | "zinc" | null; mark: { kind: string; name: string; } | null; short: string | null; }[]>; closed: string[]; } | null; read: string | null; bound: { read: { query: string; param: string; }; listed: string[]; same: { field: string; param: string; } | null; bounds: { field: string; param: string; lookup: boolean; of: "date" | "link" | "member" | "number" | "select"; options: Record<string, string> | null; }[]; via: string; } | null; }[]; draws: string[]; outside: { key: string; entity: string; at: string[]; one: { query: string; param: string; }; page: { door: "page"; draws: string[]; sections: [{ title: string; description: string | null; fields: string[]; blocks: { kind: "list"; key: string; reading: { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "list"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number | RecordBound>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | RecordBound | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; } | { field: string; record: string; })[]; tab: string | null; columns: string[]; column_readings: { read: { query: string; param: string; window: boolean; change: boolean; } | null; period: "month" | "quarter" | "today" | "tomorrow" | "week" | "year" | { days: number; } | null; columns: { key: string; at: number; child: boolean; reading: { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "breakdown"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "metric"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; over: string | null; target: number | { field: string; } | null; better: "down" | "up" | null; bound: { value: number; } | { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "progress"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; planned: { start: string; end: string; }; done: string; finished: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "trend"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; over: string; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; ahead: boolean; split: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; } | null; within: { low: number | RecordBound | null; high: number | RecordBound | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { kind: "funnel"; entity: string; label: string; steps: string[]; read: { query: string; param: string | null; }; }; }[]; } | null; }; via: string; same: { field: string; param: string; } | null; bounds: { field: string; param: string; of: "date" | "number"; lookup: boolean; }[]; when: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; after: number; }[]; acts: string[]; }]; }; opens_on: { days: number; } | { span: "day" | "month" | "quarter" | "week" | "year"; view: "day" | "month" | "week" | null; ahead: boolean; }; }[]; moves: { entity: string; via: string; read: { query: string; param: string; }; title: string; at: string; by: string | null; create: string[] | null; add_label: string | null; } | null; }>; acts: { alias: string; label: string; on: "record" | "rows" | "view"; rowless: boolean; period: boolean; of: string; workflow: string; when: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; to: string | null; writes: boolean; into: string | null; paper: { entity: string; option: string; } | null; marks: Record<string, boolean>; requires: string[]; recommends: string[]; asks: (string | { input: string; label: string; type: "date" | "file" | "link" | "long_text" | "member" | "number" | "select" | "text"; multi: boolean; options: { alias: string; label: string; color: "amber" | "blue" | "cyan" | "emerald" | "fuchsia" | "gray" | "green" | "indigo" | "lime" | "neutral" | "orange" | "pink" | "purple" | "red" | "rose" | "sky" | "slate" | "stone" | "teal" | "violet" | "yellow" | "zinc" | null; mark: { kind: string; name: string; } | null; short: string | null; }[] | null; entity: string | null; required: boolean; default: string | null; starts: "me" | "today" | null; accept: string | null; })[]; asking: Record<string, { alias: string; id: string; type: "autonumber" | "boolean" | "date" | "files" | "formula" | "lookup" | "number" | "rollup" | "select" | "select_member" | "select_record_link" | "text"; result: "boolean" | "date" | "files" | "number" | "select" | "select_member" | "select_record_link" | "text" | null; label: string; description: string | null; format: "datetime" | "email" | "link" | "markdown" | "month" | "phone" | "text" | "time" | null; multi: boolean; photo_places: boolean; required: boolean; readonly: boolean; notation: { style: "decimal"; decimals: number | null; } | { style: "currency"; currency: string | { per_row: string; }; } | { style: "unit"; unit: string | { per_row: string; }; decimals: number | null; } | null; rating: number | null; limit: { field: string; } | { value: number; } | null; gate: { field: string; } | { value: number; } | null; due: boolean; frees: boolean; summed: boolean; accumulates: boolean; serial: boolean; whole: boolean; restates: string | null; starts: "me" | "today" | null; default: string | number | boolean | string[] | null; options: { id: string; alias: string; label: string; color: "amber" | "blue" | "cyan" | "emerald" | "fuchsia" | "gray" | "green" | "indigo" | "lime" | "neutral" | "orange" | "pink" | "purple" | "red" | "rose" | "sky" | "slate" | "stone" | "teal" | "violet" | "yellow" | "zinc" | null; mark: { kind: string; name: string; } | null; short: string | null; }[] | null; link: string | null; accept: string | null; image: string | null; party: "organization" | "person" | null; pictures: { query: string; param: string; } | null; face: Record<string, string>; default_from: { link: string; field: string; } | null; reads: string[]; reads_through: string[]; counts: { entity: string; back: string | null; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; })[]; } | null; missing: { entity: string; } | null; through: { link: string; field: string; } | null; pick: { query: string; param: string; same: { field: string; param: string; }[]; bounds: { field: string; param: string; of: "date" | "number"; lookup: boolean; }[]; } | null; suggest: { query: string; param: string; column: string; } | null; applies: ({ field: string; options: string[]; } | { field: string; value: boolean; })[]; }>; starts: Record<string, "me" | "today">; makes: string | null; papers: { template: string; label: string; when: ({ field: string; options: string[]; } | { field: string; value: boolean; })[]; }[] | null; archive: string | null; intake: { agent: string; papers: { type: "lines"; entity: string; kind: string; files: string; } | { type: "field"; files: string; } | null; fields: string[]; parties: { link: string; fields: string[]; key: string[]; }[]; rows: { entity: string; fields: string[]; key: string[]; files: string | null; }[]; links: { entity: string; table: string; }[]; } | null; sign: { into: string; by: string; at: string; witness: string | null; } | null; review: boolean; owes: { entity: string; via: string; day: string; end: string | null; planned: string | null; cadence: number; } | null; confirm: string | true | null; danger: boolean; button: "lead" | boolean; owner: { kind: "member"; column: string; link: string | null; label: string; } | { kind: "group"; group: string; label: string; } | null; corrects: boolean; drafted: boolean; stands: string[]; views: string[]; }[]; checks: { field: string; of: string; blocks: "all" | string[] | null; resolve: string[]; writers: string[]; reads: string[]; stands: string[]; }[]; };
30
+ export type AppSpec = { version: 75; app: { alias: string; label: string; description: string | null; locale: DocumentTemplateLocale; scope: { entity: string; param: string; counts: { query: string; param: string | null; } | null; list: string | null; } | null; opens_on: { days: number; } | { span: "day" | "month" | "quarter" | "week" | "year"; view: "day" | "month" | "week" | null; ahead: boolean; } | null; }; entities: Record<string, { alias: string; label: string; singular: string | null; table: string; fields: Record<string, { alias: string; id: string; type: "autonumber" | "boolean" | "date" | "files" | "formula" | "lookup" | "number" | "rollup" | "select" | "select_member" | "select_record_link" | "text"; result: "boolean" | "date" | "files" | "number" | "select" | "select_member" | "select_record_link" | "text" | null; label: string; description: string | null; format: "datetime" | "email" | "link" | "markdown" | "month" | "phone" | "text" | "time" | null; multi: boolean; photo_places: boolean; required: boolean; readonly: boolean; notation: { style: "decimal"; decimals: number | null; } | { style: "currency"; currency: string | { per_row: string; }; } | { style: "unit"; unit: string | { per_row: string; }; decimals: number | null; } | null; rating: number | null; limit: { field: string; } | { value: number; } | null; gate: { field: string; } | { value: number; } | null; due: boolean; frees: boolean; summed: boolean; accumulates: boolean; serial: boolean; whole: boolean; restates: string | null; starts: "me" | "today" | null; default: string | number | boolean | string[] | null; options: { id: string; alias: string; label: string; color: "amber" | "blue" | "cyan" | "emerald" | "fuchsia" | "gray" | "green" | "indigo" | "lime" | "neutral" | "orange" | "pink" | "purple" | "red" | "rose" | "sky" | "slate" | "stone" | "teal" | "violet" | "yellow" | "zinc" | null; mark: { kind: string; name: string; } | null; short: string | null; }[] | null; link: string | null; accept: string | null; image: string | null; party: "organization" | "person" | null; pictures: { query: string; param: string; } | null; face: Record<string, string>; default_from: { link: string; field: string; } | null; reads: string[]; reads_through: string[]; counts: { entity: string; back: string | null; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; })[]; } | null; missing: { entity: string; } | null; through: { link: string; field: string; } | null; pick: { query: string; param: string; same: { field: string; param: string; }[]; bounds: { field: string; param: string; of: "date" | "number"; lookup: boolean; }[]; } | null; suggest: { query: string; param: string; column: string; } | null; applies: ({ field: string; options: string[]; } | { field: string; value: boolean; })[]; }>; title: string; subtitle: string[]; image: string | null; image_from: "any" | "images"; image_shape: "landscape" | "portrait" | "square" | null; mark: string | null; description: string | null; party: "organization" | "person" | null; lead: string | null; image_order: string[]; mine: string | null; unique: string[][]; status: { field: string; closed: string[]; dropped: string[]; history: string | null; dates: Record<string, string>; stages: { option: string; label: string; owner: { kind: "member"; column: string; link: string | null; label: string; } | { kind: "group"; group: string; label: string; }; within: number | null; when: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; }[]; maker: string | null; moves: { query: string; param: string; link: string; status: string; at: string; by: string | null; went: Record<string, string>; } | null; } | null; settled: string | null; task: { close: { to: string; act: string | null; } | null; reopen: { to: string; act: string | null; } | null; member: string | null; } | null; progress: { entity: string; via: string; passed: string | null; read: { query: string; param: string; }; }[]; figure: string | null; scan: { read: "iso6346" | "text"; agent: string; field: string | null; photo: string | null; } | { read: "code"; field: string | null; photo: string | null; } | null; place: { address: string; latitude: string; longitude: string; accuracy: string | null; } | null; pin: { on: string; x: string; y: string; } | null; cadence: { on: { days: ("fri" | "mon" | "sat" | "sun" | "thu" | "tue" | "wed")[]; } | { field: string; }; every: { days: number | RecordBound; } | { months: number | RecordBound; } | { years: number | RecordBound; } | null; start: string | null; end: string | null; from: string | null; until: string | null; }[]; nests: { parent: string; children: string; closed: string | null; } | null; filed: Record<string, string>; list: { query: string; param: string | null; }; listed: string[] | null; one: { query: string; param: string; } | null; query: { opens: string[]; adds: string[]; } | null; create: { workflow: string; fields: string[]; picker: string[] | null; picker_only: boolean; inputs: Record<string, { alias: string; id: string; type: "autonumber" | "boolean" | "date" | "files" | "formula" | "lookup" | "number" | "rollup" | "select" | "select_member" | "select_record_link" | "text"; result: "boolean" | "date" | "files" | "number" | "select" | "select_member" | "select_record_link" | "text" | null; label: string; description: string | null; format: "datetime" | "email" | "link" | "markdown" | "month" | "phone" | "text" | "time" | null; multi: boolean; photo_places: boolean; required: boolean; readonly: boolean; notation: { style: "decimal"; decimals: number | null; } | { style: "currency"; currency: string | { per_row: string; }; } | { style: "unit"; unit: string | { per_row: string; }; decimals: number | null; } | null; rating: number | null; limit: { field: string; } | { value: number; } | null; gate: { field: string; } | { value: number; } | null; due: boolean; frees: boolean; summed: boolean; accumulates: boolean; serial: boolean; whole: boolean; restates: string | null; starts: "me" | "today" | null; default: string | number | boolean | string[] | null; options: { id: string; alias: string; label: string; color: "amber" | "blue" | "cyan" | "emerald" | "fuchsia" | "gray" | "green" | "indigo" | "lime" | "neutral" | "orange" | "pink" | "purple" | "red" | "rose" | "sky" | "slate" | "stone" | "teal" | "violet" | "yellow" | "zinc" | null; mark: { kind: string; name: string; } | null; short: string | null; }[] | null; link: string | null; accept: string | null; image: string | null; party: "organization" | "person" | null; pictures: { query: string; param: string; } | null; face: Record<string, string>; default_from: { link: string; field: string; } | null; reads: string[]; reads_through: string[]; counts: { entity: string; back: string | null; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; })[]; } | null; missing: { entity: string; } | null; through: { link: string; field: string; } | null; pick: { query: string; param: string; same: { field: string; param: string; }[]; bounds: { field: string; param: string; of: "date" | "number"; lookup: boolean; }[]; } | null; suggest: { query: string; param: string; column: string; } | null; applies: ({ field: string; options: string[]; } | { field: string; value: boolean; })[]; }>; handed: string[]; starts: Record<string, "me" | "today">; } | null; update: { workflow: string; fields: string[]; } | null; remove: { workflow: string; with: string[]; } | null; }>; views: ({ kind: "list"; key: string; label: string; entity: string; scope: { field: string; } | null; register: { columns: string[]; columns_stated: boolean; edits: string[]; filters: (string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; })[]; source_column: boolean; beside: boolean; search: string[] | null; chips: boolean; checks: boolean; regroup: boolean; sort: { field: string; desc: boolean; }[] | null; group: string | null; tabs: { tab: string; label: string; term: { kind: "in"; field: string; } | { kind: "open"; from: string; to: string; } | null; totals: { via: string; read: { query: string; }; columns: { alias: string; label: string; notation: { style: "decimal"; decimals: number | null; } | { style: "currency"; currency: string | { per_row: string; }; } | { style: "unit"; unit: string | { per_row: string; }; decimals: number | null; } | null; aggregate: "avg" | "max" | "min" | "sum"; }[]; } | null; where: ({ field: string; options: string[]; } | { field: string; value: boolean; } | { field: string; member: "me"; })[]; sort: { field: string; desc: boolean; }[] | null; }[] | null; opens_on: { days: number; } | { span: "day" | "month" | "quarter" | "week" | "year"; view: "day" | "month" | "week" | null; ahead: boolean; } | null; layout: SpecLayout; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; opens: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; })[]; remove: boolean; create: string[] | null; add_label: string | null; export: boolean | { act: string; }; readings: ({ entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "list"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number | RecordBound>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | RecordBound | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; } | { field: string; record: string; })[]; tab: string | null; columns: string[]; column_readings: { read: { query: string; param: string; window: boolean; change: boolean; } | null; period: "month" | "quarter" | "today" | "tomorrow" | "week" | "year" | { days: number; } | null; columns: { key: string; at: number; child: boolean; reading: { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "breakdown"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "metric"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; over: string | null; target: number | { field: string; } | null; better: "down" | "up" | null; bound: { value: number; } | { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "progress"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; planned: { start: string; end: string; }; done: string; finished: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "trend"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; over: string; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; ahead: boolean; split: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; } | null; within: { low: number | RecordBound | null; high: number | RecordBound | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { kind: "funnel"; entity: string; label: string; steps: string[]; read: { query: string; param: string | null; }; }; }[]; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "breakdown"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "metric"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; over: string | null; target: number | { field: string; } | null; better: "down" | "up" | null; bound: { value: number; } | { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "pivot"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; rows: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; columns: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "progress"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; planned: { start: string; end: string; }; done: string; finished: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "shortfall"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string; across: string | null; value: string | null; on_hand: { entity: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; by: string | null; across: string | null; value: string | null; }; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "trend"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; over: string; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; ahead: boolean; split: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; } | null; within: { low: number | RecordBound | null; high: number | RecordBound | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; })[]; attention: boolean; column_readings: { read: { query: string; param: string; window: boolean; change: boolean; } | null; period: "month" | "quarter" | "today" | "tomorrow" | "week" | "year" | { days: number; } | null; columns: { key: string; at: number; child: boolean; reading: { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "breakdown"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "metric"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; over: string | null; target: number | { field: string; } | null; better: "down" | "up" | null; bound: { value: number; } | { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "progress"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; planned: { start: string; end: string; }; done: string; finished: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "trend"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; over: string; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; ahead: boolean; split: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; } | null; within: { low: number | RecordBound | null; high: number | RecordBound | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { kind: "funnel"; entity: string; label: string; steps: string[]; read: { query: string; param: string | null; }; }; }[]; } | null; }; entities: string[]; sources: { entity: string; fields: Record<string, string>; scope: string | null; register: { columns: string[]; columns_stated: boolean; edits: string[]; filters: (string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; })[]; source_column: boolean; beside: boolean; search: string[] | null; chips: boolean; checks: boolean; regroup: boolean; sort: { field: string; desc: boolean; }[] | null; group: string | null; tabs: { tab: string; label: string; term: { kind: "in"; field: string; } | { kind: "open"; from: string; to: string; } | null; totals: { via: string; read: { query: string; }; columns: { alias: string; label: string; notation: { style: "decimal"; decimals: number | null; } | { style: "currency"; currency: string | { per_row: string; }; } | { style: "unit"; unit: string | { per_row: string; }; decimals: number | null; } | null; aggregate: "avg" | "max" | "min" | "sum"; }[]; } | null; where: ({ field: string; options: string[]; } | { field: string; value: boolean; } | { field: string; member: "me"; })[]; sort: { field: string; desc: boolean; }[] | null; }[] | null; opens_on: { days: number; } | { span: "day" | "month" | "quarter" | "week" | "year"; view: "day" | "month" | "week" | null; ahead: boolean; } | null; layout: SpecLayout; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; opens: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; })[]; remove: boolean; create: string[] | null; add_label: string | null; export: boolean | { act: string; }; readings: ({ entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "list"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number | RecordBound>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | RecordBound | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; } | { field: string; record: string; })[]; tab: string | null; columns: string[]; column_readings: { read: { query: string; param: string; window: boolean; change: boolean; } | null; period: "month" | "quarter" | "today" | "tomorrow" | "week" | "year" | { days: number; } | null; columns: { key: string; at: number; child: boolean; reading: { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "breakdown"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "metric"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; over: string | null; target: number | { field: string; } | null; better: "down" | "up" | null; bound: { value: number; } | { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "progress"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; planned: { start: string; end: string; }; done: string; finished: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "trend"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; over: string; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; ahead: boolean; split: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; } | null; within: { low: number | RecordBound | null; high: number | RecordBound | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { kind: "funnel"; entity: string; label: string; steps: string[]; read: { query: string; param: string | null; }; }; }[]; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "breakdown"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "metric"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; over: string | null; target: number | { field: string; } | null; better: "down" | "up" | null; bound: { value: number; } | { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "pivot"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; rows: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; columns: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "progress"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; planned: { start: string; end: string; }; done: string; finished: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "shortfall"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string; across: string | null; value: string | null; on_hand: { entity: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; by: string | null; across: string | null; value: string | null; }; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "trend"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; over: string; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; ahead: boolean; split: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; } | null; within: { low: number | RecordBound | null; high: number | RecordBound | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; })[]; attention: boolean; column_readings: { read: { query: string; param: string; window: boolean; change: boolean; } | null; period: "month" | "quarter" | "today" | "tomorrow" | "week" | "year" | { days: number; } | null; columns: { key: string; at: number; child: boolean; reading: { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "breakdown"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "metric"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; over: string | null; target: number | { field: string; } | null; better: "down" | "up" | null; bound: { value: number; } | { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "progress"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; planned: { start: string; end: string; }; done: string; finished: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "trend"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; over: string; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; ahead: boolean; split: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; } | null; within: { low: number | RecordBound | null; high: number | RecordBound | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { kind: "funnel"; entity: string; label: string; steps: string[]; read: { query: string; param: string | null; }; }; }[]; } | null; }; }[]; place: { options: Record<string, { id: string; alias: string; label: string; color: "amber" | "blue" | "cyan" | "emerald" | "fuchsia" | "gray" | "green" | "indigo" | "lime" | "neutral" | "orange" | "pink" | "purple" | "red" | "rose" | "sky" | "slate" | "stone" | "teal" | "violet" | "yellow" | "zinc" | null; mark: { kind: string; name: string; } | null; short: string | null; }[]>; closed: string[]; } | null; read: string | null; bound: { read: { query: string; param: string; }; listed: string[]; same: { field: string; param: string; } | null; bounds: { field: string; param: string; lookup: boolean; of: "date" | "link" | "member" | "number" | "select"; options: Record<string, string> | null; }[]; via: string; } | null; } | { kind: "sheet"; key: string; label: string; readings: { reading: { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "list"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number | RecordBound>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | RecordBound | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; } | { field: string; record: string; })[]; tab: string | null; columns: string[]; column_readings: { read: { query: string; param: string; window: boolean; change: boolean; } | null; period: "month" | "quarter" | "today" | "tomorrow" | "week" | "year" | { days: number; } | null; columns: { key: string; at: number; child: boolean; reading: { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "breakdown"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "metric"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; over: string | null; target: number | { field: string; } | null; better: "down" | "up" | null; bound: { value: number; } | { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "progress"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; planned: { start: string; end: string; }; done: string; finished: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "trend"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; over: string; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; ahead: boolean; split: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; } | null; within: { low: number | RecordBound | null; high: number | RecordBound | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { kind: "funnel"; entity: string; label: string; steps: string[]; read: { query: string; param: string | null; }; }; }[]; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "breakdown"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "metric"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; over: string | null; target: number | { field: string; } | null; better: "down" | "up" | null; bound: { value: number; } | { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "pivot"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; rows: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; columns: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "shortfall"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string; across: string | null; value: string | null; on_hand: { entity: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; by: string | null; across: string | null; value: string | null; }; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "trend"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; over: string; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; ahead: boolean; split: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; } | null; within: { low: number | RecordBound | null; high: number | RecordBound | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; }; scope: { field: string; } | null; }[]; })[]; pages: Record<string, { door: "drawer" | "page" | null; facts: string[]; checks: boolean; sections: { title: string | null; description: string | null; at: string[] | null; fields: string[]; groups: { label: string; fields: string[]; acts: string[]; heads: string[] | null; lines: { key: string; label: string | null; cells: ({ kind: "field"; field: string; } | { kind: "blank"; } | { kind: "act"; act: string; } | { kind: "value"; key: string; label: string; compute: { expression: string; reads: Record<string, { from: "row"; field: string; } | { from: "record"; field: string; } | { from: "place"; field: string; } | { from: "formula"; expression: string; }>; }; output: "boolean" | "date" | "datetime" | "number" | "text"; notation: { style: "decimal"; decimals: number | null; } | { style: "currency"; currency: string | { per_row: string; }; } | { style: "unit"; unit: string | { per_row: string; }; decimals: number | null; } | null; })[]; }[] | null; }[]; reads: string[]; blocks: ({ kind: "funnel"; entity: string; read: { query: string; param: string; }; label: string; steps: string[]; when: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; } | { key: string; totals: Record<string, string>; narrower: string[]; soonest: string[]; expect: string | null; of: string | null; add_form: { preset: Record<string, { id: string; label: string; }>; among: Record<string, string[]>; } | null; edits: string[]; pick: { read: { query: string; param: string | null; }; back: string; same: { field: string; param: string; }[]; admits: { query: string; param: string | null; } | null; } | null; checklist: { photo: string | null; clause: string | null; words: string[]; failed: string[]; passed: string | null; } | null; gantt: { start: string; end: string; milestones: string[]; planned: { start: string | null; end: string | null; } | null; progress: string | null; after: string | null; } | null; compare: { before: string; after: string; } | null; current: string | null; post: { bodies: string[]; text: string; compute: { expression: string; reads: Record<string, { from: "row"; field: string; } | { from: "record"; field: string; } | { from: "place"; field: string; } | { from: "formula"; expression: string; }>; } | null; media: string; link: string | null; network: string; group: string | null; networks: Record<string, "facebook" | "instagram" | "linkedin" | "threads" | "x">; } | null; under: { field: string; entity: string; via: string; back: string; read: { query: string; param: string; listed: string[]; }; key: string; where: { field: string; options: string[]; }[]; add_form: { preset: Record<string, { id: string; label: string; }>; among: Record<string, string[]>; } | null; } | null; layout: "cards" | "table" | null | undefined; when: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; kind: "rows"; } | { key: string; totals: Record<string, string>; narrower: string[]; soonest: string[]; expect: string | null; of: string | null; add_form: { preset: Record<string, { id: string; label: string; }>; among: Record<string, string[]>; } | null; edits: string[]; pick: { read: { query: string; param: string | null; }; back: string; same: { field: string; param: string; }[]; admits: { query: string; param: string | null; } | null; } | null; checklist: { photo: string | null; clause: string | null; words: string[]; failed: string[]; passed: string | null; } | null; gantt: { start: string; end: string; milestones: string[]; planned: { start: string | null; end: string | null; } | null; progress: string | null; after: string | null; } | null; compare: { before: string; after: string; } | null; current: string | null; post: { bodies: string[]; text: string; compute: { expression: string; reads: Record<string, { from: "row"; field: string; } | { from: "record"; field: string; } | { from: "place"; field: string; } | { from: "formula"; expression: string; }>; } | null; media: string; link: string | null; network: string; group: string | null; networks: Record<string, "facebook" | "instagram" | "linkedin" | "threads" | "x">; } | null; under: { field: string; entity: string; via: string; back: string; read: { query: string; param: string; listed: string[]; }; key: string; where: { field: string; options: string[]; }[]; add_form: { preset: Record<string, { id: string; label: string; }>; among: Record<string, string[]>; } | null; } | null; layout: "cards" | "table" | null | undefined; when: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; kind: "outline"; counts: { query: string; param: string; }; } | { kind: "figures"; fields: string[]; labels: Record<string, string>; when: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; } | { kind: "list"; key: string; when: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; } | { kind: "statement"; title: string; lines: { field: string; op: "equals" | "minus" | "plus" | "times" | null; rate: string | null; parts: { entity: string; read: { query: string; param: string; listed: string[]; }; same: string; before: { field: string; param: string; } | null; columns: string[]; figure: string; } | null; }[]; when: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; } | { kind: "timeline"; key: string; at: string; by: string | null; when: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; } | { kind: "agenda"; key: string; day: string; time: string | null; part: string | null; start: string | null; when: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; } | { kind: "files"; fields: string[]; title: string; add_label: string | null; when: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; } | { kind: "reading"; reading: { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "list"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number | RecordBound>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | RecordBound | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; } | { field: string; record: string; })[]; tab: string | null; columns: string[]; column_readings: { read: { query: string; param: string; window: boolean; change: boolean; } | null; period: "month" | "quarter" | "today" | "tomorrow" | "week" | "year" | { days: number; } | null; columns: { key: string; at: number; child: boolean; reading: { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "breakdown"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "metric"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; over: string | null; target: number | { field: string; } | null; better: "down" | "up" | null; bound: { value: number; } | { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "progress"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; planned: { start: string; end: string; }; done: string; finished: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "trend"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; over: string; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; ahead: boolean; split: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; } | null; within: { low: number | RecordBound | null; high: number | RecordBound | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { kind: "funnel"; entity: string; label: string; steps: string[]; read: { query: string; param: string | null; }; }; }[]; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "breakdown"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "metric"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; over: string | null; target: number | { field: string; } | null; better: "down" | "up" | null; bound: { value: number; } | { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "pivot"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; rows: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; columns: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "progress"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; planned: { start: string; end: string; }; done: string; finished: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "shortfall"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string; across: string | null; value: string | null; on_hand: { entity: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; by: string | null; across: string | null; value: string | null; }; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "trend"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; over: string; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; ahead: boolean; split: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; } | null; within: { low: number | RecordBound | null; high: number | RecordBound | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; }; via: string; when: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; } | { kind: "text"; field: string; title: string; when: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; } | { kind: "comments"; key: string; title: string; when: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; } | { kind: "choices"; field: string; title: string; when: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; } | { kind: "linked"; field: string; title: string; when: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; })[]; acts: string[]; entry: string[]; acts_last: boolean; when: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; side: boolean; tab: string | null; }[]; steps: boolean; views: { kind: "list"; key: string; label: string; entity: string; scope: { field: string; } | null; register: { columns: string[]; columns_stated: boolean; edits: string[]; filters: (string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; })[]; source_column: boolean; beside: boolean; search: string[] | null; chips: boolean; checks: boolean; regroup: boolean; sort: { field: string; desc: boolean; }[] | null; group: string | null; tabs: { tab: string; label: string; term: { kind: "in"; field: string; } | { kind: "open"; from: string; to: string; } | null; totals: { via: string; read: { query: string; }; columns: { alias: string; label: string; notation: { style: "decimal"; decimals: number | null; } | { style: "currency"; currency: string | { per_row: string; }; } | { style: "unit"; unit: string | { per_row: string; }; decimals: number | null; } | null; aggregate: "avg" | "max" | "min" | "sum"; }[]; } | null; where: ({ field: string; options: string[]; } | { field: string; value: boolean; } | { field: string; member: "me"; })[]; sort: { field: string; desc: boolean; }[] | null; }[] | null; opens_on: { days: number; } | { span: "day" | "month" | "quarter" | "week" | "year"; view: "day" | "month" | "week" | null; ahead: boolean; } | null; layout: SpecLayout; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; opens: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; })[]; remove: boolean; create: string[] | null; add_label: string | null; export: boolean | { act: string; }; readings: ({ entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "list"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number | RecordBound>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | RecordBound | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; } | { field: string; record: string; })[]; tab: string | null; columns: string[]; column_readings: { read: { query: string; param: string; window: boolean; change: boolean; } | null; period: "month" | "quarter" | "today" | "tomorrow" | "week" | "year" | { days: number; } | null; columns: { key: string; at: number; child: boolean; reading: { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "breakdown"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "metric"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; over: string | null; target: number | { field: string; } | null; better: "down" | "up" | null; bound: { value: number; } | { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "progress"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; planned: { start: string; end: string; }; done: string; finished: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "trend"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; over: string; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; ahead: boolean; split: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; } | null; within: { low: number | RecordBound | null; high: number | RecordBound | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { kind: "funnel"; entity: string; label: string; steps: string[]; read: { query: string; param: string | null; }; }; }[]; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "breakdown"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "metric"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; over: string | null; target: number | { field: string; } | null; better: "down" | "up" | null; bound: { value: number; } | { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "pivot"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; rows: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; columns: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "progress"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; planned: { start: string; end: string; }; done: string; finished: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "shortfall"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string; across: string | null; value: string | null; on_hand: { entity: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; by: string | null; across: string | null; value: string | null; }; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "trend"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; over: string; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; ahead: boolean; split: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; } | null; within: { low: number | RecordBound | null; high: number | RecordBound | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; })[]; attention: boolean; column_readings: { read: { query: string; param: string; window: boolean; change: boolean; } | null; period: "month" | "quarter" | "today" | "tomorrow" | "week" | "year" | { days: number; } | null; columns: { key: string; at: number; child: boolean; reading: { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "breakdown"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "metric"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; over: string | null; target: number | { field: string; } | null; better: "down" | "up" | null; bound: { value: number; } | { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "progress"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; planned: { start: string; end: string; }; done: string; finished: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "trend"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; over: string; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; ahead: boolean; split: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; } | null; within: { low: number | RecordBound | null; high: number | RecordBound | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { kind: "funnel"; entity: string; label: string; steps: string[]; read: { query: string; param: string | null; }; }; }[]; } | null; }; entities: string[]; sources: { entity: string; fields: Record<string, string>; scope: string | null; register: { columns: string[]; columns_stated: boolean; edits: string[]; filters: (string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; })[]; source_column: boolean; beside: boolean; search: string[] | null; chips: boolean; checks: boolean; regroup: boolean; sort: { field: string; desc: boolean; }[] | null; group: string | null; tabs: { tab: string; label: string; term: { kind: "in"; field: string; } | { kind: "open"; from: string; to: string; } | null; totals: { via: string; read: { query: string; }; columns: { alias: string; label: string; notation: { style: "decimal"; decimals: number | null; } | { style: "currency"; currency: string | { per_row: string; }; } | { style: "unit"; unit: string | { per_row: string; }; decimals: number | null; } | null; aggregate: "avg" | "max" | "min" | "sum"; }[]; } | null; where: ({ field: string; options: string[]; } | { field: string; value: boolean; } | { field: string; member: "me"; })[]; sort: { field: string; desc: boolean; }[] | null; }[] | null; opens_on: { days: number; } | { span: "day" | "month" | "quarter" | "week" | "year"; view: "day" | "month" | "week" | null; ahead: boolean; } | null; layout: SpecLayout; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; opens: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; })[]; remove: boolean; create: string[] | null; add_label: string | null; export: boolean | { act: string; }; readings: ({ entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "list"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number | RecordBound>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | RecordBound | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; } | { field: string; record: string; })[]; tab: string | null; columns: string[]; column_readings: { read: { query: string; param: string; window: boolean; change: boolean; } | null; period: "month" | "quarter" | "today" | "tomorrow" | "week" | "year" | { days: number; } | null; columns: { key: string; at: number; child: boolean; reading: { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "breakdown"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "metric"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; over: string | null; target: number | { field: string; } | null; better: "down" | "up" | null; bound: { value: number; } | { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "progress"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; planned: { start: string; end: string; }; done: string; finished: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "trend"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; over: string; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; ahead: boolean; split: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; } | null; within: { low: number | RecordBound | null; high: number | RecordBound | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { kind: "funnel"; entity: string; label: string; steps: string[]; read: { query: string; param: string | null; }; }; }[]; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "breakdown"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "metric"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; over: string | null; target: number | { field: string; } | null; better: "down" | "up" | null; bound: { value: number; } | { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "pivot"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; rows: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; columns: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "progress"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; planned: { start: string; end: string; }; done: string; finished: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "shortfall"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string; across: string | null; value: string | null; on_hand: { entity: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; by: string | null; across: string | null; value: string | null; }; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "trend"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; over: string; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; ahead: boolean; split: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; } | null; within: { low: number | RecordBound | null; high: number | RecordBound | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; })[]; attention: boolean; column_readings: { read: { query: string; param: string; window: boolean; change: boolean; } | null; period: "month" | "quarter" | "today" | "tomorrow" | "week" | "year" | { days: number; } | null; columns: { key: string; at: number; child: boolean; reading: { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "breakdown"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "metric"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; over: string | null; target: number | { field: string; } | null; better: "down" | "up" | null; bound: { value: number; } | { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "progress"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; planned: { start: string; end: string; }; done: string; finished: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "trend"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; over: string; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; ahead: boolean; split: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; } | null; within: { low: number | RecordBound | null; high: number | RecordBound | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { kind: "funnel"; entity: string; label: string; steps: string[]; read: { query: string; param: string | null; }; }; }[]; } | null; }; }[]; place: { options: Record<string, { id: string; alias: string; label: string; color: "amber" | "blue" | "cyan" | "emerald" | "fuchsia" | "gray" | "green" | "indigo" | "lime" | "neutral" | "orange" | "pink" | "purple" | "red" | "rose" | "sky" | "slate" | "stone" | "teal" | "violet" | "yellow" | "zinc" | null; mark: { kind: string; name: string; } | null; short: string | null; }[]>; closed: string[]; } | null; read: string | null; bound: { read: { query: string; param: string; }; listed: string[]; same: { field: string; param: string; } | null; bounds: { field: string; param: string; lookup: boolean; of: "date" | "link" | "member" | "number" | "select"; options: Record<string, string> | null; }[]; via: string; } | null; }[]; draws: string[]; outside: { key: string; entity: string; at: string[]; one: { query: string; param: string; }; page: { door: "page"; draws: string[]; sections: [{ title: string; description: string | null; fields: string[]; blocks: { kind: "list"; key: string; reading: { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "list"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number | RecordBound>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | RecordBound | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; } | { field: string; record: string; })[]; tab: string | null; columns: string[]; column_readings: { read: { query: string; param: string; window: boolean; change: boolean; } | null; period: "month" | "quarter" | "today" | "tomorrow" | "week" | "year" | { days: number; } | null; columns: { key: string; at: number; child: boolean; reading: { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "breakdown"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; by: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; }; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; sort: "asc" | "desc" | null; over: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "metric"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; over: string | null; target: number | { field: string; } | null; better: "down" | "up" | null; bound: { value: number; } | { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "progress"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; planned: { start: string; end: string; }; done: string; finished: string | null; } | { entity: string; label: string; read: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; }; kind: "trend"; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; } | { field: string; through: true; })[]; tab: string | null; over: string; value: string | null; aggregate: "avg" | "max" | "min" | "sum"; ahead: boolean; split: string | { field: string; tiers: number[]; } | { field: string; values: "all" | "held"; } | null; within: { low: number | RecordBound | null; high: number | RecordBound | null; } | null; hourly: { query: string; param: string | null; aggregate: { by: string[] | null; bands: Record<string, number[]> | null; day: string | null; hour: true | null; sum: string | null; max: string | null; min: string | null; } | null; } | null; } | { kind: "funnel"; entity: string; label: string; steps: string[]; read: { query: string; param: string | null; }; }; }[]; } | null; }; via: string; same: { field: string; param: string; } | null; bounds: { field: string; param: string; of: "date" | "number"; lookup: boolean; }[]; when: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; after: number; }[]; acts: string[]; }]; }; opens_on: { days: number; } | { span: "day" | "month" | "quarter" | "week" | "year"; view: "day" | "month" | "week" | null; ahead: boolean; }; }[]; moves: { entity: string; via: string; read: { query: string; param: string; }; title: string; at: string; by: string | null; create: string[] | null; add_label: string | null; } | null; }>; acts: { alias: string; label: string; on: "record" | "rows" | "view"; rowless: boolean; period: boolean; of: string; workflow: string; when: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<Bound>; of: "date" | "datetime" | "number"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; })[]; to: string | null; writes: boolean; into: string | null; paper: { entity: string; option: string; } | null; marks: Record<string, boolean>; requires: string[]; recommends: string[]; asks: (string | { input: string; label: string; type: "date" | "file" | "link" | "long_text" | "member" | "number" | "select" | "text"; multi: boolean; options: { alias: string; label: string; color: "amber" | "blue" | "cyan" | "emerald" | "fuchsia" | "gray" | "green" | "indigo" | "lime" | "neutral" | "orange" | "pink" | "purple" | "red" | "rose" | "sky" | "slate" | "stone" | "teal" | "violet" | "yellow" | "zinc" | null; mark: { kind: string; name: string; } | null; short: string | null; }[] | null; entity: string | null; required: boolean; default: string | null; starts: "me" | "today" | null; accept: string | null; })[]; asking: Record<string, { alias: string; id: string; type: "autonumber" | "boolean" | "date" | "files" | "formula" | "lookup" | "number" | "rollup" | "select" | "select_member" | "select_record_link" | "text"; result: "boolean" | "date" | "files" | "number" | "select" | "select_member" | "select_record_link" | "text" | null; label: string; description: string | null; format: "datetime" | "email" | "link" | "markdown" | "month" | "phone" | "text" | "time" | null; multi: boolean; photo_places: boolean; required: boolean; readonly: boolean; notation: { style: "decimal"; decimals: number | null; } | { style: "currency"; currency: string | { per_row: string; }; } | { style: "unit"; unit: string | { per_row: string; }; decimals: number | null; } | null; rating: number | null; limit: { field: string; } | { value: number; } | null; gate: { field: string; } | { value: number; } | null; due: boolean; frees: boolean; summed: boolean; accumulates: boolean; serial: boolean; whole: boolean; restates: string | null; starts: "me" | "today" | null; default: string | number | boolean | string[] | null; options: { id: string; alias: string; label: string; color: "amber" | "blue" | "cyan" | "emerald" | "fuchsia" | "gray" | "green" | "indigo" | "lime" | "neutral" | "orange" | "pink" | "purple" | "red" | "rose" | "sky" | "slate" | "stone" | "teal" | "violet" | "yellow" | "zinc" | null; mark: { kind: string; name: string; } | null; short: string | null; }[] | null; link: string | null; accept: string | null; image: string | null; party: "organization" | "person" | null; pictures: { query: string; param: string; } | null; face: Record<string, string>; default_from: { link: string; field: string; } | null; reads: string[]; reads_through: string[]; counts: { entity: string; back: string | null; where: ({ field: string; options: string[]; } | { field: string; compare: StatedBounds<number>; of: "number"; zone: string | null; } | { field: string; compare: StatedBounds<string | { now: true; }>; of: "date" | "datetime"; zone: string | null; } | { field: string; empty: boolean; } | { field: string; value: boolean; } | { field: string; member: "me"; })[]; } | null; missing: { entity: string; } | null; through: { link: string; field: string; } | null; pick: { query: string; param: string; same: { field: string; param: string; }[]; bounds: { field: string; param: string; of: "date" | "number"; lookup: boolean; }[]; } | null; suggest: { query: string; param: string; column: string; } | null; applies: ({ field: string; options: string[]; } | { field: string; value: boolean; })[]; }>; starts: Record<string, "me" | "today">; makes: string | null; papers: { template: string; label: string; when: ({ field: string; options: string[]; } | { field: string; value: boolean; })[]; }[] | null; archive: string | null; intake: { agent: string; papers: { type: "lines"; entity: string; kind: string; files: string; } | { type: "field"; files: string; } | null; fields: string[]; parties: { link: string; fields: string[]; key: string[]; }[]; rows: { entity: string; fields: string[]; key: string[]; files: string | null; }[]; links: { entity: string; table: string; }[]; } | null; sign: { into: string; by: string; at: string; witness: string | null; } | null; review: boolean; owes: { entity: string; via: string; day: string; end: string | null; planned: string | null; cadence: number; } | null; confirm: string | true | null; danger: boolean; button: "lead" | boolean; owner: { kind: "member"; column: string; link: string | null; label: string; } | { kind: "group"; group: string; label: string; } | null; corrects: boolean; drafted: boolean; stands: string[]; views: string[]; }[]; checks: { field: string; of: string; blocks: "all" | string[] | null; resolve: string[]; writers: string[]; reads: string[]; draft?: { expression: string; reads: Record<string, { from: "row"; field: string; } | { from: "record"; field: string; } | { from: "place"; field: string; } | { from: "formula"; expression: string; }>; } | undefined; stands: string[]; }[]; };
31
31
  /** What a body read needs of a table: its id, its name for a refusal, and its fields. */
32
32
  export type BodyTable = { id: string; name: string; fields: (TableField)[]; title_field_key: string | null; };
33
33
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lotics/app-sdk",
3
- "version": "0.134.5",
3
+ "version": "0.134.7",
4
4
  "description": "The SDK a Lotics custom-code app reads and writes through — typed hooks over the host bridge, cell readers, mount() and AppRouter",
5
5
  "type": "module",
6
6
  "exports": {