@synnaxlabs/client 0.53.1 → 0.54.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +14 -8
- package/dist/client.cjs +48 -54
- package/dist/client.js +12361 -15508
- package/dist/src/access/action/index.d.ts +2 -0
- package/dist/src/access/action/index.d.ts.map +1 -0
- package/dist/src/access/{payload.d.ts → action/types.gen.d.ts} +2 -1
- package/dist/src/access/action/types.gen.d.ts.map +1 -0
- package/dist/src/access/enforce.d.ts +2 -2
- package/dist/src/access/enforce.d.ts.map +1 -1
- package/dist/src/access/external.d.ts +1 -1
- package/dist/src/access/external.d.ts.map +1 -1
- package/dist/src/access/policy/client.d.ts +233 -389
- package/dist/src/access/policy/client.d.ts.map +1 -1
- package/dist/src/access/policy/external.d.ts +1 -1
- package/dist/src/access/policy/external.d.ts.map +1 -1
- package/dist/src/access/policy/types.gen.d.ts +120 -0
- package/dist/src/access/policy/types.gen.d.ts.map +1 -0
- package/dist/src/access/role/client.d.ts +1 -1
- package/dist/src/access/role/client.d.ts.map +1 -1
- package/dist/src/access/role/external.d.ts +1 -1
- package/dist/src/access/role/external.d.ts.map +1 -1
- package/dist/src/access/role/types.gen.d.ts +34 -0
- package/dist/src/access/role/types.gen.d.ts.map +1 -0
- package/dist/src/arc/client.d.ts +2 -2
- package/dist/src/arc/client.d.ts.map +1 -1
- package/dist/src/arc/compiler/index.d.ts +2 -0
- package/dist/src/arc/compiler/index.d.ts.map +1 -0
- package/dist/src/arc/compiler/types.gen.d.ts +12 -0
- package/dist/src/arc/compiler/types.gen.d.ts.map +1 -0
- package/dist/src/arc/external.d.ts +6 -1
- package/dist/src/arc/external.d.ts.map +1 -1
- package/dist/src/arc/graph/index.d.ts +2 -0
- package/dist/src/arc/graph/index.d.ts.map +1 -0
- package/dist/src/arc/graph/types.gen.d.ts +644 -0
- package/dist/src/arc/graph/types.gen.d.ts.map +1 -0
- package/dist/src/arc/ir/index.d.ts +2 -0
- package/dist/src/arc/ir/index.d.ts.map +1 -0
- package/dist/src/arc/ir/types.gen.d.ts +2988 -0
- package/dist/src/arc/ir/types.gen.d.ts.map +1 -0
- package/dist/src/arc/module/index.d.ts +2 -0
- package/dist/src/arc/module/index.d.ts.map +1 -0
- package/dist/src/arc/module/types.gen.d.ts +1138 -0
- package/dist/src/arc/module/types.gen.d.ts.map +1 -0
- package/dist/src/arc/program/index.d.ts +2 -0
- package/dist/src/arc/program/index.d.ts.map +1 -0
- package/dist/src/arc/program/types.gen.d.ts +1138 -0
- package/dist/src/arc/program/types.gen.d.ts.map +1 -0
- package/dist/src/arc/text/index.d.ts +2 -0
- package/dist/src/arc/text/index.d.ts.map +1 -0
- package/dist/src/arc/text/types.gen.d.ts +8 -0
- package/dist/src/arc/text/types.gen.d.ts.map +1 -0
- package/dist/src/arc/types/index.d.ts +2 -0
- package/dist/src/arc/types/index.d.ts.map +1 -0
- package/dist/src/arc/types/types.gen.d.ts +237 -0
- package/dist/src/arc/types/types.gen.d.ts.map +1 -0
- package/dist/src/arc/types.gen.d.ts +2394 -0
- package/dist/src/arc/types.gen.d.ts.map +1 -0
- package/dist/src/channel/client.d.ts +5 -4
- package/dist/src/channel/client.d.ts.map +1 -1
- package/dist/src/channel/external.d.ts +1 -0
- package/dist/src/channel/external.d.ts.map +1 -1
- package/dist/src/channel/payload.d.ts +95 -178
- package/dist/src/channel/payload.d.ts.map +1 -1
- package/dist/src/channel/retriever.d.ts +3 -2
- package/dist/src/channel/retriever.d.ts.map +1 -1
- package/dist/src/channel/types.gen.d.ts +155 -0
- package/dist/src/channel/types.gen.d.ts.map +1 -0
- package/dist/src/channel/writer.d.ts +1 -1
- package/dist/src/channel/writer.d.ts.map +1 -1
- package/dist/src/client.d.ts.map +1 -1
- package/dist/src/cluster/index.d.ts +2 -0
- package/dist/src/cluster/index.d.ts.map +1 -0
- package/dist/src/cluster/types.gen.d.ts +4 -0
- package/dist/src/cluster/types.gen.d.ts.map +1 -0
- package/dist/src/control/state.d.ts +14 -9
- package/dist/src/control/state.d.ts.map +1 -1
- package/dist/src/device/client.d.ts +7 -12
- package/dist/src/device/client.d.ts.map +1 -1
- package/dist/src/device/external.d.ts +1 -1
- package/dist/src/device/external.d.ts.map +1 -1
- package/dist/src/device/types.gen.d.ts +163 -0
- package/dist/src/device/types.gen.d.ts.map +1 -0
- package/dist/src/framer/adapter.d.ts +2 -2
- package/dist/src/framer/adapter.d.ts.map +1 -1
- package/dist/src/framer/client.d.ts +7 -7
- package/dist/src/framer/client.d.ts.map +1 -1
- package/dist/src/framer/codec.d.ts +5 -5
- package/dist/src/framer/codec.d.ts.map +1 -1
- package/dist/src/framer/external.d.ts +1 -1
- package/dist/src/framer/external.d.ts.map +1 -1
- package/dist/src/framer/frame.d.ts +18 -18
- package/dist/src/framer/frame.d.ts.map +1 -1
- package/dist/src/framer/reader.d.ts +1 -1
- package/dist/src/framer/reader.d.ts.map +1 -1
- package/dist/src/framer/streamer.d.ts +181 -114
- package/dist/src/framer/streamer.d.ts.map +1 -1
- package/dist/src/framer/types.gen.d.ts +9 -0
- package/dist/src/framer/types.gen.d.ts.map +1 -0
- package/dist/src/framer/writer.d.ts +196 -128
- package/dist/src/framer/writer.d.ts.map +1 -1
- package/dist/src/group/client.d.ts +17 -17
- package/dist/src/group/client.d.ts.map +1 -1
- package/dist/src/group/external.d.ts +1 -1
- package/dist/src/group/external.d.ts.map +1 -1
- package/dist/src/group/types.gen.d.ts +23 -0
- package/dist/src/group/types.gen.d.ts.map +1 -0
- package/dist/src/label/client.d.ts +51 -72
- package/dist/src/label/client.d.ts.map +1 -1
- package/dist/src/label/payload.d.ts +30 -8
- package/dist/src/label/payload.d.ts.map +1 -1
- package/dist/src/lineplot/client.d.ts +2 -11
- package/dist/src/lineplot/client.d.ts.map +1 -1
- package/dist/src/lineplot/external.d.ts +1 -1
- package/dist/src/lineplot/external.d.ts.map +1 -1
- package/dist/src/lineplot/types.gen.d.ts +33 -0
- package/dist/src/lineplot/types.gen.d.ts.map +1 -0
- package/dist/src/log/client.d.ts +2 -11
- package/dist/src/log/client.d.ts.map +1 -1
- package/dist/src/log/external.d.ts +1 -1
- package/dist/src/log/external.d.ts.map +1 -1
- package/dist/src/log/types.gen.d.ts +33 -0
- package/dist/src/log/types.gen.d.ts.map +1 -0
- package/dist/src/ontology/client.d.ts +31 -31
- package/dist/src/ontology/payload.d.ts +74 -99
- package/dist/src/ontology/payload.d.ts.map +1 -1
- package/dist/src/ontology/types.gen.d.ts +30 -0
- package/dist/src/ontology/types.gen.d.ts.map +1 -0
- package/dist/src/ontology/writer.d.ts +80 -80
- package/dist/src/rack/client.d.ts +22 -11
- package/dist/src/rack/client.d.ts.map +1 -1
- package/dist/src/rack/external.d.ts +1 -1
- package/dist/src/rack/external.d.ts.map +1 -1
- package/dist/src/rack/types.gen.d.ts +72 -0
- package/dist/src/rack/types.gen.d.ts.map +1 -0
- package/dist/src/range/alias/types.gen.d.ts +14 -0
- package/dist/src/range/alias/types.gen.d.ts.map +1 -0
- package/dist/src/range/kv/types.gen.d.ts +13 -0
- package/dist/src/range/kv/types.gen.d.ts.map +1 -0
- package/dist/src/ranger/alias/client.d.ts +1 -1
- package/dist/src/ranger/alias/client.d.ts.map +1 -1
- package/dist/src/ranger/alias/external.d.ts +3 -1
- package/dist/src/ranger/alias/external.d.ts.map +1 -1
- package/dist/src/ranger/alias/payload.d.ts +5 -9
- package/dist/src/ranger/alias/payload.d.ts.map +1 -1
- package/dist/src/ranger/alias/payload.spec.d.ts +2 -0
- package/dist/src/ranger/alias/payload.spec.d.ts.map +1 -0
- package/dist/src/ranger/alias/types.gen.d.ts +14 -0
- package/dist/src/ranger/alias/types.gen.d.ts.map +1 -0
- package/dist/src/ranger/client.d.ts +10 -15
- package/dist/src/ranger/client.d.ts.map +1 -1
- package/dist/src/ranger/external.d.ts +4 -4
- package/dist/src/ranger/external.d.ts.map +1 -1
- package/dist/src/ranger/kv/client.d.ts +1 -1
- package/dist/src/ranger/kv/client.d.ts.map +1 -1
- package/dist/src/ranger/kv/external.d.ts +3 -1
- package/dist/src/ranger/kv/external.d.ts.map +1 -1
- package/dist/src/ranger/kv/payload.d.ts +6 -13
- package/dist/src/ranger/kv/payload.d.ts.map +1 -1
- package/dist/src/ranger/kv/types.gen.d.ts +13 -0
- package/dist/src/ranger/kv/types.gen.d.ts.map +1 -0
- package/dist/src/ranger/payload.d.ts +2 -97
- package/dist/src/ranger/payload.d.ts.map +1 -1
- package/dist/src/ranger/types.gen.d.ts +219 -0
- package/dist/src/ranger/types.gen.d.ts.map +1 -0
- package/dist/src/ranger/writer.d.ts +25 -25
- package/dist/src/ranger/writer.d.ts.map +1 -1
- package/dist/src/schematic/client.d.ts +2 -11
- package/dist/src/schematic/client.d.ts.map +1 -1
- package/dist/src/schematic/external.d.ts +1 -1
- package/dist/src/schematic/external.d.ts.map +1 -1
- package/dist/src/schematic/symbol/client.d.ts +1 -2
- package/dist/src/schematic/symbol/client.d.ts.map +1 -1
- package/dist/src/schematic/symbol/external.d.ts +1 -1
- package/dist/src/schematic/symbol/external.d.ts.map +1 -1
- package/dist/src/schematic/symbol/types.gen.d.ts +277 -0
- package/dist/src/schematic/symbol/types.gen.d.ts.map +1 -0
- package/dist/src/schematic/types.gen.d.ts +35 -0
- package/dist/src/schematic/types.gen.d.ts.map +1 -0
- package/dist/src/status/client.d.ts +2 -0
- package/dist/src/status/client.d.ts.map +1 -1
- package/dist/src/status/payload.d.ts +25 -54
- package/dist/src/status/payload.d.ts.map +1 -1
- package/dist/src/table/client.d.ts +2 -11
- package/dist/src/table/client.d.ts.map +1 -1
- package/dist/src/table/external.d.ts +1 -1
- package/dist/src/table/external.d.ts.map +1 -1
- package/dist/src/table/types.gen.d.ts +33 -0
- package/dist/src/table/types.gen.d.ts.map +1 -0
- package/dist/src/task/client.d.ts +15 -20
- package/dist/src/task/client.d.ts.map +1 -1
- package/dist/src/task/external.d.ts +1 -1
- package/dist/src/task/external.d.ts.map +1 -1
- package/dist/src/task/types.gen.d.ts +155 -0
- package/dist/src/task/types.gen.d.ts.map +1 -0
- package/dist/src/user/client.d.ts +3 -3
- 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 +35 -0
- package/dist/src/user/types.gen.d.ts.map +1 -0
- package/dist/src/util/decodeJSONString.d.ts.map +1 -1
- package/dist/src/view/client.d.ts +1 -10
- package/dist/src/view/client.d.ts.map +1 -1
- package/dist/src/view/external.d.ts +1 -1
- package/dist/src/view/external.d.ts.map +1 -1
- package/dist/src/view/types.gen.d.ts +35 -0
- package/dist/src/view/types.gen.d.ts.map +1 -0
- package/dist/src/workspace/client.d.ts +2 -11
- package/dist/src/workspace/client.d.ts.map +1 -1
- package/dist/src/workspace/external.d.ts +1 -1
- package/dist/src/workspace/external.d.ts.map +1 -1
- package/dist/src/workspace/types.gen.d.ts +34 -0
- package/dist/src/workspace/types.gen.d.ts.map +1 -0
- package/package.json +11 -11
- package/src/access/action/index.ts +11 -0
- package/src/access/{payload.ts → action/types.gen.ts} +4 -1
- package/src/access/enforce.spec.ts +1 -2
- package/src/access/enforce.ts +2 -2
- package/src/access/external.ts +1 -1
- package/src/access/policy/client.ts +2 -2
- package/src/access/policy/external.ts +1 -1
- package/src/access/policy/types.gen.ts +44 -0
- package/src/access/role/client.ts +2 -2
- package/src/access/role/external.ts +1 -1
- package/src/access/role/types.gen.ts +46 -0
- package/src/arc/access.spec.ts +18 -6
- package/src/arc/client.ts +3 -3
- package/src/{framer/payload.ts → arc/compiler/index.ts} +1 -6
- package/src/arc/compiler/types.gen.ts +27 -0
- package/src/arc/external.ts +6 -1
- package/src/arc/graph/index.ts +10 -0
- package/src/arc/graph/types.gen.ts +59 -0
- package/src/arc/ir/index.ts +10 -0
- package/src/arc/ir/types.gen.ts +166 -0
- package/src/arc/module/index.ts +10 -0
- package/src/arc/module/types.gen.ts +18 -0
- package/src/arc/program/index.ts +10 -0
- package/src/arc/program/types.gen.ts +18 -0
- package/src/arc/text/index.ts +10 -0
- package/src/arc/text/types.gen.ts +19 -0
- package/src/arc/types/index.ts +10 -0
- package/src/arc/types/types.gen.ts +132 -0
- package/src/arc/types.gen.ts +85 -0
- package/src/channel/client.ts +14 -15
- package/src/channel/external.ts +1 -0
- package/src/channel/payload.spec.ts +19 -16
- package/src/channel/payload.ts +14 -82
- package/src/channel/retriever.ts +9 -18
- package/src/channel/types.gen.ts +137 -0
- package/src/channel/writer.ts +2 -2
- package/src/client.ts +4 -0
- package/src/cluster/index.ts +10 -0
- package/src/cluster/types.gen.ts +16 -0
- package/src/control/state.ts +8 -6
- package/src/device/client.ts +14 -11
- package/src/device/device.spec.ts +95 -1
- package/src/device/external.ts +1 -1
- package/src/device/payload.spec.ts +26 -2
- package/src/device/types.gen.ts +100 -0
- package/src/framer/adapter.ts +7 -4
- package/src/framer/client.ts +15 -9
- package/src/framer/codec.spec.ts +25 -5
- package/src/framer/codec.ts +11 -9
- package/src/framer/deleter.spec.ts +0 -15
- package/src/framer/external.ts +1 -1
- package/src/framer/frame.ts +44 -36
- package/src/framer/reader.spec.ts +2 -2
- package/src/framer/reader.ts +6 -6
- package/src/framer/streamer.spec.ts +98 -0
- package/src/framer/streamer.ts +10 -0
- package/src/framer/types.gen.ts +20 -0
- package/src/framer/writer.ts +14 -8
- package/src/group/client.ts +1 -1
- package/src/group/external.ts +1 -1
- package/src/group/group.spec.ts +1 -1
- package/src/{access/role/payload.ts → group/types.gen.ts} +11 -11
- package/src/label/client.ts +2 -5
- package/src/label/label.spec.ts +12 -3
- package/src/label/payload.ts +3 -1
- package/src/lineplot/client.ts +9 -11
- package/src/lineplot/external.ts +1 -1
- package/src/lineplot/lineplot.spec.ts +40 -0
- package/src/lineplot/types.gen.ts +42 -0
- package/src/log/client.ts +9 -18
- package/src/log/external.ts +1 -1
- package/src/log/log.spec.ts +38 -0
- package/src/log/types.gen.ts +42 -0
- package/src/ontology/payload.ts +5 -29
- package/src/ontology/types.gen.ts +41 -0
- package/src/rack/client.ts +26 -10
- package/src/rack/external.ts +1 -1
- package/src/rack/rack.spec.ts +37 -0
- package/src/rack/types.gen.ts +62 -0
- package/src/range/alias/types.gen.ts +30 -0
- package/src/range/kv/types.gen.ts +28 -0
- package/src/ranger/alias/client.ts +1 -1
- package/src/ranger/alias/external.ts +3 -10
- package/src/ranger/alias/payload.spec.ts +52 -0
- package/src/ranger/alias/payload.ts +11 -10
- package/src/ranger/alias/types.gen.ts +30 -0
- package/src/ranger/client.ts +34 -45
- package/src/ranger/external.ts +3 -3
- package/src/ranger/kv/client.ts +3 -3
- package/src/ranger/kv/external.ts +3 -7
- package/src/ranger/kv/payload.ts +1 -6
- package/src/ranger/kv/types.gen.ts +28 -0
- package/src/ranger/payload.ts +2 -46
- package/src/ranger/ranger.spec.ts +2 -4
- package/src/ranger/types.gen.ts +66 -0
- package/src/ranger/writer.ts +2 -1
- package/src/schematic/client.ts +11 -14
- package/src/schematic/external.ts +1 -1
- package/src/schematic/schematic.spec.ts +54 -2
- package/src/schematic/symbol/client.ts +2 -4
- package/src/schematic/symbol/external.ts +1 -1
- package/src/schematic/symbol/types.gen.ts +124 -0
- package/src/schematic/types.gen.ts +44 -0
- package/src/status/client.ts +4 -3
- package/src/status/payload.ts +5 -4
- package/src/status/status.spec.ts +106 -11
- package/src/table/client.ts +10 -19
- package/src/table/external.ts +1 -1
- package/src/table/table.spec.ts +38 -0
- package/src/table/types.gen.ts +42 -0
- package/src/task/client.ts +29 -24
- package/src/task/external.ts +1 -1
- package/src/task/payload.spec.ts +19 -19
- package/src/task/task.spec.ts +127 -9
- package/src/task/types.gen.ts +169 -0
- package/src/user/client.ts +2 -2
- package/src/user/external.ts +1 -1
- package/src/user/types.gen.ts +49 -0
- package/src/util/decodeJSONString.ts +1 -1
- package/src/util/retrieve.ts +2 -2
- package/src/view/client.ts +2 -7
- package/src/view/external.ts +1 -1
- package/src/view/types.gen.ts +44 -0
- package/src/workspace/client.ts +10 -14
- package/src/workspace/external.ts +1 -1
- package/src/workspace/types.gen.ts +45 -0
- package/src/workspace/workspace.spec.ts +37 -0
- package/tsconfig.json +1 -3
- package/vite.config.ts +9 -2
- package/dist/src/access/payload.d.ts.map +0 -1
- package/dist/src/access/policy/payload.d.ts +0 -156
- package/dist/src/access/policy/payload.d.ts.map +0 -1
- package/dist/src/access/role/payload.d.ts +0 -27
- package/dist/src/access/role/payload.d.ts.map +0 -1
- package/dist/src/arc/payload.d.ts +0 -167
- package/dist/src/arc/payload.d.ts.map +0 -1
- package/dist/src/device/payload.d.ts +0 -281
- package/dist/src/device/payload.d.ts.map +0 -1
- package/dist/src/framer/payload.d.ts +0 -7
- package/dist/src/framer/payload.d.ts.map +0 -1
- package/dist/src/group/payload.d.ts +0 -16
- package/dist/src/group/payload.d.ts.map +0 -1
- package/dist/src/lineplot/payload.d.ts +0 -28
- package/dist/src/lineplot/payload.d.ts.map +0 -1
- package/dist/src/log/payload.d.ts +0 -28
- package/dist/src/log/payload.d.ts.map +0 -1
- package/dist/src/rack/payload.d.ts +0 -243
- package/dist/src/rack/payload.d.ts.map +0 -1
- package/dist/src/schematic/payload.d.ts +0 -38
- package/dist/src/schematic/payload.d.ts.map +0 -1
- package/dist/src/schematic/symbol/payload.d.ts +0 -169
- package/dist/src/schematic/symbol/payload.d.ts.map +0 -1
- package/dist/src/table/payload.d.ts +0 -33
- package/dist/src/table/payload.d.ts.map +0 -1
- package/dist/src/task/payload.d.ts +0 -123
- package/dist/src/task/payload.d.ts.map +0 -1
- package/dist/src/user/payload.d.ts +0 -22
- package/dist/src/user/payload.d.ts.map +0 -1
- package/dist/src/view/payload.d.ts +0 -20
- package/dist/src/view/payload.d.ts.map +0 -1
- package/dist/src/workspace/payload.d.ts +0 -33
- package/dist/src/workspace/payload.d.ts.map +0 -1
- package/src/access/policy/payload.ts +0 -37
- package/src/arc/payload.ts +0 -73
- package/src/device/payload.ts +0 -83
- package/src/group/payload.ts +0 -24
- package/src/lineplot/payload.ts +0 -29
- package/src/log/payload.ts +0 -29
- package/src/rack/payload.ts +0 -30
- package/src/schematic/payload.ts +0 -34
- package/src/schematic/symbol/payload.ts +0 -70
- package/src/table/payload.ts +0 -33
- package/src/task/payload.ts +0 -127
- package/src/user/payload.ts +0 -29
- package/src/view/payload.ts +0 -25
- package/src/workspace/payload.ts +0 -33
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.gen.d.ts","sourceRoot":"","sources":["../../../src/arc/types.gen.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,eAAO,MAAM,KAAK,4BAA6B,CAAC;AAChD,eAAO,MAAM,KAAK;;;EAAgB,CAAC;AACnC,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC;AAEzC,8EAA8E;AAC9E,eAAO,MAAM,cAAc;;iBAGzB,CAAC;AACH,MAAM,WAAW,aAAc,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC;CAAG;AAExE,eAAO,MAAM,IAAI,WAAW,CAAC;AAC7B,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AAEvC,eAAO,MAAM,OAAO;;;;;;;;;GAA8C,CAAC;AACnE,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC;AAE7C,6DAA6D;AAC7D,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkBf,CAAC;AACH,MAAM,WAAW,GAAI,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC;CAAG;AAEpD,eAAO,MAAM,UAAU,2BAAuC,CAAC;AAC/D,eAAO,MAAM,gBAAgB;;;;;;CAAiB,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { UnaryClient } from '@synnaxlabs/freighter';
|
|
2
2
|
import { CrudeDensity, CrudeTimeRange, CrudeTimeStamp, DataType, MultiSeries, status, TypedArray } from '@synnaxlabs/x';
|
|
3
|
-
import {
|
|
3
|
+
import { Params } from './payload';
|
|
4
4
|
import { RetrieveOptions, Retriever, RetrieveRequest } from './retriever';
|
|
5
|
+
import { Key, Name, New, Operation, Payload } from './types.gen';
|
|
5
6
|
import { Writer } from './writer';
|
|
6
7
|
import { framer } from '../framer';
|
|
7
8
|
import { group } from '../group';
|
|
@@ -73,12 +74,12 @@ export declare class Channel {
|
|
|
73
74
|
/**
|
|
74
75
|
* The status of the channel.
|
|
75
76
|
*/
|
|
76
|
-
readonly status?: Status;
|
|
77
|
+
readonly status?: status.Status;
|
|
77
78
|
constructor({ dataType, name, leaseholder, key, isIndex, index, internal, virtual, frameClient, alias, status: argsStatus, expression, operations, }: New & {
|
|
78
79
|
internal?: boolean;
|
|
79
80
|
frameClient?: framer.Client;
|
|
80
81
|
density?: CrudeDensity;
|
|
81
|
-
status?: status.
|
|
82
|
+
status?: status.New;
|
|
82
83
|
operations?: Operation[];
|
|
83
84
|
});
|
|
84
85
|
private get framer();
|
|
@@ -202,7 +203,7 @@ export declare class Client {
|
|
|
202
203
|
* const channel = await client.channels.retrieve(1);
|
|
203
204
|
* ```
|
|
204
205
|
*/
|
|
205
|
-
retrieve(params:
|
|
206
|
+
retrieve(params: Key | Name, options?: RetrieveOptions): Promise<Channel>;
|
|
206
207
|
/**
|
|
207
208
|
* Retrieves multiple channels from the database using the provided keys or the
|
|
208
209
|
* provided names.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/channel/client.ts"],"names":[],"mappings":"AASA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,QAAQ,EACR,KAAK,WAAW,EAChB,MAAM,EACN,KAAK,UAAU,EAChB,MAAM,eAAe,CAAC;AAGvB,OAAO,
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/channel/client.ts"],"names":[],"mappings":"AASA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAEL,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,QAAQ,EACR,KAAK,WAAW,EAChB,MAAM,EACN,KAAK,UAAU,EAChB,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAKL,KAAK,eAAe,EACpB,KAAK,SAAS,EACd,KAAK,eAAe,EACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,KAAK,GAAG,EAER,KAAK,IAAI,EACT,KAAK,GAAG,EAER,KAAK,SAAS,EACd,KAAK,OAAO,EAEb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OA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O,EAAE,CAAC;IAoB1E;;;;;;;;;;;;;;;;;;;;;OAqBG;IACG,QAAQ,CAAC,MAAM,EAAE,GAAG,GAAG,IAAI,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,OAAO,CAAC;IAE/E;;;;;;;;;;;OAWG;IACG,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,eAAe,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAEvE,QAAQ,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAsB3D;;;OAGG;IACG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAOrC,MAAM,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAC7C,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAKzD,6BAA6B,CAAC,GAAG,GAAE,MAAW,GAAG,SAAS;IAM1D,KAAK,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO;IAChC,KAAK,CAAC,QAAQ,EAAE,OAAO,EAAE,GAAG,OAAO,EAAE;IAQ/B,aAAa,IAAI,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC;CAU5C;AAED,eAAO,MAAM,YAAY,GAAI,yBAAyB,OAAO,KAAG,OAClC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../src/channel/external.ts"],"names":[],"mappings":"AASA,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../src/channel/external.ts"],"names":[],"mappings":"AASA,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC"}
|
|
@@ -1,190 +1,109 @@
|
|
|
1
|
-
import { CrudeDataType, DataType, status, TimeSpan } from '@synnaxlabs/x';
|
|
2
1
|
import { z } from 'zod';
|
|
3
|
-
import {
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export type Keys = Key[];
|
|
7
|
-
export declare const nameZ: z.ZodString;
|
|
8
|
-
export type KeyOrName = Key | string;
|
|
9
|
-
export type KeysOrNames = Keys | string[];
|
|
10
|
-
export type PrimitiveParams = KeyOrName | KeysOrNames;
|
|
11
|
-
export declare const OPERATION_TYPES: readonly ["min", "max", "avg", "none"];
|
|
12
|
-
export declare const operationType: z.ZodEnum<{
|
|
13
|
-
min: "min";
|
|
14
|
-
max: "max";
|
|
15
|
-
avg: "avg";
|
|
16
|
-
none: "none";
|
|
17
|
-
}>;
|
|
18
|
-
export type OperationType = z.infer<typeof operationType>;
|
|
19
|
-
export declare const operationZ: z.ZodObject<{
|
|
20
|
-
type: z.ZodEnum<{
|
|
21
|
-
min: "min";
|
|
22
|
-
max: "max";
|
|
23
|
-
avg: "avg";
|
|
24
|
-
none: "none";
|
|
25
|
-
}>;
|
|
26
|
-
resetChannel: z.ZodOptional<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
27
|
-
duration: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
28
|
-
value: z.ZodBigInt;
|
|
29
|
-
}, z.core.$strip>, z.ZodTransform<TimeSpan, {
|
|
30
|
-
value: bigint;
|
|
31
|
-
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeSpan, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeSpan, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeSpan, bigint>>, z.ZodCustom<TimeSpan, TimeSpan>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').TimeStamp, import('@synnaxlabs/x').TimeStamp>, z.ZodTransform<TimeSpan, import('@synnaxlabs/x').TimeStamp>>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').Rate, import('@synnaxlabs/x').Rate>, z.ZodTransform<TimeSpan, import('@synnaxlabs/x').Rate>>]>>;
|
|
32
|
-
}, z.core.$strip>;
|
|
33
|
-
export type Operation = z.infer<typeof operationZ>;
|
|
34
|
-
export declare const statusZ: status.StatusZodObject<z.ZodNever>;
|
|
35
|
-
export type Status = z.infer<typeof statusZ>;
|
|
36
|
-
export declare const calculationStatusDetailsZ: z.ZodObject<{
|
|
37
|
-
channel: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
|
|
38
|
-
}, z.core.$strip>;
|
|
39
|
-
export type CalculationStatusDetails = z.infer<typeof calculationStatusDetailsZ>;
|
|
40
|
-
export declare const calculationStatusZ: status.StatusZodObject<z.ZodObject<{
|
|
41
|
-
channel: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
|
|
42
|
-
}, z.core.$strip>>;
|
|
43
|
-
export type CalculationStatus = z.infer<typeof calculationStatusZ>;
|
|
44
|
-
export declare const statusKey: (key: Key) => string;
|
|
45
|
-
export declare const payloadZ: z.ZodObject<{
|
|
46
|
-
name: z.ZodString;
|
|
2
|
+
import { Key, Name, Payload } from './types.gen';
|
|
3
|
+
export type PrimitiveParams = Key | Name | Key[] | Name[];
|
|
4
|
+
export declare const paramsZ: 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<{
|
|
47
5
|
key: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
|
|
48
|
-
|
|
6
|
+
name: z.ZodString;
|
|
49
7
|
leaseholder: z.ZodInt;
|
|
50
|
-
|
|
8
|
+
dataType: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import('@synnaxlabs/x').DataType, string>>, z.ZodCustom<import('@synnaxlabs/x').DataType, import('@synnaxlabs/x').DataType>]>;
|
|
51
9
|
isIndex: z.ZodBoolean;
|
|
52
|
-
|
|
53
|
-
virtual: z.ZodBoolean;
|
|
54
|
-
alias: z.ZodOptional<z.ZodString>;
|
|
55
|
-
expression: z.ZodDefault<z.ZodString>;
|
|
56
|
-
status: z.ZodOptional<status.StatusZodObject<z.ZodNever>>;
|
|
57
|
-
operations: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<{
|
|
58
|
-
type: "min" | "max" | "avg" | "none";
|
|
59
|
-
resetChannel?: number | undefined;
|
|
60
|
-
duration?: TimeSpan | undefined;
|
|
61
|
-
}[], null | undefined>>, z.ZodArray<z.ZodObject<{
|
|
62
|
-
type: z.ZodEnum<{
|
|
63
|
-
min: "min";
|
|
64
|
-
max: "max";
|
|
65
|
-
avg: "avg";
|
|
66
|
-
none: "none";
|
|
67
|
-
}>;
|
|
68
|
-
resetChannel: z.ZodOptional<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
69
|
-
duration: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
70
|
-
value: z.ZodBigInt;
|
|
71
|
-
}, z.core.$strip>, z.ZodTransform<TimeSpan, {
|
|
72
|
-
value: bigint;
|
|
73
|
-
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeSpan, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeSpan, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeSpan, bigint>>, z.ZodCustom<TimeSpan, TimeSpan>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').TimeStamp, import('@synnaxlabs/x').TimeStamp>, z.ZodTransform<TimeSpan, import('@synnaxlabs/x').TimeStamp>>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').Rate, import('@synnaxlabs/x').Rate>, z.ZodTransform<TimeSpan, import('@synnaxlabs/x').Rate>>]>>;
|
|
74
|
-
}, z.core.$strip>>]>;
|
|
75
|
-
}, z.core.$strip>;
|
|
76
|
-
export interface Payload extends z.infer<typeof payloadZ> {
|
|
77
|
-
}
|
|
78
|
-
export declare const newZ: z.ZodObject<{
|
|
79
|
-
dataType: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DataType, string>>, z.ZodCustom<DataType, DataType>]>;
|
|
10
|
+
index: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
|
|
80
11
|
alias: z.ZodOptional<z.ZodString>;
|
|
81
|
-
status: z.ZodOptional<status.StatusZodObject<z.ZodNever>>;
|
|
82
|
-
key: z.ZodOptional<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
83
|
-
name: z.ZodString;
|
|
84
|
-
leaseholder: z.ZodOptional<z.ZodInt>;
|
|
85
|
-
index: z.ZodOptional<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
86
|
-
isIndex: z.ZodOptional<z.ZodBoolean>;
|
|
87
|
-
internal: z.ZodDefault<z.ZodBoolean>;
|
|
88
12
|
virtual: z.ZodDefault<z.ZodBoolean>;
|
|
13
|
+
internal: z.ZodDefault<z.ZodBoolean>;
|
|
89
14
|
expression: z.ZodDefault<z.ZodString>;
|
|
90
|
-
operations: z.ZodOptional<z.
|
|
91
|
-
type: "min" | "max" | "avg" | "none";
|
|
92
|
-
resetChannel?: number | undefined;
|
|
93
|
-
duration?: TimeSpan | undefined;
|
|
94
|
-
}[], null | undefined>>, z.ZodArray<z.ZodObject<{
|
|
15
|
+
operations: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
95
16
|
type: z.ZodEnum<{
|
|
96
|
-
min: "min";
|
|
97
|
-
max: "max";
|
|
98
|
-
avg: "avg";
|
|
99
17
|
none: "none";
|
|
100
|
-
}>;
|
|
101
|
-
resetChannel: z.ZodOptional<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
102
|
-
duration: z.ZodOptional<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
103
|
-
value: z.ZodBigInt;
|
|
104
|
-
}, z.core.$strip>, z.ZodTransform<TimeSpan, {
|
|
105
|
-
value: bigint;
|
|
106
|
-
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeSpan, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeSpan, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeSpan, bigint>>, z.ZodCustom<TimeSpan, TimeSpan>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').TimeStamp, import('@synnaxlabs/x').TimeStamp>, z.ZodTransform<TimeSpan, import('@synnaxlabs/x').TimeStamp>>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').Rate, import('@synnaxlabs/x').Rate>, z.ZodTransform<TimeSpan, import('@synnaxlabs/x').Rate>>]>>;
|
|
107
|
-
}, z.core.$strip>>]>>;
|
|
108
|
-
}, z.core.$strip>;
|
|
109
|
-
export interface New extends Omit<z.input<typeof newZ>, "dataType" | "status" | "internal"> {
|
|
110
|
-
dataType: CrudeDataType;
|
|
111
|
-
}
|
|
112
|
-
export declare const paramsZ: 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<{
|
|
113
|
-
name: z.ZodString;
|
|
114
|
-
key: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
|
|
115
|
-
dataType: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<DataType, string>>, z.ZodCustom<DataType, DataType>]>;
|
|
116
|
-
leaseholder: z.ZodInt;
|
|
117
|
-
index: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
|
|
118
|
-
isIndex: z.ZodBoolean;
|
|
119
|
-
internal: z.ZodBoolean;
|
|
120
|
-
virtual: z.ZodBoolean;
|
|
121
|
-
alias: z.ZodOptional<z.ZodString>;
|
|
122
|
-
expression: z.ZodDefault<z.ZodString>;
|
|
123
|
-
status: z.ZodOptional<status.StatusZodObject<z.ZodNever>>;
|
|
124
|
-
operations: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<{
|
|
125
|
-
type: "min" | "max" | "avg" | "none";
|
|
126
|
-
resetChannel?: number | undefined;
|
|
127
|
-
duration?: TimeSpan | undefined;
|
|
128
|
-
}[], null | undefined>>, z.ZodArray<z.ZodObject<{
|
|
129
|
-
type: z.ZodEnum<{
|
|
130
18
|
min: "min";
|
|
131
19
|
max: "max";
|
|
132
20
|
avg: "avg";
|
|
133
|
-
|
|
21
|
+
derivative: "derivative";
|
|
134
22
|
}>;
|
|
135
|
-
resetChannel: z.
|
|
136
|
-
duration: z.
|
|
23
|
+
resetChannel: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
24
|
+
duration: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
137
25
|
value: z.ZodBigInt;
|
|
138
|
-
}, z.core.$strip>, z.ZodTransform<TimeSpan, {
|
|
26
|
+
}, z.core.$strip>, z.ZodTransform<import('@synnaxlabs/x').TimeSpan, {
|
|
139
27
|
value: bigint;
|
|
140
|
-
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeSpan, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeSpan, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeSpan, bigint>>, z.ZodCustom<TimeSpan, TimeSpan>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').TimeStamp, import('@synnaxlabs/x').TimeStamp>, z.ZodTransform<TimeSpan, import('@synnaxlabs/x').TimeStamp>>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').Rate, import('@synnaxlabs/x').Rate>, z.ZodTransform<TimeSpan, import('@synnaxlabs/x').Rate>>]>>;
|
|
141
|
-
}, z.core.$strip
|
|
28
|
+
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<import('@synnaxlabs/x').TimeSpan, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import('@synnaxlabs/x').TimeSpan, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<import('@synnaxlabs/x').TimeSpan, bigint>>, z.ZodCustom<import('@synnaxlabs/x').TimeSpan, import('@synnaxlabs/x').TimeSpan>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').TimeStamp, import('@synnaxlabs/x').TimeStamp>, z.ZodTransform<import('@synnaxlabs/x').TimeSpan, import('@synnaxlabs/x').TimeStamp>>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').Rate, import('@synnaxlabs/x').Rate>, z.ZodTransform<import('@synnaxlabs/x').TimeSpan, import('@synnaxlabs/x').Rate>>]>>;
|
|
29
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
30
|
+
type: "none" | "min" | "max" | "avg" | "derivative";
|
|
31
|
+
resetChannel: number;
|
|
32
|
+
duration: import('@synnaxlabs/x').TimeSpan;
|
|
33
|
+
}[] | undefined, {
|
|
34
|
+
type: "none" | "min" | "max" | "avg" | "derivative";
|
|
35
|
+
resetChannel: number;
|
|
36
|
+
duration: import('@synnaxlabs/x').TimeSpan;
|
|
37
|
+
}[] | null>>>;
|
|
38
|
+
concurrency: z.ZodOptional<z.ZodDefault<z.ZodEnum<typeof import('@synnaxlabs/x/dist/src/control/types.gen').Concurrency>>>;
|
|
39
|
+
status: z.ZodOptional<import('@synnaxlabs/x/dist/src/status/types.gen').StatusZodObject<z.ZodNever, z.ZodEnum<{
|
|
40
|
+
success: "success";
|
|
41
|
+
error: "error";
|
|
42
|
+
info: "info";
|
|
43
|
+
warning: "warning";
|
|
44
|
+
loading: "loading";
|
|
45
|
+
disabled: "disabled";
|
|
46
|
+
}>>>;
|
|
142
47
|
}, z.core.$strip>>, z.ZodPipe<z.ZodObject<{
|
|
143
|
-
name: z.ZodString;
|
|
144
48
|
key: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
|
|
145
|
-
|
|
49
|
+
name: z.ZodString;
|
|
146
50
|
leaseholder: z.ZodInt;
|
|
147
|
-
|
|
51
|
+
dataType: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import('@synnaxlabs/x').DataType, string>>, z.ZodCustom<import('@synnaxlabs/x').DataType, import('@synnaxlabs/x').DataType>]>;
|
|
148
52
|
isIndex: z.ZodBoolean;
|
|
149
|
-
|
|
150
|
-
virtual: z.ZodBoolean;
|
|
53
|
+
index: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
|
|
151
54
|
alias: z.ZodOptional<z.ZodString>;
|
|
55
|
+
virtual: z.ZodDefault<z.ZodBoolean>;
|
|
56
|
+
internal: z.ZodDefault<z.ZodBoolean>;
|
|
152
57
|
expression: z.ZodDefault<z.ZodString>;
|
|
153
|
-
|
|
154
|
-
operations: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<{
|
|
155
|
-
type: "min" | "max" | "avg" | "none";
|
|
156
|
-
resetChannel?: number | undefined;
|
|
157
|
-
duration?: TimeSpan | undefined;
|
|
158
|
-
}[], null | undefined>>, z.ZodArray<z.ZodObject<{
|
|
58
|
+
operations: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
159
59
|
type: z.ZodEnum<{
|
|
60
|
+
none: "none";
|
|
160
61
|
min: "min";
|
|
161
62
|
max: "max";
|
|
162
63
|
avg: "avg";
|
|
163
|
-
|
|
64
|
+
derivative: "derivative";
|
|
164
65
|
}>;
|
|
165
|
-
resetChannel: z.
|
|
166
|
-
duration: z.
|
|
66
|
+
resetChannel: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
67
|
+
duration: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
167
68
|
value: z.ZodBigInt;
|
|
168
|
-
}, z.core.$strip>, z.ZodTransform<TimeSpan, {
|
|
69
|
+
}, z.core.$strip>, z.ZodTransform<import('@synnaxlabs/x').TimeSpan, {
|
|
169
70
|
value: bigint;
|
|
170
|
-
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeSpan, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeSpan, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeSpan, bigint>>, z.ZodCustom<TimeSpan, TimeSpan>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').TimeStamp, import('@synnaxlabs/x').TimeStamp>, z.ZodTransform<TimeSpan, import('@synnaxlabs/x').TimeStamp>>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').Rate, import('@synnaxlabs/x').Rate>, z.ZodTransform<TimeSpan, import('@synnaxlabs/x').Rate>>]>>;
|
|
171
|
-
}, z.core.$strip
|
|
71
|
+
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<import('@synnaxlabs/x').TimeSpan, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import('@synnaxlabs/x').TimeSpan, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<import('@synnaxlabs/x').TimeSpan, bigint>>, z.ZodCustom<import('@synnaxlabs/x').TimeSpan, import('@synnaxlabs/x').TimeSpan>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').TimeStamp, import('@synnaxlabs/x').TimeStamp>, z.ZodTransform<import('@synnaxlabs/x').TimeSpan, import('@synnaxlabs/x').TimeStamp>>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').Rate, import('@synnaxlabs/x').Rate>, z.ZodTransform<import('@synnaxlabs/x').TimeSpan, import('@synnaxlabs/x').Rate>>]>>;
|
|
72
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
73
|
+
type: "none" | "min" | "max" | "avg" | "derivative";
|
|
74
|
+
resetChannel: number;
|
|
75
|
+
duration: import('@synnaxlabs/x').TimeSpan;
|
|
76
|
+
}[] | undefined, {
|
|
77
|
+
type: "none" | "min" | "max" | "avg" | "derivative";
|
|
78
|
+
resetChannel: number;
|
|
79
|
+
duration: import('@synnaxlabs/x').TimeSpan;
|
|
80
|
+
}[] | null>>>;
|
|
81
|
+
concurrency: z.ZodOptional<z.ZodDefault<z.ZodEnum<typeof import('@synnaxlabs/x/dist/src/control/types.gen').Concurrency>>>;
|
|
82
|
+
status: z.ZodOptional<import('@synnaxlabs/x/dist/src/status/types.gen').StatusZodObject<z.ZodNever, z.ZodEnum<{
|
|
83
|
+
success: "success";
|
|
84
|
+
error: "error";
|
|
85
|
+
info: "info";
|
|
86
|
+
warning: "warning";
|
|
87
|
+
loading: "loading";
|
|
88
|
+
disabled: "disabled";
|
|
89
|
+
}>>>;
|
|
172
90
|
}, z.core.$strip>, z.ZodTransform<{
|
|
173
|
-
name: string;
|
|
174
91
|
key: number;
|
|
175
|
-
|
|
92
|
+
name: string;
|
|
176
93
|
leaseholder: number;
|
|
177
|
-
|
|
94
|
+
dataType: import('@synnaxlabs/x').DataType;
|
|
178
95
|
isIndex: boolean;
|
|
179
|
-
|
|
96
|
+
index: number;
|
|
180
97
|
virtual: boolean;
|
|
98
|
+
internal: boolean;
|
|
181
99
|
expression: string;
|
|
182
|
-
operations: {
|
|
183
|
-
type: "min" | "max" | "avg" | "none";
|
|
184
|
-
resetChannel?: number | undefined;
|
|
185
|
-
duration?: TimeSpan | undefined;
|
|
186
|
-
}[];
|
|
187
100
|
alias?: string | undefined;
|
|
101
|
+
operations?: {
|
|
102
|
+
type: "none" | "min" | "max" | "avg" | "derivative";
|
|
103
|
+
resetChannel: number;
|
|
104
|
+
duration: import('@synnaxlabs/x').TimeSpan;
|
|
105
|
+
}[] | undefined;
|
|
106
|
+
concurrency?: import('@synnaxlabs/x/dist/src/control/types.gen').Concurrency | undefined;
|
|
188
107
|
status?: {
|
|
189
108
|
key: string;
|
|
190
109
|
name: string;
|
|
@@ -197,23 +116,25 @@ export declare const paramsZ: z.ZodUnion<readonly [z.ZodUnion<[z.ZodArray<z.ZodU
|
|
|
197
116
|
name: string;
|
|
198
117
|
color: [number, number, number, number];
|
|
199
118
|
}[] | undefined;
|
|
119
|
+
details?: unknown;
|
|
200
120
|
} | undefined;
|
|
201
121
|
}[], {
|
|
202
|
-
name: string;
|
|
203
122
|
key: number;
|
|
204
|
-
|
|
123
|
+
name: string;
|
|
205
124
|
leaseholder: number;
|
|
206
|
-
|
|
125
|
+
dataType: import('@synnaxlabs/x').DataType;
|
|
207
126
|
isIndex: boolean;
|
|
208
|
-
|
|
127
|
+
index: number;
|
|
209
128
|
virtual: boolean;
|
|
129
|
+
internal: boolean;
|
|
210
130
|
expression: string;
|
|
211
|
-
operations: {
|
|
212
|
-
type: "min" | "max" | "avg" | "none";
|
|
213
|
-
resetChannel?: number | undefined;
|
|
214
|
-
duration?: TimeSpan | undefined;
|
|
215
|
-
}[];
|
|
216
131
|
alias?: string | undefined;
|
|
132
|
+
operations?: {
|
|
133
|
+
type: "none" | "min" | "max" | "avg" | "derivative";
|
|
134
|
+
resetChannel: number;
|
|
135
|
+
duration: import('@synnaxlabs/x').TimeSpan;
|
|
136
|
+
}[] | undefined;
|
|
137
|
+
concurrency?: import('@synnaxlabs/x/dist/src/control/types.gen').Concurrency | undefined;
|
|
217
138
|
status?: {
|
|
218
139
|
key: string;
|
|
219
140
|
name: string;
|
|
@@ -226,23 +147,25 @@ export declare const paramsZ: z.ZodUnion<readonly [z.ZodUnion<[z.ZodArray<z.ZodU
|
|
|
226
147
|
name: string;
|
|
227
148
|
color: [number, number, number, number];
|
|
228
149
|
}[] | undefined;
|
|
150
|
+
details?: unknown;
|
|
229
151
|
} | undefined;
|
|
230
152
|
}>>]>, z.ZodTransform<number[], {
|
|
231
|
-
name: string;
|
|
232
153
|
key: number;
|
|
233
|
-
|
|
154
|
+
name: string;
|
|
234
155
|
leaseholder: number;
|
|
235
|
-
|
|
156
|
+
dataType: import('@synnaxlabs/x').DataType;
|
|
236
157
|
isIndex: boolean;
|
|
237
|
-
|
|
158
|
+
index: number;
|
|
238
159
|
virtual: boolean;
|
|
160
|
+
internal: boolean;
|
|
239
161
|
expression: string;
|
|
240
|
-
operations: {
|
|
241
|
-
type: "min" | "max" | "avg" | "none";
|
|
242
|
-
resetChannel?: number | undefined;
|
|
243
|
-
duration?: TimeSpan | undefined;
|
|
244
|
-
}[];
|
|
245
162
|
alias?: string | undefined;
|
|
163
|
+
operations?: {
|
|
164
|
+
type: "none" | "min" | "max" | "avg" | "derivative";
|
|
165
|
+
resetChannel: number;
|
|
166
|
+
duration: import('@synnaxlabs/x').TimeSpan;
|
|
167
|
+
}[] | undefined;
|
|
168
|
+
concurrency?: import('@synnaxlabs/x/dist/src/control/types.gen').Concurrency | undefined;
|
|
246
169
|
status?: {
|
|
247
170
|
key: string;
|
|
248
171
|
name: string;
|
|
@@ -255,16 +178,10 @@ export declare const paramsZ: z.ZodUnion<readonly [z.ZodUnion<[z.ZodArray<z.ZodU
|
|
|
255
178
|
name: string;
|
|
256
179
|
color: [number, number, number, number];
|
|
257
180
|
}[] | undefined;
|
|
181
|
+
details?: unknown;
|
|
258
182
|
} | undefined;
|
|
259
183
|
}[]>>]>;
|
|
260
184
|
export type Params = PrimitiveParams | Payload | Payload[];
|
|
261
|
-
export declare const ontologyID: ontology.CreateID<number>;
|
|
262
|
-
export declare const TYPE_ONTOLOGY_ID: {
|
|
263
|
-
type: "label" | "log" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "role" | "table" | "arc" | "schematic_symbol" | "status" | "view";
|
|
264
|
-
key: string;
|
|
265
|
-
} | {
|
|
266
|
-
type: "label" | "log" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "role" | "table" | "arc" | "schematic_symbol" | "status" | "view";
|
|
267
|
-
key: string;
|
|
268
|
-
};
|
|
269
185
|
export declare const escapeInvalidName: (name: string, changeEmptyToUnderscore?: boolean) => string;
|
|
186
|
+
export declare const statusKey: (channel: Key) => string;
|
|
270
187
|
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../src/channel/payload.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../src/channel/payload.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,KAAK,GAAG,EAER,KAAK,IAAI,EAGT,KAAK,OAAO,EAEb,MAAM,qBAAqB,CAAC;AAG7B,MAAM,MAAM,eAAe,GAAG,GAAG,GAAG,IAAI,GAAG,GAAG,EAAE,GAAG,IAAI,EAAE,CAAC;AAE1D,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAIlB,CAAC;AACH,MAAM,MAAM,MAAM,GAAG,eAAe,GAAG,OAAO,GAAG,OAAO,EAAE,CAAC;AAM3D,eAAO,MAAM,iBAAiB,GAAI,MAAM,MAAM,EAAE,iCAA+B,WAW9E,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,SAAS,GAAG,KAAG,MACC,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { UnaryClient } from '@synnaxlabs/freighter';
|
|
2
2
|
import { DataType } from '@synnaxlabs/x';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import {
|
|
4
|
+
import { Params } from './payload';
|
|
5
|
+
import { Key, Name, Payload } from './types.gen';
|
|
5
6
|
import { ParamAnalysisResult } from '../util/retrieve';
|
|
6
7
|
declare const reqZ: z.ZodObject<{
|
|
7
8
|
nodeKey: z.ZodOptional<z.ZodInt>;
|
|
@@ -24,7 +25,7 @@ export interface RetrieveOptions extends Omit<RetrieveRequest, "keys" | "names"
|
|
|
24
25
|
}
|
|
25
26
|
export interface PageOptions extends Omit<RetrieveOptions, "offset" | "limit"> {
|
|
26
27
|
}
|
|
27
|
-
export declare const analyzeParams: (channels: Params) => ParamAnalysisResult<
|
|
28
|
+
export declare const analyzeParams: (channels: Params) => ParamAnalysisResult<Key | Name, {
|
|
28
29
|
number: "keys";
|
|
29
30
|
string: "names";
|
|
30
31
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retriever.d.ts","sourceRoot":"","sources":["../../../src/channel/retriever.ts"],"names":[],"mappings":"AASA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAS,QAAQ,EAAiB,MAAM,eAAe,CAAC;AAE/D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,
|
|
1
|
+
{"version":3,"file":"retriever.d.ts","sourceRoot":"","sources":["../../../src/channel/retriever.ts"],"names":[],"mappings":"AASA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAS,QAAQ,EAAiB,MAAM,eAAe,CAAC;AAE/D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,KAAK,MAAM,EAAwB,MAAM,mBAAmB,CAAC;AACtE,OAAO,EAAE,KAAK,GAAG,EAAQ,KAAK,IAAI,EAAE,KAAK,OAAO,EAAY,MAAM,qBAAqB,CAAC;AAGxF,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,iBAAiB,CAAC;AAEzB,QAAA,MAAM,IAAI;;;;;;;;;;;;;;iBAcR,CAAC;AACH,MAAM,WAAW,eAAgB,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC;CAAG;AAEhE,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAC3C,eAAe,EACf,MAAM,GAAG,OAAO,GAAG,QAAQ,CAC5B;CAAG;AACJ,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,eAAe,EAAE,QAAQ,GAAG,OAAO,CAAC;CAAG;AAIjF,eAAO,MAAM,aAAa,GACxB,UAAU,MAAM,KACf,mBAAmB,CAAC,GAAG,GAAG,IAAI,EAAE;IAAE,MAAM,EAAE,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I,CAAC;CACpC;AAGD,qBAAa,uBAAwB,YAAW,SAAS;IACvD,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAe;IAClC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA2C;IACpE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAY;IACpC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAa;gBAE9B,OAAO,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM;IAOrC,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,eAAe,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAgBhE,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;CAgB3B;AAED,eAAO,MAAM,gBAAgB,GAC3B,GAAG,SAAS,EACZ,UAAU,MAAM,KACf,OAAO,CAAC,OAAO,EAAE,CAUnB,CAAC"}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { control, status, telem } from '@synnaxlabs/x';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { ontology } from '../ontology';
|
|
4
|
+
export declare const keyZ: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
|
|
5
|
+
export type Key = z.infer<typeof keyZ>;
|
|
6
|
+
export declare const localKeyZ: z.ZodInt;
|
|
7
|
+
export type LocalKey = z.infer<typeof localKeyZ>;
|
|
8
|
+
export declare const OPERATION_TYPES: readonly ["min", "max", "avg", "none", "derivative"];
|
|
9
|
+
export declare const operationTypeZ: z.ZodEnum<{
|
|
10
|
+
none: "none";
|
|
11
|
+
min: "min";
|
|
12
|
+
max: "max";
|
|
13
|
+
avg: "avg";
|
|
14
|
+
derivative: "derivative";
|
|
15
|
+
}>;
|
|
16
|
+
export type OperationType = z.infer<typeof operationTypeZ>;
|
|
17
|
+
/**
|
|
18
|
+
* Operation defines an aggregation operation applied to channel data. Operations
|
|
19
|
+
* calculate min, max, or average values over a time duration or triggered
|
|
20
|
+
* by a reset channel.
|
|
21
|
+
*/
|
|
22
|
+
export declare const operationZ: z.ZodObject<{
|
|
23
|
+
type: z.ZodEnum<{
|
|
24
|
+
none: "none";
|
|
25
|
+
min: "min";
|
|
26
|
+
max: "max";
|
|
27
|
+
avg: "avg";
|
|
28
|
+
derivative: "derivative";
|
|
29
|
+
}>;
|
|
30
|
+
resetChannel: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
31
|
+
duration: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
32
|
+
value: z.ZodBigInt;
|
|
33
|
+
}, z.core.$strip>, z.ZodTransform<telem.TimeSpan, {
|
|
34
|
+
value: bigint;
|
|
35
|
+
}>>, 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>>]>>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
export interface Operation extends z.infer<typeof operationZ> {
|
|
38
|
+
}
|
|
39
|
+
export declare const nameZ: z.ZodString;
|
|
40
|
+
export type Name = z.infer<typeof nameZ>;
|
|
41
|
+
export declare const statusZ: status.StatusZodObject<z.ZodNever, z.ZodEnum<{
|
|
42
|
+
success: "success";
|
|
43
|
+
error: "error";
|
|
44
|
+
info: "info";
|
|
45
|
+
warning: "warning";
|
|
46
|
+
loading: "loading";
|
|
47
|
+
disabled: "disabled";
|
|
48
|
+
}>>;
|
|
49
|
+
export type Status = z.infer<typeof statusZ>;
|
|
50
|
+
/**
|
|
51
|
+
* Payload is a logical collection of samples emitted by or representing values
|
|
52
|
+
* from a single source. Channels are the fundamental unit of telemetry
|
|
53
|
+
* storage and streaming in Synnax.
|
|
54
|
+
*/
|
|
55
|
+
export declare const payloadZ: z.ZodObject<{
|
|
56
|
+
key: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
|
|
57
|
+
name: z.ZodString;
|
|
58
|
+
leaseholder: z.ZodInt;
|
|
59
|
+
dataType: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<telem.DataType, string>>, z.ZodCustom<telem.DataType, telem.DataType>]>;
|
|
60
|
+
isIndex: z.ZodBoolean;
|
|
61
|
+
index: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
|
|
62
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
63
|
+
virtual: z.ZodDefault<z.ZodBoolean>;
|
|
64
|
+
internal: z.ZodDefault<z.ZodBoolean>;
|
|
65
|
+
expression: z.ZodDefault<z.ZodString>;
|
|
66
|
+
operations: z.ZodOptional<z.ZodPipe<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
67
|
+
type: z.ZodEnum<{
|
|
68
|
+
none: "none";
|
|
69
|
+
min: "min";
|
|
70
|
+
max: "max";
|
|
71
|
+
avg: "avg";
|
|
72
|
+
derivative: "derivative";
|
|
73
|
+
}>;
|
|
74
|
+
resetChannel: z.ZodDefault<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
75
|
+
duration: z.ZodDefault<z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
76
|
+
value: z.ZodBigInt;
|
|
77
|
+
}, z.core.$strip>, z.ZodTransform<telem.TimeSpan, {
|
|
78
|
+
value: bigint;
|
|
79
|
+
}>>, 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>>>, z.ZodTransform<{
|
|
81
|
+
type: "none" | "min" | "max" | "avg" | "derivative";
|
|
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>>>;
|
|
90
|
+
status: z.ZodOptional<status.StatusZodObject<z.ZodNever, z.ZodEnum<{
|
|
91
|
+
success: "success";
|
|
92
|
+
error: "error";
|
|
93
|
+
info: "info";
|
|
94
|
+
warning: "warning";
|
|
95
|
+
loading: "loading";
|
|
96
|
+
disabled: "disabled";
|
|
97
|
+
}>>>;
|
|
98
|
+
}, z.core.$strip>;
|
|
99
|
+
export interface Payload extends z.infer<typeof payloadZ> {
|
|
100
|
+
}
|
|
101
|
+
export declare const newZ: z.ZodObject<{
|
|
102
|
+
status: z.ZodOptional<status.StatusZodObject<z.ZodNever, z.ZodEnum<{
|
|
103
|
+
success: "success";
|
|
104
|
+
error: "error";
|
|
105
|
+
info: "info";
|
|
106
|
+
warning: "warning";
|
|
107
|
+
loading: "loading";
|
|
108
|
+
disabled: "disabled";
|
|
109
|
+
}>>>;
|
|
110
|
+
key: z.ZodOptional<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
111
|
+
name: z.ZodString;
|
|
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> {
|
|
146
|
+
}
|
|
147
|
+
export declare const ontologyID: ontology.CreateID<number>;
|
|
148
|
+
export declare const TYPE_ONTOLOGY_ID: {
|
|
149
|
+
type: "arc" | "builtin" | "channel" | "cluster" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view" | "workspace";
|
|
150
|
+
key: string;
|
|
151
|
+
} | {
|
|
152
|
+
type: "arc" | "builtin" | "channel" | "cluster" | "device" | "framer" | "group" | "label" | "lineplot" | "log" | "node" | "policy" | "rack" | "range" | "range-alias" | "role" | "schematic" | "schematic_symbol" | "status" | "table" | "task" | "user" | "view" | "workspace";
|
|
153
|
+
key: string;
|
|
154
|
+
};
|
|
155
|
+
//# sourceMappingURL=types.gen.d.ts.map
|