datanotes 3.3.0 → 3.4.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/SECURITY.md +5 -3
- package/dist/api/extensions.cjs +1345 -21
- package/dist/api/extensions.js +1345 -21
- package/dist/api/index.cjs +1345 -21
- package/dist/api/index.js +1345 -21
- package/dist/api/mcp.cjs +1345 -21
- package/dist/api/mcp.js +1345 -21
- package/dist/datanotes.cjs +2927 -609
- package/dist/docs/administration/extensions.md +2 -2
- package/dist/docs/api/operations/add_column.md +1 -0
- package/dist/docs/api/operations/alter_table.md +4 -3
- package/dist/docs/api/operations/check_table.md +1 -0
- package/dist/docs/api/operations/create_table.md +1 -0
- package/dist/docs/api/operations/describe_database.md +2 -0
- package/dist/docs/api/operations/describe_history.md +1 -0
- package/dist/docs/api/operations/describe_semantic_index.md +1 -0
- package/dist/docs/api/operations/describe_table.md +1 -0
- package/dist/docs/api/operations/graph_neighbors.md +1 -0
- package/dist/docs/api/operations/graph_path.md +1 -0
- package/dist/docs/api/operations/graph_traverse.md +1 -0
- package/dist/docs/api/operations/infer_table.md +1 -0
- package/dist/docs/api/operations/list_changes.md +1 -0
- package/dist/docs/api/operations/list_folder.md +1 -0
- package/dist/docs/api/operations/list_link_targets.md +1 -0
- package/dist/docs/api/operations/list_migrations.md +1 -0
- package/dist/docs/api/operations/list_tables.md +2 -0
- package/dist/docs/api/operations/list_webhooks.md +1 -0
- package/dist/docs/api/operations/read_note.md +1 -0
- package/dist/docs/api/operations/search.md +39 -0
- package/dist/docs/api/operations/search_notes.md +1 -0
- package/dist/docs/api/operations/select_rows.md +1 -0
- package/dist/docs/api/operations/semantic_search.md +1 -0
- package/dist/docs/api/operations/table_changes.md +1 -0
- package/dist/docs/api/operations/tags/queries.md +1 -0
- package/dist/docs/api/operations/tags/tokens.md +1 -1
- package/dist/docs/api/operations/tokens_create.md +1 -0
- package/dist/docs/api/operations/tokens_update.md +2 -1
- package/dist/docs/api.md +5 -4
- package/dist/docs/develop/build-an-app.md +2 -1
- package/dist/docs/develop/change-feed-and-webhooks.md +1 -1
- package/dist/docs/develop/http-api.md +1 -1
- package/dist/docs/guides/data-quality/check-constraints.md +10 -10
- package/dist/docs/guides/data-quality/hand-edits.md +8 -8
- package/dist/docs/guides/database-objects/bases.md +11 -11
- package/dist/docs/guides/database-objects/catalogs-and-schemas.md +30 -10
- package/dist/docs/guides/database-objects/columns.md +243 -40
- package/dist/docs/guides/database-objects/relations.md +28 -28
- package/dist/docs/guides/database-objects/tables.md +167 -43
- package/dist/docs/guides/database-objects/views.md +44 -44
- package/dist/docs/guides/history/change-data-feed.md +34 -34
- package/dist/docs/guides/history/journal-and-undo.md +12 -12
- package/dist/docs/guides/history/restore.md +20 -20
- package/dist/docs/guides/history/table-history.md +31 -31
- package/dist/docs/guides/read-and-write/automatic-links.md +15 -15
- package/dist/docs/guides/read-and-write/import-notes.md +20 -20
- package/dist/docs/guides/read-and-write/joins-and-aggregates.md +7 -7
- package/dist/docs/guides/read-and-write/read-and-filter.md +10 -10
- package/dist/docs/guides/read-and-write/write-rows.md +10 -10
- package/dist/docs/guides/search/hybrid.md +162 -0
- package/dist/docs/guides/search/text.md +1 -1
- package/dist/docs/guides/security/security-model.md +5 -3
- package/dist/docs/guides/security/tokens.md +121 -8
- package/dist/docs/reference/cli.md +1 -1
- package/dist/docs/reference/glossary.md +1 -1
- package/dist/docs/reference/operations/auxiliary.md +3 -3
- package/dist/docs/reference/operations/queries.md +16 -0
- package/dist/docs/reference/operations/rows.md +1 -1
- package/dist/docs/reference/operations/schema.md +5 -5
- package/dist/docs/reference/operations.md +6 -5
- package/dist/docs/release-notes.md +59 -0
- package/dist/docs/start/connect-agents.md +10 -3
- package/package.json +1 -1
package/dist/api/mcp.js
CHANGED
|
@@ -224,7 +224,7 @@ var OPERATIONS = [
|
|
|
224
224
|
},
|
|
225
225
|
{
|
|
226
226
|
"name": "list_tables",
|
|
227
|
-
"description": "List every table: `name`, `catalog`, `schema`, `qualified` (`personal.metrics.mood` \u2014 use it\nwherever a table is expected; `metrics.mood` or `mood` also work when unambiguous), `path` and,\nwhen declared, `description`, `aliases` (other words for what it records) and `tags`. Tables are\ndefined in `metastore.yaml` (catalog \u2192 schema \u2192 table): read it freely, but it is read-only for\nagents and changes only through the schema operations (create_table, add_column, \u2026). Returns `{tables, views}`: `views` lists the stored views (same fields, no\npath): select them like tables. `system.information_schema` is read with `select_rows`.\n\nCall this first to find the table for what the user reports (match their words against\nname, description and aliases), and before creating tables or columns so you reuse existing\nones instead of creating duplicates.",
|
|
227
|
+
"description": "List every table: `name`, `catalog`, `schema`, `qualified` (`personal.metrics.mood` \u2014 use it\nwherever a table is expected; `metrics.mood` or `mood` also work when unambiguous), `path` and,\nwhen declared, `description`, `aliases` (other words for what it records) and `tags`. Tables are\ndefined in `metastore.yaml` (catalog \u2192 schema \u2192 table): read it freely, but it is read-only for\nagents and changes only through the schema operations (create_table, add_column, \u2026). Returns `{tables, views}`: `views` lists the stored views (same fields, no\npath): select them like tables. `system.information_schema` is read with `select_rows`.\nA token with `read` patterns sees only the tables and views it may read.\n\nCall this first to find the table for what the user reports (match their words against\nname, description and aliases), and before creating tables or columns so you reuse existing\nones instead of creating duplicates.",
|
|
228
228
|
"inputSchema": {
|
|
229
229
|
"additionalProperties": false,
|
|
230
230
|
"properties": {},
|
|
@@ -489,7 +489,7 @@ var OPERATIONS = [
|
|
|
489
489
|
},
|
|
490
490
|
"generated": {
|
|
491
491
|
"type": "string",
|
|
492
|
-
"description":
|
|
492
|
+
"description": 'Expression of a generated column: a column, `date(col)\xB1N`, a template like `{name} {surname}`, `link(<template>)`, or an aggregate of a json list of objects like `count(feeds, side = "left")` or `sum(feeds.min)`.'
|
|
493
493
|
},
|
|
494
494
|
"dense": {
|
|
495
495
|
"type": "boolean",
|
|
@@ -610,7 +610,7 @@ var OPERATIONS = [
|
|
|
610
610
|
},
|
|
611
611
|
{
|
|
612
612
|
"name": "create_table",
|
|
613
|
-
"description": 'Create a table: `name`, in `catalog` and `schema` (default: the database\'s defaults); the definition\ngoes in metastore.yaml, the rows in `<root>/<catalog>/<schema>/<name>/`. Names: lowercase letters,\ndigits, `_` (no dots: pass the catalog and the schema as their own arguments).\n- `description` (required): what a row of the table records. Every column needs its own `description`\n too, what it holds: the table is refused otherwise, with every missing one listed. Descriptions are how\n agents and people understand the schema, so write them for a reader who never saw the notes. The\n engine writes those of `id` and of `identity` "uuid" / "created" columns.\n- `columns`: specs like `{"name": "kind", "type": "enum", "values": ["a","b"], "required": true,\n "description": "What kind of entry the row is"}`.\n Types: string, integer, number, boolean, date, datetime, enum, link, list (+ `items`), json.\n Attributes: required, default (`"{now}"`/`"{today}"`), min, max, step, values, `ordered` (enum in\n order: filters/avg use the position), ref (link target, full `catalog.schema.table` or "self"),\n unique, label, description, aliases, `generated` (e.g. `"date(occurred_at)"`, `"{name} {surname}"`),\n `identity` ("filename" | "created"), `vocabulary` (allowed values = names of another table\'s rows),\n `hierarchy: true` (one parent link to its own table), `acyclic: true` (links to rows of its own table that never loop back, such as tasks blocked by tasks; with `inverse`, the rule holds on both sides), `dense` (written on every row),\n `inverse` on a link column: the column of the `ref` table that links back (`friends` \u2194\n `friends`, `children` \u2194 `parents`, `partner` \u2194 `partner`); writes keep both sides in step.\n- `time_column`: rows named by that date/datetime; otherwise `filename` (e.g. `"{name}"`).\n- The table\'s options, as alter_table names them: `aliases` (how agents find it, with the\n description), `partition`, `exclude`, `archive`, `history` (keep its versions; default: the\n database\'s setting), `autolink_target` (true / false: may automatic links link its rows? default:\n yes, unless its rows are named by a date or a time, as with `time_column`).\n- `row_template`: markdown body of new rows. Shared columns come from bases: `set_table_bases`.\n- `instructions`: how to fill a row, for agents (Markdown); describe_table returns them.\n- `tags`: key/value labels of the table, strings (`{"domain": "health"}`); list_tables and\n describe_table return them, alter_table changes them.\nEnum columns: `values` and, for each, its meaning in `value_descriptions` (`{"stated": "the user said it", \u2026}`): describe_table shows them and a refused value lists them.\nGenerated link columns: `generated: "link({occurred_at:YYYY-MM-DD})"` with `ref` = the days table links each row to the row of `ref` named by the template (its folder read from the schema; the target may not exist yet).\nFiltered link targets (link columns): `ref_where` (a `where` every target must match) and `ref_by` (a column of the row picks the target level: `{"column": "kind", "levels": ["area", "project", "workstream"]}` or `{"column": "kind", "map": {"area": null, "project": ["area"]}}`; null = top level, no link; `target_column` when the target names it differently: an enum target column must have every value the map allows, a string one takes any value). A link to no row of the table, or to the row itself, is refused too. Existing rows that break them refuse the change; `list_link_targets` lists the valid targets of a row.\n\nThe schema changes only through operations like this one: never edit metastore.yaml by hand (no validation, no undo).',
|
|
613
|
+
"description": 'Create a table: `name`, in `catalog` and `schema` (default: the database\'s defaults); the definition\ngoes in metastore.yaml, the rows in `<root>/<catalog>/<schema>/<name>/`. Names: lowercase letters,\ndigits, `_` (no dots: pass the catalog and the schema as their own arguments).\n- `description` (required): what a row of the table records. Every column needs its own `description`\n too, what it holds: the table is refused otherwise, with every missing one listed. Descriptions are how\n agents and people understand the schema, so write them for a reader who never saw the notes. The\n engine writes those of `id` and of `identity` "uuid" / "created" columns.\n- `columns`: specs like `{"name": "kind", "type": "enum", "values": ["a","b"], "required": true,\n "description": "What kind of entry the row is"}`.\n Types: string, integer, number, boolean, date, datetime, enum, link, list (+ `items`), json.\n Attributes: required, default (`"{now}"`/`"{today}"`), min, max, step, values, `ordered` (enum in\n order: filters/avg use the position), ref (link target, full `catalog.schema.table` or "self"),\n unique, label, description, aliases, `generated` (e.g. `"date(occurred_at)"`, `"{name} {surname}"`),\n `identity` ("filename" | "created"), `vocabulary` (allowed values = names of another table\'s rows),\n `hierarchy: true` (one parent link to its own table), `acyclic: true` (links to rows of its own table that never loop back, such as tasks blocked by tasks; with `inverse`, the rule holds on both sides), `dense` (written on every row),\n `inverse` on a link column: the column of the `ref` table that links back (`friends` \u2194\n `friends`, `children` \u2194 `parents`, `partner` \u2194 `partner`); writes keep both sides in step.\n- `time_column`: rows named by that date/datetime; otherwise `filename` (e.g. `"{name}"`).\n- The table\'s options, as alter_table names them: `aliases` (how agents find it, with the\n description), `partition`, `exclude`, `archive`, `history` (keep its versions; default: the\n database\'s setting), `autolink_target` (true / false: may automatic links link its rows? default:\n yes, unless its rows are named by a date or a time, as with `time_column`).\n- `row_template`: markdown body of new rows. Shared columns come from bases: `set_table_bases`.\n- `instructions`: how to fill a row, for agents (Markdown); describe_table returns them.\n- `tags`: key/value labels of the table, strings (`{"domain": "health"}`); list_tables and\n describe_table return them, alter_table changes them.\nEnum columns: `values` and, for each, its meaning in `value_descriptions` (`{"stated": "the user said it", \u2026}`): describe_table shows them and a refused value lists them.\nGenerated link columns: `generated: "link({occurred_at:YYYY-MM-DD})"` with `ref` = the days table links each row to the row of `ref` named by the template (its folder read from the schema; the target may not exist yet).\nGenerated aggregates of a json column holding a list of objects (integer or number columns; avg: number): `count(feeds)`, `count(feeds.min)` (the items with a min), `sum(feeds.min)`, `avg(\u2026)`, `min(\u2026)`, `max(\u2026)`, with an optional filter on one field: `count(feeds, side = "left")`, `sum(feeds.min, min > 0)` (=, !=, <, <=, >, >=; "text", a number, true or false). Recomputed on every write; no list: count and sum 0, avg/min/max empty; a field that is not a number: empty.\nFiltered link targets (link columns): `ref_where` (a `where` every target must match) and `ref_by` (a column of the row picks the target level: `{"column": "kind", "levels": ["area", "project", "workstream"]}` or `{"column": "kind", "map": {"area": null, "project": ["area"]}}`; null = top level, no link; `target_column` when the target names it differently: an enum target column must have every value the map allows, a string one takes any value). A link to no row of the table, or to the row itself, is refused too. Existing rows that break them refuse the change; `list_link_targets` lists the valid targets of a row.\n\nThe schema changes only through operations like this one: never edit metastore.yaml by hand (no validation, no undo).',
|
|
614
614
|
"inputSchema": {
|
|
615
615
|
"additionalProperties": false,
|
|
616
616
|
"properties": {
|
|
@@ -1179,6 +1179,50 @@ var OPERATIONS = [
|
|
|
1179
1179
|
]
|
|
1180
1180
|
},
|
|
1181
1181
|
"description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
|
|
1182
|
+
},
|
|
1183
|
+
"schema_references": {
|
|
1184
|
+
"type": "array",
|
|
1185
|
+
"items": {
|
|
1186
|
+
"title": "SchemaReference",
|
|
1187
|
+
"type": "object",
|
|
1188
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
1189
|
+
"properties": {
|
|
1190
|
+
"table": {
|
|
1191
|
+
"type": "string",
|
|
1192
|
+
"description": "The table whose column names it (full name)."
|
|
1193
|
+
},
|
|
1194
|
+
"base": {
|
|
1195
|
+
"type": "string",
|
|
1196
|
+
"description": "The base whose column names it."
|
|
1197
|
+
},
|
|
1198
|
+
"view": {
|
|
1199
|
+
"type": "string",
|
|
1200
|
+
"description": "The view whose query names it (full name)."
|
|
1201
|
+
},
|
|
1202
|
+
"column": {
|
|
1203
|
+
"type": "string",
|
|
1204
|
+
"description": "The column of the table or base."
|
|
1205
|
+
},
|
|
1206
|
+
"key": {
|
|
1207
|
+
"type": "string",
|
|
1208
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
1209
|
+
},
|
|
1210
|
+
"from": {
|
|
1211
|
+
"type": "string",
|
|
1212
|
+
"description": "The name as written before."
|
|
1213
|
+
},
|
|
1214
|
+
"to": {
|
|
1215
|
+
"type": "string",
|
|
1216
|
+
"description": "The name written in its place."
|
|
1217
|
+
}
|
|
1218
|
+
},
|
|
1219
|
+
"required": [
|
|
1220
|
+
"key",
|
|
1221
|
+
"from",
|
|
1222
|
+
"to"
|
|
1223
|
+
]
|
|
1224
|
+
},
|
|
1225
|
+
"description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
|
|
1182
1226
|
}
|
|
1183
1227
|
},
|
|
1184
1228
|
"required": [
|
|
@@ -1592,6 +1636,50 @@ var OPERATIONS = [
|
|
|
1592
1636
|
]
|
|
1593
1637
|
},
|
|
1594
1638
|
"description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
|
|
1639
|
+
},
|
|
1640
|
+
"schema_references": {
|
|
1641
|
+
"type": "array",
|
|
1642
|
+
"items": {
|
|
1643
|
+
"title": "SchemaReference",
|
|
1644
|
+
"type": "object",
|
|
1645
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
1646
|
+
"properties": {
|
|
1647
|
+
"table": {
|
|
1648
|
+
"type": "string",
|
|
1649
|
+
"description": "The table whose column names it (full name)."
|
|
1650
|
+
},
|
|
1651
|
+
"base": {
|
|
1652
|
+
"type": "string",
|
|
1653
|
+
"description": "The base whose column names it."
|
|
1654
|
+
},
|
|
1655
|
+
"view": {
|
|
1656
|
+
"type": "string",
|
|
1657
|
+
"description": "The view whose query names it (full name)."
|
|
1658
|
+
},
|
|
1659
|
+
"column": {
|
|
1660
|
+
"type": "string",
|
|
1661
|
+
"description": "The column of the table or base."
|
|
1662
|
+
},
|
|
1663
|
+
"key": {
|
|
1664
|
+
"type": "string",
|
|
1665
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
1666
|
+
},
|
|
1667
|
+
"from": {
|
|
1668
|
+
"type": "string",
|
|
1669
|
+
"description": "The name as written before."
|
|
1670
|
+
},
|
|
1671
|
+
"to": {
|
|
1672
|
+
"type": "string",
|
|
1673
|
+
"description": "The name written in its place."
|
|
1674
|
+
}
|
|
1675
|
+
},
|
|
1676
|
+
"required": [
|
|
1677
|
+
"key",
|
|
1678
|
+
"from",
|
|
1679
|
+
"to"
|
|
1680
|
+
]
|
|
1681
|
+
},
|
|
1682
|
+
"description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
|
|
1595
1683
|
}
|
|
1596
1684
|
},
|
|
1597
1685
|
"required": [
|
|
@@ -1616,7 +1704,7 @@ var OPERATIONS = [
|
|
|
1616
1704
|
},
|
|
1617
1705
|
{
|
|
1618
1706
|
"name": "add_column",
|
|
1619
|
-
"description": 'Add a typed column. Sparse by default (written only on rows that have a value \u2014 use for\nmetrics, e.g. `{"name": "metric_mood", "type": "integer", "min": 1, "max": 5, "label":\n"Mood", "aliases": ["mood"], "description": "Mood of the day, 1 = bad, 5 = great"}`).\n`description` is required: what the column holds, for the agents and people who read the schema\n(the engine writes it for `identity` "uuid" / "created" columns).\n`dense: true` in the spec adds it to every row with its `default`. Call `describe_table` first: never add\na column whose meaning an existing column (name/label/aliases/description) already covers.\nColumn names are permanent identifiers; only `rename_column` changes them.\nEnum columns: `values` and, for each, its meaning in `value_descriptions` (`{"stated": "the user said it", \u2026}`): describe_table shows them and a refused value lists them.\nGenerated link columns: `generated: "link({occurred_at:YYYY-MM-DD})"` with `ref` = the days table links each row to the row of `ref` named by the template (its folder read from the schema; the target may not exist yet).\nFiltered link targets (link columns): `ref_where` (a `where` every target must match) and `ref_by` (a column of the row picks the target level: `{"column": "kind", "levels": ["area", "project", "workstream"]}` or `{"column": "kind", "map": {"area": null, "project": ["area"]}}`; null = top level, no link; `target_column` when the target names it differently: an enum target column must have every value the map allows, a string one takes any value). A link to no row of the table, or to the row itself, is refused too. Existing rows that break them refuse the change; `list_link_targets` lists the valid targets of a row.\nAcyclic links: `acyclic: true` on a link (or list of links) to the table itself refuses every write that closes a cycle, on either side of an `inverse`; refused while existing rows form one (they are listed).\n\nThe schema changes only through operations like this one: never edit metastore.yaml by hand (no validation, no undo).',
|
|
1707
|
+
"description": 'Add a typed column. Sparse by default (written only on rows that have a value \u2014 use for\nmetrics, e.g. `{"name": "metric_mood", "type": "integer", "min": 1, "max": 5, "label":\n"Mood", "aliases": ["mood"], "description": "Mood of the day, 1 = bad, 5 = great"}`).\n`description` is required: what the column holds, for the agents and people who read the schema\n(the engine writes it for `identity` "uuid" / "created" columns).\n`dense: true` in the spec adds it to every row with its `default`. Call `describe_table` first: never add\na column whose meaning an existing column (name/label/aliases/description) already covers.\nColumn names are permanent identifiers; only `rename_column` changes them.\nEnum columns: `values` and, for each, its meaning in `value_descriptions` (`{"stated": "the user said it", \u2026}`): describe_table shows them and a refused value lists them.\nGenerated link columns: `generated: "link({occurred_at:YYYY-MM-DD})"` with `ref` = the days table links each row to the row of `ref` named by the template (its folder read from the schema; the target may not exist yet).\nGenerated aggregates of a json column holding a list of objects (integer or number columns; avg: number): `count(feeds)`, `count(feeds.min)` (the items with a min), `sum(feeds.min)`, `avg(\u2026)`, `min(\u2026)`, `max(\u2026)`, with an optional filter on one field: `count(feeds, side = "left")`, `sum(feeds.min, min > 0)` (=, !=, <, <=, >, >=; "text", a number, true or false). Recomputed on every write; no list: count and sum 0, avg/min/max empty; a field that is not a number: empty.\nFiltered link targets (link columns): `ref_where` (a `where` every target must match) and `ref_by` (a column of the row picks the target level: `{"column": "kind", "levels": ["area", "project", "workstream"]}` or `{"column": "kind", "map": {"area": null, "project": ["area"]}}`; null = top level, no link; `target_column` when the target names it differently: an enum target column must have every value the map allows, a string one takes any value). A link to no row of the table, or to the row itself, is refused too. Existing rows that break them refuse the change; `list_link_targets` lists the valid targets of a row.\nAcyclic links: `acyclic: true` on a link (or list of links) to the table itself refuses every write that closes a cycle, on either side of an `inverse`; refused while existing rows form one (they are listed).\n\nThe schema changes only through operations like this one: never edit metastore.yaml by hand (no validation, no undo).',
|
|
1620
1708
|
"inputSchema": {
|
|
1621
1709
|
"additionalProperties": false,
|
|
1622
1710
|
"properties": {
|
|
@@ -1996,6 +2084,50 @@ var OPERATIONS = [
|
|
|
1996
2084
|
]
|
|
1997
2085
|
},
|
|
1998
2086
|
"description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
|
|
2087
|
+
},
|
|
2088
|
+
"schema_references": {
|
|
2089
|
+
"type": "array",
|
|
2090
|
+
"items": {
|
|
2091
|
+
"title": "SchemaReference",
|
|
2092
|
+
"type": "object",
|
|
2093
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
2094
|
+
"properties": {
|
|
2095
|
+
"table": {
|
|
2096
|
+
"type": "string",
|
|
2097
|
+
"description": "The table whose column names it (full name)."
|
|
2098
|
+
},
|
|
2099
|
+
"base": {
|
|
2100
|
+
"type": "string",
|
|
2101
|
+
"description": "The base whose column names it."
|
|
2102
|
+
},
|
|
2103
|
+
"view": {
|
|
2104
|
+
"type": "string",
|
|
2105
|
+
"description": "The view whose query names it (full name)."
|
|
2106
|
+
},
|
|
2107
|
+
"column": {
|
|
2108
|
+
"type": "string",
|
|
2109
|
+
"description": "The column of the table or base."
|
|
2110
|
+
},
|
|
2111
|
+
"key": {
|
|
2112
|
+
"type": "string",
|
|
2113
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
2114
|
+
},
|
|
2115
|
+
"from": {
|
|
2116
|
+
"type": "string",
|
|
2117
|
+
"description": "The name as written before."
|
|
2118
|
+
},
|
|
2119
|
+
"to": {
|
|
2120
|
+
"type": "string",
|
|
2121
|
+
"description": "The name written in its place."
|
|
2122
|
+
}
|
|
2123
|
+
},
|
|
2124
|
+
"required": [
|
|
2125
|
+
"key",
|
|
2126
|
+
"from",
|
|
2127
|
+
"to"
|
|
2128
|
+
]
|
|
2129
|
+
},
|
|
2130
|
+
"description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
|
|
1999
2131
|
}
|
|
2000
2132
|
},
|
|
2001
2133
|
"required": [
|
|
@@ -2402,6 +2534,50 @@ var OPERATIONS = [
|
|
|
2402
2534
|
]
|
|
2403
2535
|
},
|
|
2404
2536
|
"description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
|
|
2537
|
+
},
|
|
2538
|
+
"schema_references": {
|
|
2539
|
+
"type": "array",
|
|
2540
|
+
"items": {
|
|
2541
|
+
"title": "SchemaReference",
|
|
2542
|
+
"type": "object",
|
|
2543
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
2544
|
+
"properties": {
|
|
2545
|
+
"table": {
|
|
2546
|
+
"type": "string",
|
|
2547
|
+
"description": "The table whose column names it (full name)."
|
|
2548
|
+
},
|
|
2549
|
+
"base": {
|
|
2550
|
+
"type": "string",
|
|
2551
|
+
"description": "The base whose column names it."
|
|
2552
|
+
},
|
|
2553
|
+
"view": {
|
|
2554
|
+
"type": "string",
|
|
2555
|
+
"description": "The view whose query names it (full name)."
|
|
2556
|
+
},
|
|
2557
|
+
"column": {
|
|
2558
|
+
"type": "string",
|
|
2559
|
+
"description": "The column of the table or base."
|
|
2560
|
+
},
|
|
2561
|
+
"key": {
|
|
2562
|
+
"type": "string",
|
|
2563
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
2564
|
+
},
|
|
2565
|
+
"from": {
|
|
2566
|
+
"type": "string",
|
|
2567
|
+
"description": "The name as written before."
|
|
2568
|
+
},
|
|
2569
|
+
"to": {
|
|
2570
|
+
"type": "string",
|
|
2571
|
+
"description": "The name written in its place."
|
|
2572
|
+
}
|
|
2573
|
+
},
|
|
2574
|
+
"required": [
|
|
2575
|
+
"key",
|
|
2576
|
+
"from",
|
|
2577
|
+
"to"
|
|
2578
|
+
]
|
|
2579
|
+
},
|
|
2580
|
+
"description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
|
|
2405
2581
|
}
|
|
2406
2582
|
},
|
|
2407
2583
|
"required": [
|
|
@@ -2805,6 +2981,50 @@ var OPERATIONS = [
|
|
|
2805
2981
|
]
|
|
2806
2982
|
},
|
|
2807
2983
|
"description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
|
|
2984
|
+
},
|
|
2985
|
+
"schema_references": {
|
|
2986
|
+
"type": "array",
|
|
2987
|
+
"items": {
|
|
2988
|
+
"title": "SchemaReference",
|
|
2989
|
+
"type": "object",
|
|
2990
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
2991
|
+
"properties": {
|
|
2992
|
+
"table": {
|
|
2993
|
+
"type": "string",
|
|
2994
|
+
"description": "The table whose column names it (full name)."
|
|
2995
|
+
},
|
|
2996
|
+
"base": {
|
|
2997
|
+
"type": "string",
|
|
2998
|
+
"description": "The base whose column names it."
|
|
2999
|
+
},
|
|
3000
|
+
"view": {
|
|
3001
|
+
"type": "string",
|
|
3002
|
+
"description": "The view whose query names it (full name)."
|
|
3003
|
+
},
|
|
3004
|
+
"column": {
|
|
3005
|
+
"type": "string",
|
|
3006
|
+
"description": "The column of the table or base."
|
|
3007
|
+
},
|
|
3008
|
+
"key": {
|
|
3009
|
+
"type": "string",
|
|
3010
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
3011
|
+
},
|
|
3012
|
+
"from": {
|
|
3013
|
+
"type": "string",
|
|
3014
|
+
"description": "The name as written before."
|
|
3015
|
+
},
|
|
3016
|
+
"to": {
|
|
3017
|
+
"type": "string",
|
|
3018
|
+
"description": "The name written in its place."
|
|
3019
|
+
}
|
|
3020
|
+
},
|
|
3021
|
+
"required": [
|
|
3022
|
+
"key",
|
|
3023
|
+
"from",
|
|
3024
|
+
"to"
|
|
3025
|
+
]
|
|
3026
|
+
},
|
|
3027
|
+
"description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
|
|
2808
3028
|
}
|
|
2809
3029
|
},
|
|
2810
3030
|
"required": [
|
|
@@ -3213,6 +3433,50 @@ var OPERATIONS = [
|
|
|
3213
3433
|
]
|
|
3214
3434
|
},
|
|
3215
3435
|
"description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
|
|
3436
|
+
},
|
|
3437
|
+
"schema_references": {
|
|
3438
|
+
"type": "array",
|
|
3439
|
+
"items": {
|
|
3440
|
+
"title": "SchemaReference",
|
|
3441
|
+
"type": "object",
|
|
3442
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
3443
|
+
"properties": {
|
|
3444
|
+
"table": {
|
|
3445
|
+
"type": "string",
|
|
3446
|
+
"description": "The table whose column names it (full name)."
|
|
3447
|
+
},
|
|
3448
|
+
"base": {
|
|
3449
|
+
"type": "string",
|
|
3450
|
+
"description": "The base whose column names it."
|
|
3451
|
+
},
|
|
3452
|
+
"view": {
|
|
3453
|
+
"type": "string",
|
|
3454
|
+
"description": "The view whose query names it (full name)."
|
|
3455
|
+
},
|
|
3456
|
+
"column": {
|
|
3457
|
+
"type": "string",
|
|
3458
|
+
"description": "The column of the table or base."
|
|
3459
|
+
},
|
|
3460
|
+
"key": {
|
|
3461
|
+
"type": "string",
|
|
3462
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
3463
|
+
},
|
|
3464
|
+
"from": {
|
|
3465
|
+
"type": "string",
|
|
3466
|
+
"description": "The name as written before."
|
|
3467
|
+
},
|
|
3468
|
+
"to": {
|
|
3469
|
+
"type": "string",
|
|
3470
|
+
"description": "The name written in its place."
|
|
3471
|
+
}
|
|
3472
|
+
},
|
|
3473
|
+
"required": [
|
|
3474
|
+
"key",
|
|
3475
|
+
"from",
|
|
3476
|
+
"to"
|
|
3477
|
+
]
|
|
3478
|
+
},
|
|
3479
|
+
"description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
|
|
3216
3480
|
}
|
|
3217
3481
|
},
|
|
3218
3482
|
"required": [
|
|
@@ -3237,7 +3501,7 @@ var OPERATIONS = [
|
|
|
3237
3501
|
},
|
|
3238
3502
|
{
|
|
3239
3503
|
"name": "alter_table",
|
|
3240
|
-
"description": 'Alter a table: move it (`catalog`, `schema`), rename it (`name`), change\n`partition` / `filename` patterns, `description` (changes, never goes: "" is refused), `aliases`,\n`exclude` folders, `row_template`\n("" removes it), `instructions` (how to fill a row, for agents; "" removes them), `history` (true | false | "default"), `autolink_target`\n(true | false | "default": may automatic links link its rows? default: yes, unless its rows are named by\na date or a time) or `tags` (key/value\nlabels merged into the table\'s, e.g. `{"domain": "health"}`; a `null` value removes that tag;\n`clear_tags: true` removes every tag first, so with `tags` the table keeps exactly those),\n`archive` (folder name inside the table folder) or `fields` (untyped fields, name \u2192 default; a\n`null` value removes one). Rows, archive and transaction log follow; links are updated; renamed\nrows keep their old name in `aliases`. A change of metadata only (tags, description, aliases,\nhistory, autolink_target, row_template, instructions, fields) rewrites the table entry alone: no row is moved or rewritten. Refused\nwhen a row cannot fill a pattern. Renaming or moving the table
|
|
3504
|
+
"description": 'Alter a table: move it (`catalog`, `schema`), rename it (`name`), change\n`partition` / `filename` patterns, `description` (changes, never goes: "" is refused), `aliases`,\n`exclude` folders, `row_template`\n("" removes it), `instructions` (how to fill a row, for agents; "" removes them), `history` (true | false | "default"), `autolink_target`\n(true | false | "default": may automatic links link its rows? default: yes, unless its rows are named by\na date or a time) or `tags` (key/value\nlabels merged into the table\'s, e.g. `{"domain": "health"}`; a `null` value removes that tag;\n`clear_tags: true` removes every tag first, so with `tags` the table keeps exactly those),\n`archive` (folder name inside the table folder) or `fields` (untyped fields, name \u2192 default; a\n`null` value removes one). Rows, archive and transaction log follow; links are updated; renamed\nrows keep their old name in `aliases`. A change of metadata only (tags, description, aliases,\nhistory, autolink_target, row_template, instructions, fields) rewrites the table entry alone: no row is moved or rewritten. Refused\nwhen a row cannot fill a pattern. Renaming or moving the table rewrites what names it in other\ndefinitions: the `ref` and `vocabulary` of the columns of other tables and bases (lists of links\nincluded) and the tables of views (`table`, `union[].table`, `join.table`); `schema_references`\nlists them. CHECKs and `ref_where` / `ref_by` that read it through a link follow the new `ref`. Use `dry_run` to see `planned_moves`; undo with undo_migration.\n\nThe schema changes only through operations like this one: never edit metastore.yaml by hand (no validation, no undo).',
|
|
3241
3505
|
"inputSchema": {
|
|
3242
3506
|
"additionalProperties": false,
|
|
3243
3507
|
"properties": {
|
|
@@ -3818,6 +4082,50 @@ var OPERATIONS = [
|
|
|
3818
4082
|
]
|
|
3819
4083
|
},
|
|
3820
4084
|
"description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
|
|
4085
|
+
},
|
|
4086
|
+
"schema_references": {
|
|
4087
|
+
"type": "array",
|
|
4088
|
+
"items": {
|
|
4089
|
+
"title": "SchemaReference",
|
|
4090
|
+
"type": "object",
|
|
4091
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
4092
|
+
"properties": {
|
|
4093
|
+
"table": {
|
|
4094
|
+
"type": "string",
|
|
4095
|
+
"description": "The table whose column names it (full name)."
|
|
4096
|
+
},
|
|
4097
|
+
"base": {
|
|
4098
|
+
"type": "string",
|
|
4099
|
+
"description": "The base whose column names it."
|
|
4100
|
+
},
|
|
4101
|
+
"view": {
|
|
4102
|
+
"type": "string",
|
|
4103
|
+
"description": "The view whose query names it (full name)."
|
|
4104
|
+
},
|
|
4105
|
+
"column": {
|
|
4106
|
+
"type": "string",
|
|
4107
|
+
"description": "The column of the table or base."
|
|
4108
|
+
},
|
|
4109
|
+
"key": {
|
|
4110
|
+
"type": "string",
|
|
4111
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
4112
|
+
},
|
|
4113
|
+
"from": {
|
|
4114
|
+
"type": "string",
|
|
4115
|
+
"description": "The name as written before."
|
|
4116
|
+
},
|
|
4117
|
+
"to": {
|
|
4118
|
+
"type": "string",
|
|
4119
|
+
"description": "The name written in its place."
|
|
4120
|
+
}
|
|
4121
|
+
},
|
|
4122
|
+
"required": [
|
|
4123
|
+
"key",
|
|
4124
|
+
"from",
|
|
4125
|
+
"to"
|
|
4126
|
+
]
|
|
4127
|
+
},
|
|
4128
|
+
"description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
|
|
3821
4129
|
}
|
|
3822
4130
|
},
|
|
3823
4131
|
"required": [
|
|
@@ -4278,6 +4586,50 @@ var OPERATIONS = [
|
|
|
4278
4586
|
]
|
|
4279
4587
|
},
|
|
4280
4588
|
"description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
|
|
4589
|
+
},
|
|
4590
|
+
"schema_references": {
|
|
4591
|
+
"type": "array",
|
|
4592
|
+
"items": {
|
|
4593
|
+
"title": "SchemaReference",
|
|
4594
|
+
"type": "object",
|
|
4595
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
4596
|
+
"properties": {
|
|
4597
|
+
"table": {
|
|
4598
|
+
"type": "string",
|
|
4599
|
+
"description": "The table whose column names it (full name)."
|
|
4600
|
+
},
|
|
4601
|
+
"base": {
|
|
4602
|
+
"type": "string",
|
|
4603
|
+
"description": "The base whose column names it."
|
|
4604
|
+
},
|
|
4605
|
+
"view": {
|
|
4606
|
+
"type": "string",
|
|
4607
|
+
"description": "The view whose query names it (full name)."
|
|
4608
|
+
},
|
|
4609
|
+
"column": {
|
|
4610
|
+
"type": "string",
|
|
4611
|
+
"description": "The column of the table or base."
|
|
4612
|
+
},
|
|
4613
|
+
"key": {
|
|
4614
|
+
"type": "string",
|
|
4615
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
4616
|
+
},
|
|
4617
|
+
"from": {
|
|
4618
|
+
"type": "string",
|
|
4619
|
+
"description": "The name as written before."
|
|
4620
|
+
},
|
|
4621
|
+
"to": {
|
|
4622
|
+
"type": "string",
|
|
4623
|
+
"description": "The name written in its place."
|
|
4624
|
+
}
|
|
4625
|
+
},
|
|
4626
|
+
"required": [
|
|
4627
|
+
"key",
|
|
4628
|
+
"from",
|
|
4629
|
+
"to"
|
|
4630
|
+
]
|
|
4631
|
+
},
|
|
4632
|
+
"description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
|
|
4281
4633
|
}
|
|
4282
4634
|
},
|
|
4283
4635
|
"required": [
|
|
@@ -4683,6 +5035,50 @@ var OPERATIONS = [
|
|
|
4683
5035
|
]
|
|
4684
5036
|
},
|
|
4685
5037
|
"description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
|
|
5038
|
+
},
|
|
5039
|
+
"schema_references": {
|
|
5040
|
+
"type": "array",
|
|
5041
|
+
"items": {
|
|
5042
|
+
"title": "SchemaReference",
|
|
5043
|
+
"type": "object",
|
|
5044
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
5045
|
+
"properties": {
|
|
5046
|
+
"table": {
|
|
5047
|
+
"type": "string",
|
|
5048
|
+
"description": "The table whose column names it (full name)."
|
|
5049
|
+
},
|
|
5050
|
+
"base": {
|
|
5051
|
+
"type": "string",
|
|
5052
|
+
"description": "The base whose column names it."
|
|
5053
|
+
},
|
|
5054
|
+
"view": {
|
|
5055
|
+
"type": "string",
|
|
5056
|
+
"description": "The view whose query names it (full name)."
|
|
5057
|
+
},
|
|
5058
|
+
"column": {
|
|
5059
|
+
"type": "string",
|
|
5060
|
+
"description": "The column of the table or base."
|
|
5061
|
+
},
|
|
5062
|
+
"key": {
|
|
5063
|
+
"type": "string",
|
|
5064
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
5065
|
+
},
|
|
5066
|
+
"from": {
|
|
5067
|
+
"type": "string",
|
|
5068
|
+
"description": "The name as written before."
|
|
5069
|
+
},
|
|
5070
|
+
"to": {
|
|
5071
|
+
"type": "string",
|
|
5072
|
+
"description": "The name written in its place."
|
|
5073
|
+
}
|
|
5074
|
+
},
|
|
5075
|
+
"required": [
|
|
5076
|
+
"key",
|
|
5077
|
+
"from",
|
|
5078
|
+
"to"
|
|
5079
|
+
]
|
|
5080
|
+
},
|
|
5081
|
+
"description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
|
|
4686
5082
|
}
|
|
4687
5083
|
},
|
|
4688
5084
|
"required": [
|
|
@@ -4707,7 +5103,7 @@ var OPERATIONS = [
|
|
|
4707
5103
|
},
|
|
4708
5104
|
{
|
|
4709
5105
|
"name": "describe_database",
|
|
4710
|
-
"description": "Describe the database: its folder (`root`), `metastore` (`metastore.yaml`: read it freely,\nbut it is read-only for agents and changes only through the schema operations), configuration\n(default catalog and schema, row partition and file-name formats, archive folder, time zone,\nhistory, automatic links),\njournal folder, `bases` (shared column sets and the tables using them), `catalogs` \u2192 `schemas` \u2192 `tables` (with `row_count`, `tags`, and `unreadable_count` when some rows' front matter cannot be read) and `views`;\ncatalogs and schemas show their `comment` (set with `comment_on`). A table or base defined before\ndescriptions were required has `missing_descriptions`: what lacks one, for alter_table / alter_column\n(define_base for a base) to fill, so every table and column says what it holds.",
|
|
5106
|
+
"description": "Describe the database: its folder (`root`), `metastore` (`metastore.yaml`: read it freely,\nbut it is read-only for agents and changes only through the schema operations), configuration\n(default catalog and schema, row partition and file-name formats, archive folder, time zone,\nhistory, automatic links),\njournal folder, `bases` (shared column sets and the tables using them), `catalogs` \u2192 `schemas` \u2192 `tables` (with `row_count`, `tags`, and `unreadable_count` when some rows' front matter cannot be read) and `views`;\ncatalogs and schemas show their `comment` (set with `comment_on`). A table or base defined before\ndescriptions were required has `missing_descriptions`: what lacks one, for alter_table / alter_column\n(define_base for a base) to fill, so every table and column says what it holds.\nA token with `read` patterns sees only the tables, views and bases it may read.",
|
|
4711
5107
|
"inputSchema": {
|
|
4712
5108
|
"additionalProperties": false,
|
|
4713
5109
|
"properties": {},
|
|
@@ -5749,10 +6145,54 @@ var OPERATIONS = [
|
|
|
5749
6145
|
]
|
|
5750
6146
|
},
|
|
5751
6147
|
"description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
|
|
5752
|
-
}
|
|
5753
|
-
|
|
5754
|
-
|
|
5755
|
-
|
|
6148
|
+
},
|
|
6149
|
+
"schema_references": {
|
|
6150
|
+
"type": "array",
|
|
6151
|
+
"items": {
|
|
6152
|
+
"title": "SchemaReference",
|
|
6153
|
+
"type": "object",
|
|
6154
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
6155
|
+
"properties": {
|
|
6156
|
+
"table": {
|
|
6157
|
+
"type": "string",
|
|
6158
|
+
"description": "The table whose column names it (full name)."
|
|
6159
|
+
},
|
|
6160
|
+
"base": {
|
|
6161
|
+
"type": "string",
|
|
6162
|
+
"description": "The base whose column names it."
|
|
6163
|
+
},
|
|
6164
|
+
"view": {
|
|
6165
|
+
"type": "string",
|
|
6166
|
+
"description": "The view whose query names it (full name)."
|
|
6167
|
+
},
|
|
6168
|
+
"column": {
|
|
6169
|
+
"type": "string",
|
|
6170
|
+
"description": "The column of the table or base."
|
|
6171
|
+
},
|
|
6172
|
+
"key": {
|
|
6173
|
+
"type": "string",
|
|
6174
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
6175
|
+
},
|
|
6176
|
+
"from": {
|
|
6177
|
+
"type": "string",
|
|
6178
|
+
"description": "The name as written before."
|
|
6179
|
+
},
|
|
6180
|
+
"to": {
|
|
6181
|
+
"type": "string",
|
|
6182
|
+
"description": "The name written in its place."
|
|
6183
|
+
}
|
|
6184
|
+
},
|
|
6185
|
+
"required": [
|
|
6186
|
+
"key",
|
|
6187
|
+
"from",
|
|
6188
|
+
"to"
|
|
6189
|
+
]
|
|
6190
|
+
},
|
|
6191
|
+
"description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
|
|
6192
|
+
}
|
|
6193
|
+
},
|
|
6194
|
+
"required": [
|
|
6195
|
+
"ok",
|
|
5756
6196
|
"op",
|
|
5757
6197
|
"dry_run",
|
|
5758
6198
|
"notes_changed",
|
|
@@ -6159,6 +6599,50 @@ var OPERATIONS = [
|
|
|
6159
6599
|
]
|
|
6160
6600
|
},
|
|
6161
6601
|
"description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
|
|
6602
|
+
},
|
|
6603
|
+
"schema_references": {
|
|
6604
|
+
"type": "array",
|
|
6605
|
+
"items": {
|
|
6606
|
+
"title": "SchemaReference",
|
|
6607
|
+
"type": "object",
|
|
6608
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
6609
|
+
"properties": {
|
|
6610
|
+
"table": {
|
|
6611
|
+
"type": "string",
|
|
6612
|
+
"description": "The table whose column names it (full name)."
|
|
6613
|
+
},
|
|
6614
|
+
"base": {
|
|
6615
|
+
"type": "string",
|
|
6616
|
+
"description": "The base whose column names it."
|
|
6617
|
+
},
|
|
6618
|
+
"view": {
|
|
6619
|
+
"type": "string",
|
|
6620
|
+
"description": "The view whose query names it (full name)."
|
|
6621
|
+
},
|
|
6622
|
+
"column": {
|
|
6623
|
+
"type": "string",
|
|
6624
|
+
"description": "The column of the table or base."
|
|
6625
|
+
},
|
|
6626
|
+
"key": {
|
|
6627
|
+
"type": "string",
|
|
6628
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
6629
|
+
},
|
|
6630
|
+
"from": {
|
|
6631
|
+
"type": "string",
|
|
6632
|
+
"description": "The name as written before."
|
|
6633
|
+
},
|
|
6634
|
+
"to": {
|
|
6635
|
+
"type": "string",
|
|
6636
|
+
"description": "The name written in its place."
|
|
6637
|
+
}
|
|
6638
|
+
},
|
|
6639
|
+
"required": [
|
|
6640
|
+
"key",
|
|
6641
|
+
"from",
|
|
6642
|
+
"to"
|
|
6643
|
+
]
|
|
6644
|
+
},
|
|
6645
|
+
"description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
|
|
6162
6646
|
}
|
|
6163
6647
|
},
|
|
6164
6648
|
"required": [
|
|
@@ -6597,6 +7081,50 @@ var OPERATIONS = [
|
|
|
6597
7081
|
]
|
|
6598
7082
|
},
|
|
6599
7083
|
"description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
|
|
7084
|
+
},
|
|
7085
|
+
"schema_references": {
|
|
7086
|
+
"type": "array",
|
|
7087
|
+
"items": {
|
|
7088
|
+
"title": "SchemaReference",
|
|
7089
|
+
"type": "object",
|
|
7090
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
7091
|
+
"properties": {
|
|
7092
|
+
"table": {
|
|
7093
|
+
"type": "string",
|
|
7094
|
+
"description": "The table whose column names it (full name)."
|
|
7095
|
+
},
|
|
7096
|
+
"base": {
|
|
7097
|
+
"type": "string",
|
|
7098
|
+
"description": "The base whose column names it."
|
|
7099
|
+
},
|
|
7100
|
+
"view": {
|
|
7101
|
+
"type": "string",
|
|
7102
|
+
"description": "The view whose query names it (full name)."
|
|
7103
|
+
},
|
|
7104
|
+
"column": {
|
|
7105
|
+
"type": "string",
|
|
7106
|
+
"description": "The column of the table or base."
|
|
7107
|
+
},
|
|
7108
|
+
"key": {
|
|
7109
|
+
"type": "string",
|
|
7110
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
7111
|
+
},
|
|
7112
|
+
"from": {
|
|
7113
|
+
"type": "string",
|
|
7114
|
+
"description": "The name as written before."
|
|
7115
|
+
},
|
|
7116
|
+
"to": {
|
|
7117
|
+
"type": "string",
|
|
7118
|
+
"description": "The name written in its place."
|
|
7119
|
+
}
|
|
7120
|
+
},
|
|
7121
|
+
"required": [
|
|
7122
|
+
"key",
|
|
7123
|
+
"from",
|
|
7124
|
+
"to"
|
|
7125
|
+
]
|
|
7126
|
+
},
|
|
7127
|
+
"description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
|
|
6600
7128
|
}
|
|
6601
7129
|
},
|
|
6602
7130
|
"required": [
|
|
@@ -7039,6 +7567,50 @@ var OPERATIONS = [
|
|
|
7039
7567
|
]
|
|
7040
7568
|
},
|
|
7041
7569
|
"description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
|
|
7570
|
+
},
|
|
7571
|
+
"schema_references": {
|
|
7572
|
+
"type": "array",
|
|
7573
|
+
"items": {
|
|
7574
|
+
"title": "SchemaReference",
|
|
7575
|
+
"type": "object",
|
|
7576
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
7577
|
+
"properties": {
|
|
7578
|
+
"table": {
|
|
7579
|
+
"type": "string",
|
|
7580
|
+
"description": "The table whose column names it (full name)."
|
|
7581
|
+
},
|
|
7582
|
+
"base": {
|
|
7583
|
+
"type": "string",
|
|
7584
|
+
"description": "The base whose column names it."
|
|
7585
|
+
},
|
|
7586
|
+
"view": {
|
|
7587
|
+
"type": "string",
|
|
7588
|
+
"description": "The view whose query names it (full name)."
|
|
7589
|
+
},
|
|
7590
|
+
"column": {
|
|
7591
|
+
"type": "string",
|
|
7592
|
+
"description": "The column of the table or base."
|
|
7593
|
+
},
|
|
7594
|
+
"key": {
|
|
7595
|
+
"type": "string",
|
|
7596
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
7597
|
+
},
|
|
7598
|
+
"from": {
|
|
7599
|
+
"type": "string",
|
|
7600
|
+
"description": "The name as written before."
|
|
7601
|
+
},
|
|
7602
|
+
"to": {
|
|
7603
|
+
"type": "string",
|
|
7604
|
+
"description": "The name written in its place."
|
|
7605
|
+
}
|
|
7606
|
+
},
|
|
7607
|
+
"required": [
|
|
7608
|
+
"key",
|
|
7609
|
+
"from",
|
|
7610
|
+
"to"
|
|
7611
|
+
]
|
|
7612
|
+
},
|
|
7613
|
+
"description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
|
|
7042
7614
|
}
|
|
7043
7615
|
},
|
|
7044
7616
|
"required": [
|
|
@@ -7556,6 +8128,50 @@ var OPERATIONS = [
|
|
|
7556
8128
|
]
|
|
7557
8129
|
},
|
|
7558
8130
|
"description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
|
|
8131
|
+
},
|
|
8132
|
+
"schema_references": {
|
|
8133
|
+
"type": "array",
|
|
8134
|
+
"items": {
|
|
8135
|
+
"title": "SchemaReference",
|
|
8136
|
+
"type": "object",
|
|
8137
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
8138
|
+
"properties": {
|
|
8139
|
+
"table": {
|
|
8140
|
+
"type": "string",
|
|
8141
|
+
"description": "The table whose column names it (full name)."
|
|
8142
|
+
},
|
|
8143
|
+
"base": {
|
|
8144
|
+
"type": "string",
|
|
8145
|
+
"description": "The base whose column names it."
|
|
8146
|
+
},
|
|
8147
|
+
"view": {
|
|
8148
|
+
"type": "string",
|
|
8149
|
+
"description": "The view whose query names it (full name)."
|
|
8150
|
+
},
|
|
8151
|
+
"column": {
|
|
8152
|
+
"type": "string",
|
|
8153
|
+
"description": "The column of the table or base."
|
|
8154
|
+
},
|
|
8155
|
+
"key": {
|
|
8156
|
+
"type": "string",
|
|
8157
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
8158
|
+
},
|
|
8159
|
+
"from": {
|
|
8160
|
+
"type": "string",
|
|
8161
|
+
"description": "The name as written before."
|
|
8162
|
+
},
|
|
8163
|
+
"to": {
|
|
8164
|
+
"type": "string",
|
|
8165
|
+
"description": "The name written in its place."
|
|
8166
|
+
}
|
|
8167
|
+
},
|
|
8168
|
+
"required": [
|
|
8169
|
+
"key",
|
|
8170
|
+
"from",
|
|
8171
|
+
"to"
|
|
8172
|
+
]
|
|
8173
|
+
},
|
|
8174
|
+
"description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
|
|
7559
8175
|
}
|
|
7560
8176
|
},
|
|
7561
8177
|
"required": [
|
|
@@ -7991,6 +8607,50 @@ var OPERATIONS = [
|
|
|
7991
8607
|
]
|
|
7992
8608
|
},
|
|
7993
8609
|
"description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
|
|
8610
|
+
},
|
|
8611
|
+
"schema_references": {
|
|
8612
|
+
"type": "array",
|
|
8613
|
+
"items": {
|
|
8614
|
+
"title": "SchemaReference",
|
|
8615
|
+
"type": "object",
|
|
8616
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
8617
|
+
"properties": {
|
|
8618
|
+
"table": {
|
|
8619
|
+
"type": "string",
|
|
8620
|
+
"description": "The table whose column names it (full name)."
|
|
8621
|
+
},
|
|
8622
|
+
"base": {
|
|
8623
|
+
"type": "string",
|
|
8624
|
+
"description": "The base whose column names it."
|
|
8625
|
+
},
|
|
8626
|
+
"view": {
|
|
8627
|
+
"type": "string",
|
|
8628
|
+
"description": "The view whose query names it (full name)."
|
|
8629
|
+
},
|
|
8630
|
+
"column": {
|
|
8631
|
+
"type": "string",
|
|
8632
|
+
"description": "The column of the table or base."
|
|
8633
|
+
},
|
|
8634
|
+
"key": {
|
|
8635
|
+
"type": "string",
|
|
8636
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
8637
|
+
},
|
|
8638
|
+
"from": {
|
|
8639
|
+
"type": "string",
|
|
8640
|
+
"description": "The name as written before."
|
|
8641
|
+
},
|
|
8642
|
+
"to": {
|
|
8643
|
+
"type": "string",
|
|
8644
|
+
"description": "The name written in its place."
|
|
8645
|
+
}
|
|
8646
|
+
},
|
|
8647
|
+
"required": [
|
|
8648
|
+
"key",
|
|
8649
|
+
"from",
|
|
8650
|
+
"to"
|
|
8651
|
+
]
|
|
8652
|
+
},
|
|
8653
|
+
"description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
|
|
7994
8654
|
}
|
|
7995
8655
|
},
|
|
7996
8656
|
"required": [
|
|
@@ -8443,6 +9103,50 @@ var OPERATIONS = [
|
|
|
8443
9103
|
]
|
|
8444
9104
|
},
|
|
8445
9105
|
"description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
|
|
9106
|
+
},
|
|
9107
|
+
"schema_references": {
|
|
9108
|
+
"type": "array",
|
|
9109
|
+
"items": {
|
|
9110
|
+
"title": "SchemaReference",
|
|
9111
|
+
"type": "object",
|
|
9112
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
9113
|
+
"properties": {
|
|
9114
|
+
"table": {
|
|
9115
|
+
"type": "string",
|
|
9116
|
+
"description": "The table whose column names it (full name)."
|
|
9117
|
+
},
|
|
9118
|
+
"base": {
|
|
9119
|
+
"type": "string",
|
|
9120
|
+
"description": "The base whose column names it."
|
|
9121
|
+
},
|
|
9122
|
+
"view": {
|
|
9123
|
+
"type": "string",
|
|
9124
|
+
"description": "The view whose query names it (full name)."
|
|
9125
|
+
},
|
|
9126
|
+
"column": {
|
|
9127
|
+
"type": "string",
|
|
9128
|
+
"description": "The column of the table or base."
|
|
9129
|
+
},
|
|
9130
|
+
"key": {
|
|
9131
|
+
"type": "string",
|
|
9132
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
9133
|
+
},
|
|
9134
|
+
"from": {
|
|
9135
|
+
"type": "string",
|
|
9136
|
+
"description": "The name as written before."
|
|
9137
|
+
},
|
|
9138
|
+
"to": {
|
|
9139
|
+
"type": "string",
|
|
9140
|
+
"description": "The name written in its place."
|
|
9141
|
+
}
|
|
9142
|
+
},
|
|
9143
|
+
"required": [
|
|
9144
|
+
"key",
|
|
9145
|
+
"from",
|
|
9146
|
+
"to"
|
|
9147
|
+
]
|
|
9148
|
+
},
|
|
9149
|
+
"description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
|
|
8446
9150
|
}
|
|
8447
9151
|
},
|
|
8448
9152
|
"required": [
|
|
@@ -8907,6 +9611,50 @@ var OPERATIONS = [
|
|
|
8907
9611
|
]
|
|
8908
9612
|
},
|
|
8909
9613
|
"description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
|
|
9614
|
+
},
|
|
9615
|
+
"schema_references": {
|
|
9616
|
+
"type": "array",
|
|
9617
|
+
"items": {
|
|
9618
|
+
"title": "SchemaReference",
|
|
9619
|
+
"type": "object",
|
|
9620
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
9621
|
+
"properties": {
|
|
9622
|
+
"table": {
|
|
9623
|
+
"type": "string",
|
|
9624
|
+
"description": "The table whose column names it (full name)."
|
|
9625
|
+
},
|
|
9626
|
+
"base": {
|
|
9627
|
+
"type": "string",
|
|
9628
|
+
"description": "The base whose column names it."
|
|
9629
|
+
},
|
|
9630
|
+
"view": {
|
|
9631
|
+
"type": "string",
|
|
9632
|
+
"description": "The view whose query names it (full name)."
|
|
9633
|
+
},
|
|
9634
|
+
"column": {
|
|
9635
|
+
"type": "string",
|
|
9636
|
+
"description": "The column of the table or base."
|
|
9637
|
+
},
|
|
9638
|
+
"key": {
|
|
9639
|
+
"type": "string",
|
|
9640
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
9641
|
+
},
|
|
9642
|
+
"from": {
|
|
9643
|
+
"type": "string",
|
|
9644
|
+
"description": "The name as written before."
|
|
9645
|
+
},
|
|
9646
|
+
"to": {
|
|
9647
|
+
"type": "string",
|
|
9648
|
+
"description": "The name written in its place."
|
|
9649
|
+
}
|
|
9650
|
+
},
|
|
9651
|
+
"required": [
|
|
9652
|
+
"key",
|
|
9653
|
+
"from",
|
|
9654
|
+
"to"
|
|
9655
|
+
]
|
|
9656
|
+
},
|
|
9657
|
+
"description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
|
|
8910
9658
|
}
|
|
8911
9659
|
},
|
|
8912
9660
|
"required": [
|
|
@@ -9989,6 +10737,50 @@ var OPERATIONS = [
|
|
|
9989
10737
|
]
|
|
9990
10738
|
},
|
|
9991
10739
|
"description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
|
|
10740
|
+
},
|
|
10741
|
+
"schema_references": {
|
|
10742
|
+
"type": "array",
|
|
10743
|
+
"items": {
|
|
10744
|
+
"title": "SchemaReference",
|
|
10745
|
+
"type": "object",
|
|
10746
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
10747
|
+
"properties": {
|
|
10748
|
+
"table": {
|
|
10749
|
+
"type": "string",
|
|
10750
|
+
"description": "The table whose column names it (full name)."
|
|
10751
|
+
},
|
|
10752
|
+
"base": {
|
|
10753
|
+
"type": "string",
|
|
10754
|
+
"description": "The base whose column names it."
|
|
10755
|
+
},
|
|
10756
|
+
"view": {
|
|
10757
|
+
"type": "string",
|
|
10758
|
+
"description": "The view whose query names it (full name)."
|
|
10759
|
+
},
|
|
10760
|
+
"column": {
|
|
10761
|
+
"type": "string",
|
|
10762
|
+
"description": "The column of the table or base."
|
|
10763
|
+
},
|
|
10764
|
+
"key": {
|
|
10765
|
+
"type": "string",
|
|
10766
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
10767
|
+
},
|
|
10768
|
+
"from": {
|
|
10769
|
+
"type": "string",
|
|
10770
|
+
"description": "The name as written before."
|
|
10771
|
+
},
|
|
10772
|
+
"to": {
|
|
10773
|
+
"type": "string",
|
|
10774
|
+
"description": "The name written in its place."
|
|
10775
|
+
}
|
|
10776
|
+
},
|
|
10777
|
+
"required": [
|
|
10778
|
+
"key",
|
|
10779
|
+
"from",
|
|
10780
|
+
"to"
|
|
10781
|
+
]
|
|
10782
|
+
},
|
|
10783
|
+
"description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
|
|
9992
10784
|
}
|
|
9993
10785
|
},
|
|
9994
10786
|
"required": [
|
|
@@ -10436,6 +11228,50 @@ var OPERATIONS = [
|
|
|
10436
11228
|
]
|
|
10437
11229
|
},
|
|
10438
11230
|
"description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
|
|
11231
|
+
},
|
|
11232
|
+
"schema_references": {
|
|
11233
|
+
"type": "array",
|
|
11234
|
+
"items": {
|
|
11235
|
+
"title": "SchemaReference",
|
|
11236
|
+
"type": "object",
|
|
11237
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
11238
|
+
"properties": {
|
|
11239
|
+
"table": {
|
|
11240
|
+
"type": "string",
|
|
11241
|
+
"description": "The table whose column names it (full name)."
|
|
11242
|
+
},
|
|
11243
|
+
"base": {
|
|
11244
|
+
"type": "string",
|
|
11245
|
+
"description": "The base whose column names it."
|
|
11246
|
+
},
|
|
11247
|
+
"view": {
|
|
11248
|
+
"type": "string",
|
|
11249
|
+
"description": "The view whose query names it (full name)."
|
|
11250
|
+
},
|
|
11251
|
+
"column": {
|
|
11252
|
+
"type": "string",
|
|
11253
|
+
"description": "The column of the table or base."
|
|
11254
|
+
},
|
|
11255
|
+
"key": {
|
|
11256
|
+
"type": "string",
|
|
11257
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
11258
|
+
},
|
|
11259
|
+
"from": {
|
|
11260
|
+
"type": "string",
|
|
11261
|
+
"description": "The name as written before."
|
|
11262
|
+
},
|
|
11263
|
+
"to": {
|
|
11264
|
+
"type": "string",
|
|
11265
|
+
"description": "The name written in its place."
|
|
11266
|
+
}
|
|
11267
|
+
},
|
|
11268
|
+
"required": [
|
|
11269
|
+
"key",
|
|
11270
|
+
"from",
|
|
11271
|
+
"to"
|
|
11272
|
+
]
|
|
11273
|
+
},
|
|
11274
|
+
"description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
|
|
10439
11275
|
}
|
|
10440
11276
|
},
|
|
10441
11277
|
"required": [
|
|
@@ -10724,8 +11560,116 @@ var OPERATIONS = [
|
|
|
10724
11560
|
}
|
|
10725
11561
|
},
|
|
10726
11562
|
{
|
|
10727
|
-
"name": "semantic_search",
|
|
10728
|
-
"description": 'Find notes by meaning, not exact words: `{query, results: [{path, score, heading, snippet,\ntable?}]}`, one result per note (its best passage), best first. Use it for vague questions\n("the dinner where we talked about moving", "what did I decide about the car") and to find the\nrows to read or update; then read_note / select_rows for the details. Filters: `tables`\n(qualified or short names), `folder`, `min_score` (cosine 0\u20131; ~0.5+ is usually relevant).\n`limit`: default 10, max 100. Fails with a clear message when semantic search is not enabled in\nthe engine settings.',
|
|
11563
|
+
"name": "semantic_search",
|
|
11564
|
+
"description": 'Find notes by meaning, not exact words: `{query, results: [{path, score, heading, snippet,\ntable?}]}`, one result per note (its best passage), best first. Use it for vague questions\n("the dinner where we talked about moving", "what did I decide about the car") and to find the\nrows to read or update; then read_note / select_rows for the details. Filters: `tables`\n(qualified or short names), `folder`, `min_score` (cosine 0\u20131; ~0.5+ is usually relevant).\n`limit`: default 10, max 100. Fails with a clear message when semantic search is not enabled in\nthe engine settings.',
|
|
11565
|
+
"inputSchema": {
|
|
11566
|
+
"additionalProperties": false,
|
|
11567
|
+
"properties": {
|
|
11568
|
+
"query": {
|
|
11569
|
+
"type": "string"
|
|
11570
|
+
},
|
|
11571
|
+
"limit": {
|
|
11572
|
+
"default": 10,
|
|
11573
|
+
"type": "integer"
|
|
11574
|
+
},
|
|
11575
|
+
"tables": {
|
|
11576
|
+
"anyOf": [
|
|
11577
|
+
{
|
|
11578
|
+
"items": {
|
|
11579
|
+
"type": "string"
|
|
11580
|
+
},
|
|
11581
|
+
"type": "array"
|
|
11582
|
+
},
|
|
11583
|
+
{
|
|
11584
|
+
"type": "null"
|
|
11585
|
+
}
|
|
11586
|
+
],
|
|
11587
|
+
"default": null
|
|
11588
|
+
},
|
|
11589
|
+
"folder": {
|
|
11590
|
+
"anyOf": [
|
|
11591
|
+
{
|
|
11592
|
+
"type": "string"
|
|
11593
|
+
},
|
|
11594
|
+
{
|
|
11595
|
+
"type": "null"
|
|
11596
|
+
}
|
|
11597
|
+
],
|
|
11598
|
+
"default": null
|
|
11599
|
+
},
|
|
11600
|
+
"min_score": {
|
|
11601
|
+
"anyOf": [
|
|
11602
|
+
{
|
|
11603
|
+
"type": "number"
|
|
11604
|
+
},
|
|
11605
|
+
{
|
|
11606
|
+
"type": "null"
|
|
11607
|
+
}
|
|
11608
|
+
],
|
|
11609
|
+
"default": null
|
|
11610
|
+
}
|
|
11611
|
+
},
|
|
11612
|
+
"required": [
|
|
11613
|
+
"query"
|
|
11614
|
+
],
|
|
11615
|
+
"type": "object"
|
|
11616
|
+
},
|
|
11617
|
+
"annotations": {
|
|
11618
|
+
"title": "Semantic Search",
|
|
11619
|
+
"readOnlyHint": true,
|
|
11620
|
+
"destructiveHint": false,
|
|
11621
|
+
"idempotentHint": true,
|
|
11622
|
+
"openWorldHint": false
|
|
11623
|
+
},
|
|
11624
|
+
"responseSchema": {
|
|
11625
|
+
"type": "object",
|
|
11626
|
+
"properties": {
|
|
11627
|
+
"query": {
|
|
11628
|
+
"type": "string"
|
|
11629
|
+
},
|
|
11630
|
+
"results": {
|
|
11631
|
+
"type": "array",
|
|
11632
|
+
"items": {
|
|
11633
|
+
"type": "object",
|
|
11634
|
+
"properties": {
|
|
11635
|
+
"path": {
|
|
11636
|
+
"type": "string"
|
|
11637
|
+
},
|
|
11638
|
+
"score": {
|
|
11639
|
+
"type": "number",
|
|
11640
|
+
"description": "Similarity, 0..1."
|
|
11641
|
+
},
|
|
11642
|
+
"heading": {
|
|
11643
|
+
"type": "string",
|
|
11644
|
+
"description": "Heading of the best passage."
|
|
11645
|
+
},
|
|
11646
|
+
"snippet": {
|
|
11647
|
+
"type": "string"
|
|
11648
|
+
},
|
|
11649
|
+
"table": {
|
|
11650
|
+
"type": "string",
|
|
11651
|
+
"description": "Qualified table of a row note."
|
|
11652
|
+
}
|
|
11653
|
+
},
|
|
11654
|
+
"required": [
|
|
11655
|
+
"path",
|
|
11656
|
+
"score",
|
|
11657
|
+
"heading",
|
|
11658
|
+
"snippet"
|
|
11659
|
+
]
|
|
11660
|
+
},
|
|
11661
|
+
"description": "One result per note, best first."
|
|
11662
|
+
}
|
|
11663
|
+
},
|
|
11664
|
+
"required": [
|
|
11665
|
+
"query",
|
|
11666
|
+
"results"
|
|
11667
|
+
]
|
|
11668
|
+
}
|
|
11669
|
+
},
|
|
11670
|
+
{
|
|
11671
|
+
"name": "search",
|
|
11672
|
+
"description": "Search the notes by their words and, when semantic search is on, by their meaning:\n`{query, results: [{path, table?, score, heading, snippet, matched_by}], meaning}`, one result per\nnote, best first. It always works: with semantic search off it ranks by words alone (BM25:\nrare words count more; a word in the note's name or properties counts more), with it on it fuses\nboth rankings (Reciprocal Rank Fusion), so a note found only by its words or only by its meaning\nis still there. `matched_by` says which (`words`, `meaning`); `meaning` is `on`, `off` or `failed`\n(the embedding provider failed: words only, `meaning_error` says why). Query syntax as search_docs:\n`\"a phrase\"` and `+word` must appear, `-word` must not (both rankings); words in any language,\ncase and accents ignored, no stemming. Filters: `tables` (qualified or short names), `folder`,\n`min_score` (the meaning ranking's cosine floor). `limit`: default 10, max 100. Then read_note /\nselect_rows for the details.",
|
|
10729
11673
|
"inputSchema": {
|
|
10730
11674
|
"additionalProperties": false,
|
|
10731
11675
|
"properties": {
|
|
@@ -10779,7 +11723,7 @@ var OPERATIONS = [
|
|
|
10779
11723
|
"type": "object"
|
|
10780
11724
|
},
|
|
10781
11725
|
"annotations": {
|
|
10782
|
-
"title": "
|
|
11726
|
+
"title": "Search",
|
|
10783
11727
|
"readOnlyHint": true,
|
|
10784
11728
|
"destructiveHint": false,
|
|
10785
11729
|
"idempotentHint": true,
|
|
@@ -10799,35 +11743,62 @@ var OPERATIONS = [
|
|
|
10799
11743
|
"path": {
|
|
10800
11744
|
"type": "string"
|
|
10801
11745
|
},
|
|
11746
|
+
"table": {
|
|
11747
|
+
"type": "string",
|
|
11748
|
+
"description": "Qualified table of a row note."
|
|
11749
|
+
},
|
|
10802
11750
|
"score": {
|
|
10803
11751
|
"type": "number",
|
|
10804
|
-
"description": "
|
|
11752
|
+
"description": "BM25 when ranked by words alone; the Reciprocal Rank Fusion score when fused."
|
|
10805
11753
|
},
|
|
10806
11754
|
"heading": {
|
|
10807
11755
|
"type": "string",
|
|
10808
|
-
"description": "Heading
|
|
11756
|
+
"description": "Heading above the match (empty before the first heading)."
|
|
10809
11757
|
},
|
|
10810
11758
|
"snippet": {
|
|
10811
|
-
"type": "string"
|
|
10812
|
-
},
|
|
10813
|
-
"table": {
|
|
10814
11759
|
"type": "string",
|
|
10815
|
-
"description": "
|
|
11760
|
+
"description": "About 200 characters around the first match, or the best passage by meaning."
|
|
11761
|
+
},
|
|
11762
|
+
"matched_by": {
|
|
11763
|
+
"type": "array",
|
|
11764
|
+
"items": {
|
|
11765
|
+
"type": "string",
|
|
11766
|
+
"enum": [
|
|
11767
|
+
"words",
|
|
11768
|
+
"meaning"
|
|
11769
|
+
]
|
|
11770
|
+
},
|
|
11771
|
+
"description": "The rankings the note is in."
|
|
10816
11772
|
}
|
|
10817
11773
|
},
|
|
10818
11774
|
"required": [
|
|
10819
11775
|
"path",
|
|
10820
11776
|
"score",
|
|
10821
11777
|
"heading",
|
|
10822
|
-
"snippet"
|
|
11778
|
+
"snippet",
|
|
11779
|
+
"matched_by"
|
|
10823
11780
|
]
|
|
10824
11781
|
},
|
|
10825
11782
|
"description": "One result per note, best first."
|
|
11783
|
+
},
|
|
11784
|
+
"meaning": {
|
|
11785
|
+
"type": "string",
|
|
11786
|
+
"enum": [
|
|
11787
|
+
"on",
|
|
11788
|
+
"off",
|
|
11789
|
+
"failed"
|
|
11790
|
+
],
|
|
11791
|
+
"description": "on: words and meaning fused; off: semantic search is off, words only; failed: the embedding provider failed, words only."
|
|
11792
|
+
},
|
|
11793
|
+
"meaning_error": {
|
|
11794
|
+
"type": "string",
|
|
11795
|
+
"description": "Why the meaning ranking failed (with meaning: failed)."
|
|
10826
11796
|
}
|
|
10827
11797
|
},
|
|
10828
11798
|
"required": [
|
|
10829
11799
|
"query",
|
|
10830
|
-
"results"
|
|
11800
|
+
"results",
|
|
11801
|
+
"meaning"
|
|
10831
11802
|
]
|
|
10832
11803
|
}
|
|
10833
11804
|
},
|
|
@@ -11523,6 +12494,50 @@ var OPERATIONS = [
|
|
|
11523
12494
|
]
|
|
11524
12495
|
},
|
|
11525
12496
|
"description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
|
|
12497
|
+
},
|
|
12498
|
+
"schema_references": {
|
|
12499
|
+
"type": "array",
|
|
12500
|
+
"items": {
|
|
12501
|
+
"title": "SchemaReference",
|
|
12502
|
+
"type": "object",
|
|
12503
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
12504
|
+
"properties": {
|
|
12505
|
+
"table": {
|
|
12506
|
+
"type": "string",
|
|
12507
|
+
"description": "The table whose column names it (full name)."
|
|
12508
|
+
},
|
|
12509
|
+
"base": {
|
|
12510
|
+
"type": "string",
|
|
12511
|
+
"description": "The base whose column names it."
|
|
12512
|
+
},
|
|
12513
|
+
"view": {
|
|
12514
|
+
"type": "string",
|
|
12515
|
+
"description": "The view whose query names it (full name)."
|
|
12516
|
+
},
|
|
12517
|
+
"column": {
|
|
12518
|
+
"type": "string",
|
|
12519
|
+
"description": "The column of the table or base."
|
|
12520
|
+
},
|
|
12521
|
+
"key": {
|
|
12522
|
+
"type": "string",
|
|
12523
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
12524
|
+
},
|
|
12525
|
+
"from": {
|
|
12526
|
+
"type": "string",
|
|
12527
|
+
"description": "The name as written before."
|
|
12528
|
+
},
|
|
12529
|
+
"to": {
|
|
12530
|
+
"type": "string",
|
|
12531
|
+
"description": "The name written in its place."
|
|
12532
|
+
}
|
|
12533
|
+
},
|
|
12534
|
+
"required": [
|
|
12535
|
+
"key",
|
|
12536
|
+
"from",
|
|
12537
|
+
"to"
|
|
12538
|
+
]
|
|
12539
|
+
},
|
|
12540
|
+
"description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
|
|
11526
12541
|
}
|
|
11527
12542
|
},
|
|
11528
12543
|
"required": [
|
|
@@ -12964,6 +13979,50 @@ var OPERATIONS = [
|
|
|
12964
13979
|
]
|
|
12965
13980
|
},
|
|
12966
13981
|
"description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
|
|
13982
|
+
},
|
|
13983
|
+
"schema_references": {
|
|
13984
|
+
"type": "array",
|
|
13985
|
+
"items": {
|
|
13986
|
+
"title": "SchemaReference",
|
|
13987
|
+
"type": "object",
|
|
13988
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
13989
|
+
"properties": {
|
|
13990
|
+
"table": {
|
|
13991
|
+
"type": "string",
|
|
13992
|
+
"description": "The table whose column names it (full name)."
|
|
13993
|
+
},
|
|
13994
|
+
"base": {
|
|
13995
|
+
"type": "string",
|
|
13996
|
+
"description": "The base whose column names it."
|
|
13997
|
+
},
|
|
13998
|
+
"view": {
|
|
13999
|
+
"type": "string",
|
|
14000
|
+
"description": "The view whose query names it (full name)."
|
|
14001
|
+
},
|
|
14002
|
+
"column": {
|
|
14003
|
+
"type": "string",
|
|
14004
|
+
"description": "The column of the table or base."
|
|
14005
|
+
},
|
|
14006
|
+
"key": {
|
|
14007
|
+
"type": "string",
|
|
14008
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
14009
|
+
},
|
|
14010
|
+
"from": {
|
|
14011
|
+
"type": "string",
|
|
14012
|
+
"description": "The name as written before."
|
|
14013
|
+
},
|
|
14014
|
+
"to": {
|
|
14015
|
+
"type": "string",
|
|
14016
|
+
"description": "The name written in its place."
|
|
14017
|
+
}
|
|
14018
|
+
},
|
|
14019
|
+
"required": [
|
|
14020
|
+
"key",
|
|
14021
|
+
"from",
|
|
14022
|
+
"to"
|
|
14023
|
+
]
|
|
14024
|
+
},
|
|
14025
|
+
"description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
|
|
12967
14026
|
}
|
|
12968
14027
|
},
|
|
12969
14028
|
"required": [
|
|
@@ -13984,6 +15043,50 @@ var OPERATIONS = [
|
|
|
13984
15043
|
]
|
|
13985
15044
|
},
|
|
13986
15045
|
"description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
|
|
15046
|
+
},
|
|
15047
|
+
"schema_references": {
|
|
15048
|
+
"type": "array",
|
|
15049
|
+
"items": {
|
|
15050
|
+
"title": "SchemaReference",
|
|
15051
|
+
"type": "object",
|
|
15052
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
15053
|
+
"properties": {
|
|
15054
|
+
"table": {
|
|
15055
|
+
"type": "string",
|
|
15056
|
+
"description": "The table whose column names it (full name)."
|
|
15057
|
+
},
|
|
15058
|
+
"base": {
|
|
15059
|
+
"type": "string",
|
|
15060
|
+
"description": "The base whose column names it."
|
|
15061
|
+
},
|
|
15062
|
+
"view": {
|
|
15063
|
+
"type": "string",
|
|
15064
|
+
"description": "The view whose query names it (full name)."
|
|
15065
|
+
},
|
|
15066
|
+
"column": {
|
|
15067
|
+
"type": "string",
|
|
15068
|
+
"description": "The column of the table or base."
|
|
15069
|
+
},
|
|
15070
|
+
"key": {
|
|
15071
|
+
"type": "string",
|
|
15072
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
15073
|
+
},
|
|
15074
|
+
"from": {
|
|
15075
|
+
"type": "string",
|
|
15076
|
+
"description": "The name as written before."
|
|
15077
|
+
},
|
|
15078
|
+
"to": {
|
|
15079
|
+
"type": "string",
|
|
15080
|
+
"description": "The name written in its place."
|
|
15081
|
+
}
|
|
15082
|
+
},
|
|
15083
|
+
"required": [
|
|
15084
|
+
"key",
|
|
15085
|
+
"from",
|
|
15086
|
+
"to"
|
|
15087
|
+
]
|
|
15088
|
+
},
|
|
15089
|
+
"description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
|
|
13987
15090
|
}
|
|
13988
15091
|
},
|
|
13989
15092
|
"required": [
|
|
@@ -14386,6 +15489,50 @@ var OPERATIONS = [
|
|
|
14386
15489
|
]
|
|
14387
15490
|
},
|
|
14388
15491
|
"description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
|
|
15492
|
+
},
|
|
15493
|
+
"schema_references": {
|
|
15494
|
+
"type": "array",
|
|
15495
|
+
"items": {
|
|
15496
|
+
"title": "SchemaReference",
|
|
15497
|
+
"type": "object",
|
|
15498
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
15499
|
+
"properties": {
|
|
15500
|
+
"table": {
|
|
15501
|
+
"type": "string",
|
|
15502
|
+
"description": "The table whose column names it (full name)."
|
|
15503
|
+
},
|
|
15504
|
+
"base": {
|
|
15505
|
+
"type": "string",
|
|
15506
|
+
"description": "The base whose column names it."
|
|
15507
|
+
},
|
|
15508
|
+
"view": {
|
|
15509
|
+
"type": "string",
|
|
15510
|
+
"description": "The view whose query names it (full name)."
|
|
15511
|
+
},
|
|
15512
|
+
"column": {
|
|
15513
|
+
"type": "string",
|
|
15514
|
+
"description": "The column of the table or base."
|
|
15515
|
+
},
|
|
15516
|
+
"key": {
|
|
15517
|
+
"type": "string",
|
|
15518
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
15519
|
+
},
|
|
15520
|
+
"from": {
|
|
15521
|
+
"type": "string",
|
|
15522
|
+
"description": "The name as written before."
|
|
15523
|
+
},
|
|
15524
|
+
"to": {
|
|
15525
|
+
"type": "string",
|
|
15526
|
+
"description": "The name written in its place."
|
|
15527
|
+
}
|
|
15528
|
+
},
|
|
15529
|
+
"required": [
|
|
15530
|
+
"key",
|
|
15531
|
+
"from",
|
|
15532
|
+
"to"
|
|
15533
|
+
]
|
|
15534
|
+
},
|
|
15535
|
+
"description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
|
|
14389
15536
|
}
|
|
14390
15537
|
},
|
|
14391
15538
|
"required": [
|
|
@@ -14855,6 +16002,50 @@ var OPERATIONS = [
|
|
|
14855
16002
|
]
|
|
14856
16003
|
},
|
|
14857
16004
|
"description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
|
|
16005
|
+
},
|
|
16006
|
+
"schema_references": {
|
|
16007
|
+
"type": "array",
|
|
16008
|
+
"items": {
|
|
16009
|
+
"title": "SchemaReference",
|
|
16010
|
+
"type": "object",
|
|
16011
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
16012
|
+
"properties": {
|
|
16013
|
+
"table": {
|
|
16014
|
+
"type": "string",
|
|
16015
|
+
"description": "The table whose column names it (full name)."
|
|
16016
|
+
},
|
|
16017
|
+
"base": {
|
|
16018
|
+
"type": "string",
|
|
16019
|
+
"description": "The base whose column names it."
|
|
16020
|
+
},
|
|
16021
|
+
"view": {
|
|
16022
|
+
"type": "string",
|
|
16023
|
+
"description": "The view whose query names it (full name)."
|
|
16024
|
+
},
|
|
16025
|
+
"column": {
|
|
16026
|
+
"type": "string",
|
|
16027
|
+
"description": "The column of the table or base."
|
|
16028
|
+
},
|
|
16029
|
+
"key": {
|
|
16030
|
+
"type": "string",
|
|
16031
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
16032
|
+
},
|
|
16033
|
+
"from": {
|
|
16034
|
+
"type": "string",
|
|
16035
|
+
"description": "The name as written before."
|
|
16036
|
+
},
|
|
16037
|
+
"to": {
|
|
16038
|
+
"type": "string",
|
|
16039
|
+
"description": "The name written in its place."
|
|
16040
|
+
}
|
|
16041
|
+
},
|
|
16042
|
+
"required": [
|
|
16043
|
+
"key",
|
|
16044
|
+
"from",
|
|
16045
|
+
"to"
|
|
16046
|
+
]
|
|
16047
|
+
},
|
|
16048
|
+
"description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
|
|
14858
16049
|
}
|
|
14859
16050
|
},
|
|
14860
16051
|
"required": [
|
|
@@ -15253,6 +16444,50 @@ var OPERATIONS = [
|
|
|
15253
16444
|
]
|
|
15254
16445
|
},
|
|
15255
16446
|
"description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
|
|
16447
|
+
},
|
|
16448
|
+
"schema_references": {
|
|
16449
|
+
"type": "array",
|
|
16450
|
+
"items": {
|
|
16451
|
+
"title": "SchemaReference",
|
|
16452
|
+
"type": "object",
|
|
16453
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
16454
|
+
"properties": {
|
|
16455
|
+
"table": {
|
|
16456
|
+
"type": "string",
|
|
16457
|
+
"description": "The table whose column names it (full name)."
|
|
16458
|
+
},
|
|
16459
|
+
"base": {
|
|
16460
|
+
"type": "string",
|
|
16461
|
+
"description": "The base whose column names it."
|
|
16462
|
+
},
|
|
16463
|
+
"view": {
|
|
16464
|
+
"type": "string",
|
|
16465
|
+
"description": "The view whose query names it (full name)."
|
|
16466
|
+
},
|
|
16467
|
+
"column": {
|
|
16468
|
+
"type": "string",
|
|
16469
|
+
"description": "The column of the table or base."
|
|
16470
|
+
},
|
|
16471
|
+
"key": {
|
|
16472
|
+
"type": "string",
|
|
16473
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
16474
|
+
},
|
|
16475
|
+
"from": {
|
|
16476
|
+
"type": "string",
|
|
16477
|
+
"description": "The name as written before."
|
|
16478
|
+
},
|
|
16479
|
+
"to": {
|
|
16480
|
+
"type": "string",
|
|
16481
|
+
"description": "The name written in its place."
|
|
16482
|
+
}
|
|
16483
|
+
},
|
|
16484
|
+
"required": [
|
|
16485
|
+
"key",
|
|
16486
|
+
"from",
|
|
16487
|
+
"to"
|
|
16488
|
+
]
|
|
16489
|
+
},
|
|
16490
|
+
"description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
|
|
15256
16491
|
}
|
|
15257
16492
|
},
|
|
15258
16493
|
"required": [
|
|
@@ -15682,6 +16917,50 @@ var OPERATIONS = [
|
|
|
15682
16917
|
]
|
|
15683
16918
|
},
|
|
15684
16919
|
"description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
|
|
16920
|
+
},
|
|
16921
|
+
"schema_references": {
|
|
16922
|
+
"type": "array",
|
|
16923
|
+
"items": {
|
|
16924
|
+
"title": "SchemaReference",
|
|
16925
|
+
"type": "object",
|
|
16926
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
16927
|
+
"properties": {
|
|
16928
|
+
"table": {
|
|
16929
|
+
"type": "string",
|
|
16930
|
+
"description": "The table whose column names it (full name)."
|
|
16931
|
+
},
|
|
16932
|
+
"base": {
|
|
16933
|
+
"type": "string",
|
|
16934
|
+
"description": "The base whose column names it."
|
|
16935
|
+
},
|
|
16936
|
+
"view": {
|
|
16937
|
+
"type": "string",
|
|
16938
|
+
"description": "The view whose query names it (full name)."
|
|
16939
|
+
},
|
|
16940
|
+
"column": {
|
|
16941
|
+
"type": "string",
|
|
16942
|
+
"description": "The column of the table or base."
|
|
16943
|
+
},
|
|
16944
|
+
"key": {
|
|
16945
|
+
"type": "string",
|
|
16946
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
16947
|
+
},
|
|
16948
|
+
"from": {
|
|
16949
|
+
"type": "string",
|
|
16950
|
+
"description": "The name as written before."
|
|
16951
|
+
},
|
|
16952
|
+
"to": {
|
|
16953
|
+
"type": "string",
|
|
16954
|
+
"description": "The name written in its place."
|
|
16955
|
+
}
|
|
16956
|
+
},
|
|
16957
|
+
"required": [
|
|
16958
|
+
"key",
|
|
16959
|
+
"from",
|
|
16960
|
+
"to"
|
|
16961
|
+
]
|
|
16962
|
+
},
|
|
16963
|
+
"description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
|
|
15685
16964
|
}
|
|
15686
16965
|
},
|
|
15687
16966
|
"required": [
|
|
@@ -16098,6 +17377,50 @@ var OPERATIONS = [
|
|
|
16098
17377
|
]
|
|
16099
17378
|
},
|
|
16100
17379
|
"description": "Mentions left as text because the engine is not sure which note they name. Present when there is one: read the candidates and the context, then link the right one with update_row and autolink: false, or leave the text."
|
|
17380
|
+
},
|
|
17381
|
+
"schema_references": {
|
|
17382
|
+
"type": "array",
|
|
17383
|
+
"items": {
|
|
17384
|
+
"title": "SchemaReference",
|
|
17385
|
+
"type": "object",
|
|
17386
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
17387
|
+
"properties": {
|
|
17388
|
+
"table": {
|
|
17389
|
+
"type": "string",
|
|
17390
|
+
"description": "The table whose column names it (full name)."
|
|
17391
|
+
},
|
|
17392
|
+
"base": {
|
|
17393
|
+
"type": "string",
|
|
17394
|
+
"description": "The base whose column names it."
|
|
17395
|
+
},
|
|
17396
|
+
"view": {
|
|
17397
|
+
"type": "string",
|
|
17398
|
+
"description": "The view whose query names it (full name)."
|
|
17399
|
+
},
|
|
17400
|
+
"column": {
|
|
17401
|
+
"type": "string",
|
|
17402
|
+
"description": "The column of the table or base."
|
|
17403
|
+
},
|
|
17404
|
+
"key": {
|
|
17405
|
+
"type": "string",
|
|
17406
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
17407
|
+
},
|
|
17408
|
+
"from": {
|
|
17409
|
+
"type": "string",
|
|
17410
|
+
"description": "The name as written before."
|
|
17411
|
+
},
|
|
17412
|
+
"to": {
|
|
17413
|
+
"type": "string",
|
|
17414
|
+
"description": "The name written in its place."
|
|
17415
|
+
}
|
|
17416
|
+
},
|
|
17417
|
+
"required": [
|
|
17418
|
+
"key",
|
|
17419
|
+
"from",
|
|
17420
|
+
"to"
|
|
17421
|
+
]
|
|
17422
|
+
},
|
|
17423
|
+
"description": "alter_table that moves or renames a table: the references to it in other definitions that it rewrites (on a dry run, would rewrite): the ref and vocabulary of the columns of other tables and of bases, and the tables the views' queries read. Present when there is one."
|
|
16101
17424
|
}
|
|
16102
17425
|
},
|
|
16103
17426
|
"required": [
|
|
@@ -16604,6 +17927,7 @@ var OPERATION_KIND = {
|
|
|
16604
17927
|
list_folder: "queries",
|
|
16605
17928
|
search_notes: "queries",
|
|
16606
17929
|
semantic_search: "queries",
|
|
17930
|
+
search: "queries",
|
|
16607
17931
|
graph_neighbors: "queries",
|
|
16608
17932
|
graph_traverse: "queries",
|
|
16609
17933
|
graph_path: "queries",
|