{ "argumentSchema": { "$defs": { "AnonymousType_1": { "items": { "$ref": "#/$defs/MentionablePiece" }, "type": "array" }, "AnonymousType_2": { "anyOf": [ { "$ref": "#/$defs/NotebookPiece" }, { "type": "null" } ] }, "MentionRef": { "properties": { "destination": { "type": "unknown" }, "modifiedTitle": { "type": "boolean" } }, "required": [ "destination", "modifiedTitle" ], "type": "object" }, "MentionRefMap": { "additionalProperties": { "$ref": "#/$defs/MentionRef" }, "properties": {}, "type": "object" }, "MentionablePiece": { "properties": { "$NAME": { "type": "string" }, "backlinks": { "$ref": "#/$defs/AnonymousType_1" }, "isHidden": { "type": "boolean" }, "mentioned": { "$ref": "#/$defs/AnonymousType_1" } }, "required": [ "mentioned", "backlinks" ], "type": "object" }, "NotePiece": { "properties": { "$NAME": { "type": "string" }, "backlinks": { "$ref": "#/$defs/AnonymousType_1" }, "content": { "type": "string" }, "isHidden": { "type": "boolean" }, "parentNotebook": { "$ref": "#/$defs/AnonymousType_2" }, "setTitle": { "asCell": [ "stream" ], "type": "string" }, "summary": { "type": "string" }, "title": { "type": "string" } }, "type": "object" }, "NotebookPiece": { "properties": { "$NAME": { "type": "string" }, "backlinks": { "$ref": "#/$defs/AnonymousType_1" }, "createNote": { "asCell": [ "stream" ], "properties": { "content": { "type": "string" }, "navigate": { "type": "boolean" }, "title": { "type": "string" } }, "required": [ "title", "content" ], "type": "object" }, "createNotebook": { "asCell": [ "stream" ], "properties": { "notesData": { "items": { "properties": { "content": { "type": "string" }, "title": { "type": "string" } }, "required": [ "title", "content" ], "type": "object" }, "type": "array" }, "title": { "type": "string" } }, "required": [ "title" ], "type": "object" }, "createNotes": { "asCell": [ "stream" ], "properties": { "notesData": { "items": { "properties": { "content": { "type": "string" }, "title": { "type": "string" } }, "required": [ "title", "content" ], "type": "object" }, "type": "array" } }, "required": [ "notesData" ], "type": "object" }, "isHidden": { "type": "boolean" }, "isNotebook": { "type": "boolean" }, "notes": { "items": { "$ref": "#/$defs/NotePiece" }, "type": "array" }, "setTitle": { "asCell": [ "stream" ], "type": "string" }, "title": { "type": "string" } }, "required": [ "createNote", "createNotes", "setTitle", "createNotebook" ], "type": "object" } }, "properties": { "content": { "asCell": [ "cell" ], "default": "", "type": "string" }, "isHidden": { "default": false, "type": "boolean" }, "linkPattern": { "asCell": [ "cell" ], "default": "", "description": "Pattern JSON for [[wiki-links]]. Defaults to creating new Notes.", "type": "string" }, "parentNotebook": { "anyOf": [ { "$ref": "#/$defs/NotebookPiece" }, { "type": "null" } ], "asCell": [ "cell" ], "default": null, "description": "Parent notebook reference. Set at creation, can be updated for moves." }, "references": { "$ref": "#/$defs/MentionRefMap", "asCell": [ "cell" ], "default": {}, "description": "The note's mentions in reference form. Stored beside `content` because it\nhas to stay in lockstep with it: the text carries keys, and this is what\nsays where they point.\n\nThe default has to be the same one `NoteOutput` declares. A map published\nin the result under a different default than its input carries cannot be\nmaterialized, and a consumer that captures the note then gets `undefined`\nfor the whole capture — which stops any action bound to it from running,\nrather than merely leaving this field empty." }, "title": { "asCell": [ "cell" ], "default": "Untitled Note", "type": "string" } }, "type": "object" }, "pattern": "notes/note.tsx", "resultSchema": { "$defs": { "AnonymousType_1": { "items": { "$ref": "#/$defs/MentionablePiece" }, "type": "array" }, "AnonymousType_2": { "anyOf": [ { "$ref": "#/$defs/NotebookPiece" }, { "type": "null" } ] }, "CellScope": { "enum": [ "space", "user", "session" ] }, "MentionRef": { "properties": { "destination": { "type": "unknown" }, "modifiedTitle": { "type": "boolean" } }, "required": [ "destination", "modifiedTitle" ], "type": "object" }, "MentionRefMap": { "additionalProperties": { "$ref": "#/$defs/MentionRef" }, "properties": {}, "type": "object" }, "MentionablePiece": { "properties": { "$NAME": { "type": "string" }, "backlinks": { "$ref": "#/$defs/AnonymousType_1" }, "isHidden": { "type": "boolean" }, "mentioned": { "$ref": "#/$defs/AnonymousType_1" } }, "required": [ "mentioned", "backlinks" ], "type": "object" }, "NotePiece": { "properties": { "$NAME": { "type": "string" }, "backlinks": { "$ref": "#/$defs/AnonymousType_1" }, "content": { "type": "string" }, "isHidden": { "type": "boolean" }, "parentNotebook": { "$ref": "#/$defs/AnonymousType_2" }, "setTitle": { "asCell": [ "stream" ], "type": "string" }, "summary": { "type": "string" }, "title": { "type": "string" } }, "type": "object" }, "NotebookPiece": { "properties": { "$NAME": { "type": "string" }, "backlinks": { "$ref": "#/$defs/AnonymousType_1" }, "createNote": { "asCell": [ "stream" ], "properties": { "content": { "type": "string" }, "navigate": { "type": "boolean" }, "title": { "type": "string" } }, "required": [ "title", "content" ], "type": "object" }, "createNotebook": { "asCell": [ "stream" ], "properties": { "notesData": { "items": { "properties": { "content": { "type": "string" }, "title": { "type": "string" } }, "required": [ "title", "content" ], "type": "object" }, "type": "array" }, "title": { "type": "string" } }, "required": [ "title" ], "type": "object" }, "createNotes": { "asCell": [ "stream" ], "properties": { "notesData": { "items": { "properties": { "content": { "type": "string" }, "title": { "type": "string" } }, "required": [ "title", "content" ], "type": "object" }, "type": "array" } }, "required": [ "notesData" ], "type": "object" }, "isHidden": { "type": "boolean" }, "isNotebook": { "type": "boolean" }, "notes": { "items": { "$ref": "#/$defs/NotePiece" }, "type": "array" }, "setTitle": { "asCell": [ "stream" ], "type": "string" }, "title": { "type": "string" } }, "required": [ "createNote", "createNotes", "setTitle", "createNotebook" ], "type": "object" }, "Pattern": { "properties": { "argumentSchema": true, "defaultScope": { "$ref": "#/$defs/CellScope" }, "resultSchema": true }, "required": [ "argumentSchema", "resultSchema" ], "type": "object" } }, "description": "Represents a small #note a user took to remember some text.", "properties": { "$FS": { "description": "A note is always markdown, so it declares that arm rather than the whole\n`FsProjection` union: the open arm types every field loosely, and a reader\nof this projection wants `content` as the string it is.", "properties": { "content": { "type": "string" }, "frontmatter": { "additionalProperties": { "type": "unknown" }, "properties": {}, "type": "object" }, "type": { "enum": [ "text/markdown" ], "type": "string" } }, "required": [ "type", "content" ], "type": "object" }, "$NAME": { "type": "string" }, "$TILE_UI": { "$ref": "https://commonfabric.org/schemas/vnode.json", "description": "Tile variant (CT-1764): the minimal embedded UI used when a container\n(e.g. Record) renders this note via ``." }, "$UI": { "$ref": "https://commonfabric.org/schemas/vnode.json" }, "appendLink": { "asCell": [ "stream" ], "properties": { "piece": { "$ref": "#/$defs/MentionablePiece" } }, "required": [ "piece" ], "type": "object" }, "backlinks": { "$ref": "#/$defs/AnonymousType_1" }, "closeMenu": { "asCell": [ "stream", "opaque" ] }, "content": { "type": "string" }, "createNewNote": { "asCell": [ "stream", "opaque" ] }, "editContent": { "asCell": [ "stream" ], "properties": { "detail": { "properties": { "value": { "type": "string" } }, "required": [ "value" ], "type": "object" } }, "required": [ "detail" ], "type": "object" }, "editProjection": { "asCell": [ "stream" ], "description": "Take an edited filesystem projection, definitions and all.", "properties": { "body": { "type": "string" } }, "required": [ "body" ], "type": "object" }, "grep": { "properties": { "extraParams": { "properties": { "content": { "type": "string" } }, "required": [ "content" ], "type": "object" }, "pattern": { "$ref": "#/$defs/Pattern" }, "useResultSchemaForObservation": { "type": "boolean" } }, "required": [ "pattern", "extraParams" ], "type": "object" }, "isEditingTitle": { "type": "boolean" }, "isHidden": { "type": "boolean" }, "mentioned": { "$ref": "#/$defs/AnonymousType_1", "default": [] }, "menuOpen": { "type": "boolean" }, "parentNotebook": { "$ref": "#/$defs/AnonymousType_2", "description": "Parent notebook reference, null if not in a notebook" }, "references": { "$ref": "#/$defs/MentionRefMap", "default": {}, "description": "Where this note's `[Label][key]` mentions point. The default matches the\ninput's; see `NoteInput.references` for why they have to." }, "setTitle": { "asCell": [ "stream" ], "type": "string" }, "startEditingTitle": { "asCell": [ "stream", "opaque" ] }, "stopEditingTitle": { "asCell": [ "stream", "opaque" ] }, "summary": { "type": "string" }, "title": { "type": "string" }, "toggleMenu": { "asCell": [ "stream", "opaque" ] }, "translate": { "properties": { "extraParams": { "properties": { "content": { "type": "string" } }, "required": [ "content" ], "type": "object" }, "pattern": { "$ref": "#/$defs/Pattern" }, "useResultSchemaForObservation": { "type": "boolean" } }, "required": [ "pattern", "extraParams" ], "type": "object" } }, "required": [ "title", "content", "summary", "mentioned", "backlinks", "references", "isHidden", "grep", "translate", "editContent", "editProjection", "setTitle", "appendLink", "createNewNote", "parentNotebook", "menuOpen", "isEditingTitle", "toggleMenu", "closeMenu", "startEditingTitle", "stopEditingTitle", "$NAME", "$UI", "$FS", "$TILE_UI" ], "type": "object" } }