남은 API 참고 화면 5개 한글화와 Swagger 문서 표시 복구

This commit is contained in:
Codex
2026-09-13 18:27:32 +09:00
parent 3c7549c104
commit 46b8dc6717
60 changed files with 24452 additions and 26 deletions
File diff suppressed because one or more lines are too long
@@ -0,0 +1,120 @@
[
"ETAPI",
"External Trilium API",
"Create a note and place it into the note tree",
"note created",
"unexpected error",
"Search notes",
"search query string as described in https://triliumnext.github.io/Docs/Wiki/search.html",
"Fulltext search for keywords (not exact match)",
"Fulltext search for exact match (notice the double quotes)",
"Fulltext search for keyword AND matching label",
"enable fast search (fulltext doesn't look into content)",
"search by default ignores archived notes. Set to 'true' to includes archived notes into search results.",
"search only in a subtree identified by the subtree noteId. By default whole tree is searched.",
"define how deep in the tree should the notes be searched",
"depth of exactly 1 (direct children) to the ancestor (root if not set)",
"depth of exactly 3 to the ancestor (root if not set)",
"depth less than 4 (so 1, 2, 3) to the ancestor (root if not set)",
"depth greater than 2 (so 3, 4, 5, 6...) to the ancestor (root if not set)",
"name of the property/label to order search results by",
"order direction, ascending or descending",
"limit the number of results you want to receive",
"set to true to get debug information in the response (search query parsing)",
"search response",
"Returns a note identified by its ID",
"note response",
"patch a note identified by the noteId with changes in the body",
"note updated",
"deletes a single note based on the noteId supplied",
"note deleted",
"Returns note content identified by its ID",
"note content response",
"Updates note content identified by its ID",
"html content of note",
"note content updated",
"Exports ZIP file export of a given note subtree. To export whole document, use \"root\" for noteId",
"export ZIP file",
"Imports ZIP file into a given note.",
"Create a note revision for the given note",
"revision has been created",
"Create a branch (clone a note to a different location in the tree). In case there is a branch between parent note and child note already, then this will update the existing branch with prefix, notePosition and isExpanded.\n",
"branch updated (branch between parent note and child note already existed)",
"branch created",
"Returns a branch identified by its ID",
"branch response",
"patch a branch identified by the branchId with changes in the body. Only prefix and notePosition can be updated. If you want to update other properties, you need to delete the old branch and create a new one.",
"branch updated",
"deletes a branch based on the branchId supplied. If this is the last branch of the (child) note, then the note is deleted as well.\n",
"branch deleted",
"create an attachment",
"attachment created",
"Returns an attachment identified by its ID",
"attachment response",
"patch an attachment identified by the attachmentId with changes in the body. Only role, mime, title, and position are patchable.",
"attribute updated",
"deletes an attachment based on the attachmentId supplied.",
"attachment deleted",
"Returns attachment content identified by its ID",
"attachment content response",
"Updates attachment content identified by its ID",
"html content of attachment",
"attachment content updated",
"create an attribute for a given note",
"attribute created",
"Returns an attribute identified by its ID",
"attribute response",
"patch an attribute identified by the attributeId with changes in the body. For labels, only value and position can be updated. For relations, only position can be updated. If you want to modify other properties, you need to delete the old attribute and create a new one.",
"deletes an attribute based on the attributeId supplied.",
"attribute deleted",
"notePositions in branches are not automatically pushed to connected clients and need a specific instruction. If you want your changes to be in effect immediately, call this service after setting branches' notePosition. Note that you need to supply \"parentNoteId\" of branch(es) with changed positions.\n",
"note ordering will be asynchronously updated in all connected clients",
"returns an \"inbox\" note, into which note can be created. Date will be used depending on whether the inbox is a fixed note (identified with #inbox label) or a day note in a journal.\n",
"inbox note",
"returns a day note for a given date. Gets created if doesn't exist.",
"day note",
"returns a week note for a given date. Gets created if doesn't exist.",
"week note",
"month note",
"year note",
"get an ETAPI token based on password for further use with ETAPI",
"user's password used to e.g. login to Trilium server and/or protect notes",
"auth token",
"Client IP has been blacklisted because too many requests (possibly failed authentications) were made within a short time frame, try again later",
"logout (delete/deactivate) an ETAPI token",
"logout successful",
"returns information about the running Trilium instance",
"app info",
"If the backupName is e.g. \"now\", then the backup will be written to \"backup-now.db\" file",
"Create a database backup under a given name",
"backup has been created",
"Basic Auth where username is arbitrary string (e.g. \"trilium\", not checked), username is the ETAPI token. To emphasize, do not use Trilium password here (won't work), only the generated ETAPI token (from Options -> ETAPI)\n",
"Note ID of the parent note in the tree",
"this needs to be specified only for note types 'code', 'file', 'image'.",
"Position of the note in the parent. Normal ordering is 10, 20, 30 ... So if you want to create a note on the first position, use e.g. 5, for second position 15, for last e.g. 1000000\n",
"Prefix is branch (placement) specific title prefix for the note. Let's say you have your note placed into two different places in the tree, but you want to change the title a bit in one of the placements. For this you can use prefix.\n",
"true if this note (as a folder) should appear expanded",
"DON'T specify unless you want to force a specific noteId",
"DON'T specify unless you want to force a specific branchId",
"Local timestap of the note creation. Specify only if you want to override the default (current datetime in the current timezone/offset).",
"UTC timestap of the note creation. Specify only if you want to override the default (current datetime).",
"ID of the blob object which effectively serves as a content hash",
"Branch places the note into the tree, it represents the relationship between a parent note and child note",
"identifies the child note",
"identifies the parent note",
"Attachment is owned by a note, has title and content",
"identifies the owner of the attachment, is either noteId or revisionId",
"Attribute (Label, Relation) is a key-value record attached to a note.",
"debugging info on parsing the search query enabled with &debug=true parameter",
"Trilium version",
"DB version",
"Sync protocol version",
"build date",
"git build revision",
"data directory where Trilium stores files",
"version of the supported Trilium Web Clipper protocol",
"current UTC date time",
"HTTP status, identical to the one given in HTTP response",
"stable string constant",
"Human readable error, potentially with more details,"
]
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,168 @@
[
"Trilium Notes - Sync server API",
"This is the internal sync server API used by Trilium Notes / TriliumNext Notes.\n\n_If you're looking for the officially supported External Trilium API, see [here](https://triliumnext.github.io/Docs/Wiki/etapi.html)._\n\nThis page does not yet list all routes. For a full list, see the [route controller](https://github.com/TriliumNext/Notes/blob/v0.91.6/src/routes/routes.ts).",
"Sync documentSecret value",
"First step to logging in.",
"Successful operation",
"List available models from Anthropic",
"Optional custom Anthropic API base URL",
"List of available Anthropic models",
"Error listing models",
"Get installation info",
"Server implementation",
"Installation info",
"value of process.version",
"Delete branch (note clone)",
"Task group identifier",
"Whether to erase the note immediately",
"Whether this is the last request of this task group",
"Branch successfully deleted",
"Whether the last note clone was deleted",
"Find similar notes based on a given note ID",
"Embedding provider ID",
"Embedding model ID",
"Maximum number of similar notes to return",
"Similarity threshold (0.0-1.0)",
"List of similar notes",
"Invalid request parameters",
"Note not found",
"Search for notes similar to provided text",
"Text to search with",
"Get available embedding providers",
"List of available embedding providers",
"Update embedding provider configuration",
"Provider ID to update",
"Whether provider is enabled",
"Priority order (lower is higher priority)",
"Provider-specific configuration",
"Provider updated successfully",
"Invalid provider ID or configuration",
"Reprocess embeddings for all notes",
"Provider ID to use for reprocessing",
"Model ID to use for reprocessing",
"Whether to reprocess notes that already have embeddings",
"Reprocessing started",
"Get status of the embedding processing queue",
"Optional job ID to get status for a specific processing job",
"Queue status information",
"Progress percentage (0-100)",
"Get embedding statistics",
"Embedding statistics",
"Get list of notes that failed embedding generation",
"List of failed notes",
"Retry generating embeddings for a failed note",
"Note ID to retry",
"Provider ID to use (defaults to configured default)",
"Model ID to use (defaults to provider default)",
"Retry result",
"Invalid request",
"Retry generating embeddings for all failed notes",
"Retry started",
"Rebuild the vector store index",
"Rebuild started",
"Get status of the vector index rebuild operation",
"Optional job ID to get status for a specific rebuild job",
"Rebuild status information",
"Create a new LLM chat session",
"Title for the chat session",
"System message to set the behavior of the assistant",
"Temperature parameter for the LLM (0.0-1.0)",
"Maximum tokens to generate in responses",
"Specific model to use (depends on provider)",
"LLM provider to use (e.g., 'openai', 'anthropic', 'ollama')",
"Note ID to use as context for the session",
"Successfully created session",
"List all chat sessions",
"List of chat sessions",
"Retrieve a specific chat session",
"Chat session details",
"Session not found",
"Delete a chat session",
"Session successfully deleted",
"Update a chat's settings",
"The ID of the chat note (formerly sessionId)",
"Updated title for the session",
"Updated system prompt",
"Updated temperature setting",
"Updated maximum tokens setting",
"Updated model selection",
"Updated provider selection",
"Updated note ID for context",
"Session successfully updated",
"Send a message to an LLM and get a response",
"The user message to send to the LLM",
"Optional parameters for this specific message",
"Whether to include relevant notes as context",
"Whether to use the session's context note",
"LLM response",
"Error processing request",
"Get stats about the LLM knowledge base indexing status",
"Index stats successfully retrieved",
"Start or continue indexing the knowledge base",
"Whether to force reindexing of all notes",
"Indexing started successfully",
"Get list of notes that failed to index",
"Failed indexes successfully retrieved",
"Retry indexing all failed notes",
"Retry of all failed indexes successfully initiated",
"Retry indexing a specific note that previously failed",
"Index retry successfully initiated",
"Index a specific note for LLM knowledge base",
"Note indexed successfully",
"Find notes similar to a query string",
"Similar notes found successfully",
"Generate context for an LLM query based on the knowledge base",
"Context generated successfully",
"Stream a message to an LLM via WebSocket",
"The ID of the chat note to stream messages to (formerly sessionId)",
"Whether to use advanced context extraction",
"Whether to show thinking process in the response",
"Streaming started successfully",
"Log in using documentSecret",
"The `hash` parameter is computed using a HMAC of the `documentSecret` and `timestamp`.",
"HMAC calculation",
"Sync version / document secret mismatch",
"Timestamp mismatch",
"Retrieve note metadata",
"Note metadata",
"Delete note",
"Note successfully deleted",
"Retrieve note content",
"Note content",
"Retrieve note metadata (limited to timestamps)",
"List available models from Ollama",
"Optional custom Ollama API base URL",
"List of available Ollama models",
"List available models from OpenAI",
"Optional custom OpenAI API base URL",
"List of available OpenAI models",
"Pull sync changes",
"Local instance ID",
"Last locally present change ID",
"Marker to identify this request in server log",
"Sync changes, limited to approximately one megabyte.",
"If `outstandingPullCount > 0`, pass this as parameter in your next request to continue.",
"Number of changes not yet returned by the remote.",
"Push sync changes",
"Basic usage: set `pageCount = 1`, `pageIndex = 0`, and omit `requestId`. Supply your entity changes in the request body.",
"ID to identify paginated requests",
"Changes processed successfully",
"Retrieve tree data",
"Limit tree data to this note and descendants",
"Notes, branches and attributes",
"Log in using password",
"This will give you a Trilium session, which is required for some other API endpoints. `totpToken` is only required if the user configured TOTP authentication.",
"Password / TOTP mismatch",
"If type = \"relation\", a note ID. Otherwise, the attribute content.",
"`null` if not text.",
"Equal to `{parentNoteId}_{noteId}`",
"Database table for this entity.",
"ID, referenced in `entity_changes` table.",
"Encoded entity data. Object has one property for each database column.",
"[Reference list](https://github.com/TriliumNext/Notes/blob/v0.91.6/src/services/note_types.ts)",
"12-character note ID. Special values: \"none\"`, `\"root\".",
"Result of `new Date().toISOString().replace('T', ' ')`",
"Username and password, formatted as `user:password`",
"Authentication",
"Synchronization"
]
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,198 @@
[
"Container of all the rendered script content",
"e.g.",
"ctrl+shift+a",
"specify namespace of the handler for the cases where call for bind may be repeated.\nIf a handler with this ID exists, it's replaced by the new handler.",
"Create a note link (jQuery object) for given note.",
"(or noteId)",
"Deprecated",
"use api.createLink() instead",
"Note where the script is currently executing, i.e. the note where the currently executing source code is written.",
"day.js library for date manipulation.\nSee",
"https://day.js.org",
"for documentation",
"See",
"this is producing local time! *",
"Returns",
"date in YYYY-MM-DD format",
"in bytes",
"use api.formatSize()",
"Returns day note for a given date. If it doesn't exist, it is automatically created.",
"Returns month-note. If it doesn't exist, it is automatically created.",
"Returns quarter note for given date. If such a note doesn't exist, it is automatically created.",
"Returns date-note for today. If it doesn't exist, it is automatically created.",
"Returns day note for the first date of the week of the given date. If it doesn't exist, it is automatically created.",
"Returns week note for given date. If such a note doesn't exist, it is automatically created.",
"Returns year-note. If it doesn't exist, it is automatically created.",
"Method",
"Entity whose event triggered this execution.",
"true to protect note, false to unprotect",
"true to protect subtree, false to unprotect",
"Return randomly generated string of given length. This random string generation is NOT cryptographically secure.",
"jquery object on which to set up the tooltip",
"Show confirm dialog to the user.",
"Show an error toast message to the user.",
"Show an info dialog to the user.",
"Show an info toast message to the user.",
"Show prompt dialog to the user.",
"Note where the script started executing, i.e., the (event) entrypoint of the current script execution.",
"Trigger command. This is a very low-level API which should be avoided if possible.",
"Trigger event. This is a very low-level API which should be avoided if possible.",
"Trilium runs in a backend and frontend process, when something is changed on the backend from a script,\nfrontend will get asynchronously synchronized.",
"This method returns a promise which resolves once all the backend -",
"frontend synchronization is finished.\nTypical use case is when a new note has been created, we should wait until it is synced into frontend and only then activate it.",
"Activates newly created note. Compared to this.activateNote() also makes sure that frontend has been fully synced.",
"Activates note in the tree and in the note detail.",
"Adds a new launcher to the launchbar. If the launcher (id) already exists, it will be updated.",
"you can now create/modify launchers in the top-left Menu -",
"Configure Launchbar\nfor special needs there's also backend API's createOrUpdateLauncher()",
"Adds given text to the editor cursor",
"this must be clear text, HTML is not supported.",
"https://codemirror.net/doc/manual.html#api",
"https://ckeditor.com/docs/ckeditor5/latest/api/module_core_editor_editor-Editor.html",
"for documentation on the returned instance.",
"Get access to the widget handling note detail. Methods like",
"and",
"to get to the\nimplementation of actual widget type.",
"Returns component which owns the given DOM element (the nearest parent component in DOM tree)",
"DOM element",
"Instance name identifies particular Trilium instance. It can be useful for scripts\nif some action needs to happen on only one specific instance.",
"Returns note by given noteId. If note is missing from the cache, it's loaded.",
"Returns list of notes. If note is missing from the cache, it's loaded.",
"This is often used to bulk-fill the cache with notes which would have to be picked one by one\notherwise (by e.g. createLink())",
"don't report error if the note is not found",
"Log given message to the log pane in UI",
"Open a note in a new split.",
"set to true to activate the new split, false to stay on the current split",
"Open a note in a new tab.",
"set to true to activate the new tab, false to stay on the current tab",
"This will refresh all currently opened notes which have included note specified in the parameter",
"noteId of the included note",
"Update frontend tree (note) cache from the backend.",
"Executes given anonymous function on the backend.\nInternally this serializes the anonymous function into string and sends it to backend via AJAX.\nThis function is meant for advanced needs where an async function is necessary.\nIn this case, the automatic request-scoped transaction management is not applied,\nand you need to manually define transaction via api.transactional().",
"If you have a synchronous function, please use api.runOnBackend().",
"(synchronous) function to be executed on the backend",
"list of parameters to the anonymous function to be sent to backend",
"Executes given anonymous function on the backend.\nInternally this serializes the anonymous function into string and sends it to backend via AJAX.\nPlease make sure that the supplied function is synchronous. Only sync functions will work correctly\nwith transaction management. If you really know what you're doing, you can call api.runAsyncOnBackendWithManualTransactionHandling()",
"This is a powerful search method - you can search by attributes and their values, e.g.:",
"#dateModified =* MONTH AND #log",
". See full documentation for all options at:",
"https://triliumnext.github.io/Docs/Wiki/search.html",
"Hoist note in the current tab. See",
"https://triliumnext.github.io/Docs/Wiki/note-hoisting.html",
"set hoisted note. 'root' will effectively unhoist",
"Note is the main node and concept in Trilium.",
"content-type, e.g.",
"application/json",
"Executes this FNote as a front-end or back-end script.",
"Throws",
"an Error if the note has an incorrect note type or MIME for execution.",
"Gives all possible note paths leading to this note. Paths containing search note are ignored (could form cycles)",
"attribute type (label, relation, etc.)",
"attribute name",
"attribute type to filter",
"attribute name to filter",
"Returns the note path considered to be the",
"best",
"use getParentBranches() instead",
"use getParentBranchIds() instead",
"label name",
"label name to filter",
"Provides note's date metadata.",
"use getBlob() instead",
"relation name",
"relation name to filter",
"Get relations which target this note",
"NOOP",
"This object contains",
"at your risk",
"no BC guarantees",
"objects for advanced use cases.",
"provides access to the backend in-memory object graph, see",
"Becca",
"Axios library for HTTP requests. See",
"https://axios-http.com",
"use native (browser compatible) fetch() instead",
"cheerio library for HTML parsing and manipulation. See",
"https://cheerio.js.org",
"Note where the script is currently executing. This comes into play when your script is spread in multiple code\nnotes, the script starts in",
"startNote",
", but then through function calls may jump into another note (currentNote).\nA similar concept in C would be",
"FILE",
"Don't mix this up with the concept of active note.",
"day.js library for date manipulation. See",
"Entity whose event triggered this execution",
"sql",
"Note where the script started executing (entrypoint).\nAs an analogy, in C this would be the file which contains the main() function of the current process.",
"xml2js library for XML parsing. See",
"https://github.com/Leonidas-from-XIV/node-xml2js",
"If the backupName is e.g.",
"now",
", then the backup will be written to",
"backup-now.db",
"file",
"Create data note - data in this context means object serializable to JSON. Created note will be of type 'code' and\nJSON MIME type. See also createNewNote() for more options.",
"create new note under this parent",
"should the note be JSON",
"please use createTextNote() with similar API for simpler use cases or createNewNote() for more complex needs",
"Creates a new launcher to the launchbar. If the launcher (id) already exists, it will be updated.",
"name of the boxicon to be used (e.g.",
"bx-time",
"id of the launcher, only alphanumeric at least 6 characters long",
"if true, will be created in the",
"Visible launchers",
", otherwise in",
"Available launchers",
"will activate the target note/script upon pressing, e.g.",
"ctrl+e",
"for type",
"script",
"note",
"one of",
"- activating the launcher will navigate to the target note (specified in targetNoteId param)",
"- activating the launcher will execute the script (specified in scriptNoteId param)",
"customWidget",
"- the launcher will be rendered with a custom widget (specified in widgetNoteId param)",
"Create text note. See also createNewNote() for more options.",
"If there's a branch between note and parent note, remove it. Otherwise, do nothing.",
"If there's no branch between note and parent note, create one. Otherwise, do nothing. Returns the new or existing branch.",
"if branch is created between note and parent note, set this prefix",
"either 'html' or 'markdown'",
"Returns day note for given date. If such note doesn't exist, it is created.",
"in YYYY-MM-DD format",
"specify calendar root note, normally leave empty to use the default calendar",
"Returns month note for given date. If such a note doesn't exist, it is created.",
"in YYYY-MM format",
"Retrieves notes with given label name",
"value",
"attribute value",
"Retrieves first note with given label name",
"Returns quarter note for given date. If such a note doesn't exist, it is created.",
"Returns root note of the calendar.",
"Returns today's day note. If such note doesn't exist, it is created.",
"Returns note for the first date of the week of the given date.",
"Returns week note for given date. If such a note doesn't exist, it is created.",
"Returns year note for given year. If such a note doesn't exist, it is created.",
"in YYYY format",
"Log given message to trilium logs and log pane in UI",
"of the string",
"Executes given anonymous function on the frontend(s).\nInternally, this serializes the anonymous function into string and sends it to frontend(s) via WebSocket.\nNote that there can be multiple connected frontend instances (e.g. in different tabs). In such case, all\ninstances execute the given function.",
"script to be executed on the frontend",
"list of parameters to the anonymous function to be sent to frontend",
"Sync process can make data intermittently inconsistent. Scripts which require strong data consistency\ncan use this function to wait for a possible sync process to finish and prevent new sync process from starting\nwhile it is running.",
"Because this is an async process, the inner callback doesn't have automatic transaction handling, so in case\nyou need to make some DB changes, you need to surround your call with api.transactional(...)",
"function to be executed while sync process is not running",
". See",
"for full documentation for all options",
"This method finds note by its noteId and prefix and either sets it to the given parentNoteId\nor removes the branch (if parentNoteId is not given).",
"This method looks similar to toggleNoteInParent() but differs because we're looking up branch by prefix.",
"this method is pretty confusing and serves specialized purpose only",
"Sort child notes of a given note.",
"'title', 'dateCreated', 'dateModified' or a label name\nSee",
"https://triliumnext.github.io/Docs/Wiki/sorting.html",
"for details.",
"Based on the value, either create or remove branch between note and parent note.",
"true if we want the branch to exist, false if we want it gone",
"This functions wraps code which is supposed to be running in transaction. If transaction already\nexists, then we'll use that transaction.",
"to unescape"
]
@@ -0,0 +1 @@
{"bugs":{"url":"https://github.com/swagger-api/swagger-ui/issues"},"dist":{"shasum":"aed230fe6e294c9470217e67697d601e3bb8eb9d","tarball":"https://registry.npmjs.org/swagger-ui-dist/-/swagger-ui-dist-5.21.0.tgz","fileCount":24,"integrity":"sha512-E0K3AB6HvQd8yQNSMR7eE5bk+323AUxjtCz/4ZNKiahOlPhPJxqn3UPIGs00cyY/dhrTDJ61L7C/a8u6zhGrZg==","signatures":[{"sig":"MEUCIQDXIQqBFZmdQVVV8fbD1WyoS9nG07X9ySnnkFSF4Kqe6gIgNRc0nVyHxcj2jS7KrFY3N82R529M5Jvaq4V8TBgecLI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11415132},"main":"index.js","name":"swagger-ui-dist","gitHead":"fceaec605072fbc717a04895bd19814d9a1c8e6d","license":"Apache-2.0","_npmUser":{"name":"swagger-api","email":"apiteam@swagger.io"},"homepage":"https://github.com/swagger-api/swagger-ui#readme","repository":{"url":"git+ssh://git@github.com/swagger-api/swagger-ui.git","type":"git"},"_npmVersion":"9.6.7","description":"[![NPM version](https://badge.fury.io/js/swagger-ui-dist.svg)](http://badge.fury.io/js/swagger-ui-dist)","directories":{},"maintainers":[{"name":"swagger-admin","email":"apiteam@swagger.io"},{"name":"ponelat","email":"jponelat@gmail.com"},{"name":"swagger-api","email":"apiteam@swagger.io"},{"name":"kyleshockey","email":"kyleshockey@gmail.com"}],"_nodeVersion":"18.17.1","contributors":[{"url":"in alphabetical order"},{"name":"Anna Bodnia","email":"anna.bodnia@gmail.com"},{"name":"Buu Nguyen","email":"buunguyen@gmail.com"},{"name":"Josh Ponelat","email":"jponelat@gmail.com"},{"name":"Kyle Shockey","email":"kyleshockey1@gmail.com"},{"name":"Robert Barnwell","email":"robert@robertismy.name"},{"name":"Sahar Jafari","email":"shr.jafari@gmail.com"}],"dependencies":{"@scarf/scarf":"=1.4.0"},"_hasShrinkwrap":false,"devDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/swagger-ui-dist_5.21.0_1744573302493_0.018087980981981833","host":"s3://npm-registry-packages-npm-production"},"_id":"swagger-ui-dist@5.21.0","version":"5.21.0"}
@@ -0,0 +1,202 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
@@ -0,0 +1,2 @@
swagger-ui
Copyright 2020-2021 SmartBear Software Inc.
Binary file not shown.

After

Width:  |  Height:  |  Size: 665 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 628 B

@@ -0,0 +1,79 @@
<!doctype html>
<html lang="en-US">
<head>
<title>Swagger UI: OAuth2 Redirect</title>
</head>
<body>
<script>
'use strict';
function run () {
var oauth2 = window.opener.swaggerUIRedirectOauth2;
var sentState = oauth2.state;
var redirectUrl = oauth2.redirectUrl;
var isValid, qp, arr;
if (/code|token|error/.test(window.location.hash)) {
qp = window.location.hash.substring(1).replace('?', '&');
} else {
qp = location.search.substring(1);
}
arr = qp.split("&");
arr.forEach(function (v,i,_arr) { _arr[i] = '"' + v.replace('=', '":"') + '"';});
qp = qp ? JSON.parse('{' + arr.join() + '}',
function (key, value) {
return key === "" ? value : decodeURIComponent(value);
}
) : {};
isValid = qp.state === sentState;
if ((
oauth2.auth.schema.get("flow") === "accessCode" ||
oauth2.auth.schema.get("flow") === "authorizationCode" ||
oauth2.auth.schema.get("flow") === "authorization_code"
) && !oauth2.auth.code) {
if (!isValid) {
oauth2.errCb({
authId: oauth2.auth.name,
source: "auth",
level: "warning",
message: "Authorization may be unsafe, passed state was changed in server. The passed state wasn't returned from auth server."
});
}
if (qp.code) {
delete oauth2.state;
oauth2.auth.code = qp.code;
oauth2.callback({auth: oauth2.auth, redirectUrl: redirectUrl});
} else {
let oauthErrorMsg;
if (qp.error) {
oauthErrorMsg = "["+qp.error+"]: " +
(qp.error_description ? qp.error_description+ ". " : "no accessCode received from the server. ") +
(qp.error_uri ? "More info: "+qp.error_uri : "");
}
oauth2.errCb({
authId: oauth2.auth.name,
source: "auth",
level: "error",
message: oauthErrorMsg || "[Authorization failed]: no accessCode received from the server."
});
}
} else {
oauth2.callback({auth: oauth2.auth, token: qp, isValid: isValid, redirectUrl: redirectUrl});
}
window.close();
}
if (document.readyState !== 'loading') {
run();
} else {
document.addEventListener('DOMContentLoaded', function () {
run();
});
}
</script>
</body>
</html>
@@ -0,0 +1,20 @@
{
"name": "swagger-ui-dist",
"version": "5.21.0",
"main": "index.js",
"repository": "git@github.com:swagger-api/swagger-ui.git",
"contributors": [
"(in alphabetical order)",
"Anna Bodnia <anna.bodnia@gmail.com>",
"Buu Nguyen <buunguyen@gmail.com>",
"Josh Ponelat <jponelat@gmail.com>",
"Kyle Shockey <kyleshockey1@gmail.com>",
"Robert Barnwell <robert@robertismy.name>",
"Sahar Jafari <shr.jafari@gmail.com>"
],
"license": "Apache-2.0",
"dependencies": {
"@scarf/scarf": "=1.4.0"
},
"devDependencies": {}
}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long