datanotes 1.4.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/SECURITY.md CHANGED
@@ -15,7 +15,11 @@ run on your own machine, for you and the agents you choose.
15
15
 
16
16
  - The HTTP server listens on `127.0.0.1` unless told otherwise (`--host`). It answers no CORS
17
17
  preflight, so web pages cannot call it.
18
- - Only `GET /` answers without a token (status and version).
18
+ - Only `GET /` (status and version), `GET /datanotes/openapi.json` (the API's description) and
19
+ `/datanotes/docs` (an interactive console over it, with its script and stylesheet) answer without
20
+ a token. They contain no data from the vault: the same description is published on the website.
21
+ The console's page loads nothing from other hosts (Content-Security-Policy: same origin only);
22
+ its calls need a token, which it keeps in the browser's local storage until you log out.
19
23
  - To reach it from outside (a phone, a hosted assistant), publish it through a reverse proxy or a
20
24
  tunnel, over HTTPS, and give each device or agent its own app token. Publish the MCP server
21
25
  (`datanotes-mcp serve`) the same way: it holds no credentials and passes each agent's token on.
@@ -15,5 +15,7 @@ export interface OperationDef {
15
15
  idempotentHint?: boolean;
16
16
  openWorldHint?: boolean;
17
17
  };
18
+ /** JSON Schema of the successful (2xx) response body, for the OpenAPI document; not sent to MCP clients. */
19
+ responseSchema?: Record<string, unknown>;
18
20
  }
19
21
  export declare const OPERATIONS: OperationDef[];