@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,49 @@
|
|
|
1
|
+
// Copyright 2026 Synnax Labs, Inc.
|
|
2
|
+
//
|
|
3
|
+
// Use of this software is governed by the Business Source License included in the file
|
|
4
|
+
// licenses/BSL.txt.
|
|
5
|
+
//
|
|
6
|
+
// As of the Change Date specified in that file, in accordance with the Business Source
|
|
7
|
+
// License, use of this software will be governed by the Apache License, Version 2.0,
|
|
8
|
+
// included in the file licenses/APL.txt.
|
|
9
|
+
|
|
10
|
+
// Code generated by Oracle. DO NOT EDIT.
|
|
11
|
+
|
|
12
|
+
import { z } from "zod";
|
|
13
|
+
|
|
14
|
+
import { ontology } from "@/ontology";
|
|
15
|
+
|
|
16
|
+
export const keyZ = z.uuid();
|
|
17
|
+
export type Key = z.infer<typeof keyZ>;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* User is an account entity representing a person accessing the Synnax system.
|
|
21
|
+
* Users can have roles assigned for permission management.
|
|
22
|
+
*/
|
|
23
|
+
export const userZ = z.object({
|
|
24
|
+
/** key is the unique identifier for this user. */
|
|
25
|
+
key: keyZ,
|
|
26
|
+
/** username is the unique login name for the user. */
|
|
27
|
+
username: z.string().min(1, "Username is required"),
|
|
28
|
+
/** firstName is the user's first name. */
|
|
29
|
+
firstName: z.string(),
|
|
30
|
+
/** lastName is the user's last name. */
|
|
31
|
+
lastName: z.string(),
|
|
32
|
+
/**
|
|
33
|
+
* rootUser is true if this is a root/admin user with full system access. Root
|
|
34
|
+
* users cannot be deleted.
|
|
35
|
+
*/
|
|
36
|
+
rootUser: z.boolean().default(false),
|
|
37
|
+
});
|
|
38
|
+
export interface User extends z.infer<typeof userZ> {}
|
|
39
|
+
|
|
40
|
+
export const newZ = userZ
|
|
41
|
+
.omit({ rootUser: true })
|
|
42
|
+
.partial({ key: true, firstName: true, lastName: true })
|
|
43
|
+
.extend({
|
|
44
|
+
password: z.string().min(1),
|
|
45
|
+
});
|
|
46
|
+
export interface New extends z.input<typeof newZ> {}
|
|
47
|
+
|
|
48
|
+
export const ontologyID = ontology.createIDFactory<Key>("user");
|
|
49
|
+
export const TYPE_ONTOLOGY_ID = ontologyID("");
|
package/src/util/retrieve.ts
CHANGED
|
@@ -64,9 +64,9 @@ export const analyzeParams = <
|
|
|
64
64
|
const t = typeof first;
|
|
65
65
|
let variant: K[keyof K];
|
|
66
66
|
if (t === "string" && convertNumericStrings)
|
|
67
|
-
if (!isNaN(parseInt(first as string)) && "number" in variantMap) {
|
|
67
|
+
if (!isNaN(parseInt(first as string, 10)) && "number" in variantMap) {
|
|
68
68
|
variant = variantMap.number as K[keyof K];
|
|
69
|
-
normal = normal.map((n) => parseInt(n as string));
|
|
69
|
+
normal = normal.map((n) => parseInt(n as string, 10));
|
|
70
70
|
} else variant = variantMap[t as TypeName<T>];
|
|
71
71
|
else variant = variantMap[t as TypeName<T>];
|
|
72
72
|
return {
|
package/src/view/client.ts
CHANGED
|
@@ -11,9 +11,8 @@ import { sendRequired, type UnaryClient } from "@synnaxlabs/freighter";
|
|
|
11
11
|
import { array } from "@synnaxlabs/x";
|
|
12
12
|
import { z } from "zod";
|
|
13
13
|
|
|
14
|
-
import { type ontology } from "@/ontology";
|
|
15
14
|
import { checkForMultipleOrNoResults } from "@/util/retrieve";
|
|
16
|
-
import { type Key, keyZ, type New, newZ, type View, viewZ } from "@/view/
|
|
15
|
+
import { type Key, keyZ, type New, newZ, type View, viewZ } from "@/view/types.gen";
|
|
17
16
|
|
|
18
17
|
export const SET_CHANNEL_NAME = "sy_view_set";
|
|
19
18
|
export const DELETE_CHANNEL_NAME = "sy_view_delete";
|
|
@@ -40,7 +39,7 @@ const retrieveArgsZ = z.union([singleRetrieveArgsZ, retrieveRequestZ]);
|
|
|
40
39
|
export interface RetrieveSingleParams extends z.input<typeof singleRetrieveArgsZ> {}
|
|
41
40
|
export interface RetrieveMultipleParams extends z.input<typeof retrieveRequestZ> {}
|
|
42
41
|
|
|
43
|
-
const retrieveResponseZ = z.object({ views: array.
|
|
42
|
+
const retrieveResponseZ = z.object({ views: array.nullishToEmpty(viewZ) });
|
|
44
43
|
|
|
45
44
|
export class Client {
|
|
46
45
|
private readonly client: UnaryClient;
|
|
@@ -90,7 +89,3 @@ export class Client {
|
|
|
90
89
|
);
|
|
91
90
|
}
|
|
92
91
|
}
|
|
93
|
-
|
|
94
|
-
export const ontologyID = (key: Key): ontology.ID => ({ type: "view", key });
|
|
95
|
-
|
|
96
|
-
export const TYPE_ONTOLOGY_ID = ontologyID("");
|
package/src/view/external.ts
CHANGED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// Copyright 2026 Synnax Labs, Inc.
|
|
2
|
+
//
|
|
3
|
+
// Use of this software is governed by the Business Source License included in the file
|
|
4
|
+
// licenses/BSL.txt.
|
|
5
|
+
//
|
|
6
|
+
// As of the Change Date specified in that file, in accordance with the Business Source
|
|
7
|
+
// License, use of this software will be governed by the Apache License, Version 2.0,
|
|
8
|
+
// included in the file licenses/APL.txt.
|
|
9
|
+
|
|
10
|
+
// Code generated by Oracle. DO NOT EDIT.
|
|
11
|
+
|
|
12
|
+
import { record } from "@synnaxlabs/x";
|
|
13
|
+
import { z } from "zod";
|
|
14
|
+
|
|
15
|
+
import { ontology } from "@/ontology";
|
|
16
|
+
|
|
17
|
+
export const keyZ = z.uuid();
|
|
18
|
+
export type Key = z.infer<typeof keyZ>;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* View is a persisted view configuration storing visualization settings and
|
|
22
|
+
* query parameters for line plots, tables, schematics, and other view
|
|
23
|
+
* types.
|
|
24
|
+
*/
|
|
25
|
+
export const viewZ = z.object({
|
|
26
|
+
/** key is the unique identifier for this view. */
|
|
27
|
+
key: keyZ,
|
|
28
|
+
/** name is a human-readable name for the view. */
|
|
29
|
+
name: z.string(),
|
|
30
|
+
/** type is the view type identifier (e.g., 'lineplot', 'table', 'schematic'). */
|
|
31
|
+
type: z.string(),
|
|
32
|
+
/**
|
|
33
|
+
* query is a type-agnostic JSON object containing view-specific configuration
|
|
34
|
+
* and query parameters.
|
|
35
|
+
*/
|
|
36
|
+
query: record.nullishToEmpty(),
|
|
37
|
+
});
|
|
38
|
+
export interface View extends z.infer<typeof viewZ> {}
|
|
39
|
+
|
|
40
|
+
export const newZ = viewZ.partial({ key: true });
|
|
41
|
+
export interface New extends z.input<typeof newZ> {}
|
|
42
|
+
|
|
43
|
+
export const ontologyID = ontology.createIDFactory<Key>("view");
|
|
44
|
+
export const TYPE_ONTOLOGY_ID = ontologyID("");
|
package/src/workspace/client.ts
CHANGED
|
@@ -8,21 +8,18 @@
|
|
|
8
8
|
// included in the file licenses/APL.txt.
|
|
9
9
|
|
|
10
10
|
import { sendRequired, type UnaryClient } from "@synnaxlabs/freighter";
|
|
11
|
-
import { array, record } from "@synnaxlabs/x";
|
|
11
|
+
import { array, caseconv, record } from "@synnaxlabs/x";
|
|
12
12
|
import { z } from "zod";
|
|
13
13
|
|
|
14
|
-
import {
|
|
15
|
-
import { keyZ as userKeyZ } from "@/user/payload";
|
|
14
|
+
import { keyZ as userKeyZ } from "@/user/types.gen";
|
|
16
15
|
import {
|
|
17
16
|
type Key,
|
|
18
17
|
keyZ,
|
|
19
18
|
type New,
|
|
20
19
|
newZ,
|
|
21
|
-
type Params,
|
|
22
|
-
remoteZ,
|
|
23
20
|
type Workspace,
|
|
24
21
|
workspaceZ,
|
|
25
|
-
} from "@/workspace/
|
|
22
|
+
} from "@/workspace/types.gen";
|
|
26
23
|
|
|
27
24
|
const retrieveReqZ = z.object({
|
|
28
25
|
keys: keyZ.array().optional(),
|
|
@@ -36,12 +33,12 @@ const createReqZ = z.object({ workspaces: newZ.array() });
|
|
|
36
33
|
const renameReqZ = z.object({ key: keyZ, name: z.string() });
|
|
37
34
|
const setLayoutReqZ = z.object({
|
|
38
35
|
key: keyZ,
|
|
39
|
-
layout: record.unknownZ
|
|
36
|
+
layout: caseconv.preserveCase(record.unknownZ()),
|
|
40
37
|
});
|
|
41
38
|
const deleteReqZ = z.object({ keys: keyZ.array() });
|
|
42
39
|
|
|
43
|
-
const retrieveResZ = z.object({ workspaces: array.
|
|
44
|
-
const createResZ = z.object({ workspaces:
|
|
40
|
+
const retrieveResZ = z.object({ workspaces: array.nullishToEmpty(workspaceZ) });
|
|
41
|
+
const createResZ = z.object({ workspaces: workspaceZ.array() });
|
|
45
42
|
const emptyResZ = z.object({});
|
|
46
43
|
|
|
47
44
|
export const SET_CHANNEL_NAME = "sy_workspace_set";
|
|
@@ -93,7 +90,9 @@ export class Client {
|
|
|
93
90
|
async retrieve(key: Key): Promise<Workspace>;
|
|
94
91
|
async retrieve(keys: Key[]): Promise<Workspace[]>;
|
|
95
92
|
async retrieve(req: RetrieveRequest): Promise<Workspace[]>;
|
|
96
|
-
async retrieve(
|
|
93
|
+
async retrieve(
|
|
94
|
+
keys: Key | Key[] | RetrieveRequest,
|
|
95
|
+
): Promise<Workspace | Workspace[]> {
|
|
97
96
|
let req: RetrieveRequest;
|
|
98
97
|
const isMany: boolean = typeof keys !== "string";
|
|
99
98
|
if (typeof keys === "string" || Array.isArray(keys))
|
|
@@ -111,7 +110,7 @@ export class Client {
|
|
|
111
110
|
|
|
112
111
|
async delete(key: Key): Promise<void>;
|
|
113
112
|
async delete(keys: Key[]): Promise<void>;
|
|
114
|
-
async delete(keys:
|
|
113
|
+
async delete(keys: Key | Key[]): Promise<void> {
|
|
115
114
|
await sendRequired(
|
|
116
115
|
this.client,
|
|
117
116
|
"/workspace/delete",
|
|
@@ -121,6 +120,3 @@ export class Client {
|
|
|
121
120
|
);
|
|
122
121
|
}
|
|
123
122
|
}
|
|
124
|
-
|
|
125
|
-
export const ontologyID = ontology.createIDFactory<Key>("workspace");
|
|
126
|
-
export const TYPE_ONTOLOGY_ID = ontologyID("");
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// Copyright 2026 Synnax Labs, Inc.
|
|
2
|
+
//
|
|
3
|
+
// Use of this software is governed by the Business Source License included in the file
|
|
4
|
+
// licenses/BSL.txt.
|
|
5
|
+
//
|
|
6
|
+
// As of the Change Date specified in that file, in accordance with the Business Source
|
|
7
|
+
// License, use of this software will be governed by the Apache License, Version 2.0,
|
|
8
|
+
// included in the file licenses/APL.txt.
|
|
9
|
+
|
|
10
|
+
// Code generated by Oracle. DO NOT EDIT.
|
|
11
|
+
|
|
12
|
+
import { caseconv, record } from "@synnaxlabs/x";
|
|
13
|
+
import { z } from "zod";
|
|
14
|
+
|
|
15
|
+
import { ontology } from "@/ontology";
|
|
16
|
+
|
|
17
|
+
export const keyZ = z.uuid();
|
|
18
|
+
export type Key = z.infer<typeof keyZ>;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Workspace is a named, persistable container that stores the layout and organization
|
|
22
|
+
* of the Console application. Workspaces allow users to save and restore
|
|
23
|
+
* custom arrangements of visualizations, tabs, and window configurations.
|
|
24
|
+
*/
|
|
25
|
+
export const workspaceZ = z.object({
|
|
26
|
+
/** key is the unique identifier for this workspace. */
|
|
27
|
+
key: keyZ,
|
|
28
|
+
/** name is a human-readable name for the workspace. */
|
|
29
|
+
name: z.string().min(1, "Name is required"),
|
|
30
|
+
/** author is the UUID of the user who created this workspace. */
|
|
31
|
+
author: z.uuid().optional(),
|
|
32
|
+
/**
|
|
33
|
+
* layout is the mosaic tree structure that defines how visualizations are
|
|
34
|
+
* arranged. Contains tab layout, split configurations, and window
|
|
35
|
+
* positions.
|
|
36
|
+
*/
|
|
37
|
+
layout: caseconv.preserveCase(record.nullishToEmpty()),
|
|
38
|
+
});
|
|
39
|
+
export interface Workspace extends z.infer<typeof workspaceZ> {}
|
|
40
|
+
|
|
41
|
+
export const newZ = workspaceZ.omit({ author: true }).partial({ key: true });
|
|
42
|
+
export interface New extends z.input<typeof newZ> {}
|
|
43
|
+
|
|
44
|
+
export const ontologyID = ontology.createIDFactory<Key>("workspace");
|
|
45
|
+
export const TYPE_ONTOLOGY_ID = ontologyID("");
|
|
@@ -58,4 +58,41 @@ describe("Workspace", () => {
|
|
|
58
58
|
await expect(client.workspaces.retrieve(ws.key)).rejects.toThrow();
|
|
59
59
|
});
|
|
60
60
|
});
|
|
61
|
+
describe("case preservation", () => {
|
|
62
|
+
test("should preserve key casing in layout field on create/retrieve cycle", async () => {
|
|
63
|
+
const ws = await client.workspaces.create({
|
|
64
|
+
name: "CaseTest",
|
|
65
|
+
layout: {
|
|
66
|
+
camelCaseKey: "value1",
|
|
67
|
+
PascalCaseKey: "value2",
|
|
68
|
+
snake_case_key: "value3",
|
|
69
|
+
nested: {
|
|
70
|
+
innerCamelCase: 123,
|
|
71
|
+
InnerPascalCase: { deepKey: true },
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
const retrieved = await client.workspaces.retrieve(ws.key);
|
|
77
|
+
|
|
78
|
+
const layout = retrieved.layout as Record<string, unknown>;
|
|
79
|
+
expect(layout.camelCaseKey).toEqual("value1");
|
|
80
|
+
expect(layout.PascalCaseKey).toEqual("value2");
|
|
81
|
+
expect(layout.snake_case_key).toEqual("value3");
|
|
82
|
+
expect((layout.nested as Record<string, unknown>).innerCamelCase).toEqual(123);
|
|
83
|
+
expect(
|
|
84
|
+
(
|
|
85
|
+
(layout.nested as Record<string, unknown>).InnerPascalCase as Record<
|
|
86
|
+
string,
|
|
87
|
+
unknown
|
|
88
|
+
>
|
|
89
|
+
).deepKey,
|
|
90
|
+
).toEqual(true);
|
|
91
|
+
expect(Object.keys(layout)).toContain("camelCaseKey");
|
|
92
|
+
expect(Object.keys(layout)).toContain("PascalCaseKey");
|
|
93
|
+
expect(Object.keys(layout)).toContain("snake_case_key");
|
|
94
|
+
expect(Object.keys(layout)).not.toContain("camel_case_key");
|
|
95
|
+
expect(Object.keys(layout)).not.toContain("pascal_case_key");
|
|
96
|
+
});
|
|
97
|
+
});
|
|
61
98
|
});
|
package/tsconfig.json
CHANGED
package/vite.config.ts
CHANGED
|
@@ -17,6 +17,13 @@ import packageJSON from "./package.json";
|
|
|
17
17
|
export default defineConfig({
|
|
18
18
|
define: { __VERSION__: JSON.stringify(packageJSON.version) },
|
|
19
19
|
plugins: [lib({ name: "client" })],
|
|
20
|
-
build: {
|
|
21
|
-
test: {
|
|
20
|
+
build: { rolldownOptions: { external: ["zod"] } },
|
|
21
|
+
test: {
|
|
22
|
+
globals: true,
|
|
23
|
+
exclude: ["**/node_modules/**", "**/dist/**"],
|
|
24
|
+
coverage: {
|
|
25
|
+
include: ["src/**/*.ts", "src/**/*.tsx"],
|
|
26
|
+
exclude: ["src/**/*.spec.ts", "src/**/*.spec.tsx", "src/**/*.bench.ts"],
|
|
27
|
+
},
|
|
28
|
+
},
|
|
22
29
|
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../src/access/payload.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,OAAO;;;;;EAAqD,CAAC;AAC1E,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC"}
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { ontology } from '../../ontology';
|
|
3
|
-
export declare const keyZ: z.ZodUUID;
|
|
4
|
-
export type Key = z.infer<typeof keyZ>;
|
|
5
|
-
export declare const policyZ: z.ZodObject<{
|
|
6
|
-
key: z.ZodUUID;
|
|
7
|
-
name: z.ZodString;
|
|
8
|
-
objects: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<({
|
|
9
|
-
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";
|
|
10
|
-
key: string;
|
|
11
|
-
} | {
|
|
12
|
-
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";
|
|
13
|
-
key: string;
|
|
14
|
-
})[], null | undefined>>, z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
15
|
-
type: z.ZodEnum<{
|
|
16
|
-
label: "label";
|
|
17
|
-
log: "log";
|
|
18
|
-
builtin: "builtin";
|
|
19
|
-
cluster: "cluster";
|
|
20
|
-
channel: "channel";
|
|
21
|
-
node: "node";
|
|
22
|
-
group: "group";
|
|
23
|
-
range: "range";
|
|
24
|
-
framer: "framer";
|
|
25
|
-
"range-alias": "range-alias";
|
|
26
|
-
user: "user";
|
|
27
|
-
workspace: "workspace";
|
|
28
|
-
schematic: "schematic";
|
|
29
|
-
lineplot: "lineplot";
|
|
30
|
-
rack: "rack";
|
|
31
|
-
device: "device";
|
|
32
|
-
task: "task";
|
|
33
|
-
policy: "policy";
|
|
34
|
-
role: "role";
|
|
35
|
-
table: "table";
|
|
36
|
-
arc: "arc";
|
|
37
|
-
schematic_symbol: "schematic_symbol";
|
|
38
|
-
status: "status";
|
|
39
|
-
view: "view";
|
|
40
|
-
}>;
|
|
41
|
-
key: z.ZodString;
|
|
42
|
-
}, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
43
|
-
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";
|
|
44
|
-
key: string;
|
|
45
|
-
}, string>>]>>]>;
|
|
46
|
-
actions: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<("create" | "delete" | "retrieve" | "update")[], null | undefined>>, z.ZodArray<z.ZodEnum<{
|
|
47
|
-
create: "create";
|
|
48
|
-
delete: "delete";
|
|
49
|
-
retrieve: "retrieve";
|
|
50
|
-
update: "update";
|
|
51
|
-
}>>]>;
|
|
52
|
-
internal: z.ZodBoolean;
|
|
53
|
-
}, z.core.$strip>;
|
|
54
|
-
export interface Policy extends z.infer<typeof policyZ> {
|
|
55
|
-
}
|
|
56
|
-
export declare const newZ: z.ZodObject<{
|
|
57
|
-
key: z.ZodOptional<z.ZodUUID>;
|
|
58
|
-
name: z.ZodString;
|
|
59
|
-
objects: z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
60
|
-
type: z.ZodEnum<{
|
|
61
|
-
label: "label";
|
|
62
|
-
log: "log";
|
|
63
|
-
builtin: "builtin";
|
|
64
|
-
cluster: "cluster";
|
|
65
|
-
channel: "channel";
|
|
66
|
-
node: "node";
|
|
67
|
-
group: "group";
|
|
68
|
-
range: "range";
|
|
69
|
-
framer: "framer";
|
|
70
|
-
"range-alias": "range-alias";
|
|
71
|
-
user: "user";
|
|
72
|
-
workspace: "workspace";
|
|
73
|
-
schematic: "schematic";
|
|
74
|
-
lineplot: "lineplot";
|
|
75
|
-
rack: "rack";
|
|
76
|
-
device: "device";
|
|
77
|
-
task: "task";
|
|
78
|
-
policy: "policy";
|
|
79
|
-
role: "role";
|
|
80
|
-
table: "table";
|
|
81
|
-
arc: "arc";
|
|
82
|
-
schematic_symbol: "schematic_symbol";
|
|
83
|
-
status: "status";
|
|
84
|
-
view: "view";
|
|
85
|
-
}>;
|
|
86
|
-
key: z.ZodString;
|
|
87
|
-
}, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
88
|
-
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";
|
|
89
|
-
key: string;
|
|
90
|
-
}, string>>]>>, z.ZodPipe<z.ZodUnion<[z.ZodObject<{
|
|
91
|
-
type: z.ZodEnum<{
|
|
92
|
-
label: "label";
|
|
93
|
-
log: "log";
|
|
94
|
-
builtin: "builtin";
|
|
95
|
-
cluster: "cluster";
|
|
96
|
-
channel: "channel";
|
|
97
|
-
node: "node";
|
|
98
|
-
group: "group";
|
|
99
|
-
range: "range";
|
|
100
|
-
framer: "framer";
|
|
101
|
-
"range-alias": "range-alias";
|
|
102
|
-
user: "user";
|
|
103
|
-
workspace: "workspace";
|
|
104
|
-
schematic: "schematic";
|
|
105
|
-
lineplot: "lineplot";
|
|
106
|
-
rack: "rack";
|
|
107
|
-
device: "device";
|
|
108
|
-
task: "task";
|
|
109
|
-
policy: "policy";
|
|
110
|
-
role: "role";
|
|
111
|
-
table: "table";
|
|
112
|
-
arc: "arc";
|
|
113
|
-
schematic_symbol: "schematic_symbol";
|
|
114
|
-
status: "status";
|
|
115
|
-
view: "view";
|
|
116
|
-
}>;
|
|
117
|
-
key: z.ZodString;
|
|
118
|
-
}, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
119
|
-
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";
|
|
120
|
-
key: string;
|
|
121
|
-
}, string>>]>, z.ZodTransform<({
|
|
122
|
-
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";
|
|
123
|
-
key: string;
|
|
124
|
-
} | {
|
|
125
|
-
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";
|
|
126
|
-
key: string;
|
|
127
|
-
})[], {
|
|
128
|
-
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";
|
|
129
|
-
key: string;
|
|
130
|
-
} | {
|
|
131
|
-
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";
|
|
132
|
-
key: string;
|
|
133
|
-
}>>]>;
|
|
134
|
-
actions: z.ZodUnion<[z.ZodArray<z.ZodEnum<{
|
|
135
|
-
create: "create";
|
|
136
|
-
delete: "delete";
|
|
137
|
-
retrieve: "retrieve";
|
|
138
|
-
update: "update";
|
|
139
|
-
}>>, z.ZodPipe<z.ZodEnum<{
|
|
140
|
-
create: "create";
|
|
141
|
-
delete: "delete";
|
|
142
|
-
retrieve: "retrieve";
|
|
143
|
-
update: "update";
|
|
144
|
-
}>, z.ZodTransform<("create" | "delete" | "retrieve" | "update")[], "create" | "delete" | "retrieve" | "update">>]>;
|
|
145
|
-
}, z.core.$strip>;
|
|
146
|
-
export interface New extends z.input<typeof newZ> {
|
|
147
|
-
}
|
|
148
|
-
export declare const ontologyID: ontology.CreateID<string>;
|
|
149
|
-
export declare const TYPE_ONTOLOGY_ID: {
|
|
150
|
-
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";
|
|
151
|
-
key: string;
|
|
152
|
-
} | {
|
|
153
|
-
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";
|
|
154
|
-
key: string;
|
|
155
|
-
};
|
|
156
|
-
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../src/access/policy/payload.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,eAAO,MAAM,IAAI,WAAW,CAAC;AAC7B,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AAEvC,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMlB,CAAC;AACH,MAAM,WAAW,MAAO,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC;CAAG;AAE1D,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKf,CAAC;AACH,MAAM,WAAW,GAAI,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC;CAAG;AAEpD,eAAO,MAAM,UAAU,2BAA0C,CAAC;AAClE,eAAO,MAAM,gBAAgB;;;;;;CAAiB,CAAC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { ontology } from '../../ontology';
|
|
3
|
-
export declare const keyZ: z.ZodUUID;
|
|
4
|
-
export type Key = z.infer<typeof keyZ>;
|
|
5
|
-
export declare const roleZ: z.ZodObject<{
|
|
6
|
-
key: z.ZodUUID;
|
|
7
|
-
name: z.ZodString;
|
|
8
|
-
description: z.ZodOptional<z.ZodString>;
|
|
9
|
-
internal: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
-
}, z.core.$strip>;
|
|
11
|
-
export type Role = z.infer<typeof roleZ>;
|
|
12
|
-
export declare const newZ: z.ZodObject<{
|
|
13
|
-
key: z.ZodOptional<z.ZodUUID>;
|
|
14
|
-
name: z.ZodString;
|
|
15
|
-
description: z.ZodOptional<z.ZodString>;
|
|
16
|
-
internal: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
-
}, z.core.$strip>;
|
|
18
|
-
export type New = z.infer<typeof newZ>;
|
|
19
|
-
export declare const ontologyID: ontology.CreateID<string>;
|
|
20
|
-
export declare const TYPE_ONTOLOGY_ID: {
|
|
21
|
-
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";
|
|
22
|
-
key: string;
|
|
23
|
-
} | {
|
|
24
|
-
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";
|
|
25
|
-
key: string;
|
|
26
|
-
};
|
|
27
|
-
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../src/access/role/payload.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,eAAO,MAAM,IAAI,WAAW,CAAC;AAE7B,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AAEvC,eAAO,MAAM,KAAK;;;;;iBAKhB,CAAC;AAEH,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC;AAEzC,eAAO,MAAM,IAAI;;;;;iBAA+B,CAAC;AAEjD,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AAEvC,eAAO,MAAM,UAAU,2BAAwC,CAAC;AAChE,eAAO,MAAM,gBAAgB;;;;;;CAAiB,CAAC"}
|