@synnaxlabs/client 0.43.1 → 0.44.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 +7 -7
- package/dist/access/payload.d.ts +1 -1
- package/dist/access/payload.d.ts.map +1 -1
- package/dist/access/policy/client.d.ts +263 -6
- package/dist/access/policy/client.d.ts.map +1 -1
- package/dist/access/policy/external.d.ts +0 -1
- package/dist/access/policy/external.d.ts.map +1 -1
- package/dist/access/policy/payload.d.ts +105 -93
- package/dist/access/policy/payload.d.ts.map +1 -1
- package/dist/auth/auth.d.ts +1 -1
- package/dist/auth/auth.d.ts.map +1 -1
- package/dist/channel/client.d.ts +12 -13
- package/dist/channel/client.d.ts.map +1 -1
- package/dist/channel/payload.d.ts +77 -19
- package/dist/channel/payload.d.ts.map +1 -1
- package/dist/channel/retriever.d.ts +9 -16
- package/dist/channel/retriever.d.ts.map +1 -1
- package/dist/channel/writer.d.ts +1 -1
- package/dist/channel/writer.d.ts.map +1 -1
- package/dist/client.cjs +27 -135
- package/dist/client.d.ts +3 -3
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +8612 -28957
- package/dist/connection/checker.d.ts +1 -1
- package/dist/connection/checker.d.ts.map +1 -1
- package/dist/control/client.d.ts +1 -0
- package/dist/control/client.d.ts.map +1 -1
- package/dist/control/state.d.ts +6 -6
- package/dist/control/state.d.ts.map +1 -1
- package/dist/errors.d.ts +18 -5
- package/dist/errors.d.ts.map +1 -1
- package/dist/framer/adapter.d.ts +3 -3
- package/dist/framer/adapter.d.ts.map +1 -1
- package/dist/framer/client.d.ts +4 -13
- package/dist/framer/client.d.ts.map +1 -1
- package/dist/framer/codec.d.ts +1 -1
- package/dist/framer/codec.d.ts.map +1 -1
- package/dist/framer/deleter.d.ts +5 -5
- package/dist/framer/deleter.d.ts.map +1 -1
- package/dist/framer/frame.d.ts +5 -7
- package/dist/framer/frame.d.ts.map +1 -1
- package/dist/framer/streamProxy.d.ts +1 -1
- package/dist/framer/streamProxy.d.ts.map +1 -1
- package/dist/framer/streamer.d.ts +139 -20
- package/dist/framer/streamer.d.ts.map +1 -1
- package/dist/framer/writer.d.ts +222 -33
- package/dist/framer/writer.d.ts.map +1 -1
- package/dist/hardware/device/client.d.ts +49 -28
- package/dist/hardware/device/client.d.ts.map +1 -1
- package/dist/hardware/device/payload.d.ts +126 -46
- package/dist/hardware/device/payload.d.ts.map +1 -1
- package/dist/hardware/rack/client.d.ts +78 -22
- package/dist/hardware/rack/client.d.ts.map +1 -1
- package/dist/hardware/rack/payload.d.ts +99 -56
- package/dist/hardware/rack/payload.d.ts.map +1 -1
- package/dist/hardware/task/client.d.ts +100 -41
- package/dist/hardware/task/client.d.ts.map +1 -1
- package/dist/hardware/task/payload.d.ts +83 -61
- package/dist/hardware/task/payload.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/label/client.d.ts +138 -20
- package/dist/label/client.d.ts.map +1 -1
- package/dist/label/external.d.ts +0 -2
- package/dist/label/external.d.ts.map +1 -1
- package/dist/label/payload.d.ts +4 -5
- package/dist/label/payload.d.ts.map +1 -1
- package/dist/ontology/client.d.ts +45 -135
- package/dist/ontology/client.d.ts.map +1 -1
- package/dist/ontology/group/group.d.ts +3 -3
- package/dist/ontology/group/group.d.ts.map +1 -1
- package/dist/ontology/group/payload.d.ts +3 -27
- package/dist/ontology/group/payload.d.ts.map +1 -1
- package/dist/ontology/payload.d.ts +113 -243
- package/dist/ontology/payload.d.ts.map +1 -1
- package/dist/ontology/writer.d.ts +4 -4
- package/dist/ontology/writer.d.ts.map +1 -1
- package/dist/ranger/alias.d.ts +11 -5
- package/dist/ranger/alias.d.ts.map +1 -1
- package/dist/ranger/client.d.ts +87 -30
- package/dist/ranger/client.d.ts.map +1 -1
- package/dist/ranger/external.d.ts +1 -1
- package/dist/ranger/external.d.ts.map +1 -1
- package/dist/ranger/kv.d.ts +10 -12
- package/dist/ranger/kv.d.ts.map +1 -1
- package/dist/ranger/payload.d.ts +23 -44
- package/dist/ranger/payload.d.ts.map +1 -1
- package/dist/ranger/writer.d.ts +22 -19
- package/dist/ranger/writer.d.ts.map +1 -1
- package/dist/testutil/client.d.ts +4 -0
- package/dist/testutil/client.d.ts.map +1 -0
- package/dist/user/client.d.ts +59 -6
- package/dist/user/client.d.ts.map +1 -1
- package/dist/user/payload.d.ts +4 -6
- package/dist/user/payload.d.ts.map +1 -1
- package/dist/user/retriever.d.ts +2 -2
- package/dist/user/retriever.d.ts.map +1 -1
- package/dist/util/decodeJSONString.d.ts +2 -2
- package/dist/util/decodeJSONString.d.ts.map +1 -1
- package/dist/util/parseWithoutKeyConversion.d.ts +2 -2
- package/dist/util/parseWithoutKeyConversion.d.ts.map +1 -1
- package/dist/util/retrieve.d.ts +1 -1
- package/dist/util/retrieve.d.ts.map +1 -1
- package/dist/util/zod.d.ts +1 -1
- package/dist/util/zod.d.ts.map +1 -1
- package/dist/workspace/client.d.ts +17 -6
- package/dist/workspace/client.d.ts.map +1 -1
- package/dist/workspace/lineplot/client.d.ts +2 -2
- package/dist/workspace/lineplot/client.d.ts.map +1 -1
- package/dist/workspace/lineplot/payload.d.ts +8 -9
- package/dist/workspace/lineplot/payload.d.ts.map +1 -1
- package/dist/workspace/log/client.d.ts +2 -2
- package/dist/workspace/log/client.d.ts.map +1 -1
- package/dist/workspace/log/payload.d.ts +8 -9
- package/dist/workspace/log/payload.d.ts.map +1 -1
- package/dist/workspace/payload.d.ts +10 -11
- package/dist/workspace/payload.d.ts.map +1 -1
- package/dist/workspace/schematic/client.d.ts +2 -2
- package/dist/workspace/schematic/client.d.ts.map +1 -1
- package/dist/workspace/schematic/payload.d.ts +10 -11
- package/dist/workspace/schematic/payload.d.ts.map +1 -1
- package/dist/workspace/table/client.d.ts +2 -2
- package/dist/workspace/table/client.d.ts.map +1 -1
- package/dist/workspace/table/payload.d.ts +10 -11
- package/dist/workspace/table/payload.d.ts.map +1 -1
- package/examples/node/package-lock.json +47 -39
- package/examples/node/package.json +2 -1
- package/examples/node/streamWrite.js +5 -11
- package/package.json +14 -13
- package/src/access/payload.ts +1 -1
- package/src/access/policy/client.ts +87 -32
- package/src/access/policy/external.ts +0 -1
- package/src/access/policy/payload.ts +4 -4
- package/src/access/policy/policy.spec.ts +86 -83
- package/src/auth/auth.spec.ts +29 -18
- package/src/auth/auth.ts +1 -1
- package/src/channel/batchRetriever.spec.ts +4 -9
- package/src/channel/channel.spec.ts +24 -6
- package/src/channel/client.ts +31 -46
- package/src/channel/payload.ts +13 -14
- package/src/channel/retriever.ts +26 -41
- package/src/channel/writer.ts +3 -3
- package/src/client.ts +4 -4
- package/src/connection/checker.ts +1 -1
- package/src/connection/connection.spec.ts +31 -23
- package/src/control/client.ts +2 -2
- package/src/control/state.spec.ts +3 -3
- package/src/control/state.ts +1 -1
- package/src/errors.spec.ts +9 -5
- package/src/errors.ts +28 -15
- package/src/framer/adapter.spec.ts +118 -9
- package/src/framer/adapter.ts +24 -11
- package/src/framer/client.spec.ts +125 -2
- package/src/framer/client.ts +41 -47
- package/src/framer/codec.ts +1 -1
- package/src/framer/deleter.spec.ts +2 -2
- package/src/framer/deleter.ts +1 -1
- package/src/framer/frame.ts +1 -4
- package/src/framer/iterator.spec.ts +8 -8
- package/src/framer/iterator.ts +1 -1
- package/src/framer/streamProxy.ts +1 -1
- package/src/framer/streamer.spec.ts +185 -36
- package/src/framer/streamer.ts +28 -36
- package/src/framer/writer.spec.ts +6 -6
- package/src/framer/writer.ts +97 -111
- package/src/hardware/device/client.ts +45 -131
- package/src/hardware/device/device.spec.ts +163 -52
- package/src/hardware/device/payload.ts +10 -21
- package/src/hardware/rack/client.ts +87 -105
- package/src/hardware/rack/payload.ts +4 -13
- package/src/hardware/rack/rack.spec.ts +28 -35
- package/src/hardware/task/client.ts +335 -291
- package/src/hardware/task/payload.ts +86 -62
- package/src/hardware/task/task.spec.ts +208 -32
- package/src/index.ts +2 -1
- package/src/label/client.ts +100 -95
- package/src/label/external.ts +0 -2
- package/src/label/label.spec.ts +8 -6
- package/src/label/payload.ts +3 -4
- package/src/ontology/client.ts +41 -324
- package/src/ontology/group/group.spec.ts +2 -2
- package/src/ontology/group/group.ts +4 -5
- package/src/ontology/group/payload.ts +2 -25
- package/src/ontology/group/writer.ts +1 -1
- package/src/ontology/ontology.spec.ts +355 -41
- package/src/ontology/payload.ts +74 -112
- package/src/ontology/writer.ts +8 -17
- package/src/ranger/alias.ts +19 -37
- package/src/ranger/client.ts +118 -150
- package/src/ranger/external.ts +9 -1
- package/src/ranger/kv.ts +6 -27
- package/src/ranger/payload.ts +21 -37
- package/src/ranger/ranger.spec.ts +37 -56
- package/src/ranger/writer.ts +1 -1
- package/src/{signals/index.ts → testutil/client.ts} +11 -1
- package/src/user/client.ts +122 -47
- package/src/user/payload.ts +2 -5
- package/src/user/retriever.ts +1 -1
- package/src/user/user.spec.ts +31 -31
- package/src/user/writer.ts +1 -1
- package/src/util/decodeJSONString.ts +3 -3
- package/src/util/parseWithoutKeyConversion.ts +2 -2
- package/src/util/retrieve.ts +1 -1
- package/src/util/zod.ts +1 -1
- package/src/workspace/client.ts +20 -36
- package/src/workspace/lineplot/client.ts +5 -7
- package/src/workspace/lineplot/lineplot.spec.ts +2 -2
- package/src/workspace/lineplot/payload.ts +4 -7
- package/src/workspace/log/client.ts +5 -7
- package/src/workspace/log/log.spec.ts +2 -2
- package/src/workspace/log/payload.ts +4 -7
- package/src/workspace/payload.ts +4 -7
- package/src/workspace/schematic/client.ts +5 -7
- package/src/workspace/schematic/payload.ts +4 -7
- package/src/workspace/schematic/schematic.spec.ts +2 -2
- package/src/workspace/table/client.ts +5 -7
- package/src/workspace/table/payload.ts +4 -7
- package/src/workspace/table/table.spec.ts +2 -2
- package/src/workspace/workspace.spec.ts +2 -2
- package/dist/access/policy/ontology.d.ts +0 -5
- package/dist/access/policy/ontology.d.ts.map +0 -1
- package/dist/access/policy/retriever.d.ts +0 -40
- package/dist/access/policy/retriever.d.ts.map +0 -1
- package/dist/access/policy/writer.d.ts +0 -9
- package/dist/access/policy/writer.d.ts.map +0 -1
- package/dist/label/retriever.d.ts +0 -14
- package/dist/label/retriever.d.ts.map +0 -1
- package/dist/label/writer.d.ts +0 -54
- package/dist/label/writer.d.ts.map +0 -1
- package/dist/setupspecs.d.ts +0 -5
- package/dist/setupspecs.d.ts.map +0 -1
- package/dist/signals/external.d.ts +0 -2
- package/dist/signals/external.d.ts.map +0 -1
- package/dist/signals/index.d.ts +0 -2
- package/dist/signals/index.d.ts.map +0 -1
- package/dist/signals/observable.d.ts +0 -12
- package/dist/signals/observable.d.ts.map +0 -1
- package/src/access/policy/ontology.ts +0 -17
- package/src/access/policy/retriever.ts +0 -44
- package/src/access/policy/writer.ts +0 -65
- package/src/label/retriever.ts +0 -63
- package/src/label/writer.ts +0 -95
- package/src/setupspecs.ts +0 -27
- package/src/signals/external.ts +0 -10
- package/src/signals/observable.ts +0 -42
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
|
|
2
|
-
> @synnaxlabs/client@0.
|
|
2
|
+
> @synnaxlabs/client@0.44.1 build /home/runner/work/synnax/synnax/client/ts
|
|
3
3
|
> tsc --noEmit && vite build
|
|
4
4
|
|
|
5
5
|
[34m Synnax - Production mode[0m
|
|
6
|
-
[36mvite
|
|
6
|
+
[36mvite v7.0.4 [32mbuilding for production...[36m[39m
|
|
7
7
|
transforming...
|
|
8
|
-
[32m✓[39m
|
|
8
|
+
[32m✓[39m 138 modules transformed.
|
|
9
9
|
rendering chunks...
|
|
10
10
|
|
|
11
11
|
[vite:dts] Start generate declaration files...
|
|
12
12
|
computing gzip size...
|
|
13
|
-
[2mdist/[22m[36mclient.js [39m[1m[
|
|
14
|
-
[vite:dts] Declaration files built in
|
|
13
|
+
[2mdist/[22m[36mclient.js [39m[1m[2m350.17 kB[22m[1m[22m[2m │ gzip: 82.78 kB[22m
|
|
14
|
+
[vite:dts] Declaration files built in 4889ms.
|
|
15
15
|
|
|
16
|
-
[2mdist/[22m[36mclient.cjs [39m[1m[
|
|
17
|
-
[32m✓ built in 6.
|
|
16
|
+
[2mdist/[22m[36mclient.cjs [39m[1m[2m194.54 kB[22m[1m[22m[2m │ gzip: 55.44 kB[22m
|
|
17
|
+
[32m✓ built in 6.00s[39m
|
package/dist/access/payload.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../src/access/payload.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
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,UAAU,QAAQ,CAAC;AAChC,eAAO,MAAM,aAAa,WAAW,CAAC;AACtC,eAAO,MAAM,aAAa,WAAW,CAAC;AACtC,eAAO,MAAM,eAAe,aAAa,CAAC;AAC1C,eAAO,MAAM,aAAa,WAAW,CAAC;AAEtC,eAAO,MAAM,OAAO;;;;;;EAMlB,CAAC;AACH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC"}
|
|
@@ -1,19 +1,276 @@
|
|
|
1
1
|
import { UnaryClient } from '@synnaxlabs/freighter';
|
|
2
|
+
import { z } from 'zod';
|
|
2
3
|
import { Key, New, Policy } from './payload';
|
|
3
4
|
import { ontology } from '../../ontology';
|
|
5
|
+
declare const keyRetrieveRequestZ: z.ZodPipe<z.ZodObject<{
|
|
6
|
+
key: z.ZodUUID;
|
|
7
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
8
|
+
keys: string[];
|
|
9
|
+
}, {
|
|
10
|
+
key: string;
|
|
11
|
+
}>>;
|
|
12
|
+
declare const listRetrieveArgsZ: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
13
|
+
for: z.ZodUnion<[z.ZodObject<{
|
|
14
|
+
type: z.ZodEnum<{
|
|
15
|
+
label: "label";
|
|
16
|
+
log: "log";
|
|
17
|
+
allow_all: "allow_all";
|
|
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
|
+
table: "table";
|
|
35
|
+
}>;
|
|
36
|
+
key: z.ZodString;
|
|
37
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
38
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
39
|
+
key: string;
|
|
40
|
+
}, string>>]>;
|
|
41
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
42
|
+
subjects: ({
|
|
43
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
44
|
+
key: string;
|
|
45
|
+
} | {
|
|
46
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
47
|
+
key: string;
|
|
48
|
+
})[];
|
|
49
|
+
}, {
|
|
50
|
+
for: {
|
|
51
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
52
|
+
key: string;
|
|
53
|
+
} | {
|
|
54
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
55
|
+
key: string;
|
|
56
|
+
};
|
|
57
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
58
|
+
for: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
59
|
+
type: z.ZodEnum<{
|
|
60
|
+
label: "label";
|
|
61
|
+
log: "log";
|
|
62
|
+
allow_all: "allow_all";
|
|
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
|
+
table: "table";
|
|
80
|
+
}>;
|
|
81
|
+
key: z.ZodString;
|
|
82
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
83
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
84
|
+
key: string;
|
|
85
|
+
}, string>>]>>;
|
|
86
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
87
|
+
subjects: ({
|
|
88
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
89
|
+
key: string;
|
|
90
|
+
} | {
|
|
91
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
92
|
+
key: string;
|
|
93
|
+
})[];
|
|
94
|
+
}, {
|
|
95
|
+
for: ({
|
|
96
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
97
|
+
key: string;
|
|
98
|
+
} | {
|
|
99
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
100
|
+
key: string;
|
|
101
|
+
})[];
|
|
102
|
+
}>>, z.ZodObject<{
|
|
103
|
+
keys: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
104
|
+
subjects: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
105
|
+
type: z.ZodEnum<{
|
|
106
|
+
label: "label";
|
|
107
|
+
log: "log";
|
|
108
|
+
allow_all: "allow_all";
|
|
109
|
+
builtin: "builtin";
|
|
110
|
+
cluster: "cluster";
|
|
111
|
+
channel: "channel";
|
|
112
|
+
node: "node";
|
|
113
|
+
group: "group";
|
|
114
|
+
range: "range";
|
|
115
|
+
framer: "framer";
|
|
116
|
+
"range-alias": "range-alias";
|
|
117
|
+
user: "user";
|
|
118
|
+
workspace: "workspace";
|
|
119
|
+
schematic: "schematic";
|
|
120
|
+
lineplot: "lineplot";
|
|
121
|
+
rack: "rack";
|
|
122
|
+
device: "device";
|
|
123
|
+
task: "task";
|
|
124
|
+
policy: "policy";
|
|
125
|
+
table: "table";
|
|
126
|
+
}>;
|
|
127
|
+
key: z.ZodString;
|
|
128
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
129
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
130
|
+
key: string;
|
|
131
|
+
}, string>>]>>>;
|
|
132
|
+
}, z.core.$strip>]>;
|
|
133
|
+
export type SingleRetrieveArgs = z.input<typeof keyRetrieveRequestZ>;
|
|
134
|
+
export type ListRetrieveArgs = z.input<typeof listRetrieveArgsZ>;
|
|
135
|
+
declare const retrieveArgsZ: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
136
|
+
key: z.ZodUUID;
|
|
137
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
138
|
+
keys: string[];
|
|
139
|
+
}, {
|
|
140
|
+
key: string;
|
|
141
|
+
}>>, z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
142
|
+
for: z.ZodUnion<[z.ZodObject<{
|
|
143
|
+
type: z.ZodEnum<{
|
|
144
|
+
label: "label";
|
|
145
|
+
log: "log";
|
|
146
|
+
allow_all: "allow_all";
|
|
147
|
+
builtin: "builtin";
|
|
148
|
+
cluster: "cluster";
|
|
149
|
+
channel: "channel";
|
|
150
|
+
node: "node";
|
|
151
|
+
group: "group";
|
|
152
|
+
range: "range";
|
|
153
|
+
framer: "framer";
|
|
154
|
+
"range-alias": "range-alias";
|
|
155
|
+
user: "user";
|
|
156
|
+
workspace: "workspace";
|
|
157
|
+
schematic: "schematic";
|
|
158
|
+
lineplot: "lineplot";
|
|
159
|
+
rack: "rack";
|
|
160
|
+
device: "device";
|
|
161
|
+
task: "task";
|
|
162
|
+
policy: "policy";
|
|
163
|
+
table: "table";
|
|
164
|
+
}>;
|
|
165
|
+
key: z.ZodString;
|
|
166
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
167
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
168
|
+
key: string;
|
|
169
|
+
}, string>>]>;
|
|
170
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
171
|
+
subjects: ({
|
|
172
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
173
|
+
key: string;
|
|
174
|
+
} | {
|
|
175
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
176
|
+
key: string;
|
|
177
|
+
})[];
|
|
178
|
+
}, {
|
|
179
|
+
for: {
|
|
180
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
181
|
+
key: string;
|
|
182
|
+
} | {
|
|
183
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
184
|
+
key: string;
|
|
185
|
+
};
|
|
186
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
187
|
+
for: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
188
|
+
type: z.ZodEnum<{
|
|
189
|
+
label: "label";
|
|
190
|
+
log: "log";
|
|
191
|
+
allow_all: "allow_all";
|
|
192
|
+
builtin: "builtin";
|
|
193
|
+
cluster: "cluster";
|
|
194
|
+
channel: "channel";
|
|
195
|
+
node: "node";
|
|
196
|
+
group: "group";
|
|
197
|
+
range: "range";
|
|
198
|
+
framer: "framer";
|
|
199
|
+
"range-alias": "range-alias";
|
|
200
|
+
user: "user";
|
|
201
|
+
workspace: "workspace";
|
|
202
|
+
schematic: "schematic";
|
|
203
|
+
lineplot: "lineplot";
|
|
204
|
+
rack: "rack";
|
|
205
|
+
device: "device";
|
|
206
|
+
task: "task";
|
|
207
|
+
policy: "policy";
|
|
208
|
+
table: "table";
|
|
209
|
+
}>;
|
|
210
|
+
key: z.ZodString;
|
|
211
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
212
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
213
|
+
key: string;
|
|
214
|
+
}, string>>]>>;
|
|
215
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
216
|
+
subjects: ({
|
|
217
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
218
|
+
key: string;
|
|
219
|
+
} | {
|
|
220
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
221
|
+
key: string;
|
|
222
|
+
})[];
|
|
223
|
+
}, {
|
|
224
|
+
for: ({
|
|
225
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
226
|
+
key: string;
|
|
227
|
+
} | {
|
|
228
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
229
|
+
key: string;
|
|
230
|
+
})[];
|
|
231
|
+
}>>, z.ZodObject<{
|
|
232
|
+
keys: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
233
|
+
subjects: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
234
|
+
type: z.ZodEnum<{
|
|
235
|
+
label: "label";
|
|
236
|
+
log: "log";
|
|
237
|
+
allow_all: "allow_all";
|
|
238
|
+
builtin: "builtin";
|
|
239
|
+
cluster: "cluster";
|
|
240
|
+
channel: "channel";
|
|
241
|
+
node: "node";
|
|
242
|
+
group: "group";
|
|
243
|
+
range: "range";
|
|
244
|
+
framer: "framer";
|
|
245
|
+
"range-alias": "range-alias";
|
|
246
|
+
user: "user";
|
|
247
|
+
workspace: "workspace";
|
|
248
|
+
schematic: "schematic";
|
|
249
|
+
lineplot: "lineplot";
|
|
250
|
+
rack: "rack";
|
|
251
|
+
device: "device";
|
|
252
|
+
task: "task";
|
|
253
|
+
policy: "policy";
|
|
254
|
+
table: "table";
|
|
255
|
+
}>;
|
|
256
|
+
key: z.ZodString;
|
|
257
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
258
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
259
|
+
key: string;
|
|
260
|
+
}, string>>]>>>;
|
|
261
|
+
}, z.core.$strip>]>]>;
|
|
262
|
+
export type RetrieveArgs = z.input<typeof retrieveArgsZ>;
|
|
4
263
|
export declare class Client {
|
|
5
|
-
private readonly
|
|
6
|
-
private readonly writer;
|
|
264
|
+
private readonly client;
|
|
7
265
|
constructor(client: UnaryClient);
|
|
8
266
|
create(policy: New): Promise<Policy>;
|
|
9
267
|
create(policies: New[]): Promise<Policy[]>;
|
|
10
|
-
retrieve(
|
|
11
|
-
retrieve(
|
|
12
|
-
retrieveFor(subject: ontology.CrudeID): Promise<Policy[]>;
|
|
13
|
-
retrieveFor(subjects: ontology.CrudeID[]): Promise<Policy[]>;
|
|
268
|
+
retrieve(args: SingleRetrieveArgs): Promise<Policy>;
|
|
269
|
+
retrieve(args: ListRetrieveArgs): Promise<Policy[]>;
|
|
14
270
|
delete(key: Key): Promise<void>;
|
|
15
271
|
delete(keys: Key[]): Promise<void>;
|
|
16
272
|
}
|
|
17
273
|
export declare const ontologyID: (key: Key) => ontology.ID;
|
|
18
274
|
export declare const ALLOW_ALL_ONTOLOGY_ID: ontology.ID;
|
|
275
|
+
export {};
|
|
19
276
|
//# sourceMappingURL=client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/access/policy/client.ts"],"names":[],"mappings":"AASA,OAAO,
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/access/policy/client.ts"],"names":[],"mappings":"AASA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEvE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,KAAK,GAAG,EAER,KAAK,GAAG,EAER,KAAK,MAAM,EAEZ,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAQtC,QAAA,MAAM,mBAAmB;;;;;;GAEmB,CAAC;AAE7C,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAQrB,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACrE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAEjE,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAAoD,CAAC;AAExE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAazD,qBAAa,MAAM;IACjB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAc;gBAEzB,MAAM,EAAE,WAAW;IAIzB,MAAM,CAAC,MAAM,EAAE,GAAG,GAAG,OAAO,CAAC,MAAM,CAAC;IACpC,MAAM,CAAC,QAAQ,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAmB1C,QAAQ,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC;IACnD,QAAQ,CAAC,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAanD,MAAM,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC;IAC/B,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAUzC;AAED,eAAO,MAAM,UAAU,GAAI,KAAK,GAAG,KAAG,QAAQ,CAAC,EAA+B,CAAC;AAE/E,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,EAG5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../src/access/policy/external.ts"],"names":[],"mappings":"AASA,cAAc,wBAAwB,CAAC;AACvC,cAAc,
|
|
1
|
+
{"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../src/access/policy/external.ts"],"names":[],"mappings":"AASA,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC"}
|
|
@@ -1,64 +1,76 @@
|
|
|
1
|
-
import { z } from 'zod
|
|
2
|
-
export declare const keyZ: z.
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const keyZ: z.ZodUUID;
|
|
3
3
|
export type Key = z.infer<typeof keyZ>;
|
|
4
4
|
export declare const policyZ: z.ZodObject<{
|
|
5
|
-
key: z.
|
|
6
|
-
subjects: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<{
|
|
7
|
-
type: "
|
|
5
|
+
key: z.ZodUUID;
|
|
6
|
+
subjects: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<({
|
|
7
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
8
8
|
key: string;
|
|
9
|
-
}
|
|
9
|
+
} | {
|
|
10
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
11
|
+
key: string;
|
|
12
|
+
})[], null | undefined>>, z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
10
13
|
type: z.ZodEnum<{
|
|
11
|
-
|
|
14
|
+
label: "label";
|
|
15
|
+
log: "log";
|
|
12
16
|
allow_all: "allow_all";
|
|
17
|
+
builtin: "builtin";
|
|
18
|
+
cluster: "cluster";
|
|
13
19
|
channel: "channel";
|
|
20
|
+
node: "node";
|
|
14
21
|
group: "group";
|
|
15
|
-
framer: "framer";
|
|
16
|
-
rack: "rack";
|
|
17
|
-
device: "device";
|
|
18
|
-
task: "task";
|
|
19
|
-
label: "label";
|
|
20
22
|
range: "range";
|
|
23
|
+
framer: "framer";
|
|
21
24
|
"range-alias": "range-alias";
|
|
22
25
|
user: "user";
|
|
23
|
-
lineplot: "lineplot";
|
|
24
|
-
log: "log";
|
|
25
26
|
workspace: "workspace";
|
|
26
27
|
schematic: "schematic";
|
|
28
|
+
lineplot: "lineplot";
|
|
29
|
+
rack: "rack";
|
|
30
|
+
device: "device";
|
|
31
|
+
task: "task";
|
|
32
|
+
policy: "policy";
|
|
27
33
|
table: "table";
|
|
28
|
-
builtin: "builtin";
|
|
29
|
-
cluster: "cluster";
|
|
30
|
-
node: "node";
|
|
31
34
|
}>;
|
|
32
35
|
key: z.ZodString;
|
|
33
|
-
}, z.core.$strip
|
|
34
|
-
|
|
35
|
-
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
36
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
37
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
36
38
|
key: string;
|
|
37
|
-
}
|
|
39
|
+
}, string>>]>>]>;
|
|
40
|
+
objects: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<({
|
|
41
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
42
|
+
key: string;
|
|
43
|
+
} | {
|
|
44
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
45
|
+
key: string;
|
|
46
|
+
})[], null | undefined>>, z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
38
47
|
type: z.ZodEnum<{
|
|
39
|
-
|
|
48
|
+
label: "label";
|
|
49
|
+
log: "log";
|
|
40
50
|
allow_all: "allow_all";
|
|
51
|
+
builtin: "builtin";
|
|
52
|
+
cluster: "cluster";
|
|
41
53
|
channel: "channel";
|
|
54
|
+
node: "node";
|
|
42
55
|
group: "group";
|
|
43
|
-
framer: "framer";
|
|
44
|
-
rack: "rack";
|
|
45
|
-
device: "device";
|
|
46
|
-
task: "task";
|
|
47
|
-
label: "label";
|
|
48
56
|
range: "range";
|
|
57
|
+
framer: "framer";
|
|
49
58
|
"range-alias": "range-alias";
|
|
50
59
|
user: "user";
|
|
51
|
-
lineplot: "lineplot";
|
|
52
|
-
log: "log";
|
|
53
60
|
workspace: "workspace";
|
|
54
61
|
schematic: "schematic";
|
|
62
|
+
lineplot: "lineplot";
|
|
63
|
+
rack: "rack";
|
|
64
|
+
device: "device";
|
|
65
|
+
task: "task";
|
|
66
|
+
policy: "policy";
|
|
55
67
|
table: "table";
|
|
56
|
-
builtin: "builtin";
|
|
57
|
-
cluster: "cluster";
|
|
58
|
-
node: "node";
|
|
59
68
|
}>;
|
|
60
69
|
key: z.ZodString;
|
|
61
|
-
}, z.core.$strip
|
|
70
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
71
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
72
|
+
key: string;
|
|
73
|
+
}, string>>]>>]>;
|
|
62
74
|
actions: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<("all" | "create" | "delete" | "retrieve" | "update")[], null | undefined>>, z.ZodArray<z.ZodEnum<{
|
|
63
75
|
all: "all";
|
|
64
76
|
create: "create";
|
|
@@ -70,117 +82,117 @@ export declare const policyZ: z.ZodObject<{
|
|
|
70
82
|
export interface Policy extends z.infer<typeof policyZ> {
|
|
71
83
|
}
|
|
72
84
|
export declare const newZ: z.ZodObject<{
|
|
73
|
-
key: z.ZodOptional<z.
|
|
74
|
-
subjects: z.ZodUnion<[z.ZodArray<z.ZodUnion<
|
|
75
|
-
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
76
|
-
key: string;
|
|
77
|
-
}, string>>, z.ZodObject<{
|
|
85
|
+
key: z.ZodOptional<z.ZodUUID>;
|
|
86
|
+
subjects: z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
78
87
|
type: z.ZodEnum<{
|
|
79
|
-
|
|
88
|
+
label: "label";
|
|
89
|
+
log: "log";
|
|
80
90
|
allow_all: "allow_all";
|
|
91
|
+
builtin: "builtin";
|
|
92
|
+
cluster: "cluster";
|
|
81
93
|
channel: "channel";
|
|
94
|
+
node: "node";
|
|
82
95
|
group: "group";
|
|
83
|
-
framer: "framer";
|
|
84
|
-
rack: "rack";
|
|
85
|
-
device: "device";
|
|
86
|
-
task: "task";
|
|
87
|
-
label: "label";
|
|
88
96
|
range: "range";
|
|
97
|
+
framer: "framer";
|
|
89
98
|
"range-alias": "range-alias";
|
|
90
99
|
user: "user";
|
|
91
|
-
lineplot: "lineplot";
|
|
92
|
-
log: "log";
|
|
93
100
|
workspace: "workspace";
|
|
94
101
|
schematic: "schematic";
|
|
102
|
+
lineplot: "lineplot";
|
|
103
|
+
rack: "rack";
|
|
104
|
+
device: "device";
|
|
105
|
+
task: "task";
|
|
106
|
+
policy: "policy";
|
|
95
107
|
table: "table";
|
|
96
|
-
builtin: "builtin";
|
|
97
|
-
cluster: "cluster";
|
|
98
|
-
node: "node";
|
|
99
108
|
}>;
|
|
100
109
|
key: z.ZodString;
|
|
101
|
-
}, z.core.$strip
|
|
102
|
-
type: "
|
|
110
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
111
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
103
112
|
key: string;
|
|
104
|
-
}, string>>, z.ZodObject<{
|
|
113
|
+
}, string>>]>>, z.ZodUnion<[z.ZodObject<{
|
|
105
114
|
type: z.ZodEnum<{
|
|
106
|
-
|
|
115
|
+
label: "label";
|
|
116
|
+
log: "log";
|
|
107
117
|
allow_all: "allow_all";
|
|
118
|
+
builtin: "builtin";
|
|
119
|
+
cluster: "cluster";
|
|
108
120
|
channel: "channel";
|
|
121
|
+
node: "node";
|
|
109
122
|
group: "group";
|
|
110
|
-
framer: "framer";
|
|
111
|
-
rack: "rack";
|
|
112
|
-
device: "device";
|
|
113
|
-
task: "task";
|
|
114
|
-
label: "label";
|
|
115
123
|
range: "range";
|
|
124
|
+
framer: "framer";
|
|
116
125
|
"range-alias": "range-alias";
|
|
117
126
|
user: "user";
|
|
118
|
-
lineplot: "lineplot";
|
|
119
|
-
log: "log";
|
|
120
127
|
workspace: "workspace";
|
|
121
128
|
schematic: "schematic";
|
|
129
|
+
lineplot: "lineplot";
|
|
130
|
+
rack: "rack";
|
|
131
|
+
device: "device";
|
|
132
|
+
task: "task";
|
|
133
|
+
policy: "policy";
|
|
122
134
|
table: "table";
|
|
123
|
-
builtin: "builtin";
|
|
124
|
-
cluster: "cluster";
|
|
125
|
-
node: "node";
|
|
126
135
|
}>;
|
|
127
136
|
key: z.ZodString;
|
|
128
|
-
}, z.core.$strip
|
|
129
|
-
|
|
130
|
-
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
137
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
138
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
131
139
|
key: string;
|
|
132
|
-
}, string
|
|
140
|
+
}, string>>]>]>;
|
|
141
|
+
objects: z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
133
142
|
type: z.ZodEnum<{
|
|
134
|
-
|
|
143
|
+
label: "label";
|
|
144
|
+
log: "log";
|
|
135
145
|
allow_all: "allow_all";
|
|
146
|
+
builtin: "builtin";
|
|
147
|
+
cluster: "cluster";
|
|
136
148
|
channel: "channel";
|
|
149
|
+
node: "node";
|
|
137
150
|
group: "group";
|
|
138
|
-
framer: "framer";
|
|
139
|
-
rack: "rack";
|
|
140
|
-
device: "device";
|
|
141
|
-
task: "task";
|
|
142
|
-
label: "label";
|
|
143
151
|
range: "range";
|
|
152
|
+
framer: "framer";
|
|
144
153
|
"range-alias": "range-alias";
|
|
145
154
|
user: "user";
|
|
146
|
-
lineplot: "lineplot";
|
|
147
|
-
log: "log";
|
|
148
155
|
workspace: "workspace";
|
|
149
156
|
schematic: "schematic";
|
|
157
|
+
lineplot: "lineplot";
|
|
158
|
+
rack: "rack";
|
|
159
|
+
device: "device";
|
|
160
|
+
task: "task";
|
|
161
|
+
policy: "policy";
|
|
150
162
|
table: "table";
|
|
151
|
-
builtin: "builtin";
|
|
152
|
-
cluster: "cluster";
|
|
153
|
-
node: "node";
|
|
154
163
|
}>;
|
|
155
164
|
key: z.ZodString;
|
|
156
|
-
}, z.core.$strip
|
|
157
|
-
type: "
|
|
165
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
166
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
158
167
|
key: string;
|
|
159
|
-
}, string>>, z.ZodObject<{
|
|
168
|
+
}, string>>]>>, z.ZodUnion<[z.ZodObject<{
|
|
160
169
|
type: z.ZodEnum<{
|
|
161
|
-
|
|
170
|
+
label: "label";
|
|
171
|
+
log: "log";
|
|
162
172
|
allow_all: "allow_all";
|
|
173
|
+
builtin: "builtin";
|
|
174
|
+
cluster: "cluster";
|
|
163
175
|
channel: "channel";
|
|
176
|
+
node: "node";
|
|
164
177
|
group: "group";
|
|
165
|
-
framer: "framer";
|
|
166
|
-
rack: "rack";
|
|
167
|
-
device: "device";
|
|
168
|
-
task: "task";
|
|
169
|
-
label: "label";
|
|
170
178
|
range: "range";
|
|
179
|
+
framer: "framer";
|
|
171
180
|
"range-alias": "range-alias";
|
|
172
181
|
user: "user";
|
|
173
|
-
lineplot: "lineplot";
|
|
174
|
-
log: "log";
|
|
175
182
|
workspace: "workspace";
|
|
176
183
|
schematic: "schematic";
|
|
184
|
+
lineplot: "lineplot";
|
|
185
|
+
rack: "rack";
|
|
186
|
+
device: "device";
|
|
187
|
+
task: "task";
|
|
188
|
+
policy: "policy";
|
|
177
189
|
table: "table";
|
|
178
|
-
builtin: "builtin";
|
|
179
|
-
cluster: "cluster";
|
|
180
|
-
node: "node";
|
|
181
190
|
}>;
|
|
182
191
|
key: z.ZodString;
|
|
183
|
-
}, z.core.$strip
|
|
192
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
193
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
194
|
+
key: string;
|
|
195
|
+
}, string>>]>]>;
|
|
184
196
|
actions: z.ZodUnion<[z.ZodArray<z.ZodEnum<{
|
|
185
197
|
all: "all";
|
|
186
198
|
create: "create";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../src/access/policy/payload.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../src/access/policy/payload.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,IAAI,WAAW,CAAC;AAC7B,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AAEvC,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKlB,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"}
|