@synnaxlabs/client 0.14.0 → 0.15.1
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/client.cjs.js +3 -3
- package/dist/client.cjs.js.map +1 -1
- package/dist/client.es.js +697 -672
- package/dist/client.es.js.map +1 -1
- package/dist/hardware/task/payload.d.ts +3 -3
- package/dist/workspace/lineplot/payload.d.ts +3 -2
- package/dist/workspace/lineplot/writer.d.ts +2 -2
- package/dist/workspace/payload.d.ts +3 -2
- package/dist/workspace/pid/payload.d.ts +3 -2
- package/dist/workspace/pid/writer.d.ts +2 -2
- package/dist/workspace/writer.d.ts +3 -3
- package/package.json +5 -5
- package/src/hardware/device/client.ts +9 -0
- package/src/hardware/device/device.spec.ts +9 -0
- package/src/hardware/device/external.ts +9 -0
- package/src/hardware/device/index.ts +10 -1
- package/src/hardware/device/payload.ts +9 -0
- package/src/hardware/device/writer.ts +9 -0
- package/src/hardware/rack/external.ts +10 -1
- package/src/hardware/rack/index.ts +10 -1
- package/src/hardware/rack/payload.ts +10 -1
- package/src/hardware/rack/rack.spec.ts +9 -0
- package/src/hardware/rack/retriever.ts +9 -0
|
@@ -5,17 +5,17 @@ export declare const taskZ: z.ZodObject<{
|
|
|
5
5
|
key: z.ZodEffects<z.ZodUnion<[z.ZodBigInt, z.ZodNumber]>, string, number | bigint>;
|
|
6
6
|
name: z.ZodString;
|
|
7
7
|
type: z.ZodString;
|
|
8
|
-
config: z.ZodType<
|
|
8
|
+
config: z.ZodType<UnknownRecord, z.ZodTypeDef, UnknownRecord>;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
10
|
name: string;
|
|
11
11
|
key: string;
|
|
12
12
|
type: string;
|
|
13
|
-
config:
|
|
13
|
+
config: UnknownRecord;
|
|
14
14
|
}, {
|
|
15
15
|
name: string;
|
|
16
16
|
key: number | bigint;
|
|
17
17
|
type: string;
|
|
18
|
-
config:
|
|
18
|
+
config: UnknownRecord;
|
|
19
19
|
}>;
|
|
20
20
|
export declare const newTaskZ: z.ZodObject<{
|
|
21
21
|
name: z.ZodString;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type UnknownRecord } from "@synnaxlabs/x";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
export declare const keyZ: z.ZodString;
|
|
3
4
|
export type Key = z.infer<typeof keyZ>;
|
|
@@ -18,11 +19,11 @@ export declare const linePlotZ: z.ZodObject<{
|
|
|
18
19
|
export declare const linePlotRemoteZ: z.ZodObject<{
|
|
19
20
|
key: z.ZodString;
|
|
20
21
|
name: z.ZodString;
|
|
21
|
-
data: z.ZodEffects<z.ZodString,
|
|
22
|
+
data: z.ZodEffects<z.ZodString, UnknownRecord, string>;
|
|
22
23
|
}, "strip", z.ZodTypeAny, {
|
|
23
24
|
name: string;
|
|
24
25
|
key: string;
|
|
25
|
-
data:
|
|
26
|
+
data: UnknownRecord;
|
|
26
27
|
}, {
|
|
27
28
|
name: string;
|
|
28
29
|
key: string;
|
|
@@ -18,10 +18,10 @@ export declare const crudeLinePlotZ: z.ZodObject<{
|
|
|
18
18
|
export declare const linePlotWriteZ: z.ZodObject<{
|
|
19
19
|
name: z.ZodString;
|
|
20
20
|
key: z.ZodOptional<z.ZodString>;
|
|
21
|
-
data: z.ZodEffects<z.ZodString,
|
|
21
|
+
data: z.ZodEffects<z.ZodString, UnknownRecord, string>;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
23
|
name: string;
|
|
24
|
-
data:
|
|
24
|
+
data: UnknownRecord;
|
|
25
25
|
key?: string | undefined;
|
|
26
26
|
}, {
|
|
27
27
|
name: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type UnknownRecord } from "@synnaxlabs/x";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
export declare const keyZ: z.ZodString;
|
|
3
4
|
export type Key = z.infer<typeof keyZ>;
|
|
@@ -18,11 +19,11 @@ export declare const workspaceZ: z.ZodObject<{
|
|
|
18
19
|
export declare const workspaceRemoteZ: z.ZodObject<{
|
|
19
20
|
name: z.ZodString;
|
|
20
21
|
key: z.ZodString;
|
|
21
|
-
layout: z.ZodEffects<z.ZodString,
|
|
22
|
+
layout: z.ZodEffects<z.ZodString, UnknownRecord, string>;
|
|
22
23
|
}, "strip", z.ZodTypeAny, {
|
|
23
24
|
name: string;
|
|
24
25
|
key: string;
|
|
25
|
-
layout:
|
|
26
|
+
layout: UnknownRecord;
|
|
26
27
|
}, {
|
|
27
28
|
name: string;
|
|
28
29
|
key: string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type UnknownRecord } from "@synnaxlabs/x";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
export declare const keyZ: z.ZodString;
|
|
3
4
|
export type Key = z.infer<typeof keyZ>;
|
|
@@ -22,11 +23,11 @@ export declare const pidRemoteZ: z.ZodObject<{
|
|
|
22
23
|
key: z.ZodString;
|
|
23
24
|
name: z.ZodString;
|
|
24
25
|
snapshot: z.ZodBoolean;
|
|
25
|
-
data: z.ZodEffects<z.ZodString,
|
|
26
|
+
data: z.ZodEffects<z.ZodString, UnknownRecord, string>;
|
|
26
27
|
}, "strip", z.ZodTypeAny, {
|
|
27
28
|
name: string;
|
|
28
29
|
key: string;
|
|
29
|
-
data:
|
|
30
|
+
data: UnknownRecord;
|
|
30
31
|
snapshot: boolean;
|
|
31
32
|
}, {
|
|
32
33
|
name: string;
|
|
@@ -21,11 +21,11 @@ export declare const crudePIDz: z.ZodObject<{
|
|
|
21
21
|
export declare const pidWriteZ: z.ZodObject<{
|
|
22
22
|
name: z.ZodString;
|
|
23
23
|
key: z.ZodOptional<z.ZodString>;
|
|
24
|
-
data: z.ZodEffects<z.ZodString,
|
|
24
|
+
data: z.ZodEffects<z.ZodString, UnknownRecord, string>;
|
|
25
25
|
snapshot: z.ZodOptional<z.ZodBoolean>;
|
|
26
26
|
}, "strip", z.ZodTypeAny, {
|
|
27
27
|
name: string;
|
|
28
|
-
data:
|
|
28
|
+
data: UnknownRecord;
|
|
29
29
|
key?: string | undefined;
|
|
30
30
|
snapshot?: boolean | undefined;
|
|
31
31
|
}, {
|
|
@@ -20,11 +20,11 @@ declare const createResZ: z.ZodObject<{
|
|
|
20
20
|
workspaces: z.ZodArray<z.ZodObject<{
|
|
21
21
|
name: z.ZodString;
|
|
22
22
|
key: z.ZodString;
|
|
23
|
-
layout: z.ZodEffects<z.ZodString,
|
|
23
|
+
layout: z.ZodEffects<z.ZodString, UnknownRecord, string>;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
25
|
name: string;
|
|
26
26
|
key: string;
|
|
27
|
-
layout:
|
|
27
|
+
layout: UnknownRecord;
|
|
28
28
|
}, {
|
|
29
29
|
name: string;
|
|
30
30
|
key: string;
|
|
@@ -34,7 +34,7 @@ declare const createResZ: z.ZodObject<{
|
|
|
34
34
|
workspaces: {
|
|
35
35
|
name: string;
|
|
36
36
|
key: string;
|
|
37
|
-
layout:
|
|
37
|
+
layout: UnknownRecord;
|
|
38
38
|
}[];
|
|
39
39
|
}, {
|
|
40
40
|
workspaces: {
|
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.15.1",
|
|
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,8 +17,8 @@
|
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"zod": "3.22.4",
|
|
20
|
-
"@synnaxlabs/freighter": "0.
|
|
21
|
-
"@synnaxlabs/x": "0.
|
|
20
|
+
"@synnaxlabs/freighter": "0.7.1",
|
|
21
|
+
"@synnaxlabs/x": "0.12.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@types/node": "^20.10.5",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"typescript": "^5.3.3",
|
|
27
27
|
"vite": "^5.1.2",
|
|
28
28
|
"vitest": "^1.2.2",
|
|
29
|
-
"
|
|
29
|
+
"eslint-config-synnaxlabs": "0.0.1",
|
|
30
30
|
"@synnaxlabs/vite-plugin": "0.0.1",
|
|
31
|
-
"
|
|
31
|
+
"@synnaxlabs/tsconfig": "0.0.2"
|
|
32
32
|
},
|
|
33
33
|
"main": "dist/client.cjs.js",
|
|
34
34
|
"module": "dist/client.es.js",
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
// Copyright 2024 Synnax Labs, Inc.
|
|
2
|
+
//
|
|
3
|
+
// Use of this software is governed by the Business Source License included in the file
|
|
4
|
+
// licenses/BSL.txt.
|
|
5
|
+
//
|
|
6
|
+
// As of the Change Date specified in that file, in accordance with the Business Source
|
|
7
|
+
// License, use of this software will be governed by the Apache License, Version 2.0,
|
|
8
|
+
// included in the file licenses/APL.txt.
|
|
9
|
+
|
|
1
10
|
import { toArray } from "@synnaxlabs/x";
|
|
2
11
|
|
|
3
12
|
import { type framer } from "@/framer";
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
// Copyright 2024 Synnax Labs, Inc.
|
|
2
|
+
//
|
|
3
|
+
// Use of this software is governed by the Business Source License included in the file
|
|
4
|
+
// licenses/BSL.txt.
|
|
5
|
+
//
|
|
6
|
+
// As of the Change Date specified in that file, in accordance with the Business Source
|
|
7
|
+
// License, use of this software will be governed by the Apache License, Version 2.0,
|
|
8
|
+
// included in the file licenses/APL.txt.
|
|
9
|
+
|
|
1
10
|
import { describe, expect, it } from "vitest";
|
|
2
11
|
|
|
3
12
|
import { newClient } from "@/setupspecs";
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
// Copyright 2024 Synnax Labs, Inc.
|
|
2
|
+
//
|
|
3
|
+
// Use of this software is governed by the Business Source License included in the file
|
|
4
|
+
// licenses/BSL.txt.
|
|
5
|
+
//
|
|
6
|
+
// As of the Change Date specified in that file, in accordance with the Business Source
|
|
7
|
+
// License, use of this software will be governed by the Apache License, Version 2.0,
|
|
8
|
+
// included in the file licenses/APL.txt.
|
|
9
|
+
|
|
1
10
|
export * from "@/hardware/device/client";
|
|
2
11
|
export * from "@/hardware/device/retriever";
|
|
3
12
|
export * from "@/hardware/device/writer";
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
// Copyright 2024 Synnax Labs, Inc.
|
|
2
|
+
//
|
|
3
|
+
// Use of this software is governed by the Business Source License included in the file
|
|
4
|
+
// licenses/BSL.txt.
|
|
5
|
+
//
|
|
6
|
+
// As of the Change Date specified in that file, in accordance with the Business Source
|
|
7
|
+
// License, use of this software will be governed by the Apache License, Version 2.0,
|
|
8
|
+
// included in the file licenses/APL.txt.
|
|
9
|
+
|
|
10
|
+
export * as device from "@/hardware/device/external";
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
// Copyright 2024 Synnax Labs, Inc.
|
|
2
|
+
//
|
|
3
|
+
// Use of this software is governed by the Business Source License included in the file
|
|
4
|
+
// licenses/BSL.txt.
|
|
5
|
+
//
|
|
6
|
+
// As of the Change Date specified in that file, in accordance with the Business Source
|
|
7
|
+
// License, use of this software will be governed by the Apache License, Version 2.0,
|
|
8
|
+
// included in the file licenses/APL.txt.
|
|
9
|
+
|
|
1
10
|
import { z } from "zod";
|
|
2
11
|
|
|
3
12
|
import { rackKeyZ } from "@/hardware/rack/payload";
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
// Copyright 2024 Synnax Labs, Inc.
|
|
2
|
+
//
|
|
3
|
+
// Use of this software is governed by the Business Source License included in the file
|
|
4
|
+
// licenses/BSL.txt.
|
|
5
|
+
//
|
|
6
|
+
// As of the Change Date specified in that file, in accordance with the Business Source
|
|
7
|
+
// License, use of this software will be governed by the Apache License, Version 2.0,
|
|
8
|
+
// included in the file licenses/APL.txt.
|
|
9
|
+
|
|
1
10
|
import { type UnaryClient, sendRequired } from "@synnaxlabs/freighter";
|
|
2
11
|
import { z } from "zod";
|
|
3
12
|
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
// Copyright 2024 Synnax Labs, Inc.
|
|
2
|
+
//
|
|
3
|
+
// Use of this software is governed by the Business Source License included in the file
|
|
4
|
+
// licenses/BSL.txt.
|
|
5
|
+
//
|
|
6
|
+
// As of the Change Date specified in that file, in accordance with the Business Source
|
|
7
|
+
// License, use of this software will be governed by the Apache License, Version 2.0,
|
|
8
|
+
// included in the file licenses/APL.txt.
|
|
9
|
+
|
|
1
10
|
export * from "@/hardware/rack/client";
|
|
2
11
|
export * from "@/hardware/rack/writer";
|
|
3
|
-
export * from "@/hardware/rack/retriever";
|
|
12
|
+
export * from "@/hardware/rack/retriever";
|
|
@@ -1 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
// Copyright 2024 Synnax Labs, Inc.
|
|
2
|
+
//
|
|
3
|
+
// Use of this software is governed by the Business Source License included in the file
|
|
4
|
+
// licenses/BSL.txt.
|
|
5
|
+
//
|
|
6
|
+
// As of the Change Date specified in that file, in accordance with the Business Source
|
|
7
|
+
// License, use of this software will be governed by the Apache License, Version 2.0,
|
|
8
|
+
// included in the file licenses/APL.txt.
|
|
9
|
+
|
|
10
|
+
export * as rack from "@/hardware/rack/external";
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
// Copyright 2024 Synnax Labs, Inc.
|
|
2
|
+
//
|
|
3
|
+
// Use of this software is governed by the Business Source License included in the file
|
|
4
|
+
// licenses/BSL.txt.
|
|
5
|
+
//
|
|
6
|
+
// As of the Change Date specified in that file, in accordance with the Business Source
|
|
7
|
+
// License, use of this software will be governed by the Apache License, Version 2.0,
|
|
8
|
+
// included in the file licenses/APL.txt.
|
|
9
|
+
|
|
1
10
|
import { z } from "zod";
|
|
2
11
|
|
|
3
12
|
|
|
@@ -14,4 +23,4 @@ export type RackPayload = z.infer<typeof rackZ>;
|
|
|
14
23
|
|
|
15
24
|
export const newRackZ = rackZ.partial({ key: true });
|
|
16
25
|
|
|
17
|
-
export type NewRack = z.input<typeof newRackZ>;
|
|
26
|
+
export type NewRack = z.input<typeof newRackZ>;
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
// Copyright 2024 Synnax Labs, Inc.
|
|
2
|
+
//
|
|
3
|
+
// Use of this software is governed by the Business Source License included in the file
|
|
4
|
+
// licenses/BSL.txt.
|
|
5
|
+
//
|
|
6
|
+
// As of the Change Date specified in that file, in accordance with the Business Source
|
|
7
|
+
// License, use of this software will be governed by the Apache License, Version 2.0,
|
|
8
|
+
// included in the file licenses/APL.txt.
|
|
9
|
+
|
|
1
10
|
import { describe, expect, it } from "vitest";
|
|
2
11
|
|
|
3
12
|
import { newClient } from "@/setupspecs";
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
// Copyright 2024 Synnax Labs, Inc.
|
|
2
|
+
//
|
|
3
|
+
// Use of this software is governed by the Business Source License included in the file
|
|
4
|
+
// licenses/BSL.txt.
|
|
5
|
+
//
|
|
6
|
+
// As of the Change Date specified in that file, in accordance with the Business Source
|
|
7
|
+
// License, use of this software will be governed by the Apache License, Version 2.0,
|
|
8
|
+
// included in the file licenses/APL.txt.
|
|
9
|
+
|
|
1
10
|
import { type UnaryClient, sendRequired } from "@synnaxlabs/freighter";
|
|
2
11
|
import { z } from "zod";
|
|
3
12
|
|