@synnaxlabs/client 0.56.2 → 0.57.0
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/client-B08VDLSA.js +14463 -0
- package/dist/client-B08VDLSA.js.map +1 -0
- package/dist/client.js +1128 -14876
- package/dist/client.js.map +1 -0
- package/dist/src/access/client.d.ts +10 -1
- package/dist/src/access/client.d.ts.map +1 -1
- package/dist/src/access/enforce.d.ts.map +1 -1
- package/dist/src/access/external.d.ts +1 -0
- package/dist/src/access/external.d.ts.map +1 -1
- package/dist/src/access/granted.d.ts +39 -0
- package/dist/src/access/granted.d.ts.map +1 -0
- package/dist/src/access/policy/client.d.ts +136 -147
- package/dist/src/access/policy/client.d.ts.map +1 -1
- package/dist/src/access/policy/types.gen.d.ts +15 -68
- package/dist/src/access/policy/types.gen.d.ts.map +1 -1
- package/dist/src/access/role/client.d.ts +77 -58
- package/dist/src/access/role/client.d.ts.map +1 -1
- package/dist/src/access/role/types.gen.d.ts +8 -14
- package/dist/src/access/role/types.gen.d.ts.map +1 -1
- package/dist/src/actions/actions.d.ts +5 -6
- package/dist/src/actions/actions.d.ts.map +1 -1
- package/dist/src/actions/controller.d.ts +194 -0
- package/dist/src/actions/controller.d.ts.map +1 -0
- package/dist/src/actions/external.d.ts +1 -0
- package/dist/src/actions/external.d.ts.map +1 -1
- package/dist/src/arc/actions.d.ts +575 -0
- package/dist/src/arc/actions.d.ts.map +1 -0
- package/dist/src/arc/actions.gen.d.ts +1439 -0
- package/dist/src/arc/actions.gen.d.ts.map +1 -0
- package/dist/src/arc/client.d.ts +97 -13
- package/dist/src/arc/client.d.ts.map +1 -1
- package/dist/src/arc/compiler/types.gen.d.ts +3 -3
- package/dist/src/arc/compiler/types.gen.d.ts.map +1 -1
- package/dist/src/arc/external.d.ts +2 -0
- package/dist/src/arc/external.d.ts.map +1 -1
- package/dist/src/arc/graph/types.gen.d.ts +45 -597
- package/dist/src/arc/graph/types.gen.d.ts.map +1 -1
- package/dist/src/arc/ir/index.d.ts +1 -1
- package/dist/src/arc/ir/index.d.ts.map +1 -1
- package/dist/src/arc/ir/ir.d.ts +2 -0
- package/dist/src/arc/ir/ir.d.ts.map +1 -0
- package/dist/src/arc/ir/types.gen.d.ts +58 -2807
- package/dist/src/arc/ir/types.gen.d.ts.map +1 -1
- package/dist/src/arc/module/types.gen.d.ts +18 -1090
- package/dist/src/arc/module/types.gen.d.ts.map +1 -1
- package/dist/src/arc/program/types.gen.d.ts +18 -1090
- package/dist/src/arc/program/types.gen.d.ts.map +1 -1
- package/dist/src/arc/text/types.gen.d.ts +54 -1
- package/dist/src/arc/text/types.gen.d.ts.map +1 -1
- package/dist/src/arc/types/types.gen.d.ts +35 -153
- package/dist/src/arc/types/types.gen.d.ts.map +1 -1
- package/dist/src/arc/types.gen.d.ts +98 -2278
- package/dist/src/arc/types.gen.d.ts.map +1 -1
- package/dist/src/auth/auth.d.ts +14 -2
- package/dist/src/auth/auth.d.ts.map +1 -1
- package/dist/src/channel/client.d.ts +113 -75
- package/dist/src/channel/client.d.ts.map +1 -1
- package/dist/src/channel/external.d.ts +0 -1
- package/dist/src/channel/external.d.ts.map +1 -1
- package/dist/src/channel/payload.d.ts +65 -56
- package/dist/src/channel/payload.d.ts.map +1 -1
- package/dist/src/channel/types.gen.d.ts +26 -73
- package/dist/src/channel/types.gen.d.ts.map +1 -1
- package/dist/src/channel/writer.d.ts +1 -3
- package/dist/src/channel/writer.d.ts.map +1 -1
- package/dist/src/client.d.ts +55 -27
- package/dist/src/client.d.ts.map +1 -1
- package/dist/src/connection/client.d.ts +146 -0
- package/dist/src/connection/client.d.ts.map +1 -0
- package/dist/src/connection/external.d.ts +3 -0
- package/dist/src/connection/external.d.ts.map +1 -0
- package/dist/src/connection/index.d.ts +1 -1
- package/dist/src/connection/index.d.ts.map +1 -1
- package/dist/src/connection/status.d.ts +252 -0
- package/dist/src/connection/status.d.ts.map +1 -0
- package/dist/src/control/client.d.ts +31 -7
- package/dist/src/control/client.d.ts.map +1 -1
- package/dist/src/control/state.d.ts +47 -16
- package/dist/src/control/state.d.ts.map +1 -1
- package/dist/src/device/client.d.ts +59 -17
- package/dist/src/device/client.d.ts.map +1 -1
- package/dist/src/device/types.gen.d.ts +17 -67
- package/dist/src/device/types.gen.d.ts.map +1 -1
- package/dist/src/errors.d.ts +17 -20
- package/dist/src/errors.d.ts.map +1 -1
- package/dist/src/ethercat/external.d.ts +2 -0
- package/dist/src/ethercat/external.d.ts.map +1 -0
- package/dist/src/ethercat/index.d.ts +2 -0
- package/dist/src/ethercat/index.d.ts.map +1 -0
- package/dist/src/ethercat/types.gen.d.ts +243 -0
- package/dist/src/ethercat/types.gen.d.ts.map +1 -0
- package/dist/src/framer/adapter.d.ts +8 -5
- package/dist/src/framer/adapter.d.ts.map +1 -1
- package/dist/src/framer/benchutil.d.ts +19 -0
- package/dist/src/framer/benchutil.d.ts.map +1 -0
- package/dist/src/framer/cache/cache.d.ts +38 -0
- package/dist/src/framer/cache/cache.d.ts.map +1 -0
- package/dist/src/framer/cache/dynamic.d.ts +71 -0
- package/dist/src/framer/cache/dynamic.d.ts.map +1 -0
- package/dist/src/framer/cache/reader.d.ts +43 -0
- package/dist/src/framer/cache/reader.d.ts.map +1 -0
- package/dist/src/framer/cache/static.d.ts +66 -0
- package/dist/src/framer/cache/static.d.ts.map +1 -0
- package/dist/src/framer/cache/streamer.d.ts +86 -0
- package/dist/src/framer/cache/streamer.d.ts.map +1 -0
- package/dist/src/framer/cache/transform.d.ts +18 -0
- package/dist/src/framer/cache/transform.d.ts.map +1 -0
- package/dist/src/framer/cache/unary.d.ts +37 -0
- package/dist/src/framer/cache/unary.d.ts.map +1 -0
- package/dist/src/framer/client.d.ts +35 -14
- package/dist/src/framer/client.d.ts.map +1 -1
- package/dist/src/framer/codec.d.ts.map +1 -1
- package/dist/src/framer/deleter.d.ts +3 -2
- package/dist/src/framer/deleter.d.ts.map +1 -1
- package/dist/src/framer/external.d.ts +6 -0
- package/dist/src/framer/external.d.ts.map +1 -1
- package/dist/src/framer/feed.d.ts +40 -0
- package/dist/src/framer/feed.d.ts.map +1 -0
- package/dist/src/framer/frame.d.ts +16 -20
- package/dist/src/framer/frame.d.ts.map +1 -1
- package/dist/src/framer/hardened.d.ts +70 -0
- package/dist/src/framer/hardened.d.ts.map +1 -0
- package/dist/src/framer/iterator.d.ts +36 -43
- package/dist/src/framer/iterator.d.ts.map +1 -1
- package/dist/src/framer/reader.d.ts +3 -2
- package/dist/src/framer/reader.d.ts.map +1 -1
- package/dist/src/framer/streamer.d.ts +132 -205
- package/dist/src/framer/streamer.d.ts.map +1 -1
- package/dist/src/framer/writer.d.ts +130 -161
- package/dist/src/framer/writer.d.ts.map +1 -1
- package/dist/src/group/client.d.ts +66 -9
- package/dist/src/group/client.d.ts.map +1 -1
- package/dist/src/group/types.gen.d.ts +2 -2
- package/dist/src/http/external.d.ts +2 -0
- package/dist/src/http/external.d.ts.map +1 -0
- package/dist/src/http/index.d.ts +2 -0
- package/dist/src/http/index.d.ts.map +1 -0
- package/dist/src/http/types.gen.d.ts +451 -0
- package/dist/src/http/types.gen.d.ts.map +1 -0
- package/dist/src/imex/client.d.ts +88 -0
- package/dist/src/imex/client.d.ts.map +1 -0
- package/dist/src/imex/index.d.ts +2 -0
- package/dist/src/imex/index.d.ts.map +1 -0
- package/dist/src/index.d.ts +18 -5
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/label/client.d.ts +55 -36
- package/dist/src/label/client.d.ts.map +1 -1
- package/dist/src/label/external.d.ts +2 -0
- package/dist/src/label/external.d.ts.map +1 -1
- package/dist/src/label/payload.d.ts +4 -46
- package/dist/src/label/payload.d.ts.map +1 -1
- package/dist/src/label/store.d.ts +8 -0
- package/dist/src/label/store.d.ts.map +1 -0
- package/dist/src/label/types.gen.d.ts +45 -0
- package/dist/src/label/types.gen.d.ts.map +1 -0
- package/dist/src/labjack/external.d.ts +2 -0
- package/dist/src/labjack/external.d.ts.map +1 -0
- package/dist/src/labjack/index.d.ts +2 -0
- package/dist/src/labjack/index.d.ts.map +1 -0
- package/dist/src/labjack/types.gen.d.ts +442 -0
- package/dist/src/labjack/types.gen.d.ts.map +1 -0
- package/dist/src/lineplot/actions.d.ts +914 -0
- package/dist/src/lineplot/actions.d.ts.map +1 -0
- package/dist/src/lineplot/actions.gen.d.ts +4208 -0
- package/dist/src/lineplot/actions.gen.d.ts.map +1 -0
- package/dist/src/lineplot/client.d.ts +66 -16
- package/dist/src/lineplot/client.d.ts.map +1 -1
- package/dist/src/lineplot/external.d.ts +3 -0
- package/dist/src/lineplot/external.d.ts.map +1 -1
- package/dist/src/lineplot/line.d.ts +16 -0
- package/dist/src/lineplot/line.d.ts.map +1 -0
- package/dist/src/lineplot/types.gen.d.ts +837 -14
- package/dist/src/lineplot/types.gen.d.ts.map +1 -1
- package/dist/src/log/actions.d.ts +271 -0
- package/dist/src/log/actions.d.ts.map +1 -0
- package/dist/src/log/actions.gen.d.ts +1529 -0
- package/dist/src/log/actions.gen.d.ts.map +1 -0
- package/dist/src/log/client.d.ts +66 -16
- package/dist/src/log/client.d.ts.map +1 -1
- package/dist/src/log/external.d.ts +2 -0
- package/dist/src/log/external.d.ts.map +1 -1
- package/dist/src/log/types.gen.d.ts +139 -14
- package/dist/src/log/types.gen.d.ts.map +1 -1
- package/dist/src/modbus/external.d.ts +2 -0
- package/dist/src/modbus/external.d.ts.map +1 -0
- package/dist/src/modbus/index.d.ts +2 -0
- package/dist/src/modbus/index.d.ts.map +1 -0
- package/dist/src/modbus/types.gen.d.ts +280 -0
- package/dist/src/modbus/types.gen.d.ts.map +1 -0
- package/dist/src/ni/external.d.ts +2 -0
- package/dist/src/ni/external.d.ts.map +1 -0
- package/dist/src/ni/index.d.ts +2 -0
- package/dist/src/ni/index.d.ts.map +1 -0
- package/dist/src/ni/types.gen.d.ts +21029 -0
- package/dist/src/ni/types.gen.d.ts.map +1 -0
- package/dist/src/node/index.d.ts +2 -0
- package/dist/src/node/index.d.ts.map +1 -0
- package/dist/src/node/types.gen.d.ts +4 -0
- package/dist/src/node/types.gen.d.ts.map +1 -0
- package/dist/src/ontology/client.d.ts +314 -67
- package/dist/src/ontology/client.d.ts.map +1 -1
- package/dist/src/ontology/external.d.ts +1 -0
- package/dist/src/ontology/external.d.ts.map +1 -1
- package/dist/src/ontology/payload.d.ts +60 -18
- package/dist/src/ontology/payload.d.ts.map +1 -1
- package/dist/src/ontology/store.d.ts +32 -0
- package/dist/src/ontology/store.d.ts.map +1 -0
- package/dist/src/ontology/types.gen.d.ts +3 -2
- package/dist/src/ontology/types.gen.d.ts.map +1 -1
- package/dist/src/ontology/writer.d.ts +16 -10
- package/dist/src/ontology/writer.d.ts.map +1 -1
- package/dist/src/opcua/external.d.ts +2 -0
- package/dist/src/opcua/external.d.ts.map +1 -0
- package/dist/src/opcua/index.d.ts +2 -0
- package/dist/src/opcua/index.d.ts.map +1 -0
- package/dist/src/opcua/types.gen.d.ts +82 -0
- package/dist/src/opcua/types.gen.d.ts.map +1 -0
- package/dist/src/pagerduty/external.d.ts +2 -0
- package/dist/src/pagerduty/external.d.ts.map +1 -0
- package/dist/src/pagerduty/index.d.ts +2 -0
- package/dist/src/pagerduty/index.d.ts.map +1 -0
- package/dist/src/pagerduty/types.gen.d.ts +30 -0
- package/dist/src/pagerduty/types.gen.d.ts.map +1 -0
- package/dist/src/panel/actions.d.ts +273 -0
- package/dist/src/panel/actions.d.ts.map +1 -0
- package/dist/src/panel/actions.gen.d.ts +1255 -0
- package/dist/src/panel/actions.gen.d.ts.map +1 -0
- package/dist/src/panel/client.d.ts +148 -0
- package/dist/src/panel/client.d.ts.map +1 -0
- package/dist/src/panel/external.d.ts +6 -0
- package/dist/src/panel/external.d.ts.map +1 -0
- package/dist/src/panel/index.d.ts +2 -0
- package/dist/src/panel/index.d.ts.map +1 -0
- package/dist/src/panel/tree.d.ts +50 -0
- package/dist/src/panel/tree.d.ts.map +1 -0
- package/dist/src/panel/types.gen.d.ts +370 -0
- package/dist/src/panel/types.gen.d.ts.map +1 -0
- package/dist/src/project/client.d.ts +89 -0
- package/dist/src/project/client.d.ts.map +1 -0
- package/dist/src/project/external.d.ts.map +1 -0
- package/dist/src/project/index.d.ts +2 -0
- package/dist/src/project/index.d.ts.map +1 -0
- package/dist/src/project/types.gen.d.ts +27 -0
- package/dist/src/project/types.gen.d.ts.map +1 -0
- package/dist/src/query/cache.d.ts +132 -0
- package/dist/src/query/cache.d.ts.map +1 -0
- package/dist/src/query/deleted.d.ts +20 -0
- package/dist/src/query/deleted.d.ts.map +1 -0
- package/dist/src/query/derived.d.ts +33 -0
- package/dist/src/query/derived.d.ts.map +1 -0
- package/dist/src/query/external.d.ts +10 -0
- package/dist/src/query/external.d.ts.map +1 -0
- package/dist/src/query/index.d.ts +2 -0
- package/dist/src/query/index.d.ts.map +1 -0
- package/dist/src/query/query.d.ts +235 -0
- package/dist/src/query/query.d.ts.map +1 -0
- package/dist/src/query/retriever.d.ts +135 -0
- package/dist/src/query/retriever.d.ts.map +1 -0
- package/dist/src/query/streamer.d.ts +67 -0
- package/dist/src/query/streamer.d.ts.map +1 -0
- package/dist/src/query/table.d.ts +219 -0
- package/dist/src/query/table.d.ts.map +1 -0
- package/dist/src/query/types.d.ts +35 -0
- package/dist/src/query/types.d.ts.map +1 -0
- package/dist/src/query/write.d.ts +21 -0
- package/dist/src/query/write.d.ts.map +1 -0
- package/dist/src/rack/client.d.ts +58 -20
- package/dist/src/rack/client.d.ts.map +1 -1
- package/dist/src/rack/types.gen.d.ts +11 -12
- package/dist/src/rack/types.gen.d.ts.map +1 -1
- package/dist/src/range/alias/types.gen.d.ts +2 -3
- package/dist/src/range/alias/types.gen.d.ts.map +1 -1
- package/dist/src/ranger/client.d.ts +138 -27
- package/dist/src/ranger/client.d.ts.map +1 -1
- package/dist/src/ranger/kv/client.d.ts +7 -4
- package/dist/src/ranger/kv/client.d.ts.map +1 -1
- package/dist/src/ranger/payload.d.ts +3 -0
- package/dist/src/ranger/payload.d.ts.map +1 -1
- package/dist/src/ranger/types.gen.d.ts +45 -101
- package/dist/src/ranger/types.gen.d.ts.map +1 -1
- package/dist/src/ranger/writer.d.ts +2 -74
- package/dist/src/ranger/writer.d.ts.map +1 -1
- package/dist/src/schematic/actions.d.ts +90 -33
- package/dist/src/schematic/actions.d.ts.map +1 -1
- package/dist/src/schematic/actions.gen.d.ts +207 -114
- package/dist/src/schematic/actions.gen.d.ts.map +1 -1
- package/dist/src/schematic/client.d.ts +70 -68
- package/dist/src/schematic/client.d.ts.map +1 -1
- package/dist/src/schematic/symbol/client.d.ts +133 -27
- package/dist/src/schematic/symbol/client.d.ts.map +1 -1
- package/dist/src/schematic/symbol/types.gen.d.ts +258 -153
- package/dist/src/schematic/symbol/types.gen.d.ts.map +1 -1
- package/dist/src/schematic/types.gen.d.ts +17 -96
- package/dist/src/schematic/types.gen.d.ts.map +1 -1
- package/dist/src/status/client.d.ts +69 -14
- package/dist/src/status/client.d.ts.map +1 -1
- package/dist/src/status/external.d.ts +2 -0
- package/dist/src/status/external.d.ts.map +1 -1
- package/dist/src/status/payload.d.ts +2 -36
- package/dist/src/status/payload.d.ts.map +1 -1
- package/dist/src/status/status.d.ts +65 -0
- package/dist/src/status/status.d.ts.map +1 -0
- package/dist/src/status/types.gen.d.ts +58 -0
- package/dist/src/status/types.gen.d.ts.map +1 -0
- package/dist/src/table/actions.d.ts +72 -13
- package/dist/src/table/actions.d.ts.map +1 -1
- package/dist/src/table/actions.gen.d.ts +221 -137
- package/dist/src/table/actions.gen.d.ts.map +1 -1
- package/dist/src/table/client.d.ts +64 -40
- package/dist/src/table/client.d.ts.map +1 -1
- package/dist/src/table/types.gen.d.ts +20 -55
- package/dist/src/table/types.gen.d.ts.map +1 -1
- package/dist/src/task/client.d.ts +149 -28
- package/dist/src/task/client.d.ts.map +1 -1
- package/dist/src/task/types.gen.d.ts +71 -89
- package/dist/src/task/types.gen.d.ts.map +1 -1
- package/dist/src/testutil/access.d.ts +27 -1
- package/dist/src/testutil/access.d.ts.map +1 -1
- package/dist/src/testutil/channels.d.ts +2 -0
- package/dist/src/testutil/channels.d.ts.map +1 -1
- package/dist/src/testutil/client.d.ts +5 -0
- package/dist/src/testutil/client.d.ts.map +1 -1
- package/dist/src/testutil/connection.d.ts +10 -0
- package/dist/src/testutil/connection.d.ts.map +1 -0
- package/dist/src/testutil/index.d.ts +9 -0
- package/dist/src/testutil/index.d.ts.map +1 -0
- package/dist/src/testutil/panels.d.ts +8 -0
- package/dist/src/testutil/panels.d.ts.map +1 -0
- package/dist/src/testutil/proxy.d.ts +29 -0
- package/dist/src/testutil/proxy.d.ts.map +1 -0
- package/dist/src/testutil/query.d.ts +7 -0
- package/dist/src/testutil/query.d.ts.map +1 -0
- package/dist/src/testutil/telem.d.ts +4 -0
- package/dist/src/testutil/telem.d.ts.map +1 -1
- package/dist/src/transport.d.ts +10 -4
- package/dist/src/transport.d.ts.map +1 -1
- package/dist/src/user/client.d.ts +29 -28
- package/dist/src/user/client.d.ts.map +1 -1
- package/dist/src/user/external.d.ts +1 -1
- package/dist/src/user/external.d.ts.map +1 -1
- package/dist/src/user/types.gen.d.ts +4 -4
- package/dist/src/util/retrieve.d.ts +2 -2
- package/dist/src/util/retrieve.d.ts.map +1 -1
- package/dist/src/util/telem.d.ts.map +1 -1
- package/dist/src/view/client.d.ts +30 -14
- package/dist/src/view/client.d.ts.map +1 -1
- package/dist/src/view/types.gen.d.ts +7 -15
- package/dist/src/view/types.gen.d.ts.map +1 -1
- package/dist/testutil.js +189 -0
- package/dist/testutil.js.map +1 -0
- package/package.json +40 -17
- package/src/access/client.ts +14 -3
- package/src/access/enforce.ts +0 -3
- package/src/access/external.ts +1 -0
- package/src/access/granted.ts +114 -0
- package/src/access/policy/client.ts +135 -43
- package/src/access/policy/types.gen.ts +9 -11
- package/src/access/role/client.ts +160 -38
- package/src/access/role/types.gen.ts +8 -12
- package/src/actions/actions.ts +5 -6
- package/src/actions/controller.ts +626 -0
- package/src/actions/external.ts +11 -0
- package/src/arc/actions.gen.ts +313 -0
- package/src/arc/actions.ts +192 -0
- package/src/arc/client.ts +424 -41
- package/src/arc/compiler/types.gen.ts +5 -6
- package/src/arc/external.ts +2 -0
- package/src/arc/graph/types.gen.ts +24 -22
- package/src/arc/ir/index.ts +1 -1
- package/{eslint.config.ts → src/arc/ir/ir.ts} +1 -4
- package/src/arc/ir/types.gen.ts +42 -41
- package/src/arc/text/types.gen.ts +21 -2
- package/src/arc/types/types.gen.ts +40 -32
- package/src/arc/types.gen.ts +31 -29
- package/src/auth/auth.ts +40 -8
- package/src/channel/client.ts +529 -132
- package/src/channel/external.ts +0 -1
- package/src/channel/payload.ts +30 -3
- package/src/channel/types.gen.ts +37 -48
- package/src/channel/writer.ts +2 -11
- package/src/client.ts +215 -91
- package/src/connection/client.ts +495 -0
- package/src/connection/external.ts +34 -0
- package/src/connection/index.ts +1 -1
- package/src/connection/status.ts +442 -0
- package/src/control/client.ts +84 -12
- package/src/control/state.ts +17 -36
- package/src/device/client.ts +293 -41
- package/src/device/types.gen.ts +15 -26
- package/src/errors.ts +45 -22
- package/src/{workspace → ethercat}/external.ts +1 -2
- package/src/{workspace → ethercat}/index.ts +1 -1
- package/src/ethercat/types.gen.ts +151 -0
- package/src/framer/adapter.ts +60 -37
- package/src/framer/benchutil.ts +67 -0
- package/src/framer/cache/cache.ts +115 -0
- package/src/framer/cache/dynamic.ts +279 -0
- package/src/framer/cache/reader.ts +160 -0
- package/src/framer/cache/static.ts +215 -0
- package/src/framer/cache/streamer.ts +391 -0
- package/src/framer/cache/transform.ts +31 -0
- package/src/framer/cache/unary.ts +104 -0
- package/src/framer/client.ts +71 -43
- package/src/framer/codec.ts +55 -18
- package/src/framer/deleter.ts +4 -6
- package/src/framer/external.ts +10 -0
- package/src/framer/feed.ts +108 -0
- package/src/framer/frame.ts +13 -23
- package/src/framer/hardened.ts +283 -0
- package/src/framer/iterator.ts +31 -42
- package/src/framer/reader.ts +11 -11
- package/src/framer/streamer.ts +18 -178
- package/src/framer/writer.ts +39 -59
- package/src/group/client.ts +158 -23
- package/src/http/external.ts +10 -0
- package/src/{cluster → http}/index.ts +1 -1
- package/src/http/types.gen.ts +245 -0
- package/src/imex/client.ts +125 -0
- package/src/imex/index.ts +10 -0
- package/src/index.ts +18 -6
- package/src/label/client.ts +193 -54
- package/src/label/external.ts +2 -0
- package/src/label/payload.ts +4 -9
- package/src/label/store.ts +28 -0
- package/src/label/types.gen.ts +31 -0
- package/src/labjack/external.ts +10 -0
- package/src/labjack/index.ts +10 -0
- package/src/labjack/types.gen.ts +251 -0
- package/src/lineplot/actions.gen.ts +880 -0
- package/src/lineplot/actions.ts +535 -0
- package/src/lineplot/client.ts +224 -52
- package/src/lineplot/external.ts +3 -0
- package/src/lineplot/line.ts +80 -0
- package/src/lineplot/types.gen.ts +225 -12
- package/src/log/actions.gen.ts +474 -0
- package/src/log/actions.ts +242 -0
- package/src/log/client.ts +223 -52
- package/src/log/external.ts +2 -0
- package/src/log/types.gen.ts +45 -14
- package/src/modbus/external.ts +10 -0
- package/src/modbus/index.ts +10 -0
- package/src/modbus/types.gen.ts +185 -0
- package/src/ni/external.ts +10 -0
- package/src/ni/index.ts +10 -0
- package/src/ni/types.gen.ts +1632 -0
- package/src/node/index.ts +10 -0
- package/src/{cluster → node}/types.gen.ts +2 -2
- package/src/ontology/client.ts +408 -99
- package/src/ontology/external.ts +7 -0
- package/src/ontology/payload.ts +48 -7
- package/src/ontology/store.ts +83 -0
- package/src/ontology/types.gen.ts +2 -1
- package/src/ontology/writer.ts +1 -0
- package/src/opcua/external.ts +10 -0
- package/src/opcua/index.ts +10 -0
- package/src/opcua/types.gen.ts +65 -0
- package/src/pagerduty/external.ts +10 -0
- package/src/pagerduty/index.ts +10 -0
- package/src/pagerduty/types.gen.ts +41 -0
- package/src/panel/actions.gen.ts +267 -0
- package/src/panel/actions.ts +357 -0
- package/src/panel/client.ts +327 -0
- package/src/panel/external.ts +14 -0
- package/src/panel/index.ts +10 -0
- package/src/panel/tree.ts +163 -0
- package/src/panel/types.gen.ts +164 -0
- package/src/project/client.ts +273 -0
- package/src/project/external.ts +11 -0
- package/src/project/index.ts +10 -0
- package/src/project/types.gen.ts +40 -0
- package/src/query/cache.ts +326 -0
- package/src/query/deleted.ts +38 -0
- package/src/query/derived.ts +101 -0
- package/src/query/external.ts +51 -0
- package/src/query/index.ts +10 -0
- package/src/query/query.ts +865 -0
- package/src/query/retriever.ts +308 -0
- package/src/query/streamer.ts +207 -0
- package/src/query/table.ts +625 -0
- package/src/query/types.ts +54 -0
- package/src/query/write.ts +42 -0
- package/src/rack/client.ts +233 -45
- package/src/rack/types.gen.ts +15 -16
- package/src/range/alias/types.gen.ts +2 -3
- package/src/ranger/client.ts +581 -70
- package/src/ranger/kv/client.ts +52 -21
- package/src/ranger/payload.ts +3 -0
- package/src/ranger/types.gen.ts +21 -23
- package/src/ranger/writer.ts +4 -8
- package/src/schematic/actions.gen.ts +62 -53
- package/src/schematic/actions.ts +44 -42
- package/src/schematic/client.ts +226 -70
- package/src/schematic/symbol/client.ts +277 -48
- package/src/schematic/symbol/types.gen.ts +22 -34
- package/src/schematic/types.gen.ts +22 -29
- package/src/status/client.ts +321 -44
- package/src/status/external.ts +2 -0
- package/src/status/payload.ts +1 -23
- package/src/status/status.ts +241 -0
- package/src/status/types.gen.ts +108 -0
- package/src/table/actions.gen.ts +96 -63
- package/src/table/actions.ts +44 -19
- package/src/table/client.ts +220 -56
- package/src/table/types.gen.ts +24 -31
- package/src/task/client.ts +580 -101
- package/src/task/types.gen.ts +68 -75
- package/src/testutil/access.ts +102 -6
- package/src/testutil/channels.ts +29 -0
- package/src/testutil/client.ts +27 -2
- package/src/testutil/connection.ts +47 -0
- package/src/testutil/index.ts +17 -0
- package/src/testutil/panels.ts +26 -0
- package/src/testutil/proxy.ts +106 -0
- package/src/testutil/query.ts +28 -0
- package/src/testutil/telem.ts +17 -1
- package/src/transport.ts +18 -7
- package/src/user/client.ts +165 -64
- package/src/user/external.ts +1 -1
- package/src/user/types.gen.ts +5 -5
- package/src/util/retrieve.ts +4 -4
- package/src/util/telem.ts +0 -1
- package/src/view/client.ts +120 -37
- package/src/view/types.gen.ts +8 -11
- package/.turbo/turbo-build.log +0 -20
- package/.vscode/settings.json +0 -3
- package/CONTRIBUTING.md +0 -47
- package/dist/client.cjs +0 -118
- package/dist/eslint.config.d.ts +0 -4
- package/dist/eslint.config.d.ts.map +0 -1
- package/dist/src/access/enforce.spec.d.ts +0 -2
- package/dist/src/access/enforce.spec.d.ts.map +0 -1
- package/dist/src/access/policy/access.spec.d.ts +0 -2
- package/dist/src/access/policy/access.spec.d.ts.map +0 -1
- package/dist/src/access/role/role.spec.d.ts +0 -2
- package/dist/src/access/role/role.spec.d.ts.map +0 -1
- package/dist/src/actions/actions.spec.d.ts +0 -2
- package/dist/src/actions/actions.spec.d.ts.map +0 -1
- package/dist/src/arc/access.spec.d.ts +0 -2
- package/dist/src/arc/access.spec.d.ts.map +0 -1
- package/dist/src/arc/arc.spec.d.ts +0 -2
- package/dist/src/arc/arc.spec.d.ts.map +0 -1
- package/dist/src/arc/lsp.spec.d.ts +0 -2
- package/dist/src/arc/lsp.spec.d.ts.map +0 -1
- package/dist/src/auth/auth.spec.d.ts +0 -2
- package/dist/src/auth/auth.spec.d.ts.map +0 -1
- package/dist/src/channel/access.spec.d.ts +0 -2
- package/dist/src/channel/access.spec.d.ts.map +0 -1
- package/dist/src/channel/batchRetriever.spec.d.ts +0 -2
- package/dist/src/channel/batchRetriever.spec.d.ts.map +0 -1
- package/dist/src/channel/channel.spec.d.ts +0 -2
- package/dist/src/channel/channel.spec.d.ts.map +0 -1
- package/dist/src/channel/payload.spec.d.ts +0 -2
- package/dist/src/channel/payload.spec.d.ts.map +0 -1
- package/dist/src/channel/retriever.d.ts +0 -64
- package/dist/src/channel/retriever.d.ts.map +0 -1
- package/dist/src/cluster/index.d.ts +0 -2
- package/dist/src/cluster/index.d.ts.map +0 -1
- package/dist/src/cluster/types.gen.d.ts +0 -4
- package/dist/src/cluster/types.gen.d.ts.map +0 -1
- package/dist/src/connection/checker.d.ts +0 -86
- package/dist/src/connection/checker.d.ts.map +0 -1
- package/dist/src/connection/connection.spec.d.ts +0 -2
- package/dist/src/connection/connection.spec.d.ts.map +0 -1
- package/dist/src/connection.spec.d.ts +0 -2
- package/dist/src/connection.spec.d.ts.map +0 -1
- package/dist/src/control/state.spec.d.ts +0 -2
- package/dist/src/control/state.spec.d.ts.map +0 -1
- package/dist/src/device/access.spec.d.ts +0 -2
- package/dist/src/device/access.spec.d.ts.map +0 -1
- package/dist/src/device/device.spec.d.ts +0 -2
- package/dist/src/device/device.spec.d.ts.map +0 -1
- package/dist/src/device/payload.spec.d.ts +0 -2
- package/dist/src/device/payload.spec.d.ts.map +0 -1
- package/dist/src/errors.spec.d.ts +0 -2
- package/dist/src/errors.spec.d.ts.map +0 -1
- package/dist/src/framer/adapter.spec.d.ts +0 -2
- package/dist/src/framer/adapter.spec.d.ts.map +0 -1
- package/dist/src/framer/client.spec.d.ts +0 -2
- package/dist/src/framer/client.spec.d.ts.map +0 -1
- package/dist/src/framer/codec.spec.d.ts +0 -2
- package/dist/src/framer/codec.spec.d.ts.map +0 -1
- package/dist/src/framer/deleter.spec.d.ts +0 -2
- package/dist/src/framer/deleter.spec.d.ts.map +0 -1
- package/dist/src/framer/frame.spec.d.ts +0 -2
- package/dist/src/framer/frame.spec.d.ts.map +0 -1
- package/dist/src/framer/iterator.spec.d.ts +0 -2
- package/dist/src/framer/iterator.spec.d.ts.map +0 -1
- package/dist/src/framer/reader.spec.d.ts +0 -2
- package/dist/src/framer/reader.spec.d.ts.map +0 -1
- package/dist/src/framer/streamer.spec.d.ts +0 -2
- package/dist/src/framer/streamer.spec.d.ts.map +0 -1
- package/dist/src/framer/writer.spec.d.ts +0 -2
- package/dist/src/framer/writer.spec.d.ts.map +0 -1
- package/dist/src/group/access.spec.d.ts +0 -2
- package/dist/src/group/access.spec.d.ts.map +0 -1
- package/dist/src/group/group.spec.d.ts +0 -2
- package/dist/src/group/group.spec.d.ts.map +0 -1
- package/dist/src/label/access.spec.d.ts +0 -2
- package/dist/src/label/access.spec.d.ts.map +0 -1
- package/dist/src/label/label.spec.d.ts +0 -2
- package/dist/src/label/label.spec.d.ts.map +0 -1
- package/dist/src/lineplot/access.spec.d.ts +0 -2
- package/dist/src/lineplot/access.spec.d.ts.map +0 -1
- package/dist/src/lineplot/lineplot.spec.d.ts +0 -2
- package/dist/src/lineplot/lineplot.spec.d.ts.map +0 -1
- package/dist/src/log/access.spec.d.ts +0 -2
- package/dist/src/log/access.spec.d.ts.map +0 -1
- package/dist/src/log/log.spec.d.ts +0 -2
- package/dist/src/log/log.spec.d.ts.map +0 -1
- package/dist/src/ontology/ontology.spec.d.ts +0 -2
- package/dist/src/ontology/ontology.spec.d.ts.map +0 -1
- package/dist/src/rack/access.spec.d.ts +0 -2
- package/dist/src/rack/access.spec.d.ts.map +0 -1
- package/dist/src/rack/rack.spec.d.ts +0 -2
- package/dist/src/rack/rack.spec.d.ts.map +0 -1
- package/dist/src/ranger/access.spec.d.ts +0 -2
- package/dist/src/ranger/access.spec.d.ts.map +0 -1
- package/dist/src/ranger/alias/payload.spec.d.ts +0 -2
- package/dist/src/ranger/alias/payload.spec.d.ts.map +0 -1
- package/dist/src/ranger/ranger.spec.d.ts +0 -2
- package/dist/src/ranger/ranger.spec.d.ts.map +0 -1
- package/dist/src/schematic/access.spec.d.ts +0 -2
- package/dist/src/schematic/access.spec.d.ts.map +0 -1
- package/dist/src/schematic/actions.spec.d.ts +0 -2
- package/dist/src/schematic/actions.spec.d.ts.map +0 -1
- package/dist/src/schematic/schematic.spec.d.ts +0 -2
- package/dist/src/schematic/schematic.spec.d.ts.map +0 -1
- package/dist/src/schematic/symbol/access.spec.d.ts +0 -2
- package/dist/src/schematic/symbol/access.spec.d.ts.map +0 -1
- package/dist/src/schematic/symbol/client.spec.d.ts +0 -2
- package/dist/src/schematic/symbol/client.spec.d.ts.map +0 -1
- package/dist/src/status/access.spec.d.ts +0 -2
- package/dist/src/status/access.spec.d.ts.map +0 -1
- package/dist/src/status/status.spec.d.ts +0 -2
- package/dist/src/status/status.spec.d.ts.map +0 -1
- package/dist/src/table/access.spec.d.ts +0 -2
- package/dist/src/table/access.spec.d.ts.map +0 -1
- package/dist/src/table/table.spec.d.ts +0 -2
- package/dist/src/table/table.spec.d.ts.map +0 -1
- package/dist/src/task/access.spec.d.ts +0 -2
- package/dist/src/task/access.spec.d.ts.map +0 -1
- package/dist/src/task/payload.spec.d.ts +0 -2
- package/dist/src/task/payload.spec.d.ts.map +0 -1
- package/dist/src/task/task.spec.d.ts +0 -2
- package/dist/src/task/task.spec.d.ts.map +0 -1
- package/dist/src/user/access.spec.d.ts +0 -2
- package/dist/src/user/access.spec.d.ts.map +0 -1
- package/dist/src/user/user.spec.d.ts +0 -2
- package/dist/src/user/user.spec.d.ts.map +0 -1
- package/dist/src/util/retrieve.spec.d.ts +0 -2
- package/dist/src/util/retrieve.spec.d.ts.map +0 -1
- package/dist/src/view/view.spec.d.ts +0 -2
- package/dist/src/view/view.spec.d.ts.map +0 -1
- package/dist/src/workspace/access.spec.d.ts +0 -2
- package/dist/src/workspace/access.spec.d.ts.map +0 -1
- package/dist/src/workspace/client.d.ts +0 -36
- package/dist/src/workspace/client.d.ts.map +0 -1
- package/dist/src/workspace/external.d.ts.map +0 -1
- package/dist/src/workspace/index.d.ts +0 -2
- package/dist/src/workspace/index.d.ts.map +0 -1
- package/dist/src/workspace/types.gen.d.ts +0 -34
- package/dist/src/workspace/types.gen.d.ts.map +0 -1
- package/dist/src/workspace/workspace.spec.d.ts +0 -2
- package/dist/src/workspace/workspace.spec.d.ts.map +0 -1
- package/examples/node/basicReadWrite.js +0 -86
- package/examples/node/createChannels.js +0 -50
- package/examples/node/createRange.js +0 -67
- package/examples/node/package-lock.json +0 -133
- package/examples/node/package.json +0 -17
- package/examples/node/readLatest.js +0 -76
- package/examples/node/seriesAndFrames.js +0 -173
- package/examples/node/streamRead.js +0 -50
- package/examples/node/streamWrite.js +0 -87
- package/src/access/enforce.spec.ts +0 -188
- package/src/access/policy/access.spec.ts +0 -147
- package/src/access/role/role.spec.ts +0 -95
- package/src/actions/actions.spec.ts +0 -229
- package/src/arc/access.spec.ts +0 -149
- package/src/arc/arc.spec.ts +0 -44
- package/src/arc/lsp.spec.ts +0 -717
- package/src/auth/auth.spec.ts +0 -101
- package/src/channel/access.spec.ts +0 -116
- package/src/channel/batchRetriever.spec.ts +0 -115
- package/src/channel/channel.spec.ts +0 -352
- package/src/channel/payload.spec.ts +0 -117
- package/src/channel/retriever.ts +0 -252
- package/src/connection/checker.ts +0 -203
- package/src/connection/connection.spec.ts +0 -152
- package/src/connection.spec.ts +0 -145
- package/src/control/state.spec.ts +0 -22
- package/src/device/access.spec.ts +0 -159
- package/src/device/device.spec.ts +0 -461
- package/src/device/payload.spec.ts +0 -142
- package/src/errors.spec.ts +0 -71
- package/src/framer/adapter.spec.ts +0 -620
- package/src/framer/client.spec.ts +0 -180
- package/src/framer/codec.spec.ts +0 -383
- package/src/framer/deleter.spec.ts +0 -103
- package/src/framer/frame.spec.ts +0 -973
- package/src/framer/iterator.spec.ts +0 -169
- package/src/framer/reader.spec.ts +0 -865
- package/src/framer/streamer.spec.ts +0 -871
- package/src/framer/writer.spec.ts +0 -486
- package/src/group/access.spec.ts +0 -77
- package/src/group/group.spec.ts +0 -65
- package/src/label/access.spec.ts +0 -109
- package/src/label/label.spec.ts +0 -83
- package/src/lineplot/access.spec.ts +0 -134
- package/src/lineplot/lineplot.spec.ts +0 -120
- package/src/log/access.spec.ts +0 -132
- package/src/log/log.spec.ts +0 -106
- package/src/ontology/ontology.spec.ts +0 -521
- package/src/rack/access.spec.ts +0 -102
- package/src/rack/rack.spec.ts +0 -171
- package/src/ranger/access.spec.ts +0 -115
- package/src/ranger/alias/payload.spec.ts +0 -52
- package/src/ranger/ranger.spec.ts +0 -343
- package/src/schematic/access.spec.ts +0 -134
- package/src/schematic/actions.spec.ts +0 -699
- package/src/schematic/schematic.spec.ts +0 -340
- package/src/schematic/symbol/access.spec.ts +0 -172
- package/src/schematic/symbol/client.spec.ts +0 -160
- package/src/status/access.spec.ts +0 -129
- package/src/status/status.spec.ts +0 -448
- package/src/table/access.spec.ts +0 -128
- package/src/table/table.spec.ts +0 -651
- package/src/task/access.spec.ts +0 -131
- package/src/task/payload.spec.ts +0 -113
- package/src/task/task.spec.ts +0 -657
- package/src/user/access.spec.ts +0 -107
- package/src/user/user.spec.ts +0 -290
- package/src/util/retrieve.spec.ts +0 -49
- package/src/view/view.spec.ts +0 -165
- package/src/workspace/access.spec.ts +0 -108
- package/src/workspace/client.ts +0 -112
- package/src/workspace/types.gen.ts +0 -46
- package/src/workspace/workspace.spec.ts +0 -111
- package/tsconfig.json +0 -5
- package/tsconfig.vite.json +0 -4
- package/vite.config.ts +0 -29
- /package/dist/src/{workspace → project}/external.d.ts +0 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { WebSocketClient } from '@synnaxlabs/freighter';
|
|
2
|
-
import {
|
|
2
|
+
import { Rate } from '@synnaxlabs/x';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { channel } from '../channel';
|
|
5
|
+
import { ChannelRetriever } from './adapter';
|
|
5
6
|
import { Frame } from './frame';
|
|
6
7
|
declare const reqZ: z.ZodObject<{
|
|
7
8
|
keys: z.ZodArray<z.ZodNumber>;
|
|
@@ -30,17 +31,21 @@ declare const resZ: z.ZodObject<{
|
|
|
30
31
|
value: z.ZodBigInt;
|
|
31
32
|
}, z.core.$strip>, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, {
|
|
32
33
|
value: bigint;
|
|
33
|
-
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<TimeSpan, TimeSpan>, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, [number, number
|
|
34
|
+
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').TimeSpan, import('@synnaxlabs/x').TimeSpan>, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, import('@synnaxlabs/x').TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, [number, number] | [number] | [number, number, number]>>]>;
|
|
34
35
|
end: z.ZodUnion<readonly [z.ZodCustom<import('@synnaxlabs/x').TimeStamp, import('@synnaxlabs/x').TimeStamp>, z.ZodPipe<z.ZodObject<{
|
|
35
36
|
value: z.ZodBigInt;
|
|
36
37
|
}, z.core.$strip>, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, {
|
|
37
38
|
value: bigint;
|
|
38
|
-
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<TimeSpan, TimeSpan>, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, [number, number
|
|
39
|
+
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').TimeSpan, import('@synnaxlabs/x').TimeSpan>, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, import('@synnaxlabs/x').TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, [number, number] | [number] | [number, number, number]>>]>;
|
|
39
40
|
}, z.core.$strip>, z.ZodTransform<import('@synnaxlabs/x').TimeRange, {
|
|
40
41
|
start: import('@synnaxlabs/x').TimeStamp;
|
|
41
42
|
end: import('@synnaxlabs/x').TimeStamp;
|
|
42
43
|
}>>, z.ZodCustom<import('@synnaxlabs/x').TimeRange, import('@synnaxlabs/x').TimeRange>]>>;
|
|
43
|
-
dataType: z.ZodUnion<readonly [z.
|
|
44
|
+
dataType: z.ZodUnion<readonly [z.ZodCustom<import('@synnaxlabs/x').DataType, import('@synnaxlabs/x').DataType>, z.ZodPipe<z.ZodString, z.ZodTransform<import('@synnaxlabs/x').DataType, string>>, z.ZodPipe<z.ZodObject<{
|
|
45
|
+
value: z.ZodString;
|
|
46
|
+
}, z.core.$strip>, z.ZodTransform<import('@synnaxlabs/x').DataType, {
|
|
47
|
+
value: string;
|
|
48
|
+
}>>]>;
|
|
44
49
|
alignment: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
|
|
45
50
|
data: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<ArrayBuffer, string>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<ArrayBuffer, null | undefined>>, z.ZodCustom<ArrayBuffer, ArrayBuffer>, z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>]>>;
|
|
46
51
|
glBufferUsage: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
@@ -56,88 +61,81 @@ declare const resZ: z.ZodObject<{
|
|
|
56
61
|
*/
|
|
57
62
|
export interface StreamerResponse extends z.infer<typeof resZ> {
|
|
58
63
|
}
|
|
64
|
+
/** Zod schema for {@link StreamerConfig}. A bare channel list parses as a config. */
|
|
59
65
|
export declare const streamerConfigZ: z.ZodUnion<[z.ZodObject<{
|
|
60
66
|
channels: z.ZodUnion<readonly [z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>, z.ZodPipe<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<number[], number>>]>, z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodPipe<z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
61
|
-
key: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]
|
|
67
|
+
key: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
62
68
|
name: z.ZodString;
|
|
63
|
-
leaseholder: z.ZodInt
|
|
64
|
-
dataType: z.ZodUnion<readonly [z.
|
|
65
|
-
|
|
66
|
-
|
|
69
|
+
leaseholder: z.ZodDefault<z.ZodInt>;
|
|
70
|
+
dataType: z.ZodUnion<readonly [z.ZodCustom<import('@synnaxlabs/x').DataType, import('@synnaxlabs/x').DataType>, z.ZodPipe<z.ZodString, z.ZodTransform<import('@synnaxlabs/x').DataType, string>>, z.ZodPipe<z.ZodObject<{
|
|
71
|
+
value: z.ZodString;
|
|
72
|
+
}, z.core.$strip>, z.ZodTransform<import('@synnaxlabs/x').DataType, {
|
|
73
|
+
value: string;
|
|
74
|
+
}>>]>;
|
|
75
|
+
isIndex: z.ZodDefault<z.ZodBoolean>;
|
|
76
|
+
index: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
67
77
|
alias: z.ZodOptional<z.ZodString>;
|
|
68
78
|
virtual: z.ZodDefault<z.ZodBoolean>;
|
|
69
79
|
internal: z.ZodDefault<z.ZodBoolean>;
|
|
70
80
|
expression: z.ZodDefault<z.ZodString>;
|
|
71
|
-
operations: z.
|
|
81
|
+
operations: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
72
82
|
type: z.ZodEnum<{
|
|
73
|
-
none: "none";
|
|
74
83
|
min: "min";
|
|
75
84
|
max: "max";
|
|
76
85
|
avg: "avg";
|
|
86
|
+
none: "none";
|
|
77
87
|
derivative: "derivative";
|
|
78
88
|
}>;
|
|
79
89
|
resetChannel: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
80
90
|
duration: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
81
91
|
value: z.ZodBigInt;
|
|
82
|
-
}, z.core.$strip>, z.ZodTransform<TimeSpan, {
|
|
92
|
+
}, z.core.$strip>, z.ZodTransform<import('@synnaxlabs/x').TimeSpan, {
|
|
83
93
|
value: bigint;
|
|
84
|
-
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeSpan, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeSpan, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeSpan, bigint>>, z.ZodCustom<TimeSpan, TimeSpan>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').TimeStamp, import('@synnaxlabs/x').TimeStamp>, z.ZodTransform<TimeSpan, import('@synnaxlabs/x').TimeStamp>>, z.ZodPipe<z.ZodCustom<Rate, Rate>, z.ZodTransform<TimeSpan, Rate>>]>>;
|
|
85
|
-
}, z.core.$strip
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
duration: TimeSpan;
|
|
89
|
-
}[] | undefined, {
|
|
90
|
-
type: "none" | "min" | "max" | "avg" | "derivative";
|
|
91
|
-
resetChannel: number;
|
|
92
|
-
duration: TimeSpan;
|
|
93
|
-
}[] | null>>>;
|
|
94
|
-
concurrency: z.ZodOptional<z.ZodDefault<z.ZodEnum<typeof import('@synnaxlabs/x/dist/src/control/types.gen').Concurrency>>>;
|
|
95
|
-
status: z.ZodOptional<import('@synnaxlabs/x/dist/src/status/types.gen').StatusZodObject<z.ZodNever, z.ZodEnum<{
|
|
96
|
-
success: "success";
|
|
94
|
+
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<import('@synnaxlabs/x').TimeSpan, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import('@synnaxlabs/x').TimeSpan, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<import('@synnaxlabs/x').TimeSpan, bigint>>, z.ZodCustom<import('@synnaxlabs/x').TimeSpan, import('@synnaxlabs/x').TimeSpan>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').TimeStamp, import('@synnaxlabs/x').TimeStamp>, z.ZodTransform<import('@synnaxlabs/x').TimeSpan, import('@synnaxlabs/x').TimeStamp>>, z.ZodPipe<z.ZodCustom<Rate, Rate>, z.ZodTransform<import('@synnaxlabs/x').TimeSpan, Rate>>]>>;
|
|
95
|
+
}, z.core.$strip>>>;
|
|
96
|
+
concurrency: z.ZodDefault<z.ZodEnum<typeof import('@synnaxlabs/x/dist/src/control/types.gen.js').Concurrency>>;
|
|
97
|
+
status: z.ZodOptional<import('..').StatusZodObject<z.ZodNever, z.ZodEnum<{
|
|
97
98
|
error: "error";
|
|
99
|
+
success: "success";
|
|
98
100
|
info: "info";
|
|
99
101
|
warning: "warning";
|
|
100
102
|
loading: "loading";
|
|
101
103
|
disabled: "disabled";
|
|
102
104
|
}>>>;
|
|
103
105
|
}, z.core.$strip>>, z.ZodPipe<z.ZodObject<{
|
|
104
|
-
key: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]
|
|
106
|
+
key: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
105
107
|
name: z.ZodString;
|
|
106
|
-
leaseholder: z.ZodInt
|
|
107
|
-
dataType: z.ZodUnion<readonly [z.
|
|
108
|
-
|
|
109
|
-
|
|
108
|
+
leaseholder: z.ZodDefault<z.ZodInt>;
|
|
109
|
+
dataType: z.ZodUnion<readonly [z.ZodCustom<import('@synnaxlabs/x').DataType, import('@synnaxlabs/x').DataType>, z.ZodPipe<z.ZodString, z.ZodTransform<import('@synnaxlabs/x').DataType, string>>, z.ZodPipe<z.ZodObject<{
|
|
110
|
+
value: z.ZodString;
|
|
111
|
+
}, z.core.$strip>, z.ZodTransform<import('@synnaxlabs/x').DataType, {
|
|
112
|
+
value: string;
|
|
113
|
+
}>>]>;
|
|
114
|
+
isIndex: z.ZodDefault<z.ZodBoolean>;
|
|
115
|
+
index: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
110
116
|
alias: z.ZodOptional<z.ZodString>;
|
|
111
117
|
virtual: z.ZodDefault<z.ZodBoolean>;
|
|
112
118
|
internal: z.ZodDefault<z.ZodBoolean>;
|
|
113
119
|
expression: z.ZodDefault<z.ZodString>;
|
|
114
|
-
operations: z.
|
|
120
|
+
operations: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
115
121
|
type: z.ZodEnum<{
|
|
116
|
-
none: "none";
|
|
117
122
|
min: "min";
|
|
118
123
|
max: "max";
|
|
119
124
|
avg: "avg";
|
|
125
|
+
none: "none";
|
|
120
126
|
derivative: "derivative";
|
|
121
127
|
}>;
|
|
122
128
|
resetChannel: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
123
129
|
duration: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
124
130
|
value: z.ZodBigInt;
|
|
125
|
-
}, z.core.$strip>, z.ZodTransform<TimeSpan, {
|
|
131
|
+
}, z.core.$strip>, z.ZodTransform<import('@synnaxlabs/x').TimeSpan, {
|
|
126
132
|
value: bigint;
|
|
127
|
-
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeSpan, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeSpan, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeSpan, bigint>>, z.ZodCustom<TimeSpan, TimeSpan>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').TimeStamp, import('@synnaxlabs/x').TimeStamp>, z.ZodTransform<TimeSpan, import('@synnaxlabs/x').TimeStamp>>, z.ZodPipe<z.ZodCustom<Rate, Rate>, z.ZodTransform<TimeSpan, Rate>>]>>;
|
|
128
|
-
}, z.core.$strip
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
duration: TimeSpan;
|
|
132
|
-
}[] | undefined, {
|
|
133
|
-
type: "none" | "min" | "max" | "avg" | "derivative";
|
|
134
|
-
resetChannel: number;
|
|
135
|
-
duration: TimeSpan;
|
|
136
|
-
}[] | null>>>;
|
|
137
|
-
concurrency: z.ZodOptional<z.ZodDefault<z.ZodEnum<typeof import('@synnaxlabs/x/dist/src/control/types.gen').Concurrency>>>;
|
|
138
|
-
status: z.ZodOptional<import('@synnaxlabs/x/dist/src/status/types.gen').StatusZodObject<z.ZodNever, z.ZodEnum<{
|
|
139
|
-
success: "success";
|
|
133
|
+
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<import('@synnaxlabs/x').TimeSpan, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import('@synnaxlabs/x').TimeSpan, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<import('@synnaxlabs/x').TimeSpan, bigint>>, z.ZodCustom<import('@synnaxlabs/x').TimeSpan, import('@synnaxlabs/x').TimeSpan>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').TimeStamp, import('@synnaxlabs/x').TimeStamp>, z.ZodTransform<import('@synnaxlabs/x').TimeSpan, import('@synnaxlabs/x').TimeStamp>>, z.ZodPipe<z.ZodCustom<Rate, Rate>, z.ZodTransform<import('@synnaxlabs/x').TimeSpan, Rate>>]>>;
|
|
134
|
+
}, z.core.$strip>>>;
|
|
135
|
+
concurrency: z.ZodDefault<z.ZodEnum<typeof import('@synnaxlabs/x/dist/src/control/types.gen.js').Concurrency>>;
|
|
136
|
+
status: z.ZodOptional<import('..').StatusZodObject<z.ZodNever, z.ZodEnum<{
|
|
140
137
|
error: "error";
|
|
138
|
+
success: "success";
|
|
141
139
|
info: "info";
|
|
142
140
|
warning: "warning";
|
|
143
141
|
loading: "loading";
|
|
@@ -153,20 +151,20 @@ export declare const streamerConfigZ: z.ZodUnion<[z.ZodObject<{
|
|
|
153
151
|
virtual: boolean;
|
|
154
152
|
internal: boolean;
|
|
155
153
|
expression: string;
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
type: "none" | "min" | "max" | "avg" | "derivative";
|
|
154
|
+
operations: {
|
|
155
|
+
type: "min" | "max" | "avg" | "none" | "derivative";
|
|
159
156
|
resetChannel: number;
|
|
160
|
-
duration: TimeSpan;
|
|
161
|
-
}[]
|
|
162
|
-
concurrency
|
|
157
|
+
duration: import('@synnaxlabs/x').TimeSpan;
|
|
158
|
+
}[];
|
|
159
|
+
concurrency: import('@synnaxlabs/x/dist/src/control/types.gen.js').Concurrency;
|
|
160
|
+
alias?: string | undefined;
|
|
163
161
|
status?: {
|
|
164
162
|
key: string;
|
|
165
163
|
name: string;
|
|
166
164
|
variant: "error" | "success" | "info" | "warning" | "loading" | "disabled";
|
|
167
165
|
message: string;
|
|
166
|
+
description: string;
|
|
168
167
|
time: import('@synnaxlabs/x').TimeStamp;
|
|
169
|
-
description?: string | undefined;
|
|
170
168
|
labels?: {
|
|
171
169
|
key: string;
|
|
172
170
|
name: string;
|
|
@@ -184,20 +182,20 @@ export declare const streamerConfigZ: z.ZodUnion<[z.ZodObject<{
|
|
|
184
182
|
virtual: boolean;
|
|
185
183
|
internal: boolean;
|
|
186
184
|
expression: string;
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
type: "none" | "min" | "max" | "avg" | "derivative";
|
|
185
|
+
operations: {
|
|
186
|
+
type: "min" | "max" | "avg" | "none" | "derivative";
|
|
190
187
|
resetChannel: number;
|
|
191
|
-
duration: TimeSpan;
|
|
192
|
-
}[]
|
|
193
|
-
concurrency
|
|
188
|
+
duration: import('@synnaxlabs/x').TimeSpan;
|
|
189
|
+
}[];
|
|
190
|
+
concurrency: import('@synnaxlabs/x/dist/src/control/types.gen.js').Concurrency;
|
|
191
|
+
alias?: string | undefined;
|
|
194
192
|
status?: {
|
|
195
193
|
key: string;
|
|
196
194
|
name: string;
|
|
197
195
|
variant: "error" | "success" | "info" | "warning" | "loading" | "disabled";
|
|
198
196
|
message: string;
|
|
197
|
+
description: string;
|
|
199
198
|
time: import('@synnaxlabs/x').TimeStamp;
|
|
200
|
-
description?: string | undefined;
|
|
201
199
|
labels?: {
|
|
202
200
|
key: string;
|
|
203
201
|
name: string;
|
|
@@ -215,20 +213,20 @@ export declare const streamerConfigZ: z.ZodUnion<[z.ZodObject<{
|
|
|
215
213
|
virtual: boolean;
|
|
216
214
|
internal: boolean;
|
|
217
215
|
expression: string;
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
type: "none" | "min" | "max" | "avg" | "derivative";
|
|
216
|
+
operations: {
|
|
217
|
+
type: "min" | "max" | "avg" | "none" | "derivative";
|
|
221
218
|
resetChannel: number;
|
|
222
|
-
duration: TimeSpan;
|
|
223
|
-
}[]
|
|
224
|
-
concurrency
|
|
219
|
+
duration: import('@synnaxlabs/x').TimeSpan;
|
|
220
|
+
}[];
|
|
221
|
+
concurrency: import('@synnaxlabs/x/dist/src/control/types.gen.js').Concurrency;
|
|
222
|
+
alias?: string | undefined;
|
|
225
223
|
status?: {
|
|
226
224
|
key: string;
|
|
227
225
|
name: string;
|
|
228
226
|
variant: "error" | "success" | "info" | "warning" | "loading" | "disabled";
|
|
229
227
|
message: string;
|
|
228
|
+
description: string;
|
|
230
229
|
time: import('@synnaxlabs/x').TimeStamp;
|
|
231
|
-
description?: string | undefined;
|
|
232
230
|
labels?: {
|
|
233
231
|
key: string;
|
|
234
232
|
name: string;
|
|
@@ -241,86 +239,78 @@ export declare const streamerConfigZ: z.ZodUnion<[z.ZodObject<{
|
|
|
241
239
|
throttleRate: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodNumber, z.ZodTransform<Rate, number>>, z.ZodCustom<Rate, Rate>]>>;
|
|
242
240
|
excludeGroups: z.ZodDefault<z.ZodArray<z.ZodUInt32>>;
|
|
243
241
|
}, z.core.$strip>, z.ZodPipe<z.ZodUnion<readonly [z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>, z.ZodPipe<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<number[], number>>]>, z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodPipe<z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
244
|
-
key: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]
|
|
242
|
+
key: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
245
243
|
name: z.ZodString;
|
|
246
|
-
leaseholder: z.ZodInt
|
|
247
|
-
dataType: z.ZodUnion<readonly [z.
|
|
248
|
-
|
|
249
|
-
|
|
244
|
+
leaseholder: z.ZodDefault<z.ZodInt>;
|
|
245
|
+
dataType: z.ZodUnion<readonly [z.ZodCustom<import('@synnaxlabs/x').DataType, import('@synnaxlabs/x').DataType>, z.ZodPipe<z.ZodString, z.ZodTransform<import('@synnaxlabs/x').DataType, string>>, z.ZodPipe<z.ZodObject<{
|
|
246
|
+
value: z.ZodString;
|
|
247
|
+
}, z.core.$strip>, z.ZodTransform<import('@synnaxlabs/x').DataType, {
|
|
248
|
+
value: string;
|
|
249
|
+
}>>]>;
|
|
250
|
+
isIndex: z.ZodDefault<z.ZodBoolean>;
|
|
251
|
+
index: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
250
252
|
alias: z.ZodOptional<z.ZodString>;
|
|
251
253
|
virtual: z.ZodDefault<z.ZodBoolean>;
|
|
252
254
|
internal: z.ZodDefault<z.ZodBoolean>;
|
|
253
255
|
expression: z.ZodDefault<z.ZodString>;
|
|
254
|
-
operations: z.
|
|
256
|
+
operations: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
255
257
|
type: z.ZodEnum<{
|
|
256
|
-
none: "none";
|
|
257
258
|
min: "min";
|
|
258
259
|
max: "max";
|
|
259
260
|
avg: "avg";
|
|
261
|
+
none: "none";
|
|
260
262
|
derivative: "derivative";
|
|
261
263
|
}>;
|
|
262
264
|
resetChannel: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
263
265
|
duration: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
264
266
|
value: z.ZodBigInt;
|
|
265
|
-
}, z.core.$strip>, z.ZodTransform<TimeSpan, {
|
|
267
|
+
}, z.core.$strip>, z.ZodTransform<import('@synnaxlabs/x').TimeSpan, {
|
|
266
268
|
value: bigint;
|
|
267
|
-
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeSpan, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeSpan, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeSpan, bigint>>, z.ZodCustom<TimeSpan, TimeSpan>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').TimeStamp, import('@synnaxlabs/x').TimeStamp>, z.ZodTransform<TimeSpan, import('@synnaxlabs/x').TimeStamp>>, z.ZodPipe<z.ZodCustom<Rate, Rate>, z.ZodTransform<TimeSpan, Rate>>]>>;
|
|
268
|
-
}, z.core.$strip
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
duration: TimeSpan;
|
|
272
|
-
}[] | undefined, {
|
|
273
|
-
type: "none" | "min" | "max" | "avg" | "derivative";
|
|
274
|
-
resetChannel: number;
|
|
275
|
-
duration: TimeSpan;
|
|
276
|
-
}[] | null>>>;
|
|
277
|
-
concurrency: z.ZodOptional<z.ZodDefault<z.ZodEnum<typeof import('@synnaxlabs/x/dist/src/control/types.gen').Concurrency>>>;
|
|
278
|
-
status: z.ZodOptional<import('@synnaxlabs/x/dist/src/status/types.gen').StatusZodObject<z.ZodNever, z.ZodEnum<{
|
|
279
|
-
success: "success";
|
|
269
|
+
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<import('@synnaxlabs/x').TimeSpan, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import('@synnaxlabs/x').TimeSpan, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<import('@synnaxlabs/x').TimeSpan, bigint>>, z.ZodCustom<import('@synnaxlabs/x').TimeSpan, import('@synnaxlabs/x').TimeSpan>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').TimeStamp, import('@synnaxlabs/x').TimeStamp>, z.ZodTransform<import('@synnaxlabs/x').TimeSpan, import('@synnaxlabs/x').TimeStamp>>, z.ZodPipe<z.ZodCustom<Rate, Rate>, z.ZodTransform<import('@synnaxlabs/x').TimeSpan, Rate>>]>>;
|
|
270
|
+
}, z.core.$strip>>>;
|
|
271
|
+
concurrency: z.ZodDefault<z.ZodEnum<typeof import('@synnaxlabs/x/dist/src/control/types.gen.js').Concurrency>>;
|
|
272
|
+
status: z.ZodOptional<import('..').StatusZodObject<z.ZodNever, z.ZodEnum<{
|
|
280
273
|
error: "error";
|
|
274
|
+
success: "success";
|
|
281
275
|
info: "info";
|
|
282
276
|
warning: "warning";
|
|
283
277
|
loading: "loading";
|
|
284
278
|
disabled: "disabled";
|
|
285
279
|
}>>>;
|
|
286
280
|
}, z.core.$strip>>, z.ZodPipe<z.ZodObject<{
|
|
287
|
-
key: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]
|
|
281
|
+
key: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
288
282
|
name: z.ZodString;
|
|
289
|
-
leaseholder: z.ZodInt
|
|
290
|
-
dataType: z.ZodUnion<readonly [z.
|
|
291
|
-
|
|
292
|
-
|
|
283
|
+
leaseholder: z.ZodDefault<z.ZodInt>;
|
|
284
|
+
dataType: z.ZodUnion<readonly [z.ZodCustom<import('@synnaxlabs/x').DataType, import('@synnaxlabs/x').DataType>, z.ZodPipe<z.ZodString, z.ZodTransform<import('@synnaxlabs/x').DataType, string>>, z.ZodPipe<z.ZodObject<{
|
|
285
|
+
value: z.ZodString;
|
|
286
|
+
}, z.core.$strip>, z.ZodTransform<import('@synnaxlabs/x').DataType, {
|
|
287
|
+
value: string;
|
|
288
|
+
}>>]>;
|
|
289
|
+
isIndex: z.ZodDefault<z.ZodBoolean>;
|
|
290
|
+
index: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
293
291
|
alias: z.ZodOptional<z.ZodString>;
|
|
294
292
|
virtual: z.ZodDefault<z.ZodBoolean>;
|
|
295
293
|
internal: z.ZodDefault<z.ZodBoolean>;
|
|
296
294
|
expression: z.ZodDefault<z.ZodString>;
|
|
297
|
-
operations: z.
|
|
295
|
+
operations: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
298
296
|
type: z.ZodEnum<{
|
|
299
|
-
none: "none";
|
|
300
297
|
min: "min";
|
|
301
298
|
max: "max";
|
|
302
299
|
avg: "avg";
|
|
300
|
+
none: "none";
|
|
303
301
|
derivative: "derivative";
|
|
304
302
|
}>;
|
|
305
303
|
resetChannel: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
306
304
|
duration: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
307
305
|
value: z.ZodBigInt;
|
|
308
|
-
}, z.core.$strip>, z.ZodTransform<TimeSpan, {
|
|
306
|
+
}, z.core.$strip>, z.ZodTransform<import('@synnaxlabs/x').TimeSpan, {
|
|
309
307
|
value: bigint;
|
|
310
|
-
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeSpan, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeSpan, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeSpan, bigint>>, z.ZodCustom<TimeSpan, TimeSpan>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').TimeStamp, import('@synnaxlabs/x').TimeStamp>, z.ZodTransform<TimeSpan, import('@synnaxlabs/x').TimeStamp>>, z.ZodPipe<z.ZodCustom<Rate, Rate>, z.ZodTransform<TimeSpan, Rate>>]>>;
|
|
311
|
-
}, z.core.$strip
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
duration: TimeSpan;
|
|
315
|
-
}[] | undefined, {
|
|
316
|
-
type: "none" | "min" | "max" | "avg" | "derivative";
|
|
317
|
-
resetChannel: number;
|
|
318
|
-
duration: TimeSpan;
|
|
319
|
-
}[] | null>>>;
|
|
320
|
-
concurrency: z.ZodOptional<z.ZodDefault<z.ZodEnum<typeof import('@synnaxlabs/x/dist/src/control/types.gen').Concurrency>>>;
|
|
321
|
-
status: z.ZodOptional<import('@synnaxlabs/x/dist/src/status/types.gen').StatusZodObject<z.ZodNever, z.ZodEnum<{
|
|
322
|
-
success: "success";
|
|
308
|
+
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<import('@synnaxlabs/x').TimeSpan, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import('@synnaxlabs/x').TimeSpan, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<import('@synnaxlabs/x').TimeSpan, bigint>>, z.ZodCustom<import('@synnaxlabs/x').TimeSpan, import('@synnaxlabs/x').TimeSpan>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').TimeStamp, import('@synnaxlabs/x').TimeStamp>, z.ZodTransform<import('@synnaxlabs/x').TimeSpan, import('@synnaxlabs/x').TimeStamp>>, z.ZodPipe<z.ZodCustom<Rate, Rate>, z.ZodTransform<import('@synnaxlabs/x').TimeSpan, Rate>>]>>;
|
|
309
|
+
}, z.core.$strip>>>;
|
|
310
|
+
concurrency: z.ZodDefault<z.ZodEnum<typeof import('@synnaxlabs/x/dist/src/control/types.gen.js').Concurrency>>;
|
|
311
|
+
status: z.ZodOptional<import('..').StatusZodObject<z.ZodNever, z.ZodEnum<{
|
|
323
312
|
error: "error";
|
|
313
|
+
success: "success";
|
|
324
314
|
info: "info";
|
|
325
315
|
warning: "warning";
|
|
326
316
|
loading: "loading";
|
|
@@ -336,20 +326,20 @@ export declare const streamerConfigZ: z.ZodUnion<[z.ZodObject<{
|
|
|
336
326
|
virtual: boolean;
|
|
337
327
|
internal: boolean;
|
|
338
328
|
expression: string;
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
type: "none" | "min" | "max" | "avg" | "derivative";
|
|
329
|
+
operations: {
|
|
330
|
+
type: "min" | "max" | "avg" | "none" | "derivative";
|
|
342
331
|
resetChannel: number;
|
|
343
|
-
duration: TimeSpan;
|
|
344
|
-
}[]
|
|
345
|
-
concurrency
|
|
332
|
+
duration: import('@synnaxlabs/x').TimeSpan;
|
|
333
|
+
}[];
|
|
334
|
+
concurrency: import('@synnaxlabs/x/dist/src/control/types.gen.js').Concurrency;
|
|
335
|
+
alias?: string | undefined;
|
|
346
336
|
status?: {
|
|
347
337
|
key: string;
|
|
348
338
|
name: string;
|
|
349
339
|
variant: "error" | "success" | "info" | "warning" | "loading" | "disabled";
|
|
350
340
|
message: string;
|
|
341
|
+
description: string;
|
|
351
342
|
time: import('@synnaxlabs/x').TimeStamp;
|
|
352
|
-
description?: string | undefined;
|
|
353
343
|
labels?: {
|
|
354
344
|
key: string;
|
|
355
345
|
name: string;
|
|
@@ -367,20 +357,20 @@ export declare const streamerConfigZ: z.ZodUnion<[z.ZodObject<{
|
|
|
367
357
|
virtual: boolean;
|
|
368
358
|
internal: boolean;
|
|
369
359
|
expression: string;
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
type: "none" | "min" | "max" | "avg" | "derivative";
|
|
360
|
+
operations: {
|
|
361
|
+
type: "min" | "max" | "avg" | "none" | "derivative";
|
|
373
362
|
resetChannel: number;
|
|
374
|
-
duration: TimeSpan;
|
|
375
|
-
}[]
|
|
376
|
-
concurrency
|
|
363
|
+
duration: import('@synnaxlabs/x').TimeSpan;
|
|
364
|
+
}[];
|
|
365
|
+
concurrency: import('@synnaxlabs/x/dist/src/control/types.gen.js').Concurrency;
|
|
366
|
+
alias?: string | undefined;
|
|
377
367
|
status?: {
|
|
378
368
|
key: string;
|
|
379
369
|
name: string;
|
|
380
370
|
variant: "error" | "success" | "info" | "warning" | "loading" | "disabled";
|
|
381
371
|
message: string;
|
|
372
|
+
description: string;
|
|
382
373
|
time: import('@synnaxlabs/x').TimeStamp;
|
|
383
|
-
description?: string | undefined;
|
|
384
374
|
labels?: {
|
|
385
375
|
key: string;
|
|
386
376
|
name: string;
|
|
@@ -398,20 +388,20 @@ export declare const streamerConfigZ: z.ZodUnion<[z.ZodObject<{
|
|
|
398
388
|
virtual: boolean;
|
|
399
389
|
internal: boolean;
|
|
400
390
|
expression: string;
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
type: "none" | "min" | "max" | "avg" | "derivative";
|
|
391
|
+
operations: {
|
|
392
|
+
type: "min" | "max" | "avg" | "none" | "derivative";
|
|
404
393
|
resetChannel: number;
|
|
405
|
-
duration: TimeSpan;
|
|
406
|
-
}[]
|
|
407
|
-
concurrency
|
|
394
|
+
duration: import('@synnaxlabs/x').TimeSpan;
|
|
395
|
+
}[];
|
|
396
|
+
concurrency: import('@synnaxlabs/x/dist/src/control/types.gen.js').Concurrency;
|
|
397
|
+
alias?: string | undefined;
|
|
408
398
|
status?: {
|
|
409
399
|
key: string;
|
|
410
400
|
name: string;
|
|
411
401
|
variant: "error" | "success" | "info" | "warning" | "loading" | "disabled";
|
|
412
402
|
message: string;
|
|
403
|
+
description: string;
|
|
413
404
|
time: import('@synnaxlabs/x').TimeStamp;
|
|
414
|
-
description?: string | undefined;
|
|
415
405
|
labels?: {
|
|
416
406
|
key: string;
|
|
417
407
|
name: string;
|
|
@@ -425,105 +415,42 @@ export declare const streamerConfigZ: z.ZodUnion<[z.ZodObject<{
|
|
|
425
415
|
throttleRate: Rate;
|
|
426
416
|
excludeGroups: number[];
|
|
427
417
|
}, string[] | number[]>>]>;
|
|
418
|
+
/** Config for a streamer. Pass it to `client.telem.openStreamer`. */
|
|
428
419
|
export type StreamerConfig = z.input<typeof streamerConfigZ>;
|
|
429
420
|
/**
|
|
430
|
-
*
|
|
431
|
-
*
|
|
432
|
-
*
|
|
433
|
-
*
|
|
434
|
-
* To open a streamer, use the openStreamer method on the client and pass it in the list
|
|
435
|
-
* of channels you'd like to receive data from. Once the streamer has been opened, call
|
|
436
|
-
* the `read` method to read the next frame of telemetry, or use the streamer as an
|
|
437
|
-
* async iterator to iterate over the frames of telemetry as they are received.
|
|
438
|
-
*
|
|
439
|
-
* The list of channels being streamed can be updated at any time by using the `update`
|
|
440
|
-
* method.
|
|
421
|
+
* Streams frames of telemetry from a Synnax cluster in real time. Open one with the
|
|
422
|
+
* client's openStreamer method, never directly. Read frames with `read` or by
|
|
423
|
+
* iterating the streamer. Close it in a `finally` block to free its resources.
|
|
441
424
|
*
|
|
442
|
-
*
|
|
443
|
-
* resources. We recommend using the streamer within a try-finally block to ensure
|
|
444
|
-
* that it is closed properly in the event of an error.
|
|
445
|
-
*
|
|
446
|
-
* For detailed documentation, see https://docs.synnaxlabs.com/reference/client/working-with-data/streaming-data
|
|
425
|
+
* @see https://docs.synnaxlabs.com/reference/client/working-with-data/streaming-data
|
|
447
426
|
*/
|
|
448
427
|
export interface Streamer extends AsyncIterator<Frame>, AsyncIterable<Frame> {
|
|
449
428
|
/** The keys of the channels currently being streamed from. */
|
|
450
429
|
keys: channel.Key[];
|
|
451
|
-
/**
|
|
452
|
-
* Update the list of channels being streamed from. This replaces the list of channels
|
|
453
|
-
* being streamed from with the new list of channels.
|
|
454
|
-
*/
|
|
430
|
+
/** Replaces the list of channels being streamed from. */
|
|
455
431
|
update: (channels: channel.Params) => Promise<void>;
|
|
456
432
|
/** Close the streamer and free all associated resources. */
|
|
457
433
|
close: () => void;
|
|
458
434
|
/** Read the next frame of telemetry. */
|
|
459
435
|
read: () => Promise<Frame>;
|
|
460
436
|
}
|
|
461
|
-
/**
|
|
462
|
-
* A function that opens a streamer.
|
|
463
|
-
*/
|
|
437
|
+
/** A function that opens a streamer. */
|
|
464
438
|
export interface StreamOpener {
|
|
465
439
|
(config: StreamerConfig): Promise<Streamer>;
|
|
466
440
|
}
|
|
467
441
|
/**
|
|
468
|
-
* Creates a function that opens streamers with the given
|
|
469
|
-
* @param
|
|
442
|
+
* Creates a function that opens streamers with the given channel resolver and client.
|
|
443
|
+
* @param retrieveChannels - Resolves channel params to payloads for the codec
|
|
470
444
|
* @param client - The WebSocket client to use for streaming
|
|
471
445
|
* @returns A function that opens streamers with the given configuration
|
|
472
446
|
*/
|
|
473
|
-
export declare const createStreamOpener: (
|
|
447
|
+
export declare const createStreamOpener: (retrieveChannels: ChannelRetriever, client: WebSocketClient) => StreamOpener;
|
|
474
448
|
/**
|
|
475
449
|
* Opens a new streamer with the given configuration.
|
|
476
|
-
* @param
|
|
450
|
+
* @param retrieveChannels - Resolves channel params to payloads for the codec
|
|
477
451
|
* @param client - The WebSocket client to use for streaming
|
|
478
|
-
* @param config - The configuration for the streamer
|
|
479
452
|
* @returns A promise that resolves to a new streamer
|
|
480
453
|
*/
|
|
481
|
-
export declare const openStreamer: (
|
|
482
|
-
/**
|
|
483
|
-
* A hardened streamer that automatically reconnects on failure.
|
|
484
|
-
* This streamer wraps a regular streamer and adds automatic reconnection
|
|
485
|
-
* logic when the connection is lost or errors occur.
|
|
486
|
-
*/
|
|
487
|
-
export declare class HardenedStreamer implements Streamer {
|
|
488
|
-
private wrapped_;
|
|
489
|
-
private readonly breaker;
|
|
490
|
-
private readonly opener;
|
|
491
|
-
private readonly config;
|
|
492
|
-
private constructor();
|
|
493
|
-
/**
|
|
494
|
-
* Opens a new hardened streamer with the given configuration.
|
|
495
|
-
* @param opener - The function to use for opening streamers
|
|
496
|
-
* @param config - The configuration for the streamer
|
|
497
|
-
* @returns A promise that resolves to a new hardened streamer
|
|
498
|
-
*/
|
|
499
|
-
static open(opener: StreamOpener, config: StreamerConfig, breakerConfig?: breaker.Config): Promise<HardenedStreamer>;
|
|
500
|
-
private runStreamer;
|
|
501
|
-
private get wrapped();
|
|
502
|
-
update(channels: channel.Params): Promise<void>;
|
|
503
|
-
next(): Promise<IteratorResult<Frame>>;
|
|
504
|
-
read(): Promise<Frame>;
|
|
505
|
-
close(): void;
|
|
506
|
-
get keys(): channel.Key[];
|
|
507
|
-
[Symbol.asyncIterator](): AsyncIterator<Frame>;
|
|
508
|
-
}
|
|
509
|
-
/**
|
|
510
|
-
* Wraps a standard streamer to implement an observable interface for handling changes
|
|
511
|
-
* to channel values through an onChange handler.
|
|
512
|
-
*/
|
|
513
|
-
export declare class ObservableStreamer<V = Frame> extends observe.Observer<Frame, V> implements observe.ObservableAsyncCloseable<V> {
|
|
514
|
-
private readonly streamer;
|
|
515
|
-
private readonly closePromise;
|
|
516
|
-
/**
|
|
517
|
-
* Creates a new observable streamer.
|
|
518
|
-
* @param streamer - The streamer to wrap
|
|
519
|
-
* @param transform - An optional transform function to apply to each frame
|
|
520
|
-
* @template V - The type of the transformed value. Only relevant if transform is
|
|
521
|
-
* provided. Defaults to Frame.
|
|
522
|
-
*/
|
|
523
|
-
constructor(streamer: Streamer, transform?: observe.Transform<Frame, V>);
|
|
524
|
-
update(channels: channel.Params): Promise<void>;
|
|
525
|
-
close(): Promise<void>;
|
|
526
|
-
private stream;
|
|
527
|
-
}
|
|
454
|
+
export declare const openStreamer: (retrieveChannels: ChannelRetriever, client: WebSocketClient, config: StreamerConfig) => Promise<Streamer>;
|
|
528
455
|
export {};
|
|
529
456
|
//# sourceMappingURL=streamer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"streamer.d.ts","sourceRoot":"","sources":["../../../src/framer/streamer.ts"],"names":[],"mappings":"AASA,OAAO,EAAoB,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,
|
|
1
|
+
{"version":3,"file":"streamer.d.ts","sourceRoot":"","sources":["../../../src/framer/streamer.ts"],"names":[],"mappings":"AASA,OAAO,EAAoB,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,EAAU,IAAI,EAAO,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,EAAE,KAAK,gBAAgB,EAAe,MAAM,kBAAkB,CAAC;AAEtE,OAAO,EAAE,KAAK,EAAU,MAAM,gBAAgB,CAAC;AAG/C,QAAA,MAAM,IAAI;;;;;iBAKR,CAAC;AAEH;;;GAGG;AACH,MAAM,WAAW,eAAgB,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC;CAAG;AAEhE,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAA8B,CAAC;AAEzC;;;GAGG;AACH,MAAM,WAAW,gBAAiB,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC;CAAG;AAcjE,qFAAqF;AACrF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAE3B,CAAC;AAEF,qEAAqE;AACrE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE7D;;;;;;GAMG;AACH,MAAM,WAAW,QAAS,SAAQ,aAAa,CAAC,KAAK,CAAC,EAAE,aAAa,CAAC,KAAK,CAAC;IAC1E,8DAA8D;IAC9D,IAAI,EAAE,OAAO,CAAC,GAAG,EAAE,CAAC;IACpB,yDAAyD;IACzD,MAAM,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,4DAA4D;IAC5D,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,wCAAwC;IACxC,IAAI,EAAE,MAAM,OAAO,CAAC,KAAK,CAAC,CAAC;CAC5B;AAED,wCAAwC;AACxC,MAAM,WAAW,YAAY;IAC3B,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;CAC7C;AAED;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,GAC5B,kBAAkB,gBAAgB,EAAE,QAAQ,eAAe,KAAG,YAqB9D,CAAC;AAEJ;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GACvB,kBAAkB,gBAAgB,EAClC,QAAQ,eAAe,EACvB,QAAQ,cAAc,KACrB,OAAO,CAAC,QAAQ,CAA+D,CAAC"}
|