@transai/connector-runner-mqtt 0.28.0 → 0.34.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 +68 -0
- package/DOCUMENTATION.md +58 -0
- package/index.cjs +77 -82
- package/index.cjs.map +4 -4
- package/libs/connector-runtime-sdk/src/lib/sdk/http-client.interface.d.ts +2 -0
- package/libs/connector-runtime-sdk/src/lib/types/action.d.ts +2 -2
- package/libs/logger/src/lib/logger.d.ts +18 -2
- package/package.json +2 -2
- /package/{libs → integrations}/connector-runner-mqtt/src/index.d.ts +0 -0
- /package/{libs → integrations}/connector-runner-mqtt/src/lib/connector-runner-mqtt.d.ts +0 -0
- /package/{libs → integrations}/connector-runner-mqtt/src/lib/helper/bambu-body-filter.d.ts +0 -0
- /package/{libs → integrations}/connector-runner-mqtt/src/lib/helper/get-corresponding-collection.d.ts +0 -0
- /package/{libs → integrations}/connector-runner-mqtt/src/lib/mqtt.client.d.ts +0 -0
- /package/{libs → integrations}/connector-runner-mqtt/src/lib/types.d.ts +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,71 @@
|
|
|
1
|
+
## 0.34.1 (2026-10-02)
|
|
2
|
+
|
|
3
|
+
### 🧱 Updated Dependencies
|
|
4
|
+
|
|
5
|
+
- Updated @transai/connector-runtime-sdk to 0.22.1
|
|
6
|
+
|
|
7
|
+
## 0.34.0 (2026-09-14)
|
|
8
|
+
|
|
9
|
+
### 🧱 Updated Dependencies
|
|
10
|
+
|
|
11
|
+
- Updated @transai/connector-runtime-sdk to 0.22.0
|
|
12
|
+
|
|
13
|
+
## 0.33.0 (2026-08-13)
|
|
14
|
+
|
|
15
|
+
### 🧱 Updated Dependencies
|
|
16
|
+
|
|
17
|
+
- Updated @transai/connector-runtime-sdk to 0.21.0
|
|
18
|
+
|
|
19
|
+
## 0.32.1 (2026-08-12)
|
|
20
|
+
|
|
21
|
+
### 🧱 Updated Dependencies
|
|
22
|
+
|
|
23
|
+
- Updated @transai/connector-runtime-sdk to 0.20.1
|
|
24
|
+
|
|
25
|
+
## 0.32.0 (2026-08-05)
|
|
26
|
+
|
|
27
|
+
### 🧱 Updated Dependencies
|
|
28
|
+
|
|
29
|
+
- Updated @transai/connector-runtime-sdk to 0.20.0
|
|
30
|
+
|
|
31
|
+
## 0.31.1 (2026-07-20)
|
|
32
|
+
|
|
33
|
+
### 🧱 Updated Dependencies
|
|
34
|
+
|
|
35
|
+
- Updated @transai/connector-runtime-sdk to 0.19.1
|
|
36
|
+
|
|
37
|
+
## 0.31.0 (2026-06-22)
|
|
38
|
+
|
|
39
|
+
### 🧱 Updated Dependencies
|
|
40
|
+
|
|
41
|
+
- Updated @transai/connector-runtime-sdk to 0.19.0
|
|
42
|
+
|
|
43
|
+
## 0.30.0 (2026-06-01)
|
|
44
|
+
|
|
45
|
+
### 🧱 Updated Dependencies
|
|
46
|
+
|
|
47
|
+
- Updated @transai/connector-runtime-sdk to 0.18.0
|
|
48
|
+
|
|
49
|
+
## 0.29.0 (2026-05-12)
|
|
50
|
+
|
|
51
|
+
### 🧱 Updated Dependencies
|
|
52
|
+
|
|
53
|
+
- Updated @transai/connector-runtime-sdk to 0.17.0
|
|
54
|
+
|
|
55
|
+
## 0.28.0 (2026-05-06)
|
|
56
|
+
|
|
57
|
+
### 🚀 Features
|
|
58
|
+
|
|
59
|
+
- replace metricsLegacy with metrics in various components ([#1227](https://github.com/xip-online-applications/xod-core/pull/1227))
|
|
60
|
+
|
|
61
|
+
### 🧱 Updated Dependencies
|
|
62
|
+
|
|
63
|
+
- Updated @transai/connector-runtime-sdk to 0.16.0
|
|
64
|
+
|
|
65
|
+
### ❤️ Thank You
|
|
66
|
+
|
|
67
|
+
- Youri Lefers @yourilefers
|
|
68
|
+
|
|
1
69
|
## 0.27.0 (2026-04-20)
|
|
2
70
|
|
|
3
71
|
### 🧱 Updated Dependencies
|
package/DOCUMENTATION.md
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# Generic MQTT
|
|
2
|
+
|
|
3
|
+
The generic MQTT connector receives broker messages as metrics and publishes
|
|
4
|
+
workflow-triggered messages to configured brokers.
|
|
5
|
+
|
|
6
|
+
## Configuration
|
|
7
|
+
|
|
8
|
+
Configure one broker directly or an array of `servers`. Use `topics` for
|
|
9
|
+
collection mappings; the legacy `topic` setting supports a single subscription.
|
|
10
|
+
|
|
11
|
+
```json
|
|
12
|
+
{
|
|
13
|
+
"brokerUrl": "mqtts://broker.example.com:8883",
|
|
14
|
+
"clientId": "transai-mqtt",
|
|
15
|
+
"username": "<USERNAME>",
|
|
16
|
+
"password": "<PASSWORD>",
|
|
17
|
+
"topics": [
|
|
18
|
+
{
|
|
19
|
+
"topic": "factory/+/status",
|
|
20
|
+
"collection": "machine_status",
|
|
21
|
+
"metadataFields": ["machineId"]
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
`brokerUrl`, `clientId`, `username`, and `password` are required. TLS client
|
|
28
|
+
credentials can be supplied with `key`, `cert`, and `ca`. Topic patterns support
|
|
29
|
+
`+` and `#` wildcards.
|
|
30
|
+
|
|
31
|
+
## Incoming messages
|
|
32
|
+
|
|
33
|
+
The connector subscribes when it starts. JSON payloads are emitted as metrics
|
|
34
|
+
to the configured collection. A non-JSON payload is emitted as `{ "body":
|
|
35
|
+
"<message>" }`; trailing null terminators are removed. Fields named by
|
|
36
|
+
`metadataFields` are added to metric metadata when present.
|
|
37
|
+
|
|
38
|
+
## Publishing actions
|
|
39
|
+
|
|
40
|
+
Action configuration uses Handlebars templates evaluated with
|
|
41
|
+
`{ inputs: payload }`.
|
|
42
|
+
|
|
43
|
+
```json
|
|
44
|
+
{
|
|
45
|
+
"topic": "factory/{{inputs.machineId}}/command",
|
|
46
|
+
"payload": "{\"command\":\"{{inputs.command}}\"}"
|
|
47
|
+
}
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Optionally set `servers` to a templated JSON array of broker URLs to target
|
|
51
|
+
specific configured brokers. Without it, the message is published to every
|
|
52
|
+
configured broker.
|
|
53
|
+
|
|
54
|
+
## Failure behavior
|
|
55
|
+
|
|
56
|
+
Connection and template failures are logged. If an action selects no configured
|
|
57
|
+
broker, it returns a bad-request response. A message that does not match a
|
|
58
|
+
configured topic uses its topic as the collection and logs a warning.
|