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/extensions.js
CHANGED
|
@@ -238,7 +238,7 @@ var OPERATIONS = [
|
|
|
238
238
|
},
|
|
239
239
|
{
|
|
240
240
|
"name": "list_tables",
|
|
241
|
-
"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.",
|
|
241
|
+
"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.",
|
|
242
242
|
"inputSchema": {
|
|
243
243
|
"additionalProperties": false,
|
|
244
244
|
"properties": {},
|
|
@@ -503,7 +503,7 @@ var OPERATIONS = [
|
|
|
503
503
|
},
|
|
504
504
|
"generated": {
|
|
505
505
|
"type": "string",
|
|
506
|
-
"description":
|
|
506
|
+
"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)`.'
|
|
507
507
|
},
|
|
508
508
|
"dense": {
|
|
509
509
|
"type": "boolean",
|
|
@@ -624,7 +624,7 @@ var OPERATIONS = [
|
|
|
624
624
|
},
|
|
625
625
|
{
|
|
626
626
|
"name": "create_table",
|
|
627
|
-
"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).',
|
|
627
|
+
"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).',
|
|
628
628
|
"inputSchema": {
|
|
629
629
|
"additionalProperties": false,
|
|
630
630
|
"properties": {
|
|
@@ -1193,6 +1193,50 @@ var OPERATIONS = [
|
|
|
1193
1193
|
]
|
|
1194
1194
|
},
|
|
1195
1195
|
"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."
|
|
1196
|
+
},
|
|
1197
|
+
"schema_references": {
|
|
1198
|
+
"type": "array",
|
|
1199
|
+
"items": {
|
|
1200
|
+
"title": "SchemaReference",
|
|
1201
|
+
"type": "object",
|
|
1202
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
1203
|
+
"properties": {
|
|
1204
|
+
"table": {
|
|
1205
|
+
"type": "string",
|
|
1206
|
+
"description": "The table whose column names it (full name)."
|
|
1207
|
+
},
|
|
1208
|
+
"base": {
|
|
1209
|
+
"type": "string",
|
|
1210
|
+
"description": "The base whose column names it."
|
|
1211
|
+
},
|
|
1212
|
+
"view": {
|
|
1213
|
+
"type": "string",
|
|
1214
|
+
"description": "The view whose query names it (full name)."
|
|
1215
|
+
},
|
|
1216
|
+
"column": {
|
|
1217
|
+
"type": "string",
|
|
1218
|
+
"description": "The column of the table or base."
|
|
1219
|
+
},
|
|
1220
|
+
"key": {
|
|
1221
|
+
"type": "string",
|
|
1222
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
1223
|
+
},
|
|
1224
|
+
"from": {
|
|
1225
|
+
"type": "string",
|
|
1226
|
+
"description": "The name as written before."
|
|
1227
|
+
},
|
|
1228
|
+
"to": {
|
|
1229
|
+
"type": "string",
|
|
1230
|
+
"description": "The name written in its place."
|
|
1231
|
+
}
|
|
1232
|
+
},
|
|
1233
|
+
"required": [
|
|
1234
|
+
"key",
|
|
1235
|
+
"from",
|
|
1236
|
+
"to"
|
|
1237
|
+
]
|
|
1238
|
+
},
|
|
1239
|
+
"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."
|
|
1196
1240
|
}
|
|
1197
1241
|
},
|
|
1198
1242
|
"required": [
|
|
@@ -1606,6 +1650,50 @@ var OPERATIONS = [
|
|
|
1606
1650
|
]
|
|
1607
1651
|
},
|
|
1608
1652
|
"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."
|
|
1653
|
+
},
|
|
1654
|
+
"schema_references": {
|
|
1655
|
+
"type": "array",
|
|
1656
|
+
"items": {
|
|
1657
|
+
"title": "SchemaReference",
|
|
1658
|
+
"type": "object",
|
|
1659
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
1660
|
+
"properties": {
|
|
1661
|
+
"table": {
|
|
1662
|
+
"type": "string",
|
|
1663
|
+
"description": "The table whose column names it (full name)."
|
|
1664
|
+
},
|
|
1665
|
+
"base": {
|
|
1666
|
+
"type": "string",
|
|
1667
|
+
"description": "The base whose column names it."
|
|
1668
|
+
},
|
|
1669
|
+
"view": {
|
|
1670
|
+
"type": "string",
|
|
1671
|
+
"description": "The view whose query names it (full name)."
|
|
1672
|
+
},
|
|
1673
|
+
"column": {
|
|
1674
|
+
"type": "string",
|
|
1675
|
+
"description": "The column of the table or base."
|
|
1676
|
+
},
|
|
1677
|
+
"key": {
|
|
1678
|
+
"type": "string",
|
|
1679
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
1680
|
+
},
|
|
1681
|
+
"from": {
|
|
1682
|
+
"type": "string",
|
|
1683
|
+
"description": "The name as written before."
|
|
1684
|
+
},
|
|
1685
|
+
"to": {
|
|
1686
|
+
"type": "string",
|
|
1687
|
+
"description": "The name written in its place."
|
|
1688
|
+
}
|
|
1689
|
+
},
|
|
1690
|
+
"required": [
|
|
1691
|
+
"key",
|
|
1692
|
+
"from",
|
|
1693
|
+
"to"
|
|
1694
|
+
]
|
|
1695
|
+
},
|
|
1696
|
+
"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."
|
|
1609
1697
|
}
|
|
1610
1698
|
},
|
|
1611
1699
|
"required": [
|
|
@@ -1630,7 +1718,7 @@ var OPERATIONS = [
|
|
|
1630
1718
|
},
|
|
1631
1719
|
{
|
|
1632
1720
|
"name": "add_column",
|
|
1633
|
-
"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).',
|
|
1721
|
+
"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).',
|
|
1634
1722
|
"inputSchema": {
|
|
1635
1723
|
"additionalProperties": false,
|
|
1636
1724
|
"properties": {
|
|
@@ -2010,6 +2098,50 @@ var OPERATIONS = [
|
|
|
2010
2098
|
]
|
|
2011
2099
|
},
|
|
2012
2100
|
"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."
|
|
2101
|
+
},
|
|
2102
|
+
"schema_references": {
|
|
2103
|
+
"type": "array",
|
|
2104
|
+
"items": {
|
|
2105
|
+
"title": "SchemaReference",
|
|
2106
|
+
"type": "object",
|
|
2107
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
2108
|
+
"properties": {
|
|
2109
|
+
"table": {
|
|
2110
|
+
"type": "string",
|
|
2111
|
+
"description": "The table whose column names it (full name)."
|
|
2112
|
+
},
|
|
2113
|
+
"base": {
|
|
2114
|
+
"type": "string",
|
|
2115
|
+
"description": "The base whose column names it."
|
|
2116
|
+
},
|
|
2117
|
+
"view": {
|
|
2118
|
+
"type": "string",
|
|
2119
|
+
"description": "The view whose query names it (full name)."
|
|
2120
|
+
},
|
|
2121
|
+
"column": {
|
|
2122
|
+
"type": "string",
|
|
2123
|
+
"description": "The column of the table or base."
|
|
2124
|
+
},
|
|
2125
|
+
"key": {
|
|
2126
|
+
"type": "string",
|
|
2127
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
2128
|
+
},
|
|
2129
|
+
"from": {
|
|
2130
|
+
"type": "string",
|
|
2131
|
+
"description": "The name as written before."
|
|
2132
|
+
},
|
|
2133
|
+
"to": {
|
|
2134
|
+
"type": "string",
|
|
2135
|
+
"description": "The name written in its place."
|
|
2136
|
+
}
|
|
2137
|
+
},
|
|
2138
|
+
"required": [
|
|
2139
|
+
"key",
|
|
2140
|
+
"from",
|
|
2141
|
+
"to"
|
|
2142
|
+
]
|
|
2143
|
+
},
|
|
2144
|
+
"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."
|
|
2013
2145
|
}
|
|
2014
2146
|
},
|
|
2015
2147
|
"required": [
|
|
@@ -2416,6 +2548,50 @@ var OPERATIONS = [
|
|
|
2416
2548
|
]
|
|
2417
2549
|
},
|
|
2418
2550
|
"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."
|
|
2551
|
+
},
|
|
2552
|
+
"schema_references": {
|
|
2553
|
+
"type": "array",
|
|
2554
|
+
"items": {
|
|
2555
|
+
"title": "SchemaReference",
|
|
2556
|
+
"type": "object",
|
|
2557
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
2558
|
+
"properties": {
|
|
2559
|
+
"table": {
|
|
2560
|
+
"type": "string",
|
|
2561
|
+
"description": "The table whose column names it (full name)."
|
|
2562
|
+
},
|
|
2563
|
+
"base": {
|
|
2564
|
+
"type": "string",
|
|
2565
|
+
"description": "The base whose column names it."
|
|
2566
|
+
},
|
|
2567
|
+
"view": {
|
|
2568
|
+
"type": "string",
|
|
2569
|
+
"description": "The view whose query names it (full name)."
|
|
2570
|
+
},
|
|
2571
|
+
"column": {
|
|
2572
|
+
"type": "string",
|
|
2573
|
+
"description": "The column of the table or base."
|
|
2574
|
+
},
|
|
2575
|
+
"key": {
|
|
2576
|
+
"type": "string",
|
|
2577
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
2578
|
+
},
|
|
2579
|
+
"from": {
|
|
2580
|
+
"type": "string",
|
|
2581
|
+
"description": "The name as written before."
|
|
2582
|
+
},
|
|
2583
|
+
"to": {
|
|
2584
|
+
"type": "string",
|
|
2585
|
+
"description": "The name written in its place."
|
|
2586
|
+
}
|
|
2587
|
+
},
|
|
2588
|
+
"required": [
|
|
2589
|
+
"key",
|
|
2590
|
+
"from",
|
|
2591
|
+
"to"
|
|
2592
|
+
]
|
|
2593
|
+
},
|
|
2594
|
+
"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."
|
|
2419
2595
|
}
|
|
2420
2596
|
},
|
|
2421
2597
|
"required": [
|
|
@@ -2819,6 +2995,50 @@ var OPERATIONS = [
|
|
|
2819
2995
|
]
|
|
2820
2996
|
},
|
|
2821
2997
|
"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."
|
|
2998
|
+
},
|
|
2999
|
+
"schema_references": {
|
|
3000
|
+
"type": "array",
|
|
3001
|
+
"items": {
|
|
3002
|
+
"title": "SchemaReference",
|
|
3003
|
+
"type": "object",
|
|
3004
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
3005
|
+
"properties": {
|
|
3006
|
+
"table": {
|
|
3007
|
+
"type": "string",
|
|
3008
|
+
"description": "The table whose column names it (full name)."
|
|
3009
|
+
},
|
|
3010
|
+
"base": {
|
|
3011
|
+
"type": "string",
|
|
3012
|
+
"description": "The base whose column names it."
|
|
3013
|
+
},
|
|
3014
|
+
"view": {
|
|
3015
|
+
"type": "string",
|
|
3016
|
+
"description": "The view whose query names it (full name)."
|
|
3017
|
+
},
|
|
3018
|
+
"column": {
|
|
3019
|
+
"type": "string",
|
|
3020
|
+
"description": "The column of the table or base."
|
|
3021
|
+
},
|
|
3022
|
+
"key": {
|
|
3023
|
+
"type": "string",
|
|
3024
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
3025
|
+
},
|
|
3026
|
+
"from": {
|
|
3027
|
+
"type": "string",
|
|
3028
|
+
"description": "The name as written before."
|
|
3029
|
+
},
|
|
3030
|
+
"to": {
|
|
3031
|
+
"type": "string",
|
|
3032
|
+
"description": "The name written in its place."
|
|
3033
|
+
}
|
|
3034
|
+
},
|
|
3035
|
+
"required": [
|
|
3036
|
+
"key",
|
|
3037
|
+
"from",
|
|
3038
|
+
"to"
|
|
3039
|
+
]
|
|
3040
|
+
},
|
|
3041
|
+
"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."
|
|
2822
3042
|
}
|
|
2823
3043
|
},
|
|
2824
3044
|
"required": [
|
|
@@ -3227,6 +3447,50 @@ var OPERATIONS = [
|
|
|
3227
3447
|
]
|
|
3228
3448
|
},
|
|
3229
3449
|
"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."
|
|
3450
|
+
},
|
|
3451
|
+
"schema_references": {
|
|
3452
|
+
"type": "array",
|
|
3453
|
+
"items": {
|
|
3454
|
+
"title": "SchemaReference",
|
|
3455
|
+
"type": "object",
|
|
3456
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
3457
|
+
"properties": {
|
|
3458
|
+
"table": {
|
|
3459
|
+
"type": "string",
|
|
3460
|
+
"description": "The table whose column names it (full name)."
|
|
3461
|
+
},
|
|
3462
|
+
"base": {
|
|
3463
|
+
"type": "string",
|
|
3464
|
+
"description": "The base whose column names it."
|
|
3465
|
+
},
|
|
3466
|
+
"view": {
|
|
3467
|
+
"type": "string",
|
|
3468
|
+
"description": "The view whose query names it (full name)."
|
|
3469
|
+
},
|
|
3470
|
+
"column": {
|
|
3471
|
+
"type": "string",
|
|
3472
|
+
"description": "The column of the table or base."
|
|
3473
|
+
},
|
|
3474
|
+
"key": {
|
|
3475
|
+
"type": "string",
|
|
3476
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
3477
|
+
},
|
|
3478
|
+
"from": {
|
|
3479
|
+
"type": "string",
|
|
3480
|
+
"description": "The name as written before."
|
|
3481
|
+
},
|
|
3482
|
+
"to": {
|
|
3483
|
+
"type": "string",
|
|
3484
|
+
"description": "The name written in its place."
|
|
3485
|
+
}
|
|
3486
|
+
},
|
|
3487
|
+
"required": [
|
|
3488
|
+
"key",
|
|
3489
|
+
"from",
|
|
3490
|
+
"to"
|
|
3491
|
+
]
|
|
3492
|
+
},
|
|
3493
|
+
"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."
|
|
3230
3494
|
}
|
|
3231
3495
|
},
|
|
3232
3496
|
"required": [
|
|
@@ -3251,7 +3515,7 @@ var OPERATIONS = [
|
|
|
3251
3515
|
},
|
|
3252
3516
|
{
|
|
3253
3517
|
"name": "alter_table",
|
|
3254
|
-
"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
|
|
3518
|
+
"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).',
|
|
3255
3519
|
"inputSchema": {
|
|
3256
3520
|
"additionalProperties": false,
|
|
3257
3521
|
"properties": {
|
|
@@ -3832,6 +4096,50 @@ var OPERATIONS = [
|
|
|
3832
4096
|
]
|
|
3833
4097
|
},
|
|
3834
4098
|
"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."
|
|
4099
|
+
},
|
|
4100
|
+
"schema_references": {
|
|
4101
|
+
"type": "array",
|
|
4102
|
+
"items": {
|
|
4103
|
+
"title": "SchemaReference",
|
|
4104
|
+
"type": "object",
|
|
4105
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
4106
|
+
"properties": {
|
|
4107
|
+
"table": {
|
|
4108
|
+
"type": "string",
|
|
4109
|
+
"description": "The table whose column names it (full name)."
|
|
4110
|
+
},
|
|
4111
|
+
"base": {
|
|
4112
|
+
"type": "string",
|
|
4113
|
+
"description": "The base whose column names it."
|
|
4114
|
+
},
|
|
4115
|
+
"view": {
|
|
4116
|
+
"type": "string",
|
|
4117
|
+
"description": "The view whose query names it (full name)."
|
|
4118
|
+
},
|
|
4119
|
+
"column": {
|
|
4120
|
+
"type": "string",
|
|
4121
|
+
"description": "The column of the table or base."
|
|
4122
|
+
},
|
|
4123
|
+
"key": {
|
|
4124
|
+
"type": "string",
|
|
4125
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
4126
|
+
},
|
|
4127
|
+
"from": {
|
|
4128
|
+
"type": "string",
|
|
4129
|
+
"description": "The name as written before."
|
|
4130
|
+
},
|
|
4131
|
+
"to": {
|
|
4132
|
+
"type": "string",
|
|
4133
|
+
"description": "The name written in its place."
|
|
4134
|
+
}
|
|
4135
|
+
},
|
|
4136
|
+
"required": [
|
|
4137
|
+
"key",
|
|
4138
|
+
"from",
|
|
4139
|
+
"to"
|
|
4140
|
+
]
|
|
4141
|
+
},
|
|
4142
|
+
"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."
|
|
3835
4143
|
}
|
|
3836
4144
|
},
|
|
3837
4145
|
"required": [
|
|
@@ -4292,6 +4600,50 @@ var OPERATIONS = [
|
|
|
4292
4600
|
]
|
|
4293
4601
|
},
|
|
4294
4602
|
"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."
|
|
4603
|
+
},
|
|
4604
|
+
"schema_references": {
|
|
4605
|
+
"type": "array",
|
|
4606
|
+
"items": {
|
|
4607
|
+
"title": "SchemaReference",
|
|
4608
|
+
"type": "object",
|
|
4609
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
4610
|
+
"properties": {
|
|
4611
|
+
"table": {
|
|
4612
|
+
"type": "string",
|
|
4613
|
+
"description": "The table whose column names it (full name)."
|
|
4614
|
+
},
|
|
4615
|
+
"base": {
|
|
4616
|
+
"type": "string",
|
|
4617
|
+
"description": "The base whose column names it."
|
|
4618
|
+
},
|
|
4619
|
+
"view": {
|
|
4620
|
+
"type": "string",
|
|
4621
|
+
"description": "The view whose query names it (full name)."
|
|
4622
|
+
},
|
|
4623
|
+
"column": {
|
|
4624
|
+
"type": "string",
|
|
4625
|
+
"description": "The column of the table or base."
|
|
4626
|
+
},
|
|
4627
|
+
"key": {
|
|
4628
|
+
"type": "string",
|
|
4629
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
4630
|
+
},
|
|
4631
|
+
"from": {
|
|
4632
|
+
"type": "string",
|
|
4633
|
+
"description": "The name as written before."
|
|
4634
|
+
},
|
|
4635
|
+
"to": {
|
|
4636
|
+
"type": "string",
|
|
4637
|
+
"description": "The name written in its place."
|
|
4638
|
+
}
|
|
4639
|
+
},
|
|
4640
|
+
"required": [
|
|
4641
|
+
"key",
|
|
4642
|
+
"from",
|
|
4643
|
+
"to"
|
|
4644
|
+
]
|
|
4645
|
+
},
|
|
4646
|
+
"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."
|
|
4295
4647
|
}
|
|
4296
4648
|
},
|
|
4297
4649
|
"required": [
|
|
@@ -4697,6 +5049,50 @@ var OPERATIONS = [
|
|
|
4697
5049
|
]
|
|
4698
5050
|
},
|
|
4699
5051
|
"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."
|
|
5052
|
+
},
|
|
5053
|
+
"schema_references": {
|
|
5054
|
+
"type": "array",
|
|
5055
|
+
"items": {
|
|
5056
|
+
"title": "SchemaReference",
|
|
5057
|
+
"type": "object",
|
|
5058
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
5059
|
+
"properties": {
|
|
5060
|
+
"table": {
|
|
5061
|
+
"type": "string",
|
|
5062
|
+
"description": "The table whose column names it (full name)."
|
|
5063
|
+
},
|
|
5064
|
+
"base": {
|
|
5065
|
+
"type": "string",
|
|
5066
|
+
"description": "The base whose column names it."
|
|
5067
|
+
},
|
|
5068
|
+
"view": {
|
|
5069
|
+
"type": "string",
|
|
5070
|
+
"description": "The view whose query names it (full name)."
|
|
5071
|
+
},
|
|
5072
|
+
"column": {
|
|
5073
|
+
"type": "string",
|
|
5074
|
+
"description": "The column of the table or base."
|
|
5075
|
+
},
|
|
5076
|
+
"key": {
|
|
5077
|
+
"type": "string",
|
|
5078
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
5079
|
+
},
|
|
5080
|
+
"from": {
|
|
5081
|
+
"type": "string",
|
|
5082
|
+
"description": "The name as written before."
|
|
5083
|
+
},
|
|
5084
|
+
"to": {
|
|
5085
|
+
"type": "string",
|
|
5086
|
+
"description": "The name written in its place."
|
|
5087
|
+
}
|
|
5088
|
+
},
|
|
5089
|
+
"required": [
|
|
5090
|
+
"key",
|
|
5091
|
+
"from",
|
|
5092
|
+
"to"
|
|
5093
|
+
]
|
|
5094
|
+
},
|
|
5095
|
+
"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."
|
|
4700
5096
|
}
|
|
4701
5097
|
},
|
|
4702
5098
|
"required": [
|
|
@@ -4721,7 +5117,7 @@ var OPERATIONS = [
|
|
|
4721
5117
|
},
|
|
4722
5118
|
{
|
|
4723
5119
|
"name": "describe_database",
|
|
4724
|
-
"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.",
|
|
5120
|
+
"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.",
|
|
4725
5121
|
"inputSchema": {
|
|
4726
5122
|
"additionalProperties": false,
|
|
4727
5123
|
"properties": {},
|
|
@@ -5763,10 +6159,54 @@ var OPERATIONS = [
|
|
|
5763
6159
|
]
|
|
5764
6160
|
},
|
|
5765
6161
|
"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."
|
|
5766
|
-
}
|
|
5767
|
-
|
|
5768
|
-
|
|
5769
|
-
|
|
6162
|
+
},
|
|
6163
|
+
"schema_references": {
|
|
6164
|
+
"type": "array",
|
|
6165
|
+
"items": {
|
|
6166
|
+
"title": "SchemaReference",
|
|
6167
|
+
"type": "object",
|
|
6168
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
6169
|
+
"properties": {
|
|
6170
|
+
"table": {
|
|
6171
|
+
"type": "string",
|
|
6172
|
+
"description": "The table whose column names it (full name)."
|
|
6173
|
+
},
|
|
6174
|
+
"base": {
|
|
6175
|
+
"type": "string",
|
|
6176
|
+
"description": "The base whose column names it."
|
|
6177
|
+
},
|
|
6178
|
+
"view": {
|
|
6179
|
+
"type": "string",
|
|
6180
|
+
"description": "The view whose query names it (full name)."
|
|
6181
|
+
},
|
|
6182
|
+
"column": {
|
|
6183
|
+
"type": "string",
|
|
6184
|
+
"description": "The column of the table or base."
|
|
6185
|
+
},
|
|
6186
|
+
"key": {
|
|
6187
|
+
"type": "string",
|
|
6188
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
6189
|
+
},
|
|
6190
|
+
"from": {
|
|
6191
|
+
"type": "string",
|
|
6192
|
+
"description": "The name as written before."
|
|
6193
|
+
},
|
|
6194
|
+
"to": {
|
|
6195
|
+
"type": "string",
|
|
6196
|
+
"description": "The name written in its place."
|
|
6197
|
+
}
|
|
6198
|
+
},
|
|
6199
|
+
"required": [
|
|
6200
|
+
"key",
|
|
6201
|
+
"from",
|
|
6202
|
+
"to"
|
|
6203
|
+
]
|
|
6204
|
+
},
|
|
6205
|
+
"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."
|
|
6206
|
+
}
|
|
6207
|
+
},
|
|
6208
|
+
"required": [
|
|
6209
|
+
"ok",
|
|
5770
6210
|
"op",
|
|
5771
6211
|
"dry_run",
|
|
5772
6212
|
"notes_changed",
|
|
@@ -6173,6 +6613,50 @@ var OPERATIONS = [
|
|
|
6173
6613
|
]
|
|
6174
6614
|
},
|
|
6175
6615
|
"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."
|
|
6616
|
+
},
|
|
6617
|
+
"schema_references": {
|
|
6618
|
+
"type": "array",
|
|
6619
|
+
"items": {
|
|
6620
|
+
"title": "SchemaReference",
|
|
6621
|
+
"type": "object",
|
|
6622
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
6623
|
+
"properties": {
|
|
6624
|
+
"table": {
|
|
6625
|
+
"type": "string",
|
|
6626
|
+
"description": "The table whose column names it (full name)."
|
|
6627
|
+
},
|
|
6628
|
+
"base": {
|
|
6629
|
+
"type": "string",
|
|
6630
|
+
"description": "The base whose column names it."
|
|
6631
|
+
},
|
|
6632
|
+
"view": {
|
|
6633
|
+
"type": "string",
|
|
6634
|
+
"description": "The view whose query names it (full name)."
|
|
6635
|
+
},
|
|
6636
|
+
"column": {
|
|
6637
|
+
"type": "string",
|
|
6638
|
+
"description": "The column of the table or base."
|
|
6639
|
+
},
|
|
6640
|
+
"key": {
|
|
6641
|
+
"type": "string",
|
|
6642
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
6643
|
+
},
|
|
6644
|
+
"from": {
|
|
6645
|
+
"type": "string",
|
|
6646
|
+
"description": "The name as written before."
|
|
6647
|
+
},
|
|
6648
|
+
"to": {
|
|
6649
|
+
"type": "string",
|
|
6650
|
+
"description": "The name written in its place."
|
|
6651
|
+
}
|
|
6652
|
+
},
|
|
6653
|
+
"required": [
|
|
6654
|
+
"key",
|
|
6655
|
+
"from",
|
|
6656
|
+
"to"
|
|
6657
|
+
]
|
|
6658
|
+
},
|
|
6659
|
+
"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."
|
|
6176
6660
|
}
|
|
6177
6661
|
},
|
|
6178
6662
|
"required": [
|
|
@@ -6611,6 +7095,50 @@ var OPERATIONS = [
|
|
|
6611
7095
|
]
|
|
6612
7096
|
},
|
|
6613
7097
|
"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."
|
|
7098
|
+
},
|
|
7099
|
+
"schema_references": {
|
|
7100
|
+
"type": "array",
|
|
7101
|
+
"items": {
|
|
7102
|
+
"title": "SchemaReference",
|
|
7103
|
+
"type": "object",
|
|
7104
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
7105
|
+
"properties": {
|
|
7106
|
+
"table": {
|
|
7107
|
+
"type": "string",
|
|
7108
|
+
"description": "The table whose column names it (full name)."
|
|
7109
|
+
},
|
|
7110
|
+
"base": {
|
|
7111
|
+
"type": "string",
|
|
7112
|
+
"description": "The base whose column names it."
|
|
7113
|
+
},
|
|
7114
|
+
"view": {
|
|
7115
|
+
"type": "string",
|
|
7116
|
+
"description": "The view whose query names it (full name)."
|
|
7117
|
+
},
|
|
7118
|
+
"column": {
|
|
7119
|
+
"type": "string",
|
|
7120
|
+
"description": "The column of the table or base."
|
|
7121
|
+
},
|
|
7122
|
+
"key": {
|
|
7123
|
+
"type": "string",
|
|
7124
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
7125
|
+
},
|
|
7126
|
+
"from": {
|
|
7127
|
+
"type": "string",
|
|
7128
|
+
"description": "The name as written before."
|
|
7129
|
+
},
|
|
7130
|
+
"to": {
|
|
7131
|
+
"type": "string",
|
|
7132
|
+
"description": "The name written in its place."
|
|
7133
|
+
}
|
|
7134
|
+
},
|
|
7135
|
+
"required": [
|
|
7136
|
+
"key",
|
|
7137
|
+
"from",
|
|
7138
|
+
"to"
|
|
7139
|
+
]
|
|
7140
|
+
},
|
|
7141
|
+
"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."
|
|
6614
7142
|
}
|
|
6615
7143
|
},
|
|
6616
7144
|
"required": [
|
|
@@ -7053,6 +7581,50 @@ var OPERATIONS = [
|
|
|
7053
7581
|
]
|
|
7054
7582
|
},
|
|
7055
7583
|
"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."
|
|
7584
|
+
},
|
|
7585
|
+
"schema_references": {
|
|
7586
|
+
"type": "array",
|
|
7587
|
+
"items": {
|
|
7588
|
+
"title": "SchemaReference",
|
|
7589
|
+
"type": "object",
|
|
7590
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
7591
|
+
"properties": {
|
|
7592
|
+
"table": {
|
|
7593
|
+
"type": "string",
|
|
7594
|
+
"description": "The table whose column names it (full name)."
|
|
7595
|
+
},
|
|
7596
|
+
"base": {
|
|
7597
|
+
"type": "string",
|
|
7598
|
+
"description": "The base whose column names it."
|
|
7599
|
+
},
|
|
7600
|
+
"view": {
|
|
7601
|
+
"type": "string",
|
|
7602
|
+
"description": "The view whose query names it (full name)."
|
|
7603
|
+
},
|
|
7604
|
+
"column": {
|
|
7605
|
+
"type": "string",
|
|
7606
|
+
"description": "The column of the table or base."
|
|
7607
|
+
},
|
|
7608
|
+
"key": {
|
|
7609
|
+
"type": "string",
|
|
7610
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
7611
|
+
},
|
|
7612
|
+
"from": {
|
|
7613
|
+
"type": "string",
|
|
7614
|
+
"description": "The name as written before."
|
|
7615
|
+
},
|
|
7616
|
+
"to": {
|
|
7617
|
+
"type": "string",
|
|
7618
|
+
"description": "The name written in its place."
|
|
7619
|
+
}
|
|
7620
|
+
},
|
|
7621
|
+
"required": [
|
|
7622
|
+
"key",
|
|
7623
|
+
"from",
|
|
7624
|
+
"to"
|
|
7625
|
+
]
|
|
7626
|
+
},
|
|
7627
|
+
"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."
|
|
7056
7628
|
}
|
|
7057
7629
|
},
|
|
7058
7630
|
"required": [
|
|
@@ -7570,6 +8142,50 @@ var OPERATIONS = [
|
|
|
7570
8142
|
]
|
|
7571
8143
|
},
|
|
7572
8144
|
"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."
|
|
8145
|
+
},
|
|
8146
|
+
"schema_references": {
|
|
8147
|
+
"type": "array",
|
|
8148
|
+
"items": {
|
|
8149
|
+
"title": "SchemaReference",
|
|
8150
|
+
"type": "object",
|
|
8151
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
8152
|
+
"properties": {
|
|
8153
|
+
"table": {
|
|
8154
|
+
"type": "string",
|
|
8155
|
+
"description": "The table whose column names it (full name)."
|
|
8156
|
+
},
|
|
8157
|
+
"base": {
|
|
8158
|
+
"type": "string",
|
|
8159
|
+
"description": "The base whose column names it."
|
|
8160
|
+
},
|
|
8161
|
+
"view": {
|
|
8162
|
+
"type": "string",
|
|
8163
|
+
"description": "The view whose query names it (full name)."
|
|
8164
|
+
},
|
|
8165
|
+
"column": {
|
|
8166
|
+
"type": "string",
|
|
8167
|
+
"description": "The column of the table or base."
|
|
8168
|
+
},
|
|
8169
|
+
"key": {
|
|
8170
|
+
"type": "string",
|
|
8171
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
8172
|
+
},
|
|
8173
|
+
"from": {
|
|
8174
|
+
"type": "string",
|
|
8175
|
+
"description": "The name as written before."
|
|
8176
|
+
},
|
|
8177
|
+
"to": {
|
|
8178
|
+
"type": "string",
|
|
8179
|
+
"description": "The name written in its place."
|
|
8180
|
+
}
|
|
8181
|
+
},
|
|
8182
|
+
"required": [
|
|
8183
|
+
"key",
|
|
8184
|
+
"from",
|
|
8185
|
+
"to"
|
|
8186
|
+
]
|
|
8187
|
+
},
|
|
8188
|
+
"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."
|
|
7573
8189
|
}
|
|
7574
8190
|
},
|
|
7575
8191
|
"required": [
|
|
@@ -8005,6 +8621,50 @@ var OPERATIONS = [
|
|
|
8005
8621
|
]
|
|
8006
8622
|
},
|
|
8007
8623
|
"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."
|
|
8624
|
+
},
|
|
8625
|
+
"schema_references": {
|
|
8626
|
+
"type": "array",
|
|
8627
|
+
"items": {
|
|
8628
|
+
"title": "SchemaReference",
|
|
8629
|
+
"type": "object",
|
|
8630
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
8631
|
+
"properties": {
|
|
8632
|
+
"table": {
|
|
8633
|
+
"type": "string",
|
|
8634
|
+
"description": "The table whose column names it (full name)."
|
|
8635
|
+
},
|
|
8636
|
+
"base": {
|
|
8637
|
+
"type": "string",
|
|
8638
|
+
"description": "The base whose column names it."
|
|
8639
|
+
},
|
|
8640
|
+
"view": {
|
|
8641
|
+
"type": "string",
|
|
8642
|
+
"description": "The view whose query names it (full name)."
|
|
8643
|
+
},
|
|
8644
|
+
"column": {
|
|
8645
|
+
"type": "string",
|
|
8646
|
+
"description": "The column of the table or base."
|
|
8647
|
+
},
|
|
8648
|
+
"key": {
|
|
8649
|
+
"type": "string",
|
|
8650
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
8651
|
+
},
|
|
8652
|
+
"from": {
|
|
8653
|
+
"type": "string",
|
|
8654
|
+
"description": "The name as written before."
|
|
8655
|
+
},
|
|
8656
|
+
"to": {
|
|
8657
|
+
"type": "string",
|
|
8658
|
+
"description": "The name written in its place."
|
|
8659
|
+
}
|
|
8660
|
+
},
|
|
8661
|
+
"required": [
|
|
8662
|
+
"key",
|
|
8663
|
+
"from",
|
|
8664
|
+
"to"
|
|
8665
|
+
]
|
|
8666
|
+
},
|
|
8667
|
+
"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."
|
|
8008
8668
|
}
|
|
8009
8669
|
},
|
|
8010
8670
|
"required": [
|
|
@@ -8457,6 +9117,50 @@ var OPERATIONS = [
|
|
|
8457
9117
|
]
|
|
8458
9118
|
},
|
|
8459
9119
|
"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."
|
|
9120
|
+
},
|
|
9121
|
+
"schema_references": {
|
|
9122
|
+
"type": "array",
|
|
9123
|
+
"items": {
|
|
9124
|
+
"title": "SchemaReference",
|
|
9125
|
+
"type": "object",
|
|
9126
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
9127
|
+
"properties": {
|
|
9128
|
+
"table": {
|
|
9129
|
+
"type": "string",
|
|
9130
|
+
"description": "The table whose column names it (full name)."
|
|
9131
|
+
},
|
|
9132
|
+
"base": {
|
|
9133
|
+
"type": "string",
|
|
9134
|
+
"description": "The base whose column names it."
|
|
9135
|
+
},
|
|
9136
|
+
"view": {
|
|
9137
|
+
"type": "string",
|
|
9138
|
+
"description": "The view whose query names it (full name)."
|
|
9139
|
+
},
|
|
9140
|
+
"column": {
|
|
9141
|
+
"type": "string",
|
|
9142
|
+
"description": "The column of the table or base."
|
|
9143
|
+
},
|
|
9144
|
+
"key": {
|
|
9145
|
+
"type": "string",
|
|
9146
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
9147
|
+
},
|
|
9148
|
+
"from": {
|
|
9149
|
+
"type": "string",
|
|
9150
|
+
"description": "The name as written before."
|
|
9151
|
+
},
|
|
9152
|
+
"to": {
|
|
9153
|
+
"type": "string",
|
|
9154
|
+
"description": "The name written in its place."
|
|
9155
|
+
}
|
|
9156
|
+
},
|
|
9157
|
+
"required": [
|
|
9158
|
+
"key",
|
|
9159
|
+
"from",
|
|
9160
|
+
"to"
|
|
9161
|
+
]
|
|
9162
|
+
},
|
|
9163
|
+
"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."
|
|
8460
9164
|
}
|
|
8461
9165
|
},
|
|
8462
9166
|
"required": [
|
|
@@ -8921,6 +9625,50 @@ var OPERATIONS = [
|
|
|
8921
9625
|
]
|
|
8922
9626
|
},
|
|
8923
9627
|
"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."
|
|
9628
|
+
},
|
|
9629
|
+
"schema_references": {
|
|
9630
|
+
"type": "array",
|
|
9631
|
+
"items": {
|
|
9632
|
+
"title": "SchemaReference",
|
|
9633
|
+
"type": "object",
|
|
9634
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
9635
|
+
"properties": {
|
|
9636
|
+
"table": {
|
|
9637
|
+
"type": "string",
|
|
9638
|
+
"description": "The table whose column names it (full name)."
|
|
9639
|
+
},
|
|
9640
|
+
"base": {
|
|
9641
|
+
"type": "string",
|
|
9642
|
+
"description": "The base whose column names it."
|
|
9643
|
+
},
|
|
9644
|
+
"view": {
|
|
9645
|
+
"type": "string",
|
|
9646
|
+
"description": "The view whose query names it (full name)."
|
|
9647
|
+
},
|
|
9648
|
+
"column": {
|
|
9649
|
+
"type": "string",
|
|
9650
|
+
"description": "The column of the table or base."
|
|
9651
|
+
},
|
|
9652
|
+
"key": {
|
|
9653
|
+
"type": "string",
|
|
9654
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
9655
|
+
},
|
|
9656
|
+
"from": {
|
|
9657
|
+
"type": "string",
|
|
9658
|
+
"description": "The name as written before."
|
|
9659
|
+
},
|
|
9660
|
+
"to": {
|
|
9661
|
+
"type": "string",
|
|
9662
|
+
"description": "The name written in its place."
|
|
9663
|
+
}
|
|
9664
|
+
},
|
|
9665
|
+
"required": [
|
|
9666
|
+
"key",
|
|
9667
|
+
"from",
|
|
9668
|
+
"to"
|
|
9669
|
+
]
|
|
9670
|
+
},
|
|
9671
|
+
"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."
|
|
8924
9672
|
}
|
|
8925
9673
|
},
|
|
8926
9674
|
"required": [
|
|
@@ -10003,6 +10751,50 @@ var OPERATIONS = [
|
|
|
10003
10751
|
]
|
|
10004
10752
|
},
|
|
10005
10753
|
"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."
|
|
10754
|
+
},
|
|
10755
|
+
"schema_references": {
|
|
10756
|
+
"type": "array",
|
|
10757
|
+
"items": {
|
|
10758
|
+
"title": "SchemaReference",
|
|
10759
|
+
"type": "object",
|
|
10760
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
10761
|
+
"properties": {
|
|
10762
|
+
"table": {
|
|
10763
|
+
"type": "string",
|
|
10764
|
+
"description": "The table whose column names it (full name)."
|
|
10765
|
+
},
|
|
10766
|
+
"base": {
|
|
10767
|
+
"type": "string",
|
|
10768
|
+
"description": "The base whose column names it."
|
|
10769
|
+
},
|
|
10770
|
+
"view": {
|
|
10771
|
+
"type": "string",
|
|
10772
|
+
"description": "The view whose query names it (full name)."
|
|
10773
|
+
},
|
|
10774
|
+
"column": {
|
|
10775
|
+
"type": "string",
|
|
10776
|
+
"description": "The column of the table or base."
|
|
10777
|
+
},
|
|
10778
|
+
"key": {
|
|
10779
|
+
"type": "string",
|
|
10780
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
10781
|
+
},
|
|
10782
|
+
"from": {
|
|
10783
|
+
"type": "string",
|
|
10784
|
+
"description": "The name as written before."
|
|
10785
|
+
},
|
|
10786
|
+
"to": {
|
|
10787
|
+
"type": "string",
|
|
10788
|
+
"description": "The name written in its place."
|
|
10789
|
+
}
|
|
10790
|
+
},
|
|
10791
|
+
"required": [
|
|
10792
|
+
"key",
|
|
10793
|
+
"from",
|
|
10794
|
+
"to"
|
|
10795
|
+
]
|
|
10796
|
+
},
|
|
10797
|
+
"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."
|
|
10006
10798
|
}
|
|
10007
10799
|
},
|
|
10008
10800
|
"required": [
|
|
@@ -10450,6 +11242,50 @@ var OPERATIONS = [
|
|
|
10450
11242
|
]
|
|
10451
11243
|
},
|
|
10452
11244
|
"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."
|
|
11245
|
+
},
|
|
11246
|
+
"schema_references": {
|
|
11247
|
+
"type": "array",
|
|
11248
|
+
"items": {
|
|
11249
|
+
"title": "SchemaReference",
|
|
11250
|
+
"type": "object",
|
|
11251
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
11252
|
+
"properties": {
|
|
11253
|
+
"table": {
|
|
11254
|
+
"type": "string",
|
|
11255
|
+
"description": "The table whose column names it (full name)."
|
|
11256
|
+
},
|
|
11257
|
+
"base": {
|
|
11258
|
+
"type": "string",
|
|
11259
|
+
"description": "The base whose column names it."
|
|
11260
|
+
},
|
|
11261
|
+
"view": {
|
|
11262
|
+
"type": "string",
|
|
11263
|
+
"description": "The view whose query names it (full name)."
|
|
11264
|
+
},
|
|
11265
|
+
"column": {
|
|
11266
|
+
"type": "string",
|
|
11267
|
+
"description": "The column of the table or base."
|
|
11268
|
+
},
|
|
11269
|
+
"key": {
|
|
11270
|
+
"type": "string",
|
|
11271
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
11272
|
+
},
|
|
11273
|
+
"from": {
|
|
11274
|
+
"type": "string",
|
|
11275
|
+
"description": "The name as written before."
|
|
11276
|
+
},
|
|
11277
|
+
"to": {
|
|
11278
|
+
"type": "string",
|
|
11279
|
+
"description": "The name written in its place."
|
|
11280
|
+
}
|
|
11281
|
+
},
|
|
11282
|
+
"required": [
|
|
11283
|
+
"key",
|
|
11284
|
+
"from",
|
|
11285
|
+
"to"
|
|
11286
|
+
]
|
|
11287
|
+
},
|
|
11288
|
+
"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."
|
|
10453
11289
|
}
|
|
10454
11290
|
},
|
|
10455
11291
|
"required": [
|
|
@@ -10738,8 +11574,116 @@ var OPERATIONS = [
|
|
|
10738
11574
|
}
|
|
10739
11575
|
},
|
|
10740
11576
|
{
|
|
10741
|
-
"name": "semantic_search",
|
|
10742
|
-
"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.',
|
|
11577
|
+
"name": "semantic_search",
|
|
11578
|
+
"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.',
|
|
11579
|
+
"inputSchema": {
|
|
11580
|
+
"additionalProperties": false,
|
|
11581
|
+
"properties": {
|
|
11582
|
+
"query": {
|
|
11583
|
+
"type": "string"
|
|
11584
|
+
},
|
|
11585
|
+
"limit": {
|
|
11586
|
+
"default": 10,
|
|
11587
|
+
"type": "integer"
|
|
11588
|
+
},
|
|
11589
|
+
"tables": {
|
|
11590
|
+
"anyOf": [
|
|
11591
|
+
{
|
|
11592
|
+
"items": {
|
|
11593
|
+
"type": "string"
|
|
11594
|
+
},
|
|
11595
|
+
"type": "array"
|
|
11596
|
+
},
|
|
11597
|
+
{
|
|
11598
|
+
"type": "null"
|
|
11599
|
+
}
|
|
11600
|
+
],
|
|
11601
|
+
"default": null
|
|
11602
|
+
},
|
|
11603
|
+
"folder": {
|
|
11604
|
+
"anyOf": [
|
|
11605
|
+
{
|
|
11606
|
+
"type": "string"
|
|
11607
|
+
},
|
|
11608
|
+
{
|
|
11609
|
+
"type": "null"
|
|
11610
|
+
}
|
|
11611
|
+
],
|
|
11612
|
+
"default": null
|
|
11613
|
+
},
|
|
11614
|
+
"min_score": {
|
|
11615
|
+
"anyOf": [
|
|
11616
|
+
{
|
|
11617
|
+
"type": "number"
|
|
11618
|
+
},
|
|
11619
|
+
{
|
|
11620
|
+
"type": "null"
|
|
11621
|
+
}
|
|
11622
|
+
],
|
|
11623
|
+
"default": null
|
|
11624
|
+
}
|
|
11625
|
+
},
|
|
11626
|
+
"required": [
|
|
11627
|
+
"query"
|
|
11628
|
+
],
|
|
11629
|
+
"type": "object"
|
|
11630
|
+
},
|
|
11631
|
+
"annotations": {
|
|
11632
|
+
"title": "Semantic Search",
|
|
11633
|
+
"readOnlyHint": true,
|
|
11634
|
+
"destructiveHint": false,
|
|
11635
|
+
"idempotentHint": true,
|
|
11636
|
+
"openWorldHint": false
|
|
11637
|
+
},
|
|
11638
|
+
"responseSchema": {
|
|
11639
|
+
"type": "object",
|
|
11640
|
+
"properties": {
|
|
11641
|
+
"query": {
|
|
11642
|
+
"type": "string"
|
|
11643
|
+
},
|
|
11644
|
+
"results": {
|
|
11645
|
+
"type": "array",
|
|
11646
|
+
"items": {
|
|
11647
|
+
"type": "object",
|
|
11648
|
+
"properties": {
|
|
11649
|
+
"path": {
|
|
11650
|
+
"type": "string"
|
|
11651
|
+
},
|
|
11652
|
+
"score": {
|
|
11653
|
+
"type": "number",
|
|
11654
|
+
"description": "Similarity, 0..1."
|
|
11655
|
+
},
|
|
11656
|
+
"heading": {
|
|
11657
|
+
"type": "string",
|
|
11658
|
+
"description": "Heading of the best passage."
|
|
11659
|
+
},
|
|
11660
|
+
"snippet": {
|
|
11661
|
+
"type": "string"
|
|
11662
|
+
},
|
|
11663
|
+
"table": {
|
|
11664
|
+
"type": "string",
|
|
11665
|
+
"description": "Qualified table of a row note."
|
|
11666
|
+
}
|
|
11667
|
+
},
|
|
11668
|
+
"required": [
|
|
11669
|
+
"path",
|
|
11670
|
+
"score",
|
|
11671
|
+
"heading",
|
|
11672
|
+
"snippet"
|
|
11673
|
+
]
|
|
11674
|
+
},
|
|
11675
|
+
"description": "One result per note, best first."
|
|
11676
|
+
}
|
|
11677
|
+
},
|
|
11678
|
+
"required": [
|
|
11679
|
+
"query",
|
|
11680
|
+
"results"
|
|
11681
|
+
]
|
|
11682
|
+
}
|
|
11683
|
+
},
|
|
11684
|
+
{
|
|
11685
|
+
"name": "search",
|
|
11686
|
+
"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.",
|
|
10743
11687
|
"inputSchema": {
|
|
10744
11688
|
"additionalProperties": false,
|
|
10745
11689
|
"properties": {
|
|
@@ -10793,7 +11737,7 @@ var OPERATIONS = [
|
|
|
10793
11737
|
"type": "object"
|
|
10794
11738
|
},
|
|
10795
11739
|
"annotations": {
|
|
10796
|
-
"title": "
|
|
11740
|
+
"title": "Search",
|
|
10797
11741
|
"readOnlyHint": true,
|
|
10798
11742
|
"destructiveHint": false,
|
|
10799
11743
|
"idempotentHint": true,
|
|
@@ -10813,35 +11757,62 @@ var OPERATIONS = [
|
|
|
10813
11757
|
"path": {
|
|
10814
11758
|
"type": "string"
|
|
10815
11759
|
},
|
|
11760
|
+
"table": {
|
|
11761
|
+
"type": "string",
|
|
11762
|
+
"description": "Qualified table of a row note."
|
|
11763
|
+
},
|
|
10816
11764
|
"score": {
|
|
10817
11765
|
"type": "number",
|
|
10818
|
-
"description": "
|
|
11766
|
+
"description": "BM25 when ranked by words alone; the Reciprocal Rank Fusion score when fused."
|
|
10819
11767
|
},
|
|
10820
11768
|
"heading": {
|
|
10821
11769
|
"type": "string",
|
|
10822
|
-
"description": "Heading
|
|
11770
|
+
"description": "Heading above the match (empty before the first heading)."
|
|
10823
11771
|
},
|
|
10824
11772
|
"snippet": {
|
|
10825
|
-
"type": "string"
|
|
10826
|
-
},
|
|
10827
|
-
"table": {
|
|
10828
11773
|
"type": "string",
|
|
10829
|
-
"description": "
|
|
11774
|
+
"description": "About 200 characters around the first match, or the best passage by meaning."
|
|
11775
|
+
},
|
|
11776
|
+
"matched_by": {
|
|
11777
|
+
"type": "array",
|
|
11778
|
+
"items": {
|
|
11779
|
+
"type": "string",
|
|
11780
|
+
"enum": [
|
|
11781
|
+
"words",
|
|
11782
|
+
"meaning"
|
|
11783
|
+
]
|
|
11784
|
+
},
|
|
11785
|
+
"description": "The rankings the note is in."
|
|
10830
11786
|
}
|
|
10831
11787
|
},
|
|
10832
11788
|
"required": [
|
|
10833
11789
|
"path",
|
|
10834
11790
|
"score",
|
|
10835
11791
|
"heading",
|
|
10836
|
-
"snippet"
|
|
11792
|
+
"snippet",
|
|
11793
|
+
"matched_by"
|
|
10837
11794
|
]
|
|
10838
11795
|
},
|
|
10839
11796
|
"description": "One result per note, best first."
|
|
11797
|
+
},
|
|
11798
|
+
"meaning": {
|
|
11799
|
+
"type": "string",
|
|
11800
|
+
"enum": [
|
|
11801
|
+
"on",
|
|
11802
|
+
"off",
|
|
11803
|
+
"failed"
|
|
11804
|
+
],
|
|
11805
|
+
"description": "on: words and meaning fused; off: semantic search is off, words only; failed: the embedding provider failed, words only."
|
|
11806
|
+
},
|
|
11807
|
+
"meaning_error": {
|
|
11808
|
+
"type": "string",
|
|
11809
|
+
"description": "Why the meaning ranking failed (with meaning: failed)."
|
|
10840
11810
|
}
|
|
10841
11811
|
},
|
|
10842
11812
|
"required": [
|
|
10843
11813
|
"query",
|
|
10844
|
-
"results"
|
|
11814
|
+
"results",
|
|
11815
|
+
"meaning"
|
|
10845
11816
|
]
|
|
10846
11817
|
}
|
|
10847
11818
|
},
|
|
@@ -11537,6 +12508,50 @@ var OPERATIONS = [
|
|
|
11537
12508
|
]
|
|
11538
12509
|
},
|
|
11539
12510
|
"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."
|
|
12511
|
+
},
|
|
12512
|
+
"schema_references": {
|
|
12513
|
+
"type": "array",
|
|
12514
|
+
"items": {
|
|
12515
|
+
"title": "SchemaReference",
|
|
12516
|
+
"type": "object",
|
|
12517
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
12518
|
+
"properties": {
|
|
12519
|
+
"table": {
|
|
12520
|
+
"type": "string",
|
|
12521
|
+
"description": "The table whose column names it (full name)."
|
|
12522
|
+
},
|
|
12523
|
+
"base": {
|
|
12524
|
+
"type": "string",
|
|
12525
|
+
"description": "The base whose column names it."
|
|
12526
|
+
},
|
|
12527
|
+
"view": {
|
|
12528
|
+
"type": "string",
|
|
12529
|
+
"description": "The view whose query names it (full name)."
|
|
12530
|
+
},
|
|
12531
|
+
"column": {
|
|
12532
|
+
"type": "string",
|
|
12533
|
+
"description": "The column of the table or base."
|
|
12534
|
+
},
|
|
12535
|
+
"key": {
|
|
12536
|
+
"type": "string",
|
|
12537
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
12538
|
+
},
|
|
12539
|
+
"from": {
|
|
12540
|
+
"type": "string",
|
|
12541
|
+
"description": "The name as written before."
|
|
12542
|
+
},
|
|
12543
|
+
"to": {
|
|
12544
|
+
"type": "string",
|
|
12545
|
+
"description": "The name written in its place."
|
|
12546
|
+
}
|
|
12547
|
+
},
|
|
12548
|
+
"required": [
|
|
12549
|
+
"key",
|
|
12550
|
+
"from",
|
|
12551
|
+
"to"
|
|
12552
|
+
]
|
|
12553
|
+
},
|
|
12554
|
+
"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."
|
|
11540
12555
|
}
|
|
11541
12556
|
},
|
|
11542
12557
|
"required": [
|
|
@@ -12978,6 +13993,50 @@ var OPERATIONS = [
|
|
|
12978
13993
|
]
|
|
12979
13994
|
},
|
|
12980
13995
|
"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."
|
|
13996
|
+
},
|
|
13997
|
+
"schema_references": {
|
|
13998
|
+
"type": "array",
|
|
13999
|
+
"items": {
|
|
14000
|
+
"title": "SchemaReference",
|
|
14001
|
+
"type": "object",
|
|
14002
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
14003
|
+
"properties": {
|
|
14004
|
+
"table": {
|
|
14005
|
+
"type": "string",
|
|
14006
|
+
"description": "The table whose column names it (full name)."
|
|
14007
|
+
},
|
|
14008
|
+
"base": {
|
|
14009
|
+
"type": "string",
|
|
14010
|
+
"description": "The base whose column names it."
|
|
14011
|
+
},
|
|
14012
|
+
"view": {
|
|
14013
|
+
"type": "string",
|
|
14014
|
+
"description": "The view whose query names it (full name)."
|
|
14015
|
+
},
|
|
14016
|
+
"column": {
|
|
14017
|
+
"type": "string",
|
|
14018
|
+
"description": "The column of the table or base."
|
|
14019
|
+
},
|
|
14020
|
+
"key": {
|
|
14021
|
+
"type": "string",
|
|
14022
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
14023
|
+
},
|
|
14024
|
+
"from": {
|
|
14025
|
+
"type": "string",
|
|
14026
|
+
"description": "The name as written before."
|
|
14027
|
+
},
|
|
14028
|
+
"to": {
|
|
14029
|
+
"type": "string",
|
|
14030
|
+
"description": "The name written in its place."
|
|
14031
|
+
}
|
|
14032
|
+
},
|
|
14033
|
+
"required": [
|
|
14034
|
+
"key",
|
|
14035
|
+
"from",
|
|
14036
|
+
"to"
|
|
14037
|
+
]
|
|
14038
|
+
},
|
|
14039
|
+
"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."
|
|
12981
14040
|
}
|
|
12982
14041
|
},
|
|
12983
14042
|
"required": [
|
|
@@ -13998,6 +15057,50 @@ var OPERATIONS = [
|
|
|
13998
15057
|
]
|
|
13999
15058
|
},
|
|
14000
15059
|
"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."
|
|
15060
|
+
},
|
|
15061
|
+
"schema_references": {
|
|
15062
|
+
"type": "array",
|
|
15063
|
+
"items": {
|
|
15064
|
+
"title": "SchemaReference",
|
|
15065
|
+
"type": "object",
|
|
15066
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
15067
|
+
"properties": {
|
|
15068
|
+
"table": {
|
|
15069
|
+
"type": "string",
|
|
15070
|
+
"description": "The table whose column names it (full name)."
|
|
15071
|
+
},
|
|
15072
|
+
"base": {
|
|
15073
|
+
"type": "string",
|
|
15074
|
+
"description": "The base whose column names it."
|
|
15075
|
+
},
|
|
15076
|
+
"view": {
|
|
15077
|
+
"type": "string",
|
|
15078
|
+
"description": "The view whose query names it (full name)."
|
|
15079
|
+
},
|
|
15080
|
+
"column": {
|
|
15081
|
+
"type": "string",
|
|
15082
|
+
"description": "The column of the table or base."
|
|
15083
|
+
},
|
|
15084
|
+
"key": {
|
|
15085
|
+
"type": "string",
|
|
15086
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
15087
|
+
},
|
|
15088
|
+
"from": {
|
|
15089
|
+
"type": "string",
|
|
15090
|
+
"description": "The name as written before."
|
|
15091
|
+
},
|
|
15092
|
+
"to": {
|
|
15093
|
+
"type": "string",
|
|
15094
|
+
"description": "The name written in its place."
|
|
15095
|
+
}
|
|
15096
|
+
},
|
|
15097
|
+
"required": [
|
|
15098
|
+
"key",
|
|
15099
|
+
"from",
|
|
15100
|
+
"to"
|
|
15101
|
+
]
|
|
15102
|
+
},
|
|
15103
|
+
"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."
|
|
14001
15104
|
}
|
|
14002
15105
|
},
|
|
14003
15106
|
"required": [
|
|
@@ -14400,6 +15503,50 @@ var OPERATIONS = [
|
|
|
14400
15503
|
]
|
|
14401
15504
|
},
|
|
14402
15505
|
"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."
|
|
15506
|
+
},
|
|
15507
|
+
"schema_references": {
|
|
15508
|
+
"type": "array",
|
|
15509
|
+
"items": {
|
|
15510
|
+
"title": "SchemaReference",
|
|
15511
|
+
"type": "object",
|
|
15512
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
15513
|
+
"properties": {
|
|
15514
|
+
"table": {
|
|
15515
|
+
"type": "string",
|
|
15516
|
+
"description": "The table whose column names it (full name)."
|
|
15517
|
+
},
|
|
15518
|
+
"base": {
|
|
15519
|
+
"type": "string",
|
|
15520
|
+
"description": "The base whose column names it."
|
|
15521
|
+
},
|
|
15522
|
+
"view": {
|
|
15523
|
+
"type": "string",
|
|
15524
|
+
"description": "The view whose query names it (full name)."
|
|
15525
|
+
},
|
|
15526
|
+
"column": {
|
|
15527
|
+
"type": "string",
|
|
15528
|
+
"description": "The column of the table or base."
|
|
15529
|
+
},
|
|
15530
|
+
"key": {
|
|
15531
|
+
"type": "string",
|
|
15532
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
15533
|
+
},
|
|
15534
|
+
"from": {
|
|
15535
|
+
"type": "string",
|
|
15536
|
+
"description": "The name as written before."
|
|
15537
|
+
},
|
|
15538
|
+
"to": {
|
|
15539
|
+
"type": "string",
|
|
15540
|
+
"description": "The name written in its place."
|
|
15541
|
+
}
|
|
15542
|
+
},
|
|
15543
|
+
"required": [
|
|
15544
|
+
"key",
|
|
15545
|
+
"from",
|
|
15546
|
+
"to"
|
|
15547
|
+
]
|
|
15548
|
+
},
|
|
15549
|
+
"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."
|
|
14403
15550
|
}
|
|
14404
15551
|
},
|
|
14405
15552
|
"required": [
|
|
@@ -14869,6 +16016,50 @@ var OPERATIONS = [
|
|
|
14869
16016
|
]
|
|
14870
16017
|
},
|
|
14871
16018
|
"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."
|
|
16019
|
+
},
|
|
16020
|
+
"schema_references": {
|
|
16021
|
+
"type": "array",
|
|
16022
|
+
"items": {
|
|
16023
|
+
"title": "SchemaReference",
|
|
16024
|
+
"type": "object",
|
|
16025
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
16026
|
+
"properties": {
|
|
16027
|
+
"table": {
|
|
16028
|
+
"type": "string",
|
|
16029
|
+
"description": "The table whose column names it (full name)."
|
|
16030
|
+
},
|
|
16031
|
+
"base": {
|
|
16032
|
+
"type": "string",
|
|
16033
|
+
"description": "The base whose column names it."
|
|
16034
|
+
},
|
|
16035
|
+
"view": {
|
|
16036
|
+
"type": "string",
|
|
16037
|
+
"description": "The view whose query names it (full name)."
|
|
16038
|
+
},
|
|
16039
|
+
"column": {
|
|
16040
|
+
"type": "string",
|
|
16041
|
+
"description": "The column of the table or base."
|
|
16042
|
+
},
|
|
16043
|
+
"key": {
|
|
16044
|
+
"type": "string",
|
|
16045
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
16046
|
+
},
|
|
16047
|
+
"from": {
|
|
16048
|
+
"type": "string",
|
|
16049
|
+
"description": "The name as written before."
|
|
16050
|
+
},
|
|
16051
|
+
"to": {
|
|
16052
|
+
"type": "string",
|
|
16053
|
+
"description": "The name written in its place."
|
|
16054
|
+
}
|
|
16055
|
+
},
|
|
16056
|
+
"required": [
|
|
16057
|
+
"key",
|
|
16058
|
+
"from",
|
|
16059
|
+
"to"
|
|
16060
|
+
]
|
|
16061
|
+
},
|
|
16062
|
+
"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."
|
|
14872
16063
|
}
|
|
14873
16064
|
},
|
|
14874
16065
|
"required": [
|
|
@@ -15267,6 +16458,50 @@ var OPERATIONS = [
|
|
|
15267
16458
|
]
|
|
15268
16459
|
},
|
|
15269
16460
|
"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."
|
|
16461
|
+
},
|
|
16462
|
+
"schema_references": {
|
|
16463
|
+
"type": "array",
|
|
16464
|
+
"items": {
|
|
16465
|
+
"title": "SchemaReference",
|
|
16466
|
+
"type": "object",
|
|
16467
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
16468
|
+
"properties": {
|
|
16469
|
+
"table": {
|
|
16470
|
+
"type": "string",
|
|
16471
|
+
"description": "The table whose column names it (full name)."
|
|
16472
|
+
},
|
|
16473
|
+
"base": {
|
|
16474
|
+
"type": "string",
|
|
16475
|
+
"description": "The base whose column names it."
|
|
16476
|
+
},
|
|
16477
|
+
"view": {
|
|
16478
|
+
"type": "string",
|
|
16479
|
+
"description": "The view whose query names it (full name)."
|
|
16480
|
+
},
|
|
16481
|
+
"column": {
|
|
16482
|
+
"type": "string",
|
|
16483
|
+
"description": "The column of the table or base."
|
|
16484
|
+
},
|
|
16485
|
+
"key": {
|
|
16486
|
+
"type": "string",
|
|
16487
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
16488
|
+
},
|
|
16489
|
+
"from": {
|
|
16490
|
+
"type": "string",
|
|
16491
|
+
"description": "The name as written before."
|
|
16492
|
+
},
|
|
16493
|
+
"to": {
|
|
16494
|
+
"type": "string",
|
|
16495
|
+
"description": "The name written in its place."
|
|
16496
|
+
}
|
|
16497
|
+
},
|
|
16498
|
+
"required": [
|
|
16499
|
+
"key",
|
|
16500
|
+
"from",
|
|
16501
|
+
"to"
|
|
16502
|
+
]
|
|
16503
|
+
},
|
|
16504
|
+
"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."
|
|
15270
16505
|
}
|
|
15271
16506
|
},
|
|
15272
16507
|
"required": [
|
|
@@ -15696,6 +16931,50 @@ var OPERATIONS = [
|
|
|
15696
16931
|
]
|
|
15697
16932
|
},
|
|
15698
16933
|
"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."
|
|
16934
|
+
},
|
|
16935
|
+
"schema_references": {
|
|
16936
|
+
"type": "array",
|
|
16937
|
+
"items": {
|
|
16938
|
+
"title": "SchemaReference",
|
|
16939
|
+
"type": "object",
|
|
16940
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
16941
|
+
"properties": {
|
|
16942
|
+
"table": {
|
|
16943
|
+
"type": "string",
|
|
16944
|
+
"description": "The table whose column names it (full name)."
|
|
16945
|
+
},
|
|
16946
|
+
"base": {
|
|
16947
|
+
"type": "string",
|
|
16948
|
+
"description": "The base whose column names it."
|
|
16949
|
+
},
|
|
16950
|
+
"view": {
|
|
16951
|
+
"type": "string",
|
|
16952
|
+
"description": "The view whose query names it (full name)."
|
|
16953
|
+
},
|
|
16954
|
+
"column": {
|
|
16955
|
+
"type": "string",
|
|
16956
|
+
"description": "The column of the table or base."
|
|
16957
|
+
},
|
|
16958
|
+
"key": {
|
|
16959
|
+
"type": "string",
|
|
16960
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
16961
|
+
},
|
|
16962
|
+
"from": {
|
|
16963
|
+
"type": "string",
|
|
16964
|
+
"description": "The name as written before."
|
|
16965
|
+
},
|
|
16966
|
+
"to": {
|
|
16967
|
+
"type": "string",
|
|
16968
|
+
"description": "The name written in its place."
|
|
16969
|
+
}
|
|
16970
|
+
},
|
|
16971
|
+
"required": [
|
|
16972
|
+
"key",
|
|
16973
|
+
"from",
|
|
16974
|
+
"to"
|
|
16975
|
+
]
|
|
16976
|
+
},
|
|
16977
|
+
"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."
|
|
15699
16978
|
}
|
|
15700
16979
|
},
|
|
15701
16980
|
"required": [
|
|
@@ -16112,6 +17391,50 @@ var OPERATIONS = [
|
|
|
16112
17391
|
]
|
|
16113
17392
|
},
|
|
16114
17393
|
"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."
|
|
17394
|
+
},
|
|
17395
|
+
"schema_references": {
|
|
17396
|
+
"type": "array",
|
|
17397
|
+
"items": {
|
|
17398
|
+
"title": "SchemaReference",
|
|
17399
|
+
"type": "object",
|
|
17400
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
17401
|
+
"properties": {
|
|
17402
|
+
"table": {
|
|
17403
|
+
"type": "string",
|
|
17404
|
+
"description": "The table whose column names it (full name)."
|
|
17405
|
+
},
|
|
17406
|
+
"base": {
|
|
17407
|
+
"type": "string",
|
|
17408
|
+
"description": "The base whose column names it."
|
|
17409
|
+
},
|
|
17410
|
+
"view": {
|
|
17411
|
+
"type": "string",
|
|
17412
|
+
"description": "The view whose query names it (full name)."
|
|
17413
|
+
},
|
|
17414
|
+
"column": {
|
|
17415
|
+
"type": "string",
|
|
17416
|
+
"description": "The column of the table or base."
|
|
17417
|
+
},
|
|
17418
|
+
"key": {
|
|
17419
|
+
"type": "string",
|
|
17420
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
17421
|
+
},
|
|
17422
|
+
"from": {
|
|
17423
|
+
"type": "string",
|
|
17424
|
+
"description": "The name as written before."
|
|
17425
|
+
},
|
|
17426
|
+
"to": {
|
|
17427
|
+
"type": "string",
|
|
17428
|
+
"description": "The name written in its place."
|
|
17429
|
+
}
|
|
17430
|
+
},
|
|
17431
|
+
"required": [
|
|
17432
|
+
"key",
|
|
17433
|
+
"from",
|
|
17434
|
+
"to"
|
|
17435
|
+
]
|
|
17436
|
+
},
|
|
17437
|
+
"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."
|
|
16115
17438
|
}
|
|
16116
17439
|
},
|
|
16117
17440
|
"required": [
|
|
@@ -16618,6 +17941,7 @@ var OPERATION_KIND = {
|
|
|
16618
17941
|
list_folder: "queries",
|
|
16619
17942
|
search_notes: "queries",
|
|
16620
17943
|
semantic_search: "queries",
|
|
17944
|
+
search: "queries",
|
|
16621
17945
|
graph_neighbors: "queries",
|
|
16622
17946
|
graph_traverse: "queries",
|
|
16623
17947
|
graph_path: "queries",
|