@synnaxlabs/client 0.24.0 → 0.26.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 +9 -10
- package/dist/access/access.spec.d.ts +2 -0
- package/dist/access/access.spec.d.ts.map +1 -0
- package/dist/access/client.d.ts +13 -0
- package/dist/access/client.d.ts.map +1 -0
- package/dist/access/external.d.ts +3 -0
- package/dist/access/external.d.ts.map +1 -0
- package/dist/access/index.d.ts +2 -0
- package/dist/access/index.d.ts.map +1 -0
- package/dist/access/payload.d.ts +105 -0
- package/dist/access/payload.d.ts.map +1 -0
- package/dist/auth/auth.d.ts +2 -2
- package/dist/auth/auth.d.ts.map +1 -1
- package/dist/channel/client.d.ts +8 -8
- package/dist/channel/creator.d.ts +1 -1
- package/dist/channel/payload.d.ts +18 -15
- package/dist/channel/payload.d.ts.map +1 -1
- package/dist/channel/retriever.d.ts +11 -11
- package/dist/channel/retriever.d.ts.map +1 -1
- package/dist/channel/writer.d.ts +3 -3
- package/dist/client.cjs +22 -22
- package/dist/client.d.ts +15 -11
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +3124 -3776
- package/dist/connection/checker.d.ts +2 -2
- package/dist/control/client.d.ts +1 -1
- package/dist/control/state.d.ts +6 -6
- package/dist/control/state.d.ts.map +1 -1
- package/dist/errors.d.ts +12 -12
- package/dist/errors.d.ts.map +1 -1
- package/dist/framer/adapter.d.ts +3 -3
- package/dist/framer/client.d.ts +7 -7
- package/dist/framer/client.d.ts.map +1 -1
- package/dist/framer/deleter.d.ts +3 -3
- package/dist/framer/deleter.d.ts.map +1 -1
- package/dist/framer/frame.d.ts +2 -2
- package/dist/framer/iterator.d.ts +4 -4
- package/dist/framer/streamProxy.d.ts +1 -1
- package/dist/framer/streamer.d.ts +5 -5
- package/dist/framer/writer.d.ts +6 -6
- package/dist/hardware/client.d.ts +2 -2
- package/dist/hardware/device/client.d.ts +6 -71
- package/dist/hardware/device/client.d.ts.map +1 -1
- package/dist/hardware/device/external.d.ts +1 -0
- package/dist/hardware/device/external.d.ts.map +1 -1
- package/dist/hardware/device/index.d.ts +1 -1
- package/dist/hardware/device/index.d.ts.map +1 -1
- package/dist/hardware/device/payload.d.ts +73 -0
- package/dist/hardware/device/payload.d.ts.map +1 -0
- package/dist/hardware/rack/client.d.ts +6 -29
- package/dist/hardware/rack/client.d.ts.map +1 -1
- package/dist/hardware/rack/external.d.ts +1 -0
- package/dist/hardware/rack/external.d.ts.map +1 -1
- package/dist/hardware/rack/payload.d.ts +30 -0
- package/dist/hardware/rack/payload.d.ts.map +1 -0
- package/dist/hardware/task/client.d.ts +7 -151
- package/dist/hardware/task/client.d.ts.map +1 -1
- package/dist/hardware/task/external.d.ts +3 -0
- package/dist/hardware/task/external.d.ts.map +1 -0
- package/dist/hardware/task/index.d.ts +1 -1
- package/dist/hardware/task/index.d.ts.map +1 -1
- package/dist/hardware/task/payload.d.ts +151 -0
- package/dist/hardware/task/payload.d.ts.map +1 -0
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/label/client.d.ts +6 -6
- package/dist/label/payload.d.ts +2 -1
- package/dist/label/payload.d.ts.map +1 -1
- package/dist/label/retriever.d.ts +2 -2
- package/dist/label/writer.d.ts +3 -3
- package/dist/ontology/client.d.ts +11 -11
- package/dist/ontology/group/client.d.ts +2 -2
- package/dist/ontology/group/writer.d.ts +2 -2
- package/dist/ontology/group/writer.d.ts.map +1 -1
- package/dist/ontology/payload.d.ts +47 -44
- package/dist/ontology/payload.d.ts.map +1 -1
- package/dist/ontology/writer.d.ts +1 -1
- package/dist/ranger/active.d.ts +1 -1
- package/dist/ranger/alias.d.ts +6 -6
- package/dist/ranger/client.d.ts +10 -10
- package/dist/ranger/kv.d.ts +2 -2
- package/dist/ranger/payload.d.ts +6 -1
- package/dist/ranger/payload.d.ts.map +1 -1
- package/dist/ranger/range.d.ts +8 -8
- package/dist/ranger/range.d.ts.map +1 -1
- package/dist/ranger/writer.d.ts +1 -1
- package/dist/setupspecs.d.ts.map +1 -1
- package/dist/signals/observable.d.ts +5 -5
- package/dist/signals/observable.d.ts.map +1 -1
- package/dist/transport.d.ts +1 -1
- package/dist/user/client.d.ts +9 -0
- package/dist/user/client.d.ts.map +1 -0
- package/dist/user/external.d.ts +3 -0
- package/dist/user/external.d.ts.map +1 -0
- package/dist/user/index.d.ts +1 -1
- package/dist/user/index.d.ts.map +1 -1
- package/dist/user/payload.d.ts +5 -0
- package/dist/user/payload.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.map +1 -1
- package/dist/workspace/client.d.ts +6 -6
- package/dist/workspace/lineplot/client.d.ts +3 -3
- package/dist/workspace/lineplot/payload.d.ts +4 -1
- package/dist/workspace/lineplot/payload.d.ts.map +1 -1
- package/dist/workspace/lineplot/retriever.d.ts +1 -1
- package/dist/workspace/lineplot/writer.d.ts +3 -3
- package/dist/workspace/payload.d.ts +4 -1
- package/dist/workspace/payload.d.ts.map +1 -1
- package/dist/workspace/retriever.d.ts +1 -1
- package/dist/workspace/schematic/client.d.ts +3 -3
- package/dist/workspace/schematic/payload.d.ts +4 -1
- package/dist/workspace/schematic/payload.d.ts.map +1 -1
- package/dist/workspace/schematic/retriever.d.ts +1 -1
- package/dist/workspace/schematic/writer.d.ts +3 -3
- package/dist/workspace/writer.d.ts +3 -3
- package/examples/node/package.json +1 -1
- package/package.json +11 -12
- package/src/access/access.spec.ts +276 -0
- package/src/access/client.ts +86 -0
- package/src/access/external.ts +11 -0
- package/src/access/index.ts +10 -0
- package/src/access/payload.ts +35 -0
- package/src/auth/auth.ts +1 -1
- package/src/channel/payload.ts +7 -0
- package/src/client.ts +7 -1
- package/src/control/state.ts +3 -3
- package/src/errors.spec.ts +0 -1
- package/src/framer/client.ts +1 -0
- package/src/framer/deleter.ts +2 -4
- package/src/framer/writer.spec.ts +29 -1
- package/src/hardware/device/client.ts +8 -36
- package/src/hardware/device/external.ts +1 -0
- package/src/hardware/device/index.ts +1 -1
- package/src/hardware/device/payload.ts +44 -0
- package/src/hardware/rack/client.ts +10 -15
- package/src/hardware/rack/external.ts +1 -0
- package/src/hardware/rack/payload.ts +23 -0
- package/src/hardware/task/client.ts +3 -86
- package/src/hardware/task/external.ts +11 -0
- package/src/hardware/task/index.ts +1 -1
- package/src/hardware/task/payload.ts +92 -0
- package/src/hardware/task/task.spec.ts +2 -2
- package/src/index.ts +1 -2
- package/src/label/payload.ts +3 -1
- package/src/ontology/group/writer.ts +1 -1
- package/src/ontology/ontology.spec.ts +1 -1
- package/src/ontology/payload.ts +6 -1
- package/src/ranger/payload.ts +11 -0
- package/src/setupspecs.ts +4 -2
- package/src/signals/observable.ts +5 -3
- package/src/transport.ts +3 -3
- package/src/user/client.ts +37 -0
- package/src/user/external.ts +11 -0
- package/src/user/index.ts +1 -1
- package/src/user/payload.ts +11 -0
- package/src/workspace/lineplot/payload.ts +7 -0
- package/src/workspace/payload.ts +7 -0
- package/src/workspace/schematic/payload.ts +7 -0
- package/tsconfig.json +4 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
1
|
import { change, UnknownRecord } from '@synnaxlabs/x';
|
|
2
|
+
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
export type ResourceChange = change.Change<ID, Resource>;
|
|
5
5
|
export type ResourceSet = change.Set<ID, Resource>;
|
|
@@ -7,35 +7,38 @@ export type ResourceDelete = change.Delete<ID, Resource>;
|
|
|
7
7
|
export type RelationshipChange = change.Change<Relationship, undefined>;
|
|
8
8
|
export type RelationshipSet = change.Set<Relationship, undefined>;
|
|
9
9
|
export type RelationshipDelete = change.Delete<Relationship, undefined>;
|
|
10
|
-
declare const resourceTypeZ: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, 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">]>;
|
|
10
|
+
declare const resourceTypeZ: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, 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">]>;
|
|
11
11
|
export type ResourceType = z.infer<typeof resourceTypeZ>;
|
|
12
|
+
export declare const BuiltinOntologyType: ResourceType;
|
|
13
|
+
export declare const ClusterOntologyType: ResourceType;
|
|
14
|
+
export declare const NodeOntologyType: ResourceType;
|
|
12
15
|
export declare const idZ: z.ZodObject<{
|
|
13
|
-
type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, 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">]>;
|
|
16
|
+
type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, 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">]>;
|
|
14
17
|
key: z.ZodString;
|
|
15
18
|
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
16
20
|
key: string;
|
|
17
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
18
21
|
}, {
|
|
22
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
19
23
|
key: string;
|
|
20
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
21
24
|
}>;
|
|
22
25
|
export type IDPayload = z.infer<typeof idZ>;
|
|
23
26
|
export declare const stringIDZ: z.ZodEffects<z.ZodString, {
|
|
24
|
-
type:
|
|
27
|
+
type: ResourceType;
|
|
25
28
|
key: string;
|
|
26
29
|
}, string>;
|
|
27
30
|
export declare const crudeIDZ: z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
28
|
-
type:
|
|
31
|
+
type: ResourceType;
|
|
29
32
|
key: string;
|
|
30
33
|
}, string>, z.ZodObject<{
|
|
31
|
-
type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, 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">]>;
|
|
34
|
+
type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, 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">]>;
|
|
32
35
|
key: z.ZodString;
|
|
33
36
|
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
34
38
|
key: string;
|
|
35
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
36
39
|
}, {
|
|
40
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
37
41
|
key: string;
|
|
38
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
39
42
|
}>]>;
|
|
40
43
|
export declare class ID {
|
|
41
44
|
type: ResourceType;
|
|
@@ -44,20 +47,20 @@ export declare class ID {
|
|
|
44
47
|
toString(): string;
|
|
45
48
|
get payload(): z.infer<typeof idZ>;
|
|
46
49
|
static readonly z: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
47
|
-
type:
|
|
50
|
+
type: ResourceType;
|
|
48
51
|
key: string;
|
|
49
52
|
}, string>, z.ZodObject<{
|
|
50
|
-
type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, 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">]>;
|
|
53
|
+
type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, 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">]>;
|
|
51
54
|
key: z.ZodString;
|
|
52
55
|
}, "strip", z.ZodTypeAny, {
|
|
56
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
53
57
|
key: string;
|
|
54
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
55
58
|
}, {
|
|
59
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
56
60
|
key: string;
|
|
57
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
58
61
|
}>]>, z.ZodType<ID, z.ZodTypeDef, ID>]>, ID, string | ID | {
|
|
62
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
59
63
|
key: string;
|
|
60
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
61
64
|
}>;
|
|
62
65
|
}
|
|
63
66
|
export declare const Root: ID;
|
|
@@ -70,7 +73,7 @@ export declare const schemaFieldZ: z.ZodObject<{
|
|
|
70
73
|
}>;
|
|
71
74
|
export type SchemaField = z.infer<typeof schemaFieldZ>;
|
|
72
75
|
export declare const schemaZ: z.ZodObject<{
|
|
73
|
-
type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, 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">]>;
|
|
76
|
+
type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, 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">]>;
|
|
74
77
|
fields: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
75
78
|
type: z.ZodNumber;
|
|
76
79
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -79,12 +82,12 @@ export declare const schemaZ: z.ZodObject<{
|
|
|
79
82
|
type: number;
|
|
80
83
|
}>>;
|
|
81
84
|
}, "strip", z.ZodTypeAny, {
|
|
82
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
85
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
83
86
|
fields: Record<string, {
|
|
84
87
|
type: number;
|
|
85
88
|
}>;
|
|
86
89
|
}, {
|
|
87
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
90
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
88
91
|
fields: Record<string, {
|
|
89
92
|
type: number;
|
|
90
93
|
}>;
|
|
@@ -92,24 +95,24 @@ export declare const schemaZ: z.ZodObject<{
|
|
|
92
95
|
export type Schema = z.infer<typeof schemaZ>;
|
|
93
96
|
export declare const resourceSchemaZ: z.ZodEffects<z.ZodObject<{
|
|
94
97
|
id: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
95
|
-
type:
|
|
98
|
+
type: ResourceType;
|
|
96
99
|
key: string;
|
|
97
100
|
}, string>, z.ZodObject<{
|
|
98
|
-
type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, 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">]>;
|
|
101
|
+
type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, 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">]>;
|
|
99
102
|
key: z.ZodString;
|
|
100
103
|
}, "strip", z.ZodTypeAny, {
|
|
104
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
101
105
|
key: string;
|
|
102
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
103
106
|
}, {
|
|
107
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
104
108
|
key: string;
|
|
105
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
106
109
|
}>]>, z.ZodType<ID, z.ZodTypeDef, ID>]>, ID, string | ID | {
|
|
110
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
107
111
|
key: string;
|
|
108
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
109
112
|
}>;
|
|
110
113
|
name: z.ZodString;
|
|
111
114
|
schema: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
112
|
-
type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, 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">]>;
|
|
115
|
+
type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, 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">]>;
|
|
113
116
|
fields: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
114
117
|
type: z.ZodNumber;
|
|
115
118
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -118,12 +121,12 @@ export declare const resourceSchemaZ: z.ZodEffects<z.ZodObject<{
|
|
|
118
121
|
type: number;
|
|
119
122
|
}>>;
|
|
120
123
|
}, "strip", z.ZodTypeAny, {
|
|
121
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
124
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
122
125
|
fields: Record<string, {
|
|
123
126
|
type: number;
|
|
124
127
|
}>;
|
|
125
128
|
}, {
|
|
126
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
129
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
127
130
|
fields: Record<string, {
|
|
128
131
|
type: number;
|
|
129
132
|
}>;
|
|
@@ -134,7 +137,7 @@ export declare const resourceSchemaZ: z.ZodEffects<z.ZodObject<{
|
|
|
134
137
|
id: ID;
|
|
135
138
|
data?: Record<string, unknown> | null | undefined;
|
|
136
139
|
schema?: {
|
|
137
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
140
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
138
141
|
fields: Record<string, {
|
|
139
142
|
type: number;
|
|
140
143
|
}>;
|
|
@@ -142,12 +145,12 @@ export declare const resourceSchemaZ: z.ZodEffects<z.ZodObject<{
|
|
|
142
145
|
}, {
|
|
143
146
|
name: string;
|
|
144
147
|
id: string | ID | {
|
|
148
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
145
149
|
key: string;
|
|
146
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
147
150
|
};
|
|
148
151
|
data?: Record<string, unknown> | null | undefined;
|
|
149
152
|
schema?: {
|
|
150
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
153
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
151
154
|
fields: Record<string, {
|
|
152
155
|
type: number;
|
|
153
156
|
}>;
|
|
@@ -157,7 +160,7 @@ export declare const resourceSchemaZ: z.ZodEffects<z.ZodObject<{
|
|
|
157
160
|
id: ID;
|
|
158
161
|
data?: Record<string, unknown> | null | undefined;
|
|
159
162
|
schema?: {
|
|
160
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
163
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
161
164
|
fields: Record<string, {
|
|
162
165
|
type: number;
|
|
163
166
|
}>;
|
|
@@ -166,12 +169,12 @@ export declare const resourceSchemaZ: z.ZodEffects<z.ZodObject<{
|
|
|
166
169
|
}, {
|
|
167
170
|
name: string;
|
|
168
171
|
id: string | ID | {
|
|
172
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
169
173
|
key: string;
|
|
170
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
171
174
|
};
|
|
172
175
|
data?: Record<string, unknown> | null | undefined;
|
|
173
176
|
schema?: {
|
|
174
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
177
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
175
178
|
fields: Record<string, {
|
|
176
179
|
type: number;
|
|
177
180
|
}>;
|
|
@@ -182,37 +185,37 @@ export type Resource<T extends UnknownRecord = UnknownRecord> = Omit<z.output<ty
|
|
|
182
185
|
};
|
|
183
186
|
export declare const relationshipSchemaZ: z.ZodObject<{
|
|
184
187
|
from: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
185
|
-
type:
|
|
188
|
+
type: ResourceType;
|
|
186
189
|
key: string;
|
|
187
190
|
}, string>, z.ZodObject<{
|
|
188
|
-
type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, 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">]>;
|
|
191
|
+
type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, 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">]>;
|
|
189
192
|
key: z.ZodString;
|
|
190
193
|
}, "strip", z.ZodTypeAny, {
|
|
194
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
191
195
|
key: string;
|
|
192
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
193
196
|
}, {
|
|
197
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
194
198
|
key: string;
|
|
195
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
196
199
|
}>]>, z.ZodType<ID, z.ZodTypeDef, ID>]>, ID, string | ID | {
|
|
200
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
197
201
|
key: string;
|
|
198
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
199
202
|
}>;
|
|
200
203
|
type: z.ZodString;
|
|
201
204
|
to: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
202
|
-
type:
|
|
205
|
+
type: ResourceType;
|
|
203
206
|
key: string;
|
|
204
207
|
}, string>, z.ZodObject<{
|
|
205
|
-
type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, 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">]>;
|
|
208
|
+
type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, 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">]>;
|
|
206
209
|
key: z.ZodString;
|
|
207
210
|
}, "strip", z.ZodTypeAny, {
|
|
211
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
208
212
|
key: string;
|
|
209
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
210
213
|
}, {
|
|
214
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
211
215
|
key: string;
|
|
212
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
213
216
|
}>]>, z.ZodType<ID, z.ZodTypeDef, ID>]>, ID, string | ID | {
|
|
217
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
214
218
|
key: string;
|
|
215
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
216
219
|
}>;
|
|
217
220
|
}, "strip", z.ZodTypeAny, {
|
|
218
221
|
type: string;
|
|
@@ -221,12 +224,12 @@ export declare const relationshipSchemaZ: z.ZodObject<{
|
|
|
221
224
|
}, {
|
|
222
225
|
type: string;
|
|
223
226
|
from: string | ID | {
|
|
227
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
224
228
|
key: string;
|
|
225
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
226
229
|
};
|
|
227
230
|
to: string | ID | {
|
|
231
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
228
232
|
key: string;
|
|
229
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
230
233
|
};
|
|
231
234
|
}>;
|
|
232
235
|
export type Relationship = z.infer<typeof relationshipSchemaZ>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../src/ontology/payload.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../src/ontology/payload.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;AACzD,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;AACnD,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;AACzD,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;AACxE,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC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M,eAAe;;cApDH,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgEjC,CAAC;AAEL,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa,IAAI,IAAI,CAClE,CAAC,CAAC,MAAM,CAAC,OAAO,eAAe,CAAC,EAChC,MAAM,CACP,GAAG;IAAE,IAAI,CAAC,EAAE,CAAC,GAAG,IAAI,CAAA;CAAE,CAAC;AAExB,eAAO,MAAM,mBAAmB;;cAvEP,YAAY;;;;;;;;;;;;;;;;;cAAZ,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2EnC,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAE/D,eAAO,MAAM,iBAAiB,QAAS,MAAM,KAAG,YAG/C,CAAC"}
|
package/dist/ranger/active.d.ts
CHANGED
package/dist/ranger/alias.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { signals } from '../signals';
|
|
2
|
-
import { Key } from './payload';
|
|
3
|
-
import { Client as FrameClient } from '../framer/client';
|
|
4
|
-
import { Key as ChannelKey } from '../channel/payload';
|
|
5
|
-
import { channel } from '../channel';
|
|
6
|
-
import { change } from '@synnaxlabs/x/change';
|
|
7
1
|
import { UnaryClient } from '@synnaxlabs/freighter';
|
|
2
|
+
import { change } from '@synnaxlabs/x/change';
|
|
3
|
+
import { channel } from '../channel';
|
|
4
|
+
import { Key as ChannelKey } from '../channel/payload';
|
|
5
|
+
import { Client as FrameClient } from '../framer/client';
|
|
6
|
+
import { Key } from './payload';
|
|
7
|
+
import { signals } from '../signals';
|
|
8
8
|
|
|
9
9
|
export declare const ALIAS_SET_NAME = "sy_range_alias_set";
|
|
10
10
|
export declare const ALIAS_DELETE_NAME = "sy_range_alias_delete";
|
package/dist/ranger/client.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { signals } from '../signals';
|
|
2
|
-
import { Writer } from './writer';
|
|
3
|
-
import { Range } from './range';
|
|
4
|
-
import { Key, Keys, Name, Names, NewPayload } from './payload';
|
|
5
|
-
import { label } from '../label';
|
|
6
|
-
import { framer } from '../framer';
|
|
7
|
-
import { Retriever as ChannelRetriever } from '../channel/retriever';
|
|
8
|
-
import { z } from 'zod';
|
|
9
|
-
import { AsyncTermSearcher } from '@synnaxlabs/x/search';
|
|
10
|
-
import { CrudeTimeRange, TimeRange } from '@synnaxlabs/x';
|
|
11
1
|
import { UnaryClient } from '@synnaxlabs/freighter';
|
|
2
|
+
import { CrudeTimeRange, TimeRange } from '@synnaxlabs/x';
|
|
3
|
+
import { AsyncTermSearcher } from '@synnaxlabs/x/search';
|
|
4
|
+
import { z } from 'zod';
|
|
5
|
+
import { Retriever as ChannelRetriever } from '../channel/retriever';
|
|
6
|
+
import { framer } from '../framer';
|
|
7
|
+
import { label } from '../label';
|
|
8
|
+
import { Key, Keys, Name, Names, NewPayload } from './payload';
|
|
9
|
+
import { Range } from './range';
|
|
10
|
+
import { Writer } from './writer';
|
|
11
|
+
import { signals } from '../signals';
|
|
12
12
|
|
|
13
13
|
declare const retrieveReqZ: z.ZodObject<{
|
|
14
14
|
keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
package/dist/ranger/kv.d.ts
CHANGED
package/dist/ranger/payload.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
1
|
import { TimeRange } from '@synnaxlabs/x/telem';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { ontology } from '../ontology';
|
|
3
4
|
|
|
4
5
|
export declare const keyZ: z.ZodString;
|
|
5
6
|
export type Key = z.infer<typeof keyZ>;
|
|
@@ -151,4 +152,8 @@ export type ParamAnalysisResult = {
|
|
|
151
152
|
actual: Names;
|
|
152
153
|
};
|
|
153
154
|
export declare const analyzeParams: (params: Params) => ParamAnalysisResult;
|
|
155
|
+
export declare const RangeOntologyType: ontology.ResourceType;
|
|
156
|
+
export declare const RangeAliasOntologyType: ontology.ResourceType;
|
|
157
|
+
export declare const rangeOntologyID: (key: Key) => ontology.ID;
|
|
158
|
+
export declare const rangeAliasOntologyID: (key: Key) => ontology.ID;
|
|
154
159
|
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../src/ranger/payload.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,IAAI,aAAoB,CAAC;AACtC,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AACvC,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC;AAC1B,MAAM,MAAM,IAAI,GAAG,GAAG,EAAE,CAAC;AACzB,MAAM,MAAM,KAAK,GAAG,IAAI,EAAE,CAAC;AAC3B,MAAM,MAAM,MAAM,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;AAE/C,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKnB,CAAC;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;AAE/C,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEtB,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAErD,MAAM,MAAM,mBAAmB,GAC3B;IACE,MAAM,EAAE,IAAI,CAAC;IACb,O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AAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;AAE/C,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEtB,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAErD,MAAM,MAAM,mBAAmB,GAC3B;IACE,MAAM,EAAE,IAAI,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,IAAI,CAAC;IACjB,MAAM,EAAE,GAAG,CAAC;CACb,GACD;IACE,MAAM,EAAE,IAAI,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,KAAK,CAAC;IAClB,MAAM,EAAE,IAAI,CAAC;CACd,GACD;IACE,MAAM,EAAE,KAAK,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,IAAI,CAAC;IACjB,MAAM,EAAE,IAAI,CAAC;CACd,GACD;IACE,MAAM,EAAE,KAAK,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,KAAK,CAAC;IAClB,MAAM,EAAE,KAAK,CAAC;CACf,CAAC;AAEN,eAAO,MAAM,aAAa,WAAY,MAAM,KAAG,mBAY9C,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAc,QAAQ,CAAC,YAAY,CAAC;AAClE,eAAO,MAAM,sBAAsB,EAAoB,QAAQ,CAAC,YAAY,CAAC;AAE7E,eAAO,MAAM,eAAe,QAAS,GAAG,KAAG,QAAQ,CAAC,EACI,CAAC;AAEzD,eAAO,MAAM,oBAAoB,QAAS,GAAG,KAAG,QAAQ,CAAC,EACI,CAAC"}
|
package/dist/ranger/range.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { signals } from '../signals';
|
|
2
|
-
import { KV } from './kv';
|
|
3
|
-
import { Alias, Aliaser } from './alias';
|
|
4
|
-
import { Label } from '../label/payload';
|
|
5
|
-
import { label } from '../label';
|
|
6
|
-
import { framer } from '../framer';
|
|
7
|
-
import { Retriever as ChannelRetriever } from '../channel/retriever';
|
|
8
|
-
import { Key, Name, Params } from '../channel/payload';
|
|
9
1
|
import { Series, TimeRange } from '@synnaxlabs/x/telem';
|
|
2
|
+
import { Key, Name, Params } from '../channel/payload';
|
|
3
|
+
import { Retriever as ChannelRetriever } from '../channel/retriever';
|
|
4
|
+
import { framer } from '../framer';
|
|
5
|
+
import { label } from '../label';
|
|
6
|
+
import { Label } from '../label/payload';
|
|
7
|
+
import { Alias, Aliaser } from './alias';
|
|
8
|
+
import { KV } from './kv';
|
|
9
|
+
import { signals } from '../signals';
|
|
10
10
|
|
|
11
11
|
export declare class Range {
|
|
12
12
|
key: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"range.d.ts","sourceRoot":"","sources":["../../src/ranger/range.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,MAAM,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAE7D,OAAO,EAAE,KAAK,GAAG,EAAE,KAAK,IAAI,EAAC,KAAK,MAAM,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAE,KAAK,SAAS,IAAI,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEzE,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;AAKzC,qBAAa,KAAK;IAChB,GAAG,EAAE,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I,CAAC;CAGzD"}
|
package/dist/ranger/writer.d.ts
CHANGED
package/dist/setupspecs.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setupspecs.d.ts","sourceRoot":"","sources":["../src/setupspecs.ts"],"names":[],"mappings":"AASA,OAAO,MAAM,EAAE,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAEpD,eAAO,MAAM,IAAI,cAAc,CAAC;AAChC,eAAO,MAAM,IAAI,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"setupspecs.d.ts","sourceRoot":"","sources":["../src/setupspecs.ts"],"names":[],"mappings":"AASA,OAAO,MAAM,EAAE,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAEpD,eAAO,MAAM,IAAI,cAAc,CAAC;AAChC,eAAO,MAAM,IAAI,OAAO,CAAC;AAIzB,eAAO,MAAM,SAAS,aAAc,WAAW,EAAE,KAAG,MAUnD,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { framer } from '../framer';
|
|
2
|
-
import { channel } from '../channel';
|
|
3
|
-
import { Series } from '@synnaxlabs/x/telem';
|
|
4
|
-
import { observe } from '@synnaxlabs/x/observe';
|
|
5
1
|
import { change } from '@synnaxlabs/x/change';
|
|
2
|
+
import { observe } from '@synnaxlabs/x/observe';
|
|
3
|
+
import { Series } from '@synnaxlabs/x/telem';
|
|
4
|
+
import { channel } from '../channel';
|
|
5
|
+
import { framer } from '../framer';
|
|
6
6
|
|
|
7
7
|
export type Decoder<K, V> = (variant: change.Variant, data: Series) => Array<change.Change<K, V>>;
|
|
8
8
|
export interface Observable<K, V> extends observe.ObservableAsyncCloseable<Array<change.Change<K, V>>> {
|
|
9
9
|
}
|
|
10
|
-
export declare const openObservable: <K, V>(client: framer.Client, setChannel: channel.Key | channel.Name, deleteChannel: channel.Key | channel.Name,
|
|
10
|
+
export declare const openObservable: <K, V>(client: framer.Client, setChannel: channel.Key | channel.Name, deleteChannel: channel.Key | channel.Name, codec: Decoder<K, V>) => Promise<Observable<K, V>>;
|
|
11
11
|
//# sourceMappingURL=observable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observable.d.ts","sourceRoot":"","sources":["../../src/signals/observable.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,MAAM,OAAO,CAAC,CAAC,EAAE,CAAC,IAAI,CAC1B,OAAO,EAAE,MAAM,CAAC,OAAO,EACvB,IAAI,EAAE,MAAM,KACT,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAEhC,MAAM,WAAW,UAAU,CAAC,CAAC,EAAE,CAAC,CAC9B,SAAQ,OAAO,CAAC,wBAAwB,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;CAAG;AAEzE,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"observable.d.ts","sourceRoot":"","sources":["../../src/signals/observable.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,MAAM,OAAO,CAAC,CAAC,EAAE,CAAC,IAAI,CAC1B,OAAO,EAAE,MAAM,CAAC,OAAO,EACvB,IAAI,EAAE,MAAM,KACT,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAEhC,MAAM,WAAW,UAAU,CAAC,CAAC,EAAE,CAAC,CAC9B,SAAQ,OAAO,CAAC,wBAAwB,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;CAAG;AAEzE,eAAO,MAAM,cAAc,GAAU,CAAC,EAAE,CAAC,UAC/B,MAAM,CAAC,MAAM,cACT,OAAO,CAAC,GAAG,GAAG,OAAO,CAAC,IAAI,iBACvB,OAAO,CAAC,GAAG,GAAG,OAAO,CAAC,IAAI,SAClC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,KACnB,OAAO,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,CAa1B,CAAC"}
|
package/dist/transport.d.ts
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { UnaryClient } from '@synnaxlabs/freighter';
|
|
2
|
+
import { Payload } from './payload';
|
|
3
|
+
|
|
4
|
+
export declare class Client {
|
|
5
|
+
private readonly client;
|
|
6
|
+
constructor(client: UnaryClient);
|
|
7
|
+
register(username: string, password: string): Promise<Payload>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/user/client.ts"],"names":[],"mappings":"AASA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAGvE,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAIzC,qBAAa,MAAM;IACjB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAc;gBAEzB,MAAM,EAAE,WAAW;IAIzB,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAarE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../src/user/external.ts"],"names":[],"mappings":"AASA,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC"}
|
package/dist/user/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * as user from './
|
|
1
|
+
export * as user from './external';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/user/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/user/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/user/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC"}
|
package/dist/user/payload.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { ontology } from '../ontology';
|
|
2
3
|
|
|
4
|
+
export declare const keyZ: z.ZodString;
|
|
5
|
+
export type Key = z.infer<typeof keyZ>;
|
|
3
6
|
export declare const payloadZ: z.ZodObject<{
|
|
4
7
|
key: z.ZodString;
|
|
5
8
|
username: z.ZodString;
|
|
@@ -11,4 +14,6 @@ export declare const payloadZ: z.ZodObject<{
|
|
|
11
14
|
username: string;
|
|
12
15
|
}>;
|
|
13
16
|
export type Payload = z.infer<typeof payloadZ>;
|
|
17
|
+
export declare const UserOntologyType: ontology.ResourceType;
|
|
18
|
+
export declare const ontologyID: (key: Key) => ontology.ID;
|
|
14
19
|
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../src/user/payload.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,QAAQ;;;;;;;;;EAGnB,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../src/user/payload.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,eAAO,MAAM,IAAI,aAAoB,CAAC;AAEtC,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AAEvC,eAAO,MAAM,QAAQ;;;;;;;;;EAGnB,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;AAE/C,eAAO,MAAM,gBAAgB,EAAa,QAAQ,CAAC,YAAY,CAAC;AAEhE,eAAO,MAAM,UAAU,QAAS,GAAG,KAAG,QAAQ,CAAC,EACG,CAAC"}
|
package/dist/util/retrieve.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export type ParamAnalysisResult<T extends Primitive, K extends PartialTypeNameRe
|
|
|
18
18
|
export interface AnalyzeParamsOptions {
|
|
19
19
|
convertNumericStrings?: boolean;
|
|
20
20
|
}
|
|
21
|
-
export declare const analyzeParams: <T extends Primitive = Primitive, K extends
|
|
21
|
+
export declare const analyzeParams: <T extends Primitive = Primitive, K extends PartialTypeNameRecord<T> = Partial<Record<TypeName<T>, string>>>(args: T extends any ? T | T[] : never, variantMap: K, { convertNumericStrings }?: AnalyzeParamsOptions) => ParamAnalysisResult<T, K>;
|
|
22
22
|
export declare const checkForMultipleOrNoResults: <T, R>(name: string, params: T | T[], results: R[], isSingle: boolean) => void;
|
|
23
23
|
export {};
|
|
24
24
|
//# source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AS,IAAI,OAAO,CAC9D,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAC5B,CAAC;AAEF,MAAM,MAAM,mBAAmB,CAC7B,CAAC,SAAS,SAAS,EACnB,CAAC,SAAS,qBAAqB,CAAC,CAAC,CAAC,GAAG,qBAAqB,CAAC,CAAC,CAAC,IAC3D,yBAAyB,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,wBAAwB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAErE,MAAM,WAAW,oBAAoB;IACnC,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,eAAO,MAAM,aAAa,GACxB,CAAC,SAAS,SAAS,cACnB,CAAC,SAAS,qBAAqB,CAAC,CAAC,CAAC,+CAE5B,CAAC,SAAS,GAAG,GAAG,CAAC,GAAG,CAAC,EAAE,GAAG,KAAK,cACzB,CAAC,8BACqB,oBAAoB,KACrD,mBAAmB,CAAC,CAAC,EAAE,CAAC,CAkB1B,CAAC;AAEF,eAAO,MAAM,2BAA2B,GAAI,CAAC,EAAE,CAAC,QACxC,MAAM,UACJ,CAAC,GAAG,CAAC,EAAE,WACN,CAAC,EAAE,YACF,OAAO,KAChB,IAQF,CAAC"}
|
package/dist/util/zod.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zod.d.ts","sourceRoot":"","sources":["../../src/util/zod.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"zod.d.ts","sourceRoot":"","sources":["../../src/util/zod.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,CAAC,CAAC,UAAU,QAAQ,CAAC,sFACU,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { NewWorkspace } from './writer';
|
|
2
|
-
import { schematic } from './schematic';
|
|
3
|
-
import { Key, Workspace } from './payload';
|
|
4
|
-
import { linePlot } from './lineplot';
|
|
5
|
-
import { AsyncTermSearcher } from '@synnaxlabs/x/search';
|
|
6
|
-
import { UnknownRecord } from '@synnaxlabs/x/record';
|
|
7
1
|
import { UnaryClient } from '@synnaxlabs/freighter';
|
|
2
|
+
import { UnknownRecord } from '@synnaxlabs/x/record';
|
|
3
|
+
import { AsyncTermSearcher } from '@synnaxlabs/x/search';
|
|
4
|
+
import { linePlot } from './lineplot';
|
|
5
|
+
import { Key, Workspace } from './payload';
|
|
6
|
+
import { schematic } from './schematic';
|
|
7
|
+
import { NewWorkspace } from './writer';
|
|
8
8
|
|
|
9
9
|
export declare class Client implements AsyncTermSearcher<string, Key, Workspace> {
|
|
10
10
|
readonly type = "workspace";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { NewLinePlot } from './writer';
|
|
2
|
-
import { Key, LinePlot, Params } from './payload';
|
|
3
|
-
import { UnknownRecord } from '@synnaxlabs/x/record';
|
|
4
1
|
import { UnaryClient } from '@synnaxlabs/freighter';
|
|
2
|
+
import { UnknownRecord } from '@synnaxlabs/x/record';
|
|
3
|
+
import { Key, LinePlot, Params } from './payload';
|
|
4
|
+
import { NewLinePlot } from './writer';
|
|
5
5
|
|
|
6
6
|
export declare class Client {
|
|
7
7
|
private readonly writer;
|