@synnaxlabs/client 0.16.4 → 0.17.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 +5 -5
- package/dist/auth/auth.d.ts +2 -2
- package/dist/client.cjs +11 -11
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.ts +14 -4
- package/dist/client.js +5437 -5436
- package/dist/client.js.map +1 -1
- package/dist/framer/frame.d.ts +280 -24
- package/dist/framer/writer.d.ts +203 -15
- package/dist/hardware/rack/client.d.ts +1 -1
- package/dist/hardware/task/payload.d.ts +5 -5
- package/dist/ontology/retriever.d.ts +1 -1
- package/dist/ranger/active.d.ts +1 -1
- package/dist/ranger/payload.d.ts +308 -20
- package/dist/workspace/client.d.ts +2 -2
- package/dist/workspace/lineplot/client.d.ts +2 -2
- package/dist/workspace/lineplot/payload.d.ts +3 -16
- package/dist/workspace/lineplot/retriever.d.ts +0 -1
- package/dist/workspace/lineplot/writer.d.ts +9 -14
- package/dist/workspace/payload.d.ts +3 -3
- package/dist/workspace/pid/client.d.ts +2 -2
- package/dist/workspace/pid/payload.d.ts +3 -3
- package/dist/workspace/pid/retriever.d.ts +0 -1
- package/dist/workspace/pid/writer.d.ts +12 -18
- package/dist/workspace/writer.d.ts +14 -6
- package/examples/node/basicReadWriter.js +34 -5
- package/examples/node/package-lock.json +23 -23
- package/examples/node/package.json +1 -1
- package/package.json +3 -3
- package/src/auth/auth.ts +5 -4
- package/src/channel/client.ts +0 -1
- package/src/channel/creator.ts +1 -0
- package/src/channel/retriever.ts +2 -2
- package/src/client.ts +2 -2
- package/src/connection/checker.ts +1 -1
- package/src/framer/client.ts +1 -1
- package/src/framer/frame.ts +4 -4
- package/src/hardware/device/retriever.ts +3 -3
- package/src/hardware/device/writer.ts +3 -1
- package/src/hardware/rack/client.ts +3 -4
- package/src/hardware/rack/retriever.ts +3 -0
- package/src/hardware/rack/writer.ts +2 -0
- package/src/hardware/task/payload.ts +5 -4
- package/src/hardware/task/retriever.ts +10 -7
- package/src/hardware/task/writer.ts +3 -1
- package/src/label/retriever.ts +1 -0
- package/src/label/writer.ts +4 -0
- package/src/ontology/group/writer.ts +18 -5
- package/src/ontology/retriever.ts +9 -9
- package/src/ontology/writer.ts +25 -11
- package/src/ranger/active.ts +26 -8
- package/src/ranger/alias.ts +9 -13
- package/src/ranger/client.ts +0 -1
- package/src/ranger/kv.ts +4 -1
- package/src/ranger/retriever.ts +1 -1
- package/src/ranger/writer.ts +3 -0
- package/src/workspace/client.ts +3 -3
- package/src/workspace/lineplot/client.ts +2 -2
- package/src/workspace/lineplot/payload.ts +1 -7
- package/src/workspace/lineplot/retriever.ts +10 -11
- package/src/workspace/lineplot/writer.ts +13 -8
- package/src/workspace/payload.ts +1 -1
- package/src/workspace/pid/client.ts +2 -2
- package/src/workspace/pid/payload.ts +1 -1
- package/src/workspace/pid/retriever.ts +8 -10
- package/src/workspace/pid/writer.ts +12 -5
- package/src/workspace/retriever.ts +2 -4
- package/src/workspace/workspace.spec.ts +4 -4
- package/src/workspace/writer.ts +12 -10
package/dist/client.d.ts
CHANGED
|
@@ -14,7 +14,15 @@ export declare const synnaxPropsZ: z.ZodObject<{
|
|
|
14
14
|
port: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
15
15
|
username: z.ZodOptional<z.ZodString>;
|
|
16
16
|
password: z.ZodOptional<z.ZodString>;
|
|
17
|
-
connectivityPollFrequency: z.ZodDefault<z.ZodUnion<[z.ZodEffects<z.
|
|
17
|
+
connectivityPollFrequency: z.ZodDefault<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
18
|
+
value: z.ZodBigInt;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
value: bigint;
|
|
21
|
+
}, {
|
|
22
|
+
value: bigint;
|
|
23
|
+
}>, TimeSpan, {
|
|
24
|
+
value: bigint;
|
|
25
|
+
}>, z.ZodEffects<z.ZodString, TimeSpan, string>, z.ZodEffects<z.ZodType<Number, z.ZodTypeDef, Number>, TimeSpan, Number>, z.ZodEffects<z.ZodNumber, TimeSpan, number>, z.ZodType<TimeSpan, z.ZodTypeDef, TimeSpan>]>>;
|
|
18
26
|
secure: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
19
27
|
name: z.ZodOptional<z.ZodString>;
|
|
20
28
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -30,7 +38,9 @@ export declare const synnaxPropsZ: z.ZodObject<{
|
|
|
30
38
|
port: string | number;
|
|
31
39
|
username?: string | undefined;
|
|
32
40
|
password?: string | undefined;
|
|
33
|
-
connectivityPollFrequency?: number | Number | TimeSpan |
|
|
41
|
+
connectivityPollFrequency?: string | number | Number | TimeSpan | {
|
|
42
|
+
value: bigint;
|
|
43
|
+
} | undefined;
|
|
34
44
|
secure?: boolean | undefined;
|
|
35
45
|
name?: string | undefined;
|
|
36
46
|
}>;
|
|
@@ -45,19 +55,19 @@ export type ParsedSynnaxProps = z.output<typeof synnaxPropsZ>;
|
|
|
45
55
|
* @property ontology - Client for querying the cluster's ontology.
|
|
46
56
|
*/
|
|
47
57
|
export default class Synnax {
|
|
48
|
-
private readonly transport;
|
|
49
58
|
readonly createdAt: TimeStamp;
|
|
59
|
+
readonly props: ParsedSynnaxProps;
|
|
50
60
|
readonly telem: framer.Client;
|
|
51
61
|
readonly ranges: ranger.Client;
|
|
52
62
|
readonly channels: channel.Client;
|
|
53
63
|
readonly auth: auth.Client | undefined;
|
|
54
64
|
readonly connectivity: connection.Checker;
|
|
55
65
|
readonly ontology: ontology.Client;
|
|
56
|
-
readonly props: ParsedSynnaxProps;
|
|
57
66
|
readonly workspaces: workspace.Client;
|
|
58
67
|
readonly labels: label.Client;
|
|
59
68
|
readonly hardware: hardware.Client;
|
|
60
69
|
static readonly connectivity: typeof connection.Checker;
|
|
70
|
+
private readonly transport;
|
|
61
71
|
/**
|
|
62
72
|
* @param props.host - Hostname of a node in the cluster.
|
|
63
73
|
* @param props.port - Port of the node in the cluster.
|