@synnaxlabs/client 0.38.1 → 0.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +7 -7
- package/dist/access/payload.d.ts +6 -6
- package/dist/access/payload.d.ts.map +1 -1
- package/dist/access/policy/client.d.ts +5 -3
- package/dist/access/policy/client.d.ts.map +1 -1
- package/dist/access/policy/external.d.ts +1 -0
- package/dist/access/policy/external.d.ts.map +1 -1
- package/dist/access/policy/ontology.d.ts +5 -0
- package/dist/access/policy/ontology.d.ts.map +1 -0
- package/dist/access/policy/payload.d.ts +86 -89
- package/dist/access/policy/payload.d.ts.map +1 -1
- package/dist/access/policy/retriever.d.ts +7 -6
- package/dist/access/policy/retriever.d.ts.map +1 -1
- package/dist/access/policy/writer.d.ts +2 -2
- package/dist/access/policy/writer.d.ts.map +1 -1
- package/dist/auth/auth.d.ts +2 -1
- package/dist/auth/auth.d.ts.map +1 -1
- package/dist/channel/client.d.ts +6 -5
- package/dist/channel/client.d.ts.map +1 -1
- package/dist/channel/payload.d.ts +13 -11
- package/dist/channel/payload.d.ts.map +1 -1
- package/dist/channel/retriever.d.ts +9 -6
- package/dist/channel/retriever.d.ts.map +1 -1
- package/dist/channel/writer.d.ts +6 -4
- package/dist/channel/writer.d.ts.map +1 -1
- package/dist/client.cjs +30 -30
- package/dist/client.d.ts +4 -2
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +3376 -3423
- package/dist/connection/checker.d.ts +5 -4
- package/dist/connection/checker.d.ts.map +1 -1
- package/dist/control/state.d.ts +10 -8
- package/dist/control/state.d.ts.map +1 -1
- package/dist/errors.d.ts +5 -0
- package/dist/errors.d.ts.map +1 -1
- package/dist/framer/adapter.d.ts +14 -15
- package/dist/framer/adapter.d.ts.map +1 -1
- package/dist/framer/client.d.ts +13 -15
- package/dist/framer/client.d.ts.map +1 -1
- package/dist/framer/deleter.d.ts +3 -2
- package/dist/framer/deleter.d.ts.map +1 -1
- package/dist/framer/frame.d.ts +31 -27
- package/dist/framer/frame.d.ts.map +1 -1
- package/dist/framer/iterator.d.ts +4 -5
- package/dist/framer/iterator.d.ts.map +1 -1
- package/dist/framer/streamer.d.ts +5 -6
- package/dist/framer/streamer.d.ts.map +1 -1
- package/dist/framer/writer.d.ts +42 -39
- package/dist/framer/writer.d.ts.map +1 -1
- package/dist/hardware/device/client.d.ts +17 -12
- package/dist/hardware/device/client.d.ts.map +1 -1
- package/dist/hardware/device/payload.d.ts +19 -16
- package/dist/hardware/device/payload.d.ts.map +1 -1
- package/dist/hardware/rack/client.d.ts +15 -15
- package/dist/hardware/rack/client.d.ts.map +1 -1
- package/dist/hardware/rack/payload.d.ts +9 -8
- package/dist/hardware/rack/payload.d.ts.map +1 -1
- package/dist/hardware/task/client.d.ts +38 -29
- package/dist/hardware/task/client.d.ts.map +1 -1
- package/dist/hardware/task/payload.d.ts +58 -53
- package/dist/hardware/task/payload.d.ts.map +1 -1
- package/dist/label/client.d.ts +4 -3
- package/dist/label/client.d.ts.map +1 -1
- package/dist/label/payload.d.ts +4 -4
- package/dist/label/payload.d.ts.map +1 -1
- package/dist/label/retriever.d.ts.map +1 -1
- package/dist/label/writer.d.ts +13 -10
- package/dist/label/writer.d.ts.map +1 -1
- package/dist/ontology/client.d.ts +12 -10
- package/dist/ontology/client.d.ts.map +1 -1
- package/dist/ontology/group/client.d.ts +5 -4
- package/dist/ontology/group/client.d.ts.map +1 -1
- package/dist/ontology/group/group.d.ts +7 -5
- package/dist/ontology/group/group.d.ts.map +1 -1
- package/dist/ontology/group/payload.d.ts +6 -5
- package/dist/ontology/group/payload.d.ts.map +1 -1
- package/dist/ontology/group/writer.d.ts +8 -8
- package/dist/ontology/group/writer.d.ts.map +1 -1
- package/dist/ontology/payload.d.ts +72 -62
- package/dist/ontology/payload.d.ts.map +1 -1
- package/dist/ontology/writer.d.ts.map +1 -1
- package/dist/ranger/alias.d.ts +9 -10
- package/dist/ranger/alias.d.ts.map +1 -1
- package/dist/ranger/client.d.ts +18 -18
- 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 +18 -14
- package/dist/ranger/kv.d.ts.map +1 -1
- package/dist/ranger/payload.d.ts +13 -13
- package/dist/ranger/payload.d.ts.map +1 -1
- package/dist/ranger/writer.d.ts +14 -14
- package/dist/ranger/writer.d.ts.map +1 -1
- package/dist/setupspecs.d.ts.map +1 -1
- package/dist/signals/observable.d.ts +3 -1
- package/dist/signals/observable.d.ts.map +1 -1
- package/dist/user/client.d.ts +5 -3
- package/dist/user/client.d.ts.map +1 -1
- package/dist/user/payload.d.ts +7 -6
- package/dist/user/payload.d.ts.map +1 -1
- package/dist/user/retriever.d.ts +2 -1
- package/dist/user/retriever.d.ts.map +1 -1
- package/dist/user/writer.d.ts +2 -2
- package/dist/user/writer.d.ts.map +1 -1
- package/dist/util/decodeJSONString.d.ts +3 -0
- package/dist/util/decodeJSONString.d.ts.map +1 -0
- package/dist/util/parseWithoutKeyConversion.d.ts +3 -0
- package/dist/util/parseWithoutKeyConversion.d.ts.map +1 -0
- package/dist/util/retrieve.d.ts +1 -1
- package/dist/util/retrieve.d.ts.map +1 -1
- package/dist/util/telem.d.ts.map +1 -1
- package/dist/util/zod.d.ts.map +1 -1
- package/dist/workspace/client.d.ts +6 -60
- package/dist/workspace/client.d.ts.map +1 -1
- package/dist/workspace/external.d.ts +3 -0
- package/dist/workspace/external.d.ts.map +1 -0
- package/dist/workspace/index.d.ts +1 -1
- package/dist/workspace/index.d.ts.map +1 -1
- package/dist/workspace/lineplot/client.d.ts +5 -44
- package/dist/workspace/lineplot/client.d.ts.map +1 -1
- package/dist/workspace/lineplot/external.d.ts +3 -0
- package/dist/workspace/lineplot/external.d.ts.map +1 -0
- package/dist/workspace/lineplot/index.d.ts +1 -1
- package/dist/workspace/lineplot/index.d.ts.map +1 -1
- package/dist/workspace/lineplot/payload.d.ts +45 -0
- package/dist/workspace/lineplot/payload.d.ts.map +1 -0
- package/dist/workspace/log/client.d.ts +5 -44
- package/dist/workspace/log/client.d.ts.map +1 -1
- package/dist/workspace/log/external.d.ts +3 -0
- package/dist/workspace/log/external.d.ts.map +1 -0
- package/dist/workspace/log/index.d.ts +1 -1
- package/dist/workspace/log/index.d.ts.map +1 -1
- package/dist/workspace/log/payload.d.ts +45 -0
- package/dist/workspace/log/payload.d.ts.map +1 -0
- package/dist/workspace/payload.d.ts +60 -0
- package/dist/workspace/payload.d.ts.map +1 -0
- package/dist/workspace/schematic/client.d.ts +5 -68
- package/dist/workspace/schematic/client.d.ts.map +1 -1
- package/dist/workspace/schematic/external.d.ts +3 -0
- package/dist/workspace/schematic/external.d.ts.map +1 -0
- package/dist/workspace/schematic/index.d.ts +1 -1
- package/dist/workspace/schematic/index.d.ts.map +1 -1
- package/dist/workspace/schematic/payload.d.ts +71 -0
- package/dist/workspace/schematic/payload.d.ts.map +1 -0
- package/dist/workspace/table/client.d.ts +5 -57
- package/dist/workspace/table/client.d.ts.map +1 -1
- package/dist/workspace/table/external.d.ts +3 -0
- package/dist/workspace/table/external.d.ts.map +1 -0
- package/dist/workspace/table/index.d.ts +1 -1
- package/dist/workspace/table/index.d.ts.map +1 -1
- package/dist/workspace/table/payload.d.ts +60 -0
- package/dist/workspace/table/payload.d.ts.map +1 -0
- package/examples/node/basicReadWrite.js +26 -26
- package/examples/node/liveStream.js +15 -15
- package/examples/node/seriesAndFrames.js +38 -38
- package/examples/node/streamWrite.js +47 -45
- package/package.json +15 -13
- package/src/access/payload.ts +12 -12
- package/src/access/policy/client.ts +13 -12
- package/src/access/policy/external.ts +1 -0
- package/src/access/policy/ontology.ts +17 -0
- package/src/access/policy/payload.ts +7 -19
- package/src/access/policy/policy.spec.ts +16 -16
- package/src/access/policy/retriever.ts +2 -1
- package/src/access/policy/writer.ts +4 -4
- package/src/auth/auth.spec.ts +27 -23
- package/src/auth/auth.ts +7 -11
- package/src/channel/batchRetriever.spec.ts +25 -22
- package/src/channel/client.ts +19 -21
- package/src/channel/payload.ts +16 -20
- package/src/channel/retriever.ts +20 -21
- package/src/channel/writer.ts +11 -13
- package/src/client.ts +6 -16
- package/src/connection/checker.ts +9 -11
- package/src/connection/connection.spec.ts +17 -5
- package/src/control/state.ts +8 -9
- package/src/errors.spec.ts +1 -1
- package/src/errors.ts +8 -0
- package/src/framer/adapter.spec.ts +28 -23
- package/src/framer/adapter.ts +37 -41
- package/src/framer/client.spec.ts +5 -11
- package/src/framer/client.ts +34 -38
- package/src/framer/deleter.ts +5 -6
- package/src/framer/frame.ts +62 -50
- package/src/framer/iterator.ts +11 -16
- package/src/framer/streamer.spec.ts +2 -10
- package/src/framer/streamer.ts +15 -19
- package/src/framer/writer.spec.ts +48 -7
- package/src/framer/writer.ts +39 -31
- package/src/hardware/device/client.ts +64 -39
- package/src/hardware/device/device.spec.ts +49 -33
- package/src/hardware/device/payload.ts +29 -29
- package/src/hardware/rack/client.ts +52 -65
- package/src/hardware/rack/payload.ts +9 -18
- package/src/hardware/rack/rack.spec.ts +12 -0
- package/src/hardware/task/client.ts +160 -131
- package/src/hardware/task/payload.ts +49 -68
- package/src/hardware/task/task.spec.ts +98 -81
- package/src/label/client.ts +12 -15
- package/src/label/payload.ts +3 -9
- package/src/label/retriever.ts +3 -7
- package/src/label/writer.ts +8 -15
- package/src/ontology/client.ts +17 -22
- package/src/ontology/group/client.ts +5 -5
- package/src/ontology/group/group.spec.ts +4 -4
- package/src/ontology/group/group.ts +10 -7
- package/src/ontology/group/payload.ts +11 -35
- package/src/ontology/group/writer.ts +22 -26
- package/src/ontology/ontology.spec.ts +15 -15
- package/src/ontology/payload.ts +67 -43
- package/src/ontology/writer.ts +16 -23
- package/src/ranger/alias.ts +25 -42
- package/src/ranger/client.ts +29 -38
- package/src/ranger/external.ts +1 -1
- package/src/ranger/kv.ts +9 -32
- package/src/ranger/payload.ts +14 -36
- package/src/ranger/ranger.spec.ts +1 -2
- package/src/ranger/writer.ts +8 -26
- package/src/signals/observable.ts +3 -4
- package/src/user/client.ts +8 -4
- package/src/user/payload.ts +5 -9
- package/src/user/retriever.ts +1 -1
- package/src/user/user.spec.ts +17 -15
- package/src/user/writer.ts +3 -10
- package/src/util/decodeJSONString.ts +13 -0
- package/src/util/parseWithoutKeyConversion.ts +19 -0
- package/src/util/retrieve.spec.ts +3 -13
- package/src/util/retrieve.ts +2 -12
- package/src/util/telem.ts +1 -1
- package/src/vite-env.d.ts +1 -0
- package/src/workspace/client.ts +30 -57
- package/src/workspace/external.ts +11 -0
- package/src/workspace/index.ts +1 -1
- package/src/workspace/lineplot/client.ts +22 -36
- package/src/workspace/lineplot/external.ts +11 -0
- package/src/workspace/lineplot/index.ts +1 -1
- package/src/workspace/lineplot/linePlot.spec.ts +1 -2
- package/src/workspace/lineplot/payload.ts +32 -0
- package/src/workspace/log/client.ts +25 -39
- package/src/workspace/log/external.ts +11 -0
- package/src/workspace/log/index.ts +1 -1
- package/src/workspace/log/log.spec.ts +5 -18
- package/src/workspace/log/payload.ts +32 -0
- package/src/workspace/payload.ts +36 -0
- package/src/workspace/schematic/client.ts +30 -56
- package/src/workspace/schematic/external.ts +11 -0
- package/src/workspace/schematic/index.ts +1 -1
- package/src/workspace/schematic/payload.ts +37 -0
- package/src/workspace/schematic/schematic.spec.ts +15 -6
- package/src/workspace/table/client.ts +27 -50
- package/src/workspace/table/external.ts +11 -0
- package/src/workspace/table/index.ts +1 -1
- package/src/workspace/table/payload.ts +36 -0
- package/src/workspace/workspace.spec.ts +1 -2
- package/dist/channel/creator.d.ts +0 -9
- package/dist/channel/creator.d.ts.map +0 -1
- package/src/channel/creator.ts +0 -37
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
|
|
2
|
-
> @synnaxlabs/client@0.
|
|
2
|
+
> @synnaxlabs/client@0.39.0 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 v6.
|
|
6
|
+
[36mvite v6.2.1 [32mbuilding for production...[36m[39m
|
|
7
7
|
transforming...
|
|
8
|
-
[32m✓[39m
|
|
8
|
+
[32m✓[39m 146 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[2m304.60 kB[22m[1m[22m[2m │ gzip: 71.01 kB[22m
|
|
14
|
+
[vite:dts] Declaration files built in 4407ms.
|
|
15
15
|
|
|
16
|
-
[2mdist/[22m[36mclient.cjs [39m[1m[
|
|
17
|
-
[32m✓ built in 5.
|
|
16
|
+
[2mdist/[22m[36mclient.cjs [39m[1m[2m193.89 kB[22m[1m[22m[2m │ gzip: 53.21 kB[22m
|
|
17
|
+
[32m✓ built in 5.36s[39m
|
package/dist/access/payload.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const ALL_ACTION = "all";
|
|
3
|
+
export declare const CREATE_ACTION = "create";
|
|
4
|
+
export declare const DELETE_ACTION = "delete";
|
|
5
|
+
export declare const RETRIEVE_ACTION = "retrieve";
|
|
6
|
+
export declare const UPDATE_ACTION = "update";
|
|
7
|
+
export declare const actionZ: z.ZodEnum<["all", "create", "delete", "retrieve", "update"]>;
|
|
3
8
|
export type Action = z.infer<typeof actionZ>;
|
|
4
|
-
export declare const ALL_ACTION: Action;
|
|
5
|
-
export declare const CREATE_ACTION: Action;
|
|
6
|
-
export declare const DELETE_ACTION: Action;
|
|
7
|
-
export declare const RETRIEVE_ACTION: Action;
|
|
8
|
-
export declare const UPDATE_ACTION: Action;
|
|
9
9
|
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,8DAMlB,CAAC;AACH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { UnaryClient } from '@synnaxlabs/freighter';
|
|
2
|
-
import { Key,
|
|
2
|
+
import { Key, New, Policy } from './payload';
|
|
3
3
|
import { ontology } from '../../ontology';
|
|
4
4
|
export declare class Client {
|
|
5
5
|
private readonly retriever;
|
|
6
6
|
private readonly writer;
|
|
7
7
|
constructor(client: UnaryClient);
|
|
8
|
-
create(policy:
|
|
9
|
-
create(policies:
|
|
8
|
+
create(policy: New): Promise<Policy>;
|
|
9
|
+
create(policies: New[]): Promise<Policy[]>;
|
|
10
10
|
retrieve(key: Key): Promise<Policy>;
|
|
11
11
|
retrieve(keys: Key[]): Promise<Policy[]>;
|
|
12
12
|
retrieveFor(subject: ontology.CrudeID): Promise<Policy[]>;
|
|
@@ -14,4 +14,6 @@ export declare class Client {
|
|
|
14
14
|
delete(key: Key): Promise<void>;
|
|
15
15
|
delete(keys: Key[]): Promise<void>;
|
|
16
16
|
}
|
|
17
|
+
export declare const ontologyID: (key: Key) => ontology.ID;
|
|
18
|
+
export declare const ALLOW_ALL_ONTOLOGY_ID: ontology.ID;
|
|
17
19
|
//# 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,EAAE,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/access/policy/client.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAIzD,OAAO,EAAE,KAAK,GAAG,EAAE,KAAK,GAAG,EAAE,KAAK,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAG1E,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,qBAAa,MAAM;IACjB,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAY;IACtC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;gBAEpB,MAAM,EAAE,WAAW;IAKzB,MAAM,CAAC,MAAM,EAAE,GAAG,GAAG,OAAO,CAAC,MAAM,CAAC;IACpC,MAAM,CAAC,QAAQ,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAO1C,QAAQ,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,MAAM,CAAC;IACnC,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAOxC,WAAW,CAAC,OAAO,EAAE,QAAQ,CAAC,OAAO,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IACzD,WAAW,CAAC,QAAQ,EAAE,QAAQ,CAAC,OAAO,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAQ5D,MAAM,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC;IAC/B,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAIzC;AAED,eAAO,MAAM,UAAU,GAAI,KAAK,GAAG,KAAG,QAAQ,CAAC,EACA,CAAC;AAEhD,eAAO,MAAM,qBAAqB,aAGhC,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,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../src/access/policy/external.ts"],"names":[],"mappings":"AASA,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ontology.d.ts","sourceRoot":"","sources":["../../../src/access/policy/ontology.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,aAAa,WAAW,CAAC;AACtC,MAAM,MAAM,YAAY,GAAG,OAAO,aAAa,CAAC;AAEhD,eAAO,MAAM,uBAAuB,cAAc,CAAC;AACnD,MAAM,MAAM,oBAAoB,GAAG,OAAO,uBAAuB,CAAC"}
|
|
@@ -1,163 +1,160 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { ontology } from '../../ontology';
|
|
3
2
|
export declare const keyZ: z.ZodString;
|
|
4
3
|
export type Key = z.infer<typeof keyZ>;
|
|
5
|
-
export declare const
|
|
4
|
+
export declare const policyZ: z.ZodObject<{
|
|
5
|
+
key: z.ZodString;
|
|
6
|
+
subjects: z.ZodUnion<[z.ZodEffects<z.ZodUnion<[z.ZodNull, z.ZodUndefined]>, {
|
|
7
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
8
|
+
key: string;
|
|
9
|
+
}[], null | undefined>, z.ZodArray<z.ZodObject<{
|
|
10
|
+
type: z.ZodEnum<["label", "log", "allow_all", "builtin", "cluster", "channel", "node", "group", "range", "framer", "range-alias", "user", "workspace", "schematic", "lineplot", "rack", "device", "task", "policy", "table"]>;
|
|
11
|
+
key: z.ZodString;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
14
|
+
key: string;
|
|
15
|
+
}, {
|
|
16
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
17
|
+
key: string;
|
|
18
|
+
}>, "many">]>;
|
|
19
|
+
objects: z.ZodUnion<[z.ZodEffects<z.ZodUnion<[z.ZodNull, z.ZodUndefined]>, {
|
|
20
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
21
|
+
key: string;
|
|
22
|
+
}[], null | undefined>, z.ZodArray<z.ZodObject<{
|
|
23
|
+
type: z.ZodEnum<["label", "log", "allow_all", "builtin", "cluster", "channel", "node", "group", "range", "framer", "range-alias", "user", "workspace", "schematic", "lineplot", "rack", "device", "task", "policy", "table"]>;
|
|
24
|
+
key: z.ZodString;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
27
|
+
key: string;
|
|
28
|
+
}, {
|
|
29
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
30
|
+
key: string;
|
|
31
|
+
}>, "many">]>;
|
|
32
|
+
actions: z.ZodUnion<[z.ZodEffects<z.ZodUnion<[z.ZodNull, z.ZodUndefined]>, ("all" | "create" | "delete" | "retrieve" | "update")[], null | undefined>, z.ZodArray<z.ZodEnum<["all", "create", "delete", "retrieve", "update"]>, "many">]>;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
key: string;
|
|
35
|
+
subjects: {
|
|
36
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
37
|
+
key: string;
|
|
38
|
+
}[];
|
|
39
|
+
objects: {
|
|
40
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
41
|
+
key: string;
|
|
42
|
+
}[];
|
|
43
|
+
actions: ("all" | "create" | "delete" | "retrieve" | "update")[];
|
|
44
|
+
}, {
|
|
45
|
+
key: string;
|
|
46
|
+
subjects?: {
|
|
47
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
48
|
+
key: string;
|
|
49
|
+
}[] | null | undefined;
|
|
50
|
+
objects?: {
|
|
51
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
52
|
+
key: string;
|
|
53
|
+
}[] | null | undefined;
|
|
54
|
+
actions?: ("all" | "create" | "delete" | "retrieve" | "update")[] | null | undefined;
|
|
55
|
+
}>;
|
|
56
|
+
export interface Policy extends z.infer<typeof policyZ> {
|
|
57
|
+
}
|
|
58
|
+
export declare const newZ: z.ZodObject<{
|
|
6
59
|
key: z.ZodOptional<z.ZodString>;
|
|
7
60
|
subjects: z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
8
|
-
type: "
|
|
61
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
9
62
|
key: string;
|
|
10
63
|
}, string>, z.ZodObject<{
|
|
11
|
-
type: z.
|
|
64
|
+
type: z.ZodEnum<["label", "log", "allow_all", "builtin", "cluster", "channel", "node", "group", "range", "framer", "range-alias", "user", "workspace", "schematic", "lineplot", "rack", "device", "task", "policy", "table"]>;
|
|
12
65
|
key: z.ZodString;
|
|
13
66
|
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
type: "
|
|
67
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
15
68
|
key: string;
|
|
16
69
|
}, {
|
|
17
|
-
type: "
|
|
70
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
18
71
|
key: string;
|
|
19
72
|
}>]>, "many">, z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
20
|
-
type: "
|
|
73
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
21
74
|
key: string;
|
|
22
75
|
}, string>, z.ZodObject<{
|
|
23
|
-
type: z.
|
|
76
|
+
type: z.ZodEnum<["label", "log", "allow_all", "builtin", "cluster", "channel", "node", "group", "range", "framer", "range-alias", "user", "workspace", "schematic", "lineplot", "rack", "device", "task", "policy", "table"]>;
|
|
24
77
|
key: z.ZodString;
|
|
25
78
|
}, "strip", z.ZodTypeAny, {
|
|
26
|
-
type: "
|
|
79
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
27
80
|
key: string;
|
|
28
81
|
}, {
|
|
29
|
-
type: "
|
|
82
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
30
83
|
key: string;
|
|
31
84
|
}>]>]>;
|
|
32
85
|
objects: z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
33
|
-
type: "
|
|
86
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
34
87
|
key: string;
|
|
35
88
|
}, string>, z.ZodObject<{
|
|
36
|
-
type: z.
|
|
89
|
+
type: z.ZodEnum<["label", "log", "allow_all", "builtin", "cluster", "channel", "node", "group", "range", "framer", "range-alias", "user", "workspace", "schematic", "lineplot", "rack", "device", "task", "policy", "table"]>;
|
|
37
90
|
key: z.ZodString;
|
|
38
91
|
}, "strip", z.ZodTypeAny, {
|
|
39
|
-
type: "
|
|
92
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
40
93
|
key: string;
|
|
41
94
|
}, {
|
|
42
|
-
type: "
|
|
95
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
43
96
|
key: string;
|
|
44
97
|
}>]>, "many">, z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
45
|
-
type: "
|
|
98
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
46
99
|
key: string;
|
|
47
100
|
}, string>, z.ZodObject<{
|
|
48
|
-
type: z.
|
|
101
|
+
type: z.ZodEnum<["label", "log", "allow_all", "builtin", "cluster", "channel", "node", "group", "range", "framer", "range-alias", "user", "workspace", "schematic", "lineplot", "rack", "device", "task", "policy", "table"]>;
|
|
49
102
|
key: z.ZodString;
|
|
50
103
|
}, "strip", z.ZodTypeAny, {
|
|
51
|
-
type: "
|
|
104
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
52
105
|
key: string;
|
|
53
106
|
}, {
|
|
54
|
-
type: "
|
|
107
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
55
108
|
key: string;
|
|
56
109
|
}>]>]>;
|
|
57
|
-
actions: z.ZodUnion<[z.ZodArray<z.
|
|
110
|
+
actions: z.ZodUnion<[z.ZodArray<z.ZodEnum<["all", "create", "delete", "retrieve", "update"]>, "many">, z.ZodEnum<["all", "create", "delete", "retrieve", "update"]>]>;
|
|
58
111
|
}, "strip", z.ZodTypeAny, {
|
|
59
112
|
subjects: {
|
|
60
|
-
type: "
|
|
113
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
61
114
|
key: string;
|
|
62
115
|
} | {
|
|
63
|
-
type: "
|
|
116
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
64
117
|
key: string;
|
|
65
118
|
} | ({
|
|
66
|
-
type: "
|
|
119
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
67
120
|
key: string;
|
|
68
121
|
} | {
|
|
69
|
-
type: "
|
|
122
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
70
123
|
key: string;
|
|
71
124
|
})[];
|
|
72
125
|
objects: {
|
|
73
|
-
type: "
|
|
126
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
74
127
|
key: string;
|
|
75
128
|
} | {
|
|
76
|
-
type: "
|
|
129
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
77
130
|
key: string;
|
|
78
131
|
} | ({
|
|
79
|
-
type: "
|
|
132
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
80
133
|
key: string;
|
|
81
134
|
} | {
|
|
82
|
-
type: "
|
|
135
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
83
136
|
key: string;
|
|
84
137
|
})[];
|
|
85
138
|
actions: "all" | "create" | "delete" | "retrieve" | "update" | ("all" | "create" | "delete" | "retrieve" | "update")[];
|
|
86
139
|
key?: string | undefined;
|
|
87
140
|
}, {
|
|
88
141
|
subjects: string | {
|
|
89
|
-
type: "
|
|
142
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
90
143
|
key: string;
|
|
91
144
|
} | (string | {
|
|
92
|
-
type: "
|
|
145
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
93
146
|
key: string;
|
|
94
147
|
})[];
|
|
95
148
|
objects: string | {
|
|
96
|
-
type: "
|
|
149
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
97
150
|
key: string;
|
|
98
151
|
} | (string | {
|
|
99
|
-
type: "
|
|
152
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
100
153
|
key: string;
|
|
101
154
|
})[];
|
|
102
155
|
actions: "all" | "create" | "delete" | "retrieve" | "update" | ("all" | "create" | "delete" | "retrieve" | "update")[];
|
|
103
156
|
key?: string | undefined;
|
|
104
157
|
}>;
|
|
105
|
-
export
|
|
106
|
-
|
|
107
|
-
key: z.ZodString;
|
|
108
|
-
subjects: z.ZodUnion<[z.ZodEffects<z.ZodUnion<[z.ZodNull, z.ZodUndefined]>, {
|
|
109
|
-
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
110
|
-
key: string;
|
|
111
|
-
}[], null | undefined>, z.ZodArray<z.ZodObject<{
|
|
112
|
-
type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"log">, z.ZodLiteral<"allow_all">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"framer">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"schematic">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">, z.ZodLiteral<"device">, z.ZodLiteral<"task">, z.ZodLiteral<"policy">, z.ZodLiteral<"table">]>;
|
|
113
|
-
key: z.ZodString;
|
|
114
|
-
}, "strip", z.ZodTypeAny, {
|
|
115
|
-
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
116
|
-
key: string;
|
|
117
|
-
}, {
|
|
118
|
-
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
119
|
-
key: string;
|
|
120
|
-
}>, "many">]>;
|
|
121
|
-
objects: z.ZodUnion<[z.ZodEffects<z.ZodUnion<[z.ZodNull, z.ZodUndefined]>, {
|
|
122
|
-
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
123
|
-
key: string;
|
|
124
|
-
}[], null | undefined>, z.ZodArray<z.ZodObject<{
|
|
125
|
-
type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"log">, z.ZodLiteral<"allow_all">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"framer">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"schematic">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">, z.ZodLiteral<"device">, z.ZodLiteral<"task">, z.ZodLiteral<"policy">, z.ZodLiteral<"table">]>;
|
|
126
|
-
key: z.ZodString;
|
|
127
|
-
}, "strip", z.ZodTypeAny, {
|
|
128
|
-
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
129
|
-
key: string;
|
|
130
|
-
}, {
|
|
131
|
-
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
132
|
-
key: string;
|
|
133
|
-
}>, "many">]>;
|
|
134
|
-
actions: z.ZodUnion<[z.ZodEffects<z.ZodUnion<[z.ZodNull, z.ZodUndefined]>, ("all" | "create" | "delete" | "retrieve" | "update")[], null | undefined>, z.ZodArray<z.ZodUnion<[z.ZodLiteral<"all">, z.ZodLiteral<"create">, z.ZodLiteral<"delete">, z.ZodLiteral<"retrieve">, z.ZodLiteral<"update">]>, "many">]>;
|
|
135
|
-
}, "strip", z.ZodTypeAny, {
|
|
136
|
-
key: string;
|
|
137
|
-
subjects: {
|
|
138
|
-
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
139
|
-
key: string;
|
|
140
|
-
}[];
|
|
141
|
-
objects: {
|
|
142
|
-
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
143
|
-
key: string;
|
|
144
|
-
}[];
|
|
145
|
-
actions: ("all" | "create" | "delete" | "retrieve" | "update")[];
|
|
146
|
-
}, {
|
|
147
|
-
key: string;
|
|
148
|
-
subjects?: {
|
|
149
|
-
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
150
|
-
key: string;
|
|
151
|
-
}[] | null | undefined;
|
|
152
|
-
objects?: {
|
|
153
|
-
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
154
|
-
key: string;
|
|
155
|
-
}[] | null | undefined;
|
|
156
|
-
actions?: ("all" | "create" | "delete" | "retrieve" | "update")[] | null | undefined;
|
|
157
|
-
}>;
|
|
158
|
-
export type Policy = z.infer<typeof policyZ>;
|
|
159
|
-
export declare const ONTOLOGY_TYPE: ontology.ResourceType;
|
|
160
|
-
export declare const ontologyID: (key: Key) => ontology.ID;
|
|
161
|
-
export declare const ALLOW_ALL_ONTOLOGY_TYPE: ontology.ResourceType;
|
|
162
|
-
export declare const ALLOW_ALL_ONTOLOGY_ID: ontology.ID;
|
|
158
|
+
export interface New extends z.input<typeof newZ> {
|
|
159
|
+
}
|
|
163
160
|
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../src/access/policy/payload.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
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,aAAoB,CAAC;AACtC,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AAEvC,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKlB,CAAC;AACH,MAAM,WAAW,MAAO,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC;CAAG;AAE1D,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKf,CAAC;AACH,MAAM,WAAW,GAAI,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC;CAAG"}
|
|
@@ -4,29 +4,30 @@ import { Policy } from './payload';
|
|
|
4
4
|
declare const reqZ: z.ZodObject<{
|
|
5
5
|
keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6
6
|
subjects: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
7
|
-
type: z.
|
|
7
|
+
type: z.ZodEnum<["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: z.ZodString;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
type: "
|
|
10
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
11
11
|
key: string;
|
|
12
12
|
}, {
|
|
13
|
-
type: "
|
|
13
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
14
14
|
key: string;
|
|
15
15
|
}>, "many">>;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
17
|
keys?: string[] | undefined;
|
|
18
18
|
subjects?: {
|
|
19
|
-
type: "
|
|
19
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
20
20
|
key: string;
|
|
21
21
|
}[] | undefined;
|
|
22
22
|
}, {
|
|
23
23
|
keys?: string[] | undefined;
|
|
24
24
|
subjects?: {
|
|
25
|
-
type: "
|
|
25
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
26
26
|
key: string;
|
|
27
27
|
}[] | undefined;
|
|
28
28
|
}>;
|
|
29
|
-
|
|
29
|
+
interface Request extends z.infer<typeof reqZ> {
|
|
30
|
+
}
|
|
30
31
|
export declare class Retriever {
|
|
31
32
|
private readonly client;
|
|
32
33
|
constructor(client: UnaryClient);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retriever.d.ts","sourceRoot":"","sources":["../../../src/access/policy/retriever.ts"],"names":[],"mappings":"AASA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAQ,KAAK,MAAM,EAAW,MAAM,yBAAyB,CAAC;AAIrE,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;EAGR,CAAC;AACH,
|
|
1
|
+
{"version":3,"file":"retriever.d.ts","sourceRoot":"","sources":["../../../src/access/policy/retriever.ts"],"names":[],"mappings":"AASA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAQ,KAAK,MAAM,EAAW,MAAM,yBAAyB,CAAC;AAIrE,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;EAGR,CAAC;AACH,UAAU,OAAQ,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC;CAAG;AAMjD,qBAAa,SAAS;IACpB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAc;gBAEzB,MAAM,EAAE,WAAW;IAIzB,QAAQ,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;CAUhD"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { UnaryClient } from '@synnaxlabs/freighter';
|
|
2
|
-
import { Key,
|
|
2
|
+
import { Key, New, Policy } from './payload';
|
|
3
3
|
export declare class Writer {
|
|
4
4
|
private readonly client;
|
|
5
5
|
constructor(client: UnaryClient);
|
|
6
|
-
create(policies:
|
|
6
|
+
create(policies: New | New[]): Promise<Policy[]>;
|
|
7
7
|
delete(keys: Key | Key[]): Promise<void>;
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=writer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writer.d.ts","sourceRoot":"","sources":["../../../src/access/policy/writer.ts"],"names":[],"mappings":"AASA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAIvE,OAAO,EACL,KAAK,GAAG,EAER,KAAK,
|
|
1
|
+
{"version":3,"file":"writer.d.ts","sourceRoot":"","sources":["../../../src/access/policy/writer.ts"],"names":[],"mappings":"AASA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAIvE,OAAO,EACL,KAAK,GAAG,EAER,KAAK,GAAG,EAER,KAAK,MAAM,EAEZ,MAAM,yBAAyB,CAAC;AAWjC,qBAAa,MAAM;IACjB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAc;gBAEzB,MAAM,EAAE,WAAW;IAIzB,MAAM,CAAC,QAAQ,EAAE,GAAG,GAAG,GAAG,EAAE,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAiBhD,MAAM,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAS/C"}
|
package/dist/auth/auth.d.ts
CHANGED
|
@@ -11,7 +11,8 @@ declare const insecureCredentialsZ: z.ZodObject<{
|
|
|
11
11
|
username: string;
|
|
12
12
|
password: string;
|
|
13
13
|
}>;
|
|
14
|
-
|
|
14
|
+
interface InsecureCredentials extends z.infer<typeof insecureCredentialsZ> {
|
|
15
|
+
}
|
|
15
16
|
export declare class Client {
|
|
16
17
|
token: string | undefined;
|
|
17
18
|
private readonly client;
|
package/dist/auth/auth.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/auth/auth.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,UAAU,EAAgB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACxF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,QAAA,MAAM,oBAAoB;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/auth/auth.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,UAAU,EAAgB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACxF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,QAAA,MAAM,oBAAoB;;;;;;;;;EAA2D,CAAC;AACtF,UAAU,mBAAoB,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC;CAAG;AAmB7E,qBAAa,MAAM;IACjB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAc;IACrC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAsB;IAClD,cAAc,EAAE,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,SAAS,CAAC;IAClD,aAAa,EAAE,OAAO,CAAC;IACvB,IAAI,EAAE,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC;IAC5B,OAAO,CAAC,UAAU,CAAS;gBAEf,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,mBAAmB;IAO3D,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAgBxD,UAAU,IAAI,UAAU;CAoCzB"}
|
package/dist/channel/client.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UnaryClient } from '@synnaxlabs/freighter';
|
|
2
2
|
import { AsyncTermSearcher } from '@synnaxlabs/x/search';
|
|
3
3
|
import { CrudeDensity, CrudeTimeStamp, DataType, MultiSeries, Rate, TimeRange, TypedArray } from '@synnaxlabs/x/telem';
|
|
4
|
-
import { Key, KeyOrName,
|
|
4
|
+
import { Key, KeyOrName, Name, New, Params, Payload } from './payload';
|
|
5
5
|
import { RetrieveOptions, Retriever } from './retriever';
|
|
6
6
|
import { Writer } from './writer';
|
|
7
7
|
import { framer } from '../framer';
|
|
@@ -30,7 +30,7 @@ export declare class Channel {
|
|
|
30
30
|
* A human-readable name for the channel. This name is not guaranteed to be
|
|
31
31
|
* unique.
|
|
32
32
|
*/
|
|
33
|
-
readonly name:
|
|
33
|
+
readonly name: Name;
|
|
34
34
|
/**
|
|
35
35
|
* The rate at which the channel samples telemetry. This only applies to fixed rate
|
|
36
36
|
* channels, and will be 0 if the channel is indexed.
|
|
@@ -78,7 +78,7 @@ export declare class Channel {
|
|
|
78
78
|
* Only used for calculated channels. Specifies the channels required for calculation
|
|
79
79
|
*/
|
|
80
80
|
readonly requires: Key[];
|
|
81
|
-
constructor({ dataType, rate, name, leaseholder, key, isIndex, index, internal, virtual, frameClient, alias, expression, requires, }:
|
|
81
|
+
constructor({ dataType, rate, name, leaseholder, key, isIndex, index, internal, virtual, frameClient, alias, expression, requires, }: New & {
|
|
82
82
|
frameClient?: framer.Client;
|
|
83
83
|
density?: CrudeDensity;
|
|
84
84
|
});
|
|
@@ -157,7 +157,7 @@ export declare class Client implements AsyncTermSearcher<string, Key, Channel> {
|
|
|
157
157
|
* });
|
|
158
158
|
* ```
|
|
159
159
|
*/
|
|
160
|
-
create(channel:
|
|
160
|
+
create(channel: New, options?: CreateOptions): Promise<Channel>;
|
|
161
161
|
/**
|
|
162
162
|
* Creates multiple channels with the given properties. The order of the channels
|
|
163
163
|
* returned is guaranteed to match the order of the channels passed in.
|
|
@@ -181,7 +181,7 @@ export declare class Client implements AsyncTermSearcher<string, Key, Channel> {
|
|
|
181
181
|
*
|
|
182
182
|
* @param channels
|
|
183
183
|
*/
|
|
184
|
-
create(channels:
|
|
184
|
+
create(channels: New[], options?: CreateOptions): Promise<Channel[]>;
|
|
185
185
|
/**
|
|
186
186
|
* Retrieves a channel from the database using the given key or name.
|
|
187
187
|
*
|
|
@@ -234,5 +234,6 @@ export declare class Client implements AsyncTermSearcher<string, Key, Channel> {
|
|
|
234
234
|
}
|
|
235
235
|
export declare const isCalculated: ({ virtual, expression }: Payload) => boolean;
|
|
236
236
|
export declare const resolveCalculatedIndex: (retrieve: (key: Key) => Promise<Payload | null>, channel: Payload) => Promise<Key | null>;
|
|
237
|
+
export declare const ontologyID: (key: Key) => ontology.ID;
|
|
237
238
|
export {};
|
|
238
239
|
//# sourceMappingURL=client.d.ts.map
|