@synnaxlabs/client 0.39.0 → 0.40.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/client.cjs +2 -2
- package/dist/client.js +111 -110
- package/dist/hardware/device/client.d.ts +4 -1
- package/dist/hardware/device/client.d.ts.map +1 -1
- package/dist/hardware/device/payload.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/hardware/device/client.ts +5 -2
- package/src/hardware/device/device.spec.ts +42 -0
- package/src/hardware/device/payload.ts +1 -0
package/dist/client.js
CHANGED
|
@@ -117,8 +117,8 @@ let Yo = class {
|
|
|
117
117
|
const dr = new Yo();
|
|
118
118
|
new zo();
|
|
119
119
|
new Wo();
|
|
120
|
-
const
|
|
121
|
-
const t =
|
|
120
|
+
const Fo = (r) => r != null && typeof r == "object" && "toString" in r, Go = (r, e = !1) => {
|
|
121
|
+
const t = Fo(r) ? "stringer" : typeof r;
|
|
122
122
|
let n;
|
|
123
123
|
switch (t) {
|
|
124
124
|
case "string":
|
|
@@ -211,7 +211,7 @@ s.object({
|
|
|
211
211
|
two: Or,
|
|
212
212
|
root: cc
|
|
213
213
|
});
|
|
214
|
-
const
|
|
214
|
+
const Fn = (r, e, t = 0, n = 0, i) => {
|
|
215
215
|
const a = {
|
|
216
216
|
one: { ...$s },
|
|
217
217
|
two: { ...$s },
|
|
@@ -230,10 +230,10 @@ const Gn = (r, e, t = 0, n = 0, i) => {
|
|
|
230
230
|
y: a.one.y + e.signedHeight
|
|
231
231
|
} : a.two = e, a));
|
|
232
232
|
}, sn = (r) => {
|
|
233
|
-
const e =
|
|
233
|
+
const e = Fn(r);
|
|
234
234
|
return { lower: e.one.x, upper: e.two.x };
|
|
235
235
|
}, an = (r) => {
|
|
236
|
-
const e =
|
|
236
|
+
const e = Fn(r);
|
|
237
237
|
return { lower: e.one.y, upper: e.two.y };
|
|
238
238
|
}, dc = (r) => typeof r != "object" || r == null ? !1 : "one" in r && "two" in r && "root" in r, fc = s.object({ signedWidth: s.number(), signedHeight: s.number() });
|
|
239
239
|
s.union([Ni, fc, Or, jr]);
|
|
@@ -430,7 +430,7 @@ const As = class me {
|
|
|
430
430
|
return { x: this.x.dim(e.x), y: this.y.dim(e.y) };
|
|
431
431
|
}
|
|
432
432
|
box(e) {
|
|
433
|
-
return
|
|
433
|
+
return Fn(
|
|
434
434
|
this.pos(e.one),
|
|
435
435
|
this.pos(e.two),
|
|
436
436
|
0,
|
|
@@ -583,7 +583,7 @@ const Ic = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", $c
|
|
|
583
583
|
* valid, regardless of the TimeStamp order.
|
|
584
584
|
*/
|
|
585
585
|
range(e) {
|
|
586
|
-
return new
|
|
586
|
+
return new Gn(this, e).makeValid();
|
|
587
587
|
}
|
|
588
588
|
/**
|
|
589
589
|
* Creates a TimeRange starting at the TimeStamp and spanning the given
|
|
@@ -1246,7 +1246,7 @@ m(ce, "z", s.union([
|
|
|
1246
1246
|
s.object({ start: B.z, end: B.z }).transform((r) => new ce(r.start, r.end)),
|
|
1247
1247
|
s.instanceof(ce)
|
|
1248
1248
|
]));
|
|
1249
|
-
let
|
|
1249
|
+
let Gn = ce;
|
|
1250
1250
|
const p = class Z extends String {
|
|
1251
1251
|
constructor(e) {
|
|
1252
1252
|
if (e instanceof Z || typeof e == "string" || typeof e.valueOf() == "string") {
|
|
@@ -1868,7 +1868,7 @@ const Ri = (r) => {
|
|
|
1868
1868
|
*/
|
|
1869
1869
|
binarySearch(e) {
|
|
1870
1870
|
let t = 0, n = this.length - 1;
|
|
1871
|
-
const i =
|
|
1871
|
+
const i = Go(e);
|
|
1872
1872
|
for (; t <= n; ) {
|
|
1873
1873
|
const a = Math.floor((t + n) / 2), o = i(this.at(a, !0), e);
|
|
1874
1874
|
if (o === 0) return a;
|
|
@@ -2000,7 +2000,7 @@ const Ri = (r) => {
|
|
|
2000
2000
|
return new le({
|
|
2001
2001
|
data: this.buffer,
|
|
2002
2002
|
dataType: this.dataType,
|
|
2003
|
-
timeRange:
|
|
2003
|
+
timeRange: Gn.ZERO,
|
|
2004
2004
|
sampleOffset: this.sampleOffset,
|
|
2005
2005
|
glBufferUsage: "static",
|
|
2006
2006
|
alignment: e
|
|
@@ -2008,7 +2008,7 @@ const Ri = (r) => {
|
|
|
2008
2008
|
}
|
|
2009
2009
|
};
|
|
2010
2010
|
m(Et, "crudeZ", s.object({
|
|
2011
|
-
timeRange:
|
|
2011
|
+
timeRange: Gn.z.optional(),
|
|
2012
2012
|
dataType: R.z,
|
|
2013
2013
|
alignment: s.coerce.bigint().optional(),
|
|
2014
2014
|
data: s.union([
|
|
@@ -2117,7 +2117,7 @@ const Yc = (r = {}) => {
|
|
|
2117
2117
|
osZ: _c
|
|
2118
2118
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2119
2119
|
var zc = Object.defineProperty, Wc = (r, e, t) => e in r ? zc(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, St = (r, e, t) => Wc(r, typeof e != "symbol" ? e + "" : e, t);
|
|
2120
|
-
const
|
|
2120
|
+
const Fc = (...r) => r.map(Di).join(""), Di = (r) => (r.endsWith("/") || (r += "/"), r.startsWith("/") && (r = r.slice(1)), r), Gc = (r) => r.endsWith("/") ? r.slice(0, -1) : r, Vc = (r, e = "") => r === null ? "" : `?${Object.entries(r).filter(([, t]) => t == null ? !1 : Array.isArray(t) ? t.length > 0 : !0).map(([t, n]) => `${e}${t}=${n}`).join("&")}`, Cn = class Pn {
|
|
2121
2121
|
/**
|
|
2122
2122
|
* @param host - The hostname or IP address of the server.
|
|
2123
2123
|
* @param port - The port number of the server.
|
|
@@ -2148,12 +2148,12 @@ const Gc = (...r) => r.map(Di).join(""), Di = (r) => (r.endsWith("/") || (r += "
|
|
|
2148
2148
|
child(e) {
|
|
2149
2149
|
return new Pn({
|
|
2150
2150
|
...this,
|
|
2151
|
-
pathPrefix:
|
|
2151
|
+
pathPrefix: Fc(this.path, e)
|
|
2152
2152
|
});
|
|
2153
2153
|
}
|
|
2154
2154
|
/** @returns a string representation of the url */
|
|
2155
2155
|
toString() {
|
|
2156
|
-
return
|
|
2156
|
+
return Gc(
|
|
2157
2157
|
`${this.protocol}://${this.host}:${this.port}/${this.path}`
|
|
2158
2158
|
);
|
|
2159
2159
|
}
|
|
@@ -2234,7 +2234,7 @@ const pl = (r) => {
|
|
|
2234
2234
|
`Freighter error is missing its type property: ${JSON.stringify(e)}`
|
|
2235
2235
|
);
|
|
2236
2236
|
return !0;
|
|
2237
|
-
}, Bs = "unknown", Zs = "nil", gl = "freighter",
|
|
2237
|
+
}, Bs = "unknown", Zs = "nil", gl = "freighter", Ft = s.object({ type: s.string(), data: s.string() });
|
|
2238
2238
|
class ml {
|
|
2239
2239
|
constructor() {
|
|
2240
2240
|
x(this, "providers", []);
|
|
@@ -2392,7 +2392,7 @@ class Tl extends qi {
|
|
|
2392
2392
|
return i != null && (a = this.encoder.decode(A, i)), [f, null];
|
|
2393
2393
|
try {
|
|
2394
2394
|
if (d.status !== 400) return [f, new Error(d.statusText)];
|
|
2395
|
-
const I = this.encoder.decode(A,
|
|
2395
|
+
const I = this.encoder.decode(A, Ft), se = Nr(I);
|
|
2396
2396
|
return [f, se];
|
|
2397
2397
|
} catch (I) {
|
|
2398
2398
|
return [
|
|
@@ -2432,7 +2432,7 @@ const vl = (r, e) => {
|
|
|
2432
2432
|
}, Ol = () => ji.RUNTIME !== "node" ? (r) => new WebSocket(r) : (r) => new (require("ws")).WebSocket(r, { rejectUnauthorized: !1 }), Nl = s.object({
|
|
2433
2433
|
type: s.enum(["data", "close", "open"]),
|
|
2434
2434
|
payload: s.unknown().optional(),
|
|
2435
|
-
error: s.optional(
|
|
2435
|
+
error: s.optional(Ft)
|
|
2436
2436
|
});
|
|
2437
2437
|
class El {
|
|
2438
2438
|
constructor(e, t, n, i) {
|
|
@@ -2543,9 +2543,9 @@ const Sl = "freighterctx", Il = 1e3, $l = 1001, kl = [Il, $l], Al = (r) => kl.in
|
|
|
2543
2543
|
};
|
|
2544
2544
|
x(zi, "MESSAGE_TYPE", "arraybuffer");
|
|
2545
2545
|
let xl = zi;
|
|
2546
|
-
const
|
|
2547
|
-
Gi,
|
|
2546
|
+
const Fi = "all", Gi = "create", Vi = "delete", Ji = "retrieve", Ki = "update", Er = s.enum([
|
|
2548
2547
|
Fi,
|
|
2548
|
+
Gi,
|
|
2549
2549
|
Vi,
|
|
2550
2550
|
Ji,
|
|
2551
2551
|
Ki
|
|
@@ -2659,7 +2659,7 @@ let Qi = class {
|
|
|
2659
2659
|
return t != null ? t.parse(n) : n;
|
|
2660
2660
|
}
|
|
2661
2661
|
};
|
|
2662
|
-
const ct = new Qi(), Bl = new ea(), Zl = new ta(), Ul = [ct],
|
|
2662
|
+
const ct = new Qi(), Bl = new ea(), Zl = new ta(), Ul = [ct], Gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2663
2663
|
__proto__: null,
|
|
2664
2664
|
CSVCodec: ea,
|
|
2665
2665
|
CSV_CODEC: Bl,
|
|
@@ -2708,7 +2708,7 @@ const ct = new Qi(), Bl = new ea(), Zl = new ta(), Ul = [ct], Ft = /* @__PURE__
|
|
|
2708
2708
|
return console.warn(`sortFunc: unknown type ${t}`), () => -1;
|
|
2709
2709
|
}
|
|
2710
2710
|
return e ? zl(n) : n;
|
|
2711
|
-
}, zl = (r) => (e, t) => r(t, e), Mr = 0, ln = -1, un = 1, Wl = (r) => r < Mr,
|
|
2711
|
+
}, zl = (r) => (e, t) => r(t, e), Mr = 0, ln = -1, un = 1, Wl = (r) => r < Mr, Fl = (r) => r > Mr, Gl = (r) => r === Mr, Br = s.tuple([s.number(), s.number()]);
|
|
2712
2712
|
s.tuple([s.bigint(), s.bigint()]);
|
|
2713
2713
|
const ra = s.object({ width: s.number(), height: s.number() }), Vl = s.object({
|
|
2714
2714
|
signedWidth: s.number(),
|
|
@@ -2735,9 +2735,9 @@ const yt = (r) => typeof r == "bigint" || r instanceof BigInt, hn = (r, e) => yt
|
|
|
2735
2735
|
else if (Array.isArray(r)) {
|
|
2736
2736
|
if (r.length !== 2) throw new Error("bounds: expected array of length 2");
|
|
2737
2737
|
[t.lower, t.upper] = r;
|
|
2738
|
-
} else return
|
|
2739
|
-
return
|
|
2740
|
-
},
|
|
2738
|
+
} else return Fs(r);
|
|
2739
|
+
return Fs(t);
|
|
2740
|
+
}, Fs = (r) => r.lower > r.upper ? { lower: r.upper, upper: r.lower } : r, Gs = (r, e) => {
|
|
2741
2741
|
const t = te(r);
|
|
2742
2742
|
return e < t.lower ? t.lower : e >= t.upper ? t.upper - (typeof t.upper == "number" ? 1 : 1n) : e;
|
|
2743
2743
|
}, or = (r, e) => {
|
|
@@ -3731,7 +3731,7 @@ y(At, "z", s.union([
|
|
|
3731
3731
|
s.instanceof(At)
|
|
3732
3732
|
]));
|
|
3733
3733
|
let Ut = At;
|
|
3734
|
-
const
|
|
3734
|
+
const F = class extends Number {
|
|
3735
3735
|
/**
|
|
3736
3736
|
* Creates a Density representing the given number of bytes per value.
|
|
3737
3737
|
*
|
|
@@ -3749,18 +3749,18 @@ const G = class extends Number {
|
|
|
3749
3749
|
return new ut(e * this.valueOf());
|
|
3750
3750
|
}
|
|
3751
3751
|
};
|
|
3752
|
-
y(
|
|
3753
|
-
y(
|
|
3754
|
-
y(
|
|
3755
|
-
y(
|
|
3756
|
-
y(
|
|
3757
|
-
y(
|
|
3758
|
-
y(
|
|
3759
|
-
s.number().transform((r) => new
|
|
3760
|
-
s.instanceof(Number).transform((r) => new
|
|
3761
|
-
s.instanceof(
|
|
3752
|
+
y(F, "UNKNOWN", new F(0)), /** 128 bits per value. */
|
|
3753
|
+
y(F, "BIT128", new F(16)), /** 64 bits per value. */
|
|
3754
|
+
y(F, "BIT64", new F(8)), /** 32 bits per value. */
|
|
3755
|
+
y(F, "BIT32", new F(4)), /** 16 bits per value. */
|
|
3756
|
+
y(F, "BIT16", new F(2)), /** 8 bits per value. */
|
|
3757
|
+
y(F, "BIT8", new F(1)), /** A zod schema for validating and transforming densities */
|
|
3758
|
+
y(F, "z", s.union([
|
|
3759
|
+
s.number().transform((r) => new F(r)),
|
|
3760
|
+
s.instanceof(Number).transform((r) => new F(r)),
|
|
3761
|
+
s.instanceof(F)
|
|
3762
3762
|
]));
|
|
3763
|
-
let ee =
|
|
3763
|
+
let ee = F;
|
|
3764
3764
|
const ue = class br {
|
|
3765
3765
|
/**
|
|
3766
3766
|
* Creates a TimeRange from the given start and end TimeStamps.
|
|
@@ -4643,7 +4643,7 @@ let je = Rt, Xs = class {
|
|
|
4643
4643
|
constructor(e, t, n) {
|
|
4644
4644
|
y(this, "series"), y(this, "end"), y(this, "index"), this.series = e;
|
|
4645
4645
|
const i = te(0, e.length);
|
|
4646
|
-
this.end =
|
|
4646
|
+
this.end = Gs(i, n), this.index = Gs(i, t);
|
|
4647
4647
|
}
|
|
4648
4648
|
next() {
|
|
4649
4649
|
return this.index >= this.end ? { done: !0, value: void 0 } : { done: !1, value: this.series.at(this.index++, !0) };
|
|
@@ -4887,7 +4887,7 @@ const ii = (r) => {
|
|
|
4887
4887
|
return o;
|
|
4888
4888
|
};
|
|
4889
4889
|
s.object({ key: s.string(), value: s.string() });
|
|
4890
|
-
var
|
|
4890
|
+
var Fu = Object.defineProperty, Gu = (r, e, t) => e in r ? Fu(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Tr = (r, e, t) => Gu(r, typeof e != "symbol" ? e + "" : e, t);
|
|
4891
4891
|
let Vu = class {
|
|
4892
4892
|
constructor(e, t) {
|
|
4893
4893
|
Tr(this, "handlers"), Tr(this, "transform"), Tr(this, "closer"), this.transform = e, this.handlers = t ?? /* @__PURE__ */ new Map();
|
|
@@ -5080,7 +5080,7 @@ const Ln = s.string().regex(/^\d+\.\d+\.\d+$/), Jt = (r, e, t = {}) => {
|
|
|
5080
5080
|
if (l > f) return un;
|
|
5081
5081
|
}
|
|
5082
5082
|
return Mr;
|
|
5083
|
-
}, Mh = (r, e, t = {}) =>
|
|
5083
|
+
}, Mh = (r, e, t = {}) => Gl(Jt(r, e, t)), ma = (r, e, t = {}) => Fl(Jt(r, e, t)), Bh = (r, e, t = {}) => Wl(Jt(r, e, t)), Zh = ({
|
|
5084
5084
|
name: r,
|
|
5085
5085
|
migrate: e
|
|
5086
5086
|
}) => (t) => {
|
|
@@ -5176,14 +5176,14 @@ const Ln = s.string().regex(/^\d+\.\d+\.\d+$/), Jt = (r, e, t = {}) => {
|
|
|
5176
5176
|
__proto__: null,
|
|
5177
5177
|
createShortIdentifiers: _h,
|
|
5178
5178
|
naturalLanguageJoin: Lh
|
|
5179
|
-
}, Symbol.toStringTag, { value: "Module" })), Ce = "sy.",
|
|
5179
|
+
}, Symbol.toStringTag, { value: "Module" })), Ce = "sy.", Ge = class Ge extends oe {
|
|
5180
5180
|
constructor() {
|
|
5181
5181
|
super(...arguments);
|
|
5182
|
-
c(this, "type",
|
|
5182
|
+
c(this, "type", Ge.TYPE);
|
|
5183
5183
|
}
|
|
5184
5184
|
};
|
|
5185
|
-
c(
|
|
5186
|
-
let L =
|
|
5185
|
+
c(Ge, "TYPE", `${Ce}validation`), c(Ge, "matches", X(Ge.TYPE));
|
|
5186
|
+
let L = Ge;
|
|
5187
5187
|
const Ve = class Ve extends L {
|
|
5188
5188
|
constructor(t, n) {
|
|
5189
5189
|
super(`${t}: ${n}`);
|
|
@@ -5314,7 +5314,7 @@ const Wh = async (r, e) => {
|
|
|
5314
5314
|
url: n.url
|
|
5315
5315
|
})
|
|
5316
5316
|
] : [t, n];
|
|
5317
|
-
}, pt = s.string().uuid(), Zr = s.string(), Kn = s.object({ key: pt, name: Zr }),
|
|
5317
|
+
}, pt = s.string().uuid(), Zr = s.string(), Kn = s.object({ key: pt, name: Zr }), Fh = (r) => {
|
|
5318
5318
|
const e = b(r);
|
|
5319
5319
|
if (e.length === 0) throw new Error("No groups specified");
|
|
5320
5320
|
const t = pt.safeParse(e[0]).success;
|
|
@@ -5324,7 +5324,7 @@ const Wh = async (r, e) => {
|
|
|
5324
5324
|
normalized: e,
|
|
5325
5325
|
actual: r
|
|
5326
5326
|
};
|
|
5327
|
-
}, Hn = "group",
|
|
5327
|
+
}, Hn = "group", G = (r) => s.union([
|
|
5328
5328
|
s.union([s.null(), s.undefined()]).transform(() => []),
|
|
5329
5329
|
r.array()
|
|
5330
5330
|
]), V = s.number(), Kt = s.string(), Ht = s.object({
|
|
@@ -5339,7 +5339,7 @@ const Wh = async (r, e) => {
|
|
|
5339
5339
|
virtual: s.boolean(),
|
|
5340
5340
|
alias: s.string().optional(),
|
|
5341
5341
|
expression: s.string().default(""),
|
|
5342
|
-
requires:
|
|
5342
|
+
requires: G(V)
|
|
5343
5343
|
}), wa = Ht.extend({
|
|
5344
5344
|
key: V.optional(),
|
|
5345
5345
|
leaseholder: s.number().optional(),
|
|
@@ -5349,7 +5349,7 @@ const Wh = async (r, e) => {
|
|
|
5349
5349
|
internal: s.boolean().optional().default(!1),
|
|
5350
5350
|
virtual: s.boolean().optional().default(!1),
|
|
5351
5351
|
expression: s.string().optional().default(""),
|
|
5352
|
-
requires:
|
|
5352
|
+
requires: G(V).optional().default([])
|
|
5353
5353
|
}), Ur = "channel", Xn = "framer", li = (r) => {
|
|
5354
5354
|
const e = b(r);
|
|
5355
5355
|
return e.length === 0 ? null : typeof e[0] == "number" || !isNaN(parseInt(e[0])) ? "key" : "name";
|
|
@@ -5610,7 +5610,7 @@ const Lr = s.object({
|
|
|
5610
5610
|
dataType: r.dataType,
|
|
5611
5611
|
data: new Uint8Array(r.data.buffer),
|
|
5612
5612
|
alignment: r.alignment
|
|
5613
|
-
}), gt = Ih.uint32, _r = s.object({ key: gt, name: s.string() }), va = _r.partial({ key: !0 }), qr = "rack", Oa = (r) => r ?
|
|
5613
|
+
}), gt = Ih.uint32, _r = s.object({ key: gt, name: s.string() }), va = _r.partial({ key: !0 }), qr = "rack", Oa = (r) => r ? Gt.JSON_CODEC.decodeString(r) : {}, Yr = s.string(), Xt = s.object({
|
|
5614
5614
|
key: Yr,
|
|
5615
5615
|
rack: gt,
|
|
5616
5616
|
name: s.string(),
|
|
@@ -5620,7 +5620,7 @@ const Lr = s.object({
|
|
|
5620
5620
|
configured: s.boolean().optional(),
|
|
5621
5621
|
properties: s.record(s.unknown()).or(s.string().transform(Oa))
|
|
5622
5622
|
}), Na = Xt.extend({
|
|
5623
|
-
properties: s.unknown().transform((r) =>
|
|
5623
|
+
properties: s.unknown().transform((r) => Gt.JSON_CODEC.encodeString(r))
|
|
5624
5624
|
}), zr = "device", ye = (r) => r ? JSON.parse(r) : {}, Pe = s.union([
|
|
5625
5625
|
s.string(),
|
|
5626
5626
|
s.bigint().transform((r) => r.toString()),
|
|
@@ -5640,13 +5640,13 @@ const Lr = s.object({
|
|
|
5640
5640
|
snapshot: s.boolean().optional()
|
|
5641
5641
|
}), Sa = Qt.omit({ key: !0 }).extend({
|
|
5642
5642
|
key: Pe.transform((r) => r.toString()).optional(),
|
|
5643
|
-
config: s.unknown().transform((r) =>
|
|
5643
|
+
config: s.unknown().transform((r) => Gt.JSON_CODEC.encodeString(r))
|
|
5644
5644
|
}), Qn = s.object({
|
|
5645
5645
|
task: Pe,
|
|
5646
5646
|
type: s.string(),
|
|
5647
5647
|
key: s.string(),
|
|
5648
5648
|
args: s.record(s.unknown()).or(s.string().transform(ye)).or(s.array(s.unknown())).or(s.null()).optional()
|
|
5649
|
-
}), Wr = "task",
|
|
5649
|
+
}), Wr = "task", Gh = (r) => Number(BigInt(r) >> 32n), mt = s.string().uuid(), er = s.object({
|
|
5650
5650
|
key: mt,
|
|
5651
5651
|
name: s.string().min(1),
|
|
5652
5652
|
color: s.string()
|
|
@@ -5674,15 +5674,15 @@ const Lr = s.object({
|
|
|
5674
5674
|
firstName: s.string().default(""),
|
|
5675
5675
|
lastName: s.string().default(""),
|
|
5676
5676
|
rootUser: s.boolean().default(!0)
|
|
5677
|
-
}), ka = rr.partial({ key: !0, firstName: !0, lastName: !0 }).omit({ rootUser: !0 }).extend({ password: s.string().min(1) }), ss = "user", wt = s.string().uuid(),
|
|
5677
|
+
}), ka = rr.partial({ key: !0, firstName: !0, lastName: !0 }).omit({ rootUser: !0 }).extend({ password: s.string().min(1) }), ss = "user", wt = s.string().uuid(), Fr = s.object({
|
|
5678
5678
|
key: wt,
|
|
5679
5679
|
name: s.string(),
|
|
5680
5680
|
data: Vt.or(s.string().transform(ye))
|
|
5681
|
-
}), Aa =
|
|
5681
|
+
}), Aa = Fr.partial({ key: !0 }).transform((r) => ({ ...r, data: JSON.stringify(r.data) })), is = "lineplot", bt = s.string().uuid(), Gr = s.object({
|
|
5682
5682
|
key: bt,
|
|
5683
5683
|
name: s.string(),
|
|
5684
5684
|
data: Vt.or(s.string().transform(ye))
|
|
5685
|
-
}), xa =
|
|
5685
|
+
}), xa = Gr.partial({ key: !0 }).transform((r) => ({ ...r, data: JSON.stringify(r.data) })), as = "log", pe = s.string().uuid(), Vr = s.object({
|
|
5686
5686
|
key: pe,
|
|
5687
5687
|
name: s.string(),
|
|
5688
5688
|
layout: Vt.or(s.string().transform(ye))
|
|
@@ -5832,7 +5832,7 @@ const Bg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5832
5832
|
Client: qa,
|
|
5833
5833
|
Group: fs,
|
|
5834
5834
|
ONTOLOGY_TYPE: Hn,
|
|
5835
|
-
analyzeParams:
|
|
5835
|
+
analyzeParams: Fh,
|
|
5836
5836
|
groupZ: Kn,
|
|
5837
5837
|
keyZ: pt,
|
|
5838
5838
|
nameZ: Zr,
|
|
@@ -6168,9 +6168,9 @@ const Lg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6168
6168
|
stringIDZ: Ba
|
|
6169
6169
|
}, Symbol.toStringTag, { value: "Module" })), ir = s.string().uuid(), Xr = s.object({
|
|
6170
6170
|
key: ir,
|
|
6171
|
-
subjects:
|
|
6172
|
-
objects:
|
|
6173
|
-
actions:
|
|
6171
|
+
subjects: G(re),
|
|
6172
|
+
objects: G(re),
|
|
6173
|
+
actions: G(Er)
|
|
6174
6174
|
}), za = s.object({
|
|
6175
6175
|
key: ir.optional(),
|
|
6176
6176
|
subjects: We.array().or(We),
|
|
@@ -6179,7 +6179,7 @@ const Lg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6179
6179
|
}), hd = s.object({
|
|
6180
6180
|
keys: ir.array().optional(),
|
|
6181
6181
|
subjects: re.array().optional()
|
|
6182
|
-
}), dd = s.object({ policies:
|
|
6182
|
+
}), dd = s.object({ policies: G(Xr) }), fd = "/access/policy/retrieve";
|
|
6183
6183
|
let yd = class {
|
|
6184
6184
|
constructor(e) {
|
|
6185
6185
|
c(this, "client");
|
|
@@ -6260,17 +6260,17 @@ const Od = (r) => new O({ type: zn, key: r }), Nd = new O({
|
|
|
6260
6260
|
ontologyID: Od,
|
|
6261
6261
|
policyZ: Xr
|
|
6262
6262
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6263
|
-
let
|
|
6263
|
+
let Fa = class {
|
|
6264
6264
|
constructor(e) {
|
|
6265
6265
|
c(this, "policy");
|
|
6266
6266
|
this.policy = new Wa(e);
|
|
6267
6267
|
}
|
|
6268
6268
|
};
|
|
6269
|
-
const
|
|
6269
|
+
const Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6270
6270
|
__proto__: null,
|
|
6271
|
-
ALL_ACTION:
|
|
6272
|
-
CREATE_ACTION:
|
|
6273
|
-
Client:
|
|
6271
|
+
ALL_ACTION: Fi,
|
|
6272
|
+
CREATE_ACTION: Gi,
|
|
6273
|
+
Client: Fa,
|
|
6274
6274
|
DELETE_ACTION: Vi,
|
|
6275
6275
|
RETRIEVE_ACTION: Ji,
|
|
6276
6276
|
UPDATE_ACTION: Ki,
|
|
@@ -6311,7 +6311,7 @@ class Id {
|
|
|
6311
6311
|
if (e <= 0)
|
|
6312
6312
|
throw new Error(`invalid weight ${e}: must be positive`);
|
|
6313
6313
|
return new Promise((n, i) => {
|
|
6314
|
-
const a = { resolve: n, reject: i, weight: e, priority: t }, o =
|
|
6314
|
+
const a = { resolve: n, reject: i, weight: e, priority: t }, o = Ga(this._queue, (l) => t <= l.priority);
|
|
6315
6315
|
o === -1 && e <= this._value ? this._dispatchItem(a) : this._queue.splice(o + 1, 0, a);
|
|
6316
6316
|
});
|
|
6317
6317
|
}
|
|
@@ -6385,10 +6385,10 @@ class Id {
|
|
|
6385
6385
|
}
|
|
6386
6386
|
}
|
|
6387
6387
|
function $d(r, e) {
|
|
6388
|
-
const t =
|
|
6388
|
+
const t = Ga(r, (n) => e.priority <= n.priority);
|
|
6389
6389
|
r.splice(t + 1, 0, e);
|
|
6390
6390
|
}
|
|
6391
|
-
function
|
|
6391
|
+
function Ga(r, e) {
|
|
6392
6392
|
for (let t = r.length - 1; t >= 0; t--)
|
|
6393
6393
|
if (e(r[t]))
|
|
6394
6394
|
return t;
|
|
@@ -6480,7 +6480,7 @@ const Qr = (r, e, { convertNumericStrings: t = !0 } = {}) => {
|
|
|
6480
6480
|
virtual: s.boolean().optional(),
|
|
6481
6481
|
isIndex: s.boolean().optional(),
|
|
6482
6482
|
internal: s.boolean().optional()
|
|
6483
|
-
}), Rd = s.object({ channels:
|
|
6483
|
+
}), Rd = s.object({ channels: G(Ht) }), ve = (r) => Qr(r, { number: "keys", string: "names" }), Cr = class Cr {
|
|
6484
6484
|
constructor(e) {
|
|
6485
6485
|
c(this, "client");
|
|
6486
6486
|
this.client = e;
|
|
@@ -6901,8 +6901,8 @@ const Jg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6901
6901
|
}, Symbol.toStringTag, { value: "Module" })), zd = s.object({
|
|
6902
6902
|
keys: Ue.array().optional(),
|
|
6903
6903
|
usernames: s.string().array().optional()
|
|
6904
|
-
}), Wd = s.object({ users:
|
|
6905
|
-
let
|
|
6904
|
+
}), Wd = s.object({ users: G(rr) }), Fd = "/user/retrieve";
|
|
6905
|
+
let Gd = class {
|
|
6906
6906
|
constructor(e) {
|
|
6907
6907
|
c(this, "client");
|
|
6908
6908
|
this.client = e;
|
|
@@ -6910,7 +6910,7 @@ let Fd = class {
|
|
|
6910
6910
|
async retrieve(e) {
|
|
6911
6911
|
return (await w(
|
|
6912
6912
|
this.client,
|
|
6913
|
-
|
|
6913
|
+
Fd,
|
|
6914
6914
|
e,
|
|
6915
6915
|
zd,
|
|
6916
6916
|
Wd
|
|
@@ -6967,7 +6967,7 @@ let of = class {
|
|
|
6967
6967
|
constructor(e) {
|
|
6968
6968
|
c(this, "reader");
|
|
6969
6969
|
c(this, "writer");
|
|
6970
|
-
this.writer = new of(e), this.reader = new
|
|
6970
|
+
this.writer = new of(e), this.reader = new Gd(e);
|
|
6971
6971
|
}
|
|
6972
6972
|
async create(e) {
|
|
6973
6973
|
const t = Array.isArray(e), n = await this.writer.create(e);
|
|
@@ -7079,7 +7079,7 @@ const ro = s.enum(["disconnected", "connecting", "connected", "failed"]), no = s
|
|
|
7079
7079
|
error: void 0,
|
|
7080
7080
|
message: "Disconnected",
|
|
7081
7081
|
clientServerCompatible: !1,
|
|
7082
|
-
clientVersion: "0.
|
|
7082
|
+
clientVersion: "0.40.0"
|
|
7083
7083
|
}, bi = (r, e, t) => {
|
|
7084
7084
|
const n = t ? "cluster" : "client";
|
|
7085
7085
|
return `Synnax cluster node version ${r != null ? `${r} ` : ""}is too ${t ? "old" : "new"} for client version ${e}.
|
|
@@ -7358,7 +7358,7 @@ const Of = s.object({
|
|
|
7358
7358
|
variant: s.nativeEnum(so),
|
|
7359
7359
|
ack: s.boolean(),
|
|
7360
7360
|
command: s.nativeEnum(ms),
|
|
7361
|
-
error:
|
|
7361
|
+
error: Ft.optional().nullable(),
|
|
7362
7362
|
frame: Lr.optional()
|
|
7363
7363
|
}), Zt = class Zt {
|
|
7364
7364
|
constructor(e, t) {
|
|
@@ -7511,7 +7511,7 @@ class Ef {
|
|
|
7511
7511
|
}
|
|
7512
7512
|
}
|
|
7513
7513
|
}
|
|
7514
|
-
const Sf = s.object({ keys: s.number().array(), downsampleFactor: s.number() }), If = s.object({ frame: Lr, error:
|
|
7514
|
+
const Sf = s.object({ keys: s.number().array(), downsampleFactor: s.number() }), If = s.object({ frame: Lr, error: Ft.optional().nullable() }), $f = "/frame/stream";
|
|
7515
7515
|
class rn {
|
|
7516
7516
|
constructor(e, t) {
|
|
7517
7517
|
c(this, "stream");
|
|
@@ -7596,7 +7596,7 @@ const kf = (r) => {
|
|
|
7596
7596
|
}), Cf = s.object({
|
|
7597
7597
|
ack: s.boolean(),
|
|
7598
7598
|
command: s.nativeEnum(ws),
|
|
7599
|
-
error:
|
|
7599
|
+
error: Ft.optional().nullable()
|
|
7600
7600
|
});
|
|
7601
7601
|
var Ie;
|
|
7602
7602
|
let io = (Ie = class {
|
|
@@ -7834,7 +7834,7 @@ class oo extends Ze {
|
|
|
7834
7834
|
});
|
|
7835
7835
|
c(this, "states");
|
|
7836
7836
|
c(this, "codec");
|
|
7837
|
-
this.states = /* @__PURE__ */ new Map(), this.codec = new
|
|
7837
|
+
this.states = /* @__PURE__ */ new Map(), this.codec = new Gt.JSONCodec();
|
|
7838
7838
|
}
|
|
7839
7839
|
subjects() {
|
|
7840
7840
|
const t = /* @__PURE__ */ new Map();
|
|
@@ -7893,8 +7893,9 @@ const om = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7893
7893
|
offset: s.number().optional(),
|
|
7894
7894
|
keys: Yr.array().optional(),
|
|
7895
7895
|
names: s.string().array().optional(),
|
|
7896
|
-
makes: s.string().array().optional()
|
|
7897
|
-
|
|
7896
|
+
makes: s.string().array().optional(),
|
|
7897
|
+
ignoreNotFound: s.boolean().optional()
|
|
7898
|
+
}), wn = s.object({ devices: G(Xt) });
|
|
7898
7899
|
let uo = class {
|
|
7899
7900
|
constructor(e, t) {
|
|
7900
7901
|
c(this, "type", zr);
|
|
@@ -7954,7 +7955,7 @@ let uo = class {
|
|
|
7954
7955
|
this.frameClient,
|
|
7955
7956
|
Zf,
|
|
7956
7957
|
Uf,
|
|
7957
|
-
|
|
7958
|
+
Ff
|
|
7958
7959
|
);
|
|
7959
7960
|
}
|
|
7960
7961
|
newSearcherWithOptions(e) {
|
|
@@ -7966,21 +7967,21 @@ let uo = class {
|
|
|
7966
7967
|
};
|
|
7967
7968
|
}
|
|
7968
7969
|
};
|
|
7969
|
-
const
|
|
7970
|
+
const Ff = (r, e) => r === "delete" ? e.toStrings().map((t) => ({ variant: r, key: t, value: void 0 })) : e.parseJSON(Xt).map((t) => ({ variant: r, key: t.key, value: t })), Gf = (r) => new O({ type: zr, key: r }), um = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7970
7971
|
__proto__: null,
|
|
7971
7972
|
Client: uo,
|
|
7972
7973
|
ONTOLOGY_TYPE: zr,
|
|
7973
7974
|
deviceZ: Xt,
|
|
7974
7975
|
keyZ: Yr,
|
|
7975
7976
|
newZ: Na,
|
|
7976
|
-
ontologyID:
|
|
7977
|
+
ontologyID: Gf
|
|
7977
7978
|
}, Symbol.toStringTag, { value: "Module" })), bn = "/hardware/rack/retrieve", Vf = "/hardware/rack/create", Jf = "/hardware/rack/delete", Tn = s.object({
|
|
7978
7979
|
keys: gt.array().optional(),
|
|
7979
7980
|
names: s.string().array().optional(),
|
|
7980
7981
|
search: s.string().optional(),
|
|
7981
7982
|
offset: s.number().optional(),
|
|
7982
7983
|
limit: s.number().optional()
|
|
7983
|
-
}), vn = s.object({ racks:
|
|
7984
|
+
}), vn = s.object({ racks: G(_r) }), Kf = s.object({ racks: va.array() }), Hf = s.object({ racks: _r.array() }), Xf = s.object({ keys: gt.array() }), Qf = s.object({});
|
|
7984
7985
|
let ho = class {
|
|
7985
7986
|
constructor(e, t) {
|
|
7986
7987
|
c(this, "type", qr);
|
|
@@ -8076,7 +8077,7 @@ const ey = (r) => new O({ type: qr, key: r.toString() }), dm = /* @__PURE__ */ O
|
|
|
8076
8077
|
newZ: va,
|
|
8077
8078
|
ontologyID: ey,
|
|
8078
8079
|
rackZ: _r
|
|
8079
|
-
}, Symbol.toStringTag, { value: "Module" })), Bt = "sy_task_state",
|
|
8080
|
+
}, Symbol.toStringTag, { value: "Module" })), Bt = "sy_task_state", Fe = "sy_task_cmd", ty = "sy_task_set", ry = "sy_task_delete", ze = new Error("Task not created"), yo = async (r, e) => {
|
|
8080
8081
|
const t = await e.retrieveParents(r);
|
|
8081
8082
|
return t.length === 0 ? null : t[0];
|
|
8082
8083
|
};
|
|
@@ -8109,8 +8110,8 @@ class po {
|
|
|
8109
8110
|
}
|
|
8110
8111
|
async executeCommand(e, t) {
|
|
8111
8112
|
if (this.frameClient == null) throw ze;
|
|
8112
|
-
const n = await this.frameClient.openWriter(
|
|
8113
|
-
return await n.write(
|
|
8113
|
+
const n = await this.frameClient.openWriter(Fe), i = Ru.create();
|
|
8114
|
+
return await n.write(Fe, [{ task: this.key, type: e, key: i, args: t }]), await n.close(), i;
|
|
8114
8115
|
}
|
|
8115
8116
|
async executeCommandSync(e, t, n) {
|
|
8116
8117
|
if (this.frameClient == null) throw ze;
|
|
@@ -8147,9 +8148,9 @@ class po {
|
|
|
8147
8148
|
async openCommandObserver() {
|
|
8148
8149
|
if (this.frameClient == null) throw ze;
|
|
8149
8150
|
return new Ze(
|
|
8150
|
-
await this.frameClient.openStreamer(
|
|
8151
|
+
await this.frameClient.openStreamer(Fe),
|
|
8151
8152
|
(e) => {
|
|
8152
|
-
const t = e.get(
|
|
8153
|
+
const t = e.get(Fe);
|
|
8153
8154
|
if (t.length === 0) return [null, !1];
|
|
8154
8155
|
const n = Qn.safeParse(t.at(-1));
|
|
8155
8156
|
if (!n.success)
|
|
@@ -8173,7 +8174,7 @@ const ny = s.object({
|
|
|
8173
8174
|
includeState: s.boolean().optional(),
|
|
8174
8175
|
offset: s.number().optional(),
|
|
8175
8176
|
limit: s.number().optional()
|
|
8176
|
-
}), sy = s.object({ tasks:
|
|
8177
|
+
}), sy = s.object({ tasks: G(Qt) }), iy = "/hardware/task/retrieve", ay = "/hardware/task/create", oy = "/hardware/task/delete", cy = "/hardware/task/copy", ly = s.object({ tasks: Sa.array() }), uy = s.object({ tasks: Qt.array() }), hy = s.object({ keys: Pe.array() }), dy = s.object({}), fy = s.object({ key: Pe, name: s.string(), snapshot: s.boolean() }), yy = s.object({ task: Qt });
|
|
8177
8178
|
let go = class {
|
|
8178
8179
|
constructor(e, t, n, i) {
|
|
8179
8180
|
c(this, "type", Wr);
|
|
@@ -8294,9 +8295,9 @@ let go = class {
|
|
|
8294
8295
|
}
|
|
8295
8296
|
async openCommandObserver() {
|
|
8296
8297
|
return new Ze(
|
|
8297
|
-
await this.frameClient.openStreamer(
|
|
8298
|
+
await this.frameClient.openStreamer(Fe),
|
|
8298
8299
|
(e) => {
|
|
8299
|
-
const t = e.get(
|
|
8300
|
+
const t = e.get(Fe);
|
|
8300
8301
|
if (t.length === 0) return [null, !1];
|
|
8301
8302
|
const n = Qn.safeParse(t.at(-1));
|
|
8302
8303
|
return n.success ? [n.data, !0] : (console.error(n.error), [null, !1]);
|
|
@@ -8310,7 +8311,7 @@ const mo = (r) => new O({ type: Wr, key: r }), ym = /* @__PURE__ */ Object.freez
|
|
|
8310
8311
|
ONTOLOGY_TYPE: Wr,
|
|
8311
8312
|
Task: po,
|
|
8312
8313
|
commandZ: Qn,
|
|
8313
|
-
getRackKey:
|
|
8314
|
+
getRackKey: Gh,
|
|
8314
8315
|
keyZ: Pe,
|
|
8315
8316
|
newZ: Sa,
|
|
8316
8317
|
ontologyID: mo,
|
|
@@ -8323,7 +8324,7 @@ const mo = (r) => new O({ type: Wr, key: r }), ym = /* @__PURE__ */ Object.freez
|
|
|
8323
8324
|
search: s.string().optional(),
|
|
8324
8325
|
offset: s.number().optional(),
|
|
8325
8326
|
limit: s.number().optional()
|
|
8326
|
-
}), gy = s.object({ labels:
|
|
8327
|
+
}), gy = s.object({ labels: G(er) }), Pr = class Pr {
|
|
8327
8328
|
constructor(e) {
|
|
8328
8329
|
c(this, "client");
|
|
8329
8330
|
this.client = e;
|
|
@@ -8557,7 +8558,7 @@ const Zy = s.object({ range: ne, channel: V, alias: s.string() }), Uy = "---", L
|
|
|
8557
8558
|
variant: e,
|
|
8558
8559
|
key: n.alias,
|
|
8559
8560
|
value: n
|
|
8560
|
-
})), bs = s.object({ range: ne, key: s.string(), value: s.string() }), _y = s.object({ range: ne, keys: s.string().array() }), qy = s.object({ pairs:
|
|
8561
|
+
})), bs = s.object({ range: ne, key: s.string(), value: s.string() }), _y = s.object({ range: ne, keys: s.string().array() }), qy = s.object({ pairs: G(bs) }), Yy = s.object({ range: ne, pairs: bs.array() }), zy = s.object({ range: ne, keys: s.string().array() }), Se = class Se {
|
|
8561
8562
|
constructor(e, t, n) {
|
|
8562
8563
|
c(this, "rangeKey");
|
|
8563
8564
|
c(this, "client");
|
|
@@ -8712,14 +8713,14 @@ class No {
|
|
|
8712
8713
|
}), e.setCloser(async () => await a.close()), e;
|
|
8713
8714
|
}
|
|
8714
8715
|
}
|
|
8715
|
-
const Wy = (r, e) => Pu(r.timeRange, e.timeRange),
|
|
8716
|
+
const Wy = (r, e) => Pu(r.timeRange, e.timeRange), Fy = s.object({
|
|
8716
8717
|
keys: ne.array().optional(),
|
|
8717
8718
|
names: s.array(s.string()).optional(),
|
|
8718
8719
|
term: s.string().optional(),
|
|
8719
8720
|
overlapsWith: H.z.optional(),
|
|
8720
8721
|
limit: s.number().int().optional(),
|
|
8721
8722
|
offset: s.number().int().optional()
|
|
8722
|
-
}),
|
|
8723
|
+
}), Gy = "/range/retrieve", Vy = s.object({ ranges: G(tr) });
|
|
8723
8724
|
let Eo = class {
|
|
8724
8725
|
constructor(e, t, n, i, a, o) {
|
|
8725
8726
|
c(this, "type", "range");
|
|
@@ -8768,9 +8769,9 @@ let Eo = class {
|
|
|
8768
8769
|
async execRetrieve(e) {
|
|
8769
8770
|
const { ranges: t } = await w(
|
|
8770
8771
|
this.unaryClient,
|
|
8771
|
-
Fy,
|
|
8772
|
-
e,
|
|
8773
8772
|
Gy,
|
|
8773
|
+
e,
|
|
8774
|
+
Fy,
|
|
8774
8775
|
Vy
|
|
8775
8776
|
);
|
|
8776
8777
|
return this.sugarMany(t);
|
|
@@ -8878,7 +8879,7 @@ class ap {
|
|
|
8878
8879
|
c(this, "stream");
|
|
8879
8880
|
c(this, "secure");
|
|
8880
8881
|
this.secure = n, this.url = e.child(ip);
|
|
8881
|
-
const i = new
|
|
8882
|
+
const i = new Gt.JSONCodec();
|
|
8882
8883
|
this.unary = vl(
|
|
8883
8884
|
new Tl(this.url, i, this.secure),
|
|
8884
8885
|
t
|
|
@@ -8888,7 +8889,7 @@ class ap {
|
|
|
8888
8889
|
this.unary.use(...e), this.stream.use(...e);
|
|
8889
8890
|
}
|
|
8890
8891
|
}
|
|
8891
|
-
const op = "/workspace/lineplot/retrieve", cp = "/workspace/lineplot/create", lp = "/workspace/lineplot/rename", up = "/workspace/lineplot/set-data", hp = "/workspace/lineplot/delete", dp = s.object({ keys: wt.array() }), fp = s.object({ workspace: pe, linePlots: Aa.array() }), yp = s.object({ key: wt, name: s.string() }), pp = s.object({ key: wt, data: s.string() }), gp = s.object({ keys: wt.array() }), mp = s.object({ linePlots:
|
|
8892
|
+
const op = "/workspace/lineplot/retrieve", cp = "/workspace/lineplot/create", lp = "/workspace/lineplot/rename", up = "/workspace/lineplot/set-data", hp = "/workspace/lineplot/delete", dp = s.object({ keys: wt.array() }), fp = s.object({ workspace: pe, linePlots: Aa.array() }), yp = s.object({ key: wt, name: s.string() }), pp = s.object({ key: wt, data: s.string() }), gp = s.object({ keys: wt.array() }), mp = s.object({ linePlots: G(Fr) }), wp = s.object({ linePlots: Fr.array() }), Nn = s.object({});
|
|
8892
8893
|
let Io = class {
|
|
8893
8894
|
constructor(e) {
|
|
8894
8895
|
c(this, "client");
|
|
@@ -8947,10 +8948,10 @@ const bp = (r) => new O({ type: is, key: r }), vm = /* @__PURE__ */ Object.freez
|
|
|
8947
8948
|
Client: Io,
|
|
8948
8949
|
ONTOLOGY_TYPE: is,
|
|
8949
8950
|
keyZ: wt,
|
|
8950
|
-
linePlotZ:
|
|
8951
|
+
linePlotZ: Fr,
|
|
8951
8952
|
newZ: Aa,
|
|
8952
8953
|
ontologyID: bp
|
|
8953
|
-
}, Symbol.toStringTag, { value: "Module" })), Tp = "/workspace/log/retrieve", vp = "/workspace/log/create", Op = "/workspace/log/rename", Np = "/workspace/log/set-data", Ep = "/workspace/log/delete", Sp = s.object({ keys: bt.array() }), Ip = s.object({ workspace: pe, logs: xa.array() }), $p = s.object({ key: bt, name: s.string() }), kp = s.object({ key: bt, data: s.string() }), Ap = s.object({ keys: bt.array() }), xp = s.object({ logs:
|
|
8954
|
+
}, Symbol.toStringTag, { value: "Module" })), Tp = "/workspace/log/retrieve", vp = "/workspace/log/create", Op = "/workspace/log/rename", Np = "/workspace/log/set-data", Ep = "/workspace/log/delete", Sp = s.object({ keys: bt.array() }), Ip = s.object({ workspace: pe, logs: xa.array() }), $p = s.object({ key: bt, name: s.string() }), kp = s.object({ key: bt, data: s.string() }), Ap = s.object({ keys: bt.array() }), xp = s.object({ logs: Gr.array() }), Rp = s.object({ logs: Gr.array() }), En = s.object({});
|
|
8954
8955
|
let $o = class {
|
|
8955
8956
|
constructor(e) {
|
|
8956
8957
|
c(this, "client");
|
|
@@ -9009,10 +9010,10 @@ const Cp = (r) => new O({ type: as, key: r }), Nm = /* @__PURE__ */ Object.freez
|
|
|
9009
9010
|
Client: $o,
|
|
9010
9011
|
ONTOLOGY_TYPE: as,
|
|
9011
9012
|
keyZ: bt,
|
|
9012
|
-
logZ:
|
|
9013
|
+
logZ: Gr,
|
|
9013
9014
|
newZ: xa,
|
|
9014
9015
|
ontologyID: Cp
|
|
9015
|
-
}, Symbol.toStringTag, { value: "Module" })), Pp = "/workspace/schematic/retrieve", jp = "/workspace/schematic/create", Dp = "/workspace/schematic/rename", Mp = "/workspace/schematic/set-data", Bp = "/workspace/schematic/delete", Zp = "/workspace/schematic/copy", Up = s.object({ keys: Le.array() }), Lp = s.object({ workspace: pe, schematics: Pa.array() }), _p = s.object({ key: Le, name: s.string() }), qp = s.object({ key: Le, data: s.string() }), Yp = s.object({ keys: Le.array() }), zp = s.object({ key: Le, name: s.string(), snapshot: s.boolean() }), Wp = s.object({ schematics:
|
|
9016
|
+
}, Symbol.toStringTag, { value: "Module" })), Pp = "/workspace/schematic/retrieve", jp = "/workspace/schematic/create", Dp = "/workspace/schematic/rename", Mp = "/workspace/schematic/set-data", Bp = "/workspace/schematic/delete", Zp = "/workspace/schematic/copy", Up = s.object({ keys: Le.array() }), Lp = s.object({ workspace: pe, schematics: Pa.array() }), _p = s.object({ key: Le, name: s.string() }), qp = s.object({ key: Le, data: s.string() }), Yp = s.object({ keys: Le.array() }), zp = s.object({ key: Le, name: s.string(), snapshot: s.boolean() }), Wp = s.object({ schematics: G(os) }), Fp = s.object({ schematics: os.array() }), Gp = s.object({ schematic: Kr }), Sn = s.object({});
|
|
9016
9017
|
let ko = class {
|
|
9017
9018
|
constructor(e) {
|
|
9018
9019
|
c(this, "client");
|
|
@@ -9024,7 +9025,7 @@ let ko = class {
|
|
|
9024
9025
|
jp,
|
|
9025
9026
|
{ workspace: e, schematics: b(t) },
|
|
9026
9027
|
Lp,
|
|
9027
|
-
|
|
9028
|
+
Fp
|
|
9028
9029
|
);
|
|
9029
9030
|
return n ? i.schematics : i.schematics[0];
|
|
9030
9031
|
}
|
|
@@ -9071,7 +9072,7 @@ let ko = class {
|
|
|
9071
9072
|
Zp,
|
|
9072
9073
|
{ key: e, name: t, snapshot: n },
|
|
9073
9074
|
zp,
|
|
9074
|
-
|
|
9075
|
+
Gp
|
|
9075
9076
|
)).schematic;
|
|
9076
9077
|
}
|
|
9077
9078
|
};
|
|
@@ -9153,7 +9154,7 @@ const og = (r) => new O({ type: hs, key: r }), $m = /* @__PURE__ */ Object.freez
|
|
|
9153
9154
|
author: Ue.optional(),
|
|
9154
9155
|
offset: s.number().optional(),
|
|
9155
9156
|
limit: s.number().optional()
|
|
9156
|
-
}), dg = s.object({ workspaces: Ra.array() }), fg = s.object({ key: pe, name: s.string() }), yg = s.object({ key: pe, layout: s.string() }), pg = s.object({ keys: pe.array() }), hr = s.object({ workspaces:
|
|
9157
|
+
}), dg = s.object({ workspaces: Ra.array() }), fg = s.object({ key: pe, name: s.string() }), yg = s.object({ key: pe, layout: s.string() }), pg = s.object({ keys: pe.array() }), hr = s.object({ workspaces: G(Vr) }), gg = s.object({ workspaces: Ca.array() }), $n = s.object({});
|
|
9157
9158
|
class xo {
|
|
9158
9159
|
constructor(e) {
|
|
9159
9160
|
c(this, "type", Jr);
|
|
@@ -9312,7 +9313,7 @@ class bg extends ao {
|
|
|
9312
9313
|
/**
|
|
9313
9314
|
* The version of the client.
|
|
9314
9315
|
*/
|
|
9315
|
-
c(this, "clientVersion", "0.
|
|
9316
|
+
c(this, "clientVersion", "0.40.0");
|
|
9316
9317
|
this.createdAt = k.now(), this.props = n, this.auth = A, this.transport = d, this.channels = new Ha(this, I, d.unary, se), this.connectivity = new zt(
|
|
9317
9318
|
d.unary,
|
|
9318
9319
|
u,
|
|
@@ -9327,7 +9328,7 @@ class bg extends ao {
|
|
|
9327
9328
|
I,
|
|
9328
9329
|
this.labels,
|
|
9329
9330
|
this.ontology
|
|
9330
|
-
), this.access = new
|
|
9331
|
+
), this.access = new Fa(this.transport.unary), this.user = new to(this.transport.unary), this.workspaces = new xo(this.transport.unary);
|
|
9331
9332
|
const Ro = new uo(this.transport.unary, this), Ts = new go(
|
|
9332
9333
|
this.transport.unary,
|
|
9333
9334
|
this,
|
|
@@ -9366,7 +9367,7 @@ export {
|
|
|
9366
9367
|
k as TimeStamp,
|
|
9367
9368
|
Me as UnexpectedError,
|
|
9368
9369
|
L as ValidationError,
|
|
9369
|
-
|
|
9370
|
+
Fg as access,
|
|
9370
9371
|
Jg as channel,
|
|
9371
9372
|
tm as connection,
|
|
9372
9373
|
im as control,
|