@synnaxlabs/client 0.41.0 → 0.42.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 +6 -6
- package/dist/access/payload.d.ts +7 -1
- package/dist/access/payload.d.ts.map +1 -1
- package/dist/access/policy/payload.d.ts +182 -142
- package/dist/access/policy/payload.d.ts.map +1 -1
- package/dist/access/policy/retriever.d.ts +25 -22
- package/dist/access/policy/retriever.d.ts.map +1 -1
- package/dist/auth/auth.d.ts +1 -7
- package/dist/auth/auth.d.ts.map +1 -1
- package/dist/channel/client.d.ts +2 -7
- package/dist/channel/client.d.ts.map +1 -1
- package/dist/channel/payload.d.ts +13 -74
- package/dist/channel/payload.d.ts.map +1 -1
- package/dist/channel/retriever.d.ts +5 -31
- package/dist/channel/retriever.d.ts.map +1 -1
- package/dist/channel/writer.d.ts +6 -18
- package/dist/channel/writer.d.ts.map +1 -1
- package/dist/client.cjs +36 -31
- package/dist/client.d.ts +8 -56
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +6486 -3979
- package/dist/connection/checker.d.ts +22 -39
- package/dist/connection/checker.d.ts.map +1 -1
- package/dist/control/client.d.ts.map +1 -1
- package/dist/control/state.d.ts +6 -26
- package/dist/control/state.d.ts.map +1 -1
- package/dist/errors.d.ts +31 -56
- package/dist/errors.d.ts.map +1 -1
- package/dist/framer/adapter.d.ts +4 -0
- package/dist/framer/adapter.d.ts.map +1 -1
- package/dist/framer/client.d.ts +2 -2
- package/dist/framer/client.d.ts.map +1 -1
- package/dist/framer/codec.d.ts +34 -0
- package/dist/framer/codec.d.ts.map +1 -0
- package/dist/framer/codec.spec.d.ts +2 -0
- package/dist/framer/codec.spec.d.ts.map +1 -0
- package/dist/framer/deleter.d.ts +12 -49
- package/dist/framer/deleter.d.ts.map +1 -1
- package/dist/framer/frame.d.ts +26 -88
- package/dist/framer/frame.d.ts.map +1 -1
- package/dist/framer/iterator.d.ts.map +1 -1
- package/dist/framer/streamer.d.ts +69 -11
- package/dist/framer/streamer.d.ts.map +1 -1
- package/dist/framer/writer.d.ts +60 -257
- package/dist/framer/writer.d.ts.map +1 -1
- package/dist/hardware/device/client.d.ts +7 -31
- package/dist/hardware/device/client.d.ts.map +1 -1
- package/dist/hardware/device/payload.d.ts +11 -93
- package/dist/hardware/device/payload.d.ts.map +1 -1
- package/dist/hardware/rack/payload.d.ts +15 -103
- package/dist/hardware/rack/payload.d.ts.map +1 -1
- package/dist/hardware/task/client.d.ts +4 -20
- package/dist/hardware/task/client.d.ts.map +1 -1
- package/dist/hardware/task/payload.d.ts +41 -116
- package/dist/hardware/task/payload.d.ts.map +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/label/payload.d.ts +1 -9
- package/dist/label/payload.d.ts.map +1 -1
- package/dist/label/writer.d.ts +27 -36
- package/dist/label/writer.d.ts.map +1 -1
- package/dist/ontology/client.d.ts +46 -36
- package/dist/ontology/client.d.ts.map +1 -1
- package/dist/ontology/group/payload.d.ts +1 -7
- package/dist/ontology/group/payload.d.ts.map +1 -1
- package/dist/ontology/payload.d.ts +239 -146
- package/dist/ontology/payload.d.ts.map +1 -1
- package/dist/ranger/client.d.ts +13 -58
- package/dist/ranger/client.d.ts.map +1 -1
- package/dist/ranger/kv.d.ts +7 -49
- package/dist/ranger/kv.d.ts.map +1 -1
- package/dist/ranger/payload.d.ts +21 -99
- package/dist/ranger/payload.d.ts.map +1 -1
- package/dist/ranger/writer.d.ts +35 -88
- package/dist/ranger/writer.d.ts.map +1 -1
- package/dist/testutil/indexedPair.d.ts +5 -0
- package/dist/testutil/indexedPair.d.ts.map +1 -0
- package/dist/testutil/telem.d.ts +3 -0
- package/dist/testutil/telem.d.ts.map +1 -0
- package/dist/transport.d.ts +2 -2
- package/dist/transport.d.ts.map +1 -1
- package/dist/user/payload.d.ts +3 -29
- package/dist/user/payload.d.ts.map +1 -1
- package/dist/user/retriever.d.ts +3 -9
- package/dist/user/retriever.d.ts.map +1 -1
- package/dist/util/decodeJSONString.d.ts.map +1 -1
- package/dist/util/zod.d.ts +1 -1
- package/dist/util/zod.d.ts.map +1 -1
- package/dist/workspace/lineplot/payload.d.ts +10 -26
- package/dist/workspace/lineplot/payload.d.ts.map +1 -1
- package/dist/workspace/log/payload.d.ts +10 -26
- package/dist/workspace/log/payload.d.ts.map +1 -1
- package/dist/workspace/payload.d.ts +14 -40
- package/dist/workspace/payload.d.ts.map +1 -1
- package/dist/workspace/schematic/payload.d.ts +13 -45
- package/dist/workspace/schematic/payload.d.ts.map +1 -1
- package/dist/workspace/table/payload.d.ts +13 -39
- package/dist/workspace/table/payload.d.ts.map +1 -1
- package/package.json +6 -6
- package/src/channel/channel.spec.ts +26 -27
- package/src/channel/client.ts +0 -9
- package/src/channel/payload.ts +22 -5
- package/src/channel/retriever.ts +12 -6
- package/src/client.ts +3 -3
- package/src/control/client.ts +5 -2
- package/src/control/state.ts +8 -3
- package/src/errors.spec.ts +5 -4
- package/src/errors.ts +21 -82
- package/src/framer/adapter.ts +22 -3
- package/src/framer/client.ts +38 -21
- package/src/framer/codec.spec.ts +303 -0
- package/src/framer/codec.ts +396 -0
- package/src/framer/deleter.spec.ts +51 -63
- package/src/framer/frame.ts +16 -5
- package/src/framer/iterator.spec.ts +45 -28
- package/src/framer/iterator.ts +6 -5
- package/src/framer/streamProxy.ts +1 -1
- package/src/framer/streamer.spec.ts +10 -18
- package/src/framer/streamer.ts +138 -22
- package/src/framer/writer.spec.ts +125 -150
- package/src/framer/writer.ts +74 -68
- package/src/hardware/device/payload.ts +3 -3
- package/src/hardware/task/payload.ts +9 -6
- package/src/hardware/task/task.spec.ts +1 -1
- package/src/index.ts +0 -2
- package/src/ontology/group/group.spec.ts +2 -2
- package/src/ontology/payload.ts +3 -3
- package/src/ranger/ranger.spec.ts +9 -7
- package/src/testutil/indexedPair.ts +40 -0
- package/src/testutil/telem.ts +13 -0
- package/src/transport.ts +1 -2
- package/src/util/decodeJSONString.ts +2 -2
- package/src/util/retrieve.spec.ts +1 -1
|
@@ -7,15 +7,30 @@ import { group } from './group';
|
|
|
7
7
|
import { CrudeID, ID, IDPayload, RelationshipChange, RelationshipDirection, Resource, ResourceChange } from './payload';
|
|
8
8
|
declare const retrieveReqZ: z.ZodObject<{
|
|
9
9
|
ids: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
10
|
-
type: z.ZodEnum<
|
|
10
|
+
type: z.ZodEnum<{
|
|
11
|
+
policy: "policy";
|
|
12
|
+
allow_all: "allow_all";
|
|
13
|
+
channel: "channel";
|
|
14
|
+
group: "group";
|
|
15
|
+
framer: "framer";
|
|
16
|
+
rack: "rack";
|
|
17
|
+
device: "device";
|
|
18
|
+
task: "task";
|
|
19
|
+
label: "label";
|
|
20
|
+
range: "range";
|
|
21
|
+
"range-alias": "range-alias";
|
|
22
|
+
user: "user";
|
|
23
|
+
lineplot: "lineplot";
|
|
24
|
+
log: "log";
|
|
25
|
+
workspace: "workspace";
|
|
26
|
+
schematic: "schematic";
|
|
27
|
+
table: "table";
|
|
28
|
+
builtin: "builtin";
|
|
29
|
+
cluster: "cluster";
|
|
30
|
+
node: "node";
|
|
31
|
+
}>;
|
|
11
32
|
key: z.ZodString;
|
|
12
|
-
},
|
|
13
|
-
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
14
|
-
key: string;
|
|
15
|
-
}, {
|
|
16
|
-
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
17
|
-
key: string;
|
|
18
|
-
}>, "many">>;
|
|
33
|
+
}, {}>>>;
|
|
19
34
|
children: z.ZodOptional<z.ZodBoolean>;
|
|
20
35
|
parents: z.ZodOptional<z.ZodBoolean>;
|
|
21
36
|
includeSchema: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -23,34 +38,29 @@ declare const retrieveReqZ: z.ZodObject<{
|
|
|
23
38
|
term: z.ZodOptional<z.ZodString>;
|
|
24
39
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
25
40
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
26
|
-
types: z.ZodOptional<z.ZodArray<z.ZodEnum<
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
includeSchema?: boolean | undefined;
|
|
50
|
-
excludeFieldData?: boolean | undefined;
|
|
51
|
-
term?: string | undefined;
|
|
52
|
-
types?: ("policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node")[] | undefined;
|
|
53
|
-
}>;
|
|
41
|
+
types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
42
|
+
policy: "policy";
|
|
43
|
+
allow_all: "allow_all";
|
|
44
|
+
channel: "channel";
|
|
45
|
+
group: "group";
|
|
46
|
+
framer: "framer";
|
|
47
|
+
rack: "rack";
|
|
48
|
+
device: "device";
|
|
49
|
+
task: "task";
|
|
50
|
+
label: "label";
|
|
51
|
+
range: "range";
|
|
52
|
+
"range-alias": "range-alias";
|
|
53
|
+
user: "user";
|
|
54
|
+
lineplot: "lineplot";
|
|
55
|
+
log: "log";
|
|
56
|
+
workspace: "workspace";
|
|
57
|
+
schematic: "schematic";
|
|
58
|
+
table: "table";
|
|
59
|
+
builtin: "builtin";
|
|
60
|
+
cluster: "cluster";
|
|
61
|
+
node: "node";
|
|
62
|
+
}>>>;
|
|
63
|
+
}, {}>;
|
|
54
64
|
interface RetrieveRequest extends z.infer<typeof retrieveReqZ> {
|
|
55
65
|
}
|
|
56
66
|
export interface RetrieveOptions extends Pick<RetrieveRequest, "includeSchema" | "excludeFieldData" | "types"> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/ontology/client.ts"],"names":[],"mappings":"AASA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,OAAO,EAAoB,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EACL,KAAK,OAAO,EACZ,EAAE,EACF,KAAK,SAAS,EAGd,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,QAAQ,EACb,KAAK,cAAc,EAGpB,MAAM,oBAAoB,CAAC;AAK5B,QAAA,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/ontology/client.ts"],"names":[],"mappings":"AASA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,OAAO,EAAoB,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,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AC,YAAY,CAAC,CAAS;IACvC,OAAO,CAAC,UAAU,CAAa;IAC/B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAS;IAChC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IAEjC,OAAO;WAwBM,IAAI,CACf,KAAK,EAAE,qBAAqB,EAC5B,MAAM,EAAE,MAAM,CAAC,MAAM,EACrB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,gBAAgB,CAAC;IAK5B,OAAO,CAAC,oBAAoB,CAO1B;IAEF,OAAO,CAAC,wBAAwB,CAgC9B;IAEI,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAG7B"}
|
|
@@ -9,13 +9,7 @@ export type Params = Key | Name | Keys | Names;
|
|
|
9
9
|
export declare const groupZ: z.ZodObject<{
|
|
10
10
|
key: z.ZodString;
|
|
11
11
|
name: z.ZodString;
|
|
12
|
-
},
|
|
13
|
-
name: string;
|
|
14
|
-
key: string;
|
|
15
|
-
}, {
|
|
16
|
-
name: string;
|
|
17
|
-
key: string;
|
|
18
|
-
}>;
|
|
12
|
+
}, {}>;
|
|
19
13
|
export interface Payload extends z.infer<typeof groupZ> {
|
|
20
14
|
}
|
|
21
15
|
export type ParamAnalysisResult = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../src/ontology/group/payload.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,IAAI,aAAoB,CAAC;AACtC,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AACvC,eAAO,MAAM,KAAK,aAAa,CAAC;AAChC,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,E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CAAC;IAAC,OAAO,EAAE,OAAO,CAAC;IAAC,UAAU,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,KAAK,CAAA;CAAE,CAAC;AAE1E,eAAO,MAAM,aAAa,GAAI,QAAQ,MAAM,KAAG,mBAU9C,CAAC;AAEF,eAAO,MAAM,aAAa,UAAU,CAAC;AACrC,MAAM,MAAM,YAAY,GAAG,OAAO,aAAa,CAAC"}
|
|
@@ -13,37 +13,88 @@ export interface RelationshipDelete extends change.Delete<Relationship, undefine
|
|
|
13
13
|
export declare const BUILTIN_TYPE = "builtin";
|
|
14
14
|
export declare const CLUSTER_TYPE = "cluster";
|
|
15
15
|
export declare const NODE_TYPE = "node";
|
|
16
|
-
export declare const resourceTypeZ: z.ZodEnum<
|
|
16
|
+
export declare const resourceTypeZ: z.ZodEnum<{
|
|
17
|
+
policy: "policy";
|
|
18
|
+
allow_all: "allow_all";
|
|
19
|
+
channel: "channel";
|
|
20
|
+
group: "group";
|
|
21
|
+
framer: "framer";
|
|
22
|
+
rack: "rack";
|
|
23
|
+
device: "device";
|
|
24
|
+
task: "task";
|
|
25
|
+
label: "label";
|
|
26
|
+
range: "range";
|
|
27
|
+
"range-alias": "range-alias";
|
|
28
|
+
user: "user";
|
|
29
|
+
lineplot: "lineplot";
|
|
30
|
+
log: "log";
|
|
31
|
+
workspace: "workspace";
|
|
32
|
+
schematic: "schematic";
|
|
33
|
+
table: "table";
|
|
34
|
+
builtin: "builtin";
|
|
35
|
+
cluster: "cluster";
|
|
36
|
+
node: "node";
|
|
37
|
+
}>;
|
|
17
38
|
export type ResourceType = z.infer<typeof resourceTypeZ>;
|
|
18
39
|
export declare const idZ: z.ZodObject<{
|
|
19
|
-
type: z.ZodEnum<
|
|
40
|
+
type: z.ZodEnum<{
|
|
41
|
+
policy: "policy";
|
|
42
|
+
allow_all: "allow_all";
|
|
43
|
+
channel: "channel";
|
|
44
|
+
group: "group";
|
|
45
|
+
framer: "framer";
|
|
46
|
+
rack: "rack";
|
|
47
|
+
device: "device";
|
|
48
|
+
task: "task";
|
|
49
|
+
label: "label";
|
|
50
|
+
range: "range";
|
|
51
|
+
"range-alias": "range-alias";
|
|
52
|
+
user: "user";
|
|
53
|
+
lineplot: "lineplot";
|
|
54
|
+
log: "log";
|
|
55
|
+
workspace: "workspace";
|
|
56
|
+
schematic: "schematic";
|
|
57
|
+
table: "table";
|
|
58
|
+
builtin: "builtin";
|
|
59
|
+
cluster: "cluster";
|
|
60
|
+
node: "node";
|
|
61
|
+
}>;
|
|
20
62
|
key: z.ZodString;
|
|
21
|
-
},
|
|
22
|
-
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
23
|
-
key: string;
|
|
24
|
-
}, {
|
|
25
|
-
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
26
|
-
key: string;
|
|
27
|
-
}>;
|
|
63
|
+
}, {}>;
|
|
28
64
|
export interface IDPayload extends z.infer<typeof idZ> {
|
|
29
65
|
}
|
|
30
|
-
export declare const stringIDZ: z.
|
|
66
|
+
export declare const stringIDZ: z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
31
67
|
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
32
68
|
key: string;
|
|
33
|
-
}, string
|
|
34
|
-
export declare const crudeIDZ: z.ZodUnion<[z.
|
|
69
|
+
}, string>>;
|
|
70
|
+
export declare const crudeIDZ: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
35
71
|
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
36
72
|
key: string;
|
|
37
|
-
}, string
|
|
38
|
-
type: z.ZodEnum<
|
|
73
|
+
}, string>>, z.ZodObject<{
|
|
74
|
+
type: z.ZodEnum<{
|
|
75
|
+
policy: "policy";
|
|
76
|
+
allow_all: "allow_all";
|
|
77
|
+
channel: "channel";
|
|
78
|
+
group: "group";
|
|
79
|
+
framer: "framer";
|
|
80
|
+
rack: "rack";
|
|
81
|
+
device: "device";
|
|
82
|
+
task: "task";
|
|
83
|
+
label: "label";
|
|
84
|
+
range: "range";
|
|
85
|
+
"range-alias": "range-alias";
|
|
86
|
+
user: "user";
|
|
87
|
+
lineplot: "lineplot";
|
|
88
|
+
log: "log";
|
|
89
|
+
workspace: "workspace";
|
|
90
|
+
schematic: "schematic";
|
|
91
|
+
table: "table";
|
|
92
|
+
builtin: "builtin";
|
|
93
|
+
cluster: "cluster";
|
|
94
|
+
node: "node";
|
|
95
|
+
}>;
|
|
39
96
|
key: z.ZodString;
|
|
40
|
-
},
|
|
41
|
-
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
42
|
-
key: string;
|
|
43
|
-
}, {
|
|
44
|
-
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
45
|
-
key: string;
|
|
46
|
-
}>]>;
|
|
97
|
+
}, {}>]>;
|
|
47
98
|
export type CrudeID = z.input<typeof crudeIDZ>;
|
|
48
99
|
export declare class ID {
|
|
49
100
|
type: ResourceType;
|
|
@@ -53,142 +104,162 @@ export declare class ID {
|
|
|
53
104
|
isType(): boolean;
|
|
54
105
|
matchesType(type: ResourceType): boolean;
|
|
55
106
|
get payload(): IDPayload;
|
|
56
|
-
static readonly z: z.ZodUnion<[z.
|
|
107
|
+
static readonly z: z.ZodUnion<readonly [z.ZodCustom<ID, unknown>, z.ZodPipe<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
57
108
|
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
58
109
|
key: string;
|
|
59
|
-
}, string
|
|
60
|
-
type: z.ZodEnum<
|
|
110
|
+
}, string>>, z.ZodObject<{
|
|
111
|
+
type: z.ZodEnum<{
|
|
112
|
+
policy: "policy";
|
|
113
|
+
allow_all: "allow_all";
|
|
114
|
+
channel: "channel";
|
|
115
|
+
group: "group";
|
|
116
|
+
framer: "framer";
|
|
117
|
+
rack: "rack";
|
|
118
|
+
device: "device";
|
|
119
|
+
task: "task";
|
|
120
|
+
label: "label";
|
|
121
|
+
range: "range";
|
|
122
|
+
"range-alias": "range-alias";
|
|
123
|
+
user: "user";
|
|
124
|
+
lineplot: "lineplot";
|
|
125
|
+
log: "log";
|
|
126
|
+
workspace: "workspace";
|
|
127
|
+
schematic: "schematic";
|
|
128
|
+
table: "table";
|
|
129
|
+
builtin: "builtin";
|
|
130
|
+
cluster: "cluster";
|
|
131
|
+
node: "node";
|
|
132
|
+
}>;
|
|
61
133
|
key: z.ZodString;
|
|
62
|
-
},
|
|
134
|
+
}, {}>]>, z.ZodTransform<ID, {
|
|
63
135
|
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
64
136
|
key: string;
|
|
65
|
-
}
|
|
137
|
+
} | {
|
|
66
138
|
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
67
139
|
key: string;
|
|
68
|
-
}
|
|
69
|
-
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
70
|
-
key: string;
|
|
71
|
-
}>]>;
|
|
140
|
+
}>>]>;
|
|
72
141
|
}
|
|
73
142
|
export declare const ROOT_ID: ID;
|
|
74
143
|
export declare const schemaFieldZ: z.ZodObject<{
|
|
75
144
|
type: z.ZodNumber;
|
|
76
|
-
},
|
|
77
|
-
type: number;
|
|
78
|
-
}, {
|
|
79
|
-
type: number;
|
|
80
|
-
}>;
|
|
145
|
+
}, {}>;
|
|
81
146
|
export interface SchemaField extends z.infer<typeof schemaFieldZ> {
|
|
82
147
|
}
|
|
83
148
|
export declare const schemaZ: z.ZodObject<{
|
|
84
|
-
type: z.ZodEnum<
|
|
149
|
+
type: z.ZodEnum<{
|
|
150
|
+
policy: "policy";
|
|
151
|
+
allow_all: "allow_all";
|
|
152
|
+
channel: "channel";
|
|
153
|
+
group: "group";
|
|
154
|
+
framer: "framer";
|
|
155
|
+
rack: "rack";
|
|
156
|
+
device: "device";
|
|
157
|
+
task: "task";
|
|
158
|
+
label: "label";
|
|
159
|
+
range: "range";
|
|
160
|
+
"range-alias": "range-alias";
|
|
161
|
+
user: "user";
|
|
162
|
+
lineplot: "lineplot";
|
|
163
|
+
log: "log";
|
|
164
|
+
workspace: "workspace";
|
|
165
|
+
schematic: "schematic";
|
|
166
|
+
table: "table";
|
|
167
|
+
builtin: "builtin";
|
|
168
|
+
cluster: "cluster";
|
|
169
|
+
node: "node";
|
|
170
|
+
}>;
|
|
85
171
|
fields: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
86
172
|
type: z.ZodNumber;
|
|
87
|
-
},
|
|
88
|
-
|
|
89
|
-
}, {
|
|
90
|
-
type: number;
|
|
91
|
-
}>>;
|
|
92
|
-
}, "strip", z.ZodTypeAny, {
|
|
93
|
-
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
94
|
-
fields: Record<string, {
|
|
95
|
-
type: number;
|
|
96
|
-
}>;
|
|
97
|
-
}, {
|
|
98
|
-
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
99
|
-
fields: Record<string, {
|
|
100
|
-
type: number;
|
|
101
|
-
}>;
|
|
102
|
-
}>;
|
|
173
|
+
}, {}>>;
|
|
174
|
+
}, {}>;
|
|
103
175
|
export interface Schema extends z.infer<typeof schemaZ> {
|
|
104
176
|
}
|
|
105
|
-
export declare const resourceZ: z.
|
|
106
|
-
id: z.ZodUnion<[z.
|
|
177
|
+
export declare const resourceZ: z.ZodPipe<z.ZodObject<{
|
|
178
|
+
id: z.ZodUnion<readonly [z.ZodCustom<ID, unknown>, z.ZodPipe<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
107
179
|
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
108
180
|
key: string;
|
|
109
|
-
}, string
|
|
110
|
-
type: z.ZodEnum<
|
|
181
|
+
}, string>>, z.ZodObject<{
|
|
182
|
+
type: z.ZodEnum<{
|
|
183
|
+
policy: "policy";
|
|
184
|
+
allow_all: "allow_all";
|
|
185
|
+
channel: "channel";
|
|
186
|
+
group: "group";
|
|
187
|
+
framer: "framer";
|
|
188
|
+
rack: "rack";
|
|
189
|
+
device: "device";
|
|
190
|
+
task: "task";
|
|
191
|
+
label: "label";
|
|
192
|
+
range: "range";
|
|
193
|
+
"range-alias": "range-alias";
|
|
194
|
+
user: "user";
|
|
195
|
+
lineplot: "lineplot";
|
|
196
|
+
log: "log";
|
|
197
|
+
workspace: "workspace";
|
|
198
|
+
schematic: "schematic";
|
|
199
|
+
table: "table";
|
|
200
|
+
builtin: "builtin";
|
|
201
|
+
cluster: "cluster";
|
|
202
|
+
node: "node";
|
|
203
|
+
}>;
|
|
111
204
|
key: z.ZodString;
|
|
112
|
-
},
|
|
205
|
+
}, {}>]>, z.ZodTransform<ID, {
|
|
113
206
|
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
114
207
|
key: string;
|
|
115
|
-
}
|
|
208
|
+
} | {
|
|
116
209
|
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
117
210
|
key: string;
|
|
118
|
-
}
|
|
119
|
-
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
120
|
-
key: string;
|
|
121
|
-
}>]>;
|
|
211
|
+
}>>]>;
|
|
122
212
|
name: z.ZodString;
|
|
123
213
|
schema: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
124
|
-
type: z.ZodEnum<
|
|
214
|
+
type: z.ZodEnum<{
|
|
215
|
+
policy: "policy";
|
|
216
|
+
allow_all: "allow_all";
|
|
217
|
+
channel: "channel";
|
|
218
|
+
group: "group";
|
|
219
|
+
framer: "framer";
|
|
220
|
+
rack: "rack";
|
|
221
|
+
device: "device";
|
|
222
|
+
task: "task";
|
|
223
|
+
label: "label";
|
|
224
|
+
range: "range";
|
|
225
|
+
"range-alias": "range-alias";
|
|
226
|
+
user: "user";
|
|
227
|
+
lineplot: "lineplot";
|
|
228
|
+
log: "log";
|
|
229
|
+
workspace: "workspace";
|
|
230
|
+
schematic: "schematic";
|
|
231
|
+
table: "table";
|
|
232
|
+
builtin: "builtin";
|
|
233
|
+
cluster: "cluster";
|
|
234
|
+
node: "node";
|
|
235
|
+
}>;
|
|
125
236
|
fields: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
126
237
|
type: z.ZodNumber;
|
|
127
|
-
},
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
}, "strip", z.ZodTypeAny, {
|
|
133
|
-
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
134
|
-
fields: Record<string, {
|
|
135
|
-
type: number;
|
|
136
|
-
}>;
|
|
137
|
-
}, {
|
|
138
|
-
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
139
|
-
fields: Record<string, {
|
|
140
|
-
type: number;
|
|
141
|
-
}>;
|
|
142
|
-
}>>>;
|
|
143
|
-
data: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
144
|
-
}, "strip", z.ZodTypeAny, {
|
|
145
|
-
name: string;
|
|
146
|
-
id: ID;
|
|
147
|
-
data?: Record<string, unknown> | null | undefined;
|
|
148
|
-
schema?: {
|
|
149
|
-
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
150
|
-
fields: Record<string, {
|
|
151
|
-
type: number;
|
|
152
|
-
}>;
|
|
153
|
-
} | null | undefined;
|
|
154
|
-
}, {
|
|
155
|
-
name: string;
|
|
156
|
-
id: string | ID | {
|
|
157
|
-
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
158
|
-
key: string;
|
|
159
|
-
};
|
|
160
|
-
data?: Record<string, unknown> | null | undefined;
|
|
238
|
+
}, {}>>;
|
|
239
|
+
}, {}>>>;
|
|
240
|
+
data: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodSymbol]>, z.ZodUnknown>>>;
|
|
241
|
+
}, {}>, z.ZodTransform<{
|
|
242
|
+
data?: Record<string | number | symbol, unknown> | null | undefined;
|
|
161
243
|
schema?: {
|
|
162
244
|
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
163
245
|
fields: Record<string, {
|
|
164
246
|
type: number;
|
|
165
247
|
}>;
|
|
166
248
|
} | null | undefined;
|
|
167
|
-
}>, {
|
|
168
|
-
name: string;
|
|
169
249
|
id: ID;
|
|
170
|
-
|
|
171
|
-
schema?: {
|
|
172
|
-
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
173
|
-
fields: Record<string, {
|
|
174
|
-
type: number;
|
|
175
|
-
}>;
|
|
176
|
-
} | null | undefined;
|
|
250
|
+
name: string;
|
|
177
251
|
key: string;
|
|
178
252
|
}, {
|
|
179
|
-
|
|
180
|
-
id: string | ID | {
|
|
181
|
-
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
182
|
-
key: string;
|
|
183
|
-
};
|
|
184
|
-
data?: Record<string, unknown> | null | undefined;
|
|
253
|
+
data?: Record<string | number | symbol, unknown> | null | undefined;
|
|
185
254
|
schema?: {
|
|
186
255
|
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
187
256
|
fields: Record<string, {
|
|
188
257
|
type: number;
|
|
189
258
|
}>;
|
|
190
259
|
} | null | undefined;
|
|
191
|
-
|
|
260
|
+
id: ID;
|
|
261
|
+
name: string;
|
|
262
|
+
}>>;
|
|
192
263
|
export interface Resource<T extends UnknownRecord = UnknownRecord> extends Omit<z.output<typeof resourceZ>, "data"> {
|
|
193
264
|
data?: T | null;
|
|
194
265
|
}
|
|
@@ -196,54 +267,76 @@ export declare const TO_RELATIONSHIP_DIRECTION = "to";
|
|
|
196
267
|
export declare const FROM_RELATIONSHIP_DIRECTION = "from";
|
|
197
268
|
export type RelationshipDirection = typeof TO_RELATIONSHIP_DIRECTION | typeof FROM_RELATIONSHIP_DIRECTION;
|
|
198
269
|
export declare const relationshipSchemaZ: z.ZodObject<{
|
|
199
|
-
from: z.ZodUnion<[z.
|
|
270
|
+
from: z.ZodUnion<readonly [z.ZodCustom<ID, unknown>, z.ZodPipe<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
200
271
|
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
201
272
|
key: string;
|
|
202
|
-
}, string
|
|
203
|
-
type: z.ZodEnum<
|
|
273
|
+
}, string>>, z.ZodObject<{
|
|
274
|
+
type: z.ZodEnum<{
|
|
275
|
+
policy: "policy";
|
|
276
|
+
allow_all: "allow_all";
|
|
277
|
+
channel: "channel";
|
|
278
|
+
group: "group";
|
|
279
|
+
framer: "framer";
|
|
280
|
+
rack: "rack";
|
|
281
|
+
device: "device";
|
|
282
|
+
task: "task";
|
|
283
|
+
label: "label";
|
|
284
|
+
range: "range";
|
|
285
|
+
"range-alias": "range-alias";
|
|
286
|
+
user: "user";
|
|
287
|
+
lineplot: "lineplot";
|
|
288
|
+
log: "log";
|
|
289
|
+
workspace: "workspace";
|
|
290
|
+
schematic: "schematic";
|
|
291
|
+
table: "table";
|
|
292
|
+
builtin: "builtin";
|
|
293
|
+
cluster: "cluster";
|
|
294
|
+
node: "node";
|
|
295
|
+
}>;
|
|
204
296
|
key: z.ZodString;
|
|
205
|
-
},
|
|
206
|
-
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
207
|
-
key: string;
|
|
208
|
-
}, {
|
|
297
|
+
}, {}>]>, z.ZodTransform<ID, {
|
|
209
298
|
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
210
299
|
key: string;
|
|
211
|
-
}
|
|
300
|
+
} | {
|
|
212
301
|
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
213
302
|
key: string;
|
|
214
|
-
}
|
|
303
|
+
}>>]>;
|
|
215
304
|
type: z.ZodString;
|
|
216
|
-
to: z.ZodUnion<[z.
|
|
305
|
+
to: z.ZodUnion<readonly [z.ZodCustom<ID, unknown>, z.ZodPipe<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
217
306
|
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
218
307
|
key: string;
|
|
219
|
-
}, string
|
|
220
|
-
type: z.ZodEnum<
|
|
308
|
+
}, string>>, z.ZodObject<{
|
|
309
|
+
type: z.ZodEnum<{
|
|
310
|
+
policy: "policy";
|
|
311
|
+
allow_all: "allow_all";
|
|
312
|
+
channel: "channel";
|
|
313
|
+
group: "group";
|
|
314
|
+
framer: "framer";
|
|
315
|
+
rack: "rack";
|
|
316
|
+
device: "device";
|
|
317
|
+
task: "task";
|
|
318
|
+
label: "label";
|
|
319
|
+
range: "range";
|
|
320
|
+
"range-alias": "range-alias";
|
|
321
|
+
user: "user";
|
|
322
|
+
lineplot: "lineplot";
|
|
323
|
+
log: "log";
|
|
324
|
+
workspace: "workspace";
|
|
325
|
+
schematic: "schematic";
|
|
326
|
+
table: "table";
|
|
327
|
+
builtin: "builtin";
|
|
328
|
+
cluster: "cluster";
|
|
329
|
+
node: "node";
|
|
330
|
+
}>;
|
|
221
331
|
key: z.ZodString;
|
|
222
|
-
},
|
|
223
|
-
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
224
|
-
key: string;
|
|
225
|
-
}, {
|
|
332
|
+
}, {}>]>, z.ZodTransform<ID, {
|
|
226
333
|
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
227
334
|
key: string;
|
|
228
|
-
}
|
|
335
|
+
} | {
|
|
229
336
|
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
230
337
|
key: string;
|
|
231
|
-
}
|
|
232
|
-
},
|
|
233
|
-
type: string;
|
|
234
|
-
to: ID;
|
|
235
|
-
from: ID;
|
|
236
|
-
}, {
|
|
237
|
-
type: string;
|
|
238
|
-
to: string | ID | {
|
|
239
|
-
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
240
|
-
key: string;
|
|
241
|
-
};
|
|
242
|
-
from: string | ID | {
|
|
243
|
-
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
244
|
-
key: string;
|
|
245
|
-
};
|
|
246
|
-
}>;
|
|
338
|
+
}>>]>;
|
|
339
|
+
}, {}>;
|
|
247
340
|
export interface Relationship extends z.infer<typeof relationshipSchemaZ> {
|
|
248
341
|
}
|
|
249
342
|
export declare const parseRelationship: (str: string) => Relationship;
|