@synnaxlabs/client 0.38.1 → 0.40.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 +3387 -3433
- 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 +20 -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 +67 -39
- package/src/hardware/device/device.spec.ts +91 -33
- package/src/hardware/device/payload.ts +29 -28
- 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
|
@@ -1,42 +1,47 @@
|
|
|
1
1
|
import { change, UnknownRecord } from '@synnaxlabs/x';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export type ResourceChange = change.Change<ID, Resource>;
|
|
4
|
-
export
|
|
5
|
-
|
|
4
|
+
export interface ResourceSet extends change.Set<ID, Resource> {
|
|
5
|
+
}
|
|
6
|
+
export interface ResourceDelete extends change.Delete<ID, Resource> {
|
|
7
|
+
}
|
|
6
8
|
export type RelationshipChange = change.Change<Relationship, undefined>;
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
export
|
|
9
|
+
export interface RelationshipSet extends change.Set<Relationship, undefined> {
|
|
10
|
+
}
|
|
11
|
+
export interface RelationshipDelete extends change.Delete<Relationship, undefined> {
|
|
12
|
+
}
|
|
13
|
+
export declare const BUILTIN_TYPE = "builtin";
|
|
14
|
+
export declare const CLUSTER_TYPE = "cluster";
|
|
15
|
+
export declare const NODE_TYPE = "node";
|
|
16
|
+
export declare const resourceTypeZ: z.ZodEnum<["label", "log", "allow_all", "builtin", "cluster", "channel", "node", "group", "range", "framer", "range-alias", "user", "workspace", "schematic", "lineplot", "rack", "device", "task", "policy", "table"]>;
|
|
10
17
|
export type ResourceType = z.infer<typeof resourceTypeZ>;
|
|
11
|
-
export declare const BUILTIN_TYPE: ResourceType;
|
|
12
|
-
export declare const CLUSTER_TYPE: ResourceType;
|
|
13
|
-
export declare const NODE_TYPE: ResourceType;
|
|
14
18
|
export declare const idZ: z.ZodObject<{
|
|
15
|
-
type: z.
|
|
19
|
+
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"]>;
|
|
16
20
|
key: z.ZodString;
|
|
17
21
|
}, "strip", z.ZodTypeAny, {
|
|
18
|
-
type: "
|
|
22
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
19
23
|
key: string;
|
|
20
24
|
}, {
|
|
21
|
-
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";
|
|
22
26
|
key: string;
|
|
23
27
|
}>;
|
|
24
|
-
export
|
|
28
|
+
export interface IDPayload extends z.infer<typeof idZ> {
|
|
29
|
+
}
|
|
25
30
|
export declare const stringIDZ: z.ZodEffects<z.ZodString, {
|
|
26
|
-
type: "
|
|
31
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
27
32
|
key: string;
|
|
28
33
|
}, string>;
|
|
29
34
|
export declare const crudeIDZ: z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
30
|
-
type: "
|
|
35
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
31
36
|
key: string;
|
|
32
37
|
}, string>, z.ZodObject<{
|
|
33
|
-
type: z.
|
|
38
|
+
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"]>;
|
|
34
39
|
key: z.ZodString;
|
|
35
40
|
}, "strip", z.ZodTypeAny, {
|
|
36
|
-
type: "
|
|
41
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
37
42
|
key: string;
|
|
38
43
|
}, {
|
|
39
|
-
type: "
|
|
44
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
40
45
|
key: string;
|
|
41
46
|
}>]>;
|
|
42
47
|
export type CrudeID = z.input<typeof crudeIDZ>;
|
|
@@ -49,23 +54,23 @@ export declare class ID {
|
|
|
49
54
|
matchesType(type: ResourceType): boolean;
|
|
50
55
|
get payload(): IDPayload;
|
|
51
56
|
static readonly z: z.ZodUnion<[z.ZodType<ID, z.ZodTypeDef, ID>, z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
52
|
-
type: "
|
|
57
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
53
58
|
key: string;
|
|
54
59
|
}, string>, z.ZodObject<{
|
|
55
|
-
type: z.
|
|
60
|
+
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"]>;
|
|
56
61
|
key: z.ZodString;
|
|
57
62
|
}, "strip", z.ZodTypeAny, {
|
|
58
|
-
type: "
|
|
63
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
59
64
|
key: string;
|
|
60
65
|
}, {
|
|
61
|
-
type: "
|
|
66
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
62
67
|
key: string;
|
|
63
68
|
}>]>, ID, string | {
|
|
64
|
-
type: "
|
|
69
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
65
70
|
key: string;
|
|
66
71
|
}>]>;
|
|
67
72
|
}
|
|
68
|
-
export declare const
|
|
73
|
+
export declare const ROOT_ID: ID;
|
|
69
74
|
export declare const schemaFieldZ: z.ZodObject<{
|
|
70
75
|
type: z.ZodNumber;
|
|
71
76
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -73,9 +78,10 @@ export declare const schemaFieldZ: z.ZodObject<{
|
|
|
73
78
|
}, {
|
|
74
79
|
type: number;
|
|
75
80
|
}>;
|
|
76
|
-
export
|
|
81
|
+
export interface SchemaField extends z.infer<typeof schemaFieldZ> {
|
|
82
|
+
}
|
|
77
83
|
export declare const schemaZ: z.ZodObject<{
|
|
78
|
-
type: z.
|
|
84
|
+
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"]>;
|
|
79
85
|
fields: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
80
86
|
type: z.ZodNumber;
|
|
81
87
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -84,37 +90,38 @@ export declare const schemaZ: z.ZodObject<{
|
|
|
84
90
|
type: number;
|
|
85
91
|
}>>;
|
|
86
92
|
}, "strip", z.ZodTypeAny, {
|
|
87
|
-
type: "
|
|
93
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
88
94
|
fields: Record<string, {
|
|
89
95
|
type: number;
|
|
90
96
|
}>;
|
|
91
97
|
}, {
|
|
92
|
-
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";
|
|
93
99
|
fields: Record<string, {
|
|
94
100
|
type: number;
|
|
95
101
|
}>;
|
|
96
102
|
}>;
|
|
97
|
-
export
|
|
98
|
-
|
|
103
|
+
export interface Schema extends z.infer<typeof schemaZ> {
|
|
104
|
+
}
|
|
105
|
+
export declare const resourceZ: z.ZodEffects<z.ZodObject<{
|
|
99
106
|
id: z.ZodUnion<[z.ZodType<ID, z.ZodTypeDef, ID>, z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
100
|
-
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";
|
|
101
108
|
key: string;
|
|
102
109
|
}, string>, z.ZodObject<{
|
|
103
|
-
type: z.
|
|
110
|
+
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"]>;
|
|
104
111
|
key: z.ZodString;
|
|
105
112
|
}, "strip", z.ZodTypeAny, {
|
|
106
|
-
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";
|
|
107
114
|
key: string;
|
|
108
115
|
}, {
|
|
109
|
-
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";
|
|
110
117
|
key: string;
|
|
111
118
|
}>]>, ID, string | {
|
|
112
|
-
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";
|
|
113
120
|
key: string;
|
|
114
121
|
}>]>;
|
|
115
122
|
name: z.ZodString;
|
|
116
123
|
schema: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
117
|
-
type: z.
|
|
124
|
+
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"]>;
|
|
118
125
|
fields: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
119
126
|
type: z.ZodNumber;
|
|
120
127
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -123,12 +130,12 @@ export declare const resourceSchemaZ: z.ZodEffects<z.ZodObject<{
|
|
|
123
130
|
type: number;
|
|
124
131
|
}>>;
|
|
125
132
|
}, "strip", z.ZodTypeAny, {
|
|
126
|
-
type: "
|
|
133
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
127
134
|
fields: Record<string, {
|
|
128
135
|
type: number;
|
|
129
136
|
}>;
|
|
130
137
|
}, {
|
|
131
|
-
type: "
|
|
138
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
132
139
|
fields: Record<string, {
|
|
133
140
|
type: number;
|
|
134
141
|
}>;
|
|
@@ -139,7 +146,7 @@ export declare const resourceSchemaZ: z.ZodEffects<z.ZodObject<{
|
|
|
139
146
|
id: ID;
|
|
140
147
|
data?: Record<string, unknown> | null | undefined;
|
|
141
148
|
schema?: {
|
|
142
|
-
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";
|
|
143
150
|
fields: Record<string, {
|
|
144
151
|
type: number;
|
|
145
152
|
}>;
|
|
@@ -147,12 +154,12 @@ export declare const resourceSchemaZ: z.ZodEffects<z.ZodObject<{
|
|
|
147
154
|
}, {
|
|
148
155
|
name: string;
|
|
149
156
|
id: string | ID | {
|
|
150
|
-
type: "
|
|
157
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
151
158
|
key: string;
|
|
152
159
|
};
|
|
153
160
|
data?: Record<string, unknown> | null | undefined;
|
|
154
161
|
schema?: {
|
|
155
|
-
type: "
|
|
162
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
156
163
|
fields: Record<string, {
|
|
157
164
|
type: number;
|
|
158
165
|
}>;
|
|
@@ -162,7 +169,7 @@ export declare const resourceSchemaZ: z.ZodEffects<z.ZodObject<{
|
|
|
162
169
|
id: ID;
|
|
163
170
|
data?: Record<string, unknown> | null | undefined;
|
|
164
171
|
schema?: {
|
|
165
|
-
type: "
|
|
172
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
166
173
|
fields: Record<string, {
|
|
167
174
|
type: number;
|
|
168
175
|
}>;
|
|
@@ -171,70 +178,73 @@ export declare const resourceSchemaZ: z.ZodEffects<z.ZodObject<{
|
|
|
171
178
|
}, {
|
|
172
179
|
name: string;
|
|
173
180
|
id: string | ID | {
|
|
174
|
-
type: "
|
|
181
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
175
182
|
key: string;
|
|
176
183
|
};
|
|
177
184
|
data?: Record<string, unknown> | null | undefined;
|
|
178
185
|
schema?: {
|
|
179
|
-
type: "
|
|
186
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
180
187
|
fields: Record<string, {
|
|
181
188
|
type: number;
|
|
182
189
|
}>;
|
|
183
190
|
} | null | undefined;
|
|
184
191
|
}>;
|
|
185
|
-
export
|
|
192
|
+
export interface Resource<T extends UnknownRecord = UnknownRecord> extends Omit<z.output<typeof resourceZ>, "data"> {
|
|
186
193
|
data?: T | null;
|
|
187
|
-
}
|
|
188
|
-
export
|
|
194
|
+
}
|
|
195
|
+
export declare const TO_RELATIONSHIP_DIRECTION = "to";
|
|
196
|
+
export declare const FROM_RELATIONSHIP_DIRECTION = "from";
|
|
197
|
+
export type RelationshipDirection = typeof TO_RELATIONSHIP_DIRECTION | typeof FROM_RELATIONSHIP_DIRECTION;
|
|
189
198
|
export declare const relationshipSchemaZ: z.ZodObject<{
|
|
190
199
|
from: z.ZodUnion<[z.ZodType<ID, z.ZodTypeDef, ID>, z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
191
|
-
type: "
|
|
200
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
192
201
|
key: string;
|
|
193
202
|
}, string>, z.ZodObject<{
|
|
194
|
-
type: z.
|
|
203
|
+
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"]>;
|
|
195
204
|
key: z.ZodString;
|
|
196
205
|
}, "strip", z.ZodTypeAny, {
|
|
197
|
-
type: "
|
|
206
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
198
207
|
key: string;
|
|
199
208
|
}, {
|
|
200
|
-
type: "
|
|
209
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
201
210
|
key: string;
|
|
202
211
|
}>]>, ID, string | {
|
|
203
|
-
type: "
|
|
212
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
204
213
|
key: string;
|
|
205
214
|
}>]>;
|
|
206
215
|
type: z.ZodString;
|
|
207
216
|
to: z.ZodUnion<[z.ZodType<ID, z.ZodTypeDef, ID>, z.ZodEffects<z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
208
|
-
type: "
|
|
217
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
209
218
|
key: string;
|
|
210
219
|
}, string>, z.ZodObject<{
|
|
211
|
-
type: z.
|
|
220
|
+
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"]>;
|
|
212
221
|
key: z.ZodString;
|
|
213
222
|
}, "strip", z.ZodTypeAny, {
|
|
214
|
-
type: "
|
|
223
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
215
224
|
key: string;
|
|
216
225
|
}, {
|
|
217
|
-
type: "
|
|
226
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
218
227
|
key: string;
|
|
219
228
|
}>]>, ID, string | {
|
|
220
|
-
type: "
|
|
229
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
221
230
|
key: string;
|
|
222
231
|
}>]>;
|
|
223
232
|
}, "strip", z.ZodTypeAny, {
|
|
224
233
|
type: string;
|
|
225
|
-
from: ID;
|
|
226
234
|
to: ID;
|
|
235
|
+
from: ID;
|
|
227
236
|
}, {
|
|
228
237
|
type: string;
|
|
229
|
-
|
|
230
|
-
type: "
|
|
238
|
+
to: string | ID | {
|
|
239
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
231
240
|
key: string;
|
|
232
241
|
};
|
|
233
|
-
|
|
234
|
-
type: "
|
|
242
|
+
from: string | ID | {
|
|
243
|
+
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
235
244
|
key: string;
|
|
236
245
|
};
|
|
237
246
|
}>;
|
|
238
|
-
export
|
|
247
|
+
export interface Relationship extends z.infer<typeof relationshipSchemaZ> {
|
|
248
|
+
}
|
|
239
249
|
export declare const parseRelationship: (str: string) => Relationship;
|
|
240
250
|
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../src/ontology/payload.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AC;AAClD,MAAM,MAAM,qBAAqB,GAC7B,OAAO,yBAAyB,GAChC,OAAO,2BAA2B,CAAC;AAEvC,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAuD,CAAC;AACxF,MAAM,WAAW,YAAa,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC;CAAG;AAE5E,eAAO,MAAM,iBAAiB,GAAI,KAAK,MAAM,KAAG,YAG/C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writer.d.ts","sourceRoot":"","sources":["../../src/ontology/writer.ts"],"names":[],"mappings":"AASA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAGvE,OAAO,EAAE,KAAK,OAAO,EAAW,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"writer.d.ts","sourceRoot":"","sources":["../../src/ontology/writer.ts"],"names":[],"mappings":"AASA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAGvE,OAAO,EAAE,KAAK,OAAO,EAAW,MAAM,oBAAoB,CAAC;AAY3D,qBAAa,MAAM;IACjB,MAAM,EAAE,WAAW,CAAC;gBAER,MAAM,EAAE,WAAW;IAIzB,WAAW,CAAC,EAAE,EAAE,OAAO,EAAE,GAAG,QAAQ,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAU/D,cAAc,CAAC,EAAE,EAAE,OAAO,EAAE,GAAG,QAAQ,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAUlE,YAAY,CAChB,IAAI,EAAE,OAAO,EACb,EAAE,EAAE,OAAO,EACX,GAAG,QAAQ,EAAE,OAAO,EAAE,GACrB,OAAO,CAAC,IAAI,CAAC;CAcjB"}
|
package/dist/ranger/alias.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { UnaryClient } from '@synnaxlabs/freighter';
|
|
2
2
|
import { change } from '@synnaxlabs/x/change';
|
|
3
3
|
import { channel } from '../channel';
|
|
4
|
-
import {
|
|
5
|
-
import { Client as FrameClient } from '../framer/client';
|
|
4
|
+
import { framer } from '../framer';
|
|
6
5
|
import { Key } from './payload';
|
|
7
6
|
import { signals } from '../signals';
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
7
|
+
export declare const SET_ALIAS_CHANNEL_NAME = "sy_range_alias_set";
|
|
8
|
+
export declare const DELETE_ALIAS_CHANNEL_NAME = "sy_range_alias_delete";
|
|
10
9
|
export declare class Aliaser {
|
|
11
10
|
private static readonly SET_ENDPOINT;
|
|
12
11
|
private static readonly RESOLVE_ENDPOINT;
|
|
@@ -16,12 +15,12 @@ export declare class Aliaser {
|
|
|
16
15
|
private readonly cache;
|
|
17
16
|
private readonly client;
|
|
18
17
|
private readonly rangeKey;
|
|
19
|
-
constructor(rangeKey: Key, frameClient:
|
|
20
|
-
resolve(aliases: string): Promise<
|
|
21
|
-
resolve(aliases: string[]): Promise<Record<string,
|
|
22
|
-
set(aliases: Record<
|
|
23
|
-
list(): Promise<Record<
|
|
24
|
-
delete(aliases:
|
|
18
|
+
constructor(rangeKey: Key, frameClient: framer.Client, client: UnaryClient);
|
|
19
|
+
resolve(aliases: string): Promise<channel.Key>;
|
|
20
|
+
resolve(aliases: string[]): Promise<Record<string, channel.Key>>;
|
|
21
|
+
set(aliases: Record<channel.Key, string>): Promise<void>;
|
|
22
|
+
list(): Promise<Record<channel.Key, string>>;
|
|
23
|
+
delete(aliases: channel.Key[]): Promise<void>;
|
|
25
24
|
openChangeTracker(): Promise<signals.Observable<string, Alias>>;
|
|
26
25
|
}
|
|
27
26
|
export interface Alias {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alias.d.ts","sourceRoot":"","sources":["../../src/ranger/alias.ts"],"names":[],"mappings":"AASA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,uBA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C,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;IA8B1D,GAAG,CAAC,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAUxD,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IAY5C,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,GAAG,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAU7C,iBAAiB,IAAI,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;CAQtE;AAED,MAAM,WAAW,KAAK;IACpB,KAAK,EAAE,GAAG,CAAC;IACX,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC"}
|
package/dist/ranger/client.d.ts
CHANGED
|
@@ -3,16 +3,13 @@ import { CrudeTimeRange, observe, TimeRange } from '@synnaxlabs/x';
|
|
|
3
3
|
import { AsyncTermSearcher } from '@synnaxlabs/x/search';
|
|
4
4
|
import { Series } from '@synnaxlabs/x/telem';
|
|
5
5
|
import { z } from 'zod';
|
|
6
|
-
import {
|
|
7
|
-
import { Retriever as ChannelRetriever } from '../channel/retriever';
|
|
6
|
+
import { channel } from '../channel';
|
|
8
7
|
import { framer } from '../framer';
|
|
9
8
|
import { label } from '../label';
|
|
10
|
-
import { Label } from '../label/payload';
|
|
11
9
|
import { ontology } from '../ontology';
|
|
12
|
-
import { Resource } from '../ontology/payload';
|
|
13
10
|
import { Alias, Aliaser } from './alias';
|
|
14
11
|
import { KV } from './kv';
|
|
15
|
-
import { Key, Keys, Name, Names,
|
|
12
|
+
import { Key, Keys, Name, Names, New, Params, Payload } from './payload';
|
|
16
13
|
import { CreateOptions, Writer } from './writer';
|
|
17
14
|
import { signals } from '../signals';
|
|
18
15
|
export declare class Range {
|
|
@@ -21,25 +18,25 @@ export declare class Range {
|
|
|
21
18
|
readonly kv: KV;
|
|
22
19
|
readonly timeRange: TimeRange;
|
|
23
20
|
readonly color: string | undefined;
|
|
24
|
-
readonly channels:
|
|
21
|
+
readonly channels: channel.Retriever;
|
|
25
22
|
private readonly aliaser;
|
|
26
23
|
private readonly frameClient;
|
|
27
24
|
private readonly labelClient;
|
|
28
25
|
private readonly ontologyClient;
|
|
29
26
|
private readonly rangeClient;
|
|
30
|
-
constructor(name: string, timeRange: TimeRange | undefined, key: string, color: string | undefined, _frameClient: framer.Client, _kv: KV, _aliaser: Aliaser, _channels:
|
|
27
|
+
constructor(name: string, timeRange: TimeRange | undefined, key: string, color: string | undefined, _frameClient: framer.Client, _kv: KV, _aliaser: Aliaser, _channels: channel.Retriever, _labelClient: label.Client, _ontologyClient: ontology.Client, _rangeClient: Client);
|
|
31
28
|
get ontologyID(): ontology.ID;
|
|
32
29
|
get payload(): Payload;
|
|
33
|
-
setAlias(channel:
|
|
34
|
-
deleteAlias(...channels:
|
|
35
|
-
listAliases(): Promise<Record<
|
|
36
|
-
resolveAlias(alias: string): Promise<
|
|
30
|
+
setAlias(channel: channel.Key | Name, alias: string): Promise<void>;
|
|
31
|
+
deleteAlias(...channels: channel.Key[]): Promise<void>;
|
|
32
|
+
listAliases(): Promise<Record<channel.Key, string>>;
|
|
33
|
+
resolveAlias(alias: string): Promise<channel.Key>;
|
|
37
34
|
openAliasTracker(): Promise<signals.Observable<string, Alias>>;
|
|
38
35
|
retrieveParent(): Promise<Range | null>;
|
|
39
36
|
retrieveChildren(): Promise<Range[]>;
|
|
40
37
|
read(channel: Key | Name): Promise<Series>;
|
|
41
38
|
read(channels: Params): Promise<framer.Frame>;
|
|
42
|
-
labels(): Promise<Label[]>;
|
|
39
|
+
labels(): Promise<label.Label[]>;
|
|
43
40
|
addLabel(...labels: label.Key[]): Promise<void>;
|
|
44
41
|
removeLabel(...labels: label.Key[]): Promise<void>;
|
|
45
42
|
openChildRangeTracker(): Promise<observe.ObservableAsyncCloseable<Range[]>>;
|
|
@@ -111,7 +108,8 @@ declare const retrieveReqZ: z.ZodObject<{
|
|
|
111
108
|
};
|
|
112
109
|
} | undefined;
|
|
113
110
|
}>;
|
|
114
|
-
export
|
|
111
|
+
export interface RetrieveRequest extends z.infer<typeof retrieveReqZ> {
|
|
112
|
+
}
|
|
115
113
|
export declare class Client implements AsyncTermSearcher<string, Key, Range> {
|
|
116
114
|
readonly type: string;
|
|
117
115
|
private readonly frameClient;
|
|
@@ -120,9 +118,9 @@ export declare class Client implements AsyncTermSearcher<string, Key, Range> {
|
|
|
120
118
|
private readonly channels;
|
|
121
119
|
private readonly labelClient;
|
|
122
120
|
private readonly ontologyClient;
|
|
123
|
-
constructor(frameClient: framer.Client, writer: Writer, unary: UnaryClient, channels:
|
|
124
|
-
create(range:
|
|
125
|
-
create(ranges:
|
|
121
|
+
constructor(frameClient: framer.Client, writer: Writer, unary: UnaryClient, channels: channel.Retriever, labelClient: label.Client, ontologyClient: ontology.Client);
|
|
122
|
+
create(range: New, options?: CreateOptions): Promise<Range>;
|
|
123
|
+
create(ranges: New[], options?: CreateOptions): Promise<Range[]>;
|
|
126
124
|
rename(key: Key, name: Name): Promise<void>;
|
|
127
125
|
delete(key: Key | Keys): Promise<void>;
|
|
128
126
|
search(term: string): Promise<Range[]>;
|
|
@@ -136,8 +134,10 @@ export declare class Client implements AsyncTermSearcher<string, Key, Range> {
|
|
|
136
134
|
sugarOne(payload: Payload): Range;
|
|
137
135
|
sugarMany(payloads: Payload[]): Range[];
|
|
138
136
|
openTracker(): Promise<signals.Observable<string, Range>>;
|
|
139
|
-
resourcesToRanges(resources: Resource[]): Range[];
|
|
140
|
-
resourceToRange(resource: Resource): Range;
|
|
137
|
+
resourcesToRanges(resources: ontology.Resource[]): Range[];
|
|
138
|
+
resourceToRange(resource: ontology.Resource): Range;
|
|
141
139
|
}
|
|
140
|
+
export declare const ontologyID: (key: Key) => ontology.ID;
|
|
141
|
+
export declare const aliasOntologyID: (key: Key) => ontology.ID;
|
|
142
142
|
export {};
|
|
143
143
|
//# sourceMappingURL=client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/ranger/client.ts"],"names":[],"mappings":"AASA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,KAAK,cAAc,EAAE,OAAO,EAAiB,SAAS,EAAE,MAAM,eAAe,CAAC;AACvF,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/ranger/client.ts"],"names":[],"mappings":"AASA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,KAAK,cAAc,EAAE,OAAO,EAAiB,SAAS,EAAE,MAAM,eAAe,CAAC;AACvF,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,KAAK,EAAE,OAAO,EAAE,MAAM,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AO,CAAC,UAAU,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAc/D,iBAAiB,CAAC,SAAS,EAAE,QAAQ,CAAC,QAAQ,EAAE,GAAG,KAAK,EAAE;IAI1D,eAAe,CAAC,QAAQ,EAAE,QAAQ,CAAC,QAAQ,GAAG,KAAK;CAQpD;AAED,eAAO,MAAM,UAAU,GAAI,KAAK,GAAG,KAAG,QAAQ,CAAC,EACA,CAAC;AAEhD,eAAO,MAAM,eAAe,GAAI,KAAK,GAAG,KAAG,QAAQ,CAAC,EACC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../src/ranger/external.ts"],"names":[],"mappings":"AASA,
|
|
1
|
+
{"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../src/ranger/external.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC9D,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC"}
|