@synnaxlabs/client 0.13.6 → 0.14.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 +10 -10
- package/dist/auth/index.d.ts +1 -1
- package/dist/channel/client.d.ts +8 -7
- package/dist/channel/creator.d.ts +1 -1
- package/dist/channel/external.d.ts +4 -4
- package/dist/channel/index.d.ts +1 -1
- package/dist/channel/payload.d.ts +6 -0
- package/dist/channel/retriever.d.ts +7 -7
- package/dist/client.cjs.js +14 -23043
- package/dist/client.cjs.js.map +1 -1
- package/dist/client.d.ts +5 -0
- package/dist/client.es.js +11867 -17730
- package/dist/client.es.js.map +1 -1
- package/dist/connection/checker.d.ts +2 -1
- package/dist/connection/index.d.ts +1 -1
- package/dist/control/external.d.ts +2 -2
- package/dist/control/index.d.ts +1 -1
- package/dist/control/state.d.ts +1 -1
- package/dist/framer/adapter.d.ts +1 -1
- package/dist/framer/client.d.ts +4 -4
- package/dist/framer/external.d.ts +5 -5
- package/dist/framer/index.d.ts +1 -1
- package/dist/framer/iterator.d.ts +1 -1
- package/dist/framer/streamer.d.ts +1 -1
- package/dist/framer/writer.d.ts +1 -1
- package/dist/hardware/client.d.ts +9 -0
- package/dist/hardware/device/client.d.ts +16 -0
- package/dist/hardware/device/device.spec.d.ts +1 -0
- package/dist/hardware/device/external.d.ts +3 -0
- package/dist/hardware/device/index.d.ts +1 -0
- package/dist/hardware/device/payload.d.ts +29 -0
- package/dist/hardware/device/retriever.d.ts +7 -0
- package/dist/hardware/device/writer.d.ts +8 -0
- package/dist/hardware/external.d.ts +2 -0
- package/dist/hardware/index.d.ts +1 -0
- package/dist/hardware/rack/client.d.ts +29 -0
- package/dist/hardware/rack/external.d.ts +3 -0
- package/dist/hardware/rack/index.d.ts +1 -0
- package/dist/hardware/rack/payload.d.ts +25 -0
- package/dist/hardware/rack/rack.spec.d.ts +1 -0
- package/dist/hardware/rack/retriever.d.ts +7 -0
- package/dist/hardware/rack/writer.d.ts +8 -0
- package/dist/hardware/task/client.d.ts +12 -0
- package/dist/hardware/task/external.d.ts +3 -0
- package/dist/hardware/task/index.d.ts +1 -0
- package/dist/hardware/task/payload.d.ts +40 -0
- package/dist/hardware/task/retriever.d.ts +20 -0
- package/dist/hardware/task/task.spec.d.ts +1 -0
- package/dist/hardware/task/writer.d.ts +8 -0
- package/dist/index.d.ts +1 -0
- package/dist/label/client.d.ts +2 -2
- package/dist/label/external.d.ts +4 -4
- package/dist/label/index.d.ts +1 -1
- package/dist/label/retriever.d.ts +1 -1
- package/dist/label/writer.d.ts +1 -1
- package/dist/ontology/client.d.ts +4 -4
- package/dist/ontology/external.d.ts +3 -3
- package/dist/ontology/group/client.d.ts +2 -2
- package/dist/ontology/group/external.d.ts +2 -2
- package/dist/ontology/group/group.d.ts +1 -1
- package/dist/ontology/group/index.d.ts +1 -1
- package/dist/ontology/group/writer.d.ts +2 -2
- package/dist/ontology/index.d.ts +1 -1
- package/dist/ontology/payload.d.ts +47 -47
- package/dist/ontology/retriever.d.ts +1 -1
- package/dist/ontology/signals.d.ts +6 -2
- package/dist/ontology/writer.d.ts +1 -1
- package/dist/ranger/alias.d.ts +1 -1
- package/dist/ranger/client.d.ts +4 -4
- package/dist/ranger/external.d.ts +6 -6
- package/dist/ranger/index.d.ts +1 -1
- package/dist/ranger/kv.d.ts +1 -1
- package/dist/ranger/range.d.ts +2 -2
- package/dist/ranger/writer.d.ts +1 -1
- package/dist/signals/external.d.ts +1 -1
- package/dist/signals/index.d.ts +1 -1
- package/dist/user/index.d.ts +1 -1
- package/dist/workspace/client.d.ts +4 -4
- package/dist/workspace/external.d.ts +2 -2
- package/dist/workspace/index.d.ts +1 -1
- package/dist/workspace/lineplot/client.d.ts +2 -2
- package/dist/workspace/lineplot/external.d.ts +2 -2
- package/dist/workspace/lineplot/index.d.ts +1 -1
- package/dist/workspace/lineplot/retriever.d.ts +1 -1
- package/dist/workspace/lineplot/writer.d.ts +1 -1
- package/dist/workspace/pid/client.d.ts +2 -2
- package/dist/workspace/pid/external.d.ts +2 -2
- package/dist/workspace/pid/index.d.ts +1 -1
- package/dist/workspace/pid/writer.d.ts +1 -1
- package/dist/workspace/retriever.d.ts +1 -1
- package/package.json +8 -8
- package/src/channel/client.ts +11 -9
- package/src/channel/payload.ts +1 -0
- package/src/channel/retriever.ts +13 -15
- package/src/client.ts +23 -0
- package/src/connection/checker.ts +4 -2
- package/src/framer/frame.spec.ts +67 -79
- package/src/framer/frame.ts +1 -1
- package/src/framer/writer.ts +1 -1
- package/src/hardware/client.ts +24 -0
- package/src/hardware/device/client.ts +54 -0
- package/src/hardware/device/device.spec.ts +45 -0
- package/src/hardware/device/external.ts +3 -0
- package/src/hardware/device/index.ts +1 -0
- package/src/hardware/device/payload.ts +18 -0
- package/src/hardware/device/retriever.ts +39 -0
- package/src/hardware/device/writer.ts +48 -0
- package/src/hardware/external.ts +11 -0
- package/src/hardware/index.ts +10 -0
- package/src/hardware/rack/client.ts +96 -0
- package/src/hardware/rack/external.ts +3 -0
- package/src/hardware/rack/index.ts +1 -0
- package/src/hardware/rack/payload.ts +17 -0
- package/src/hardware/rack/rack.spec.ts +29 -0
- package/src/hardware/rack/retriever.ts +32 -0
- package/src/hardware/rack/writer.ts +57 -0
- package/src/hardware/task/client.ts +47 -0
- package/src/hardware/task/external.ts +12 -0
- package/src/hardware/task/index.ts +10 -0
- package/src/hardware/task/payload.ts +37 -0
- package/src/hardware/task/retriever.ts +45 -0
- package/src/hardware/task/task.spec.ts +47 -0
- package/src/hardware/task/writer.ts +63 -0
- package/src/index.ts +1 -0
- package/src/label/writer.ts +1 -1
- package/src/ontology/client.ts +1 -1
- package/src/ontology/group/client.ts +3 -3
- package/src/ontology/payload.ts +1 -0
- package/src/ontology/signals.ts +4 -0
- package/vite.config.ts +1 -1
- package/.pytest_cache/README.md +0 -8
- package/dist/cdc/external.d.ts +0 -1
- package/dist/cdc/index.d.ts +0 -1
- package/dist/cdc/observable.d.ts +0 -17
- package/dist/ontology/cdc.d.ts +0 -25
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
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<"pid">, z.ZodLiteral<"lineplot">]>;
|
|
2
|
+
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<"pid">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">]>;
|
|
3
3
|
export type ResourceType = z.infer<typeof resourceTypeZ>;
|
|
4
4
|
export declare const idZ: z.ZodObject<{
|
|
5
|
-
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<"pid">, z.ZodLiteral<"lineplot">]>;
|
|
5
|
+
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<"pid">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">]>;
|
|
6
6
|
key: z.ZodString;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
8
|
key: string;
|
|
9
|
-
type: "user" | "
|
|
9
|
+
type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
|
|
10
10
|
}, {
|
|
11
11
|
key: string;
|
|
12
|
-
type: "user" | "
|
|
12
|
+
type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
|
|
13
13
|
}>;
|
|
14
14
|
export declare const stringIDZ: z.ZodEffects<z.ZodString, {
|
|
15
|
-
type: "user" | "
|
|
15
|
+
type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
|
|
16
16
|
key: string;
|
|
17
17
|
}, string>;
|
|
18
18
|
export declare const crudeIDZ: z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
19
|
-
type: "user" | "
|
|
19
|
+
type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
|
|
20
20
|
key: string;
|
|
21
21
|
}, string>, z.ZodObject<{
|
|
22
|
-
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<"pid">, z.ZodLiteral<"lineplot">]>;
|
|
22
|
+
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<"pid">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">]>;
|
|
23
23
|
key: z.ZodString;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
25
|
key: string;
|
|
26
|
-
type: "user" | "
|
|
26
|
+
type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
|
|
27
27
|
}, {
|
|
28
28
|
key: string;
|
|
29
|
-
type: "user" | "
|
|
29
|
+
type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
|
|
30
30
|
}>]>;
|
|
31
31
|
export declare class ID {
|
|
32
32
|
type: ResourceType;
|
|
@@ -35,20 +35,20 @@ export declare class ID {
|
|
|
35
35
|
toString(): string;
|
|
36
36
|
get payload(): z.infer<typeof idZ>;
|
|
37
37
|
static readonly z: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
38
|
-
type: "user" | "
|
|
38
|
+
type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
|
|
39
39
|
key: string;
|
|
40
40
|
}, string>, z.ZodObject<{
|
|
41
|
-
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<"pid">, z.ZodLiteral<"lineplot">]>;
|
|
41
|
+
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<"pid">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">]>;
|
|
42
42
|
key: z.ZodString;
|
|
43
43
|
}, "strip", z.ZodTypeAny, {
|
|
44
44
|
key: string;
|
|
45
|
-
type: "user" | "
|
|
45
|
+
type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
|
|
46
46
|
}, {
|
|
47
47
|
key: string;
|
|
48
|
-
type: "user" | "
|
|
48
|
+
type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
|
|
49
49
|
}>]>, z.ZodType<ID, z.ZodTypeDef, ID>]>, ID, string | ID | {
|
|
50
50
|
key: string;
|
|
51
|
-
type: "user" | "
|
|
51
|
+
type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
|
|
52
52
|
}>;
|
|
53
53
|
}
|
|
54
54
|
export declare const Root: ID;
|
|
@@ -61,7 +61,7 @@ export declare const schemaFieldZ: z.ZodObject<{
|
|
|
61
61
|
}>;
|
|
62
62
|
export type SchemaField = z.infer<typeof schemaFieldZ>;
|
|
63
63
|
export declare const schemaZ: z.ZodObject<{
|
|
64
|
-
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<"pid">, z.ZodLiteral<"lineplot">]>;
|
|
64
|
+
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<"pid">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">]>;
|
|
65
65
|
fields: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
66
66
|
type: z.ZodNumber;
|
|
67
67
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -70,12 +70,12 @@ export declare const schemaZ: z.ZodObject<{
|
|
|
70
70
|
type: number;
|
|
71
71
|
}>>;
|
|
72
72
|
}, "strip", z.ZodTypeAny, {
|
|
73
|
-
type: "user" | "
|
|
73
|
+
type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
|
|
74
74
|
fields: Record<string, {
|
|
75
75
|
type: number;
|
|
76
76
|
}>;
|
|
77
77
|
}, {
|
|
78
|
-
type: "user" | "
|
|
78
|
+
type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
|
|
79
79
|
fields: Record<string, {
|
|
80
80
|
type: number;
|
|
81
81
|
}>;
|
|
@@ -83,24 +83,24 @@ export declare const schemaZ: z.ZodObject<{
|
|
|
83
83
|
export type Schema = z.infer<typeof schemaZ>;
|
|
84
84
|
export declare const resourceSchemaZ: z.ZodEffects<z.ZodObject<{
|
|
85
85
|
id: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
86
|
-
type: "user" | "
|
|
86
|
+
type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
|
|
87
87
|
key: string;
|
|
88
88
|
}, string>, z.ZodObject<{
|
|
89
|
-
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<"pid">, z.ZodLiteral<"lineplot">]>;
|
|
89
|
+
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<"pid">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">]>;
|
|
90
90
|
key: z.ZodString;
|
|
91
91
|
}, "strip", z.ZodTypeAny, {
|
|
92
92
|
key: string;
|
|
93
|
-
type: "user" | "
|
|
93
|
+
type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
|
|
94
94
|
}, {
|
|
95
95
|
key: string;
|
|
96
|
-
type: "user" | "
|
|
96
|
+
type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
|
|
97
97
|
}>]>, z.ZodType<ID, z.ZodTypeDef, ID>]>, ID, string | ID | {
|
|
98
98
|
key: string;
|
|
99
|
-
type: "user" | "
|
|
99
|
+
type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
|
|
100
100
|
}>;
|
|
101
101
|
name: z.ZodString;
|
|
102
102
|
schema: z.ZodOptional<z.ZodObject<{
|
|
103
|
-
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<"pid">, z.ZodLiteral<"lineplot">]>;
|
|
103
|
+
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<"pid">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">]>;
|
|
104
104
|
fields: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
105
105
|
type: z.ZodNumber;
|
|
106
106
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -109,12 +109,12 @@ export declare const resourceSchemaZ: z.ZodEffects<z.ZodObject<{
|
|
|
109
109
|
type: number;
|
|
110
110
|
}>>;
|
|
111
111
|
}, "strip", z.ZodTypeAny, {
|
|
112
|
-
type: "user" | "
|
|
112
|
+
type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
|
|
113
113
|
fields: Record<string, {
|
|
114
114
|
type: number;
|
|
115
115
|
}>;
|
|
116
116
|
}, {
|
|
117
|
-
type: "user" | "
|
|
117
|
+
type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
|
|
118
118
|
fields: Record<string, {
|
|
119
119
|
type: number;
|
|
120
120
|
}>;
|
|
@@ -124,7 +124,7 @@ export declare const resourceSchemaZ: z.ZodEffects<z.ZodObject<{
|
|
|
124
124
|
name: string;
|
|
125
125
|
id: ID;
|
|
126
126
|
schema?: {
|
|
127
|
-
type: "user" | "
|
|
127
|
+
type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
|
|
128
128
|
fields: Record<string, {
|
|
129
129
|
type: number;
|
|
130
130
|
}>;
|
|
@@ -134,13 +134,13 @@ export declare const resourceSchemaZ: z.ZodEffects<z.ZodObject<{
|
|
|
134
134
|
name: string;
|
|
135
135
|
id: (string | ID | {
|
|
136
136
|
key: string;
|
|
137
|
-
type: "user" | "
|
|
137
|
+
type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
|
|
138
138
|
}) & (string | ID | {
|
|
139
139
|
key: string;
|
|
140
|
-
type: "user" | "
|
|
140
|
+
type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
|
|
141
141
|
} | undefined);
|
|
142
142
|
schema?: {
|
|
143
|
-
type: "user" | "
|
|
143
|
+
type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
|
|
144
144
|
fields: Record<string, {
|
|
145
145
|
type: number;
|
|
146
146
|
}>;
|
|
@@ -150,7 +150,7 @@ export declare const resourceSchemaZ: z.ZodEffects<z.ZodObject<{
|
|
|
150
150
|
name: string;
|
|
151
151
|
id: ID;
|
|
152
152
|
schema?: {
|
|
153
|
-
type: "user" | "
|
|
153
|
+
type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
|
|
154
154
|
fields: Record<string, {
|
|
155
155
|
type: number;
|
|
156
156
|
}>;
|
|
@@ -161,13 +161,13 @@ export declare const resourceSchemaZ: z.ZodEffects<z.ZodObject<{
|
|
|
161
161
|
name: string;
|
|
162
162
|
id: (string | ID | {
|
|
163
163
|
key: string;
|
|
164
|
-
type: "user" | "
|
|
164
|
+
type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
|
|
165
165
|
}) & (string | ID | {
|
|
166
166
|
key: string;
|
|
167
|
-
type: "user" | "
|
|
167
|
+
type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
|
|
168
168
|
} | undefined);
|
|
169
169
|
schema?: {
|
|
170
|
-
type: "user" | "
|
|
170
|
+
type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
|
|
171
171
|
fields: Record<string, {
|
|
172
172
|
type: number;
|
|
173
173
|
}>;
|
|
@@ -177,37 +177,37 @@ export declare const resourceSchemaZ: z.ZodEffects<z.ZodObject<{
|
|
|
177
177
|
export type Resource = z.infer<typeof resourceSchemaZ>;
|
|
178
178
|
export declare const relationshipSchemaZ: z.ZodObject<{
|
|
179
179
|
from: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
180
|
-
type: "user" | "
|
|
180
|
+
type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
|
|
181
181
|
key: string;
|
|
182
182
|
}, string>, z.ZodObject<{
|
|
183
|
-
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<"pid">, z.ZodLiteral<"lineplot">]>;
|
|
183
|
+
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<"pid">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">]>;
|
|
184
184
|
key: z.ZodString;
|
|
185
185
|
}, "strip", z.ZodTypeAny, {
|
|
186
186
|
key: string;
|
|
187
|
-
type: "user" | "
|
|
187
|
+
type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
|
|
188
188
|
}, {
|
|
189
189
|
key: string;
|
|
190
|
-
type: "user" | "
|
|
190
|
+
type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
|
|
191
191
|
}>]>, z.ZodType<ID, z.ZodTypeDef, ID>]>, ID, string | ID | {
|
|
192
192
|
key: string;
|
|
193
|
-
type: "user" | "
|
|
193
|
+
type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
|
|
194
194
|
}>;
|
|
195
195
|
type: z.ZodString;
|
|
196
196
|
to: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
197
|
-
type: "user" | "
|
|
197
|
+
type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
|
|
198
198
|
key: string;
|
|
199
199
|
}, string>, z.ZodObject<{
|
|
200
|
-
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<"pid">, z.ZodLiteral<"lineplot">]>;
|
|
200
|
+
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<"pid">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">]>;
|
|
201
201
|
key: z.ZodString;
|
|
202
202
|
}, "strip", z.ZodTypeAny, {
|
|
203
203
|
key: string;
|
|
204
|
-
type: "user" | "
|
|
204
|
+
type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
|
|
205
205
|
}, {
|
|
206
206
|
key: string;
|
|
207
|
-
type: "user" | "
|
|
207
|
+
type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
|
|
208
208
|
}>]>, z.ZodType<ID, z.ZodTypeDef, ID>]>, ID, string | ID | {
|
|
209
209
|
key: string;
|
|
210
|
-
type: "user" | "
|
|
210
|
+
type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
|
|
211
211
|
}>;
|
|
212
212
|
}, "strip", z.ZodTypeAny, {
|
|
213
213
|
type: string;
|
|
@@ -217,17 +217,17 @@ export declare const relationshipSchemaZ: z.ZodObject<{
|
|
|
217
217
|
type: string;
|
|
218
218
|
from: (string | ID | {
|
|
219
219
|
key: string;
|
|
220
|
-
type: "user" | "
|
|
220
|
+
type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
|
|
221
221
|
}) & (string | ID | {
|
|
222
222
|
key: string;
|
|
223
|
-
type: "user" | "
|
|
223
|
+
type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
|
|
224
224
|
} | undefined);
|
|
225
225
|
to: (string | ID | {
|
|
226
226
|
key: string;
|
|
227
|
-
type: "user" | "
|
|
227
|
+
type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
|
|
228
228
|
}) & (string | ID | {
|
|
229
229
|
key: string;
|
|
230
|
-
type: "user" | "
|
|
230
|
+
type: "user" | "cluster" | "label" | "builtin" | "channel" | "node" | "group" | "range" | "range-alias" | "workspace" | "pid" | "lineplot" | "rack";
|
|
231
231
|
} | undefined);
|
|
232
232
|
}>;
|
|
233
233
|
export type Relationship = z.infer<typeof relationshipSchemaZ>;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { observe, type change } from "@synnaxlabs/x";
|
|
2
2
|
import { type Client as FrameClient } from '../framer/client';
|
|
3
3
|
import { type Streamer as FrameStreamer } from '../framer/streamer';
|
|
4
|
-
import { ID, type Relationship, type Resource } from '
|
|
5
|
-
import { type Retriever } from '
|
|
4
|
+
import { ID, type Relationship, type Resource } from './payload';
|
|
5
|
+
import { type Retriever } from './retriever';
|
|
6
6
|
export type ResourceChange = change.Change<ID, Resource>;
|
|
7
|
+
export type ResourceSet = change.Set<ID, Resource>;
|
|
8
|
+
export type ResourceDelete = change.Delete<ID, Resource>;
|
|
7
9
|
export type RelationshipChange = change.Change<Relationship, undefined>;
|
|
10
|
+
export type RelationshipSet = change.Set<Relationship, undefined>;
|
|
11
|
+
export type RelationshipDelete = change.Delete<Relationship, undefined>;
|
|
8
12
|
export declare class ChangeTracker {
|
|
9
13
|
private readonly resourceObs;
|
|
10
14
|
private readonly relationshipObs;
|
package/dist/ranger/alias.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { type change } from "@synnaxlabs/x";
|
|
|
3
3
|
import { type channel } from '../channel';
|
|
4
4
|
import { type Key as ChannelKey } from '../channel/payload';
|
|
5
5
|
import { type Client as FrameClient } from '../framer/client';
|
|
6
|
-
import { type Key } from '
|
|
6
|
+
import { type Key } from './payload';
|
|
7
7
|
import { signals } from '../signals';
|
|
8
8
|
export declare const ALIAS_SET_NAME = "sy_range_alias_set";
|
|
9
9
|
export declare const ALIAS_DELETE_NAME = "sy_range_alias_delete";
|
package/dist/ranger/client.d.ts
CHANGED
|
@@ -3,10 +3,10 @@ import { type AsyncTermSearcher } from "@synnaxlabs/x";
|
|
|
3
3
|
import { type Retriever as ChannelRetriever } from '../channel/retriever';
|
|
4
4
|
import { type framer } from '../framer';
|
|
5
5
|
import { type label } from '../label';
|
|
6
|
-
import { type NewPayload, type Key, type Keys, type Name, type Names } from '
|
|
7
|
-
import { Range } from '
|
|
8
|
-
import { type Retriever } from '
|
|
9
|
-
import { type Writer } from '
|
|
6
|
+
import { type NewPayload, type Key, type Keys, type Name, type Names } from './payload';
|
|
7
|
+
import { Range } from './range';
|
|
8
|
+
import { type Retriever } from './retriever';
|
|
9
|
+
import { type Writer } from './writer';
|
|
10
10
|
export declare class Client implements AsyncTermSearcher<string, Key, Range> {
|
|
11
11
|
private readonly frameClient;
|
|
12
12
|
private readonly retriever;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
3
|
-
export * from '
|
|
4
|
-
export * from '
|
|
5
|
-
export * from '
|
|
6
|
-
export type { Alias, AliasChange } from '
|
|
1
|
+
export * from './client';
|
|
2
|
+
export * from './writer';
|
|
3
|
+
export * from './payload';
|
|
4
|
+
export * from './range';
|
|
5
|
+
export * from './retriever';
|
|
6
|
+
export type { Alias, AliasChange } from './alias';
|
package/dist/ranger/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as ranger from '
|
|
1
|
+
export * as ranger from './external';
|
package/dist/ranger/kv.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type UnaryClient } from "@synnaxlabs/freighter";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import { type Key } from '
|
|
3
|
+
import { type Key } from './payload';
|
|
4
4
|
declare const getReqZ: z.ZodObject<{
|
|
5
5
|
range: z.ZodString;
|
|
6
6
|
keys: z.ZodArray<z.ZodString, "many">;
|
package/dist/ranger/range.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ import { type Retriever as ChannelRetriever } from '../channel/retriever';
|
|
|
4
4
|
import { type framer } from '../framer';
|
|
5
5
|
import { type label } from '../label';
|
|
6
6
|
import { type Label } from '../label/payload';
|
|
7
|
-
import { type Alias, type Aliaser } from '
|
|
8
|
-
import { type KV } from '
|
|
7
|
+
import { type Alias, type Aliaser } from './alias';
|
|
8
|
+
import { type KV } from './kv';
|
|
9
9
|
import { type signals } from '../signals';
|
|
10
10
|
export declare class Range {
|
|
11
11
|
key: string;
|
package/dist/ranger/writer.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type UnaryClient } from "@synnaxlabs/freighter";
|
|
2
|
-
import { type NewPayload, type Payload } from '
|
|
2
|
+
import { type NewPayload, type Payload } from './payload';
|
|
3
3
|
export declare class Writer {
|
|
4
4
|
client: UnaryClient;
|
|
5
5
|
constructor(client: UnaryClient);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from '
|
|
1
|
+
export * from './observable';
|
package/dist/signals/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as signals from '
|
|
1
|
+
export * as signals from './external';
|
package/dist/user/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as user from '
|
|
1
|
+
export * as user from './payload';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type UnaryClient } from "@synnaxlabs/freighter";
|
|
2
2
|
import { type UnknownRecord, type AsyncTermSearcher } from "@synnaxlabs/x";
|
|
3
|
-
import { linePlot } from '
|
|
4
|
-
import { type Key, type Workspace } from '
|
|
5
|
-
import { pid } from '
|
|
6
|
-
import { type CrudeWorkspace } from '
|
|
3
|
+
import { linePlot } from './lineplot';
|
|
4
|
+
import { type Key, type Workspace } from './payload';
|
|
5
|
+
import { pid } from './pid';
|
|
6
|
+
import { type CrudeWorkspace } from './writer';
|
|
7
7
|
export declare class Client implements AsyncTermSearcher<string, Key, Workspace> {
|
|
8
8
|
readonly pid: pid.Client;
|
|
9
9
|
readonly linePlot: linePlot.Client;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
1
|
+
export * from './payload';
|
|
2
|
+
export * from './client';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as workspace from '
|
|
1
|
+
export * as workspace from './external';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type UnaryClient } from "@synnaxlabs/freighter";
|
|
2
2
|
import { type UnknownRecord } from "@synnaxlabs/x";
|
|
3
|
-
import { type LinePlot, type Key, type Params } from '
|
|
4
|
-
import { type CrudeLinePlot } from '
|
|
3
|
+
import { type LinePlot, type Key, type Params } from './payload';
|
|
4
|
+
import { type CrudeLinePlot } from './writer';
|
|
5
5
|
export declare class Client {
|
|
6
6
|
private readonly writer;
|
|
7
7
|
private readonly retriever;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
1
|
+
export * from './payload';
|
|
2
|
+
export * from './client';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as linePlot from '
|
|
1
|
+
export * as linePlot from './external';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type UnaryClient } from "@synnaxlabs/freighter";
|
|
2
|
-
import { type LinePlot, type Params } from '
|
|
2
|
+
import { type LinePlot, type Params } from './payload';
|
|
3
3
|
export declare class Retriever {
|
|
4
4
|
private readonly ENDPOINT;
|
|
5
5
|
private readonly client;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type UnaryClient } from "@synnaxlabs/freighter";
|
|
2
2
|
import { type UnknownRecord } from "@synnaxlabs/x";
|
|
3
3
|
import { z } from "zod";
|
|
4
|
-
import { type LinePlot, type Params, type Key } from '
|
|
4
|
+
import { type LinePlot, type Params, type Key } from './payload';
|
|
5
5
|
export declare const crudeLinePlotZ: z.ZodObject<{
|
|
6
6
|
name: z.ZodString;
|
|
7
7
|
key: z.ZodOptional<z.ZodString>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type UnaryClient } from "@synnaxlabs/freighter";
|
|
2
2
|
import { type UnknownRecord } from "@synnaxlabs/x";
|
|
3
|
-
import { type Key, type Params, type PID } from '
|
|
4
|
-
import { type UncreatedPID } from '
|
|
3
|
+
import { type Key, type Params, type PID } from './payload';
|
|
4
|
+
import { type UncreatedPID } from './writer';
|
|
5
5
|
export declare class Client {
|
|
6
6
|
private readonly writer;
|
|
7
7
|
private readonly retriever;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from '
|
|
2
|
-
export * from '
|
|
1
|
+
export * from './payload';
|
|
2
|
+
export * from './client';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * as pid from '
|
|
1
|
+
export * as pid from './external';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type UnaryClient } from "@synnaxlabs/freighter";
|
|
2
2
|
import { type UnknownRecord } from "@synnaxlabs/x";
|
|
3
3
|
import { z } from "zod";
|
|
4
|
-
import { type PID, type Params, type Key } from '
|
|
4
|
+
import { type PID, type Params, type Key } from './payload';
|
|
5
5
|
export declare const crudePIDz: z.ZodObject<{
|
|
6
6
|
name: z.ZodString;
|
|
7
7
|
key: z.ZodOptional<z.ZodString>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type UnaryClient } from "@synnaxlabs/freighter";
|
|
2
|
-
import { type Params, type Workspace } from '
|
|
2
|
+
import { type Params, type Workspace } from './payload';
|
|
3
3
|
export declare class Retriever {
|
|
4
4
|
private static readonly ENDPOINT;
|
|
5
5
|
private readonly client;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synnaxlabs/client",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.14.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "The Client Library for Synnax",
|
|
7
7
|
"repository": "https://github.com/synnaxlabs/synnax/tree/main/client/ts",
|
|
@@ -17,18 +17,18 @@
|
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"zod": "3.22.4",
|
|
20
|
-
"@synnaxlabs/freighter": "0.
|
|
21
|
-
"@synnaxlabs/x": "0.
|
|
20
|
+
"@synnaxlabs/freighter": "0.6.0",
|
|
21
|
+
"@synnaxlabs/x": "0.10.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/node": "^20.10.5",
|
|
25
|
-
"@vitest/coverage-v8": "^1.
|
|
25
|
+
"@vitest/coverage-v8": "^1.2.2",
|
|
26
26
|
"typescript": "^5.3.3",
|
|
27
|
-
"vite": "^5.
|
|
28
|
-
"vitest": "^1.
|
|
27
|
+
"vite": "^5.1.2",
|
|
28
|
+
"vitest": "^1.2.2",
|
|
29
|
+
"@synnaxlabs/tsconfig": "0.0.2",
|
|
29
30
|
"@synnaxlabs/vite-plugin": "0.0.1",
|
|
30
|
-
"
|
|
31
|
-
"eslint-config-synnaxlabs": "0.0.0"
|
|
31
|
+
"eslint-config-synnaxlabs": "0.0.1"
|
|
32
32
|
},
|
|
33
33
|
"main": "dist/client.cjs.js",
|
|
34
34
|
"module": "dist/client.es.js",
|