@synnaxlabs/client 0.50.0 → 0.52.3
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/client.cjs +58 -34
- package/dist/client.js +5059 -4398
- package/dist/eslint.config.d.ts +2 -2
- package/dist/eslint.config.d.ts.map +1 -1
- package/dist/src/access/policy/client.d.ts +90 -90
- package/dist/src/access/policy/payload.d.ts +17 -17
- package/dist/src/access/role/payload.d.ts +2 -2
- package/dist/src/arc/payload.d.ts +2 -2
- package/dist/src/channel/client.d.ts +4 -5
- package/dist/src/channel/client.d.ts.map +1 -1
- package/dist/src/channel/payload.d.ts +9 -11
- package/dist/src/channel/payload.d.ts.map +1 -1
- package/dist/src/channel/retriever.d.ts.map +1 -1
- package/dist/src/client.d.ts +10 -0
- package/dist/src/client.d.ts.map +1 -1
- package/dist/src/device/client.d.ts +14 -7
- package/dist/src/device/client.d.ts.map +1 -1
- package/dist/src/device/payload.d.ts +65 -32
- package/dist/src/device/payload.d.ts.map +1 -1
- package/dist/src/device/payload.spec.d.ts +2 -0
- package/dist/src/device/payload.spec.d.ts.map +1 -0
- package/dist/src/framer/adapter.d.ts.map +1 -1
- package/dist/src/framer/client.d.ts +2 -2
- package/dist/src/framer/frame.d.ts +5 -5
- package/dist/src/framer/frame.d.ts.map +1 -1
- package/dist/src/framer/streamer.d.ts +6 -6
- package/dist/src/framer/writer.d.ts +9 -9
- package/dist/src/group/access.spec.d.ts.map +1 -0
- package/dist/src/{ontology/group → group}/client.d.ts +3 -3
- package/dist/src/group/client.d.ts.map +1 -0
- package/dist/src/group/external.d.ts.map +1 -0
- package/dist/src/group/group.spec.d.ts.map +1 -0
- package/dist/src/group/index.d.ts.map +1 -0
- package/dist/src/{ontology/group → group}/payload.d.ts +1 -1
- package/dist/src/group/payload.d.ts.map +1 -0
- package/dist/src/index.d.ts +5 -5
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/label/client.d.ts +27 -13
- package/dist/src/label/client.d.ts.map +1 -1
- package/dist/src/label/payload.d.ts +15 -1
- package/dist/src/label/payload.d.ts.map +1 -1
- package/dist/src/lineplot/access.spec.d.ts.map +1 -0
- package/dist/src/{workspace/lineplot → lineplot}/client.d.ts +6 -6
- package/dist/src/lineplot/client.d.ts.map +1 -0
- package/dist/src/lineplot/external.d.ts.map +1 -0
- package/dist/src/lineplot/index.d.ts.map +1 -0
- package/dist/src/lineplot/lineplot.spec.d.ts.map +1 -0
- package/dist/src/lineplot/payload.d.ts.map +1 -0
- package/dist/src/log/access.spec.d.ts.map +1 -0
- package/dist/src/{workspace/log → log}/client.d.ts +6 -6
- package/dist/src/log/client.d.ts.map +1 -0
- package/dist/src/log/external.d.ts.map +1 -0
- package/dist/src/log/index.d.ts.map +1 -0
- package/dist/src/log/log.spec.d.ts.map +1 -0
- package/dist/src/log/payload.d.ts.map +1 -0
- package/dist/src/ontology/client.d.ts +6 -10
- package/dist/src/ontology/client.d.ts.map +1 -1
- package/dist/src/ontology/payload.d.ts +22 -22
- package/dist/src/ontology/writer.d.ts +15 -15
- package/dist/src/rack/client.d.ts +2 -2
- package/dist/src/rack/payload.d.ts +44 -16
- package/dist/src/rack/payload.d.ts.map +1 -1
- package/dist/src/ranger/alias/client.d.ts +17 -0
- package/dist/src/ranger/alias/client.d.ts.map +1 -0
- package/dist/src/ranger/alias/external.d.ts +2 -0
- package/dist/src/ranger/alias/external.d.ts.map +1 -0
- package/dist/src/ranger/alias/index.d.ts +2 -0
- package/dist/src/ranger/alias/index.d.ts.map +1 -0
- package/dist/src/ranger/{alias.d.ts → alias/payload.d.ts} +14 -20
- package/dist/src/ranger/alias/payload.d.ts.map +1 -0
- package/dist/src/ranger/client.d.ts +10 -10
- package/dist/src/ranger/client.d.ts.map +1 -1
- package/dist/src/ranger/external.d.ts +20 -0
- package/dist/src/ranger/external.d.ts.map +1 -1
- package/dist/src/ranger/kv/client.d.ts +14 -0
- package/dist/src/ranger/kv/client.d.ts.map +1 -0
- package/dist/src/ranger/kv/external.d.ts +2 -0
- package/dist/src/ranger/kv/external.d.ts.map +1 -0
- package/dist/src/ranger/kv/index.d.ts +2 -0
- package/dist/src/ranger/kv/index.d.ts.map +1 -0
- package/dist/src/ranger/kv/payload.d.ts +26 -0
- package/dist/src/ranger/kv/payload.d.ts.map +1 -0
- package/dist/src/ranger/payload.d.ts +45 -3
- package/dist/src/ranger/payload.d.ts.map +1 -1
- package/dist/src/ranger/writer.d.ts +18 -4
- package/dist/src/ranger/writer.d.ts.map +1 -1
- package/dist/src/schematic/access.spec.d.ts.map +1 -0
- package/dist/src/{workspace/schematic → schematic}/client.d.ts +6 -6
- package/dist/src/schematic/client.d.ts.map +1 -0
- package/dist/src/schematic/external.d.ts.map +1 -0
- package/dist/src/schematic/index.d.ts.map +1 -0
- package/dist/src/schematic/payload.d.ts.map +1 -0
- package/dist/src/schematic/schematic.spec.d.ts.map +1 -0
- package/dist/src/schematic/symbol/access.spec.d.ts.map +1 -0
- package/dist/src/{workspace/schematic → schematic}/symbol/client.d.ts +2 -2
- package/dist/src/schematic/symbol/client.d.ts.map +1 -0
- package/dist/src/schematic/symbol/client.spec.d.ts.map +1 -0
- package/dist/src/schematic/symbol/external.d.ts.map +1 -0
- package/dist/src/schematic/symbol/index.d.ts.map +1 -0
- package/dist/src/schematic/symbol/payload.d.ts.map +1 -0
- package/dist/src/status/payload.d.ts +43 -7
- package/dist/src/status/payload.d.ts.map +1 -1
- package/dist/src/table/access.spec.d.ts.map +1 -0
- package/dist/src/{workspace/table → table}/client.d.ts +6 -6
- package/dist/src/table/client.d.ts.map +1 -0
- package/dist/src/table/external.d.ts.map +1 -0
- package/dist/src/table/index.d.ts.map +1 -0
- package/dist/src/table/payload.d.ts.map +1 -0
- package/dist/src/table/table.spec.d.ts.map +1 -0
- package/dist/src/task/client.d.ts +2 -2
- package/dist/src/task/payload.d.ts +4 -4
- package/dist/src/task/payload.d.ts.map +1 -1
- package/dist/src/user/client.d.ts +2 -2
- package/dist/src/view/client.d.ts +2 -2
- package/dist/src/workspace/client.d.ts +2 -10
- package/dist/src/workspace/client.d.ts.map +1 -1
- package/eslint.config.ts +2 -3
- package/package.json +10 -9
- package/src/arc/lsp.spec.ts +155 -283
- package/src/channel/client.ts +3 -5
- package/src/channel/payload.spec.ts +0 -57
- package/src/channel/payload.ts +7 -14
- package/src/channel/retriever.ts +2 -3
- package/src/client.ts +16 -1
- package/src/device/client.ts +89 -43
- package/src/device/payload.spec.ts +118 -0
- package/src/device/payload.ts +55 -30
- package/src/errors.spec.ts +1 -1
- package/src/framer/adapter.ts +5 -7
- package/src/framer/frame.ts +8 -8
- package/src/{ontology/group → group}/access.spec.ts +7 -7
- package/src/{ontology/group → group}/client.ts +1 -1
- package/src/group/external.ts +11 -0
- package/src/{ontology/group → group}/group.spec.ts +9 -9
- package/src/{workspace/log → group}/index.ts +1 -1
- package/src/index.ts +5 -5
- package/src/label/access.spec.ts +1 -1
- package/src/label/client.ts +1 -1
- package/src/label/label.spec.ts +4 -4
- package/src/{workspace/lineplot → lineplot}/access.spec.ts +14 -14
- package/src/{workspace/lineplot → lineplot}/client.ts +13 -13
- package/src/lineplot/external.ts +11 -0
- package/src/{ontology/group → lineplot}/index.ts +1 -1
- package/src/{workspace/lineplot → lineplot}/lineplot.spec.ts +12 -12
- package/src/{workspace/log → log}/access.spec.ts +16 -18
- package/src/{workspace/log → log}/client.ts +13 -13
- package/src/{workspace/schematic/index.ts → log/external.ts} +2 -1
- package/src/{workspace/table → log}/index.ts +1 -1
- package/src/{workspace/log → log}/log.spec.ts +10 -10
- package/src/ontology/client.ts +1 -7
- package/src/ontology/ontology.spec.ts +12 -12
- package/src/ranger/{alias.ts → alias/client.ts} +6 -37
- package/src/{workspace/lineplot → ranger/alias}/external.ts +10 -2
- package/src/{workspace/lineplot → ranger/alias}/index.ts +1 -1
- package/src/ranger/alias/payload.ts +50 -0
- package/src/ranger/client.ts +26 -19
- package/src/ranger/external.ts +22 -0
- package/src/ranger/{kv.ts → kv/client.ts} +5 -19
- package/src/{workspace/schematic → ranger/kv}/external.ts +7 -3
- package/src/ranger/kv/index.ts +10 -0
- package/src/ranger/kv/payload.ts +32 -0
- package/src/ranger/payload.ts +2 -2
- package/src/ranger/ranger.spec.ts +1 -1
- package/src/{workspace/schematic → schematic}/access.spec.ts +14 -14
- package/src/{workspace/schematic → schematic}/client.ts +14 -14
- package/src/{workspace/log → schematic}/external.ts +3 -2
- package/src/schematic/index.ts +10 -0
- package/src/{workspace/schematic → schematic}/schematic.spec.ts +17 -17
- package/src/{workspace/schematic → schematic}/symbol/access.spec.ts +19 -19
- package/src/{workspace/schematic → schematic}/symbol/client.spec.ts +16 -16
- package/src/{workspace/schematic → schematic}/symbol/client.ts +8 -8
- package/src/{ontology/group → schematic/symbol}/external.ts +2 -2
- package/src/schematic/symbol/index.ts +10 -0
- package/src/status/payload.ts +1 -1
- package/src/status/status.spec.ts +2 -2
- package/src/{workspace/table → table}/access.spec.ts +14 -14
- package/src/{workspace/table → table}/client.ts +15 -12
- package/src/table/external.ts +11 -0
- package/src/table/index.ts +10 -0
- package/src/{workspace/table → table}/table.spec.ts +12 -12
- package/src/task/payload.ts +4 -5
- package/src/workspace/client.ts +0 -12
- package/dist/src/ontology/group/access.spec.d.ts.map +0 -1
- package/dist/src/ontology/group/client.d.ts.map +0 -1
- package/dist/src/ontology/group/external.d.ts.map +0 -1
- package/dist/src/ontology/group/group.spec.d.ts.map +0 -1
- package/dist/src/ontology/group/index.d.ts.map +0 -1
- package/dist/src/ontology/group/payload.d.ts.map +0 -1
- package/dist/src/ranger/alias.d.ts.map +0 -1
- package/dist/src/ranger/kv.d.ts +0 -48
- package/dist/src/ranger/kv.d.ts.map +0 -1
- package/dist/src/workspace/lineplot/access.spec.d.ts.map +0 -1
- package/dist/src/workspace/lineplot/client.d.ts.map +0 -1
- package/dist/src/workspace/lineplot/external.d.ts.map +0 -1
- package/dist/src/workspace/lineplot/index.d.ts.map +0 -1
- package/dist/src/workspace/lineplot/lineplot.spec.d.ts.map +0 -1
- package/dist/src/workspace/lineplot/payload.d.ts.map +0 -1
- package/dist/src/workspace/log/access.spec.d.ts.map +0 -1
- package/dist/src/workspace/log/client.d.ts.map +0 -1
- package/dist/src/workspace/log/external.d.ts.map +0 -1
- package/dist/src/workspace/log/index.d.ts.map +0 -1
- package/dist/src/workspace/log/log.spec.d.ts.map +0 -1
- package/dist/src/workspace/log/payload.d.ts.map +0 -1
- package/dist/src/workspace/schematic/access.spec.d.ts.map +0 -1
- package/dist/src/workspace/schematic/client.d.ts.map +0 -1
- package/dist/src/workspace/schematic/external.d.ts.map +0 -1
- package/dist/src/workspace/schematic/index.d.ts.map +0 -1
- package/dist/src/workspace/schematic/payload.d.ts.map +0 -1
- package/dist/src/workspace/schematic/schematic.spec.d.ts.map +0 -1
- package/dist/src/workspace/schematic/symbol/access.spec.d.ts.map +0 -1
- package/dist/src/workspace/schematic/symbol/client.d.ts.map +0 -1
- package/dist/src/workspace/schematic/symbol/client.spec.d.ts.map +0 -1
- package/dist/src/workspace/schematic/symbol/external.d.ts.map +0 -1
- package/dist/src/workspace/schematic/symbol/index.d.ts.map +0 -1
- package/dist/src/workspace/schematic/symbol/payload.d.ts.map +0 -1
- package/dist/src/workspace/table/access.spec.d.ts.map +0 -1
- package/dist/src/workspace/table/client.d.ts.map +0 -1
- package/dist/src/workspace/table/external.d.ts.map +0 -1
- package/dist/src/workspace/table/index.d.ts.map +0 -1
- package/dist/src/workspace/table/payload.d.ts.map +0 -1
- package/dist/src/workspace/table/table.spec.d.ts.map +0 -1
- package/src/workspace/schematic/symbol/external.ts +0 -11
- package/src/workspace/schematic/symbol/index.ts +0 -10
- package/src/workspace/table/external.ts +0 -11
- /package/dist/src/{ontology/group → group}/access.spec.d.ts +0 -0
- /package/dist/src/{ontology/group → group}/external.d.ts +0 -0
- /package/dist/src/{ontology/group → group}/group.spec.d.ts +0 -0
- /package/dist/src/{ontology/group → group}/index.d.ts +0 -0
- /package/dist/src/{workspace/lineplot → lineplot}/access.spec.d.ts +0 -0
- /package/dist/src/{workspace/lineplot → lineplot}/external.d.ts +0 -0
- /package/dist/src/{workspace/lineplot → lineplot}/index.d.ts +0 -0
- /package/dist/src/{workspace/lineplot → lineplot}/lineplot.spec.d.ts +0 -0
- /package/dist/src/{workspace/lineplot → lineplot}/payload.d.ts +0 -0
- /package/dist/src/{workspace/log → log}/access.spec.d.ts +0 -0
- /package/dist/src/{workspace/log → log}/external.d.ts +0 -0
- /package/dist/src/{workspace/log → log}/index.d.ts +0 -0
- /package/dist/src/{workspace/log → log}/log.spec.d.ts +0 -0
- /package/dist/src/{workspace/log → log}/payload.d.ts +0 -0
- /package/dist/src/{workspace/schematic → schematic}/access.spec.d.ts +0 -0
- /package/dist/src/{workspace/schematic → schematic}/external.d.ts +0 -0
- /package/dist/src/{workspace/schematic → schematic}/index.d.ts +0 -0
- /package/dist/src/{workspace/schematic → schematic}/payload.d.ts +0 -0
- /package/dist/src/{workspace/schematic → schematic}/schematic.spec.d.ts +0 -0
- /package/dist/src/{workspace/schematic → schematic}/symbol/access.spec.d.ts +0 -0
- /package/dist/src/{workspace/schematic → schematic}/symbol/client.spec.d.ts +0 -0
- /package/dist/src/{workspace/schematic → schematic}/symbol/external.d.ts +0 -0
- /package/dist/src/{workspace/schematic → schematic}/symbol/index.d.ts +0 -0
- /package/dist/src/{workspace/schematic → schematic}/symbol/payload.d.ts +0 -0
- /package/dist/src/{workspace/table → table}/access.spec.d.ts +0 -0
- /package/dist/src/{workspace/table → table}/external.d.ts +0 -0
- /package/dist/src/{workspace/table → table}/index.d.ts +0 -0
- /package/dist/src/{workspace/table → table}/payload.d.ts +0 -0
- /package/dist/src/{workspace/table → table}/table.spec.d.ts +0 -0
- /package/src/{ontology/group → group}/payload.ts +0 -0
- /package/src/{workspace/lineplot → lineplot}/payload.ts +0 -0
- /package/src/{workspace/log → log}/payload.ts +0 -0
- /package/src/{workspace/schematic → schematic}/payload.ts +0 -0
- /package/src/{workspace/schematic → schematic}/symbol/payload.ts +0 -0
- /package/src/{workspace/table → table}/payload.ts +0 -0
|
@@ -25,11 +25,39 @@ export declare const payloadZ: z.ZodObject<{
|
|
|
25
25
|
start: import('@synnaxlabs/x').TimeStamp;
|
|
26
26
|
end: import('@synnaxlabs/x').TimeStamp;
|
|
27
27
|
}>>, z.ZodCustom<TimeRange, TimeRange>]>;
|
|
28
|
-
color: z.ZodOptional<z.ZodString
|
|
28
|
+
color: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
|
|
29
|
+
rgba255: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
30
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
+
r: z.ZodNumber;
|
|
32
|
+
g: z.ZodNumber;
|
|
33
|
+
b: z.ZodNumber;
|
|
34
|
+
a: z.ZodNumber;
|
|
35
|
+
}, z.core.$strip>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number, number] | [number, number, number] | {
|
|
36
|
+
r: number;
|
|
37
|
+
g: number;
|
|
38
|
+
b: number;
|
|
39
|
+
a: number;
|
|
40
|
+
} | {
|
|
41
|
+
rgba255: [number, number, number, number];
|
|
42
|
+
}>>>;
|
|
29
43
|
labels: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
30
44
|
key: z.ZodUUID;
|
|
31
45
|
name: z.ZodString;
|
|
32
|
-
color: z.ZodString
|
|
46
|
+
color: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
|
|
47
|
+
rgba255: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
48
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
49
|
+
r: z.ZodNumber;
|
|
50
|
+
g: z.ZodNumber;
|
|
51
|
+
b: z.ZodNumber;
|
|
52
|
+
a: z.ZodNumber;
|
|
53
|
+
}, z.core.$strip>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number] | {
|
|
54
|
+
r: number;
|
|
55
|
+
g: number;
|
|
56
|
+
b: number;
|
|
57
|
+
a: number;
|
|
58
|
+
} | [number, number, number, number] | {
|
|
59
|
+
rgba255: [number, number, number, number];
|
|
60
|
+
}>>;
|
|
33
61
|
}, z.core.$strip>>, z.ZodPipe<z.ZodNull, z.ZodTransform<undefined, null>>]>>;
|
|
34
62
|
parent: z.ZodUnion<readonly [z.ZodNull, typeof payloadZ]>;
|
|
35
63
|
}, z.core.$strip>;
|
|
@@ -37,7 +65,21 @@ export type Payload = z.infer<typeof payloadZ>;
|
|
|
37
65
|
export declare const newZ: z.ZodObject<{
|
|
38
66
|
key: z.ZodOptional<z.ZodUUID>;
|
|
39
67
|
name: z.ZodString;
|
|
40
|
-
color: z.ZodOptional<z.ZodString
|
|
68
|
+
color: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
|
|
69
|
+
rgba255: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
70
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
71
|
+
r: z.ZodNumber;
|
|
72
|
+
g: z.ZodNumber;
|
|
73
|
+
b: z.ZodNumber;
|
|
74
|
+
a: z.ZodNumber;
|
|
75
|
+
}, z.core.$strip>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number, number] | [number, number, number] | {
|
|
76
|
+
r: number;
|
|
77
|
+
g: number;
|
|
78
|
+
b: number;
|
|
79
|
+
a: number;
|
|
80
|
+
} | {
|
|
81
|
+
rgba255: [number, number, number, number];
|
|
82
|
+
}>>>;
|
|
41
83
|
timeRange: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
42
84
|
start: z.ZodUnion<readonly [z.ZodCustom<import('@synnaxlabs/x').TimeStamp, import('@synnaxlabs/x').TimeStamp>, z.ZodPipe<z.ZodObject<{
|
|
43
85
|
value: z.ZodBigInt;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../src/ranger/payload.ts"],"names":[],"mappings":"AASA,OAAO,
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../src/ranger/payload.ts"],"names":[],"mappings":"AASA,OAAO,EAAe,SAAS,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,IAAI,WAAW,CAAC;AAC7B,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AACvC,eAAO,MAAM,KAAK,aAAoB,CAAC;AACvC,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC;AACzC,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAoBL,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,EAAE,OAAO,QAAQ,CAAC,CAAC;iBAU/D,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;AAE/C,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEQ,CAAC;AAC1B,MAAM,WAAW,GAAI,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC;CAAG"}
|
|
@@ -4,12 +4,11 @@ import { New, Payload } from './payload';
|
|
|
4
4
|
declare const createReqZ: z.ZodObject<{
|
|
5
5
|
parent: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
6
6
|
type: z.ZodEnum<{
|
|
7
|
-
channel: "channel";
|
|
8
|
-
status: "status";
|
|
9
7
|
label: "label";
|
|
10
8
|
log: "log";
|
|
11
9
|
builtin: "builtin";
|
|
12
10
|
cluster: "cluster";
|
|
11
|
+
channel: "channel";
|
|
13
12
|
node: "node";
|
|
14
13
|
group: "group";
|
|
15
14
|
range: "range";
|
|
@@ -27,17 +26,32 @@ declare const createReqZ: z.ZodObject<{
|
|
|
27
26
|
table: "table";
|
|
28
27
|
arc: "arc";
|
|
29
28
|
schematic_symbol: "schematic_symbol";
|
|
29
|
+
status: "status";
|
|
30
30
|
view: "view";
|
|
31
31
|
}>;
|
|
32
32
|
key: z.ZodString;
|
|
33
33
|
}, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
34
|
-
type: "
|
|
34
|
+
type: "label" | "log" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "role" | "table" | "arc" | "schematic_symbol" | "status" | "view";
|
|
35
35
|
key: string;
|
|
36
36
|
}, string>>]>>;
|
|
37
37
|
ranges: z.ZodArray<z.ZodObject<{
|
|
38
38
|
key: z.ZodOptional<z.ZodUUID>;
|
|
39
39
|
name: z.ZodString;
|
|
40
|
-
color: z.ZodOptional<z.ZodString
|
|
40
|
+
color: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>, z.ZodObject<{
|
|
41
|
+
rgba255: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
42
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
+
r: z.ZodNumber;
|
|
44
|
+
g: z.ZodNumber;
|
|
45
|
+
b: z.ZodNumber;
|
|
46
|
+
a: z.ZodNumber;
|
|
47
|
+
}, z.core.$strip>]>, z.ZodTransform<[number, number, number, number], string | [number, number, number, number] | [number, number, number] | {
|
|
48
|
+
r: number;
|
|
49
|
+
g: number;
|
|
50
|
+
b: number;
|
|
51
|
+
a: number;
|
|
52
|
+
} | {
|
|
53
|
+
rgba255: [number, number, number, number];
|
|
54
|
+
}>>>;
|
|
41
55
|
timeRange: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
42
56
|
start: z.ZodUnion<readonly [z.ZodCustom<import('@synnaxlabs/x').TimeStamp, import('@synnaxlabs/x').TimeStamp>, z.ZodPipe<z.ZodObject<{
|
|
43
57
|
value: z.ZodBigInt;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writer.d.ts","sourceRoot":"","sources":["../../../src/ranger/writer.ts"],"names":[],"mappings":"AASA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAe,KAAK,GAAG,EAAQ,KAAK,OAAO,EAAY,MAAM,kBAAkB,CAAC;AAIvF,QAAA,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"writer.d.ts","sourceRoot":"","sources":["../../../src/ranger/writer.ts"],"names":[],"mappings":"AASA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAe,KAAK,GAAG,EAAQ,KAAK,OAAO,EAAY,MAAM,kBAAkB,CAAC;AAIvF,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAsE,CAAC;AAEvF,UAAU,aAAc,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC;CAAG;AAC7D,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,aAAa,EAAE,QAAQ,CAAC;CAAG;AAQvE,qBAAa,MAAM;IACjB,MAAM,EAAE,WAAW,CAAC;gBAER,MAAM,EAAE,WAAW;IAIzB,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAUhD,MAAM,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAWlE,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAS5C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"access.spec.d.ts","sourceRoot":"","sources":["../../../src/schematic/access.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { UnaryClient } from '@synnaxlabs/freighter';
|
|
2
2
|
import { record } from '@synnaxlabs/x';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { ontology } from '
|
|
5
|
-
import { Key as WorkspaceKey } from '../payload';
|
|
4
|
+
import { ontology } from '../ontology';
|
|
6
5
|
import { Key, New, Params, Schematic } from './payload';
|
|
7
6
|
import { symbol } from './symbol';
|
|
7
|
+
import { workspace } from '../workspace';
|
|
8
8
|
declare const copyReqZ: z.ZodObject<{
|
|
9
9
|
key: z.ZodUUID;
|
|
10
10
|
name: z.ZodString;
|
|
@@ -37,8 +37,8 @@ export declare class Client {
|
|
|
37
37
|
readonly symbols: symbol.Client;
|
|
38
38
|
private readonly client;
|
|
39
39
|
constructor(client: UnaryClient);
|
|
40
|
-
create(workspace:
|
|
41
|
-
create(workspace:
|
|
40
|
+
create(workspace: workspace.Key, schematic: New): Promise<Schematic>;
|
|
41
|
+
create(workspace: workspace.Key, schematics: New[]): Promise<Schematic[]>;
|
|
42
42
|
rename(key: Key, name: string): Promise<void>;
|
|
43
43
|
setData(key: Key, data: record.Unknown): Promise<void>;
|
|
44
44
|
retrieve(args: RetrieveSingleParams): Promise<Schematic>;
|
|
@@ -48,10 +48,10 @@ export declare class Client {
|
|
|
48
48
|
}
|
|
49
49
|
export declare const ontologyID: ontology.CreateID<string>;
|
|
50
50
|
export declare const TYPE_ONTOLOGY_ID: {
|
|
51
|
-
type: "
|
|
51
|
+
type: "label" | "log" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "role" | "table" | "arc" | "schematic_symbol" | "status" | "view";
|
|
52
52
|
key: string;
|
|
53
53
|
} | {
|
|
54
|
-
type: "
|
|
54
|
+
type: "label" | "log" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "role" | "table" | "arc" | "schematic_symbol" | "status" | "view";
|
|
55
55
|
key: string;
|
|
56
56
|
};
|
|
57
57
|
export {};
|
|
@@ -0,0 +1 @@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AAC,SAAS,CAAC;IACpE,MAAM,CAAC,SAAS,EAAE,SAAS,CAAC,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IAgBzE,MAAM,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAU7C,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAUtD,QAAQ,CAAC,IAAI,EAAE,oBAAoB,GAAG,OAAO,CAAC,SAAS,CAAC;IACxD,QAAQ,CAAC,IAAI,EAAE,sBAAsB,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IAgB5D,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAUnC,IAAI,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC,SAAS,CAAC;CAU/C;AAED,eAAO,MAAM,UAAU,2BAA6C,CAAC;AACrE,eAAO,MAAM,gBAAgB;;;;;;CAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../src/schematic/external.ts"],"names":[],"mappings":"AASA,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schematic/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../src/schematic/payload.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,IAAI,WAAW,CAAC;AAC7B,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AACvC,MAAM,MAAM,MAAM,GAAG,GAAG,GAAG,GAAG,EAAE,CAAC;AAEjC,eAAO,MAAM,UAAU;;;;;iBAKrB,CAAC;AACH,MAAM,WAAW,SAAU,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC;CAAG;AAEhE,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;GAE4C,CAAC;AAC9D,MAAM,WAAW,GAAI,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC;CAAG;AAEpD,eAAO,MAAM,OAAO;;;;;iBAElB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schematic.spec.d.ts","sourceRoot":"","sources":["../../../src/schematic/schematic.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"access.spec.d.ts","sourceRoot":"","sources":["../../../../src/schematic/symbol/access.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UnaryClient } from '@synnaxlabs/freighter';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { group } from '../../group';
|
|
4
|
+
import { ontology } from '../../ontology';
|
|
5
5
|
import { Key, New, Symbol } from './payload';
|
|
6
6
|
declare const retrieveRequestZ: z.ZodObject<{
|
|
7
7
|
keys: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/schematic/symbol/client.ts"],"names":[],"mappings":"AASA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEvE,OAAO,EAAE,CAAC,EAAE,MAAM,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,OAAO,CAAC,MAAM,CAAC;IACrD,QAAQ,CAAC,IAAI,EAAE,sBAAsB,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;IAczD,MAAM,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAUxC,aAAa,IAAI,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC;CAU5C;AAED,eAAO,MAAM,UAAU,2BAAoD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.spec.d.ts","sourceRoot":"","sources":["../../../../src/schematic/symbol/client.spec.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../../src/schematic/symbol/external.ts"],"names":[],"mappings":"AASA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schematic/symbol/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,MAAM,MAAM,6BAA6B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../src/schematic/symbol/payload.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,IAAI,WAAW,CAAC;AAC7B,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AACvC,MAAM,MAAM,MAAM,GAAG,GAAG,GAAG,GAAG,EAAE,CAAC;AAEjC,eAAO,MAAM,OAAO;;;;;;iBAMlB,CAAC;AAEH,MAAM,WAAW,MAAO,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC;CAAG;AAE1D,eAAO,MAAM,MAAM;;;;;;;;;;iBAIjB,CAAC;AAEH,MAAM,WAAW,KAAM,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC;CAAG;AAExD,eAAO,MAAM,OAAO;;;;;;;;;;;;iBAIlB,CAAC;AAEH,MAAM,WAAW,MAAO,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC;CAAG;AAO1D,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQhB,CAAC;AAEH,MAAM,WAAW,IAAK,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,KAAK,CAAC;CAAG;AAEtD,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAKlB,CAAC;AAEH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAiC,CAAC;AACnD,MAAM,WAAW,GAAI,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC;CAAG;AAEpD,MAAM,WAAW,MAAO,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC;CAAG"}
|
|
@@ -5,7 +5,43 @@ export declare const keyZ: z.ZodString;
|
|
|
5
5
|
export type Key = z.infer<typeof keyZ>;
|
|
6
6
|
export type Params = Key | Key[];
|
|
7
7
|
export declare const statusZ: <Details extends z.ZodType = z.ZodNever>(detailsSchema?: Details) => status.StatusZodObject<Details>;
|
|
8
|
-
export declare const newZ: <DetailsSchema extends z.ZodType = z.ZodNever>(detailsSchema?: DetailsSchema) => z.ZodObject<(
|
|
8
|
+
export declare const newZ: <DetailsSchema extends z.ZodType = z.ZodNever>(detailsSchema?: DetailsSchema) => z.ZodObject<((Exclude<"message", "labels" | Extract<keyof ([DetailsSchema] extends [z.ZodNever] ? {} : {
|
|
9
|
+
details: DetailsSchema;
|
|
10
|
+
}), "labels">> | Exclude<"key", "labels" | Extract<keyof ([DetailsSchema] extends [z.ZodNever] ? {} : {
|
|
11
|
+
details: DetailsSchema;
|
|
12
|
+
}), "labels">> | Exclude<"name", "labels" | Extract<keyof ([DetailsSchema] extends [z.ZodNever] ? {} : {
|
|
13
|
+
details: DetailsSchema;
|
|
14
|
+
}), "labels">> | Exclude<"description", "labels" | Extract<keyof ([DetailsSchema] extends [z.ZodNever] ? {} : {
|
|
15
|
+
details: DetailsSchema;
|
|
16
|
+
}), "labels">> | Exclude<"variant", "labels" | Extract<keyof ([DetailsSchema] extends [z.ZodNever] ? {} : {
|
|
17
|
+
details: DetailsSchema;
|
|
18
|
+
}), "labels">> | Exclude<"labels", "labels" | Extract<keyof ([DetailsSchema] extends [z.ZodNever] ? {} : {
|
|
19
|
+
details: DetailsSchema;
|
|
20
|
+
}), "labels">> | Exclude<"time", "labels" | Extract<keyof ([DetailsSchema] extends [z.ZodNever] ? {} : {
|
|
21
|
+
details: DetailsSchema;
|
|
22
|
+
}), "labels">> | Exclude<keyof ([DetailsSchema] extends [z.ZodNever] ? {} : {
|
|
23
|
+
details: DetailsSchema;
|
|
24
|
+
}), "labels" | Extract<keyof ([DetailsSchema] extends [z.ZodNever] ? {} : {
|
|
25
|
+
details: DetailsSchema;
|
|
26
|
+
}), "labels">>) & "key" extends never ? (Omit<{
|
|
27
|
+
key: z.ZodString;
|
|
28
|
+
name: z.ZodDefault<z.ZodString>;
|
|
29
|
+
variant: typeof status.variantZ;
|
|
30
|
+
message: z.ZodString;
|
|
31
|
+
description: z.ZodOptional<z.ZodString>;
|
|
32
|
+
labels: z.ZodOptional<ReturnType<typeof import('@synnaxlabs/x/dist/src/array/nullable').nullableZ>>;
|
|
33
|
+
time: z.ZodUnion<readonly [z.ZodCustom<import('@synnaxlabs/x').TimeStamp, import('@synnaxlabs/x').TimeStamp>, z.ZodPipe<z.ZodObject<{
|
|
34
|
+
value: z.ZodBigInt;
|
|
35
|
+
}, z.core.$strip>, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, {
|
|
36
|
+
value: bigint;
|
|
37
|
+
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').TimeSpan, import('@synnaxlabs/x').TimeSpan>, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, import('@synnaxlabs/x').TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, [number, number, number] | [number, number] | [number]>>]>;
|
|
38
|
+
} & ([DetailsSchema] extends [z.ZodNever] ? {} : {
|
|
39
|
+
details: DetailsSchema;
|
|
40
|
+
}), "labels" | Extract<keyof ([DetailsSchema] extends [z.ZodNever] ? {} : {
|
|
41
|
+
details: DetailsSchema;
|
|
42
|
+
}), "labels">> extends infer T_1 ? { [k_1 in keyof T_1]: T_1[k_1]; } : never) & {
|
|
43
|
+
key: z.ZodOptional<z.ZodString>;
|
|
44
|
+
} : ((Omit<{
|
|
9
45
|
key: z.ZodString;
|
|
10
46
|
name: z.ZodDefault<z.ZodString>;
|
|
11
47
|
variant: typeof status.variantZ;
|
|
@@ -16,24 +52,24 @@ export declare const newZ: <DetailsSchema extends z.ZodType = z.ZodNever>(detail
|
|
|
16
52
|
value: z.ZodBigInt;
|
|
17
53
|
}, z.core.$strip>, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, {
|
|
18
54
|
value: bigint;
|
|
19
|
-
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').TimeSpan, import('@synnaxlabs/x').TimeSpan>, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, import('@synnaxlabs/x').TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, [number, number
|
|
55
|
+
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').TimeSpan, import('@synnaxlabs/x').TimeSpan>, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, import('@synnaxlabs/x').TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, [number, number, number] | [number, number] | [number]>>]>;
|
|
20
56
|
} & ([DetailsSchema] extends [z.ZodNever] ? {} : {
|
|
21
57
|
details: DetailsSchema;
|
|
22
58
|
}), "labels" | Extract<keyof ([DetailsSchema] extends [z.ZodNever] ? {} : {
|
|
23
59
|
details: DetailsSchema;
|
|
24
|
-
}), "labels">> extends infer
|
|
25
|
-
|
|
26
|
-
}
|
|
60
|
+
}), "labels">> extends infer T_3 ? { [k_1 in keyof T_3]: T_3[k_1]; } : never) extends infer T_2 extends z.core.util.SomeObject ? { [K in keyof T_2 as K extends "key" ? never : K]: T_2[K]; } : never) & {
|
|
61
|
+
key: z.ZodOptional<z.ZodString>;
|
|
62
|
+
}) extends infer T ? { [k in keyof T]: T[k]; } : never, z.core.$strip>;
|
|
27
63
|
export type New<DetailsSchema extends z.ZodType = z.ZodNever> = z.input<ReturnType<typeof newZ<DetailsSchema>>>;
|
|
28
64
|
export type Status<Details extends z.ZodType = z.ZodNever> = status.Status<Details>;
|
|
29
65
|
export declare const SET_CHANNEL_NAME = "sy_status_set";
|
|
30
66
|
export declare const DELETE_CHANNEL_NAME = "sy_status_delete";
|
|
31
67
|
export declare const ontologyID: ontology.CreateID<string>;
|
|
32
68
|
export declare const TYPE_ONTOLOGY_ID: {
|
|
33
|
-
type: "
|
|
69
|
+
type: "label" | "log" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "role" | "table" | "arc" | "schematic_symbol" | "status" | "view";
|
|
34
70
|
key: string;
|
|
35
71
|
} | {
|
|
36
|
-
type: "
|
|
72
|
+
type: "label" | "log" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "role" | "table" | "arc" | "schematic_symbol" | "status" | "view";
|
|
37
73
|
key: string;
|
|
38
74
|
};
|
|
39
75
|
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../src/status/payload.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,CAAC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CAAC,CAAC,OAAO,GAAG,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,KAAK,CACrE,UAAU,CAAC,OAAO,IAAI,CAAC,aAAa,CAAC,CAAC,CACvC,CAAC;AAEF,MAAM,MAAM,MAAM,CAAC,OAAO,SAAS,CAAC,CAAC,OAAO,GAAG,CAAC,CAAC,QAAQ,IAAI,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AAEpF,eAAO,MAAM,gBAAgB,kBAAkB,CAAC;AAChD,eAAO,MAAM,mBAAmB,qBAAqB,CAAC;AAEtD,eAAO,MAAM,UAAU,2BAA0C,CAAC;AAClE,eAAO,MAAM,gBAAgB;;;;;;CAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"access.spec.d.ts","sourceRoot":"","sources":["../../../src/table/access.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { UnaryClient } from '@synnaxlabs/freighter';
|
|
2
2
|
import { record } from '@synnaxlabs/x';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { ontology } from '
|
|
5
|
-
import { Key as WorkspaceKey } from '../payload';
|
|
4
|
+
import { ontology } from '../ontology';
|
|
6
5
|
import { Key, New, Params, Table } from './payload';
|
|
6
|
+
import { workspace } from '../workspace';
|
|
7
7
|
declare const retrieveReqZ: z.ZodObject<{
|
|
8
8
|
keys: z.ZodArray<z.ZodUUID>;
|
|
9
9
|
}, z.core.$strip>;
|
|
@@ -29,8 +29,8 @@ export type RetrieveMultipleParams = z.input<typeof retrieveReqZ>;
|
|
|
29
29
|
export declare class Client {
|
|
30
30
|
private readonly client;
|
|
31
31
|
constructor(client: UnaryClient);
|
|
32
|
-
create(workspace:
|
|
33
|
-
create(workspace:
|
|
32
|
+
create(workspace: workspace.Key, table: New): Promise<Table>;
|
|
33
|
+
create(workspace: workspace.Key, tables: New[]): Promise<Table[]>;
|
|
34
34
|
rename(key: Key, name: string): Promise<void>;
|
|
35
35
|
setData(key: Key, data: record.Unknown): Promise<void>;
|
|
36
36
|
retrieve(args: RetrieveSingleParams): Promise<Table>;
|
|
@@ -39,10 +39,10 @@ export declare class Client {
|
|
|
39
39
|
}
|
|
40
40
|
export declare const ontologyID: ontology.CreateID<string>;
|
|
41
41
|
export declare const TYPE_ONTOLOGY_ID: {
|
|
42
|
-
type: "
|
|
42
|
+
type: "label" | "log" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "role" | "table" | "arc" | "schematic_symbol" | "status" | "view";
|
|
43
43
|
key: string;
|
|
44
44
|
} | {
|
|
45
|
-
type: "
|
|
45
|
+
type: "label" | "log" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "role" | "table" | "arc" | "schematic_symbol" | "status" | "view";
|
|
46
46
|
key: string;
|
|
47
47
|
};
|
|
48
48
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/table/client.ts"],"names":[],"mappings":"AASA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAS,KAAK,MAAM,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EACL,KAAK,GAAG,EAER,KAAK,GAAG,EAER,KAAK,MAAM,EAEX,KAAK,KAAK,EACX,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAOxC,QAAA,MAAM,YAAY;;iBAAmC,CAAC;AACtD,QAAA,MAAM,mBAAmB;;;;;;GAEmB,CAAC;AAE7C,eAAO,MAAM,a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AAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/table/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../src/table/payload.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,IAAI,WAAW,CAAC;AAC7B,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AACvC,MAAM,MAAM,MAAM,GAAG,GAAG,GAAG,GAAG,EAAE,CAAC;AAEjC,eAAO,MAAM,MAAM;;;;iBAIjB,CAAC;AACH,MAAM,WAAW,KAAM,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC;CAAG;AAExD,eAAO,MAAM,IAAI;;;;;;;;;;;;GAE4C,CAAC;AAC9D,MAAM,WAAW,GAAI,SAAQ,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC;CAAG;AAEpD,eAAO,MAAM,OAAO;;;;iBAElB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table.spec.d.ts","sourceRoot":"","sources":["../../../src/table/table.spec.ts"],"names":[],"mappings":""}
|
|
@@ -178,10 +178,10 @@ export declare class Client {
|
|
|
178
178
|
}
|
|
179
179
|
export declare const ontologyID: ontology.CreateID<string>;
|
|
180
180
|
export declare const TYPE_ONTOLOGY_ID: {
|
|
181
|
-
type: "
|
|
181
|
+
type: "label" | "log" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "role" | "table" | "arc" | "schematic_symbol" | "status" | "view";
|
|
182
182
|
key: string;
|
|
183
183
|
} | {
|
|
184
|
-
type: "
|
|
184
|
+
type: "label" | "log" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "role" | "table" | "arc" | "schematic_symbol" | "status" | "view";
|
|
185
185
|
key: string;
|
|
186
186
|
};
|
|
187
187
|
export declare const statusKey: (key: Key) => string;
|
|
@@ -28,7 +28,7 @@ export declare const newStatusZ: <DataSchema extends z.ZodType>(data: DataSchema
|
|
|
28
28
|
value: z.ZodBigInt;
|
|
29
29
|
}, z.core.$strip>, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, {
|
|
30
30
|
value: bigint;
|
|
31
|
-
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').TimeSpan, import('@synnaxlabs/x').TimeSpan>, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, import('@synnaxlabs/x').TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, [number, number
|
|
31
|
+
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').TimeSpan, import('@synnaxlabs/x').TimeSpan>, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, import('@synnaxlabs/x').TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, [number, number, number] | [number, number] | [number]>>]>;
|
|
32
32
|
details: z.ZodObject<{
|
|
33
33
|
task: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodBigInt, z.ZodTransform<string, bigint>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<string, number>>]>>;
|
|
34
34
|
running: z.ZodBoolean;
|
|
@@ -43,7 +43,7 @@ export declare const taskZ: <Type extends z.ZodLiteral<string> = z.ZodLiteral<st
|
|
|
43
43
|
name: z.ZodString;
|
|
44
44
|
type: Type;
|
|
45
45
|
internal: z.ZodOptional<z.ZodBoolean>;
|
|
46
|
-
config:
|
|
46
|
+
config: Config;
|
|
47
47
|
status: z.ZodNullable<z.ZodOptional<status.StatusZodObject<z.ZodObject<{
|
|
48
48
|
task: z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodBigInt, z.ZodTransform<string, bigint>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<string, number>>]>;
|
|
49
49
|
running: z.ZodBoolean;
|
|
@@ -72,7 +72,7 @@ export declare const newZ: <Type extends z.ZodLiteral<string> = z.ZodLiteral<str
|
|
|
72
72
|
internal: z.ZodOptional<z.ZodBoolean>;
|
|
73
73
|
snapshot: z.ZodOptional<z.ZodBoolean>;
|
|
74
74
|
key: z.ZodOptional<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodBigInt, z.ZodTransform<string, bigint>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<string, number>>]>, z.ZodTransform<string, string>>>;
|
|
75
|
-
config: z.
|
|
75
|
+
config: z.ZodType<record.Unknown, unknown, z.core.$ZodTypeInternals<record.Unknown, unknown>> | Config;
|
|
76
76
|
status: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
77
77
|
key: z.ZodOptional<z.ZodString>;
|
|
78
78
|
name: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
@@ -84,7 +84,7 @@ export declare const newZ: <Type extends z.ZodLiteral<string> = z.ZodLiteral<str
|
|
|
84
84
|
value: z.ZodBigInt;
|
|
85
85
|
}, z.core.$strip>, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, {
|
|
86
86
|
value: bigint;
|
|
87
|
-
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').TimeSpan, import('@synnaxlabs/x').TimeSpan>, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, import('@synnaxlabs/x').TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, [number, number
|
|
87
|
+
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, bigint>>, z.ZodPipe<z.ZodDate, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, Date>>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').TimeSpan, import('@synnaxlabs/x').TimeSpan>, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, import('@synnaxlabs/x').TimeSpan>>, z.ZodPipe<z.ZodUnion<readonly [z.ZodTuple<[z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt], null>, z.ZodTuple<[z.ZodInt, z.ZodInt, z.ZodInt], null>]>, z.ZodTransform<import('@synnaxlabs/x').TimeStamp, [number, number, number] | [number, number] | [number]>>]>;
|
|
88
88
|
details: z.ZodObject<{
|
|
89
89
|
task: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodBigInt, z.ZodTransform<string, bigint>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<string, number>>]>>;
|
|
90
90
|
running: z.ZodBoolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../src/task/payload.ts"],"names":[],"mappings":"AASA,OAAO,
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../src/task/payload.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,KAAK,GAAG,IAAI,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAGrD,eAAO,MAAM,IAAI,oJAIf,CAAC;AACH,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AAEvC,eAAO,MAAM,cAAc,GAAI,UAAU,SAAS,CAAC,CAAC,OAAO,EAAE,MAAM,UAAU;;;;;iBAMzE,CAAC;AAEL,MAAM,M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AO,EACpC,UAAU,SAAS,CAAC,CAAC,OAAO,GAAG,CAAC,CAAC,UAAU,IACzC;IACF,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACpB,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACxB,MAAM,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;CAChC,CAAC;AAEF,eAAO,MAAM,QAAQ;;;;UAQF,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;iBACzD,CAAC;AAEH,MAAM,WAAW,OAAQ,SAAQ,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,EAAE,MAAM,CAAC;IACrE,IAAI,CAAC,EAAE,MAAM,CAAC,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,eAAe,CAC9B,UAAU,SAAS,CAAC,CAAC,OAAO,CAC5B,SAAQ,OAAO,CAAC,wBAAwB,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;CAAG;AAEjE,MAAM,WAAW,iBAAkB,SAAQ,OAAO,CAAC,wBAAwB,CAAC,OAAO,CAAC;CAAG;AAEvF,eAAO,MAAM,OAAO,GAAI,KAAK,GAAG,KAAG,OAAqC,CAAC;AAEzE,eAAO,MAAM,MAAM,GAAI,SAAS,OAAO,EAAE,UAAS,MAAU,KAAG,GACN,CAAC"}
|
|
@@ -72,10 +72,10 @@ export declare class Client {
|
|
|
72
72
|
}
|
|
73
73
|
export declare const ontologyID: ontology.CreateID<string>;
|
|
74
74
|
export declare const TYPE_ONTOLOGY_ID: {
|
|
75
|
-
type: "
|
|
75
|
+
type: "label" | "log" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "role" | "table" | "arc" | "schematic_symbol" | "status" | "view";
|
|
76
76
|
key: string;
|
|
77
77
|
} | {
|
|
78
|
-
type: "
|
|
78
|
+
type: "label" | "log" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "role" | "table" | "arc" | "schematic_symbol" | "status" | "view";
|
|
79
79
|
key: string;
|
|
80
80
|
};
|
|
81
81
|
export {};
|
|
@@ -33,10 +33,10 @@ export declare class Client {
|
|
|
33
33
|
}
|
|
34
34
|
export declare const ontologyID: (key: Key) => ontology.ID;
|
|
35
35
|
export declare const TYPE_ONTOLOGY_ID: {
|
|
36
|
-
type: "
|
|
36
|
+
type: "label" | "log" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "role" | "table" | "arc" | "schematic_symbol" | "status" | "view";
|
|
37
37
|
key: string;
|
|
38
38
|
} | {
|
|
39
|
-
type: "
|
|
39
|
+
type: "label" | "log" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "role" | "table" | "arc" | "schematic_symbol" | "status" | "view";
|
|
40
40
|
key: string;
|
|
41
41
|
};
|
|
42
42
|
export {};
|
|
@@ -2,11 +2,7 @@ import { UnaryClient } from '@synnaxlabs/freighter';
|
|
|
2
2
|
import { record } from '@synnaxlabs/x';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { ontology } from '../ontology';
|
|
5
|
-
import { lineplot } from './lineplot';
|
|
6
|
-
import { log } from './log';
|
|
7
5
|
import { Key, New, Workspace } from './payload';
|
|
8
|
-
import { schematic } from './schematic';
|
|
9
|
-
import { table } from './table';
|
|
10
6
|
declare const retrieveReqZ: z.ZodObject<{
|
|
11
7
|
keys: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
12
8
|
searchTerm: z.ZodOptional<z.ZodString>;
|
|
@@ -25,10 +21,6 @@ export declare const DELETE_CHANNEL_NAME = "sy_workspace_delete";
|
|
|
25
21
|
export interface SetLayoutArgs extends z.input<typeof setLayoutReqZ> {
|
|
26
22
|
}
|
|
27
23
|
export declare class Client {
|
|
28
|
-
readonly schematics: schematic.Client;
|
|
29
|
-
readonly lineplots: lineplot.Client;
|
|
30
|
-
readonly logs: log.Client;
|
|
31
|
-
readonly tables: table.Client;
|
|
32
24
|
private readonly client;
|
|
33
25
|
constructor(client: UnaryClient);
|
|
34
26
|
create(workspace: New): Promise<Workspace>;
|
|
@@ -43,10 +35,10 @@ export declare class Client {
|
|
|
43
35
|
}
|
|
44
36
|
export declare const ontologyID: ontology.CreateID<string>;
|
|
45
37
|
export declare const TYPE_ONTOLOGY_ID: {
|
|
46
|
-
type: "
|
|
38
|
+
type: "label" | "log" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "role" | "table" | "arc" | "schematic_symbol" | "status" | "view";
|
|
47
39
|
key: string;
|
|
48
40
|
} | {
|
|
49
|
-
type: "
|
|
41
|
+
type: "label" | "log" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "role" | "table" | "arc" | "schematic_symbol" | "status" | "view";
|
|
50
42
|
key: string;
|
|
51
43
|
};
|
|
52
44
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/workspace/client.ts"],"names":[],"mappings":"AASA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAS,MAAM,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,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GAAG,OAAO,CAAC,SAAS,CAAC;IACtC,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IAC3C,QAAQ,CAAC,GAAG,EAAE,eAAe,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC;IAiBpD,MAAM,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC;IAC/B,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CAUzC;AAED,eAAO,MAAM,UAAU,2BAA6C,CAAC;AACrE,eAAO,MAAM,gBAAgB;;;;;;CAAiB,CAAC"}
|
package/eslint.config.ts
CHANGED
|
@@ -7,8 +7,7 @@
|
|
|
7
7
|
// License, use of this software will be governed by the Apache License, Version 2.0,
|
|
8
8
|
// included in the file licenses/APL.txt.
|
|
9
9
|
|
|
10
|
+
import cfg from "@synnaxlabs/eslint-config";
|
|
10
11
|
import type { Linter } from "eslint";
|
|
11
|
-
import synnaxConfig from "eslint-config-synnaxlabs";
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
export default cfg;
|
|
13
|
+
export default [...cfg, { ignores: ["examples"] }] as Linter.Config[];
|