@camstack/addon-benchmark 0.1.23 → 0.1.25
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/assets/icon.svg +7 -0
- package/dist/__mfe_internal__addon_benchmark_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.mjs-Bzme9D82.mjs +17 -0
- package/dist/_stub.js +1584 -1545
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_benchmark_page-Du6-0wCF.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_benchmark_page-DleAjgSp.mjs} +6 -6
- package/dist/{hostInit-CoNLMV_y.mjs → hostInit-ChggctUI.mjs} +6 -6
- package/dist/{index-Bh-SRoAH.mjs → index-6jsvYcXp.mjs} +67 -44
- package/dist/{index-BQ_NNiX0.mjs → index-Bpv0NSqI.mjs} +5414 -5170
- package/dist/{index-V6QGb9dq.mjs → index-C7IrBIw9.mjs} +4249 -4164
- package/dist/remoteEntry.js +1 -1
- package/package.json +4 -2
- package/dist/__mfe_internal__addon_benchmark_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.mjs-m4KqdgpG.mjs +0 -17
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const e = {
|
|
2
2
|
"@camstack/sdk": {
|
|
3
3
|
name: "@camstack/sdk",
|
|
4
|
-
version: "0.1.
|
|
4
|
+
version: "0.1.47",
|
|
5
5
|
scope: ["default"],
|
|
6
6
|
loaded: !1,
|
|
7
7
|
from: "__mfe_internal__addon_benchmark_page",
|
|
@@ -10,13 +10,13 @@ const e = {
|
|
|
10
10
|
},
|
|
11
11
|
shareConfig: {
|
|
12
12
|
singleton: !0,
|
|
13
|
-
requiredVersion: "^0.1.
|
|
13
|
+
requiredVersion: "^0.1.47",
|
|
14
14
|
import: !1
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
"@camstack/types": {
|
|
18
18
|
name: "@camstack/types",
|
|
19
|
-
version: "0.1.
|
|
19
|
+
version: "0.1.33",
|
|
20
20
|
scope: ["default"],
|
|
21
21
|
loaded: !1,
|
|
22
22
|
from: "__mfe_internal__addon_benchmark_page",
|
|
@@ -25,13 +25,13 @@ const e = {
|
|
|
25
25
|
},
|
|
26
26
|
shareConfig: {
|
|
27
27
|
singleton: !0,
|
|
28
|
-
requiredVersion: "^0.1.
|
|
28
|
+
requiredVersion: "^0.1.33",
|
|
29
29
|
import: !1
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
"@camstack/ui-library": {
|
|
33
33
|
name: "@camstack/ui-library",
|
|
34
|
-
version: "0.1.
|
|
34
|
+
version: "0.1.50",
|
|
35
35
|
scope: ["default"],
|
|
36
36
|
loaded: !1,
|
|
37
37
|
from: "__mfe_internal__addon_benchmark_page",
|
|
@@ -40,7 +40,7 @@ const e = {
|
|
|
40
40
|
},
|
|
41
41
|
shareConfig: {
|
|
42
42
|
singleton: !0,
|
|
43
|
-
requiredVersion: "^0.1.
|
|
43
|
+
requiredVersion: "^0.1.50",
|
|
44
44
|
import: !1
|
|
45
45
|
}
|
|
46
46
|
},
|
|
@@ -56,21 +56,21 @@ async function l() {
|
|
|
56
56
|
}), r.share["react/jsx-runtime"] = e;
|
|
57
57
|
}
|
|
58
58
|
if (r.share["@camstack/sdk"] === void 0) {
|
|
59
|
-
const e = { ...await import("./index-
|
|
59
|
+
const e = { ...await import("./index-6jsvYcXp.mjs") };
|
|
60
60
|
Object.defineProperty(e, "__esModule", {
|
|
61
61
|
value: !0,
|
|
62
62
|
enumerable: !1
|
|
63
63
|
}), r.share["@camstack/sdk"] = e;
|
|
64
64
|
}
|
|
65
65
|
if (r.share["@camstack/types"] === void 0) {
|
|
66
|
-
const e = { ...await import("./index-
|
|
66
|
+
const e = { ...await import("./index-Bpv0NSqI.mjs") };
|
|
67
67
|
Object.defineProperty(e, "__esModule", {
|
|
68
68
|
value: !0,
|
|
69
69
|
enumerable: !1
|
|
70
70
|
}), r.share["@camstack/types"] = e;
|
|
71
71
|
}
|
|
72
72
|
if (r.share["@camstack/ui-library"] === void 0) {
|
|
73
|
-
const e = { ...await import("./index-
|
|
73
|
+
const e = { ...await import("./index-C7IrBIw9.mjs") };
|
|
74
74
|
Object.defineProperty(e, "__esModule", {
|
|
75
75
|
value: !0,
|
|
76
76
|
enumerable: !1
|
|
@@ -101,21 +101,21 @@ async function l() {
|
|
|
101
101
|
"@camstack/sdk": {
|
|
102
102
|
shareConfig: {
|
|
103
103
|
singleton: !0,
|
|
104
|
-
requiredVersion: "^0.1.
|
|
104
|
+
requiredVersion: "^0.1.47",
|
|
105
105
|
import: !1
|
|
106
106
|
}
|
|
107
107
|
},
|
|
108
108
|
"@camstack/types": {
|
|
109
109
|
shareConfig: {
|
|
110
110
|
singleton: !0,
|
|
111
|
-
requiredVersion: "^0.1.
|
|
111
|
+
requiredVersion: "^0.1.33",
|
|
112
112
|
import: !1
|
|
113
113
|
}
|
|
114
114
|
},
|
|
115
115
|
"@camstack/ui-library": {
|
|
116
116
|
shareConfig: {
|
|
117
117
|
singleton: !0,
|
|
118
|
-
requiredVersion: "^0.1.
|
|
118
|
+
requiredVersion: "^0.1.50",
|
|
119
119
|
import: !1
|
|
120
120
|
}
|
|
121
121
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as _e, b as x, A as be, n as ve } from "./__mfe_internal__addon_benchmark_page__loadShare___mf_0_trpc_mf_1_client__loadShare__.mjs-jq0dGk3x.mjs";
|
|
2
|
-
import { c as V, d as Ee } from "./__mfe_internal__addon_benchmark_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.mjs-
|
|
2
|
+
import { c as V, d as Ee } from "./__mfe_internal__addon_benchmark_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.mjs-Bzme9D82.mjs";
|
|
3
3
|
class Pe {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.keyToValue = /* @__PURE__ */ new Map(), this.valueToKey = /* @__PURE__ */ new Map();
|
|
@@ -17,7 +17,7 @@ class Pe {
|
|
|
17
17
|
this.keyToValue.clear(), this.valueToKey.clear();
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
class
|
|
20
|
+
class $ {
|
|
21
21
|
constructor(t) {
|
|
22
22
|
this.generateIdentifier = t, this.kv = new Pe();
|
|
23
23
|
}
|
|
@@ -34,7 +34,7 @@ class q {
|
|
|
34
34
|
return this.kv.getByKey(t);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
class
|
|
37
|
+
class Ce extends $ {
|
|
38
38
|
constructor() {
|
|
39
39
|
super((t) => t.name), this.classToAllowedProps = /* @__PURE__ */ new Map();
|
|
40
40
|
}
|
|
@@ -45,7 +45,7 @@ class ke extends q {
|
|
|
45
45
|
return this.classToAllowedProps.get(t);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function ke(e) {
|
|
49
49
|
if ("values" in Object)
|
|
50
50
|
return Object.values(e);
|
|
51
51
|
const t = [];
|
|
@@ -54,7 +54,7 @@ function Ce(e) {
|
|
|
54
54
|
return t;
|
|
55
55
|
}
|
|
56
56
|
function Se(e, t) {
|
|
57
|
-
const r =
|
|
57
|
+
const r = ke(e);
|
|
58
58
|
if ("find" in r)
|
|
59
59
|
return r.find(t);
|
|
60
60
|
const s = r;
|
|
@@ -77,7 +77,7 @@ function B(e, t) {
|
|
|
77
77
|
return s;
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
class
|
|
80
|
+
class Te {
|
|
81
81
|
constructor() {
|
|
82
82
|
this.transfomers = {};
|
|
83
83
|
}
|
|
@@ -91,7 +91,7 @@ class Re {
|
|
|
91
91
|
return this.transfomers[t];
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
const
|
|
94
|
+
const Re = (e) => Object.prototype.toString.call(e).slice(8, -1), W = (e) => typeof e > "u", Ie = (e) => e === null, P = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, I = (e) => P(e) && Object.keys(e).length === 0, g = (e) => Array.isArray(e), Ae = (e) => typeof e == "string", Me = (e) => typeof e == "number" && !isNaN(e), Oe = (e) => typeof e == "boolean", De = (e) => e instanceof RegExp, C = (e) => e instanceof Map, k = (e) => e instanceof Set, K = (e) => Re(e) === "Symbol", Le = (e) => e instanceof Date && !isNaN(e.valueOf()), Y = (e) => e instanceof Error, U = (e) => typeof e == "number" && isNaN(e), Ne = (e) => Oe(e) || Ie(e) || W(e) || Me(e) || Ae(e) || K(e), xe = (e) => typeof e == "bigint", Ve = (e) => e === 1 / 0 || e === -1 / 0, Be = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), Ue = (e) => e instanceof URL, A = (e) => e.replace(/\\/g, "\\\\").replace(/\./g, "\\."), R = (e) => e.map(String).map(A).join("."), E = (e, t) => {
|
|
95
95
|
const r = [];
|
|
96
96
|
let s = "";
|
|
97
97
|
for (let i = 0; i < e.length; i++) {
|
|
@@ -149,19 +149,19 @@ const G = [
|
|
|
149
149
|
return new RegExp(t, r);
|
|
150
150
|
}),
|
|
151
151
|
y(
|
|
152
|
-
|
|
152
|
+
k,
|
|
153
153
|
"set",
|
|
154
154
|
// (sets only exist in es6+)
|
|
155
155
|
// eslint-disable-next-line es5/no-es6-methods
|
|
156
156
|
(e) => [...e.values()],
|
|
157
157
|
(e) => new Set(e)
|
|
158
158
|
),
|
|
159
|
-
y(
|
|
159
|
+
y(C, "map", (e) => [...e.entries()], (e) => new Map(e)),
|
|
160
160
|
y((e) => U(e) || Ve(e), "number", (e) => U(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
|
|
161
161
|
y((e) => e === 0 && 1 / e === -1 / 0, "number", () => "-0", Number),
|
|
162
162
|
y(Ue, "URL", (e) => e.toString(), (e) => new URL(e))
|
|
163
163
|
];
|
|
164
|
-
function
|
|
164
|
+
function T(e, t, r, s) {
|
|
165
165
|
return {
|
|
166
166
|
isApplicable: e,
|
|
167
167
|
annotation: t,
|
|
@@ -169,7 +169,7 @@ function R(e, t, r, s) {
|
|
|
169
169
|
untransform: s
|
|
170
170
|
};
|
|
171
171
|
}
|
|
172
|
-
const H =
|
|
172
|
+
const H = T((e, t) => K(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) => ["symbol", t.symbolRegistry.getIdentifier(e)], (e) => e.description, (e, t, r) => {
|
|
173
173
|
const s = r.symbolRegistry.getValue(t[1]);
|
|
174
174
|
if (!s)
|
|
175
175
|
throw new Error("Trying to deserialize unknown symbol");
|
|
@@ -184,7 +184,7 @@ const H = R((e, t) => K(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) =>
|
|
|
184
184
|
Float32Array,
|
|
185
185
|
Float64Array,
|
|
186
186
|
Uint8ClampedArray
|
|
187
|
-
].reduce((e, t) => (e[t.name] = t, e), {}), X =
|
|
187
|
+
].reduce((e, t) => (e[t.name] = t, e), {}), X = T(Be, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
|
|
188
188
|
const r = ze[t[1]];
|
|
189
189
|
if (!r)
|
|
190
190
|
throw new Error("Trying to deserialize unknown typed array");
|
|
@@ -193,7 +193,7 @@ const H = R((e, t) => K(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) =>
|
|
|
193
193
|
function Z(e, t) {
|
|
194
194
|
return e?.constructor ? !!t.classRegistry.getIdentifier(e.constructor) : !1;
|
|
195
195
|
}
|
|
196
|
-
const j =
|
|
196
|
+
const j = T(Z, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)], (e, t) => {
|
|
197
197
|
const r = t.classRegistry.getAllowedProps(e.constructor);
|
|
198
198
|
if (!r)
|
|
199
199
|
return { ...e };
|
|
@@ -206,13 +206,13 @@ const j = R(Z, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)]
|
|
|
206
206
|
if (!s)
|
|
207
207
|
throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);
|
|
208
208
|
return Object.assign(Object.create(s.prototype), e);
|
|
209
|
-
}), Q =
|
|
209
|
+
}), Q = T((e, t) => !!t.customTransformerRegistry.findApplicable(e), (e, t) => ["custom", t.customTransformerRegistry.findApplicable(e).name], (e, t) => t.customTransformerRegistry.findApplicable(e).serialize(e), (e, t, r) => {
|
|
210
210
|
const s = r.customTransformerRegistry.findByName(t[1]);
|
|
211
211
|
if (!s)
|
|
212
212
|
throw new Error("Trying to deserialize unknown custom value");
|
|
213
213
|
return s.deserialize(e);
|
|
214
|
-
}),
|
|
215
|
-
const r = B(
|
|
214
|
+
}), qe = [j, H, Q, X], z = (e, t) => {
|
|
215
|
+
const r = B(qe, (n) => n.isApplicable(e, t));
|
|
216
216
|
if (r)
|
|
217
217
|
return {
|
|
218
218
|
value: r.transform(e, t),
|
|
@@ -228,7 +228,7 @@ const j = R(Z, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)]
|
|
|
228
228
|
G.forEach((e) => {
|
|
229
229
|
J[e.annotation] = e;
|
|
230
230
|
});
|
|
231
|
-
const
|
|
231
|
+
const Fe = (e, t, r) => {
|
|
232
232
|
if (g(t))
|
|
233
233
|
switch (t[0]) {
|
|
234
234
|
case "symbol":
|
|
@@ -264,13 +264,13 @@ function ee(e) {
|
|
|
264
264
|
if (S(e, "constructor"))
|
|
265
265
|
throw new Error("constructor is not allowed as a property");
|
|
266
266
|
}
|
|
267
|
-
const
|
|
267
|
+
const $e = (e, t) => {
|
|
268
268
|
ee(t);
|
|
269
269
|
for (let r = 0; r < t.length; r++) {
|
|
270
270
|
const s = t[r];
|
|
271
|
-
if (
|
|
271
|
+
if (k(e))
|
|
272
272
|
e = b(e, +s);
|
|
273
|
-
else if (
|
|
273
|
+
else if (C(e)) {
|
|
274
274
|
const n = +s, i = +t[++r] == 0 ? "key" : "value", o = b(e, n);
|
|
275
275
|
switch (i) {
|
|
276
276
|
case "key":
|
|
@@ -295,10 +295,10 @@ const qe = (e, t) => {
|
|
|
295
295
|
s = s[a];
|
|
296
296
|
} else if (P(s))
|
|
297
297
|
s = s[o];
|
|
298
|
-
else if (
|
|
298
|
+
else if (k(s)) {
|
|
299
299
|
const a = +o;
|
|
300
300
|
s = b(s, a);
|
|
301
|
-
} else if (
|
|
301
|
+
} else if (C(s)) {
|
|
302
302
|
if (i === t.length - 2)
|
|
303
303
|
break;
|
|
304
304
|
const c = +o, f = +t[++i] == 0 ? "key" : "value", h = b(s, c);
|
|
@@ -313,11 +313,11 @@ const qe = (e, t) => {
|
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
315
|
const n = t[t.length - 1];
|
|
316
|
-
if (g(s) ? s[+n] = r(s[+n]) : P(s) && (s[n] = r(s[n])),
|
|
316
|
+
if (g(s) ? s[+n] = r(s[+n]) : P(s) && (s[n] = r(s[n])), k(s)) {
|
|
317
317
|
const i = b(s, +n), o = r(i);
|
|
318
318
|
i !== o && (s.delete(i), s.add(o));
|
|
319
319
|
}
|
|
320
|
-
if (
|
|
320
|
+
if (C(s)) {
|
|
321
321
|
const i = +t[t.length - 2], o = b(s, i);
|
|
322
322
|
switch (+n == 0 ? "key" : "value") {
|
|
323
323
|
case "key": {
|
|
@@ -354,13 +354,13 @@ function O(e, t, r, s = []) {
|
|
|
354
354
|
}
|
|
355
355
|
function We(e, t, r, s) {
|
|
356
356
|
return O(t, (n, i) => {
|
|
357
|
-
e = M(e, i, (o) =>
|
|
357
|
+
e = M(e, i, (o) => Fe(o, n, s));
|
|
358
358
|
}, r), e;
|
|
359
359
|
}
|
|
360
360
|
function Ke(e, t, r) {
|
|
361
361
|
const s = te(r);
|
|
362
362
|
function n(i, o) {
|
|
363
|
-
const a =
|
|
363
|
+
const a = $e(e, E(o, s));
|
|
364
364
|
i.map((c) => E(c, s)).forEach((c) => {
|
|
365
365
|
e = M(e, c, () => a);
|
|
366
366
|
});
|
|
@@ -374,7 +374,7 @@ function Ke(e, t, r) {
|
|
|
374
374
|
v(t, n);
|
|
375
375
|
return e;
|
|
376
376
|
}
|
|
377
|
-
const Ye = (e, t) => P(e) || g(e) ||
|
|
377
|
+
const Ye = (e, t) => P(e) || g(e) || C(e) || k(e) || Y(e) || Z(e, t);
|
|
378
378
|
function Ge(e, t, r) {
|
|
379
379
|
const s = r.get(e);
|
|
380
380
|
s ? s.push(t) : r.set(e, [t]);
|
|
@@ -387,7 +387,7 @@ function He(e, t) {
|
|
|
387
387
|
return;
|
|
388
388
|
t || (n = n.map((a) => a.map(String)).sort((a, c) => a.length - c.length));
|
|
389
389
|
const [i, ...o] = n;
|
|
390
|
-
i.length === 0 ? s = o.map(
|
|
390
|
+
i.length === 0 ? s = o.map(R) : r[R(i)] = o.map(R);
|
|
391
391
|
}), s ? I(r) ? [s] : [s, r] : I(r) ? void 0 : r;
|
|
392
392
|
}
|
|
393
393
|
const re = (e, t, r, s, n = [], i = [], o = /* @__PURE__ */ new Map()) => {
|
|
@@ -434,7 +434,7 @@ const re = (e, t, r, s, n = [], i = [], o = /* @__PURE__ */ new Map()) => {
|
|
|
434
434
|
function se(e) {
|
|
435
435
|
return Object.prototype.toString.call(e).slice(8, -1);
|
|
436
436
|
}
|
|
437
|
-
function
|
|
437
|
+
function q(e) {
|
|
438
438
|
return se(e) === "Array";
|
|
439
439
|
}
|
|
440
440
|
function Xe(e) {
|
|
@@ -453,13 +453,13 @@ function Ze(e, t, r, s, n) {
|
|
|
453
453
|
});
|
|
454
454
|
}
|
|
455
455
|
function D(e, t = {}) {
|
|
456
|
-
if (
|
|
456
|
+
if (q(e))
|
|
457
457
|
return e.map((n) => D(n, t));
|
|
458
458
|
if (!Xe(e))
|
|
459
459
|
return e;
|
|
460
460
|
const r = Object.getOwnPropertyNames(e), s = Object.getOwnPropertySymbols(e);
|
|
461
461
|
return [...r, ...s].reduce((n, i) => {
|
|
462
|
-
if (i === "__proto__" ||
|
|
462
|
+
if (i === "__proto__" || q(t.props) && !t.props.includes(i))
|
|
463
463
|
return n;
|
|
464
464
|
const o = e[i], a = D(o, t);
|
|
465
465
|
return Ze(n, i, a, e, t.nonenumerable), n;
|
|
@@ -470,7 +470,7 @@ class l {
|
|
|
470
470
|
* @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
|
|
471
471
|
*/
|
|
472
472
|
constructor({ dedupe: t = !1 } = {}) {
|
|
473
|
-
this.classRegistry = new
|
|
473
|
+
this.classRegistry = new Ce(), this.symbolRegistry = new $((r) => r.description ?? ""), this.customTransformerRegistry = new Te(), this.allowedErrorProps = [], this.dedupe = t;
|
|
474
474
|
}
|
|
475
475
|
serialize(t) {
|
|
476
476
|
const r = /* @__PURE__ */ new Map(), s = re(t, r, this, this.dedupe), n = {
|
|
@@ -785,6 +785,29 @@ class tt {
|
|
|
785
785
|
async getMe() {
|
|
786
786
|
return await this._trpcClient.auth.me.query();
|
|
787
787
|
}
|
|
788
|
+
// ── Self-service auth (the signed-in user acting on themselves) ─────
|
|
789
|
+
//
|
|
790
|
+
// The hand-written `auth.*` router exposes 5 procedures that operate
|
|
791
|
+
// on `ctx.user` (the JWT-bound identity), distinct from the admin
|
|
792
|
+
// `user-management` cap that operates on arbitrary userIds. They live
|
|
793
|
+
// on `System` rather than as codegen'd hooks because `auth.*` is a
|
|
794
|
+
// legacy core router, not a `.cap.ts` — see the no-restricted-imports
|
|
795
|
+
// rule in `eslint.config.mjs` for the canonical entry-point design.
|
|
796
|
+
async changeOwnPassword(t) {
|
|
797
|
+
return await this._trpcClient.auth.changeOwnPassword.mutate(t);
|
|
798
|
+
}
|
|
799
|
+
async setupOwnTotp() {
|
|
800
|
+
return await this._trpcClient.auth.setupOwnTotp.mutate();
|
|
801
|
+
}
|
|
802
|
+
async confirmOwnTotp(t) {
|
|
803
|
+
return await this._trpcClient.auth.confirmOwnTotp.mutate(t);
|
|
804
|
+
}
|
|
805
|
+
async disableOwnTotp() {
|
|
806
|
+
return await this._trpcClient.auth.disableOwnTotp.mutate();
|
|
807
|
+
}
|
|
808
|
+
async getOwnTotpStatus() {
|
|
809
|
+
return await this._trpcClient.auth.getOwnTotpStatus.query();
|
|
810
|
+
}
|
|
788
811
|
/** Update the auth token (e.g. after login or token refresh). */
|
|
789
812
|
setToken(t) {
|
|
790
813
|
this.token = t;
|
|
@@ -1311,7 +1334,7 @@ const ie = [
|
|
|
1311
1334
|
"plate"
|
|
1312
1335
|
/* Plate */
|
|
1313
1336
|
], at = [...L];
|
|
1314
|
-
function
|
|
1337
|
+
function Ct(e, t) {
|
|
1315
1338
|
switch (e) {
|
|
1316
1339
|
case "critical":
|
|
1317
1340
|
return ge;
|
|
@@ -1325,7 +1348,7 @@ function kt(e, t) {
|
|
|
1325
1348
|
return L;
|
|
1326
1349
|
}
|
|
1327
1350
|
}
|
|
1328
|
-
const
|
|
1351
|
+
const F = {
|
|
1329
1352
|
// Scrypted PascalCase
|
|
1330
1353
|
Light: "light",
|
|
1331
1354
|
Switch: "switch",
|
|
@@ -1355,7 +1378,7 @@ const $ = {
|
|
|
1355
1378
|
sensor: "sensor",
|
|
1356
1379
|
media_player: "media_player",
|
|
1357
1380
|
script: "script"
|
|
1358
|
-
},
|
|
1381
|
+
}, kt = {
|
|
1359
1382
|
light: "light",
|
|
1360
1383
|
switch: "switch",
|
|
1361
1384
|
input_boolean: "switch",
|
|
@@ -1400,11 +1423,11 @@ const $ = {
|
|
|
1400
1423
|
Fan: "fan",
|
|
1401
1424
|
Outlet: "switch"
|
|
1402
1425
|
};
|
|
1403
|
-
function
|
|
1404
|
-
const t =
|
|
1426
|
+
function Tt(e) {
|
|
1427
|
+
const t = F[e];
|
|
1405
1428
|
if (t) return t;
|
|
1406
1429
|
const r = e.toLowerCase();
|
|
1407
|
-
return
|
|
1430
|
+
return F[r] ?? null;
|
|
1408
1431
|
}
|
|
1409
1432
|
const lt = [
|
|
1410
1433
|
"Entry",
|
|
@@ -1418,7 +1441,7 @@ const lt = [
|
|
|
1418
1441
|
"Sensor",
|
|
1419
1442
|
"Select",
|
|
1420
1443
|
"Program"
|
|
1421
|
-
],
|
|
1444
|
+
], Rt = new Set(lt), ct = [
|
|
1422
1445
|
"light",
|
|
1423
1446
|
"switch",
|
|
1424
1447
|
"input_boolean",
|
|
@@ -1585,10 +1608,10 @@ export {
|
|
|
1585
1608
|
ct as ELIGIBLE_HA_DOMAINS,
|
|
1586
1609
|
It as ELIGIBLE_HA_DOMAINS_SET,
|
|
1587
1610
|
lt as ELIGIBLE_SCRYPTED_DEVICE_TYPES,
|
|
1588
|
-
|
|
1611
|
+
Rt as ELIGIBLE_SCRYPTED_DEVICE_TYPES_SET,
|
|
1589
1612
|
N as FEATURE_MATRIX,
|
|
1590
|
-
|
|
1591
|
-
|
|
1613
|
+
kt as HA_DOMAIN_TYPE_MAP,
|
|
1614
|
+
F as RAW_TO_CANONICAL,
|
|
1592
1615
|
St as SCRYPTED_TYPE_TO_CANONICAL,
|
|
1593
1616
|
tt as System,
|
|
1594
1617
|
at as TIMELINE_PRESET_ALL,
|
|
@@ -1603,8 +1626,8 @@ export {
|
|
|
1603
1626
|
he as doorbellClasses,
|
|
1604
1627
|
le as faceClasses,
|
|
1605
1628
|
Ot as getBackendRequiredFeatures,
|
|
1606
|
-
|
|
1607
|
-
|
|
1629
|
+
Tt as getCanonicalDeviceType,
|
|
1630
|
+
Ct as getClassesForTimelinePreset,
|
|
1608
1631
|
Lt as getNextEvalInterval,
|
|
1609
1632
|
Et as getParentClass,
|
|
1610
1633
|
Pt as getParentDetectionClass,
|