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/index.cjs
CHANGED
|
@@ -284,7 +284,7 @@ var OPERATIONS = [
|
|
|
284
284
|
},
|
|
285
285
|
{
|
|
286
286
|
"name": "list_tables",
|
|
287
|
-
"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.",
|
|
287
|
+
"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.",
|
|
288
288
|
"inputSchema": {
|
|
289
289
|
"additionalProperties": false,
|
|
290
290
|
"properties": {},
|
|
@@ -549,7 +549,7 @@ var OPERATIONS = [
|
|
|
549
549
|
},
|
|
550
550
|
"generated": {
|
|
551
551
|
"type": "string",
|
|
552
|
-
"description":
|
|
552
|
+
"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)`.'
|
|
553
553
|
},
|
|
554
554
|
"dense": {
|
|
555
555
|
"type": "boolean",
|
|
@@ -670,7 +670,7 @@ var OPERATIONS = [
|
|
|
670
670
|
},
|
|
671
671
|
{
|
|
672
672
|
"name": "create_table",
|
|
673
|
-
"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).',
|
|
673
|
+
"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).',
|
|
674
674
|
"inputSchema": {
|
|
675
675
|
"additionalProperties": false,
|
|
676
676
|
"properties": {
|
|
@@ -1239,6 +1239,50 @@ var OPERATIONS = [
|
|
|
1239
1239
|
]
|
|
1240
1240
|
},
|
|
1241
1241
|
"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."
|
|
1242
|
+
},
|
|
1243
|
+
"schema_references": {
|
|
1244
|
+
"type": "array",
|
|
1245
|
+
"items": {
|
|
1246
|
+
"title": "SchemaReference",
|
|
1247
|
+
"type": "object",
|
|
1248
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
1249
|
+
"properties": {
|
|
1250
|
+
"table": {
|
|
1251
|
+
"type": "string",
|
|
1252
|
+
"description": "The table whose column names it (full name)."
|
|
1253
|
+
},
|
|
1254
|
+
"base": {
|
|
1255
|
+
"type": "string",
|
|
1256
|
+
"description": "The base whose column names it."
|
|
1257
|
+
},
|
|
1258
|
+
"view": {
|
|
1259
|
+
"type": "string",
|
|
1260
|
+
"description": "The view whose query names it (full name)."
|
|
1261
|
+
},
|
|
1262
|
+
"column": {
|
|
1263
|
+
"type": "string",
|
|
1264
|
+
"description": "The column of the table or base."
|
|
1265
|
+
},
|
|
1266
|
+
"key": {
|
|
1267
|
+
"type": "string",
|
|
1268
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
1269
|
+
},
|
|
1270
|
+
"from": {
|
|
1271
|
+
"type": "string",
|
|
1272
|
+
"description": "The name as written before."
|
|
1273
|
+
},
|
|
1274
|
+
"to": {
|
|
1275
|
+
"type": "string",
|
|
1276
|
+
"description": "The name written in its place."
|
|
1277
|
+
}
|
|
1278
|
+
},
|
|
1279
|
+
"required": [
|
|
1280
|
+
"key",
|
|
1281
|
+
"from",
|
|
1282
|
+
"to"
|
|
1283
|
+
]
|
|
1284
|
+
},
|
|
1285
|
+
"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."
|
|
1242
1286
|
}
|
|
1243
1287
|
},
|
|
1244
1288
|
"required": [
|
|
@@ -1652,6 +1696,50 @@ var OPERATIONS = [
|
|
|
1652
1696
|
]
|
|
1653
1697
|
},
|
|
1654
1698
|
"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."
|
|
1699
|
+
},
|
|
1700
|
+
"schema_references": {
|
|
1701
|
+
"type": "array",
|
|
1702
|
+
"items": {
|
|
1703
|
+
"title": "SchemaReference",
|
|
1704
|
+
"type": "object",
|
|
1705
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
1706
|
+
"properties": {
|
|
1707
|
+
"table": {
|
|
1708
|
+
"type": "string",
|
|
1709
|
+
"description": "The table whose column names it (full name)."
|
|
1710
|
+
},
|
|
1711
|
+
"base": {
|
|
1712
|
+
"type": "string",
|
|
1713
|
+
"description": "The base whose column names it."
|
|
1714
|
+
},
|
|
1715
|
+
"view": {
|
|
1716
|
+
"type": "string",
|
|
1717
|
+
"description": "The view whose query names it (full name)."
|
|
1718
|
+
},
|
|
1719
|
+
"column": {
|
|
1720
|
+
"type": "string",
|
|
1721
|
+
"description": "The column of the table or base."
|
|
1722
|
+
},
|
|
1723
|
+
"key": {
|
|
1724
|
+
"type": "string",
|
|
1725
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
1726
|
+
},
|
|
1727
|
+
"from": {
|
|
1728
|
+
"type": "string",
|
|
1729
|
+
"description": "The name as written before."
|
|
1730
|
+
},
|
|
1731
|
+
"to": {
|
|
1732
|
+
"type": "string",
|
|
1733
|
+
"description": "The name written in its place."
|
|
1734
|
+
}
|
|
1735
|
+
},
|
|
1736
|
+
"required": [
|
|
1737
|
+
"key",
|
|
1738
|
+
"from",
|
|
1739
|
+
"to"
|
|
1740
|
+
]
|
|
1741
|
+
},
|
|
1742
|
+
"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."
|
|
1655
1743
|
}
|
|
1656
1744
|
},
|
|
1657
1745
|
"required": [
|
|
@@ -1676,7 +1764,7 @@ var OPERATIONS = [
|
|
|
1676
1764
|
},
|
|
1677
1765
|
{
|
|
1678
1766
|
"name": "add_column",
|
|
1679
|
-
"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).',
|
|
1767
|
+
"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).',
|
|
1680
1768
|
"inputSchema": {
|
|
1681
1769
|
"additionalProperties": false,
|
|
1682
1770
|
"properties": {
|
|
@@ -2056,6 +2144,50 @@ var OPERATIONS = [
|
|
|
2056
2144
|
]
|
|
2057
2145
|
},
|
|
2058
2146
|
"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."
|
|
2147
|
+
},
|
|
2148
|
+
"schema_references": {
|
|
2149
|
+
"type": "array",
|
|
2150
|
+
"items": {
|
|
2151
|
+
"title": "SchemaReference",
|
|
2152
|
+
"type": "object",
|
|
2153
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
2154
|
+
"properties": {
|
|
2155
|
+
"table": {
|
|
2156
|
+
"type": "string",
|
|
2157
|
+
"description": "The table whose column names it (full name)."
|
|
2158
|
+
},
|
|
2159
|
+
"base": {
|
|
2160
|
+
"type": "string",
|
|
2161
|
+
"description": "The base whose column names it."
|
|
2162
|
+
},
|
|
2163
|
+
"view": {
|
|
2164
|
+
"type": "string",
|
|
2165
|
+
"description": "The view whose query names it (full name)."
|
|
2166
|
+
},
|
|
2167
|
+
"column": {
|
|
2168
|
+
"type": "string",
|
|
2169
|
+
"description": "The column of the table or base."
|
|
2170
|
+
},
|
|
2171
|
+
"key": {
|
|
2172
|
+
"type": "string",
|
|
2173
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
2174
|
+
},
|
|
2175
|
+
"from": {
|
|
2176
|
+
"type": "string",
|
|
2177
|
+
"description": "The name as written before."
|
|
2178
|
+
},
|
|
2179
|
+
"to": {
|
|
2180
|
+
"type": "string",
|
|
2181
|
+
"description": "The name written in its place."
|
|
2182
|
+
}
|
|
2183
|
+
},
|
|
2184
|
+
"required": [
|
|
2185
|
+
"key",
|
|
2186
|
+
"from",
|
|
2187
|
+
"to"
|
|
2188
|
+
]
|
|
2189
|
+
},
|
|
2190
|
+
"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."
|
|
2059
2191
|
}
|
|
2060
2192
|
},
|
|
2061
2193
|
"required": [
|
|
@@ -2462,6 +2594,50 @@ var OPERATIONS = [
|
|
|
2462
2594
|
]
|
|
2463
2595
|
},
|
|
2464
2596
|
"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."
|
|
2597
|
+
},
|
|
2598
|
+
"schema_references": {
|
|
2599
|
+
"type": "array",
|
|
2600
|
+
"items": {
|
|
2601
|
+
"title": "SchemaReference",
|
|
2602
|
+
"type": "object",
|
|
2603
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
2604
|
+
"properties": {
|
|
2605
|
+
"table": {
|
|
2606
|
+
"type": "string",
|
|
2607
|
+
"description": "The table whose column names it (full name)."
|
|
2608
|
+
},
|
|
2609
|
+
"base": {
|
|
2610
|
+
"type": "string",
|
|
2611
|
+
"description": "The base whose column names it."
|
|
2612
|
+
},
|
|
2613
|
+
"view": {
|
|
2614
|
+
"type": "string",
|
|
2615
|
+
"description": "The view whose query names it (full name)."
|
|
2616
|
+
},
|
|
2617
|
+
"column": {
|
|
2618
|
+
"type": "string",
|
|
2619
|
+
"description": "The column of the table or base."
|
|
2620
|
+
},
|
|
2621
|
+
"key": {
|
|
2622
|
+
"type": "string",
|
|
2623
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
2624
|
+
},
|
|
2625
|
+
"from": {
|
|
2626
|
+
"type": "string",
|
|
2627
|
+
"description": "The name as written before."
|
|
2628
|
+
},
|
|
2629
|
+
"to": {
|
|
2630
|
+
"type": "string",
|
|
2631
|
+
"description": "The name written in its place."
|
|
2632
|
+
}
|
|
2633
|
+
},
|
|
2634
|
+
"required": [
|
|
2635
|
+
"key",
|
|
2636
|
+
"from",
|
|
2637
|
+
"to"
|
|
2638
|
+
]
|
|
2639
|
+
},
|
|
2640
|
+
"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."
|
|
2465
2641
|
}
|
|
2466
2642
|
},
|
|
2467
2643
|
"required": [
|
|
@@ -2865,6 +3041,50 @@ var OPERATIONS = [
|
|
|
2865
3041
|
]
|
|
2866
3042
|
},
|
|
2867
3043
|
"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."
|
|
3044
|
+
},
|
|
3045
|
+
"schema_references": {
|
|
3046
|
+
"type": "array",
|
|
3047
|
+
"items": {
|
|
3048
|
+
"title": "SchemaReference",
|
|
3049
|
+
"type": "object",
|
|
3050
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
3051
|
+
"properties": {
|
|
3052
|
+
"table": {
|
|
3053
|
+
"type": "string",
|
|
3054
|
+
"description": "The table whose column names it (full name)."
|
|
3055
|
+
},
|
|
3056
|
+
"base": {
|
|
3057
|
+
"type": "string",
|
|
3058
|
+
"description": "The base whose column names it."
|
|
3059
|
+
},
|
|
3060
|
+
"view": {
|
|
3061
|
+
"type": "string",
|
|
3062
|
+
"description": "The view whose query names it (full name)."
|
|
3063
|
+
},
|
|
3064
|
+
"column": {
|
|
3065
|
+
"type": "string",
|
|
3066
|
+
"description": "The column of the table or base."
|
|
3067
|
+
},
|
|
3068
|
+
"key": {
|
|
3069
|
+
"type": "string",
|
|
3070
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
3071
|
+
},
|
|
3072
|
+
"from": {
|
|
3073
|
+
"type": "string",
|
|
3074
|
+
"description": "The name as written before."
|
|
3075
|
+
},
|
|
3076
|
+
"to": {
|
|
3077
|
+
"type": "string",
|
|
3078
|
+
"description": "The name written in its place."
|
|
3079
|
+
}
|
|
3080
|
+
},
|
|
3081
|
+
"required": [
|
|
3082
|
+
"key",
|
|
3083
|
+
"from",
|
|
3084
|
+
"to"
|
|
3085
|
+
]
|
|
3086
|
+
},
|
|
3087
|
+
"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."
|
|
2868
3088
|
}
|
|
2869
3089
|
},
|
|
2870
3090
|
"required": [
|
|
@@ -3273,6 +3493,50 @@ var OPERATIONS = [
|
|
|
3273
3493
|
]
|
|
3274
3494
|
},
|
|
3275
3495
|
"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."
|
|
3496
|
+
},
|
|
3497
|
+
"schema_references": {
|
|
3498
|
+
"type": "array",
|
|
3499
|
+
"items": {
|
|
3500
|
+
"title": "SchemaReference",
|
|
3501
|
+
"type": "object",
|
|
3502
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
3503
|
+
"properties": {
|
|
3504
|
+
"table": {
|
|
3505
|
+
"type": "string",
|
|
3506
|
+
"description": "The table whose column names it (full name)."
|
|
3507
|
+
},
|
|
3508
|
+
"base": {
|
|
3509
|
+
"type": "string",
|
|
3510
|
+
"description": "The base whose column names it."
|
|
3511
|
+
},
|
|
3512
|
+
"view": {
|
|
3513
|
+
"type": "string",
|
|
3514
|
+
"description": "The view whose query names it (full name)."
|
|
3515
|
+
},
|
|
3516
|
+
"column": {
|
|
3517
|
+
"type": "string",
|
|
3518
|
+
"description": "The column of the table or base."
|
|
3519
|
+
},
|
|
3520
|
+
"key": {
|
|
3521
|
+
"type": "string",
|
|
3522
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
3523
|
+
},
|
|
3524
|
+
"from": {
|
|
3525
|
+
"type": "string",
|
|
3526
|
+
"description": "The name as written before."
|
|
3527
|
+
},
|
|
3528
|
+
"to": {
|
|
3529
|
+
"type": "string",
|
|
3530
|
+
"description": "The name written in its place."
|
|
3531
|
+
}
|
|
3532
|
+
},
|
|
3533
|
+
"required": [
|
|
3534
|
+
"key",
|
|
3535
|
+
"from",
|
|
3536
|
+
"to"
|
|
3537
|
+
]
|
|
3538
|
+
},
|
|
3539
|
+
"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."
|
|
3276
3540
|
}
|
|
3277
3541
|
},
|
|
3278
3542
|
"required": [
|
|
@@ -3297,7 +3561,7 @@ var OPERATIONS = [
|
|
|
3297
3561
|
},
|
|
3298
3562
|
{
|
|
3299
3563
|
"name": "alter_table",
|
|
3300
|
-
"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
|
|
3564
|
+
"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).',
|
|
3301
3565
|
"inputSchema": {
|
|
3302
3566
|
"additionalProperties": false,
|
|
3303
3567
|
"properties": {
|
|
@@ -3878,6 +4142,50 @@ var OPERATIONS = [
|
|
|
3878
4142
|
]
|
|
3879
4143
|
},
|
|
3880
4144
|
"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."
|
|
4145
|
+
},
|
|
4146
|
+
"schema_references": {
|
|
4147
|
+
"type": "array",
|
|
4148
|
+
"items": {
|
|
4149
|
+
"title": "SchemaReference",
|
|
4150
|
+
"type": "object",
|
|
4151
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
4152
|
+
"properties": {
|
|
4153
|
+
"table": {
|
|
4154
|
+
"type": "string",
|
|
4155
|
+
"description": "The table whose column names it (full name)."
|
|
4156
|
+
},
|
|
4157
|
+
"base": {
|
|
4158
|
+
"type": "string",
|
|
4159
|
+
"description": "The base whose column names it."
|
|
4160
|
+
},
|
|
4161
|
+
"view": {
|
|
4162
|
+
"type": "string",
|
|
4163
|
+
"description": "The view whose query names it (full name)."
|
|
4164
|
+
},
|
|
4165
|
+
"column": {
|
|
4166
|
+
"type": "string",
|
|
4167
|
+
"description": "The column of the table or base."
|
|
4168
|
+
},
|
|
4169
|
+
"key": {
|
|
4170
|
+
"type": "string",
|
|
4171
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
4172
|
+
},
|
|
4173
|
+
"from": {
|
|
4174
|
+
"type": "string",
|
|
4175
|
+
"description": "The name as written before."
|
|
4176
|
+
},
|
|
4177
|
+
"to": {
|
|
4178
|
+
"type": "string",
|
|
4179
|
+
"description": "The name written in its place."
|
|
4180
|
+
}
|
|
4181
|
+
},
|
|
4182
|
+
"required": [
|
|
4183
|
+
"key",
|
|
4184
|
+
"from",
|
|
4185
|
+
"to"
|
|
4186
|
+
]
|
|
4187
|
+
},
|
|
4188
|
+
"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."
|
|
3881
4189
|
}
|
|
3882
4190
|
},
|
|
3883
4191
|
"required": [
|
|
@@ -4338,6 +4646,50 @@ var OPERATIONS = [
|
|
|
4338
4646
|
]
|
|
4339
4647
|
},
|
|
4340
4648
|
"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."
|
|
4649
|
+
},
|
|
4650
|
+
"schema_references": {
|
|
4651
|
+
"type": "array",
|
|
4652
|
+
"items": {
|
|
4653
|
+
"title": "SchemaReference",
|
|
4654
|
+
"type": "object",
|
|
4655
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
4656
|
+
"properties": {
|
|
4657
|
+
"table": {
|
|
4658
|
+
"type": "string",
|
|
4659
|
+
"description": "The table whose column names it (full name)."
|
|
4660
|
+
},
|
|
4661
|
+
"base": {
|
|
4662
|
+
"type": "string",
|
|
4663
|
+
"description": "The base whose column names it."
|
|
4664
|
+
},
|
|
4665
|
+
"view": {
|
|
4666
|
+
"type": "string",
|
|
4667
|
+
"description": "The view whose query names it (full name)."
|
|
4668
|
+
},
|
|
4669
|
+
"column": {
|
|
4670
|
+
"type": "string",
|
|
4671
|
+
"description": "The column of the table or base."
|
|
4672
|
+
},
|
|
4673
|
+
"key": {
|
|
4674
|
+
"type": "string",
|
|
4675
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
4676
|
+
},
|
|
4677
|
+
"from": {
|
|
4678
|
+
"type": "string",
|
|
4679
|
+
"description": "The name as written before."
|
|
4680
|
+
},
|
|
4681
|
+
"to": {
|
|
4682
|
+
"type": "string",
|
|
4683
|
+
"description": "The name written in its place."
|
|
4684
|
+
}
|
|
4685
|
+
},
|
|
4686
|
+
"required": [
|
|
4687
|
+
"key",
|
|
4688
|
+
"from",
|
|
4689
|
+
"to"
|
|
4690
|
+
]
|
|
4691
|
+
},
|
|
4692
|
+
"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."
|
|
4341
4693
|
}
|
|
4342
4694
|
},
|
|
4343
4695
|
"required": [
|
|
@@ -4743,6 +5095,50 @@ var OPERATIONS = [
|
|
|
4743
5095
|
]
|
|
4744
5096
|
},
|
|
4745
5097
|
"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."
|
|
5098
|
+
},
|
|
5099
|
+
"schema_references": {
|
|
5100
|
+
"type": "array",
|
|
5101
|
+
"items": {
|
|
5102
|
+
"title": "SchemaReference",
|
|
5103
|
+
"type": "object",
|
|
5104
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
5105
|
+
"properties": {
|
|
5106
|
+
"table": {
|
|
5107
|
+
"type": "string",
|
|
5108
|
+
"description": "The table whose column names it (full name)."
|
|
5109
|
+
},
|
|
5110
|
+
"base": {
|
|
5111
|
+
"type": "string",
|
|
5112
|
+
"description": "The base whose column names it."
|
|
5113
|
+
},
|
|
5114
|
+
"view": {
|
|
5115
|
+
"type": "string",
|
|
5116
|
+
"description": "The view whose query names it (full name)."
|
|
5117
|
+
},
|
|
5118
|
+
"column": {
|
|
5119
|
+
"type": "string",
|
|
5120
|
+
"description": "The column of the table or base."
|
|
5121
|
+
},
|
|
5122
|
+
"key": {
|
|
5123
|
+
"type": "string",
|
|
5124
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
5125
|
+
},
|
|
5126
|
+
"from": {
|
|
5127
|
+
"type": "string",
|
|
5128
|
+
"description": "The name as written before."
|
|
5129
|
+
},
|
|
5130
|
+
"to": {
|
|
5131
|
+
"type": "string",
|
|
5132
|
+
"description": "The name written in its place."
|
|
5133
|
+
}
|
|
5134
|
+
},
|
|
5135
|
+
"required": [
|
|
5136
|
+
"key",
|
|
5137
|
+
"from",
|
|
5138
|
+
"to"
|
|
5139
|
+
]
|
|
5140
|
+
},
|
|
5141
|
+
"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."
|
|
4746
5142
|
}
|
|
4747
5143
|
},
|
|
4748
5144
|
"required": [
|
|
@@ -4767,7 +5163,7 @@ var OPERATIONS = [
|
|
|
4767
5163
|
},
|
|
4768
5164
|
{
|
|
4769
5165
|
"name": "describe_database",
|
|
4770
|
-
"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.",
|
|
5166
|
+
"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.",
|
|
4771
5167
|
"inputSchema": {
|
|
4772
5168
|
"additionalProperties": false,
|
|
4773
5169
|
"properties": {},
|
|
@@ -5809,10 +6205,54 @@ var OPERATIONS = [
|
|
|
5809
6205
|
]
|
|
5810
6206
|
},
|
|
5811
6207
|
"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."
|
|
5812
|
-
}
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
|
|
6208
|
+
},
|
|
6209
|
+
"schema_references": {
|
|
6210
|
+
"type": "array",
|
|
6211
|
+
"items": {
|
|
6212
|
+
"title": "SchemaReference",
|
|
6213
|
+
"type": "object",
|
|
6214
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
6215
|
+
"properties": {
|
|
6216
|
+
"table": {
|
|
6217
|
+
"type": "string",
|
|
6218
|
+
"description": "The table whose column names it (full name)."
|
|
6219
|
+
},
|
|
6220
|
+
"base": {
|
|
6221
|
+
"type": "string",
|
|
6222
|
+
"description": "The base whose column names it."
|
|
6223
|
+
},
|
|
6224
|
+
"view": {
|
|
6225
|
+
"type": "string",
|
|
6226
|
+
"description": "The view whose query names it (full name)."
|
|
6227
|
+
},
|
|
6228
|
+
"column": {
|
|
6229
|
+
"type": "string",
|
|
6230
|
+
"description": "The column of the table or base."
|
|
6231
|
+
},
|
|
6232
|
+
"key": {
|
|
6233
|
+
"type": "string",
|
|
6234
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
6235
|
+
},
|
|
6236
|
+
"from": {
|
|
6237
|
+
"type": "string",
|
|
6238
|
+
"description": "The name as written before."
|
|
6239
|
+
},
|
|
6240
|
+
"to": {
|
|
6241
|
+
"type": "string",
|
|
6242
|
+
"description": "The name written in its place."
|
|
6243
|
+
}
|
|
6244
|
+
},
|
|
6245
|
+
"required": [
|
|
6246
|
+
"key",
|
|
6247
|
+
"from",
|
|
6248
|
+
"to"
|
|
6249
|
+
]
|
|
6250
|
+
},
|
|
6251
|
+
"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."
|
|
6252
|
+
}
|
|
6253
|
+
},
|
|
6254
|
+
"required": [
|
|
6255
|
+
"ok",
|
|
5816
6256
|
"op",
|
|
5817
6257
|
"dry_run",
|
|
5818
6258
|
"notes_changed",
|
|
@@ -6219,6 +6659,50 @@ var OPERATIONS = [
|
|
|
6219
6659
|
]
|
|
6220
6660
|
},
|
|
6221
6661
|
"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."
|
|
6662
|
+
},
|
|
6663
|
+
"schema_references": {
|
|
6664
|
+
"type": "array",
|
|
6665
|
+
"items": {
|
|
6666
|
+
"title": "SchemaReference",
|
|
6667
|
+
"type": "object",
|
|
6668
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
6669
|
+
"properties": {
|
|
6670
|
+
"table": {
|
|
6671
|
+
"type": "string",
|
|
6672
|
+
"description": "The table whose column names it (full name)."
|
|
6673
|
+
},
|
|
6674
|
+
"base": {
|
|
6675
|
+
"type": "string",
|
|
6676
|
+
"description": "The base whose column names it."
|
|
6677
|
+
},
|
|
6678
|
+
"view": {
|
|
6679
|
+
"type": "string",
|
|
6680
|
+
"description": "The view whose query names it (full name)."
|
|
6681
|
+
},
|
|
6682
|
+
"column": {
|
|
6683
|
+
"type": "string",
|
|
6684
|
+
"description": "The column of the table or base."
|
|
6685
|
+
},
|
|
6686
|
+
"key": {
|
|
6687
|
+
"type": "string",
|
|
6688
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
6689
|
+
},
|
|
6690
|
+
"from": {
|
|
6691
|
+
"type": "string",
|
|
6692
|
+
"description": "The name as written before."
|
|
6693
|
+
},
|
|
6694
|
+
"to": {
|
|
6695
|
+
"type": "string",
|
|
6696
|
+
"description": "The name written in its place."
|
|
6697
|
+
}
|
|
6698
|
+
},
|
|
6699
|
+
"required": [
|
|
6700
|
+
"key",
|
|
6701
|
+
"from",
|
|
6702
|
+
"to"
|
|
6703
|
+
]
|
|
6704
|
+
},
|
|
6705
|
+
"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."
|
|
6222
6706
|
}
|
|
6223
6707
|
},
|
|
6224
6708
|
"required": [
|
|
@@ -6657,6 +7141,50 @@ var OPERATIONS = [
|
|
|
6657
7141
|
]
|
|
6658
7142
|
},
|
|
6659
7143
|
"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."
|
|
7144
|
+
},
|
|
7145
|
+
"schema_references": {
|
|
7146
|
+
"type": "array",
|
|
7147
|
+
"items": {
|
|
7148
|
+
"title": "SchemaReference",
|
|
7149
|
+
"type": "object",
|
|
7150
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
7151
|
+
"properties": {
|
|
7152
|
+
"table": {
|
|
7153
|
+
"type": "string",
|
|
7154
|
+
"description": "The table whose column names it (full name)."
|
|
7155
|
+
},
|
|
7156
|
+
"base": {
|
|
7157
|
+
"type": "string",
|
|
7158
|
+
"description": "The base whose column names it."
|
|
7159
|
+
},
|
|
7160
|
+
"view": {
|
|
7161
|
+
"type": "string",
|
|
7162
|
+
"description": "The view whose query names it (full name)."
|
|
7163
|
+
},
|
|
7164
|
+
"column": {
|
|
7165
|
+
"type": "string",
|
|
7166
|
+
"description": "The column of the table or base."
|
|
7167
|
+
},
|
|
7168
|
+
"key": {
|
|
7169
|
+
"type": "string",
|
|
7170
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
7171
|
+
},
|
|
7172
|
+
"from": {
|
|
7173
|
+
"type": "string",
|
|
7174
|
+
"description": "The name as written before."
|
|
7175
|
+
},
|
|
7176
|
+
"to": {
|
|
7177
|
+
"type": "string",
|
|
7178
|
+
"description": "The name written in its place."
|
|
7179
|
+
}
|
|
7180
|
+
},
|
|
7181
|
+
"required": [
|
|
7182
|
+
"key",
|
|
7183
|
+
"from",
|
|
7184
|
+
"to"
|
|
7185
|
+
]
|
|
7186
|
+
},
|
|
7187
|
+
"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."
|
|
6660
7188
|
}
|
|
6661
7189
|
},
|
|
6662
7190
|
"required": [
|
|
@@ -7099,6 +7627,50 @@ var OPERATIONS = [
|
|
|
7099
7627
|
]
|
|
7100
7628
|
},
|
|
7101
7629
|
"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."
|
|
7630
|
+
},
|
|
7631
|
+
"schema_references": {
|
|
7632
|
+
"type": "array",
|
|
7633
|
+
"items": {
|
|
7634
|
+
"title": "SchemaReference",
|
|
7635
|
+
"type": "object",
|
|
7636
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
7637
|
+
"properties": {
|
|
7638
|
+
"table": {
|
|
7639
|
+
"type": "string",
|
|
7640
|
+
"description": "The table whose column names it (full name)."
|
|
7641
|
+
},
|
|
7642
|
+
"base": {
|
|
7643
|
+
"type": "string",
|
|
7644
|
+
"description": "The base whose column names it."
|
|
7645
|
+
},
|
|
7646
|
+
"view": {
|
|
7647
|
+
"type": "string",
|
|
7648
|
+
"description": "The view whose query names it (full name)."
|
|
7649
|
+
},
|
|
7650
|
+
"column": {
|
|
7651
|
+
"type": "string",
|
|
7652
|
+
"description": "The column of the table or base."
|
|
7653
|
+
},
|
|
7654
|
+
"key": {
|
|
7655
|
+
"type": "string",
|
|
7656
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
7657
|
+
},
|
|
7658
|
+
"from": {
|
|
7659
|
+
"type": "string",
|
|
7660
|
+
"description": "The name as written before."
|
|
7661
|
+
},
|
|
7662
|
+
"to": {
|
|
7663
|
+
"type": "string",
|
|
7664
|
+
"description": "The name written in its place."
|
|
7665
|
+
}
|
|
7666
|
+
},
|
|
7667
|
+
"required": [
|
|
7668
|
+
"key",
|
|
7669
|
+
"from",
|
|
7670
|
+
"to"
|
|
7671
|
+
]
|
|
7672
|
+
},
|
|
7673
|
+
"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."
|
|
7102
7674
|
}
|
|
7103
7675
|
},
|
|
7104
7676
|
"required": [
|
|
@@ -7616,6 +8188,50 @@ var OPERATIONS = [
|
|
|
7616
8188
|
]
|
|
7617
8189
|
},
|
|
7618
8190
|
"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."
|
|
8191
|
+
},
|
|
8192
|
+
"schema_references": {
|
|
8193
|
+
"type": "array",
|
|
8194
|
+
"items": {
|
|
8195
|
+
"title": "SchemaReference",
|
|
8196
|
+
"type": "object",
|
|
8197
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
8198
|
+
"properties": {
|
|
8199
|
+
"table": {
|
|
8200
|
+
"type": "string",
|
|
8201
|
+
"description": "The table whose column names it (full name)."
|
|
8202
|
+
},
|
|
8203
|
+
"base": {
|
|
8204
|
+
"type": "string",
|
|
8205
|
+
"description": "The base whose column names it."
|
|
8206
|
+
},
|
|
8207
|
+
"view": {
|
|
8208
|
+
"type": "string",
|
|
8209
|
+
"description": "The view whose query names it (full name)."
|
|
8210
|
+
},
|
|
8211
|
+
"column": {
|
|
8212
|
+
"type": "string",
|
|
8213
|
+
"description": "The column of the table or base."
|
|
8214
|
+
},
|
|
8215
|
+
"key": {
|
|
8216
|
+
"type": "string",
|
|
8217
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
8218
|
+
},
|
|
8219
|
+
"from": {
|
|
8220
|
+
"type": "string",
|
|
8221
|
+
"description": "The name as written before."
|
|
8222
|
+
},
|
|
8223
|
+
"to": {
|
|
8224
|
+
"type": "string",
|
|
8225
|
+
"description": "The name written in its place."
|
|
8226
|
+
}
|
|
8227
|
+
},
|
|
8228
|
+
"required": [
|
|
8229
|
+
"key",
|
|
8230
|
+
"from",
|
|
8231
|
+
"to"
|
|
8232
|
+
]
|
|
8233
|
+
},
|
|
8234
|
+
"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."
|
|
7619
8235
|
}
|
|
7620
8236
|
},
|
|
7621
8237
|
"required": [
|
|
@@ -8051,6 +8667,50 @@ var OPERATIONS = [
|
|
|
8051
8667
|
]
|
|
8052
8668
|
},
|
|
8053
8669
|
"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."
|
|
8670
|
+
},
|
|
8671
|
+
"schema_references": {
|
|
8672
|
+
"type": "array",
|
|
8673
|
+
"items": {
|
|
8674
|
+
"title": "SchemaReference",
|
|
8675
|
+
"type": "object",
|
|
8676
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
8677
|
+
"properties": {
|
|
8678
|
+
"table": {
|
|
8679
|
+
"type": "string",
|
|
8680
|
+
"description": "The table whose column names it (full name)."
|
|
8681
|
+
},
|
|
8682
|
+
"base": {
|
|
8683
|
+
"type": "string",
|
|
8684
|
+
"description": "The base whose column names it."
|
|
8685
|
+
},
|
|
8686
|
+
"view": {
|
|
8687
|
+
"type": "string",
|
|
8688
|
+
"description": "The view whose query names it (full name)."
|
|
8689
|
+
},
|
|
8690
|
+
"column": {
|
|
8691
|
+
"type": "string",
|
|
8692
|
+
"description": "The column of the table or base."
|
|
8693
|
+
},
|
|
8694
|
+
"key": {
|
|
8695
|
+
"type": "string",
|
|
8696
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
8697
|
+
},
|
|
8698
|
+
"from": {
|
|
8699
|
+
"type": "string",
|
|
8700
|
+
"description": "The name as written before."
|
|
8701
|
+
},
|
|
8702
|
+
"to": {
|
|
8703
|
+
"type": "string",
|
|
8704
|
+
"description": "The name written in its place."
|
|
8705
|
+
}
|
|
8706
|
+
},
|
|
8707
|
+
"required": [
|
|
8708
|
+
"key",
|
|
8709
|
+
"from",
|
|
8710
|
+
"to"
|
|
8711
|
+
]
|
|
8712
|
+
},
|
|
8713
|
+
"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."
|
|
8054
8714
|
}
|
|
8055
8715
|
},
|
|
8056
8716
|
"required": [
|
|
@@ -8503,6 +9163,50 @@ var OPERATIONS = [
|
|
|
8503
9163
|
]
|
|
8504
9164
|
},
|
|
8505
9165
|
"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."
|
|
9166
|
+
},
|
|
9167
|
+
"schema_references": {
|
|
9168
|
+
"type": "array",
|
|
9169
|
+
"items": {
|
|
9170
|
+
"title": "SchemaReference",
|
|
9171
|
+
"type": "object",
|
|
9172
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
9173
|
+
"properties": {
|
|
9174
|
+
"table": {
|
|
9175
|
+
"type": "string",
|
|
9176
|
+
"description": "The table whose column names it (full name)."
|
|
9177
|
+
},
|
|
9178
|
+
"base": {
|
|
9179
|
+
"type": "string",
|
|
9180
|
+
"description": "The base whose column names it."
|
|
9181
|
+
},
|
|
9182
|
+
"view": {
|
|
9183
|
+
"type": "string",
|
|
9184
|
+
"description": "The view whose query names it (full name)."
|
|
9185
|
+
},
|
|
9186
|
+
"column": {
|
|
9187
|
+
"type": "string",
|
|
9188
|
+
"description": "The column of the table or base."
|
|
9189
|
+
},
|
|
9190
|
+
"key": {
|
|
9191
|
+
"type": "string",
|
|
9192
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
9193
|
+
},
|
|
9194
|
+
"from": {
|
|
9195
|
+
"type": "string",
|
|
9196
|
+
"description": "The name as written before."
|
|
9197
|
+
},
|
|
9198
|
+
"to": {
|
|
9199
|
+
"type": "string",
|
|
9200
|
+
"description": "The name written in its place."
|
|
9201
|
+
}
|
|
9202
|
+
},
|
|
9203
|
+
"required": [
|
|
9204
|
+
"key",
|
|
9205
|
+
"from",
|
|
9206
|
+
"to"
|
|
9207
|
+
]
|
|
9208
|
+
},
|
|
9209
|
+
"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."
|
|
8506
9210
|
}
|
|
8507
9211
|
},
|
|
8508
9212
|
"required": [
|
|
@@ -8967,6 +9671,50 @@ var OPERATIONS = [
|
|
|
8967
9671
|
]
|
|
8968
9672
|
},
|
|
8969
9673
|
"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."
|
|
9674
|
+
},
|
|
9675
|
+
"schema_references": {
|
|
9676
|
+
"type": "array",
|
|
9677
|
+
"items": {
|
|
9678
|
+
"title": "SchemaReference",
|
|
9679
|
+
"type": "object",
|
|
9680
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
9681
|
+
"properties": {
|
|
9682
|
+
"table": {
|
|
9683
|
+
"type": "string",
|
|
9684
|
+
"description": "The table whose column names it (full name)."
|
|
9685
|
+
},
|
|
9686
|
+
"base": {
|
|
9687
|
+
"type": "string",
|
|
9688
|
+
"description": "The base whose column names it."
|
|
9689
|
+
},
|
|
9690
|
+
"view": {
|
|
9691
|
+
"type": "string",
|
|
9692
|
+
"description": "The view whose query names it (full name)."
|
|
9693
|
+
},
|
|
9694
|
+
"column": {
|
|
9695
|
+
"type": "string",
|
|
9696
|
+
"description": "The column of the table or base."
|
|
9697
|
+
},
|
|
9698
|
+
"key": {
|
|
9699
|
+
"type": "string",
|
|
9700
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
9701
|
+
},
|
|
9702
|
+
"from": {
|
|
9703
|
+
"type": "string",
|
|
9704
|
+
"description": "The name as written before."
|
|
9705
|
+
},
|
|
9706
|
+
"to": {
|
|
9707
|
+
"type": "string",
|
|
9708
|
+
"description": "The name written in its place."
|
|
9709
|
+
}
|
|
9710
|
+
},
|
|
9711
|
+
"required": [
|
|
9712
|
+
"key",
|
|
9713
|
+
"from",
|
|
9714
|
+
"to"
|
|
9715
|
+
]
|
|
9716
|
+
},
|
|
9717
|
+
"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."
|
|
8970
9718
|
}
|
|
8971
9719
|
},
|
|
8972
9720
|
"required": [
|
|
@@ -10049,6 +10797,50 @@ var OPERATIONS = [
|
|
|
10049
10797
|
]
|
|
10050
10798
|
},
|
|
10051
10799
|
"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."
|
|
10800
|
+
},
|
|
10801
|
+
"schema_references": {
|
|
10802
|
+
"type": "array",
|
|
10803
|
+
"items": {
|
|
10804
|
+
"title": "SchemaReference",
|
|
10805
|
+
"type": "object",
|
|
10806
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
10807
|
+
"properties": {
|
|
10808
|
+
"table": {
|
|
10809
|
+
"type": "string",
|
|
10810
|
+
"description": "The table whose column names it (full name)."
|
|
10811
|
+
},
|
|
10812
|
+
"base": {
|
|
10813
|
+
"type": "string",
|
|
10814
|
+
"description": "The base whose column names it."
|
|
10815
|
+
},
|
|
10816
|
+
"view": {
|
|
10817
|
+
"type": "string",
|
|
10818
|
+
"description": "The view whose query names it (full name)."
|
|
10819
|
+
},
|
|
10820
|
+
"column": {
|
|
10821
|
+
"type": "string",
|
|
10822
|
+
"description": "The column of the table or base."
|
|
10823
|
+
},
|
|
10824
|
+
"key": {
|
|
10825
|
+
"type": "string",
|
|
10826
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
10827
|
+
},
|
|
10828
|
+
"from": {
|
|
10829
|
+
"type": "string",
|
|
10830
|
+
"description": "The name as written before."
|
|
10831
|
+
},
|
|
10832
|
+
"to": {
|
|
10833
|
+
"type": "string",
|
|
10834
|
+
"description": "The name written in its place."
|
|
10835
|
+
}
|
|
10836
|
+
},
|
|
10837
|
+
"required": [
|
|
10838
|
+
"key",
|
|
10839
|
+
"from",
|
|
10840
|
+
"to"
|
|
10841
|
+
]
|
|
10842
|
+
},
|
|
10843
|
+
"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."
|
|
10052
10844
|
}
|
|
10053
10845
|
},
|
|
10054
10846
|
"required": [
|
|
@@ -10496,6 +11288,50 @@ var OPERATIONS = [
|
|
|
10496
11288
|
]
|
|
10497
11289
|
},
|
|
10498
11290
|
"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."
|
|
11291
|
+
},
|
|
11292
|
+
"schema_references": {
|
|
11293
|
+
"type": "array",
|
|
11294
|
+
"items": {
|
|
11295
|
+
"title": "SchemaReference",
|
|
11296
|
+
"type": "object",
|
|
11297
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
11298
|
+
"properties": {
|
|
11299
|
+
"table": {
|
|
11300
|
+
"type": "string",
|
|
11301
|
+
"description": "The table whose column names it (full name)."
|
|
11302
|
+
},
|
|
11303
|
+
"base": {
|
|
11304
|
+
"type": "string",
|
|
11305
|
+
"description": "The base whose column names it."
|
|
11306
|
+
},
|
|
11307
|
+
"view": {
|
|
11308
|
+
"type": "string",
|
|
11309
|
+
"description": "The view whose query names it (full name)."
|
|
11310
|
+
},
|
|
11311
|
+
"column": {
|
|
11312
|
+
"type": "string",
|
|
11313
|
+
"description": "The column of the table or base."
|
|
11314
|
+
},
|
|
11315
|
+
"key": {
|
|
11316
|
+
"type": "string",
|
|
11317
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
11318
|
+
},
|
|
11319
|
+
"from": {
|
|
11320
|
+
"type": "string",
|
|
11321
|
+
"description": "The name as written before."
|
|
11322
|
+
},
|
|
11323
|
+
"to": {
|
|
11324
|
+
"type": "string",
|
|
11325
|
+
"description": "The name written in its place."
|
|
11326
|
+
}
|
|
11327
|
+
},
|
|
11328
|
+
"required": [
|
|
11329
|
+
"key",
|
|
11330
|
+
"from",
|
|
11331
|
+
"to"
|
|
11332
|
+
]
|
|
11333
|
+
},
|
|
11334
|
+
"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."
|
|
10499
11335
|
}
|
|
10500
11336
|
},
|
|
10501
11337
|
"required": [
|
|
@@ -10784,8 +11620,116 @@ var OPERATIONS = [
|
|
|
10784
11620
|
}
|
|
10785
11621
|
},
|
|
10786
11622
|
{
|
|
10787
|
-
"name": "semantic_search",
|
|
10788
|
-
"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.',
|
|
11623
|
+
"name": "semantic_search",
|
|
11624
|
+
"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.',
|
|
11625
|
+
"inputSchema": {
|
|
11626
|
+
"additionalProperties": false,
|
|
11627
|
+
"properties": {
|
|
11628
|
+
"query": {
|
|
11629
|
+
"type": "string"
|
|
11630
|
+
},
|
|
11631
|
+
"limit": {
|
|
11632
|
+
"default": 10,
|
|
11633
|
+
"type": "integer"
|
|
11634
|
+
},
|
|
11635
|
+
"tables": {
|
|
11636
|
+
"anyOf": [
|
|
11637
|
+
{
|
|
11638
|
+
"items": {
|
|
11639
|
+
"type": "string"
|
|
11640
|
+
},
|
|
11641
|
+
"type": "array"
|
|
11642
|
+
},
|
|
11643
|
+
{
|
|
11644
|
+
"type": "null"
|
|
11645
|
+
}
|
|
11646
|
+
],
|
|
11647
|
+
"default": null
|
|
11648
|
+
},
|
|
11649
|
+
"folder": {
|
|
11650
|
+
"anyOf": [
|
|
11651
|
+
{
|
|
11652
|
+
"type": "string"
|
|
11653
|
+
},
|
|
11654
|
+
{
|
|
11655
|
+
"type": "null"
|
|
11656
|
+
}
|
|
11657
|
+
],
|
|
11658
|
+
"default": null
|
|
11659
|
+
},
|
|
11660
|
+
"min_score": {
|
|
11661
|
+
"anyOf": [
|
|
11662
|
+
{
|
|
11663
|
+
"type": "number"
|
|
11664
|
+
},
|
|
11665
|
+
{
|
|
11666
|
+
"type": "null"
|
|
11667
|
+
}
|
|
11668
|
+
],
|
|
11669
|
+
"default": null
|
|
11670
|
+
}
|
|
11671
|
+
},
|
|
11672
|
+
"required": [
|
|
11673
|
+
"query"
|
|
11674
|
+
],
|
|
11675
|
+
"type": "object"
|
|
11676
|
+
},
|
|
11677
|
+
"annotations": {
|
|
11678
|
+
"title": "Semantic Search",
|
|
11679
|
+
"readOnlyHint": true,
|
|
11680
|
+
"destructiveHint": false,
|
|
11681
|
+
"idempotentHint": true,
|
|
11682
|
+
"openWorldHint": false
|
|
11683
|
+
},
|
|
11684
|
+
"responseSchema": {
|
|
11685
|
+
"type": "object",
|
|
11686
|
+
"properties": {
|
|
11687
|
+
"query": {
|
|
11688
|
+
"type": "string"
|
|
11689
|
+
},
|
|
11690
|
+
"results": {
|
|
11691
|
+
"type": "array",
|
|
11692
|
+
"items": {
|
|
11693
|
+
"type": "object",
|
|
11694
|
+
"properties": {
|
|
11695
|
+
"path": {
|
|
11696
|
+
"type": "string"
|
|
11697
|
+
},
|
|
11698
|
+
"score": {
|
|
11699
|
+
"type": "number",
|
|
11700
|
+
"description": "Similarity, 0..1."
|
|
11701
|
+
},
|
|
11702
|
+
"heading": {
|
|
11703
|
+
"type": "string",
|
|
11704
|
+
"description": "Heading of the best passage."
|
|
11705
|
+
},
|
|
11706
|
+
"snippet": {
|
|
11707
|
+
"type": "string"
|
|
11708
|
+
},
|
|
11709
|
+
"table": {
|
|
11710
|
+
"type": "string",
|
|
11711
|
+
"description": "Qualified table of a row note."
|
|
11712
|
+
}
|
|
11713
|
+
},
|
|
11714
|
+
"required": [
|
|
11715
|
+
"path",
|
|
11716
|
+
"score",
|
|
11717
|
+
"heading",
|
|
11718
|
+
"snippet"
|
|
11719
|
+
]
|
|
11720
|
+
},
|
|
11721
|
+
"description": "One result per note, best first."
|
|
11722
|
+
}
|
|
11723
|
+
},
|
|
11724
|
+
"required": [
|
|
11725
|
+
"query",
|
|
11726
|
+
"results"
|
|
11727
|
+
]
|
|
11728
|
+
}
|
|
11729
|
+
},
|
|
11730
|
+
{
|
|
11731
|
+
"name": "search",
|
|
11732
|
+
"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.",
|
|
10789
11733
|
"inputSchema": {
|
|
10790
11734
|
"additionalProperties": false,
|
|
10791
11735
|
"properties": {
|
|
@@ -10839,7 +11783,7 @@ var OPERATIONS = [
|
|
|
10839
11783
|
"type": "object"
|
|
10840
11784
|
},
|
|
10841
11785
|
"annotations": {
|
|
10842
|
-
"title": "
|
|
11786
|
+
"title": "Search",
|
|
10843
11787
|
"readOnlyHint": true,
|
|
10844
11788
|
"destructiveHint": false,
|
|
10845
11789
|
"idempotentHint": true,
|
|
@@ -10859,35 +11803,62 @@ var OPERATIONS = [
|
|
|
10859
11803
|
"path": {
|
|
10860
11804
|
"type": "string"
|
|
10861
11805
|
},
|
|
11806
|
+
"table": {
|
|
11807
|
+
"type": "string",
|
|
11808
|
+
"description": "Qualified table of a row note."
|
|
11809
|
+
},
|
|
10862
11810
|
"score": {
|
|
10863
11811
|
"type": "number",
|
|
10864
|
-
"description": "
|
|
11812
|
+
"description": "BM25 when ranked by words alone; the Reciprocal Rank Fusion score when fused."
|
|
10865
11813
|
},
|
|
10866
11814
|
"heading": {
|
|
10867
11815
|
"type": "string",
|
|
10868
|
-
"description": "Heading
|
|
11816
|
+
"description": "Heading above the match (empty before the first heading)."
|
|
10869
11817
|
},
|
|
10870
11818
|
"snippet": {
|
|
10871
|
-
"type": "string"
|
|
10872
|
-
},
|
|
10873
|
-
"table": {
|
|
10874
11819
|
"type": "string",
|
|
10875
|
-
"description": "
|
|
11820
|
+
"description": "About 200 characters around the first match, or the best passage by meaning."
|
|
11821
|
+
},
|
|
11822
|
+
"matched_by": {
|
|
11823
|
+
"type": "array",
|
|
11824
|
+
"items": {
|
|
11825
|
+
"type": "string",
|
|
11826
|
+
"enum": [
|
|
11827
|
+
"words",
|
|
11828
|
+
"meaning"
|
|
11829
|
+
]
|
|
11830
|
+
},
|
|
11831
|
+
"description": "The rankings the note is in."
|
|
10876
11832
|
}
|
|
10877
11833
|
},
|
|
10878
11834
|
"required": [
|
|
10879
11835
|
"path",
|
|
10880
11836
|
"score",
|
|
10881
11837
|
"heading",
|
|
10882
|
-
"snippet"
|
|
11838
|
+
"snippet",
|
|
11839
|
+
"matched_by"
|
|
10883
11840
|
]
|
|
10884
11841
|
},
|
|
10885
11842
|
"description": "One result per note, best first."
|
|
11843
|
+
},
|
|
11844
|
+
"meaning": {
|
|
11845
|
+
"type": "string",
|
|
11846
|
+
"enum": [
|
|
11847
|
+
"on",
|
|
11848
|
+
"off",
|
|
11849
|
+
"failed"
|
|
11850
|
+
],
|
|
11851
|
+
"description": "on: words and meaning fused; off: semantic search is off, words only; failed: the embedding provider failed, words only."
|
|
11852
|
+
},
|
|
11853
|
+
"meaning_error": {
|
|
11854
|
+
"type": "string",
|
|
11855
|
+
"description": "Why the meaning ranking failed (with meaning: failed)."
|
|
10886
11856
|
}
|
|
10887
11857
|
},
|
|
10888
11858
|
"required": [
|
|
10889
11859
|
"query",
|
|
10890
|
-
"results"
|
|
11860
|
+
"results",
|
|
11861
|
+
"meaning"
|
|
10891
11862
|
]
|
|
10892
11863
|
}
|
|
10893
11864
|
},
|
|
@@ -11583,6 +12554,50 @@ var OPERATIONS = [
|
|
|
11583
12554
|
]
|
|
11584
12555
|
},
|
|
11585
12556
|
"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."
|
|
12557
|
+
},
|
|
12558
|
+
"schema_references": {
|
|
12559
|
+
"type": "array",
|
|
12560
|
+
"items": {
|
|
12561
|
+
"title": "SchemaReference",
|
|
12562
|
+
"type": "object",
|
|
12563
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
12564
|
+
"properties": {
|
|
12565
|
+
"table": {
|
|
12566
|
+
"type": "string",
|
|
12567
|
+
"description": "The table whose column names it (full name)."
|
|
12568
|
+
},
|
|
12569
|
+
"base": {
|
|
12570
|
+
"type": "string",
|
|
12571
|
+
"description": "The base whose column names it."
|
|
12572
|
+
},
|
|
12573
|
+
"view": {
|
|
12574
|
+
"type": "string",
|
|
12575
|
+
"description": "The view whose query names it (full name)."
|
|
12576
|
+
},
|
|
12577
|
+
"column": {
|
|
12578
|
+
"type": "string",
|
|
12579
|
+
"description": "The column of the table or base."
|
|
12580
|
+
},
|
|
12581
|
+
"key": {
|
|
12582
|
+
"type": "string",
|
|
12583
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
12584
|
+
},
|
|
12585
|
+
"from": {
|
|
12586
|
+
"type": "string",
|
|
12587
|
+
"description": "The name as written before."
|
|
12588
|
+
},
|
|
12589
|
+
"to": {
|
|
12590
|
+
"type": "string",
|
|
12591
|
+
"description": "The name written in its place."
|
|
12592
|
+
}
|
|
12593
|
+
},
|
|
12594
|
+
"required": [
|
|
12595
|
+
"key",
|
|
12596
|
+
"from",
|
|
12597
|
+
"to"
|
|
12598
|
+
]
|
|
12599
|
+
},
|
|
12600
|
+
"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."
|
|
11586
12601
|
}
|
|
11587
12602
|
},
|
|
11588
12603
|
"required": [
|
|
@@ -13024,6 +14039,50 @@ var OPERATIONS = [
|
|
|
13024
14039
|
]
|
|
13025
14040
|
},
|
|
13026
14041
|
"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."
|
|
14042
|
+
},
|
|
14043
|
+
"schema_references": {
|
|
14044
|
+
"type": "array",
|
|
14045
|
+
"items": {
|
|
14046
|
+
"title": "SchemaReference",
|
|
14047
|
+
"type": "object",
|
|
14048
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
14049
|
+
"properties": {
|
|
14050
|
+
"table": {
|
|
14051
|
+
"type": "string",
|
|
14052
|
+
"description": "The table whose column names it (full name)."
|
|
14053
|
+
},
|
|
14054
|
+
"base": {
|
|
14055
|
+
"type": "string",
|
|
14056
|
+
"description": "The base whose column names it."
|
|
14057
|
+
},
|
|
14058
|
+
"view": {
|
|
14059
|
+
"type": "string",
|
|
14060
|
+
"description": "The view whose query names it (full name)."
|
|
14061
|
+
},
|
|
14062
|
+
"column": {
|
|
14063
|
+
"type": "string",
|
|
14064
|
+
"description": "The column of the table or base."
|
|
14065
|
+
},
|
|
14066
|
+
"key": {
|
|
14067
|
+
"type": "string",
|
|
14068
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
14069
|
+
},
|
|
14070
|
+
"from": {
|
|
14071
|
+
"type": "string",
|
|
14072
|
+
"description": "The name as written before."
|
|
14073
|
+
},
|
|
14074
|
+
"to": {
|
|
14075
|
+
"type": "string",
|
|
14076
|
+
"description": "The name written in its place."
|
|
14077
|
+
}
|
|
14078
|
+
},
|
|
14079
|
+
"required": [
|
|
14080
|
+
"key",
|
|
14081
|
+
"from",
|
|
14082
|
+
"to"
|
|
14083
|
+
]
|
|
14084
|
+
},
|
|
14085
|
+
"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."
|
|
13027
14086
|
}
|
|
13028
14087
|
},
|
|
13029
14088
|
"required": [
|
|
@@ -14044,6 +15103,50 @@ var OPERATIONS = [
|
|
|
14044
15103
|
]
|
|
14045
15104
|
},
|
|
14046
15105
|
"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."
|
|
15106
|
+
},
|
|
15107
|
+
"schema_references": {
|
|
15108
|
+
"type": "array",
|
|
15109
|
+
"items": {
|
|
15110
|
+
"title": "SchemaReference",
|
|
15111
|
+
"type": "object",
|
|
15112
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
15113
|
+
"properties": {
|
|
15114
|
+
"table": {
|
|
15115
|
+
"type": "string",
|
|
15116
|
+
"description": "The table whose column names it (full name)."
|
|
15117
|
+
},
|
|
15118
|
+
"base": {
|
|
15119
|
+
"type": "string",
|
|
15120
|
+
"description": "The base whose column names it."
|
|
15121
|
+
},
|
|
15122
|
+
"view": {
|
|
15123
|
+
"type": "string",
|
|
15124
|
+
"description": "The view whose query names it (full name)."
|
|
15125
|
+
},
|
|
15126
|
+
"column": {
|
|
15127
|
+
"type": "string",
|
|
15128
|
+
"description": "The column of the table or base."
|
|
15129
|
+
},
|
|
15130
|
+
"key": {
|
|
15131
|
+
"type": "string",
|
|
15132
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
15133
|
+
},
|
|
15134
|
+
"from": {
|
|
15135
|
+
"type": "string",
|
|
15136
|
+
"description": "The name as written before."
|
|
15137
|
+
},
|
|
15138
|
+
"to": {
|
|
15139
|
+
"type": "string",
|
|
15140
|
+
"description": "The name written in its place."
|
|
15141
|
+
}
|
|
15142
|
+
},
|
|
15143
|
+
"required": [
|
|
15144
|
+
"key",
|
|
15145
|
+
"from",
|
|
15146
|
+
"to"
|
|
15147
|
+
]
|
|
15148
|
+
},
|
|
15149
|
+
"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."
|
|
14047
15150
|
}
|
|
14048
15151
|
},
|
|
14049
15152
|
"required": [
|
|
@@ -14446,6 +15549,50 @@ var OPERATIONS = [
|
|
|
14446
15549
|
]
|
|
14447
15550
|
},
|
|
14448
15551
|
"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."
|
|
15552
|
+
},
|
|
15553
|
+
"schema_references": {
|
|
15554
|
+
"type": "array",
|
|
15555
|
+
"items": {
|
|
15556
|
+
"title": "SchemaReference",
|
|
15557
|
+
"type": "object",
|
|
15558
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
15559
|
+
"properties": {
|
|
15560
|
+
"table": {
|
|
15561
|
+
"type": "string",
|
|
15562
|
+
"description": "The table whose column names it (full name)."
|
|
15563
|
+
},
|
|
15564
|
+
"base": {
|
|
15565
|
+
"type": "string",
|
|
15566
|
+
"description": "The base whose column names it."
|
|
15567
|
+
},
|
|
15568
|
+
"view": {
|
|
15569
|
+
"type": "string",
|
|
15570
|
+
"description": "The view whose query names it (full name)."
|
|
15571
|
+
},
|
|
15572
|
+
"column": {
|
|
15573
|
+
"type": "string",
|
|
15574
|
+
"description": "The column of the table or base."
|
|
15575
|
+
},
|
|
15576
|
+
"key": {
|
|
15577
|
+
"type": "string",
|
|
15578
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
15579
|
+
},
|
|
15580
|
+
"from": {
|
|
15581
|
+
"type": "string",
|
|
15582
|
+
"description": "The name as written before."
|
|
15583
|
+
},
|
|
15584
|
+
"to": {
|
|
15585
|
+
"type": "string",
|
|
15586
|
+
"description": "The name written in its place."
|
|
15587
|
+
}
|
|
15588
|
+
},
|
|
15589
|
+
"required": [
|
|
15590
|
+
"key",
|
|
15591
|
+
"from",
|
|
15592
|
+
"to"
|
|
15593
|
+
]
|
|
15594
|
+
},
|
|
15595
|
+
"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."
|
|
14449
15596
|
}
|
|
14450
15597
|
},
|
|
14451
15598
|
"required": [
|
|
@@ -14915,6 +16062,50 @@ var OPERATIONS = [
|
|
|
14915
16062
|
]
|
|
14916
16063
|
},
|
|
14917
16064
|
"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."
|
|
16065
|
+
},
|
|
16066
|
+
"schema_references": {
|
|
16067
|
+
"type": "array",
|
|
16068
|
+
"items": {
|
|
16069
|
+
"title": "SchemaReference",
|
|
16070
|
+
"type": "object",
|
|
16071
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
16072
|
+
"properties": {
|
|
16073
|
+
"table": {
|
|
16074
|
+
"type": "string",
|
|
16075
|
+
"description": "The table whose column names it (full name)."
|
|
16076
|
+
},
|
|
16077
|
+
"base": {
|
|
16078
|
+
"type": "string",
|
|
16079
|
+
"description": "The base whose column names it."
|
|
16080
|
+
},
|
|
16081
|
+
"view": {
|
|
16082
|
+
"type": "string",
|
|
16083
|
+
"description": "The view whose query names it (full name)."
|
|
16084
|
+
},
|
|
16085
|
+
"column": {
|
|
16086
|
+
"type": "string",
|
|
16087
|
+
"description": "The column of the table or base."
|
|
16088
|
+
},
|
|
16089
|
+
"key": {
|
|
16090
|
+
"type": "string",
|
|
16091
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
16092
|
+
},
|
|
16093
|
+
"from": {
|
|
16094
|
+
"type": "string",
|
|
16095
|
+
"description": "The name as written before."
|
|
16096
|
+
},
|
|
16097
|
+
"to": {
|
|
16098
|
+
"type": "string",
|
|
16099
|
+
"description": "The name written in its place."
|
|
16100
|
+
}
|
|
16101
|
+
},
|
|
16102
|
+
"required": [
|
|
16103
|
+
"key",
|
|
16104
|
+
"from",
|
|
16105
|
+
"to"
|
|
16106
|
+
]
|
|
16107
|
+
},
|
|
16108
|
+
"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."
|
|
14918
16109
|
}
|
|
14919
16110
|
},
|
|
14920
16111
|
"required": [
|
|
@@ -15313,6 +16504,50 @@ var OPERATIONS = [
|
|
|
15313
16504
|
]
|
|
15314
16505
|
},
|
|
15315
16506
|
"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."
|
|
16507
|
+
},
|
|
16508
|
+
"schema_references": {
|
|
16509
|
+
"type": "array",
|
|
16510
|
+
"items": {
|
|
16511
|
+
"title": "SchemaReference",
|
|
16512
|
+
"type": "object",
|
|
16513
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
16514
|
+
"properties": {
|
|
16515
|
+
"table": {
|
|
16516
|
+
"type": "string",
|
|
16517
|
+
"description": "The table whose column names it (full name)."
|
|
16518
|
+
},
|
|
16519
|
+
"base": {
|
|
16520
|
+
"type": "string",
|
|
16521
|
+
"description": "The base whose column names it."
|
|
16522
|
+
},
|
|
16523
|
+
"view": {
|
|
16524
|
+
"type": "string",
|
|
16525
|
+
"description": "The view whose query names it (full name)."
|
|
16526
|
+
},
|
|
16527
|
+
"column": {
|
|
16528
|
+
"type": "string",
|
|
16529
|
+
"description": "The column of the table or base."
|
|
16530
|
+
},
|
|
16531
|
+
"key": {
|
|
16532
|
+
"type": "string",
|
|
16533
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
16534
|
+
},
|
|
16535
|
+
"from": {
|
|
16536
|
+
"type": "string",
|
|
16537
|
+
"description": "The name as written before."
|
|
16538
|
+
},
|
|
16539
|
+
"to": {
|
|
16540
|
+
"type": "string",
|
|
16541
|
+
"description": "The name written in its place."
|
|
16542
|
+
}
|
|
16543
|
+
},
|
|
16544
|
+
"required": [
|
|
16545
|
+
"key",
|
|
16546
|
+
"from",
|
|
16547
|
+
"to"
|
|
16548
|
+
]
|
|
16549
|
+
},
|
|
16550
|
+
"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."
|
|
15316
16551
|
}
|
|
15317
16552
|
},
|
|
15318
16553
|
"required": [
|
|
@@ -15742,6 +16977,50 @@ var OPERATIONS = [
|
|
|
15742
16977
|
]
|
|
15743
16978
|
},
|
|
15744
16979
|
"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."
|
|
16980
|
+
},
|
|
16981
|
+
"schema_references": {
|
|
16982
|
+
"type": "array",
|
|
16983
|
+
"items": {
|
|
16984
|
+
"title": "SchemaReference",
|
|
16985
|
+
"type": "object",
|
|
16986
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
16987
|
+
"properties": {
|
|
16988
|
+
"table": {
|
|
16989
|
+
"type": "string",
|
|
16990
|
+
"description": "The table whose column names it (full name)."
|
|
16991
|
+
},
|
|
16992
|
+
"base": {
|
|
16993
|
+
"type": "string",
|
|
16994
|
+
"description": "The base whose column names it."
|
|
16995
|
+
},
|
|
16996
|
+
"view": {
|
|
16997
|
+
"type": "string",
|
|
16998
|
+
"description": "The view whose query names it (full name)."
|
|
16999
|
+
},
|
|
17000
|
+
"column": {
|
|
17001
|
+
"type": "string",
|
|
17002
|
+
"description": "The column of the table or base."
|
|
17003
|
+
},
|
|
17004
|
+
"key": {
|
|
17005
|
+
"type": "string",
|
|
17006
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
17007
|
+
},
|
|
17008
|
+
"from": {
|
|
17009
|
+
"type": "string",
|
|
17010
|
+
"description": "The name as written before."
|
|
17011
|
+
},
|
|
17012
|
+
"to": {
|
|
17013
|
+
"type": "string",
|
|
17014
|
+
"description": "The name written in its place."
|
|
17015
|
+
}
|
|
17016
|
+
},
|
|
17017
|
+
"required": [
|
|
17018
|
+
"key",
|
|
17019
|
+
"from",
|
|
17020
|
+
"to"
|
|
17021
|
+
]
|
|
17022
|
+
},
|
|
17023
|
+
"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."
|
|
15745
17024
|
}
|
|
15746
17025
|
},
|
|
15747
17026
|
"required": [
|
|
@@ -16158,6 +17437,50 @@ var OPERATIONS = [
|
|
|
16158
17437
|
]
|
|
16159
17438
|
},
|
|
16160
17439
|
"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."
|
|
17440
|
+
},
|
|
17441
|
+
"schema_references": {
|
|
17442
|
+
"type": "array",
|
|
17443
|
+
"items": {
|
|
17444
|
+
"title": "SchemaReference",
|
|
17445
|
+
"type": "object",
|
|
17446
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
17447
|
+
"properties": {
|
|
17448
|
+
"table": {
|
|
17449
|
+
"type": "string",
|
|
17450
|
+
"description": "The table whose column names it (full name)."
|
|
17451
|
+
},
|
|
17452
|
+
"base": {
|
|
17453
|
+
"type": "string",
|
|
17454
|
+
"description": "The base whose column names it."
|
|
17455
|
+
},
|
|
17456
|
+
"view": {
|
|
17457
|
+
"type": "string",
|
|
17458
|
+
"description": "The view whose query names it (full name)."
|
|
17459
|
+
},
|
|
17460
|
+
"column": {
|
|
17461
|
+
"type": "string",
|
|
17462
|
+
"description": "The column of the table or base."
|
|
17463
|
+
},
|
|
17464
|
+
"key": {
|
|
17465
|
+
"type": "string",
|
|
17466
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
17467
|
+
},
|
|
17468
|
+
"from": {
|
|
17469
|
+
"type": "string",
|
|
17470
|
+
"description": "The name as written before."
|
|
17471
|
+
},
|
|
17472
|
+
"to": {
|
|
17473
|
+
"type": "string",
|
|
17474
|
+
"description": "The name written in its place."
|
|
17475
|
+
}
|
|
17476
|
+
},
|
|
17477
|
+
"required": [
|
|
17478
|
+
"key",
|
|
17479
|
+
"from",
|
|
17480
|
+
"to"
|
|
17481
|
+
]
|
|
17482
|
+
},
|
|
17483
|
+
"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."
|
|
16161
17484
|
}
|
|
16162
17485
|
},
|
|
16163
17486
|
"required": [
|
|
@@ -16664,6 +17987,7 @@ var OPERATION_KIND = {
|
|
|
16664
17987
|
list_folder: "queries",
|
|
16665
17988
|
search_notes: "queries",
|
|
16666
17989
|
semantic_search: "queries",
|
|
17990
|
+
search: "queries",
|
|
16667
17991
|
graph_neighbors: "queries",
|
|
16668
17992
|
graph_traverse: "queries",
|
|
16669
17993
|
graph_path: "queries",
|