Tools

Generated from the tools/list answer (server name sezzlee-excel) of @sezzlee/excel-mcp 0.15.0.

The descriptions are the text the server publishes to every client, so your agent reads exactly what this page shows. Every input schema is closed: an argument a tool does not list here, or a value of the wrong type, is refused with invalid_argument and never silently ignored.

26 tools: list_workbooks, describe_workbook, read_sheet, profile_sheet, get_merged_ranges, get_data_validations, get_tables, get_conditional_formats, get_images, get_charts, aggregate_sheet, query_result, execute_result, read_result, find_in_sheet, calculate_workbook, prepare_bulk_job, run_bulk_job, get_bulk_job, prepare_bulk, prepare_edit, prepare_transfer, transfer_data, create_workbook, edit_workbook, create_workbook_version.

list_workbooks

List readable .xlsx, .xlsm and .csv files under the server root, as filePath values the other tools accept.

Annotations: read-only, idempotent, closed world.

ArgumentTypeRequiredDescription
subdirectorystringFolder under the root to list.
patternstringGlob over the relative path, for example q1/*.xlsx.
maxResultsinteger (1–200)Maximum returned files, default 50. Does not increase the traversal budget.

describe_workbook

Discover sheets, ranges, default headers and columns, merge/validation counts, formula cache coverage and defined names. Known files and columns need no discovery.

Annotations: read-only, idempotent, closed world.

ArgumentTypeRequiredDescription
filePathstringyesPath under the root.
includeDefinedNamesbooleanInclude defined names, default true.
delimiter"comma" | "semicolon" | "tab" | "pipe"CSV separator; sniffed when omitted.
encoding"utf-8" | "utf-16le" | "utf-16be" | "windows-1254" | "iso-8859-9" | "windows-1252" | "windows-1251" | "windows-1256" | "shift_jis" | "gb18030" | "big5" | "euc-kr"CSV encoding; BOM or utf-8 when omitted.

read_sheet

Read a rectangle as headers and row arrays; rowNumbers locate sheet rows. Continue with nextCursor. Unzoned dates/times remain local wall clocks; written offsets are kept.

Annotations: read-only, idempotent, closed world.

ArgumentTypeRequiredDescription
filePathstringyesPath under the root.
sheetNamestringSheet; default first visible.
tablestring (1–255 chars)XLSX table: data rows, not range.
visibleOnlybooleanXLSX: skip hidden/AutoFilter rows.
rangestringA1: B2:D40, B:D, 2:40; default used range.
columnsarray of object (1–64 items)Readings {column,type,...}; reuse profile_sheet.
columns[].columnstringyesColumn.
columns[].type"number" | "date" | "boolean" | "time" | "duration" | "text"yesReading type.
columns[].missingValuesarray of string (1–128 chars) (≤ 64 items)Missing-text tokens.
columns[].decimal"." | ","Number decimal mark.
columns[].group"none" | "." | "," | " " | "'"Number group mark.
columns[].localestring (2–64 chars)Number/date locale.
columns[].numberingSystemstring (3–32 chars)Number digit system.
columns[].identifiers"refuse" | "read"Number: read digit identifiers?
columns[].formatstring (1–64 chars)Date pattern, e.g. dd.MM.yyyy.
columns[].order"dmy" | "mdy"Date order if no format.
columns[].trueValuesarray of string (1–128 chars) (≤ 64 items)Boolean true tokens.
columns[].falseValuesarray of string (1–128 chars) (≤ 64 items)Boolean false tokens.
localestring (2–64 chars)BCP 47 locale: separators/month names, not date order.
numberingSystemstring (3–32 chars)Locale digit system, e.g. arab.
missingValuesarray of string (1–128 chars) (≤ 64 items)Missing tokens: N/A, NULL, -, —, #N/A.
trueValuesarray of string (1–128 chars) (≤ 64 items)True tokens: true, yes, y, Evet, E.
falseValuesarray of string (1–128 chars) (≤ 64 items)False tokens: false, no, n, Hayır, H.
columnMode"auto" | "header" | "letter"Column: auto (default), header, letter.
includeTypedbooleanAdd a typedValues grid read by columns, which it requires.
cursorstringContinue nextCursor; not with sheetName/range. Inherits options.
maxCellsinteger (1–10000)Cells per page, default 2000; cursor pages may differ.
valueMode"values" | "formulas" | "both"values (default), formulas, or values with formula notes. XLSX only.
mergedCells"master" | "repeat"Merged cells: master value only (default) or repeated. XLSX only.
headerRowinteger (≥ 0)Header: 0 none; default table/AutoFilter, text above data, else 1.
headerScanbooleanRefuse missing/ambiguous headers; not with headerRow on a new read. Cursor-bound: omit to inherit.
includeHyperlinksbooleanInclude hyperlink notes, default false. Cursor-bound; true requires XLSX.
delimiter"comma" | "semicolon" | "tab" | "pipe"CSV separator; sniffed when omitted.
encoding"utf-8" | "utf-16le" | "utf-16be" | "windows-1254" | "iso-8859-9" | "windows-1252" | "windows-1251" | "windows-1256" | "shift_jis" | "gb18030" | "big5" | "euc-kr"CSV encoding; BOM or utf-8 when omitted.

profile_sheet

Sample a bounded prefix for types/confidence, formats, missing/distinct values, extrema, frequencies, unreadable examples and identifiers. Returns reusable columns and sampling limits.

Annotations: read-only, idempotent, closed world.

ArgumentTypeRequiredDescription
filePathstringyesPath under the root.
sheetNamestringSheet; default first visible.
tablestring (1–255 chars)XLSX table: data rows, not range.
visibleOnlybooleanXLSX: skip hidden/AutoFilter rows.
rangestringA1 range including any header row, default used range.
headerRowinteger (0–1048576)Header: 0 none; default table/AutoFilter, text above data, else 1.
headerScanbooleanRefuse ambiguous or missing headers.
columnsarray of object (1–64 items)Readings {column,type,...}; reuse profile_sheet.
columns[].columnstringyesColumn.
columns[].type"number" | "date" | "boolean" | "time" | "duration" | "text"yesReading type.
columns[].missingValuesarray of string (1–128 chars) (≤ 64 items)Missing-text tokens.
columns[].decimal"." | ","Number decimal mark.
columns[].group"none" | "." | "," | " " | "'"Number group mark.
columns[].localestring (2–64 chars)Number/date locale.
columns[].numberingSystemstring (3–32 chars)Number digit system.
columns[].identifiers"refuse" | "read"Number: read digit identifiers?
columns[].formatstring (1–64 chars)Date pattern, e.g. dd.MM.yyyy.
columns[].order"dmy" | "mdy"Date order if no format.
columns[].trueValuesarray of string (1–128 chars) (≤ 64 items)Boolean true tokens.
columns[].falseValuesarray of string (1–128 chars) (≤ 64 items)Boolean false tokens.
localestring (2–64 chars)BCP 47 locale: separators/month names, not date order.
numberingSystemstring (3–32 chars)Locale digit system, e.g. arab.
missingValuesarray of string (1–128 chars) (≤ 64 items)Missing tokens: N/A, NULL, -, —, #N/A.
trueValuesarray of string (1–128 chars) (≤ 64 items)True tokens: true, yes, y, Evet, E.
falseValuesarray of string (1–128 chars) (≤ 64 items)False tokens: false, no, n, Hayır, H.
columnMode"auto" | "header" | "letter"Column: auto (default), header, letter.
mergedCells"master" | "repeat"Merged cell policy, default master.
maxRowsinteger (1–5000)Sampled rows, default 1000.
maxColumnsinteger (1–64)Profiled columns, default 16.
delimiter"comma" | "semicolon" | "tab" | "pipe"CSV separator; sniffed when omitted.
encoding"utf-8" | "utf-16le" | "utf-16be" | "windows-1254" | "iso-8859-9" | "windows-1252" | "windows-1251" | "windows-1256" | "shift_jis" | "gb18030" | "big5" | "euc-kr"CSV encoding; BOM or utf-8 when omitted.

get_merged_ranges

List the merged cell ranges of a worksheet.

Annotations: read-only, idempotent, closed world.

ArgumentTypeRequiredDescription
filePathstringyesPath under the root.
sheetNamestringSheet; default first visible.

get_data_validations

List the data validation rules of a worksheet, grouped back into rectangular ranges.

Annotations: read-only, idempotent, closed world.

ArgumentTypeRequiredDescription
filePathstringyesPath under the root.
sheetNamestringSheet; default first visible.

get_tables

List the Excel Tables (ListObjects) a worksheet declares: range, header and totals rows, and column names with their A1 letters.

Annotations: read-only, idempotent, closed world.

ArgumentTypeRequiredDescription
filePathstringyesPath under the root.
sheetNamestringSheet; default first visible.

get_conditional_formats

List the conditional formatting rules of a worksheet as predicates: target ranges, rule kind, operator, formulae and thresholds. Fill colours, icons and bar geometry are not reported.

Annotations: read-only, idempotent, closed world.

ArgumentTypeRequiredDescription
filePathstringyesPath under the root.
sheetNamestringSheet; default first visible.

get_images

List worksheet pictures, in-cell images included: anchor, size, extension, alternative text and decorative flag. imageId matches read_sheet values. Pixels are not interpreted.

Annotations: read-only, idempotent, closed world.

ArgumentTypeRequiredDescription
filePathstringyesPath under the root.
sheetNamestringSheet; default first visible.
kind"picture" | "chart" | "pivotTable" | "sparkline"Only picture is read here; charts are get_charts'.

get_charts

List charts on a worksheet or chart sheet: type, title, axes, series references with cached points, trendlines and pivot source. Cached values may be stale; read the ref for current cells.

Annotations: read-only, idempotent, closed world.

ArgumentTypeRequiredDescription
filePathstringyesPath under the root.
sheetNamestringSheet; default first visible.
chartIdinteger (≥ 1)1-based chart index on the sheet. Omit to list every chart up to the per-sheet cap.
maxPointsinteger (1–2000)Cached points per series, default 200, at most 2000.

aggregate_sheet

Calculate filtered totals, grouped rankings, conditional metrics or pivots over the selected range. resultMode retained enables query_result/execute_result over all groups. Unzoned dates remain local wall clocks.

Annotations: read-only, closed world.

ArgumentTypeRequiredDescription
filePathstringyesPath under the root.
sheetNamestringSheet; default first visible.
resultMode"inline" | "retained"inline (default), or retain all groups for 15 minutes in this instance. retained returns a preview up to 16 KiB and resultId, plus one per groupingSets entry; a wide preview lists totalColumns. All processing limits apply; failures store nothing.
tablestring (1–255 chars)XLSX table: data rows, not range.
visibleOnlybooleanXLSX: skip hidden/AutoFilter rows.
rangestringA1 range such as A1:H500, B:D or 2:40, including the header row. Defaults to the used range.
groupByarray of any (≤ 8 items)Row grouping keys; omit for a whole-range total. Keys: column; {column,by} UTC part (month includes year, ISO week, Monday=1); {column,bins} or {column,width,origin?} for [lower,upper) bins.
pivotByarray of any (≤ 8 items)Column axis of a dense pivot, in groupBy's key forms. Missing combinations have count 0, other metrics null.
groupingSetsarray of object (1–8 items)More breakdowns [{groupBy}] in groupBy's key forms over the same scan, returned in groupingSets; [] gives a grand total.
groupingSets[].groupByarray of any (≤ 8 items)yesKeys in groupBy's forms.
compactbooleanOmit repeated CSV and mode metadata; diagnostics remain.
metricsarray of object (1–8 items)yesValues to compute [{fn, column?, percentile?, round?, where?}], one output column each after the group keys. A metric's where has the top-level where's form and applies after it.
metrics[].fn"count" | "countValues" | "countDistinct" | "countTrue" | "countFalse" | "trueRatio" | "sum" | "avg" | "min" | "max" | "stddev" | "median" | "p50" | "p90" | "percentile"yescount counts matched rows including blank cells, regardless of column. countValues counts non-empty cells in column; countDistinct counts distinct values. trueRatio is true over valid booleans. Numeric functions read numeric text and skip identifiers; percentiles are PERCENTILE.INC; stddev is the sample deviation.
metrics[].columnstringColumn.
metrics[].percentilenumber (0–1)Fraction 0 to 1, for fn percentile.
metrics[].roundinteger (0–10)Decimal places, half away from zero as ROUND.
metrics[].wherearray of object (≤ 16 items)Filter for this metric, in where's form.
metrics[].where[].columnstringyesColumn.
metrics[].where[].op"eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | "startsWith" | "endsWith" | "in" | "between" | "isEmpty" | "isNotEmpty" | "isError" | "isNumber" | "isText" | "inColumn" | "notInColumn"yesOperator.
metrics[].where[].valuestring | number | booleanOperand.
metrics[].where[].valuesarray of string | number | boolean (1–64 items)Operands of in, or [low, high] of between.
metrics[].where[].sourceobjectColumn inColumn and notInColumn test against.
metrics[].where[].source.filePathstringDefaults to this file.
metrics[].where[].source.sheetNamestringSource sheet.
metrics[].where[].source.columnstringyesColumn.
metrics[].where[].source.rangestringSource range.
metrics[].where[].source.headerRowinteger (≥ 0)Source header row.
wherearray of object (≤ 16 items)Row filter. Filters {column,op,value?,values?,source?}. Comparison/text/isError take value; in takes values; between takes [low,high]; other unary ops take neither. inColumn/notInColumn use source with eq semantics. Incomparable cells are reported.
where[].columnstringyesColumn.
where[].op"eq" | "ne" | "lt" | "lte" | "gt" | "gte" | "contains" | "startsWith" | "endsWith" | "in" | "between" | "isEmpty" | "isNotEmpty" | "isError" | "isNumber" | "isText" | "inColumn" | "notInColumn"yesOperator.
where[].valuestring | number | booleanOperand.
where[].valuesarray of string | number | boolean (1–64 items)Operands of in, or [low, high] of between.
where[].sourceobjectColumn inColumn and notInColumn test against.
where[].source.filePathstringDefaults to this file.
where[].source.sheetNamestringSource sheet.
where[].source.columnstringyesColumn.
where[].source.rangestringSource range.
where[].source.headerRowinteger (≥ 0)Source header row.
match"all" | "any"Combine predicates with all (default) or any.
headerRowinteger (≥ 0)Header row (0: none). Default: table/autofilter header, then first text header above data, else 1.
headerScanbooleanStrict header detection: refuse when two rows or none qualify.
columnMode"auto" | "header" | "letter"Column references: auto (default), header text or A1 letter.
caseSensitivebooleanCase-sensitive text comparisons, default false. Applies to predicate bounds and min/max.
columnsarray of object (1–64 items)Readings {column,type,...}; reuse profile_sheet.
columns[].columnstringyesColumn.
columns[].type"number" | "date" | "boolean" | "time" | "duration" | "text"yesReading type.
columns[].missingValuesarray of string (1–128 chars) (≤ 64 items)Missing-text tokens.
columns[].decimal"." | ","Number decimal mark.
columns[].group"none" | "." | "," | " " | "'"Number group mark.
columns[].localestring (2–64 chars)Number/date locale.
columns[].numberingSystemstring (3–32 chars)Number digit system.
columns[].identifiers"refuse" | "read"Number: read digit identifiers?
columns[].formatstring (1–64 chars)Date pattern, e.g. dd.MM.yyyy.
columns[].order"dmy" | "mdy"Date order if no format.
columns[].trueValuesarray of string (1–128 chars) (≤ 64 items)Boolean true tokens.
columns[].falseValuesarray of string (1–128 chars) (≤ 64 items)Boolean false tokens.
localestring (2–64 chars)BCP 47 locale: separators/month names, not date order.
numberingSystemstring (3–32 chars)Locale digit system, e.g. arab.
missingValuesarray of string (1–128 chars) (≤ 64 items)Missing tokens: N/A, NULL, -, —, #N/A.
trueValuesarray of string (1–128 chars) (≤ 64 items)True tokens: true, yes, y, Evet, E.
falseValuesarray of string (1–128 chars) (≤ 64 items)False tokens: false, no, n, Hayır, H.
mergedCells"master" | "repeat"Merged values and header detection policy, default master.
orderBy"group" | "metric"Sort by group key (default) or selected metric.
orderByMetricinteger (1–8)One-based index into metrics, default 1. Cannot exceed the actual metrics count.
orderByDerivedstringDerived metric to sort by with orderBy metric.
derivedarray of object (1–4 items)Per-group values from the metrics: ratios, shares, differences, adjusted totals; appended after the metrics. Not with pivotBy.
derived[].namestring (1–64 chars)yesOutput column label.
derived[].numeratorarray of object (1–8 items)yesTerms added together: factor (default 1) × metric.
derived[].numerator[].metricinteger (1–8)yesOne-based index into metrics.
derived[].numerator[].factornumberMultiplier, default 1.
derived[].numerator[].scope"group" | "total"group (default) or total: the metric summed over every group, for a share; counts and sum only.
derived[].denominatorarray of object (1–8 items)Terms added together; a zero denominator gives null.
derived[].denominator[].metricinteger (1–8)yesOne-based index into metrics.
derived[].denominator[].factornumberMultiplier, default 1.
derived[].denominator[].scope"group" | "total"group (default) or total: the metric summed over every group, for a share; counts and sum only.
derived[].scalenumberFinal multiplier, such as 100.
derived[].roundinteger (0–10)Decimal places, half away from zero.
descendingbooleanDescending sort, default false.
maxGroupsinteger (1–500)Returned groups, default 50. In retained mode, caps only the byte-bounded preview.
delimiter"comma" | "semicolon" | "tab" | "pipe"CSV separator; sniffed when omitted.
encoding"utf-8" | "utf-16le" | "utf-16be" | "windows-1254" | "iso-8859-9" | "windows-1252" | "windows-1251" | "windows-1256" | "shift_jis" | "gb18030" | "big5" | "euc-kr"CSV encoding; BOM or utf-8 when omitted.

query_result

Query resultId from retained aggregate_sheet: exact, case-sensitive equality on full stored values, projection and stable paging. Reads the immutable snapshot, never the workbook. Continue with nextOffset and the same query.

Annotations: read-only, idempotent, closed world.

ArgumentTypeRequiredDescription
resultIdstring (1–128 chars)yesOpaque identifier from this server instance.
columnsarray of integer (1–10012) (1–10012 items)One-based original result columns in output order; default all.
wherearray of object (≤ 16 items)AND equality over every retained row.
where[].columninteger (1–10012)yesOne-based original column, before projection.
where[].equalsanyyesExact scalar; no coercion or text normalization.
offsetinteger (0–100000)Zero-based offset among matches; default 0, then nextOffset.
maxRowsinteger (1–500)Returned rows, default 50; 16 KiB may admit fewer.

execute_result

Compute a retained resultId with synchronous JS. data: aggregate metadata, columns, exact rows, rowSourceCounts; or computed source/value. Return finite JSON, e.g. return data.rows.length; No Node, I/O, imports or tools. Scope: retained aggregate, not raw sheet rows. Large outputs get a resultId for read_result. Numbers are binary64; keep exact digits as text. Limits: {"maxCodeBytes":16384,"maxInputBytes":8388608,"maxOutputBytes":1048576,"maxMemoryBytes":33554432,"maxStackBytes":524288,"timeoutMs":2000,"maxConcurrent":2}.

Annotations: read-only, closed world.

ArgumentTypeRequiredDescription
resultIdstring (1–128 chars)yesThis instance's retained result.
codestring (≥ 1 chars)yesFunction body; return JSON from data.

read_result

Read exact JSON by RFC 6901 path: /value for computed data, /rows for aggregates. select projects members; offset/limit page arrays, objects or UTF-16 strings. Narrow windows over 16 KiB; no value truncation.

Annotations: read-only, idempotent, closed world.

ArgumentTypeRequiredDescription
resultIdstring (1–128 chars)yesStored result.
pathstring (≤ 4096 chars)JSON Pointer.
selectarray of string (≤ 4096 chars) (1–32 items)Member names.
offsetinteger (0–8388608)Start; default 0.
limitinteger (1–500)Max items; default 50.

find_in_sheet

Find cells whose value or formula matches a query. Use this instead of paging a large sheet.

Annotations: read-only, idempotent, closed world.

ArgumentTypeRequiredDescription
filePathstringyesPath under the root.
querystring (≥ 1 chars)yesText to find, or a JavaScript regular expression of at most 256 characters when matchMode is regex.
sheetNamestringExact worksheet name. Omitted with no range, table or columns: every worksheet is searched and each match names its sheet.
tablestring (1–255 chars)XLSX table: data rows, not range.
visibleOnlybooleanXLSX: skip hidden/AutoFilter rows.
headerRowinteger (0–1048576)Header: 0 none; default table/AutoFilter, text above data, else 1.
headerScanbooleanRefuse ambiguous or missing headers.
columnsarray of object (1–64 items)Readings {column,type,...}; reuse profile_sheet.
columns[].columnstringyesColumn.
columns[].type"number" | "date" | "boolean" | "time" | "duration" | "text"yesReading type.
columns[].missingValuesarray of string (1–128 chars) (≤ 64 items)Missing-text tokens.
columns[].decimal"." | ","Number decimal mark.
columns[].group"none" | "." | "," | " " | "'"Number group mark.
columns[].localestring (2–64 chars)Number/date locale.
columns[].numberingSystemstring (3–32 chars)Number digit system.
columns[].identifiers"refuse" | "read"Number: read digit identifiers?
columns[].formatstring (1–64 chars)Date pattern, e.g. dd.MM.yyyy.
columns[].order"dmy" | "mdy"Date order if no format.
columns[].trueValuesarray of string (1–128 chars) (≤ 64 items)Boolean true tokens.
columns[].falseValuesarray of string (1–128 chars) (≤ 64 items)Boolean false tokens.
localestring (2–64 chars)BCP 47 locale: separators/month names, not date order.
numberingSystemstring (3–32 chars)Locale digit system, e.g. arab.
missingValuesarray of string (1–128 chars) (≤ 64 items)Missing tokens: N/A, NULL, -, —, #N/A.
trueValuesarray of string (1–128 chars) (≤ 64 items)True tokens: true, yes, y, Evet, E.
falseValuesarray of string (1–128 chars) (≤ 64 items)False tokens: false, no, n, Hayır, H.
columnMode"auto" | "header" | "letter"Column: auto (default), header, letter.
matchMode"contains" | "exact" | "regex"Contains (default), exact text or JavaScript regex. Regex runs in an isolated worker with a two-second deadline.
caseSensitivebooleanCase-sensitive matching, default false. Literal search uses NFC/folding; regex retains JavaScript semantics.
searchIn"values" | "formulas" | "both"Search values (default), formulas or both. CSV supports values only.
rangestringA1 range to search, such as B2:D40, B:D or 2:40. Defaults to the used range.
maxResultsinteger (1–200)Maximum returned matches, default 50. Does not increase the regex deadline.
delimiter"comma" | "semicolon" | "tab" | "pipe"CSV separator; sniffed when omitted.
encoding"utf-8" | "utf-16le" | "utf-16be" | "windows-1254" | "iso-8859-9" | "windows-1252" | "windows-1251" | "windows-1256" | "shift_jis" | "gb18030" | "big5" | "euc-kr"CSV encoding; BOM or utf-8 when omitted.

calculate_workbook

For calculated and protected outputs, calculate before applying sheet or workbook protection. When complete:true and cacheStatus:current, the saved results and calculation.results are ready to use; return the requested answer without rereading cells already listed. recalculationRequired means some results still need calculation; recalculationOnOpen only describes Excel's on-open flags and does not invalidate current caches. Calculate supported formulas from an exact .xlsx source version and save typed cached results in a new immutable version. Returns bounded cell results, completion and unavailable diagnostics. Recomputes the workbook within strict budgets; no Excel installation or external access. Unsupported formulas, cycles and unavailable dependencies lose stale caches. Formula errors remain typed Excel errors. Only the advertised functions and rectangular A1/static named/table references are supported. Shared/array formulas, volatile functions, external links and iterative calculation are unsupported. Read omitted or long results from the returned output version. The saved workbook conservatively requests recalculation when opened in Excel.

Annotations: non-destructive, closed world.

Available only with --write <relative-output-directory>. The registered JSON Schema below is the exact wire contract; nested operation variants are validated by the server.

Input JSON Schema
json
{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "source": {
      "type": "object",
      "properties": {
        "filePath": {
          "type": "string",
          "minLength": 1,
          "maxLength": 32768
        },
        "versionId": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$"
        }
      },
      "required": [
        "filePath",
        "versionId"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "source"
  ],
  "additionalProperties": false
}

prepare_bulk_job

Optional job.finish is at the job root, never inside group: [{"output":"report","changes":[{"kind":"format_cells","sheetName":"S","range":"C2:C4","style":{"numberFormat":"0.00"}}]}]. For independent jobs each finish entry additionally names job. Changes use edit_workbook authoring kinds and run after data rendering, before the existing atomic publication. Formula changes require formula text and never calculate results. Every step and output uses kind, never op or type. A read step is {kind:read,id:rows,source:{filePath,versionId},selection:{kind:records,sheetName,range,headerRow:1}}; selection is a nested object, never flattened onto the step. update.set is [{column:Flag,value:{kind:boolean,value:true}}], never a bare scalar or a {type:...} cell. CSV fields stay text unless selection.columns explicitly requests reading, e.g. [{column:Total,type:number,decimal:"."}]. keys is an array of {sourceColumn,targetColumn}. A join uses join:left and columns:[{side:left,column:Ticket,as:Ticket}], never joinType or from. For editing an existing workbook choose output kind edit; kind new creates a data-only report and does not preserve unrelated source package parts. Dry-run a complete dependent group or independent batch without writing files. job kind dependent has group {steps,outputs}; independent has jobs [{id,group}]. Steps have unique IDs and reference only earlier IDs. read pins source {filePath,versionId} and a complete records selection with positive headerRow and closed range or table. Conditions use where:[{column:State,op:eq,value:open}], an array of {column,op,value}, never a single object or a string. update.set uses typed cells, for example [{column:Total,value:{kind:number,value:99}}]. Set edit output overwrite:true when replacing occupied values. Operators: update/remove/filter with these where conditions; keyed_update/upsert with source/target step IDs, keys/set column mappings and explicit duplicates/missingKeys policies; replace uses {kind:replace,id:next,input:old,source:fresh}, where old and fresh are dataset IDs; append uses inputs, an array of dataset IDs; join inner/left/full with explicit output column mappings and bounded manyToMany; deduplicate with keep policy; stable sort with directions, blanks and mixedTypes; project; transform constants/trim/locale case/explicit typed conversions. Output new uses sheets [{name,input}]; edit uses target read ID, input dataset ID, mode changed_values or replace_values and overwrite; edit_workbook combines distinct-sheet changes from one exact source. changed_values preserves untouched formulas and row identities; sorting/replacement needs explicit replace_values. Physical delete_rows refuses other content in the same rows. Full editor preservation, budgets, expansion and every ordered step/output are checked. Ready is not publication or authorization. No calculation. Writing mode only.

Annotations: read-only, idempotent, closed world.

Available only with --write <relative-output-directory>. The registered JSON Schema below is the exact wire contract; nested operation variants are validated by the server.

Input JSON Schema
json
{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "job": {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "dependent",
            "independent"
          ]
        },
        "group": {
          "type": "object",
          "properties": {
            "steps": {
              "minItems": 1,
              "maxItems": 32,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "read",
                      "update",
                      "remove",
                      "filter",
                      "keyed_update",
                      "upsert",
                      "replace",
                      "append",
                      "join",
                      "deduplicate",
                      "sort",
                      "project",
                      "transform"
                    ]
                  },
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 48,
                    "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                  },
                  "input": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 48,
                    "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                  },
                  "source": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 48,
                        "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                      },
                      {
                        "type": "object",
                        "properties": {
                          "filePath": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 32768
                          },
                          "versionId": {
                            "type": "string",
                            "pattern": "^[a-f0-9]{64}$"
                          }
                        },
                        "required": [
                          "filePath",
                          "versionId"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  },
                  "target": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 48,
                    "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                  },
                  "selection": {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "records"
                      },
                      "sheetName": {
                        "description": "Sheet; default first visible.",
                        "type": "string"
                      },
                      "range": {
                        "type": "string",
                        "maxLength": 21,
                        "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}:[A-Za-z]{1,3}[1-9][0-9]{0,6}$"
                      },
                      "table": {
                        "description": "XLSX table: data rows, not range.",
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      },
                      "visibleOnly": {
                        "description": "XLSX: skip hidden/AutoFilter rows.",
                        "type": "boolean"
                      },
                      "headerRow": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 1048576
                      },
                      "columnMode": {
                        "description": "Column references: auto (default), header text or A1 letter.",
                        "type": "string",
                        "enum": [
                          "auto",
                          "header",
                          "letter"
                        ]
                      },
                      "caseSensitive": {
                        "description": "Case-sensitive text comparisons, default false. Applies to predicate bounds and min/max.",
                        "type": "boolean"
                      },
                      "columns": {
                        "description": "Readings {column,type,...}; reuse profile_sheet.",
                        "minItems": 1,
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "column": {
                              "type": "string",
                              "description": "Column."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "number",
                                "date",
                                "boolean",
                                "time",
                                "duration",
                                "text"
                              ],
                              "description": "Reading type."
                            },
                            "missingValues": {
                              "description": "Missing-text tokens.",
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            },
                            "decimal": {
                              "description": "Number decimal mark.",
                              "type": "string",
                              "enum": [
                                ".",
                                ","
                              ]
                            },
                            "group": {
                              "description": "Number group mark.",
                              "type": "string",
                              "enum": [
                                "none",
                                ".",
                                ",",
                                " ",
                                "'"
                              ]
                            },
                            "locale": {
                              "description": "Number/date locale.",
                              "type": "string",
                              "minLength": 2,
                              "maxLength": 64
                            },
                            "numberingSystem": {
                              "description": "Number digit system.",
                              "type": "string",
                              "minLength": 3,
                              "maxLength": 32
                            },
                            "identifiers": {
                              "description": "Number: read digit identifiers?",
                              "type": "string",
                              "enum": [
                                "refuse",
                                "read"
                              ]
                            },
                            "format": {
                              "description": "Date pattern, e.g. dd.MM.yyyy.",
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "order": {
                              "description": "Date order if no format.",
                              "type": "string",
                              "enum": [
                                "dmy",
                                "mdy"
                              ]
                            },
                            "trueValues": {
                              "description": "Boolean true tokens.",
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            },
                            "falseValues": {
                              "description": "Boolean false tokens.",
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            }
                          },
                          "required": [
                            "column",
                            "type"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "mergedCells": {
                        "description": "Merged values and header detection policy, default master.",
                        "type": "string",
                        "enum": [
                          "master",
                          "repeat"
                        ]
                      },
                      "delimiter": {
                        "description": "CSV separator; sniffed when omitted.",
                        "type": "string",
                        "enum": [
                          "comma",
                          "semicolon",
                          "tab",
                          "pipe"
                        ]
                      },
                      "encoding": {
                        "description": "CSV encoding; BOM or utf-8 when omitted.",
                        "type": "string",
                        "enum": [
                          "utf-8",
                          "utf-16le",
                          "utf-16be",
                          "windows-1254",
                          "iso-8859-9",
                          "windows-1252",
                          "windows-1251",
                          "windows-1256",
                          "shift_jis",
                          "gb18030",
                          "big5",
                          "euc-kr"
                        ]
                      },
                      "locale": {
                        "description": "BCP 47 locale: separators/month names, not date order.",
                        "type": "string",
                        "minLength": 2,
                        "maxLength": 64
                      },
                      "numberingSystem": {
                        "description": "Locale digit system, e.g. arab.",
                        "type": "string",
                        "minLength": 3,
                        "maxLength": 32
                      },
                      "missingValues": {
                        "description": "Missing tokens: N/A, NULL, -, —, #N/A.",
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      },
                      "trueValues": {
                        "description": "True tokens: true, yes, y, Evet, E.",
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      },
                      "falseValues": {
                        "description": "False tokens: false, no, n, Hayır, H.",
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      },
                      "selectColumns": {
                        "minItems": 1,
                        "maxItems": 16384,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 32767
                        }
                      },
                      "where": {
                        "maxItems": 16,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "column": {
                              "type": "string",
                              "description": "Column."
                            },
                            "op": {
                              "type": "string",
                              "enum": [
                                "eq",
                                "ne",
                                "lt",
                                "lte",
                                "gt",
                                "gte",
                                "contains",
                                "startsWith",
                                "endsWith",
                                "in",
                                "between",
                                "isEmpty",
                                "isNotEmpty",
                                "isError",
                                "isNumber",
                                "isText"
                              ]
                            },
                            "value": {
                              "description": "Operand.",
                              "type": [
                                "string",
                                "number",
                                "boolean"
                              ]
                            },
                            "values": {
                              "description": "Operands of in, or [low, high] of between.",
                              "minItems": 1,
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": [
                                  "string",
                                  "number",
                                  "boolean"
                                ]
                              }
                            }
                          },
                          "required": [
                            "column",
                            "op"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "match": {
                        "default": "all",
                        "type": "string",
                        "enum": [
                          "all",
                          "any"
                        ]
                      },
                      "scope": {
                        "default": {
                          "kind": "all"
                        },
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "all"
                              }
                            },
                            "required": [
                              "kind"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "rows"
                              },
                              "rows": {
                                "minItems": 1,
                                "maxItems": 10000,
                                "type": "array",
                                "items": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 1048576
                                }
                              }
                            },
                            "required": [
                              "kind",
                              "rows"
                            ],
                            "additionalProperties": false
                          }
                        ]
                      },
                      "includeHeaders": {
                        "default": false,
                        "type": "boolean",
                        "const": false
                      }
                    },
                    "required": [
                      "kind",
                      "headerRow"
                    ],
                    "additionalProperties": false
                  },
                  "where": {
                    "maxItems": 16,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "column": {
                          "type": "string",
                          "description": "Column."
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "lt",
                            "lte",
                            "gt",
                            "gte",
                            "contains",
                            "startsWith",
                            "endsWith",
                            "in",
                            "between",
                            "isEmpty",
                            "isNotEmpty",
                            "isError",
                            "isNumber",
                            "isText"
                          ]
                        },
                        "value": {
                          "description": "Operand.",
                          "type": [
                            "string",
                            "number",
                            "boolean"
                          ]
                        },
                        "values": {
                          "description": "Operands of in, or [low, high] of between.",
                          "minItems": 1,
                          "maxItems": 64,
                          "type": "array",
                          "items": {
                            "type": [
                              "string",
                              "number",
                              "boolean"
                            ]
                          }
                        }
                      },
                      "required": [
                        "column",
                        "op"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "match": {
                    "type": "string",
                    "enum": [
                      "all",
                      "any"
                    ]
                  },
                  "caseSensitive": {
                    "type": "boolean"
                  },
                  "set": {
                    "anyOf": [
                      {
                        "minItems": 1,
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "column": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 32767
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "enum": [
                                    "text",
                                    "number",
                                    "boolean",
                                    "blank",
                                    "date",
                                    "datetime"
                                  ]
                                },
                                "value": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "maxLength": 32767
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "boolean"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "kind"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "column",
                            "value"
                          ],
                          "additionalProperties": false
                        }
                      },
                      {
                        "minItems": 1,
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "sourceColumn": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 32767
                            },
                            "targetColumn": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 32767
                            }
                          },
                          "required": [
                            "sourceColumn",
                            "targetColumn"
                          ],
                          "additionalProperties": false
                        }
                      }
                    ],
                    "type": "array"
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "clear",
                      "delete_rows"
                    ]
                  },
                  "keys": {
                    "anyOf": [
                      {
                        "minItems": 1,
                        "maxItems": 16,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "sourceColumn": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 32767
                            },
                            "targetColumn": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 32767
                            }
                          },
                          "required": [
                            "sourceColumn",
                            "targetColumn"
                          ],
                          "additionalProperties": false
                        }
                      },
                      {
                        "minItems": 1,
                        "maxItems": 256,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 32767
                        }
                      }
                    ],
                    "type": "array"
                  },
                  "duplicates": {
                    "type": "string",
                    "enum": [
                      "error",
                      "first",
                      "last"
                    ]
                  },
                  "missingKeys": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "error",
                          "skip"
                        ]
                      },
                      {
                        "type": "string",
                        "enum": [
                          "error",
                          "keep",
                          "group"
                        ]
                      }
                    ]
                  },
                  "inputs": {
                    "minItems": 1,
                    "maxItems": 8,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 48,
                      "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                    }
                  },
                  "columns": {
                    "anyOf": [
                      {
                        "minItems": 1,
                        "maxItems": 256,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 32767
                        }
                      },
                      {
                        "minItems": 1,
                        "maxItems": 256,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "side": {
                              "type": "string",
                              "enum": [
                                "left",
                                "right"
                              ]
                            },
                            "column": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 32767
                            },
                            "as": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 32767
                            }
                          },
                          "required": [
                            "side",
                            "column",
                            "as"
                          ],
                          "additionalProperties": false
                        }
                      },
                      {
                        "minItems": 1,
                        "maxItems": 256,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "column": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 32767
                            },
                            "as": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 32767
                            }
                          },
                          "required": [
                            "column",
                            "as"
                          ],
                          "additionalProperties": false
                        }
                      }
                    ],
                    "type": "array"
                  },
                  "missingColumns": {
                    "type": "string",
                    "enum": [
                      "error",
                      "blank"
                    ]
                  },
                  "left": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 48,
                    "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                  },
                  "right": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 48,
                    "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                  },
                  "join": {
                    "type": "string",
                    "enum": [
                      "inner",
                      "left",
                      "full"
                    ]
                  },
                  "manyToMany": {
                    "type": "boolean"
                  },
                  "keep": {
                    "type": "string",
                    "enum": [
                      "report",
                      "duplicates_only",
                      "first",
                      "last",
                      "drop_all"
                    ]
                  },
                  "by": {
                    "minItems": 1,
                    "maxItems": 16,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "column": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 32767
                        },
                        "direction": {
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        },
                        "blanks": {
                          "type": "string",
                          "enum": [
                            "first",
                            "last"
                          ]
                        }
                      },
                      "required": [
                        "column",
                        "direction",
                        "blanks"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "mixedTypes": {
                    "type": "string",
                    "enum": [
                      "error",
                      "type_order"
                    ]
                  },
                  "locale": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 64
                  },
                  "transformations": {
                    "minItems": 1,
                    "maxItems": 64,
                    "type": "array",
                    "items": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "constant"
                            },
                            "column": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 32767
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "enum": [
                                    "text",
                                    "number",
                                    "boolean",
                                    "blank",
                                    "date",
                                    "datetime"
                                  ]
                                },
                                "value": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "maxLength": 32767
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "boolean"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "kind"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "kind",
                            "column",
                            "value"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "trim"
                            },
                            "column": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 32767
                            }
                          },
                          "required": [
                            "kind",
                            "column"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "case"
                            },
                            "column": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 32767
                            },
                            "direction": {
                              "type": "string",
                              "enum": [
                                "upper",
                                "lower"
                              ]
                            },
                            "locale": {
                              "type": "string",
                              "minLength": 2,
                              "maxLength": 64
                            }
                          },
                          "required": [
                            "kind",
                            "column",
                            "direction",
                            "locale"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "convert"
                            },
                            "spec": {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "column": {
                                      "type": "string",
                                      "description": "Column."
                                    },
                                    "missingValues": {
                                      "description": "Missing-text tokens.",
                                      "maxItems": 64,
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128
                                      }
                                    },
                                    "type": {
                                      "type": "string",
                                      "const": "number"
                                    },
                                    "decimal": {
                                      "type": "string",
                                      "enum": [
                                        ".",
                                        ","
                                      ]
                                    },
                                    "group": {
                                      "type": "string",
                                      "enum": [
                                        "none",
                                        ".",
                                        ",",
                                        " ",
                                        "'"
                                      ]
                                    },
                                    "locale": {
                                      "type": "string",
                                      "minLength": 2,
                                      "maxLength": 64
                                    },
                                    "numberingSystem": {
                                      "type": "string",
                                      "minLength": 3,
                                      "maxLength": 32
                                    },
                                    "identifiers": {
                                      "type": "string",
                                      "enum": [
                                        "refuse",
                                        "read"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "column",
                                    "type"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "column": {
                                      "type": "string",
                                      "description": "Column."
                                    },
                                    "missingValues": {
                                      "description": "Missing-text tokens.",
                                      "maxItems": 64,
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128
                                      }
                                    },
                                    "type": {
                                      "type": "string",
                                      "const": "date"
                                    },
                                    "format": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 64
                                    },
                                    "order": {
                                      "type": "string",
                                      "enum": [
                                        "dmy",
                                        "mdy"
                                      ]
                                    },
                                    "locale": {
                                      "type": "string",
                                      "minLength": 2,
                                      "maxLength": 64
                                    }
                                  },
                                  "required": [
                                    "column",
                                    "type"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "column": {
                                      "type": "string",
                                      "description": "Column."
                                    },
                                    "missingValues": {
                                      "description": "Missing-text tokens.",
                                      "maxItems": 64,
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128
                                      }
                                    },
                                    "type": {
                                      "type": "string",
                                      "const": "boolean"
                                    },
                                    "trueValues": {
                                      "maxItems": 64,
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128
                                      }
                                    },
                                    "falseValues": {
                                      "maxItems": 64,
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128
                                      }
                                    }
                                  },
                                  "required": [
                                    "column",
                                    "type"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "column": {
                                      "type": "string",
                                      "description": "Column."
                                    },
                                    "missingValues": {
                                      "description": "Missing-text tokens.",
                                      "maxItems": 64,
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128
                                      }
                                    },
                                    "type": {
                                      "type": "string",
                                      "const": "time"
                                    }
                                  },
                                  "required": [
                                    "column",
                                    "type"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "column": {
                                      "type": "string",
                                      "description": "Column."
                                    },
                                    "missingValues": {
                                      "description": "Missing-text tokens.",
                                      "maxItems": 64,
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128
                                      }
                                    },
                                    "type": {
                                      "type": "string",
                                      "const": "duration"
                                    }
                                  },
                                  "required": [
                                    "column",
                                    "type"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "column": {
                                      "type": "string",
                                      "description": "Column."
                                    },
                                    "missingValues": {
                                      "description": "Missing-text tokens.",
                                      "maxItems": 64,
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128
                                      }
                                    },
                                    "type": {
                                      "type": "string",
                                      "const": "text"
                                    }
                                  },
                                  "required": [
                                    "column",
                                    "type"
                                  ],
                                  "additionalProperties": false
                                }
                              ]
                            }
                          },
                          "required": [
                            "kind",
                            "spec"
                          ],
                          "additionalProperties": false
                        }
                      ],
                      "type": "object"
                    }
                  },
                  "onError": {
                    "type": "string",
                    "enum": [
                      "error",
                      "blank",
                      "keep"
                    ]
                  }
                },
                "required": [
                  "kind",
                  "id"
                ],
                "additionalProperties": false
              }
            },
            "outputs": {
              "minItems": 1,
              "maxItems": 16,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "new",
                      "edit",
                      "edit_workbook"
                    ]
                  },
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 48,
                    "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                  },
                  "sheets": {
                    "minItems": 1,
                    "maxItems": 64,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 31
                        },
                        "input": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 48,
                          "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                        }
                      },
                      "required": [
                        "name",
                        "input"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "target": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 48,
                    "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                  },
                  "input": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 48,
                    "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "changed_values",
                      "replace_values"
                    ]
                  },
                  "overwrite": {
                    "type": "boolean"
                  },
                  "changes": {
                    "minItems": 1,
                    "maxItems": 64,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "target": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 48,
                          "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                        },
                        "input": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 48,
                          "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                        },
                        "mode": {
                          "type": "string",
                          "enum": [
                            "changed_values",
                            "replace_values"
                          ]
                        },
                        "overwrite": {
                          "default": false,
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "target",
                        "input",
                        "mode"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "kind",
                  "id"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "steps",
            "outputs"
          ],
          "additionalProperties": false
        },
        "jobs": {
          "minItems": 1,
          "maxItems": 16,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 48,
                "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
              },
              "group": {
                "type": "object",
                "properties": {
                  "steps": {
                    "minItems": 1,
                    "maxItems": 32,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "enum": [
                            "read",
                            "update",
                            "remove",
                            "filter",
                            "keyed_update",
                            "upsert",
                            "replace",
                            "append",
                            "join",
                            "deduplicate",
                            "sort",
                            "project",
                            "transform"
                          ]
                        },
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 48,
                          "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                        },
                        "input": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 48,
                          "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                        },
                        "source": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 48,
                              "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "filePath": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 32768
                                },
                                "versionId": {
                                  "type": "string",
                                  "pattern": "^[a-f0-9]{64}$"
                                }
                              },
                              "required": [
                                "filePath",
                                "versionId"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        },
                        "target": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 48,
                          "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                        },
                        "selection": {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "records"
                            },
                            "sheetName": {
                              "description": "Sheet; default first visible.",
                              "type": "string"
                            },
                            "range": {
                              "type": "string",
                              "maxLength": 21,
                              "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}:[A-Za-z]{1,3}[1-9][0-9]{0,6}$"
                            },
                            "table": {
                              "description": "XLSX table: data rows, not range.",
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "visibleOnly": {
                              "description": "XLSX: skip hidden/AutoFilter rows.",
                              "type": "boolean"
                            },
                            "headerRow": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 1048576
                            },
                            "columnMode": {
                              "description": "Column references: auto (default), header text or A1 letter.",
                              "type": "string",
                              "enum": [
                                "auto",
                                "header",
                                "letter"
                              ]
                            },
                            "caseSensitive": {
                              "description": "Case-sensitive text comparisons, default false. Applies to predicate bounds and min/max.",
                              "type": "boolean"
                            },
                            "columns": {
                              "description": "Readings {column,type,...}; reuse profile_sheet.",
                              "minItems": 1,
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "column": {
                                    "type": "string",
                                    "description": "Column."
                                  },
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "number",
                                      "date",
                                      "boolean",
                                      "time",
                                      "duration",
                                      "text"
                                    ],
                                    "description": "Reading type."
                                  },
                                  "missingValues": {
                                    "description": "Missing-text tokens.",
                                    "maxItems": 64,
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    }
                                  },
                                  "decimal": {
                                    "description": "Number decimal mark.",
                                    "type": "string",
                                    "enum": [
                                      ".",
                                      ","
                                    ]
                                  },
                                  "group": {
                                    "description": "Number group mark.",
                                    "type": "string",
                                    "enum": [
                                      "none",
                                      ".",
                                      ",",
                                      " ",
                                      "'"
                                    ]
                                  },
                                  "locale": {
                                    "description": "Number/date locale.",
                                    "type": "string",
                                    "minLength": 2,
                                    "maxLength": 64
                                  },
                                  "numberingSystem": {
                                    "description": "Number digit system.",
                                    "type": "string",
                                    "minLength": 3,
                                    "maxLength": 32
                                  },
                                  "identifiers": {
                                    "description": "Number: read digit identifiers?",
                                    "type": "string",
                                    "enum": [
                                      "refuse",
                                      "read"
                                    ]
                                  },
                                  "format": {
                                    "description": "Date pattern, e.g. dd.MM.yyyy.",
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 64
                                  },
                                  "order": {
                                    "description": "Date order if no format.",
                                    "type": "string",
                                    "enum": [
                                      "dmy",
                                      "mdy"
                                    ]
                                  },
                                  "trueValues": {
                                    "description": "Boolean true tokens.",
                                    "maxItems": 64,
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    }
                                  },
                                  "falseValues": {
                                    "description": "Boolean false tokens.",
                                    "maxItems": 64,
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    }
                                  }
                                },
                                "required": [
                                  "column",
                                  "type"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "mergedCells": {
                              "description": "Merged values and header detection policy, default master.",
                              "type": "string",
                              "enum": [
                                "master",
                                "repeat"
                              ]
                            },
                            "delimiter": {
                              "description": "CSV separator; sniffed when omitted.",
                              "type": "string",
                              "enum": [
                                "comma",
                                "semicolon",
                                "tab",
                                "pipe"
                              ]
                            },
                            "encoding": {
                              "description": "CSV encoding; BOM or utf-8 when omitted.",
                              "type": "string",
                              "enum": [
                                "utf-8",
                                "utf-16le",
                                "utf-16be",
                                "windows-1254",
                                "iso-8859-9",
                                "windows-1252",
                                "windows-1251",
                                "windows-1256",
                                "shift_jis",
                                "gb18030",
                                "big5",
                                "euc-kr"
                              ]
                            },
                            "locale": {
                              "description": "BCP 47 locale: separators/month names, not date order.",
                              "type": "string",
                              "minLength": 2,
                              "maxLength": 64
                            },
                            "numberingSystem": {
                              "description": "Locale digit system, e.g. arab.",
                              "type": "string",
                              "minLength": 3,
                              "maxLength": 32
                            },
                            "missingValues": {
                              "description": "Missing tokens: N/A, NULL, -, —, #N/A.",
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            },
                            "trueValues": {
                              "description": "True tokens: true, yes, y, Evet, E.",
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            },
                            "falseValues": {
                              "description": "False tokens: false, no, n, Hayır, H.",
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            },
                            "selectColumns": {
                              "minItems": 1,
                              "maxItems": 16384,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 32767
                              }
                            },
                            "where": {
                              "maxItems": 16,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "column": {
                                    "type": "string",
                                    "description": "Column."
                                  },
                                  "op": {
                                    "type": "string",
                                    "enum": [
                                      "eq",
                                      "ne",
                                      "lt",
                                      "lte",
                                      "gt",
                                      "gte",
                                      "contains",
                                      "startsWith",
                                      "endsWith",
                                      "in",
                                      "between",
                                      "isEmpty",
                                      "isNotEmpty",
                                      "isError",
                                      "isNumber",
                                      "isText"
                                    ]
                                  },
                                  "value": {
                                    "description": "Operand.",
                                    "type": [
                                      "string",
                                      "number",
                                      "boolean"
                                    ]
                                  },
                                  "values": {
                                    "description": "Operands of in, or [low, high] of between.",
                                    "minItems": 1,
                                    "maxItems": 64,
                                    "type": "array",
                                    "items": {
                                      "type": [
                                        "string",
                                        "number",
                                        "boolean"
                                      ]
                                    }
                                  }
                                },
                                "required": [
                                  "column",
                                  "op"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "match": {
                              "default": "all",
                              "type": "string",
                              "enum": [
                                "all",
                                "any"
                              ]
                            },
                            "scope": {
                              "default": {
                                "kind": "all"
                              },
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "all"
                                    }
                                  },
                                  "required": [
                                    "kind"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "rows"
                                    },
                                    "rows": {
                                      "minItems": 1,
                                      "maxItems": 10000,
                                      "type": "array",
                                      "items": {
                                        "type": "integer",
                                        "minimum": 1,
                                        "maximum": 1048576
                                      }
                                    }
                                  },
                                  "required": [
                                    "kind",
                                    "rows"
                                  ],
                                  "additionalProperties": false
                                }
                              ]
                            },
                            "includeHeaders": {
                              "default": false,
                              "type": "boolean",
                              "const": false
                            }
                          },
                          "required": [
                            "kind",
                            "headerRow"
                          ],
                          "additionalProperties": false
                        },
                        "where": {
                          "maxItems": 16,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "column": {
                                "type": "string",
                                "description": "Column."
                              },
                              "op": {
                                "type": "string",
                                "enum": [
                                  "eq",
                                  "ne",
                                  "lt",
                                  "lte",
                                  "gt",
                                  "gte",
                                  "contains",
                                  "startsWith",
                                  "endsWith",
                                  "in",
                                  "between",
                                  "isEmpty",
                                  "isNotEmpty",
                                  "isError",
                                  "isNumber",
                                  "isText"
                                ]
                              },
                              "value": {
                                "description": "Operand.",
                                "type": [
                                  "string",
                                  "number",
                                  "boolean"
                                ]
                              },
                              "values": {
                                "description": "Operands of in, or [low, high] of between.",
                                "minItems": 1,
                                "maxItems": 64,
                                "type": "array",
                                "items": {
                                  "type": [
                                    "string",
                                    "number",
                                    "boolean"
                                  ]
                                }
                              }
                            },
                            "required": [
                              "column",
                              "op"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "match": {
                          "type": "string",
                          "enum": [
                            "all",
                            "any"
                          ]
                        },
                        "caseSensitive": {
                          "type": "boolean"
                        },
                        "set": {
                          "anyOf": [
                            {
                              "minItems": 1,
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "column": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 32767
                                  },
                                  "value": {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "enum": [
                                          "text",
                                          "number",
                                          "boolean",
                                          "blank",
                                          "date",
                                          "datetime"
                                        ]
                                      },
                                      "value": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "maxLength": 32767
                                          },
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "boolean"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "kind"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "column",
                                  "value"
                                ],
                                "additionalProperties": false
                              }
                            },
                            {
                              "minItems": 1,
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "sourceColumn": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 32767
                                  },
                                  "targetColumn": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 32767
                                  }
                                },
                                "required": [
                                  "sourceColumn",
                                  "targetColumn"
                                ],
                                "additionalProperties": false
                              }
                            }
                          ],
                          "type": "array"
                        },
                        "mode": {
                          "type": "string",
                          "enum": [
                            "clear",
                            "delete_rows"
                          ]
                        },
                        "keys": {
                          "anyOf": [
                            {
                              "minItems": 1,
                              "maxItems": 16,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "sourceColumn": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 32767
                                  },
                                  "targetColumn": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 32767
                                  }
                                },
                                "required": [
                                  "sourceColumn",
                                  "targetColumn"
                                ],
                                "additionalProperties": false
                              }
                            },
                            {
                              "minItems": 1,
                              "maxItems": 256,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 32767
                              }
                            }
                          ],
                          "type": "array"
                        },
                        "duplicates": {
                          "type": "string",
                          "enum": [
                            "error",
                            "first",
                            "last"
                          ]
                        },
                        "missingKeys": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "error",
                                "skip"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "error",
                                "keep",
                                "group"
                              ]
                            }
                          ]
                        },
                        "inputs": {
                          "minItems": 1,
                          "maxItems": 8,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 48,
                            "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                          }
                        },
                        "columns": {
                          "anyOf": [
                            {
                              "minItems": 1,
                              "maxItems": 256,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 32767
                              }
                            },
                            {
                              "minItems": 1,
                              "maxItems": 256,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "side": {
                                    "type": "string",
                                    "enum": [
                                      "left",
                                      "right"
                                    ]
                                  },
                                  "column": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 32767
                                  },
                                  "as": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 32767
                                  }
                                },
                                "required": [
                                  "side",
                                  "column",
                                  "as"
                                ],
                                "additionalProperties": false
                              }
                            },
                            {
                              "minItems": 1,
                              "maxItems": 256,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "column": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 32767
                                  },
                                  "as": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 32767
                                  }
                                },
                                "required": [
                                  "column",
                                  "as"
                                ],
                                "additionalProperties": false
                              }
                            }
                          ],
                          "type": "array"
                        },
                        "missingColumns": {
                          "type": "string",
                          "enum": [
                            "error",
                            "blank"
                          ]
                        },
                        "left": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 48,
                          "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                        },
                        "right": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 48,
                          "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                        },
                        "join": {
                          "type": "string",
                          "enum": [
                            "inner",
                            "left",
                            "full"
                          ]
                        },
                        "manyToMany": {
                          "type": "boolean"
                        },
                        "keep": {
                          "type": "string",
                          "enum": [
                            "report",
                            "duplicates_only",
                            "first",
                            "last",
                            "drop_all"
                          ]
                        },
                        "by": {
                          "minItems": 1,
                          "maxItems": 16,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "column": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 32767
                              },
                              "direction": {
                                "type": "string",
                                "enum": [
                                  "asc",
                                  "desc"
                                ]
                              },
                              "blanks": {
                                "type": "string",
                                "enum": [
                                  "first",
                                  "last"
                                ]
                              }
                            },
                            "required": [
                              "column",
                              "direction",
                              "blanks"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "mixedTypes": {
                          "type": "string",
                          "enum": [
                            "error",
                            "type_order"
                          ]
                        },
                        "locale": {
                          "type": "string",
                          "minLength": 2,
                          "maxLength": 64
                        },
                        "transformations": {
                          "minItems": 1,
                          "maxItems": 64,
                          "type": "array",
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "const": "constant"
                                  },
                                  "column": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 32767
                                  },
                                  "value": {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "enum": [
                                          "text",
                                          "number",
                                          "boolean",
                                          "blank",
                                          "date",
                                          "datetime"
                                        ]
                                      },
                                      "value": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "maxLength": 32767
                                          },
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "boolean"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "kind"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "kind",
                                  "column",
                                  "value"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "const": "trim"
                                  },
                                  "column": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 32767
                                  }
                                },
                                "required": [
                                  "kind",
                                  "column"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "const": "case"
                                  },
                                  "column": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 32767
                                  },
                                  "direction": {
                                    "type": "string",
                                    "enum": [
                                      "upper",
                                      "lower"
                                    ]
                                  },
                                  "locale": {
                                    "type": "string",
                                    "minLength": 2,
                                    "maxLength": 64
                                  }
                                },
                                "required": [
                                  "kind",
                                  "column",
                                  "direction",
                                  "locale"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "const": "convert"
                                  },
                                  "spec": {
                                    "oneOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "column": {
                                            "type": "string",
                                            "description": "Column."
                                          },
                                          "missingValues": {
                                            "description": "Missing-text tokens.",
                                            "maxItems": 64,
                                            "type": "array",
                                            "items": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 128
                                            }
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "number"
                                          },
                                          "decimal": {
                                            "type": "string",
                                            "enum": [
                                              ".",
                                              ","
                                            ]
                                          },
                                          "group": {
                                            "type": "string",
                                            "enum": [
                                              "none",
                                              ".",
                                              ",",
                                              " ",
                                              "'"
                                            ]
                                          },
                                          "locale": {
                                            "type": "string",
                                            "minLength": 2,
                                            "maxLength": 64
                                          },
                                          "numberingSystem": {
                                            "type": "string",
                                            "minLength": 3,
                                            "maxLength": 32
                                          },
                                          "identifiers": {
                                            "type": "string",
                                            "enum": [
                                              "refuse",
                                              "read"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "column",
                                          "type"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "column": {
                                            "type": "string",
                                            "description": "Column."
                                          },
                                          "missingValues": {
                                            "description": "Missing-text tokens.",
                                            "maxItems": 64,
                                            "type": "array",
                                            "items": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 128
                                            }
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "date"
                                          },
                                          "format": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 64
                                          },
                                          "order": {
                                            "type": "string",
                                            "enum": [
                                              "dmy",
                                              "mdy"
                                            ]
                                          },
                                          "locale": {
                                            "type": "string",
                                            "minLength": 2,
                                            "maxLength": 64
                                          }
                                        },
                                        "required": [
                                          "column",
                                          "type"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "column": {
                                            "type": "string",
                                            "description": "Column."
                                          },
                                          "missingValues": {
                                            "description": "Missing-text tokens.",
                                            "maxItems": 64,
                                            "type": "array",
                                            "items": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 128
                                            }
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "boolean"
                                          },
                                          "trueValues": {
                                            "maxItems": 64,
                                            "type": "array",
                                            "items": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 128
                                            }
                                          },
                                          "falseValues": {
                                            "maxItems": 64,
                                            "type": "array",
                                            "items": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 128
                                            }
                                          }
                                        },
                                        "required": [
                                          "column",
                                          "type"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "column": {
                                            "type": "string",
                                            "description": "Column."
                                          },
                                          "missingValues": {
                                            "description": "Missing-text tokens.",
                                            "maxItems": 64,
                                            "type": "array",
                                            "items": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 128
                                            }
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "time"
                                          }
                                        },
                                        "required": [
                                          "column",
                                          "type"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "column": {
                                            "type": "string",
                                            "description": "Column."
                                          },
                                          "missingValues": {
                                            "description": "Missing-text tokens.",
                                            "maxItems": 64,
                                            "type": "array",
                                            "items": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 128
                                            }
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "duration"
                                          }
                                        },
                                        "required": [
                                          "column",
                                          "type"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "column": {
                                            "type": "string",
                                            "description": "Column."
                                          },
                                          "missingValues": {
                                            "description": "Missing-text tokens.",
                                            "maxItems": 64,
                                            "type": "array",
                                            "items": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 128
                                            }
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "text"
                                          }
                                        },
                                        "required": [
                                          "column",
                                          "type"
                                        ],
                                        "additionalProperties": false
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "kind",
                                  "spec"
                                ],
                                "additionalProperties": false
                              }
                            ],
                            "type": "object"
                          }
                        },
                        "onError": {
                          "type": "string",
                          "enum": [
                            "error",
                            "blank",
                            "keep"
                          ]
                        }
                      },
                      "required": [
                        "kind",
                        "id"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "outputs": {
                    "minItems": 1,
                    "maxItems": 16,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "enum": [
                            "new",
                            "edit",
                            "edit_workbook"
                          ]
                        },
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 48,
                          "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                        },
                        "sheets": {
                          "minItems": 1,
                          "maxItems": 64,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 31
                              },
                              "input": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 48,
                                "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                              }
                            },
                            "required": [
                              "name",
                              "input"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "target": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 48,
                          "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                        },
                        "input": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 48,
                          "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                        },
                        "mode": {
                          "type": "string",
                          "enum": [
                            "changed_values",
                            "replace_values"
                          ]
                        },
                        "overwrite": {
                          "type": "boolean"
                        },
                        "changes": {
                          "minItems": 1,
                          "maxItems": 64,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "target": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 48,
                                "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                              },
                              "input": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 48,
                                "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                              },
                              "mode": {
                                "type": "string",
                                "enum": [
                                  "changed_values",
                                  "replace_values"
                                ]
                              },
                              "overwrite": {
                                "default": false,
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "target",
                              "input",
                              "mode"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "kind",
                        "id"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "steps",
                  "outputs"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "id",
              "group"
            ],
            "additionalProperties": false
          }
        },
        "finish": {
          "maxItems": 256,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "job": {
                "type": "string",
                "minLength": 1,
                "maxLength": 48,
                "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
              },
              "output": {
                "type": "string",
                "minLength": 1,
                "maxLength": 48,
                "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
              },
              "changes": {
                "minItems": 1,
                "maxItems": 128,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "enum": [
                        "protect_sheet",
                        "unprotect_sheet",
                        "protect_workbook",
                        "unprotect_workbook",
                        "set_pivot",
                        "set_chart",
                        "remove_chart",
                        "set_hyperlink",
                        "remove_hyperlink",
                        "set_note",
                        "remove_note",
                        "set_image",
                        "remove_image",
                        "set_validation",
                        "remove_validation",
                        "set_conditional_format",
                        "remove_conditional_format",
                        "define_name",
                        "delete_name",
                        "write_named_range",
                        "format_cells",
                        "set_columns",
                        "set_rows",
                        "freeze_panes",
                        "set_sheet_visibility",
                        "set_print_layout",
                        "merge_cells",
                        "unmerge_cells",
                        "write_formula",
                        "fill_formula",
                        "create_table",
                        "edit_table",
                        "convert_table"
                      ]
                    },
                    "sheetName": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 31
                    },
                    "rule": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "list",
                            "whole",
                            "decimal",
                            "date",
                            "textLength",
                            "custom",
                            "cellIs",
                            "expression"
                          ]
                        },
                        "items": {
                          "minItems": 1,
                          "maxItems": 128,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          }
                        },
                        "operator": {
                          "type": "string",
                          "enum": [
                            "between",
                            "notBetween",
                            "equal",
                            "notEqual",
                            "greaterThan",
                            "lessThan",
                            "greaterThanOrEqual",
                            "lessThanOrEqual"
                          ]
                        },
                        "bounds": {
                          "minItems": 1,
                          "maxItems": 2,
                          "type": "array",
                          "items": {
                            "type": "number"
                          }
                        },
                        "formula": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 8192
                        },
                        "formulas": {
                          "minItems": 1,
                          "maxItems": 2,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 8192
                          }
                        }
                      },
                      "required": [
                        "type"
                      ],
                      "additionalProperties": false
                    },
                    "password": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 15,
                      "pattern": "^[\\x20-\\x7e]+$"
                    },
                    "selectLocked": {
                      "type": "boolean"
                    },
                    "selectUnlocked": {
                      "type": "boolean"
                    },
                    "name": {
                      "anyOf": [
                        {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255,
                          "pattern": "^[\\p{L}_\\\\][\\p{L}\\p{N}_.\\\\]*$"
                        },
                        {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        }
                      ]
                    },
                    "cell": {
                      "type": "string",
                      "maxLength": 21,
                      "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
                    },
                    "sourceSheet": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 31
                    },
                    "sourceRange": {
                      "type": "string",
                      "maxLength": 21,
                      "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
                    },
                    "rowColumn": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255
                    },
                    "measures": {
                      "minItems": 1,
                      "maxItems": 8,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "column": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "function": {
                            "type": "string",
                            "enum": [
                              "sum",
                              "count",
                              "min",
                              "max"
                            ]
                          },
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          }
                        },
                        "required": [
                          "column",
                          "function",
                          "name"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "overwrite": {
                      "type": "boolean"
                    },
                    "chartType": {
                      "type": "string",
                      "enum": [
                        "column",
                        "bar",
                        "line",
                        "pie"
                      ]
                    },
                    "title": {
                      "type": "string",
                      "maxLength": 255
                    },
                    "width": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 100,
                          "maximum": 2000
                        },
                        {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 10000
                        },
                        {
                          "anyOf": [
                            {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 255
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      ]
                    },
                    "height": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 100,
                          "maximum": 2000
                        },
                        {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 10000
                        },
                        {
                          "anyOf": [
                            {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 409
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      ]
                    },
                    "series": {
                      "minItems": 1,
                      "maxItems": 16,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "sheetName": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 31
                          },
                          "categories": {
                            "type": "string",
                            "maxLength": 21,
                            "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
                          },
                          "values": {
                            "type": "string",
                            "maxLength": 21,
                            "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
                          }
                        },
                        "required": [
                          "name",
                          "sheetName",
                          "categories",
                          "values"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "target": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "internal"
                            },
                            "location": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 1024
                            }
                          },
                          "required": [
                            "kind",
                            "location"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "external"
                            },
                            "url": {
                              "type": "string",
                              "maxLength": 2048,
                              "format": "uri"
                            }
                          },
                          "required": [
                            "kind",
                            "url"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    "tooltip": {
                      "type": "string",
                      "maxLength": 255
                    },
                    "display": {
                      "type": "string",
                      "maxLength": 32767
                    },
                    "text": {
                      "type": "string",
                      "maxLength": 32767
                    },
                    "author": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255
                    },
                    "mime": {
                      "type": "string",
                      "enum": [
                        "image/png",
                        "image/jpeg"
                      ]
                    },
                    "data": {
                      "type": "string",
                      "minLength": 4,
                      "maxLength": 7000000
                    },
                    "range": {
                      "type": "string",
                      "maxLength": 21,
                      "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
                    },
                    "allowBlank": {
                      "type": "boolean"
                    },
                    "errorStyle": {
                      "type": "string",
                      "enum": [
                        "stop",
                        "warning",
                        "information"
                      ]
                    },
                    "errorTitle": {
                      "type": "string",
                      "maxLength": 32
                    },
                    "error": {
                      "type": "string",
                      "maxLength": 225
                    },
                    "promptTitle": {
                      "type": "string",
                      "maxLength": 32
                    },
                    "prompt": {
                      "type": "string",
                      "maxLength": 255
                    },
                    "ranges": {
                      "minItems": 1,
                      "maxItems": 64,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "maxLength": 21,
                        "pattern": "^(?:[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?|[A-Za-z]{1,3}:[A-Za-z]{1,3}|[1-9][0-9]{0,6}:[1-9][0-9]{0,6})$"
                      }
                    },
                    "priority": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 4096
                    },
                    "appearance": {
                      "type": "object",
                      "properties": {
                        "font": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                },
                                "size": {
                                  "type": "number",
                                  "minimum": 1,
                                  "maximum": 409
                                },
                                "bold": {
                                  "type": "boolean"
                                },
                                "italic": {
                                  "type": "boolean"
                                },
                                "underline": {
                                  "type": "boolean"
                                },
                                "strike": {
                                  "type": "boolean"
                                },
                                "color": {
                                  "type": "string",
                                  "pattern": "^[0-9A-Fa-f]{6}(?:[0-9A-Fa-f]{2})?$"
                                }
                              },
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "fill": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[0-9A-Fa-f]{6}(?:[0-9A-Fa-f]{2})?$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "additionalProperties": false
                    },
                    "stopIfTrue": {
                      "type": "boolean"
                    },
                    "scope": {
                      "type": "string",
                      "enum": [
                        "workbook",
                        "sheet"
                      ]
                    },
                    "values": {
                      "minItems": 1,
                      "maxItems": 1048576,
                      "type": "array",
                      "items": {
                        "minItems": 1,
                        "maxItems": 16384,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "enum": [
                                "text",
                                "number",
                                "boolean",
                                "blank",
                                "date",
                                "datetime"
                              ]
                            },
                            "value": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 32767
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean"
                                }
                              ]
                            }
                          },
                          "required": [
                            "kind"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "style": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "numberFormat": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "font": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    },
                                    "size": {
                                      "type": "number",
                                      "minimum": 1,
                                      "maximum": 409
                                    },
                                    "bold": {
                                      "type": "boolean"
                                    },
                                    "italic": {
                                      "type": "boolean"
                                    },
                                    "underline": {
                                      "type": "boolean"
                                    },
                                    "strike": {
                                      "type": "boolean"
                                    },
                                    "color": {
                                      "type": "string",
                                      "pattern": "^[0-9A-Fa-f]{6}(?:[0-9A-Fa-f]{2})?$"
                                    }
                                  },
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "fill": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "^[0-9A-Fa-f]{6}(?:[0-9A-Fa-f]{2})?$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "border": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "left": {
                                      "type": "object",
                                      "properties": {
                                        "style": {
                                          "type": "string",
                                          "enum": [
                                            "thin",
                                            "medium",
                                            "thick",
                                            "dashed",
                                            "dotted",
                                            "double",
                                            "hair",
                                            "none"
                                          ]
                                        },
                                        "color": {
                                          "type": "string",
                                          "pattern": "^[0-9A-Fa-f]{6}(?:[0-9A-Fa-f]{2})?$"
                                        }
                                      },
                                      "required": [
                                        "style"
                                      ],
                                      "additionalProperties": false
                                    },
                                    "right": {
                                      "type": "object",
                                      "properties": {
                                        "style": {
                                          "type": "string",
                                          "enum": [
                                            "thin",
                                            "medium",
                                            "thick",
                                            "dashed",
                                            "dotted",
                                            "double",
                                            "hair",
                                            "none"
                                          ]
                                        },
                                        "color": {
                                          "type": "string",
                                          "pattern": "^[0-9A-Fa-f]{6}(?:[0-9A-Fa-f]{2})?$"
                                        }
                                      },
                                      "required": [
                                        "style"
                                      ],
                                      "additionalProperties": false
                                    },
                                    "top": {
                                      "type": "object",
                                      "properties": {
                                        "style": {
                                          "type": "string",
                                          "enum": [
                                            "thin",
                                            "medium",
                                            "thick",
                                            "dashed",
                                            "dotted",
                                            "double",
                                            "hair",
                                            "none"
                                          ]
                                        },
                                        "color": {
                                          "type": "string",
                                          "pattern": "^[0-9A-Fa-f]{6}(?:[0-9A-Fa-f]{2})?$"
                                        }
                                      },
                                      "required": [
                                        "style"
                                      ],
                                      "additionalProperties": false
                                    },
                                    "bottom": {
                                      "type": "object",
                                      "properties": {
                                        "style": {
                                          "type": "string",
                                          "enum": [
                                            "thin",
                                            "medium",
                                            "thick",
                                            "dashed",
                                            "dotted",
                                            "double",
                                            "hair",
                                            "none"
                                          ]
                                        },
                                        "color": {
                                          "type": "string",
                                          "pattern": "^[0-9A-Fa-f]{6}(?:[0-9A-Fa-f]{2})?$"
                                        }
                                      },
                                      "required": [
                                        "style"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "alignment": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "horizontal": {
                                      "type": "string",
                                      "enum": [
                                        "general",
                                        "left",
                                        "center",
                                        "right",
                                        "fill",
                                        "justify",
                                        "centerContinuous",
                                        "distributed"
                                      ]
                                    },
                                    "vertical": {
                                      "type": "string",
                                      "enum": [
                                        "top",
                                        "center",
                                        "bottom",
                                        "justify",
                                        "distributed"
                                      ]
                                    },
                                    "wrapText": {
                                      "type": "boolean"
                                    }
                                  },
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "protection": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "locked": {
                                      "type": "boolean"
                                    },
                                    "hidden": {
                                      "type": "boolean"
                                    }
                                  },
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "string",
                          "enum": [
                            "SezzleeBlue",
                            "none"
                          ]
                        }
                      ]
                    },
                    "first": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 16384
                        },
                        {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 1048576
                        }
                      ]
                    },
                    "last": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 16384
                        },
                        {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 1048576
                        }
                      ]
                    },
                    "hidden": {
                      "type": "boolean"
                    },
                    "rows": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 1048575
                    },
                    "columns": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 16383
                        },
                        {
                          "maxItems": 1024,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "column": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "name": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              }
                            },
                            "required": [
                              "column",
                              "name"
                            ],
                            "additionalProperties": false
                          }
                        }
                      ]
                    },
                    "state": {
                      "type": "string",
                      "enum": [
                        "visible",
                        "hidden",
                        "veryHidden"
                      ]
                    },
                    "orientation": {
                      "type": "string",
                      "enum": [
                        "portrait",
                        "landscape"
                      ]
                    },
                    "paper": {
                      "type": "string",
                      "enum": [
                        "A4",
                        "letter",
                        "legal"
                      ]
                    },
                    "margins": {
                      "type": "object",
                      "properties": {
                        "left": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 10
                        },
                        "right": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 10
                        },
                        "top": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 10
                        },
                        "bottom": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 10
                        },
                        "header": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 10
                        },
                        "footer": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 10
                        }
                      },
                      "required": [
                        "left",
                        "right",
                        "top",
                        "bottom",
                        "header",
                        "footer"
                      ],
                      "additionalProperties": false
                    },
                    "fitWidth": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 32767
                    },
                    "fitHeight": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 32767
                    },
                    "scale": {
                      "type": "integer",
                      "minimum": 10,
                      "maximum": 400
                    },
                    "printArea": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 21,
                          "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "titleRows": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "first": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 1048576
                            },
                            "last": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 1048576
                            }
                          },
                          "required": [
                            "first",
                            "last"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "titleColumns": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "first": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 16384
                            },
                            "last": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 16384
                            }
                          },
                          "required": [
                            "first",
                            "last"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "loss": {
                      "type": "string",
                      "enum": [
                        "reject",
                        "discard_non_anchor"
                      ]
                    },
                    "formula": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 8192
                    },
                    "anchor": {
                      "type": "string",
                      "maxLength": 21,
                      "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
                    },
                    "filter": {
                      "type": "boolean"
                    },
                    "totals": {
                      "anyOf": [
                        {
                          "maxItems": 1024,
                          "type": "array",
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "const": "label"
                                  },
                                  "column": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "text": {
                                    "type": "string",
                                    "maxLength": 255
                                  }
                                },
                                "required": [
                                  "kind",
                                  "column",
                                  "text"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "const": "function"
                                  },
                                  "column": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "function": {
                                    "type": "string",
                                    "enum": [
                                      "sum",
                                      "average",
                                      "count",
                                      "countNums",
                                      "min",
                                      "max",
                                      "stdDev",
                                      "var"
                                    ]
                                  }
                                },
                                "required": [
                                  "kind",
                                  "column",
                                  "function"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "const": "formula"
                                  },
                                  "column": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "formula": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 8192
                                  }
                                },
                                "required": [
                                  "kind",
                                  "column",
                                  "formula"
                                ],
                                "additionalProperties": false
                              }
                            ]
                          }
                        },
                        {
                          "anyOf": [
                            {
                              "maxItems": 1024,
                              "type": "array",
                              "items": {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "label"
                                      },
                                      "column": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 255
                                      },
                                      "text": {
                                        "type": "string",
                                        "maxLength": 255
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "column",
                                      "text"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "function"
                                      },
                                      "column": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 255
                                      },
                                      "function": {
                                        "type": "string",
                                        "enum": [
                                          "sum",
                                          "average",
                                          "count",
                                          "countNums",
                                          "min",
                                          "max",
                                          "stdDev",
                                          "var"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "column",
                                      "function"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "formula"
                                      },
                                      "column": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 255
                                      },
                                      "formula": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 8192
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "column",
                                      "formula"
                                    ],
                                    "additionalProperties": false
                                  }
                                ]
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      ]
                    },
                    "calculatedColumns": {
                      "maxItems": 1024,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "column": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "formula": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 8192
                          }
                        },
                        "required": [
                          "column",
                          "formula"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "tableName": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255,
                      "pattern": "^[\\p{L}_\\\\][\\p{L}\\p{N}_.\\\\]*$"
                    },
                    "clearRemovedValues": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "kind",
                    "sheetName"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "output",
              "changes"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "kind"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "job"
  ],
  "additionalProperties": false
}

run_bulk_job

Optional job.finish is at the job root, never inside group: [{"output":"report","changes":[{"kind":"format_cells","sheetName":"S","range":"C2:C4","style":{"numberFormat":"0.00"}}]}]. For independent jobs each finish entry additionally names job. Changes use edit_workbook authoring kinds and run after data rendering, before the existing atomic publication. Formula changes require formula text and never calculate results. Execute the same job descriptor used by prepare_bulk_job. All dependent outputs are fully validated in memory, then their files and completion manifest are atomically published as one immutable job directory. Original files and earlier versions never change. Independent jobs commit separately and report complete/partial/failed/pending with per-job status; retry the same descriptor to reuse completed jobs and attempt only unfinished ones. Exact source versions and normalized operations identify each group. A retained result is verified and returned before source rereads, allowing recovery after a lost response or process restart even if an original later changed. Stale sources before first commit refuse. Outputs have exact readable .xlsx versions. Dependent failure publishes no completed group. No formula calculation; explicit value pipelines report saved-cache use. Use get_bulk_job with returned jobId for durable status. Read the prepare_bulk_job description for step/output syntax.

Annotations: non-destructive, closed world.

Available only with --write <relative-output-directory>. The registered JSON Schema below is the exact wire contract; nested operation variants are validated by the server.

Input JSON Schema
json
{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "job": {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "dependent",
            "independent"
          ]
        },
        "group": {
          "type": "object",
          "properties": {
            "steps": {
              "minItems": 1,
              "maxItems": 32,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "read",
                      "update",
                      "remove",
                      "filter",
                      "keyed_update",
                      "upsert",
                      "replace",
                      "append",
                      "join",
                      "deduplicate",
                      "sort",
                      "project",
                      "transform"
                    ]
                  },
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 48,
                    "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                  },
                  "input": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 48,
                    "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                  },
                  "source": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 48,
                        "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                      },
                      {
                        "type": "object",
                        "properties": {
                          "filePath": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 32768
                          },
                          "versionId": {
                            "type": "string",
                            "pattern": "^[a-f0-9]{64}$"
                          }
                        },
                        "required": [
                          "filePath",
                          "versionId"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  },
                  "target": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 48,
                    "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                  },
                  "selection": {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "records"
                      },
                      "sheetName": {
                        "description": "Sheet; default first visible.",
                        "type": "string"
                      },
                      "range": {
                        "type": "string",
                        "maxLength": 21,
                        "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}:[A-Za-z]{1,3}[1-9][0-9]{0,6}$"
                      },
                      "table": {
                        "description": "XLSX table: data rows, not range.",
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      },
                      "visibleOnly": {
                        "description": "XLSX: skip hidden/AutoFilter rows.",
                        "type": "boolean"
                      },
                      "headerRow": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 1048576
                      },
                      "columnMode": {
                        "description": "Column references: auto (default), header text or A1 letter.",
                        "type": "string",
                        "enum": [
                          "auto",
                          "header",
                          "letter"
                        ]
                      },
                      "caseSensitive": {
                        "description": "Case-sensitive text comparisons, default false. Applies to predicate bounds and min/max.",
                        "type": "boolean"
                      },
                      "columns": {
                        "description": "Readings {column,type,...}; reuse profile_sheet.",
                        "minItems": 1,
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "column": {
                              "type": "string",
                              "description": "Column."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "number",
                                "date",
                                "boolean",
                                "time",
                                "duration",
                                "text"
                              ],
                              "description": "Reading type."
                            },
                            "missingValues": {
                              "description": "Missing-text tokens.",
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            },
                            "decimal": {
                              "description": "Number decimal mark.",
                              "type": "string",
                              "enum": [
                                ".",
                                ","
                              ]
                            },
                            "group": {
                              "description": "Number group mark.",
                              "type": "string",
                              "enum": [
                                "none",
                                ".",
                                ",",
                                " ",
                                "'"
                              ]
                            },
                            "locale": {
                              "description": "Number/date locale.",
                              "type": "string",
                              "minLength": 2,
                              "maxLength": 64
                            },
                            "numberingSystem": {
                              "description": "Number digit system.",
                              "type": "string",
                              "minLength": 3,
                              "maxLength": 32
                            },
                            "identifiers": {
                              "description": "Number: read digit identifiers?",
                              "type": "string",
                              "enum": [
                                "refuse",
                                "read"
                              ]
                            },
                            "format": {
                              "description": "Date pattern, e.g. dd.MM.yyyy.",
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "order": {
                              "description": "Date order if no format.",
                              "type": "string",
                              "enum": [
                                "dmy",
                                "mdy"
                              ]
                            },
                            "trueValues": {
                              "description": "Boolean true tokens.",
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            },
                            "falseValues": {
                              "description": "Boolean false tokens.",
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            }
                          },
                          "required": [
                            "column",
                            "type"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "mergedCells": {
                        "description": "Merged values and header detection policy, default master.",
                        "type": "string",
                        "enum": [
                          "master",
                          "repeat"
                        ]
                      },
                      "delimiter": {
                        "description": "CSV separator; sniffed when omitted.",
                        "type": "string",
                        "enum": [
                          "comma",
                          "semicolon",
                          "tab",
                          "pipe"
                        ]
                      },
                      "encoding": {
                        "description": "CSV encoding; BOM or utf-8 when omitted.",
                        "type": "string",
                        "enum": [
                          "utf-8",
                          "utf-16le",
                          "utf-16be",
                          "windows-1254",
                          "iso-8859-9",
                          "windows-1252",
                          "windows-1251",
                          "windows-1256",
                          "shift_jis",
                          "gb18030",
                          "big5",
                          "euc-kr"
                        ]
                      },
                      "locale": {
                        "description": "BCP 47 locale: separators/month names, not date order.",
                        "type": "string",
                        "minLength": 2,
                        "maxLength": 64
                      },
                      "numberingSystem": {
                        "description": "Locale digit system, e.g. arab.",
                        "type": "string",
                        "minLength": 3,
                        "maxLength": 32
                      },
                      "missingValues": {
                        "description": "Missing tokens: N/A, NULL, -, —, #N/A.",
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      },
                      "trueValues": {
                        "description": "True tokens: true, yes, y, Evet, E.",
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      },
                      "falseValues": {
                        "description": "False tokens: false, no, n, Hayır, H.",
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      },
                      "selectColumns": {
                        "minItems": 1,
                        "maxItems": 16384,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 32767
                        }
                      },
                      "where": {
                        "maxItems": 16,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "column": {
                              "type": "string",
                              "description": "Column."
                            },
                            "op": {
                              "type": "string",
                              "enum": [
                                "eq",
                                "ne",
                                "lt",
                                "lte",
                                "gt",
                                "gte",
                                "contains",
                                "startsWith",
                                "endsWith",
                                "in",
                                "between",
                                "isEmpty",
                                "isNotEmpty",
                                "isError",
                                "isNumber",
                                "isText"
                              ]
                            },
                            "value": {
                              "description": "Operand.",
                              "type": [
                                "string",
                                "number",
                                "boolean"
                              ]
                            },
                            "values": {
                              "description": "Operands of in, or [low, high] of between.",
                              "minItems": 1,
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": [
                                  "string",
                                  "number",
                                  "boolean"
                                ]
                              }
                            }
                          },
                          "required": [
                            "column",
                            "op"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "match": {
                        "default": "all",
                        "type": "string",
                        "enum": [
                          "all",
                          "any"
                        ]
                      },
                      "scope": {
                        "default": {
                          "kind": "all"
                        },
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "all"
                              }
                            },
                            "required": [
                              "kind"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "rows"
                              },
                              "rows": {
                                "minItems": 1,
                                "maxItems": 10000,
                                "type": "array",
                                "items": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 1048576
                                }
                              }
                            },
                            "required": [
                              "kind",
                              "rows"
                            ],
                            "additionalProperties": false
                          }
                        ]
                      },
                      "includeHeaders": {
                        "default": false,
                        "type": "boolean",
                        "const": false
                      }
                    },
                    "required": [
                      "kind",
                      "headerRow"
                    ],
                    "additionalProperties": false
                  },
                  "where": {
                    "maxItems": 16,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "column": {
                          "type": "string",
                          "description": "Column."
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "lt",
                            "lte",
                            "gt",
                            "gte",
                            "contains",
                            "startsWith",
                            "endsWith",
                            "in",
                            "between",
                            "isEmpty",
                            "isNotEmpty",
                            "isError",
                            "isNumber",
                            "isText"
                          ]
                        },
                        "value": {
                          "description": "Operand.",
                          "type": [
                            "string",
                            "number",
                            "boolean"
                          ]
                        },
                        "values": {
                          "description": "Operands of in, or [low, high] of between.",
                          "minItems": 1,
                          "maxItems": 64,
                          "type": "array",
                          "items": {
                            "type": [
                              "string",
                              "number",
                              "boolean"
                            ]
                          }
                        }
                      },
                      "required": [
                        "column",
                        "op"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "match": {
                    "type": "string",
                    "enum": [
                      "all",
                      "any"
                    ]
                  },
                  "caseSensitive": {
                    "type": "boolean"
                  },
                  "set": {
                    "anyOf": [
                      {
                        "minItems": 1,
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "column": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 32767
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "enum": [
                                    "text",
                                    "number",
                                    "boolean",
                                    "blank",
                                    "date",
                                    "datetime"
                                  ]
                                },
                                "value": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "maxLength": 32767
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "boolean"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "kind"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "column",
                            "value"
                          ],
                          "additionalProperties": false
                        }
                      },
                      {
                        "minItems": 1,
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "sourceColumn": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 32767
                            },
                            "targetColumn": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 32767
                            }
                          },
                          "required": [
                            "sourceColumn",
                            "targetColumn"
                          ],
                          "additionalProperties": false
                        }
                      }
                    ],
                    "type": "array"
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "clear",
                      "delete_rows"
                    ]
                  },
                  "keys": {
                    "anyOf": [
                      {
                        "minItems": 1,
                        "maxItems": 16,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "sourceColumn": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 32767
                            },
                            "targetColumn": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 32767
                            }
                          },
                          "required": [
                            "sourceColumn",
                            "targetColumn"
                          ],
                          "additionalProperties": false
                        }
                      },
                      {
                        "minItems": 1,
                        "maxItems": 256,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 32767
                        }
                      }
                    ],
                    "type": "array"
                  },
                  "duplicates": {
                    "type": "string",
                    "enum": [
                      "error",
                      "first",
                      "last"
                    ]
                  },
                  "missingKeys": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "error",
                          "skip"
                        ]
                      },
                      {
                        "type": "string",
                        "enum": [
                          "error",
                          "keep",
                          "group"
                        ]
                      }
                    ]
                  },
                  "inputs": {
                    "minItems": 1,
                    "maxItems": 8,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 48,
                      "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                    }
                  },
                  "columns": {
                    "anyOf": [
                      {
                        "minItems": 1,
                        "maxItems": 256,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 32767
                        }
                      },
                      {
                        "minItems": 1,
                        "maxItems": 256,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "side": {
                              "type": "string",
                              "enum": [
                                "left",
                                "right"
                              ]
                            },
                            "column": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 32767
                            },
                            "as": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 32767
                            }
                          },
                          "required": [
                            "side",
                            "column",
                            "as"
                          ],
                          "additionalProperties": false
                        }
                      },
                      {
                        "minItems": 1,
                        "maxItems": 256,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "column": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 32767
                            },
                            "as": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 32767
                            }
                          },
                          "required": [
                            "column",
                            "as"
                          ],
                          "additionalProperties": false
                        }
                      }
                    ],
                    "type": "array"
                  },
                  "missingColumns": {
                    "type": "string",
                    "enum": [
                      "error",
                      "blank"
                    ]
                  },
                  "left": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 48,
                    "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                  },
                  "right": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 48,
                    "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                  },
                  "join": {
                    "type": "string",
                    "enum": [
                      "inner",
                      "left",
                      "full"
                    ]
                  },
                  "manyToMany": {
                    "type": "boolean"
                  },
                  "keep": {
                    "type": "string",
                    "enum": [
                      "report",
                      "duplicates_only",
                      "first",
                      "last",
                      "drop_all"
                    ]
                  },
                  "by": {
                    "minItems": 1,
                    "maxItems": 16,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "column": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 32767
                        },
                        "direction": {
                          "type": "string",
                          "enum": [
                            "asc",
                            "desc"
                          ]
                        },
                        "blanks": {
                          "type": "string",
                          "enum": [
                            "first",
                            "last"
                          ]
                        }
                      },
                      "required": [
                        "column",
                        "direction",
                        "blanks"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "mixedTypes": {
                    "type": "string",
                    "enum": [
                      "error",
                      "type_order"
                    ]
                  },
                  "locale": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 64
                  },
                  "transformations": {
                    "minItems": 1,
                    "maxItems": 64,
                    "type": "array",
                    "items": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "constant"
                            },
                            "column": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 32767
                            },
                            "value": {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "enum": [
                                    "text",
                                    "number",
                                    "boolean",
                                    "blank",
                                    "date",
                                    "datetime"
                                  ]
                                },
                                "value": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "maxLength": 32767
                                    },
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "boolean"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "kind"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "kind",
                            "column",
                            "value"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "trim"
                            },
                            "column": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 32767
                            }
                          },
                          "required": [
                            "kind",
                            "column"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "case"
                            },
                            "column": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 32767
                            },
                            "direction": {
                              "type": "string",
                              "enum": [
                                "upper",
                                "lower"
                              ]
                            },
                            "locale": {
                              "type": "string",
                              "minLength": 2,
                              "maxLength": 64
                            }
                          },
                          "required": [
                            "kind",
                            "column",
                            "direction",
                            "locale"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "convert"
                            },
                            "spec": {
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "column": {
                                      "type": "string",
                                      "description": "Column."
                                    },
                                    "missingValues": {
                                      "description": "Missing-text tokens.",
                                      "maxItems": 64,
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128
                                      }
                                    },
                                    "type": {
                                      "type": "string",
                                      "const": "number"
                                    },
                                    "decimal": {
                                      "type": "string",
                                      "enum": [
                                        ".",
                                        ","
                                      ]
                                    },
                                    "group": {
                                      "type": "string",
                                      "enum": [
                                        "none",
                                        ".",
                                        ",",
                                        " ",
                                        "'"
                                      ]
                                    },
                                    "locale": {
                                      "type": "string",
                                      "minLength": 2,
                                      "maxLength": 64
                                    },
                                    "numberingSystem": {
                                      "type": "string",
                                      "minLength": 3,
                                      "maxLength": 32
                                    },
                                    "identifiers": {
                                      "type": "string",
                                      "enum": [
                                        "refuse",
                                        "read"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "column",
                                    "type"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "column": {
                                      "type": "string",
                                      "description": "Column."
                                    },
                                    "missingValues": {
                                      "description": "Missing-text tokens.",
                                      "maxItems": 64,
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128
                                      }
                                    },
                                    "type": {
                                      "type": "string",
                                      "const": "date"
                                    },
                                    "format": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 64
                                    },
                                    "order": {
                                      "type": "string",
                                      "enum": [
                                        "dmy",
                                        "mdy"
                                      ]
                                    },
                                    "locale": {
                                      "type": "string",
                                      "minLength": 2,
                                      "maxLength": 64
                                    }
                                  },
                                  "required": [
                                    "column",
                                    "type"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "column": {
                                      "type": "string",
                                      "description": "Column."
                                    },
                                    "missingValues": {
                                      "description": "Missing-text tokens.",
                                      "maxItems": 64,
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128
                                      }
                                    },
                                    "type": {
                                      "type": "string",
                                      "const": "boolean"
                                    },
                                    "trueValues": {
                                      "maxItems": 64,
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128
                                      }
                                    },
                                    "falseValues": {
                                      "maxItems": 64,
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128
                                      }
                                    }
                                  },
                                  "required": [
                                    "column",
                                    "type"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "column": {
                                      "type": "string",
                                      "description": "Column."
                                    },
                                    "missingValues": {
                                      "description": "Missing-text tokens.",
                                      "maxItems": 64,
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128
                                      }
                                    },
                                    "type": {
                                      "type": "string",
                                      "const": "time"
                                    }
                                  },
                                  "required": [
                                    "column",
                                    "type"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "column": {
                                      "type": "string",
                                      "description": "Column."
                                    },
                                    "missingValues": {
                                      "description": "Missing-text tokens.",
                                      "maxItems": 64,
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128
                                      }
                                    },
                                    "type": {
                                      "type": "string",
                                      "const": "duration"
                                    }
                                  },
                                  "required": [
                                    "column",
                                    "type"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "column": {
                                      "type": "string",
                                      "description": "Column."
                                    },
                                    "missingValues": {
                                      "description": "Missing-text tokens.",
                                      "maxItems": 64,
                                      "type": "array",
                                      "items": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 128
                                      }
                                    },
                                    "type": {
                                      "type": "string",
                                      "const": "text"
                                    }
                                  },
                                  "required": [
                                    "column",
                                    "type"
                                  ],
                                  "additionalProperties": false
                                }
                              ]
                            }
                          },
                          "required": [
                            "kind",
                            "spec"
                          ],
                          "additionalProperties": false
                        }
                      ],
                      "type": "object"
                    }
                  },
                  "onError": {
                    "type": "string",
                    "enum": [
                      "error",
                      "blank",
                      "keep"
                    ]
                  }
                },
                "required": [
                  "kind",
                  "id"
                ],
                "additionalProperties": false
              }
            },
            "outputs": {
              "minItems": 1,
              "maxItems": 16,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "new",
                      "edit",
                      "edit_workbook"
                    ]
                  },
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 48,
                    "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                  },
                  "sheets": {
                    "minItems": 1,
                    "maxItems": 64,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 31
                        },
                        "input": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 48,
                          "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                        }
                      },
                      "required": [
                        "name",
                        "input"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "target": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 48,
                    "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                  },
                  "input": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 48,
                    "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "changed_values",
                      "replace_values"
                    ]
                  },
                  "overwrite": {
                    "type": "boolean"
                  },
                  "changes": {
                    "minItems": 1,
                    "maxItems": 64,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "target": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 48,
                          "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                        },
                        "input": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 48,
                          "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                        },
                        "mode": {
                          "type": "string",
                          "enum": [
                            "changed_values",
                            "replace_values"
                          ]
                        },
                        "overwrite": {
                          "default": false,
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "target",
                        "input",
                        "mode"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "kind",
                  "id"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "steps",
            "outputs"
          ],
          "additionalProperties": false
        },
        "jobs": {
          "minItems": 1,
          "maxItems": 16,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 48,
                "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
              },
              "group": {
                "type": "object",
                "properties": {
                  "steps": {
                    "minItems": 1,
                    "maxItems": 32,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "enum": [
                            "read",
                            "update",
                            "remove",
                            "filter",
                            "keyed_update",
                            "upsert",
                            "replace",
                            "append",
                            "join",
                            "deduplicate",
                            "sort",
                            "project",
                            "transform"
                          ]
                        },
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 48,
                          "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                        },
                        "input": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 48,
                          "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                        },
                        "source": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 48,
                              "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                            },
                            {
                              "type": "object",
                              "properties": {
                                "filePath": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 32768
                                },
                                "versionId": {
                                  "type": "string",
                                  "pattern": "^[a-f0-9]{64}$"
                                }
                              },
                              "required": [
                                "filePath",
                                "versionId"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        },
                        "target": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 48,
                          "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                        },
                        "selection": {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "records"
                            },
                            "sheetName": {
                              "description": "Sheet; default first visible.",
                              "type": "string"
                            },
                            "range": {
                              "type": "string",
                              "maxLength": 21,
                              "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}:[A-Za-z]{1,3}[1-9][0-9]{0,6}$"
                            },
                            "table": {
                              "description": "XLSX table: data rows, not range.",
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "visibleOnly": {
                              "description": "XLSX: skip hidden/AutoFilter rows.",
                              "type": "boolean"
                            },
                            "headerRow": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 1048576
                            },
                            "columnMode": {
                              "description": "Column references: auto (default), header text or A1 letter.",
                              "type": "string",
                              "enum": [
                                "auto",
                                "header",
                                "letter"
                              ]
                            },
                            "caseSensitive": {
                              "description": "Case-sensitive text comparisons, default false. Applies to predicate bounds and min/max.",
                              "type": "boolean"
                            },
                            "columns": {
                              "description": "Readings {column,type,...}; reuse profile_sheet.",
                              "minItems": 1,
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "column": {
                                    "type": "string",
                                    "description": "Column."
                                  },
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "number",
                                      "date",
                                      "boolean",
                                      "time",
                                      "duration",
                                      "text"
                                    ],
                                    "description": "Reading type."
                                  },
                                  "missingValues": {
                                    "description": "Missing-text tokens.",
                                    "maxItems": 64,
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    }
                                  },
                                  "decimal": {
                                    "description": "Number decimal mark.",
                                    "type": "string",
                                    "enum": [
                                      ".",
                                      ","
                                    ]
                                  },
                                  "group": {
                                    "description": "Number group mark.",
                                    "type": "string",
                                    "enum": [
                                      "none",
                                      ".",
                                      ",",
                                      " ",
                                      "'"
                                    ]
                                  },
                                  "locale": {
                                    "description": "Number/date locale.",
                                    "type": "string",
                                    "minLength": 2,
                                    "maxLength": 64
                                  },
                                  "numberingSystem": {
                                    "description": "Number digit system.",
                                    "type": "string",
                                    "minLength": 3,
                                    "maxLength": 32
                                  },
                                  "identifiers": {
                                    "description": "Number: read digit identifiers?",
                                    "type": "string",
                                    "enum": [
                                      "refuse",
                                      "read"
                                    ]
                                  },
                                  "format": {
                                    "description": "Date pattern, e.g. dd.MM.yyyy.",
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 64
                                  },
                                  "order": {
                                    "description": "Date order if no format.",
                                    "type": "string",
                                    "enum": [
                                      "dmy",
                                      "mdy"
                                    ]
                                  },
                                  "trueValues": {
                                    "description": "Boolean true tokens.",
                                    "maxItems": 64,
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    }
                                  },
                                  "falseValues": {
                                    "description": "Boolean false tokens.",
                                    "maxItems": 64,
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    }
                                  }
                                },
                                "required": [
                                  "column",
                                  "type"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "mergedCells": {
                              "description": "Merged values and header detection policy, default master.",
                              "type": "string",
                              "enum": [
                                "master",
                                "repeat"
                              ]
                            },
                            "delimiter": {
                              "description": "CSV separator; sniffed when omitted.",
                              "type": "string",
                              "enum": [
                                "comma",
                                "semicolon",
                                "tab",
                                "pipe"
                              ]
                            },
                            "encoding": {
                              "description": "CSV encoding; BOM or utf-8 when omitted.",
                              "type": "string",
                              "enum": [
                                "utf-8",
                                "utf-16le",
                                "utf-16be",
                                "windows-1254",
                                "iso-8859-9",
                                "windows-1252",
                                "windows-1251",
                                "windows-1256",
                                "shift_jis",
                                "gb18030",
                                "big5",
                                "euc-kr"
                              ]
                            },
                            "locale": {
                              "description": "BCP 47 locale: separators/month names, not date order.",
                              "type": "string",
                              "minLength": 2,
                              "maxLength": 64
                            },
                            "numberingSystem": {
                              "description": "Locale digit system, e.g. arab.",
                              "type": "string",
                              "minLength": 3,
                              "maxLength": 32
                            },
                            "missingValues": {
                              "description": "Missing tokens: N/A, NULL, -, —, #N/A.",
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            },
                            "trueValues": {
                              "description": "True tokens: true, yes, y, Evet, E.",
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            },
                            "falseValues": {
                              "description": "False tokens: false, no, n, Hayır, H.",
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            },
                            "selectColumns": {
                              "minItems": 1,
                              "maxItems": 16384,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 32767
                              }
                            },
                            "where": {
                              "maxItems": 16,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "column": {
                                    "type": "string",
                                    "description": "Column."
                                  },
                                  "op": {
                                    "type": "string",
                                    "enum": [
                                      "eq",
                                      "ne",
                                      "lt",
                                      "lte",
                                      "gt",
                                      "gte",
                                      "contains",
                                      "startsWith",
                                      "endsWith",
                                      "in",
                                      "between",
                                      "isEmpty",
                                      "isNotEmpty",
                                      "isError",
                                      "isNumber",
                                      "isText"
                                    ]
                                  },
                                  "value": {
                                    "description": "Operand.",
                                    "type": [
                                      "string",
                                      "number",
                                      "boolean"
                                    ]
                                  },
                                  "values": {
                                    "description": "Operands of in, or [low, high] of between.",
                                    "minItems": 1,
                                    "maxItems": 64,
                                    "type": "array",
                                    "items": {
                                      "type": [
                                        "string",
                                        "number",
                                        "boolean"
                                      ]
                                    }
                                  }
                                },
                                "required": [
                                  "column",
                                  "op"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "match": {
                              "default": "all",
                              "type": "string",
                              "enum": [
                                "all",
                                "any"
                              ]
                            },
                            "scope": {
                              "default": {
                                "kind": "all"
                              },
                              "oneOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "all"
                                    }
                                  },
                                  "required": [
                                    "kind"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "object",
                                  "properties": {
                                    "kind": {
                                      "type": "string",
                                      "const": "rows"
                                    },
                                    "rows": {
                                      "minItems": 1,
                                      "maxItems": 10000,
                                      "type": "array",
                                      "items": {
                                        "type": "integer",
                                        "minimum": 1,
                                        "maximum": 1048576
                                      }
                                    }
                                  },
                                  "required": [
                                    "kind",
                                    "rows"
                                  ],
                                  "additionalProperties": false
                                }
                              ]
                            },
                            "includeHeaders": {
                              "default": false,
                              "type": "boolean",
                              "const": false
                            }
                          },
                          "required": [
                            "kind",
                            "headerRow"
                          ],
                          "additionalProperties": false
                        },
                        "where": {
                          "maxItems": 16,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "column": {
                                "type": "string",
                                "description": "Column."
                              },
                              "op": {
                                "type": "string",
                                "enum": [
                                  "eq",
                                  "ne",
                                  "lt",
                                  "lte",
                                  "gt",
                                  "gte",
                                  "contains",
                                  "startsWith",
                                  "endsWith",
                                  "in",
                                  "between",
                                  "isEmpty",
                                  "isNotEmpty",
                                  "isError",
                                  "isNumber",
                                  "isText"
                                ]
                              },
                              "value": {
                                "description": "Operand.",
                                "type": [
                                  "string",
                                  "number",
                                  "boolean"
                                ]
                              },
                              "values": {
                                "description": "Operands of in, or [low, high] of between.",
                                "minItems": 1,
                                "maxItems": 64,
                                "type": "array",
                                "items": {
                                  "type": [
                                    "string",
                                    "number",
                                    "boolean"
                                  ]
                                }
                              }
                            },
                            "required": [
                              "column",
                              "op"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "match": {
                          "type": "string",
                          "enum": [
                            "all",
                            "any"
                          ]
                        },
                        "caseSensitive": {
                          "type": "boolean"
                        },
                        "set": {
                          "anyOf": [
                            {
                              "minItems": 1,
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "column": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 32767
                                  },
                                  "value": {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "enum": [
                                          "text",
                                          "number",
                                          "boolean",
                                          "blank",
                                          "date",
                                          "datetime"
                                        ]
                                      },
                                      "value": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "maxLength": 32767
                                          },
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "boolean"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "kind"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "column",
                                  "value"
                                ],
                                "additionalProperties": false
                              }
                            },
                            {
                              "minItems": 1,
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "sourceColumn": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 32767
                                  },
                                  "targetColumn": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 32767
                                  }
                                },
                                "required": [
                                  "sourceColumn",
                                  "targetColumn"
                                ],
                                "additionalProperties": false
                              }
                            }
                          ],
                          "type": "array"
                        },
                        "mode": {
                          "type": "string",
                          "enum": [
                            "clear",
                            "delete_rows"
                          ]
                        },
                        "keys": {
                          "anyOf": [
                            {
                              "minItems": 1,
                              "maxItems": 16,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "sourceColumn": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 32767
                                  },
                                  "targetColumn": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 32767
                                  }
                                },
                                "required": [
                                  "sourceColumn",
                                  "targetColumn"
                                ],
                                "additionalProperties": false
                              }
                            },
                            {
                              "minItems": 1,
                              "maxItems": 256,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 32767
                              }
                            }
                          ],
                          "type": "array"
                        },
                        "duplicates": {
                          "type": "string",
                          "enum": [
                            "error",
                            "first",
                            "last"
                          ]
                        },
                        "missingKeys": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "error",
                                "skip"
                              ]
                            },
                            {
                              "type": "string",
                              "enum": [
                                "error",
                                "keep",
                                "group"
                              ]
                            }
                          ]
                        },
                        "inputs": {
                          "minItems": 1,
                          "maxItems": 8,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 48,
                            "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                          }
                        },
                        "columns": {
                          "anyOf": [
                            {
                              "minItems": 1,
                              "maxItems": 256,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 32767
                              }
                            },
                            {
                              "minItems": 1,
                              "maxItems": 256,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "side": {
                                    "type": "string",
                                    "enum": [
                                      "left",
                                      "right"
                                    ]
                                  },
                                  "column": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 32767
                                  },
                                  "as": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 32767
                                  }
                                },
                                "required": [
                                  "side",
                                  "column",
                                  "as"
                                ],
                                "additionalProperties": false
                              }
                            },
                            {
                              "minItems": 1,
                              "maxItems": 256,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "column": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 32767
                                  },
                                  "as": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 32767
                                  }
                                },
                                "required": [
                                  "column",
                                  "as"
                                ],
                                "additionalProperties": false
                              }
                            }
                          ],
                          "type": "array"
                        },
                        "missingColumns": {
                          "type": "string",
                          "enum": [
                            "error",
                            "blank"
                          ]
                        },
                        "left": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 48,
                          "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                        },
                        "right": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 48,
                          "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                        },
                        "join": {
                          "type": "string",
                          "enum": [
                            "inner",
                            "left",
                            "full"
                          ]
                        },
                        "manyToMany": {
                          "type": "boolean"
                        },
                        "keep": {
                          "type": "string",
                          "enum": [
                            "report",
                            "duplicates_only",
                            "first",
                            "last",
                            "drop_all"
                          ]
                        },
                        "by": {
                          "minItems": 1,
                          "maxItems": 16,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "column": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 32767
                              },
                              "direction": {
                                "type": "string",
                                "enum": [
                                  "asc",
                                  "desc"
                                ]
                              },
                              "blanks": {
                                "type": "string",
                                "enum": [
                                  "first",
                                  "last"
                                ]
                              }
                            },
                            "required": [
                              "column",
                              "direction",
                              "blanks"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "mixedTypes": {
                          "type": "string",
                          "enum": [
                            "error",
                            "type_order"
                          ]
                        },
                        "locale": {
                          "type": "string",
                          "minLength": 2,
                          "maxLength": 64
                        },
                        "transformations": {
                          "minItems": 1,
                          "maxItems": 64,
                          "type": "array",
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "const": "constant"
                                  },
                                  "column": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 32767
                                  },
                                  "value": {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "enum": [
                                          "text",
                                          "number",
                                          "boolean",
                                          "blank",
                                          "date",
                                          "datetime"
                                        ]
                                      },
                                      "value": {
                                        "anyOf": [
                                          {
                                            "type": "string",
                                            "maxLength": 32767
                                          },
                                          {
                                            "type": "number"
                                          },
                                          {
                                            "type": "boolean"
                                          }
                                        ]
                                      }
                                    },
                                    "required": [
                                      "kind"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "kind",
                                  "column",
                                  "value"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "const": "trim"
                                  },
                                  "column": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 32767
                                  }
                                },
                                "required": [
                                  "kind",
                                  "column"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "const": "case"
                                  },
                                  "column": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 32767
                                  },
                                  "direction": {
                                    "type": "string",
                                    "enum": [
                                      "upper",
                                      "lower"
                                    ]
                                  },
                                  "locale": {
                                    "type": "string",
                                    "minLength": 2,
                                    "maxLength": 64
                                  }
                                },
                                "required": [
                                  "kind",
                                  "column",
                                  "direction",
                                  "locale"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "const": "convert"
                                  },
                                  "spec": {
                                    "oneOf": [
                                      {
                                        "type": "object",
                                        "properties": {
                                          "column": {
                                            "type": "string",
                                            "description": "Column."
                                          },
                                          "missingValues": {
                                            "description": "Missing-text tokens.",
                                            "maxItems": 64,
                                            "type": "array",
                                            "items": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 128
                                            }
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "number"
                                          },
                                          "decimal": {
                                            "type": "string",
                                            "enum": [
                                              ".",
                                              ","
                                            ]
                                          },
                                          "group": {
                                            "type": "string",
                                            "enum": [
                                              "none",
                                              ".",
                                              ",",
                                              " ",
                                              "'"
                                            ]
                                          },
                                          "locale": {
                                            "type": "string",
                                            "minLength": 2,
                                            "maxLength": 64
                                          },
                                          "numberingSystem": {
                                            "type": "string",
                                            "minLength": 3,
                                            "maxLength": 32
                                          },
                                          "identifiers": {
                                            "type": "string",
                                            "enum": [
                                              "refuse",
                                              "read"
                                            ]
                                          }
                                        },
                                        "required": [
                                          "column",
                                          "type"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "column": {
                                            "type": "string",
                                            "description": "Column."
                                          },
                                          "missingValues": {
                                            "description": "Missing-text tokens.",
                                            "maxItems": 64,
                                            "type": "array",
                                            "items": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 128
                                            }
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "date"
                                          },
                                          "format": {
                                            "type": "string",
                                            "minLength": 1,
                                            "maxLength": 64
                                          },
                                          "order": {
                                            "type": "string",
                                            "enum": [
                                              "dmy",
                                              "mdy"
                                            ]
                                          },
                                          "locale": {
                                            "type": "string",
                                            "minLength": 2,
                                            "maxLength": 64
                                          }
                                        },
                                        "required": [
                                          "column",
                                          "type"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "column": {
                                            "type": "string",
                                            "description": "Column."
                                          },
                                          "missingValues": {
                                            "description": "Missing-text tokens.",
                                            "maxItems": 64,
                                            "type": "array",
                                            "items": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 128
                                            }
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "boolean"
                                          },
                                          "trueValues": {
                                            "maxItems": 64,
                                            "type": "array",
                                            "items": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 128
                                            }
                                          },
                                          "falseValues": {
                                            "maxItems": 64,
                                            "type": "array",
                                            "items": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 128
                                            }
                                          }
                                        },
                                        "required": [
                                          "column",
                                          "type"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "column": {
                                            "type": "string",
                                            "description": "Column."
                                          },
                                          "missingValues": {
                                            "description": "Missing-text tokens.",
                                            "maxItems": 64,
                                            "type": "array",
                                            "items": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 128
                                            }
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "time"
                                          }
                                        },
                                        "required": [
                                          "column",
                                          "type"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "column": {
                                            "type": "string",
                                            "description": "Column."
                                          },
                                          "missingValues": {
                                            "description": "Missing-text tokens.",
                                            "maxItems": 64,
                                            "type": "array",
                                            "items": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 128
                                            }
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "duration"
                                          }
                                        },
                                        "required": [
                                          "column",
                                          "type"
                                        ],
                                        "additionalProperties": false
                                      },
                                      {
                                        "type": "object",
                                        "properties": {
                                          "column": {
                                            "type": "string",
                                            "description": "Column."
                                          },
                                          "missingValues": {
                                            "description": "Missing-text tokens.",
                                            "maxItems": 64,
                                            "type": "array",
                                            "items": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 128
                                            }
                                          },
                                          "type": {
                                            "type": "string",
                                            "const": "text"
                                          }
                                        },
                                        "required": [
                                          "column",
                                          "type"
                                        ],
                                        "additionalProperties": false
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "kind",
                                  "spec"
                                ],
                                "additionalProperties": false
                              }
                            ],
                            "type": "object"
                          }
                        },
                        "onError": {
                          "type": "string",
                          "enum": [
                            "error",
                            "blank",
                            "keep"
                          ]
                        }
                      },
                      "required": [
                        "kind",
                        "id"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "outputs": {
                    "minItems": 1,
                    "maxItems": 16,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "enum": [
                            "new",
                            "edit",
                            "edit_workbook"
                          ]
                        },
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 48,
                          "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                        },
                        "sheets": {
                          "minItems": 1,
                          "maxItems": 64,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 31
                              },
                              "input": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 48,
                                "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                              }
                            },
                            "required": [
                              "name",
                              "input"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "target": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 48,
                          "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                        },
                        "input": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 48,
                          "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                        },
                        "mode": {
                          "type": "string",
                          "enum": [
                            "changed_values",
                            "replace_values"
                          ]
                        },
                        "overwrite": {
                          "type": "boolean"
                        },
                        "changes": {
                          "minItems": 1,
                          "maxItems": 64,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "target": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 48,
                                "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                              },
                              "input": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 48,
                                "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
                              },
                              "mode": {
                                "type": "string",
                                "enum": [
                                  "changed_values",
                                  "replace_values"
                                ]
                              },
                              "overwrite": {
                                "default": false,
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "target",
                              "input",
                              "mode"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "kind",
                        "id"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "steps",
                  "outputs"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "id",
              "group"
            ],
            "additionalProperties": false
          }
        },
        "finish": {
          "maxItems": 256,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "job": {
                "type": "string",
                "minLength": 1,
                "maxLength": 48,
                "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
              },
              "output": {
                "type": "string",
                "minLength": 1,
                "maxLength": 48,
                "pattern": "^[A-Za-z][A-Za-z0-9_-]*$"
              },
              "changes": {
                "minItems": 1,
                "maxItems": 128,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "enum": [
                        "protect_sheet",
                        "unprotect_sheet",
                        "protect_workbook",
                        "unprotect_workbook",
                        "set_pivot",
                        "set_chart",
                        "remove_chart",
                        "set_hyperlink",
                        "remove_hyperlink",
                        "set_note",
                        "remove_note",
                        "set_image",
                        "remove_image",
                        "set_validation",
                        "remove_validation",
                        "set_conditional_format",
                        "remove_conditional_format",
                        "define_name",
                        "delete_name",
                        "write_named_range",
                        "format_cells",
                        "set_columns",
                        "set_rows",
                        "freeze_panes",
                        "set_sheet_visibility",
                        "set_print_layout",
                        "merge_cells",
                        "unmerge_cells",
                        "write_formula",
                        "fill_formula",
                        "create_table",
                        "edit_table",
                        "convert_table"
                      ]
                    },
                    "sheetName": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 31
                    },
                    "rule": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "list",
                            "whole",
                            "decimal",
                            "date",
                            "textLength",
                            "custom",
                            "cellIs",
                            "expression"
                          ]
                        },
                        "items": {
                          "minItems": 1,
                          "maxItems": 128,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          }
                        },
                        "operator": {
                          "type": "string",
                          "enum": [
                            "between",
                            "notBetween",
                            "equal",
                            "notEqual",
                            "greaterThan",
                            "lessThan",
                            "greaterThanOrEqual",
                            "lessThanOrEqual"
                          ]
                        },
                        "bounds": {
                          "minItems": 1,
                          "maxItems": 2,
                          "type": "array",
                          "items": {
                            "type": "number"
                          }
                        },
                        "formula": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 8192
                        },
                        "formulas": {
                          "minItems": 1,
                          "maxItems": 2,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 8192
                          }
                        }
                      },
                      "required": [
                        "type"
                      ],
                      "additionalProperties": false
                    },
                    "password": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 15,
                      "pattern": "^[\\x20-\\x7e]+$"
                    },
                    "selectLocked": {
                      "type": "boolean"
                    },
                    "selectUnlocked": {
                      "type": "boolean"
                    },
                    "name": {
                      "anyOf": [
                        {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255,
                          "pattern": "^[\\p{L}_\\\\][\\p{L}\\p{N}_.\\\\]*$"
                        },
                        {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        }
                      ]
                    },
                    "cell": {
                      "type": "string",
                      "maxLength": 21,
                      "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
                    },
                    "sourceSheet": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 31
                    },
                    "sourceRange": {
                      "type": "string",
                      "maxLength": 21,
                      "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
                    },
                    "rowColumn": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255
                    },
                    "measures": {
                      "minItems": 1,
                      "maxItems": 8,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "column": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "function": {
                            "type": "string",
                            "enum": [
                              "sum",
                              "count",
                              "min",
                              "max"
                            ]
                          },
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          }
                        },
                        "required": [
                          "column",
                          "function",
                          "name"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "overwrite": {
                      "type": "boolean"
                    },
                    "chartType": {
                      "type": "string",
                      "enum": [
                        "column",
                        "bar",
                        "line",
                        "pie"
                      ]
                    },
                    "title": {
                      "type": "string",
                      "maxLength": 255
                    },
                    "width": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 100,
                          "maximum": 2000
                        },
                        {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 10000
                        },
                        {
                          "anyOf": [
                            {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 255
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      ]
                    },
                    "height": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 100,
                          "maximum": 2000
                        },
                        {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 10000
                        },
                        {
                          "anyOf": [
                            {
                              "type": "number",
                              "minimum": 0,
                              "maximum": 409
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      ]
                    },
                    "series": {
                      "minItems": 1,
                      "maxItems": 16,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "sheetName": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 31
                          },
                          "categories": {
                            "type": "string",
                            "maxLength": 21,
                            "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
                          },
                          "values": {
                            "type": "string",
                            "maxLength": 21,
                            "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
                          }
                        },
                        "required": [
                          "name",
                          "sheetName",
                          "categories",
                          "values"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "target": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "internal"
                            },
                            "location": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 1024
                            }
                          },
                          "required": [
                            "kind",
                            "location"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "external"
                            },
                            "url": {
                              "type": "string",
                              "maxLength": 2048,
                              "format": "uri"
                            }
                          },
                          "required": [
                            "kind",
                            "url"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    "tooltip": {
                      "type": "string",
                      "maxLength": 255
                    },
                    "display": {
                      "type": "string",
                      "maxLength": 32767
                    },
                    "text": {
                      "type": "string",
                      "maxLength": 32767
                    },
                    "author": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255
                    },
                    "mime": {
                      "type": "string",
                      "enum": [
                        "image/png",
                        "image/jpeg"
                      ]
                    },
                    "data": {
                      "type": "string",
                      "minLength": 4,
                      "maxLength": 7000000
                    },
                    "range": {
                      "type": "string",
                      "maxLength": 21,
                      "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
                    },
                    "allowBlank": {
                      "type": "boolean"
                    },
                    "errorStyle": {
                      "type": "string",
                      "enum": [
                        "stop",
                        "warning",
                        "information"
                      ]
                    },
                    "errorTitle": {
                      "type": "string",
                      "maxLength": 32
                    },
                    "error": {
                      "type": "string",
                      "maxLength": 225
                    },
                    "promptTitle": {
                      "type": "string",
                      "maxLength": 32
                    },
                    "prompt": {
                      "type": "string",
                      "maxLength": 255
                    },
                    "ranges": {
                      "minItems": 1,
                      "maxItems": 64,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "maxLength": 21,
                        "pattern": "^(?:[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?|[A-Za-z]{1,3}:[A-Za-z]{1,3}|[1-9][0-9]{0,6}:[1-9][0-9]{0,6})$"
                      }
                    },
                    "priority": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 4096
                    },
                    "appearance": {
                      "type": "object",
                      "properties": {
                        "font": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                },
                                "size": {
                                  "type": "number",
                                  "minimum": 1,
                                  "maximum": 409
                                },
                                "bold": {
                                  "type": "boolean"
                                },
                                "italic": {
                                  "type": "boolean"
                                },
                                "underline": {
                                  "type": "boolean"
                                },
                                "strike": {
                                  "type": "boolean"
                                },
                                "color": {
                                  "type": "string",
                                  "pattern": "^[0-9A-Fa-f]{6}(?:[0-9A-Fa-f]{2})?$"
                                }
                              },
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "fill": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[0-9A-Fa-f]{6}(?:[0-9A-Fa-f]{2})?$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "additionalProperties": false
                    },
                    "stopIfTrue": {
                      "type": "boolean"
                    },
                    "scope": {
                      "type": "string",
                      "enum": [
                        "workbook",
                        "sheet"
                      ]
                    },
                    "values": {
                      "minItems": 1,
                      "maxItems": 1048576,
                      "type": "array",
                      "items": {
                        "minItems": 1,
                        "maxItems": 16384,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "enum": [
                                "text",
                                "number",
                                "boolean",
                                "blank",
                                "date",
                                "datetime"
                              ]
                            },
                            "value": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 32767
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean"
                                }
                              ]
                            }
                          },
                          "required": [
                            "kind"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "style": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "numberFormat": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "font": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 128
                                    },
                                    "size": {
                                      "type": "number",
                                      "minimum": 1,
                                      "maximum": 409
                                    },
                                    "bold": {
                                      "type": "boolean"
                                    },
                                    "italic": {
                                      "type": "boolean"
                                    },
                                    "underline": {
                                      "type": "boolean"
                                    },
                                    "strike": {
                                      "type": "boolean"
                                    },
                                    "color": {
                                      "type": "string",
                                      "pattern": "^[0-9A-Fa-f]{6}(?:[0-9A-Fa-f]{2})?$"
                                    }
                                  },
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "fill": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "^[0-9A-Fa-f]{6}(?:[0-9A-Fa-f]{2})?$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "border": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "left": {
                                      "type": "object",
                                      "properties": {
                                        "style": {
                                          "type": "string",
                                          "enum": [
                                            "thin",
                                            "medium",
                                            "thick",
                                            "dashed",
                                            "dotted",
                                            "double",
                                            "hair",
                                            "none"
                                          ]
                                        },
                                        "color": {
                                          "type": "string",
                                          "pattern": "^[0-9A-Fa-f]{6}(?:[0-9A-Fa-f]{2})?$"
                                        }
                                      },
                                      "required": [
                                        "style"
                                      ],
                                      "additionalProperties": false
                                    },
                                    "right": {
                                      "type": "object",
                                      "properties": {
                                        "style": {
                                          "type": "string",
                                          "enum": [
                                            "thin",
                                            "medium",
                                            "thick",
                                            "dashed",
                                            "dotted",
                                            "double",
                                            "hair",
                                            "none"
                                          ]
                                        },
                                        "color": {
                                          "type": "string",
                                          "pattern": "^[0-9A-Fa-f]{6}(?:[0-9A-Fa-f]{2})?$"
                                        }
                                      },
                                      "required": [
                                        "style"
                                      ],
                                      "additionalProperties": false
                                    },
                                    "top": {
                                      "type": "object",
                                      "properties": {
                                        "style": {
                                          "type": "string",
                                          "enum": [
                                            "thin",
                                            "medium",
                                            "thick",
                                            "dashed",
                                            "dotted",
                                            "double",
                                            "hair",
                                            "none"
                                          ]
                                        },
                                        "color": {
                                          "type": "string",
                                          "pattern": "^[0-9A-Fa-f]{6}(?:[0-9A-Fa-f]{2})?$"
                                        }
                                      },
                                      "required": [
                                        "style"
                                      ],
                                      "additionalProperties": false
                                    },
                                    "bottom": {
                                      "type": "object",
                                      "properties": {
                                        "style": {
                                          "type": "string",
                                          "enum": [
                                            "thin",
                                            "medium",
                                            "thick",
                                            "dashed",
                                            "dotted",
                                            "double",
                                            "hair",
                                            "none"
                                          ]
                                        },
                                        "color": {
                                          "type": "string",
                                          "pattern": "^[0-9A-Fa-f]{6}(?:[0-9A-Fa-f]{2})?$"
                                        }
                                      },
                                      "required": [
                                        "style"
                                      ],
                                      "additionalProperties": false
                                    }
                                  },
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "alignment": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "horizontal": {
                                      "type": "string",
                                      "enum": [
                                        "general",
                                        "left",
                                        "center",
                                        "right",
                                        "fill",
                                        "justify",
                                        "centerContinuous",
                                        "distributed"
                                      ]
                                    },
                                    "vertical": {
                                      "type": "string",
                                      "enum": [
                                        "top",
                                        "center",
                                        "bottom",
                                        "justify",
                                        "distributed"
                                      ]
                                    },
                                    "wrapText": {
                                      "type": "boolean"
                                    }
                                  },
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "protection": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "locked": {
                                      "type": "boolean"
                                    },
                                    "hidden": {
                                      "type": "boolean"
                                    }
                                  },
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "additionalProperties": false
                        },
                        {
                          "type": "string",
                          "enum": [
                            "SezzleeBlue",
                            "none"
                          ]
                        }
                      ]
                    },
                    "first": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 16384
                        },
                        {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 1048576
                        }
                      ]
                    },
                    "last": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 16384
                        },
                        {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 1048576
                        }
                      ]
                    },
                    "hidden": {
                      "type": "boolean"
                    },
                    "rows": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 1048575
                    },
                    "columns": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 16383
                        },
                        {
                          "maxItems": 1024,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "column": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "name": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              }
                            },
                            "required": [
                              "column",
                              "name"
                            ],
                            "additionalProperties": false
                          }
                        }
                      ]
                    },
                    "state": {
                      "type": "string",
                      "enum": [
                        "visible",
                        "hidden",
                        "veryHidden"
                      ]
                    },
                    "orientation": {
                      "type": "string",
                      "enum": [
                        "portrait",
                        "landscape"
                      ]
                    },
                    "paper": {
                      "type": "string",
                      "enum": [
                        "A4",
                        "letter",
                        "legal"
                      ]
                    },
                    "margins": {
                      "type": "object",
                      "properties": {
                        "left": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 10
                        },
                        "right": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 10
                        },
                        "top": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 10
                        },
                        "bottom": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 10
                        },
                        "header": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 10
                        },
                        "footer": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 10
                        }
                      },
                      "required": [
                        "left",
                        "right",
                        "top",
                        "bottom",
                        "header",
                        "footer"
                      ],
                      "additionalProperties": false
                    },
                    "fitWidth": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 32767
                    },
                    "fitHeight": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 32767
                    },
                    "scale": {
                      "type": "integer",
                      "minimum": 10,
                      "maximum": 400
                    },
                    "printArea": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 21,
                          "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "titleRows": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "first": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 1048576
                            },
                            "last": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 1048576
                            }
                          },
                          "required": [
                            "first",
                            "last"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "titleColumns": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "first": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 16384
                            },
                            "last": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 16384
                            }
                          },
                          "required": [
                            "first",
                            "last"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "loss": {
                      "type": "string",
                      "enum": [
                        "reject",
                        "discard_non_anchor"
                      ]
                    },
                    "formula": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 8192
                    },
                    "anchor": {
                      "type": "string",
                      "maxLength": 21,
                      "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
                    },
                    "filter": {
                      "type": "boolean"
                    },
                    "totals": {
                      "anyOf": [
                        {
                          "maxItems": 1024,
                          "type": "array",
                          "items": {
                            "oneOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "const": "label"
                                  },
                                  "column": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "text": {
                                    "type": "string",
                                    "maxLength": 255
                                  }
                                },
                                "required": [
                                  "kind",
                                  "column",
                                  "text"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "const": "function"
                                  },
                                  "column": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "function": {
                                    "type": "string",
                                    "enum": [
                                      "sum",
                                      "average",
                                      "count",
                                      "countNums",
                                      "min",
                                      "max",
                                      "stdDev",
                                      "var"
                                    ]
                                  }
                                },
                                "required": [
                                  "kind",
                                  "column",
                                  "function"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "kind": {
                                    "type": "string",
                                    "const": "formula"
                                  },
                                  "column": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "formula": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 8192
                                  }
                                },
                                "required": [
                                  "kind",
                                  "column",
                                  "formula"
                                ],
                                "additionalProperties": false
                              }
                            ]
                          }
                        },
                        {
                          "anyOf": [
                            {
                              "maxItems": 1024,
                              "type": "array",
                              "items": {
                                "oneOf": [
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "label"
                                      },
                                      "column": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 255
                                      },
                                      "text": {
                                        "type": "string",
                                        "maxLength": 255
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "column",
                                      "text"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "function"
                                      },
                                      "column": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 255
                                      },
                                      "function": {
                                        "type": "string",
                                        "enum": [
                                          "sum",
                                          "average",
                                          "count",
                                          "countNums",
                                          "min",
                                          "max",
                                          "stdDev",
                                          "var"
                                        ]
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "column",
                                      "function"
                                    ],
                                    "additionalProperties": false
                                  },
                                  {
                                    "type": "object",
                                    "properties": {
                                      "kind": {
                                        "type": "string",
                                        "const": "formula"
                                      },
                                      "column": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 255
                                      },
                                      "formula": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 8192
                                      }
                                    },
                                    "required": [
                                      "kind",
                                      "column",
                                      "formula"
                                    ],
                                    "additionalProperties": false
                                  }
                                ]
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      ]
                    },
                    "calculatedColumns": {
                      "maxItems": 1024,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "column": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "formula": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 8192
                          }
                        },
                        "required": [
                          "column",
                          "formula"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "tableName": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255,
                      "pattern": "^[\\p{L}_\\\\][\\p{L}\\p{N}_.\\\\]*$"
                    },
                    "clearRemovedValues": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "kind",
                    "sheetName"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "output",
              "changes"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "kind"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "job"
  ],
  "additionalProperties": false
}

get_bulk_job

Read durable bulk completion by jobId without rerunning operations. Verifies the retained manifest and every completed output hash. Returns a complete dependent result, independent batch statuses, or not_found. Missing/changed retained output bytes are an error rather than a successful replay. Writing mode only; no source writes or recalculation.

Annotations: read-only, idempotent, closed world.

Available only with --write <relative-output-directory>. The registered JSON Schema below is the exact wire contract; nested operation variants are validated by the server.

Input JSON Schema
json
{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "jobId": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    }
  },
  "required": [
    "jobId"
  ],
  "additionalProperties": false
}

prepare_bulk

Analyze complete version-pinned record selections for keyed_update or upsert without writing files. source and target contain filePath, versionId and selection {kind:records, sheetName, range or table, headerRow}; obtain versions from prepare_transfer or prior receipts. Select exactly one closed A1 range or named table, with an explicit positive headerRow. Target is an unfiltered complete .xlsx list; source can be .xlsx, .xlsm or CSV and use record filters/projection. operation has kind, keys and set arrays of {sourceColumn,targetColumn} using exact selected header names. Keys preserve types and case; no implicit trim/coercion. Empty or duplicate keys block; conflictPolicy currently only error. Key columns cannot be reassigned. Set overwrite:true to replace occupied target values. Upsert requires mapping every target column when inserting. Returns bounded counts/conflicts, exact versions and requestFingerprint, never records. Conflict record numbers are one-based positions in the selected records, not worksheet rows. Validation covers keys and target package policy only; executionAvailable:false describes this focused analysis. Use prepare_bulk_job/run_bulk_job for fully validated execution. Preparation never means a completed update or grants permission for changed sources. Writing mode only; no recalculation.

Annotations: read-only, idempotent, closed world.

Available only with --write <relative-output-directory>. The registered JSON Schema below is the exact wire contract; nested operation variants are validated by the server.

Input JSON Schema
json
{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "source": {
      "type": "object",
      "properties": {
        "filePath": {
          "type": "string",
          "minLength": 1,
          "maxLength": 32768
        },
        "versionId": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$"
        },
        "selection": {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "records"
            },
            "sheetName": {
              "description": "Sheet; default first visible.",
              "type": "string"
            },
            "range": {
              "type": "string",
              "maxLength": 21,
              "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}:[A-Za-z]{1,3}[1-9][0-9]{0,6}$"
            },
            "table": {
              "description": "XLSX table: data rows, not range.",
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            },
            "visibleOnly": {
              "description": "XLSX: skip hidden/AutoFilter rows.",
              "type": "boolean"
            },
            "headerRow": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1048576
            },
            "columnMode": {
              "description": "Column references: auto (default), header text or A1 letter.",
              "type": "string",
              "enum": [
                "auto",
                "header",
                "letter"
              ]
            },
            "caseSensitive": {
              "description": "Case-sensitive text comparisons, default false. Applies to predicate bounds and min/max.",
              "type": "boolean"
            },
            "columns": {
              "description": "Readings {column,type,...}; reuse profile_sheet.",
              "minItems": 1,
              "maxItems": 64,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "column": {
                    "type": "string",
                    "description": "Column."
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "number",
                      "date",
                      "boolean",
                      "time",
                      "duration",
                      "text"
                    ],
                    "description": "Reading type."
                  },
                  "missingValues": {
                    "description": "Missing-text tokens.",
                    "maxItems": 64,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    }
                  },
                  "decimal": {
                    "description": "Number decimal mark.",
                    "type": "string",
                    "enum": [
                      ".",
                      ","
                    ]
                  },
                  "group": {
                    "description": "Number group mark.",
                    "type": "string",
                    "enum": [
                      "none",
                      ".",
                      ",",
                      " ",
                      "'"
                    ]
                  },
                  "locale": {
                    "description": "Number/date locale.",
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 64
                  },
                  "numberingSystem": {
                    "description": "Number digit system.",
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 32
                  },
                  "identifiers": {
                    "description": "Number: read digit identifiers?",
                    "type": "string",
                    "enum": [
                      "refuse",
                      "read"
                    ]
                  },
                  "format": {
                    "description": "Date pattern, e.g. dd.MM.yyyy.",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "order": {
                    "description": "Date order if no format.",
                    "type": "string",
                    "enum": [
                      "dmy",
                      "mdy"
                    ]
                  },
                  "trueValues": {
                    "description": "Boolean true tokens.",
                    "maxItems": 64,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    }
                  },
                  "falseValues": {
                    "description": "Boolean false tokens.",
                    "maxItems": 64,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    }
                  }
                },
                "required": [
                  "column",
                  "type"
                ],
                "additionalProperties": false
              }
            },
            "mergedCells": {
              "description": "Merged values and header detection policy, default master.",
              "type": "string",
              "enum": [
                "master",
                "repeat"
              ]
            },
            "delimiter": {
              "description": "CSV separator; sniffed when omitted.",
              "type": "string",
              "enum": [
                "comma",
                "semicolon",
                "tab",
                "pipe"
              ]
            },
            "encoding": {
              "description": "CSV encoding; BOM or utf-8 when omitted.",
              "type": "string",
              "enum": [
                "utf-8",
                "utf-16le",
                "utf-16be",
                "windows-1254",
                "iso-8859-9",
                "windows-1252",
                "windows-1251",
                "windows-1256",
                "shift_jis",
                "gb18030",
                "big5",
                "euc-kr"
              ]
            },
            "locale": {
              "description": "BCP 47 locale: separators/month names, not date order.",
              "type": "string",
              "minLength": 2,
              "maxLength": 64
            },
            "numberingSystem": {
              "description": "Locale digit system, e.g. arab.",
              "type": "string",
              "minLength": 3,
              "maxLength": 32
            },
            "missingValues": {
              "description": "Missing tokens: N/A, NULL, -, —, #N/A.",
              "maxItems": 64,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              }
            },
            "trueValues": {
              "description": "True tokens: true, yes, y, Evet, E.",
              "maxItems": 64,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              }
            },
            "falseValues": {
              "description": "False tokens: false, no, n, Hayır, H.",
              "maxItems": 64,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              }
            },
            "selectColumns": {
              "minItems": 1,
              "maxItems": 16384,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 32767
              }
            },
            "where": {
              "maxItems": 16,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "column": {
                    "type": "string",
                    "description": "Column."
                  },
                  "op": {
                    "type": "string",
                    "enum": [
                      "eq",
                      "ne",
                      "lt",
                      "lte",
                      "gt",
                      "gte",
                      "contains",
                      "startsWith",
                      "endsWith",
                      "in",
                      "between",
                      "isEmpty",
                      "isNotEmpty",
                      "isError",
                      "isNumber",
                      "isText"
                    ]
                  },
                  "value": {
                    "description": "Operand.",
                    "type": [
                      "string",
                      "number",
                      "boolean"
                    ]
                  },
                  "values": {
                    "description": "Operands of in, or [low, high] of between.",
                    "minItems": 1,
                    "maxItems": 64,
                    "type": "array",
                    "items": {
                      "type": [
                        "string",
                        "number",
                        "boolean"
                      ]
                    }
                  }
                },
                "required": [
                  "column",
                  "op"
                ],
                "additionalProperties": false
              }
            },
            "match": {
              "default": "all",
              "type": "string",
              "enum": [
                "all",
                "any"
              ]
            },
            "scope": {
              "default": {
                "kind": "all"
              },
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "all"
                    }
                  },
                  "required": [
                    "kind"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "rows"
                    },
                    "rows": {
                      "minItems": 1,
                      "maxItems": 10000,
                      "type": "array",
                      "items": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 1048576
                      }
                    }
                  },
                  "required": [
                    "kind",
                    "rows"
                  ],
                  "additionalProperties": false
                }
              ]
            },
            "includeHeaders": {
              "default": false,
              "type": "boolean",
              "const": false
            }
          },
          "required": [
            "kind",
            "headerRow"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "filePath",
        "versionId",
        "selection"
      ],
      "additionalProperties": false
    },
    "target": {
      "type": "object",
      "properties": {
        "filePath": {
          "type": "string",
          "minLength": 1,
          "maxLength": 32768
        },
        "versionId": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$"
        },
        "selection": {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "records"
            },
            "sheetName": {
              "description": "Sheet; default first visible.",
              "type": "string"
            },
            "range": {
              "type": "string",
              "maxLength": 21,
              "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}:[A-Za-z]{1,3}[1-9][0-9]{0,6}$"
            },
            "table": {
              "description": "XLSX table: data rows, not range.",
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            },
            "headerRow": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1048576
            },
            "columnMode": {
              "description": "Column references: auto (default), header text or A1 letter.",
              "type": "string",
              "enum": [
                "auto",
                "header",
                "letter"
              ]
            },
            "caseSensitive": {
              "description": "Case-sensitive text comparisons, default false. Applies to predicate bounds and min/max.",
              "type": "boolean"
            },
            "columns": {
              "description": "Readings {column,type,...}; reuse profile_sheet.",
              "minItems": 1,
              "maxItems": 64,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "column": {
                    "type": "string",
                    "description": "Column."
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "number",
                      "date",
                      "boolean",
                      "time",
                      "duration",
                      "text"
                    ],
                    "description": "Reading type."
                  },
                  "missingValues": {
                    "description": "Missing-text tokens.",
                    "maxItems": 64,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    }
                  },
                  "decimal": {
                    "description": "Number decimal mark.",
                    "type": "string",
                    "enum": [
                      ".",
                      ","
                    ]
                  },
                  "group": {
                    "description": "Number group mark.",
                    "type": "string",
                    "enum": [
                      "none",
                      ".",
                      ",",
                      " ",
                      "'"
                    ]
                  },
                  "locale": {
                    "description": "Number/date locale.",
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 64
                  },
                  "numberingSystem": {
                    "description": "Number digit system.",
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 32
                  },
                  "identifiers": {
                    "description": "Number: read digit identifiers?",
                    "type": "string",
                    "enum": [
                      "refuse",
                      "read"
                    ]
                  },
                  "format": {
                    "description": "Date pattern, e.g. dd.MM.yyyy.",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "order": {
                    "description": "Date order if no format.",
                    "type": "string",
                    "enum": [
                      "dmy",
                      "mdy"
                    ]
                  },
                  "trueValues": {
                    "description": "Boolean true tokens.",
                    "maxItems": 64,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    }
                  },
                  "falseValues": {
                    "description": "Boolean false tokens.",
                    "maxItems": 64,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    }
                  }
                },
                "required": [
                  "column",
                  "type"
                ],
                "additionalProperties": false
              }
            },
            "mergedCells": {
              "description": "Merged values and header detection policy, default master.",
              "type": "string",
              "enum": [
                "master",
                "repeat"
              ]
            },
            "delimiter": {
              "description": "CSV separator; sniffed when omitted.",
              "type": "string",
              "enum": [
                "comma",
                "semicolon",
                "tab",
                "pipe"
              ]
            },
            "encoding": {
              "description": "CSV encoding; BOM or utf-8 when omitted.",
              "type": "string",
              "enum": [
                "utf-8",
                "utf-16le",
                "utf-16be",
                "windows-1254",
                "iso-8859-9",
                "windows-1252",
                "windows-1251",
                "windows-1256",
                "shift_jis",
                "gb18030",
                "big5",
                "euc-kr"
              ]
            },
            "locale": {
              "description": "BCP 47 locale: separators/month names, not date order.",
              "type": "string",
              "minLength": 2,
              "maxLength": 64
            },
            "numberingSystem": {
              "description": "Locale digit system, e.g. arab.",
              "type": "string",
              "minLength": 3,
              "maxLength": 32
            },
            "missingValues": {
              "description": "Missing tokens: N/A, NULL, -, —, #N/A.",
              "maxItems": 64,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              }
            },
            "trueValues": {
              "description": "True tokens: true, yes, y, Evet, E.",
              "maxItems": 64,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              }
            },
            "falseValues": {
              "description": "False tokens: false, no, n, Hayır, H.",
              "maxItems": 64,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              }
            },
            "includeHeaders": {
              "default": false,
              "type": "boolean",
              "const": false
            },
            "match": {
              "default": "all",
              "type": "string",
              "const": "all"
            },
            "scope": {
              "default": {
                "kind": "all"
              },
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "all"
                }
              },
              "required": [
                "kind"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "kind",
            "headerRow"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "filePath",
        "versionId",
        "selection"
      ],
      "additionalProperties": false
    },
    "operation": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "keyed_update"
            },
            "keys": {
              "minItems": 1,
              "maxItems": 16,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "sourceColumn": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 32767
                  },
                  "targetColumn": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 32767
                  }
                },
                "required": [
                  "sourceColumn",
                  "targetColumn"
                ],
                "additionalProperties": false
              }
            },
            "set": {
              "minItems": 1,
              "maxItems": 64,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "sourceColumn": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 32767
                  },
                  "targetColumn": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 32767
                  }
                },
                "required": [
                  "sourceColumn",
                  "targetColumn"
                ],
                "additionalProperties": false
              }
            },
            "conflictPolicy": {
              "default": "error",
              "type": "string",
              "const": "error"
            },
            "overwrite": {
              "default": false,
              "type": "boolean"
            }
          },
          "required": [
            "kind",
            "keys",
            "set"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "upsert"
            },
            "keys": {
              "minItems": 1,
              "maxItems": 16,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "sourceColumn": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 32767
                  },
                  "targetColumn": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 32767
                  }
                },
                "required": [
                  "sourceColumn",
                  "targetColumn"
                ],
                "additionalProperties": false
              }
            },
            "set": {
              "minItems": 1,
              "maxItems": 64,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "sourceColumn": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 32767
                  },
                  "targetColumn": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 32767
                  }
                },
                "required": [
                  "sourceColumn",
                  "targetColumn"
                ],
                "additionalProperties": false
              }
            },
            "conflictPolicy": {
              "default": "error",
              "type": "string",
              "const": "error"
            },
            "overwrite": {
              "default": false,
              "type": "boolean"
            }
          },
          "required": [
            "kind",
            "keys",
            "set"
          ],
          "additionalProperties": false
        }
      ],
      "type": "object"
    }
  },
  "required": [
    "source",
    "target",
    "operation"
  ],
  "additionalProperties": false
}

prepare_edit

Ready means validated in memory, NOT saved: publication:not_published and nextAction give the required edit_workbook call. Only its complete output receipt identifies the saved version. Prepare an atomic edit without publishing an output. Send filePath, optional expectedVersion from the prior read, and changes. A ready response returns preparationId: pass only that id to edit_workbook in this session within 15 minutes. A blocked response cannot be applied. Sources are version-pinned and rechecked before publication; source files never change. Protection, macros, signatures and unsupported affected dependencies refuse editing. write_cells uses typed cells; occupied targets require overwrite:true only when replacement was requested. clear_contents keeps styles. copy_range/move_range use range,targetSheet,startCell; copy requires mode values/formulas/formatting/all and may pin an external from version. copy_sheet uses name/mode. format_cells patches specified fields; null resets a component. set_columns/set_rows use one-based first/last; widths are character units, heights points. freeze_panes uses counts. Print margins are inches; use scale or fitWidth/fitHeight. merge_cells rejects content loss unless loss:discard_non_anchor was requested. write_formula uses cell/formula; fill_formula uses anchor/range/formula. New formulas have no calculated cache: report recalculation required. create_table range includes header/data/optional totals. edit_table can rename columns, resize range and set calculatedColumns/totals/style/filter. Shrinking preserves excluded values unless clearRemovedValues:true. Table style is SezzleeBlue or none. Unsupported dynamic arrays, external links or preservation refuse the whole request. Correcting changes requires a new preparation. Every sheetName and A1 address names the source as it was read, never a position produced by another change in the request: unprotection runs first, other changes apply at source coordinates, row/column insertions and deletions then move them, and renames, sheet deletions, reorders and protection follow. insert_rows takes count, or values rows with optional startColumn (default A) whose cells may be {kind:formula,formula} using {row} for the inserted row, for example B{row}C{row}; every other reference is a source address. Copies read the source as it was read. Every read result carries version {filePath,versionId}: pass it as source (or expectedVersion) so the edit applies to the bytes that were read. describe_workbook definedNames give name, scope, sheetName and range for define_name/delete_name, and get_charts series data give sheetName and range for set_chart series. A change touching cells another change deletes, copies or moves, two insertions at one position, an insertion inside a deleted band, or a new sheet name equal to a source sheet blocks the request. placements report the output sheet and range of each target that moved or was renamed. Never retype rows a read returned. Instead of values, a create_workbook block, write_cells or insert_rows takes source: {kind:result,resultId,columns?,where?,offset?,maxRows?} for a retained aggregate_sheet result, or {kind:range|records|aggregate,filePath,versionId?,...} with prepare_transfer selection fields. The server writes the selected rows as typed cells, starting with the source's own header row (result and aggregate labels, records includeHeaders); header:[...] replaces it or adds one. With values, header:[...] writes a text row above them. Literal values that repeat three rows of a retained result are refused. Table ranges include the header and requested totals row. A real calculated column uses calculatedColumns:[{column:"Amount",formula:"[@Qty][@Price]"}]; filling cells alone does not define table calculated-column metadata. Bare QtyPrice refers to defined names. Totals labels are explicit, for example totals:[{kind:"label",column:"Item",text:"Total"},{kind:"function",column:"Amount",function:"sum"}]; a sum function does not create a Total label automatically. Advanced changes: define_name uses sheetName,name,range,scope workbook/sheet; replacement requires overwrite:true. write_named_range uses the exact name/scope and a typed values rectangle of the same shape; delete_name refuses live formula dependencies. set_validation uses range and rule {type:list,items:[...]}, {type:whole/decimal/date/textLength,operator,bounds:[...]}, or {type:custom,formula}; date bounds are workbook serials, rules guide interactive Excel input and do not enforce all server writes. remove_validation takes the exact old range, or ranges copied from one get_data_validations rule. set_conditional_format uses range,priority,rule {type:expression,formula} or {type:cellIs,operator,formulas:[...]}, appearance {font,fill},stopIfTrue. Replace a priority explicitly with overwrite:true; remove_conditional_format uses priority. set_hyperlink uses cell,target {kind:external,url} for HTTPS or {kind:internal,location}; set_note uses cell,text,author; set_image uses name,cell,mime image/png or image/jpeg,data canonical base64,width,height in pixels. Their remove_ operations select the same cell or image name; get_images reports that name. set_chart uses name,chartType column/bar/line/pie,title,cell and series [{name,sheetName,categories,values}] with one-row/column A1 ranges; formula sources have no invented cache and require refresh. remove_chart uses name. set_pivot creates/refreshes a real PivotTable using name,cell,sourceSheet,sourceRange including headers,rowColumn and measures [{column,function:sum/count/min/max,name}]; source cells must be literal, count counts nonblank values. set_pivot overwrite:true refreshes/replaces an existing private cache and clears its old result tail. protect_sheet/protect_workbook optionally use a legacy Excel protection password of up to 15 characters; this is not encryption. Unprotect every locked target with authenticated unprotect_workbook/unprotect_sheet changes. format_cells style.protection {locked,hidden} controls cell protection. Strong-hash, encrypted, signed and macro-enabled editing remains refused. Originals never change. Appearance and source changes distinguish current chart/pivot caches from refreshRequired.

Annotations: read-only, idempotent, closed world.

Available only with --write <relative-output-directory>. The registered JSON Schema below is the exact wire contract; nested operation variants are validated by the server.

Input JSON Schema
json
{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "filePath": {
      "type": "string",
      "minLength": 1,
      "maxLength": 32768
    },
    "expectedVersion": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$"
        },
        {
          "type": "object",
          "properties": {
            "filePath": {
              "type": "string",
              "minLength": 1,
              "maxLength": 32768
            },
            "versionId": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            }
          },
          "required": [
            "filePath",
            "versionId"
          ],
          "additionalProperties": false
        }
      ]
    },
    "changes": {
      "minItems": 1,
      "maxItems": 128,
      "type": "array",
      "items": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "add_sheet"
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              }
            },
            "required": [
              "kind",
              "name"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "startCell": {
                "type": "string",
                "minLength": 2,
                "maxLength": 10,
                "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}$"
              },
              "values": {
                "minItems": 1,
                "maxItems": 1000000,
                "type": "array",
                "items": {
                  "minItems": 1,
                  "maxItems": 16384,
                  "type": "array",
                  "items": {
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "text"
                          },
                          "value": {
                            "type": "string",
                            "maxLength": 32767
                          }
                        },
                        "required": [
                          "kind",
                          "value"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "number"
                          },
                          "value": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "kind",
                          "value"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "boolean"
                          },
                          "value": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "kind",
                          "value"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "blank"
                          }
                        },
                        "required": [
                          "kind"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "date"
                          },
                          "value": {
                            "type": "string",
                            "minLength": 10,
                            "format": "date",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                          }
                        },
                        "required": [
                          "kind",
                          "value"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "datetime"
                          },
                          "value": {
                            "type": "string",
                            "allOf": [
                              {
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z)|(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?)$"
                              },
                              {
                                "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?$"
                              }
                            ]
                          }
                        },
                        "required": [
                          "kind",
                          "value"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  }
                }
              },
              "kind": {
                "type": "string",
                "const": "write_cells"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "overwrite": {
                "default": false,
                "type": "boolean"
              },
              "source": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "range"
                      },
                      "sheetName": {
                        "description": "Sheet; default first visible.",
                        "type": "string"
                      },
                      "range": {
                        "description": "A1 range such as A1:H500, B:D or 2:40, including the header row. Defaults to the used range.",
                        "type": "string"
                      },
                      "table": {
                        "description": "XLSX table: data rows, not range.",
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      },
                      "visibleOnly": {
                        "description": "XLSX: skip hidden/AutoFilter rows.",
                        "type": "boolean"
                      },
                      "headerRow": {
                        "description": "Header row (0: none). Default: table/autofilter header, then first text header above data, else 1.",
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "columnMode": {
                        "description": "Column references: auto (default), header text or A1 letter.",
                        "type": "string",
                        "enum": [
                          "auto",
                          "header",
                          "letter"
                        ]
                      },
                      "caseSensitive": {
                        "description": "Case-sensitive text comparisons, default false. Applies to predicate bounds and min/max.",
                        "type": "boolean"
                      },
                      "columns": {
                        "description": "Readings {column,type,...}; reuse profile_sheet.",
                        "minItems": 1,
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "column": {
                              "type": "string",
                              "description": "Column."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "number",
                                "date",
                                "boolean",
                                "time",
                                "duration",
                                "text"
                              ],
                              "description": "Reading type."
                            },
                            "missingValues": {
                              "description": "Missing-text tokens.",
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            },
                            "decimal": {
                              "description": "Number decimal mark.",
                              "type": "string",
                              "enum": [
                                ".",
                                ","
                              ]
                            },
                            "group": {
                              "description": "Number group mark.",
                              "type": "string",
                              "enum": [
                                "none",
                                ".",
                                ",",
                                " ",
                                "'"
                              ]
                            },
                            "locale": {
                              "description": "Number/date locale.",
                              "type": "string",
                              "minLength": 2,
                              "maxLength": 64
                            },
                            "numberingSystem": {
                              "description": "Number digit system.",
                              "type": "string",
                              "minLength": 3,
                              "maxLength": 32
                            },
                            "identifiers": {
                              "description": "Number: read digit identifiers?",
                              "type": "string",
                              "enum": [
                                "refuse",
                                "read"
                              ]
                            },
                            "format": {
                              "description": "Date pattern, e.g. dd.MM.yyyy.",
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "order": {
                              "description": "Date order if no format.",
                              "type": "string",
                              "enum": [
                                "dmy",
                                "mdy"
                              ]
                            },
                            "trueValues": {
                              "description": "Boolean true tokens.",
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            },
                            "falseValues": {
                              "description": "Boolean false tokens.",
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            }
                          },
                          "required": [
                            "column",
                            "type"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "mergedCells": {
                        "description": "Merged values and header detection policy, default master.",
                        "type": "string",
                        "enum": [
                          "master",
                          "repeat"
                        ]
                      },
                      "delimiter": {
                        "description": "CSV separator; sniffed when omitted.",
                        "type": "string",
                        "enum": [
                          "comma",
                          "semicolon",
                          "tab",
                          "pipe"
                        ]
                      },
                      "encoding": {
                        "description": "CSV encoding; BOM or utf-8 when omitted.",
                        "type": "string",
                        "enum": [
                          "utf-8",
                          "utf-16le",
                          "utf-16be",
                          "windows-1254",
                          "iso-8859-9",
                          "windows-1252",
                          "windows-1251",
                          "windows-1256",
                          "shift_jis",
                          "gb18030",
                          "big5",
                          "euc-kr"
                        ]
                      },
                      "locale": {
                        "description": "BCP 47 locale: separators/month names, not date order.",
                        "type": "string",
                        "minLength": 2,
                        "maxLength": 64
                      },
                      "numberingSystem": {
                        "description": "Locale digit system, e.g. arab.",
                        "type": "string",
                        "minLength": 3,
                        "maxLength": 32
                      },
                      "missingValues": {
                        "description": "Missing tokens: N/A, NULL, -, —, #N/A.",
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      },
                      "trueValues": {
                        "description": "True tokens: true, yes, y, Evet, E.",
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      },
                      "falseValues": {
                        "description": "False tokens: false, no, n, Hayır, H.",
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      },
                      "selectColumns": {
                        "minItems": 1,
                        "maxItems": 16384,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 32767
                        }
                      },
                      "filePath": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 32768
                      },
                      "versionId": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      }
                    },
                    "required": [
                      "kind",
                      "filePath"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "records"
                      },
                      "sheetName": {
                        "description": "Sheet; default first visible.",
                        "type": "string"
                      },
                      "range": {
                        "description": "A1 range such as A1:H500, B:D or 2:40, including the header row. Defaults to the used range.",
                        "type": "string"
                      },
                      "table": {
                        "description": "XLSX table: data rows, not range.",
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      },
                      "visibleOnly": {
                        "description": "XLSX: skip hidden/AutoFilter rows.",
                        "type": "boolean"
                      },
                      "headerRow": {
                        "description": "Header row (0: none). Default: table/autofilter header, then first text header above data, else 1.",
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "columnMode": {
                        "description": "Column references: auto (default), header text or A1 letter.",
                        "type": "string",
                        "enum": [
                          "auto",
                          "header",
                          "letter"
                        ]
                      },
                      "caseSensitive": {
                        "description": "Case-sensitive text comparisons, default false. Applies to predicate bounds and min/max.",
                        "type": "boolean"
                      },
                      "columns": {
                        "description": "Readings {column,type,...}; reuse profile_sheet.",
                        "minItems": 1,
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "column": {
                              "type": "string",
                              "description": "Column."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "number",
                                "date",
                                "boolean",
                                "time",
                                "duration",
                                "text"
                              ],
                              "description": "Reading type."
                            },
                            "missingValues": {
                              "description": "Missing-text tokens.",
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            },
                            "decimal": {
                              "description": "Number decimal mark.",
                              "type": "string",
                              "enum": [
                                ".",
                                ","
                              ]
                            },
                            "group": {
                              "description": "Number group mark.",
                              "type": "string",
                              "enum": [
                                "none",
                                ".",
                                ",",
                                " ",
                                "'"
                              ]
                            },
                            "locale": {
                              "description": "Number/date locale.",
                              "type": "string",
                              "minLength": 2,
                              "maxLength": 64
                            },
                            "numberingSystem": {
                              "description": "Number digit system.",
                              "type": "string",
                              "minLength": 3,
                              "maxLength": 32
                            },
                            "identifiers": {
                              "description": "Number: read digit identifiers?",
                              "type": "string",
                              "enum": [
                                "refuse",
                                "read"
                              ]
                            },
                            "format": {
                              "description": "Date pattern, e.g. dd.MM.yyyy.",
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "order": {
                              "description": "Date order if no format.",
                              "type": "string",
                              "enum": [
                                "dmy",
                                "mdy"
                              ]
                            },
                            "trueValues": {
                              "description": "Boolean true tokens.",
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            },
                            "falseValues": {
                              "description": "Boolean false tokens.",
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            }
                          },
                          "required": [
                            "column",
                            "type"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "mergedCells": {
                        "description": "Merged values and header detection policy, default master.",
                        "type": "string",
                        "enum": [
                          "master",
                          "repeat"
                        ]
                      },
                      "delimiter": {
                        "description": "CSV separator; sniffed when omitted.",
                        "type": "string",
                        "enum": [
                          "comma",
                          "semicolon",
                          "tab",
                          "pipe"
                        ]
                      },
                      "encoding": {
                        "description": "CSV encoding; BOM or utf-8 when omitted.",
                        "type": "string",
                        "enum": [
                          "utf-8",
                          "utf-16le",
                          "utf-16be",
                          "windows-1254",
                          "iso-8859-9",
                          "windows-1252",
                          "windows-1251",
                          "windows-1256",
                          "shift_jis",
                          "gb18030",
                          "big5",
                          "euc-kr"
                        ]
                      },
                      "locale": {
                        "description": "BCP 47 locale: separators/month names, not date order.",
                        "type": "string",
                        "minLength": 2,
                        "maxLength": 64
                      },
                      "numberingSystem": {
                        "description": "Locale digit system, e.g. arab.",
                        "type": "string",
                        "minLength": 3,
                        "maxLength": 32
                      },
                      "missingValues": {
                        "description": "Missing tokens: N/A, NULL, -, —, #N/A.",
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      },
                      "trueValues": {
                        "description": "True tokens: true, yes, y, Evet, E.",
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      },
                      "falseValues": {
                        "description": "False tokens: false, no, n, Hayır, H.",
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      },
                      "selectColumns": {
                        "minItems": 1,
                        "maxItems": 16384,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 32767
                        }
                      },
                      "where": {
                        "maxItems": 16,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "column": {
                              "type": "string",
                              "description": "Column."
                            },
                            "op": {
                              "type": "string",
                              "enum": [
                                "eq",
                                "ne",
                                "lt",
                                "lte",
                                "gt",
                                "gte",
                                "contains",
                                "startsWith",
                                "endsWith",
                                "in",
                                "between",
                                "isEmpty",
                                "isNotEmpty",
                                "isError",
                                "isNumber",
                                "isText"
                              ]
                            },
                            "value": {
                              "description": "Operand.",
                              "type": [
                                "string",
                                "number",
                                "boolean"
                              ]
                            },
                            "values": {
                              "description": "Operands of in, or [low, high] of between.",
                              "minItems": 1,
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": [
                                  "string",
                                  "number",
                                  "boolean"
                                ]
                              }
                            }
                          },
                          "required": [
                            "column",
                            "op"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "match": {
                        "default": "all",
                        "type": "string",
                        "enum": [
                          "all",
                          "any"
                        ]
                      },
                      "scope": {
                        "default": {
                          "kind": "all"
                        },
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "all"
                              }
                            },
                            "required": [
                              "kind"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "rows"
                              },
                              "rows": {
                                "minItems": 1,
                                "maxItems": 10000,
                                "type": "array",
                                "items": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 1048576
                                }
                              }
                            },
                            "required": [
                              "kind",
                              "rows"
                            ],
                            "additionalProperties": false
                          }
                        ]
                      },
                      "includeHeaders": {
                        "default": true,
                        "type": "boolean"
                      },
                      "filePath": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 32768
                      },
                      "versionId": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      }
                    },
                    "required": [
                      "kind",
                      "filePath"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "aggregate"
                      },
                      "sheetName": {
                        "description": "Sheet; default first visible.",
                        "type": "string"
                      },
                      "range": {
                        "description": "A1 range such as A1:H500, B:D or 2:40, including the header row. Defaults to the used range.",
                        "type": "string"
                      },
                      "table": {
                        "description": "XLSX table: data rows, not range.",
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      },
                      "visibleOnly": {
                        "description": "XLSX: skip hidden/AutoFilter rows.",
                        "type": "boolean"
                      },
                      "headerRow": {
                        "description": "Header row (0: none). Default: table/autofilter header, then first text header above data, else 1.",
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "columnMode": {
                        "description": "Column references: auto (default), header text or A1 letter.",
                        "type": "string",
                        "enum": [
                          "auto",
                          "header",
                          "letter"
                        ]
                      },
                      "caseSensitive": {
                        "description": "Case-sensitive text comparisons, default false. Applies to predicate bounds and min/max.",
                        "type": "boolean"
                      },
                      "columns": {
                        "description": "Readings {column,type,...}; reuse profile_sheet.",
                        "minItems": 1,
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "column": {
                              "type": "string",
                              "description": "Column."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "number",
                                "date",
                                "boolean",
                                "time",
                                "duration",
                                "text"
                              ],
                              "description": "Reading type."
                            },
                            "missingValues": {
                              "description": "Missing-text tokens.",
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            },
                            "decimal": {
                              "description": "Number decimal mark.",
                              "type": "string",
                              "enum": [
                                ".",
                                ","
                              ]
                            },
                            "group": {
                              "description": "Number group mark.",
                              "type": "string",
                              "enum": [
                                "none",
                                ".",
                                ",",
                                " ",
                                "'"
                              ]
                            },
                            "locale": {
                              "description": "Number/date locale.",
                              "type": "string",
                              "minLength": 2,
                              "maxLength": 64
                            },
                            "numberingSystem": {
                              "description": "Number digit system.",
                              "type": "string",
                              "minLength": 3,
                              "maxLength": 32
                            },
                            "identifiers": {
                              "description": "Number: read digit identifiers?",
                              "type": "string",
                              "enum": [
                                "refuse",
                                "read"
                              ]
                            },
                            "format": {
                              "description": "Date pattern, e.g. dd.MM.yyyy.",
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "order": {
                              "description": "Date order if no format.",
                              "type": "string",
                              "enum": [
                                "dmy",
                                "mdy"
                              ]
                            },
                            "trueValues": {
                              "description": "Boolean true tokens.",
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            },
                            "falseValues": {
                              "description": "Boolean false tokens.",
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            }
                          },
                          "required": [
                            "column",
                            "type"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "mergedCells": {
                        "description": "Merged values and header detection policy, default master.",
                        "type": "string",
                        "enum": [
                          "master",
                          "repeat"
                        ]
                      },
                      "delimiter": {
                        "description": "CSV separator; sniffed when omitted.",
                        "type": "string",
                        "enum": [
                          "comma",
                          "semicolon",
                          "tab",
                          "pipe"
                        ]
                      },
                      "encoding": {
                        "description": "CSV encoding; BOM or utf-8 when omitted.",
                        "type": "string",
                        "enum": [
                          "utf-8",
                          "utf-16le",
                          "utf-16be",
                          "windows-1254",
                          "iso-8859-9",
                          "windows-1252",
                          "windows-1251",
                          "windows-1256",
                          "shift_jis",
                          "gb18030",
                          "big5",
                          "euc-kr"
                        ]
                      },
                      "locale": {
                        "description": "BCP 47 locale: separators/month names, not date order.",
                        "type": "string",
                        "minLength": 2,
                        "maxLength": 64
                      },
                      "numberingSystem": {
                        "description": "Locale digit system, e.g. arab.",
                        "type": "string",
                        "minLength": 3,
                        "maxLength": 32
                      },
                      "missingValues": {
                        "description": "Missing tokens: N/A, NULL, -, —, #N/A.",
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      },
                      "trueValues": {
                        "description": "True tokens: true, yes, y, Evet, E.",
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      },
                      "falseValues": {
                        "description": "False tokens: false, no, n, Hayır, H.",
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      },
                      "groupBy": {
                        "description": "Row grouping keys; omit for a whole-range total. Keys: column; {column,by} UTC part (month includes year, ISO week, Monday=1); {column,bins} or {column,width,origin?} for [lower,upper) bins.",
                        "maxItems": 8,
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "Column."
                            },
                            {
                              "type": "object",
                              "properties": {
                                "column": {
                                  "type": "string",
                                  "description": "Column."
                                },
                                "by": {
                                  "type": "string",
                                  "enum": [
                                    "year",
                                    "quarter",
                                    "month",
                                    "week",
                                    "day",
                                    "weekday",
                                    "hour"
                                  ]
                                }
                              },
                              "required": [
                                "column",
                                "by"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "column": {
                                  "type": "string",
                                  "description": "Column."
                                },
                                "bins": {
                                  "minItems": 1,
                                  "maxItems": 128,
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  }
                                }
                              },
                              "required": [
                                "column",
                                "bins"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "column": {
                                  "type": "string",
                                  "description": "Column."
                                },
                                "width": {
                                  "type": "number",
                                  "minimum": 5e-324
                                },
                                "origin": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "column",
                                "width"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        }
                      },
                      "orderBy": {
                        "description": "Sort by group key (default) or selected metric.",
                        "type": "string",
                        "enum": [
                          "group",
                          "metric"
                        ]
                      },
                      "orderByMetric": {
                        "description": "One-based index into metrics, default 1. Cannot exceed the actual metrics count.",
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 8
                      },
                      "descending": {
                        "description": "Descending sort, default false.",
                        "type": "boolean"
                      },
                      "metrics": {
                        "minItems": 1,
                        "maxItems": 8,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "fn": {
                              "type": "string",
                              "enum": [
                                "count",
                                "countValues",
                                "countDistinct",
                                "countTrue",
                                "countFalse",
                                "trueRatio",
                                "sum",
                                "avg",
                                "min",
                                "max",
                                "stddev",
                                "median",
                                "p50",
                                "p90",
                                "percentile"
                              ],
                              "description": "count counts matched rows including blank cells, regardless of column. countValues counts non-empty cells in column; countDistinct counts distinct values. trueRatio is true over valid booleans. Numeric functions read numeric text and skip identifiers; percentiles are PERCENTILE.INC; stddev is the sample deviation."
                            },
                            "column": {
                              "type": "string",
                              "description": "Column."
                            },
                            "percentile": {
                              "description": "Fraction 0 to 1, for fn percentile.",
                              "type": "number",
                              "minimum": 0,
                              "maximum": 1
                            },
                            "round": {
                              "description": "Decimal places, half away from zero as ROUND.",
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 10
                            },
                            "where": {
                              "maxItems": 16,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "column": {
                                    "type": "string",
                                    "description": "Column."
                                  },
                                  "op": {
                                    "type": "string",
                                    "enum": [
                                      "eq",
                                      "ne",
                                      "lt",
                                      "lte",
                                      "gt",
                                      "gte",
                                      "contains",
                                      "startsWith",
                                      "endsWith",
                                      "in",
                                      "between",
                                      "isEmpty",
                                      "isNotEmpty",
                                      "isError",
                                      "isNumber",
                                      "isText"
                                    ]
                                  },
                                  "value": {
                                    "description": "Operand.",
                                    "type": [
                                      "string",
                                      "number",
                                      "boolean"
                                    ]
                                  },
                                  "values": {
                                    "description": "Operands of in, or [low, high] of between.",
                                    "minItems": 1,
                                    "maxItems": 64,
                                    "type": "array",
                                    "items": {
                                      "type": [
                                        "string",
                                        "number",
                                        "boolean"
                                      ]
                                    }
                                  }
                                },
                                "required": [
                                  "column",
                                  "op"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "fn"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "where": {
                        "maxItems": 16,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "column": {
                              "type": "string",
                              "description": "Column."
                            },
                            "op": {
                              "type": "string",
                              "enum": [
                                "eq",
                                "ne",
                                "lt",
                                "lte",
                                "gt",
                                "gte",
                                "contains",
                                "startsWith",
                                "endsWith",
                                "in",
                                "between",
                                "isEmpty",
                                "isNotEmpty",
                                "isError",
                                "isNumber",
                                "isText"
                              ]
                            },
                            "value": {
                              "description": "Operand.",
                              "type": [
                                "string",
                                "number",
                                "boolean"
                              ]
                            },
                            "values": {
                              "description": "Operands of in, or [low, high] of between.",
                              "minItems": 1,
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": [
                                  "string",
                                  "number",
                                  "boolean"
                                ]
                              }
                            }
                          },
                          "required": [
                            "column",
                            "op"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "match": {
                        "default": "all",
                        "type": "string",
                        "enum": [
                          "all",
                          "any"
                        ]
                      },
                      "filePath": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 32768
                      },
                      "versionId": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      }
                    },
                    "required": [
                      "kind",
                      "metrics",
                      "filePath"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "result"
                      },
                      "resultId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128,
                        "description": "Opaque identifier from this server instance."
                      },
                      "columns": {
                        "description": "One-based original result columns in output order; default all.",
                        "minItems": 1,
                        "maxItems": 10012,
                        "type": "array",
                        "items": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 10012
                        }
                      },
                      "where": {
                        "description": "AND equality over every retained row.",
                        "maxItems": 16,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "column": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 10012,
                              "description": "One-based original column, before projection."
                            },
                            "equals": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 4096
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Exact scalar; no coercion or text normalization."
                            }
                          },
                          "required": [
                            "column",
                            "equals"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "offset": {
                        "description": "Zero-based offset among matches; default 0, then nextOffset.",
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 100000
                      },
                      "maxRows": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100000
                      },
                      "includeHeaders": {
                        "default": true,
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "kind",
                      "resultId"
                    ],
                    "additionalProperties": false
                  }
                ],
                "type": "object"
              },
              "header": {
                "minItems": 1,
                "maxItems": 16384,
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 32767
                }
              }
            },
            "required": [
              "startCell",
              "kind",
              "sheetName"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "protect_sheet"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "password": {
                "type": "string",
                "minLength": 1,
                "maxLength": 15,
                "pattern": "^[\\x20-\\x7e]+$"
              },
              "selectLocked": {
                "default": true,
                "type": "boolean"
              },
              "selectUnlocked": {
                "default": true,
                "type": "boolean"
              }
            },
            "required": [
              "kind",
              "sheetName"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "unprotect_sheet"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "password": {
                "type": "string",
                "minLength": 1,
                "maxLength": 15,
                "pattern": "^[\\x20-\\x7e]+$"
              }
            },
            "required": [
              "kind",
              "sheetName"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "protect_workbook"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "password": {
                "type": "string",
                "minLength": 1,
                "maxLength": 15,
                "pattern": "^[\\x20-\\x7e]+$"
              }
            },
            "required": [
              "kind",
              "sheetName"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "unprotect_workbook"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "password": {
                "type": "string",
                "minLength": 1,
                "maxLength": 15,
                "pattern": "^[\\x20-\\x7e]+$"
              }
            },
            "required": [
              "kind",
              "sheetName"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "set_pivot"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255,
                "pattern": "^[\\p{L}_\\\\][\\p{L}\\p{N}_.\\\\]*$"
              },
              "cell": {
                "type": "string",
                "maxLength": 21,
                "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
              },
              "sourceSheet": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "sourceRange": {
                "type": "string",
                "maxLength": 21,
                "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
              },
              "rowColumn": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "measures": {
                "minItems": 1,
                "maxItems": 8,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "column": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255
                    },
                    "function": {
                      "type": "string",
                      "enum": [
                        "sum",
                        "count",
                        "min",
                        "max"
                      ]
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255
                    }
                  },
                  "required": [
                    "column",
                    "function",
                    "name"
                  ],
                  "additionalProperties": false
                }
              },
              "overwrite": {
                "default": false,
                "type": "boolean"
              }
            },
            "required": [
              "kind",
              "sheetName",
              "name",
              "cell",
              "sourceSheet",
              "sourceRange",
              "rowColumn",
              "measures"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "set_chart"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "chartType": {
                "type": "string",
                "enum": [
                  "column",
                  "bar",
                  "line",
                  "pie"
                ]
              },
              "title": {
                "default": "",
                "type": "string",
                "maxLength": 255
              },
              "cell": {
                "type": "string",
                "maxLength": 21,
                "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
              },
              "width": {
                "default": 640,
                "type": "integer",
                "minimum": 100,
                "maximum": 2000
              },
              "height": {
                "default": 360,
                "type": "integer",
                "minimum": 100,
                "maximum": 2000
              },
              "series": {
                "minItems": 1,
                "maxItems": 16,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255
                    },
                    "sheetName": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 31
                    },
                    "categories": {
                      "type": "string",
                      "maxLength": 21,
                      "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
                    },
                    "values": {
                      "type": "string",
                      "maxLength": 21,
                      "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
                    }
                  },
                  "required": [
                    "name",
                    "sheetName",
                    "categories",
                    "values"
                  ],
                  "additionalProperties": false
                }
              },
              "overwrite": {
                "default": false,
                "type": "boolean"
              }
            },
            "required": [
              "kind",
              "sheetName",
              "name",
              "chartType",
              "cell",
              "series"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "remove_chart"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              }
            },
            "required": [
              "kind",
              "sheetName",
              "name"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "set_hyperlink"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "cell": {
                "type": "string",
                "maxLength": 21,
                "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
              },
              "target": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "internal"
                      },
                      "location": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 1024
                      }
                    },
                    "required": [
                      "kind",
                      "location"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "external"
                      },
                      "url": {
                        "type": "string",
                        "maxLength": 2048,
                        "format": "uri"
                      }
                    },
                    "required": [
                      "kind",
                      "url"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "tooltip": {
                "type": "string",
                "maxLength": 255
              },
              "display": {
                "type": "string",
                "maxLength": 32767
              },
              "overwrite": {
                "default": false,
                "type": "boolean"
              }
            },
            "required": [
              "kind",
              "sheetName",
              "cell",
              "target"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "remove_hyperlink"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "cell": {
                "type": "string",
                "maxLength": 21,
                "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
              }
            },
            "required": [
              "kind",
              "sheetName",
              "cell"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "set_note"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "cell": {
                "type": "string",
                "maxLength": 21,
                "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
              },
              "text": {
                "type": "string",
                "maxLength": 32767
              },
              "author": {
                "default": "Author",
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "overwrite": {
                "default": false,
                "type": "boolean"
              }
            },
            "required": [
              "kind",
              "sheetName",
              "cell",
              "text"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "remove_note"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "cell": {
                "type": "string",
                "maxLength": 21,
                "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
              }
            },
            "required": [
              "kind",
              "sheetName",
              "cell"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "set_image"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "cell": {
                "type": "string",
                "maxLength": 21,
                "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
              },
              "mime": {
                "type": "string",
                "enum": [
                  "image/png",
                  "image/jpeg"
                ]
              },
              "data": {
                "type": "string",
                "minLength": 4,
                "maxLength": 7000000
              },
              "width": {
                "type": "integer",
                "minimum": 1,
                "maximum": 10000
              },
              "height": {
                "type": "integer",
                "minimum": 1,
                "maximum": 10000
              },
              "overwrite": {
                "default": false,
                "type": "boolean"
              }
            },
            "required": [
              "kind",
              "sheetName",
              "name",
              "cell",
              "mime",
              "data",
              "width",
              "height"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "remove_image"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              }
            },
            "required": [
              "kind",
              "sheetName",
              "name"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "set_validation"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "range": {
                "type": "string",
                "maxLength": 21,
                "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
              },
              "rule": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "const": "list"
                      },
                      "items": {
                        "minItems": 1,
                        "maxItems": 128,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        }
                      }
                    },
                    "required": [
                      "type",
                      "items"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "const": "whole"
                      },
                      "operator": {
                        "type": "string",
                        "enum": [
                          "between",
                          "notBetween",
                          "equal",
                          "notEqual",
                          "greaterThan",
                          "lessThan",
                          "greaterThanOrEqual",
                          "lessThanOrEqual"
                        ]
                      },
                      "bounds": {
                        "minItems": 1,
                        "maxItems": 2,
                        "type": "array",
                        "items": {
                          "type": "number"
                        }
                      }
                    },
                    "required": [
                      "type",
                      "operator",
                      "bounds"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "const": "decimal"
                      },
                      "operator": {
                        "type": "string",
                        "enum": [
                          "between",
                          "notBetween",
                          "equal",
                          "notEqual",
                          "greaterThan",
                          "lessThan",
                          "greaterThanOrEqual",
                          "lessThanOrEqual"
                        ]
                      },
                      "bounds": {
                        "minItems": 1,
                        "maxItems": 2,
                        "type": "array",
                        "items": {
                          "type": "number"
                        }
                      }
                    },
                    "required": [
                      "type",
                      "operator",
                      "bounds"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "const": "date"
                      },
                      "operator": {
                        "type": "string",
                        "enum": [
                          "between",
                          "notBetween",
                          "equal",
                          "notEqual",
                          "greaterThan",
                          "lessThan",
                          "greaterThanOrEqual",
                          "lessThanOrEqual"
                        ]
                      },
                      "bounds": {
                        "minItems": 1,
                        "maxItems": 2,
                        "type": "array",
                        "items": {
                          "type": "number"
                        }
                      }
                    },
                    "required": [
                      "type",
                      "operator",
                      "bounds"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "const": "textLength"
                      },
                      "operator": {
                        "type": "string",
                        "enum": [
                          "between",
                          "notBetween",
                          "equal",
                          "notEqual",
                          "greaterThan",
                          "lessThan",
                          "greaterThanOrEqual",
                          "lessThanOrEqual"
                        ]
                      },
                      "bounds": {
                        "minItems": 1,
                        "maxItems": 2,
                        "type": "array",
                        "items": {
                          "type": "number"
                        }
                      }
                    },
                    "required": [
                      "type",
                      "operator",
                      "bounds"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "const": "custom"
                      },
                      "formula": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 8192
                      }
                    },
                    "required": [
                      "type",
                      "formula"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "allowBlank": {
                "default": false,
                "type": "boolean"
              },
              "errorStyle": {
                "default": "stop",
                "type": "string",
                "enum": [
                  "stop",
                  "warning",
                  "information"
                ]
              },
              "errorTitle": {
                "type": "string",
                "maxLength": 32
              },
              "error": {
                "type": "string",
                "maxLength": 225
              },
              "promptTitle": {
                "type": "string",
                "maxLength": 32
              },
              "prompt": {
                "type": "string",
                "maxLength": 255
              },
              "overwrite": {
                "default": false,
                "type": "boolean"
              }
            },
            "required": [
              "kind",
              "sheetName",
              "range",
              "rule"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "remove_validation"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "range": {
                "type": "string",
                "maxLength": 21,
                "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
              },
              "ranges": {
                "minItems": 1,
                "maxItems": 64,
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 21,
                  "pattern": "^(?:[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?|[A-Za-z]{1,3}:[A-Za-z]{1,3}|[1-9][0-9]{0,6}:[1-9][0-9]{0,6})$"
                }
              }
            },
            "required": [
              "kind",
              "sheetName"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "set_conditional_format"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "range": {
                "type": "string",
                "maxLength": 21,
                "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
              },
              "priority": {
                "type": "integer",
                "minimum": 1,
                "maximum": 4096
              },
              "rule": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "const": "cellIs"
                      },
                      "operator": {
                        "type": "string",
                        "enum": [
                          "between",
                          "notBetween",
                          "equal",
                          "notEqual",
                          "greaterThan",
                          "lessThan",
                          "greaterThanOrEqual",
                          "lessThanOrEqual"
                        ]
                      },
                      "formulas": {
                        "minItems": 1,
                        "maxItems": 2,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 8192
                        }
                      }
                    },
                    "required": [
                      "type",
                      "operator",
                      "formulas"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "const": "expression"
                      },
                      "formula": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 8192
                      }
                    },
                    "required": [
                      "type",
                      "formula"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "appearance": {
                "type": "object",
                "properties": {
                  "font": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          },
                          "size": {
                            "type": "number",
                            "minimum": 1,
                            "maximum": 409
                          },
                          "bold": {
                            "type": "boolean"
                          },
                          "italic": {
                            "type": "boolean"
                          },
                          "underline": {
                            "type": "boolean"
                          },
                          "strike": {
                            "type": "boolean"
                          },
                          "color": {
                            "type": "string",
                            "pattern": "^[0-9A-Fa-f]{6}(?:[0-9A-Fa-f]{2})?$"
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "fill": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[0-9A-Fa-f]{6}(?:[0-9A-Fa-f]{2})?$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              "stopIfTrue": {
                "default": false,
                "type": "boolean"
              },
              "overwrite": {
                "default": false,
                "type": "boolean"
              }
            },
            "required": [
              "kind",
              "sheetName",
              "range",
              "priority",
              "rule",
              "appearance"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "remove_conditional_format"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "priority": {
                "type": "integer",
                "minimum": 1,
                "maximum": 4096
              }
            },
            "required": [
              "kind",
              "sheetName",
              "priority"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "define_name"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255,
                "pattern": "^[\\p{L}_\\\\][\\p{L}\\p{N}_.\\\\]*$"
              },
              "scope": {
                "default": "workbook",
                "type": "string",
                "enum": [
                  "workbook",
                  "sheet"
                ]
              },
              "range": {
                "type": "string",
                "maxLength": 21,
                "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
              },
              "overwrite": {
                "default": false,
                "type": "boolean"
              }
            },
            "required": [
              "kind",
              "sheetName",
              "name",
              "range"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "delete_name"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255,
                "pattern": "^[\\p{L}_\\\\][\\p{L}\\p{N}_.\\\\]*$"
              },
              "scope": {
                "default": "workbook",
                "type": "string",
                "enum": [
                  "workbook",
                  "sheet"
                ]
              }
            },
            "required": [
              "kind",
              "sheetName",
              "name"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "write_named_range"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255,
                "pattern": "^[\\p{L}_\\\\][\\p{L}\\p{N}_.\\\\]*$"
              },
              "scope": {
                "default": "workbook",
                "type": "string",
                "enum": [
                  "workbook",
                  "sheet"
                ]
              },
              "values": {
                "minItems": 1,
                "maxItems": 1048576,
                "type": "array",
                "items": {
                  "minItems": 1,
                  "maxItems": 16384,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "enum": [
                          "text",
                          "number",
                          "boolean",
                          "blank",
                          "date",
                          "datetime"
                        ]
                      },
                      "value": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 32767
                          },
                          {
                            "type": "number"
                          },
                          {
                            "type": "boolean"
                          }
                        ]
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "overwrite": {
                "default": false,
                "type": "boolean"
              }
            },
            "required": [
              "kind",
              "sheetName",
              "name",
              "values"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "format_cells"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "range": {
                "type": "string",
                "maxLength": 21,
                "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
              },
              "style": {
                "type": "object",
                "properties": {
                  "numberFormat": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "font": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          },
                          "size": {
                            "type": "number",
                            "minimum": 1,
                            "maximum": 409
                          },
                          "bold": {
                            "type": "boolean"
                          },
                          "italic": {
                            "type": "boolean"
                          },
                          "underline": {
                            "type": "boolean"
                          },
                          "strike": {
                            "type": "boolean"
                          },
                          "color": {
                            "type": "string",
                            "pattern": "^[0-9A-Fa-f]{6}(?:[0-9A-Fa-f]{2})?$"
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "fill": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[0-9A-Fa-f]{6}(?:[0-9A-Fa-f]{2})?$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "border": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "left": {
                            "type": "object",
                            "properties": {
                              "style": {
                                "type": "string",
                                "enum": [
                                  "thin",
                                  "medium",
                                  "thick",
                                  "dashed",
                                  "dotted",
                                  "double",
                                  "hair",
                                  "none"
                                ]
                              },
                              "color": {
                                "type": "string",
                                "pattern": "^[0-9A-Fa-f]{6}(?:[0-9A-Fa-f]{2})?$"
                              }
                            },
                            "required": [
                              "style"
                            ],
                            "additionalProperties": false
                          },
                          "right": {
                            "type": "object",
                            "properties": {
                              "style": {
                                "type": "string",
                                "enum": [
                                  "thin",
                                  "medium",
                                  "thick",
                                  "dashed",
                                  "dotted",
                                  "double",
                                  "hair",
                                  "none"
                                ]
                              },
                              "color": {
                                "type": "string",
                                "pattern": "^[0-9A-Fa-f]{6}(?:[0-9A-Fa-f]{2})?$"
                              }
                            },
                            "required": [
                              "style"
                            ],
                            "additionalProperties": false
                          },
                          "top": {
                            "type": "object",
                            "properties": {
                              "style": {
                                "type": "string",
                                "enum": [
                                  "thin",
                                  "medium",
                                  "thick",
                                  "dashed",
                                  "dotted",
                                  "double",
                                  "hair",
                                  "none"
                                ]
                              },
                              "color": {
                                "type": "string",
                                "pattern": "^[0-9A-Fa-f]{6}(?:[0-9A-Fa-f]{2})?$"
                              }
                            },
                            "required": [
                              "style"
                            ],
                            "additionalProperties": false
                          },
                          "bottom": {
                            "type": "object",
                            "properties": {
                              "style": {
                                "type": "string",
                                "enum": [
                                  "thin",
                                  "medium",
                                  "thick",
                                  "dashed",
                                  "dotted",
                                  "double",
                                  "hair",
                                  "none"
                                ]
                              },
                              "color": {
                                "type": "string",
                                "pattern": "^[0-9A-Fa-f]{6}(?:[0-9A-Fa-f]{2})?$"
                              }
                            },
                            "required": [
                              "style"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "alignment": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "horizontal": {
                            "type": "string",
                            "enum": [
                              "general",
                              "left",
                              "center",
                              "right",
                              "fill",
                              "justify",
                              "centerContinuous",
                              "distributed"
                            ]
                          },
                          "vertical": {
                            "type": "string",
                            "enum": [
                              "top",
                              "center",
                              "bottom",
                              "justify",
                              "distributed"
                            ]
                          },
                          "wrapText": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "protection": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "locked": {
                            "type": "boolean"
                          },
                          "hidden": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              }
            },
            "required": [
              "kind",
              "sheetName",
              "range",
              "style"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "set_columns"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "first": {
                "type": "integer",
                "minimum": 1,
                "maximum": 16384
              },
              "last": {
                "type": "integer",
                "minimum": 1,
                "maximum": 16384
              },
              "width": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 255
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "hidden": {
                "type": "boolean"
              }
            },
            "required": [
              "kind",
              "sheetName",
              "first",
              "last"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "set_rows"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "first": {
                "type": "integer",
                "minimum": 1,
                "maximum": 1048576
              },
              "last": {
                "type": "integer",
                "minimum": 1,
                "maximum": 1048576
              },
              "height": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 409
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "hidden": {
                "type": "boolean"
              }
            },
            "required": [
              "kind",
              "sheetName",
              "first",
              "last"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "freeze_panes"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "rows": {
                "type": "integer",
                "minimum": 0,
                "maximum": 1048575
              },
              "columns": {
                "type": "integer",
                "minimum": 0,
                "maximum": 16383
              }
            },
            "required": [
              "kind",
              "sheetName",
              "rows",
              "columns"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "set_sheet_visibility"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "state": {
                "type": "string",
                "enum": [
                  "visible",
                  "hidden",
                  "veryHidden"
                ]
              }
            },
            "required": [
              "kind",
              "sheetName",
              "state"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "set_print_layout"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "orientation": {
                "type": "string",
                "enum": [
                  "portrait",
                  "landscape"
                ]
              },
              "paper": {
                "type": "string",
                "enum": [
                  "A4",
                  "letter",
                  "legal"
                ]
              },
              "margins": {
                "type": "object",
                "properties": {
                  "left": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 10
                  },
                  "right": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 10
                  },
                  "top": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 10
                  },
                  "bottom": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 10
                  },
                  "header": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 10
                  },
                  "footer": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 10
                  }
                },
                "required": [
                  "left",
                  "right",
                  "top",
                  "bottom",
                  "header",
                  "footer"
                ],
                "additionalProperties": false
              },
              "fitWidth": {
                "type": "integer",
                "minimum": 0,
                "maximum": 32767
              },
              "fitHeight": {
                "type": "integer",
                "minimum": 0,
                "maximum": 32767
              },
              "scale": {
                "type": "integer",
                "minimum": 10,
                "maximum": 400
              },
              "printArea": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 21,
                    "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "titleRows": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "first": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 1048576
                      },
                      "last": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 1048576
                      }
                    },
                    "required": [
                      "first",
                      "last"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "titleColumns": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "first": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 16384
                      },
                      "last": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 16384
                      }
                    },
                    "required": [
                      "first",
                      "last"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "kind",
              "sheetName"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "merge_cells"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "range": {
                "type": "string",
                "maxLength": 21,
                "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
              },
              "loss": {
                "default": "reject",
                "type": "string",
                "enum": [
                  "reject",
                  "discard_non_anchor"
                ]
              }
            },
            "required": [
              "kind",
              "sheetName",
              "range"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "unmerge_cells"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "range": {
                "type": "string",
                "maxLength": 21,
                "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
              }
            },
            "required": [
              "kind",
              "sheetName",
              "range"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "write_formula"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "cell": {
                "type": "string",
                "maxLength": 21,
                "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
              },
              "formula": {
                "type": "string",
                "minLength": 1,
                "maxLength": 8192
              },
              "overwrite": {
                "default": false,
                "type": "boolean"
              }
            },
            "required": [
              "kind",
              "sheetName",
              "cell",
              "formula"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "fill_formula"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "anchor": {
                "type": "string",
                "maxLength": 21,
                "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
              },
              "range": {
                "type": "string",
                "maxLength": 21,
                "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
              },
              "formula": {
                "type": "string",
                "minLength": 1,
                "maxLength": 8192
              },
              "overwrite": {
                "default": false,
                "type": "boolean"
              }
            },
            "required": [
              "kind",
              "sheetName",
              "anchor",
              "range",
              "formula"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "create_table"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "range": {
                "type": "string",
                "maxLength": 21,
                "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255,
                "pattern": "^[\\p{L}_\\\\][\\p{L}\\p{N}_.\\\\]*$"
              },
              "style": {
                "default": "SezzleeBlue",
                "type": "string",
                "enum": [
                  "SezzleeBlue",
                  "none"
                ]
              },
              "filter": {
                "default": true,
                "type": "boolean"
              },
              "totals": {
                "maxItems": 1024,
                "type": "array",
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "label"
                        },
                        "column": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "text": {
                          "type": "string",
                          "maxLength": 255
                        }
                      },
                      "required": [
                        "kind",
                        "column",
                        "text"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "function"
                        },
                        "column": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "function": {
                          "type": "string",
                          "enum": [
                            "sum",
                            "average",
                            "count",
                            "countNums",
                            "min",
                            "max",
                            "stdDev",
                            "var"
                          ]
                        }
                      },
                      "required": [
                        "kind",
                        "column",
                        "function"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "formula"
                        },
                        "column": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "formula": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 8192
                        }
                      },
                      "required": [
                        "kind",
                        "column",
                        "formula"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "calculatedColumns": {
                "maxItems": 1024,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "column": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255
                    },
                    "formula": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 8192
                    }
                  },
                  "required": [
                    "column",
                    "formula"
                  ],
                  "additionalProperties": false
                }
              },
              "overwrite": {
                "default": false,
                "type": "boolean"
              }
            },
            "required": [
              "kind",
              "sheetName",
              "range",
              "name"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "edit_table"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "tableName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255,
                "pattern": "^[\\p{L}_\\\\][\\p{L}\\p{N}_.\\\\]*$"
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255,
                "pattern": "^[\\p{L}_\\\\][\\p{L}\\p{N}_.\\\\]*$"
              },
              "range": {
                "type": "string",
                "maxLength": 21,
                "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
              },
              "columns": {
                "maxItems": 1024,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "column": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255
                    }
                  },
                  "required": [
                    "column",
                    "name"
                  ],
                  "additionalProperties": false
                }
              },
              "totals": {
                "anyOf": [
                  {
                    "maxItems": 1024,
                    "type": "array",
                    "items": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "label"
                            },
                            "column": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "text": {
                              "type": "string",
                              "maxLength": 255
                            }
                          },
                          "required": [
                            "kind",
                            "column",
                            "text"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "function"
                            },
                            "column": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "function": {
                              "type": "string",
                              "enum": [
                                "sum",
                                "average",
                                "count",
                                "countNums",
                                "min",
                                "max",
                                "stdDev",
                                "var"
                              ]
                            }
                          },
                          "required": [
                            "kind",
                            "column",
                            "function"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "formula"
                            },
                            "column": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "formula": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 8192
                            }
                          },
                          "required": [
                            "kind",
                            "column",
                            "formula"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "style": {
                "type": "string",
                "enum": [
                  "SezzleeBlue",
                  "none"
                ]
              },
              "filter": {
                "type": "boolean"
              },
              "calculatedColumns": {
                "maxItems": 1024,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "column": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255
                    },
                    "formula": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 8192
                    }
                  },
                  "required": [
                    "column",
                    "formula"
                  ],
                  "additionalProperties": false
                }
              },
              "clearRemovedValues": {
                "default": false,
                "type": "boolean"
              },
              "overwrite": {
                "default": false,
                "type": "boolean"
              }
            },
            "required": [
              "kind",
              "sheetName",
              "tableName"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "convert_table"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "tableName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255,
                "pattern": "^[\\p{L}_\\\\][\\p{L}\\p{N}_.\\\\]*$"
              }
            },
            "required": [
              "kind",
              "sheetName",
              "tableName"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "clear_contents"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "range": {
                "type": "string",
                "minLength": 2,
                "maxLength": 21,
                "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
              }
            },
            "required": [
              "kind",
              "sheetName",
              "range"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "rename_sheet"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              }
            },
            "required": [
              "kind",
              "sheetName",
              "name"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "reorder_sheet"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "position": {
                "type": "integer",
                "minimum": 1,
                "maximum": 64
              }
            },
            "required": [
              "kind",
              "sheetName",
              "position"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "delete_sheet"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              }
            },
            "required": [
              "kind",
              "sheetName"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "copy_sheet"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "mode": {
                "type": "string",
                "enum": [
                  "values",
                  "formulas",
                  "formatting",
                  "all"
                ]
              },
              "from": {
                "type": "object",
                "properties": {
                  "filePath": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 32768
                  },
                  "versionId": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  }
                },
                "required": [
                  "filePath",
                  "versionId"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "kind",
              "sheetName",
              "name",
              "mode"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "copy_range"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "range": {
                "type": "string",
                "minLength": 2,
                "maxLength": 21,
                "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
              },
              "targetSheet": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "startCell": {
                "type": "string",
                "minLength": 2,
                "maxLength": 10
              },
              "mode": {
                "type": "string",
                "enum": [
                  "values",
                  "formulas",
                  "formatting",
                  "all"
                ]
              },
              "overwrite": {
                "default": false,
                "type": "boolean"
              },
              "from": {
                "type": "object",
                "properties": {
                  "filePath": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 32768
                  },
                  "versionId": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  }
                },
                "required": [
                  "filePath",
                  "versionId"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "kind",
              "sheetName",
              "range",
              "targetSheet",
              "startCell",
              "mode"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "move_range"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "range": {
                "type": "string",
                "minLength": 2,
                "maxLength": 21,
                "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
              },
              "targetSheet": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "startCell": {
                "type": "string",
                "minLength": 2,
                "maxLength": 10
              },
              "overwrite": {
                "default": false,
                "type": "boolean"
              }
            },
            "required": [
              "kind",
              "sheetName",
              "range",
              "targetSheet",
              "startCell"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "insert_rows"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "at": {
                "type": "integer",
                "minimum": 1,
                "maximum": 1048576
              },
              "count": {
                "type": "integer",
                "minimum": 1,
                "maximum": 1000000
              },
              "startColumn": {
                "type": "string",
                "pattern": "^[A-Za-z]{1,3}$"
              },
              "values": {
                "minItems": 1,
                "maxItems": 1000000,
                "type": "array",
                "items": {
                  "minItems": 1,
                  "maxItems": 16384,
                  "type": "array",
                  "items": {
                    "oneOf": [
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "text"
                          },
                          "value": {
                            "type": "string",
                            "maxLength": 32767
                          }
                        },
                        "required": [
                          "kind",
                          "value"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "number"
                          },
                          "value": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "kind",
                          "value"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "boolean"
                          },
                          "value": {
                            "type": "boolean"
                          }
                        },
                        "required": [
                          "kind",
                          "value"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "blank"
                          }
                        },
                        "required": [
                          "kind"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "date"
                          },
                          "value": {
                            "type": "string",
                            "minLength": 10,
                            "format": "date",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                          }
                        },
                        "required": [
                          "kind",
                          "value"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "datetime"
                          },
                          "value": {
                            "type": "string",
                            "allOf": [
                              {
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z)|(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?)$"
                              },
                              {
                                "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?$"
                              }
                            ]
                          }
                        },
                        "required": [
                          "kind",
                          "value"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string",
                            "const": "formula"
                          },
                          "formula": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 8192
                          }
                        },
                        "required": [
                          "kind",
                          "formula"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  }
                }
              },
              "source": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "range"
                      },
                      "sheetName": {
                        "description": "Sheet; default first visible.",
                        "type": "string"
                      },
                      "range": {
                        "description": "A1 range such as A1:H500, B:D or 2:40, including the header row. Defaults to the used range.",
                        "type": "string"
                      },
                      "table": {
                        "description": "XLSX table: data rows, not range.",
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      },
                      "visibleOnly": {
                        "description": "XLSX: skip hidden/AutoFilter rows.",
                        "type": "boolean"
                      },
                      "headerRow": {
                        "description": "Header row (0: none). Default: table/autofilter header, then first text header above data, else 1.",
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "columnMode": {
                        "description": "Column references: auto (default), header text or A1 letter.",
                        "type": "string",
                        "enum": [
                          "auto",
                          "header",
                          "letter"
                        ]
                      },
                      "caseSensitive": {
                        "description": "Case-sensitive text comparisons, default false. Applies to predicate bounds and min/max.",
                        "type": "boolean"
                      },
                      "columns": {
                        "description": "Readings {column,type,...}; reuse profile_sheet.",
                        "minItems": 1,
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "column": {
                              "type": "string",
                              "description": "Column."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "number",
                                "date",
                                "boolean",
                                "time",
                                "duration",
                                "text"
                              ],
                              "description": "Reading type."
                            },
                            "missingValues": {
                              "description": "Missing-text tokens.",
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            },
                            "decimal": {
                              "description": "Number decimal mark.",
                              "type": "string",
                              "enum": [
                                ".",
                                ","
                              ]
                            },
                            "group": {
                              "description": "Number group mark.",
                              "type": "string",
                              "enum": [
                                "none",
                                ".",
                                ",",
                                " ",
                                "'"
                              ]
                            },
                            "locale": {
                              "description": "Number/date locale.",
                              "type": "string",
                              "minLength": 2,
                              "maxLength": 64
                            },
                            "numberingSystem": {
                              "description": "Number digit system.",
                              "type": "string",
                              "minLength": 3,
                              "maxLength": 32
                            },
                            "identifiers": {
                              "description": "Number: read digit identifiers?",
                              "type": "string",
                              "enum": [
                                "refuse",
                                "read"
                              ]
                            },
                            "format": {
                              "description": "Date pattern, e.g. dd.MM.yyyy.",
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "order": {
                              "description": "Date order if no format.",
                              "type": "string",
                              "enum": [
                                "dmy",
                                "mdy"
                              ]
                            },
                            "trueValues": {
                              "description": "Boolean true tokens.",
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            },
                            "falseValues": {
                              "description": "Boolean false tokens.",
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            }
                          },
                          "required": [
                            "column",
                            "type"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "mergedCells": {
                        "description": "Merged values and header detection policy, default master.",
                        "type": "string",
                        "enum": [
                          "master",
                          "repeat"
                        ]
                      },
                      "delimiter": {
                        "description": "CSV separator; sniffed when omitted.",
                        "type": "string",
                        "enum": [
                          "comma",
                          "semicolon",
                          "tab",
                          "pipe"
                        ]
                      },
                      "encoding": {
                        "description": "CSV encoding; BOM or utf-8 when omitted.",
                        "type": "string",
                        "enum": [
                          "utf-8",
                          "utf-16le",
                          "utf-16be",
                          "windows-1254",
                          "iso-8859-9",
                          "windows-1252",
                          "windows-1251",
                          "windows-1256",
                          "shift_jis",
                          "gb18030",
                          "big5",
                          "euc-kr"
                        ]
                      },
                      "locale": {
                        "description": "BCP 47 locale: separators/month names, not date order.",
                        "type": "string",
                        "minLength": 2,
                        "maxLength": 64
                      },
                      "numberingSystem": {
                        "description": "Locale digit system, e.g. arab.",
                        "type": "string",
                        "minLength": 3,
                        "maxLength": 32
                      },
                      "missingValues": {
                        "description": "Missing tokens: N/A, NULL, -, —, #N/A.",
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      },
                      "trueValues": {
                        "description": "True tokens: true, yes, y, Evet, E.",
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      },
                      "falseValues": {
                        "description": "False tokens: false, no, n, Hayır, H.",
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      },
                      "selectColumns": {
                        "minItems": 1,
                        "maxItems": 16384,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 32767
                        }
                      },
                      "filePath": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 32768
                      },
                      "versionId": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      }
                    },
                    "required": [
                      "kind",
                      "filePath"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "records"
                      },
                      "sheetName": {
                        "description": "Sheet; default first visible.",
                        "type": "string"
                      },
                      "range": {
                        "description": "A1 range such as A1:H500, B:D or 2:40, including the header row. Defaults to the used range.",
                        "type": "string"
                      },
                      "table": {
                        "description": "XLSX table: data rows, not range.",
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      },
                      "visibleOnly": {
                        "description": "XLSX: skip hidden/AutoFilter rows.",
                        "type": "boolean"
                      },
                      "headerRow": {
                        "description": "Header row (0: none). Default: table/autofilter header, then first text header above data, else 1.",
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "columnMode": {
                        "description": "Column references: auto (default), header text or A1 letter.",
                        "type": "string",
                        "enum": [
                          "auto",
                          "header",
                          "letter"
                        ]
                      },
                      "caseSensitive": {
                        "description": "Case-sensitive text comparisons, default false. Applies to predicate bounds and min/max.",
                        "type": "boolean"
                      },
                      "columns": {
                        "description": "Readings {column,type,...}; reuse profile_sheet.",
                        "minItems": 1,
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "column": {
                              "type": "string",
                              "description": "Column."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "number",
                                "date",
                                "boolean",
                                "time",
                                "duration",
                                "text"
                              ],
                              "description": "Reading type."
                            },
                            "missingValues": {
                              "description": "Missing-text tokens.",
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            },
                            "decimal": {
                              "description": "Number decimal mark.",
                              "type": "string",
                              "enum": [
                                ".",
                                ","
                              ]
                            },
                            "group": {
                              "description": "Number group mark.",
                              "type": "string",
                              "enum": [
                                "none",
                                ".",
                                ",",
                                " ",
                                "'"
                              ]
                            },
                            "locale": {
                              "description": "Number/date locale.",
                              "type": "string",
                              "minLength": 2,
                              "maxLength": 64
                            },
                            "numberingSystem": {
                              "description": "Number digit system.",
                              "type": "string",
                              "minLength": 3,
                              "maxLength": 32
                            },
                            "identifiers": {
                              "description": "Number: read digit identifiers?",
                              "type": "string",
                              "enum": [
                                "refuse",
                                "read"
                              ]
                            },
                            "format": {
                              "description": "Date pattern, e.g. dd.MM.yyyy.",
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "order": {
                              "description": "Date order if no format.",
                              "type": "string",
                              "enum": [
                                "dmy",
                                "mdy"
                              ]
                            },
                            "trueValues": {
                              "description": "Boolean true tokens.",
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            },
                            "falseValues": {
                              "description": "Boolean false tokens.",
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            }
                          },
                          "required": [
                            "column",
                            "type"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "mergedCells": {
                        "description": "Merged values and header detection policy, default master.",
                        "type": "string",
                        "enum": [
                          "master",
                          "repeat"
                        ]
                      },
                      "delimiter": {
                        "description": "CSV separator; sniffed when omitted.",
                        "type": "string",
                        "enum": [
                          "comma",
                          "semicolon",
                          "tab",
                          "pipe"
                        ]
                      },
                      "encoding": {
                        "description": "CSV encoding; BOM or utf-8 when omitted.",
                        "type": "string",
                        "enum": [
                          "utf-8",
                          "utf-16le",
                          "utf-16be",
                          "windows-1254",
                          "iso-8859-9",
                          "windows-1252",
                          "windows-1251",
                          "windows-1256",
                          "shift_jis",
                          "gb18030",
                          "big5",
                          "euc-kr"
                        ]
                      },
                      "locale": {
                        "description": "BCP 47 locale: separators/month names, not date order.",
                        "type": "string",
                        "minLength": 2,
                        "maxLength": 64
                      },
                      "numberingSystem": {
                        "description": "Locale digit system, e.g. arab.",
                        "type": "string",
                        "minLength": 3,
                        "maxLength": 32
                      },
                      "missingValues": {
                        "description": "Missing tokens: N/A, NULL, -, —, #N/A.",
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      },
                      "trueValues": {
                        "description": "True tokens: true, yes, y, Evet, E.",
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      },
                      "falseValues": {
                        "description": "False tokens: false, no, n, Hayır, H.",
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      },
                      "selectColumns": {
                        "minItems": 1,
                        "maxItems": 16384,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 32767
                        }
                      },
                      "where": {
                        "maxItems": 16,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "column": {
                              "type": "string",
                              "description": "Column."
                            },
                            "op": {
                              "type": "string",
                              "enum": [
                                "eq",
                                "ne",
                                "lt",
                                "lte",
                                "gt",
                                "gte",
                                "contains",
                                "startsWith",
                                "endsWith",
                                "in",
                                "between",
                                "isEmpty",
                                "isNotEmpty",
                                "isError",
                                "isNumber",
                                "isText"
                              ]
                            },
                            "value": {
                              "description": "Operand.",
                              "type": [
                                "string",
                                "number",
                                "boolean"
                              ]
                            },
                            "values": {
                              "description": "Operands of in, or [low, high] of between.",
                              "minItems": 1,
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": [
                                  "string",
                                  "number",
                                  "boolean"
                                ]
                              }
                            }
                          },
                          "required": [
                            "column",
                            "op"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "match": {
                        "default": "all",
                        "type": "string",
                        "enum": [
                          "all",
                          "any"
                        ]
                      },
                      "scope": {
                        "default": {
                          "kind": "all"
                        },
                        "oneOf": [
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "all"
                              }
                            },
                            "required": [
                              "kind"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string",
                                "const": "rows"
                              },
                              "rows": {
                                "minItems": 1,
                                "maxItems": 10000,
                                "type": "array",
                                "items": {
                                  "type": "integer",
                                  "minimum": 1,
                                  "maximum": 1048576
                                }
                              }
                            },
                            "required": [
                              "kind",
                              "rows"
                            ],
                            "additionalProperties": false
                          }
                        ]
                      },
                      "includeHeaders": {
                        "default": true,
                        "type": "boolean"
                      },
                      "filePath": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 32768
                      },
                      "versionId": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      }
                    },
                    "required": [
                      "kind",
                      "filePath"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "aggregate"
                      },
                      "sheetName": {
                        "description": "Sheet; default first visible.",
                        "type": "string"
                      },
                      "range": {
                        "description": "A1 range such as A1:H500, B:D or 2:40, including the header row. Defaults to the used range.",
                        "type": "string"
                      },
                      "table": {
                        "description": "XLSX table: data rows, not range.",
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      },
                      "visibleOnly": {
                        "description": "XLSX: skip hidden/AutoFilter rows.",
                        "type": "boolean"
                      },
                      "headerRow": {
                        "description": "Header row (0: none). Default: table/autofilter header, then first text header above data, else 1.",
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "columnMode": {
                        "description": "Column references: auto (default), header text or A1 letter.",
                        "type": "string",
                        "enum": [
                          "auto",
                          "header",
                          "letter"
                        ]
                      },
                      "caseSensitive": {
                        "description": "Case-sensitive text comparisons, default false. Applies to predicate bounds and min/max.",
                        "type": "boolean"
                      },
                      "columns": {
                        "description": "Readings {column,type,...}; reuse profile_sheet.",
                        "minItems": 1,
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "column": {
                              "type": "string",
                              "description": "Column."
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "number",
                                "date",
                                "boolean",
                                "time",
                                "duration",
                                "text"
                              ],
                              "description": "Reading type."
                            },
                            "missingValues": {
                              "description": "Missing-text tokens.",
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            },
                            "decimal": {
                              "description": "Number decimal mark.",
                              "type": "string",
                              "enum": [
                                ".",
                                ","
                              ]
                            },
                            "group": {
                              "description": "Number group mark.",
                              "type": "string",
                              "enum": [
                                "none",
                                ".",
                                ",",
                                " ",
                                "'"
                              ]
                            },
                            "locale": {
                              "description": "Number/date locale.",
                              "type": "string",
                              "minLength": 2,
                              "maxLength": 64
                            },
                            "numberingSystem": {
                              "description": "Number digit system.",
                              "type": "string",
                              "minLength": 3,
                              "maxLength": 32
                            },
                            "identifiers": {
                              "description": "Number: read digit identifiers?",
                              "type": "string",
                              "enum": [
                                "refuse",
                                "read"
                              ]
                            },
                            "format": {
                              "description": "Date pattern, e.g. dd.MM.yyyy.",
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 64
                            },
                            "order": {
                              "description": "Date order if no format.",
                              "type": "string",
                              "enum": [
                                "dmy",
                                "mdy"
                              ]
                            },
                            "trueValues": {
                              "description": "Boolean true tokens.",
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            },
                            "falseValues": {
                              "description": "Boolean false tokens.",
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 128
                              }
                            }
                          },
                          "required": [
                            "column",
                            "type"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "mergedCells": {
                        "description": "Merged values and header detection policy, default master.",
                        "type": "string",
                        "enum": [
                          "master",
                          "repeat"
                        ]
                      },
                      "delimiter": {
                        "description": "CSV separator; sniffed when omitted.",
                        "type": "string",
                        "enum": [
                          "comma",
                          "semicolon",
                          "tab",
                          "pipe"
                        ]
                      },
                      "encoding": {
                        "description": "CSV encoding; BOM or utf-8 when omitted.",
                        "type": "string",
                        "enum": [
                          "utf-8",
                          "utf-16le",
                          "utf-16be",
                          "windows-1254",
                          "iso-8859-9",
                          "windows-1252",
                          "windows-1251",
                          "windows-1256",
                          "shift_jis",
                          "gb18030",
                          "big5",
                          "euc-kr"
                        ]
                      },
                      "locale": {
                        "description": "BCP 47 locale: separators/month names, not date order.",
                        "type": "string",
                        "minLength": 2,
                        "maxLength": 64
                      },
                      "numberingSystem": {
                        "description": "Locale digit system, e.g. arab.",
                        "type": "string",
                        "minLength": 3,
                        "maxLength": 32
                      },
                      "missingValues": {
                        "description": "Missing tokens: N/A, NULL, -, —, #N/A.",
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      },
                      "trueValues": {
                        "description": "True tokens: true, yes, y, Evet, E.",
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      },
                      "falseValues": {
                        "description": "False tokens: false, no, n, Hayır, H.",
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      },
                      "groupBy": {
                        "description": "Row grouping keys; omit for a whole-range total. Keys: column; {column,by} UTC part (month includes year, ISO week, Monday=1); {column,bins} or {column,width,origin?} for [lower,upper) bins.",
                        "maxItems": 8,
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "string",
                              "description": "Column."
                            },
                            {
                              "type": "object",
                              "properties": {
                                "column": {
                                  "type": "string",
                                  "description": "Column."
                                },
                                "by": {
                                  "type": "string",
                                  "enum": [
                                    "year",
                                    "quarter",
                                    "month",
                                    "week",
                                    "day",
                                    "weekday",
                                    "hour"
                                  ]
                                }
                              },
                              "required": [
                                "column",
                                "by"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "column": {
                                  "type": "string",
                                  "description": "Column."
                                },
                                "bins": {
                                  "minItems": 1,
                                  "maxItems": 128,
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  }
                                }
                              },
                              "required": [
                                "column",
                                "bins"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "column": {
                                  "type": "string",
                                  "description": "Column."
                                },
                                "width": {
                                  "type": "number",
                                  "minimum": 5e-324
                                },
                                "origin": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "column",
                                "width"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        }
                      },
                      "orderBy": {
                        "description": "Sort by group key (default) or selected metric.",
                        "type": "string",
                        "enum": [
                          "group",
                          "metric"
                        ]
                      },
                      "orderByMetric": {
                        "description": "One-based index into metrics, default 1. Cannot exceed the actual metrics count.",
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 8
                      },
                      "descending": {
                        "description": "Descending sort, default false.",
                        "type": "boolean"
                      },
                      "metrics": {
                        "minItems": 1,
                        "maxItems": 8,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "fn": {
                              "type": "string",
                              "enum": [
                                "count",
                                "countValues",
                                "countDistinct",
                                "countTrue",
                                "countFalse",
                                "trueRatio",
                                "sum",
                                "avg",
                                "min",
                                "max",
                                "stddev",
                                "median",
                                "p50",
                                "p90",
                                "percentile"
                              ],
                              "description": "count counts matched rows including blank cells, regardless of column. countValues counts non-empty cells in column; countDistinct counts distinct values. trueRatio is true over valid booleans. Numeric functions read numeric text and skip identifiers; percentiles are PERCENTILE.INC; stddev is the sample deviation."
                            },
                            "column": {
                              "type": "string",
                              "description": "Column."
                            },
                            "percentile": {
                              "description": "Fraction 0 to 1, for fn percentile.",
                              "type": "number",
                              "minimum": 0,
                              "maximum": 1
                            },
                            "round": {
                              "description": "Decimal places, half away from zero as ROUND.",
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 10
                            },
                            "where": {
                              "maxItems": 16,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "column": {
                                    "type": "string",
                                    "description": "Column."
                                  },
                                  "op": {
                                    "type": "string",
                                    "enum": [
                                      "eq",
                                      "ne",
                                      "lt",
                                      "lte",
                                      "gt",
                                      "gte",
                                      "contains",
                                      "startsWith",
                                      "endsWith",
                                      "in",
                                      "between",
                                      "isEmpty",
                                      "isNotEmpty",
                                      "isError",
                                      "isNumber",
                                      "isText"
                                    ]
                                  },
                                  "value": {
                                    "description": "Operand.",
                                    "type": [
                                      "string",
                                      "number",
                                      "boolean"
                                    ]
                                  },
                                  "values": {
                                    "description": "Operands of in, or [low, high] of between.",
                                    "minItems": 1,
                                    "maxItems": 64,
                                    "type": "array",
                                    "items": {
                                      "type": [
                                        "string",
                                        "number",
                                        "boolean"
                                      ]
                                    }
                                  }
                                },
                                "required": [
                                  "column",
                                  "op"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "fn"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "where": {
                        "maxItems": 16,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "column": {
                              "type": "string",
                              "description": "Column."
                            },
                            "op": {
                              "type": "string",
                              "enum": [
                                "eq",
                                "ne",
                                "lt",
                                "lte",
                                "gt",
                                "gte",
                                "contains",
                                "startsWith",
                                "endsWith",
                                "in",
                                "between",
                                "isEmpty",
                                "isNotEmpty",
                                "isError",
                                "isNumber",
                                "isText"
                              ]
                            },
                            "value": {
                              "description": "Operand.",
                              "type": [
                                "string",
                                "number",
                                "boolean"
                              ]
                            },
                            "values": {
                              "description": "Operands of in, or [low, high] of between.",
                              "minItems": 1,
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": [
                                  "string",
                                  "number",
                                  "boolean"
                                ]
                              }
                            }
                          },
                          "required": [
                            "column",
                            "op"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "match": {
                        "default": "all",
                        "type": "string",
                        "enum": [
                          "all",
                          "any"
                        ]
                      },
                      "filePath": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 32768
                      },
                      "versionId": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      }
                    },
                    "required": [
                      "kind",
                      "metrics",
                      "filePath"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "result"
                      },
                      "resultId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128,
                        "description": "Opaque identifier from this server instance."
                      },
                      "columns": {
                        "description": "One-based original result columns in output order; default all.",
                        "minItems": 1,
                        "maxItems": 10012,
                        "type": "array",
                        "items": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 10012
                        }
                      },
                      "where": {
                        "description": "AND equality over every retained row.",
                        "maxItems": 16,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "column": {
                              "type": "integer",
                              "minimum": 1,
                              "maximum": 10012,
                              "description": "One-based original column, before projection."
                            },
                            "equals": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 4096
                                },
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "boolean"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "description": "Exact scalar; no coercion or text normalization."
                            }
                          },
                          "required": [
                            "column",
                            "equals"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "offset": {
                        "description": "Zero-based offset among matches; default 0, then nextOffset.",
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 100000
                      },
                      "maxRows": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100000
                      },
                      "includeHeaders": {
                        "default": true,
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "kind",
                      "resultId"
                    ],
                    "additionalProperties": false
                  }
                ],
                "type": "object"
              },
              "header": {
                "minItems": 1,
                "maxItems": 16384,
                "type": "array",
                "items": {
                  "type": "string",
                  "maxLength": 32767
                }
              }
            },
            "required": [
              "kind",
              "sheetName",
              "at"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "delete_rows"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "at": {
                "type": "integer",
                "minimum": 1,
                "maximum": 1048576
              },
              "count": {
                "type": "integer",
                "minimum": 1,
                "maximum": 1000000
              }
            },
            "required": [
              "kind",
              "sheetName",
              "at",
              "count"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "insert_columns"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "at": {
                "type": "integer",
                "minimum": 1,
                "maximum": 16384
              },
              "count": {
                "type": "integer",
                "minimum": 1,
                "maximum": 16384
              }
            },
            "required": [
              "kind",
              "sheetName",
              "at",
              "count"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "delete_columns"
              },
              "sheetName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 31
              },
              "at": {
                "type": "integer",
                "minimum": 1,
                "maximum": 16384
              },
              "count": {
                "type": "integer",
                "minimum": 1,
                "maximum": 16384
              }
            },
            "required": [
              "kind",
              "sheetName",
              "at",
              "count"
            ],
            "additionalProperties": false
          }
        ]
      }
    }
  },
  "required": [
    "filePath",
    "changes"
  ],
  "additionalProperties": false
}

prepare_transfer

For aggregate counts, fn:count counts matching physical rows, including blank cells, even when column is supplied. Use fn:countValues with column for non-empty cells, or filter with op:isNotEmpty before count. Prepare a complete version-pinned value selection from an .xlsx, .xlsm or CSV without returning its cells. selection must be a JSON object, never a JSON-encoded string: for example {"kind":"range","sheetName":"Sheet1","range":"A1:C5","headerRow":0}. Returns transfer {source, selection} and exact scope/counts; pass transfer unchanged to transfer_data. range preserves its rectangle; records filters complete data rows and can project/reorder selectColumns, includeHeaders or select explicit physical rows with scope {kind: rows, rows: [...]}. Default scope all includes every matching record even if a previous read showed only a preview. Set headerRow: 0 explicitly when there is no header row, so the first record is retained. Record filters use where as an array of {column, op, value}, for example [{column: Amount, op: gte, value: 100}]. For boolean equality use op: eq and a boolean true/false value; filter and equals are not argument names. scope rows contains one-based physical rows, not zero-based indexes. aggregate uses metrics such as [{fn: count}]; omit groupBy for one total and use where for record conditions. aggregate exports a complete grouped summary with headers. Columns are interpreted only when explicit columns specifications request it. Values only: formulas contribute saved results, never recalculated; missing formula caches and unsupported/lossy values fail. No formula/style copying. Available only in explicit writing mode. The source is unchanged.

Annotations: read-only, idempotent, closed world.

Available only with --write <relative-output-directory>. The registered JSON Schema below is the exact wire contract; nested operation variants are validated by the server.

Input JSON Schema
json
{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "filePath": {
      "type": "string",
      "minLength": 1,
      "maxLength": 32768
    },
    "selection": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "range"
            },
            "sheetName": {
              "description": "Sheet; default first visible.",
              "type": "string"
            },
            "range": {
              "description": "A1 range such as A1:H500, B:D or 2:40, including the header row. Defaults to the used range.",
              "type": "string"
            },
            "table": {
              "description": "XLSX table: data rows, not range.",
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            },
            "visibleOnly": {
              "description": "XLSX: skip hidden/AutoFilter rows.",
              "type": "boolean"
            },
            "headerRow": {
              "description": "Header row (0: none). Default: table/autofilter header, then first text header above data, else 1.",
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "columnMode": {
              "description": "Column references: auto (default), header text or A1 letter.",
              "type": "string",
              "enum": [
                "auto",
                "header",
                "letter"
              ]
            },
            "caseSensitive": {
              "description": "Case-sensitive text comparisons, default false. Applies to predicate bounds and min/max.",
              "type": "boolean"
            },
            "columns": {
              "description": "Readings {column,type,...}; reuse profile_sheet.",
              "minItems": 1,
              "maxItems": 64,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "column": {
                    "type": "string",
                    "description": "Column."
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "number",
                      "date",
                      "boolean",
                      "time",
                      "duration",
                      "text"
                    ],
                    "description": "Reading type."
                  },
                  "missingValues": {
                    "description": "Missing-text tokens.",
                    "maxItems": 64,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    }
                  },
                  "decimal": {
                    "description": "Number decimal mark.",
                    "type": "string",
                    "enum": [
                      ".",
                      ","
                    ]
                  },
                  "group": {
                    "description": "Number group mark.",
                    "type": "string",
                    "enum": [
                      "none",
                      ".",
                      ",",
                      " ",
                      "'"
                    ]
                  },
                  "locale": {
                    "description": "Number/date locale.",
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 64
                  },
                  "numberingSystem": {
                    "description": "Number digit system.",
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 32
                  },
                  "identifiers": {
                    "description": "Number: read digit identifiers?",
                    "type": "string",
                    "enum": [
                      "refuse",
                      "read"
                    ]
                  },
                  "format": {
                    "description": "Date pattern, e.g. dd.MM.yyyy.",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "order": {
                    "description": "Date order if no format.",
                    "type": "string",
                    "enum": [
                      "dmy",
                      "mdy"
                    ]
                  },
                  "trueValues": {
                    "description": "Boolean true tokens.",
                    "maxItems": 64,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    }
                  },
                  "falseValues": {
                    "description": "Boolean false tokens.",
                    "maxItems": 64,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    }
                  }
                },
                "required": [
                  "column",
                  "type"
                ],
                "additionalProperties": false
              }
            },
            "mergedCells": {
              "description": "Merged values and header detection policy, default master.",
              "type": "string",
              "enum": [
                "master",
                "repeat"
              ]
            },
            "delimiter": {
              "description": "CSV separator; sniffed when omitted.",
              "type": "string",
              "enum": [
                "comma",
                "semicolon",
                "tab",
                "pipe"
              ]
            },
            "encoding": {
              "description": "CSV encoding; BOM or utf-8 when omitted.",
              "type": "string",
              "enum": [
                "utf-8",
                "utf-16le",
                "utf-16be",
                "windows-1254",
                "iso-8859-9",
                "windows-1252",
                "windows-1251",
                "windows-1256",
                "shift_jis",
                "gb18030",
                "big5",
                "euc-kr"
              ]
            },
            "locale": {
              "description": "BCP 47 locale: separators/month names, not date order.",
              "type": "string",
              "minLength": 2,
              "maxLength": 64
            },
            "numberingSystem": {
              "description": "Locale digit system, e.g. arab.",
              "type": "string",
              "minLength": 3,
              "maxLength": 32
            },
            "missingValues": {
              "description": "Missing tokens: N/A, NULL, -, —, #N/A.",
              "maxItems": 64,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              }
            },
            "trueValues": {
              "description": "True tokens: true, yes, y, Evet, E.",
              "maxItems": 64,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              }
            },
            "falseValues": {
              "description": "False tokens: false, no, n, Hayır, H.",
              "maxItems": 64,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              }
            },
            "selectColumns": {
              "minItems": 1,
              "maxItems": 16384,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 32767
              }
            }
          },
          "required": [
            "kind"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "records"
            },
            "sheetName": {
              "description": "Sheet; default first visible.",
              "type": "string"
            },
            "range": {
              "description": "A1 range such as A1:H500, B:D or 2:40, including the header row. Defaults to the used range.",
              "type": "string"
            },
            "table": {
              "description": "XLSX table: data rows, not range.",
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            },
            "visibleOnly": {
              "description": "XLSX: skip hidden/AutoFilter rows.",
              "type": "boolean"
            },
            "headerRow": {
              "description": "Header row (0: none). Default: table/autofilter header, then first text header above data, else 1.",
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "columnMode": {
              "description": "Column references: auto (default), header text or A1 letter.",
              "type": "string",
              "enum": [
                "auto",
                "header",
                "letter"
              ]
            },
            "caseSensitive": {
              "description": "Case-sensitive text comparisons, default false. Applies to predicate bounds and min/max.",
              "type": "boolean"
            },
            "columns": {
              "description": "Readings {column,type,...}; reuse profile_sheet.",
              "minItems": 1,
              "maxItems": 64,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "column": {
                    "type": "string",
                    "description": "Column."
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "number",
                      "date",
                      "boolean",
                      "time",
                      "duration",
                      "text"
                    ],
                    "description": "Reading type."
                  },
                  "missingValues": {
                    "description": "Missing-text tokens.",
                    "maxItems": 64,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    }
                  },
                  "decimal": {
                    "description": "Number decimal mark.",
                    "type": "string",
                    "enum": [
                      ".",
                      ","
                    ]
                  },
                  "group": {
                    "description": "Number group mark.",
                    "type": "string",
                    "enum": [
                      "none",
                      ".",
                      ",",
                      " ",
                      "'"
                    ]
                  },
                  "locale": {
                    "description": "Number/date locale.",
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 64
                  },
                  "numberingSystem": {
                    "description": "Number digit system.",
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 32
                  },
                  "identifiers": {
                    "description": "Number: read digit identifiers?",
                    "type": "string",
                    "enum": [
                      "refuse",
                      "read"
                    ]
                  },
                  "format": {
                    "description": "Date pattern, e.g. dd.MM.yyyy.",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "order": {
                    "description": "Date order if no format.",
                    "type": "string",
                    "enum": [
                      "dmy",
                      "mdy"
                    ]
                  },
                  "trueValues": {
                    "description": "Boolean true tokens.",
                    "maxItems": 64,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    }
                  },
                  "falseValues": {
                    "description": "Boolean false tokens.",
                    "maxItems": 64,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    }
                  }
                },
                "required": [
                  "column",
                  "type"
                ],
                "additionalProperties": false
              }
            },
            "mergedCells": {
              "description": "Merged values and header detection policy, default master.",
              "type": "string",
              "enum": [
                "master",
                "repeat"
              ]
            },
            "delimiter": {
              "description": "CSV separator; sniffed when omitted.",
              "type": "string",
              "enum": [
                "comma",
                "semicolon",
                "tab",
                "pipe"
              ]
            },
            "encoding": {
              "description": "CSV encoding; BOM or utf-8 when omitted.",
              "type": "string",
              "enum": [
                "utf-8",
                "utf-16le",
                "utf-16be",
                "windows-1254",
                "iso-8859-9",
                "windows-1252",
                "windows-1251",
                "windows-1256",
                "shift_jis",
                "gb18030",
                "big5",
                "euc-kr"
              ]
            },
            "locale": {
              "description": "BCP 47 locale: separators/month names, not date order.",
              "type": "string",
              "minLength": 2,
              "maxLength": 64
            },
            "numberingSystem": {
              "description": "Locale digit system, e.g. arab.",
              "type": "string",
              "minLength": 3,
              "maxLength": 32
            },
            "missingValues": {
              "description": "Missing tokens: N/A, NULL, -, —, #N/A.",
              "maxItems": 64,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              }
            },
            "trueValues": {
              "description": "True tokens: true, yes, y, Evet, E.",
              "maxItems": 64,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              }
            },
            "falseValues": {
              "description": "False tokens: false, no, n, Hayır, H.",
              "maxItems": 64,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              }
            },
            "selectColumns": {
              "minItems": 1,
              "maxItems": 16384,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 32767
              }
            },
            "where": {
              "maxItems": 16,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "column": {
                    "type": "string",
                    "description": "Column."
                  },
                  "op": {
                    "type": "string",
                    "enum": [
                      "eq",
                      "ne",
                      "lt",
                      "lte",
                      "gt",
                      "gte",
                      "contains",
                      "startsWith",
                      "endsWith",
                      "in",
                      "between",
                      "isEmpty",
                      "isNotEmpty",
                      "isError",
                      "isNumber",
                      "isText"
                    ]
                  },
                  "value": {
                    "description": "Operand.",
                    "type": [
                      "string",
                      "number",
                      "boolean"
                    ]
                  },
                  "values": {
                    "description": "Operands of in, or [low, high] of between.",
                    "minItems": 1,
                    "maxItems": 64,
                    "type": "array",
                    "items": {
                      "type": [
                        "string",
                        "number",
                        "boolean"
                      ]
                    }
                  }
                },
                "required": [
                  "column",
                  "op"
                ],
                "additionalProperties": false
              }
            },
            "match": {
              "default": "all",
              "type": "string",
              "enum": [
                "all",
                "any"
              ]
            },
            "scope": {
              "default": {
                "kind": "all"
              },
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "all"
                    }
                  },
                  "required": [
                    "kind"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "rows"
                    },
                    "rows": {
                      "minItems": 1,
                      "maxItems": 10000,
                      "type": "array",
                      "items": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 1048576
                      }
                    }
                  },
                  "required": [
                    "kind",
                    "rows"
                  ],
                  "additionalProperties": false
                }
              ]
            },
            "includeHeaders": {
              "default": true,
              "type": "boolean"
            }
          },
          "required": [
            "kind"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "aggregate"
            },
            "sheetName": {
              "description": "Sheet; default first visible.",
              "type": "string"
            },
            "range": {
              "description": "A1 range such as A1:H500, B:D or 2:40, including the header row. Defaults to the used range.",
              "type": "string"
            },
            "table": {
              "description": "XLSX table: data rows, not range.",
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            },
            "visibleOnly": {
              "description": "XLSX: skip hidden/AutoFilter rows.",
              "type": "boolean"
            },
            "headerRow": {
              "description": "Header row (0: none). Default: table/autofilter header, then first text header above data, else 1.",
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "columnMode": {
              "description": "Column references: auto (default), header text or A1 letter.",
              "type": "string",
              "enum": [
                "auto",
                "header",
                "letter"
              ]
            },
            "caseSensitive": {
              "description": "Case-sensitive text comparisons, default false. Applies to predicate bounds and min/max.",
              "type": "boolean"
            },
            "columns": {
              "description": "Readings {column,type,...}; reuse profile_sheet.",
              "minItems": 1,
              "maxItems": 64,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "column": {
                    "type": "string",
                    "description": "Column."
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "number",
                      "date",
                      "boolean",
                      "time",
                      "duration",
                      "text"
                    ],
                    "description": "Reading type."
                  },
                  "missingValues": {
                    "description": "Missing-text tokens.",
                    "maxItems": 64,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    }
                  },
                  "decimal": {
                    "description": "Number decimal mark.",
                    "type": "string",
                    "enum": [
                      ".",
                      ","
                    ]
                  },
                  "group": {
                    "description": "Number group mark.",
                    "type": "string",
                    "enum": [
                      "none",
                      ".",
                      ",",
                      " ",
                      "'"
                    ]
                  },
                  "locale": {
                    "description": "Number/date locale.",
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 64
                  },
                  "numberingSystem": {
                    "description": "Number digit system.",
                    "type": "string",
                    "minLength": 3,
                    "maxLength": 32
                  },
                  "identifiers": {
                    "description": "Number: read digit identifiers?",
                    "type": "string",
                    "enum": [
                      "refuse",
                      "read"
                    ]
                  },
                  "format": {
                    "description": "Date pattern, e.g. dd.MM.yyyy.",
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  "order": {
                    "description": "Date order if no format.",
                    "type": "string",
                    "enum": [
                      "dmy",
                      "mdy"
                    ]
                  },
                  "trueValues": {
                    "description": "Boolean true tokens.",
                    "maxItems": 64,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    }
                  },
                  "falseValues": {
                    "description": "Boolean false tokens.",
                    "maxItems": 64,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    }
                  }
                },
                "required": [
                  "column",
                  "type"
                ],
                "additionalProperties": false
              }
            },
            "mergedCells": {
              "description": "Merged values and header detection policy, default master.",
              "type": "string",
              "enum": [
                "master",
                "repeat"
              ]
            },
            "delimiter": {
              "description": "CSV separator; sniffed when omitted.",
              "type": "string",
              "enum": [
                "comma",
                "semicolon",
                "tab",
                "pipe"
              ]
            },
            "encoding": {
              "description": "CSV encoding; BOM or utf-8 when omitted.",
              "type": "string",
              "enum": [
                "utf-8",
                "utf-16le",
                "utf-16be",
                "windows-1254",
                "iso-8859-9",
                "windows-1252",
                "windows-1251",
                "windows-1256",
                "shift_jis",
                "gb18030",
                "big5",
                "euc-kr"
              ]
            },
            "locale": {
              "description": "BCP 47 locale: separators/month names, not date order.",
              "type": "string",
              "minLength": 2,
              "maxLength": 64
            },
            "numberingSystem": {
              "description": "Locale digit system, e.g. arab.",
              "type": "string",
              "minLength": 3,
              "maxLength": 32
            },
            "missingValues": {
              "description": "Missing tokens: N/A, NULL, -, —, #N/A.",
              "maxItems": 64,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              }
            },
            "trueValues": {
              "description": "True tokens: true, yes, y, Evet, E.",
              "maxItems": 64,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              }
            },
            "falseValues": {
              "description": "False tokens: false, no, n, Hayır, H.",
              "maxItems": 64,
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              }
            },
            "groupBy": {
              "description": "Row grouping keys; omit for a whole-range total. Keys: column; {column,by} UTC part (month includes year, ISO week, Monday=1); {column,bins} or {column,width,origin?} for [lower,upper) bins.",
              "maxItems": 8,
              "type": "array",
              "items": {
                "anyOf": [
                  {
                    "type": "string",
                    "description": "Column."
                  },
                  {
                    "type": "object",
                    "properties": {
                      "column": {
                        "type": "string",
                        "description": "Column."
                      },
                      "by": {
                        "type": "string",
                        "enum": [
                          "year",
                          "quarter",
                          "month",
                          "week",
                          "day",
                          "weekday",
                          "hour"
                        ]
                      }
                    },
                    "required": [
                      "column",
                      "by"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "column": {
                        "type": "string",
                        "description": "Column."
                      },
                      "bins": {
                        "minItems": 1,
                        "maxItems": 128,
                        "type": "array",
                        "items": {
                          "type": "number"
                        }
                      }
                    },
                    "required": [
                      "column",
                      "bins"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "column": {
                        "type": "string",
                        "description": "Column."
                      },
                      "width": {
                        "type": "number",
                        "minimum": 5e-324
                      },
                      "origin": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "column",
                      "width"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            },
            "orderBy": {
              "description": "Sort by group key (default) or selected metric.",
              "type": "string",
              "enum": [
                "group",
                "metric"
              ]
            },
            "orderByMetric": {
              "description": "One-based index into metrics, default 1. Cannot exceed the actual metrics count.",
              "type": "integer",
              "minimum": 1,
              "maximum": 8
            },
            "descending": {
              "description": "Descending sort, default false.",
              "type": "boolean"
            },
            "metrics": {
              "minItems": 1,
              "maxItems": 8,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "fn": {
                    "type": "string",
                    "enum": [
                      "count",
                      "countValues",
                      "countDistinct",
                      "countTrue",
                      "countFalse",
                      "trueRatio",
                      "sum",
                      "avg",
                      "min",
                      "max",
                      "stddev",
                      "median",
                      "p50",
                      "p90",
                      "percentile"
                    ],
                    "description": "count counts matched rows including blank cells, regardless of column. countValues counts non-empty cells in column; countDistinct counts distinct values. trueRatio is true over valid booleans. Numeric functions read numeric text and skip identifiers; percentiles are PERCENTILE.INC; stddev is the sample deviation."
                  },
                  "column": {
                    "type": "string",
                    "description": "Column."
                  },
                  "percentile": {
                    "description": "Fraction 0 to 1, for fn percentile.",
                    "type": "number",
                    "minimum": 0,
                    "maximum": 1
                  },
                  "round": {
                    "description": "Decimal places, half away from zero as ROUND.",
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10
                  },
                  "where": {
                    "maxItems": 16,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "column": {
                          "type": "string",
                          "description": "Column."
                        },
                        "op": {
                          "type": "string",
                          "enum": [
                            "eq",
                            "ne",
                            "lt",
                            "lte",
                            "gt",
                            "gte",
                            "contains",
                            "startsWith",
                            "endsWith",
                            "in",
                            "between",
                            "isEmpty",
                            "isNotEmpty",
                            "isError",
                            "isNumber",
                            "isText"
                          ]
                        },
                        "value": {
                          "description": "Operand.",
                          "type": [
                            "string",
                            "number",
                            "boolean"
                          ]
                        },
                        "values": {
                          "description": "Operands of in, or [low, high] of between.",
                          "minItems": 1,
                          "maxItems": 64,
                          "type": "array",
                          "items": {
                            "type": [
                              "string",
                              "number",
                              "boolean"
                            ]
                          }
                        }
                      },
                      "required": [
                        "column",
                        "op"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "fn"
                ],
                "additionalProperties": false
              }
            },
            "where": {
              "maxItems": 16,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "column": {
                    "type": "string",
                    "description": "Column."
                  },
                  "op": {
                    "type": "string",
                    "enum": [
                      "eq",
                      "ne",
                      "lt",
                      "lte",
                      "gt",
                      "gte",
                      "contains",
                      "startsWith",
                      "endsWith",
                      "in",
                      "between",
                      "isEmpty",
                      "isNotEmpty",
                      "isError",
                      "isNumber",
                      "isText"
                    ]
                  },
                  "value": {
                    "description": "Operand.",
                    "type": [
                      "string",
                      "number",
                      "boolean"
                    ]
                  },
                  "values": {
                    "description": "Operands of in, or [low, high] of between.",
                    "minItems": 1,
                    "maxItems": 64,
                    "type": "array",
                    "items": {
                      "type": [
                        "string",
                        "number",
                        "boolean"
                      ]
                    }
                  }
                },
                "required": [
                  "column",
                  "op"
                ],
                "additionalProperties": false
              }
            },
            "match": {
              "default": "all",
              "type": "string",
              "enum": [
                "all",
                "any"
              ]
            }
          },
          "required": [
            "kind",
            "metrics"
          ],
          "additionalProperties": false
        }
      ],
      "type": "object"
    }
  },
  "required": [
    "filePath",
    "selection"
  ],
  "additionalProperties": false
}

transfer_data

For aggregate selection, fn:count counts rows including blanks; fn:countValues with column counts non-empty cells. transfer and target must be JSON objects, never JSON-encoded strings; preserve the nested source and selection objects in the returned transfer reference. Transfer the complete version-pinned value selection from prepare_transfer into a new immutable .xlsx or an existing selected .xlsx target, preserving supported unrelated package content. target new creates a workbook; add_sheet or sheet requires source {filePath,versionId}. sheet uses startCell and optional mapping {kind:headers,headerRow}; choose includeHeaders false when appending. Occupied targets require overwrite true; blank source cells then clear contents. All matching records are transferred, not just an earlier preview. Source and target version changes, unsupported values or preservation failures stop the whole operation. Values only; use explicit edit copy operations for existing formulas and formatting. Nothing is recalculated. Returns provenance/counts, not cell data.

Annotations: non-destructive, closed world.

Available only with --write <relative-output-directory>. The registered JSON Schema below is the exact wire contract; nested operation variants are validated by the server.

Input JSON Schema
json
{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "transfer": {
      "type": "object",
      "properties": {
        "source": {
          "type": "object",
          "properties": {
            "filePath": {
              "type": "string",
              "minLength": 1,
              "maxLength": 32768
            },
            "versionId": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            }
          },
          "required": [
            "filePath",
            "versionId"
          ],
          "additionalProperties": false
        },
        "selection": {
          "oneOf": [
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "range"
                },
                "sheetName": {
                  "description": "Sheet; default first visible.",
                  "type": "string"
                },
                "range": {
                  "description": "A1 range such as A1:H500, B:D or 2:40, including the header row. Defaults to the used range.",
                  "type": "string"
                },
                "table": {
                  "description": "XLSX table: data rows, not range.",
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 255
                },
                "visibleOnly": {
                  "description": "XLSX: skip hidden/AutoFilter rows.",
                  "type": "boolean"
                },
                "headerRow": {
                  "description": "Header row (0: none). Default: table/autofilter header, then first text header above data, else 1.",
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "columnMode": {
                  "description": "Column references: auto (default), header text or A1 letter.",
                  "type": "string",
                  "enum": [
                    "auto",
                    "header",
                    "letter"
                  ]
                },
                "caseSensitive": {
                  "description": "Case-sensitive text comparisons, default false. Applies to predicate bounds and min/max.",
                  "type": "boolean"
                },
                "columns": {
                  "description": "Readings {column,type,...}; reuse profile_sheet.",
                  "minItems": 1,
                  "maxItems": 64,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "column": {
                        "type": "string",
                        "description": "Column."
                      },
                      "type": {
                        "type": "string",
                        "enum": [
                          "number",
                          "date",
                          "boolean",
                          "time",
                          "duration",
                          "text"
                        ],
                        "description": "Reading type."
                      },
                      "missingValues": {
                        "description": "Missing-text tokens.",
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      },
                      "decimal": {
                        "description": "Number decimal mark.",
                        "type": "string",
                        "enum": [
                          ".",
                          ","
                        ]
                      },
                      "group": {
                        "description": "Number group mark.",
                        "type": "string",
                        "enum": [
                          "none",
                          ".",
                          ",",
                          " ",
                          "'"
                        ]
                      },
                      "locale": {
                        "description": "Number/date locale.",
                        "type": "string",
                        "minLength": 2,
                        "maxLength": 64
                      },
                      "numberingSystem": {
                        "description": "Number digit system.",
                        "type": "string",
                        "minLength": 3,
                        "maxLength": 32
                      },
                      "identifiers": {
                        "description": "Number: read digit identifiers?",
                        "type": "string",
                        "enum": [
                          "refuse",
                          "read"
                        ]
                      },
                      "format": {
                        "description": "Date pattern, e.g. dd.MM.yyyy.",
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64
                      },
                      "order": {
                        "description": "Date order if no format.",
                        "type": "string",
                        "enum": [
                          "dmy",
                          "mdy"
                        ]
                      },
                      "trueValues": {
                        "description": "Boolean true tokens.",
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      },
                      "falseValues": {
                        "description": "Boolean false tokens.",
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      }
                    },
                    "required": [
                      "column",
                      "type"
                    ],
                    "additionalProperties": false
                  }
                },
                "mergedCells": {
                  "description": "Merged values and header detection policy, default master.",
                  "type": "string",
                  "enum": [
                    "master",
                    "repeat"
                  ]
                },
                "delimiter": {
                  "description": "CSV separator; sniffed when omitted.",
                  "type": "string",
                  "enum": [
                    "comma",
                    "semicolon",
                    "tab",
                    "pipe"
                  ]
                },
                "encoding": {
                  "description": "CSV encoding; BOM or utf-8 when omitted.",
                  "type": "string",
                  "enum": [
                    "utf-8",
                    "utf-16le",
                    "utf-16be",
                    "windows-1254",
                    "iso-8859-9",
                    "windows-1252",
                    "windows-1251",
                    "windows-1256",
                    "shift_jis",
                    "gb18030",
                    "big5",
                    "euc-kr"
                  ]
                },
                "locale": {
                  "description": "BCP 47 locale: separators/month names, not date order.",
                  "type": "string",
                  "minLength": 2,
                  "maxLength": 64
                },
                "numberingSystem": {
                  "description": "Locale digit system, e.g. arab.",
                  "type": "string",
                  "minLength": 3,
                  "maxLength": 32
                },
                "missingValues": {
                  "description": "Missing tokens: N/A, NULL, -, —, #N/A.",
                  "maxItems": 64,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  }
                },
                "trueValues": {
                  "description": "True tokens: true, yes, y, Evet, E.",
                  "maxItems": 64,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  }
                },
                "falseValues": {
                  "description": "False tokens: false, no, n, Hayır, H.",
                  "maxItems": 64,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  }
                },
                "selectColumns": {
                  "minItems": 1,
                  "maxItems": 16384,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 32767
                  }
                }
              },
              "required": [
                "kind"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "records"
                },
                "sheetName": {
                  "description": "Sheet; default first visible.",
                  "type": "string"
                },
                "range": {
                  "description": "A1 range such as A1:H500, B:D or 2:40, including the header row. Defaults to the used range.",
                  "type": "string"
                },
                "table": {
                  "description": "XLSX table: data rows, not range.",
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 255
                },
                "visibleOnly": {
                  "description": "XLSX: skip hidden/AutoFilter rows.",
                  "type": "boolean"
                },
                "headerRow": {
                  "description": "Header row (0: none). Default: table/autofilter header, then first text header above data, else 1.",
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "columnMode": {
                  "description": "Column references: auto (default), header text or A1 letter.",
                  "type": "string",
                  "enum": [
                    "auto",
                    "header",
                    "letter"
                  ]
                },
                "caseSensitive": {
                  "description": "Case-sensitive text comparisons, default false. Applies to predicate bounds and min/max.",
                  "type": "boolean"
                },
                "columns": {
                  "description": "Readings {column,type,...}; reuse profile_sheet.",
                  "minItems": 1,
                  "maxItems": 64,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "column": {
                        "type": "string",
                        "description": "Column."
                      },
                      "type": {
                        "type": "string",
                        "enum": [
                          "number",
                          "date",
                          "boolean",
                          "time",
                          "duration",
                          "text"
                        ],
                        "description": "Reading type."
                      },
                      "missingValues": {
                        "description": "Missing-text tokens.",
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      },
                      "decimal": {
                        "description": "Number decimal mark.",
                        "type": "string",
                        "enum": [
                          ".",
                          ","
                        ]
                      },
                      "group": {
                        "description": "Number group mark.",
                        "type": "string",
                        "enum": [
                          "none",
                          ".",
                          ",",
                          " ",
                          "'"
                        ]
                      },
                      "locale": {
                        "description": "Number/date locale.",
                        "type": "string",
                        "minLength": 2,
                        "maxLength": 64
                      },
                      "numberingSystem": {
                        "description": "Number digit system.",
                        "type": "string",
                        "minLength": 3,
                        "maxLength": 32
                      },
                      "identifiers": {
                        "description": "Number: read digit identifiers?",
                        "type": "string",
                        "enum": [
                          "refuse",
                          "read"
                        ]
                      },
                      "format": {
                        "description": "Date pattern, e.g. dd.MM.yyyy.",
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64
                      },
                      "order": {
                        "description": "Date order if no format.",
                        "type": "string",
                        "enum": [
                          "dmy",
                          "mdy"
                        ]
                      },
                      "trueValues": {
                        "description": "Boolean true tokens.",
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      },
                      "falseValues": {
                        "description": "Boolean false tokens.",
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      }
                    },
                    "required": [
                      "column",
                      "type"
                    ],
                    "additionalProperties": false
                  }
                },
                "mergedCells": {
                  "description": "Merged values and header detection policy, default master.",
                  "type": "string",
                  "enum": [
                    "master",
                    "repeat"
                  ]
                },
                "delimiter": {
                  "description": "CSV separator; sniffed when omitted.",
                  "type": "string",
                  "enum": [
                    "comma",
                    "semicolon",
                    "tab",
                    "pipe"
                  ]
                },
                "encoding": {
                  "description": "CSV encoding; BOM or utf-8 when omitted.",
                  "type": "string",
                  "enum": [
                    "utf-8",
                    "utf-16le",
                    "utf-16be",
                    "windows-1254",
                    "iso-8859-9",
                    "windows-1252",
                    "windows-1251",
                    "windows-1256",
                    "shift_jis",
                    "gb18030",
                    "big5",
                    "euc-kr"
                  ]
                },
                "locale": {
                  "description": "BCP 47 locale: separators/month names, not date order.",
                  "type": "string",
                  "minLength": 2,
                  "maxLength": 64
                },
                "numberingSystem": {
                  "description": "Locale digit system, e.g. arab.",
                  "type": "string",
                  "minLength": 3,
                  "maxLength": 32
                },
                "missingValues": {
                  "description": "Missing tokens: N/A, NULL, -, —, #N/A.",
                  "maxItems": 64,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  }
                },
                "trueValues": {
                  "description": "True tokens: true, yes, y, Evet, E.",
                  "maxItems": 64,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  }
                },
                "falseValues": {
                  "description": "False tokens: false, no, n, Hayır, H.",
                  "maxItems": 64,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  }
                },
                "selectColumns": {
                  "minItems": 1,
                  "maxItems": 16384,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 32767
                  }
                },
                "where": {
                  "maxItems": 16,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "column": {
                        "type": "string",
                        "description": "Column."
                      },
                      "op": {
                        "type": "string",
                        "enum": [
                          "eq",
                          "ne",
                          "lt",
                          "lte",
                          "gt",
                          "gte",
                          "contains",
                          "startsWith",
                          "endsWith",
                          "in",
                          "between",
                          "isEmpty",
                          "isNotEmpty",
                          "isError",
                          "isNumber",
                          "isText"
                        ]
                      },
                      "value": {
                        "description": "Operand.",
                        "type": [
                          "string",
                          "number",
                          "boolean"
                        ]
                      },
                      "values": {
                        "description": "Operands of in, or [low, high] of between.",
                        "minItems": 1,
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": [
                            "string",
                            "number",
                            "boolean"
                          ]
                        }
                      }
                    },
                    "required": [
                      "column",
                      "op"
                    ],
                    "additionalProperties": false
                  }
                },
                "match": {
                  "default": "all",
                  "type": "string",
                  "enum": [
                    "all",
                    "any"
                  ]
                },
                "scope": {
                  "default": {
                    "kind": "all"
                  },
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "all"
                        }
                      },
                      "required": [
                        "kind"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "rows"
                        },
                        "rows": {
                          "minItems": 1,
                          "maxItems": 10000,
                          "type": "array",
                          "items": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 1048576
                          }
                        }
                      },
                      "required": [
                        "kind",
                        "rows"
                      ],
                      "additionalProperties": false
                    }
                  ]
                },
                "includeHeaders": {
                  "default": true,
                  "type": "boolean"
                }
              },
              "required": [
                "kind"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "const": "aggregate"
                },
                "sheetName": {
                  "description": "Sheet; default first visible.",
                  "type": "string"
                },
                "range": {
                  "description": "A1 range such as A1:H500, B:D or 2:40, including the header row. Defaults to the used range.",
                  "type": "string"
                },
                "table": {
                  "description": "XLSX table: data rows, not range.",
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 255
                },
                "visibleOnly": {
                  "description": "XLSX: skip hidden/AutoFilter rows.",
                  "type": "boolean"
                },
                "headerRow": {
                  "description": "Header row (0: none). Default: table/autofilter header, then first text header above data, else 1.",
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "columnMode": {
                  "description": "Column references: auto (default), header text or A1 letter.",
                  "type": "string",
                  "enum": [
                    "auto",
                    "header",
                    "letter"
                  ]
                },
                "caseSensitive": {
                  "description": "Case-sensitive text comparisons, default false. Applies to predicate bounds and min/max.",
                  "type": "boolean"
                },
                "columns": {
                  "description": "Readings {column,type,...}; reuse profile_sheet.",
                  "minItems": 1,
                  "maxItems": 64,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "column": {
                        "type": "string",
                        "description": "Column."
                      },
                      "type": {
                        "type": "string",
                        "enum": [
                          "number",
                          "date",
                          "boolean",
                          "time",
                          "duration",
                          "text"
                        ],
                        "description": "Reading type."
                      },
                      "missingValues": {
                        "description": "Missing-text tokens.",
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      },
                      "decimal": {
                        "description": "Number decimal mark.",
                        "type": "string",
                        "enum": [
                          ".",
                          ","
                        ]
                      },
                      "group": {
                        "description": "Number group mark.",
                        "type": "string",
                        "enum": [
                          "none",
                          ".",
                          ",",
                          " ",
                          "'"
                        ]
                      },
                      "locale": {
                        "description": "Number/date locale.",
                        "type": "string",
                        "minLength": 2,
                        "maxLength": 64
                      },
                      "numberingSystem": {
                        "description": "Number digit system.",
                        "type": "string",
                        "minLength": 3,
                        "maxLength": 32
                      },
                      "identifiers": {
                        "description": "Number: read digit identifiers?",
                        "type": "string",
                        "enum": [
                          "refuse",
                          "read"
                        ]
                      },
                      "format": {
                        "description": "Date pattern, e.g. dd.MM.yyyy.",
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 64
                      },
                      "order": {
                        "description": "Date order if no format.",
                        "type": "string",
                        "enum": [
                          "dmy",
                          "mdy"
                        ]
                      },
                      "trueValues": {
                        "description": "Boolean true tokens.",
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      },
                      "falseValues": {
                        "description": "Boolean false tokens.",
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        }
                      }
                    },
                    "required": [
                      "column",
                      "type"
                    ],
                    "additionalProperties": false
                  }
                },
                "mergedCells": {
                  "description": "Merged values and header detection policy, default master.",
                  "type": "string",
                  "enum": [
                    "master",
                    "repeat"
                  ]
                },
                "delimiter": {
                  "description": "CSV separator; sniffed when omitted.",
                  "type": "string",
                  "enum": [
                    "comma",
                    "semicolon",
                    "tab",
                    "pipe"
                  ]
                },
                "encoding": {
                  "description": "CSV encoding; BOM or utf-8 when omitted.",
                  "type": "string",
                  "enum": [
                    "utf-8",
                    "utf-16le",
                    "utf-16be",
                    "windows-1254",
                    "iso-8859-9",
                    "windows-1252",
                    "windows-1251",
                    "windows-1256",
                    "shift_jis",
                    "gb18030",
                    "big5",
                    "euc-kr"
                  ]
                },
                "locale": {
                  "description": "BCP 47 locale: separators/month names, not date order.",
                  "type": "string",
                  "minLength": 2,
                  "maxLength": 64
                },
                "numberingSystem": {
                  "description": "Locale digit system, e.g. arab.",
                  "type": "string",
                  "minLength": 3,
                  "maxLength": 32
                },
                "missingValues": {
                  "description": "Missing tokens: N/A, NULL, -, —, #N/A.",
                  "maxItems": 64,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  }
                },
                "trueValues": {
                  "description": "True tokens: true, yes, y, Evet, E.",
                  "maxItems": 64,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  }
                },
                "falseValues": {
                  "description": "False tokens: false, no, n, Hayır, H.",
                  "maxItems": 64,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  }
                },
                "groupBy": {
                  "description": "Row grouping keys; omit for a whole-range total. Keys: column; {column,by} UTC part (month includes year, ISO week, Monday=1); {column,bins} or {column,width,origin?} for [lower,upper) bins.",
                  "maxItems": 8,
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string",
                        "description": "Column."
                      },
                      {
                        "type": "object",
                        "properties": {
                          "column": {
                            "type": "string",
                            "description": "Column."
                          },
                          "by": {
                            "type": "string",
                            "enum": [
                              "year",
                              "quarter",
                              "month",
                              "week",
                              "day",
                              "weekday",
                              "hour"
                            ]
                          }
                        },
                        "required": [
                          "column",
                          "by"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "column": {
                            "type": "string",
                            "description": "Column."
                          },
                          "bins": {
                            "minItems": 1,
                            "maxItems": 128,
                            "type": "array",
                            "items": {
                              "type": "number"
                            }
                          }
                        },
                        "required": [
                          "column",
                          "bins"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "object",
                        "properties": {
                          "column": {
                            "type": "string",
                            "description": "Column."
                          },
                          "width": {
                            "type": "number",
                            "minimum": 5e-324
                          },
                          "origin": {
                            "type": "number"
                          }
                        },
                        "required": [
                          "column",
                          "width"
                        ],
                        "additionalProperties": false
                      }
                    ]
                  }
                },
                "orderBy": {
                  "description": "Sort by group key (default) or selected metric.",
                  "type": "string",
                  "enum": [
                    "group",
                    "metric"
                  ]
                },
                "orderByMetric": {
                  "description": "One-based index into metrics, default 1. Cannot exceed the actual metrics count.",
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 8
                },
                "descending": {
                  "description": "Descending sort, default false.",
                  "type": "boolean"
                },
                "metrics": {
                  "minItems": 1,
                  "maxItems": 8,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "fn": {
                        "type": "string",
                        "enum": [
                          "count",
                          "countValues",
                          "countDistinct",
                          "countTrue",
                          "countFalse",
                          "trueRatio",
                          "sum",
                          "avg",
                          "min",
                          "max",
                          "stddev",
                          "median",
                          "p50",
                          "p90",
                          "percentile"
                        ],
                        "description": "count counts matched rows including blank cells, regardless of column. countValues counts non-empty cells in column; countDistinct counts distinct values. trueRatio is true over valid booleans. Numeric functions read numeric text and skip identifiers; percentiles are PERCENTILE.INC; stddev is the sample deviation."
                      },
                      "column": {
                        "type": "string",
                        "description": "Column."
                      },
                      "percentile": {
                        "description": "Fraction 0 to 1, for fn percentile.",
                        "type": "number",
                        "minimum": 0,
                        "maximum": 1
                      },
                      "round": {
                        "description": "Decimal places, half away from zero as ROUND.",
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 10
                      },
                      "where": {
                        "maxItems": 16,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "column": {
                              "type": "string",
                              "description": "Column."
                            },
                            "op": {
                              "type": "string",
                              "enum": [
                                "eq",
                                "ne",
                                "lt",
                                "lte",
                                "gt",
                                "gte",
                                "contains",
                                "startsWith",
                                "endsWith",
                                "in",
                                "between",
                                "isEmpty",
                                "isNotEmpty",
                                "isError",
                                "isNumber",
                                "isText"
                              ]
                            },
                            "value": {
                              "description": "Operand.",
                              "type": [
                                "string",
                                "number",
                                "boolean"
                              ]
                            },
                            "values": {
                              "description": "Operands of in, or [low, high] of between.",
                              "minItems": 1,
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": [
                                  "string",
                                  "number",
                                  "boolean"
                                ]
                              }
                            }
                          },
                          "required": [
                            "column",
                            "op"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "fn"
                    ],
                    "additionalProperties": false
                  }
                },
                "where": {
                  "maxItems": 16,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "column": {
                        "type": "string",
                        "description": "Column."
                      },
                      "op": {
                        "type": "string",
                        "enum": [
                          "eq",
                          "ne",
                          "lt",
                          "lte",
                          "gt",
                          "gte",
                          "contains",
                          "startsWith",
                          "endsWith",
                          "in",
                          "between",
                          "isEmpty",
                          "isNotEmpty",
                          "isError",
                          "isNumber",
                          "isText"
                        ]
                      },
                      "value": {
                        "description": "Operand.",
                        "type": [
                          "string",
                          "number",
                          "boolean"
                        ]
                      },
                      "values": {
                        "description": "Operands of in, or [low, high] of between.",
                        "minItems": 1,
                        "maxItems": 64,
                        "type": "array",
                        "items": {
                          "type": [
                            "string",
                            "number",
                            "boolean"
                          ]
                        }
                      }
                    },
                    "required": [
                      "column",
                      "op"
                    ],
                    "additionalProperties": false
                  }
                },
                "match": {
                  "default": "all",
                  "type": "string",
                  "enum": [
                    "all",
                    "any"
                  ]
                }
              },
              "required": [
                "kind",
                "metrics"
              ],
              "additionalProperties": false
            }
          ],
          "type": "object"
        }
      },
      "required": [
        "source",
        "selection"
      ],
      "additionalProperties": false
    },
    "target": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "new"
            },
            "sheetName": {
              "type": "string",
              "minLength": 1,
              "maxLength": 31
            },
            "startCell": {
              "default": "A1",
              "type": "string",
              "minLength": 2,
              "maxLength": 10,
              "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}$"
            }
          },
          "required": [
            "kind",
            "sheetName"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "add_sheet"
            },
            "source": {
              "type": "object",
              "properties": {
                "filePath": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 32768
                },
                "versionId": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                }
              },
              "required": [
                "filePath",
                "versionId"
              ],
              "additionalProperties": false
            },
            "sheetName": {
              "type": "string",
              "minLength": 1,
              "maxLength": 31
            },
            "startCell": {
              "default": "A1",
              "type": "string",
              "minLength": 2,
              "maxLength": 10,
              "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}$"
            }
          },
          "required": [
            "kind",
            "source",
            "sheetName"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string",
              "const": "sheet"
            },
            "source": {
              "type": "object",
              "properties": {
                "filePath": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 32768
                },
                "versionId": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                }
              },
              "required": [
                "filePath",
                "versionId"
              ],
              "additionalProperties": false
            },
            "sheetName": {
              "type": "string",
              "minLength": 1,
              "maxLength": 31
            },
            "startCell": {
              "type": "string",
              "minLength": 2,
              "maxLength": 10,
              "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}$"
            },
            "overwrite": {
              "default": false,
              "type": "boolean"
            },
            "mapping": {
              "default": {
                "kind": "position"
              },
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "position"
                    }
                  },
                  "required": [
                    "kind"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "headers"
                    },
                    "headerRow": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 1048576
                    }
                  },
                  "required": [
                    "kind",
                    "headerRow"
                  ],
                  "additionalProperties": false
                }
              ]
            }
          },
          "required": [
            "kind",
            "source",
            "sheetName",
            "startCell"
          ],
          "additionalProperties": false
        }
      ],
      "type": "object"
    }
  },
  "required": [
    "transfer",
    "target"
  ],
  "additionalProperties": false
}

create_workbook

Create one immutable .xlsx from named sheets and rectangular typed value blocks. Each scalar has kind text/number/boolean/blank/date/datetime; text beginning with = stays literal. Optional changes finish the workbook atomically with formatting, layout, merges, formulas and tables before publication. Formula operations write explicit formula text without calculating it. Table range includes its header and optional totals row; use literal unique headers. At least one sheet, up to 1,000,000 touched/stored cells, 64 sheets and 128 changes. Identical requests retain identical outputs; originals never change. Never retype rows a read returned. Instead of values, a create_workbook block, write_cells or insert_rows takes source: {kind:result,resultId,columns?,where?,offset?,maxRows?} for a retained aggregate_sheet result, or {kind:range|records|aggregate,filePath,versionId?,...} with prepare_transfer selection fields. The server writes the selected rows as typed cells, starting with the source's own header row (result and aggregate labels, records includeHeaders); header:[...] replaces it or adds one. With values, header:[...] writes a text row above them. Literal values that repeat three rows of a retained result are refused. Table ranges include the header and requested totals row. A real calculated column uses calculatedColumns:[{column:"Amount",formula:"[@Qty][@Price]"}]; filling cells alone does not define table calculated-column metadata. Bare QtyPrice refers to defined names. Totals labels are explicit, for example totals:[{kind:"label",column:"Item",text:"Total"},{kind:"function",column:"Amount",function:"sum"}]; a sum function does not create a Total label automatically. Advanced changes: define_name uses sheetName,name,range,scope workbook/sheet; replacement requires overwrite:true. write_named_range uses the exact name/scope and a typed values rectangle of the same shape; delete_name refuses live formula dependencies. set_validation uses range and rule {type:list,items:[...]}, {type:whole/decimal/date/textLength,operator,bounds:[...]}, or {type:custom,formula}; date bounds are workbook serials, rules guide interactive Excel input and do not enforce all server writes. remove_validation takes the exact old range, or ranges copied from one get_data_validations rule. set_conditional_format uses range,priority,rule {type:expression,formula} or {type:cellIs,operator,formulas:[...]}, appearance {font,fill},stopIfTrue. Replace a priority explicitly with overwrite:true; remove_conditional_format uses priority. set_hyperlink uses cell,target {kind:external,url} for HTTPS or {kind:internal,location}; set_note uses cell,text,author; set_image uses name,cell,mime image/png or image/jpeg,data canonical base64,width,height in pixels. Their remove_* operations select the same cell or image name; get_images reports that name. set_chart uses name,chartType column/bar/line/pie,title,cell and series [{name,sheetName,categories,values}] with one-row/column A1 ranges; formula sources have no invented cache and require refresh. remove_chart uses name. set_pivot creates/refreshes a real PivotTable using name,cell,sourceSheet,sourceRange including headers,rowColumn and measures [{column,function:sum/count/min/max,name}]; source cells must be literal, count counts nonblank values. set_pivot overwrite:true refreshes/replaces an existing private cache and clears its old result tail. protect_sheet/protect_workbook optionally use a legacy Excel protection password of up to 15 characters; this is not encryption. Unprotect every locked target with authenticated unprotect_workbook/unprotect_sheet changes. format_cells style.protection {locked,hidden} controls cell protection. Strong-hash, encrypted, signed and macro-enabled editing remains refused. Originals never change. Appearance and source changes distinguish current chart/pivot caches from refreshRequired.

Annotations: non-destructive, closed world.

Available only with --write <relative-output-directory>. The registered JSON Schema below is the exact wire contract; nested operation variants are validated by the server.

Input JSON Schema
json
{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "sheets": {
      "minItems": 1,
      "maxItems": 64,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 31
          },
          "blocks": {
            "default": [],
            "maxItems": 128,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "startCell": {
                  "type": "string",
                  "minLength": 2,
                  "maxLength": 10,
                  "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}$"
                },
                "values": {
                  "minItems": 1,
                  "maxItems": 1000000,
                  "type": "array",
                  "items": {
                    "minItems": 1,
                    "maxItems": 16384,
                    "type": "array",
                    "items": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "text"
                            },
                            "value": {
                              "type": "string",
                              "maxLength": 32767
                            }
                          },
                          "required": [
                            "kind",
                            "value"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "number"
                            },
                            "value": {
                              "type": "number"
                            }
                          },
                          "required": [
                            "kind",
                            "value"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "boolean"
                            },
                            "value": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "kind",
                            "value"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "blank"
                            }
                          },
                          "required": [
                            "kind"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "date"
                            },
                            "value": {
                              "type": "string",
                              "minLength": 10,
                              "format": "date",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                            }
                          },
                          "required": [
                            "kind",
                            "value"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "datetime"
                            },
                            "value": {
                              "type": "string",
                              "allOf": [
                                {
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z)|(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?)$"
                                },
                                {
                                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d{1,3})?$"
                                }
                              ]
                            }
                          },
                          "required": [
                            "kind",
                            "value"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  }
                },
                "source": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "range"
                        },
                        "sheetName": {
                          "description": "Sheet; default first visible.",
                          "type": "string"
                        },
                        "range": {
                          "description": "A1 range such as A1:H500, B:D or 2:40, including the header row. Defaults to the used range.",
                          "type": "string"
                        },
                        "table": {
                          "description": "XLSX table: data rows, not range.",
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "visibleOnly": {
                          "description": "XLSX: skip hidden/AutoFilter rows.",
                          "type": "boolean"
                        },
                        "headerRow": {
                          "description": "Header row (0: none). Default: table/autofilter header, then first text header above data, else 1.",
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "columnMode": {
                          "description": "Column references: auto (default), header text or A1 letter.",
                          "type": "string",
                          "enum": [
                            "auto",
                            "header",
                            "letter"
                          ]
                        },
                        "caseSensitive": {
                          "description": "Case-sensitive text comparisons, default false. Applies to predicate bounds and min/max.",
                          "type": "boolean"
                        },
                        "columns": {
                          "description": "Readings {column,type,...}; reuse profile_sheet.",
                          "minItems": 1,
                          "maxItems": 64,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "column": {
                                "type": "string",
                                "description": "Column."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "number",
                                  "date",
                                  "boolean",
                                  "time",
                                  "duration",
                                  "text"
                                ],
                                "description": "Reading type."
                              },
                              "missingValues": {
                                "description": "Missing-text tokens.",
                                "maxItems": 64,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                }
                              },
                              "decimal": {
                                "description": "Number decimal mark.",
                                "type": "string",
                                "enum": [
                                  ".",
                                  ","
                                ]
                              },
                              "group": {
                                "description": "Number group mark.",
                                "type": "string",
                                "enum": [
                                  "none",
                                  ".",
                                  ",",
                                  " ",
                                  "'"
                                ]
                              },
                              "locale": {
                                "description": "Number/date locale.",
                                "type": "string",
                                "minLength": 2,
                                "maxLength": 64
                              },
                              "numberingSystem": {
                                "description": "Number digit system.",
                                "type": "string",
                                "minLength": 3,
                                "maxLength": 32
                              },
                              "identifiers": {
                                "description": "Number: read digit identifiers?",
                                "type": "string",
                                "enum": [
                                  "refuse",
                                  "read"
                                ]
                              },
                              "format": {
                                "description": "Date pattern, e.g. dd.MM.yyyy.",
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 64
                              },
                              "order": {
                                "description": "Date order if no format.",
                                "type": "string",
                                "enum": [
                                  "dmy",
                                  "mdy"
                                ]
                              },
                              "trueValues": {
                                "description": "Boolean true tokens.",
                                "maxItems": 64,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                }
                              },
                              "falseValues": {
                                "description": "Boolean false tokens.",
                                "maxItems": 64,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                }
                              }
                            },
                            "required": [
                              "column",
                              "type"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "mergedCells": {
                          "description": "Merged values and header detection policy, default master.",
                          "type": "string",
                          "enum": [
                            "master",
                            "repeat"
                          ]
                        },
                        "delimiter": {
                          "description": "CSV separator; sniffed when omitted.",
                          "type": "string",
                          "enum": [
                            "comma",
                            "semicolon",
                            "tab",
                            "pipe"
                          ]
                        },
                        "encoding": {
                          "description": "CSV encoding; BOM or utf-8 when omitted.",
                          "type": "string",
                          "enum": [
                            "utf-8",
                            "utf-16le",
                            "utf-16be",
                            "windows-1254",
                            "iso-8859-9",
                            "windows-1252",
                            "windows-1251",
                            "windows-1256",
                            "shift_jis",
                            "gb18030",
                            "big5",
                            "euc-kr"
                          ]
                        },
                        "locale": {
                          "description": "BCP 47 locale: separators/month names, not date order.",
                          "type": "string",
                          "minLength": 2,
                          "maxLength": 64
                        },
                        "numberingSystem": {
                          "description": "Locale digit system, e.g. arab.",
                          "type": "string",
                          "minLength": 3,
                          "maxLength": 32
                        },
                        "missingValues": {
                          "description": "Missing tokens: N/A, NULL, -, —, #N/A.",
                          "maxItems": 64,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          }
                        },
                        "trueValues": {
                          "description": "True tokens: true, yes, y, Evet, E.",
                          "maxItems": 64,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          }
                        },
                        "falseValues": {
                          "description": "False tokens: false, no, n, Hayır, H.",
                          "maxItems": 64,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          }
                        },
                        "selectColumns": {
                          "minItems": 1,
                          "maxItems": 16384,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 32767
                          }
                        },
                        "filePath": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 32768
                        },
                        "versionId": {
                          "type": "string",
                          "pattern": "^[a-f0-9]{64}$"
                        }
                      },
                      "required": [
                        "kind",
                        "filePath"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "records"
                        },
                        "sheetName": {
                          "description": "Sheet; default first visible.",
                          "type": "string"
                        },
                        "range": {
                          "description": "A1 range such as A1:H500, B:D or 2:40, including the header row. Defaults to the used range.",
                          "type": "string"
                        },
                        "table": {
                          "description": "XLSX table: data rows, not range.",
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "visibleOnly": {
                          "description": "XLSX: skip hidden/AutoFilter rows.",
                          "type": "boolean"
                        },
                        "headerRow": {
                          "description": "Header row (0: none). Default: table/autofilter header, then first text header above data, else 1.",
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "columnMode": {
                          "description": "Column references: auto (default), header text or A1 letter.",
                          "type": "string",
                          "enum": [
                            "auto",
                            "header",
                            "letter"
                          ]
                        },
                        "caseSensitive": {
                          "description": "Case-sensitive text comparisons, default false. Applies to predicate bounds and min/max.",
                          "type": "boolean"
                        },
                        "columns": {
                          "description": "Readings {column,type,...}; reuse profile_sheet.",
                          "minItems": 1,
                          "maxItems": 64,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "column": {
                                "type": "string",
                                "description": "Column."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "number",
                                  "date",
                                  "boolean",
                                  "time",
                                  "duration",
                                  "text"
                                ],
                                "description": "Reading type."
                              },
                              "missingValues": {
                                "description": "Missing-text tokens.",
                                "maxItems": 64,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                }
                              },
                              "decimal": {
                                "description": "Number decimal mark.",
                                "type": "string",
                                "enum": [
                                  ".",
                                  ","
                                ]
                              },
                              "group": {
                                "description": "Number group mark.",
                                "type": "string",
                                "enum": [
                                  "none",
                                  ".",
                                  ",",
                                  " ",
                                  "'"
                                ]
                              },
                              "locale": {
                                "description": "Number/date locale.",
                                "type": "string",
                                "minLength": 2,
                                "maxLength": 64
                              },
                              "numberingSystem": {
                                "description": "Number digit system.",
                                "type": "string",
                                "minLength": 3,
                                "maxLength": 32
                              },
                              "identifiers": {
                                "description": "Number: read digit identifiers?",
                                "type": "string",
                                "enum": [
                                  "refuse",
                                  "read"
                                ]
                              },
                              "format": {
                                "description": "Date pattern, e.g. dd.MM.yyyy.",
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 64
                              },
                              "order": {
                                "description": "Date order if no format.",
                                "type": "string",
                                "enum": [
                                  "dmy",
                                  "mdy"
                                ]
                              },
                              "trueValues": {
                                "description": "Boolean true tokens.",
                                "maxItems": 64,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                }
                              },
                              "falseValues": {
                                "description": "Boolean false tokens.",
                                "maxItems": 64,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                }
                              }
                            },
                            "required": [
                              "column",
                              "type"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "mergedCells": {
                          "description": "Merged values and header detection policy, default master.",
                          "type": "string",
                          "enum": [
                            "master",
                            "repeat"
                          ]
                        },
                        "delimiter": {
                          "description": "CSV separator; sniffed when omitted.",
                          "type": "string",
                          "enum": [
                            "comma",
                            "semicolon",
                            "tab",
                            "pipe"
                          ]
                        },
                        "encoding": {
                          "description": "CSV encoding; BOM or utf-8 when omitted.",
                          "type": "string",
                          "enum": [
                            "utf-8",
                            "utf-16le",
                            "utf-16be",
                            "windows-1254",
                            "iso-8859-9",
                            "windows-1252",
                            "windows-1251",
                            "windows-1256",
                            "shift_jis",
                            "gb18030",
                            "big5",
                            "euc-kr"
                          ]
                        },
                        "locale": {
                          "description": "BCP 47 locale: separators/month names, not date order.",
                          "type": "string",
                          "minLength": 2,
                          "maxLength": 64
                        },
                        "numberingSystem": {
                          "description": "Locale digit system, e.g. arab.",
                          "type": "string",
                          "minLength": 3,
                          "maxLength": 32
                        },
                        "missingValues": {
                          "description": "Missing tokens: N/A, NULL, -, —, #N/A.",
                          "maxItems": 64,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          }
                        },
                        "trueValues": {
                          "description": "True tokens: true, yes, y, Evet, E.",
                          "maxItems": 64,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          }
                        },
                        "falseValues": {
                          "description": "False tokens: false, no, n, Hayır, H.",
                          "maxItems": 64,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          }
                        },
                        "selectColumns": {
                          "minItems": 1,
                          "maxItems": 16384,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 32767
                          }
                        },
                        "where": {
                          "maxItems": 16,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "column": {
                                "type": "string",
                                "description": "Column."
                              },
                              "op": {
                                "type": "string",
                                "enum": [
                                  "eq",
                                  "ne",
                                  "lt",
                                  "lte",
                                  "gt",
                                  "gte",
                                  "contains",
                                  "startsWith",
                                  "endsWith",
                                  "in",
                                  "between",
                                  "isEmpty",
                                  "isNotEmpty",
                                  "isError",
                                  "isNumber",
                                  "isText"
                                ]
                              },
                              "value": {
                                "description": "Operand.",
                                "type": [
                                  "string",
                                  "number",
                                  "boolean"
                                ]
                              },
                              "values": {
                                "description": "Operands of in, or [low, high] of between.",
                                "minItems": 1,
                                "maxItems": 64,
                                "type": "array",
                                "items": {
                                  "type": [
                                    "string",
                                    "number",
                                    "boolean"
                                  ]
                                }
                              }
                            },
                            "required": [
                              "column",
                              "op"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "match": {
                          "default": "all",
                          "type": "string",
                          "enum": [
                            "all",
                            "any"
                          ]
                        },
                        "scope": {
                          "default": {
                            "kind": "all"
                          },
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "all"
                                }
                              },
                              "required": [
                                "kind"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "object",
                              "properties": {
                                "kind": {
                                  "type": "string",
                                  "const": "rows"
                                },
                                "rows": {
                                  "minItems": 1,
                                  "maxItems": 10000,
                                  "type": "array",
                                  "items": {
                                    "type": "integer",
                                    "minimum": 1,
                                    "maximum": 1048576
                                  }
                                }
                              },
                              "required": [
                                "kind",
                                "rows"
                              ],
                              "additionalProperties": false
                            }
                          ]
                        },
                        "includeHeaders": {
                          "default": true,
                          "type": "boolean"
                        },
                        "filePath": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 32768
                        },
                        "versionId": {
                          "type": "string",
                          "pattern": "^[a-f0-9]{64}$"
                        }
                      },
                      "required": [
                        "kind",
                        "filePath"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "aggregate"
                        },
                        "sheetName": {
                          "description": "Sheet; default first visible.",
                          "type": "string"
                        },
                        "range": {
                          "description": "A1 range such as A1:H500, B:D or 2:40, including the header row. Defaults to the used range.",
                          "type": "string"
                        },
                        "table": {
                          "description": "XLSX table: data rows, not range.",
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "visibleOnly": {
                          "description": "XLSX: skip hidden/AutoFilter rows.",
                          "type": "boolean"
                        },
                        "headerRow": {
                          "description": "Header row (0: none). Default: table/autofilter header, then first text header above data, else 1.",
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "columnMode": {
                          "description": "Column references: auto (default), header text or A1 letter.",
                          "type": "string",
                          "enum": [
                            "auto",
                            "header",
                            "letter"
                          ]
                        },
                        "caseSensitive": {
                          "description": "Case-sensitive text comparisons, default false. Applies to predicate bounds and min/max.",
                          "type": "boolean"
                        },
                        "columns": {
                          "description": "Readings {column,type,...}; reuse profile_sheet.",
                          "minItems": 1,
                          "maxItems": 64,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "column": {
                                "type": "string",
                                "description": "Column."
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "number",
                                  "date",
                                  "boolean",
                                  "time",
                                  "duration",
                                  "text"
                                ],
                                "description": "Reading type."
                              },
                              "missingValues": {
                                "description": "Missing-text tokens.",
                                "maxItems": 64,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                }
                              },
                              "decimal": {
                                "description": "Number decimal mark.",
                                "type": "string",
                                "enum": [
                                  ".",
                                  ","
                                ]
                              },
                              "group": {
                                "description": "Number group mark.",
                                "type": "string",
                                "enum": [
                                  "none",
                                  ".",
                                  ",",
                                  " ",
                                  "'"
                                ]
                              },
                              "locale": {
                                "description": "Number/date locale.",
                                "type": "string",
                                "minLength": 2,
                                "maxLength": 64
                              },
                              "numberingSystem": {
                                "description": "Number digit system.",
                                "type": "string",
                                "minLength": 3,
                                "maxLength": 32
                              },
                              "identifiers": {
                                "description": "Number: read digit identifiers?",
                                "type": "string",
                                "enum": [
                                  "refuse",
                                  "read"
                                ]
                              },
                              "format": {
                                "description": "Date pattern, e.g. dd.MM.yyyy.",
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 64
                              },
                              "order": {
                                "description": "Date order if no format.",
                                "type": "string",
                                "enum": [
                                  "dmy",
                                  "mdy"
                                ]
                              },
                              "trueValues": {
                                "description": "Boolean true tokens.",
                                "maxItems": 64,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                }
                              },
                              "falseValues": {
                                "description": "Boolean false tokens.",
                                "maxItems": 64,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                }
                              }
                            },
                            "required": [
                              "column",
                              "type"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "mergedCells": {
                          "description": "Merged values and header detection policy, default master.",
                          "type": "string",
                          "enum": [
                            "master",
                            "repeat"
                          ]
                        },
                        "delimiter": {
                          "description": "CSV separator; sniffed when omitted.",
                          "type": "string",
                          "enum": [
                            "comma",
                            "semicolon",
                            "tab",
                            "pipe"
                          ]
                        },
                        "encoding": {
                          "description": "CSV encoding; BOM or utf-8 when omitted.",
                          "type": "string",
                          "enum": [
                            "utf-8",
                            "utf-16le",
                            "utf-16be",
                            "windows-1254",
                            "iso-8859-9",
                            "windows-1252",
                            "windows-1251",
                            "windows-1256",
                            "shift_jis",
                            "gb18030",
                            "big5",
                            "euc-kr"
                          ]
                        },
                        "locale": {
                          "description": "BCP 47 locale: separators/month names, not date order.",
                          "type": "string",
                          "minLength": 2,
                          "maxLength": 64
                        },
                        "numberingSystem": {
                          "description": "Locale digit system, e.g. arab.",
                          "type": "string",
                          "minLength": 3,
                          "maxLength": 32
                        },
                        "missingValues": {
                          "description": "Missing tokens: N/A, NULL, -, —, #N/A.",
                          "maxItems": 64,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          }
                        },
                        "trueValues": {
                          "description": "True tokens: true, yes, y, Evet, E.",
                          "maxItems": 64,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          }
                        },
                        "falseValues": {
                          "description": "False tokens: false, no, n, Hayır, H.",
                          "maxItems": 64,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          }
                        },
                        "groupBy": {
                          "description": "Row grouping keys; omit for a whole-range total. Keys: column; {column,by} UTC part (month includes year, ISO week, Monday=1); {column,bins} or {column,width,origin?} for [lower,upper) bins.",
                          "maxItems": 8,
                          "type": "array",
                          "items": {
                            "anyOf": [
                              {
                                "type": "string",
                                "description": "Column."
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "column": {
                                    "type": "string",
                                    "description": "Column."
                                  },
                                  "by": {
                                    "type": "string",
                                    "enum": [
                                      "year",
                                      "quarter",
                                      "month",
                                      "week",
                                      "day",
                                      "weekday",
                                      "hour"
                                    ]
                                  }
                                },
                                "required": [
                                  "column",
                                  "by"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "column": {
                                    "type": "string",
                                    "description": "Column."
                                  },
                                  "bins": {
                                    "minItems": 1,
                                    "maxItems": 128,
                                    "type": "array",
                                    "items": {
                                      "type": "number"
                                    }
                                  }
                                },
                                "required": [
                                  "column",
                                  "bins"
                                ],
                                "additionalProperties": false
                              },
                              {
                                "type": "object",
                                "properties": {
                                  "column": {
                                    "type": "string",
                                    "description": "Column."
                                  },
                                  "width": {
                                    "type": "number",
                                    "minimum": 5e-324
                                  },
                                  "origin": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "column",
                                  "width"
                                ],
                                "additionalProperties": false
                              }
                            ]
                          }
                        },
                        "orderBy": {
                          "description": "Sort by group key (default) or selected metric.",
                          "type": "string",
                          "enum": [
                            "group",
                            "metric"
                          ]
                        },
                        "orderByMetric": {
                          "description": "One-based index into metrics, default 1. Cannot exceed the actual metrics count.",
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 8
                        },
                        "descending": {
                          "description": "Descending sort, default false.",
                          "type": "boolean"
                        },
                        "metrics": {
                          "minItems": 1,
                          "maxItems": 8,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "fn": {
                                "type": "string",
                                "enum": [
                                  "count",
                                  "countValues",
                                  "countDistinct",
                                  "countTrue",
                                  "countFalse",
                                  "trueRatio",
                                  "sum",
                                  "avg",
                                  "min",
                                  "max",
                                  "stddev",
                                  "median",
                                  "p50",
                                  "p90",
                                  "percentile"
                                ],
                                "description": "count counts matched rows including blank cells, regardless of column. countValues counts non-empty cells in column; countDistinct counts distinct values. trueRatio is true over valid booleans. Numeric functions read numeric text and skip identifiers; percentiles are PERCENTILE.INC; stddev is the sample deviation."
                              },
                              "column": {
                                "type": "string",
                                "description": "Column."
                              },
                              "percentile": {
                                "description": "Fraction 0 to 1, for fn percentile.",
                                "type": "number",
                                "minimum": 0,
                                "maximum": 1
                              },
                              "round": {
                                "description": "Decimal places, half away from zero as ROUND.",
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 10
                              },
                              "where": {
                                "maxItems": 16,
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "column": {
                                      "type": "string",
                                      "description": "Column."
                                    },
                                    "op": {
                                      "type": "string",
                                      "enum": [
                                        "eq",
                                        "ne",
                                        "lt",
                                        "lte",
                                        "gt",
                                        "gte",
                                        "contains",
                                        "startsWith",
                                        "endsWith",
                                        "in",
                                        "between",
                                        "isEmpty",
                                        "isNotEmpty",
                                        "isError",
                                        "isNumber",
                                        "isText"
                                      ]
                                    },
                                    "value": {
                                      "description": "Operand.",
                                      "type": [
                                        "string",
                                        "number",
                                        "boolean"
                                      ]
                                    },
                                    "values": {
                                      "description": "Operands of in, or [low, high] of between.",
                                      "minItems": 1,
                                      "maxItems": 64,
                                      "type": "array",
                                      "items": {
                                        "type": [
                                          "string",
                                          "number",
                                          "boolean"
                                        ]
                                      }
                                    }
                                  },
                                  "required": [
                                    "column",
                                    "op"
                                  ],
                                  "additionalProperties": false
                                }
                              }
                            },
                            "required": [
                              "fn"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "where": {
                          "maxItems": 16,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "column": {
                                "type": "string",
                                "description": "Column."
                              },
                              "op": {
                                "type": "string",
                                "enum": [
                                  "eq",
                                  "ne",
                                  "lt",
                                  "lte",
                                  "gt",
                                  "gte",
                                  "contains",
                                  "startsWith",
                                  "endsWith",
                                  "in",
                                  "between",
                                  "isEmpty",
                                  "isNotEmpty",
                                  "isError",
                                  "isNumber",
                                  "isText"
                                ]
                              },
                              "value": {
                                "description": "Operand.",
                                "type": [
                                  "string",
                                  "number",
                                  "boolean"
                                ]
                              },
                              "values": {
                                "description": "Operands of in, or [low, high] of between.",
                                "minItems": 1,
                                "maxItems": 64,
                                "type": "array",
                                "items": {
                                  "type": [
                                    "string",
                                    "number",
                                    "boolean"
                                  ]
                                }
                              }
                            },
                            "required": [
                              "column",
                              "op"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "match": {
                          "default": "all",
                          "type": "string",
                          "enum": [
                            "all",
                            "any"
                          ]
                        },
                        "filePath": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 32768
                        },
                        "versionId": {
                          "type": "string",
                          "pattern": "^[a-f0-9]{64}$"
                        }
                      },
                      "required": [
                        "kind",
                        "metrics",
                        "filePath"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "result"
                        },
                        "resultId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128,
                          "description": "Opaque identifier from this server instance."
                        },
                        "columns": {
                          "description": "One-based original result columns in output order; default all.",
                          "minItems": 1,
                          "maxItems": 10012,
                          "type": "array",
                          "items": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 10012
                          }
                        },
                        "where": {
                          "description": "AND equality over every retained row.",
                          "maxItems": 16,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "column": {
                                "type": "integer",
                                "minimum": 1,
                                "maximum": 10012,
                                "description": "One-based original column, before projection."
                              },
                              "equals": {
                                "anyOf": [
                                  {
                                    "type": "string",
                                    "maxLength": 4096
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "boolean"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "description": "Exact scalar; no coercion or text normalization."
                              }
                            },
                            "required": [
                              "column",
                              "equals"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "offset": {
                          "description": "Zero-based offset among matches; default 0, then nextOffset.",
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 100000
                        },
                        "maxRows": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 100000
                        },
                        "includeHeaders": {
                          "default": true,
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "kind",
                        "resultId"
                      ],
                      "additionalProperties": false
                    }
                  ],
                  "type": "object"
                },
                "header": {
                  "minItems": 1,
                  "maxItems": 16384,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "maxLength": 32767
                  }
                }
              },
              "required": [
                "startCell"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false
      }
    },
    "changes": {
      "maxItems": 128,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "protect_sheet",
              "unprotect_sheet",
              "protect_workbook",
              "unprotect_workbook",
              "set_pivot",
              "set_chart",
              "remove_chart",
              "set_hyperlink",
              "remove_hyperlink",
              "set_note",
              "remove_note",
              "set_image",
              "remove_image",
              "set_validation",
              "remove_validation",
              "set_conditional_format",
              "remove_conditional_format",
              "define_name",
              "delete_name",
              "write_named_range",
              "format_cells",
              "set_columns",
              "set_rows",
              "freeze_panes",
              "set_sheet_visibility",
              "set_print_layout",
              "merge_cells",
              "unmerge_cells",
              "write_formula",
              "fill_formula",
              "create_table",
              "edit_table",
              "convert_table"
            ]
          },
          "sheetName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 31
          },
          "rule": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "list",
                  "whole",
                  "decimal",
                  "date",
                  "textLength",
                  "custom",
                  "cellIs",
                  "expression"
                ]
              },
              "items": {
                "minItems": 1,
                "maxItems": 128,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 255
                }
              },
              "operator": {
                "type": "string",
                "enum": [
                  "between",
                  "notBetween",
                  "equal",
                  "notEqual",
                  "greaterThan",
                  "lessThan",
                  "greaterThanOrEqual",
                  "lessThanOrEqual"
                ]
              },
              "bounds": {
                "minItems": 1,
                "maxItems": 2,
                "type": "array",
                "items": {
                  "type": "number"
                }
              },
              "formula": {
                "type": "string",
                "minLength": 1,
                "maxLength": 8192
              },
              "formulas": {
                "minItems": 1,
                "maxItems": 2,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 8192
                }
              }
            },
            "required": [
              "type"
            ],
            "additionalProperties": false
          },
          "password": {
            "type": "string",
            "minLength": 1,
            "maxLength": 15,
            "pattern": "^[\\x20-\\x7e]+$"
          },
          "selectLocked": {
            "type": "boolean"
          },
          "selectUnlocked": {
            "type": "boolean"
          },
          "name": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 255,
                "pattern": "^[\\p{L}_\\\\][\\p{L}\\p{N}_.\\\\]*$"
              },
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              }
            ]
          },
          "cell": {
            "type": "string",
            "maxLength": 21,
            "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
          },
          "sourceSheet": {
            "type": "string",
            "minLength": 1,
            "maxLength": 31
          },
          "sourceRange": {
            "type": "string",
            "maxLength": 21,
            "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
          },
          "rowColumn": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          },
          "measures": {
            "minItems": 1,
            "maxItems": 8,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "column": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 255
                },
                "function": {
                  "type": "string",
                  "enum": [
                    "sum",
                    "count",
                    "min",
                    "max"
                  ]
                },
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 255
                }
              },
              "required": [
                "column",
                "function",
                "name"
              ],
              "additionalProperties": false
            }
          },
          "overwrite": {
            "type": "boolean"
          },
          "chartType": {
            "type": "string",
            "enum": [
              "column",
              "bar",
              "line",
              "pie"
            ]
          },
          "title": {
            "type": "string",
            "maxLength": 255
          },
          "width": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 100,
                "maximum": 2000
              },
              {
                "type": "integer",
                "minimum": 1,
                "maximum": 10000
              },
              {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 255
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            ]
          },
          "height": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 100,
                "maximum": 2000
              },
              {
                "type": "integer",
                "minimum": 1,
                "maximum": 10000
              },
              {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 409
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            ]
          },
          "series": {
            "minItems": 1,
            "maxItems": 16,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 255
                },
                "sheetName": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 31
                },
                "categories": {
                  "type": "string",
                  "maxLength": 21,
                  "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
                },
                "values": {
                  "type": "string",
                  "maxLength": 21,
                  "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
                }
              },
              "required": [
                "name",
                "sheetName",
                "categories",
                "values"
              ],
              "additionalProperties": false
            }
          },
          "target": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "internal"
                  },
                  "location": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 1024
                  }
                },
                "required": [
                  "kind",
                  "location"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "external"
                  },
                  "url": {
                    "type": "string",
                    "maxLength": 2048,
                    "format": "uri"
                  }
                },
                "required": [
                  "kind",
                  "url"
                ],
                "additionalProperties": false
              }
            ]
          },
          "tooltip": {
            "type": "string",
            "maxLength": 255
          },
          "display": {
            "type": "string",
            "maxLength": 32767
          },
          "text": {
            "type": "string",
            "maxLength": 32767
          },
          "author": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          },
          "mime": {
            "type": "string",
            "enum": [
              "image/png",
              "image/jpeg"
            ]
          },
          "data": {
            "type": "string",
            "minLength": 4,
            "maxLength": 7000000
          },
          "range": {
            "type": "string",
            "maxLength": 21,
            "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
          },
          "allowBlank": {
            "type": "boolean"
          },
          "errorStyle": {
            "type": "string",
            "enum": [
              "stop",
              "warning",
              "information"
            ]
          },
          "errorTitle": {
            "type": "string",
            "maxLength": 32
          },
          "error": {
            "type": "string",
            "maxLength": 225
          },
          "promptTitle": {
            "type": "string",
            "maxLength": 32
          },
          "prompt": {
            "type": "string",
            "maxLength": 255
          },
          "ranges": {
            "minItems": 1,
            "maxItems": 64,
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 21,
              "pattern": "^(?:[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?|[A-Za-z]{1,3}:[A-Za-z]{1,3}|[1-9][0-9]{0,6}:[1-9][0-9]{0,6})$"
            }
          },
          "priority": {
            "type": "integer",
            "minimum": 1,
            "maximum": 4096
          },
          "appearance": {
            "type": "object",
            "properties": {
              "font": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "size": {
                        "type": "number",
                        "minimum": 1,
                        "maximum": 409
                      },
                      "bold": {
                        "type": "boolean"
                      },
                      "italic": {
                        "type": "boolean"
                      },
                      "underline": {
                        "type": "boolean"
                      },
                      "strike": {
                        "type": "boolean"
                      },
                      "color": {
                        "type": "string",
                        "pattern": "^[0-9A-Fa-f]{6}(?:[0-9A-Fa-f]{2})?$"
                      }
                    },
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "fill": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[0-9A-Fa-f]{6}(?:[0-9A-Fa-f]{2})?$"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "additionalProperties": false
          },
          "stopIfTrue": {
            "type": "boolean"
          },
          "scope": {
            "type": "string",
            "enum": [
              "workbook",
              "sheet"
            ]
          },
          "values": {
            "minItems": 1,
            "maxItems": 1048576,
            "type": "array",
            "items": {
              "minItems": 1,
              "maxItems": 16384,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "enum": [
                      "text",
                      "number",
                      "boolean",
                      "blank",
                      "date",
                      "datetime"
                    ]
                  },
                  "value": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 32767
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      }
                    ]
                  }
                },
                "required": [
                  "kind"
                ],
                "additionalProperties": false
              }
            }
          },
          "style": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "numberFormat": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "font": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          },
                          "size": {
                            "type": "number",
                            "minimum": 1,
                            "maximum": 409
                          },
                          "bold": {
                            "type": "boolean"
                          },
                          "italic": {
                            "type": "boolean"
                          },
                          "underline": {
                            "type": "boolean"
                          },
                          "strike": {
                            "type": "boolean"
                          },
                          "color": {
                            "type": "string",
                            "pattern": "^[0-9A-Fa-f]{6}(?:[0-9A-Fa-f]{2})?$"
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "fill": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[0-9A-Fa-f]{6}(?:[0-9A-Fa-f]{2})?$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "border": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "left": {
                            "type": "object",
                            "properties": {
                              "style": {
                                "type": "string",
                                "enum": [
                                  "thin",
                                  "medium",
                                  "thick",
                                  "dashed",
                                  "dotted",
                                  "double",
                                  "hair",
                                  "none"
                                ]
                              },
                              "color": {
                                "type": "string",
                                "pattern": "^[0-9A-Fa-f]{6}(?:[0-9A-Fa-f]{2})?$"
                              }
                            },
                            "required": [
                              "style"
                            ],
                            "additionalProperties": false
                          },
                          "right": {
                            "type": "object",
                            "properties": {
                              "style": {
                                "type": "string",
                                "enum": [
                                  "thin",
                                  "medium",
                                  "thick",
                                  "dashed",
                                  "dotted",
                                  "double",
                                  "hair",
                                  "none"
                                ]
                              },
                              "color": {
                                "type": "string",
                                "pattern": "^[0-9A-Fa-f]{6}(?:[0-9A-Fa-f]{2})?$"
                              }
                            },
                            "required": [
                              "style"
                            ],
                            "additionalProperties": false
                          },
                          "top": {
                            "type": "object",
                            "properties": {
                              "style": {
                                "type": "string",
                                "enum": [
                                  "thin",
                                  "medium",
                                  "thick",
                                  "dashed",
                                  "dotted",
                                  "double",
                                  "hair",
                                  "none"
                                ]
                              },
                              "color": {
                                "type": "string",
                                "pattern": "^[0-9A-Fa-f]{6}(?:[0-9A-Fa-f]{2})?$"
                              }
                            },
                            "required": [
                              "style"
                            ],
                            "additionalProperties": false
                          },
                          "bottom": {
                            "type": "object",
                            "properties": {
                              "style": {
                                "type": "string",
                                "enum": [
                                  "thin",
                                  "medium",
                                  "thick",
                                  "dashed",
                                  "dotted",
                                  "double",
                                  "hair",
                                  "none"
                                ]
                              },
                              "color": {
                                "type": "string",
                                "pattern": "^[0-9A-Fa-f]{6}(?:[0-9A-Fa-f]{2})?$"
                              }
                            },
                            "required": [
                              "style"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "alignment": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "horizontal": {
                            "type": "string",
                            "enum": [
                              "general",
                              "left",
                              "center",
                              "right",
                              "fill",
                              "justify",
                              "centerContinuous",
                              "distributed"
                            ]
                          },
                          "vertical": {
                            "type": "string",
                            "enum": [
                              "top",
                              "center",
                              "bottom",
                              "justify",
                              "distributed"
                            ]
                          },
                          "wrapText": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "protection": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "locked": {
                            "type": "boolean"
                          },
                          "hidden": {
                            "type": "boolean"
                          }
                        },
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "string",
                "enum": [
                  "SezzleeBlue",
                  "none"
                ]
              }
            ]
          },
          "first": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1,
                "maximum": 16384
              },
              {
                "type": "integer",
                "minimum": 1,
                "maximum": 1048576
              }
            ]
          },
          "last": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1,
                "maximum": 16384
              },
              {
                "type": "integer",
                "minimum": 1,
                "maximum": 1048576
              }
            ]
          },
          "hidden": {
            "type": "boolean"
          },
          "rows": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1048575
          },
          "columns": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 16383
              },
              {
                "maxItems": 1024,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "column": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255
                    }
                  },
                  "required": [
                    "column",
                    "name"
                  ],
                  "additionalProperties": false
                }
              }
            ]
          },
          "state": {
            "type": "string",
            "enum": [
              "visible",
              "hidden",
              "veryHidden"
            ]
          },
          "orientation": {
            "type": "string",
            "enum": [
              "portrait",
              "landscape"
            ]
          },
          "paper": {
            "type": "string",
            "enum": [
              "A4",
              "letter",
              "legal"
            ]
          },
          "margins": {
            "type": "object",
            "properties": {
              "left": {
                "type": "number",
                "minimum": 0,
                "maximum": 10
              },
              "right": {
                "type": "number",
                "minimum": 0,
                "maximum": 10
              },
              "top": {
                "type": "number",
                "minimum": 0,
                "maximum": 10
              },
              "bottom": {
                "type": "number",
                "minimum": 0,
                "maximum": 10
              },
              "header": {
                "type": "number",
                "minimum": 0,
                "maximum": 10
              },
              "footer": {
                "type": "number",
                "minimum": 0,
                "maximum": 10
              }
            },
            "required": [
              "left",
              "right",
              "top",
              "bottom",
              "header",
              "footer"
            ],
            "additionalProperties": false
          },
          "fitWidth": {
            "type": "integer",
            "minimum": 0,
            "maximum": 32767
          },
          "fitHeight": {
            "type": "integer",
            "minimum": 0,
            "maximum": 32767
          },
          "scale": {
            "type": "integer",
            "minimum": 10,
            "maximum": 400
          },
          "printArea": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 21,
                "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
              },
              {
                "type": "null"
              }
            ]
          },
          "titleRows": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "first": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1048576
                  },
                  "last": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 1048576
                  }
                },
                "required": [
                  "first",
                  "last"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "titleColumns": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "first": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 16384
                  },
                  "last": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 16384
                  }
                },
                "required": [
                  "first",
                  "last"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "loss": {
            "type": "string",
            "enum": [
              "reject",
              "discard_non_anchor"
            ]
          },
          "formula": {
            "type": "string",
            "minLength": 1,
            "maxLength": 8192
          },
          "anchor": {
            "type": "string",
            "maxLength": 21,
            "pattern": "^[A-Za-z]{1,3}[1-9][0-9]{0,6}(?::[A-Za-z]{1,3}[1-9][0-9]{0,6})?$"
          },
          "filter": {
            "type": "boolean"
          },
          "totals": {
            "anyOf": [
              {
                "maxItems": 1024,
                "type": "array",
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "label"
                        },
                        "column": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "text": {
                          "type": "string",
                          "maxLength": 255
                        }
                      },
                      "required": [
                        "kind",
                        "column",
                        "text"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "function"
                        },
                        "column": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "function": {
                          "type": "string",
                          "enum": [
                            "sum",
                            "average",
                            "count",
                            "countNums",
                            "min",
                            "max",
                            "stdDev",
                            "var"
                          ]
                        }
                      },
                      "required": [
                        "kind",
                        "column",
                        "function"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "formula"
                        },
                        "column": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "formula": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 8192
                        }
                      },
                      "required": [
                        "kind",
                        "column",
                        "formula"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              {
                "anyOf": [
                  {
                    "maxItems": 1024,
                    "type": "array",
                    "items": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "label"
                            },
                            "column": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "text": {
                              "type": "string",
                              "maxLength": 255
                            }
                          },
                          "required": [
                            "kind",
                            "column",
                            "text"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "function"
                            },
                            "column": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "function": {
                              "type": "string",
                              "enum": [
                                "sum",
                                "average",
                                "count",
                                "countNums",
                                "min",
                                "max",
                                "stdDev",
                                "var"
                              ]
                            }
                          },
                          "required": [
                            "kind",
                            "column",
                            "function"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "const": "formula"
                            },
                            "column": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "formula": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 8192
                            }
                          },
                          "required": [
                            "kind",
                            "column",
                            "formula"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            ]
          },
          "calculatedColumns": {
            "maxItems": 1024,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "column": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 255
                },
                "formula": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 8192
                }
              },
              "required": [
                "column",
                "formula"
              ],
              "additionalProperties": false
            }
          },
          "tableName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "pattern": "^[\\p{L}_\\\\][\\p{L}\\p{N}_.\\\\]*$"
          },
          "clearRemovedValues": {
            "type": "boolean"
          }
        },
        "required": [
          "kind",
          "sheetName"
        ],
        "additionalProperties": false
      }
    }
  },
  "required": [
    "sheets"
  ],
  "additionalProperties": false
}

edit_workbook

Publish the immutable output of a ready prepare_edit response. Send only preparationId from the same server session within 15 minutes; never repeat source or changes here. Sources are checked again before first publication. Retrying the same id returns its verified output receipt without applying another edit. To change the plan or branch from an earlier version, call prepare_edit again. Originals never change. Formula caches are not calculated; report recalculation required when indicated.

Annotations: non-destructive, closed world.

Available only with --write <relative-output-directory>. The registered JSON Schema below is the exact wire contract; nested operation variants are validated by the server.

Input JSON Schema
json
{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "preparationId": {
      "type": "string",
      "format": "uuid",
      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    }
  },
  "required": [
    "preparationId"
  ],
  "additionalProperties": false
}

create_workbook_version

Prepare an immutable .xlsx output version from an existing source. The source is unchanged. Returns its content version and relative output path, not its cells. Repeating the same content reuses the output. This prepares a version; it does not create a new workbook or edit cells.

Annotations: non-destructive, closed world.

Available only with --write <relative-output-directory>. The registered JSON Schema below is the exact wire contract; nested operation variants are validated by the server.

Input JSON Schema
json
{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "filePath": {
      "type": "string",
      "minLength": 1,
      "maxLength": 32768
    },
    "expectedVersion": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$"
        },
        {
          "type": "object",
          "properties": {
            "filePath": {
              "type": "string",
              "minLength": 1,
              "maxLength": 32768
            },
            "versionId": {
              "type": "string",
              "pattern": "^[a-f0-9]{64}$"
            }
          },
          "required": [
            "filePath",
            "versionId"
          ],
          "additionalProperties": false
        }
      ]
    }
  },
  "required": [
    "filePath"
  ],
  "additionalProperties": false
}