@com55/node-red-ai-access 0.2.0-beta.1 → 0.2.0-beta.2

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/dist/plugin.d.cts CHANGED
@@ -23,8 +23,11 @@ interface AccessLinkCreated extends AccessLinkPublic {
23
23
  interface AccessLinkRecord {
24
24
  id: string;
25
25
  tokenHash: string;
26
- /** Raw token kept in memory so admins can re-copy the GET URL. */
27
- token: string;
26
+ /**
27
+ * @deprecated Legacy field: raw tokens are no longer kept. Only `tokenHash` is
28
+ * used for validation; any `token` on an inserted record is dropped.
29
+ */
30
+ token?: string;
28
31
  /**
29
32
  * Token surface. Optional for in-memory migration of pre-kind records
30
33
  * (treated as `get_link` by {@link resolveAccessLinkKind}).
@@ -82,11 +85,6 @@ declare class AccessLinkStore {
82
85
  private isActive;
83
86
  list(): AccessLinkPublic[];
84
87
  create(input?: CreateAccessLinkInput): AccessLinkCreated;
85
- /**
86
- * Raw token for an active link (in-memory only). Used to rebuild the GET URL
87
- * for admin "Copy link" — never logs the value.
88
- */
89
- peekToken(linkId: string): string | null;
90
88
  revoke(linkId: string): AccessLinkPublic;
91
89
  /**
92
90
  * Look up a link by id even if revoked/expired (still in memory).
@@ -602,7 +600,11 @@ interface NodeRedPluginSettings {
602
600
  userDir: string;
603
601
  httpAdminRoot?: string;
604
602
  httpNodeRoot?: string | false;
605
- httpStatic?: string | string[];
603
+ httpStatic?: string | (string | {
604
+ path: string;
605
+ root?: string;
606
+ })[];
607
+ httpStaticRoot?: string;
606
608
  adminAuth?: unknown;
607
609
  aiAccess?: AiAccessSettings;
608
610
  }
@@ -615,8 +617,13 @@ interface NodeRedPluginAPI {
615
617
  httpNode?: Express;
616
618
  nodes?: {
617
619
  eachNode(listener: (node: {
620
+ id?: string;
618
621
  type?: string;
619
622
  url?: string;
623
+ name?: string;
624
+ z?: string;
625
+ d?: boolean;
626
+ disabled?: boolean;
620
627
  }) => void): void;
621
628
  };
622
629
  events?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@com55/node-red-ai-access",
3
- "version": "0.2.0-beta.1",
3
+ "version": "0.2.0-beta.2",
4
4
  "description": "Node-RED plugin that gives AI agents temporary, owner-approved access via REST and MCP",
5
5
  "main": "dist/plugin.cjs",
6
6
  "types": "dist/plugin.d.cts",