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.cjs
CHANGED
|
@@ -299,7 +299,7 @@ var OPERATIONS = [
|
|
|
299
299
|
},
|
|
300
300
|
{
|
|
301
301
|
"name": "list_tables",
|
|
302
|
-
"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.",
|
|
302
|
+
"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.",
|
|
303
303
|
"inputSchema": {
|
|
304
304
|
"additionalProperties": false,
|
|
305
305
|
"properties": {},
|
|
@@ -564,7 +564,7 @@ var OPERATIONS = [
|
|
|
564
564
|
},
|
|
565
565
|
"generated": {
|
|
566
566
|
"type": "string",
|
|
567
|
-
"description":
|
|
567
|
+
"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)`.'
|
|
568
568
|
},
|
|
569
569
|
"dense": {
|
|
570
570
|
"type": "boolean",
|
|
@@ -685,7 +685,7 @@ var OPERATIONS = [
|
|
|
685
685
|
},
|
|
686
686
|
{
|
|
687
687
|
"name": "create_table",
|
|
688
|
-
"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).',
|
|
688
|
+
"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).',
|
|
689
689
|
"inputSchema": {
|
|
690
690
|
"additionalProperties": false,
|
|
691
691
|
"properties": {
|
|
@@ -1254,6 +1254,50 @@ var OPERATIONS = [
|
|
|
1254
1254
|
]
|
|
1255
1255
|
},
|
|
1256
1256
|
"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."
|
|
1257
|
+
},
|
|
1258
|
+
"schema_references": {
|
|
1259
|
+
"type": "array",
|
|
1260
|
+
"items": {
|
|
1261
|
+
"title": "SchemaReference",
|
|
1262
|
+
"type": "object",
|
|
1263
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
1264
|
+
"properties": {
|
|
1265
|
+
"table": {
|
|
1266
|
+
"type": "string",
|
|
1267
|
+
"description": "The table whose column names it (full name)."
|
|
1268
|
+
},
|
|
1269
|
+
"base": {
|
|
1270
|
+
"type": "string",
|
|
1271
|
+
"description": "The base whose column names it."
|
|
1272
|
+
},
|
|
1273
|
+
"view": {
|
|
1274
|
+
"type": "string",
|
|
1275
|
+
"description": "The view whose query names it (full name)."
|
|
1276
|
+
},
|
|
1277
|
+
"column": {
|
|
1278
|
+
"type": "string",
|
|
1279
|
+
"description": "The column of the table or base."
|
|
1280
|
+
},
|
|
1281
|
+
"key": {
|
|
1282
|
+
"type": "string",
|
|
1283
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
1284
|
+
},
|
|
1285
|
+
"from": {
|
|
1286
|
+
"type": "string",
|
|
1287
|
+
"description": "The name as written before."
|
|
1288
|
+
},
|
|
1289
|
+
"to": {
|
|
1290
|
+
"type": "string",
|
|
1291
|
+
"description": "The name written in its place."
|
|
1292
|
+
}
|
|
1293
|
+
},
|
|
1294
|
+
"required": [
|
|
1295
|
+
"key",
|
|
1296
|
+
"from",
|
|
1297
|
+
"to"
|
|
1298
|
+
]
|
|
1299
|
+
},
|
|
1300
|
+
"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."
|
|
1257
1301
|
}
|
|
1258
1302
|
},
|
|
1259
1303
|
"required": [
|
|
@@ -1667,6 +1711,50 @@ var OPERATIONS = [
|
|
|
1667
1711
|
]
|
|
1668
1712
|
},
|
|
1669
1713
|
"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."
|
|
1714
|
+
},
|
|
1715
|
+
"schema_references": {
|
|
1716
|
+
"type": "array",
|
|
1717
|
+
"items": {
|
|
1718
|
+
"title": "SchemaReference",
|
|
1719
|
+
"type": "object",
|
|
1720
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
1721
|
+
"properties": {
|
|
1722
|
+
"table": {
|
|
1723
|
+
"type": "string",
|
|
1724
|
+
"description": "The table whose column names it (full name)."
|
|
1725
|
+
},
|
|
1726
|
+
"base": {
|
|
1727
|
+
"type": "string",
|
|
1728
|
+
"description": "The base whose column names it."
|
|
1729
|
+
},
|
|
1730
|
+
"view": {
|
|
1731
|
+
"type": "string",
|
|
1732
|
+
"description": "The view whose query names it (full name)."
|
|
1733
|
+
},
|
|
1734
|
+
"column": {
|
|
1735
|
+
"type": "string",
|
|
1736
|
+
"description": "The column of the table or base."
|
|
1737
|
+
},
|
|
1738
|
+
"key": {
|
|
1739
|
+
"type": "string",
|
|
1740
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
1741
|
+
},
|
|
1742
|
+
"from": {
|
|
1743
|
+
"type": "string",
|
|
1744
|
+
"description": "The name as written before."
|
|
1745
|
+
},
|
|
1746
|
+
"to": {
|
|
1747
|
+
"type": "string",
|
|
1748
|
+
"description": "The name written in its place."
|
|
1749
|
+
}
|
|
1750
|
+
},
|
|
1751
|
+
"required": [
|
|
1752
|
+
"key",
|
|
1753
|
+
"from",
|
|
1754
|
+
"to"
|
|
1755
|
+
]
|
|
1756
|
+
},
|
|
1757
|
+
"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."
|
|
1670
1758
|
}
|
|
1671
1759
|
},
|
|
1672
1760
|
"required": [
|
|
@@ -1691,7 +1779,7 @@ var OPERATIONS = [
|
|
|
1691
1779
|
},
|
|
1692
1780
|
{
|
|
1693
1781
|
"name": "add_column",
|
|
1694
|
-
"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).',
|
|
1782
|
+
"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).',
|
|
1695
1783
|
"inputSchema": {
|
|
1696
1784
|
"additionalProperties": false,
|
|
1697
1785
|
"properties": {
|
|
@@ -2071,6 +2159,50 @@ var OPERATIONS = [
|
|
|
2071
2159
|
]
|
|
2072
2160
|
},
|
|
2073
2161
|
"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."
|
|
2162
|
+
},
|
|
2163
|
+
"schema_references": {
|
|
2164
|
+
"type": "array",
|
|
2165
|
+
"items": {
|
|
2166
|
+
"title": "SchemaReference",
|
|
2167
|
+
"type": "object",
|
|
2168
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
2169
|
+
"properties": {
|
|
2170
|
+
"table": {
|
|
2171
|
+
"type": "string",
|
|
2172
|
+
"description": "The table whose column names it (full name)."
|
|
2173
|
+
},
|
|
2174
|
+
"base": {
|
|
2175
|
+
"type": "string",
|
|
2176
|
+
"description": "The base whose column names it."
|
|
2177
|
+
},
|
|
2178
|
+
"view": {
|
|
2179
|
+
"type": "string",
|
|
2180
|
+
"description": "The view whose query names it (full name)."
|
|
2181
|
+
},
|
|
2182
|
+
"column": {
|
|
2183
|
+
"type": "string",
|
|
2184
|
+
"description": "The column of the table or base."
|
|
2185
|
+
},
|
|
2186
|
+
"key": {
|
|
2187
|
+
"type": "string",
|
|
2188
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
2189
|
+
},
|
|
2190
|
+
"from": {
|
|
2191
|
+
"type": "string",
|
|
2192
|
+
"description": "The name as written before."
|
|
2193
|
+
},
|
|
2194
|
+
"to": {
|
|
2195
|
+
"type": "string",
|
|
2196
|
+
"description": "The name written in its place."
|
|
2197
|
+
}
|
|
2198
|
+
},
|
|
2199
|
+
"required": [
|
|
2200
|
+
"key",
|
|
2201
|
+
"from",
|
|
2202
|
+
"to"
|
|
2203
|
+
]
|
|
2204
|
+
},
|
|
2205
|
+
"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."
|
|
2074
2206
|
}
|
|
2075
2207
|
},
|
|
2076
2208
|
"required": [
|
|
@@ -2477,6 +2609,50 @@ var OPERATIONS = [
|
|
|
2477
2609
|
]
|
|
2478
2610
|
},
|
|
2479
2611
|
"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."
|
|
2612
|
+
},
|
|
2613
|
+
"schema_references": {
|
|
2614
|
+
"type": "array",
|
|
2615
|
+
"items": {
|
|
2616
|
+
"title": "SchemaReference",
|
|
2617
|
+
"type": "object",
|
|
2618
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
2619
|
+
"properties": {
|
|
2620
|
+
"table": {
|
|
2621
|
+
"type": "string",
|
|
2622
|
+
"description": "The table whose column names it (full name)."
|
|
2623
|
+
},
|
|
2624
|
+
"base": {
|
|
2625
|
+
"type": "string",
|
|
2626
|
+
"description": "The base whose column names it."
|
|
2627
|
+
},
|
|
2628
|
+
"view": {
|
|
2629
|
+
"type": "string",
|
|
2630
|
+
"description": "The view whose query names it (full name)."
|
|
2631
|
+
},
|
|
2632
|
+
"column": {
|
|
2633
|
+
"type": "string",
|
|
2634
|
+
"description": "The column of the table or base."
|
|
2635
|
+
},
|
|
2636
|
+
"key": {
|
|
2637
|
+
"type": "string",
|
|
2638
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
2639
|
+
},
|
|
2640
|
+
"from": {
|
|
2641
|
+
"type": "string",
|
|
2642
|
+
"description": "The name as written before."
|
|
2643
|
+
},
|
|
2644
|
+
"to": {
|
|
2645
|
+
"type": "string",
|
|
2646
|
+
"description": "The name written in its place."
|
|
2647
|
+
}
|
|
2648
|
+
},
|
|
2649
|
+
"required": [
|
|
2650
|
+
"key",
|
|
2651
|
+
"from",
|
|
2652
|
+
"to"
|
|
2653
|
+
]
|
|
2654
|
+
},
|
|
2655
|
+
"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."
|
|
2480
2656
|
}
|
|
2481
2657
|
},
|
|
2482
2658
|
"required": [
|
|
@@ -2880,6 +3056,50 @@ var OPERATIONS = [
|
|
|
2880
3056
|
]
|
|
2881
3057
|
},
|
|
2882
3058
|
"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."
|
|
3059
|
+
},
|
|
3060
|
+
"schema_references": {
|
|
3061
|
+
"type": "array",
|
|
3062
|
+
"items": {
|
|
3063
|
+
"title": "SchemaReference",
|
|
3064
|
+
"type": "object",
|
|
3065
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
3066
|
+
"properties": {
|
|
3067
|
+
"table": {
|
|
3068
|
+
"type": "string",
|
|
3069
|
+
"description": "The table whose column names it (full name)."
|
|
3070
|
+
},
|
|
3071
|
+
"base": {
|
|
3072
|
+
"type": "string",
|
|
3073
|
+
"description": "The base whose column names it."
|
|
3074
|
+
},
|
|
3075
|
+
"view": {
|
|
3076
|
+
"type": "string",
|
|
3077
|
+
"description": "The view whose query names it (full name)."
|
|
3078
|
+
},
|
|
3079
|
+
"column": {
|
|
3080
|
+
"type": "string",
|
|
3081
|
+
"description": "The column of the table or base."
|
|
3082
|
+
},
|
|
3083
|
+
"key": {
|
|
3084
|
+
"type": "string",
|
|
3085
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
3086
|
+
},
|
|
3087
|
+
"from": {
|
|
3088
|
+
"type": "string",
|
|
3089
|
+
"description": "The name as written before."
|
|
3090
|
+
},
|
|
3091
|
+
"to": {
|
|
3092
|
+
"type": "string",
|
|
3093
|
+
"description": "The name written in its place."
|
|
3094
|
+
}
|
|
3095
|
+
},
|
|
3096
|
+
"required": [
|
|
3097
|
+
"key",
|
|
3098
|
+
"from",
|
|
3099
|
+
"to"
|
|
3100
|
+
]
|
|
3101
|
+
},
|
|
3102
|
+
"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."
|
|
2883
3103
|
}
|
|
2884
3104
|
},
|
|
2885
3105
|
"required": [
|
|
@@ -3288,6 +3508,50 @@ var OPERATIONS = [
|
|
|
3288
3508
|
]
|
|
3289
3509
|
},
|
|
3290
3510
|
"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."
|
|
3511
|
+
},
|
|
3512
|
+
"schema_references": {
|
|
3513
|
+
"type": "array",
|
|
3514
|
+
"items": {
|
|
3515
|
+
"title": "SchemaReference",
|
|
3516
|
+
"type": "object",
|
|
3517
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
3518
|
+
"properties": {
|
|
3519
|
+
"table": {
|
|
3520
|
+
"type": "string",
|
|
3521
|
+
"description": "The table whose column names it (full name)."
|
|
3522
|
+
},
|
|
3523
|
+
"base": {
|
|
3524
|
+
"type": "string",
|
|
3525
|
+
"description": "The base whose column names it."
|
|
3526
|
+
},
|
|
3527
|
+
"view": {
|
|
3528
|
+
"type": "string",
|
|
3529
|
+
"description": "The view whose query names it (full name)."
|
|
3530
|
+
},
|
|
3531
|
+
"column": {
|
|
3532
|
+
"type": "string",
|
|
3533
|
+
"description": "The column of the table or base."
|
|
3534
|
+
},
|
|
3535
|
+
"key": {
|
|
3536
|
+
"type": "string",
|
|
3537
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
3538
|
+
},
|
|
3539
|
+
"from": {
|
|
3540
|
+
"type": "string",
|
|
3541
|
+
"description": "The name as written before."
|
|
3542
|
+
},
|
|
3543
|
+
"to": {
|
|
3544
|
+
"type": "string",
|
|
3545
|
+
"description": "The name written in its place."
|
|
3546
|
+
}
|
|
3547
|
+
},
|
|
3548
|
+
"required": [
|
|
3549
|
+
"key",
|
|
3550
|
+
"from",
|
|
3551
|
+
"to"
|
|
3552
|
+
]
|
|
3553
|
+
},
|
|
3554
|
+
"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."
|
|
3291
3555
|
}
|
|
3292
3556
|
},
|
|
3293
3557
|
"required": [
|
|
@@ -3312,7 +3576,7 @@ var OPERATIONS = [
|
|
|
3312
3576
|
},
|
|
3313
3577
|
{
|
|
3314
3578
|
"name": "alter_table",
|
|
3315
|
-
"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
|
|
3579
|
+
"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).',
|
|
3316
3580
|
"inputSchema": {
|
|
3317
3581
|
"additionalProperties": false,
|
|
3318
3582
|
"properties": {
|
|
@@ -3893,6 +4157,50 @@ var OPERATIONS = [
|
|
|
3893
4157
|
]
|
|
3894
4158
|
},
|
|
3895
4159
|
"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."
|
|
4160
|
+
},
|
|
4161
|
+
"schema_references": {
|
|
4162
|
+
"type": "array",
|
|
4163
|
+
"items": {
|
|
4164
|
+
"title": "SchemaReference",
|
|
4165
|
+
"type": "object",
|
|
4166
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
4167
|
+
"properties": {
|
|
4168
|
+
"table": {
|
|
4169
|
+
"type": "string",
|
|
4170
|
+
"description": "The table whose column names it (full name)."
|
|
4171
|
+
},
|
|
4172
|
+
"base": {
|
|
4173
|
+
"type": "string",
|
|
4174
|
+
"description": "The base whose column names it."
|
|
4175
|
+
},
|
|
4176
|
+
"view": {
|
|
4177
|
+
"type": "string",
|
|
4178
|
+
"description": "The view whose query names it (full name)."
|
|
4179
|
+
},
|
|
4180
|
+
"column": {
|
|
4181
|
+
"type": "string",
|
|
4182
|
+
"description": "The column of the table or base."
|
|
4183
|
+
},
|
|
4184
|
+
"key": {
|
|
4185
|
+
"type": "string",
|
|
4186
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
4187
|
+
},
|
|
4188
|
+
"from": {
|
|
4189
|
+
"type": "string",
|
|
4190
|
+
"description": "The name as written before."
|
|
4191
|
+
},
|
|
4192
|
+
"to": {
|
|
4193
|
+
"type": "string",
|
|
4194
|
+
"description": "The name written in its place."
|
|
4195
|
+
}
|
|
4196
|
+
},
|
|
4197
|
+
"required": [
|
|
4198
|
+
"key",
|
|
4199
|
+
"from",
|
|
4200
|
+
"to"
|
|
4201
|
+
]
|
|
4202
|
+
},
|
|
4203
|
+
"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."
|
|
3896
4204
|
}
|
|
3897
4205
|
},
|
|
3898
4206
|
"required": [
|
|
@@ -4353,6 +4661,50 @@ var OPERATIONS = [
|
|
|
4353
4661
|
]
|
|
4354
4662
|
},
|
|
4355
4663
|
"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."
|
|
4664
|
+
},
|
|
4665
|
+
"schema_references": {
|
|
4666
|
+
"type": "array",
|
|
4667
|
+
"items": {
|
|
4668
|
+
"title": "SchemaReference",
|
|
4669
|
+
"type": "object",
|
|
4670
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
4671
|
+
"properties": {
|
|
4672
|
+
"table": {
|
|
4673
|
+
"type": "string",
|
|
4674
|
+
"description": "The table whose column names it (full name)."
|
|
4675
|
+
},
|
|
4676
|
+
"base": {
|
|
4677
|
+
"type": "string",
|
|
4678
|
+
"description": "The base whose column names it."
|
|
4679
|
+
},
|
|
4680
|
+
"view": {
|
|
4681
|
+
"type": "string",
|
|
4682
|
+
"description": "The view whose query names it (full name)."
|
|
4683
|
+
},
|
|
4684
|
+
"column": {
|
|
4685
|
+
"type": "string",
|
|
4686
|
+
"description": "The column of the table or base."
|
|
4687
|
+
},
|
|
4688
|
+
"key": {
|
|
4689
|
+
"type": "string",
|
|
4690
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
4691
|
+
},
|
|
4692
|
+
"from": {
|
|
4693
|
+
"type": "string",
|
|
4694
|
+
"description": "The name as written before."
|
|
4695
|
+
},
|
|
4696
|
+
"to": {
|
|
4697
|
+
"type": "string",
|
|
4698
|
+
"description": "The name written in its place."
|
|
4699
|
+
}
|
|
4700
|
+
},
|
|
4701
|
+
"required": [
|
|
4702
|
+
"key",
|
|
4703
|
+
"from",
|
|
4704
|
+
"to"
|
|
4705
|
+
]
|
|
4706
|
+
},
|
|
4707
|
+
"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."
|
|
4356
4708
|
}
|
|
4357
4709
|
},
|
|
4358
4710
|
"required": [
|
|
@@ -4758,6 +5110,50 @@ var OPERATIONS = [
|
|
|
4758
5110
|
]
|
|
4759
5111
|
},
|
|
4760
5112
|
"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."
|
|
5113
|
+
},
|
|
5114
|
+
"schema_references": {
|
|
5115
|
+
"type": "array",
|
|
5116
|
+
"items": {
|
|
5117
|
+
"title": "SchemaReference",
|
|
5118
|
+
"type": "object",
|
|
5119
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
5120
|
+
"properties": {
|
|
5121
|
+
"table": {
|
|
5122
|
+
"type": "string",
|
|
5123
|
+
"description": "The table whose column names it (full name)."
|
|
5124
|
+
},
|
|
5125
|
+
"base": {
|
|
5126
|
+
"type": "string",
|
|
5127
|
+
"description": "The base whose column names it."
|
|
5128
|
+
},
|
|
5129
|
+
"view": {
|
|
5130
|
+
"type": "string",
|
|
5131
|
+
"description": "The view whose query names it (full name)."
|
|
5132
|
+
},
|
|
5133
|
+
"column": {
|
|
5134
|
+
"type": "string",
|
|
5135
|
+
"description": "The column of the table or base."
|
|
5136
|
+
},
|
|
5137
|
+
"key": {
|
|
5138
|
+
"type": "string",
|
|
5139
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
5140
|
+
},
|
|
5141
|
+
"from": {
|
|
5142
|
+
"type": "string",
|
|
5143
|
+
"description": "The name as written before."
|
|
5144
|
+
},
|
|
5145
|
+
"to": {
|
|
5146
|
+
"type": "string",
|
|
5147
|
+
"description": "The name written in its place."
|
|
5148
|
+
}
|
|
5149
|
+
},
|
|
5150
|
+
"required": [
|
|
5151
|
+
"key",
|
|
5152
|
+
"from",
|
|
5153
|
+
"to"
|
|
5154
|
+
]
|
|
5155
|
+
},
|
|
5156
|
+
"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."
|
|
4761
5157
|
}
|
|
4762
5158
|
},
|
|
4763
5159
|
"required": [
|
|
@@ -4782,7 +5178,7 @@ var OPERATIONS = [
|
|
|
4782
5178
|
},
|
|
4783
5179
|
{
|
|
4784
5180
|
"name": "describe_database",
|
|
4785
|
-
"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.",
|
|
5181
|
+
"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.",
|
|
4786
5182
|
"inputSchema": {
|
|
4787
5183
|
"additionalProperties": false,
|
|
4788
5184
|
"properties": {},
|
|
@@ -5824,10 +6220,54 @@ var OPERATIONS = [
|
|
|
5824
6220
|
]
|
|
5825
6221
|
},
|
|
5826
6222
|
"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."
|
|
5827
|
-
}
|
|
5828
|
-
|
|
5829
|
-
|
|
5830
|
-
|
|
6223
|
+
},
|
|
6224
|
+
"schema_references": {
|
|
6225
|
+
"type": "array",
|
|
6226
|
+
"items": {
|
|
6227
|
+
"title": "SchemaReference",
|
|
6228
|
+
"type": "object",
|
|
6229
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
6230
|
+
"properties": {
|
|
6231
|
+
"table": {
|
|
6232
|
+
"type": "string",
|
|
6233
|
+
"description": "The table whose column names it (full name)."
|
|
6234
|
+
},
|
|
6235
|
+
"base": {
|
|
6236
|
+
"type": "string",
|
|
6237
|
+
"description": "The base whose column names it."
|
|
6238
|
+
},
|
|
6239
|
+
"view": {
|
|
6240
|
+
"type": "string",
|
|
6241
|
+
"description": "The view whose query names it (full name)."
|
|
6242
|
+
},
|
|
6243
|
+
"column": {
|
|
6244
|
+
"type": "string",
|
|
6245
|
+
"description": "The column of the table or base."
|
|
6246
|
+
},
|
|
6247
|
+
"key": {
|
|
6248
|
+
"type": "string",
|
|
6249
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
6250
|
+
},
|
|
6251
|
+
"from": {
|
|
6252
|
+
"type": "string",
|
|
6253
|
+
"description": "The name as written before."
|
|
6254
|
+
},
|
|
6255
|
+
"to": {
|
|
6256
|
+
"type": "string",
|
|
6257
|
+
"description": "The name written in its place."
|
|
6258
|
+
}
|
|
6259
|
+
},
|
|
6260
|
+
"required": [
|
|
6261
|
+
"key",
|
|
6262
|
+
"from",
|
|
6263
|
+
"to"
|
|
6264
|
+
]
|
|
6265
|
+
},
|
|
6266
|
+
"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."
|
|
6267
|
+
}
|
|
6268
|
+
},
|
|
6269
|
+
"required": [
|
|
6270
|
+
"ok",
|
|
5831
6271
|
"op",
|
|
5832
6272
|
"dry_run",
|
|
5833
6273
|
"notes_changed",
|
|
@@ -6234,6 +6674,50 @@ var OPERATIONS = [
|
|
|
6234
6674
|
]
|
|
6235
6675
|
},
|
|
6236
6676
|
"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."
|
|
6677
|
+
},
|
|
6678
|
+
"schema_references": {
|
|
6679
|
+
"type": "array",
|
|
6680
|
+
"items": {
|
|
6681
|
+
"title": "SchemaReference",
|
|
6682
|
+
"type": "object",
|
|
6683
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
6684
|
+
"properties": {
|
|
6685
|
+
"table": {
|
|
6686
|
+
"type": "string",
|
|
6687
|
+
"description": "The table whose column names it (full name)."
|
|
6688
|
+
},
|
|
6689
|
+
"base": {
|
|
6690
|
+
"type": "string",
|
|
6691
|
+
"description": "The base whose column names it."
|
|
6692
|
+
},
|
|
6693
|
+
"view": {
|
|
6694
|
+
"type": "string",
|
|
6695
|
+
"description": "The view whose query names it (full name)."
|
|
6696
|
+
},
|
|
6697
|
+
"column": {
|
|
6698
|
+
"type": "string",
|
|
6699
|
+
"description": "The column of the table or base."
|
|
6700
|
+
},
|
|
6701
|
+
"key": {
|
|
6702
|
+
"type": "string",
|
|
6703
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
6704
|
+
},
|
|
6705
|
+
"from": {
|
|
6706
|
+
"type": "string",
|
|
6707
|
+
"description": "The name as written before."
|
|
6708
|
+
},
|
|
6709
|
+
"to": {
|
|
6710
|
+
"type": "string",
|
|
6711
|
+
"description": "The name written in its place."
|
|
6712
|
+
}
|
|
6713
|
+
},
|
|
6714
|
+
"required": [
|
|
6715
|
+
"key",
|
|
6716
|
+
"from",
|
|
6717
|
+
"to"
|
|
6718
|
+
]
|
|
6719
|
+
},
|
|
6720
|
+
"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."
|
|
6237
6721
|
}
|
|
6238
6722
|
},
|
|
6239
6723
|
"required": [
|
|
@@ -6672,6 +7156,50 @@ var OPERATIONS = [
|
|
|
6672
7156
|
]
|
|
6673
7157
|
},
|
|
6674
7158
|
"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."
|
|
7159
|
+
},
|
|
7160
|
+
"schema_references": {
|
|
7161
|
+
"type": "array",
|
|
7162
|
+
"items": {
|
|
7163
|
+
"title": "SchemaReference",
|
|
7164
|
+
"type": "object",
|
|
7165
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
7166
|
+
"properties": {
|
|
7167
|
+
"table": {
|
|
7168
|
+
"type": "string",
|
|
7169
|
+
"description": "The table whose column names it (full name)."
|
|
7170
|
+
},
|
|
7171
|
+
"base": {
|
|
7172
|
+
"type": "string",
|
|
7173
|
+
"description": "The base whose column names it."
|
|
7174
|
+
},
|
|
7175
|
+
"view": {
|
|
7176
|
+
"type": "string",
|
|
7177
|
+
"description": "The view whose query names it (full name)."
|
|
7178
|
+
},
|
|
7179
|
+
"column": {
|
|
7180
|
+
"type": "string",
|
|
7181
|
+
"description": "The column of the table or base."
|
|
7182
|
+
},
|
|
7183
|
+
"key": {
|
|
7184
|
+
"type": "string",
|
|
7185
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
7186
|
+
},
|
|
7187
|
+
"from": {
|
|
7188
|
+
"type": "string",
|
|
7189
|
+
"description": "The name as written before."
|
|
7190
|
+
},
|
|
7191
|
+
"to": {
|
|
7192
|
+
"type": "string",
|
|
7193
|
+
"description": "The name written in its place."
|
|
7194
|
+
}
|
|
7195
|
+
},
|
|
7196
|
+
"required": [
|
|
7197
|
+
"key",
|
|
7198
|
+
"from",
|
|
7199
|
+
"to"
|
|
7200
|
+
]
|
|
7201
|
+
},
|
|
7202
|
+
"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."
|
|
6675
7203
|
}
|
|
6676
7204
|
},
|
|
6677
7205
|
"required": [
|
|
@@ -7114,6 +7642,50 @@ var OPERATIONS = [
|
|
|
7114
7642
|
]
|
|
7115
7643
|
},
|
|
7116
7644
|
"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."
|
|
7645
|
+
},
|
|
7646
|
+
"schema_references": {
|
|
7647
|
+
"type": "array",
|
|
7648
|
+
"items": {
|
|
7649
|
+
"title": "SchemaReference",
|
|
7650
|
+
"type": "object",
|
|
7651
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
7652
|
+
"properties": {
|
|
7653
|
+
"table": {
|
|
7654
|
+
"type": "string",
|
|
7655
|
+
"description": "The table whose column names it (full name)."
|
|
7656
|
+
},
|
|
7657
|
+
"base": {
|
|
7658
|
+
"type": "string",
|
|
7659
|
+
"description": "The base whose column names it."
|
|
7660
|
+
},
|
|
7661
|
+
"view": {
|
|
7662
|
+
"type": "string",
|
|
7663
|
+
"description": "The view whose query names it (full name)."
|
|
7664
|
+
},
|
|
7665
|
+
"column": {
|
|
7666
|
+
"type": "string",
|
|
7667
|
+
"description": "The column of the table or base."
|
|
7668
|
+
},
|
|
7669
|
+
"key": {
|
|
7670
|
+
"type": "string",
|
|
7671
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
7672
|
+
},
|
|
7673
|
+
"from": {
|
|
7674
|
+
"type": "string",
|
|
7675
|
+
"description": "The name as written before."
|
|
7676
|
+
},
|
|
7677
|
+
"to": {
|
|
7678
|
+
"type": "string",
|
|
7679
|
+
"description": "The name written in its place."
|
|
7680
|
+
}
|
|
7681
|
+
},
|
|
7682
|
+
"required": [
|
|
7683
|
+
"key",
|
|
7684
|
+
"from",
|
|
7685
|
+
"to"
|
|
7686
|
+
]
|
|
7687
|
+
},
|
|
7688
|
+
"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."
|
|
7117
7689
|
}
|
|
7118
7690
|
},
|
|
7119
7691
|
"required": [
|
|
@@ -7631,6 +8203,50 @@ var OPERATIONS = [
|
|
|
7631
8203
|
]
|
|
7632
8204
|
},
|
|
7633
8205
|
"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."
|
|
8206
|
+
},
|
|
8207
|
+
"schema_references": {
|
|
8208
|
+
"type": "array",
|
|
8209
|
+
"items": {
|
|
8210
|
+
"title": "SchemaReference",
|
|
8211
|
+
"type": "object",
|
|
8212
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
8213
|
+
"properties": {
|
|
8214
|
+
"table": {
|
|
8215
|
+
"type": "string",
|
|
8216
|
+
"description": "The table whose column names it (full name)."
|
|
8217
|
+
},
|
|
8218
|
+
"base": {
|
|
8219
|
+
"type": "string",
|
|
8220
|
+
"description": "The base whose column names it."
|
|
8221
|
+
},
|
|
8222
|
+
"view": {
|
|
8223
|
+
"type": "string",
|
|
8224
|
+
"description": "The view whose query names it (full name)."
|
|
8225
|
+
},
|
|
8226
|
+
"column": {
|
|
8227
|
+
"type": "string",
|
|
8228
|
+
"description": "The column of the table or base."
|
|
8229
|
+
},
|
|
8230
|
+
"key": {
|
|
8231
|
+
"type": "string",
|
|
8232
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
8233
|
+
},
|
|
8234
|
+
"from": {
|
|
8235
|
+
"type": "string",
|
|
8236
|
+
"description": "The name as written before."
|
|
8237
|
+
},
|
|
8238
|
+
"to": {
|
|
8239
|
+
"type": "string",
|
|
8240
|
+
"description": "The name written in its place."
|
|
8241
|
+
}
|
|
8242
|
+
},
|
|
8243
|
+
"required": [
|
|
8244
|
+
"key",
|
|
8245
|
+
"from",
|
|
8246
|
+
"to"
|
|
8247
|
+
]
|
|
8248
|
+
},
|
|
8249
|
+
"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."
|
|
7634
8250
|
}
|
|
7635
8251
|
},
|
|
7636
8252
|
"required": [
|
|
@@ -8066,6 +8682,50 @@ var OPERATIONS = [
|
|
|
8066
8682
|
]
|
|
8067
8683
|
},
|
|
8068
8684
|
"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."
|
|
8685
|
+
},
|
|
8686
|
+
"schema_references": {
|
|
8687
|
+
"type": "array",
|
|
8688
|
+
"items": {
|
|
8689
|
+
"title": "SchemaReference",
|
|
8690
|
+
"type": "object",
|
|
8691
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
8692
|
+
"properties": {
|
|
8693
|
+
"table": {
|
|
8694
|
+
"type": "string",
|
|
8695
|
+
"description": "The table whose column names it (full name)."
|
|
8696
|
+
},
|
|
8697
|
+
"base": {
|
|
8698
|
+
"type": "string",
|
|
8699
|
+
"description": "The base whose column names it."
|
|
8700
|
+
},
|
|
8701
|
+
"view": {
|
|
8702
|
+
"type": "string",
|
|
8703
|
+
"description": "The view whose query names it (full name)."
|
|
8704
|
+
},
|
|
8705
|
+
"column": {
|
|
8706
|
+
"type": "string",
|
|
8707
|
+
"description": "The column of the table or base."
|
|
8708
|
+
},
|
|
8709
|
+
"key": {
|
|
8710
|
+
"type": "string",
|
|
8711
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
8712
|
+
},
|
|
8713
|
+
"from": {
|
|
8714
|
+
"type": "string",
|
|
8715
|
+
"description": "The name as written before."
|
|
8716
|
+
},
|
|
8717
|
+
"to": {
|
|
8718
|
+
"type": "string",
|
|
8719
|
+
"description": "The name written in its place."
|
|
8720
|
+
}
|
|
8721
|
+
},
|
|
8722
|
+
"required": [
|
|
8723
|
+
"key",
|
|
8724
|
+
"from",
|
|
8725
|
+
"to"
|
|
8726
|
+
]
|
|
8727
|
+
},
|
|
8728
|
+
"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."
|
|
8069
8729
|
}
|
|
8070
8730
|
},
|
|
8071
8731
|
"required": [
|
|
@@ -8518,6 +9178,50 @@ var OPERATIONS = [
|
|
|
8518
9178
|
]
|
|
8519
9179
|
},
|
|
8520
9180
|
"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."
|
|
9181
|
+
},
|
|
9182
|
+
"schema_references": {
|
|
9183
|
+
"type": "array",
|
|
9184
|
+
"items": {
|
|
9185
|
+
"title": "SchemaReference",
|
|
9186
|
+
"type": "object",
|
|
9187
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
9188
|
+
"properties": {
|
|
9189
|
+
"table": {
|
|
9190
|
+
"type": "string",
|
|
9191
|
+
"description": "The table whose column names it (full name)."
|
|
9192
|
+
},
|
|
9193
|
+
"base": {
|
|
9194
|
+
"type": "string",
|
|
9195
|
+
"description": "The base whose column names it."
|
|
9196
|
+
},
|
|
9197
|
+
"view": {
|
|
9198
|
+
"type": "string",
|
|
9199
|
+
"description": "The view whose query names it (full name)."
|
|
9200
|
+
},
|
|
9201
|
+
"column": {
|
|
9202
|
+
"type": "string",
|
|
9203
|
+
"description": "The column of the table or base."
|
|
9204
|
+
},
|
|
9205
|
+
"key": {
|
|
9206
|
+
"type": "string",
|
|
9207
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
9208
|
+
},
|
|
9209
|
+
"from": {
|
|
9210
|
+
"type": "string",
|
|
9211
|
+
"description": "The name as written before."
|
|
9212
|
+
},
|
|
9213
|
+
"to": {
|
|
9214
|
+
"type": "string",
|
|
9215
|
+
"description": "The name written in its place."
|
|
9216
|
+
}
|
|
9217
|
+
},
|
|
9218
|
+
"required": [
|
|
9219
|
+
"key",
|
|
9220
|
+
"from",
|
|
9221
|
+
"to"
|
|
9222
|
+
]
|
|
9223
|
+
},
|
|
9224
|
+
"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."
|
|
8521
9225
|
}
|
|
8522
9226
|
},
|
|
8523
9227
|
"required": [
|
|
@@ -8982,6 +9686,50 @@ var OPERATIONS = [
|
|
|
8982
9686
|
]
|
|
8983
9687
|
},
|
|
8984
9688
|
"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."
|
|
9689
|
+
},
|
|
9690
|
+
"schema_references": {
|
|
9691
|
+
"type": "array",
|
|
9692
|
+
"items": {
|
|
9693
|
+
"title": "SchemaReference",
|
|
9694
|
+
"type": "object",
|
|
9695
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
9696
|
+
"properties": {
|
|
9697
|
+
"table": {
|
|
9698
|
+
"type": "string",
|
|
9699
|
+
"description": "The table whose column names it (full name)."
|
|
9700
|
+
},
|
|
9701
|
+
"base": {
|
|
9702
|
+
"type": "string",
|
|
9703
|
+
"description": "The base whose column names it."
|
|
9704
|
+
},
|
|
9705
|
+
"view": {
|
|
9706
|
+
"type": "string",
|
|
9707
|
+
"description": "The view whose query names it (full name)."
|
|
9708
|
+
},
|
|
9709
|
+
"column": {
|
|
9710
|
+
"type": "string",
|
|
9711
|
+
"description": "The column of the table or base."
|
|
9712
|
+
},
|
|
9713
|
+
"key": {
|
|
9714
|
+
"type": "string",
|
|
9715
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
9716
|
+
},
|
|
9717
|
+
"from": {
|
|
9718
|
+
"type": "string",
|
|
9719
|
+
"description": "The name as written before."
|
|
9720
|
+
},
|
|
9721
|
+
"to": {
|
|
9722
|
+
"type": "string",
|
|
9723
|
+
"description": "The name written in its place."
|
|
9724
|
+
}
|
|
9725
|
+
},
|
|
9726
|
+
"required": [
|
|
9727
|
+
"key",
|
|
9728
|
+
"from",
|
|
9729
|
+
"to"
|
|
9730
|
+
]
|
|
9731
|
+
},
|
|
9732
|
+
"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."
|
|
8985
9733
|
}
|
|
8986
9734
|
},
|
|
8987
9735
|
"required": [
|
|
@@ -10064,6 +10812,50 @@ var OPERATIONS = [
|
|
|
10064
10812
|
]
|
|
10065
10813
|
},
|
|
10066
10814
|
"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."
|
|
10815
|
+
},
|
|
10816
|
+
"schema_references": {
|
|
10817
|
+
"type": "array",
|
|
10818
|
+
"items": {
|
|
10819
|
+
"title": "SchemaReference",
|
|
10820
|
+
"type": "object",
|
|
10821
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
10822
|
+
"properties": {
|
|
10823
|
+
"table": {
|
|
10824
|
+
"type": "string",
|
|
10825
|
+
"description": "The table whose column names it (full name)."
|
|
10826
|
+
},
|
|
10827
|
+
"base": {
|
|
10828
|
+
"type": "string",
|
|
10829
|
+
"description": "The base whose column names it."
|
|
10830
|
+
},
|
|
10831
|
+
"view": {
|
|
10832
|
+
"type": "string",
|
|
10833
|
+
"description": "The view whose query names it (full name)."
|
|
10834
|
+
},
|
|
10835
|
+
"column": {
|
|
10836
|
+
"type": "string",
|
|
10837
|
+
"description": "The column of the table or base."
|
|
10838
|
+
},
|
|
10839
|
+
"key": {
|
|
10840
|
+
"type": "string",
|
|
10841
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
10842
|
+
},
|
|
10843
|
+
"from": {
|
|
10844
|
+
"type": "string",
|
|
10845
|
+
"description": "The name as written before."
|
|
10846
|
+
},
|
|
10847
|
+
"to": {
|
|
10848
|
+
"type": "string",
|
|
10849
|
+
"description": "The name written in its place."
|
|
10850
|
+
}
|
|
10851
|
+
},
|
|
10852
|
+
"required": [
|
|
10853
|
+
"key",
|
|
10854
|
+
"from",
|
|
10855
|
+
"to"
|
|
10856
|
+
]
|
|
10857
|
+
},
|
|
10858
|
+
"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."
|
|
10067
10859
|
}
|
|
10068
10860
|
},
|
|
10069
10861
|
"required": [
|
|
@@ -10511,6 +11303,50 @@ var OPERATIONS = [
|
|
|
10511
11303
|
]
|
|
10512
11304
|
},
|
|
10513
11305
|
"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."
|
|
11306
|
+
},
|
|
11307
|
+
"schema_references": {
|
|
11308
|
+
"type": "array",
|
|
11309
|
+
"items": {
|
|
11310
|
+
"title": "SchemaReference",
|
|
11311
|
+
"type": "object",
|
|
11312
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
11313
|
+
"properties": {
|
|
11314
|
+
"table": {
|
|
11315
|
+
"type": "string",
|
|
11316
|
+
"description": "The table whose column names it (full name)."
|
|
11317
|
+
},
|
|
11318
|
+
"base": {
|
|
11319
|
+
"type": "string",
|
|
11320
|
+
"description": "The base whose column names it."
|
|
11321
|
+
},
|
|
11322
|
+
"view": {
|
|
11323
|
+
"type": "string",
|
|
11324
|
+
"description": "The view whose query names it (full name)."
|
|
11325
|
+
},
|
|
11326
|
+
"column": {
|
|
11327
|
+
"type": "string",
|
|
11328
|
+
"description": "The column of the table or base."
|
|
11329
|
+
},
|
|
11330
|
+
"key": {
|
|
11331
|
+
"type": "string",
|
|
11332
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
11333
|
+
},
|
|
11334
|
+
"from": {
|
|
11335
|
+
"type": "string",
|
|
11336
|
+
"description": "The name as written before."
|
|
11337
|
+
},
|
|
11338
|
+
"to": {
|
|
11339
|
+
"type": "string",
|
|
11340
|
+
"description": "The name written in its place."
|
|
11341
|
+
}
|
|
11342
|
+
},
|
|
11343
|
+
"required": [
|
|
11344
|
+
"key",
|
|
11345
|
+
"from",
|
|
11346
|
+
"to"
|
|
11347
|
+
]
|
|
11348
|
+
},
|
|
11349
|
+
"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."
|
|
10514
11350
|
}
|
|
10515
11351
|
},
|
|
10516
11352
|
"required": [
|
|
@@ -10799,8 +11635,116 @@ var OPERATIONS = [
|
|
|
10799
11635
|
}
|
|
10800
11636
|
},
|
|
10801
11637
|
{
|
|
10802
|
-
"name": "semantic_search",
|
|
10803
|
-
"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.',
|
|
11638
|
+
"name": "semantic_search",
|
|
11639
|
+
"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.',
|
|
11640
|
+
"inputSchema": {
|
|
11641
|
+
"additionalProperties": false,
|
|
11642
|
+
"properties": {
|
|
11643
|
+
"query": {
|
|
11644
|
+
"type": "string"
|
|
11645
|
+
},
|
|
11646
|
+
"limit": {
|
|
11647
|
+
"default": 10,
|
|
11648
|
+
"type": "integer"
|
|
11649
|
+
},
|
|
11650
|
+
"tables": {
|
|
11651
|
+
"anyOf": [
|
|
11652
|
+
{
|
|
11653
|
+
"items": {
|
|
11654
|
+
"type": "string"
|
|
11655
|
+
},
|
|
11656
|
+
"type": "array"
|
|
11657
|
+
},
|
|
11658
|
+
{
|
|
11659
|
+
"type": "null"
|
|
11660
|
+
}
|
|
11661
|
+
],
|
|
11662
|
+
"default": null
|
|
11663
|
+
},
|
|
11664
|
+
"folder": {
|
|
11665
|
+
"anyOf": [
|
|
11666
|
+
{
|
|
11667
|
+
"type": "string"
|
|
11668
|
+
},
|
|
11669
|
+
{
|
|
11670
|
+
"type": "null"
|
|
11671
|
+
}
|
|
11672
|
+
],
|
|
11673
|
+
"default": null
|
|
11674
|
+
},
|
|
11675
|
+
"min_score": {
|
|
11676
|
+
"anyOf": [
|
|
11677
|
+
{
|
|
11678
|
+
"type": "number"
|
|
11679
|
+
},
|
|
11680
|
+
{
|
|
11681
|
+
"type": "null"
|
|
11682
|
+
}
|
|
11683
|
+
],
|
|
11684
|
+
"default": null
|
|
11685
|
+
}
|
|
11686
|
+
},
|
|
11687
|
+
"required": [
|
|
11688
|
+
"query"
|
|
11689
|
+
],
|
|
11690
|
+
"type": "object"
|
|
11691
|
+
},
|
|
11692
|
+
"annotations": {
|
|
11693
|
+
"title": "Semantic Search",
|
|
11694
|
+
"readOnlyHint": true,
|
|
11695
|
+
"destructiveHint": false,
|
|
11696
|
+
"idempotentHint": true,
|
|
11697
|
+
"openWorldHint": false
|
|
11698
|
+
},
|
|
11699
|
+
"responseSchema": {
|
|
11700
|
+
"type": "object",
|
|
11701
|
+
"properties": {
|
|
11702
|
+
"query": {
|
|
11703
|
+
"type": "string"
|
|
11704
|
+
},
|
|
11705
|
+
"results": {
|
|
11706
|
+
"type": "array",
|
|
11707
|
+
"items": {
|
|
11708
|
+
"type": "object",
|
|
11709
|
+
"properties": {
|
|
11710
|
+
"path": {
|
|
11711
|
+
"type": "string"
|
|
11712
|
+
},
|
|
11713
|
+
"score": {
|
|
11714
|
+
"type": "number",
|
|
11715
|
+
"description": "Similarity, 0..1."
|
|
11716
|
+
},
|
|
11717
|
+
"heading": {
|
|
11718
|
+
"type": "string",
|
|
11719
|
+
"description": "Heading of the best passage."
|
|
11720
|
+
},
|
|
11721
|
+
"snippet": {
|
|
11722
|
+
"type": "string"
|
|
11723
|
+
},
|
|
11724
|
+
"table": {
|
|
11725
|
+
"type": "string",
|
|
11726
|
+
"description": "Qualified table of a row note."
|
|
11727
|
+
}
|
|
11728
|
+
},
|
|
11729
|
+
"required": [
|
|
11730
|
+
"path",
|
|
11731
|
+
"score",
|
|
11732
|
+
"heading",
|
|
11733
|
+
"snippet"
|
|
11734
|
+
]
|
|
11735
|
+
},
|
|
11736
|
+
"description": "One result per note, best first."
|
|
11737
|
+
}
|
|
11738
|
+
},
|
|
11739
|
+
"required": [
|
|
11740
|
+
"query",
|
|
11741
|
+
"results"
|
|
11742
|
+
]
|
|
11743
|
+
}
|
|
11744
|
+
},
|
|
11745
|
+
{
|
|
11746
|
+
"name": "search",
|
|
11747
|
+
"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.",
|
|
10804
11748
|
"inputSchema": {
|
|
10805
11749
|
"additionalProperties": false,
|
|
10806
11750
|
"properties": {
|
|
@@ -10854,7 +11798,7 @@ var OPERATIONS = [
|
|
|
10854
11798
|
"type": "object"
|
|
10855
11799
|
},
|
|
10856
11800
|
"annotations": {
|
|
10857
|
-
"title": "
|
|
11801
|
+
"title": "Search",
|
|
10858
11802
|
"readOnlyHint": true,
|
|
10859
11803
|
"destructiveHint": false,
|
|
10860
11804
|
"idempotentHint": true,
|
|
@@ -10874,35 +11818,62 @@ var OPERATIONS = [
|
|
|
10874
11818
|
"path": {
|
|
10875
11819
|
"type": "string"
|
|
10876
11820
|
},
|
|
11821
|
+
"table": {
|
|
11822
|
+
"type": "string",
|
|
11823
|
+
"description": "Qualified table of a row note."
|
|
11824
|
+
},
|
|
10877
11825
|
"score": {
|
|
10878
11826
|
"type": "number",
|
|
10879
|
-
"description": "
|
|
11827
|
+
"description": "BM25 when ranked by words alone; the Reciprocal Rank Fusion score when fused."
|
|
10880
11828
|
},
|
|
10881
11829
|
"heading": {
|
|
10882
11830
|
"type": "string",
|
|
10883
|
-
"description": "Heading
|
|
11831
|
+
"description": "Heading above the match (empty before the first heading)."
|
|
10884
11832
|
},
|
|
10885
11833
|
"snippet": {
|
|
10886
|
-
"type": "string"
|
|
10887
|
-
},
|
|
10888
|
-
"table": {
|
|
10889
11834
|
"type": "string",
|
|
10890
|
-
"description": "
|
|
11835
|
+
"description": "About 200 characters around the first match, or the best passage by meaning."
|
|
11836
|
+
},
|
|
11837
|
+
"matched_by": {
|
|
11838
|
+
"type": "array",
|
|
11839
|
+
"items": {
|
|
11840
|
+
"type": "string",
|
|
11841
|
+
"enum": [
|
|
11842
|
+
"words",
|
|
11843
|
+
"meaning"
|
|
11844
|
+
]
|
|
11845
|
+
},
|
|
11846
|
+
"description": "The rankings the note is in."
|
|
10891
11847
|
}
|
|
10892
11848
|
},
|
|
10893
11849
|
"required": [
|
|
10894
11850
|
"path",
|
|
10895
11851
|
"score",
|
|
10896
11852
|
"heading",
|
|
10897
|
-
"snippet"
|
|
11853
|
+
"snippet",
|
|
11854
|
+
"matched_by"
|
|
10898
11855
|
]
|
|
10899
11856
|
},
|
|
10900
11857
|
"description": "One result per note, best first."
|
|
11858
|
+
},
|
|
11859
|
+
"meaning": {
|
|
11860
|
+
"type": "string",
|
|
11861
|
+
"enum": [
|
|
11862
|
+
"on",
|
|
11863
|
+
"off",
|
|
11864
|
+
"failed"
|
|
11865
|
+
],
|
|
11866
|
+
"description": "on: words and meaning fused; off: semantic search is off, words only; failed: the embedding provider failed, words only."
|
|
11867
|
+
},
|
|
11868
|
+
"meaning_error": {
|
|
11869
|
+
"type": "string",
|
|
11870
|
+
"description": "Why the meaning ranking failed (with meaning: failed)."
|
|
10901
11871
|
}
|
|
10902
11872
|
},
|
|
10903
11873
|
"required": [
|
|
10904
11874
|
"query",
|
|
10905
|
-
"results"
|
|
11875
|
+
"results",
|
|
11876
|
+
"meaning"
|
|
10906
11877
|
]
|
|
10907
11878
|
}
|
|
10908
11879
|
},
|
|
@@ -11598,6 +12569,50 @@ var OPERATIONS = [
|
|
|
11598
12569
|
]
|
|
11599
12570
|
},
|
|
11600
12571
|
"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."
|
|
12572
|
+
},
|
|
12573
|
+
"schema_references": {
|
|
12574
|
+
"type": "array",
|
|
12575
|
+
"items": {
|
|
12576
|
+
"title": "SchemaReference",
|
|
12577
|
+
"type": "object",
|
|
12578
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
12579
|
+
"properties": {
|
|
12580
|
+
"table": {
|
|
12581
|
+
"type": "string",
|
|
12582
|
+
"description": "The table whose column names it (full name)."
|
|
12583
|
+
},
|
|
12584
|
+
"base": {
|
|
12585
|
+
"type": "string",
|
|
12586
|
+
"description": "The base whose column names it."
|
|
12587
|
+
},
|
|
12588
|
+
"view": {
|
|
12589
|
+
"type": "string",
|
|
12590
|
+
"description": "The view whose query names it (full name)."
|
|
12591
|
+
},
|
|
12592
|
+
"column": {
|
|
12593
|
+
"type": "string",
|
|
12594
|
+
"description": "The column of the table or base."
|
|
12595
|
+
},
|
|
12596
|
+
"key": {
|
|
12597
|
+
"type": "string",
|
|
12598
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
12599
|
+
},
|
|
12600
|
+
"from": {
|
|
12601
|
+
"type": "string",
|
|
12602
|
+
"description": "The name as written before."
|
|
12603
|
+
},
|
|
12604
|
+
"to": {
|
|
12605
|
+
"type": "string",
|
|
12606
|
+
"description": "The name written in its place."
|
|
12607
|
+
}
|
|
12608
|
+
},
|
|
12609
|
+
"required": [
|
|
12610
|
+
"key",
|
|
12611
|
+
"from",
|
|
12612
|
+
"to"
|
|
12613
|
+
]
|
|
12614
|
+
},
|
|
12615
|
+
"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."
|
|
11601
12616
|
}
|
|
11602
12617
|
},
|
|
11603
12618
|
"required": [
|
|
@@ -13039,6 +14054,50 @@ var OPERATIONS = [
|
|
|
13039
14054
|
]
|
|
13040
14055
|
},
|
|
13041
14056
|
"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."
|
|
14057
|
+
},
|
|
14058
|
+
"schema_references": {
|
|
14059
|
+
"type": "array",
|
|
14060
|
+
"items": {
|
|
14061
|
+
"title": "SchemaReference",
|
|
14062
|
+
"type": "object",
|
|
14063
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
14064
|
+
"properties": {
|
|
14065
|
+
"table": {
|
|
14066
|
+
"type": "string",
|
|
14067
|
+
"description": "The table whose column names it (full name)."
|
|
14068
|
+
},
|
|
14069
|
+
"base": {
|
|
14070
|
+
"type": "string",
|
|
14071
|
+
"description": "The base whose column names it."
|
|
14072
|
+
},
|
|
14073
|
+
"view": {
|
|
14074
|
+
"type": "string",
|
|
14075
|
+
"description": "The view whose query names it (full name)."
|
|
14076
|
+
},
|
|
14077
|
+
"column": {
|
|
14078
|
+
"type": "string",
|
|
14079
|
+
"description": "The column of the table or base."
|
|
14080
|
+
},
|
|
14081
|
+
"key": {
|
|
14082
|
+
"type": "string",
|
|
14083
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
14084
|
+
},
|
|
14085
|
+
"from": {
|
|
14086
|
+
"type": "string",
|
|
14087
|
+
"description": "The name as written before."
|
|
14088
|
+
},
|
|
14089
|
+
"to": {
|
|
14090
|
+
"type": "string",
|
|
14091
|
+
"description": "The name written in its place."
|
|
14092
|
+
}
|
|
14093
|
+
},
|
|
14094
|
+
"required": [
|
|
14095
|
+
"key",
|
|
14096
|
+
"from",
|
|
14097
|
+
"to"
|
|
14098
|
+
]
|
|
14099
|
+
},
|
|
14100
|
+
"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."
|
|
13042
14101
|
}
|
|
13043
14102
|
},
|
|
13044
14103
|
"required": [
|
|
@@ -14059,6 +15118,50 @@ var OPERATIONS = [
|
|
|
14059
15118
|
]
|
|
14060
15119
|
},
|
|
14061
15120
|
"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."
|
|
15121
|
+
},
|
|
15122
|
+
"schema_references": {
|
|
15123
|
+
"type": "array",
|
|
15124
|
+
"items": {
|
|
15125
|
+
"title": "SchemaReference",
|
|
15126
|
+
"type": "object",
|
|
15127
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
15128
|
+
"properties": {
|
|
15129
|
+
"table": {
|
|
15130
|
+
"type": "string",
|
|
15131
|
+
"description": "The table whose column names it (full name)."
|
|
15132
|
+
},
|
|
15133
|
+
"base": {
|
|
15134
|
+
"type": "string",
|
|
15135
|
+
"description": "The base whose column names it."
|
|
15136
|
+
},
|
|
15137
|
+
"view": {
|
|
15138
|
+
"type": "string",
|
|
15139
|
+
"description": "The view whose query names it (full name)."
|
|
15140
|
+
},
|
|
15141
|
+
"column": {
|
|
15142
|
+
"type": "string",
|
|
15143
|
+
"description": "The column of the table or base."
|
|
15144
|
+
},
|
|
15145
|
+
"key": {
|
|
15146
|
+
"type": "string",
|
|
15147
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
15148
|
+
},
|
|
15149
|
+
"from": {
|
|
15150
|
+
"type": "string",
|
|
15151
|
+
"description": "The name as written before."
|
|
15152
|
+
},
|
|
15153
|
+
"to": {
|
|
15154
|
+
"type": "string",
|
|
15155
|
+
"description": "The name written in its place."
|
|
15156
|
+
}
|
|
15157
|
+
},
|
|
15158
|
+
"required": [
|
|
15159
|
+
"key",
|
|
15160
|
+
"from",
|
|
15161
|
+
"to"
|
|
15162
|
+
]
|
|
15163
|
+
},
|
|
15164
|
+
"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."
|
|
14062
15165
|
}
|
|
14063
15166
|
},
|
|
14064
15167
|
"required": [
|
|
@@ -14461,6 +15564,50 @@ var OPERATIONS = [
|
|
|
14461
15564
|
]
|
|
14462
15565
|
},
|
|
14463
15566
|
"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."
|
|
15567
|
+
},
|
|
15568
|
+
"schema_references": {
|
|
15569
|
+
"type": "array",
|
|
15570
|
+
"items": {
|
|
15571
|
+
"title": "SchemaReference",
|
|
15572
|
+
"type": "object",
|
|
15573
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
15574
|
+
"properties": {
|
|
15575
|
+
"table": {
|
|
15576
|
+
"type": "string",
|
|
15577
|
+
"description": "The table whose column names it (full name)."
|
|
15578
|
+
},
|
|
15579
|
+
"base": {
|
|
15580
|
+
"type": "string",
|
|
15581
|
+
"description": "The base whose column names it."
|
|
15582
|
+
},
|
|
15583
|
+
"view": {
|
|
15584
|
+
"type": "string",
|
|
15585
|
+
"description": "The view whose query names it (full name)."
|
|
15586
|
+
},
|
|
15587
|
+
"column": {
|
|
15588
|
+
"type": "string",
|
|
15589
|
+
"description": "The column of the table or base."
|
|
15590
|
+
},
|
|
15591
|
+
"key": {
|
|
15592
|
+
"type": "string",
|
|
15593
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
15594
|
+
},
|
|
15595
|
+
"from": {
|
|
15596
|
+
"type": "string",
|
|
15597
|
+
"description": "The name as written before."
|
|
15598
|
+
},
|
|
15599
|
+
"to": {
|
|
15600
|
+
"type": "string",
|
|
15601
|
+
"description": "The name written in its place."
|
|
15602
|
+
}
|
|
15603
|
+
},
|
|
15604
|
+
"required": [
|
|
15605
|
+
"key",
|
|
15606
|
+
"from",
|
|
15607
|
+
"to"
|
|
15608
|
+
]
|
|
15609
|
+
},
|
|
15610
|
+
"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."
|
|
14464
15611
|
}
|
|
14465
15612
|
},
|
|
14466
15613
|
"required": [
|
|
@@ -14930,6 +16077,50 @@ var OPERATIONS = [
|
|
|
14930
16077
|
]
|
|
14931
16078
|
},
|
|
14932
16079
|
"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."
|
|
16080
|
+
},
|
|
16081
|
+
"schema_references": {
|
|
16082
|
+
"type": "array",
|
|
16083
|
+
"items": {
|
|
16084
|
+
"title": "SchemaReference",
|
|
16085
|
+
"type": "object",
|
|
16086
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
16087
|
+
"properties": {
|
|
16088
|
+
"table": {
|
|
16089
|
+
"type": "string",
|
|
16090
|
+
"description": "The table whose column names it (full name)."
|
|
16091
|
+
},
|
|
16092
|
+
"base": {
|
|
16093
|
+
"type": "string",
|
|
16094
|
+
"description": "The base whose column names it."
|
|
16095
|
+
},
|
|
16096
|
+
"view": {
|
|
16097
|
+
"type": "string",
|
|
16098
|
+
"description": "The view whose query names it (full name)."
|
|
16099
|
+
},
|
|
16100
|
+
"column": {
|
|
16101
|
+
"type": "string",
|
|
16102
|
+
"description": "The column of the table or base."
|
|
16103
|
+
},
|
|
16104
|
+
"key": {
|
|
16105
|
+
"type": "string",
|
|
16106
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
16107
|
+
},
|
|
16108
|
+
"from": {
|
|
16109
|
+
"type": "string",
|
|
16110
|
+
"description": "The name as written before."
|
|
16111
|
+
},
|
|
16112
|
+
"to": {
|
|
16113
|
+
"type": "string",
|
|
16114
|
+
"description": "The name written in its place."
|
|
16115
|
+
}
|
|
16116
|
+
},
|
|
16117
|
+
"required": [
|
|
16118
|
+
"key",
|
|
16119
|
+
"from",
|
|
16120
|
+
"to"
|
|
16121
|
+
]
|
|
16122
|
+
},
|
|
16123
|
+
"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."
|
|
14933
16124
|
}
|
|
14934
16125
|
},
|
|
14935
16126
|
"required": [
|
|
@@ -15328,6 +16519,50 @@ var OPERATIONS = [
|
|
|
15328
16519
|
]
|
|
15329
16520
|
},
|
|
15330
16521
|
"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."
|
|
16522
|
+
},
|
|
16523
|
+
"schema_references": {
|
|
16524
|
+
"type": "array",
|
|
16525
|
+
"items": {
|
|
16526
|
+
"title": "SchemaReference",
|
|
16527
|
+
"type": "object",
|
|
16528
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
16529
|
+
"properties": {
|
|
16530
|
+
"table": {
|
|
16531
|
+
"type": "string",
|
|
16532
|
+
"description": "The table whose column names it (full name)."
|
|
16533
|
+
},
|
|
16534
|
+
"base": {
|
|
16535
|
+
"type": "string",
|
|
16536
|
+
"description": "The base whose column names it."
|
|
16537
|
+
},
|
|
16538
|
+
"view": {
|
|
16539
|
+
"type": "string",
|
|
16540
|
+
"description": "The view whose query names it (full name)."
|
|
16541
|
+
},
|
|
16542
|
+
"column": {
|
|
16543
|
+
"type": "string",
|
|
16544
|
+
"description": "The column of the table or base."
|
|
16545
|
+
},
|
|
16546
|
+
"key": {
|
|
16547
|
+
"type": "string",
|
|
16548
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
16549
|
+
},
|
|
16550
|
+
"from": {
|
|
16551
|
+
"type": "string",
|
|
16552
|
+
"description": "The name as written before."
|
|
16553
|
+
},
|
|
16554
|
+
"to": {
|
|
16555
|
+
"type": "string",
|
|
16556
|
+
"description": "The name written in its place."
|
|
16557
|
+
}
|
|
16558
|
+
},
|
|
16559
|
+
"required": [
|
|
16560
|
+
"key",
|
|
16561
|
+
"from",
|
|
16562
|
+
"to"
|
|
16563
|
+
]
|
|
16564
|
+
},
|
|
16565
|
+
"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."
|
|
15331
16566
|
}
|
|
15332
16567
|
},
|
|
15333
16568
|
"required": [
|
|
@@ -15757,6 +16992,50 @@ var OPERATIONS = [
|
|
|
15757
16992
|
]
|
|
15758
16993
|
},
|
|
15759
16994
|
"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."
|
|
16995
|
+
},
|
|
16996
|
+
"schema_references": {
|
|
16997
|
+
"type": "array",
|
|
16998
|
+
"items": {
|
|
16999
|
+
"title": "SchemaReference",
|
|
17000
|
+
"type": "object",
|
|
17001
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
17002
|
+
"properties": {
|
|
17003
|
+
"table": {
|
|
17004
|
+
"type": "string",
|
|
17005
|
+
"description": "The table whose column names it (full name)."
|
|
17006
|
+
},
|
|
17007
|
+
"base": {
|
|
17008
|
+
"type": "string",
|
|
17009
|
+
"description": "The base whose column names it."
|
|
17010
|
+
},
|
|
17011
|
+
"view": {
|
|
17012
|
+
"type": "string",
|
|
17013
|
+
"description": "The view whose query names it (full name)."
|
|
17014
|
+
},
|
|
17015
|
+
"column": {
|
|
17016
|
+
"type": "string",
|
|
17017
|
+
"description": "The column of the table or base."
|
|
17018
|
+
},
|
|
17019
|
+
"key": {
|
|
17020
|
+
"type": "string",
|
|
17021
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
17022
|
+
},
|
|
17023
|
+
"from": {
|
|
17024
|
+
"type": "string",
|
|
17025
|
+
"description": "The name as written before."
|
|
17026
|
+
},
|
|
17027
|
+
"to": {
|
|
17028
|
+
"type": "string",
|
|
17029
|
+
"description": "The name written in its place."
|
|
17030
|
+
}
|
|
17031
|
+
},
|
|
17032
|
+
"required": [
|
|
17033
|
+
"key",
|
|
17034
|
+
"from",
|
|
17035
|
+
"to"
|
|
17036
|
+
]
|
|
17037
|
+
},
|
|
17038
|
+
"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."
|
|
15760
17039
|
}
|
|
15761
17040
|
},
|
|
15762
17041
|
"required": [
|
|
@@ -16173,6 +17452,50 @@ var OPERATIONS = [
|
|
|
16173
17452
|
]
|
|
16174
17453
|
},
|
|
16175
17454
|
"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."
|
|
17455
|
+
},
|
|
17456
|
+
"schema_references": {
|
|
17457
|
+
"type": "array",
|
|
17458
|
+
"items": {
|
|
17459
|
+
"title": "SchemaReference",
|
|
17460
|
+
"type": "object",
|
|
17461
|
+
"description": "A name of the moved table in another definition, rewritten to the new name.",
|
|
17462
|
+
"properties": {
|
|
17463
|
+
"table": {
|
|
17464
|
+
"type": "string",
|
|
17465
|
+
"description": "The table whose column names it (full name)."
|
|
17466
|
+
},
|
|
17467
|
+
"base": {
|
|
17468
|
+
"type": "string",
|
|
17469
|
+
"description": "The base whose column names it."
|
|
17470
|
+
},
|
|
17471
|
+
"view": {
|
|
17472
|
+
"type": "string",
|
|
17473
|
+
"description": "The view whose query names it (full name)."
|
|
17474
|
+
},
|
|
17475
|
+
"column": {
|
|
17476
|
+
"type": "string",
|
|
17477
|
+
"description": "The column of the table or base."
|
|
17478
|
+
},
|
|
17479
|
+
"key": {
|
|
17480
|
+
"type": "string",
|
|
17481
|
+
"description": "Where the name is: ref or vocabulary of the column, or table, union[N].table or join.table of the view's query."
|
|
17482
|
+
},
|
|
17483
|
+
"from": {
|
|
17484
|
+
"type": "string",
|
|
17485
|
+
"description": "The name as written before."
|
|
17486
|
+
},
|
|
17487
|
+
"to": {
|
|
17488
|
+
"type": "string",
|
|
17489
|
+
"description": "The name written in its place."
|
|
17490
|
+
}
|
|
17491
|
+
},
|
|
17492
|
+
"required": [
|
|
17493
|
+
"key",
|
|
17494
|
+
"from",
|
|
17495
|
+
"to"
|
|
17496
|
+
]
|
|
17497
|
+
},
|
|
17498
|
+
"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."
|
|
16176
17499
|
}
|
|
16177
17500
|
},
|
|
16178
17501
|
"required": [
|
|
@@ -16679,6 +18002,7 @@ var OPERATION_KIND = {
|
|
|
16679
18002
|
list_folder: "queries",
|
|
16680
18003
|
search_notes: "queries",
|
|
16681
18004
|
semantic_search: "queries",
|
|
18005
|
+
search: "queries",
|
|
16682
18006
|
graph_neighbors: "queries",
|
|
16683
18007
|
graph_traverse: "queries",
|
|
16684
18008
|
graph_path: "queries",
|