@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/CHANGELOG.md +46 -0
- package/README.md +3 -3
- package/ai-access.html +1 -1
- package/dist/plugin.cjs +443 -163
- package/dist/plugin.d.cts +15 -8
- package/package.json +1 -1
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
|
-
/**
|
|
27
|
-
|
|
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