@synnaxlabs/client 0.43.1 → 0.44.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +7 -7
- package/dist/access/payload.d.ts +1 -1
- package/dist/access/payload.d.ts.map +1 -1
- package/dist/access/policy/client.d.ts +263 -6
- package/dist/access/policy/client.d.ts.map +1 -1
- package/dist/access/policy/external.d.ts +0 -1
- package/dist/access/policy/external.d.ts.map +1 -1
- package/dist/access/policy/payload.d.ts +105 -93
- package/dist/access/policy/payload.d.ts.map +1 -1
- package/dist/auth/auth.d.ts +1 -1
- package/dist/auth/auth.d.ts.map +1 -1
- package/dist/channel/client.d.ts +23 -17
- package/dist/channel/client.d.ts.map +1 -1
- package/dist/channel/payload.d.ts +151 -21
- package/dist/channel/payload.d.ts.map +1 -1
- package/dist/channel/retriever.d.ts +9 -16
- package/dist/channel/retriever.d.ts.map +1 -1
- package/dist/channel/writer.d.ts +1 -1
- package/dist/channel/writer.d.ts.map +1 -1
- package/dist/client.cjs +27 -135
- package/dist/client.d.ts +3 -3
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +8657 -28963
- package/dist/connection/checker.d.ts +1 -1
- package/dist/connection/checker.d.ts.map +1 -1
- package/dist/control/client.d.ts +1 -0
- package/dist/control/client.d.ts.map +1 -1
- package/dist/control/state.d.ts +6 -6
- package/dist/control/state.d.ts.map +1 -1
- package/dist/errors.d.ts +18 -5
- package/dist/errors.d.ts.map +1 -1
- package/dist/framer/adapter.d.ts +3 -3
- package/dist/framer/adapter.d.ts.map +1 -1
- package/dist/framer/client.d.ts +4 -13
- package/dist/framer/client.d.ts.map +1 -1
- package/dist/framer/codec.d.ts +1 -1
- package/dist/framer/codec.d.ts.map +1 -1
- package/dist/framer/deleter.d.ts +5 -5
- package/dist/framer/deleter.d.ts.map +1 -1
- package/dist/framer/frame.d.ts +5 -7
- package/dist/framer/frame.d.ts.map +1 -1
- package/dist/framer/streamProxy.d.ts +1 -1
- package/dist/framer/streamProxy.d.ts.map +1 -1
- package/dist/framer/streamer.d.ts +235 -20
- package/dist/framer/streamer.d.ts.map +1 -1
- package/dist/framer/writer.d.ts +302 -33
- package/dist/framer/writer.d.ts.map +1 -1
- package/dist/hardware/device/client.d.ts +49 -28
- package/dist/hardware/device/client.d.ts.map +1 -1
- package/dist/hardware/device/payload.d.ts +126 -46
- package/dist/hardware/device/payload.d.ts.map +1 -1
- package/dist/hardware/rack/client.d.ts +78 -22
- package/dist/hardware/rack/client.d.ts.map +1 -1
- package/dist/hardware/rack/payload.d.ts +99 -56
- package/dist/hardware/rack/payload.d.ts.map +1 -1
- package/dist/hardware/task/client.d.ts +100 -41
- package/dist/hardware/task/client.d.ts.map +1 -1
- package/dist/hardware/task/payload.d.ts +83 -61
- package/dist/hardware/task/payload.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/label/client.d.ts +138 -20
- package/dist/label/client.d.ts.map +1 -1
- package/dist/label/external.d.ts +0 -2
- package/dist/label/external.d.ts.map +1 -1
- package/dist/label/payload.d.ts +4 -5
- package/dist/label/payload.d.ts.map +1 -1
- package/dist/ontology/client.d.ts +45 -135
- package/dist/ontology/client.d.ts.map +1 -1
- package/dist/ontology/group/group.d.ts +3 -3
- package/dist/ontology/group/group.d.ts.map +1 -1
- package/dist/ontology/group/payload.d.ts +3 -27
- package/dist/ontology/group/payload.d.ts.map +1 -1
- package/dist/ontology/payload.d.ts +114 -243
- package/dist/ontology/payload.d.ts.map +1 -1
- package/dist/ontology/writer.d.ts +4 -4
- package/dist/ontology/writer.d.ts.map +1 -1
- package/dist/ranger/alias.d.ts +15 -5
- package/dist/ranger/alias.d.ts.map +1 -1
- package/dist/ranger/client.d.ts +91 -30
- package/dist/ranger/client.d.ts.map +1 -1
- package/dist/ranger/external.d.ts +1 -1
- package/dist/ranger/external.d.ts.map +1 -1
- package/dist/ranger/kv.d.ts +11 -12
- package/dist/ranger/kv.d.ts.map +1 -1
- package/dist/ranger/payload.d.ts +19 -44
- package/dist/ranger/payload.d.ts.map +1 -1
- package/dist/ranger/writer.d.ts +22 -19
- package/dist/ranger/writer.d.ts.map +1 -1
- package/dist/testutil/client.d.ts +4 -0
- package/dist/testutil/client.d.ts.map +1 -0
- package/dist/user/client.d.ts +59 -6
- package/dist/user/client.d.ts.map +1 -1
- package/dist/user/payload.d.ts +4 -6
- package/dist/user/payload.d.ts.map +1 -1
- package/dist/user/retriever.d.ts +2 -2
- package/dist/user/retriever.d.ts.map +1 -1
- package/dist/util/decodeJSONString.d.ts +2 -2
- package/dist/util/decodeJSONString.d.ts.map +1 -1
- package/dist/util/parseWithoutKeyConversion.d.ts +2 -2
- package/dist/util/parseWithoutKeyConversion.d.ts.map +1 -1
- package/dist/util/retrieve.d.ts +1 -1
- package/dist/util/retrieve.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/client.d.ts +17 -6
- package/dist/workspace/client.d.ts.map +1 -1
- package/dist/workspace/lineplot/client.d.ts +2 -2
- package/dist/workspace/lineplot/client.d.ts.map +1 -1
- package/dist/workspace/lineplot/payload.d.ts +8 -9
- package/dist/workspace/lineplot/payload.d.ts.map +1 -1
- package/dist/workspace/log/client.d.ts +2 -2
- package/dist/workspace/log/client.d.ts.map +1 -1
- package/dist/workspace/log/payload.d.ts +8 -9
- package/dist/workspace/log/payload.d.ts.map +1 -1
- package/dist/workspace/payload.d.ts +10 -11
- package/dist/workspace/payload.d.ts.map +1 -1
- package/dist/workspace/schematic/client.d.ts +2 -2
- package/dist/workspace/schematic/client.d.ts.map +1 -1
- package/dist/workspace/schematic/payload.d.ts +10 -11
- package/dist/workspace/schematic/payload.d.ts.map +1 -1
- package/dist/workspace/table/client.d.ts +2 -2
- package/dist/workspace/table/client.d.ts.map +1 -1
- package/dist/workspace/table/payload.d.ts +10 -11
- package/dist/workspace/table/payload.d.ts.map +1 -1
- package/examples/node/package-lock.json +47 -39
- package/examples/node/package.json +2 -1
- package/examples/node/streamWrite.js +5 -11
- package/package.json +14 -13
- package/src/access/payload.ts +1 -1
- package/src/access/policy/client.ts +87 -32
- package/src/access/policy/external.ts +0 -1
- package/src/access/policy/payload.ts +4 -4
- package/src/access/policy/policy.spec.ts +86 -83
- package/src/auth/auth.spec.ts +29 -18
- package/src/auth/auth.ts +1 -1
- package/src/channel/batchRetriever.spec.ts +4 -9
- package/src/channel/channel.spec.ts +24 -6
- package/src/channel/client.ts +52 -51
- package/src/channel/payload.ts +15 -16
- package/src/channel/retriever.ts +26 -41
- package/src/channel/writer.ts +7 -4
- package/src/client.ts +4 -4
- package/src/connection/checker.ts +1 -1
- package/src/connection/connection.spec.ts +31 -23
- package/src/control/client.ts +2 -2
- package/src/control/state.spec.ts +3 -3
- package/src/control/state.ts +1 -1
- package/src/errors.spec.ts +9 -5
- package/src/errors.ts +28 -15
- package/src/framer/adapter.spec.ts +118 -9
- package/src/framer/adapter.ts +24 -11
- package/src/framer/client.spec.ts +125 -2
- package/src/framer/client.ts +41 -47
- package/src/framer/codec.ts +1 -1
- package/src/framer/deleter.spec.ts +2 -2
- package/src/framer/deleter.ts +1 -1
- package/src/framer/frame.ts +1 -4
- package/src/framer/iterator.spec.ts +8 -8
- package/src/framer/iterator.ts +1 -1
- package/src/framer/streamProxy.ts +1 -1
- package/src/framer/streamer.spec.ts +185 -36
- package/src/framer/streamer.ts +28 -36
- package/src/framer/writer.spec.ts +7 -6
- package/src/framer/writer.ts +97 -111
- package/src/hardware/device/client.ts +45 -131
- package/src/hardware/device/device.spec.ts +163 -52
- package/src/hardware/device/payload.ts +10 -21
- package/src/hardware/rack/client.ts +87 -105
- package/src/hardware/rack/payload.ts +4 -13
- package/src/hardware/rack/rack.spec.ts +28 -35
- package/src/hardware/task/client.ts +335 -291
- package/src/hardware/task/payload.ts +86 -62
- package/src/hardware/task/task.spec.ts +208 -32
- package/src/index.ts +2 -1
- package/src/label/client.ts +100 -95
- package/src/label/external.ts +0 -2
- package/src/label/label.spec.ts +8 -6
- package/src/label/payload.ts +3 -4
- package/src/ontology/client.ts +41 -324
- package/src/ontology/group/group.spec.ts +2 -2
- package/src/ontology/group/group.ts +4 -5
- package/src/ontology/group/payload.ts +2 -25
- package/src/ontology/group/writer.ts +1 -1
- package/src/ontology/ontology.spec.ts +355 -41
- package/src/ontology/payload.ts +77 -112
- package/src/ontology/writer.ts +8 -17
- package/src/ranger/alias.ts +45 -37
- package/src/ranger/client.ts +144 -149
- package/src/ranger/external.ts +1 -1
- package/src/ranger/kv.ts +9 -27
- package/src/ranger/payload.ts +23 -37
- package/src/ranger/ranger.spec.ts +37 -56
- package/src/ranger/writer.ts +1 -1
- package/src/{signals/index.ts → testutil/client.ts} +11 -1
- package/src/user/client.ts +122 -47
- package/src/user/payload.ts +2 -5
- package/src/user/retriever.ts +1 -1
- package/src/user/user.spec.ts +31 -31
- package/src/user/writer.ts +1 -1
- package/src/util/decodeJSONString.ts +3 -3
- package/src/util/parseWithoutKeyConversion.ts +2 -2
- package/src/util/retrieve.ts +1 -1
- package/src/util/zod.ts +1 -1
- package/src/workspace/client.ts +20 -36
- package/src/workspace/lineplot/client.ts +5 -7
- package/src/workspace/lineplot/lineplot.spec.ts +2 -2
- package/src/workspace/lineplot/payload.ts +4 -7
- package/src/workspace/log/client.ts +5 -7
- package/src/workspace/log/log.spec.ts +2 -2
- package/src/workspace/log/payload.ts +4 -7
- package/src/workspace/payload.ts +4 -7
- package/src/workspace/schematic/client.ts +5 -7
- package/src/workspace/schematic/payload.ts +4 -7
- package/src/workspace/schematic/schematic.spec.ts +2 -2
- package/src/workspace/table/client.ts +5 -7
- package/src/workspace/table/payload.ts +4 -7
- package/src/workspace/table/table.spec.ts +2 -2
- package/src/workspace/workspace.spec.ts +2 -2
- package/dist/access/policy/ontology.d.ts +0 -5
- package/dist/access/policy/ontology.d.ts.map +0 -1
- package/dist/access/policy/retriever.d.ts +0 -40
- package/dist/access/policy/retriever.d.ts.map +0 -1
- package/dist/access/policy/writer.d.ts +0 -9
- package/dist/access/policy/writer.d.ts.map +0 -1
- package/dist/label/retriever.d.ts +0 -14
- package/dist/label/retriever.d.ts.map +0 -1
- package/dist/label/writer.d.ts +0 -54
- package/dist/label/writer.d.ts.map +0 -1
- package/dist/setupspecs.d.ts +0 -5
- package/dist/setupspecs.d.ts.map +0 -1
- package/dist/signals/external.d.ts +0 -2
- package/dist/signals/external.d.ts.map +0 -1
- package/dist/signals/index.d.ts +0 -2
- package/dist/signals/index.d.ts.map +0 -1
- package/dist/signals/observable.d.ts +0 -12
- package/dist/signals/observable.d.ts.map +0 -1
- package/src/access/policy/ontology.ts +0 -17
- package/src/access/policy/retriever.ts +0 -44
- package/src/access/policy/writer.ts +0 -65
- package/src/label/retriever.ts +0 -63
- package/src/label/writer.ts +0 -95
- package/src/setupspecs.ts +0 -27
- package/src/signals/external.ts +0 -10
- package/src/signals/observable.ts +0 -42
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { change,
|
|
2
|
-
import { z } from 'zod
|
|
1
|
+
import { change, record } from '@synnaxlabs/x';
|
|
2
|
+
import { z } from 'zod';
|
|
3
3
|
export type ResourceChange = change.Change<ID, Resource>;
|
|
4
4
|
export interface ResourceSet extends change.Set<ID, Resource> {
|
|
5
5
|
}
|
|
@@ -14,330 +14,201 @@ export declare const BUILTIN_TYPE = "builtin";
|
|
|
14
14
|
export declare const CLUSTER_TYPE = "cluster";
|
|
15
15
|
export declare const NODE_TYPE = "node";
|
|
16
16
|
export declare const resourceTypeZ: z.ZodEnum<{
|
|
17
|
-
|
|
17
|
+
label: "label";
|
|
18
|
+
log: "log";
|
|
18
19
|
allow_all: "allow_all";
|
|
20
|
+
builtin: "builtin";
|
|
21
|
+
cluster: "cluster";
|
|
19
22
|
channel: "channel";
|
|
23
|
+
node: "node";
|
|
20
24
|
group: "group";
|
|
21
|
-
framer: "framer";
|
|
22
|
-
rack: "rack";
|
|
23
|
-
device: "device";
|
|
24
|
-
task: "task";
|
|
25
|
-
label: "label";
|
|
26
25
|
range: "range";
|
|
26
|
+
framer: "framer";
|
|
27
27
|
"range-alias": "range-alias";
|
|
28
28
|
user: "user";
|
|
29
|
-
lineplot: "lineplot";
|
|
30
|
-
log: "log";
|
|
31
29
|
workspace: "workspace";
|
|
32
30
|
schematic: "schematic";
|
|
31
|
+
lineplot: "lineplot";
|
|
32
|
+
rack: "rack";
|
|
33
|
+
device: "device";
|
|
34
|
+
task: "task";
|
|
35
|
+
policy: "policy";
|
|
33
36
|
table: "table";
|
|
34
|
-
builtin: "builtin";
|
|
35
|
-
cluster: "cluster";
|
|
36
|
-
node: "node";
|
|
37
37
|
}>;
|
|
38
38
|
export type ResourceType = z.infer<typeof resourceTypeZ>;
|
|
39
|
-
export declare const idZ: z.ZodObject<{
|
|
39
|
+
export declare const idZ: z.ZodUnion<[z.ZodObject<{
|
|
40
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
41
|
label: "label";
|
|
50
|
-
range: "range";
|
|
51
|
-
"range-alias": "range-alias";
|
|
52
|
-
user: "user";
|
|
53
|
-
lineplot: "lineplot";
|
|
54
42
|
log: "log";
|
|
55
|
-
|
|
56
|
-
schematic: "schematic";
|
|
57
|
-
table: "table";
|
|
43
|
+
allow_all: "allow_all";
|
|
58
44
|
builtin: "builtin";
|
|
59
45
|
cluster: "cluster";
|
|
60
|
-
node: "node";
|
|
61
|
-
}>;
|
|
62
|
-
key: z.ZodString;
|
|
63
|
-
}, z.core.$strip>;
|
|
64
|
-
export interface IDPayload extends z.infer<typeof idZ> {
|
|
65
|
-
}
|
|
66
|
-
export declare const stringIDZ: z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
67
|
-
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
68
|
-
key: string;
|
|
69
|
-
}, string>>;
|
|
70
|
-
export declare const crudeIDZ: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
71
|
-
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
72
|
-
key: string;
|
|
73
|
-
}, string>>, z.ZodObject<{
|
|
74
|
-
type: z.ZodEnum<{
|
|
75
|
-
policy: "policy";
|
|
76
|
-
allow_all: "allow_all";
|
|
77
46
|
channel: "channel";
|
|
47
|
+
node: "node";
|
|
78
48
|
group: "group";
|
|
79
|
-
framer: "framer";
|
|
80
|
-
rack: "rack";
|
|
81
|
-
device: "device";
|
|
82
|
-
task: "task";
|
|
83
|
-
label: "label";
|
|
84
49
|
range: "range";
|
|
50
|
+
framer: "framer";
|
|
85
51
|
"range-alias": "range-alias";
|
|
86
52
|
user: "user";
|
|
87
|
-
lineplot: "lineplot";
|
|
88
|
-
log: "log";
|
|
89
53
|
workspace: "workspace";
|
|
90
54
|
schematic: "schematic";
|
|
55
|
+
lineplot: "lineplot";
|
|
56
|
+
rack: "rack";
|
|
57
|
+
device: "device";
|
|
58
|
+
task: "task";
|
|
59
|
+
policy: "policy";
|
|
91
60
|
table: "table";
|
|
92
|
-
builtin: "builtin";
|
|
93
|
-
cluster: "cluster";
|
|
94
|
-
node: "node";
|
|
95
61
|
}>;
|
|
96
62
|
key: z.ZodString;
|
|
97
|
-
}, z.core.$strip
|
|
98
|
-
|
|
99
|
-
export declare class ID {
|
|
100
|
-
type: ResourceType;
|
|
63
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
64
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
101
65
|
key: string;
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
}, string>>, z.ZodObject<{
|
|
66
|
+
}, string>>]>;
|
|
67
|
+
export type ID = z.infer<typeof idZ>;
|
|
68
|
+
export declare const ROOT_ID: ID;
|
|
69
|
+
export declare const idToString: (id: ID) => string;
|
|
70
|
+
export declare const idsEqual: (a: ID, b: ID) => boolean;
|
|
71
|
+
export declare const parseIDs: (ids: ID | ID[] | string | string[] | Resource | Resource[]) => ID[];
|
|
72
|
+
export declare const resourceZ: z.ZodPipe<z.ZodObject<{
|
|
73
|
+
id: z.ZodUnion<[z.ZodObject<{
|
|
111
74
|
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
75
|
label: "label";
|
|
121
|
-
range: "range";
|
|
122
|
-
"range-alias": "range-alias";
|
|
123
|
-
user: "user";
|
|
124
|
-
lineplot: "lineplot";
|
|
125
76
|
log: "log";
|
|
126
|
-
|
|
127
|
-
schematic: "schematic";
|
|
128
|
-
table: "table";
|
|
77
|
+
allow_all: "allow_all";
|
|
129
78
|
builtin: "builtin";
|
|
130
79
|
cluster: "cluster";
|
|
131
|
-
node: "node";
|
|
132
|
-
}>;
|
|
133
|
-
key: z.ZodString;
|
|
134
|
-
}, z.core.$strip>]>, z.ZodTransform<ID, {
|
|
135
|
-
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
136
|
-
key: string;
|
|
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
|
-
key: string;
|
|
140
|
-
}>>]>;
|
|
141
|
-
}
|
|
142
|
-
export declare const ROOT_ID: ID;
|
|
143
|
-
export declare const schemaFieldZ: z.ZodObject<{
|
|
144
|
-
type: z.ZodNumber;
|
|
145
|
-
}, z.core.$strip>;
|
|
146
|
-
export interface SchemaField extends z.infer<typeof schemaFieldZ> {
|
|
147
|
-
}
|
|
148
|
-
export declare const schemaZ: z.ZodObject<{
|
|
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
|
-
}>;
|
|
171
|
-
fields: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
172
|
-
type: z.ZodNumber;
|
|
173
|
-
}, z.core.$strip>>;
|
|
174
|
-
}, z.core.$strip>;
|
|
175
|
-
export interface Schema extends z.infer<typeof schemaZ> {
|
|
176
|
-
}
|
|
177
|
-
export declare const resourceZ: z.ZodPipe<z.ZodObject<{
|
|
178
|
-
id: z.ZodUnion<readonly [z.ZodCustom<ID, ID>, z.ZodPipe<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
179
|
-
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
180
|
-
key: string;
|
|
181
|
-
}, string>>, z.ZodObject<{
|
|
182
|
-
type: z.ZodEnum<{
|
|
183
|
-
policy: "policy";
|
|
184
|
-
allow_all: "allow_all";
|
|
185
80
|
channel: "channel";
|
|
81
|
+
node: "node";
|
|
186
82
|
group: "group";
|
|
187
|
-
framer: "framer";
|
|
188
|
-
rack: "rack";
|
|
189
|
-
device: "device";
|
|
190
|
-
task: "task";
|
|
191
|
-
label: "label";
|
|
192
83
|
range: "range";
|
|
84
|
+
framer: "framer";
|
|
193
85
|
"range-alias": "range-alias";
|
|
194
86
|
user: "user";
|
|
195
|
-
lineplot: "lineplot";
|
|
196
|
-
log: "log";
|
|
197
87
|
workspace: "workspace";
|
|
198
88
|
schematic: "schematic";
|
|
199
|
-
|
|
200
|
-
builtin: "builtin";
|
|
201
|
-
cluster: "cluster";
|
|
202
|
-
node: "node";
|
|
203
|
-
}>;
|
|
204
|
-
key: z.ZodString;
|
|
205
|
-
}, z.core.$strip>]>, z.ZodTransform<ID, {
|
|
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
|
-
} | {
|
|
209
|
-
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
210
|
-
key: string;
|
|
211
|
-
}>>]>;
|
|
212
|
-
name: z.ZodString;
|
|
213
|
-
schema: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
214
|
-
type: z.ZodEnum<{
|
|
215
|
-
policy: "policy";
|
|
216
|
-
allow_all: "allow_all";
|
|
217
|
-
channel: "channel";
|
|
218
|
-
group: "group";
|
|
219
|
-
framer: "framer";
|
|
89
|
+
lineplot: "lineplot";
|
|
220
90
|
rack: "rack";
|
|
221
91
|
device: "device";
|
|
222
92
|
task: "task";
|
|
223
|
-
|
|
224
|
-
range: "range";
|
|
225
|
-
"range-alias": "range-alias";
|
|
226
|
-
user: "user";
|
|
227
|
-
lineplot: "lineplot";
|
|
228
|
-
log: "log";
|
|
229
|
-
workspace: "workspace";
|
|
230
|
-
schematic: "schematic";
|
|
93
|
+
policy: "policy";
|
|
231
94
|
table: "table";
|
|
232
|
-
builtin: "builtin";
|
|
233
|
-
cluster: "cluster";
|
|
234
|
-
node: "node";
|
|
235
95
|
}>;
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
96
|
+
key: z.ZodString;
|
|
97
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
98
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
99
|
+
key: string;
|
|
100
|
+
}, string>>]>;
|
|
101
|
+
name: z.ZodString;
|
|
240
102
|
data: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodUnion<readonly [z.ZodNumber, z.ZodString, z.ZodSymbol]>, z.ZodUnknown>>>;
|
|
241
103
|
}, z.core.$strip>, z.ZodTransform<{
|
|
242
|
-
id:
|
|
104
|
+
id: {
|
|
105
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
106
|
+
key: string;
|
|
107
|
+
} | {
|
|
108
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
109
|
+
key: string;
|
|
110
|
+
};
|
|
243
111
|
name: string;
|
|
244
|
-
schema?: {
|
|
245
|
-
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
246
|
-
fields: Record<string, {
|
|
247
|
-
type: number;
|
|
248
|
-
}>;
|
|
249
|
-
} | null | undefined;
|
|
250
112
|
data?: Record<string | number | symbol, unknown> | null | undefined;
|
|
251
113
|
key: string;
|
|
252
114
|
}, {
|
|
253
|
-
id:
|
|
115
|
+
id: {
|
|
116
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
117
|
+
key: string;
|
|
118
|
+
} | {
|
|
119
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
120
|
+
key: string;
|
|
121
|
+
};
|
|
254
122
|
name: string;
|
|
255
|
-
schema?: {
|
|
256
|
-
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
257
|
-
fields: Record<string, {
|
|
258
|
-
type: number;
|
|
259
|
-
}>;
|
|
260
|
-
} | null | undefined;
|
|
261
123
|
data?: Record<string | number | symbol, unknown> | null | undefined;
|
|
262
124
|
}>>;
|
|
263
|
-
export interface Resource<T extends
|
|
125
|
+
export interface Resource<T extends record.Unknown = record.Unknown> extends Omit<z.infer<typeof resourceZ>, "data"> {
|
|
264
126
|
data?: T | null;
|
|
265
127
|
}
|
|
266
|
-
export
|
|
267
|
-
export declare const
|
|
268
|
-
export
|
|
269
|
-
|
|
270
|
-
from: z.ZodUnion<readonly [z.ZodCustom<ID, ID>, z.ZodPipe<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
271
|
-
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
272
|
-
key: string;
|
|
273
|
-
}, string>>, z.ZodObject<{
|
|
128
|
+
export type RelationshipDirection = "to" | "from";
|
|
129
|
+
export declare const oppositeRelationshipDirection: (direction: RelationshipDirection) => RelationshipDirection;
|
|
130
|
+
export declare const relationshipZ: z.ZodUnion<[z.ZodObject<{
|
|
131
|
+
from: z.ZodUnion<[z.ZodObject<{
|
|
274
132
|
type: z.ZodEnum<{
|
|
275
|
-
|
|
133
|
+
label: "label";
|
|
134
|
+
log: "log";
|
|
276
135
|
allow_all: "allow_all";
|
|
136
|
+
builtin: "builtin";
|
|
137
|
+
cluster: "cluster";
|
|
277
138
|
channel: "channel";
|
|
139
|
+
node: "node";
|
|
278
140
|
group: "group";
|
|
279
|
-
framer: "framer";
|
|
280
|
-
rack: "rack";
|
|
281
|
-
device: "device";
|
|
282
|
-
task: "task";
|
|
283
|
-
label: "label";
|
|
284
141
|
range: "range";
|
|
142
|
+
framer: "framer";
|
|
285
143
|
"range-alias": "range-alias";
|
|
286
144
|
user: "user";
|
|
287
|
-
lineplot: "lineplot";
|
|
288
|
-
log: "log";
|
|
289
145
|
workspace: "workspace";
|
|
290
146
|
schematic: "schematic";
|
|
147
|
+
lineplot: "lineplot";
|
|
148
|
+
rack: "rack";
|
|
149
|
+
device: "device";
|
|
150
|
+
task: "task";
|
|
151
|
+
policy: "policy";
|
|
291
152
|
table: "table";
|
|
292
|
-
builtin: "builtin";
|
|
293
|
-
cluster: "cluster";
|
|
294
|
-
node: "node";
|
|
295
153
|
}>;
|
|
296
154
|
key: z.ZodString;
|
|
297
|
-
}, z.core.$strip
|
|
298
|
-
type: "
|
|
299
|
-
key: string;
|
|
300
|
-
} | {
|
|
301
|
-
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
155
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
156
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
302
157
|
key: string;
|
|
303
|
-
}>>]>;
|
|
158
|
+
}, string>>]>;
|
|
304
159
|
type: z.ZodString;
|
|
305
|
-
to: z.ZodUnion<
|
|
306
|
-
type: "policy" | "allow_all" | "channel" | "group" | "framer" | "rack" | "device" | "task" | "label" | "range" | "range-alias" | "user" | "lineplot" | "log" | "workspace" | "schematic" | "table" | "builtin" | "cluster" | "node";
|
|
307
|
-
key: string;
|
|
308
|
-
}, string>>, z.ZodObject<{
|
|
160
|
+
to: z.ZodUnion<[z.ZodObject<{
|
|
309
161
|
type: z.ZodEnum<{
|
|
310
|
-
|
|
162
|
+
label: "label";
|
|
163
|
+
log: "log";
|
|
311
164
|
allow_all: "allow_all";
|
|
165
|
+
builtin: "builtin";
|
|
166
|
+
cluster: "cluster";
|
|
312
167
|
channel: "channel";
|
|
168
|
+
node: "node";
|
|
313
169
|
group: "group";
|
|
314
|
-
framer: "framer";
|
|
315
|
-
rack: "rack";
|
|
316
|
-
device: "device";
|
|
317
|
-
task: "task";
|
|
318
|
-
label: "label";
|
|
319
170
|
range: "range";
|
|
171
|
+
framer: "framer";
|
|
320
172
|
"range-alias": "range-alias";
|
|
321
173
|
user: "user";
|
|
322
|
-
lineplot: "lineplot";
|
|
323
|
-
log: "log";
|
|
324
174
|
workspace: "workspace";
|
|
325
175
|
schematic: "schematic";
|
|
176
|
+
lineplot: "lineplot";
|
|
177
|
+
rack: "rack";
|
|
178
|
+
device: "device";
|
|
179
|
+
task: "task";
|
|
180
|
+
policy: "policy";
|
|
326
181
|
table: "table";
|
|
327
|
-
builtin: "builtin";
|
|
328
|
-
cluster: "cluster";
|
|
329
|
-
node: "node";
|
|
330
182
|
}>;
|
|
331
183
|
key: z.ZodString;
|
|
332
|
-
}, z.core.$strip
|
|
333
|
-
type: "
|
|
184
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
185
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
186
|
+
key: string;
|
|
187
|
+
}, string>>]>;
|
|
188
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
189
|
+
from: {
|
|
190
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
191
|
+
key: string;
|
|
192
|
+
} | {
|
|
193
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
194
|
+
key: string;
|
|
195
|
+
};
|
|
196
|
+
type: string;
|
|
197
|
+
to: {
|
|
198
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
334
199
|
key: string;
|
|
335
200
|
} | {
|
|
336
|
-
type: "
|
|
201
|
+
type: "label" | "log" | "allow_all" | "builtin" | "cluster" | "channel" | "node" | "group" | "range" | "framer" | "range-alias" | "user" | "workspace" | "schematic" | "lineplot" | "rack" | "device" | "task" | "policy" | "table";
|
|
337
202
|
key: string;
|
|
338
|
-
}
|
|
339
|
-
},
|
|
340
|
-
export
|
|
203
|
+
};
|
|
204
|
+
}, string>>]>;
|
|
205
|
+
export type Relationship = z.infer<typeof relationshipZ>;
|
|
206
|
+
export declare const relationshipToString: (relationship: Relationship) => string;
|
|
207
|
+
export declare const PARENT_OF_RELATIONSHIP_TYPE = "parent";
|
|
208
|
+
export interface MatchRelationshipArgs {
|
|
209
|
+
from?: Partial<ID>;
|
|
210
|
+
type: string;
|
|
211
|
+
to?: Partial<ID>;
|
|
341
212
|
}
|
|
342
|
-
export declare const
|
|
213
|
+
export declare const matchRelationship: (relationship: Relationship, match: MatchRelationshipArgs) => boolean;
|
|
343
214
|
//# sourceMappingURL=payload.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../src/ontology/payload.ts"],"names":[],"mappings":"AASA,OAAO,
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../src/ontology/payload.ts"],"names":[],"mappings":"AASA,OAAO,EAAS,KAAK,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;AACzD,MAAM,WAAW,WAAY,SAAQ,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,QAAQ,CAAC;CAAG;AAChE,MAAM,WAAW,cAAe,SAAQ,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,CAAC;CAAG;AACtE,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,EAAE,MAAM,CAAC;IAC/C,IAAI,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;CACjB;AAED,MAAM,MAAM,qBAAqB,GAAG,IAAI,GAAG,MAAM,CAAC;AAElD,eAAO,MAAM,6BAA6B,GACxC,WAAW,qBAAqB,KAC/B,qBAA6D,CAAC;AAEjE,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAKzB,CAAC;AACF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEzD,eAAO,MAAM,oBAAoB,GAAI,cAAc,YAAY,WAC2B,CAAC;AAE3F,eAAO,MAAM,2BAA2B,WAAW,CAAC;AAEpD,MAAM,WAAW,qBAAqB;IACpC,IAAI,CAAC,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC;CAClB;AAED,eAAO,MAAM,iBAAiB,GAC5B,cAAc,YAAY,EAC1B,OAAO,qBAAqB,YAS7B,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { UnaryClient } from '@synnaxlabs/freighter';
|
|
2
|
-
import {
|
|
2
|
+
import { ID } from './payload';
|
|
3
3
|
export declare class Writer {
|
|
4
4
|
client: UnaryClient;
|
|
5
5
|
constructor(client: UnaryClient);
|
|
6
|
-
addChildren(id:
|
|
7
|
-
removeChildren(id:
|
|
8
|
-
moveChildren(from:
|
|
6
|
+
addChildren(id: ID, ...children: ID[]): Promise<void>;
|
|
7
|
+
removeChildren(id: ID, ...children: ID[]): Promise<void>;
|
|
8
|
+
moveChildren(from: ID, to: ID, ...children: ID[]): Promise<void>;
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=writer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writer.d.ts","sourceRoot":"","sources":["../../src/ontology/writer.ts"],"names":[],"mappings":"AASA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAGvE,OAAO,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"writer.d.ts","sourceRoot":"","sources":["../../src/ontology/writer.ts"],"names":[],"mappings":"AASA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAGvE,OAAO,EAAE,KAAK,EAAE,EAAO,MAAM,oBAAoB,CAAC;AAYlD,qBAAa,MAAM;IACjB,MAAM,EAAE,WAAW,CAAC;gBAER,MAAM,EAAE,WAAW;IAIzB,WAAW,CAAC,EAAE,EAAE,EAAE,EAAE,GAAG,QAAQ,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAUrD,cAAc,CAAC,EAAE,EAAE,EAAE,EAAE,GAAG,QAAQ,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAUxD,YAAY,CAAC,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,QAAQ,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;CASvE"}
|
package/dist/ranger/alias.d.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { UnaryClient } from '@synnaxlabs/freighter';
|
|
2
2
|
import { change } from '@synnaxlabs/x/change';
|
|
3
|
+
import { z } from 'zod';
|
|
3
4
|
import { channel } from '../channel';
|
|
4
5
|
import { framer } from '../framer';
|
|
5
6
|
import { Key } from './payload';
|
|
6
|
-
import { signals } from '../signals';
|
|
7
7
|
export declare const SET_ALIAS_CHANNEL_NAME = "sy_range_alias_set";
|
|
8
8
|
export declare const DELETE_ALIAS_CHANNEL_NAME = "sy_range_alias_delete";
|
|
9
9
|
export declare class Aliaser {
|
|
10
10
|
private static readonly SET_ENDPOINT;
|
|
11
11
|
private static readonly RESOLVE_ENDPOINT;
|
|
12
12
|
private static readonly LIST_ENDPOINT;
|
|
13
|
+
private static readonly RETRIEVE_ENDPOINT;
|
|
13
14
|
private static readonly DELETE_ENDPOINT;
|
|
14
15
|
private readonly frameClient;
|
|
15
16
|
private readonly cache;
|
|
@@ -20,13 +21,22 @@ export declare class Aliaser {
|
|
|
20
21
|
resolve(aliases: string[]): Promise<Record<string, channel.Key>>;
|
|
21
22
|
set(aliases: Record<channel.Key, string>): Promise<void>;
|
|
22
23
|
list(): Promise<Record<channel.Key, string>>;
|
|
24
|
+
retrieve(alias: channel.Key): Promise<string>;
|
|
25
|
+
retrieve(aliases: channel.Key[]): Promise<Record<channel.Key, string>>;
|
|
23
26
|
delete(aliases: channel.Key[]): Promise<void>;
|
|
24
|
-
openChangeTracker(): Promise<signals.Observable<string, Alias>>;
|
|
25
27
|
}
|
|
26
|
-
export
|
|
28
|
+
export declare const aliasZ: z.ZodObject<{
|
|
29
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
30
|
+
channel: z.ZodNumber;
|
|
31
|
+
range: z.ZodUUID;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
export interface Alias extends z.infer<typeof aliasZ> {
|
|
34
|
+
}
|
|
35
|
+
export type AliasChange = change.Change<string, Alias>;
|
|
36
|
+
export declare const aliasKey: (alias: Pick<Alias, "range" | "channel">) => string;
|
|
37
|
+
export interface DecodedDeleteAliasChange {
|
|
27
38
|
range: Key;
|
|
28
39
|
channel: channel.Key;
|
|
29
|
-
alias: string;
|
|
30
40
|
}
|
|
31
|
-
export
|
|
41
|
+
export declare const decodeDeleteAliasChange: (deletedAlias: string) => DecodedDeleteAliasChange;
|
|
32
42
|
//# sourceMappingURL=alias.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alias.d.ts","sourceRoot":"","sources":["../../src/ranger/alias.ts"],"names":[],"mappings":"AASA,OAAO,EAAgB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
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