Files
triliumnext-korean-patch/updates/2026-09-05/phase9/doc_notes/en/api-ko/backend.html
T

150 lines
205 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!doctype html><html lang="ko"><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>백엔드 스크립트 API</title><style>body{font:16px/1.7 system-ui,sans-serif;max-width:1050px;margin:24px auto;padding:0 22px;color:#24292f}a{color:#075fbd}pre,.tsd-signature{background:#f3f5f7;padding:12px;overflow:auto}code{font-family:monospace}.tsd-kind-icon{width:18px;height:18px}section{margin:20px 0}h2{border-bottom:1px solid #ddd}h3{margin-top:30px}ul{padding-left:24px}.tsd-anchor-icon{display:none}nav{background:#eef6ff;padding:12px}details{margin:12px 0}svg{display:none}</style><body><h1>백엔드 스크립트 API</h1><nav><a href="frontend.html">프런트엔드 API</a> · <a href="fnote.html">노트 객체</a> · <a href="backend.html">백엔드 API</a></nav><p>연결된 공식 문서의 한국어 사본입니다. 함수 이름과 코드 문법은 원문을 유지했습니다. 외부 문서는 운영 버전과 다를 수 있으므로 지원 여부를 확인하세요. <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API.Api.html" target="_blank" rel="noopener">공식 원문 보기</a></p><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="https://triliumnext.github.io/Notes/Script%20API/modules/Backend_Script_API.html">백엔드 스크립트 API</a></li><li><a href="backend.html" aria-current="page">Api</a></li></ul><h1>인터페이스 Api</h1></div><div class="tsd-signature"><span class="tsd-signature-keyword">interface</span> <span class="tsd-kind-interface">Api</span> <span class="tsd-signature-symbol">{</span><br>    <a class="tsd-kind-property" href="#__private">__private</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">becca</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API._internal_.default.html" class="tsd-signature-type tsd-kind-class">default</a> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#axios">axios</a><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.AxiosStatic.html" class="tsd-signature-type tsd-kind-interface">AxiosStatic</a><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#cheerio">cheerio</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span><br>        <span class="tsd-kind-property">default</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.CheerioAPI.html" class="tsd-signature-type tsd-kind-interface">CheerioAPI</a><span class="tsd-signature-symbol">;</span><br>        <span class="tsd-kind-property">version</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>        <span class="tsd-kind-call-signature">contains</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">container</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/types/Backend_Script_API._internal_.Element.html" class="tsd-signature-type tsd-kind-type-alias">Element</a><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">contained</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/types/Backend_Script_API._internal_.Element.html" class="tsd-signature-type tsd-kind-type-alias">Element</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br>        <span class="tsd-kind-call-signature">html</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.CheerioParserOptions.html" class="tsd-signature-type tsd-kind-interface">CheerioParserOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>        <span class="tsd-kind-call-signature">html</span><span class="tsd-signature-symbol">(</span><br>            <span class="tsd-kind-parameter">dom</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/types/Backend_Script_API._internal_.Element.html" class="tsd-signature-type tsd-kind-type-alias">Element</a> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.Cheerio.html" class="tsd-signature-type tsd-kind-interface">Cheerio</a><span class="tsd-signature-symbol">,</span><br>            <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.CheerioParserOptions.html" class="tsd-signature-type tsd-kind-interface">CheerioParserOptions</a><span class="tsd-signature-symbol">,</span><br>        <span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>        <span class="tsd-kind-call-signature">load</span><span class="tsd-signature-symbol">(</span><br>            <span class="tsd-kind-parameter">html</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">Buffer</span><span class="tsd-signature-symbol">&lt;</span><a href="https://triliumnext.github.io/Notes/Script%20API/types/Backend_Script_API._internal_.ArrayBufferLike.html" class="tsd-signature-type tsd-kind-type-alias">ArrayBufferLike</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">,</span><br>            <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.CheerioParserOptions.html" class="tsd-signature-type tsd-kind-interface">CheerioParserOptions</a><span class="tsd-signature-symbol">,</span><br>        <span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.Root.html" class="tsd-signature-type tsd-kind-interface">Root</a><span class="tsd-signature-symbol">;</span><br>        <span class="tsd-kind-call-signature">load</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">element</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/types/Backend_Script_API._internal_.Element.html" class="tsd-signature-type tsd-kind-type-alias">Element</a> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/types/Backend_Script_API._internal_.Element.html" class="tsd-signature-type tsd-kind-type-alias">Element</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.CheerioParserOptions.html" class="tsd-signature-type tsd-kind-interface">CheerioParserOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.Root.html" class="tsd-signature-type tsd-kind-interface">Root</a><span class="tsd-signature-symbol">;</span><br>        <span class="tsd-kind-call-signature">parseHTML</span><span class="tsd-signature-symbol">(</span><br>            <span class="tsd-kind-parameter">data</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>            <span class="tsd-kind-parameter">context</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">Document</span><span class="tsd-signature-symbol">,</span><br>            <span class="tsd-kind-parameter">keepScripts</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">,</span><br>        <span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Document</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">;</span><br>        <span class="tsd-kind-call-signature">root</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.Cheerio.html" class="tsd-signature-type tsd-kind-interface">Cheerio</a><span class="tsd-signature-symbol">;</span><br>        <span class="tsd-kind-call-signature">xml</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">dom</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/types/Backend_Script_API._internal_.Element.html" class="tsd-signature-type tsd-kind-type-alias">Element</a> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.Cheerio.html" class="tsd-signature-type tsd-kind-interface">Cheerio</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>    <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#currentnote">currentNote</a><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#dayjs">dayjs</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">__module</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#logmessages">logMessages</a><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/types/Backend_Script_API._internal_.Record.html" class="tsd-signature-type tsd-kind-type-alias">Record</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#logspacedupdates">logSpacedUpdates</a><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/types/Backend_Script_API._internal_.Record.html" class="tsd-signature-type tsd-kind-type-alias">Record</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API._internal_.SpacedUpdate.html" class="tsd-signature-type tsd-kind-class">SpacedUpdate</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#originentity">originEntity</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.AbstractBeccaEntity.html" class="tsd-signature-type tsd-kind-class">AbstractBeccaEntity</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#sql">sql</a><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#startnote">startNote</a><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-property" href="#xml2js">xml2js</a><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/modules/Backend_Script_API._internal_.node_modules__types_xml2js.html" class="tsd-signature-type tsd-kind-namespace">node_modules/@types/xml2js</a><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#backupnow-1">backupNow</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">backupName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#createdatanote-1">createDataNote</a><span class="tsd-signature-symbol">(</span><br>        <span class="tsd-kind-parameter">parentNoteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>        <span class="tsd-kind-parameter">title</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>        <span class="tsd-kind-parameter">content</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{}</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.NoteAndBranch.html" class="tsd-signature-type tsd-kind-interface">NoteAndBranch</a><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#createnewnote-1">createNewNote</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">params</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.NoteParams.html" class="tsd-signature-type tsd-kind-interface">NoteParams</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.NoteAndBranch.html" class="tsd-signature-type tsd-kind-interface">NoteAndBranch</a><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#createnote-1">createNote</a><span class="tsd-signature-symbol">(</span><br>        <span class="tsd-kind-parameter">parentNoteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>        <span class="tsd-kind-parameter">title</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>        <span class="tsd-kind-parameter">content</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>        <span class="tsd-kind-parameter">extraOptions</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/types/Backend_Script_API._internal_.Omit.html" class="tsd-signature-type tsd-kind-type-alias">Omit</a><span class="tsd-signature-symbol">&lt;</span><br>            <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.NoteParams.html" class="tsd-signature-type tsd-kind-interface">NoteParams</a><span class="tsd-signature-symbol">,</span><br>            <span class="tsd-signature-type">&quot;title&quot;</span><br>            <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">&quot;parentNoteId&quot;</span><br>            <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">&quot;content&quot;</span><br>            <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">&quot;type&quot;</span><span class="tsd-signature-symbol">,</span><br>        <span class="tsd-signature-symbol">&gt;</span> <span class="tsd-signature-symbol">&amp;</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">attributes</span><span class="tsd-signature-symbol">?:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.AttributeRow.html" class="tsd-signature-type tsd-kind-interface">AttributeRow</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">;</span> <span class="tsd-kind-property">json</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.NoteAndBranch.html" class="tsd-signature-type tsd-kind-interface">NoteAndBranch</a><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#createorupdatelauncher-1">createOrUpdateLauncher</a><span class="tsd-signature-symbol">(</span><br>        <span class="tsd-kind-parameter">opts</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span><br>            <span class="tsd-kind-property">icon</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>            <span class="tsd-kind-property">id</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>            <span class="tsd-kind-property">isVisible</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br>            <span class="tsd-kind-property">keyboardShortcut</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>            <span class="tsd-kind-property">scriptNoteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>            <span class="tsd-kind-property">targetNoteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>            <span class="tsd-kind-property">title</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>            <span class="tsd-kind-property">type</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;script&quot;</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">&quot;note&quot;</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">&quot;customWidget&quot;</span><span class="tsd-signature-symbol">;</span><br>            <span class="tsd-kind-property">widgetNoteId</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>        <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">note</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#createtextnote-1">createTextNote</a><span class="tsd-signature-symbol">(</span><br>        <span class="tsd-kind-parameter">parentNoteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>        <span class="tsd-kind-parameter">title</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>        <span class="tsd-kind-parameter">content</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.NoteAndBranch.html" class="tsd-signature-type tsd-kind-interface">NoteAndBranch</a><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#ensurenoteisabsentfromparent-1">ensureNoteIsAbsentFromParent</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">noteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">parentNoteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#ensurenoteispresentinparent-1">ensureNoteIsPresentInParent</a><span class="tsd-signature-symbol">(</span><br>        <span class="tsd-kind-parameter">noteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>        <span class="tsd-kind-parameter">parentNoteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>        <span class="tsd-kind-parameter">prefix</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">branch</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BBranch.html" class="tsd-signature-type tsd-kind-class">BBranch</a> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#escapehtml-1">escapeHtml</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">string</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#exportsubtreetozipfile-1">exportSubtreeToZipFile</a><span class="tsd-signature-symbol">(</span><br>        <span class="tsd-kind-parameter">noteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>        <span class="tsd-kind-parameter">format</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;html&quot;</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">&quot;markdown&quot;</span><span class="tsd-signature-symbol">,</span><br>        <span class="tsd-kind-parameter">zipFilePath</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#getappinfo-1">getAppInfo</a><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span><br>        <span class="tsd-kind-property">appVersion</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>        <span class="tsd-kind-property">buildDate</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>        <span class="tsd-kind-property">buildRevision</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>        <span class="tsd-kind-property">clipperProtocolVersion</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>        <span class="tsd-kind-property">dataDirectory</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>        <span class="tsd-kind-property">dbVersion</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">;</span><br>        <span class="tsd-kind-property">nodeVersion</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>        <span class="tsd-kind-property">syncVersion</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">;</span><br>        <span class="tsd-kind-property">utcDateTime</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>    <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#getattachment-1">getAttachment</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">attachmentId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BAttachment.html" class="tsd-signature-type tsd-kind-class">BAttachment</a><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#getattribute-1">getAttribute</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">attachmentId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BAttribute.html" class="tsd-signature-type tsd-kind-class">BAttribute</a><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#getattribute-2">getAttribute</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">attributeId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BAttribute.html" class="tsd-signature-type tsd-kind-class">BAttribute</a><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#getbranch-1">getBranch</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">branchId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BBranch.html" class="tsd-signature-type tsd-kind-class">BBranch</a><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#getdaynote-1">getDayNote</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">date</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">rootNote</span><span class="tsd-signature-symbol">?:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#getetapitoken-1">getEtapiToken</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">etapiTokenId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BEtapiToken.html" class="tsd-signature-type tsd-kind-class">BEtapiToken</a><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#getetapitokens-1">getEtapiTokens</a><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BEtapiToken.html" class="tsd-signature-type tsd-kind-class">BEtapiToken</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#getinstancename-1">getInstanceName</a><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#getmonthnote-1">getMonthNote</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">date</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">rootNote</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#getnote-1">getNote</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">noteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#getnoteswithlabel-1">getNotesWithLabel</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">name</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">값</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#getnotewithlabel-1">getNoteWithLabel</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">name</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">값</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#getoption-1">getOption</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">optionName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BOption.html" class="tsd-signature-type tsd-kind-class">BOption</a><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#getoptions-1">getOptions</a><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BOption.html" class="tsd-signature-type tsd-kind-class">BOption</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#getquarternote-1">getQuarterNote</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">date</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">rootNote</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#getrevision-1">getRevision</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">revisionId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BRevision.html" class="tsd-signature-type tsd-kind-class">BRevision</a><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#getrootcalendarnote-1">getRootCalendarNote</a><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#gettodaynote-1">getTodayNote</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">rootNote</span><span class="tsd-signature-symbol">?:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#getweekfirstdaynote-1">getWeekFirstDayNote</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">date</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">rootNote</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#getweeknote-1">getWeekNote</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">date</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">rootNote</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#getyearnote-1">getYearNote</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">year</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">rootNote</span><span class="tsd-signature-symbol">?:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#log-1">log</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">message</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#randomstring-1">randomString</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">length</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#runonfrontend-1">runOnFrontend</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">script</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">()</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">params</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">[</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#runoutsideofsync-1">runOutsideOfSync</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callback</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">()</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#searchfornote-1">searchForNote</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">query</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">searchParams</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.SearchParams.html" class="tsd-signature-type tsd-kind-interface">SearchParams</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#searchfornotes-1">searchForNotes</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">query</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">searchParams</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.SearchParams.html" class="tsd-signature-type tsd-kind-interface">SearchParams</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#setnotetoparent-1">setNoteToParent</a><span class="tsd-signature-symbol">(</span><br>        <span class="tsd-kind-parameter">noteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>        <span class="tsd-kind-parameter">prefix</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>        <span class="tsd-kind-parameter">parentNoteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#sortnotes-1">sortNotes</a><span class="tsd-signature-symbol">(</span><br>        <span class="tsd-kind-parameter">parentNoteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>        <span class="tsd-kind-parameter">sortConfig</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">foldersFirst</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span> <span class="tsd-kind-property">reverse</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span> <span class="tsd-kind-property">sortBy</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#togglenoteinparent-1">toggleNoteInParent</a><span class="tsd-signature-symbol">(</span><br>        <span class="tsd-kind-parameter">present</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">true</span><span class="tsd-signature-symbol">,</span><br>        <span class="tsd-kind-parameter">noteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>        <span class="tsd-kind-parameter">parentNoteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>        <span class="tsd-kind-parameter">prefix</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#transactional-1">transactional</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">func</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">()</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">;</span><br>    <a class="tsd-kind-call-signature" href="#unescapehtml-1">unescapeHtml</a><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">string</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br><span class="tsd-signature-symbol">}</span></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L61">src/services/backend_script_api.ts:61</a></li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-accordion" open=""><summary class="tsd-accordion-summary tsd-index-summary"><svg width="16" height="16" viewbox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronSmall"></use></svg><h5 class="tsd-index-heading uppercase">목차</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">속성</h3><div class="tsd-index-list"><a href="#__private" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>__private</span></a>
<a href="#axios" class="tsd-index-link deprecated"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>axios</span></a>
<a href="#cheerio" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>cheerio</span></a>
<a href="#currentnote" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>current<wbr>Note</span></a>
<a href="#dayjs" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>dayjs</span></a>
<a href="#logmessages" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>log<wbr>Messages</span></a>
<a href="#logspacedupdates" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>log<wbr>Spaced<wbr>Updates</span></a>
<a href="#originentity" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>origin<wbr>Entity?</span></a>
<a href="#sql" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>sql</span></a>
<a href="#startnote" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>start<wbr>Note?</span></a>
<a href="#xml2js" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Property"><use href="../assets/icons.svg#icon-1024"></use></svg><span>xml2js</span></a>
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">메서드</h3><div class="tsd-index-list"><a href="#backupnow" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>backup<wbr>Now</span></a>
<a href="#createdatanote" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>create<wbr>Data<wbr>Note</span></a>
<a href="#createnewnote" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>create<wbr>New<wbr>Note</span></a>
<a href="#createnote" class="tsd-index-link deprecated"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>create<wbr>Note</span></a>
<a href="#createorupdatelauncher" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>create<wbr>Or<wbr>Update<wbr>Launcher</span></a>
<a href="#createtextnote" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>create<wbr>Text<wbr>Note</span></a>
<a href="#ensurenoteisabsentfromparent" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>ensure<wbr>Note<wbr>Is<wbr>Absent<wbr>From<wbr>Parent</span></a>
<a href="#ensurenoteispresentinparent" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>ensure<wbr>Note<wbr>Is<wbr>Present<wbr>In<wbr>Parent</span></a>
<a href="#escapehtml" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>escape<wbr>Html</span></a>
<a href="#exportsubtreetozipfile" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>export<wbr>Subtree<wbr>To<wbr>Zip<wbr>File</span></a>
<a href="#getappinfo" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr>App<wbr>Info</span></a>
<a href="#getattachment" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr>Attachment</span></a>
<a href="#getattribute" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr>Attribute</span></a>
<a href="#getbranch" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr>Branch</span></a>
<a href="#getdaynote" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr>Day<wbr>Note</span></a>
<a href="#getetapitoken" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr>Etapi<wbr>Token</span></a>
<a href="#getetapitokens" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr>Etapi<wbr>Tokens</span></a>
<a href="#getinstancename" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr>Instance<wbr>Name</span></a>
<a href="#getmonthnote" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr>Month<wbr>Note</span></a>
<a href="#getnote" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr>Note</span></a>
<a href="#getnoteswithlabel" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr>Notes<wbr>With<wbr>Label</span></a>
<a href="#getnotewithlabel" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr>Note<wbr>With<wbr>Label</span></a>
<a href="#getoption" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr>Option</span></a>
<a href="#getoptions" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr>Options</span></a>
<a href="#getquarternote" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr>Quarter<wbr>Note</span></a>
<a href="#getrevision" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr>Revision</span></a>
<a href="#getrootcalendarnote" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr>Root<wbr>Calendar<wbr>Note</span></a>
<a href="#gettodaynote" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr>Today<wbr>Note</span></a>
<a href="#getweekfirstdaynote" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr>Week<wbr>First<wbr>Day<wbr>Note</span></a>
<a href="#getweeknote" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr>Week<wbr>Note</span></a>
<a href="#getyearnote" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr>Year<wbr>Note</span></a>
<a href="#log" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>log</span></a>
<a href="#randomstring" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>random<wbr>String</span></a>
<a href="#runonfrontend" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>run<wbr>On<wbr>Frontend</span></a>
<a href="#runoutsideofsync" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>run<wbr>Outside<wbr>Of<wbr>Sync</span></a>
<a href="#searchfornote" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>search<wbr>For<wbr>Note</span></a>
<a href="#searchfornotes" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>search<wbr>For<wbr>Notes</span></a>
<a href="#setnotetoparent" class="tsd-index-link deprecated"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>set<wbr>Note<wbr>To<wbr>Parent</span></a>
<a href="#sortnotes" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>sort<wbr>Notes</span></a>
<a href="#togglenoteinparent" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>toggle<wbr>Note<wbr>In<wbr>Parent</span></a>
<a href="#transactional" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>transactional</span></a>
<a href="#unescapehtml" class="tsd-index-link"><svg class="tsd-kind-icon" viewbox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>unescape<wbr>Html</span></a>
</div></section></div></details></section></section><details class="tsd-panel-group tsd-member-group tsd-accordion" open=""><summary class="tsd-accordion-summary" data-key="section-Properties"><svg width="20" height="20" viewbox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h2>속성</h2></summary><section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="__private"><span>__private</span><a href="#__private" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">__private</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">becca</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API._internal_.default.html" class="tsd-signature-type tsd-kind-class">default</a> <span class="tsd-signature-symbol">}</span></div><div class="tsd-comment tsd-typography"><p>이 객체에는 다음 특성을 가진 고급 기능 객체가 들어 있습니다. &quot;사용자가 영향을 판단해야 함&quot; 및 &quot;하위 호환성 보장 없음&quot; 고급 사용 사례를 위한 객체입니다.</p>
</div><div class="tsd-type-declaration"><h4>형식 선언</h4><ul class="tsd-parameters"><li class="tsd-parameter"><h5><span class="tsd-kind-property">becca</span><span class="tsd-signature-symbol">: </span><a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API._internal_.default.html" class="tsd-signature-type tsd-kind-class">default</a></h5><div class="tsd-comment tsd-typography"><p>백엔드의 메모리 내 객체 그래프에 접근합니다. 참고: <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API._internal_.default.html" class="tsd-kind-class">Becca</a></p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L403">src/services/backend_script_api.ts:403</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="axios"><span class="deprecated">axios</span><a href="#axios" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">axios</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.AxiosStatic.html" class="tsd-signature-type tsd-kind-interface">AxiosStatic</a></div><div class="tsd-comment tsd-typography"><p>HTTP 요청을 위한 Axios 라이브러리입니다. 참고: <a href="https://axios-http.com">https://axios-http.com</a> 라이브러리 사용 안내</p>
</div><div class="tsd-comment tsd-typography"><div class="tsd-tag-deprecated"><h4 class="tsd-anchor-link" id="deprecated">사용 중단 예정<a href="#deprecated" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>대신 브라우저와 호환되는 기본 fetch()를 사용하세요.</p>
</div></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L85">src/services/backend_script_api.ts:85</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="cheerio"><span>cheerio</span><a href="#cheerio" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">cheerio</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span><br>    <span class="tsd-kind-property">default</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.CheerioAPI.html" class="tsd-signature-type tsd-kind-interface">CheerioAPI</a><span class="tsd-signature-symbol">;</span><br>    <span class="tsd-kind-property">version</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>    <span class="tsd-kind-call-signature">contains</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">container</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/types/Backend_Script_API._internal_.Element.html" class="tsd-signature-type tsd-kind-type-alias">Element</a><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">contained</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/types/Backend_Script_API._internal_.Element.html" class="tsd-signature-type tsd-kind-type-alias">Element</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br>    <span class="tsd-kind-call-signature">html</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.CheerioParserOptions.html" class="tsd-signature-type tsd-kind-interface">CheerioParserOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>    <span class="tsd-kind-call-signature">html</span><span class="tsd-signature-symbol">(</span><br>        <span class="tsd-kind-parameter">dom</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/types/Backend_Script_API._internal_.Element.html" class="tsd-signature-type tsd-kind-type-alias">Element</a> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.Cheerio.html" class="tsd-signature-type tsd-kind-interface">Cheerio</a><span class="tsd-signature-symbol">,</span><br>        <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.CheerioParserOptions.html" class="tsd-signature-type tsd-kind-interface">CheerioParserOptions</a><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>    <span class="tsd-kind-call-signature">load</span><span class="tsd-signature-symbol">(</span><br>        <span class="tsd-kind-parameter">html</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">Buffer</span><span class="tsd-signature-symbol">&lt;</span><a href="https://triliumnext.github.io/Notes/Script%20API/types/Backend_Script_API._internal_.ArrayBufferLike.html" class="tsd-signature-type tsd-kind-type-alias">ArrayBufferLike</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">,</span><br>        <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.CheerioParserOptions.html" class="tsd-signature-type tsd-kind-interface">CheerioParserOptions</a><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.Root.html" class="tsd-signature-type tsd-kind-interface">Root</a><span class="tsd-signature-symbol">;</span><br>    <span class="tsd-kind-call-signature">load</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">element</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/types/Backend_Script_API._internal_.Element.html" class="tsd-signature-type tsd-kind-type-alias">Element</a> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/types/Backend_Script_API._internal_.Element.html" class="tsd-signature-type tsd-kind-type-alias">Element</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.CheerioParserOptions.html" class="tsd-signature-type tsd-kind-interface">CheerioParserOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.Root.html" class="tsd-signature-type tsd-kind-interface">Root</a><span class="tsd-signature-symbol">;</span><br>    <span class="tsd-kind-call-signature">parseHTML</span><span class="tsd-signature-symbol">(</span><br>        <span class="tsd-kind-parameter">data</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>        <span class="tsd-kind-parameter">context</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">Document</span><span class="tsd-signature-symbol">,</span><br>        <span class="tsd-kind-parameter">keepScripts</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Document</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">;</span><br>    <span class="tsd-kind-call-signature">root</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.Cheerio.html" class="tsd-signature-type tsd-kind-interface">Cheerio</a><span class="tsd-signature-symbol">;</span><br>    <span class="tsd-kind-call-signature">xml</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">dom</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/types/Backend_Script_API._internal_.Element.html" class="tsd-signature-type tsd-kind-type-alias">Element</a> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.Cheerio.html" class="tsd-signature-type tsd-kind-interface">Cheerio</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br><span class="tsd-signature-symbol">}</span></div><div class="tsd-comment tsd-typography"><p>HTML 분석과 처리를 위한 cheerio 라이브러리입니다. 참고: <a href="https://cheerio.js.org">https://cheerio.js.org</a> 라이브러리 사용 안내</p>
</div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L102">src/services/backend_script_api.ts:102</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="currentnote"><span>current<wbr>Note</span><a href="#currentnote" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">currentNote</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a></div><div class="tsd-comment tsd-typography"><p>현재 스크립트가 실행 중인 노트입니다. 코드가 여러 노트로 나뉘어 있으면 처음 실행을 시작한 노트는 다음과 같습니다: &quot;startNote&quot;함수 호출을 통해 다른 노트인 currentNote로 실행 위치가 바뀔 수 있습니다. C 언어에서는 다음 개념과 비슷합니다: <strong>FILE</strong>
현재 화면에서 활성화된 노트와 혼동하지 마세요.</p>
</div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L74">src/services/backend_script_api.ts:74</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="dayjs"><span>dayjs</span><a href="#dayjs" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">dayjs</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">__module</span></div><div class="tsd-comment tsd-typography"><p>날짜 처리를 위한 day.js 라이브러리입니다. 참고: <a href="https://day.js.org">https://day.js.org</a> 라이브러리 사용 안내</p>
</div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L90">src/services/backend_script_api.ts:90</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="logmessages"><span>log<wbr>Messages</span><a href="#logmessages" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">logMessages</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/types/Backend_Script_API._internal_.Record.html" class="tsd-signature-type tsd-kind-type-alias">Record</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L207">src/services/backend_script_api.ts:207</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="logspacedupdates"><span>log<wbr>Spaced<wbr>Updates</span><a href="#logspacedupdates" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">logSpacedUpdates</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/types/Backend_Script_API._internal_.Record.html" class="tsd-signature-type tsd-kind-type-alias">Record</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API._internal_.SpacedUpdate.html" class="tsd-signature-type tsd-kind-class">SpacedUpdate</a><span class="tsd-signature-symbol">&gt;</span></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L208">src/services/backend_script_api.ts:208</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="originentity"><code class="tsd-tag">Optional</code><span>origin<wbr>Entity</span><a href="#originentity" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">originEntity</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.AbstractBeccaEntity.html" class="tsd-signature-type tsd-kind-class">AbstractBeccaEntity</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></div><div class="tsd-comment tsd-typography"><p>이 실행을 시작하게 한 이벤트의 엔터티</p>
</div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L79">src/services/backend_script_api.ts:79</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="sql"><span>sql</span><a href="#sql" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">sql</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span></div><div class="tsd-comment tsd-typography"><p>sql</p>
</div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L333">src/services/backend_script_api.ts:333</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="startnote"><code class="tsd-tag">Optional</code><span>start<wbr>Note</span><a href="#startnote" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">startNote</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a></div><div class="tsd-comment tsd-typography"><p>스크립트 실행이 시작된 노트입니다. C 언어로 비유하면 현재 프로세스의 main() 함수가 들어 있는 파일에 해당합니다.</p>
</div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L66">src/services/backend_script_api.ts:66</a></li></ul></aside></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="xml2js"><span>xml2js</span><a href="#xml2js" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">xml2js</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/modules/Backend_Script_API._internal_.node_modules__types_xml2js.html" class="tsd-signature-type tsd-kind-namespace">node_modules/@types/xml2js</a></div><div class="tsd-comment tsd-typography"><p>XML 분석을 위한 xml2js 라이브러리입니다. 참고: <a href="https://github.com/Leonidas-from-XIV/node-xml2js">https://github.com/Leonidas-from-XIV/node-xml2js</a> 라이브러리 사용 안내</p>
</div><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L96">src/services/backend_script_api.ts:96</a></li></ul></aside></section></section></details><details class="tsd-panel-group tsd-member-group tsd-accordion" open=""><summary class="tsd-accordion-summary" data-key="section-Methods"><svg width="20" height="20" viewbox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h2>메서드</h2></summary><section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="backupnow"><span>backup<wbr>Now</span><a href="#backupnow" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="backupnow-1"><span class="tsd-kind-call-signature">backupNow</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">backupName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">&gt;</span><a href="#backupnow-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">backupName</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>예를 들어 backupName에 다음 값을 지정하면: &quot;now&quot;백업은 다음 이름으로 저장됩니다: &quot;backup-now.db&quot; 파일</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">&gt;</span></h4><p>백업이 끝나면 완료됩니다.</p>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L398">src/services/backend_script_api.ts:398</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="createdatanote"><span>create<wbr>Data<wbr>Note</span><a href="#createdatanote" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="createdatanote-1"><span class="tsd-kind-call-signature">createDataNote</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">parentNoteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">title</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">content</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{}</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.NoteAndBranch.html" class="tsd-signature-type tsd-kind-interface">NoteAndBranch</a><a href="#createdatanote-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>JSON으로 직렬화할 수 있는 객체를 데이터 노트로 만듭니다. 생성되는 노트의 유형은 code이며 MIME 유형은 JSON입니다. 더 많은 옵션은 createNewNote()를 확인하세요.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">parentNoteId</span>: <span class="tsd-signature-type">string</span></span></li><li><span><span class="tsd-kind-parameter">title</span>: <span class="tsd-signature-type">string</span></span></li><li><span><span class="tsd-kind-parameter">content</span>: <span class="tsd-signature-symbol">{}</span></span></li></ul></div><h4 class="tsd-returns-title">반환값 <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.NoteAndBranch.html" class="tsd-signature-type tsd-kind-interface">NoteAndBranch</a></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L184">src/services/backend_script_api.ts:184</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="createnewnote"><span>create<wbr>New<wbr>Note</span><a href="#createnewnote" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="createnewnote-1"><span class="tsd-kind-call-signature">createNewNote</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">params</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.NoteParams.html" class="tsd-signature-type tsd-kind-interface">NoteParams</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.NoteAndBranch.html" class="tsd-signature-type tsd-kind-interface">NoteAndBranch</a><a href="#createnewnote-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">params</span>: <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.NoteParams.html" class="tsd-signature-type tsd-kind-interface">NoteParams</a></span></li></ul></div><h4 class="tsd-returns-title">반환값 <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.NoteAndBranch.html" class="tsd-signature-type tsd-kind-interface">NoteAndBranch</a></h4><p>새로 생성한 노트와 가지 엔터티가 들어 있는 객체</p>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L189">src/services/backend_script_api.ts:189</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="createnote"><span class="deprecated">create<wbr>Note</span><a href="#createnote" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="createnote-1"><span class="tsd-kind-call-signature">createNote</span><span class="tsd-signature-symbol">(</span><br>    <span class="tsd-kind-parameter">parentNoteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-kind-parameter">title</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-kind-parameter">content</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-kind-parameter">extraOptions</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/types/Backend_Script_API._internal_.Omit.html" class="tsd-signature-type tsd-kind-type-alias">Omit</a><span class="tsd-signature-symbol">&lt;</span><br>        <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.NoteParams.html" class="tsd-signature-type tsd-kind-interface">NoteParams</a><span class="tsd-signature-symbol">,</span><br>        <span class="tsd-signature-type">&quot;title&quot;</span><br>        <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">&quot;parentNoteId&quot;</span><br>        <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">&quot;content&quot;</span><br>        <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">&quot;type&quot;</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-signature-symbol">&gt;</span> <span class="tsd-signature-symbol">&amp;</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">attributes</span><span class="tsd-signature-symbol">?:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.AttributeRow.html" class="tsd-signature-type tsd-kind-interface">AttributeRow</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">;</span> <span class="tsd-kind-property">json</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">,</span><br><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.NoteAndBranch.html" class="tsd-signature-type tsd-kind-interface">NoteAndBranch</a><a href="#createnote-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">parentNoteId</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>이 상위 노트 아래에 새 노트 생성</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">title</span>: <span class="tsd-signature-type">string</span></span></li><li><span><span class="tsd-kind-parameter">content</span>: <span class="tsd-signature-type">string</span></span></li><li><span><span class="tsd-kind-parameter">extraOptions</span>: <a href="https://triliumnext.github.io/Notes/Script%20API/types/Backend_Script_API._internal_.Omit.html" class="tsd-signature-type tsd-kind-type-alias">Omit</a><span class="tsd-signature-symbol">&lt;</span><a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.NoteParams.html" class="tsd-signature-type tsd-kind-interface">NoteParams</a><span class="tsd-signature-symbol">,</span> <span class="tsd-signature-type">&quot;title&quot;</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">&quot;parentNoteId&quot;</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">&quot;content&quot;</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">&quot;type&quot;</span><span class="tsd-signature-symbol">&gt;</span> <span class="tsd-signature-symbol">&amp;</span> <span class="tsd-signature-symbol">{</span><br>    <span class="tsd-kind-property">attributes</span><span class="tsd-signature-symbol">?:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.AttributeRow.html" class="tsd-signature-type tsd-kind-interface">AttributeRow</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">;</span><br>    <span class="tsd-kind-property">json</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br><span class="tsd-signature-symbol">}</span></span><ul class="tsd-parameters"><li class="tsd-parameter"><h5><code class="tsd-tag">Optional</code><span class="tsd-kind-property">attributes</span><span class="tsd-signature-symbol">?: </span><a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.AttributeRow.html" class="tsd-signature-type tsd-kind-interface">AttributeRow</a><span class="tsd-signature-symbol">[]</span></h5></li><li class="tsd-parameter"><h5><code class="tsd-tag">Optional</code><span class="tsd-kind-property">json</span><span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><p>노트에 JSON을 사용할지 여부</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></li></ul></div><h4 class="tsd-returns-title">반환값 <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.NoteAndBranch.html" class="tsd-signature-type tsd-kind-interface">NoteAndBranch</a></h4><p>새로 생성한 노트와 가지 엔터티가 들어 있는 객체</p>
<div class="tsd-comment tsd-typography"><div class="tsd-tag-deprecated"><h4 class="tsd-anchor-link" id="deprecated-1">사용 중단 예정<a href="#deprecated-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>간단한 용도에는 비슷한 API인 createTextNote()를 사용하고 복잡한 요구에는 createNewNote()를 사용하세요.</p>
</div></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L196">src/services/backend_script_api.ts:196</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="createorupdatelauncher"><span>create<wbr>Or<wbr>Update<wbr>Launcher</span><a href="#createorupdatelauncher" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="createorupdatelauncher-1"><span class="tsd-kind-call-signature">createOrUpdateLauncher</span><span class="tsd-signature-symbol">(</span><br>    <span class="tsd-kind-parameter">opts</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span><br>        <span class="tsd-kind-property">icon</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>        <span class="tsd-kind-property">id</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>        <span class="tsd-kind-property">isVisible</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br>        <span class="tsd-kind-property">keyboardShortcut</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>        <span class="tsd-kind-property">scriptNoteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>        <span class="tsd-kind-property">targetNoteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>        <span class="tsd-kind-property">title</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>        <span class="tsd-kind-property">type</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;script&quot;</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">&quot;note&quot;</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">&quot;customWidget&quot;</span><span class="tsd-signature-symbol">;</span><br>        <span class="tsd-kind-property">widgetNoteId</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>    <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">,</span><br><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">note</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a> <span class="tsd-signature-symbol">}</span><a href="#createorupdatelauncher-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>실행 도구 모음에 새 실행 도구를 만듭니다. 같은 ID가 있으면 변경합니다.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">opts</span>: <span class="tsd-signature-symbol">{</span><br>    <span class="tsd-kind-property">icon</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>    <span class="tsd-kind-property">id</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>    <span class="tsd-kind-property">isVisible</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span><br>    <span class="tsd-kind-property">keyboardShortcut</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>    <span class="tsd-kind-property">scriptNoteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>    <span class="tsd-kind-property">targetNoteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>    <span class="tsd-kind-property">title</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>    <span class="tsd-kind-property">type</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;script&quot;</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">&quot;note&quot;</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">&quot;customWidget&quot;</span><span class="tsd-signature-symbol">;</span><br>    <span class="tsd-kind-property">widgetNoteId</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br><span class="tsd-signature-symbol">}</span></span><ul class="tsd-parameters"><li class="tsd-parameter"><h5><span class="tsd-kind-property">icon</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>사용할 Boxicons 아이콘 이름. 예: &quot;bx-time&quot;)</p>
</div><div class="tsd-comment tsd-typography"></div></li><li class="tsd-parameter"><h5><span class="tsd-kind-property">id</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>영문과 숫자로만 구성된 6자리 이상의 실행 도구 ID</p>
</div><div class="tsd-comment tsd-typography"></div></li><li class="tsd-parameter"><h5><span class="tsd-kind-property">isVisible</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></h5><div class="tsd-comment tsd-typography"><p>true이면 다음 위치에 생성합니다: &quot;표시할 실행 도구&quot;그 외에는 다음 위치에 생성합니다: &quot;사용 가능한 실행 도구&quot;</p>
</div><div class="tsd-comment tsd-typography"></div></li><li class="tsd-parameter"><h5><span class="tsd-kind-property">keyboardShortcut</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>누르면 대상 노트나 스크립트를 활성화할 단축키. 예: &quot;ctrl+e&quot;</p>
</div><div class="tsd-comment tsd-typography"></div></li><li class="tsd-parameter"><h5><span class="tsd-kind-property">scriptNoteId</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>해당 유형: &quot;script&quot;</p>
</div><div class="tsd-comment tsd-typography"></div></li><li class="tsd-parameter"><h5><span class="tsd-kind-property">targetNoteId</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>해당 유형: &quot;note&quot;</p>
</div><div class="tsd-comment tsd-typography"></div></li><li class="tsd-parameter"><h5><span class="tsd-kind-property">title</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5></li><li class="tsd-parameter"><h5><span class="tsd-kind-property">type</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">&quot;script&quot;</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">&quot;note&quot;</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">&quot;customWidget&quot;</span></h5><div class="tsd-comment tsd-typography"><p>다음 중 하나</p>
<ul>
<li>&quot;note&quot; 실행 도구를 누르면 targetNoteId로 지정한 노트로 이동합니다.</li>
<li>&quot;script&quot; 실행 도구를 누르면 scriptNoteId로 지정한 스크립트를 실행합니다.</li>
<li>&quot;customWidget&quot; widgetNoteId로 지정한 사용자 지정 위젯으로 실행 도구를 표시합니다.</li>
</ul>
</div><div class="tsd-comment tsd-typography"></div></li><li class="tsd-parameter"><h5><code class="tsd-tag">Optional</code><span class="tsd-kind-property">widgetNoteId</span><span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>해당 유형: &quot;customWidget&quot;</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">note</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a> <span class="tsd-signature-symbol">}</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L340">src/services/backend_script_api.ts:340</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="createtextnote"><span>create<wbr>Text<wbr>Note</span><a href="#createtextnote" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="createtextnote-1"><span class="tsd-kind-call-signature">createTextNote</span><span class="tsd-signature-symbol">(</span><br>    <span class="tsd-kind-parameter">parentNoteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-kind-parameter">title</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-kind-parameter">content</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.NoteAndBranch.html" class="tsd-signature-type tsd-kind-interface">NoteAndBranch</a><a href="#createtextnote-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>텍스트 노트를 만듭니다. 더 많은 옵션은 createNewNote()를 확인하세요.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">parentNoteId</span>: <span class="tsd-signature-type">string</span></span></li><li><span><span class="tsd-kind-parameter">title</span>: <span class="tsd-signature-type">string</span></span></li><li><span><span class="tsd-kind-parameter">content</span>: <span class="tsd-signature-type">string</span></span></li></ul></div><h4 class="tsd-returns-title">반환값 <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.NoteAndBranch.html" class="tsd-signature-type tsd-kind-interface">NoteAndBranch</a></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L178">src/services/backend_script_api.ts:178</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="ensurenoteisabsentfromparent"><span>ensure<wbr>Note<wbr>Is<wbr>Absent<wbr>From<wbr>Parent</span><a href="#ensurenoteisabsentfromparent" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="ensurenoteisabsentfromparent-1"><span class="tsd-kind-call-signature">ensureNoteIsAbsentFromParent</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">noteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">parentNoteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#ensurenoteisabsentfromparent-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>노트와 상위 노트 사이에 가지가 있으면 삭제합니다. 없으면 아무 작업도 하지 않습니다.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">noteId</span>: <span class="tsd-signature-type">string</span></span></li><li><span><span class="tsd-kind-parameter">parentNoteId</span>: <span class="tsd-signature-type">string</span></span></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L165">src/services/backend_script_api.ts:165</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="ensurenoteispresentinparent"><span>ensure<wbr>Note<wbr>Is<wbr>Present<wbr>In<wbr>Parent</span><a href="#ensurenoteispresentinparent" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="ensurenoteispresentinparent-1"><span class="tsd-kind-call-signature">ensureNoteIsPresentInParent</span><span class="tsd-signature-symbol">(</span><br>    <span class="tsd-kind-parameter">noteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-kind-parameter">parentNoteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-kind-parameter">prefix</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">branch</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BBranch.html" class="tsd-signature-type tsd-kind-class">BBranch</a> <span class="tsd-signature-symbol">}</span><a href="#ensurenoteispresentinparent-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>노트와 상위 노트 사이에 가지가 없으면 만듭니다. 이미 있으면 그대로 둡니다. 새 가지 또는 기존 가지를 반환합니다.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">noteId</span>: <span class="tsd-signature-type">string</span></span></li><li><span><span class="tsd-kind-parameter">parentNoteId</span>: <span class="tsd-signature-type">string</span></span></li><li><span><span class="tsd-kind-parameter">prefix</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>노트와 상위 노트 사이에 가지를 새로 만들 때 지정할 접두사</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">branch</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BBranch.html" class="tsd-signature-type tsd-kind-class">BBranch</a> <span class="tsd-signature-symbol">}</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L154">src/services/backend_script_api.ts:154</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="escapehtml"><span>escape<wbr>Html</span><a href="#escapehtml" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="escapehtml-1"><span class="tsd-kind-call-signature">escapeHtml</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">string</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><a href="#escapehtml-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">string</span>: <span class="tsd-signature-type">string</span></span></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">string</span></h4><p>이스케이프 처리한 문자열</p>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L321">src/services/backend_script_api.ts:321</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="exportsubtreetozipfile"><span>export<wbr>Subtree<wbr>To<wbr>Zip<wbr>File</span><a href="#exportsubtreetozipfile" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="exportsubtreetozipfile-1"><span class="tsd-kind-call-signature">exportSubtreeToZipFile</span><span class="tsd-signature-symbol">(</span><br>    <span class="tsd-kind-parameter">noteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-kind-parameter">format</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;html&quot;</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">&quot;markdown&quot;</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-kind-parameter">zipFilePath</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span><a href="#exportsubtreetozipfile-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">noteId</span>: <span class="tsd-signature-type">string</span></span></li><li><span><span class="tsd-kind-parameter">format</span>: <span class="tsd-signature-type">&quot;html&quot;</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">&quot;markdown&quot;</span></span><div class="tsd-comment tsd-typography"><p>html 또는 markdown</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">zipFilePath</span>: <span class="tsd-signature-type">string</span></span></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L367">src/services/backend_script_api.ts:367</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getappinfo"><span>get<wbr>App<wbr>Info</span><a href="#getappinfo" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="getappinfo-1"><span class="tsd-kind-call-signature">getAppInfo</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span><br>    <span class="tsd-kind-property">appVersion</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>    <span class="tsd-kind-property">buildDate</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>    <span class="tsd-kind-property">buildRevision</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>    <span class="tsd-kind-property">clipperProtocolVersion</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>    <span class="tsd-kind-property">dataDirectory</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>    <span class="tsd-kind-property">dbVersion</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">;</span><br>    <span class="tsd-kind-property">nodeVersion</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>    <span class="tsd-kind-property">syncVersion</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">;</span><br>    <span class="tsd-kind-property">utcDateTime</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br><span class="tsd-signature-symbol">}</span><a href="#getappinfo-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-symbol">{</span><br>    <span class="tsd-kind-property">appVersion</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>    <span class="tsd-kind-property">buildDate</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>    <span class="tsd-kind-property">buildRevision</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>    <span class="tsd-kind-property">clipperProtocolVersion</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>    <span class="tsd-kind-property">dataDirectory</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>    <span class="tsd-kind-property">dbVersion</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">;</span><br>    <span class="tsd-kind-property">nodeVersion</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br>    <span class="tsd-kind-property">syncVersion</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">;</span><br>    <span class="tsd-kind-property">utcDateTime</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span><br><span class="tsd-signature-symbol">}</span></h4><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L335">src/services/backend_script_api.ts:335</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getattachment"><span>get<wbr>Attachment</span><a href="#getattachment" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="getattachment-1"><span class="tsd-kind-call-signature">getAttachment</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">attachmentId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BAttachment.html" class="tsd-signature-type tsd-kind-class">BAttachment</a><a href="#getattachment-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">attachmentId</span>: <span class="tsd-signature-type">string</span></span></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BAttachment.html" class="tsd-signature-type tsd-kind-class">BAttachment</a></h4><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L113">src/services/backend_script_api.ts:113</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getattribute"><span>get<wbr>Attribute</span><a href="#getattribute" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="getattribute-1"><span class="tsd-kind-call-signature">getAttribute</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">attachmentId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BAttribute.html" class="tsd-signature-type tsd-kind-class">BAttribute</a><a href="#getattribute-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">attachmentId</span>: <span class="tsd-signature-type">string</span></span></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BAttribute.html" class="tsd-signature-type tsd-kind-class">BAttribute</a></h4><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L112">src/services/backend_script_api.ts:112</a></li></ul></aside></div></li><li class=""><div class="tsd-signature tsd-anchor-link" id="getattribute-2"><span class="tsd-kind-call-signature">getAttribute</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">attributeId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BAttribute.html" class="tsd-signature-type tsd-kind-class">BAttribute</a><a href="#getattribute-2" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">attributeId</span>: <span class="tsd-signature-type">string</span></span></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BAttribute.html" class="tsd-signature-type tsd-kind-class">BAttribute</a></h4><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L119">src/services/backend_script_api.ts:119</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getbranch"><span>get<wbr>Branch</span><a href="#getbranch" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="getbranch-1"><span class="tsd-kind-call-signature">getBranch</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">branchId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BBranch.html" class="tsd-signature-type tsd-kind-class">BBranch</a><a href="#getbranch-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">branchId</span>: <span class="tsd-signature-type">string</span></span></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BBranch.html" class="tsd-signature-type tsd-kind-class">BBranch</a></h4><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L111">src/services/backend_script_api.ts:111</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getdaynote"><span>get<wbr>Day<wbr>Note</span><a href="#getdaynote" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="getdaynote-1"><span class="tsd-kind-call-signature">getDayNote</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">date</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">rootNote</span><span class="tsd-signature-symbol">?:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">&gt;</span><a href="#getdaynote-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>지정한 날짜의 일별 노트를 반환합니다. 없으면 만듭니다.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">date</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>YYYY-MM-DD 형식</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">rootNote</span>: <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a></span><div class="tsd-comment tsd-typography"><p>달력 루트 노트를 지정합니다. 일반적으로 비워 두어 기본 달력을 사용합니다.</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"><div class="tsd-tag-method"><h4 class="tsd-anchor-link" id="method">메서드<a href="#method" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4></div></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L227">src/services/backend_script_api.ts:227</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getetapitoken"><span>get<wbr>Etapi<wbr>Token</span><a href="#getetapitoken" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="getetapitoken-1"><span class="tsd-kind-call-signature">getEtapiToken</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">etapiTokenId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BEtapiToken.html" class="tsd-signature-type tsd-kind-class">BEtapiToken</a><a href="#getetapitoken-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">etapiTokenId</span>: <span class="tsd-signature-type">string</span></span></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BEtapiToken.html" class="tsd-signature-type tsd-kind-class">BEtapiToken</a></h4><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L115">src/services/backend_script_api.ts:115</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getetapitokens"><span>get<wbr>Etapi<wbr>Tokens</span><a href="#getetapitokens" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="getetapitokens-1"><span class="tsd-kind-call-signature">getEtapiTokens</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BEtapiToken.html" class="tsd-signature-type tsd-kind-class">BEtapiToken</a><span class="tsd-signature-symbol">[]</span><a href="#getetapitokens-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><h4 class="tsd-returns-title">반환값 <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BEtapiToken.html" class="tsd-signature-type tsd-kind-class">BEtapiToken</a><span class="tsd-signature-symbol">[]</span></h4><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L116">src/services/backend_script_api.ts:116</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getinstancename"><span>get<wbr>Instance<wbr>Name</span><a href="#getinstancename" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="getinstancename-1"><span class="tsd-kind-call-signature">getInstanceName</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">string</span><a href="#getinstancename-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>인스턴스 이름은 개별 Trilium 실행 환경을 구분합니다. 특정 인스턴스에서만 작업을 실행해야 하는 스크립트에 유용합니다.</p>
</div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">string</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L108">src/services/backend_script_api.ts:108</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getmonthnote"><span>get<wbr>Month<wbr>Note</span><a href="#getmonthnote" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="getmonthnote-1"><span class="tsd-kind-call-signature">getMonthNote</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">date</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">rootNote</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">&gt;</span><a href="#getmonthnote-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>지정한 날짜의 월별 노트를 반환합니다. 없으면 만듭니다.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">date</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>YYYY-MM 형식</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">rootNote</span>: <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a></span><div class="tsd-comment tsd-typography"><p>달력 루트 노트를 지정합니다. 일반적으로 비워 두어 기본 달력을 사용합니다.</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L258">src/services/backend_script_api.ts:258</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getnote"><span>get<wbr>Note</span><a href="#getnote" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="getnote-1"><span class="tsd-kind-call-signature">getNote</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">noteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><a href="#getnote-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">noteId</span>: <span class="tsd-signature-type">string</span></span></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a></h4><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L110">src/services/backend_script_api.ts:110</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getnoteswithlabel"><span>get<wbr>Notes<wbr>With<wbr>Label</span><a href="#getnoteswithlabel" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="getnoteswithlabel-1"><span class="tsd-kind-call-signature">getNotesWithLabel</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">name</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">값</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">[]</span><a href="#getnoteswithlabel-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>지정한 라벨 이름을 가진 노트들을 조회합니다. &amp; 값</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">name</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>속성 이름</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">값</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>속성값</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">반환값 <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">[]</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L139">src/services/backend_script_api.ts:139</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getnotewithlabel"><span>get<wbr>Note<wbr>With<wbr>Label</span><a href="#getnotewithlabel" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="getnotewithlabel-1"><span class="tsd-kind-call-signature">getNoteWithLabel</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">name</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">값</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><a href="#getnotewithlabel-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>지정한 라벨 이름을 가진 첫 번째 노트를 조회합니다. &amp; 값</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">name</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>속성 이름</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">값</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>속성값</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L147">src/services/backend_script_api.ts:147</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getoption"><span>get<wbr>Option</span><a href="#getoption" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="getoption-1"><span class="tsd-kind-call-signature">getOption</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">optionName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BOption.html" class="tsd-signature-type tsd-kind-class">BOption</a><a href="#getoption-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">optionName</span>: <span class="tsd-signature-type">string</span></span></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BOption.html" class="tsd-signature-type tsd-kind-class">BOption</a></h4><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L117">src/services/backend_script_api.ts:117</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getoptions"><span>get<wbr>Options</span><a href="#getoptions" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="getoptions-1"><span class="tsd-kind-call-signature">getOptions</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BOption.html" class="tsd-signature-type tsd-kind-class">BOption</a><span class="tsd-signature-symbol">[]</span><a href="#getoptions-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><h4 class="tsd-returns-title">반환값 <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BOption.html" class="tsd-signature-type tsd-kind-class">BOption</a><span class="tsd-signature-symbol">[]</span></h4><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L118">src/services/backend_script_api.ts:118</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getquarternote"><span>get<wbr>Quarter<wbr>Note</span><a href="#getquarternote" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="getquarternote-1"><span class="tsd-kind-call-signature">getQuarterNote</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">date</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">rootNote</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">&gt;</span><a href="#getquarternote-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>지정한 날짜의 분기별 노트를 반환합니다. 없으면 만듭니다.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">date</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>YYYY-MM 형식</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">rootNote</span>: <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a></span><div class="tsd-comment tsd-typography"><p>달력 루트 노트를 지정합니다. 일반적으로 비워 두어 기본 달력을 사용합니다.</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L266">src/services/backend_script_api.ts:266</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getrevision"><span>get<wbr>Revision</span><a href="#getrevision" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="getrevision-1"><span class="tsd-kind-call-signature">getRevision</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">revisionId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BRevision.html" class="tsd-signature-type tsd-kind-class">BRevision</a><a href="#getrevision-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">revisionId</span>: <span class="tsd-signature-type">string</span></span></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BRevision.html" class="tsd-signature-type tsd-kind-class">BRevision</a></h4><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L114">src/services/backend_script_api.ts:114</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getrootcalendarnote"><span>get<wbr>Root<wbr>Calendar<wbr>Note</span><a href="#getrootcalendarnote" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="getrootcalendarnote-1"><span class="tsd-kind-call-signature">getRootCalendarNote</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><a href="#getrootcalendarnote-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>달력의 루트 노트를 반환합니다.</p>
</div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L218">src/services/backend_script_api.ts:218</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="gettodaynote"><span>get<wbr>Today<wbr>Note</span><a href="#gettodaynote" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="gettodaynote-1"><span class="tsd-kind-call-signature">getTodayNote</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">rootNote</span><span class="tsd-signature-symbol">?:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">&gt;</span><a href="#gettodaynote-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>오늘의 일별 노트를 반환합니다. 없으면 만듭니다.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">rootNote</span>: <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a></span><div class="tsd-comment tsd-typography"><p>달력 루트 노트를 지정합니다. 일반적으로 비워 두어 기본 달력을 사용합니다.</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L234">src/services/backend_script_api.ts:234</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getweekfirstdaynote"><span>get<wbr>Week<wbr>First<wbr>Day<wbr>Note</span><a href="#getweekfirstdaynote" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="getweekfirstdaynote-1"><span class="tsd-kind-call-signature">getWeekFirstDayNote</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">date</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">rootNote</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">&gt;</span><a href="#getweekfirstdaynote-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>지정한 날짜가 속한 주의 첫날에 해당하는 노트를 반환합니다.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">date</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>YYYY-MM-DD 형식</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">rootNote</span>: <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a></span><div class="tsd-comment tsd-typography"><p>달력 루트 노트를 지정합니다. 일반적으로 비워 두어 기본 달력을 사용합니다.</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L242">src/services/backend_script_api.ts:242</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getweeknote"><span>get<wbr>Week<wbr>Note</span><a href="#getweeknote" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="getweeknote-1"><span class="tsd-kind-call-signature">getWeekNote</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">date</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">rootNote</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">&gt;</span><a href="#getweeknote-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>지정한 날짜의 주별 노트를 반환합니다. 없으면 만듭니다.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">date</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>YYYY-MM-DD 형식</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">rootNote</span>: <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a></span><div class="tsd-comment tsd-typography"><p>달력 루트 노트를 지정합니다. 일반적으로 비워 두어 기본 달력을 사용합니다.</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">&gt;</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L250">src/services/backend_script_api.ts:250</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="getyearnote"><span>get<wbr>Year<wbr>Note</span><a href="#getyearnote" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="getyearnote-1"><span class="tsd-kind-call-signature">getYearNote</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">year</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">rootNote</span><span class="tsd-signature-symbol">?:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><a href="#getyearnote-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>지정한 연도의 연도별 노트를 반환합니다. 없으면 만듭니다.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">year</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>YYYY 형식</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">rootNote</span>: <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a></span><div class="tsd-comment tsd-typography"><p>달력 루트 노트를 지정합니다. 일반적으로 비워 두어 기본 달력을 사용합니다.</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L274">src/services/backend_script_api.ts:274</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="log"><span>log</span><a href="#log" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="log-1"><span class="tsd-kind-call-signature">log</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">message</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#log-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>지정한 메시지를 Trilium 로그와 화면의 로그 창에 기록합니다.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">message</span>: <span class="tsd-signature-type">string</span></span></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L213">src/services/backend_script_api.ts:213</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="randomstring"><span>random<wbr>String</span><a href="#randomstring" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="randomstring-1"><span class="tsd-kind-call-signature">randomString</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">length</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><a href="#randomstring-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>지정한 길이의 임의 문자열을 반환합니다. 암호학적으로 안전한 난수를 만드는 함수가 아닙니다.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">length</span>: <span class="tsd-signature-type">number</span></span><div class="tsd-comment tsd-typography"><p>문자열 기준</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">string</span></h4><p>임의 문자열</p>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L315">src/services/backend_script_api.ts:315</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="runonfrontend"><span>run<wbr>On<wbr>Frontend</span><a href="#runonfrontend" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="runonfrontend-1"><span class="tsd-kind-call-signature">runOnFrontend</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">script</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">()</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">params</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">[</span><span class="tsd-signature-symbol">]</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#runonfrontend-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>지정한 익명 함수를 프런트엔드에서 실행합니다. 내부적으로 함수를 문자열로 직렬화한 뒤 WebSocket으로 전송합니다. 서로 다른 탭 등 여러 프런트엔드가 연결돼 있으면 모든 인스턴스에서 실행합니다.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">script</span>: <span class="tsd-signature-symbol">()</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">void</span></span><div class="tsd-comment tsd-typography"><p>프런트엔드에서 실행할 스크립트</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">params</span>: <span class="tsd-signature-symbol">[</span><span class="tsd-signature-symbol">]</span></span><div class="tsd-comment tsd-typography"><p>프런트엔드로 보낼 익명 함수의 매개변수 목록</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">void</span></h4><p>반환값이 없습니다.</p>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L379">src/services/backend_script_api.ts:379</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="runoutsideofsync"><span>run<wbr>Outside<wbr>Of<wbr>Sync</span><a href="#runoutsideofsync" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="runoutsideofsync-1"><span class="tsd-kind-call-signature">runOutsideOfSync</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">callback</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">()</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span><a href="#runoutsideofsync-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>동기화 중에는 데이터가 일시적으로 일관되지 않을 수 있습니다. 강한 일관성이 필요한 스크립트는 이 함수로 진행 중인 동기화가 끝나기를 기다리고 실행 중 새 동기화가 시작되지 않게 할 수 있습니다.</p>
<p>비동기 처리이므로 내부 콜백에는 자동 트랜잭션 처리가 적용되지 않습니다. 데이터베이스를 변경하려면 api.transactional(...)로 호출을 감싸야 합니다.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">callback</span>: <span class="tsd-signature-symbol">()</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">void</span></span><div class="tsd-comment tsd-typography"><p>동기화가 실행되지 않는 동안 실행할 함수</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4><p>콜백이 끝날 때까지 기다린 뒤 완료됩니다.</p>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L392">src/services/backend_script_api.ts:392</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="searchfornote"><span>search<wbr>For<wbr>Note</span><a href="#searchfornote" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="searchfornote-1"><span class="tsd-kind-call-signature">searchForNote</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">query</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">searchParams</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.SearchParams.html" class="tsd-signature-type tsd-kind-interface">SearchParams</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><a href="#searchfornote-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>속성과 속성값 등을 기준으로 검색할 수 있습니다. 예:
&quot;#dateModified =* MONTH AND #log&quot;참고: <a href="https://triliumnext.github.io/Docs/Wiki/search.html">https://triliumnext.github.io/Docs/Wiki/search.html</a> 전체 옵션 안내</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">query</span>: <span class="tsd-signature-type">string</span></span></li><li><span><span class="tsd-kind-parameter">searchParams</span>: <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.SearchParams.html" class="tsd-signature-type tsd-kind-interface">SearchParams</a></span></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L131">src/services/backend_script_api.ts:131</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="searchfornotes"><span>search<wbr>For<wbr>Notes</span><a href="#searchfornotes" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="searchfornotes-1"><span class="tsd-kind-call-signature">searchForNotes</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">query</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">searchParams</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.SearchParams.html" class="tsd-signature-type tsd-kind-interface">SearchParams</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">[]</span><a href="#searchfornotes-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>속성과 속성값 등을 기준으로 검색할 수 있습니다. 예:
&quot;#dateModified =* MONTH AND #log&quot;참고: <a href="https://triliumnext.github.io/Docs/Wiki/search.html">https://triliumnext.github.io/Docs/Wiki/search.html</a> 전체 옵션 안내</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">query</span>: <span class="tsd-signature-type">string</span></span></li><li><span><span class="tsd-kind-parameter">searchParams</span>: <a href="https://triliumnext.github.io/Notes/Script%20API/interfaces/Backend_Script_API._internal_.SearchParams.html" class="tsd-signature-type tsd-kind-interface">SearchParams</a></span></li></ul></div><h4 class="tsd-returns-title">반환값 <a href="https://triliumnext.github.io/Notes/Script%20API/classes/Backend_Script_API.BNote.html" class="tsd-signature-type tsd-kind-class">BNote</a><span class="tsd-signature-symbol">[]</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L125">src/services/backend_script_api.ts:125</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="setnotetoparent"><span class="deprecated">set<wbr>Note<wbr>To<wbr>Parent</span><a href="#setnotetoparent" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="setnotetoparent-1"><span class="tsd-kind-call-signature">setNoteToParent</span><span class="tsd-signature-symbol">(</span><br>    <span class="tsd-kind-parameter">noteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-kind-parameter">prefix</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-kind-parameter">parentNoteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#setnotetoparent-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>noteId와 접두사로 노트를 찾아 지정한 parentNoteId 아래에 배치합니다. parentNoteId를 지정하지 않으면 가지를 삭제합니다.</p>
<p>toggleNoteInParent()와 비슷하지만 접두사로 가지를 찾는다는 차이가 있습니다.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">noteId</span>: <span class="tsd-signature-type">string</span></span></li><li><span><span class="tsd-kind-parameter">prefix</span>: <span class="tsd-signature-type">string</span></span></li><li><span><span class="tsd-kind-parameter">parentNoteId</span>: <span class="tsd-signature-type">null</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">string</span></span></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"><div class="tsd-tag-deprecated"><h4 class="tsd-anchor-link" id="deprecated-2">사용 중단 예정<a href="#deprecated-2" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h4><p>동작을 혼동하기 쉬운 메서드이며 특수한 용도에만 사용합니다.</p>
</div></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L298">src/services/backend_script_api.ts:298</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="sortnotes"><span>sort<wbr>Notes</span><a href="#sortnotes" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="sortnotes-1"><span class="tsd-kind-call-signature">sortNotes</span><span class="tsd-signature-symbol">(</span><br>    <span class="tsd-kind-parameter">parentNoteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-kind-parameter">sortConfig</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">foldersFirst</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span> <span class="tsd-kind-property">reverse</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span> <span class="tsd-kind-property">sortBy</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">,</span><br><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#sortnotes-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>지정한 노트의 하위 노트를 정렬합니다.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">parentNoteId</span>: <span class="tsd-signature-type">string</span></span></li><li><span><span class="tsd-kind-parameter">sortConfig</span>: <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">foldersFirst</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span> <span class="tsd-kind-property">reverse</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">;</span> <span class="tsd-kind-property">sortBy</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span> <span class="tsd-signature-symbol">}</span></span><ul class="tsd-parameters"><li class="tsd-parameter"><h5><code class="tsd-tag">Optional</code><span class="tsd-kind-property">foldersFirst</span><span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span></h5></li><li class="tsd-parameter"><h5><code class="tsd-tag">Optional</code><span class="tsd-kind-property">reverse</span><span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span></h5></li><li class="tsd-parameter"><h5><code class="tsd-tag">Optional</code><span class="tsd-kind-property">sortBy</span><span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span></h5><div class="tsd-comment tsd-typography"><p>title 또는 dateCreated 또는 dateModified 또는 라벨 이름. 참고: <a href="https://triliumnext.github.io/Docs/Wiki/sorting.html">https://triliumnext.github.io/Docs/Wiki/sorting.html</a> 자세한 안내</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L279">src/services/backend_script_api.ts:279</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="togglenoteinparent"><span>toggle<wbr>Note<wbr>In<wbr>Parent</span><a href="#togglenoteinparent" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="togglenoteinparent-1"><span class="tsd-kind-call-signature">toggleNoteInParent</span><span class="tsd-signature-symbol">(</span><br>    <span class="tsd-kind-parameter">present</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">true</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-kind-parameter">noteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-kind-parameter">parentNoteId</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br>    <span class="tsd-kind-parameter">prefix</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#togglenoteinparent-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>값에 따라 노트와 상위 노트 사이의 가지를 만들거나 삭제합니다.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">present</span>: <span class="tsd-signature-type">true</span></span><div class="tsd-comment tsd-typography"><p>가지를 유지하려면 true를 사용하고 없애려면 false를 사용합니다.</p>
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">noteId</span>: <span class="tsd-signature-type">string</span></span></li><li><span><span class="tsd-kind-parameter">parentNoteId</span>: <span class="tsd-signature-type">string</span></span></li><li><span><span class="tsd-kind-parameter">prefix</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>노트와 상위 노트 사이에 가지를 새로 만들 때 지정할 접두사</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">void</span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L173">src/services/backend_script_api.ts:173</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="transactional"><span>transactional</span><a href="#transactional" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="transactional-1"><span class="tsd-kind-call-signature">transactional</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">func</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">()</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span><a href="#transactional-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>트랜잭션 안에서 실행할 코드를 감쌉니다. 이미 트랜잭션이 있으면 해당 트랜잭션을 사용합니다.</p>
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">func</span>: <span class="tsd-signature-symbol">()</span> <span class="tsd-signature-symbol">=&gt;</span> <span class="tsd-signature-type">void</span></span><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">any</span></h4><p>func 콜백의 결과</p>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L307">src/services/backend_script_api.ts:307</a></li></ul></aside></div></li></ul></section><section class="tsd-panel tsd-member"><h3 class="tsd-anchor-link" id="unescapehtml"><span>unescape<wbr>Html</span><a href="#unescapehtml" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="unescapehtml-1"><span class="tsd-kind-call-signature">unescapeHtml</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">string</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><a href="#unescapehtml-1" aria-label="고유 링크" class="tsd-anchor-icon"><svg viewbox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">매개변수</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">string</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>이스케이프를 해제할 대상</p>
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">반환값 <span class="tsd-signature-type">string</span></h4><p>이스케이프를 해제한 문자열</p>
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>정의 위치 <a href="https://github.com/TriliumNext/Notes/blob/84c2ebd7f3245ef3f6cddc8669bb5117079e316c/src/services/backend_script_api.ts#L327">src/services/backend_script_api.ts:327</a></li></ul></aside></div></li></ul></section></section></details></div></body></html>