farseer-cli 1.15.0 → 1.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commands/model.js +14 -4
- package/dist/commands/model.js.map +2 -2
- package/dist/pipeline/generated-reference.json +30 -30
- package/dist/pipeline/service.js +1 -1
- package/dist/pipeline/service.js.map +1 -1
- package/docs/pipeline-client-guide.md +2 -2
- package/docs/pipeline-reference.md +156 -99
- package/package.json +1 -1
- package/skills/pipeline-authoring/SKILL.md +10 -8
- package/skills/pipeline-authoring/practices.md +39 -25
package/dist/commands/model.js
CHANGED
|
@@ -25,6 +25,7 @@ var import_logger = require("../utils/logger");
|
|
|
25
25
|
var import_authErrors = require("../services/authErrors");
|
|
26
26
|
var import_preflight = require("../services/preflight");
|
|
27
27
|
var import_modelExport = require("../services/modelExport");
|
|
28
|
+
var import_nameResolver = require("../utils/nameResolver");
|
|
28
29
|
function registerModelCommand(program) {
|
|
29
30
|
program.command("model [tenant]").description("Export and display the model structure (dimensions, variables)").option("--json", "Output raw JSON").option("--tables", "Show only dimension tables").option("--variables", "Show only variables").option("--variable <name>", "Show details for specific variable").option("--table <name>", "Show details for specific dimension table").action(async (tenantArg, options) => {
|
|
30
31
|
const { tenant, client: api } = await (0, import_preflight.preflight)(tenantArg);
|
|
@@ -54,14 +55,19 @@ function registerModelCommand(program) {
|
|
|
54
55
|
} else {
|
|
55
56
|
model = await api.exportModel({ types: ["DTAB", "VAR"] });
|
|
56
57
|
}
|
|
57
|
-
if (options.json) {
|
|
58
|
+
if (options.json && !options.variable) {
|
|
58
59
|
console.log(JSON.stringify(model, null, 2));
|
|
59
60
|
return;
|
|
60
61
|
}
|
|
61
62
|
if (options.variable) {
|
|
62
|
-
const
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
const matches = (0, import_nameResolver.matchByName)(model.variables, options.variable);
|
|
64
|
+
if (matches.length > 1) {
|
|
65
|
+
import_logger.logger.error(
|
|
66
|
+
(0, import_nameResolver.formatAmbiguous)("variables", options.variable, matches, (v) => String(v.gid ?? v.name))
|
|
67
|
+
);
|
|
68
|
+
process.exit(1);
|
|
69
|
+
}
|
|
70
|
+
const variable = matches[0];
|
|
65
71
|
if (!variable) {
|
|
66
72
|
import_logger.logger.error(`Variable "${options.variable}" not found.`);
|
|
67
73
|
import_logger.logger.dim("Available variables:");
|
|
@@ -71,6 +77,10 @@ function registerModelCommand(program) {
|
|
|
71
77
|
}
|
|
72
78
|
process.exit(1);
|
|
73
79
|
}
|
|
80
|
+
if (options.json) {
|
|
81
|
+
console.log(JSON.stringify(variable, null, 2));
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
74
84
|
import_logger.logger.header(`Variable: ${variable.name}`);
|
|
75
85
|
console.log();
|
|
76
86
|
if (variable.description) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/commands/model.ts"],
|
|
4
|
-
"sourcesContent": ["import { Command } from 'commander';\nimport { logger } from '../utils/logger';\nimport { showLoginPrompt, isAuthError } from '../services/authErrors';\nimport { preflight } from '../services/preflight';\nimport { formatVariableMembers } from '../services/modelExport';\n\nexport function registerModelCommand(program: Command): void {\n program\n .command('model [tenant]')\n .description('Export and display the model structure (dimensions, variables)')\n .option('--json', 'Output raw JSON')\n .option('--tables', 'Show only dimension tables')\n .option('--variables', 'Show only variables')\n .option('--variable <name>', 'Show details for specific variable')\n .option('--table <name>', 'Show details for specific dimension table')\n .action(async (tenantArg, options) => {\n const { tenant, client: api } = await preflight(tenantArg);\n\n try {\n // Pick the smallest scope that satisfies the requested\n // output. An unscoped DTAB+DMEM+VAR fetch breaks the\n // response limit on large tenants; `--json` is the\n // worst case because it asks for the whole thing.\n let model;\n if (options.variable || options.variables) {\n model = await api.exportModel({ types: ['VAR'] });\n } else if (options.table) {\n // Single-table member fetch via entities API.\n // `/model/export` with `tableGids` 500s for some\n // tables on large tenants (separate backend bug);\n // the entities path is reliable.\n const table = await api.loadDimensionTableWithMembers(options.table);\n if (!table) {\n logger.error(`Table \"${options.table}\" not found.`);\n const summary = await api.exportModel({ types: ['DTAB'] });\n logger.dim('Available tables:');\n summary.tables.slice(0, 10).forEach((t) => logger.dim(` - ${t.name}`));\n if (summary.tables.length > 10) {\n logger.dim(` ... and ${summary.tables.length - 10} more`);\n }\n process.exit(1);\n }\n model = {\n tables: [table],\n variables: [],\n dependencies: { tables: [], members: [], variables: [] },\n };\n } else if (options.tables) {\n model = await api.exportModel({ types: ['DTAB'] });\n } else {\n // Default summary view \u2014 counts of tables /\n // variables and a name preview, no member rows.\n model = await api.exportModel({ types: ['DTAB', 'VAR'] });\n }\n\n // Raw JSON output\n if (options.json) {\n console.log(JSON.stringify(model, null, 2));\n return;\n }\n\n // Specific variable details\n if (options.variable) {\n const variable = model.variables.find(\n (v) => v.name.toLowerCase() === options.variable.toLowerCase(),\n );\n if (!variable) {\n logger.error(`Variable \"${options.variable}\" not found.`);\n logger.dim('Available variables:');\n model.variables.slice(0, 10).forEach((v) => logger.dim(` - ${v.name}`));\n if (model.variables.length > 10) {\n logger.dim(` ... and ${model.variables.length - 10} more`);\n }\n process.exit(1);\n }\n\n logger.header(`Variable: ${variable.name}`);\n console.log();\n if (variable.description) {\n console.log(` Description: ${variable.description}`);\n }\n if (variable.formula) {\n console.log(` Formula: ${variable.formula}`);\n }\n console.log(` Dimensions: ${variable.tables.join(', ')}`);\n if (variable.members.length > 0) {\n console.log(` Specific members: ${formatVariableMembers(variable.members)}`);\n }\n console.log(` Roll-up type: ${variable.rollupType}`);\n console.log(` Data type: ${variable.dataType}`);\n if (variable.numberFormat) {\n console.log(\n ` Format: ${variable.numberFormat.type}${variable.numberFormat.formatString ? ` (${variable.numberFormat.formatString})` : ''}`,\n );\n }\n console.log(` Readonly: ${variable.readonly}`);\n console.log(` Calculate on demand: ${variable.calculateOnDemand}`);\n if (variable.folderPath) {\n console.log(` Folder: ${variable.folderPath.join(' / ')}`);\n }\n return;\n }\n\n // Specific table details. The dispatch above already\n // resolved name \u2192 single-table fetch and exited if the\n // table didn't exist, so model.tables is exactly [target].\n if (options.table) {\n const table = model.tables[0];\n\n logger.header(`Dimension Table: ${table.name}`);\n console.log();\n console.log(` Columns:`);\n table.columns.forEach((col, i) => {\n let colInfo = ` ${i + 1}. ${col.type}`;\n if (col.name) colInfo += ` (${col.name})`;\n if (col.foreignKeyTableName) colInfo += ` \u2192 ${col.foreignKeyTableName}`;\n console.log(colInfo);\n });\n console.log(` Members: ${table.rows.length}`);\n if (table.folderPath) {\n console.log(` Folder: ${table.folderPath.join(' / ')}`);\n }\n if (table.rows.length > 0) {\n console.log(` Sample members:`);\n table.rows.slice(0, 5).forEach((row) => {\n console.log(` - ${row[0]}`);\n });\n if (table.rows.length > 5) {\n console.log(` ... and ${table.rows.length - 5} more`);\n }\n }\n return;\n }\n\n // Tables only\n if (options.tables) {\n logger.header(`Dimension Tables (${model.tables.length})`);\n console.log();\n for (const table of model.tables) {\n const fkColumns = table.columns.filter((c) => c.type === 'FOREIGN_KEY');\n let info = ` \uD83D\uDCCB ${table.name}`;\n if (fkColumns.length > 0) {\n info += ` \u2192 ${fkColumns.map((c) => c.foreignKeyTableName).join(', ')}`;\n }\n console.log(info);\n }\n logger.dim('Run with --table <name> to see members for a specific table.');\n return;\n }\n\n // Variables only\n if (options.variables) {\n logger.header(`Variables (${model.variables.length})`);\n console.log();\n for (const variable of model.variables) {\n console.log(` \uD83D\uDCCA ${variable.name}`);\n console.log(` Dimensions: ${variable.tables.join(', ')}`);\n if (variable.formula) {\n console.log(\n ` Formula: ${variable.formula.substring(0, 50)}${variable.formula.length > 50 ? '...' : ''}`,\n );\n }\n console.log();\n }\n return;\n }\n\n // Default: summary\n logger.header(`Model Summary for ${tenant}`);\n console.log();\n console.log(` Dimension Tables: ${model.tables.length}`);\n console.log(` Variables: ${model.variables.length}`);\n console.log();\n\n logger.dim('Dimension Tables:');\n model.tables.slice(0, 10).forEach((t) => {\n logger.dim(` - ${t.name}`);\n });\n if (model.tables.length > 10) {\n logger.dim(` ... and ${model.tables.length - 10} more`);\n }\n console.log();\n\n logger.dim('Variables (first 10):');\n model.variables.slice(0, 10).forEach((v) => {\n logger.dim(` - ${v.name} [${v.tables.join(', ')}]`);\n });\n if (model.variables.length > 10) {\n logger.dim(` ... and ${model.variables.length - 10} more`);\n }\n console.log();\n\n logger.dim('Use --tables, --variables, --table <name>, or --variable <name> for details.');\n logger.dim('Use --json for raw JSON output.');\n } catch (error) {\n const errorMessage = error instanceof Error ? error.message : String(error);\n\n if (isAuthError(error)) {\n showLoginPrompt(tenant);\n } else if (errorMessage.includes('404')) {\n logger.error(`Tenant \"${tenant}\" not found or not accessible.`);\n logger.dim('Check that the tenant name is correct.');\n } else if (errorMessage.includes('ENOTFOUND') || errorMessage.includes('ECONNREFUSED')) {\n logger.error('Failed to connect to Farseer.');\n logger.dim('Check your network connection.');\n } else {\n logger.error('Failed to export model.');\n logger.dim(errorMessage);\n }\n process.exit(1);\n }\n });\n}\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,oBAAuB;AACvB,wBAA6C;AAC7C,uBAA0B;AAC1B,yBAAsC;
|
|
4
|
+
"sourcesContent": ["import { Command } from 'commander';\nimport { logger } from '../utils/logger';\nimport { showLoginPrompt, isAuthError } from '../services/authErrors';\nimport { preflight } from '../services/preflight';\nimport { formatVariableMembers } from '../services/modelExport';\nimport { formatAmbiguous, matchByName } from '../utils/nameResolver';\n\nexport function registerModelCommand(program: Command): void {\n program\n .command('model [tenant]')\n .description('Export and display the model structure (dimensions, variables)')\n .option('--json', 'Output raw JSON')\n .option('--tables', 'Show only dimension tables')\n .option('--variables', 'Show only variables')\n .option('--variable <name>', 'Show details for specific variable')\n .option('--table <name>', 'Show details for specific dimension table')\n .action(async (tenantArg, options) => {\n const { tenant, client: api } = await preflight(tenantArg);\n\n try {\n // Pick the smallest scope that satisfies the requested\n // output. An unscoped DTAB+DMEM+VAR fetch breaks the\n // response limit on large tenants; `--json` is the\n // worst case because it asks for the whole thing.\n let model;\n if (options.variable || options.variables) {\n model = await api.exportModel({ types: ['VAR'] });\n } else if (options.table) {\n // Single-table member fetch via entities API.\n // `/model/export` with `tableGids` 500s for some\n // tables on large tenants (separate backend bug);\n // the entities path is reliable.\n const table = await api.loadDimensionTableWithMembers(options.table);\n if (!table) {\n logger.error(`Table \"${options.table}\" not found.`);\n const summary = await api.exportModel({ types: ['DTAB'] });\n logger.dim('Available tables:');\n summary.tables.slice(0, 10).forEach((t) => logger.dim(` - ${t.name}`));\n if (summary.tables.length > 10) {\n logger.dim(` ... and ${summary.tables.length - 10} more`);\n }\n process.exit(1);\n }\n model = {\n tables: [table],\n variables: [],\n dependencies: { tables: [], members: [], variables: [] },\n };\n } else if (options.tables) {\n model = await api.exportModel({ types: ['DTAB'] });\n } else {\n // Default summary view \u2014 counts of tables /\n // variables and a name preview, no member rows.\n model = await api.exportModel({ types: ['DTAB', 'VAR'] });\n }\n\n // Raw JSON output; a requested variable is narrowed to first, below.\n if (options.json && !options.variable) {\n console.log(JSON.stringify(model, null, 2));\n return;\n }\n\n // Specific variable details\n if (options.variable) {\n const matches = matchByName(model.variables, options.variable);\n if (matches.length > 1) {\n logger.error(\n formatAmbiguous('variables', options.variable, matches, (v) => String(v.gid ?? v.name)),\n );\n process.exit(1);\n }\n const variable = matches[0];\n if (!variable) {\n logger.error(`Variable \"${options.variable}\" not found.`);\n logger.dim('Available variables:');\n model.variables.slice(0, 10).forEach((v) => logger.dim(` - ${v.name}`));\n if (model.variables.length > 10) {\n logger.dim(` ... and ${model.variables.length - 10} more`);\n }\n process.exit(1);\n }\n if (options.json) {\n console.log(JSON.stringify(variable, null, 2));\n return;\n }\n\n logger.header(`Variable: ${variable.name}`);\n console.log();\n if (variable.description) {\n console.log(` Description: ${variable.description}`);\n }\n if (variable.formula) {\n console.log(` Formula: ${variable.formula}`);\n }\n console.log(` Dimensions: ${variable.tables.join(', ')}`);\n if (variable.members.length > 0) {\n console.log(` Specific members: ${formatVariableMembers(variable.members)}`);\n }\n console.log(` Roll-up type: ${variable.rollupType}`);\n console.log(` Data type: ${variable.dataType}`);\n if (variable.numberFormat) {\n console.log(\n ` Format: ${variable.numberFormat.type}${variable.numberFormat.formatString ? ` (${variable.numberFormat.formatString})` : ''}`,\n );\n }\n console.log(` Readonly: ${variable.readonly}`);\n console.log(` Calculate on demand: ${variable.calculateOnDemand}`);\n if (variable.folderPath) {\n console.log(` Folder: ${variable.folderPath.join(' / ')}`);\n }\n return;\n }\n\n // Specific table details. The dispatch above already\n // resolved name \u2192 single-table fetch and exited if the\n // table didn't exist, so model.tables is exactly [target].\n if (options.table) {\n const table = model.tables[0];\n\n logger.header(`Dimension Table: ${table.name}`);\n console.log();\n console.log(` Columns:`);\n table.columns.forEach((col, i) => {\n let colInfo = ` ${i + 1}. ${col.type}`;\n if (col.name) colInfo += ` (${col.name})`;\n if (col.foreignKeyTableName) colInfo += ` \u2192 ${col.foreignKeyTableName}`;\n console.log(colInfo);\n });\n console.log(` Members: ${table.rows.length}`);\n if (table.folderPath) {\n console.log(` Folder: ${table.folderPath.join(' / ')}`);\n }\n if (table.rows.length > 0) {\n console.log(` Sample members:`);\n table.rows.slice(0, 5).forEach((row) => {\n console.log(` - ${row[0]}`);\n });\n if (table.rows.length > 5) {\n console.log(` ... and ${table.rows.length - 5} more`);\n }\n }\n return;\n }\n\n // Tables only\n if (options.tables) {\n logger.header(`Dimension Tables (${model.tables.length})`);\n console.log();\n for (const table of model.tables) {\n const fkColumns = table.columns.filter((c) => c.type === 'FOREIGN_KEY');\n let info = ` \uD83D\uDCCB ${table.name}`;\n if (fkColumns.length > 0) {\n info += ` \u2192 ${fkColumns.map((c) => c.foreignKeyTableName).join(', ')}`;\n }\n console.log(info);\n }\n logger.dim('Run with --table <name> to see members for a specific table.');\n return;\n }\n\n // Variables only\n if (options.variables) {\n logger.header(`Variables (${model.variables.length})`);\n console.log();\n for (const variable of model.variables) {\n console.log(` \uD83D\uDCCA ${variable.name}`);\n console.log(` Dimensions: ${variable.tables.join(', ')}`);\n if (variable.formula) {\n console.log(\n ` Formula: ${variable.formula.substring(0, 50)}${variable.formula.length > 50 ? '...' : ''}`,\n );\n }\n console.log();\n }\n return;\n }\n\n // Default: summary\n logger.header(`Model Summary for ${tenant}`);\n console.log();\n console.log(` Dimension Tables: ${model.tables.length}`);\n console.log(` Variables: ${model.variables.length}`);\n console.log();\n\n logger.dim('Dimension Tables:');\n model.tables.slice(0, 10).forEach((t) => {\n logger.dim(` - ${t.name}`);\n });\n if (model.tables.length > 10) {\n logger.dim(` ... and ${model.tables.length - 10} more`);\n }\n console.log();\n\n logger.dim('Variables (first 10):');\n model.variables.slice(0, 10).forEach((v) => {\n logger.dim(` - ${v.name} [${v.tables.join(', ')}]`);\n });\n if (model.variables.length > 10) {\n logger.dim(` ... and ${model.variables.length - 10} more`);\n }\n console.log();\n\n logger.dim('Use --tables, --variables, --table <name>, or --variable <name> for details.');\n logger.dim('Use --json for raw JSON output.');\n } catch (error) {\n const errorMessage = error instanceof Error ? error.message : String(error);\n\n if (isAuthError(error)) {\n showLoginPrompt(tenant);\n } else if (errorMessage.includes('404')) {\n logger.error(`Tenant \"${tenant}\" not found or not accessible.`);\n logger.dim('Check that the tenant name is correct.');\n } else if (errorMessage.includes('ENOTFOUND') || errorMessage.includes('ECONNREFUSED')) {\n logger.error('Failed to connect to Farseer.');\n logger.dim('Check your network connection.');\n } else {\n logger.error('Failed to export model.');\n logger.dim(errorMessage);\n }\n process.exit(1);\n }\n });\n}\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"formatVersion": 1,
|
|
3
|
-
"engineVersion": "
|
|
4
|
-
"engineProfile": "
|
|
5
|
-
"runnerImage": "runner-python-simple-pipelines:1.
|
|
3
|
+
"engineVersion": "3.0.0",
|
|
4
|
+
"engineProfile": "3.0",
|
|
5
|
+
"runnerImage": "runner-python-simple-pipelines:1.14.0",
|
|
6
6
|
"sourceHashes": {
|
|
7
|
-
"data-platform/packages/simple-pipelines/src/farseer_simple_pipelines/schema.py": "
|
|
8
|
-
"data-platform/packages/simple-pipelines/pyproject.toml": "
|
|
7
|
+
"data-platform/packages/simple-pipelines/src/farseer_simple_pipelines/schema.py": "f2b6408e74e1312bd7cc105df7055a08a1cf5fc8fadcf3b8e8897ac704758706",
|
|
8
|
+
"data-platform/packages/simple-pipelines/pyproject.toml": "13e888969318f6fbac59d31f65d3295e075f004bbde6991fa0b24af1093fa608",
|
|
9
9
|
"tools/pipeline/generate_docs.py": "3a3639b1421f06ed816a35def8861fc42104324eff3c38892ae8367bf877e4cc",
|
|
10
|
-
"runner-images/VERSION": "
|
|
11
|
-
"runner-images/python-simple-pipelines/pyproject.toml": "
|
|
12
|
-
"tools/pipeline/examples/FarseerFilesExtractConfig.yaml": "
|
|
10
|
+
"runner-images/VERSION": "bb0df1bd902faba507c15975eb9973e695f2732f760d851b4f9c7ba17068f5ff",
|
|
11
|
+
"runner-images/python-simple-pipelines/pyproject.toml": "3b99503f425c7f0941a432d813b16c5bb5a0f9260ed2c0f7c00d697b7d950c45",
|
|
12
|
+
"tools/pipeline/examples/FarseerFilesExtractConfig.yaml": "20950da2f5413833dcaa1e700f13dd0597530c5a17d75ed96e35d6e3ca87eaa4",
|
|
13
13
|
"tools/pipeline/examples/LoadCellsConfig.yaml": "2b56bd84e35765b616916c21c98fd306e2b93127358979777a77083991ac8bf1",
|
|
14
|
-
"tools/pipeline/examples/
|
|
14
|
+
"tools/pipeline/examples/ParseConfig.yaml": "c5b2deada46ba2edbe29410a37d4b3fd53ffd231d506417a5990cdd3c2d7f8ac",
|
|
15
|
+
"tools/pipeline/examples/TransformConfig.yaml": "68ac2f4364667ea549bf0b635f50cc08e1fb53943196cdede10986906bb8f729"
|
|
15
16
|
},
|
|
16
17
|
"notice": "Generated from Pydantic's validation schema using YAML aliases. This describes rendered dataset definitions, not discovery/template directives. Descriptions come from the models; Python validators may impose additional cross-field rules. Read the method guide for the supported pipeline subset. Optional fields without a literal default may use a default factory. Runtime-derived fields are listed separately and must not be authored in YAML.",
|
|
17
18
|
"topics": {
|
|
18
|
-
"DatasetDefinition": "## DatasetDefinition\n\nValidated representation of a single dataset YAML file.\n\n- Set exactly the configuration block matching type: extract, transform, load or export.\n- For load/export, deps must match the explicitly referenced source_dataset names in both directions. Use qualified names verbatim.\n- Authored pipelines are validated before any source is read: sql_file and farseer_credentials are refused; read the method guide before using this full engine reference.\n- Steps run in dependency order, and steps at the same depth run in name order, so a quality check or reconciliation runs before a load only if the load's source dataset depends on it.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `schema_version` | integer | no | `1` | minimum=`1` |\n| `name` | string | yes | none | |\n| `type` | [StepType](#steptype) | yes | none | |\n| `deps` | array of string | no | none | |\n| `description` | string | no | `\"\"` | |\n| `extract` | [ExtractConfig](#extractconfig) or null | no | `null` | |\n| `transform` | [TransformConfig](#transformconfig) or null | no | `null` | |\n| `load` | [LoadConfig](#loadconfig) or null | no | `null` | |\n| `export` | [ExportConfig](#exportconfig) or null | no | `null` | |\n| `schema` | [DataSchema](#dataschema) or null | no | `null` | |\n| `quality_rules` | array of [QualityRuleEntry](#qualityruleentry) | no | none | |\n| `write_mode` | [WriteMode](#writemode) | no | `\"overwrite\"` | |\n| `merge_keys` | array of string | no | none | |\n\nRuntime-derived; do not set in YAML: `qualified_name`, `namespace`, `source_path`, `render_context`.\n",
|
|
19
|
+
"DatasetDefinition": "## DatasetDefinition\n\nValidated representation of a single dataset YAML file.\n\n- Set exactly the configuration block matching type: extract, parse, transform, load or export.\n- For load/export, deps must match the explicitly referenced source_dataset names in both directions. Use qualified names verbatim.\n- Authored pipelines are validated before any source is read: sql_file and farseer_credentials are refused; read the method guide before using this full engine reference.\n- Steps run in dependency order, and steps at the same depth run in name order, so a quality check or reconciliation runs before a load only if the load's source dataset depends on it.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `schema_version` | integer | no | `1` | minimum=`1` |\n| `name` | string | yes | none | |\n| `type` | [StepType](#steptype) | yes | none | |\n| `deps` | array of string | no | none | |\n| `description` | string | no | `\"\"` | |\n| `extract` | [ExtractConfig](#extractconfig) or null | no | `null` | |\n| `parse` | [ParseConfig](#parseconfig) or null | no | `null` | |\n| `transform` | [TransformConfig](#transformconfig) or null | no | `null` | |\n| `load` | [LoadConfig](#loadconfig) or null | no | `null` | |\n| `export` | [ExportConfig](#exportconfig) or null | no | `null` | |\n| `schema` | [DataSchema](#dataschema) or null | no | `null` | |\n| `quality_rules` | array of [QualityRuleEntry](#qualityruleentry) | no | none | |\n| `write_mode` | [WriteMode](#writemode) | no | `\"overwrite\"` | |\n| `merge_keys` | array of string | no | none | |\n\nRuntime-derived; do not set in YAML: `qualified_name`, `namespace`, `source_path`, `render_context`.\n",
|
|
19
20
|
"BusinessCentralExtractConfig": "## BusinessCentralExtractConfig\n\nExtraction settings for Microsoft Dynamics 365 Business Central.\n\nReads through the OData V4 API, authenticating with the OAuth2\nclient-credentials flow against Azure AD. Requires an Azure AD app\nregistration consented in the BC tenant (typical permission:\n`Dynamics 365 Business Central / app_access`). Credentials (`tenant_id`,\n`client_id`, `client_secret`) are supplied as YAML fields — typically\ntemplated via `{{ pipeline_args.NAME }}` so a Remote Job's secret\n`expectedArguments` flow through at discovery time.\n\nA BC URL is composed as:\n\n {api_base}/{bc_tenant_id}/{environment}/api/{publisher}/{api_group}/{api_version}/companies({company_guid})/{entity}\n\nThe four URL-path fields (`publisher`, `api_group`, `entity`,\n`api_version`) are kept separate so that authors can't accidentally\nglue them into a malformed path; the same structure also lets the\nextractor log one stable summary regardless of which entity is fetched.\n\n`bc_tenant_id` is the *BC* tenant GUID (the one that appears in the\nAPI URL) and may differ from `tenant_id` (the Azure AD tenant GUID\nused for the token endpoint), although in practice they are usually\nthe same.\n\n`filter` is an OData `$filter` expression (e.g.\n`\"postingDateYear eq 2025\"`) — server-side filtering, so it scales\nindependent of pagination. `select` projects a subset of fields\nserver-side; useful when the response payload is dominated by\ncolumns the pipeline does not need.\n\nPagination follows `@odata.nextLink` until exhausted. `page_size`\nis forwarded to BC as `?$top=` — leave unset to accept BC's default\n(20,000 rows per page); set it to a smaller value when running\nagainst a slow connection or to force a multi-page test on a small\nentity.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `bc_tenant_id` | string | yes | none | |\n| `environment` | string | yes | none | |\n| `publisher` | string | yes | none | |\n| `api_group` | string | yes | none | |\n| `company_guid` | string | yes | none | |\n| `entity` | string | yes | none | |\n| `api_version` | string | no | `\"v1.0\"` | |\n| `filter` | string or null | no | `null` | |\n| `select` | string or null | no | `null` | |\n| `page_size` | integer or null | no | `null` | integer: exclusiveMinimum=`0` |\n| `tenant_id` | string or null | no | `null` | |\n| `client_id` | string or null | no | `null` | |\n| `client_secret` | string or null | no | `null` | |\n",
|
|
20
|
-
"CSVWriteOptions": "## CSVWriteOptions\n\nOptions for DataFrame → CSV serialization on export.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `separator` | string | no | `\",\"` | |\n| `decimal` | string | no | `\".\"` | |\n| `encoding` | string | no | `\"utf-8\"` | |\n| `include_header` | boolean | no | `true` | |\n| `lineterminator` | string | no | `\"\\n\"` | minLength=`1` |\n",
|
|
21
21
|
"CellsOptions": "## CellsOptions\n\nPer-entry options for cell value import.\n\nRows that land on the same coordinates in one import are summed, so the\nsource should already hold one row per cell.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `overwrite_cells` | boolean | yes | none | true replaces the existing value of every coordinate in this import; cells for coordinates not in the import keep their values. false refuses the whole import if any target cell already holds a value, so a rerun fails. |\n| `import_zeros` | boolean | no | `true` | false drops rows whose value is 0, so a value that fell to zero keeps its old number. |\n| `create_missing_members` | boolean | no | `false` | When true, members that appear in mapped source columns but not in the model are created during the import. Fixed dimension members are not created: each must already exist, or be written by a dimension load earlier in the same run. |\n| `missing_member_policy` | `\"DISALLOW\"`, `\"USE_DEFAULT\"`, `\"SKIP_ROW\"` | no | `\"DISALLOW\"` | What happens to a source value a dimension does not have: DISALLOW fails the whole import, USE_DEFAULT books the row to the table's default member, SKIP_ROW drops the row without counting it. |\n| `labels` | array of string | no | none | Stored on the import job; the engine adds pipeline:<load qualified name>. undo_previous finds earlier imports by all of them, so name exactly the slice one run owns. |\n| `undo_previous` | boolean | no | `false` | After this import commits, undo every earlier import carrying all the same labels. Undo deletes that import's cells and never restores the values they replaced; a failed undo is only a warning. |\n| `review_gate` | [ReviewGateConfig](#reviewgateconfig) or null | no | `null` | |\n| `allow_empty` | boolean | no | `false` | true turns a source with zero rows into a no-op instead of an error. Mapped columns must still be present, and nothing is undone. |\n",
|
|
22
22
|
"ColumnSchema": "## ColumnSchema\n\nSchema definition for a single column.\n\n`quality_rules:` carries the column's single-column quality rules —\neach one applies to *this* column with no further reference needed.\nRelational rules (which span multiple columns) sit in the top-level\n`quality_rules:` block on the dataset, not here.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `name` | string | yes | none | |\n| `type` | `\"str\"`, `\"int\"`, `\"float\"`, `\"datetime\"`, `\"bool\"`, `\"list[str]\"` or null | no | `null` | |\n| `not_null` | boolean | no | `false` | |\n| `quality_rules` | array of [QualityRuleEntry](#qualityruleentry) | no | none | |\n",
|
|
23
23
|
"ConflictBehavior": "## ConflictBehavior\n\nHow the target should resolve an existing file at the destination path.\n\nMirrors Microsoft Graph's `@microsoft.graph.conflictBehavior` values\nsince SharePoint is the first target; other targets adapt to their\nown semantics (e.g. SFTP may have no equivalent of `rename`).\n\nValues: `\"replace\"`, `\"rename\"`, `\"fail\"`\n",
|
|
24
24
|
"Connection": "## Connection\n\nMaps a source column to a target dimension table (foreign key).\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `source_column` | string | yes | none | |\n| `target_dimension_table` | string | yes | none | |\n",
|
|
25
|
-
"CsvParseOptions": "## CsvParseOptions\n\
|
|
25
|
+
"CsvParseOptions": "## CsvParseOptions\n\nHow to read a csv payload.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `encoding` | string | no | `\"utf-8\"` | |\n| `separator` | string or null | no | `null` | |\n| `decimal` | string or null | no | `null` | |\n| `has_header` | boolean | no | `true` | |\n| `columns` | string or null | no | `null` | |\n",
|
|
26
|
+
"CsvWriteOptions": "## CsvWriteOptions\n\nOptions for DataFrame → CSV serialization on export.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `separator` | string | no | `\",\"` | |\n| `decimal` | string | no | `\".\"` | |\n| `encoding` | string | no | `\"utf-8\"` | |\n| `include_header` | boolean | no | `true` | |\n| `lineterminator` | string | no | `\"\\n\"` | minLength=`1` |\n",
|
|
26
27
|
"CustomField": "## CustomField\n\nMaps a DataFrame column to a CUSTOM column meta.\n\nEach imported cell receives the column's value in a per-cell JSON blob,\nkeyed by the column's header name (= `source_column`). Typical uses:\nsource-system IDs, processing notes, confidence scores.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `source_column` | string | yes | none | |\n",
|
|
27
|
-
"DataFormat": "## DataFormat\n\nValues: `\"parquet\"`, `\"csv\"`, `\"json\"`\n",
|
|
28
28
|
"DataSchema": "## DataSchema\n\nTop-level `schema:` block in a dataset YAML.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `columns` | array of [ColumnSchema](#columnschema) | yes | none | minItems=`1` |\n",
|
|
29
29
|
"DateColumn": "## DateColumn\n\nMaps a DataFrame column to a DATE attribute column on a RAMA dim table.\n\nValues are converted to Excel serial numbers at load time via\n`farseer_client.date_utils.to_excel_serial`.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `source_column` | string | yes | none | |\n| `target_dimension_table_column` | string | yes | none | |\n",
|
|
30
30
|
"DimensionTableEntryOptions": "## DimensionTableEntryOptions\n\nPer-entry options for one dimension-table sync (this table only).\n\nDistinct from `DimensionTableOptions`, which carries options for the\nwhole `model.load` call (all tables at once); these govern a single\ntable's source frame.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `allow_empty` | boolean | no | `false` | |\n",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"ExportConfig": "## ExportConfig\n\nConfiguration for a `type: export` dataset step.\n\n`target` selects the destination system. The target-specific\nconfig block must match (e.g. `target: sharepoint` requires a\n`sharepoint:` section). Export steps are terminal sinks — no\ndownstream dataset depends on their output.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `target` | [ExportTarget](#exporttarget) | yes | none | |\n| `sharepoint` | [SharePointExportConfig](#sharepointexportconfig) or null | no | `null` | |\n| `farseer_files` | [FarseerFilesExportConfig](#farseerfilesexportconfig) or null | no | `null` | |\n| `allow_empty` | boolean | no | `false` | |\n",
|
|
34
34
|
"ExportFormat": "## ExportFormat\n\nValues: `\"csv\"`, `\"xlsx\"`, `\"parquet\"`\n",
|
|
35
35
|
"ExportTarget": "## ExportTarget\n\nValues: `\"sharepoint\"`, `\"farseer_files\"`\n",
|
|
36
|
-
"ExtractConfig": "## ExtractConfig\n\nConfiguration for a `type: extract` dataset step.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `type` | [ExtractType](#extracttype) | yes | none | |\n| `google_drive_public` | [GoogleDrivePublicExtractConfig](#googledrivepublicextractconfig) or null | no | `null` | |\n| `google_drive` | [GoogleDriveExtractConfig](#googledriveextractconfig) or null | no | `null` | |\n| `sharepoint` | [SharePointExtractConfig](#sharepointextractconfig) or null | no | `null` | |\n| `sql_database` | [SqlDatabaseExtractConfig](#sqldatabaseextractconfig) or null | no | `null` | |\n| `farseer` | [FarseerExtractConfig](#farseerextractconfig) or null | no | `null` | |\n| `business_central` | [BusinessCentralExtractConfig](#businesscentralextractconfig) or null | no | `null` | |\n| `tldv` | [TldvExtractConfig](#tldvextractconfig) or null | no | `null` | |\n| `intercom` | [IntercomExtractConfig](#intercomextractconfig) or null | no | `null` | |\n| `notion` | [NotionExtractConfig](#notionextractconfig) or null | no | `null` | |\n| `hubspot` | [HubspotExtractConfig](#hubspotextractconfig) or null | no | `null` | |\n| `sap_odata` | [SapOdataExtractConfig](#sapodataextractconfig) or null | no | `null` | |\n| `s3` | [S3ExtractConfig](#s3extractconfig) or null | no | `null` | |\n| `
|
|
36
|
+
"ExtractConfig": "## ExtractConfig\n\nConfiguration for a `type: extract` dataset step.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `type` | [ExtractType](#extracttype) | yes | none | |\n| `google_drive_public` | [GoogleDrivePublicExtractConfig](#googledrivepublicextractconfig) or null | no | `null` | |\n| `google_drive` | [GoogleDriveExtractConfig](#googledriveextractconfig) or null | no | `null` | |\n| `sharepoint` | [SharePointExtractConfig](#sharepointextractconfig) or null | no | `null` | |\n| `sql_database` | [SqlDatabaseExtractConfig](#sqldatabaseextractconfig) or null | no | `null` | |\n| `farseer` | [FarseerExtractConfig](#farseerextractconfig) or null | no | `null` | |\n| `business_central` | [BusinessCentralExtractConfig](#businesscentralextractconfig) or null | no | `null` | |\n| `tldv` | [TldvExtractConfig](#tldvextractconfig) or null | no | `null` | |\n| `intercom` | [IntercomExtractConfig](#intercomextractconfig) or null | no | `null` | |\n| `notion` | [NotionExtractConfig](#notionextractconfig) or null | no | `null` | |\n| `hubspot` | [HubspotExtractConfig](#hubspotextractconfig) or null | no | `null` | |\n| `sap_odata` | [SapOdataExtractConfig](#sapodataextractconfig) or null | no | `null` | |\n| `s3` | [S3ExtractConfig](#s3extractconfig) or null | no | `null` | |\n| `optional` | boolean | no | `false` | When true, a source that does not exist (404, no such table, no such file) skips this extract instead of failing the run. The skip propagates to the parse step reading it and every step that depends on that, loads and exports included, and the run still finishes successfully. Network errors, authentication failures, timeouts and 5xx responses still fail the run. |\n",
|
|
37
37
|
"ExtractType": "## ExtractType\n\nValues: `\"google_drive_public\"`, `\"google_drive\"`, `\"sharepoint\"`, `\"sql_database\"`, `\"farseer\"`, `\"business_central\"`, `\"tldv\"`, `\"intercom\"`, `\"notion\"`, `\"hubspot\"`, `\"sap_odata\"`, `\"s3\"`\n",
|
|
38
38
|
"FarseerDatasetsExtractConfig": "## FarseerDatasetsExtractConfig\n\n`extract.farseer.source: datasets` — read a versioned dataset.\n\nReads from the Labs Datasets API: the symmetric counterpart to\n`DatasetDataStore` writes — same control-plane API, same GCS data-plane,\njust the read half.\n\n`qualified_name` is the dataset's registered name (the writer's\nqualified name maps 1:1 to the API `name` field). `version_id`\npins the read to a specific completed version for reproducibility;\nwhen omitted the extractor reads the dataset's currently promoted\nversion. An unpromoted dataset (created but never promoted) is\ntreated as a missing source so `optional: true` can absorb it.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `qualified_name` | string | yes | none | |\n| `version_id` | string or null | no | `null` | |\n",
|
|
39
39
|
"FarseerDimensionsConnection": "## FarseerDimensionsConnection\n\nProjects a foreign-key column on a dim table to a DataFrame column.\n\nInverse of the load side's `dimension_tables.tables[].mapping.connections`.\nThe DataFrame cell receives a list of connected-member names\n(`/model/export` resolves FK ids to names server-side via\n`PK_MEMBER_EXTRACTOR`).\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `source_dimension_table` | string | yes | none | |\n| `target_column` | string | yes | none | |\n",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"FarseerDimensionsTextColumn": "## FarseerDimensionsTextColumn\n\nProjects a TEXT attribute column on a dim table to a DataFrame column.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `source_dimension_table_column` | string | yes | none | |\n| `target_column` | string | yes | none | |\n",
|
|
46
46
|
"FarseerExtractConfig": "## FarseerExtractConfig\n\n`extract.type: farseer` — multi-source family.\n\n`source:` picks which Farseer concept to extract from; the\nmatching inner block carries source-specific config. Cross-tenant\ncredentials are shared across all sources via `farseer_credentials:`.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `source` | [FarseerSource](#farseersource) | yes | none | |\n| `variables` | [FarseerVariablesExtractConfig](#farseervariablesextractconfig) or null | no | `null` | |\n| `files` | [FarseerFilesExtractConfig](#farseerfilesextractconfig) or null | no | `null` | |\n| `imports` | [FarseerImportsExtractConfig](#farseerimportsextractconfig) or null | no | `null` | |\n| `dimensions` | [FarseerDimensionsExtractConfig](#farseerdimensionsextractconfig) or null | no | `null` | |\n| `datasets` | [FarseerDatasetsExtractConfig](#farseerdatasetsextractconfig) or null | no | `null` | |\n| `farseer_credentials` | [TenantCredentialsConfig](#tenantcredentialsconfig) or null | no | `null` | |\n",
|
|
47
47
|
"FarseerFilesExportConfig": "## FarseerFilesExportConfig\n\nFarseer Files export target: the source DataFrame as a user-chosen file.\n\nWrites to the tenant's own Files folder (the tree shown in the UI's left\nnav). The write-side mirror of `extract.farseer source: files`.\n\nDistinct from the `Data/` folder the `farseer_files` *data store*\nwrites intermediate step outputs to: that location is addressed by\nqualified name and is meant for developers / product-services, whereas\nthis target writes a single, user-readable report to a path the author\npicks (`file_path`, relative to the Files root — the leading `Files/`\nis implied, exactly like the extractor's `file:`).\n\n**Parquet only — deliberately.** This target exists so the exported file\nfaithfully reproduces the in-memory DataFrame, and parquet is the only\nformat that does: it stores dtypes, float precision, null-vs-NaN,\ndatetimes, and leading-zero string codes in the file's own metadata, so\nthe round-trip is lossless. CSV would coerce every value back to text —\nthe classic `0000042100` account-code → `int64` corruption the\nextract side already sidesteps by persisting typed CSVs as parquet — and\nXLSX would impose Excel's numeric model (int/float collapse, >15-digit\nprecision loss, dropped leading zeros). Because the Farseer Files UI\npreviews parquet natively, reading the typed schema (`hyparquet` in\n`FilePreview`), the author sees exactly the DataFrame — so parquet is\nboth the faithful *and* the user-readable choice, and there is no reason\nto ship a lossy one. `format: csv | xlsx` can be added later as an\nopt-in for the \"download and open outside Farseer\" case, with the\nlossiness documented at that point.\n\n`source_dataset` names the single dep whose DataFrame is written to the\nfile -- the same source-naming field SharePoint export uses. An export\nwrites exactly one dataset to one file, so the step's single dep must\nequal `source_dataset` (enforced on `DatasetDefinition`).\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `source_dataset` | string | yes | none | |\n| `file_path` | string | yes | none | Path under Files, ending in the file name. The folder must already exist: the export does not create folders. |\n| `conflict_behavior` | [ConflictBehavior](#conflictbehavior) | no | `\"fail\"` | |\n| `farseer_credentials` | [TenantCredentialsConfig](#tenantcredentialsconfig) or null | no | `null` | |\n",
|
|
48
|
-
"FarseerFilesExtractConfig": "## FarseerFilesExtractConfig\n\n`extract.farseer.source: files` — pick a file from Farseer Files.\n\nReads from the source tenant's store. Specify exactly one of `file`\n(slash-separated path under Files) or `file_id` (opaque ID). Cross-tenant\naccess lives on `FarseerExtractConfig`.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `file` | string or null | no | `null` | |\n| `file_id` | string or null | no | `null` | |\n\n### Example\n\n```yaml\n# Models/sales_raw.yaml: a file's name must match its `name:`.\n#
|
|
48
|
+
"FarseerFilesExtractConfig": "## FarseerFilesExtractConfig\n\n`extract.farseer.source: files` — pick a file from Farseer Files.\n\nReads from the source tenant's store. Specify exactly one of `file`\n(slash-separated path under Files) or `file_id` (opaque ID). Cross-tenant\naccess lives on `FarseerExtractConfig`.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `file` | string or null | no | `null` | |\n| `file_id` | string or null | no | `null` | |\n\n### Example\n\n```yaml\n# Models/sales_raw.yaml: a file's name must match its `name:`.\n# Stores one month's CSV from Files unread, for the parse step `sales` to read.\n# The run argument picks the file, so each run reads its own month.\nname: sales_raw\ntype: extract\nextract:\n type: farseer\n farseer:\n source: files\n files:\n file: \"Imports/{{ pipeline_args.SOURCE_FILE }}\"\n```\n",
|
|
49
49
|
"FarseerImportsExtractConfig": "## FarseerImportsExtractConfig\n\n`extract.farseer.source: imports` — source-row audit of a variable.\n\nOne row per `import_cell`, preserving the `description` set when each\nrow was imported.\n\nCounterpart to `FarseerVariablesExtractConfig`, which\naggregates to one row per Rama cell (current state). Same variable\nsurface (`variable` + `dimensions` + `filters`) with an\nadditional `target_description_column` for the per-row description;\ncells without import provenance (manual entries, calculated cells)\nare excluded. This is the audit view: one row per imported cell with\nthe description it was imported with. For the current value of each\ncell, use `source: variables`.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `variable` | string | yes | none | |\n| `target_value_column` | string | yes | none | |\n| `target_description_column` | string | yes | none | |\n| `dimensions` | array of [FarseerVariablesDimensionMapping](#farseervariablesdimensionmapping) | yes | none | minItems=`1` |\n| `filters` | array of [FarseerVariablesFilter](#farseervariablesfilter) | no | none | |\n",
|
|
50
50
|
"FarseerLoadConfig": "## FarseerLoadConfig\n\n`load.target: farseer` — push cells and/or dimension members.\n\nWrites into a Farseer tenant's model.\nOne atomic `/model/load` call can carry both `dimension_tables`\n(member sync) and `cells` (variable-cell import); at least one\nis required, and dim tables sync before cells when both are set.\nNo inner `entity:` discriminator because Farseer has a single\nload operation; if a second mode appears later it can add one.\nCross-tenant pushes are configured via `farseer_credentials:`.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `dimension_tables` | [DimensionTablesConfig](#dimensiontablesconfig) or null | no | `null` | |\n| `cells` | array of [LoadCellsConfig](#loadcellsconfig) | no | none | |\n| `farseer_credentials` | [TenantCredentialsConfig](#tenantcredentialsconfig) or null | no | `null` | |\n",
|
|
51
51
|
"FarseerSource": "## FarseerSource\n\nSub-discriminator on `extract.farseer.source`.\n\nValues: `\"variables\"`, `\"files\"`, `\"imports\"`, `\"dimensions\"`, `\"datasets\"`\n",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"GoogleDriveExtractConfig": "## GoogleDriveExtractConfig\n\nExtraction settings for private Google Drive files (service account).\n\nAuthenticates as a Google Cloud service account; the client shares the\nfolder (or Shared Drive) with the service account's e-mail as a Viewer,\nso no domain-wide delegation and no per-user OAuth is involved.\n\n`service_account_json` is the service account's full JSON key,\ntemplated via `{{ pipeline_args.NAME }}` so a Remote Job's secret\n`expectedArguments` flow through at discovery time. Its shape is\nvalidated at extract time, not here — a schema-load error would echo\nthe offending input back into logs (`hide_input_in_errors` guards\nthe pydantic side of that).\n\nTwo addressing modes, mutually exclusive:\n\n- `file_id` — opaque Drive file ID.\n- `folder_id` + `file_path` — anchor folder ID (the folder the\n client shared) plus a slash-separated path below it, resolved one\n segment at a time. Folder IDs are stable across renames, so the\n anchor survives the client tidying up folder names. The final\n segment may contain `*` wildcards (e.g. `REPORT2502AC.*` for a\n source whose extension flips between `.xlsx` and `.xls` across\n periods); exactly one file must match.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `service_account_json` | string or null | no | `null` | |\n| `file_id` | string or null | no | `null` | |\n| `folder_id` | string or null | no | `null` | |\n| `file_path` | string or null | no | `null` | |\n",
|
|
58
58
|
"GoogleDrivePublicExtractConfig": "## GoogleDrivePublicExtractConfig\n\nExtraction settings for public Google Drive files.\n\nOnly works with files shared as \"Anyone with the link\" — no auth required.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `file_id` | string | yes | none | |\n",
|
|
59
59
|
"HubspotAssociationsExtractConfig": "## HubspotAssociationsExtractConfig\n\nOne row per (record of `object_type`, associated record) pair.\n\nThe link table between two HubSpot object types -- which company a deal\nbelongs to, which contacts a note was logged against. A record extract\ncarries no such information: HubSpot keeps associations beside the\nrecord, not on it, and reports them only when a crawl asks for the\n`to_object_types` by name. This grain does that ask over the same record\ncrawl `objects` uses, and explodes what comes back to one row per pair.\n\n`association_type` is HubSpot's own label for the link\n(`deal_to_company`, `note_to_contact`, ...). The same pair often arrives\ntwice, once as the typed link and once as its `_unlabeled` twin, which is\nHubSpot's representation of an unlabelled association rather than a\nduplicate; keep both or dedupe in a transform, as the model needs.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `object_type` | string | yes | none | |\n| `to_object_types` | array of string | yes | none | minItems=`1` |\n| `archived` | boolean | no | `false` | |\n| `page_size` | integer | no | `100` | maximum=`100`; exclusiveMinimum=`0` |\n",
|
|
60
|
-
"HubspotExtractConfig": "## HubspotExtractConfig\n\n`extract.type: hubspot` — multi-source family over the HubSpot CRM API.\n\nAuthentication is a `pat-<region>-...` bearer token — either an\n**account service key** (the current developer platform's credential\nfor single-account API access) or a **legacy private app token**. Both\nare account-level, carry the same object-specific scopes, and go over\nthe wire identically, so `access_token` is validated only for presence\nand not for shape: a token format check here would reject a\nHubSpot-issued credential the moment they add a fourth variant. The\ntoken is supplied as a YAML field, typically templated via\n`{{ pipeline_args.HUBSPOT_ACCESS_TOKEN }}` so a Remote Job's secret\n`expectedArguments` flow through at discovery time.\n\n`source:` picks the grain; the matching inner block carries its\nconfig. One token covers every source, so it lives out here.\n\nEvery source
|
|
60
|
+
"HubspotExtractConfig": "## HubspotExtractConfig\n\n`extract.type: hubspot` — multi-source family over the HubSpot CRM API.\n\nAuthentication is a `pat-<region>-...` bearer token — either an\n**account service key** (the current developer platform's credential\nfor single-account API access) or a **legacy private app token**. Both\nare account-level, carry the same object-specific scopes, and go over\nthe wire identically, so `access_token` is validated only for presence\nand not for shape: a token format check here would reject a\nHubSpot-issued credential the moment they add a fourth variant. The\ntoken is supplied as a YAML field, typically templated via\n`{{ pipeline_args.HUBSPOT_ACCESS_TOKEN }}` so a Remote Job's secret\n`expectedArguments` flow through at discovery time.\n\n`source:` picks the grain; the matching inner block carries its\nconfig. One token covers every source, so it lives out here.\n\nEvery source stores a parquet payload, which a parse step reads with\n`format: parquet` — same as `business_central` and `sql_database`. A\n`schema:` goes on that parse step, where it checks the result rather than\ninstructing the read.\n\nHubSpot serializes every record property as a JSON *string*, including\nnumbers, booleans and dates. The extractor reads the object's property\ncatalog and coerces each column to the type HubSpot declares for it,\nbecause leaving it alone would make `amount` a text column that sums\nby concatenation, and `\"false\"` a truthy value. Record ids stay\nstrings deliberately: they exceed 2^53 in some portals, so any numeric\ndtype would corrupt them.\n\nTimestamps land as timezone-naive UTC. HubSpot documents every time as\nUTC and date-only properties as midnight UTC; dropping the marker\nrather than converting keeps the values as HubSpot stated them and\nmatches the physical type the platform's `type: datetime` declares.\nLocalizing them to a negative-offset zone downstream would move a\nclose date — and its revenue — into the previous month.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `source` | [HubspotSource](#hubspotsource) | yes | none | |\n| `access_token` | string or null | no | `null` | |\n| `objects` | [HubspotObjectsExtractConfig](#hubspotobjectsextractconfig) or null | no | `null` | |\n| `pipelines` | [HubspotPipelinesExtractConfig](#hubspotpipelinesextractconfig) or null | no | `null` | |\n| `properties` | [HubspotPropertyCatalogConfig](#hubspotpropertycatalogconfig) or null | no | `null` | |\n| `property_options` | [HubspotPropertyCatalogConfig](#hubspotpropertycatalogconfig) or null | no | `null` | |\n| `associations` | [HubspotAssociationsExtractConfig](#hubspotassociationsextractconfig) or null | no | `null` | |\n| `owners` | [HubspotOwnersExtractConfig](#hubspotownersextractconfig) or null | no | `null` | |\n",
|
|
61
61
|
"HubspotObjectsExtractConfig": "## HubspotObjectsExtractConfig\n\nOne row per CRM record of `object_type`, one column per requested property.\n\n`object_type` is HubSpot's own plural object name as it appears in the\nAPI path (`deals`, `companies`, `contacts`, `line_items`, `tickets`),\nor a custom object's `p<portalId>_<name>` / `2-xxxxxxx` identifier.\n\n`properties` is required and has no wildcard form, which is the single\nmost consequential choice in this config. HubSpot returns only about\neight default properties when the parameter is omitted — a portal with\n400 deal properties answers a propertyless request with eight columns\nand no warning — so an implicit \"everything\" would make the dataset's\ncolumn set a function of whatever a HubSpot admin last added, silently\nfor undeclared columns and as a hard failure for anything downstream\ndeclaring a `schema:`. Declaring the list keeps the frame's shape owned\nby the pipeline. Extract `source: properties` first to discover what the\nportal actually has, then name the ones the model needs.\n\nProperty names are checked against the portal's own catalog before the\ncrawl starts: HubSpot ignores an unknown property rather than\nrejecting it, so a typo would otherwise land a frame quietly missing\nthat column.\n\n`archived` selects HubSpot's archived (soft-deleted, recoverable)\nrecords *instead of* the live ones — it is the API's own parameter, not\na union. Reading both means two datasets.\n\n`page_size` is HubSpot's `limit`. It defaults to the documented\nmaximum rather than HubSpot's own default of 10, which would make ten\ntimes as many requests for the same data.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `object_type` | string | yes | none | |\n| `properties` | array of string | yes | none | minItems=`1` |\n| `archived` | boolean | no | `false` | |\n| `page_size` | integer | no | `100` | maximum=`100`; exclusiveMinimum=`0` |\n",
|
|
62
62
|
"HubspotOwnersExtractConfig": "## HubspotOwnersExtractConfig\n\nOne row per HubSpot owner.\n\n`archived` selects deactivated owners instead of active ones. It\nmatters more here than on other sources: a record's\n`hubspot_owner_id` keeps pointing at the owner who left, so a\ndimension built from active owners alone leaves every deal that rep\never touched with an unresolvable owner — disproportionately the\noldest records. Extract both and concatenate.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `archived` | boolean | no | `false` | |\n| `page_size` | integer | no | `500` | maximum=`500`; exclusiveMinimum=`0` |\n",
|
|
63
63
|
"HubspotPipelinesExtractConfig": "## HubspotPipelinesExtractConfig\n\nOne row per (pipeline, stage) for `object_type`.\n\nDenormalized without fan-out: a HubSpot stage belongs to exactly one\npipeline, so the row count is the number of stages rather than a cross\nproduct — plus one row per pipeline that has no stages at all, which is\nkept with the stage columns null rather than dropped, so an empty\npipeline still reaches the dimension.\n\nNote that stage labels are only unique *within* a pipeline (\"Closed\nWon\" exists in every pipeline) and stage ids are only meaningful\ninside their own pipeline, so the join key back to a record's\n`dealstage` is the composite `(pipeline_id, stage_id)`.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `object_type` | string | yes | none | |\n| `archived` | boolean | no | `false` | |\n",
|
|
@@ -67,10 +67,10 @@
|
|
|
67
67
|
"IntercomContactsExtractConfig": "## IntercomContactsExtractConfig\n\nOne row per contact (users and leads alike).\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `page_size` | integer | no | `150` | maximum=`150`; exclusiveMinimum=`0` |\n",
|
|
68
68
|
"IntercomConversationPartsExtractConfig": "## IntercomConversationPartsExtractConfig\n\nOne row per message in a conversation, across every conversation.\n\nCosts one request per conversation on top of the list, so this is the\ngrain that sets a run's length.\n\n`plaintext` asks Intercom to render message bodies as plain text instead\nof HTML. On by default: the rendering is Intercom's own, and a text\ncorpus is what a reader of support conversations wants.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `page_size` | integer | no | `150` | maximum=`150`; exclusiveMinimum=`0` |\n| `plaintext` | boolean | no | `true` | |\n",
|
|
69
69
|
"IntercomConversationsExtractConfig": "## IntercomConversationsExtractConfig\n\nOne row per conversation, with its opening message inline.\n\nThe opening message (the `source` block) is on the conversation itself;\nthe replies are a different grain (`conversation_parts`) because they\ncost one request per conversation.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `page_size` | integer | no | `150` | maximum=`150`; exclusiveMinimum=`0` |\n",
|
|
70
|
-
"IntercomExtractConfig": "## IntercomExtractConfig\n\n`extract.type: intercom` — multi-source family over the Intercom REST API.\n\nAuthentication is an access token from an Intercom app installed in the\nworkspace (a \"private\" app for this one workspace is the usual shape);\nit is supplied as a YAML field, typically templated via\n`{{ pipeline_args.INTERCOM_ACCESS_TOKEN }}`. `region` picks the API host.\n\nEvery source
|
|
70
|
+
"IntercomExtractConfig": "## IntercomExtractConfig\n\n`extract.type: intercom` — multi-source family over the Intercom REST API.\n\nAuthentication is an access token from an Intercom app installed in the\nworkspace (a \"private\" app for this one workspace is the usual shape);\nit is supplied as a YAML field, typically templated via\n`{{ pipeline_args.INTERCOM_ACCESS_TOKEN }}`. `region` picks the API host.\n\nEvery source stores a parquet payload, which a parse step reads with\n`format: parquet`; a `schema:` on that parse step checks the result rather\nthan instructing the read. Timestamps arrive as seconds since the epoch and\nland as timezone-naive UTC datetimes. Lists on a record (contact ids,\ntag names) land as `|`-joined text; structures with no fixed shape\n(custom attributes) land as JSON text.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `source` | [IntercomSource](#intercomsource) | yes | none | |\n| `access_token` | string or null | no | `null` | |\n| `region` | [IntercomRegion](#intercomregion) | no | `\"us\"` | |\n| `conversations` | [IntercomConversationsExtractConfig](#intercomconversationsextractconfig) or null | no | `null` | |\n| `conversation_parts` | [IntercomConversationPartsExtractConfig](#intercomconversationpartsextractconfig) or null | no | `null` | |\n| `contacts` | [IntercomContactsExtractConfig](#intercomcontactsextractconfig) or null | no | `null` | |\n| `admins` | [IntercomAdminsExtractConfig](#intercomadminsextractconfig) or null | no | `null` | |\n",
|
|
71
71
|
"IntercomRegion": "## IntercomRegion\n\nWhere an Intercom workspace's data lives, which picks the API host.\n\nIntercom hosts each workspace in one region and serves it from a\nregion-specific host; a token presented to the wrong host answers 401\nrather than redirecting, so the region is configuration rather than\nsomething the extractor can discover.\n\nValues: `\"us\"`, `\"eu\"`, `\"au\"`\n",
|
|
72
72
|
"IntercomSource": "## IntercomSource\n\nSub-discriminator on `extract.intercom.source`.\n\nValues: `\"conversations\"`, `\"conversation_parts\"`, `\"contacts\"`, `\"admins\"`\n",
|
|
73
|
-
"JsonParseOptions": "## JsonParseOptions\n\
|
|
73
|
+
"JsonParseOptions": "## JsonParseOptions\n\nHow to read a json payload.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `encoding` | string | no | `\"utf-8\"` | |\n",
|
|
74
74
|
"LoadCellDescriptionMapping": "## LoadCellDescriptionMapping\n\nMaps a DataFrame column to per-cell DESCRIPTION column metas.\n\nEach imported cell gets a description value pulled from the named source\ncolumn. Distinct from the job-level `import_job_description` scalar,\nwhich attaches a single note to the whole import job.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `source_column` | string | yes | none | |\n",
|
|
75
75
|
"LoadCellsConfig": "## LoadCellsConfig\n\nConfiguration for a single cell value import source.\n\n`source_dataset` names the dependency whose DataFrame contains the cell values.\n`import_job_title` is an optional scalar that populates the Import Job's\ntitle. When unset, the title defaults to `{step_name} — {source_dataset}`\nso entries within the same load step stay distinguishable in the Farseer UI.\n`import_job_description` is an optional scalar that populates the Import\nJob's top-level description field (distinct from per-row `cell_description`).\n`mapping` defines how DataFrame columns map to RAMA dimensions and variables.\n`options` controls import behavior (overwrite, missing members, undo, etc.).\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `source_dataset` | string | yes | none | |\n| `import_job_title` | string or null | no | `null` | string: maxLength=`255` |\n| `import_job_description` | string or null | no | `null` | |\n| `mapping` | [LoadMappingConfig](#loadmappingconfig) | yes | none | |\n| `options` | [CellsOptions](#cellsoptions) | yes | none | |\n\n### Example\n\n```yaml\n# Models/sales_load.yaml: a file's name must match its `name:`.\n# Writes the totals into Revenue, Actual version. The run argument is in the\n# labels, so undo_previous replaces only this month's earlier import.\n# source_dataset repeats a deps entry exactly. A model in a subfolder goes by\n# its qualified name (Models/silver/sales_monthly.yaml is silver.sales_monthly)\n# in both places, not the leaf name a transform's SQL uses.\nname: sales_load\ntype: load\ndeps: [sales_monthly]\nload:\n target: farseer\n farseer:\n cells:\n - source_dataset: sales_monthly\n mapping:\n dimension_tables:\n - source_column: product\n target_dimension_table: Product\n - source_column: region\n target_dimension_table: Region\n variables:\n - source_column: amount\n target_variable: Revenue\n fixed_dimension_members:\n - dimension_table: Versions\n dimension_member: Actual\n date:\n source_column: month\n format: YYYY_MM_DD\n options:\n overwrite_cells: true\n labels: [sales, \"{{ pipeline_args.SOURCE_FILE }}\"]\n undo_previous: true\n```\n",
|
|
76
76
|
"LoadConfig": "## LoadConfig\n\nConfiguration for a `type: load` dataset step.\n\n`target` selects the destination system. The target-specific config\nblock must match (e.g. `target: farseer` requires a `farseer:` section).\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `target` | [LoadTarget](#loadtarget) | yes | none | |\n| `farseer` | [FarseerLoadConfig](#farseerloadconfig) or null | no | `null` | |\n",
|
|
@@ -83,33 +83,33 @@
|
|
|
83
83
|
"LoadVariableMapping": "## LoadVariableMapping\n\nMaps a DataFrame column to a RAMA variable.\n\n`fixed_dimension_members` pins dimension members that are not present\nin the DataFrame (e.g. `Versions=Actual`).\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `fixed_dimension_members` | array of [FixedDimension](#fixeddimension) | no | none | |\n| `source_column` | string | yes | none | |\n| `target_variable` | string | yes | none | |\n",
|
|
84
84
|
"MissingMemberDescription": "## MissingMemberDescription\n\nMaps a DataFrame column to a TAG_DESCRIPTION column meta.\n\nPaired with an IDENTIFIER column on the same `target_dimension_table`:\nwhen the Import Job auto-creates missing dim members\n(`create_missing_members: true`), the new member's description is pulled\nfrom this column.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `source_column` | string | yes | none | |\n| `target_dimension_table` | string | yes | none | |\n",
|
|
85
85
|
"NotionDatabaseExtractConfig": "## NotionDatabaseExtractConfig\n\nOne row per page (row) of a Notion database, one column per property.\n\nThe column set comes from the database's own property definitions, read\nbefore the first row, so an empty database still lands every column and\ntwo runs land the same shape whatever rows happen to hold. Column names\nare the property names as Notion shows them; the record envelope lands\nas `notion_id`, `notion_created_time`, `notion_last_edited_time`,\n`notion_archived` and `notion_url`, and a property that would collide\nwith one of those fails the extract rather than overwriting it.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `database_id` | string | yes | none | |\n| `page_size` | integer | no | `100` | maximum=`100`; exclusiveMinimum=`0` |\n",
|
|
86
|
-
"NotionExtractConfig": "## NotionExtractConfig\n\n`extract.type: notion` — multi-source family over the Notion REST API.\n\nAuthentication is an internal integration token (`ntn_...`); the\ndatabase must be connected to that integration in Notion's share menu,\nor the API answers 404 as if it did not exist. The token is a YAML\nfield, typically templated via `{{ pipeline_args.NOTION_TOKEN }}`.\n\n`api_version` is the `Notion-Version` header. The default addresses a\ndatabase directly; Notion's later versions split a database from its\ndata sources, and a database with more than one data source needs the\nquery addressed to a data source, which this extractor does not do.\n\nEvery source
|
|
86
|
+
"NotionExtractConfig": "## NotionExtractConfig\n\n`extract.type: notion` — multi-source family over the Notion REST API.\n\nAuthentication is an internal integration token (`ntn_...`); the\ndatabase must be connected to that integration in Notion's share menu,\nor the API answers 404 as if it did not exist. The token is a YAML\nfield, typically templated via `{{ pipeline_args.NOTION_TOKEN }}`.\n\n`api_version` is the `Notion-Version` header. The default addresses a\ndatabase directly; Notion's later versions split a database from its\ndata sources, and a database with more than one data source needs the\nquery addressed to a data source, which this extractor does not do.\n\nEvery source stores a parquet payload, which a parse step reads with\n`format: parquet`.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `source` | [NotionSource](#notionsource) | yes | none | |\n| `access_token` | string or null | no | `null` | |\n| `api_version` | string | no | `\"2022-06-28\"` | |\n| `database` | [NotionDatabaseExtractConfig](#notiondatabaseextractconfig) or null | no | `null` | |\n| `page_content` | [NotionPageContentExtractConfig](#notionpagecontentextractconfig) or null | no | `null` | |\n",
|
|
87
87
|
"NotionPageContentExtractConfig": "## NotionPageContentExtractConfig\n\nOne row per page of a database, holding the page body as Markdown.\n\nCosts one request per page (more for a page with nested blocks), which\nis why this is a separate grain from `database`: the property table is\ncheap and the bodies are not. `max_depth` bounds how far nested blocks\n(toggles, columns, synced blocks) are followed.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `database_id` | string | yes | none | |\n| `page_size` | integer | no | `100` | maximum=`100`; exclusiveMinimum=`0` |\n| `max_depth` | integer | no | `3` | minimum=`1`; maximum=`10` |\n",
|
|
88
88
|
"NotionSource": "## NotionSource\n\nSub-discriminator on `extract.notion.source`.\n\nValues: `\"database\"`, `\"page_content\"`\n",
|
|
89
89
|
"NumberColumn": "## NumberColumn\n\nMaps a DataFrame column to a NUMBER attribute column on a RAMA dim table.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `source_column` | string | yes | none | |\n| `target_dimension_table_column` | string | yes | none | |\n",
|
|
90
|
-
"ParseConfig": "## ParseConfig\n\
|
|
90
|
+
"ParseConfig": "## ParseConfig\n\nThe `parse:` block of a `type: parse` dataset.\n\nExactly one of `format` or `script` says how the payload is read: a\nbuilt-in reader for a format we handle, or an author's `@parse` function in\n`Code/`, for a source the built-ins cannot read. Neither is defaulted --\na step that quietly assumed csv would read a spreadsheet as text and\nproduce one unusable column.\n\n`function` names which `@parse` function in `script` backs this dataset,\nfor a script holding several; it binds by dataset leaf name when omitted.\n\nRead options live in the block named for `format` -- `csv:`, `xlsx:`, `json:`\n-- and a block that does not match is rejected rather than ignored, so an\noption written under the wrong format fails instead of silently doing\nnothing. `parquet` carries its own types and has no options.\n\n parse:\n format: csv\n csv:\n encoding: windows-1250\n\nThe four formats are the four the built-in readers handle: a source that\nhands back a table lands parquet, a file source lands the file it\ndownloaded, and `xlsx` reads both Excel containers by sniffing the file,\nbecause one logical dataset can arrive as `.xlsx` one month and legacy\n`.xls` the next.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `format` | `\"csv\"`, `\"parquet\"`, `\"json\"`, `\"xlsx\"` or null | no | `null` | |\n| `script` | string or null | no | `null` | |\n| `function` | string or null | no | `null` | |\n| `csv` | [CsvParseOptions](#csvparseoptions) or null | no | `null` | |\n| `xlsx` | [XlsxParseOptions](#xlsxparseoptions) or null | no | `null` | |\n| `json` | [JsonParseOptions](#jsonparseoptions) or null | no | `null` | |\n\n### Example\n\n```yaml\n# Models/sales.yaml: a file's name must match its `name:`.\n# Reads the CSV the extract `sales_raw` stored. Every extract is read by a parse\n# step, and only a parse step reads an extract.\nname: sales\ntype: parse\ndeps: [sales_raw]\nparse:\n format: csv\n```\n",
|
|
91
91
|
"QualityRuleEntry": "## QualityRuleEntry\n\nOne entry under a `quality_rules:` list.\n\nThree fields make up the shape locked in the design doc:\n\n- `type:` — the rule identifier. Either a Pandera built-in\n check name (e.g. `in_range`, `isin`, `str_matches`) or one\n of the custom checks we register (`custom__*`, including\n `custom__unique` / `custom__unique_composite` — see\n `quality.customs` for why uniqueness is a custom).\n- `params:` — kwargs forwarded verbatim to the rule. Field\n names mirror Pandera's parameter names.\n- `meta:` — rule metadata; carries `severity` for now.\n\nColumn rules go under a column's `quality_rules:`; dataset rules go\nunder the dataset's top-level `quality_rules:`. The custom rules:\n\n| type | scope | params |\n|---|---|---|\n| `custom__unique` | column | none; repeated nulls count as duplicates |\n| `custom__max_null_rate` | column | `max`: highest allowed share of nulls, 0 to 1 |\n| `custom__distinct_count` | column | `min` and/or `max` number of distinct values |\n| `custom__unique_composite` | dataset | `columns`: columns that must be unique together |\n| `custom__compare` | dataset | `left`, `right`: columns; `operator`: lt, lte, eq, gte, gt or ne |\n| `custom__sum_equals` | dataset | `total`: column; `parts`: columns; `tolerance`: optional, default 0 |\n| `custom__one_of_non_null` | dataset | `columns`: at least one must be non-null on every row |\n\nPandera's built-in checks (`in_range`, `isin`, `str_matches`,\n`equal_to`, `greater_than_or_equal_to` and the rest) take Pandera's own\nparameter names.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `type` | string | yes | none | |\n| `params` | object | no | none | |\n| `meta` | [QualityRuleMeta](#qualityrulemeta) | no | none | |\n",
|
|
92
92
|
"QualityRuleMeta": "## QualityRuleMeta\n\nPer-rule metadata.\n\nCarries `severity` for now (default `error` — failed rule\nblocks the step; `warn` logs and proceeds). Future metadata\nkeys land here without changing the rule shape.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `severity` | `\"error\"`, `\"warn\"` | no | `\"error\"` | |\n",
|
|
93
93
|
"ReviewGateConfig": "## ReviewGateConfig\n\nLeave the import uncommitted for manual review when the gate matches.\n\nWhen any row's `column` value is in `block_values`, the load uploads\nand syncs as normal but skips the commit, leaving the job `CREATED`\n(\"In progress\") and ending the run red. `column` must be a declared\n`custom_fields` column so its values render in the Import review screen.\nA reviewer then accepts or discards the import in the Import review\nscreen; nothing reaches the model until it is accepted.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `column` | string | yes | none | |\n| `block_values` | array of string | yes | none | minItems=`1` |\n",
|
|
94
94
|
"S3ExtractConfig": "## S3ExtractConfig\n\nExtraction settings for one object in an Amazon S3 bucket.\n\nAuthenticates with an IAM access key pair the YAML supplies, typically\ntemplated via `{{ pipeline_args.NAME }}` from a Remote Job's secret\n`expectedArguments`. There is deliberately no fallback to an ambient AWS\nidentity: the runner serves every tenant, so whatever credentials its\nenvironment holds are not any one pipeline's to use.\n\n`key` is the object key exactly as S3 stores it -- no leading-slash\nstripping, because `/a.csv` and `a.csv` are different objects. `region`\nis optional; without it botocore follows S3's redirect to the bucket's\nregion at the cost of a round trip.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `bucket` | string | yes | none | |\n| `key` | string | yes | none | |\n| `region` | string or null | no | `null` | |\n| `access_key_id` | string or null | no | `null` | |\n| `secret_access_key` | string or null | no | `null` | |\n| `session_token` | string or null | no | `null` | |\n",
|
|
95
95
|
"SapOdataCursor": "## SapOdataCursor\n\nThe change stamp an incremental SAP OData read advances on.\n\n`column` is a UTC change timestamp that SAP writes whenever a row\nchanges, in ABAP's decimal form `YYYYMMDDhhmmss.fffffff`\n(`LASTCHANGEDATETIME` on the billing-document and product views). Each\nrun reads the rows stamped from one second past the previous bound\nthrough the last whole second that ended `settle_lag` before `now`, the\nrunner's clock, because SAP sends no clock of its own.\nConsecutive windows tile, so a run over a quiet source reads nothing and\nthe run publishes no new version.\n\n`settle_lag_seconds` is how long a stamped row gets to become visible. A\nrow whose commit lags its stamp by more than this, less the amount SAP's\nclock runs behind the runner's, is never read by a window. The default\nis SAP's own safety interval for generic timestamp delta.\n\n`zero_stamp` is the rule for rows whose stamp is ABAP's initial value 0,\nSAP's null, which no window can contain. It has no default, because on\nthe billing header those rows are real documents -- cancellations are\ncreated with 0 and keep it:\n\n* `refuse` fails the run when any such row exists: the first read counts\n them, and every later run probes for them.\n* `creation_date` reads them by `creation_date_column`, a day-grain\n `Edm.DateTime`, once each day has closed everywhere: a day `d` is read\n from `(d+1)T12:00Z + settle_lag`, which covers every time zone the\n date can have been written in.\n\n`full_read_every_days` makes a run read the whole entity set again when\nthe last whole read is that many days old. Under upsert that repairs\nwhat a window cannot see: a change that did not move the stamp, a row\nthat committed later than the lag, a row that changes more often than\nthe lag.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `column` | string | yes | none | |\n| `zero_stamp` | `\"refuse\"`, `\"creation_date\"` | yes | none | |\n| `creation_date_column` | string or null | no | `null` | |\n| `settle_lag_seconds` | integer | no | `1800` | minimum=`60`; maximum=`86400` |\n| `full_read_every_days` | integer or null | no | `null` | integer: minimum=`1`; maximum=`366` |\n",
|
|
96
|
-
"SapOdataExtractConfig": "## SapOdataExtractConfig\n\nExtraction settings for SAP S/4HANA via an OData V2 service.\n\nReads a CDS-view-backed entity set exposed through SAP Gateway,\nauthenticating with HTTP basic against a read-only SAP service user.\nCredentials (`username`, `password`) are supplied as YAML fields,\ntypically templated via `{{ pipeline_args.NAME }}`.\n\nThe entity URL is composed as `{base_url}{service_path}/{entity_set}`,\nkept as separate fields so authors can't glue them into a malformed path.\n\nWithout `cursor`, every run re-reads the whole entity set, so pair it\nwith
|
|
97
|
-
"SapOdataOdp": "## SapOdataOdp\n\nSAP's own change tracking (ODP delta) as the incremental read.\n\nThe first run sends `Prefer: odata.track-changes`, which opens a\nsubscription in SAP's operational delta queue (ODQ), and takes the new\ninitial-load token from `DeltaLinksOf<entity>`. Each later run reads the\nchanges since the committed token and commits the new one SAP hands out,\nalso from an empty read. SAP keeps the subscription, keyed by the SAP user\nand the OData service: one per pair, so every dataset and environment\nneeds its own user or service. A new initial load for the same pair\nsilently invalidates the tokens of whoever held it before.\n\n`key` is the entity's key. One delta can carry a key more than once, and\nthe last image in the response is the one kept. That is verified for a\nCDS view with change data capture, whose repeated images of one key are\nthe same. A recovery sends its requests in the order SAP delivered them,\nbut within one request SAP's order is not change order, so a source that\nsends two different images of one key in one request, as an extractor's\nafter-image delta process may, can keep the older one. It is wrong for\nsources that send differences. `key` has to equal the
|
|
98
|
-
"SharePointExportConfig": "## SharePointExportConfig\n\nSharePoint upload target via Microsoft Graph.\n\nSerializes the source DataFrame to `format` (csv / xlsx / parquet)\nand writes the bytes to `file_path` under `site_url`. Reuses the\nexact OAuth client-credentials flow and site/library resolution the\nSharePoint extractor already ships with — same `tenant_id` /\n`client_id` / `client_secret` triple, same `{{ pipeline_args.* }}`\ntemplating, same `library_name` conventions.\n\nRequired Azure AD application permissions: either `Sites.ReadWrite.All`\n(tenant-wide) or `Sites.Selected` + per-site `write` grant.\n\n`conflict_behavior=REPLACE` (default) is safe for SharePoint\ndocument libraries because versioning is on by default — prior\nuploads remain recoverable through the SharePoint UI. Targets\nwithout versioning (future: raw SFTP) should interpret `REPLACE`\nas a genuinely destructive overwrite and document that caveat on\ntheir own config class.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `source_dataset` | string | yes | none | |\n| `site_url` | string | yes | none | |\n| `file_path` | string | yes | none | |\n| `library_name` | string or null | no | `null` | |\n| `tenant_id` | string or null | no | `null` | |\n| `client_id` | string or null | no | `null` | |\n| `client_secret` | string or null | no | `null` | |\n| `format` | [ExportFormat](#exportformat) | no | `\"csv\"` | |\n| `conflict_behavior` | [ConflictBehavior](#conflictbehavior) | no | `\"replace\"` | |\n| `
|
|
96
|
+
"SapOdataExtractConfig": "## SapOdataExtractConfig\n\nExtraction settings for SAP S/4HANA via an OData V2 service.\n\nReads a CDS-view-backed entity set exposed through SAP Gateway,\nauthenticating with HTTP basic against a read-only SAP service user.\nCredentials (`username`, `password`) are supplied as YAML fields,\ntypically templated via `{{ pipeline_args.NAME }}`.\n\nThe entity URL is composed as `{base_url}{service_path}/{entity_set}`,\nkept as separate fields so authors can't glue them into a malformed path.\n`entity_set` is the set's name as the service's `$metadata` lists it,\nsince that entry types the columns: a key, a parameterised view's\nparameters or a navigation path is refused.\n\nWithout `cursor` or `odp`, every run re-reads the whole entity set, so pair it\nwith `write_mode: overwrite` on the parse step reading it for a full\nrefresh.\n\nWith `cursor` (see `SapOdataCursor`) the read is incremental: each run\nreads only the rows whose change stamp moved since the last published\nrun, and the watermark of the parse step's dataset, kept by the backend,\nremembers how far that was. The one parse step reading it must then declare\n`write_mode: upsert` with the entity's key as `merge_keys`, because a\nchanged row arrives again and has to replace the row it was, and the\nextract needs `sap_client`, because the stream is one client's data. Both\nare refused before any step runs. Nothing is registered in SAP -- the\nposition lives only in the watermark.\n\nWhat the cursor cannot see: a change that does not move the stamp, a\nrow whose commit lagged its stamp by more than the settle lag, a column\nadded to the view after a row was read, and a row deleted at the source\n(on these views, an archived document). `full_read_every_days` repairs\nall but the last; deleted rows stay.\n\n**Changing the stream needs an operator step.** The stored progress is\nkeyed by the Gateway origin and path, the entity set, the client, the\ncursor columns, the zero-stamp rule and a hash of `select`. Changing any of them makes every\nlater run refuse, until `DELETE /labs/datasets/{id}/watermark` -- the id\nof the parse step's dataset, where the position is kept -- resets the\nprogress and the next run reads the whole entity set again.\n\nWith `odp` (see `SapOdataOdp`) the read is incremental through SAP's own\nchange tracking instead. It opens a subscription in SAP, so it needs a\ndedicated SAP user or service per dataset and environment. Its stored\nprogress is keyed by a digest of the SAP user instead of the cursor\nsettings, and after the watermark is deleted a run refuses while the\nuser's subscription exists, until `odp.reset_subscription_until` is set\nfor one run. The parse-step and `sap_client` rules apply as for `cursor`,\nand besides them both together are refused,\n`odp.key` has to equal the parse step's `merge_keys`, and `select` is\nrefused: how SAP applies the initial load's projection to a delta read\nis not verified.\n\n`select` is OData `$select` passthrough. There is no `$filter`: SAP drops\na filter its ODP translation cannot handle and answers with every row,\nand nothing checks a full load's rows, so a filter belongs downstream.\n`max_page_size` is sent as `Prefer: odata.maxpagesize` and sizes each page\nSAP returns; the pages are then followed through their `__next` links.\nIt is not `$top`, which in SAP's V2 truncates the total result and is\nnever sent. Memory scales with it: a 146-column view peaked at about\n0.7 GB with the default of 10,000 and about 1.3 GB at 50,000. Unpatched\nSAP_BW 7.50-7.56 ignores a value above 50,000 (SAP note 3118751), so\n50,000 is the ceiling that pages on every release.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `base_url` | string | yes | none | |\n| `service_path` | string | yes | none | |\n| `entity_set` | string | yes | none | |\n| `max_page_size` | integer | no | `10000` | minimum=`1`; maximum=`50000` |\n| `sap_client` | string or null | no | `null` | |\n| `select` | string or null | no | `null` | |\n| `username` | string or null | no | `null` | |\n| `password` | string or null | no | `null` | |\n| `cursor` | [SapOdataCursor](#sapodatacursor) or null | no | `null` | |\n| `odp` | [SapOdataOdp](#sapodataodp) or null | no | `null` | |\n",
|
|
97
|
+
"SapOdataOdp": "## SapOdataOdp\n\nSAP's own change tracking (ODP delta) as the incremental read.\n\nThe first run sends `Prefer: odata.track-changes`, which opens a\nsubscription in SAP's operational delta queue (ODQ), and takes the new\ninitial-load token from `DeltaLinksOf<entity>`. Each later run reads the\nchanges since the committed token and commits the new one SAP hands out,\nalso from an empty read. SAP keeps the subscription, keyed by the SAP user\nand the OData service: one per pair, so every dataset and environment\nneeds its own user or service. A new initial load for the same pair\nsilently invalidates the tokens of whoever held it before.\n\n`key` is the entity's key. One delta can carry a key more than once, and\nthe last image in the response is the one kept. That is verified for a\nCDS view with change data capture, whose repeated images of one key are\nthe same. A recovery sends its requests in the order SAP delivered them,\nbut within one request SAP's order is not change order, so a source that\nsends two different images of one key in one request, as an extractor's\nafter-image delta process may, can keep the older one. It is wrong for\nsources that send differences. `key` has to equal the `merge_keys` of the\nparse step reading the extract.\n\n`deletes` is the rule for SAP's delete records. `ignore` is the only rule\nfor now: they are dropped and counted, so an archived document stays in\nthe dataset, as it does with the cursor.\n\n`reset_subscription_until` and `release_until` are lifecycle steps, each\nin effect until the instant it names and refused after it, so a copied\nor forgotten setting stops acting. `reset_subscription_until` ends this\nuser's subscription on the service before the initial load of a dataset\nwith no committed position; without it such a run refuses, since the\nsubscription may be another dataset's. `release_until` ends the\nsubscription of a dataset that holds a committed position, and the parse\nstep reading the extract publishes a released position, which every later\nrun reads as nothing to do;\nnothing else ends it, because the backend holds no SAP credentials.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `key` | array of string | yes | none | minItems=`1` |\n| `deletes` | `\"ignore\"` | yes | none | |\n| `reset_subscription_until` | string or null | no | `null` | string: format=`\"date-time\"` |\n| `release_until` | string or null | no | `null` | string: format=`\"date-time\"` |\n",
|
|
98
|
+
"SharePointExportConfig": "## SharePointExportConfig\n\nSharePoint upload target via Microsoft Graph.\n\nSerializes the source DataFrame to `format` (csv / xlsx / parquet)\nand writes the bytes to `file_path` under `site_url`. Reuses the\nexact OAuth client-credentials flow and site/library resolution the\nSharePoint extractor already ships with — same `tenant_id` /\n`client_id` / `client_secret` triple, same `{{ pipeline_args.* }}`\ntemplating, same `library_name` conventions.\n\nWrite options live in the block named for `format` -- `csv:` or `xlsx:` --\nby the rule a parse step's read options follow: the block for `format` is\nfilled with defaults when omitted, a block for another format is refused\nrather than ignored, and `parquet` has none.\n\n format: xlsx\n xlsx:\n sheet_name: Monthly\n\nRequired Azure AD application permissions: either `Sites.ReadWrite.All`\n(tenant-wide) or `Sites.Selected` + per-site `write` grant.\n\n`conflict_behavior=REPLACE` (default) is safe for SharePoint\ndocument libraries because versioning is on by default — prior\nuploads remain recoverable through the SharePoint UI. Targets\nwithout versioning (future: raw SFTP) should interpret `REPLACE`\nas a genuinely destructive overwrite and document that caveat on\ntheir own config class.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `source_dataset` | string | yes | none | |\n| `site_url` | string | yes | none | |\n| `file_path` | string | yes | none | |\n| `library_name` | string or null | no | `null` | |\n| `tenant_id` | string or null | no | `null` | |\n| `client_id` | string or null | no | `null` | |\n| `client_secret` | string or null | no | `null` | |\n| `format` | [ExportFormat](#exportformat) | no | `\"csv\"` | |\n| `conflict_behavior` | [ConflictBehavior](#conflictbehavior) | no | `\"replace\"` | |\n| `csv` | [CsvWriteOptions](#csvwriteoptions) or null | no | `null` | |\n| `xlsx` | [XlsxWriteOptions](#xlsxwriteoptions) or null | no | `null` | |\n",
|
|
99
99
|
"SharePointExtractConfig": "## SharePointExtractConfig\n\nExtraction settings for SharePoint files via Microsoft Graph API.\n\nRequires an Azure AD app registration with Sites.Read.All (or\nSites.Selected) permission.\n\nCredentials (`tenant_id`, `client_id`, `client_secret`) are\nsupplied as YAML fields — typically templated via\n`{{ pipeline_args.NAME }}` so a Remote Job's secret\n`expectedArguments` flow through at discovery time.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `site_url` | string | yes | none | |\n| `file_path` | string | yes | none | |\n| `library_name` | string or null | no | `null` | |\n| `tenant_id` | string or null | no | `null` | |\n| `client_id` | string or null | no | `null` | |\n| `client_secret` | string or null | no | `null` | |\n",
|
|
100
|
-
"SqlDatabaseExtractConfig": "## SqlDatabaseExtractConfig\n\nExtraction settings for SQL databases via SQLAlchemy.\n\nUses `pd.read_sql` / `pd.read_sql_table` under the hood. The\n*connection_string* must be a valid SQLAlchemy URL (e.g.\n`postgresql+psycopg2://user:pass@host/db`).\n\nSpecify exactly one of *query* or *table*.\n\n`cursor_column` makes the extract incremental. It names a column of the\nquery's result (or of the table) whose values only ever grow for new or\nchanged rows: an `updated_at` timestamp, an autoincrement id, a log\nsequence number. Each run then reads only the rows past the position the\nprevious run committed, and the dataset's watermark, kept by the backend,\nremembers that position across runs. The window is fixed before it is\nread: the run first asks the source for the column's current maximum, then\nreads `(committed, maximum]`. Each retry measures a new maximum; the bound\nis fixed within one attempt and does not provide a shared database snapshot.\
|
|
101
|
-
"StepType": "## StepType\n\nValues: `\"extract\"`, `\"transform\"`, `\"load\"`, `\"export\"`\n",
|
|
100
|
+
"SqlDatabaseExtractConfig": "## SqlDatabaseExtractConfig\n\nExtraction settings for SQL databases via SQLAlchemy.\n\nUses `pd.read_sql` / `pd.read_sql_table` under the hood. The\n*connection_string* must be a valid SQLAlchemy URL (e.g.\n`postgresql+psycopg2://user:pass@host/db`).\n\nSpecify exactly one of *query* or *table*.\n\n`cursor_column` makes the extract incremental. It names a column of the\nquery's result (or of the table) whose values only ever grow for new or\nchanged rows: an `updated_at` timestamp, an autoincrement id, a log\nsequence number. Each run then reads only the rows past the position the\nprevious run committed, and the dataset's watermark, kept by the backend,\nremembers that position across runs. The window is fixed before it is\nread: the run first asks the source for the column's current maximum, then\nreads `(committed, maximum]`. Each retry measures a new maximum; the bound\nis fixed within one attempt and does not provide a shared database snapshot.\nExactly one parse step reads it, and that step chooses `write_mode`\nindependently: append and upsert accumulate rows, while overwrite retains\nonly the latest published window. The window is published as part of the\nparse step's dataset, which is why the position is tracked on that dataset\nrather than on this one. The store must support the requested mode and the\nextraction lifecycle (see `WriteMode`).\n\nWhat the cursor cannot see: a row whose cursor value does not change when\nthe row changes, and a row deleted at the source. Both stay as they were\nlast read. An initial read (no committed bound) refuses null cursors, since\nno window can include them. Later runs only inspect rows past the committed\nbound, so historical nulls do not block progress; null rows remain excluded\nuntil assigned a cursor beyond that bound. Rows sharing the maximum value\nwith a row still being written at the moment of the read are read once and\nnever again, so the column should be one the source assigns at commit, not\nat the start of a transaction.\n\n**Renaming the cursor column, or moving the source, needs an operator step.**\nThe stored progress is keyed by the derivation's version, the driver name,\nthe host and port, the database, the relation *and* the cursor column (for\na `query`, the relation is a hash of its exact text), plus a hash of any\ndriver options left in the URL. Changing any of them in this YAML makes\nevery later run refuse:\na position measured against one stream never applied to another. Answering\nthat refusal is `PUT /labs/datasets/{id}/watermark` -- the id of the parse\nstep's dataset, where the position is kept -- which states the new\nkey and the position to carry over. Nothing about the data already stored\nchanges. The position carried over names the column it was measured on, and\na run whose cursor is a different column refuses it rather than bounding on\na value that was never compared against that column.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `connection_string` | string | yes | none | |\n| `table` | string or null | no | `null` | |\n| `batch_size` | integer | no | `100000` | exclusiveMinimum=`0` |\n| `query` | string or null | no | `null` | |\n| `cursor_column` | string or null | no | `null` | |\n",
|
|
101
|
+
"StepType": "## StepType\n\nValues: `\"extract\"`, `\"parse\"`, `\"transform\"`, `\"load\"`, `\"export\"`\n",
|
|
102
102
|
"TenantCredentialsConfig": "## TenantCredentialsConfig\n\nYAML-validated Farseer credentials, embedded as `farseer_credentials:` wherever needed.\n\n`api_key` is `pydantic.SecretStr` — call `.get_secret_value()`\nat the boundary where the live string is needed. `hide_input_in_errors`\nkeeps the key out of `pydantic.ValidationError` messages, which\nby default echo the raw input dict.\n\nShape: `tenant_id` + `api_key` are both required whenever the block\nis present. `base_url` is optional and defaults to the runner's\n`FARSEER_URL`. To use the runner's own tenant, omit the\n`farseer_credentials:` block entirely — pydantic enforces the\nrequired-pair invariant via the field types.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `tenant_id` | string | yes | none | |\n| `api_key` | string | yes | none | format=`\"password\"`; secret / write-only |\n| `base_url` | string or null | no | `null` | |\n",
|
|
103
103
|
"TextColumn": "## TextColumn\n\nMaps a DataFrame column to a TEXT attribute column on a RAMA dim table.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `source_column` | string | yes | none | |\n| `target_dimension_table_column` | string | yes | none | |\n",
|
|
104
104
|
"TimePoint": "## TimePoint\n\nA RAMA time point, identified by (year, month).\n\nClient-side ID convention matches the backend: `timePointId = year * 100 + month`.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `year` | integer | yes | none | minimum=`1900`; maximum=`9999` |\n| `month` | integer | yes | none | minimum=`1`; maximum=`12` |\n",
|
|
105
105
|
"TimepointVariableMapping": "## TimepointVariableMapping\n\nMaps a wide-format column to a RAMA variable pinned to a specific timepoint.\n\nUnlike `LoadVariableMapping` (which maps long-format VALUES columns whose\ntime is resolved per-row from `date:` or Years/Months IDENTIFIER columns),\nthis mapping pins the column to one (year, month) via `timepoint` — the\ncolumn becomes a TIMEPOINT columnMeta on the import job.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `fixed_dimension_members` | array of [FixedDimension](#fixeddimension) | no | none | |\n| `source_column` | string | yes | none | |\n| `target_variable` | string | yes | none | |\n| `timepoint` | [TimePoint](#timepoint) | yes | none | |\n",
|
|
106
|
-
"TldvExtractConfig": "## TldvExtractConfig\n\n`extract.type: tldv` — multi-source family over the tl;dv REST API.\n\nAuthentication is a personal API key from tl;dv's settings, sent as\n`x-api-key`; it is a YAML field, typically templated via\n`{{ pipeline_args.TLDV_API_KEY }}`. A key sees the meetings its owner\ncan see, and a transcript is exported only for meetings whose organizer\nis on a paid plan -- tl;dv answers 403 for the others, which the\nextractor logs and skips per meeting rather than failing the run.\n\n`meetings` is one row per meeting; `transcripts` one row per spoken\nsegment; `notes` one row per meeting with tl;dv's generated notes as\nMarkdown. The filter block is the same on all three. Every source\
|
|
106
|
+
"TldvExtractConfig": "## TldvExtractConfig\n\n`extract.type: tldv` — multi-source family over the tl;dv REST API.\n\nAuthentication is a personal API key from tl;dv's settings, sent as\n`x-api-key`; it is a YAML field, typically templated via\n`{{ pipeline_args.TLDV_API_KEY }}`. A key sees the meetings its owner\ncan see, and a transcript is exported only for meetings whose organizer\nis on a paid plan -- tl;dv answers 403 for the others, which the\nextractor logs and skips per meeting rather than failing the run.\n\n`meetings` is one row per meeting; `transcripts` one row per spoken\nsegment; `notes` one row per meeting with tl;dv's generated notes as\nMarkdown. The filter block is the same on all three. Every source\nstores a parquet payload, which a parse step reads with `format: parquet`.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `source` | [TldvSource](#tldvsource) | yes | none | |\n| `api_key` | string or null | no | `null` | |\n| `meetings` | [TldvMeetingsFilter](#tldvmeetingsfilter) or null | no | `null` | |\n| `transcripts` | [TldvMeetingsFilter](#tldvmeetingsfilter) or null | no | `null` | |\n| `notes` | [TldvMeetingsFilter](#tldvmeetingsfilter) or null | no | `null` | |\n",
|
|
107
107
|
"TldvMeetingsFilter": "## TldvMeetingsFilter\n\nWhich meetings a tl;dv source reads: a date window.\n\nShared by every source, because transcripts and notes are addressed per\nmeeting and so start from the same meeting list. `from_date` and\n`to_date` are ISO 8601 dates.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `from_date` | string or null | no | `null` | |\n| `to_date` | string or null | no | `null` | |\n| `page_size` | integer | no | `50` | maximum=`50`; exclusiveMinimum=`0` |\n",
|
|
108
108
|
"TldvSource": "## TldvSource\n\nSub-discriminator on `extract.tldv.source`.\n\nValues: `\"meetings\"`, `\"transcripts\"`, `\"notes\"`\n",
|
|
109
|
-
"TransformConfig": "## TransformConfig\n\nConfiguration for a `type: transform` dataset step.\n\nChoose the surface in this order and always set `engine`, because its\ndefault is `python`: SQL (`duckdb`) for anything set-based, `ibis` when the\nlogic needs Python to compose, and `python` only for work with no lazy form.\n`duckdb` and `ibis` stream; `python` holds every input and its output in\nmemory.\n\nFor `engine: duckdb`:\n\n`query` (inline SQL) supplies the query. Upstream `deps` are exposed to\nthe SQL as views named by their leaf name. Output is always parquet.\n`sql_file` (a `.sql` file in `Code/`) exists for engine-run pipelines but\nis refused for authored pipelines, which are validated before any source\nis read; use `query`.\n\nFor `engine: ibis`:\n\n`script` names a `Code/` file holding an `@ibis_transform` function. The\nrunner calls it with one lazy ibis `Table` per dep, named by the dep's leaf\nname, and it must return a `Table`; returning a DataFrame is refused. Rows\ncome back in no fixed order unless the expression ends in `.order_by()`.\n\n from farseer_simple_pipelines import ibis_transform\n\n @ibis_transform\n def sales_clean(sales_lines, *, args):\n t = sales_lines\n for column in args[\"code_columns\"]:\n t = t.mutate(**{column: t[column].strip().upper()})\n return t.order_by(args[\"code_columns\"])\n\nFor `engine: python`:\n\n`script` is the Python filename containing the `@transform` function.\nThe runner calls it with one pandas DataFrame per dep, as a keyword\nargument named by the dep's leaf name, and the function returns one\nDataFrame.\n\nFor both script surfaces:\n\n`function` optionally overrides which decorated function in the script\nbacks this dataset. When unset, the runner binds the function whose name\nmatches the dataset's leaf name. Setting this lets one shared function\nback many datasets (e.g. a single `tb_any` used by `tb_c4c`, `tb_cdg`,\n`tb_cih`). `args` is an arbitrary dict passed to the function's\nkeyword-only `args` parameter, if it declares one. The script lives under\n`Code/`, mirroring the dataset's folder under `Models/`.\n\
|
|
109
|
+
"TransformConfig": "## TransformConfig\n\nConfiguration for a `type: transform` dataset step.\n\nChoose the surface in this order and always set `engine`, because its\ndefault is `python`: SQL (`duckdb`) for anything set-based, `ibis` when the\nlogic needs Python to compose, and `python` only for work with no lazy form.\n`duckdb` and `ibis` stream; `python` holds every input and its output in\nmemory.\n\nFor `engine: duckdb`:\n\n`query` (inline SQL) supplies the query. Upstream `deps` are exposed to\nthe SQL as views named by their leaf name. Output is always parquet.\n`sql_file` (a `.sql` file in `Code/`) exists for engine-run pipelines but\nis refused for authored pipelines, which are validated before any source\nis read; use `query`.\n\nFor `engine: ibis`:\n\n`script` names a `Code/` file holding an `@ibis_transform` function. The\nrunner calls it with one lazy ibis `Table` per dep, named by the dep's leaf\nname, and it must return a `Table`; returning a DataFrame is refused. Rows\ncome back in no fixed order unless the expression ends in `.order_by()`.\n\n from farseer_simple_pipelines import ibis_transform\n\n @ibis_transform\n def sales_clean(sales_lines, *, args):\n t = sales_lines\n for column in args[\"code_columns\"]:\n t = t.mutate(**{column: t[column].strip().upper()})\n return t.order_by(args[\"code_columns\"])\n\nFor `engine: python`:\n\n`script` is the Python filename containing the `@transform` function.\nThe runner calls it with one pandas DataFrame per dep, as a keyword\nargument named by the dep's leaf name, and the function returns one\nDataFrame.\n\nFor both script surfaces:\n\n`function` optionally overrides which decorated function in the script\nbacks this dataset. When unset, the runner binds the function whose name\nmatches the dataset's leaf name. Setting this lets one shared function\nback many datasets (e.g. a single `tb_any` used by `tb_c4c`, `tb_cdg`,\n`tb_cih`). `args` is an arbitrary dict passed to the function's\nkeyword-only `args` parameter, if it declares one. The script lives under\n`Code/`, mirroring the dataset's folder under `Models/`.\n\nWhatever the engine, the output is parquet, so there is no format to set:\na transform's output is typed and read back by scanning it, and neither\nsurvives csv or json.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `engine` | [TransformEngine](#transformengine) | no | `\"python\"` | |\n| `script` | string or null | no | `null` | |\n| `function` | string or null | no | `null` | |\n| `query` | string or null | no | `null` | |\n| `sql_file` | string or null | no | `null` | |\n| `args` | object | no | none | |\n| `max_file_size` | string or integer or null | no | `null` | |\n\n### Example\n\n```yaml\n# Models/sales_monthly.yaml: a file's name must match its `name:`.\n# Totals the month by product and region in SQL. Each dep is a view named after\n# its leaf name; cast SUMs and dates, which DuckDB returns as DECIMAL and DATE.\nname: sales_monthly\ntype: transform\ndeps: [sales]\ntransform:\n engine: duckdb\n query: |\n SELECT\n product,\n region,\n strftime(CAST(sale_date AS DATE), '%Y-%m-01') AS month,\n CAST(SUM(amount) AS DOUBLE) AS amount\n FROM sales\n GROUP BY ALL\n```\n",
|
|
110
110
|
"TransformEngine": "## TransformEngine\n\nHow a transform is authored, and therefore whether it materialises.\n\nNot the compute engine, despite the name: there is one of those, DuckDB, and\nevery surface here runs on it. What this selects is the authoring surface --\nand because exactly one surface holds a whole dataset in memory, it is also\nthe step's resource envelope, declared where a scheduler can read it before\nthe step has ever run. The name is kept because the field is a tenant's\nYAML.\n\n`duckdb` runs author SQL over the dependency relations. Streams.\n\n`ibis` runs an `@ibis_transform` function over lazy tables, returning one.\nStreams.\n\n`python` runs a `@transform` function over DataFrames, returning one. **The\nonly surface that materialises**, so a step declaring it is bounded by the\ncontainer rather than by a memory limit.\n\nValues: `\"python\"`, `\"duckdb\"`, `\"ibis\"`\n",
|
|
111
|
-
"WriteMode": "## WriteMode\n\nChoose how
|
|
112
|
-
"
|
|
113
|
-
"
|
|
111
|
+
"WriteMode": "## WriteMode\n\nChoose how a parse step or transform writes its output to a dataset.\n\n`overwrite` replaces the rows, `append` adds rows, and `upsert` replaces\nmatching keys while retaining the others. The tenant chooses the mode on\neach run, independently of whether the source uses a SQL cursor.\nOverwriting an incremental window and appending a complete result are both\nintentional choices we support. A SAP OData window (`cursor` or `odp`) is\nthe exception: a changed row arrives again, so the parse step reading it\nmust upsert on the entity's key, or the run fails before any step runs. The\nstore must implement the requested mode; currently only the Iceberg store\nsupports append and upsert. An extract declares no mode: it stores a\npayload, and the dataset is the parse step reading it.\n\nQuality rules and `schema:` see the accumulated dataset rather than this\nrun's rows, because validation loads back what was persisted. A rule has to\nhold across runs. Schema-only checks avoid a cached copy, but quality rules\nmaterialize the full dataset; incremental reads do not make validation cost\nproportional to the new window.\n\nA run whose window read no rows publishes no version and adds no file, so\nwhat a consumer reads tracks changes rather than runs. The exception is an\nextractor that returns its position as a `MovedPosition` (SAP ODP, which\nserves an older delta token only as a recovery of what it already\ndelivered): that window is published, empty, to carry it. Declared validation\nstill checks the published dataset: rules may have changed since the last\npublication. A first run over an empty source does publish, so a consumer\nfinds an empty dataset rather than none, provided its columns are typed:\ndeclared under `schema:`, or already typed in the payload, as a SAP OData\nread's are from the service's `$metadata`. Without types the Iceberg store\nrefuses that run: every column of an empty result arrives untyped, and a\nnew table needs types.\n\nThe candidate that a quiet run opened is cancelled and its logical version\nnumber stays consumed. Physical cleanup and metadata retention are deferred;\nthe abandonment sweep only marks eligible active attempts cancelled.\n\nValues: `\"overwrite\"`, `\"append\"`, `\"upsert\"`\n",
|
|
112
|
+
"XlsxParseOptions": "## XlsxParseOptions\n\nHow to read an xlsx payload.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `sheet_name` | string or integer | no | `0` | |\n| `columns` | string or null | no | `null` | |\n| `has_header` | boolean | no | `true` | |\n| `start_row` | integer or null | no | `null` | |\n",
|
|
113
|
+
"XlsxWriteOptions": "## XlsxWriteOptions\n\nOptions for DataFrame → XLSX serialization on export.\n\nUnknown fields are rejected.\n\n| YAML field | Type | Required | Default | Constraints / description |\n| --- | --- | --- | --- | --- |\n| `sheet_name` | string | no | `\"Sheet1\"` | |\n| `include_header` | boolean | no | `true` | |\n"
|
|
114
114
|
}
|
|
115
115
|
}
|
package/dist/pipeline/service.js
CHANGED
|
@@ -316,7 +316,7 @@ class PipelineService {
|
|
|
316
316
|
checks.push({
|
|
317
317
|
name: "declared-outputs",
|
|
318
318
|
status: "pending",
|
|
319
|
-
detail: models.length ? `No output dataset IDs recorded yet; datasets are created on the first run. After it, rerun init jobId=${this.profile.jobId} force=true to record their IDs.` : "No dataset YAML under Models/ yet. Write the first one there: the guide topics FarseerFilesExtractConfig, TransformConfig and LoadCellsConfig each end with a complete example."
|
|
319
|
+
detail: models.length ? `No output dataset IDs recorded yet; datasets are created on the first run. After it, rerun init jobId=${this.profile.jobId} force=true to record their IDs.` : "No dataset YAML under Models/ yet. Write the first one there: the guide topics FarseerFilesExtractConfig, ParseConfig, TransformConfig and LoadCellsConfig each end with a complete example."
|
|
320
320
|
});
|
|
321
321
|
else
|
|
322
322
|
await attempt("declared-outputs", async () => {
|