@synnaxlabs/client 0.44.3 → 0.44.4
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/channel/client.d.ts +1 -0
- package/dist/channel/client.d.ts.map +1 -1
- package/dist/channel/payload.d.ts +15 -15
- package/dist/channel/payload.d.ts.map +1 -1
- package/dist/channel/retriever.d.ts +1 -1
- package/dist/channel/writer.d.ts +2 -2
- package/dist/channel/writer.d.ts.map +1 -1
- package/dist/client.cjs +22 -22
- package/dist/client.js +2051 -2008
- package/dist/control/state.d.ts +4 -4
- package/dist/framer/deleter.d.ts +1 -1
- package/dist/framer/streamer.d.ts +14 -14
- package/dist/framer/writer.d.ts +17 -17
- package/dist/ontology/group/client.d.ts +2 -0
- package/dist/ontology/group/client.d.ts.map +1 -1
- package/dist/ranger/alias.d.ts +1 -1
- package/dist/ranger/alias.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/channel/client.ts +5 -3
- package/src/channel/payload.ts +10 -2
- package/src/channel/writer.ts +2 -1
- package/src/ontology/group/client.ts +3 -0
- package/src/ranger/alias.ts +1 -4
package/dist/control/state.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ declare const updateZ: z.ZodObject<{
|
|
|
27
27
|
name: z.ZodString;
|
|
28
28
|
key: z.ZodString;
|
|
29
29
|
}, z.core.$strip>;
|
|
30
|
-
resource: z.
|
|
30
|
+
resource: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
|
|
31
31
|
authority: z.ZodInt;
|
|
32
32
|
}, z.core.$strip>;
|
|
33
33
|
to: z.ZodNull;
|
|
@@ -38,7 +38,7 @@ declare const updateZ: z.ZodObject<{
|
|
|
38
38
|
name: z.ZodString;
|
|
39
39
|
key: z.ZodString;
|
|
40
40
|
}, z.core.$strip>;
|
|
41
|
-
resource: z.
|
|
41
|
+
resource: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
|
|
42
42
|
authority: z.ZodInt;
|
|
43
43
|
}, z.core.$strip>;
|
|
44
44
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -47,7 +47,7 @@ declare const updateZ: z.ZodObject<{
|
|
|
47
47
|
name: z.ZodString;
|
|
48
48
|
key: z.ZodString;
|
|
49
49
|
}, z.core.$strip>;
|
|
50
|
-
resource: z.
|
|
50
|
+
resource: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
|
|
51
51
|
authority: z.ZodInt;
|
|
52
52
|
}, z.core.$strip>;
|
|
53
53
|
to: z.ZodObject<{
|
|
@@ -55,7 +55,7 @@ declare const updateZ: z.ZodObject<{
|
|
|
55
55
|
name: z.ZodString;
|
|
56
56
|
key: z.ZodString;
|
|
57
57
|
}, z.core.$strip>;
|
|
58
|
-
resource: z.
|
|
58
|
+
resource: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
|
|
59
59
|
authority: z.ZodInt;
|
|
60
60
|
}, z.core.$strip>;
|
|
61
61
|
}, z.core.$strip>]>>;
|
package/dist/framer/deleter.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { UnaryClient } from '@synnaxlabs/freighter';
|
|
|
2
2
|
import { TimeRange } from '@synnaxlabs/x';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
declare const reqZ: z.ZodObject<{
|
|
5
|
-
keys: z.ZodOptional<z.ZodArray<z.
|
|
5
|
+
keys: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>>;
|
|
6
6
|
bounds: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
|
|
7
7
|
start: z.ZodUnion<readonly [z.ZodCustom<import('@synnaxlabs/x').TimeStamp, import('@synnaxlabs/x').TimeStamp>, z.ZodPipe<z.ZodObject<{
|
|
8
8
|
value: z.ZodBigInt;
|
|
@@ -55,18 +55,18 @@ declare const resZ: z.ZodObject<{
|
|
|
55
55
|
export interface StreamerResponse extends z.infer<typeof resZ> {
|
|
56
56
|
}
|
|
57
57
|
export declare const streamerConfigZ: z.ZodUnion<[z.ZodObject<{
|
|
58
|
-
channels: z.ZodUnion<readonly [z.ZodUnion<[z.ZodArray<z.
|
|
58
|
+
channels: z.ZodUnion<readonly [z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>, z.ZodPipe<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<number[], number>>]>, z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodPipe<z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
59
59
|
name: z.ZodString;
|
|
60
|
-
key: z.
|
|
60
|
+
key: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
|
|
61
61
|
dataType: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import('@synnaxlabs/x').DataType, string>>, z.ZodCustom<import('@synnaxlabs/x').DataType, import('@synnaxlabs/x').DataType>]>;
|
|
62
62
|
leaseholder: z.ZodNumber;
|
|
63
|
-
index: z.
|
|
63
|
+
index: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
|
|
64
64
|
isIndex: z.ZodBoolean;
|
|
65
65
|
internal: z.ZodBoolean;
|
|
66
66
|
virtual: z.ZodBoolean;
|
|
67
67
|
alias: z.ZodOptional<z.ZodString>;
|
|
68
68
|
expression: z.ZodDefault<z.ZodString>;
|
|
69
|
-
requires: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<number[], null | undefined>>, z.ZodArray<z.
|
|
69
|
+
requires: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<number[], null | undefined>>, z.ZodArray<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>]>;
|
|
70
70
|
status: z.ZodOptional<z.ZodObject<{
|
|
71
71
|
key: z.ZodString;
|
|
72
72
|
variant: typeof import('node_modules/@synnaxlabs/x/dist/src/status/status').variantZ;
|
|
@@ -81,16 +81,16 @@ export declare const streamerConfigZ: z.ZodUnion<[z.ZodObject<{
|
|
|
81
81
|
}, z.core.$strip>>;
|
|
82
82
|
}, z.core.$strip>>, z.ZodPipe<z.ZodObject<{
|
|
83
83
|
name: z.ZodString;
|
|
84
|
-
key: z.
|
|
84
|
+
key: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
|
|
85
85
|
dataType: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import('@synnaxlabs/x').DataType, string>>, z.ZodCustom<import('@synnaxlabs/x').DataType, import('@synnaxlabs/x').DataType>]>;
|
|
86
86
|
leaseholder: z.ZodNumber;
|
|
87
|
-
index: z.
|
|
87
|
+
index: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
|
|
88
88
|
isIndex: z.ZodBoolean;
|
|
89
89
|
internal: z.ZodBoolean;
|
|
90
90
|
virtual: z.ZodBoolean;
|
|
91
91
|
alias: z.ZodOptional<z.ZodString>;
|
|
92
92
|
expression: z.ZodDefault<z.ZodString>;
|
|
93
|
-
requires: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<number[], null | undefined>>, z.ZodArray<z.
|
|
93
|
+
requires: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<number[], null | undefined>>, z.ZodArray<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>]>;
|
|
94
94
|
status: z.ZodOptional<z.ZodObject<{
|
|
95
95
|
key: z.ZodString;
|
|
96
96
|
variant: typeof import('node_modules/@synnaxlabs/x/dist/src/status/status').variantZ;
|
|
@@ -166,18 +166,18 @@ export declare const streamerConfigZ: z.ZodUnion<[z.ZodObject<{
|
|
|
166
166
|
}[]>>]>;
|
|
167
167
|
downsampleFactor: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
168
168
|
useHighPerformanceCodec: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
169
|
-
}, z.core.$strip>, z.ZodPipe<z.ZodUnion<readonly [z.ZodUnion<[z.ZodArray<z.
|
|
169
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodUnion<readonly [z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>, z.ZodPipe<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<number[], number>>]>, z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodPipe<z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
170
170
|
name: z.ZodString;
|
|
171
|
-
key: z.
|
|
171
|
+
key: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
|
|
172
172
|
dataType: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import('@synnaxlabs/x').DataType, string>>, z.ZodCustom<import('@synnaxlabs/x').DataType, import('@synnaxlabs/x').DataType>]>;
|
|
173
173
|
leaseholder: z.ZodNumber;
|
|
174
|
-
index: z.
|
|
174
|
+
index: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
|
|
175
175
|
isIndex: z.ZodBoolean;
|
|
176
176
|
internal: z.ZodBoolean;
|
|
177
177
|
virtual: z.ZodBoolean;
|
|
178
178
|
alias: z.ZodOptional<z.ZodString>;
|
|
179
179
|
expression: z.ZodDefault<z.ZodString>;
|
|
180
|
-
requires: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<number[], null | undefined>>, z.ZodArray<z.
|
|
180
|
+
requires: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<number[], null | undefined>>, z.ZodArray<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>]>;
|
|
181
181
|
status: z.ZodOptional<z.ZodObject<{
|
|
182
182
|
key: z.ZodString;
|
|
183
183
|
variant: typeof import('node_modules/@synnaxlabs/x/dist/src/status/status').variantZ;
|
|
@@ -192,16 +192,16 @@ export declare const streamerConfigZ: z.ZodUnion<[z.ZodObject<{
|
|
|
192
192
|
}, z.core.$strip>>;
|
|
193
193
|
}, z.core.$strip>>, z.ZodPipe<z.ZodObject<{
|
|
194
194
|
name: z.ZodString;
|
|
195
|
-
key: z.
|
|
195
|
+
key: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
|
|
196
196
|
dataType: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import('@synnaxlabs/x').DataType, string>>, z.ZodCustom<import('@synnaxlabs/x').DataType, import('@synnaxlabs/x').DataType>]>;
|
|
197
197
|
leaseholder: z.ZodNumber;
|
|
198
|
-
index: z.
|
|
198
|
+
index: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
|
|
199
199
|
isIndex: z.ZodBoolean;
|
|
200
200
|
internal: z.ZodBoolean;
|
|
201
201
|
virtual: z.ZodBoolean;
|
|
202
202
|
alias: z.ZodOptional<z.ZodString>;
|
|
203
203
|
expression: z.ZodDefault<z.ZodString>;
|
|
204
|
-
requires: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<number[], null | undefined>>, z.ZodArray<z.
|
|
204
|
+
requires: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<number[], null | undefined>>, z.ZodArray<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>]>;
|
|
205
205
|
status: z.ZodOptional<z.ZodObject<{
|
|
206
206
|
key: z.ZodString;
|
|
207
207
|
variant: typeof import('node_modules/@synnaxlabs/x/dist/src/status/status').variantZ;
|
package/dist/framer/writer.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ declare const netWriterConfigZ: z.ZodObject<{
|
|
|
50
50
|
value: bigint;
|
|
51
51
|
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeSpan, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeSpan, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeSpan, bigint>>, z.ZodCustom<TimeSpan, TimeSpan>, z.ZodPipe<z.ZodCustom<TimeStamp, TimeStamp>, z.ZodTransform<TimeSpan, TimeStamp>>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').Rate, import('@synnaxlabs/x').Rate>, z.ZodTransform<TimeSpan, import('@synnaxlabs/x').Rate>>]>>;
|
|
52
52
|
useHighPerformanceCodec: z.ZodDefault<z.ZodBoolean>;
|
|
53
|
-
keys: z.ZodOptional<z.ZodArray<z.
|
|
53
|
+
keys: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>>;
|
|
54
54
|
}, z.core.$strip>;
|
|
55
55
|
export type NetWriterConfig = z.input<typeof netWriterConfigZ>;
|
|
56
56
|
export declare const writerConfigZ: z.ZodUnion<[z.ZodObject<{
|
|
@@ -77,18 +77,18 @@ export declare const writerConfigZ: z.ZodUnion<[z.ZodObject<{
|
|
|
77
77
|
value: bigint;
|
|
78
78
|
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeSpan, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeSpan, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeSpan, bigint>>, z.ZodCustom<TimeSpan, TimeSpan>, z.ZodPipe<z.ZodCustom<TimeStamp, TimeStamp>, z.ZodTransform<TimeSpan, TimeStamp>>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').Rate, import('@synnaxlabs/x').Rate>, z.ZodTransform<TimeSpan, import('@synnaxlabs/x').Rate>>]>>;
|
|
79
79
|
useHighPerformanceCodec: z.ZodDefault<z.ZodBoolean>;
|
|
80
|
-
channels: z.ZodUnion<readonly [z.ZodUnion<[z.ZodArray<z.
|
|
80
|
+
channels: z.ZodUnion<readonly [z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>, z.ZodPipe<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<number[], number>>]>, z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodPipe<z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
81
81
|
name: z.ZodString;
|
|
82
|
-
key: z.
|
|
82
|
+
key: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
|
|
83
83
|
dataType: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import('@synnaxlabs/x').DataType, string>>, z.ZodCustom<import('@synnaxlabs/x').DataType, import('@synnaxlabs/x').DataType>]>;
|
|
84
84
|
leaseholder: z.ZodNumber;
|
|
85
|
-
index: z.
|
|
85
|
+
index: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
|
|
86
86
|
isIndex: z.ZodBoolean;
|
|
87
87
|
internal: z.ZodBoolean;
|
|
88
88
|
virtual: z.ZodBoolean;
|
|
89
89
|
alias: z.ZodOptional<z.ZodString>;
|
|
90
90
|
expression: z.ZodDefault<z.ZodString>;
|
|
91
|
-
requires: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<number[], null | undefined>>, z.ZodArray<z.
|
|
91
|
+
requires: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<number[], null | undefined>>, z.ZodArray<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>]>;
|
|
92
92
|
status: z.ZodOptional<z.ZodObject<{
|
|
93
93
|
key: z.ZodString;
|
|
94
94
|
variant: typeof import('node_modules/@synnaxlabs/x/dist/src/status/status').variantZ;
|
|
@@ -99,16 +99,16 @@ export declare const writerConfigZ: z.ZodUnion<[z.ZodObject<{
|
|
|
99
99
|
}, z.core.$strip>>;
|
|
100
100
|
}, z.core.$strip>>, z.ZodPipe<z.ZodObject<{
|
|
101
101
|
name: z.ZodString;
|
|
102
|
-
key: z.
|
|
102
|
+
key: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
|
|
103
103
|
dataType: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import('@synnaxlabs/x').DataType, string>>, z.ZodCustom<import('@synnaxlabs/x').DataType, import('@synnaxlabs/x').DataType>]>;
|
|
104
104
|
leaseholder: z.ZodNumber;
|
|
105
|
-
index: z.
|
|
105
|
+
index: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
|
|
106
106
|
isIndex: z.ZodBoolean;
|
|
107
107
|
internal: z.ZodBoolean;
|
|
108
108
|
virtual: z.ZodBoolean;
|
|
109
109
|
alias: z.ZodOptional<z.ZodString>;
|
|
110
110
|
expression: z.ZodDefault<z.ZodString>;
|
|
111
|
-
requires: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<number[], null | undefined>>, z.ZodArray<z.
|
|
111
|
+
requires: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<number[], null | undefined>>, z.ZodArray<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>]>;
|
|
112
112
|
status: z.ZodOptional<z.ZodObject<{
|
|
113
113
|
key: z.ZodString;
|
|
114
114
|
variant: typeof import('node_modules/@synnaxlabs/x/dist/src/status/status').variantZ;
|
|
@@ -178,18 +178,18 @@ export declare const writerConfigZ: z.ZodUnion<[z.ZodObject<{
|
|
|
178
178
|
details?: unknown;
|
|
179
179
|
} | undefined;
|
|
180
180
|
}[]>>]>;
|
|
181
|
-
}, z.core.$strip>, z.ZodPipe<z.ZodUnion<readonly [z.ZodUnion<[z.ZodArray<z.
|
|
181
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodUnion<readonly [z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>, z.ZodPipe<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodTransform<number[], number>>]>, z.ZodUnion<[z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>, z.ZodPipe<z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
182
182
|
name: z.ZodString;
|
|
183
|
-
key: z.
|
|
183
|
+
key: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
|
|
184
184
|
dataType: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import('@synnaxlabs/x').DataType, string>>, z.ZodCustom<import('@synnaxlabs/x').DataType, import('@synnaxlabs/x').DataType>]>;
|
|
185
185
|
leaseholder: z.ZodNumber;
|
|
186
|
-
index: z.
|
|
186
|
+
index: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
|
|
187
187
|
isIndex: z.ZodBoolean;
|
|
188
188
|
internal: z.ZodBoolean;
|
|
189
189
|
virtual: z.ZodBoolean;
|
|
190
190
|
alias: z.ZodOptional<z.ZodString>;
|
|
191
191
|
expression: z.ZodDefault<z.ZodString>;
|
|
192
|
-
requires: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<number[], null | undefined>>, z.ZodArray<z.
|
|
192
|
+
requires: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<number[], null | undefined>>, z.ZodArray<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>]>;
|
|
193
193
|
status: z.ZodOptional<z.ZodObject<{
|
|
194
194
|
key: z.ZodString;
|
|
195
195
|
variant: typeof import('node_modules/@synnaxlabs/x/dist/src/status/status').variantZ;
|
|
@@ -200,16 +200,16 @@ export declare const writerConfigZ: z.ZodUnion<[z.ZodObject<{
|
|
|
200
200
|
}, z.core.$strip>>;
|
|
201
201
|
}, z.core.$strip>>, z.ZodPipe<z.ZodObject<{
|
|
202
202
|
name: z.ZodString;
|
|
203
|
-
key: z.
|
|
203
|
+
key: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
|
|
204
204
|
dataType: z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<import('@synnaxlabs/x').DataType, string>>, z.ZodCustom<import('@synnaxlabs/x').DataType, import('@synnaxlabs/x').DataType>]>;
|
|
205
205
|
leaseholder: z.ZodNumber;
|
|
206
|
-
index: z.
|
|
206
|
+
index: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
|
|
207
207
|
isIndex: z.ZodBoolean;
|
|
208
208
|
internal: z.ZodBoolean;
|
|
209
209
|
virtual: z.ZodBoolean;
|
|
210
210
|
alias: z.ZodOptional<z.ZodString>;
|
|
211
211
|
expression: z.ZodDefault<z.ZodString>;
|
|
212
|
-
requires: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<number[], null | undefined>>, z.ZodArray<z.
|
|
212
|
+
requires: z.ZodUnion<readonly [z.ZodPipe<z.ZodUnion<readonly [z.ZodNull, z.ZodUndefined]>, z.ZodTransform<number[], null | undefined>>, z.ZodArray<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>]>;
|
|
213
213
|
status: z.ZodOptional<z.ZodObject<{
|
|
214
214
|
key: z.ZodString;
|
|
215
215
|
variant: typeof import('node_modules/@synnaxlabs/x/dist/src/status/status').variantZ;
|
|
@@ -319,7 +319,7 @@ declare const reqZ: z.ZodObject<{
|
|
|
319
319
|
value: bigint;
|
|
320
320
|
}>>, z.ZodPipe<z.ZodString, z.ZodTransform<TimeSpan, string>>, z.ZodPipe<z.ZodNumber, z.ZodTransform<TimeSpan, number>>, z.ZodPipe<z.ZodBigInt, z.ZodTransform<TimeSpan, bigint>>, z.ZodCustom<TimeSpan, TimeSpan>, z.ZodPipe<z.ZodCustom<TimeStamp, TimeStamp>, z.ZodTransform<TimeSpan, TimeStamp>>, z.ZodPipe<z.ZodCustom<import('@synnaxlabs/x').Rate, import('@synnaxlabs/x').Rate>, z.ZodTransform<TimeSpan, import('@synnaxlabs/x').Rate>>]>>;
|
|
321
321
|
useHighPerformanceCodec: z.ZodDefault<z.ZodBoolean>;
|
|
322
|
-
keys: z.ZodOptional<z.ZodArray<z.
|
|
322
|
+
keys: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>>;
|
|
323
323
|
}, z.core.$strip>>;
|
|
324
324
|
frame: z.ZodOptional<z.ZodObject<{
|
|
325
325
|
keys: z.ZodUnion<readonly [z.ZodPipe<z.ZodNull, z.ZodTransform<number[], null>>, z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNumber>>>]>;
|
|
@@ -358,7 +358,7 @@ declare const reqZ: z.ZodObject<{
|
|
|
358
358
|
}, z.core.$strip>;
|
|
359
359
|
export interface WriteRequest extends z.input<typeof reqZ> {
|
|
360
360
|
}
|
|
361
|
-
declare const authorityArgsZ: z.ZodPipe<z.ZodTuple<[z.ZodUnion<readonly [z.ZodRecord<z.ZodUnion<[z.
|
|
361
|
+
declare const authorityArgsZ: z.ZodPipe<z.ZodTuple<[z.ZodUnion<readonly [z.ZodRecord<z.ZodUnion<[z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodString]>, z.ZodInt>, z.ZodUnion<[z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>, z.ZodString]>, z.ZodInt]>, z.ZodOptional<z.ZodInt>], null>, z.ZodTransform<{
|
|
362
362
|
keys: channel.KeysOrNames;
|
|
363
363
|
authorities: number[];
|
|
364
364
|
}, [string | number | Record<string | number, number>, (number | undefined)?]>>;
|
|
@@ -2,6 +2,8 @@ import { UnaryClient } from '@synnaxlabs/freighter';
|
|
|
2
2
|
import { ontology } from '..';
|
|
3
3
|
import { Group } from './group';
|
|
4
4
|
import { Key, Name } from './payload';
|
|
5
|
+
export declare const SET_CHANNEL_NAME = "sy_group_set";
|
|
6
|
+
export declare const DELETE_CHANNEL_NAME = "sy_group_delete";
|
|
5
7
|
export declare class Client {
|
|
6
8
|
private readonly creator;
|
|
7
9
|
constructor(unary: UnaryClient);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/ontology/group/client.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,KAAK,GAAG,EAAE,KAAK,IAAI,EAAgB,MAAM,0BAA0B,CAAC;AAG7E,qBAAa,MAAM;IACjB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;gBAErB,KAAK,EAAE,WAAW;IAIxB,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,KAAK,CAAC;IAIlE,MAAM,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAI3C,MAAM,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAI3C,OAAO,CAAC,KAAK;CAGd"}
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/ontology/group/client.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAC/C,OAAO,EAAE,KAAK,GAAG,EAAE,KAAK,IAAI,EAAgB,MAAM,0BAA0B,CAAC;AAG7E,eAAO,MAAM,gBAAgB,iBAAiB,CAAC;AAC/C,eAAO,MAAM,mBAAmB,oBAAoB,CAAC;AAErD,qBAAa,MAAM;IACjB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;gBAErB,KAAK,EAAE,WAAW;IAIxB,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,KAAK,CAAC;IAIlE,MAAM,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAI3C,MAAM,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAI3C,OAAO,CAAC,KAAK;CAGd"}
|
package/dist/ranger/alias.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export declare class Aliaser {
|
|
|
27
27
|
}
|
|
28
28
|
export declare const aliasZ: z.ZodObject<{
|
|
29
29
|
alias: z.ZodOptional<z.ZodString>;
|
|
30
|
-
channel: z.
|
|
30
|
+
channel: z.ZodUnion<[z.ZodUInt32, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>;
|
|
31
31
|
range: z.ZodUUID;
|
|
32
32
|
}, z.core.$strip>;
|
|
33
33
|
export interface Alias extends z.infer<typeof aliasZ> {
|
|
@@ -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;AAEvE,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,KAAK,GAAG,EAAQ,MAAM,kBAAkB,CAAC;AAElD,eAAO,M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client Library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"synnax",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"async-mutex": "^0.5.0",
|
|
28
28
|
"zod": "^4.0.2",
|
|
29
|
-
"@synnaxlabs/x": "^0.44.
|
|
30
|
-
"@synnaxlabs/freighter": "^0.44.
|
|
29
|
+
"@synnaxlabs/x": "^0.44.4",
|
|
30
|
+
"@synnaxlabs/freighter": "^0.44.2"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@vitest/coverage-v8": "^3.2.4",
|
package/src/channel/client.ts
CHANGED
|
@@ -22,6 +22,7 @@ import { z } from "zod";
|
|
|
22
22
|
import {
|
|
23
23
|
type Key,
|
|
24
24
|
type KeyOrName,
|
|
25
|
+
keyZ,
|
|
25
26
|
type Name,
|
|
26
27
|
type New,
|
|
27
28
|
type Params,
|
|
@@ -135,21 +136,22 @@ export class Channel {
|
|
|
135
136
|
expression = "",
|
|
136
137
|
requires = [],
|
|
137
138
|
}: New & {
|
|
139
|
+
internal?: boolean;
|
|
138
140
|
frameClient?: framer.Client;
|
|
139
141
|
density?: CrudeDensity;
|
|
140
142
|
status?: status.Crude;
|
|
141
143
|
}) {
|
|
142
|
-
this.key = key;
|
|
144
|
+
this.key = keyZ.parse(key);
|
|
143
145
|
this.name = name;
|
|
144
146
|
this.dataType = new DataType(dataType);
|
|
145
147
|
this.leaseholder = leaseholder;
|
|
146
|
-
this.index = index;
|
|
148
|
+
this.index = keyZ.parse(index);
|
|
147
149
|
this.isIndex = isIndex;
|
|
148
150
|
this.internal = internal;
|
|
149
151
|
this.alias = alias;
|
|
150
152
|
this.virtual = virtual;
|
|
151
153
|
this.expression = expression;
|
|
152
|
-
this.requires = requires ?? [];
|
|
154
|
+
this.requires = keyZ.array().parse(requires ?? []);
|
|
153
155
|
if (argsStatus != null) this.status = status.create(argsStatus);
|
|
154
156
|
this._frameClient = frameClient ?? null;
|
|
155
157
|
}
|
package/src/channel/payload.ts
CHANGED
|
@@ -12,7 +12,14 @@ import { z } from "zod";
|
|
|
12
12
|
|
|
13
13
|
import { nullableArrayZ } from "@/util/zod";
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
const errorMessage = "Channel key must be a valid uint32.";
|
|
16
|
+
export const keyZ = z.uint32().or(
|
|
17
|
+
z
|
|
18
|
+
.string()
|
|
19
|
+
.refine((val) => !isNaN(Number(val)), { message: errorMessage })
|
|
20
|
+
.transform(Number)
|
|
21
|
+
.refine((val) => val < 2 ** 32 - 1, { message: errorMessage }),
|
|
22
|
+
);
|
|
16
23
|
export type Key = z.infer<typeof keyZ>;
|
|
17
24
|
export type Keys = Key[];
|
|
18
25
|
export const nameZ = z.string();
|
|
@@ -51,7 +58,8 @@ export const newZ = payloadZ.extend({
|
|
|
51
58
|
requires: nullableArrayZ(keyZ).optional().default([]),
|
|
52
59
|
});
|
|
53
60
|
|
|
54
|
-
export interface New
|
|
61
|
+
export interface New
|
|
62
|
+
extends Omit<z.input<typeof newZ>, "dataType" | "status" | "internal"> {
|
|
55
63
|
dataType: CrudeDataType;
|
|
56
64
|
}
|
|
57
65
|
|
package/src/channel/writer.ts
CHANGED
|
@@ -71,6 +71,7 @@ export class Writer {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
async delete(props: DeleteProps): Promise<void> {
|
|
74
|
+
const keys = keyZ.array().parse(props.keys ?? []);
|
|
74
75
|
await sendRequired<typeof deleteReqZ, typeof deleteResZ>(
|
|
75
76
|
this.client,
|
|
76
77
|
DELETE_ENDPOINT,
|
|
@@ -78,7 +79,7 @@ export class Writer {
|
|
|
78
79
|
deleteReqZ,
|
|
79
80
|
deleteResZ,
|
|
80
81
|
);
|
|
81
|
-
if (
|
|
82
|
+
if (keys.length > 0) this.cache.delete(keys);
|
|
82
83
|
if (props.names != null) this.cache.delete(props.names);
|
|
83
84
|
}
|
|
84
85
|
|
|
@@ -14,6 +14,9 @@ import { Group } from "@/ontology/group/group";
|
|
|
14
14
|
import { type Key, type Name, type Payload } from "@/ontology/group/payload";
|
|
15
15
|
import { Writer } from "@/ontology/group/writer";
|
|
16
16
|
|
|
17
|
+
export const SET_CHANNEL_NAME = "sy_group_set";
|
|
18
|
+
export const DELETE_CHANNEL_NAME = "sy_group_delete";
|
|
19
|
+
|
|
17
20
|
export class Client {
|
|
18
21
|
private readonly creator: Writer;
|
|
19
22
|
|
package/src/ranger/alias.ts
CHANGED
|
@@ -23,10 +23,7 @@ const resolveReqZ = z.object({ range: keyZ, aliases: z.string().array() });
|
|
|
23
23
|
|
|
24
24
|
const resolveResZ = z.object({ aliases: z.record(z.string(), channel.keyZ) });
|
|
25
25
|
|
|
26
|
-
const setReqZ = z.object({
|
|
27
|
-
range: keyZ,
|
|
28
|
-
aliases: z.record(channel.keyZ.or(z.string()), z.string()),
|
|
29
|
-
});
|
|
26
|
+
const setReqZ = z.object({ range: keyZ, aliases: z.record(channel.keyZ, z.string()) });
|
|
30
27
|
|
|
31
28
|
const setResZ = z.unknown();
|
|
32
29
|
|