@types/node-red__runtime
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -8,10 +8,10 @@ // Type definitions for @node-red/runtime 1.3 | ||
import { CorsOptions } from 'cors'; | ||
import { Express, Request, Response, NextFunction } from 'express'; | ||
import { EventEmitter } from 'events'; | ||
import { ServerOptions, Server as HttpsServer } from 'https'; | ||
import { Strategy } from 'passport'; | ||
import { CorsOptions } from "cors"; | ||
import { EventEmitter } from "events"; | ||
import { Express, NextFunction, Request, Response } from "express"; | ||
import { Server as HttpsServer, ServerOptions } from "https"; | ||
import { Strategy } from "passport"; | ||
import { EditorAPIModule } from '@node-red/editor-api'; | ||
import { Util, Log, I18n, Hooks } from '@node-red/util'; | ||
import { EditorAPIModule } from "@node-red/editor-api"; | ||
import { Hooks, I18n, Log, Util } from "@node-red/util"; | ||
@@ -24,10 +24,10 @@ declare const runtime: runtime.RuntimeModule; | ||
type Permission = | ||
| '*' | ||
| 'read' | ||
| 'flows.read' | ||
| 'flows.write' | ||
| 'nodes.read' | ||
| 'nodes.write' | ||
| 'context.read' | ||
| 'context.write'; | ||
| "*" | ||
| "read" | ||
| "flows.read" | ||
| "flows.write" | ||
| "nodes.read" | ||
| "nodes.write" | ||
| "context.read" | ||
| "context.write"; | ||
@@ -189,31 +189,31 @@ interface UsernamePermissions { | ||
| { | ||
type: 'credentials'; | ||
users: Array<{ | ||
username: string; | ||
password: string; | ||
permissions: Permission | Permission[]; | ||
}>; | ||
default?: | ||
| { | ||
permissions: Permission | Permission[]; | ||
} | ||
| undefined; | ||
} | ||
type: "credentials"; | ||
users: Array<{ | ||
username: string; | ||
password: string; | ||
permissions: Permission | Permission[]; | ||
}>; | ||
default?: | ||
| { | ||
permissions: Permission | Permission[]; | ||
} | ||
| undefined; | ||
} | ||
| { | ||
type: 'credentials'; | ||
users: (username: string) => Promise<UsernamePermissions | null>; | ||
authenticate: (username: string, password: string) => Promise<UsernamePermissions | null>; | ||
default: () => Promise<AnonymousPermissions | null>; | ||
} | ||
type: "credentials"; | ||
users: (username: string) => Promise<UsernamePermissions | null>; | ||
authenticate: (username: string, password: string) => Promise<UsernamePermissions | null>; | ||
default: () => Promise<AnonymousPermissions | null>; | ||
} | ||
| { | ||
type: 'strategy'; | ||
strategy: { | ||
name: string; | ||
label: string; | ||
icon: string; | ||
strategy: Strategy; | ||
options: object; | ||
}; | ||
users: UsernamePermissions[]; | ||
} | ||
type: "strategy"; | ||
strategy: { | ||
name: string; | ||
label: string; | ||
icon: string; | ||
strategy: Strategy; | ||
options: object; | ||
}; | ||
users: UsernamePermissions[]; | ||
} | ||
| undefined; | ||
@@ -275,9 +275,9 @@ | ||
| (( | ||
info: { | ||
origin: string; | ||
req: Request; | ||
secure: boolean; | ||
}, | ||
callback: (result: boolean, code?: string, reason?: string) => void, | ||
) => void) | ||
info: { | ||
origin: string; | ||
req: Request; | ||
secure: boolean; | ||
}, | ||
callback: (result: boolean, code?: string, reason?: string) => void, | ||
) => void) | ||
| undefined; | ||
@@ -315,8 +315,8 @@ | ||
| { | ||
[key: string]: | ||
| string | ||
| { | ||
module: string; | ||
}; | ||
} | ||
[key: string]: | ||
| string | ||
| { | ||
module: string; | ||
}; | ||
} | ||
| undefined; | ||
@@ -338,31 +338,31 @@ | ||
| { | ||
/** | ||
* Only console logging is currently supported | ||
*/ | ||
console?: | ||
| { | ||
/** | ||
* Level of logging to be recorded. Options are: | ||
* fatal - only those errors which make the application unusable should be recorded | ||
* error - record errors which are deemed fatal for a particular request + fatal errors | ||
* warn - record problems which are non fatal + errors + fatal errors | ||
* info - record information about the general running of the application + warn + error + fatal errors | ||
* debug - record information which is more verbose than info + info + warn + error + fatal errors | ||
* trace - record very detailed logging + debug + info + warn + error + fatal errors | ||
* off - turn off all logging (doesn't affect metrics or audit) | ||
*/ | ||
level: 'fatal' | 'error' | 'warn' | 'info' | 'debug' | 'trace' | 'off'; | ||
/** | ||
* Only console logging is currently supported | ||
*/ | ||
console?: | ||
| { | ||
/** | ||
* Level of logging to be recorded. Options are: | ||
* fatal - only those errors which make the application unusable should be recorded | ||
* error - record errors which are deemed fatal for a particular request + fatal errors | ||
* warn - record problems which are non fatal + errors + fatal errors | ||
* info - record information about the general running of the application + warn + error + fatal errors | ||
* debug - record information which is more verbose than info + info + warn + error + fatal errors | ||
* trace - record very detailed logging + debug + info + warn + error + fatal errors | ||
* off - turn off all logging (doesn't affect metrics or audit) | ||
*/ | ||
level: "fatal" | "error" | "warn" | "info" | "debug" | "trace" | "off"; | ||
/** | ||
* Whether or not to include metric events in the log output | ||
*/ | ||
metrics: boolean; | ||
/** | ||
* Whether or not to include metric events in the log output | ||
*/ | ||
metrics: boolean; | ||
/** | ||
* Whether or not to include audit events in the log output | ||
*/ | ||
audit: boolean; | ||
} | ||
| undefined; | ||
} | ||
/** | ||
* Whether or not to include audit events in the log output | ||
*/ | ||
audit: boolean; | ||
} | ||
| undefined; | ||
} | ||
| undefined; | ||
@@ -375,109 +375,109 @@ | ||
| { | ||
page?: | ||
| { | ||
/** | ||
* Page title | ||
*/ | ||
title?: string | undefined; | ||
/** | ||
* Absolute path to theme icon | ||
*/ | ||
favicon?: string | undefined; | ||
/** | ||
* Absolute path to custom css file | ||
*/ | ||
css?: string | undefined; | ||
/** | ||
* Absolute paths to custom script files | ||
*/ | ||
scripts?: string[] | undefined; | ||
} | ||
| undefined; | ||
header?: | ||
| { | ||
/** | ||
* Header title | ||
*/ | ||
title?: string | undefined; | ||
/** | ||
* Absolute path to header image, or `null` to remove image | ||
*/ | ||
image?: string | null | undefined; | ||
/** | ||
* Url to make the header text/image a link to this url | ||
*/ | ||
url?: string | undefined; | ||
} | ||
| undefined; | ||
deployButton?: | ||
| { | ||
type: 'simple'; | ||
/** | ||
* Deploy button label | ||
*/ | ||
label: string; | ||
/** | ||
* Absolute path to deploy button image or `null` to remove image | ||
*/ | ||
icon: string; | ||
} | ||
| undefined; | ||
/** | ||
* Hide unwanted menu items by id | ||
*/ | ||
menu?: | ||
| { | ||
'menu-item-import-library'?: boolean | undefined; | ||
'menu-item-export-library'?: boolean | undefined; | ||
'menu-item-keyboard-shortcuts'?: boolean | undefined; | ||
'menu-item-help'?: | ||
| { | ||
/** Help Link Text */ | ||
label: string; | ||
/** Help Link URL */ | ||
url: string; | ||
} | ||
| undefined; | ||
} | ||
| undefined; | ||
/** | ||
* Hide the user-menu even if adminAuth is enabled | ||
*/ | ||
userMenu?: boolean | undefined; | ||
login?: | ||
| { | ||
image?: string | undefined; | ||
} | ||
| undefined; | ||
palette?: | ||
| { | ||
/** | ||
* Enable/disable the Palette Manager | ||
*/ | ||
editable?: boolean | undefined; | ||
/** | ||
* Alternative palette manager catalogues | ||
*/ | ||
catalogues?: string[] | undefined; | ||
/** | ||
* Override node colours - rules test against category/type by RegExp. | ||
*/ | ||
theme?: | ||
| Array<{ | ||
category: string; | ||
type: string; | ||
color: string; | ||
}> | ||
| undefined; | ||
} | ||
| undefined; | ||
projects?: | ||
| { | ||
/** | ||
* To enable the Projects feature, set this value to true | ||
*/ | ||
enabled: boolean; | ||
} | ||
| undefined; | ||
} | ||
page?: | ||
| { | ||
/** | ||
* Page title | ||
*/ | ||
title?: string | undefined; | ||
/** | ||
* Absolute path to theme icon | ||
*/ | ||
favicon?: string | undefined; | ||
/** | ||
* Absolute path to custom css file | ||
*/ | ||
css?: string | undefined; | ||
/** | ||
* Absolute paths to custom script files | ||
*/ | ||
scripts?: string[] | undefined; | ||
} | ||
| undefined; | ||
header?: | ||
| { | ||
/** | ||
* Header title | ||
*/ | ||
title?: string | undefined; | ||
/** | ||
* Absolute path to header image, or `null` to remove image | ||
*/ | ||
image?: string | null | undefined; | ||
/** | ||
* Url to make the header text/image a link to this url | ||
*/ | ||
url?: string | undefined; | ||
} | ||
| undefined; | ||
deployButton?: | ||
| { | ||
type: "simple"; | ||
/** | ||
* Deploy button label | ||
*/ | ||
label: string; | ||
/** | ||
* Absolute path to deploy button image or `null` to remove image | ||
*/ | ||
icon: string; | ||
} | ||
| undefined; | ||
/** | ||
* Hide unwanted menu items by id | ||
*/ | ||
menu?: | ||
| { | ||
"menu-item-import-library"?: boolean | undefined; | ||
"menu-item-export-library"?: boolean | undefined; | ||
"menu-item-keyboard-shortcuts"?: boolean | undefined; | ||
"menu-item-help"?: | ||
| { | ||
/** Help Link Text */ | ||
label: string; | ||
/** Help Link URL */ | ||
url: string; | ||
} | ||
| undefined; | ||
} | ||
| undefined; | ||
/** | ||
* Hide the user-menu even if adminAuth is enabled | ||
*/ | ||
userMenu?: boolean | undefined; | ||
login?: | ||
| { | ||
image?: string | undefined; | ||
} | ||
| undefined; | ||
palette?: | ||
| { | ||
/** | ||
* Enable/disable the Palette Manager | ||
*/ | ||
editable?: boolean | undefined; | ||
/** | ||
* Alternative palette manager catalogues | ||
*/ | ||
catalogues?: string[] | undefined; | ||
/** | ||
* Override node colours - rules test against category/type by RegExp. | ||
*/ | ||
theme?: | ||
| Array<{ | ||
category: string; | ||
type: string; | ||
color: string; | ||
}> | ||
| undefined; | ||
} | ||
| undefined; | ||
projects?: | ||
| { | ||
/** | ||
* To enable the Projects feature, set this value to true | ||
*/ | ||
enabled: boolean; | ||
} | ||
| undefined; | ||
} | ||
| undefined; | ||
@@ -880,3 +880,2 @@ | ||
/** | ||
* | ||
* @param opts | ||
@@ -1109,3 +1108,2 @@ * @param opts.user - the user calling the api | ||
/** | ||
* | ||
* @param opts | ||
@@ -1125,3 +1123,2 @@ * @param opts.user - the user calling the api | ||
/** | ||
* | ||
* @param opts | ||
@@ -1182,3 +1179,2 @@ * @param opts.user - the user calling the api | ||
/** | ||
* | ||
* @param opts | ||
@@ -1215,3 +1211,2 @@ * @param opts.user - the user calling the api | ||
/** | ||
* | ||
* @param opts | ||
@@ -1218,0 +1213,0 @@ * @param opts.user - the user calling the api |
{ | ||
"name": "@types/node-red__runtime", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "TypeScript definitions for @node-red/runtime", | ||
@@ -34,4 +34,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node-red__runtime", | ||
}, | ||
"typesPublisherContentHash": "2580e7193160461bfe96bc4f84fdc0488d1f9bee1d538a3b4aa2efde68a71d08", | ||
"typesPublisherContentHash": "c6faf4b0503efe81b570fbbb5643044b79fb895cb0d19d1405687d34d126bf0d", | ||
"typeScriptVersion": "4.7" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 13 Apr 2023 16:32:44 GMT | ||
* Last updated: Sat, 23 Sep 2023 20:38:33 GMT | ||
* Dependencies: [@types/cors](https://npmjs.com/package/@types/cors), [@types/express](https://npmjs.com/package/@types/express), [@types/node-red__editor-api](https://npmjs.com/package/@types/node-red__editor-api), [@types/node-red__util](https://npmjs.com/package/@types/node-red__util), [@types/passport](https://npmjs.com/package/@types/passport) | ||
@@ -14,0 +14,0 @@ * Global values: none |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
56656
1324