node-opcua-server-configuration 2.74.0 → 2.76.1

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.
Files changed (36) hide show
  1. package/dist/clientTools/index.d.ts +1 -1
  2. package/dist/clientTools/index.js +17 -17
  3. package/dist/clientTools/push_certificate_management_client.d.ts +176 -176
  4. package/dist/clientTools/push_certificate_management_client.js +463 -463
  5. package/dist/index.d.ts +10 -10
  6. package/dist/index.js +27 -27
  7. package/dist/push_certificate_manager.d.ts +141 -141
  8. package/dist/push_certificate_manager.js +2 -2
  9. package/dist/server/install_certificate_file_watcher.d.ts +5 -5
  10. package/dist/server/install_certificate_file_watcher.js +23 -23
  11. package/dist/server/install_push_certitifate_management.d.ts +19 -19
  12. package/dist/server/install_push_certitifate_management.js +213 -213
  13. package/dist/server/promote_trust_list.d.ts +6 -6
  14. package/dist/server/promote_trust_list.js +175 -175
  15. package/dist/server/push_certificate_manager_helpers.d.ts +4 -4
  16. package/dist/server/push_certificate_manager_helpers.js +410 -409
  17. package/dist/server/push_certificate_manager_helpers.js.map +1 -1
  18. package/dist/server/push_certificate_manager_server_impl.d.ts +49 -49
  19. package/dist/server/push_certificate_manager_server_impl.js +522 -522
  20. package/dist/server/roles_and_permissions.d.ts +3 -3
  21. package/dist/server/roles_and_permissions.js +40 -40
  22. package/dist/server/tools.d.ts +3 -3
  23. package/dist/server/tools.js +19 -19
  24. package/dist/server/trust_list_server.d.ts +13 -13
  25. package/dist/server/trust_list_server.js +89 -89
  26. package/dist/standard_certificate_types.d.ts +6 -6
  27. package/dist/standard_certificate_types.js +13 -13
  28. package/dist/trust_list.d.ts +79 -79
  29. package/dist/trust_list.js +2 -2
  30. package/dist/trust_list_impl.js +25 -25
  31. package/package.json +27 -27
  32. package/source/server/push_certificate_manager_helpers.ts +3 -3
  33. package/dist/server/install_CertificateAlarm.d.ts +0 -11
  34. package/dist/server/install_CertificateAlarm.js +0 -46
  35. package/dist/server/install_CertificateAlarm.js.map +0 -1
  36. package/source/server/install_CertificateAlarm.ts +0 -56
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-opcua-server-configuration",
3
- "version": "2.74.0",
3
+ "version": "2.76.1",
4
4
  "description": "pure nodejs OPCUA SDK - module -server",
5
5
  "scripts": {
6
6
  "build": "tsc -b",
@@ -11,38 +11,38 @@
11
11
  "main": "./dist/index.js",
12
12
  "types": "./dist/index.d.ts",
13
13
  "dependencies": {
14
+ "chalk": "4.1.2",
14
15
  "memfs": "^3.4.7",
15
- "node-opcua-address-space": "2.74.0",
16
- "node-opcua-address-space-base": "2.74.0",
17
- "node-opcua-assert": "2.74.0",
18
- "node-opcua-basic-types": "2.74.0",
19
- "node-opcua-certificate-manager": "2.74.0",
20
- "node-opcua-client": "2.74.0",
21
- "node-opcua-common": "2.74.0",
16
+ "node-opcua-address-space": "2.76.1",
17
+ "node-opcua-address-space-base": "2.76.0",
18
+ "node-opcua-assert": "2.76.0",
19
+ "node-opcua-basic-types": "2.76.0",
20
+ "node-opcua-binary-stream": "2.76.0",
21
+ "node-opcua-certificate-manager": "2.76.0",
22
+ "node-opcua-common": "2.76.0",
22
23
  "node-opcua-constants": "2.74.0",
23
24
  "node-opcua-crypto": "^1.11.0",
24
- "node-opcua-data-model": "2.74.0",
25
- "node-opcua-debug": "2.74.0",
26
- "node-opcua-file-transfer": "2.74.0",
27
- "node-opcua-hostname": "2.74.0",
28
- "node-opcua-nodeid": "2.74.0",
29
- "node-opcua-nodesets": "2.74.0",
25
+ "node-opcua-data-model": "2.76.0",
26
+ "node-opcua-debug": "2.76.0",
27
+ "node-opcua-file-transfer": "2.76.1",
28
+ "node-opcua-hostname": "2.76.0",
29
+ "node-opcua-nodeid": "2.76.0",
30
30
  "node-opcua-pki": "^2.17.0",
31
- "node-opcua-pseudo-session": "2.74.0",
32
- "node-opcua-secure-channel": "2.74.0",
33
- "node-opcua-server": "2.74.0",
34
- "node-opcua-service-translate-browse-path": "2.74.0",
35
- "node-opcua-status-code": "2.74.0",
36
- "node-opcua-types": "2.74.0",
37
- "node-opcua-variant": "2.74.0",
31
+ "node-opcua-pseudo-session": "2.76.0",
32
+ "node-opcua-secure-channel": "2.76.0",
33
+ "node-opcua-server": "2.76.1",
34
+ "node-opcua-service-translate-browse-path": "2.76.0",
35
+ "node-opcua-status-code": "2.76.0",
36
+ "node-opcua-types": "2.76.0",
37
+ "node-opcua-variant": "2.76.0",
38
38
  "rimraf": "^3.0.2"
39
39
  },
40
40
  "devDependencies": {
41
- "node-opcua-binary-stream": "2.74.0",
42
- "node-opcua-data-value": "2.74.0",
43
- "node-opcua-leak-detector": "2.74.0",
44
- "should": "^13.2.3",
45
- "sinon": "^14.0.0"
41
+ "node-opcua-client": "2.76.1",
42
+ "node-opcua-data-value": "2.76.0",
43
+ "node-opcua-leak-detector": "2.76.0",
44
+ "node-opcua-nodesets": "2.74.0",
45
+ "should": "^13.2.3"
46
46
  },
47
47
  "author": "Etienne Rossignon",
48
48
  "license": "MIT",
@@ -59,5 +59,5 @@
59
59
  "internet of things"
60
60
  ],
61
61
  "homepage": "http://node-opcua.github.io/",
62
- "gitHead": "003ee041795f3b737afaaef5721045ee31ea9f77"
62
+ "gitHead": "d87d1dc4ab8f153a442f83552e3264621f0a409b"
63
63
  }
@@ -375,7 +375,9 @@ export async function promoteCertificateGroup(certificateGroup: UACertificateGro
375
375
  conditionOf: certificateGroup,
376
376
  inputNode: NodeId.nullNodeId,
377
377
  normalState: NodeId.nullNodeId,
378
- optionals: ["ExpirationLimit"]
378
+ optionals: ["ExpirationLimit"],
379
+ conditionName: "CertificateExpired",
380
+ conditionClass: resolveNodeId("CertificateExpirationAlarmType"),
379
381
  });
380
382
  }
381
383
  certificateGroup.setEventNotifier(EventNotifierFlags.SubscribeToEvents);
@@ -468,8 +470,6 @@ export async function installPushCertificateManagement(
468
470
  serverConfiguration.applyChanges!.bindMethod(_applyChanges);
469
471
  }
470
472
 
471
- //xx installCertificateExpirationAlarm(addressSpace);
472
-
473
473
  const cg = serverConfiguration.certificateGroups.getComponents();
474
474
 
475
475
  const defaultApplicationGroup = serverConfiguration.certificateGroups.getComponentByName("DefaultApplicationGroup")!;
@@ -1,11 +0,0 @@
1
- /**
2
- * @module node-opcua-server-configuration-server
3
- */
4
- import { AddressSpace, UACertificateExpirationAlarmEx } from "node-opcua-address-space";
5
- /**
6
- *
7
- * @param addressSpace
8
- * @returns
9
- * @deprecated
10
- */
11
- export declare function installCertificateExpirationAlarm(addressSpace: AddressSpace): UACertificateExpirationAlarmEx;
@@ -1,46 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.installCertificateExpirationAlarm = void 0;
4
- /**
5
- * @module node-opcua-server-configuration-server
6
- */
7
- const node_opcua_address_space_1 = require("node-opcua-address-space");
8
- const node_opcua_debug_1 = require("node-opcua-debug");
9
- const node_opcua_nodeid_1 = require("node-opcua-nodeid");
10
- const node_opcua_variant_1 = require("node-opcua-variant");
11
- const debugLog = (0, node_opcua_debug_1.make_debugLog)("ServerConfiguration");
12
- const errorLog = (0, node_opcua_debug_1.make_errorLog)("ServerConfiguration");
13
- const doDebug = (0, node_opcua_debug_1.checkDebugFlag)("ServerConfiguration");
14
- /**
15
- *
16
- * @param addressSpace
17
- * @returns
18
- * @deprecated
19
- */
20
- function installCertificateExpirationAlarm(addressSpace) {
21
- var _a;
22
- debugLog("installCertificateExpirationAlarm");
23
- /**
24
- * note: the ServerCertificateAlarm is not in the OPCUA standard
25
- */
26
- const server = addressSpace.rootFolder.objects.server;
27
- const namespace = addressSpace.getOwnNamespace();
28
- const options = {
29
- browseName: "ServerCertificateAlarm",
30
- conditionSource: undefined,
31
- eventSourceOf: server,
32
- inputNode: new node_opcua_nodeid_1.NodeId(),
33
- normalState: new node_opcua_nodeid_1.NodeId(),
34
- optionals: ["ExpirationLimit"]
35
- };
36
- const certificateExpirationAlarm = (0, node_opcua_address_space_1.instantiateCertificateExpirationAlarm)(namespace, "CertificateExpirationAlarmType", options);
37
- certificateExpirationAlarm.currentBranch().setRetain(false);
38
- certificateExpirationAlarm.activeState.setValue(false);
39
- certificateExpirationAlarm.ackedState.setValue(false);
40
- (_a = certificateExpirationAlarm.suppressedState) === null || _a === void 0 ? void 0 : _a.setValue(false);
41
- certificateExpirationAlarm.certificate.setValueFromSource({ dataType: node_opcua_variant_1.DataType.ByteString, value: null });
42
- certificateExpirationAlarm.eventId.setValueFromSource({ dataType: node_opcua_variant_1.DataType.ByteString, value: null });
43
- return certificateExpirationAlarm;
44
- }
45
- exports.installCertificateExpirationAlarm = installCertificateExpirationAlarm;
46
- //# sourceMappingURL=install_CertificateAlarm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"install_CertificateAlarm.js","sourceRoot":"","sources":["../../source/server/install_CertificateAlarm.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,uEAMkC;AAGlC,uDAAgF;AAChF,yDAAuD;AACvD,2DAA8C;AAE9C,MAAM,QAAQ,GAAG,IAAA,gCAAa,EAAC,qBAAqB,CAAC,CAAC;AACtD,MAAM,QAAQ,GAAG,IAAA,gCAAa,EAAC,qBAAqB,CAAC,CAAC;AACtD,MAAM,OAAO,GAAG,IAAA,iCAAc,EAAC,qBAAqB,CAAC,CAAC;AAEtD;;;;;GAKG;AACH,SAAgB,iCAAiC,CAAC,YAA0B;;IACxE,QAAQ,CAAC,mCAAmC,CAAC,CAAC;IAC9C;;OAEG;IACH,MAAM,MAAM,GAAG,YAAY,CAAC,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC;IACtD,MAAM,SAAS,GAAG,YAAY,CAAC,eAAe,EAAE,CAAC;IAEjD,MAAM,OAAO,GAAqC;QAC9C,UAAU,EAAE,wBAAwB;QACpC,eAAe,EAAE,SAAS;QAC1B,aAAa,EAAE,MAAM;QACrB,SAAS,EAAE,IAAI,0BAAM,EAAE;QACvB,WAAW,EAAE,IAAI,0BAAM,EAAE;QACzB,SAAS,EAAE,CAAC,iBAAiB,CAAC;KACjC,CAAC;IACF,MAAM,0BAA0B,GAAG,IAAA,gEAAqC,EACpE,SAAS,EACT,gCAAgC,EAChC,OAAO,CACV,CAAC;IACF,0BAA0B,CAAC,aAAa,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAC5D,0BAA0B,CAAC,WAAW,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACvD,0BAA0B,CAAC,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACtD,MAAA,0BAA0B,CAAC,eAAe,0CAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC5D,0BAA0B,CAAC,WAAW,CAAC,kBAAkB,CAAC,EAAE,QAAQ,EAAE,6BAAQ,CAAC,UAAU,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;IAC1G,0BAA0B,CAAC,OAAO,CAAC,kBAAkB,CAAC,EAAE,QAAQ,EAAE,6BAAQ,CAAC,UAAU,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;IAEtG,OAAO,0BAA0B,CAAC;AACtC,CAAC;AA7BD,8EA6BC"}
@@ -1,56 +0,0 @@
1
- /**
2
- * @module node-opcua-server-configuration-server
3
- */
4
- import {
5
- AddressSpace,
6
- BaseNode,
7
- instantiateCertificateExpirationAlarm,
8
- UACertificateExpirationAlarmEx,
9
- UAObject
10
- } from "node-opcua-address-space";
11
- import { InstantiateOffNormalAlarmOptions } from "node-opcua-address-space";
12
- import { coerceQualifiedName, NodeClass } from "node-opcua-data-model";
13
- import { checkDebugFlag, make_debugLog, make_errorLog } from "node-opcua-debug";
14
- import { NodeId, sameNodeId } from "node-opcua-nodeid";
15
- import { DataType } from "node-opcua-variant";
16
-
17
- const debugLog = make_debugLog("ServerConfiguration");
18
- const errorLog = make_errorLog("ServerConfiguration");
19
- const doDebug = checkDebugFlag("ServerConfiguration");
20
-
21
- /**
22
- *
23
- * @param addressSpace
24
- * @returns
25
- * @deprecated
26
- */
27
- export function installCertificateExpirationAlarm(addressSpace: AddressSpace): UACertificateExpirationAlarmEx {
28
- debugLog("installCertificateExpirationAlarm");
29
- /**
30
- * note: the ServerCertificateAlarm is not in the OPCUA standard
31
- */
32
- const server = addressSpace.rootFolder.objects.server;
33
- const namespace = addressSpace.getOwnNamespace();
34
-
35
- const options: InstantiateOffNormalAlarmOptions = {
36
- browseName: "ServerCertificateAlarm",
37
- conditionSource: undefined,
38
- eventSourceOf: server,
39
- inputNode: new NodeId(),
40
- normalState: new NodeId(),
41
- optionals: ["ExpirationLimit"]
42
- };
43
- const certificateExpirationAlarm = instantiateCertificateExpirationAlarm(
44
- namespace,
45
- "CertificateExpirationAlarmType",
46
- options
47
- );
48
- certificateExpirationAlarm.currentBranch().setRetain(false);
49
- certificateExpirationAlarm.activeState.setValue(false);
50
- certificateExpirationAlarm.ackedState.setValue(false);
51
- certificateExpirationAlarm.suppressedState?.setValue(false);
52
- certificateExpirationAlarm.certificate.setValueFromSource({ dataType: DataType.ByteString, value: null });
53
- certificateExpirationAlarm.eventId.setValueFromSource({ dataType: DataType.ByteString, value: null });
54
-
55
- return certificateExpirationAlarm;
56
- }