@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
|
@@ -2,13 +2,16 @@ import { WebSocketClient } from '@synnaxlabs/freighter';
|
|
|
2
2
|
import { control, CrudeSeries, errors, TimeSpan, TimeStamp } from '@synnaxlabs/x';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { channel } from '../channel';
|
|
5
|
+
import { ChannelRetriever } from './adapter';
|
|
5
6
|
import { CrudeFrame } from './frame';
|
|
6
7
|
import { WriterCommand } from './types.gen';
|
|
8
|
+
/** Whether a writer persists its samples, streams them to subscribers, or both. */
|
|
7
9
|
export declare enum WriterMode {
|
|
8
10
|
PersistStream = 1,
|
|
9
11
|
Persist = 2,
|
|
10
12
|
Stream = 3
|
|
11
13
|
}
|
|
14
|
+
/** `autoIndexPersistInterval` that flushes the index on every auto commit. */
|
|
12
15
|
export declare const ALWAYS_INDEX_PERSIST_ON_AUTO_COMMIT: TimeSpan;
|
|
13
16
|
declare const WriterClosedError_base: errors.TypedClass;
|
|
14
17
|
export declare class WriterClosedError extends WriterClosedError_base {
|
|
@@ -19,6 +22,7 @@ declare const writerModeZ: z.ZodUnion<[z.ZodEnum<typeof WriterMode>, z.ZodPipe<z
|
|
|
19
22
|
stream: "stream";
|
|
20
23
|
persistStream: "persistStream";
|
|
21
24
|
}>, z.ZodTransform<WriterMode, "persist" | "stream" | "persistStream">>]>;
|
|
25
|
+
/** A {@link WriterMode}, or its name as a string. */
|
|
22
26
|
export type CrudeWriterMode = z.input<typeof writerModeZ>;
|
|
23
27
|
declare const netWriterConfigZ: z.ZodObject<{
|
|
24
28
|
start: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<TimeStamp, TimeStamp>, z.ZodPipe<z.ZodObject<{
|
|
@@ -29,7 +33,7 @@ declare const netWriterConfigZ: z.ZodObject<{
|
|
|
29
33
|
controlSubject: z.ZodOptional<z.ZodObject<{
|
|
30
34
|
key: z.ZodString;
|
|
31
35
|
name: z.ZodString;
|
|
32
|
-
group: z.
|
|
36
|
+
group: z.ZodDefault<z.ZodUInt32>;
|
|
33
37
|
}, z.core.$strip>>;
|
|
34
38
|
authorities: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodInt, z.ZodTransform<number[], number>>, z.ZodArray<z.ZodInt>]>>;
|
|
35
39
|
mode: z.ZodDefault<z.ZodUnion<[z.ZodEnum<typeof WriterMode>, z.ZodPipe<z.ZodEnum<{
|
|
@@ -48,6 +52,7 @@ declare const netWriterConfigZ: z.ZodObject<{
|
|
|
48
52
|
keys: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>>;
|
|
49
53
|
}, z.core.$strip>;
|
|
50
54
|
export type NetWriterConfig = z.input<typeof netWriterConfigZ>;
|
|
55
|
+
/** Zod schema for {@link WriterConfig}. A bare channel list parses as a config. */
|
|
51
56
|
export declare const writerConfigZ: z.ZodUnion<[z.ZodObject<{
|
|
52
57
|
start: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<TimeStamp, TimeStamp>, z.ZodPipe<z.ZodObject<{
|
|
53
58
|
value: z.ZodBigInt;
|
|
@@ -57,7 +62,7 @@ export declare const writerConfigZ: z.ZodUnion<[z.ZodObject<{
|
|
|
57
62
|
controlSubject: z.ZodOptional<z.ZodObject<{
|
|
58
63
|
key: z.ZodString;
|
|
59
64
|
name: z.ZodString;
|
|
60
|
-
group: z.
|
|
65
|
+
group: z.ZodDefault<z.ZodUInt32>;
|
|
61
66
|
}, z.core.$strip>>;
|
|
62
67
|
authorities: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodInt, z.ZodTransform<number[], number>>, z.ZodArray<z.ZodInt>]>>;
|
|
63
68
|
mode: z.ZodDefault<z.ZodUnion<[z.ZodEnum<typeof WriterMode>, z.ZodPipe<z.ZodEnum<{
|
|
@@ -74,22 +79,26 @@ export declare const writerConfigZ: z.ZodUnion<[z.ZodObject<{
|
|
|
74
79
|
}>>, 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<TimeStamp, TimeStamp>, z.ZodTransform<TimeSpan, TimeStamp>>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').Rate, import('@synnaxlabs/x').Rate>, z.ZodTransform<TimeSpan, import('@synnaxlabs/x').Rate>>]>>;
|
|
75
80
|
autoIndex: z.ZodDefault<z.ZodBoolean>;
|
|
76
81
|
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<{
|
|
77
|
-
key: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]
|
|
82
|
+
key: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
78
83
|
name: z.ZodString;
|
|
79
|
-
leaseholder: z.ZodInt
|
|
80
|
-
dataType: z.ZodUnion<readonly [z.
|
|
81
|
-
|
|
82
|
-
|
|
84
|
+
leaseholder: z.ZodDefault<z.ZodInt>;
|
|
85
|
+
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<{
|
|
86
|
+
value: z.ZodString;
|
|
87
|
+
}, z.core.$strip>, z.ZodTransform<import('@synnaxlabs/x').DataType, {
|
|
88
|
+
value: string;
|
|
89
|
+
}>>]>;
|
|
90
|
+
isIndex: z.ZodDefault<z.ZodBoolean>;
|
|
91
|
+
index: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
83
92
|
alias: z.ZodOptional<z.ZodString>;
|
|
84
93
|
virtual: z.ZodDefault<z.ZodBoolean>;
|
|
85
94
|
internal: z.ZodDefault<z.ZodBoolean>;
|
|
86
95
|
expression: z.ZodDefault<z.ZodString>;
|
|
87
|
-
operations: z.
|
|
96
|
+
operations: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
88
97
|
type: z.ZodEnum<{
|
|
89
|
-
none: "none";
|
|
90
98
|
min: "min";
|
|
91
99
|
max: "max";
|
|
92
100
|
avg: "avg";
|
|
101
|
+
none: "none";
|
|
93
102
|
derivative: "derivative";
|
|
94
103
|
}>;
|
|
95
104
|
resetChannel: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
@@ -98,41 +107,37 @@ export declare const writerConfigZ: z.ZodUnion<[z.ZodObject<{
|
|
|
98
107
|
}, z.core.$strip>, z.ZodTransform<TimeSpan, {
|
|
99
108
|
value: bigint;
|
|
100
109
|
}>>, 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<TimeStamp, TimeStamp>, z.ZodTransform<TimeSpan, TimeStamp>>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').Rate, import('@synnaxlabs/x').Rate>, z.ZodTransform<TimeSpan, import('@synnaxlabs/x').Rate>>]>>;
|
|
101
|
-
}, z.core.$strip
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
duration: TimeSpan;
|
|
105
|
-
}[] | undefined, {
|
|
106
|
-
type: "none" | "min" | "max" | "avg" | "derivative";
|
|
107
|
-
resetChannel: number;
|
|
108
|
-
duration: TimeSpan;
|
|
109
|
-
}[] | null>>>;
|
|
110
|
-
concurrency: z.ZodOptional<z.ZodDefault<z.ZodEnum<typeof control.Concurrency>>>;
|
|
111
|
-
status: z.ZodOptional<import('@synnaxlabs/x/dist/src/status/types.gen').StatusZodObject<z.ZodNever, z.ZodEnum<{
|
|
112
|
-
success: "success";
|
|
110
|
+
}, z.core.$strip>>>;
|
|
111
|
+
concurrency: z.ZodDefault<z.ZodEnum<typeof control.Concurrency>>;
|
|
112
|
+
status: z.ZodOptional<import('..').StatusZodObject<z.ZodNever, z.ZodEnum<{
|
|
113
113
|
error: "error";
|
|
114
|
+
success: "success";
|
|
114
115
|
info: "info";
|
|
115
116
|
warning: "warning";
|
|
116
117
|
loading: "loading";
|
|
117
118
|
disabled: "disabled";
|
|
118
119
|
}>>>;
|
|
119
120
|
}, z.core.$strip>>, z.ZodPipe<z.ZodObject<{
|
|
120
|
-
key: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]
|
|
121
|
+
key: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
121
122
|
name: z.ZodString;
|
|
122
|
-
leaseholder: z.ZodInt
|
|
123
|
-
dataType: z.ZodUnion<readonly [z.
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
leaseholder: z.ZodDefault<z.ZodInt>;
|
|
124
|
+
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<{
|
|
125
|
+
value: z.ZodString;
|
|
126
|
+
}, z.core.$strip>, z.ZodTransform<import('@synnaxlabs/x').DataType, {
|
|
127
|
+
value: string;
|
|
128
|
+
}>>]>;
|
|
129
|
+
isIndex: z.ZodDefault<z.ZodBoolean>;
|
|
130
|
+
index: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
126
131
|
alias: z.ZodOptional<z.ZodString>;
|
|
127
132
|
virtual: z.ZodDefault<z.ZodBoolean>;
|
|
128
133
|
internal: z.ZodDefault<z.ZodBoolean>;
|
|
129
134
|
expression: z.ZodDefault<z.ZodString>;
|
|
130
|
-
operations: z.
|
|
135
|
+
operations: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
131
136
|
type: z.ZodEnum<{
|
|
132
|
-
none: "none";
|
|
133
137
|
min: "min";
|
|
134
138
|
max: "max";
|
|
135
139
|
avg: "avg";
|
|
140
|
+
none: "none";
|
|
136
141
|
derivative: "derivative";
|
|
137
142
|
}>;
|
|
138
143
|
resetChannel: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
@@ -141,19 +146,11 @@ export declare const writerConfigZ: z.ZodUnion<[z.ZodObject<{
|
|
|
141
146
|
}, z.core.$strip>, z.ZodTransform<TimeSpan, {
|
|
142
147
|
value: bigint;
|
|
143
148
|
}>>, 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<TimeStamp, TimeStamp>, z.ZodTransform<TimeSpan, TimeStamp>>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').Rate, import('@synnaxlabs/x').Rate>, z.ZodTransform<TimeSpan, import('@synnaxlabs/x').Rate>>]>>;
|
|
144
|
-
}, z.core.$strip
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
duration: TimeSpan;
|
|
148
|
-
}[] | undefined, {
|
|
149
|
-
type: "none" | "min" | "max" | "avg" | "derivative";
|
|
150
|
-
resetChannel: number;
|
|
151
|
-
duration: TimeSpan;
|
|
152
|
-
}[] | null>>>;
|
|
153
|
-
concurrency: z.ZodOptional<z.ZodDefault<z.ZodEnum<typeof control.Concurrency>>>;
|
|
154
|
-
status: z.ZodOptional<import('@synnaxlabs/x/dist/src/status/types.gen').StatusZodObject<z.ZodNever, z.ZodEnum<{
|
|
155
|
-
success: "success";
|
|
149
|
+
}, z.core.$strip>>>;
|
|
150
|
+
concurrency: z.ZodDefault<z.ZodEnum<typeof control.Concurrency>>;
|
|
151
|
+
status: z.ZodOptional<import('..').StatusZodObject<z.ZodNever, z.ZodEnum<{
|
|
156
152
|
error: "error";
|
|
153
|
+
success: "success";
|
|
157
154
|
info: "info";
|
|
158
155
|
warning: "warning";
|
|
159
156
|
loading: "loading";
|
|
@@ -169,20 +166,20 @@ export declare const writerConfigZ: z.ZodUnion<[z.ZodObject<{
|
|
|
169
166
|
virtual: boolean;
|
|
170
167
|
internal: boolean;
|
|
171
168
|
expression: string;
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
type: "none" | "min" | "max" | "avg" | "derivative";
|
|
169
|
+
operations: {
|
|
170
|
+
type: "min" | "max" | "avg" | "none" | "derivative";
|
|
175
171
|
resetChannel: number;
|
|
176
172
|
duration: TimeSpan;
|
|
177
|
-
}[]
|
|
178
|
-
concurrency
|
|
173
|
+
}[];
|
|
174
|
+
concurrency: control.Concurrency;
|
|
175
|
+
alias?: string | undefined;
|
|
179
176
|
status?: {
|
|
180
177
|
key: string;
|
|
181
178
|
name: string;
|
|
182
179
|
variant: "error" | "success" | "info" | "warning" | "loading" | "disabled";
|
|
183
180
|
message: string;
|
|
181
|
+
description: string;
|
|
184
182
|
time: TimeStamp;
|
|
185
|
-
description?: string | undefined;
|
|
186
183
|
labels?: {
|
|
187
184
|
key: string;
|
|
188
185
|
name: string;
|
|
@@ -200,20 +197,20 @@ export declare const writerConfigZ: z.ZodUnion<[z.ZodObject<{
|
|
|
200
197
|
virtual: boolean;
|
|
201
198
|
internal: boolean;
|
|
202
199
|
expression: string;
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
type: "none" | "min" | "max" | "avg" | "derivative";
|
|
200
|
+
operations: {
|
|
201
|
+
type: "min" | "max" | "avg" | "none" | "derivative";
|
|
206
202
|
resetChannel: number;
|
|
207
203
|
duration: TimeSpan;
|
|
208
|
-
}[]
|
|
209
|
-
concurrency
|
|
204
|
+
}[];
|
|
205
|
+
concurrency: control.Concurrency;
|
|
206
|
+
alias?: string | undefined;
|
|
210
207
|
status?: {
|
|
211
208
|
key: string;
|
|
212
209
|
name: string;
|
|
213
210
|
variant: "error" | "success" | "info" | "warning" | "loading" | "disabled";
|
|
214
211
|
message: string;
|
|
212
|
+
description: string;
|
|
215
213
|
time: TimeStamp;
|
|
216
|
-
description?: string | undefined;
|
|
217
214
|
labels?: {
|
|
218
215
|
key: string;
|
|
219
216
|
name: string;
|
|
@@ -231,20 +228,20 @@ export declare const writerConfigZ: z.ZodUnion<[z.ZodObject<{
|
|
|
231
228
|
virtual: boolean;
|
|
232
229
|
internal: boolean;
|
|
233
230
|
expression: string;
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
type: "none" | "min" | "max" | "avg" | "derivative";
|
|
231
|
+
operations: {
|
|
232
|
+
type: "min" | "max" | "avg" | "none" | "derivative";
|
|
237
233
|
resetChannel: number;
|
|
238
234
|
duration: TimeSpan;
|
|
239
|
-
}[]
|
|
240
|
-
concurrency
|
|
235
|
+
}[];
|
|
236
|
+
concurrency: control.Concurrency;
|
|
237
|
+
alias?: string | undefined;
|
|
241
238
|
status?: {
|
|
242
239
|
key: string;
|
|
243
240
|
name: string;
|
|
244
241
|
variant: "error" | "success" | "info" | "warning" | "loading" | "disabled";
|
|
245
242
|
message: string;
|
|
243
|
+
description: string;
|
|
246
244
|
time: TimeStamp;
|
|
247
|
-
description?: string | undefined;
|
|
248
245
|
labels?: {
|
|
249
246
|
key: string;
|
|
250
247
|
name: string;
|
|
@@ -254,22 +251,26 @@ export declare const writerConfigZ: z.ZodUnion<[z.ZodObject<{
|
|
|
254
251
|
} | undefined;
|
|
255
252
|
}[]>>]>;
|
|
256
253
|
}, 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<{
|
|
257
|
-
key: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]
|
|
254
|
+
key: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
258
255
|
name: z.ZodString;
|
|
259
|
-
leaseholder: z.ZodInt
|
|
260
|
-
dataType: z.ZodUnion<readonly [z.
|
|
261
|
-
|
|
262
|
-
|
|
256
|
+
leaseholder: z.ZodDefault<z.ZodInt>;
|
|
257
|
+
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<{
|
|
258
|
+
value: z.ZodString;
|
|
259
|
+
}, z.core.$strip>, z.ZodTransform<import('@synnaxlabs/x').DataType, {
|
|
260
|
+
value: string;
|
|
261
|
+
}>>]>;
|
|
262
|
+
isIndex: z.ZodDefault<z.ZodBoolean>;
|
|
263
|
+
index: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
263
264
|
alias: z.ZodOptional<z.ZodString>;
|
|
264
265
|
virtual: z.ZodDefault<z.ZodBoolean>;
|
|
265
266
|
internal: z.ZodDefault<z.ZodBoolean>;
|
|
266
267
|
expression: z.ZodDefault<z.ZodString>;
|
|
267
|
-
operations: z.
|
|
268
|
+
operations: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
268
269
|
type: z.ZodEnum<{
|
|
269
|
-
none: "none";
|
|
270
270
|
min: "min";
|
|
271
271
|
max: "max";
|
|
272
272
|
avg: "avg";
|
|
273
|
+
none: "none";
|
|
273
274
|
derivative: "derivative";
|
|
274
275
|
}>;
|
|
275
276
|
resetChannel: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
@@ -278,41 +279,37 @@ export declare const writerConfigZ: z.ZodUnion<[z.ZodObject<{
|
|
|
278
279
|
}, z.core.$strip>, z.ZodTransform<TimeSpan, {
|
|
279
280
|
value: bigint;
|
|
280
281
|
}>>, 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<TimeStamp, TimeStamp>, z.ZodTransform<TimeSpan, TimeStamp>>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').Rate, import('@synnaxlabs/x').Rate>, z.ZodTransform<TimeSpan, import('@synnaxlabs/x').Rate>>]>>;
|
|
281
|
-
}, z.core.$strip
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
duration: TimeSpan;
|
|
285
|
-
}[] | undefined, {
|
|
286
|
-
type: "none" | "min" | "max" | "avg" | "derivative";
|
|
287
|
-
resetChannel: number;
|
|
288
|
-
duration: TimeSpan;
|
|
289
|
-
}[] | null>>>;
|
|
290
|
-
concurrency: z.ZodOptional<z.ZodDefault<z.ZodEnum<typeof control.Concurrency>>>;
|
|
291
|
-
status: z.ZodOptional<import('@synnaxlabs/x/dist/src/status/types.gen').StatusZodObject<z.ZodNever, z.ZodEnum<{
|
|
292
|
-
success: "success";
|
|
282
|
+
}, z.core.$strip>>>;
|
|
283
|
+
concurrency: z.ZodDefault<z.ZodEnum<typeof control.Concurrency>>;
|
|
284
|
+
status: z.ZodOptional<import('..').StatusZodObject<z.ZodNever, z.ZodEnum<{
|
|
293
285
|
error: "error";
|
|
286
|
+
success: "success";
|
|
294
287
|
info: "info";
|
|
295
288
|
warning: "warning";
|
|
296
289
|
loading: "loading";
|
|
297
290
|
disabled: "disabled";
|
|
298
291
|
}>>>;
|
|
299
292
|
}, z.core.$strip>>, z.ZodPipe<z.ZodObject<{
|
|
300
|
-
key: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]
|
|
293
|
+
key: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
301
294
|
name: z.ZodString;
|
|
302
|
-
leaseholder: z.ZodInt
|
|
303
|
-
dataType: z.ZodUnion<readonly [z.
|
|
304
|
-
|
|
305
|
-
|
|
295
|
+
leaseholder: z.ZodDefault<z.ZodInt>;
|
|
296
|
+
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<{
|
|
297
|
+
value: z.ZodString;
|
|
298
|
+
}, z.core.$strip>, z.ZodTransform<import('@synnaxlabs/x').DataType, {
|
|
299
|
+
value: string;
|
|
300
|
+
}>>]>;
|
|
301
|
+
isIndex: z.ZodDefault<z.ZodBoolean>;
|
|
302
|
+
index: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
306
303
|
alias: z.ZodOptional<z.ZodString>;
|
|
307
304
|
virtual: z.ZodDefault<z.ZodBoolean>;
|
|
308
305
|
internal: z.ZodDefault<z.ZodBoolean>;
|
|
309
306
|
expression: z.ZodDefault<z.ZodString>;
|
|
310
|
-
operations: z.
|
|
307
|
+
operations: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
311
308
|
type: z.ZodEnum<{
|
|
312
|
-
none: "none";
|
|
313
309
|
min: "min";
|
|
314
310
|
max: "max";
|
|
315
311
|
avg: "avg";
|
|
312
|
+
none: "none";
|
|
316
313
|
derivative: "derivative";
|
|
317
314
|
}>;
|
|
318
315
|
resetChannel: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
@@ -321,19 +318,11 @@ export declare const writerConfigZ: z.ZodUnion<[z.ZodObject<{
|
|
|
321
318
|
}, z.core.$strip>, z.ZodTransform<TimeSpan, {
|
|
322
319
|
value: bigint;
|
|
323
320
|
}>>, 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<TimeStamp, TimeStamp>, z.ZodTransform<TimeSpan, TimeStamp>>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').Rate, import('@synnaxlabs/x').Rate>, z.ZodTransform<TimeSpan, import('@synnaxlabs/x').Rate>>]>>;
|
|
324
|
-
}, z.core.$strip
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
duration: TimeSpan;
|
|
328
|
-
}[] | undefined, {
|
|
329
|
-
type: "none" | "min" | "max" | "avg" | "derivative";
|
|
330
|
-
resetChannel: number;
|
|
331
|
-
duration: TimeSpan;
|
|
332
|
-
}[] | null>>>;
|
|
333
|
-
concurrency: z.ZodOptional<z.ZodDefault<z.ZodEnum<typeof control.Concurrency>>>;
|
|
334
|
-
status: z.ZodOptional<import('@synnaxlabs/x/dist/src/status/types.gen').StatusZodObject<z.ZodNever, z.ZodEnum<{
|
|
335
|
-
success: "success";
|
|
321
|
+
}, z.core.$strip>>>;
|
|
322
|
+
concurrency: z.ZodDefault<z.ZodEnum<typeof control.Concurrency>>;
|
|
323
|
+
status: z.ZodOptional<import('..').StatusZodObject<z.ZodNever, z.ZodEnum<{
|
|
336
324
|
error: "error";
|
|
325
|
+
success: "success";
|
|
337
326
|
info: "info";
|
|
338
327
|
warning: "warning";
|
|
339
328
|
loading: "loading";
|
|
@@ -349,20 +338,20 @@ export declare const writerConfigZ: z.ZodUnion<[z.ZodObject<{
|
|
|
349
338
|
virtual: boolean;
|
|
350
339
|
internal: boolean;
|
|
351
340
|
expression: string;
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
type: "none" | "min" | "max" | "avg" | "derivative";
|
|
341
|
+
operations: {
|
|
342
|
+
type: "min" | "max" | "avg" | "none" | "derivative";
|
|
355
343
|
resetChannel: number;
|
|
356
344
|
duration: TimeSpan;
|
|
357
|
-
}[]
|
|
358
|
-
concurrency
|
|
345
|
+
}[];
|
|
346
|
+
concurrency: control.Concurrency;
|
|
347
|
+
alias?: string | undefined;
|
|
359
348
|
status?: {
|
|
360
349
|
key: string;
|
|
361
350
|
name: string;
|
|
362
351
|
variant: "error" | "success" | "info" | "warning" | "loading" | "disabled";
|
|
363
352
|
message: string;
|
|
353
|
+
description: string;
|
|
364
354
|
time: TimeStamp;
|
|
365
|
-
description?: string | undefined;
|
|
366
355
|
labels?: {
|
|
367
356
|
key: string;
|
|
368
357
|
name: string;
|
|
@@ -380,20 +369,20 @@ export declare const writerConfigZ: z.ZodUnion<[z.ZodObject<{
|
|
|
380
369
|
virtual: boolean;
|
|
381
370
|
internal: boolean;
|
|
382
371
|
expression: string;
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
type: "none" | "min" | "max" | "avg" | "derivative";
|
|
372
|
+
operations: {
|
|
373
|
+
type: "min" | "max" | "avg" | "none" | "derivative";
|
|
386
374
|
resetChannel: number;
|
|
387
375
|
duration: TimeSpan;
|
|
388
|
-
}[]
|
|
389
|
-
concurrency
|
|
376
|
+
}[];
|
|
377
|
+
concurrency: control.Concurrency;
|
|
378
|
+
alias?: string | undefined;
|
|
390
379
|
status?: {
|
|
391
380
|
key: string;
|
|
392
381
|
name: string;
|
|
393
382
|
variant: "error" | "success" | "info" | "warning" | "loading" | "disabled";
|
|
394
383
|
message: string;
|
|
384
|
+
description: string;
|
|
395
385
|
time: TimeStamp;
|
|
396
|
-
description?: string | undefined;
|
|
397
386
|
labels?: {
|
|
398
387
|
key: string;
|
|
399
388
|
name: string;
|
|
@@ -411,20 +400,20 @@ export declare const writerConfigZ: z.ZodUnion<[z.ZodObject<{
|
|
|
411
400
|
virtual: boolean;
|
|
412
401
|
internal: boolean;
|
|
413
402
|
expression: string;
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
type: "none" | "min" | "max" | "avg" | "derivative";
|
|
403
|
+
operations: {
|
|
404
|
+
type: "min" | "max" | "avg" | "none" | "derivative";
|
|
417
405
|
resetChannel: number;
|
|
418
406
|
duration: TimeSpan;
|
|
419
|
-
}[]
|
|
420
|
-
concurrency
|
|
407
|
+
}[];
|
|
408
|
+
concurrency: control.Concurrency;
|
|
409
|
+
alias?: string | undefined;
|
|
421
410
|
status?: {
|
|
422
411
|
key: string;
|
|
423
412
|
name: string;
|
|
424
413
|
variant: "error" | "success" | "info" | "warning" | "loading" | "disabled";
|
|
425
414
|
message: string;
|
|
415
|
+
description: string;
|
|
426
416
|
time: TimeStamp;
|
|
427
|
-
description?: string | undefined;
|
|
428
417
|
labels?: {
|
|
429
418
|
key: string;
|
|
430
419
|
name: string;
|
|
@@ -444,9 +433,10 @@ export declare const writerConfigZ: z.ZodUnion<[z.ZodObject<{
|
|
|
444
433
|
controlSubject?: {
|
|
445
434
|
key: string;
|
|
446
435
|
name: string;
|
|
447
|
-
group
|
|
436
|
+
group: number;
|
|
448
437
|
} | undefined;
|
|
449
438
|
}, string[] | number[]>>]>;
|
|
439
|
+
/** Config for a writer. Pass it to `client.telem.openWriter`. */
|
|
450
440
|
export type WriterConfig = z.input<typeof writerConfigZ>;
|
|
451
441
|
declare const reqZ: z.ZodObject<{
|
|
452
442
|
command: z.ZodEnum<typeof WriterCommand>;
|
|
@@ -459,7 +449,7 @@ declare const reqZ: z.ZodObject<{
|
|
|
459
449
|
controlSubject: z.ZodOptional<z.ZodObject<{
|
|
460
450
|
key: z.ZodString;
|
|
461
451
|
name: z.ZodString;
|
|
462
|
-
group: z.
|
|
452
|
+
group: z.ZodDefault<z.ZodUInt32>;
|
|
463
453
|
}, z.core.$strip>>;
|
|
464
454
|
authorities: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodInt, z.ZodTransform<number[], number>>, z.ZodArray<z.ZodInt>]>>;
|
|
465
455
|
mode: z.ZodDefault<z.ZodUnion<[z.ZodEnum<typeof WriterMode>, z.ZodPipe<z.ZodEnum<{
|
|
@@ -491,17 +481,21 @@ declare const reqZ: z.ZodObject<{
|
|
|
491
481
|
value: z.ZodBigInt;
|
|
492
482
|
}, z.core.$strip>, z.ZodTransform<TimeStamp, {
|
|
493
483
|
value: bigint;
|
|
494
|
-
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<TimeSpan, TimeSpan>, z.ZodTransform<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<TimeStamp, [number, number
|
|
484
|
+
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<TimeSpan, TimeSpan>, z.ZodTransform<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<TimeStamp, [number, number] | [number] | [number, number, number]>>]>;
|
|
495
485
|
end: z.ZodUnion<readonly [z.ZodCustom<TimeStamp, TimeStamp>, z.ZodPipe<z.ZodObject<{
|
|
496
486
|
value: z.ZodBigInt;
|
|
497
487
|
}, z.core.$strip>, z.ZodTransform<TimeStamp, {
|
|
498
488
|
value: bigint;
|
|
499
|
-
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<TimeSpan, TimeSpan>, z.ZodTransform<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<TimeStamp, [number, number
|
|
489
|
+
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<TimeSpan, TimeSpan>, z.ZodTransform<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<TimeStamp, [number, number] | [number] | [number, number, number]>>]>;
|
|
500
490
|
}, z.core.$strip>, z.ZodTransform<import('@synnaxlabs/x').TimeRange, {
|
|
501
491
|
start: TimeStamp;
|
|
502
492
|
end: TimeStamp;
|
|
503
493
|
}>>, z.ZodCustom<import('@synnaxlabs/x').TimeRange, import('@synnaxlabs/x').TimeRange>]>>;
|
|
504
|
-
dataType: z.ZodUnion<readonly [z.
|
|
494
|
+
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<{
|
|
495
|
+
value: z.ZodString;
|
|
496
|
+
}, z.core.$strip>, z.ZodTransform<import('@synnaxlabs/x').DataType, {
|
|
497
|
+
value: string;
|
|
498
|
+
}>>]>;
|
|
505
499
|
alignment: z.ZodOptional<z.ZodCoercedBigInt<unknown>>;
|
|
506
500
|
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>>]>>;
|
|
507
501
|
glBufferUsage: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
@@ -514,66 +508,41 @@ declare const reqZ: z.ZodObject<{
|
|
|
514
508
|
}, z.core.$strip>;
|
|
515
509
|
export interface WriteRequest extends z.input<typeof reqZ> {
|
|
516
510
|
}
|
|
517
|
-
declare const
|
|
511
|
+
declare const authorityParamsZ: z.ZodPipe<z.ZodTuple<[z.ZodUnion<readonly [z.ZodRecord<z.ZodUnion<[z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodString]>, z.ZodInt>, z.ZodUnion<[z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodString]>, z.ZodInt]>, z.ZodOptional<z.ZodInt>], null>, z.ZodTransform<{
|
|
518
512
|
keys: channel.Key[] | channel.Name[];
|
|
519
513
|
authorities: number[];
|
|
520
514
|
}, [string | number | Record<string | number, number>, (number | undefined)?]>>;
|
|
521
|
-
export type AuthorityArgs = z.input<typeof authorityArgsZ>;
|
|
522
515
|
/**
|
|
523
|
-
*
|
|
524
|
-
*
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
*
|
|
529
|
-
*
|
|
530
|
-
*
|
|
531
|
-
* used for most use cases.
|
|
532
|
-
*
|
|
533
|
-
* The protocol is as follows:
|
|
534
|
-
*
|
|
535
|
-
* 1. The writer is opened with a starting timestamp and a list of channel keys. The
|
|
536
|
-
* writer will fail to open if the starting timestamp overlaps with any existing
|
|
537
|
-
* telemetry for any channels specified. If the writer opens successfully, the caller
|
|
538
|
-
* is then free to write frames to the writer.
|
|
539
|
-
*
|
|
540
|
-
* 2. To write a frame, the caller can use the write method and follow the validation
|
|
541
|
-
* rules described in its method's documentation. This process is asynchronous,
|
|
542
|
-
* meaning that write calls may return before the frame has been written to the
|
|
543
|
-
* cluster. This also means that the writer can accumulate an error after write is
|
|
544
|
-
* called. If the writer accumulates an error, all subsequent write and commit calls
|
|
545
|
-
* will return False. The caller can check for errors by calling the error method,
|
|
546
|
-
* which returns the accumulated error and resets the writer for future use. The
|
|
547
|
-
* caller can also check for errors by closing the writer, which will throw any
|
|
548
|
-
* accumulated error.
|
|
549
|
-
*
|
|
550
|
-
* 3. To commit the written frames to the cluster, the caller can call the commit
|
|
551
|
-
* method. Unlike write, commit is synchronous, meaning that it will not return until
|
|
552
|
-
* the frames have been written to the cluster. If the writer has accumulated an
|
|
553
|
-
* error, commit will return false. After the caller acknowledges the error, they can
|
|
554
|
-
* attempt to commit again. Commit can be called several times throughout a writer's
|
|
555
|
-
* lifetime, and will only commit the frames that have been written since the last
|
|
556
|
-
* commit.
|
|
516
|
+
* Arguments to `Writer.setAuthority`: one authority for every channel, one channel and
|
|
517
|
+
* its authority, or a record of channel to authority.
|
|
518
|
+
*/
|
|
519
|
+
export type AuthorityParams = z.input<typeof authorityParamsZ>;
|
|
520
|
+
/**
|
|
521
|
+
* Writes telemetry to a set of channels in time order. Open one with
|
|
522
|
+
* {@link FrameClient#openWriter}, never directly. Prefer the frame client's write
|
|
523
|
+
* method unless the volume warrants the streaming protocol.
|
|
557
524
|
*
|
|
558
|
-
*
|
|
559
|
-
*
|
|
560
|
-
*
|
|
525
|
+
* Opening fails when the start timestamp overlaps existing telemetry on any of the
|
|
526
|
+
* channels. `write` is asynchronous, so a failure surfaces on a later call: once the
|
|
527
|
+
* writer accumulates an error, every write and commit returns false until `error`
|
|
528
|
+
* reads and clears it. `commit` blocks until the cluster has the frames written since
|
|
529
|
+
* the last commit, and may be called repeatedly. Close in a `finally` block to release
|
|
530
|
+
* resources; close throws any accumulated error.
|
|
561
531
|
*/
|
|
562
532
|
export declare class Writer {
|
|
563
533
|
private readonly stream;
|
|
564
534
|
private readonly adapter;
|
|
565
535
|
private closeErr;
|
|
566
536
|
private constructor();
|
|
567
|
-
static _open(
|
|
537
|
+
static _open(retrieveChannels: ChannelRetriever, client: WebSocketClient, config: WriterConfig): Promise<Writer>;
|
|
568
538
|
write(channel: channel.Key | channel.Name, data: CrudeSeries): Promise<void>;
|
|
569
539
|
write(channel: channel.Key[] | channel.Name[], data: CrudeSeries[]): Promise<void>;
|
|
570
540
|
write(frame: CrudeFrame | Record<channel.Key | channel.Name, CrudeSeries>): Promise<void>;
|
|
571
541
|
write(channelsOrData: channel.Params | Record<channel.Key | channel.Name, CrudeSeries> | CrudeFrame, series?: CrudeSeries | CrudeSeries[]): Promise<void>;
|
|
572
|
-
setAuthority(value:
|
|
542
|
+
setAuthority(value: AuthorityParams[0], authority?: AuthorityParams[1]): Promise<void>;
|
|
573
543
|
/**
|
|
574
544
|
* Commits the written frames to the database. Commit is synchronous, meaning that it
|
|
575
545
|
* will not return until all frames have been committed to the database.
|
|
576
|
-
*
|
|
577
546
|
* @returns the timestamp of the last sample written to the writer.
|
|
578
547
|
* @throws if the commit fails or any previous writer method has thrown. Once commit
|
|
579
548
|
* throws, the writer must be closed and re-opened to continue use.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writer.d.ts","sourceRoot":"","sources":["../../../src/framer/writer.ts"],"names":[],"mappings":"AASA,OAAO,EAAoB,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,EACL,OAAO,EACP,KAAK,WAAW,EAChB,MAAM,EACN,QAAQ,EACR,SAAS,EAEV,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"writer.d.ts","sourceRoot":"","sources":["../../../src/framer/writer.ts"],"names":[],"mappings":"AASA,OAAO,EAAoB,KAAK,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,EACL,OAAO,EACP,KAAK,WAAW,EAChB,MAAM,EACN,QAAQ,EACR,SAAS,EAEV,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;AAIzC,OAAO,EAAE,KAAK,gBAAgB,EAAgB,MAAM,kBAAkB,CAAC;AAEvE,OAAO,EAAE,KAAK,UAAU,EAAU,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,mFAAmF;AACnF,oBAAY,UAAU;IACpB,aAAa,IAAI;IACjB,OAAO,IAAI;IACX,MAAM,IAAI;CACX;AAED,8EAA8E;AAC9E,eAAO,MAAM,mCAAmC,EAAE,QAA2B,CAAC;;AAE9E,qBAAa,iBAAkB,SAAQ,sBAAgC;;CAItE;AAED,QAAA,MAAM,WAAW;;;;yEAWhB,CAAC;AAEF,qDAAqD;AACrD,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AA2C1D,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEpB,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAO/D,mFAAmF;AACnF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAIzB,CAAC;AAEF,iEAAiE;AACjE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEzD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKR,CAAC;AAEH,MAAM,WAAW,YAAa,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC;CAAG;AAQ7D,QAAA,MAAM,gBAAgB;UAkBG,OAAO,CAAC,GAAG,EAAE,GAAG,OAAO,CAAC,IAAI,EAAE;;+EAMnD,CAAC;AAEL;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAI/D;;;;;;;;;;;GAWG;AACH,qBAAa,MAAM;IACjB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAmC;IAC1D,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAe;IACvC,OAAO,CAAC,QAAQ,CAAsB;IAEtC,OAAO;WAKM,KAAK,CAChB,gBAAgB,EAAE,gBAAgB,EAClC,MAAM,EAAE,eAAe,EACvB,MAAM,EAAE,YAAY,GACnB,OAAO,CAAC,MAAM,CAAC;IAaZ,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,GAAG,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAC5E,KAAK,CACT,OAAO,EAAE,OAAO,CAAC,GAAG,EAAE,GAAG,OAAO,CAAC,IAAI,EAAE,EACvC,IAAI,EAAE,WAAW,EAAE,GAClB,OAAO,CAAC,IAAI,CAAC;IACV,KAAK,CACT,KAAK,EAAE,UAAU,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,GAAG,OAAO,CAAC,IAAI,EAAE,WAAW,CAAC,GAClE,OAAO,CAAC,IAAI,CAAC;IACV,KAAK,CACT,cAAc,EACZ,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,GAAG,OAAO,CAAC,IAAI,EAAE,WAAW,CAAC,GAAG,UAAU,EAC/E,MAAM,CAAC,EAAE,WAAW,GAAG,WAAW,EAAE,GACnC,OAAO,CAAC,IAAI,CAAC;IAgCV,YAAY,CAChB,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,EACzB,SAAS,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,GAC7B,OAAO,CAAC,IAAI,CAAC;IAYhB;;;;;;OAMG;IACG,MAAM,IAAI,OAAO,CAAC,SAAS,CAAC;IAUlC;;;;OAIG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;YAId,aAAa;YAmBb,OAAO;CAsBtB"}
|