@synnaxlabs/client 0.56.1 → 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,30 +1,31 @@
|
|
|
1
|
-
import { control,
|
|
1
|
+
import { control, telem } from '@synnaxlabs/x';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { ontology } from '../ontology';
|
|
4
|
+
import { status } from '../status';
|
|
4
5
|
export declare const keyZ: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
|
|
5
6
|
export type Key = z.infer<typeof keyZ>;
|
|
6
7
|
export declare const localKeyZ: z.ZodInt;
|
|
7
8
|
export type LocalKey = z.infer<typeof localKeyZ>;
|
|
8
9
|
export declare const OPERATION_TYPES: readonly ["min", "max", "avg", "none", "derivative"];
|
|
9
10
|
export declare const operationTypeZ: z.ZodEnum<{
|
|
10
|
-
none: "none";
|
|
11
11
|
min: "min";
|
|
12
12
|
max: "max";
|
|
13
13
|
avg: "avg";
|
|
14
|
+
none: "none";
|
|
14
15
|
derivative: "derivative";
|
|
15
16
|
}>;
|
|
16
17
|
export type OperationType = z.infer<typeof operationTypeZ>;
|
|
17
18
|
/**
|
|
18
19
|
* Operation defines an aggregation operation applied to channel data. Operations
|
|
19
|
-
* calculate min, max, or
|
|
20
|
+
* calculate min, max, average, or derivative values over a time duration or triggered
|
|
20
21
|
* by a reset channel.
|
|
21
22
|
*/
|
|
22
23
|
export declare const operationZ: z.ZodObject<{
|
|
23
24
|
type: z.ZodEnum<{
|
|
24
|
-
none: "none";
|
|
25
25
|
min: "min";
|
|
26
26
|
max: "max";
|
|
27
27
|
avg: "avg";
|
|
28
|
+
none: "none";
|
|
28
29
|
derivative: "derivative";
|
|
29
30
|
}>;
|
|
30
31
|
resetChannel: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
@@ -39,8 +40,8 @@ export interface Operation extends z.infer<typeof operationZ> {
|
|
|
39
40
|
export declare const nameZ: z.ZodString;
|
|
40
41
|
export type Name = z.infer<typeof nameZ>;
|
|
41
42
|
export declare const statusZ: status.StatusZodObject<z.ZodNever, z.ZodEnum<{
|
|
42
|
-
success: "success";
|
|
43
43
|
error: "error";
|
|
44
|
+
success: "success";
|
|
44
45
|
info: "info";
|
|
45
46
|
warning: "warning";
|
|
46
47
|
loading: "loading";
|
|
@@ -48,27 +49,31 @@ export declare const statusZ: status.StatusZodObject<z.ZodNever, z.ZodEnum<{
|
|
|
48
49
|
}>>;
|
|
49
50
|
export type Status = z.infer<typeof statusZ>;
|
|
50
51
|
/**
|
|
51
|
-
* Payload is a logical collection of samples emitted by or representing values
|
|
52
|
-
*
|
|
53
|
-
*
|
|
52
|
+
* Payload is a logical collection of samples emitted by or representing values from a
|
|
53
|
+
* single source. Channels are the fundamental unit of telemetry storage and streaming
|
|
54
|
+
* in Synnax.
|
|
54
55
|
*/
|
|
55
56
|
export declare const payloadZ: z.ZodObject<{
|
|
56
|
-
key: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]
|
|
57
|
+
key: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
57
58
|
name: z.ZodString;
|
|
58
|
-
leaseholder: z.ZodInt
|
|
59
|
-
dataType: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<telem.DataType, string>>, z.
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
leaseholder: z.ZodDefault<z.ZodInt>;
|
|
60
|
+
dataType: z.ZodUnion<readonly [z.ZodCustom<telem.DataType, telem.DataType>, z.ZodPipe<z.ZodString, z.ZodTransform<telem.DataType, string>>, z.ZodPipe<z.ZodObject<{
|
|
61
|
+
value: z.ZodString;
|
|
62
|
+
}, z.core.$strip>, z.ZodTransform<telem.DataType, {
|
|
63
|
+
value: string;
|
|
64
|
+
}>>]>;
|
|
65
|
+
isIndex: z.ZodDefault<z.ZodBoolean>;
|
|
66
|
+
index: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
62
67
|
alias: z.ZodOptional<z.ZodString>;
|
|
63
68
|
virtual: z.ZodDefault<z.ZodBoolean>;
|
|
64
69
|
internal: z.ZodDefault<z.ZodBoolean>;
|
|
65
70
|
expression: z.ZodDefault<z.ZodString>;
|
|
66
|
-
operations: z.
|
|
71
|
+
operations: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
67
72
|
type: z.ZodEnum<{
|
|
68
|
-
none: "none";
|
|
69
73
|
min: "min";
|
|
70
74
|
max: "max";
|
|
71
75
|
avg: "avg";
|
|
76
|
+
none: "none";
|
|
72
77
|
derivative: "derivative";
|
|
73
78
|
}>;
|
|
74
79
|
resetChannel: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
@@ -77,19 +82,11 @@ export declare const payloadZ: z.ZodObject<{
|
|
|
77
82
|
}, z.core.$strip>, z.ZodTransform<telem.TimeSpan, {
|
|
78
83
|
value: bigint;
|
|
79
84
|
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<telem.TimeSpan, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<telem.TimeSpan, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<telem.TimeSpan, bigint>>, z.ZodCustom<telem.TimeSpan, telem.TimeSpan>, z.ZodPipe<z.ZodCustom<telem.TimeStamp, telem.TimeStamp>, z.ZodTransform<telem.TimeSpan, telem.TimeStamp>>, z.ZodPipe<z.ZodCustom<telem.Rate, telem.Rate>, z.ZodTransform<telem.TimeSpan, telem.Rate>>]>>;
|
|
80
|
-
}, z.core.$strip
|
|
81
|
-
|
|
82
|
-
resetChannel: number;
|
|
83
|
-
duration: telem.TimeSpan;
|
|
84
|
-
}[] | undefined, {
|
|
85
|
-
type: "none" | "min" | "max" | "avg" | "derivative";
|
|
86
|
-
resetChannel: number;
|
|
87
|
-
duration: telem.TimeSpan;
|
|
88
|
-
}[] | null>>>;
|
|
89
|
-
concurrency: z.ZodOptional<z.ZodDefault<z.ZodEnum<typeof control.Concurrency>>>;
|
|
85
|
+
}, z.core.$strip>>>;
|
|
86
|
+
concurrency: z.ZodDefault<z.ZodEnum<typeof control.Concurrency>>;
|
|
90
87
|
status: z.ZodOptional<status.StatusZodObject<z.ZodNever, z.ZodEnum<{
|
|
91
|
-
success: "success";
|
|
92
88
|
error: "error";
|
|
89
|
+
success: "success";
|
|
93
90
|
info: "info";
|
|
94
91
|
warning: "warning";
|
|
95
92
|
loading: "loading";
|
|
@@ -98,58 +95,14 @@ export declare const payloadZ: z.ZodObject<{
|
|
|
98
95
|
}, z.core.$strip>;
|
|
99
96
|
export interface Payload extends z.infer<typeof payloadZ> {
|
|
100
97
|
}
|
|
101
|
-
export
|
|
102
|
-
name: z.ZodString;
|
|
103
|
-
status: z.ZodOptional<status.StatusZodObject<z.ZodNever, z.ZodEnum<{
|
|
104
|
-
success: "success";
|
|
105
|
-
error: "error";
|
|
106
|
-
info: "info";
|
|
107
|
-
warning: "warning";
|
|
108
|
-
loading: "loading";
|
|
109
|
-
disabled: "disabled";
|
|
110
|
-
}>>>;
|
|
111
|
-
key: z.ZodOptional<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
112
|
-
internal: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
113
|
-
dataType: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<telem.DataType, string>>, z.ZodCustom<telem.DataType, telem.DataType>]>;
|
|
114
|
-
index: z.ZodOptional<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
115
|
-
isIndex: z.ZodOptional<z.ZodBoolean>;
|
|
116
|
-
alias: z.ZodOptional<z.ZodString>;
|
|
117
|
-
virtual: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
118
|
-
expression: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
119
|
-
operations: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
120
|
-
type: z.ZodEnum<{
|
|
121
|
-
none: "none";
|
|
122
|
-
min: "min";
|
|
123
|
-
max: "max";
|
|
124
|
-
avg: "avg";
|
|
125
|
-
derivative: "derivative";
|
|
126
|
-
}>;
|
|
127
|
-
resetChannel: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
128
|
-
duration: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
129
|
-
value: z.ZodBigInt;
|
|
130
|
-
}, z.core.$strip>, z.ZodTransform<telem.TimeSpan, {
|
|
131
|
-
value: bigint;
|
|
132
|
-
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<telem.TimeSpan, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<telem.TimeSpan, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<telem.TimeSpan, bigint>>, z.ZodCustom<telem.TimeSpan, telem.TimeSpan>, z.ZodPipe<z.ZodCustom<telem.TimeStamp, telem.TimeStamp>, z.ZodTransform<telem.TimeSpan, telem.TimeStamp>>, z.ZodPipe<z.ZodCustom<telem.Rate, telem.Rate>, z.ZodTransform<telem.TimeSpan, telem.Rate>>]>>;
|
|
133
|
-
}, z.core.$strip>>>, z.ZodTransform<{
|
|
134
|
-
type: "none" | "min" | "max" | "avg" | "derivative";
|
|
135
|
-
resetChannel: number;
|
|
136
|
-
duration: telem.TimeSpan;
|
|
137
|
-
}[] | undefined, {
|
|
138
|
-
type: "none" | "min" | "max" | "avg" | "derivative";
|
|
139
|
-
resetChannel: number;
|
|
140
|
-
duration: telem.TimeSpan;
|
|
141
|
-
}[] | null>>>;
|
|
142
|
-
concurrency: z.ZodOptional<z.ZodDefault<z.ZodEnum<typeof control.Concurrency>>>;
|
|
143
|
-
leaseholder: z.ZodOptional<z.ZodInt>;
|
|
144
|
-
}, z.core.$strip>;
|
|
145
|
-
export interface New extends z.input<typeof newZ> {
|
|
98
|
+
export interface New extends z.input<typeof payloadZ> {
|
|
146
99
|
}
|
|
147
100
|
export declare const ontologyID: ontology.CreateID<number>;
|
|
148
101
|
export declare const TYPE_ONTOLOGY_ID: {
|
|
149
|
-
type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view"
|
|
102
|
+
type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "panel" | "policy" | "project" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view";
|
|
150
103
|
key: string;
|
|
151
104
|
} | {
|
|
152
|
-
type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view"
|
|
105
|
+
type: "arc" | "builtin" | "channel" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "panel" | "policy" | "project" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view";
|
|
153
106
|
key: string;
|
|
154
107
|
};
|
|
155
108
|
//# sourceMappingURL=types.gen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.gen.d.ts","sourceRoot":"","sources":["../../../src/channel/types.gen.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"types.gen.d.ts","sourceRoot":"","sources":["../../../src/channel/types.gen.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,OAAO,EAAE,KAAK,EAAiB,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,eAAO,MAAM,IAAI,mFAKhB,CAAC;AACF,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AAEvC,eAAO,MAAM,SAAS,UAAa,CAAC;AACpC,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC;AAEjD,eAAO,MAAM,eAAe,sDAAuD,CAAC;AACpF,eAAO,MAAM,cAAc;;;;;;EAA0B,CAAC;AACtD,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE3D;;;;GAIG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;iBAarB,CAAC;AACH,MAAM,WAAW,SAAU,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC;CAAG;AAEhE,eAAO,MAAM,KAAK,aAAwC,CAAC;AAC3D,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC;AAEzC,eAAO,MAAM,OAAO;;;;;;;GAAmB,CAAC;AACxC,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC;AAE7C;;;;GAIG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAsDnB,CAAC;AACH,MAAM,WAAW,OAAQ,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC;CAAG;AAC5D,MAAM,WAAW,GAAI,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC;CAAG;AAExD,eAAO,MAAM,UAAU,2BAA2C,CAAC;AACnE,eAAO,MAAM,gBAAgB;;;;;;CAAgB,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { UnaryClient } from '@synnaxlabs/freighter';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { CacheRetriever } from './retriever';
|
|
4
3
|
import { Key, New, Payload } from './types.gen';
|
|
5
4
|
declare const deleteReqZ: z.ZodObject<{
|
|
6
5
|
keys: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>>;
|
|
@@ -16,8 +15,7 @@ export interface RenameProps extends z.input<typeof renameReqZ> {
|
|
|
16
15
|
}
|
|
17
16
|
export declare class Writer {
|
|
18
17
|
private readonly client;
|
|
19
|
-
|
|
20
|
-
constructor(client: UnaryClient, cache: CacheRetriever);
|
|
18
|
+
constructor(client: UnaryClient);
|
|
21
19
|
create(channels: New[]): Promise<Payload[]>;
|
|
22
20
|
delete(props: DeleteProps): Promise<void>;
|
|
23
21
|
rename(keys: Key[], names: string[]): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writer.d.ts","sourceRoot":"","sources":["../../../src/channel/writer.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,
|
|
1
|
+
{"version":3,"file":"writer.d.ts","sourceRoot":"","sources":["../../../src/channel/writer.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,KAAK,GAAG,EAGR,KAAK,GAAG,EACR,KAAK,OAAO,EAEb,MAAM,qBAAqB,CAAC;AAK7B,QAAA,MAAM,UAAU;;;iBAGd,CAAC;AAGH,QAAA,MAAM,UAAU;;;iBAAyD,CAAC;AAG1E,MAAM,WAAW,WAAY,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC;CAAG;AAClE,MAAM,WAAW,WAAY,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC;CAAG;AAElE,qBAAa,MAAM;IACjB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAc;gBAEzB,MAAM,EAAE,WAAW;IAIzB,MAAM,CAAC,QAAQ,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAe3C,MAAM,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAIzC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAG1D"}
|
package/dist/src/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TimeSpan, TimeStamp } from '@synnaxlabs/x';
|
|
1
|
+
import { CrudeTimeSpan, TimeSpan, TimeStamp } from '@synnaxlabs/x';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { access } from './access';
|
|
4
4
|
import { arc } from './arc';
|
|
@@ -9,10 +9,13 @@ import { control } from './control';
|
|
|
9
9
|
import { device } from './device';
|
|
10
10
|
import { framer } from './framer';
|
|
11
11
|
import { group } from './group';
|
|
12
|
+
import { imex } from './imex';
|
|
12
13
|
import { label } from './label';
|
|
13
14
|
import { lineplot } from './lineplot';
|
|
14
15
|
import { log } from './log';
|
|
15
16
|
import { ontology } from './ontology';
|
|
17
|
+
import { panel } from './panel';
|
|
18
|
+
import { project } from './project';
|
|
16
19
|
import { rack } from './rack';
|
|
17
20
|
import { ranger } from './ranger';
|
|
18
21
|
import { schematic } from './schematic';
|
|
@@ -21,7 +24,6 @@ import { table } from './table';
|
|
|
21
24
|
import { task } from './task';
|
|
22
25
|
import { user } from './user';
|
|
23
26
|
import { view } from './view';
|
|
24
|
-
import { workspace } from './workspace';
|
|
25
27
|
export declare const synnaxParamsZ: z.ZodObject<{
|
|
26
28
|
host: z.ZodString;
|
|
27
29
|
port: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
@@ -44,10 +46,18 @@ export declare const synnaxParamsZ: z.ZodObject<{
|
|
|
44
46
|
value: z.ZodBigInt;
|
|
45
47
|
}, z.core.$strip>, z.ZodTransform<TimeSpan, {
|
|
46
48
|
value: bigint;
|
|
47
|
-
}>>, 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/dist/src/telem').TimeStamp, import('@synnaxlabs/x/dist/src/telem').TimeStamp>, z.ZodTransform<TimeSpan, import('@synnaxlabs/x/dist/src/telem').TimeStamp>>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').Rate, import('@synnaxlabs/x').Rate>, z.ZodTransform<TimeSpan, import('@synnaxlabs/x').Rate>>]>>;
|
|
49
|
+
}>>, 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/dist/src/telem/index.js').TimeStamp, import('@synnaxlabs/x/dist/src/telem/index.js').TimeStamp>, z.ZodTransform<TimeSpan, import('@synnaxlabs/x/dist/src/telem/index.js').TimeStamp>>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').Rate, import('@synnaxlabs/x').Rate>, z.ZodTransform<TimeSpan, import('@synnaxlabs/x').Rate>>]>>;
|
|
50
|
+
maxInterval: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
51
|
+
value: z.ZodBigInt;
|
|
52
|
+
}, z.core.$strip>, z.ZodTransform<TimeSpan, {
|
|
53
|
+
value: bigint;
|
|
54
|
+
}>>, 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/dist/src/telem/index.js').TimeStamp, import('@synnaxlabs/x/dist/src/telem/index.js').TimeStamp>, z.ZodTransform<TimeSpan, import('@synnaxlabs/x/dist/src/telem/index.js').TimeStamp>>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').Rate, import('@synnaxlabs/x').Rate>, z.ZodTransform<TimeSpan, import('@synnaxlabs/x').Rate>>]>>;
|
|
48
55
|
maxRetries: z.ZodOptional<z.ZodNumber>;
|
|
49
56
|
scale: z.ZodOptional<z.ZodNumber>;
|
|
57
|
+
jitter: z.ZodOptional<z.ZodNumber>;
|
|
50
58
|
}, z.core.$strip>>;
|
|
59
|
+
cache: z.ZodDefault<z.ZodBoolean>;
|
|
60
|
+
onInternalError: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodCustom<Error, Error>], null>, z.ZodUnknown>>;
|
|
51
61
|
}, z.core.$strip>;
|
|
52
62
|
export interface SynnaxParams extends z.input<typeof synnaxParamsZ> {
|
|
53
63
|
}
|
|
@@ -55,13 +65,13 @@ export interface ParsedSynnaxParams extends z.infer<typeof synnaxParamsZ> {
|
|
|
55
65
|
}
|
|
56
66
|
/**
|
|
57
67
|
* Client to perform operations against a Synnax cluster.
|
|
58
|
-
*
|
|
59
68
|
* @property channel - Channel client for creating and retrieving channels.
|
|
60
69
|
* @property data - Data client for reading and writing telemetry.
|
|
61
|
-
* @property
|
|
70
|
+
* @property connection - The connection state machine.
|
|
62
71
|
* @property ontology - Client for querying the cluster's ontology.
|
|
63
72
|
*/
|
|
64
73
|
export default class Synnax extends framer.Client {
|
|
74
|
+
readonly key: string;
|
|
65
75
|
readonly createdAt: TimeStamp;
|
|
66
76
|
readonly params: ParsedSynnaxParams;
|
|
67
77
|
readonly ranges: ranger.Client;
|
|
@@ -69,9 +79,9 @@ export default class Synnax extends framer.Client {
|
|
|
69
79
|
readonly auth: auth.Client;
|
|
70
80
|
readonly users: user.Client;
|
|
71
81
|
readonly access: access.Client;
|
|
72
|
-
readonly
|
|
82
|
+
readonly connection: connection.Handle;
|
|
73
83
|
readonly ontology: ontology.Client;
|
|
74
|
-
readonly
|
|
84
|
+
readonly projects: project.Client;
|
|
75
85
|
readonly labels: label.Client;
|
|
76
86
|
readonly statuses: status.Client;
|
|
77
87
|
readonly tasks: task.Client;
|
|
@@ -82,36 +92,54 @@ export default class Synnax extends framer.Client {
|
|
|
82
92
|
readonly views: view.Client;
|
|
83
93
|
readonly schematics: schematic.Client;
|
|
84
94
|
readonly lineplots: lineplot.Client;
|
|
95
|
+
readonly panels: panel.Client;
|
|
85
96
|
readonly logs: log.Client;
|
|
86
97
|
readonly tables: table.Client;
|
|
87
98
|
readonly groups: group.Client;
|
|
88
|
-
|
|
99
|
+
readonly imex: imex.Client;
|
|
100
|
+
private readonly cache;
|
|
89
101
|
private readonly transport;
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
*/
|
|
102
|
+
private readonly conn;
|
|
103
|
+
/** The version of the client. */
|
|
93
104
|
readonly clientVersion: string;
|
|
94
105
|
/**
|
|
95
106
|
* @param props.host - Hostname of a node in the cluster.
|
|
96
107
|
* @param props.port - Port of the node in the cluster.
|
|
97
|
-
* @param props.username - Username for authentication. Not required if the
|
|
98
|
-
*
|
|
99
|
-
* @param props.password - Password for authentication. Not required if the
|
|
100
|
-
*
|
|
101
|
-
* @param props.connectivityPollFrequency -
|
|
102
|
-
*
|
|
103
|
-
* @param props.secure - Whether to connect to the cluster using TLS. The cluster
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
* the client from polling the cluster for connectivity information.
|
|
108
|
+
* @param props.username - Username for authentication. Not required if the cluster is
|
|
109
|
+
* insecure.
|
|
110
|
+
* @param props.password - Password for authentication. Not required if the cluster is
|
|
111
|
+
* insecure.
|
|
112
|
+
* @param props.connectivityPollFrequency - Heartbeat cadence while the connection is
|
|
113
|
+
* healthy. Defaults to 30 seconds.
|
|
114
|
+
* @param props.secure - Whether to connect to the cluster using TLS. The cluster must
|
|
115
|
+
* be configured to support TLS. Defaults to false. A Synnax client must be closed
|
|
116
|
+
* when it is no longer needed. This stops the connection machine and closes the
|
|
117
|
+
* change stream.
|
|
108
118
|
*/
|
|
109
119
|
constructor(params: SynnaxParams);
|
|
110
|
-
|
|
111
|
-
|
|
120
|
+
/**
|
|
121
|
+
* Awaits the connection becoming usable: success, or warning when the cluster refuses
|
|
122
|
+
* live updates. Idempotent: resolves immediately when already connected.
|
|
123
|
+
* @throws {AuthError} on a definitive credential rejection.
|
|
124
|
+
* @throws {DisconnectedError} when the cluster cannot be reached after the configured
|
|
125
|
+
* retry budget, or when the client is closed while waiting.
|
|
126
|
+
* @throws {Error} if the timeout elapses first.
|
|
127
|
+
*/
|
|
128
|
+
connect({ timeout }?: ConnectOptions): Promise<connection.Status>;
|
|
129
|
+
/** Supplies new credentials after an auth failure and resumes connecting. */
|
|
130
|
+
reauthenticate(credentials: auth.Credentials): void;
|
|
131
|
+
/**
|
|
132
|
+
* Closes the client, stopping the connection check loop and tearing down the
|
|
133
|
+
* query cache and its change stream. Resolves once both are closed.
|
|
134
|
+
* @throws {AggregateError} carrying every underlying close failure.
|
|
135
|
+
*/
|
|
136
|
+
close(): Promise<void>;
|
|
112
137
|
}
|
|
113
|
-
export interface
|
|
138
|
+
export interface ConnectOptions {
|
|
139
|
+
/**
|
|
140
|
+
* Maximum time to wait before rejecting. Without it, connect rejects when
|
|
141
|
+
* the connection escalates to error(unreachable) after its retry budget.
|
|
142
|
+
*/
|
|
143
|
+
timeout?: CrudeTimeSpan;
|
|
114
144
|
}
|
|
115
|
-
export declare const checkConnection: (params: CheckConnectionParams) => Promise<connection.State>;
|
|
116
|
-
export declare const newConnectionChecker: (params: CheckConnectionParams) => connection.Checker;
|
|
117
145
|
//# sourceMappingURL=client.d.ts.map
|
package/dist/src/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"AASA,OAAO,
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { Middleware, UnaryClient } from '@synnaxlabs/freighter';
|
|
2
|
+
import { breaker, CrudeTimeSpan, destructor, TimeSpan } from '@synnaxlabs/x';
|
|
3
|
+
import { Event, Handle, Info, Status } from './status';
|
|
4
|
+
/**
|
|
5
|
+
* Runs a single connectivity check, measuring clock skew across the round trip.
|
|
6
|
+
* The transport must carry the full middleware chain, auth included, so that a
|
|
7
|
+
* response proves authentication.
|
|
8
|
+
* @throws {AuthError} if the cluster rejects the client's credentials.
|
|
9
|
+
* @throws {Unreachable} if the cluster cannot be reached.
|
|
10
|
+
*/
|
|
11
|
+
export declare const sendCheck: (unary: UnaryClient) => Promise<Info>;
|
|
12
|
+
/** Address parameters for a one-shot connectivity check. */
|
|
13
|
+
export interface CheckParams {
|
|
14
|
+
host: string;
|
|
15
|
+
port: number | string;
|
|
16
|
+
secure?: boolean;
|
|
17
|
+
/** Human-readable cluster name for status messages. */
|
|
18
|
+
name?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Runs a one-shot connectivity check against the given cluster address and folds the
|
|
22
|
+
* result into a status. Never throws: failures land in the returned status.
|
|
23
|
+
*/
|
|
24
|
+
export declare const check: (params: CheckParams) => Promise<Status>;
|
|
25
|
+
/** How hard the check loop is working. */
|
|
26
|
+
export type Mode = "checking" | "heartbeat" | "idle";
|
|
27
|
+
/** The mode a given connection status calls for. */
|
|
28
|
+
export declare const modeFor: ({ variant, details }: Status) => Mode;
|
|
29
|
+
/**
|
|
30
|
+
* The outside facts that can move the connection. Everything else that moves it
|
|
31
|
+
* (check results, retry scheduling) the client observes itself.
|
|
32
|
+
*/
|
|
33
|
+
export type FactEvent = Extract<Event, {
|
|
34
|
+
type: "auth.success" | "auth.failure" | "stream.live" | "stream.drop" | "stream.denied" | "credentials.replaced" | "epoch.advanced";
|
|
35
|
+
}>;
|
|
36
|
+
export interface ClientParams {
|
|
37
|
+
/**
|
|
38
|
+
* Check transport. Must carry the full middleware chain, auth included, so
|
|
39
|
+
* that a check response proves authentication.
|
|
40
|
+
*/
|
|
41
|
+
unary: UnaryClient;
|
|
42
|
+
/** Cluster address, used in error messages. */
|
|
43
|
+
address: string;
|
|
44
|
+
/** Human-readable cluster name for status messages. */
|
|
45
|
+
name?: string;
|
|
46
|
+
/** Consecutive check failures before escalating to error(unreachable). */
|
|
47
|
+
escalateAfter?: number;
|
|
48
|
+
clockSkewThreshold?: TimeSpan;
|
|
49
|
+
/** Whether success requires a live change stream. */
|
|
50
|
+
requiresStream?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Degraded-check policy. `maxRetries` defaults to Infinity (never give up);
|
|
53
|
+
* a finite value parks the loop once exhausted, until {@link Client.retryNow}.
|
|
54
|
+
*/
|
|
55
|
+
retry?: breaker.Config;
|
|
56
|
+
/** Check cadence while connected. Defaults to 30 seconds. */
|
|
57
|
+
heartbeatInterval?: CrudeTimeSpan;
|
|
58
|
+
/**
|
|
59
|
+
* Heartbeats between re-probes of a denied change stream. Only a policy
|
|
60
|
+
* change lifts a denial, and the client cannot hear about one. Defaults to 10.
|
|
61
|
+
*/
|
|
62
|
+
deniedStreamProbeAfter?: number;
|
|
63
|
+
/** Levers on the change stream, pulled when transitions demand it. */
|
|
64
|
+
stream?: {
|
|
65
|
+
/** Tears down cached state after a cluster replacement. */
|
|
66
|
+
reset: () => Promise<void>;
|
|
67
|
+
/** (Re)demands a live change stream. */
|
|
68
|
+
ensure: () => Promise<void>;
|
|
69
|
+
};
|
|
70
|
+
/** Receives errors with no caller to throw to. Defaults to console logging. */
|
|
71
|
+
onInternalError?: (error: Error) => void;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Owns a cluster connection's status: checks on a cadence, backs off while degraded,
|
|
75
|
+
* folds outside facts ({@link Client.notify}) into the status, and notifies observers
|
|
76
|
+
* on material changes. The check loop starts on construction, deferred one microtask so
|
|
77
|
+
* callers can finish synchronous wiring (middleware installation) first.
|
|
78
|
+
*/
|
|
79
|
+
export declare class Client implements Handle {
|
|
80
|
+
private readonly unary;
|
|
81
|
+
private readonly address;
|
|
82
|
+
private readonly config;
|
|
83
|
+
private readonly retry;
|
|
84
|
+
private readonly heartbeatInterval;
|
|
85
|
+
private readonly deniedStreamProbeAfter;
|
|
86
|
+
private readonly stream?;
|
|
87
|
+
private readonly onInternalError;
|
|
88
|
+
private readonly observer;
|
|
89
|
+
private readonly notifier;
|
|
90
|
+
private readonly loop;
|
|
91
|
+
private current;
|
|
92
|
+
private mode;
|
|
93
|
+
private closed;
|
|
94
|
+
private attempts;
|
|
95
|
+
private generation;
|
|
96
|
+
private probeCountdown;
|
|
97
|
+
private brk;
|
|
98
|
+
private versionWarned;
|
|
99
|
+
constructor({ unary, address, name, escalateAfter, clockSkewThreshold, requiresStream, retry, heartbeatInterval, deniedStreamProbeAfter, stream, onInternalError, }: ClientParams);
|
|
100
|
+
/** The current connection status. */
|
|
101
|
+
get status(): Status;
|
|
102
|
+
/** Subscribes to material status changes. Returns an unsubscribe destructor. */
|
|
103
|
+
onChange(callback: (status: Status) => void): destructor.Destructor;
|
|
104
|
+
/**
|
|
105
|
+
* Resets the retry backoff and checks immediately. Auth and incompatibility
|
|
106
|
+
* errors are not cleared: those rest until the user supplies something new.
|
|
107
|
+
*/
|
|
108
|
+
retryNow(): void;
|
|
109
|
+
/**
|
|
110
|
+
* Resolves once the connection is usable: success, or warning when the cluster
|
|
111
|
+
* refuses live updates. Rejects with the stored failure when it settles on an error
|
|
112
|
+
* variant or is closed. An already-connected client resolves without waiting.
|
|
113
|
+
* @throws {Error} if the timeout elapses first.
|
|
114
|
+
*/
|
|
115
|
+
connect(timeout?: CrudeTimeSpan): Promise<Status>;
|
|
116
|
+
/** Folds an outside fact into the connection status. */
|
|
117
|
+
notify(event: FactEvent): void;
|
|
118
|
+
/**
|
|
119
|
+
* Rejects unary requests instantly while the cluster is known unreachable,
|
|
120
|
+
* instead of burning the transport's retry budget per call. The check and
|
|
121
|
+
* login targets are exempt so the connection can heal.
|
|
122
|
+
*/
|
|
123
|
+
middleware(): Middleware;
|
|
124
|
+
/** Stops the check loop and settles the status on disabled. Terminal. */
|
|
125
|
+
close(): Promise<void>;
|
|
126
|
+
/**
|
|
127
|
+
* Folds the event into the status, notifies observers, and applies the
|
|
128
|
+
* transition's side effects.
|
|
129
|
+
*/
|
|
130
|
+
private dispatch;
|
|
131
|
+
/** Drops everything cached from the replaced cluster, then brings the stream up. */
|
|
132
|
+
private resetStream;
|
|
133
|
+
/** Discards in-flight checks and wakes the loop for an immediate check. */
|
|
134
|
+
private wake;
|
|
135
|
+
private setMode;
|
|
136
|
+
/**
|
|
137
|
+
* Consumes this check's turn at re-demanding a dark stream, returning whether it gets
|
|
138
|
+
* one. A denied stream probes on a slow cadence: every probe costs an open the
|
|
139
|
+
* cluster refuses until an administrator changes the caller's policies.
|
|
140
|
+
*/
|
|
141
|
+
private takeStreamProbe;
|
|
142
|
+
private runCheck;
|
|
143
|
+
private run;
|
|
144
|
+
private warn;
|
|
145
|
+
}
|
|
146
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/connection/client.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAC1E,OAAO,EACL,OAAO,EAEP,KAAK,aAAa,EAClB,KAAK,UAAU,EAKf,QAAQ,EAGT,MAAM,eAAe,CAAC;AAIvB,OAAO,EAML,KAAK,KAAK,EACV,KAAK,MAAM,EACX,KAAK,IAAI,EAET,KAAK,MAAM,EACZ,MAAM,qBAAqB,CAAC;AAY7B;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,GAAU,OAAO,WAAW,KAAG,OAAO,CAAC,IAAI,CAUhE,CAAC;AAEF,4DAA4D;AAC5D,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,uDAAuD;IACvD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,eAAO,MAAM,KAAK,GAAU,QAAQ,WAAW,KAAG,OAAO,CAAC,MAAM,CAoB/D,CAAC;AAEF,0CAA0C;AAC1C,MAAM,MAAM,IAAI,GAAG,UAAU,GAAG,WAAW,GAAG,MAAM,CAAC;AAErD,oDAAoD;AACpD,eAAO,MAAM,OAAO,GAAI,sBAAsB,MAAM,KAAG,IAgBtD,CAAC;AAYF;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,OAAO,CAC7B,KAAK,EACL;IACE,IAAI,EACA,cAAc,GACd,cAAc,GACd,aAAa,GACb,aAAa,GACb,eAAe,GACf,sBAAsB,GACtB,gBAAgB,CAAC;CACtB,CACF,CAAC;AAOF,MAAM,WAAW,YAAY;IAC3B;;;OAGG;IACH,KAAK,EAAE,WAAW,CAAC;IACnB,+CAA+C;IAC/C,OAAO,EAAE,MAAM,CAAC;IAChB,uDAAuD;IACvD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,0EAA0E;IAC1E,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,kBAAkB,CAAC,EAAE,QAAQ,CAAC;IAC9B,qDAAqD;IACrD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC;IACvB,6DAA6D;IAC7D,iBAAiB,CAAC,EAAE,aAAa,CAAC;IAClC;;;OAGG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,sEAAsE;IACtE,MAAM,CAAC,EAAE;QACP,2DAA2D;QAC3D,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;QAC3B,wCAAwC;QACxC,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;KAC7B,CAAC;IACF,+EAA+E;IAC/E,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CAC1C;AAED;;;;;GAKG;AACH,qBAAa,MAAO,YAAW,MAAM;IACnC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAc;IACpC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAiB;IACvC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAW;IAC7C,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAS;IAChD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAyB;IACjD,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAyB;IACzD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAkC;IAC3D,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAuB;IAChD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAgB;IACrC,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,IAAI,CAAoB;IAChC,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,QAAQ,CAAK;IACrB,OAAO,CAAC,UAAU,CAAK;IACvB,OAAO,CAAC,cAAc,CAAK;IAC3B,OAAO,CAAC,GAAG,CAAgC;IAC3C,OAAO,CAAC,aAAa,CAAS;gBAElB,EACV,KAAK,EACL,OAAO,EACP,IAAI,EACJ,aAAsC,EACtC,kBAAwC,EACxC,cAAsB,EACtB,KAAK,EACL,iBAAwC,EACxC,sBAA0D,EAC1D,MAAM,EACN,eAA+B,GAChC,EAAE,YAAY;IAqBf,qCAAqC;IACrC,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,gFAAgF;IAChF,QAAQ,CAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,GAAG,UAAU,CAAC,UAAU;IAInE;;;OAGG;IACH,QAAQ,IAAI,IAAI;IAKhB;;;;;OAKG;IACG,OAAO,CAAC,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC;IAIvD,wDAAwD;IACxD,MAAM,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI;IAiB9B;;;;OAIG;IACH,UAAU,IAAI,UAAU;IAcxB,yEAAyE;IACnE,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAQ5B;;;OAGG;IACH,OAAO,CAAC,QAAQ;IAoBhB,oFAAoF;YACtE,WAAW;IAKzB,2EAA2E;IAC3E,OAAO,CAAC,IAAI;IAQZ,OAAO,CAAC,OAAO;IAWf;;;;OAIG;IACH,OAAO,CAAC,eAAe;YAUT,QAAQ;YAqCR,GAAG;IAkCjB,OAAO,CAAC,IAAI;CA2Bb"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { check, type CheckParams, Client, type ClientParams, type FactEvent, } from './client';
|
|
2
|
+
export { type Config, DEFAULT_STATUS, type ErrorStatus, type ErrorStatusDetails, errorStatusDetailsZ, type Handle, type Info, type NonErrorStatus, nonErrorVariantZ, type Reason, REASONS, reasonZ, type Status, type StatusDetails, statusDetailsZ, statusZ, } from './status';
|
|
3
|
+
//# sourceMappingURL=external.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../src/connection/external.ts"],"names":[],"mappings":"AASA,OAAO,EACL,KAAK,EACL,KAAK,WAAW,EAChB,MAAM,EACN,KAAK,YAAY,EACjB,KAAK,SAAS,GACf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,MAAM,EACX,cAAc,EACd,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,mBAAmB,EACnB,KAAK,MAAM,EACX,KAAK,IAAI,EACT,KAAK,cAAc,EACnB,gBAAgB,EAChB,KAAK,MAAM,EACX,OAAO,EACP,OAAO,EACP,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,cAAc,EACd,OAAO,GACR,MAAM,qBAAqB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * as connection from './
|
|
1
|
+
export * as connection from './external';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/connection/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,UAAU,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/connection/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,UAAU,MAAM,uBAAuB,CAAC"}
|