@synnaxlabs/client 0.25.0 → 0.26.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/access/access.spec.d.ts +2 -0
- package/dist/access/access.spec.d.ts.map +1 -0
- package/dist/access/client.d.ts +13 -0
- package/dist/access/client.d.ts.map +1 -0
- package/dist/access/external.d.ts +3 -0
- package/dist/access/external.d.ts.map +1 -0
- package/dist/access/index.d.ts +2 -0
- package/dist/access/index.d.ts.map +1 -0
- package/dist/access/payload.d.ts +105 -0
- package/dist/access/payload.d.ts.map +1 -0
- package/dist/auth/auth.d.ts.map +1 -1
- package/dist/channel/payload.d.ts +17 -14
- package/dist/channel/payload.d.ts.map +1 -1
- package/dist/channel/retriever.d.ts +7 -7
- package/dist/client.cjs +18 -18
- package/dist/client.d.ts +4 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +2177 -2103
- package/dist/control/state.d.ts +1 -1
- package/dist/control/state.d.ts.map +1 -1
- package/dist/framer/client.d.ts.map +1 -1
- package/dist/framer/deleter.d.ts +1 -1
- package/dist/framer/deleter.d.ts.map +1 -1
- package/dist/hardware/device/client.d.ts +1 -66
- package/dist/hardware/device/client.d.ts.map +1 -1
- package/dist/hardware/device/external.d.ts +1 -0
- package/dist/hardware/device/external.d.ts.map +1 -1
- package/dist/hardware/device/index.d.ts +1 -1
- package/dist/hardware/device/index.d.ts.map +1 -1
- package/dist/hardware/device/payload.d.ts +73 -0
- package/dist/hardware/device/payload.d.ts.map +1 -0
- package/dist/hardware/rack/client.d.ts +2 -25
- package/dist/hardware/rack/client.d.ts.map +1 -1
- package/dist/hardware/rack/external.d.ts +1 -0
- package/dist/hardware/rack/external.d.ts.map +1 -1
- package/dist/hardware/rack/payload.d.ts +30 -0
- package/dist/hardware/rack/payload.d.ts.map +1 -0
- package/dist/hardware/task/client.d.ts +1 -145
- package/dist/hardware/task/client.d.ts.map +1 -1
- package/dist/hardware/task/external.d.ts +3 -0
- package/dist/hardware/task/external.d.ts.map +1 -0
- package/dist/hardware/task/index.d.ts +1 -1
- package/dist/hardware/task/index.d.ts.map +1 -1
- package/dist/hardware/task/payload.d.ts +151 -0
- package/dist/hardware/task/payload.d.ts.map +1 -0
- package/dist/label/payload.d.ts +1 -0
- package/dist/label/payload.d.ts.map +1 -1
- package/dist/ontology/client.d.ts +5 -5
- package/dist/ontology/payload.d.ts +40 -37
- package/dist/ontology/payload.d.ts.map +1 -1
- package/dist/ranger/payload.d.ts +5 -0
- package/dist/ranger/payload.d.ts.map +1 -1
- package/dist/setupspecs.d.ts.map +1 -1
- package/dist/signals/observable.d.ts +1 -1
- package/dist/signals/observable.d.ts.map +1 -1
- package/dist/user/client.d.ts +9 -0
- package/dist/user/client.d.ts.map +1 -0
- package/dist/user/external.d.ts +3 -0
- package/dist/user/external.d.ts.map +1 -0
- package/dist/user/index.d.ts +1 -1
- package/dist/user/index.d.ts.map +1 -1
- package/dist/user/payload.d.ts +5 -0
- package/dist/user/payload.d.ts.map +1 -1
- package/dist/workspace/lineplot/payload.d.ts +3 -0
- package/dist/workspace/lineplot/payload.d.ts.map +1 -1
- package/dist/workspace/payload.d.ts +3 -0
- package/dist/workspace/payload.d.ts.map +1 -1
- package/dist/workspace/schematic/payload.d.ts +3 -0
- package/dist/workspace/schematic/payload.d.ts.map +1 -1
- package/examples/node/package.json +1 -1
- package/package.json +5 -5
- package/src/access/access.spec.ts +276 -0
- package/src/access/client.ts +86 -0
- package/src/access/external.ts +11 -0
- package/src/access/index.ts +10 -0
- package/src/access/payload.ts +35 -0
- package/src/auth/auth.ts +1 -1
- package/src/channel/payload.ts +7 -0
- package/src/client.ts +7 -1
- package/src/control/state.ts +3 -3
- package/src/framer/client.ts +1 -0
- package/src/framer/deleter.ts +2 -4
- package/src/hardware/device/client.ts +8 -36
- package/src/hardware/device/external.ts +1 -0
- package/src/hardware/device/index.ts +1 -1
- package/src/hardware/device/payload.ts +44 -0
- package/src/hardware/rack/client.ts +10 -15
- package/src/hardware/rack/external.ts +1 -0
- package/src/hardware/rack/payload.ts +23 -0
- package/src/hardware/task/client.ts +1 -84
- package/src/hardware/task/external.ts +11 -0
- package/src/hardware/task/index.ts +1 -1
- package/src/hardware/task/payload.ts +92 -0
- package/src/label/payload.ts +3 -1
- package/src/ontology/payload.ts +6 -1
- package/src/ranger/payload.ts +11 -0
- package/src/setupspecs.ts +4 -2
- package/src/signals/observable.ts +5 -3
- package/src/transport.ts +3 -3
- package/src/user/client.ts +37 -0
- package/src/user/external.ts +11 -0
- package/src/user/index.ts +1 -1
- package/src/user/payload.ts +11 -0
- package/src/workspace/lineplot/payload.ts +7 -0
- package/src/workspace/payload.ts +7 -0
- package/src/workspace/schematic/payload.ts +7 -0
- package/tsconfig.json +4 -2
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { observe, UnknownRecord } from '@synnaxlabs/x';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { ontology } from '../../ontology';
|
|
4
|
+
|
|
5
|
+
export declare const taskKeyZ: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodBigInt, string, bigint>, z.ZodEffects<z.ZodNumber, string, number>]>;
|
|
6
|
+
export type TaskKey = z.infer<typeof taskKeyZ>;
|
|
7
|
+
export declare const stateZ: z.ZodObject<{
|
|
8
|
+
task: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodBigInt, string, bigint>, z.ZodEffects<z.ZodNumber, string, number>]>;
|
|
9
|
+
variant: z.ZodString;
|
|
10
|
+
key: z.ZodOptional<z.ZodString>;
|
|
11
|
+
details: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodEffects<z.ZodString, any, string>]>, z.ZodArray<z.ZodUnknown, "many">]>, z.ZodNull]>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
13
|
+
variant: string;
|
|
14
|
+
task: string;
|
|
15
|
+
key?: string | undefined;
|
|
16
|
+
details?: any;
|
|
17
|
+
}, {
|
|
18
|
+
variant: string;
|
|
19
|
+
task: string | number | bigint;
|
|
20
|
+
details: string | unknown[] | Record<string, unknown> | null;
|
|
21
|
+
key?: string | undefined;
|
|
22
|
+
}>;
|
|
23
|
+
export type State<D extends {} = UnknownRecord> = Omit<z.infer<typeof stateZ>, "details"> & {
|
|
24
|
+
details?: D;
|
|
25
|
+
};
|
|
26
|
+
export declare const taskZ: z.ZodObject<{
|
|
27
|
+
key: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodBigInt, string, bigint>, z.ZodEffects<z.ZodNumber, string, number>]>;
|
|
28
|
+
name: z.ZodString;
|
|
29
|
+
type: z.ZodString;
|
|
30
|
+
internal: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
config: z.ZodType<UnknownRecord>;
|
|
32
|
+
state: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
33
|
+
task: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodBigInt, string, bigint>, z.ZodEffects<z.ZodNumber, string, number>]>;
|
|
34
|
+
variant: z.ZodString;
|
|
35
|
+
key: z.ZodOptional<z.ZodString>;
|
|
36
|
+
details: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodEffects<z.ZodString, any, string>]>, z.ZodArray<z.ZodUnknown, "many">]>, z.ZodNull]>;
|
|
37
|
+
}, "strip", z.ZodTypeAny, {
|
|
38
|
+
variant: string;
|
|
39
|
+
task: string;
|
|
40
|
+
key?: string | undefined;
|
|
41
|
+
details?: any;
|
|
42
|
+
}, {
|
|
43
|
+
variant: string;
|
|
44
|
+
task: string | number | bigint;
|
|
45
|
+
details: string | unknown[] | Record<string, unknown> | null;
|
|
46
|
+
key?: string | undefined;
|
|
47
|
+
}>>>;
|
|
48
|
+
}, "strip", z.ZodTypeAny, {
|
|
49
|
+
type: string;
|
|
50
|
+
name: string;
|
|
51
|
+
key: string;
|
|
52
|
+
config: UnknownRecord;
|
|
53
|
+
internal?: boolean | undefined;
|
|
54
|
+
state?: {
|
|
55
|
+
variant: string;
|
|
56
|
+
task: string;
|
|
57
|
+
key?: string | undefined;
|
|
58
|
+
details?: any;
|
|
59
|
+
} | null | undefined;
|
|
60
|
+
}, {
|
|
61
|
+
type: string;
|
|
62
|
+
name: string;
|
|
63
|
+
key: string | number | bigint;
|
|
64
|
+
config: UnknownRecord;
|
|
65
|
+
internal?: boolean | undefined;
|
|
66
|
+
state?: {
|
|
67
|
+
variant: string;
|
|
68
|
+
task: string | number | bigint;
|
|
69
|
+
details: string | unknown[] | Record<string, unknown> | null;
|
|
70
|
+
key?: string | undefined;
|
|
71
|
+
} | null | undefined;
|
|
72
|
+
}>;
|
|
73
|
+
export declare const newTaskZ: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
74
|
+
key: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodBigInt, string, bigint>, z.ZodEffects<z.ZodNumber, string, number>]>;
|
|
75
|
+
name: z.ZodString;
|
|
76
|
+
type: z.ZodString;
|
|
77
|
+
internal: z.ZodOptional<z.ZodBoolean>;
|
|
78
|
+
config: z.ZodType<UnknownRecord>;
|
|
79
|
+
state: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
80
|
+
task: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodBigInt, string, bigint>, z.ZodEffects<z.ZodNumber, string, number>]>;
|
|
81
|
+
variant: z.ZodString;
|
|
82
|
+
key: z.ZodOptional<z.ZodString>;
|
|
83
|
+
details: z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodEffects<z.ZodString, any, string>]>, z.ZodArray<z.ZodUnknown, "many">]>, z.ZodNull]>;
|
|
84
|
+
}, "strip", z.ZodTypeAny, {
|
|
85
|
+
variant: string;
|
|
86
|
+
task: string;
|
|
87
|
+
key?: string | undefined;
|
|
88
|
+
details?: any;
|
|
89
|
+
}, {
|
|
90
|
+
variant: string;
|
|
91
|
+
task: string | number | bigint;
|
|
92
|
+
details: string | unknown[] | Record<string, unknown> | null;
|
|
93
|
+
key?: string | undefined;
|
|
94
|
+
}>>>;
|
|
95
|
+
}, "key">, {
|
|
96
|
+
key: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodBigInt, string, bigint>, z.ZodEffects<z.ZodNumber, string, number>]>, string, string | number | bigint>>;
|
|
97
|
+
config: z.ZodEffects<z.ZodUnknown, string, unknown>;
|
|
98
|
+
}>, "strip", z.ZodTypeAny, {
|
|
99
|
+
type: string;
|
|
100
|
+
name: string;
|
|
101
|
+
config: string;
|
|
102
|
+
internal?: boolean | undefined;
|
|
103
|
+
key?: string | undefined;
|
|
104
|
+
state?: {
|
|
105
|
+
variant: string;
|
|
106
|
+
task: string;
|
|
107
|
+
key?: string | undefined;
|
|
108
|
+
details?: any;
|
|
109
|
+
} | null | undefined;
|
|
110
|
+
}, {
|
|
111
|
+
type: string;
|
|
112
|
+
name: string;
|
|
113
|
+
internal?: boolean | undefined;
|
|
114
|
+
key?: string | number | bigint | undefined;
|
|
115
|
+
config?: unknown;
|
|
116
|
+
state?: {
|
|
117
|
+
variant: string;
|
|
118
|
+
task: string | number | bigint;
|
|
119
|
+
details: string | unknown[] | Record<string, unknown> | null;
|
|
120
|
+
key?: string | undefined;
|
|
121
|
+
} | null | undefined;
|
|
122
|
+
}>;
|
|
123
|
+
export type NewTask<C extends UnknownRecord = UnknownRecord, T extends string = string> = Omit<z.input<typeof newTaskZ>, "config" | "state"> & {
|
|
124
|
+
type: T;
|
|
125
|
+
config: C;
|
|
126
|
+
};
|
|
127
|
+
export type Payload<C extends UnknownRecord = UnknownRecord, D extends {} = UnknownRecord, T extends string = string> = Omit<z.output<typeof taskZ>, "config" | "type" | "state"> & {
|
|
128
|
+
type: T;
|
|
129
|
+
config: C;
|
|
130
|
+
state?: State<D> | null;
|
|
131
|
+
};
|
|
132
|
+
export declare const commandZ: z.ZodObject<{
|
|
133
|
+
task: z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodBigInt, string, bigint>, z.ZodEffects<z.ZodNumber, string, number>]>;
|
|
134
|
+
type: z.ZodString;
|
|
135
|
+
key: z.ZodString;
|
|
136
|
+
args: z.ZodType<UnknownRecord>;
|
|
137
|
+
}, "strip", z.ZodTypeAny, {
|
|
138
|
+
type: string;
|
|
139
|
+
key: string;
|
|
140
|
+
task: string;
|
|
141
|
+
args: UnknownRecord;
|
|
142
|
+
}, {
|
|
143
|
+
type: string;
|
|
144
|
+
key: string;
|
|
145
|
+
task: string | number | bigint;
|
|
146
|
+
args: UnknownRecord;
|
|
147
|
+
}>;
|
|
148
|
+
export type StateObservable<D extends UnknownRecord = UnknownRecord> = observe.ObservableAsyncCloseable<State<D>>;
|
|
149
|
+
export declare const DeviceOntologyType: ontology.ResourceType;
|
|
150
|
+
export declare const ontologyID: (key: TaskKey) => ontology.ID;
|
|
151
|
+
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../src/hardware/task/payload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,eAAO,MAAM,QAAQ,iHAInB,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;AAE/C,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;EAcjB,CAAC;AAEH,MAAM,MAAM,KAAK,CAAC,CAAC,SAAS,EAAE,GAAG,aAAa,IAAI,IAAI,CACpD,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,EACtB,SAAS,CACV,GAAG;IACF,OAAO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;AAElE,eAAO,MAAM,UAAU,QAAS,OAAO,KAAG,QAAQ,CAAC,EACiB,CAAC"}
|
package/dist/label/payload.d.ts
CHANGED
|
@@ -18,5 +18,6 @@ export declare const labelZ: z.ZodObject<{
|
|
|
18
18
|
color: string;
|
|
19
19
|
}>;
|
|
20
20
|
export type Label = z.infer<typeof labelZ>;
|
|
21
|
+
export declare const LabelOntologyType: ontology.ResourceType;
|
|
21
22
|
export declare const ontologyID: (key: Key) => ontology.ID;
|
|
22
23
|
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../src/label/payload.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,eAAO,MAAM,IAAI,aAAoB,CAAC;AAEtC,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AAEvC,MAAM,MAAM,MAAM,GAAG,GAAG,GAAG,GAAG,EAAE,CAAC;AAEjC,eAAO,MAAM,MAAM;;;;;;;;;;;;EAIjB,CAAC;AAEH,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC;AAE3C,eAAO,MAAM,UAAU,QAAS,GAAG,KAAG,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../src/label/payload.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,eAAO,MAAM,IAAI,aAAoB,CAAC;AAEtC,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AAEvC,MAAM,MAAM,MAAM,GAAG,GAAG,GAAG,GAAG,EAAE,CAAC;AAEjC,eAAO,MAAM,MAAM;;;;;;;;;;;;EAIjB,CAAC;AAEH,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,MAAM,CAAC,CAAC;AAE3C,eAAO,MAAM,iBAAiB,EAAc,QAAQ,CAAC,YAAY,CAAC;AAElE,eAAO,MAAM,UAAU,QAAS,GAAG,KAAG,QAAQ,CAAC,EACI,CAAC"}
|
|
@@ -8,14 +8,14 @@ import { ID, RelationshipChange, Resource, ResourceChange } from './payload';
|
|
|
8
8
|
|
|
9
9
|
declare const retrieveReqZ: z.ZodObject<{
|
|
10
10
|
ids: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
11
|
-
type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"schematic">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">, z.ZodLiteral<"device">, z.ZodLiteral<"task">]>;
|
|
11
|
+
type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"schematic">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">, z.ZodLiteral<"device">, z.ZodLiteral<"task">, z.ZodLiteral<"policy">]>;
|
|
12
12
|
key: z.ZodString;
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
14
15
|
key: string;
|
|
15
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
16
16
|
}, {
|
|
17
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
17
18
|
key: string;
|
|
18
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
19
19
|
}>, "many">>;
|
|
20
20
|
children: z.ZodOptional<z.ZodBoolean>;
|
|
21
21
|
parents: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -29,8 +29,8 @@ declare const retrieveReqZ: z.ZodObject<{
|
|
|
29
29
|
offset?: number | undefined;
|
|
30
30
|
children?: boolean | undefined;
|
|
31
31
|
ids?: {
|
|
32
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
32
33
|
key: string;
|
|
33
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
34
34
|
}[] | undefined;
|
|
35
35
|
parents?: boolean | undefined;
|
|
36
36
|
includeSchema?: boolean | undefined;
|
|
@@ -41,8 +41,8 @@ declare const retrieveReqZ: z.ZodObject<{
|
|
|
41
41
|
offset?: number | undefined;
|
|
42
42
|
children?: boolean | undefined;
|
|
43
43
|
ids?: {
|
|
44
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
44
45
|
key: string;
|
|
45
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
46
46
|
}[] | undefined;
|
|
47
47
|
parents?: boolean | undefined;
|
|
48
48
|
includeSchema?: boolean | undefined;
|
|
@@ -7,17 +7,20 @@ export type ResourceDelete = change.Delete<ID, Resource>;
|
|
|
7
7
|
export type RelationshipChange = change.Change<Relationship, undefined>;
|
|
8
8
|
export type RelationshipSet = change.Set<Relationship, undefined>;
|
|
9
9
|
export type RelationshipDelete = change.Delete<Relationship, undefined>;
|
|
10
|
-
declare const resourceTypeZ: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"schematic">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">, z.ZodLiteral<"device">, z.ZodLiteral<"task">]>;
|
|
10
|
+
declare const resourceTypeZ: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"schematic">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">, z.ZodLiteral<"device">, z.ZodLiteral<"task">, z.ZodLiteral<"policy">]>;
|
|
11
11
|
export type ResourceType = z.infer<typeof resourceTypeZ>;
|
|
12
|
+
export declare const BuiltinOntologyType: ResourceType;
|
|
13
|
+
export declare const ClusterOntologyType: ResourceType;
|
|
14
|
+
export declare const NodeOntologyType: ResourceType;
|
|
12
15
|
export declare const idZ: z.ZodObject<{
|
|
13
|
-
type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"schematic">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">, z.ZodLiteral<"device">, z.ZodLiteral<"task">]>;
|
|
16
|
+
type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"schematic">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">, z.ZodLiteral<"device">, z.ZodLiteral<"task">, z.ZodLiteral<"policy">]>;
|
|
14
17
|
key: z.ZodString;
|
|
15
18
|
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
16
20
|
key: string;
|
|
17
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
18
21
|
}, {
|
|
22
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
19
23
|
key: string;
|
|
20
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
21
24
|
}>;
|
|
22
25
|
export type IDPayload = z.infer<typeof idZ>;
|
|
23
26
|
export declare const stringIDZ: z.ZodEffects<z.ZodString, {
|
|
@@ -28,14 +31,14 @@ export declare const crudeIDZ: z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
|
28
31
|
type: ResourceType;
|
|
29
32
|
key: string;
|
|
30
33
|
}, string>, z.ZodObject<{
|
|
31
|
-
type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"schematic">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">, z.ZodLiteral<"device">, z.ZodLiteral<"task">]>;
|
|
34
|
+
type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"schematic">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">, z.ZodLiteral<"device">, z.ZodLiteral<"task">, z.ZodLiteral<"policy">]>;
|
|
32
35
|
key: z.ZodString;
|
|
33
36
|
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
34
38
|
key: string;
|
|
35
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
36
39
|
}, {
|
|
40
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
37
41
|
key: string;
|
|
38
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
39
42
|
}>]>;
|
|
40
43
|
export declare class ID {
|
|
41
44
|
type: ResourceType;
|
|
@@ -47,17 +50,17 @@ export declare class ID {
|
|
|
47
50
|
type: ResourceType;
|
|
48
51
|
key: string;
|
|
49
52
|
}, string>, z.ZodObject<{
|
|
50
|
-
type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"schematic">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">, z.ZodLiteral<"device">, z.ZodLiteral<"task">]>;
|
|
53
|
+
type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"schematic">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">, z.ZodLiteral<"device">, z.ZodLiteral<"task">, z.ZodLiteral<"policy">]>;
|
|
51
54
|
key: z.ZodString;
|
|
52
55
|
}, "strip", z.ZodTypeAny, {
|
|
56
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
53
57
|
key: string;
|
|
54
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
55
58
|
}, {
|
|
59
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
56
60
|
key: string;
|
|
57
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
58
61
|
}>]>, z.ZodType<ID, z.ZodTypeDef, ID>]>, ID, string | ID | {
|
|
62
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
59
63
|
key: string;
|
|
60
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
61
64
|
}>;
|
|
62
65
|
}
|
|
63
66
|
export declare const Root: ID;
|
|
@@ -70,7 +73,7 @@ export declare const schemaFieldZ: z.ZodObject<{
|
|
|
70
73
|
}>;
|
|
71
74
|
export type SchemaField = z.infer<typeof schemaFieldZ>;
|
|
72
75
|
export declare const schemaZ: z.ZodObject<{
|
|
73
|
-
type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"schematic">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">, z.ZodLiteral<"device">, z.ZodLiteral<"task">]>;
|
|
76
|
+
type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"schematic">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">, z.ZodLiteral<"device">, z.ZodLiteral<"task">, z.ZodLiteral<"policy">]>;
|
|
74
77
|
fields: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
75
78
|
type: z.ZodNumber;
|
|
76
79
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -79,12 +82,12 @@ export declare const schemaZ: z.ZodObject<{
|
|
|
79
82
|
type: number;
|
|
80
83
|
}>>;
|
|
81
84
|
}, "strip", z.ZodTypeAny, {
|
|
82
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
85
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
83
86
|
fields: Record<string, {
|
|
84
87
|
type: number;
|
|
85
88
|
}>;
|
|
86
89
|
}, {
|
|
87
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
90
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
88
91
|
fields: Record<string, {
|
|
89
92
|
type: number;
|
|
90
93
|
}>;
|
|
@@ -95,21 +98,21 @@ export declare const resourceSchemaZ: z.ZodEffects<z.ZodObject<{
|
|
|
95
98
|
type: ResourceType;
|
|
96
99
|
key: string;
|
|
97
100
|
}, string>, z.ZodObject<{
|
|
98
|
-
type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"schematic">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">, z.ZodLiteral<"device">, z.ZodLiteral<"task">]>;
|
|
101
|
+
type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"schematic">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">, z.ZodLiteral<"device">, z.ZodLiteral<"task">, z.ZodLiteral<"policy">]>;
|
|
99
102
|
key: z.ZodString;
|
|
100
103
|
}, "strip", z.ZodTypeAny, {
|
|
104
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
101
105
|
key: string;
|
|
102
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
103
106
|
}, {
|
|
107
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
104
108
|
key: string;
|
|
105
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
106
109
|
}>]>, z.ZodType<ID, z.ZodTypeDef, ID>]>, ID, string | ID | {
|
|
110
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
107
111
|
key: string;
|
|
108
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
109
112
|
}>;
|
|
110
113
|
name: z.ZodString;
|
|
111
114
|
schema: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
112
|
-
type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"schematic">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">, z.ZodLiteral<"device">, z.ZodLiteral<"task">]>;
|
|
115
|
+
type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"schematic">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">, z.ZodLiteral<"device">, z.ZodLiteral<"task">, z.ZodLiteral<"policy">]>;
|
|
113
116
|
fields: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
114
117
|
type: z.ZodNumber;
|
|
115
118
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -118,12 +121,12 @@ export declare const resourceSchemaZ: z.ZodEffects<z.ZodObject<{
|
|
|
118
121
|
type: number;
|
|
119
122
|
}>>;
|
|
120
123
|
}, "strip", z.ZodTypeAny, {
|
|
121
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
124
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
122
125
|
fields: Record<string, {
|
|
123
126
|
type: number;
|
|
124
127
|
}>;
|
|
125
128
|
}, {
|
|
126
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
129
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
127
130
|
fields: Record<string, {
|
|
128
131
|
type: number;
|
|
129
132
|
}>;
|
|
@@ -134,7 +137,7 @@ export declare const resourceSchemaZ: z.ZodEffects<z.ZodObject<{
|
|
|
134
137
|
id: ID;
|
|
135
138
|
data?: Record<string, unknown> | null | undefined;
|
|
136
139
|
schema?: {
|
|
137
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
140
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
138
141
|
fields: Record<string, {
|
|
139
142
|
type: number;
|
|
140
143
|
}>;
|
|
@@ -142,12 +145,12 @@ export declare const resourceSchemaZ: z.ZodEffects<z.ZodObject<{
|
|
|
142
145
|
}, {
|
|
143
146
|
name: string;
|
|
144
147
|
id: string | ID | {
|
|
148
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
145
149
|
key: string;
|
|
146
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
147
150
|
};
|
|
148
151
|
data?: Record<string, unknown> | null | undefined;
|
|
149
152
|
schema?: {
|
|
150
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
153
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
151
154
|
fields: Record<string, {
|
|
152
155
|
type: number;
|
|
153
156
|
}>;
|
|
@@ -157,7 +160,7 @@ export declare const resourceSchemaZ: z.ZodEffects<z.ZodObject<{
|
|
|
157
160
|
id: ID;
|
|
158
161
|
data?: Record<string, unknown> | null | undefined;
|
|
159
162
|
schema?: {
|
|
160
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
163
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
161
164
|
fields: Record<string, {
|
|
162
165
|
type: number;
|
|
163
166
|
}>;
|
|
@@ -166,12 +169,12 @@ export declare const resourceSchemaZ: z.ZodEffects<z.ZodObject<{
|
|
|
166
169
|
}, {
|
|
167
170
|
name: string;
|
|
168
171
|
id: string | ID | {
|
|
172
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
169
173
|
key: string;
|
|
170
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
171
174
|
};
|
|
172
175
|
data?: Record<string, unknown> | null | undefined;
|
|
173
176
|
schema?: {
|
|
174
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
177
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
175
178
|
fields: Record<string, {
|
|
176
179
|
type: number;
|
|
177
180
|
}>;
|
|
@@ -185,34 +188,34 @@ export declare const relationshipSchemaZ: z.ZodObject<{
|
|
|
185
188
|
type: ResourceType;
|
|
186
189
|
key: string;
|
|
187
190
|
}, string>, z.ZodObject<{
|
|
188
|
-
type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"schematic">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">, z.ZodLiteral<"device">, z.ZodLiteral<"task">]>;
|
|
191
|
+
type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"schematic">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">, z.ZodLiteral<"device">, z.ZodLiteral<"task">, z.ZodLiteral<"policy">]>;
|
|
189
192
|
key: z.ZodString;
|
|
190
193
|
}, "strip", z.ZodTypeAny, {
|
|
194
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
191
195
|
key: string;
|
|
192
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
193
196
|
}, {
|
|
197
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
194
198
|
key: string;
|
|
195
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
196
199
|
}>]>, z.ZodType<ID, z.ZodTypeDef, ID>]>, ID, string | ID | {
|
|
200
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
197
201
|
key: string;
|
|
198
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
199
202
|
}>;
|
|
200
203
|
type: z.ZodString;
|
|
201
204
|
to: z.ZodEffects<z.ZodUnion<[z.ZodUnion<[z.ZodEffects<z.ZodString, {
|
|
202
205
|
type: ResourceType;
|
|
203
206
|
key: string;
|
|
204
207
|
}, string>, z.ZodObject<{
|
|
205
|
-
type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"schematic">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">, z.ZodLiteral<"device">, z.ZodLiteral<"task">]>;
|
|
208
|
+
type: z.ZodUnion<[z.ZodLiteral<"label">, z.ZodLiteral<"builtin">, z.ZodLiteral<"cluster">, z.ZodLiteral<"channel">, z.ZodLiteral<"node">, z.ZodLiteral<"group">, z.ZodLiteral<"range">, z.ZodLiteral<"range-alias">, z.ZodLiteral<"user">, z.ZodLiteral<"workspace">, z.ZodLiteral<"schematic">, z.ZodLiteral<"lineplot">, z.ZodLiteral<"rack">, z.ZodLiteral<"device">, z.ZodLiteral<"task">, z.ZodLiteral<"policy">]>;
|
|
206
209
|
key: z.ZodString;
|
|
207
210
|
}, "strip", z.ZodTypeAny, {
|
|
211
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
208
212
|
key: string;
|
|
209
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
210
213
|
}, {
|
|
214
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
211
215
|
key: string;
|
|
212
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
213
216
|
}>]>, z.ZodType<ID, z.ZodTypeDef, ID>]>, ID, string | ID | {
|
|
217
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
214
218
|
key: string;
|
|
215
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
216
219
|
}>;
|
|
217
220
|
}, "strip", z.ZodTypeAny, {
|
|
218
221
|
type: string;
|
|
@@ -221,12 +224,12 @@ export declare const relationshipSchemaZ: z.ZodObject<{
|
|
|
221
224
|
}, {
|
|
222
225
|
type: string;
|
|
223
226
|
from: string | ID | {
|
|
227
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
224
228
|
key: string;
|
|
225
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
226
229
|
};
|
|
227
230
|
to: string | ID | {
|
|
231
|
+
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy";
|
|
228
232
|
key: string;
|
|
229
|
-
type: "label" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task";
|
|
230
233
|
};
|
|
231
234
|
}>;
|
|
232
235
|
export type Relationship = z.infer<typeof relationshipSchemaZ>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../src/ontology/payload.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../src/ontology/payload.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;AACzD,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;AACnD,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;AACzD,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;AACxE,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;AAClE,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,SAAS,CAAC,CAAC;AAExE,QAAA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;;;;;;;;;;;;;;;;;;;EAgEjC,CAAC;AAEL,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,aAAa,GAAG,aAAa,IAAI,IAAI,CAClE,CAAC,CAAC,MAAM,CAAC,OAAO,eAAe,CAAC,EAChC,MAAM,CACP,GAAG;IAAE,IAAI,CAAC,EAAE,CAAC,GAAG,IAAI,CAAA;CAAE,CAAC;AAExB,eAAO,MAAM,mBAAmB;;cAvEP,YAAY;;;;;;;;;;;;;;;;;cAAZ,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2EnC,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAE/D,eAAO,MAAM,iBAAiB,QAAS,MAAM,KAAG,YAG/C,CAAC"}
|
package/dist/ranger/payload.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { TimeRange } from '@synnaxlabs/x/telem';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
+
import { ontology } from '../ontology';
|
|
3
4
|
|
|
4
5
|
export declare const keyZ: z.ZodString;
|
|
5
6
|
export type Key = z.infer<typeof keyZ>;
|
|
@@ -151,4 +152,8 @@ export type ParamAnalysisResult = {
|
|
|
151
152
|
actual: Names;
|
|
152
153
|
};
|
|
153
154
|
export declare const analyzeParams: (params: Params) => ParamAnalysisResult;
|
|
155
|
+
export declare const RangeOntologyType: ontology.ResourceType;
|
|
156
|
+
export declare const RangeAliasOntologyType: ontology.ResourceType;
|
|
157
|
+
export declare const rangeOntologyID: (key: Key) => ontology.ID;
|
|
158
|
+
export declare const rangeAliasOntologyID: (key: Key) => ontology.ID;
|
|
154
159
|
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../src/ranger/payload.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC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,MAAM,EAAE,IAAI,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,KAAK,CAAC;IAClB,MAAM,EAAE,IAAI,CAAC;CACd,GACD;IACE,MAAM,EAAE,KAAK,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,IAAI,CAAC;IACjB,MAAM,EAAE,IAAI,CAAC;CACd,GACD;IACE,MAAM,EAAE,KAAK,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,KAAK,CAAC;IAClB,MAAM,EAAE,KAAK,CAAC;CACf,CAAC;AAEN,eAAO,MAAM,aAAa,WAAY,MAAM,KAAG,mBAY9C,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAc,QAAQ,CAAC,YAAY,CAAC;AAClE,eAAO,MAAM,sBAAsB,EAAoB,QAAQ,CAAC,YAAY,CAAC;AAE7E,eAAO,MAAM,eAAe,QAAS,GAAG,KAAG,QAAQ,CAAC,EACI,CAAC;AAEzD,eAAO,MAAM,oBAAoB,QAAS,GAAG,KAAG,QAAQ,CAAC,EACI,CAAC"}
|
package/dist/setupspecs.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setupspecs.d.ts","sourceRoot":"","sources":["../src/setupspecs.ts"],"names":[],"mappings":"AASA,OAAO,MAAM,EAAE,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAEpD,eAAO,MAAM,IAAI,cAAc,CAAC;AAChC,eAAO,MAAM,IAAI,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"setupspecs.d.ts","sourceRoot":"","sources":["../src/setupspecs.ts"],"names":[],"mappings":"AASA,OAAO,MAAM,EAAE,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAEpD,eAAO,MAAM,IAAI,cAAc,CAAC;AAChC,eAAO,MAAM,IAAI,OAAO,CAAC;AAIzB,eAAO,MAAM,SAAS,aAAc,WAAW,EAAE,KAAG,MAUnD,CAAC"}
|
|
@@ -7,5 +7,5 @@ import { framer } from '../framer';
|
|
|
7
7
|
export type Decoder<K, V> = (variant: change.Variant, data: Series) => Array<change.Change<K, V>>;
|
|
8
8
|
export interface Observable<K, V> extends observe.ObservableAsyncCloseable<Array<change.Change<K, V>>> {
|
|
9
9
|
}
|
|
10
|
-
export declare const openObservable: <K, V>(client: framer.Client, setChannel: channel.Key | channel.Name, deleteChannel: channel.Key | channel.Name,
|
|
10
|
+
export declare const openObservable: <K, V>(client: framer.Client, setChannel: channel.Key | channel.Name, deleteChannel: channel.Key | channel.Name, codec: Decoder<K, V>) => Promise<Observable<K, V>>;
|
|
11
11
|
//# sourceMappingURL=observable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observable.d.ts","sourceRoot":"","sources":["../../src/signals/observable.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,MAAM,OAAO,CAAC,CAAC,EAAE,CAAC,IAAI,CAC1B,OAAO,EAAE,MAAM,CAAC,OAAO,EACvB,IAAI,EAAE,MAAM,KACT,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAEhC,MAAM,WAAW,UAAU,CAAC,CAAC,EAAE,CAAC,CAC9B,SAAQ,OAAO,CAAC,wBAAwB,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;CAAG;AAEzE,eAAO,MAAM,cAAc,GAAU,CAAC,EAAE,CAAC,UAC/B,MAAM,CAAC,MAAM,cACT,OAAO,CAAC,GAAG,GAAG,OAAO,CAAC,IAAI,iBACvB,OAAO,CAAC,GAAG,GAAG,OAAO,CAAC,IAAI,
|
|
1
|
+
{"version":3,"file":"observable.d.ts","sourceRoot":"","sources":["../../src/signals/observable.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,MAAM,OAAO,CAAC,CAAC,EAAE,CAAC,IAAI,CAC1B,OAAO,EAAE,MAAM,CAAC,OAAO,EACvB,IAAI,EAAE,MAAM,KACT,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAEhC,MAAM,WAAW,UAAU,CAAC,CAAC,EAAE,CAAC,CAC9B,SAAQ,OAAO,CAAC,wBAAwB,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;CAAG;AAEzE,eAAO,MAAM,cAAc,GAAU,CAAC,EAAE,CAAC,UAC/B,MAAM,CAAC,MAAM,cACT,OAAO,CAAC,GAAG,GAAG,OAAO,CAAC,IAAI,iBACvB,OAAO,CAAC,GAAG,GAAG,OAAO,CAAC,IAAI,SAClC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,KACnB,OAAO,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,CAa1B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { UnaryClient } from '@synnaxlabs/freighter';
|
|
2
|
+
import { Payload } from './payload';
|
|
3
|
+
|
|
4
|
+
export declare class Client {
|
|
5
|
+
private readonly client;
|
|
6
|
+
constructor(client: UnaryClient);
|
|
7
|
+
register(username: string, password: string): Promise<Payload>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/user/client.ts"],"names":[],"mappings":"AASA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAGvE,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAIzC,qBAAa,MAAM;IACjB,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAc;gBAEzB,MAAM,EAAE,WAAW;IAIzB,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAarE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../src/user/external.ts"],"names":[],"mappings":"AASA,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC"}
|
package/dist/user/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * as user from './
|
|
1
|
+
export * as user from './external';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/user/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/user/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/user/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC"}
|
package/dist/user/payload.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { ontology } from '../ontology';
|
|
2
3
|
|
|
4
|
+
export declare const keyZ: z.ZodString;
|
|
5
|
+
export type Key = z.infer<typeof keyZ>;
|
|
3
6
|
export declare const payloadZ: z.ZodObject<{
|
|
4
7
|
key: z.ZodString;
|
|
5
8
|
username: z.ZodString;
|
|
@@ -11,4 +14,6 @@ export declare const payloadZ: z.ZodObject<{
|
|
|
11
14
|
username: string;
|
|
12
15
|
}>;
|
|
13
16
|
export type Payload = z.infer<typeof payloadZ>;
|
|
17
|
+
export declare const UserOntologyType: ontology.ResourceType;
|
|
18
|
+
export declare const ontologyID: (key: Key) => ontology.ID;
|
|
14
19
|
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../src/user/payload.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,QAAQ;;;;;;;;;EAGnB,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../src/user/payload.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,eAAO,MAAM,IAAI,aAAoB,CAAC;AAEtC,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,IAAI,CAAC,CAAC;AAEvC,eAAO,MAAM,QAAQ;;;;;;;;;EAGnB,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;AAE/C,eAAO,MAAM,gBAAgB,EAAa,QAAQ,CAAC,YAAY,CAAC;AAEhE,eAAO,MAAM,UAAU,QAAS,GAAG,KAAG,QAAQ,CAAC,EACG,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { UnknownRecord } from '@synnaxlabs/x/record';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
+
import { ontology } from '../../ontology';
|
|
3
4
|
|
|
4
5
|
export declare const keyZ: z.ZodString;
|
|
5
6
|
export type Key = z.infer<typeof keyZ>;
|
|
@@ -18,4 +19,6 @@ export declare const linePlotZ: z.ZodObject<{
|
|
|
18
19
|
data: string | Record<string | number | symbol, unknown>;
|
|
19
20
|
}>;
|
|
20
21
|
export type LinePlot = z.infer<typeof linePlotZ>;
|
|
22
|
+
export declare const LineplotOntologyType: ontology.ResourceType;
|
|
23
|
+
export declare const ontologyID: (key: Key) => ontology.ID;
|
|
21
24
|
//# sourceMappingURL=payload.d.ts.map
|