@sinequa/atomic 1.1.4 → 2.0.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/dist/atomic.js +643 -596
- package/dist/atomic.umd.cjs +1 -1
- package/dist/authentication/index.d.ts +1 -1
- package/dist/authentication/index.d.ts.map +1 -1
- package/dist/authentication/session/detect-auth-mode.d.ts +22 -0
- package/dist/authentication/session/detect-auth-mode.d.ts.map +1 -0
- package/dist/authentication/session/index.d.ts +1 -0
- package/dist/authentication/session/index.d.ts.map +1 -1
- package/dist/authentication/session/login.d.ts +15 -3
- package/dist/authentication/session/login.d.ts.map +1 -1
- package/dist/configurations/auth-mode.d.ts +60 -0
- package/dist/configurations/auth-mode.d.ts.map +1 -0
- package/dist/configurations/global.config.d.ts +14 -2
- package/dist/configurations/global.config.d.ts.map +1 -1
- package/dist/configurations/index.d.ts +2 -1
- package/dist/configurations/index.d.ts.map +1 -1
- package/dist/web-api/v1/fetch-app.d.ts +7 -1
- package/dist/web-api/v1/fetch-app.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/atomic.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function m(e) {
|
|
2
2
|
if (typeof CustomEvent > "u" || typeof dispatchEvent > "u")
|
|
3
3
|
return;
|
|
4
4
|
const t = new CustomEvent("authenticated", {
|
|
@@ -8,18 +8,64 @@ function w(e) {
|
|
|
8
8
|
});
|
|
9
9
|
dispatchEvent(t);
|
|
10
10
|
}
|
|
11
|
-
const
|
|
11
|
+
const g = {
|
|
12
|
+
credentials: () => ({ kind: "credentials" }),
|
|
13
|
+
sso: () => ({ kind: "sso" }),
|
|
14
|
+
oauth: (e) => ({ kind: "oauth", provider: e }),
|
|
15
|
+
saml: (e) => ({ kind: "saml", provider: e }),
|
|
16
|
+
bearer: (e) => ({ kind: "bearer", token: e }),
|
|
17
|
+
unknown: () => ({ kind: "unknown" })
|
|
18
|
+
};
|
|
19
|
+
function le(e, t) {
|
|
20
|
+
const { useCredentials: r, useSSO: n, useSAML: o } = e;
|
|
21
|
+
return o && t.autoSAMLProvider ? g.saml(t.autoSAMLProvider) : r && n ? g.unknown() : r ? g.credentials() : n ? g.sso() : t.authMode ?? g.unknown();
|
|
22
|
+
}
|
|
23
|
+
const l = {
|
|
12
24
|
loginPath: "/login",
|
|
13
|
-
createRoutes: !1
|
|
25
|
+
createRoutes: !1,
|
|
26
|
+
authMode: g.unknown()
|
|
14
27
|
};
|
|
15
|
-
|
|
16
|
-
|
|
28
|
+
Object.defineProperties(l, {
|
|
29
|
+
useCredentials: {
|
|
30
|
+
enumerable: !1,
|
|
31
|
+
configurable: !0,
|
|
32
|
+
get() {
|
|
33
|
+
const e = l.authMode?.kind;
|
|
34
|
+
return e === "credentials" || e === "unknown";
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
useSSO: {
|
|
38
|
+
enumerable: !1,
|
|
39
|
+
configurable: !0,
|
|
40
|
+
get() {
|
|
41
|
+
const e = l.authMode?.kind;
|
|
42
|
+
return e === "sso" || e === "unknown";
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
useSAML: {
|
|
46
|
+
enumerable: !1,
|
|
47
|
+
configurable: !0,
|
|
48
|
+
get() {
|
|
49
|
+
return l.authMode?.kind === "saml";
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
function S(e) {
|
|
54
|
+
const { useCredentials: t, useSSO: r, useSAML: n, authMode: o, ...a } = e;
|
|
55
|
+
if (Object.assign(l, a), o !== void 0) {
|
|
56
|
+
l.authMode = o;
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
(t !== void 0 || r !== void 0 || n !== void 0) && (l.authMode = le(
|
|
60
|
+
{ useCredentials: t, useSSO: r, useSAML: n },
|
|
61
|
+
l
|
|
62
|
+
));
|
|
17
63
|
}
|
|
18
|
-
const
|
|
19
|
-
function
|
|
64
|
+
const ue = /.*:\(?([><=\d\-.AND ]+)\)?/;
|
|
65
|
+
function mt(e, t) {
|
|
20
66
|
return !e?.items || e?.items?.length === 0 ? [] : e.items.reduce((o, a) => {
|
|
21
67
|
if (!a.value || a.value === "") return o;
|
|
22
|
-
const s =
|
|
68
|
+
const s = de(a, e.column);
|
|
23
69
|
return o.push({
|
|
24
70
|
operator: s.operator,
|
|
25
71
|
value: s.value,
|
|
@@ -30,12 +76,12 @@ function ut(e, t) {
|
|
|
30
76
|
}), o;
|
|
31
77
|
}, []);
|
|
32
78
|
}
|
|
33
|
-
function
|
|
34
|
-
const r = t, n = e.value.match(
|
|
79
|
+
function de(e, t) {
|
|
80
|
+
const r = t, n = e.value.match(ue);
|
|
35
81
|
if (n?.[1]) {
|
|
36
82
|
const a = (n?.[1].split(" AND ")).map((s) => {
|
|
37
|
-
const
|
|
38
|
-
return { field: r, operator:
|
|
83
|
+
const c = s.indexOf(">=") !== -1 ? "gte" : "lt", i = s.substring(s.indexOf(" ") + 1);
|
|
84
|
+
return { field: r, operator: c, value: i, display: e.display || e.value };
|
|
39
85
|
});
|
|
40
86
|
if (a.length === 2)
|
|
41
87
|
return {
|
|
@@ -56,25 +102,25 @@ function le(e, t) {
|
|
|
56
102
|
display: e.display
|
|
57
103
|
};
|
|
58
104
|
}
|
|
59
|
-
function
|
|
105
|
+
function wt(e, t, r) {
|
|
60
106
|
return e.valuesAreExpressions ? t.display === r.display : t.value === r.value;
|
|
61
107
|
}
|
|
62
|
-
function
|
|
63
|
-
return e.items && (e.items = e.items.map((t) =>
|
|
108
|
+
function fe(e) {
|
|
109
|
+
return e.items && (e.items = e.items.map((t) => fe(t))), e.items && e.items.some((t) => t.$selected || t.$opened) && (e.$opened = !0), e;
|
|
64
110
|
}
|
|
65
|
-
function
|
|
111
|
+
function _t(e, t) {
|
|
66
112
|
const r = [];
|
|
67
113
|
if (e.length > 0) {
|
|
68
114
|
const n = /* @__PURE__ */ new Map(), a = t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&").normalize("NFD").replace(/[\u0300-\u036f]/g, ""), s = new RegExp("\\b" + a, "i");
|
|
69
|
-
e.forEach((
|
|
70
|
-
if (
|
|
71
|
-
const
|
|
72
|
-
|
|
115
|
+
e.forEach((c) => {
|
|
116
|
+
if (c.display.length > 1) {
|
|
117
|
+
const i = c.display.normalize("NFD").replace(/[\u0300-\u036f]/g, ""), d = s.exec(i);
|
|
118
|
+
te(
|
|
73
119
|
r,
|
|
74
120
|
n,
|
|
75
121
|
"/",
|
|
76
|
-
|
|
77
|
-
+(
|
|
122
|
+
c.display,
|
|
123
|
+
+(c.frequency || 0),
|
|
78
124
|
1,
|
|
79
125
|
(d?.index || 0) + t.length
|
|
80
126
|
);
|
|
@@ -83,40 +129,40 @@ function ft(e, t) {
|
|
|
83
129
|
}
|
|
84
130
|
return r;
|
|
85
131
|
}
|
|
86
|
-
function
|
|
87
|
-
const
|
|
88
|
-
let d = t.get(
|
|
132
|
+
function te(e, t, r, n, o, a, s) {
|
|
133
|
+
const c = n.indexOf("/", r.length), i = n.substring(0, c + 1);
|
|
134
|
+
let d = t.get(i);
|
|
89
135
|
if (!d) {
|
|
90
|
-
const
|
|
136
|
+
const k = i.replace(/^\/|\/$/g, "");
|
|
91
137
|
d = {
|
|
92
|
-
value: n.substring(r.length,
|
|
138
|
+
value: n.substring(r.length, c),
|
|
93
139
|
count: o,
|
|
94
140
|
items: [],
|
|
95
141
|
hasChildren: !1,
|
|
96
142
|
$level: a,
|
|
97
|
-
$opened: s >=
|
|
98
|
-
$path:
|
|
99
|
-
}, t.set(
|
|
143
|
+
$opened: s >= i.length,
|
|
144
|
+
$path: k
|
|
145
|
+
}, t.set(i, d), e.push(d);
|
|
100
146
|
}
|
|
101
|
-
|
|
147
|
+
i.length < n.length && (d.hasChildren = !0, te(
|
|
102
148
|
d.items,
|
|
103
149
|
t,
|
|
104
|
-
|
|
150
|
+
i,
|
|
105
151
|
n,
|
|
106
152
|
o,
|
|
107
153
|
a + 1,
|
|
108
154
|
s
|
|
109
155
|
));
|
|
110
156
|
}
|
|
111
|
-
function
|
|
157
|
+
function kt(e, t) {
|
|
112
158
|
return e.reduce((r, n) => (t(n) ? r.true.push(n) : r.false.push(n), r), { true: [], false: [] });
|
|
113
159
|
}
|
|
114
|
-
const
|
|
115
|
-
function
|
|
160
|
+
const he = /(([\+\-])?\(([^\)]+)\))|(([\+\-])?\[([^\]]+)\])|(([\+\-])?\"([^\"]+)\")|(([\+\-])?\/([^\/]+)\/)|(([\+\-])?(\S+))/g, ge = 2, X = 3, pe = 5, Y = 6, me = 8, K = 9, we = 11, Z = 12, _e = 14, E = 15;
|
|
161
|
+
function N(e) {
|
|
116
162
|
if (!e) return [];
|
|
117
|
-
const t = [], r = e.matchAll(
|
|
163
|
+
const t = [], r = e.matchAll(he);
|
|
118
164
|
for (let n of r)
|
|
119
|
-
n[
|
|
165
|
+
n[X] ? t.push({ type: "group", value: n[X], op: n[ge] }) : n[Y] ? t.push({ type: "adjacent", value: n[Y], op: n[pe] }) : n[K] ? t.push({ type: "exact", value: n[K], op: n[me] }) : n[Z] ? t.push({ type: "regex", value: n[Z], op: n[we] }) : n[E] && t.push({ type: "token", value: n[E], op: n[_e] });
|
|
120
166
|
return t;
|
|
121
167
|
}
|
|
122
168
|
function G(e) {
|
|
@@ -136,28 +182,28 @@ function G(e) {
|
|
|
136
182
|
}
|
|
137
183
|
}).join(" ");
|
|
138
184
|
}
|
|
139
|
-
function
|
|
140
|
-
let n =
|
|
185
|
+
function St(e, t, r) {
|
|
186
|
+
let n = N(e);
|
|
141
187
|
for (let o of t)
|
|
142
188
|
n.push({ type: "adjacent", value: o, op: r });
|
|
143
189
|
return G(n);
|
|
144
190
|
}
|
|
145
|
-
function
|
|
146
|
-
const r =
|
|
191
|
+
function bt(e, t) {
|
|
192
|
+
const r = N(t), n = r.findIndex((o) => o.value === e);
|
|
147
193
|
return n !== -1 ? (r.splice(n, 1), t = G(r)) : t;
|
|
148
194
|
}
|
|
149
|
-
function
|
|
150
|
-
const t =
|
|
195
|
+
function vt(e) {
|
|
196
|
+
const t = N(e).filter((r) => r.type !== "adjacent");
|
|
151
197
|
return G(t);
|
|
152
198
|
}
|
|
153
|
-
function
|
|
154
|
-
return
|
|
199
|
+
function Ct(e) {
|
|
200
|
+
return N(e).filter((t) => t.type === "adjacent").map((t) => t.value);
|
|
155
201
|
}
|
|
156
|
-
function
|
|
157
|
-
const n = new Intl.RelativeTimeFormat(e, { numeric: "auto" }), { offset: o, unit: a, isFuture: s } =
|
|
202
|
+
function Rt(e, t, r) {
|
|
203
|
+
const n = new Intl.RelativeTimeFormat(e, { numeric: "auto" }), { offset: o, unit: a, isFuture: s } = ke(t, r);
|
|
158
204
|
return n.format(o * (s ? 1 : -1), a);
|
|
159
205
|
}
|
|
160
|
-
function
|
|
206
|
+
function ke(e, t) {
|
|
161
207
|
const r = new Date(e), n = t ? new Date(t) : /* @__PURE__ */ new Date(), o = Math.abs(n.getTime() - r.getTime());
|
|
162
208
|
return {
|
|
163
209
|
offset: Math.floor(o / (1e3 * 60 * 60 * 24)),
|
|
@@ -165,37 +211,37 @@ function we(e, t) {
|
|
|
165
211
|
isFuture: r > n
|
|
166
212
|
};
|
|
167
213
|
}
|
|
168
|
-
function
|
|
214
|
+
function Pt(e) {
|
|
169
215
|
const t = e.target;
|
|
170
216
|
return t && t.nodeName !== "INPUT" && t.nodeName !== "TEXTAREA";
|
|
171
217
|
}
|
|
172
|
-
function
|
|
218
|
+
function yt(e) {
|
|
173
219
|
if (e === void 0) return;
|
|
174
|
-
const { q: t, f: r, p: n, s: o, t: a, n: s, b:
|
|
220
|
+
const { q: t, f: r, p: n, s: o, t: a, n: s, b: c } = x(e), [i] = e.split("?");
|
|
175
221
|
return {
|
|
176
|
-
path:
|
|
222
|
+
path: i,
|
|
177
223
|
text: t,
|
|
178
|
-
filters: r ?
|
|
224
|
+
filters: r ? re(r) : void 0,
|
|
179
225
|
page: n ? parseInt(n, 10) : void 0,
|
|
180
226
|
sort: o,
|
|
181
227
|
tab: a,
|
|
182
228
|
name: s,
|
|
183
|
-
basket:
|
|
229
|
+
basket: c
|
|
184
230
|
};
|
|
185
231
|
}
|
|
186
|
-
function
|
|
232
|
+
function xt(e) {
|
|
187
233
|
if (!e) return "";
|
|
188
|
-
const { text: t, filters: r, page: n, sort: o, tab: a, name: s, basket:
|
|
189
|
-
t && (
|
|
190
|
-
const d = new URLSearchParams(
|
|
234
|
+
const { text: t, filters: r, page: n, sort: o, tab: a, name: s, basket: c } = e, i = {};
|
|
235
|
+
t && (i.q = t), r && (i.f = JSON.stringify(r)), n && (i.p = n.toString()), o && (i.s = o), a && (i.t = a), s && (i.n = s), c && (i.b = c);
|
|
236
|
+
const d = new URLSearchParams(i).toString();
|
|
191
237
|
return d || "";
|
|
192
238
|
}
|
|
193
|
-
function
|
|
239
|
+
function Lt(e) {
|
|
194
240
|
if (e === void 0) return [];
|
|
195
|
-
const { f: t } =
|
|
196
|
-
return
|
|
241
|
+
const { f: t } = x(e);
|
|
242
|
+
return re(t);
|
|
197
243
|
}
|
|
198
|
-
function
|
|
244
|
+
function re(e) {
|
|
199
245
|
const t = decodeURIComponent(e);
|
|
200
246
|
try {
|
|
201
247
|
return JSON.parse(t ?? "[]");
|
|
@@ -203,29 +249,29 @@ function te(e) {
|
|
|
203
249
|
return console.error(`Error parsing filters from URI: ${e}`), [];
|
|
204
250
|
}
|
|
205
251
|
}
|
|
206
|
-
function
|
|
252
|
+
function x(e) {
|
|
207
253
|
const t = e.split("?")[1];
|
|
208
254
|
if (t === void 0) return {};
|
|
209
255
|
const r = new URLSearchParams(t);
|
|
210
256
|
return Object.fromEntries(r);
|
|
211
257
|
}
|
|
212
|
-
function
|
|
213
|
-
const { q: t = "" } =
|
|
258
|
+
function $t(e) {
|
|
259
|
+
const { q: t = "" } = x(e);
|
|
214
260
|
return t;
|
|
215
261
|
}
|
|
216
|
-
function
|
|
217
|
-
const { id: t } =
|
|
262
|
+
function Ut(e) {
|
|
263
|
+
const { id: t } = x(e);
|
|
218
264
|
return decodeURIComponent(t);
|
|
219
265
|
}
|
|
220
|
-
function
|
|
221
|
-
const { p: t = "0" } =
|
|
266
|
+
function Ot(e) {
|
|
267
|
+
const { p: t = "0" } = x(e);
|
|
222
268
|
return parseInt(t, 10);
|
|
223
269
|
}
|
|
224
|
-
function
|
|
225
|
-
const { t } =
|
|
270
|
+
function Dt(e) {
|
|
271
|
+
const { t } = x(e);
|
|
226
272
|
return t;
|
|
227
273
|
}
|
|
228
|
-
function
|
|
274
|
+
function It(e, t) {
|
|
229
275
|
if (!e)
|
|
230
276
|
return e;
|
|
231
277
|
let r = 0;
|
|
@@ -236,21 +282,21 @@ function xt(e, t) {
|
|
|
236
282
|
o++;
|
|
237
283
|
e[o] === "]" && (r = o + 1);
|
|
238
284
|
}
|
|
239
|
-
const a =
|
|
285
|
+
const a = B(e, r, !1);
|
|
240
286
|
if (!a)
|
|
241
287
|
return e;
|
|
242
|
-
const s = t.charCodeAt(0),
|
|
243
|
-
let
|
|
244
|
-
for (;
|
|
245
|
-
if (s ===
|
|
246
|
-
const
|
|
247
|
-
return e.substring(
|
|
288
|
+
const s = t.charCodeAt(0), c = t.charCodeAt(1);
|
|
289
|
+
let i = a;
|
|
290
|
+
for (; i; )
|
|
291
|
+
if (s === i.lang1 && c === i.lang2) {
|
|
292
|
+
const k = B(e, i.end + 4, !0);
|
|
293
|
+
return e.substring(k.start, k.end);
|
|
248
294
|
} else
|
|
249
|
-
|
|
295
|
+
i = B(e, i.end + 4, !1);
|
|
250
296
|
const d = e.substring(a.start, a.end);
|
|
251
297
|
return d || e;
|
|
252
298
|
}
|
|
253
|
-
function
|
|
299
|
+
function B(e, t, r) {
|
|
254
300
|
for (let n = t, o = e.length - 3; n < o; n++)
|
|
255
301
|
if (e[n] === "[" && e[n + 3] === "]")
|
|
256
302
|
return {
|
|
@@ -267,11 +313,11 @@ function F(e, t, r) {
|
|
|
267
313
|
lang2: -1
|
|
268
314
|
};
|
|
269
315
|
}
|
|
270
|
-
function
|
|
271
|
-
const { useLocale: r, useLocaleAsPrefix: n, indexFile: o, path: a, folder: s } = t,
|
|
272
|
-
return [a, s, `${
|
|
316
|
+
function At(e, t) {
|
|
317
|
+
const { useLocale: r, useLocaleAsPrefix: n, indexFile: o, path: a, folder: s } = t, c = r ? `${e}/` : null, i = n ? `${e}.${o}` : o ?? "";
|
|
318
|
+
return [a, s, `${c || ""}${i}`].filter((d) => d !== void 0).join("/");
|
|
273
319
|
}
|
|
274
|
-
function
|
|
320
|
+
function O(e) {
|
|
275
321
|
const t = new CustomEvent("notification", {
|
|
276
322
|
bubbles: !0,
|
|
277
323
|
cancelable: !1,
|
|
@@ -279,48 +325,48 @@ function $(e) {
|
|
|
279
325
|
});
|
|
280
326
|
dispatchEvent(t);
|
|
281
327
|
}
|
|
282
|
-
const
|
|
328
|
+
const Nt = {
|
|
283
329
|
success: (e, t) => {
|
|
284
|
-
|
|
330
|
+
O({
|
|
285
331
|
type: "success",
|
|
286
332
|
message: e,
|
|
287
333
|
options: t
|
|
288
334
|
});
|
|
289
335
|
},
|
|
290
336
|
info: (e, t) => {
|
|
291
|
-
|
|
337
|
+
O({
|
|
292
338
|
type: "info",
|
|
293
339
|
message: e,
|
|
294
340
|
options: t
|
|
295
341
|
});
|
|
296
342
|
},
|
|
297
343
|
warning: (e, t) => {
|
|
298
|
-
|
|
344
|
+
O({
|
|
299
345
|
type: "warning",
|
|
300
346
|
message: e,
|
|
301
347
|
options: t
|
|
302
348
|
});
|
|
303
349
|
},
|
|
304
350
|
error: (e, t) => {
|
|
305
|
-
|
|
351
|
+
O({
|
|
306
352
|
type: "error",
|
|
307
353
|
message: e,
|
|
308
354
|
options: t
|
|
309
355
|
});
|
|
310
356
|
}
|
|
311
357
|
};
|
|
312
|
-
var
|
|
313
|
-
let
|
|
358
|
+
var ne = /* @__PURE__ */ ((e) => (e[e.DEBUG = 0] = "DEBUG", e[e.INFO = 1] = "INFO", e[e.WARN = 2] = "WARN", e[e.ERROR = 3] = "ERROR", e[e.NONE = 4] = "NONE", e))(ne || {});
|
|
359
|
+
let D = {
|
|
314
360
|
level: 1,
|
|
315
361
|
enableConsoleOutput: !0
|
|
316
362
|
};
|
|
317
|
-
function
|
|
318
|
-
|
|
363
|
+
function qt(e) {
|
|
364
|
+
D = { ...D, ...e };
|
|
319
365
|
}
|
|
320
|
-
function
|
|
321
|
-
if (e <
|
|
322
|
-
const o = `${`[${
|
|
323
|
-
if (
|
|
366
|
+
function q(e, t, r) {
|
|
367
|
+
if (e < D.level) return;
|
|
368
|
+
const o = `${`[${ne[e]}]`} ${t}`;
|
|
369
|
+
if (D.enableConsoleOutput)
|
|
324
370
|
switch (e) {
|
|
325
371
|
case 0:
|
|
326
372
|
console.debug(o, r || "");
|
|
@@ -336,22 +382,22 @@ function N(e, t, r) {
|
|
|
336
382
|
break;
|
|
337
383
|
}
|
|
338
384
|
}
|
|
339
|
-
function
|
|
340
|
-
|
|
385
|
+
function L(e, t) {
|
|
386
|
+
q(0, e, t);
|
|
341
387
|
}
|
|
342
|
-
function
|
|
343
|
-
|
|
388
|
+
function y(e, t) {
|
|
389
|
+
q(1, e, t);
|
|
344
390
|
}
|
|
345
|
-
function
|
|
346
|
-
|
|
391
|
+
function I(e, t) {
|
|
392
|
+
q(2, e, t);
|
|
347
393
|
}
|
|
348
394
|
function f(e, t) {
|
|
349
|
-
|
|
395
|
+
q(3, e, t);
|
|
350
396
|
}
|
|
351
|
-
function
|
|
397
|
+
function $(e) {
|
|
352
398
|
const t = W(), r = new Headers(e);
|
|
353
399
|
r.append("Sinequa-Force-Camel-Case", "true"), r.append("accept", "application/json"), t && r.append("Sinequa-csrf-token", t);
|
|
354
|
-
const { userOverride: n, userOverrideActive: o, bearerToken: a } =
|
|
400
|
+
const { userOverride: n, userOverrideActive: o, bearerToken: a } = l;
|
|
355
401
|
return a && r.append("Authorization", `Bearer ${a}`), n && o && (r.append("sinequa-override-user", n.username), r.append("sinequa-override-domain", n.domain)), r;
|
|
356
402
|
}
|
|
357
403
|
class R extends Error {
|
|
@@ -360,12 +406,12 @@ class R extends Error {
|
|
|
360
406
|
super(t), this.name = "ApiError", this.status = r;
|
|
361
407
|
}
|
|
362
408
|
}
|
|
363
|
-
class
|
|
409
|
+
class T extends R {
|
|
364
410
|
constructor(t = "Server error") {
|
|
365
411
|
super(t, 500), this.name = "ServerError";
|
|
366
412
|
}
|
|
367
413
|
}
|
|
368
|
-
class
|
|
414
|
+
class Se extends R {
|
|
369
415
|
constructor(t = "Request timed out") {
|
|
370
416
|
super(t, 408), this.name = "TimeoutError";
|
|
371
417
|
}
|
|
@@ -377,7 +423,7 @@ class V extends R {
|
|
|
377
423
|
}
|
|
378
424
|
async function P(e, t = "json") {
|
|
379
425
|
const r = e.headers.get("sinequa-jwt-refresh");
|
|
380
|
-
if (r !== null &&
|
|
426
|
+
if (r !== null && A(r), e.status === 200)
|
|
381
427
|
switch (t) {
|
|
382
428
|
case "arraybuffer":
|
|
383
429
|
return await e.arrayBuffer();
|
|
@@ -389,33 +435,33 @@ async function P(e, t = "json") {
|
|
|
389
435
|
return await e.json();
|
|
390
436
|
}
|
|
391
437
|
if (e.status === 401) {
|
|
392
|
-
if (
|
|
438
|
+
if (l.userOverrideActive) {
|
|
393
439
|
let n = {};
|
|
394
440
|
try {
|
|
395
441
|
n = await e.clone().json();
|
|
396
442
|
} catch {
|
|
397
443
|
}
|
|
398
|
-
throw
|
|
444
|
+
throw I("Unauthorized access attempt with user override", {
|
|
399
445
|
endpoint: e.url,
|
|
400
446
|
error: n
|
|
401
447
|
}), new V(
|
|
402
448
|
n.errorMessage ?? n.message ?? "Unauthorized... User override failed."
|
|
403
449
|
);
|
|
404
450
|
}
|
|
405
|
-
return await
|
|
451
|
+
return await M(e, 401);
|
|
406
452
|
}
|
|
407
|
-
return e.status === 500 ? (f("Server error occurred", { endpoint: e.url }), await
|
|
453
|
+
return e.status === 500 ? (f("Server error occurred", { endpoint: e.url }), await M(e, 500)) : (I(`Unexpected response status: ${e.status}`, {
|
|
408
454
|
endpoint: e.url
|
|
409
|
-
}), await
|
|
455
|
+
}), await M(e, e.status));
|
|
410
456
|
}
|
|
411
|
-
async function
|
|
457
|
+
async function M(e, t) {
|
|
412
458
|
try {
|
|
413
459
|
const { done: r, value: n } = await e.body?.getReader().read() || {
|
|
414
460
|
done: !0,
|
|
415
461
|
value: void 0
|
|
416
462
|
};
|
|
417
463
|
if (r || !n)
|
|
418
|
-
throw t === 401 ? new V() : t === 500 ? new
|
|
464
|
+
throw t === 401 ? new V() : t === 500 ? new T() : new R(`Request failed with status ${t}`, t);
|
|
419
465
|
const o = JSON.parse(new TextDecoder().decode(n));
|
|
420
466
|
throw new Error(
|
|
421
467
|
o.errorMessage || o.message || `Request failed with status ${t}`,
|
|
@@ -427,68 +473,68 @@ async function B(e, t) {
|
|
|
427
473
|
}
|
|
428
474
|
);
|
|
429
475
|
} catch (r) {
|
|
430
|
-
throw r instanceof R ? r : t === 401 ? new V(r.message) : t === 500 ? new
|
|
476
|
+
throw r instanceof R ? r : t === 401 ? new V(r.message) : t === 500 ? new T(r.message) : new R(
|
|
431
477
|
r.message ?? `Request failed with status ${t}`,
|
|
432
478
|
t
|
|
433
479
|
);
|
|
434
480
|
}
|
|
435
481
|
}
|
|
436
|
-
async function
|
|
437
|
-
const n =
|
|
438
|
-
|
|
482
|
+
async function be(e, t, r) {
|
|
483
|
+
const n = $(r?.headers), { backendUrl: o } = l, a = t ? `?${new URLSearchParams(t)}` : "", s = o ? `${o}/${e}${a}` : `${e}${a}`;
|
|
484
|
+
L(`Making DELETE request to: ${s}`);
|
|
439
485
|
try {
|
|
440
|
-
const
|
|
486
|
+
const c = await fetch(s, {
|
|
441
487
|
method: "DELETE",
|
|
442
488
|
credentials: "include",
|
|
443
489
|
headers: n
|
|
444
490
|
});
|
|
445
|
-
return P(
|
|
446
|
-
} catch (
|
|
447
|
-
throw f("Error making DELETE request:",
|
|
491
|
+
return P(c, r?.responseType);
|
|
492
|
+
} catch (c) {
|
|
493
|
+
throw f("Error making DELETE request:", c), c;
|
|
448
494
|
}
|
|
449
495
|
}
|
|
450
|
-
async function
|
|
451
|
-
const n =
|
|
496
|
+
async function _(e, t, r) {
|
|
497
|
+
const n = $(r?.headers), { backendUrl: o } = l, a = t ? `?${new URLSearchParams(t)}` : "";
|
|
452
498
|
e.startsWith("plugin") && (e = `api/v1/${e}`);
|
|
453
499
|
const s = o ? `${o}/${e}${a}` : `${e}${a}`;
|
|
454
|
-
|
|
500
|
+
L(`Making GET request to: ${s}`);
|
|
455
501
|
try {
|
|
456
|
-
const
|
|
502
|
+
const c = await fetch(s, {
|
|
457
503
|
method: "GET",
|
|
458
504
|
credentials: "include",
|
|
459
505
|
headers: n,
|
|
460
506
|
signal: r?.signal
|
|
461
507
|
});
|
|
462
|
-
return P(
|
|
463
|
-
} catch (
|
|
464
|
-
throw f("Error making GET request:",
|
|
508
|
+
return P(c, r?.responseType);
|
|
509
|
+
} catch (c) {
|
|
510
|
+
throw f("Error making GET request:", c), c;
|
|
465
511
|
}
|
|
466
512
|
}
|
|
467
|
-
async function
|
|
468
|
-
const n =
|
|
513
|
+
async function ve(e, t, r) {
|
|
514
|
+
const n = $(r?.headers);
|
|
469
515
|
n.append("content-type", "application/json");
|
|
470
|
-
const { app: o, backendUrl: a } =
|
|
516
|
+
const { app: o, backendUrl: a } = l, s = {
|
|
471
517
|
app: o,
|
|
472
518
|
...t,
|
|
473
519
|
locale: t.locale || navigator.language,
|
|
474
520
|
noUserOverride: !0,
|
|
475
521
|
noAutoAuthentication: !0
|
|
476
|
-
},
|
|
477
|
-
|
|
522
|
+
}, c = a ? `${a}/${e}` : `${e}`;
|
|
523
|
+
L(`Making PATCH request to: ${c}`);
|
|
478
524
|
try {
|
|
479
|
-
const
|
|
525
|
+
const i = await fetch(c, {
|
|
480
526
|
method: "PATCH",
|
|
481
527
|
headers: n,
|
|
482
528
|
credentials: "include",
|
|
483
529
|
body: JSON.stringify(s)
|
|
484
530
|
});
|
|
485
|
-
return P(
|
|
486
|
-
} catch (
|
|
487
|
-
throw f("Error making PATCH request:",
|
|
531
|
+
return P(i, r?.responseType);
|
|
532
|
+
} catch (i) {
|
|
533
|
+
throw f("Error making PATCH request:", i), i;
|
|
488
534
|
}
|
|
489
535
|
}
|
|
490
|
-
async function
|
|
491
|
-
const n =
|
|
536
|
+
async function u(e, t, r) {
|
|
537
|
+
const n = $(r?.headers), { app: o, backendUrl: a } = l;
|
|
492
538
|
n.has("Content-Type") || n.set("Content-Type", "application/json");
|
|
493
539
|
const s = {
|
|
494
540
|
app: o,
|
|
@@ -498,64 +544,64 @@ async function l(e, t, r) {
|
|
|
498
544
|
noAutoAuthentication: !0
|
|
499
545
|
};
|
|
500
546
|
e.startsWith("plugin") && (e = `api/v1/${e}`);
|
|
501
|
-
const
|
|
502
|
-
|
|
547
|
+
const c = a ? `${a}/${e}` : `${e}`;
|
|
548
|
+
L(`Making POST request to: ${c}`);
|
|
503
549
|
try {
|
|
504
|
-
const
|
|
550
|
+
const i = await fetch(c, {
|
|
505
551
|
method: "POST",
|
|
506
552
|
headers: n,
|
|
507
553
|
credentials: "include",
|
|
508
554
|
body: JSON.stringify(s),
|
|
509
555
|
signal: r?.signal
|
|
510
556
|
});
|
|
511
|
-
return P(
|
|
512
|
-
} catch (
|
|
513
|
-
throw f("Error making POST request:",
|
|
557
|
+
return P(i, r?.responseType);
|
|
558
|
+
} catch (i) {
|
|
559
|
+
throw f("Error making POST request:", i), i;
|
|
514
560
|
}
|
|
515
561
|
}
|
|
516
|
-
async function
|
|
517
|
-
const n =
|
|
562
|
+
async function Ft(e, t, r) {
|
|
563
|
+
const n = $(r?.headers), { app: o, backendUrl: a } = l, s = {
|
|
518
564
|
app: o,
|
|
519
565
|
...t,
|
|
520
566
|
locale: t.locale || navigator.language,
|
|
521
567
|
noUserOverride: !0,
|
|
522
568
|
noAutoAuthentication: !0
|
|
523
|
-
},
|
|
524
|
-
|
|
569
|
+
}, c = `${a}/${e}`;
|
|
570
|
+
L(`Making PUT request to: ${c}`);
|
|
525
571
|
try {
|
|
526
|
-
const
|
|
572
|
+
const i = await fetch(c, {
|
|
527
573
|
method: "PUT",
|
|
528
574
|
headers: n,
|
|
529
575
|
credentials: "include",
|
|
530
576
|
body: JSON.stringify(s)
|
|
531
577
|
});
|
|
532
|
-
return P(
|
|
533
|
-
} catch (
|
|
534
|
-
throw f("Error making PUT request:",
|
|
578
|
+
return P(i, r?.responseType);
|
|
579
|
+
} catch (i) {
|
|
580
|
+
throw f("Error making PUT request:", i), i;
|
|
535
581
|
}
|
|
536
582
|
}
|
|
537
583
|
function b(e) {
|
|
538
584
|
const t = new AbortController(), { signal: r } = t;
|
|
539
585
|
return e && setTimeout(() => {
|
|
540
|
-
r.aborted || t.abort(new
|
|
586
|
+
r.aborted || t.abort(new Se(`Request timed out after ${e}ms`));
|
|
541
587
|
}, e), { controller: t, signal: r };
|
|
542
588
|
}
|
|
543
|
-
function
|
|
589
|
+
function oe(e) {
|
|
544
590
|
if (!e) return;
|
|
545
591
|
const t = new Date(e);
|
|
546
592
|
return Number.isNaN(t.getTime()) ? void 0 : t;
|
|
547
593
|
}
|
|
548
|
-
function
|
|
549
|
-
const t =
|
|
594
|
+
function Bt(e) {
|
|
595
|
+
const t = oe(e);
|
|
550
596
|
return !!t && t.getTime() <= Date.now();
|
|
551
597
|
}
|
|
552
|
-
function
|
|
553
|
-
const r =
|
|
598
|
+
function Mt(e, t = 7) {
|
|
599
|
+
const r = oe(e);
|
|
554
600
|
if (!r) return !1;
|
|
555
601
|
const n = Date.now(), o = n + t * 24 * 60 * 60 * 1e3, a = r.getTime();
|
|
556
602
|
return a > n && a <= o;
|
|
557
603
|
}
|
|
558
|
-
async function
|
|
604
|
+
async function jt(e, t = 0, r = 1e3) {
|
|
559
605
|
let n;
|
|
560
606
|
for (let o = 0; o <= t; o++)
|
|
561
607
|
try {
|
|
@@ -563,26 +609,26 @@ async function At(e, t = 0, r = 1e3) {
|
|
|
563
609
|
} catch (a) {
|
|
564
610
|
if (n = a, a instanceof R && a.status >= 400 && a.status < 500 && a.status !== 429 || a instanceof DOMException && a.name === "AbortError")
|
|
565
611
|
throw a;
|
|
566
|
-
o < t && (
|
|
612
|
+
o < t && (I(`Retrying request (${o + 1}/${t})`, { error: a }), await new Promise((s) => setTimeout(s, r)));
|
|
567
613
|
}
|
|
568
614
|
throw n;
|
|
569
615
|
}
|
|
570
|
-
function
|
|
616
|
+
function Qt(e, t, r) {
|
|
571
617
|
if (!e || !t) return;
|
|
572
618
|
if (r) {
|
|
573
|
-
const a = Object.keys(t.queries).find((
|
|
619
|
+
const a = Object.keys(t.queries).find((i) => i === r?.toLowerCase());
|
|
574
620
|
let s;
|
|
575
621
|
a && (s = t.queries[a]);
|
|
576
|
-
const
|
|
577
|
-
if (
|
|
622
|
+
const c = (s?.columnsInfo?.columns || [])?.find((i) => i.aliases?.split(",")?.includes(e));
|
|
623
|
+
if (c) return c.name;
|
|
578
624
|
}
|
|
579
625
|
const n = t.indexes?._?.columns, o = Object.entries(n).find((a) => a[1].aliases?.includes(e));
|
|
580
626
|
if (o) return o[0];
|
|
581
627
|
}
|
|
582
|
-
var C = /* @__PURE__ */ ((e) => (e.None = "None", e.Search_FirstPage = "Search_FirstPage", e.Search_Text = "Search_Text", e.Search_Refine = "Search_Refine", e.Search_Select_Item = "Search_Select_Item", e.Search_Select_Custom = "Search_Select_Custom", e.Search_Select_Concept = "Search_Select_Concept", e.Search_Select_Correction = "Search_Select_Correction", e.Search_GotoPage = "Search_GotoPage", e.Search_GotoTab = "Search_GotoTab", e.Search_DisplayResult = "Search_DisplayResult", e.Search_RemoveResult = "Search_RemoveResult", e.Search_RemoveAdvanced = "Search_RemoveAdvanced", e.Search_SavedQuery = "Search_SavedQuery", e.Search_WebService = "Search_WebService", e.Search_DidYouMean_Original = "Search_DidYouMean_Original", e.Search_DidYouMean_Correction = "Search_DidYouMean_Correction", e.Search_ExportCSV = "Search_ExportCSV", e.Search_SavedQuery_ExportCSV = "Search_SavedQuery_ExportCSV", e.Search_Selection_ExportCSV = "Search_Selection_ExportCSV", e.Search_AlertQuery = "Search_AlertQuery", e.Search_Select_AnalyticsItem = "Search_Select_AnalyticsItem", e.Search_Sort = "Search_Sort", e.Search_Exit_Logout = "Search_Exit_Logout", e.Search_Timeline_Usage = "Search_Timeline_Usage", e.Search_AutoComplete = "Search_Autocomplete", e.Search_Login_Success = "Login_Success_Form", e.Search_QueryIntent_Detected = "Search_QueryIntent_Detected", e.SavedQuery_Add = "SavedQuery_Add", e.SavedQuery_Delete = "SavedQuery_Delete", e.SavedQuery_DeleteAll = "SavedQuery_DeleteAll", e.SavedQuery_Rename = "SavedQuery_Rename", e.Alert_Edit = "Alert_Edit", e.Alert_Delete = "Alert_Delete", e.Alert_DeleteAll = "Alert_DeleteAll", e.Link_Display = "Link_Display", e.Link_Click = "Link_Click", e.Basket_Add = "Basket_Add", e.Basket_Delete = "Basket_Delete", e.Basket_DeleteAll = "Basket_DeleteAll", e.Basket_Rename = "Basket_Rename", e.Basket_AddDoc = "Basket_AddDoc", e.Basket_RemoveDoc = "Basket_RemoveDoc", e.Basket_Open = "Basket_Open", e.Basket_ExportCSV = "Basket_ExportCSV", e.Label_Add = "Label_Add", e.Label_Delete = "Label_Delete", e.Label_Rename = "Label_Rename", e.Label_Open = "Label_Open", e.Label_AddDoc = "Label_AddDoc", e.Label_RemoveDoc = "Label_RemoveDoc", e.Label_ExportCSV = "Label_ExportCSV", e.Label_Menu_ExportCSV = "Label_Menu_ExportCSV", e.Rating_Set = "Rating_Set", e.Rating_Delete = "Rating_Delete", e.Doc_Preview = "Doc_Preview", e.Doc_CacheHtml = "Doc_CacheHtml", e.Doc_CachePdf = "Doc_CachePdf", e.Doc_CacheOriginal = "Doc_CacheOriginal", e.Doc_Url1 = "Doc_Url1", e.Doc_Url2 = "Doc_Url2", e.Preview_Close = "Preview_Close", e.Click_ResultLink = "Click_ResultLink", e.Click_ResultLink1 = "Click_ResultLink1", e.Click_ResultLink2 = "Click_ResultLink2", e.Click_ResultLink3 = "Click_ResultLink3", e.Click_ResultLink4 = "Click_ResultLink4", e.Click_ResultLink5 = "Click_ResultLink5", e.Click_ResultLink6 = "Click_ResultLink6", e.Click_ResultLink7 = "Click_ResultLink7", e.Click_ResultLink8 = "Click_ResultLink8", e.Click_ResultLink9 = "Click_ResultLink9", e.Click_ResultLink10 = "Click_ResultLink10", e.Click_PreviewLink1 = "Click_PreviewLink1", e.Click_PreviewLink2 = "Click_PreviewLink2", e.Click_PreviewLink3 = "Click_PreviewLink3", e.Click_PreviewLink4 = "Click_PreviewLink4", e.Click_PreviewLink5 = "Click_PreviewLink5", e.Click_PreviewLink6 = "Click_PreviewLink6", e.Click_PreviewLink7 = "Click_PreviewLink7", e.Click_PreviewLink8 = "Click_PreviewLink8", e.Click_PreviewLink9 = "Click_PreviewLink9", e.Click_PreviewLink10 = "Click_PreviewLink10", e.RFM_ClickSet = "RFM_ClickSet", e.RFM_ClickReset = "RFM_ClickReset", e.RFM_Like = "RFM_Like", e.RFM_LikeReset = "RFM_LikeReset", e.RFM_Dislike = "RFM_Dislike", e.RFM_Important = "RFM_Important", e.RFM_ImportantReset = "RFM_ImportantReset", e.RFM_Ban = "RFM_Ban", e.Navigation_Exit = "Navigation_Exit", e.Navigation_Return = "Navigation_Return", e.Navigation_Route = "Navigation_Route", e.Answer_Display = "Answer_Display", e.Answer_Click = "Answer_Click", e.Answer_Result = "Answer_Result", e.Answer_Liked = "Answer_Liked", e.Answer_Disliked = "Answer_Disliked", e.Answer_Liked_Cancelled = "Answer_Liked_Cancelled", e.Answer_Disliked_Cancelled = "Answer_Disliked_Cancelled", e.TopPassages_Display = "TopPassages_Display", e.TopPassages_Click = "TopPassages_Click", e.UserSettings_Reset = "UserSettings_Reset", e.Change_Password_Failed = "change.password.failed", e.Change_Password_Success_Form = "change.password.success.form", e.Forgot_Password_Request = "forgot.password.request", e.Login_Denied = "login.denied", e.Login_Success_Form = "login.success.form", e.Send_Reset_Password_Link = "send.reset.password.link", e.Xrest_ChangePassword = "xrest.changepassword", e))(C || {}), h = /* @__PURE__ */ ((e) => (e[e.none = 0] = "none", e[e.bool = 1] = "bool", e[e.date = 2] = "date", e[e.dateTime = 3] = "dateTime", e[e.time = 4] = "time", e[e.unsigned = 5] = "unsigned", e[e.integer = 6] = "integer", e[e.float = 7] = "float", e[e.double = 8] = "double", e[e.dates = 9] = "dates", e[e.dateTimes = 10] = "dateTimes", e[e.times = 11] = "times", e[e.varchar = 12] = "varchar", e[e.binary = 13] = "binary", e[e.string = 14] = "string", e[e.csv = 15] = "csv", e))(h || {}),
|
|
583
|
-
const
|
|
584
|
-
var
|
|
585
|
-
function
|
|
628
|
+
var C = /* @__PURE__ */ ((e) => (e.None = "None", e.Search_FirstPage = "Search_FirstPage", e.Search_Text = "Search_Text", e.Search_Refine = "Search_Refine", e.Search_Select_Item = "Search_Select_Item", e.Search_Select_Custom = "Search_Select_Custom", e.Search_Select_Concept = "Search_Select_Concept", e.Search_Select_Correction = "Search_Select_Correction", e.Search_GotoPage = "Search_GotoPage", e.Search_GotoTab = "Search_GotoTab", e.Search_DisplayResult = "Search_DisplayResult", e.Search_RemoveResult = "Search_RemoveResult", e.Search_RemoveAdvanced = "Search_RemoveAdvanced", e.Search_SavedQuery = "Search_SavedQuery", e.Search_WebService = "Search_WebService", e.Search_DidYouMean_Original = "Search_DidYouMean_Original", e.Search_DidYouMean_Correction = "Search_DidYouMean_Correction", e.Search_ExportCSV = "Search_ExportCSV", e.Search_SavedQuery_ExportCSV = "Search_SavedQuery_ExportCSV", e.Search_Selection_ExportCSV = "Search_Selection_ExportCSV", e.Search_AlertQuery = "Search_AlertQuery", e.Search_Select_AnalyticsItem = "Search_Select_AnalyticsItem", e.Search_Sort = "Search_Sort", e.Search_Exit_Logout = "Search_Exit_Logout", e.Search_Timeline_Usage = "Search_Timeline_Usage", e.Search_AutoComplete = "Search_Autocomplete", e.Search_Login_Success = "Login_Success_Form", e.Search_QueryIntent_Detected = "Search_QueryIntent_Detected", e.SavedQuery_Add = "SavedQuery_Add", e.SavedQuery_Delete = "SavedQuery_Delete", e.SavedQuery_DeleteAll = "SavedQuery_DeleteAll", e.SavedQuery_Rename = "SavedQuery_Rename", e.Alert_Edit = "Alert_Edit", e.Alert_Delete = "Alert_Delete", e.Alert_DeleteAll = "Alert_DeleteAll", e.Link_Display = "Link_Display", e.Link_Click = "Link_Click", e.Basket_Add = "Basket_Add", e.Basket_Delete = "Basket_Delete", e.Basket_DeleteAll = "Basket_DeleteAll", e.Basket_Rename = "Basket_Rename", e.Basket_AddDoc = "Basket_AddDoc", e.Basket_RemoveDoc = "Basket_RemoveDoc", e.Basket_Open = "Basket_Open", e.Basket_ExportCSV = "Basket_ExportCSV", e.Label_Add = "Label_Add", e.Label_Delete = "Label_Delete", e.Label_Rename = "Label_Rename", e.Label_Open = "Label_Open", e.Label_AddDoc = "Label_AddDoc", e.Label_RemoveDoc = "Label_RemoveDoc", e.Label_ExportCSV = "Label_ExportCSV", e.Label_Menu_ExportCSV = "Label_Menu_ExportCSV", e.Rating_Set = "Rating_Set", e.Rating_Delete = "Rating_Delete", e.Doc_Preview = "Doc_Preview", e.Doc_CacheHtml = "Doc_CacheHtml", e.Doc_CachePdf = "Doc_CachePdf", e.Doc_CacheOriginal = "Doc_CacheOriginal", e.Doc_Url1 = "Doc_Url1", e.Doc_Url2 = "Doc_Url2", e.Preview_Close = "Preview_Close", e.Click_ResultLink = "Click_ResultLink", e.Click_ResultLink1 = "Click_ResultLink1", e.Click_ResultLink2 = "Click_ResultLink2", e.Click_ResultLink3 = "Click_ResultLink3", e.Click_ResultLink4 = "Click_ResultLink4", e.Click_ResultLink5 = "Click_ResultLink5", e.Click_ResultLink6 = "Click_ResultLink6", e.Click_ResultLink7 = "Click_ResultLink7", e.Click_ResultLink8 = "Click_ResultLink8", e.Click_ResultLink9 = "Click_ResultLink9", e.Click_ResultLink10 = "Click_ResultLink10", e.Click_PreviewLink1 = "Click_PreviewLink1", e.Click_PreviewLink2 = "Click_PreviewLink2", e.Click_PreviewLink3 = "Click_PreviewLink3", e.Click_PreviewLink4 = "Click_PreviewLink4", e.Click_PreviewLink5 = "Click_PreviewLink5", e.Click_PreviewLink6 = "Click_PreviewLink6", e.Click_PreviewLink7 = "Click_PreviewLink7", e.Click_PreviewLink8 = "Click_PreviewLink8", e.Click_PreviewLink9 = "Click_PreviewLink9", e.Click_PreviewLink10 = "Click_PreviewLink10", e.RFM_ClickSet = "RFM_ClickSet", e.RFM_ClickReset = "RFM_ClickReset", e.RFM_Like = "RFM_Like", e.RFM_LikeReset = "RFM_LikeReset", e.RFM_Dislike = "RFM_Dislike", e.RFM_Important = "RFM_Important", e.RFM_ImportantReset = "RFM_ImportantReset", e.RFM_Ban = "RFM_Ban", e.Navigation_Exit = "Navigation_Exit", e.Navigation_Return = "Navigation_Return", e.Navigation_Route = "Navigation_Route", e.Answer_Display = "Answer_Display", e.Answer_Click = "Answer_Click", e.Answer_Result = "Answer_Result", e.Answer_Liked = "Answer_Liked", e.Answer_Disliked = "Answer_Disliked", e.Answer_Liked_Cancelled = "Answer_Liked_Cancelled", e.Answer_Disliked_Cancelled = "Answer_Disliked_Cancelled", e.TopPassages_Display = "TopPassages_Display", e.TopPassages_Click = "TopPassages_Click", e.UserSettings_Reset = "UserSettings_Reset", e.Change_Password_Failed = "change.password.failed", e.Change_Password_Success_Form = "change.password.success.form", e.Forgot_Password_Request = "forgot.password.request", e.Login_Denied = "login.denied", e.Login_Success_Form = "login.success.form", e.Send_Reset_Password_Link = "send.reset.password.link", e.Xrest_ChangePassword = "xrest.changepassword", e))(C || {}), h = /* @__PURE__ */ ((e) => (e[e.none = 0] = "none", e[e.bool = 1] = "bool", e[e.date = 2] = "date", e[e.dateTime = 3] = "dateTime", e[e.time = 4] = "time", e[e.unsigned = 5] = "unsigned", e[e.integer = 6] = "integer", e[e.float = 7] = "float", e[e.double = 8] = "double", e[e.dates = 9] = "dates", e[e.dateTimes = 10] = "dateTimes", e[e.times = 11] = "times", e[e.varchar = 12] = "varchar", e[e.binary = 13] = "binary", e[e.string = 14] = "string", e[e.csv = 15] = "csv", e))(h || {}), w = /* @__PURE__ */ ((e) => (e[e.none = 0] = "none", e[e.a = 2053] = "a", e[e.c = 4] = "c", e[e.d = 8] = "d", e[e.e = 2068] = "e", e[e.i = 256] = "i", e[e.l = 2052] = "l", e[e.n = 8192] = "n", e[e.t = 524292] = "t", e[e.x = 8388608] = "x", e[e.z = 33554432] = "z", e[e.f_ordinal = 8192] = "f_ordinal", e[e.f_multidates = 8192] = "f_multidates", e[e.f_varchar = 33554432] = "f_varchar", e[e.f_binary = 33562624] = "f_binary", e[e.f_string = 33562888] = "f_string", e[e.f_csv = 42477853] = "f_csv", e[e.f_overridable = 33554696] = "f_overridable", e))(w || {});
|
|
629
|
+
const Vt = "1.0";
|
|
630
|
+
var Ce = /* @__PURE__ */ ((e) => (e[e.Original = 0] = "Original", e[e.Corrected = 1] = "Corrected", e))(Ce || {}), Re = /* @__PURE__ */ ((e) => (e[e.none = 0] = "none", e[e.positiveRate = 1] = "positiveRate", e[e.mainlyPosRate = 2] = "mainlyPosRate", e[e.unrate = 4] = "unrate", e[e.mainlyNegRate = 8] = "mainlyNegRate", e[e.negativeRate = 16] = "negativeRate", e[e.all = 31] = "all", e[e.positiveOnly = 7] = "positiveOnly", e[e.negativeOnly = 28] = "negativeOnly", e[e.personalAll = 21] = "personalAll", e[e.personalPosOnly = 5] = "personalPosOnly", e[e.personalNegOnly = 20] = "personalNegOnly", e))(Re || {});
|
|
631
|
+
function Pe(e) {
|
|
586
632
|
if (!e)
|
|
587
633
|
return h.none;
|
|
588
634
|
switch (e.toLocaleLowerCase()) {
|
|
@@ -621,41 +667,41 @@ function Ce(e) {
|
|
|
621
667
|
return h.none;
|
|
622
668
|
}
|
|
623
669
|
}
|
|
624
|
-
function
|
|
670
|
+
function ye(e) {
|
|
625
671
|
switch (e) {
|
|
626
672
|
case "a":
|
|
627
|
-
return
|
|
673
|
+
return w.a;
|
|
628
674
|
case "c":
|
|
629
|
-
return
|
|
675
|
+
return w.c;
|
|
630
676
|
case "d":
|
|
631
|
-
return
|
|
677
|
+
return w.d;
|
|
632
678
|
case "e":
|
|
633
|
-
return
|
|
679
|
+
return w.e;
|
|
634
680
|
case "i":
|
|
635
|
-
return
|
|
681
|
+
return w.i;
|
|
636
682
|
case "l":
|
|
637
|
-
return
|
|
683
|
+
return w.l;
|
|
638
684
|
case "n":
|
|
639
|
-
return
|
|
685
|
+
return w.n;
|
|
640
686
|
case "t":
|
|
641
|
-
return
|
|
687
|
+
return w.t;
|
|
642
688
|
case "x":
|
|
643
|
-
return
|
|
689
|
+
return w.x;
|
|
644
690
|
case "z":
|
|
645
|
-
return
|
|
691
|
+
return w.z;
|
|
646
692
|
default:
|
|
647
|
-
return
|
|
693
|
+
return w.none;
|
|
648
694
|
}
|
|
649
695
|
}
|
|
650
|
-
function
|
|
651
|
-
let t =
|
|
696
|
+
function xe(e) {
|
|
697
|
+
let t = w.none;
|
|
652
698
|
if (e)
|
|
653
699
|
for (const r of e)
|
|
654
|
-
t |=
|
|
700
|
+
t |= ye(r);
|
|
655
701
|
return t;
|
|
656
702
|
}
|
|
657
|
-
function
|
|
658
|
-
const o =
|
|
703
|
+
function p(e, t, r, n) {
|
|
704
|
+
const o = Pe(t), a = xe(r || "");
|
|
659
705
|
return {
|
|
660
706
|
name: e,
|
|
661
707
|
type: t,
|
|
@@ -665,29 +711,29 @@ function g(e, t, r, n) {
|
|
|
665
711
|
aliases: n
|
|
666
712
|
};
|
|
667
713
|
}
|
|
668
|
-
const
|
|
669
|
-
id:
|
|
670
|
-
text:
|
|
671
|
-
documentlanguages:
|
|
672
|
-
databasealias:
|
|
673
|
-
globalrelevance:
|
|
674
|
-
matchingpartnames:
|
|
675
|
-
matchlocations:
|
|
676
|
-
matchlocationsperpartname:
|
|
714
|
+
const Gt = {
|
|
715
|
+
id: p("id", "string"),
|
|
716
|
+
text: p("text", "varchar"),
|
|
717
|
+
documentlanguages: p("documentlanguages", "csv", "ci", ["language"]),
|
|
718
|
+
databasealias: p("databasealias", "varchar"),
|
|
719
|
+
globalrelevance: p("globalrelevance", "double"),
|
|
720
|
+
matchingpartnames: p("matchingpartnames", "csv"),
|
|
721
|
+
matchlocations: p("matchlocations", "csv"),
|
|
722
|
+
matchlocationsperpartname: p("matchlocationsperpartname", "varchar"),
|
|
677
723
|
// json
|
|
678
|
-
extracts:
|
|
679
|
-
extractsperpartname:
|
|
724
|
+
extracts: p("extracts", "csv"),
|
|
725
|
+
extractsperpartname: p("extractsperpartname", "varchar"),
|
|
680
726
|
// json
|
|
681
|
-
extractslocations:
|
|
682
|
-
documentweight:
|
|
683
|
-
groupcount:
|
|
684
|
-
accesslists:
|
|
727
|
+
extractslocations: p("extractslocations", "csv"),
|
|
728
|
+
documentweight: p("documentweight", "varchar"),
|
|
729
|
+
groupcount: p("groupcount", "integer"),
|
|
730
|
+
accesslists: p("accesslists", "varchar", void 0, ["accessLists"])
|
|
685
731
|
// json
|
|
686
732
|
};
|
|
687
|
-
function
|
|
733
|
+
function ae(e) {
|
|
688
734
|
return e.filter((t) => !!t);
|
|
689
735
|
}
|
|
690
|
-
const
|
|
736
|
+
const zt = {
|
|
691
737
|
// ── Scalar (leaf) operators ───────────────────────────────────────────────
|
|
692
738
|
/** `field = value`. */
|
|
693
739
|
eq: (e, t) => ({
|
|
@@ -769,23 +815,23 @@ const Bt = {
|
|
|
769
815
|
* Combine filters with logical AND. Falsy operands are ignored; with a single
|
|
770
816
|
* effective operand the operand is returned as-is, with none `undefined`.
|
|
771
817
|
*/
|
|
772
|
-
and: (...e) =>
|
|
818
|
+
and: (...e) => ee("and", e),
|
|
773
819
|
/** Combine filters with logical OR. Same collapsing rules as {@link filter.and}. */
|
|
774
|
-
or: (...e) =>
|
|
820
|
+
or: (...e) => ee("or", e),
|
|
775
821
|
/**
|
|
776
822
|
* Negate filters. Falsy operands are ignored; returns `undefined` if nothing
|
|
777
823
|
* remains. A `not` node is always kept (even with a single operand).
|
|
778
824
|
*/
|
|
779
825
|
not: (...e) => {
|
|
780
|
-
const t =
|
|
826
|
+
const t = ae(e);
|
|
781
827
|
return t.length ? { operator: "not", filters: t } : void 0;
|
|
782
828
|
}
|
|
783
829
|
};
|
|
784
|
-
function
|
|
785
|
-
const r =
|
|
830
|
+
function ee(e, t) {
|
|
831
|
+
const r = ae(t);
|
|
786
832
|
return r.length === 0 ? void 0 : r.length === 1 ? r[0] : { operator: e, filters: r };
|
|
787
833
|
}
|
|
788
|
-
function
|
|
834
|
+
function Ht(e, t) {
|
|
789
835
|
let r = e[t];
|
|
790
836
|
return r === void 0 ? [] : (typeof r == "string" && (r = String(r).split(",")), Array.isArray(r) ? r.map((n) => {
|
|
791
837
|
if (typeof n == "string") return n.trim();
|
|
@@ -793,7 +839,7 @@ function jt(e, t) {
|
|
|
793
839
|
return n.display.trim();
|
|
794
840
|
}).filter((n) => n !== void 0) : [String(r).trim()]);
|
|
795
841
|
}
|
|
796
|
-
function
|
|
842
|
+
function Jt(e, t) {
|
|
797
843
|
let r = e[t];
|
|
798
844
|
if (r === void 0) return [];
|
|
799
845
|
if (typeof r == "string" && (r = String(r).split(",")), Array.isArray(r))
|
|
@@ -810,35 +856,35 @@ function Qt(e, t) {
|
|
|
810
856
|
const n = String(r).trim();
|
|
811
857
|
return [{ display: n, value: n }];
|
|
812
858
|
}
|
|
813
|
-
function
|
|
859
|
+
function F(e) {
|
|
814
860
|
return e !== null && typeof e == "object";
|
|
815
861
|
}
|
|
816
|
-
function
|
|
817
|
-
return
|
|
862
|
+
function Le(e) {
|
|
863
|
+
return F(e) && Object.prototype.toString.call(e) === "[object ArrayBuffer]";
|
|
818
864
|
}
|
|
819
|
-
function
|
|
820
|
-
return
|
|
865
|
+
function $e(e) {
|
|
866
|
+
return F(e) && Object.prototype.toString.call(e) === "[object Blob]";
|
|
821
867
|
}
|
|
822
|
-
function
|
|
868
|
+
function Ue(e) {
|
|
823
869
|
return Object.prototype.toString.call(e) === "[object Date]";
|
|
824
870
|
}
|
|
825
871
|
function Oe(e) {
|
|
826
872
|
return typeof e == "string";
|
|
827
873
|
}
|
|
828
|
-
function
|
|
829
|
-
return (
|
|
874
|
+
function Wt(e) {
|
|
875
|
+
return (F(e) || Array.isArray(e)) && !Le(e) && !$e(e) && !Oe(e);
|
|
830
876
|
}
|
|
831
|
-
function
|
|
877
|
+
function De(e) {
|
|
832
878
|
return e ? (e.getHours() * 60 * 60 + e.getMinutes() * 60 + e.getSeconds()) * 1e3 + e.getMilliseconds() : 0;
|
|
833
879
|
}
|
|
834
|
-
function
|
|
880
|
+
function Ie(e = !0) {
|
|
835
881
|
let t = Date.now();
|
|
836
882
|
return (e ? "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx" : "xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx").replace(/[xy]/g, (n) => {
|
|
837
883
|
const o = (t + Math.random() * 16) % 16 | 0;
|
|
838
884
|
return t = Math.floor(t / 16), (n === "x" ? o : o & 3 | 8).toString(16);
|
|
839
885
|
});
|
|
840
886
|
}
|
|
841
|
-
function
|
|
887
|
+
function Xt(e) {
|
|
842
888
|
if (!e)
|
|
843
889
|
return "``";
|
|
844
890
|
if (e = String(e), e.search(/[\\`]/) === -1)
|
|
@@ -850,7 +896,7 @@ function Gt(e) {
|
|
|
850
896
|
}
|
|
851
897
|
return t.push("`"), t.join("");
|
|
852
898
|
}
|
|
853
|
-
function
|
|
899
|
+
function Yt(e) {
|
|
854
900
|
if (typeof crypto < "u" && crypto.subtle && typeof crypto.subtle.digest == "function")
|
|
855
901
|
try {
|
|
856
902
|
return crypto.subtle.digest("SHA-512", new TextEncoder().encode(e)).then(
|
|
@@ -863,23 +909,23 @@ function zt(e) {
|
|
|
863
909
|
}
|
|
864
910
|
function j(e) {
|
|
865
911
|
let n = 2166136261;
|
|
866
|
-
for (let
|
|
867
|
-
n ^= e.charCodeAt(
|
|
868
|
-
const o = n.toString(16).padStart(8, "0"), a = ((n ^ 2863311530) >>> 0).toString(16).padStart(8, "0"), s = ((n ^ 1431655765) >>> 0).toString(16).padStart(8, "0"),
|
|
869
|
-
return (
|
|
912
|
+
for (let k = 0; k < e.length; k++)
|
|
913
|
+
n ^= e.charCodeAt(k), n = n * 16777619 >>> 0;
|
|
914
|
+
const o = n.toString(16).padStart(8, "0"), a = ((n ^ 2863311530) >>> 0).toString(16).padStart(8, "0"), s = ((n ^ 1431655765) >>> 0).toString(16).padStart(8, "0"), c = ((n ^ 3435973836) >>> 0).toString(16).padStart(8, "0"), i = o + a + s + c;
|
|
915
|
+
return (i + i + i + i).substring(0, 128);
|
|
870
916
|
}
|
|
871
|
-
let Q,
|
|
872
|
-
function
|
|
873
|
-
let r =
|
|
874
|
-
r && (
|
|
917
|
+
let Q, se;
|
|
918
|
+
function U(e, t = !0) {
|
|
919
|
+
let r = Ae(e.$auditRecord);
|
|
920
|
+
r && (Ne(r), t && qe(r)), e.$auditRecord = r;
|
|
875
921
|
}
|
|
876
|
-
function
|
|
922
|
+
function Ae(e) {
|
|
877
923
|
if (!e)
|
|
878
924
|
return;
|
|
879
925
|
let t;
|
|
880
926
|
if (Array.isArray(e))
|
|
881
927
|
t = e;
|
|
882
|
-
else if (
|
|
928
|
+
else if (F(e)) {
|
|
883
929
|
const r = e;
|
|
884
930
|
if (r.auditEvents || r.mlAuditEvents)
|
|
885
931
|
return r;
|
|
@@ -887,104 +933,105 @@ function De(e) {
|
|
|
887
933
|
}
|
|
888
934
|
return { auditEvents: t };
|
|
889
935
|
}
|
|
890
|
-
function
|
|
891
|
-
const t =
|
|
936
|
+
function Ne(e) {
|
|
937
|
+
const t = Fe();
|
|
892
938
|
return e.auditEvents?.forEach((r) => {
|
|
893
939
|
r.detail || (r.detail = {}), r.detail.sessionid = t;
|
|
894
940
|
}), e;
|
|
895
941
|
}
|
|
896
|
-
function
|
|
942
|
+
function qe(e) {
|
|
897
943
|
const t = typeof window < "u" ? decodeURIComponent(window.location.href) : "http://localhost";
|
|
898
944
|
return e?.auditEvents?.forEach((r) => {
|
|
899
945
|
r.detail || (r.detail = {}), r.detail.url = t;
|
|
900
946
|
}), e;
|
|
901
947
|
}
|
|
902
|
-
function
|
|
903
|
-
return (!Q ||
|
|
948
|
+
function Fe() {
|
|
949
|
+
return (!Q || Be()) && (Q = Ie()), se = /* @__PURE__ */ new Date(), Q;
|
|
904
950
|
}
|
|
905
|
-
function
|
|
906
|
-
return (/* @__PURE__ */ new Date()).getTime() -
|
|
951
|
+
function Be() {
|
|
952
|
+
return (/* @__PURE__ */ new Date()).getTime() - se.getTime() > 600 * 1e3;
|
|
907
953
|
}
|
|
908
|
-
async function
|
|
954
|
+
async function Me(e, t = !0) {
|
|
909
955
|
const r = {
|
|
910
956
|
event: C.None,
|
|
911
957
|
$auditRecord: e
|
|
912
958
|
};
|
|
913
|
-
return
|
|
959
|
+
return U(r, t), u("api/v1/audit.notify", r);
|
|
914
960
|
}
|
|
915
|
-
const
|
|
916
|
-
async function
|
|
961
|
+
const Kt = { notify: Me };
|
|
962
|
+
async function Zt(e, t, r) {
|
|
917
963
|
const n = e.items?.length || 0, o = 10, a = {
|
|
918
964
|
query: { ...t, action: "aggregate", aggregations: { [e.name]: { skip: n, count: o } } },
|
|
919
965
|
$auditRecord: { auditEvents: [r] }
|
|
920
966
|
};
|
|
921
|
-
|
|
922
|
-
const s = await
|
|
967
|
+
U(a);
|
|
968
|
+
const s = await u("api/v1/query", a), c = await P(s), { aggregations: i } = c, d = i[0];
|
|
923
969
|
return d.$hasMore = d.items.length > o, d.items = [...e.items, ...d.items], Promise.resolve(d);
|
|
924
970
|
}
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
return
|
|
971
|
+
function je(e, t) {
|
|
972
|
+
if (e.authMode?.kind === "credentials") return g.credentials();
|
|
973
|
+
if (e.bearerToken) return g.bearer(e.bearerToken);
|
|
974
|
+
const r = e.autoOAuthProvider || t?.autoOAuthProvider;
|
|
975
|
+
if (r) return g.oauth(r);
|
|
976
|
+
const n = e.autoSAMLProvider || t?.autoSAMLProvider;
|
|
977
|
+
return n ? g.saml(n) : g.unknown();
|
|
978
|
+
}
|
|
979
|
+
async function Et(e) {
|
|
980
|
+
const t = e || l.app, r = new URLSearchParams({ app: t || "" });
|
|
981
|
+
return _("api/v1/app", r);
|
|
928
982
|
}
|
|
929
|
-
async function
|
|
930
|
-
const { app: e } =
|
|
983
|
+
async function Qe() {
|
|
984
|
+
const { app: e } = l, t = new URLSearchParams({
|
|
931
985
|
app: e || "",
|
|
932
986
|
preLogin: "true"
|
|
933
987
|
});
|
|
934
|
-
return
|
|
988
|
+
return _("api/v1/app", t);
|
|
935
989
|
}
|
|
936
|
-
function
|
|
937
|
-
let { backendUrl: e, app: t
|
|
990
|
+
function Ve() {
|
|
991
|
+
let { backendUrl: e, app: t } = l;
|
|
938
992
|
if (typeof window < "u") {
|
|
939
993
|
if (e || (e = window.location.origin), !t) {
|
|
940
|
-
const
|
|
994
|
+
const r = window.location.pathname.match(
|
|
941
995
|
/\/app(?:-debug)?\/([^/#]+)/
|
|
942
996
|
);
|
|
943
|
-
|
|
997
|
+
r && (t = r[1]);
|
|
944
998
|
}
|
|
945
|
-
|
|
946
|
-
...u,
|
|
947
|
-
backendUrl: e,
|
|
948
|
-
app: t
|
|
949
|
-
});
|
|
999
|
+
S({ backendUrl: e, app: t });
|
|
950
1000
|
}
|
|
951
|
-
return
|
|
952
|
-
|
|
953
|
-
useCredentials: !0,
|
|
954
|
-
useSSO: !1,
|
|
1001
|
+
return l.authMode?.kind === "credentials" ? (S({
|
|
1002
|
+
authMode: g.credentials(),
|
|
955
1003
|
autoOAuthProvider: void 0,
|
|
956
1004
|
autoSAMLProvider: void 0,
|
|
957
|
-
bearerToken: void 0
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
autoOAuthProvider:
|
|
964
|
-
autoSAMLProvider:
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
}).catch((n) => {
|
|
969
|
-
throw f("atomic:fetchAppPreLogin error", n), n;
|
|
1005
|
+
bearerToken: void 0
|
|
1006
|
+
}), Promise.resolve({})) : Qe().then((r) => {
|
|
1007
|
+
const n = je(l, r);
|
|
1008
|
+
return S({
|
|
1009
|
+
authMode: n,
|
|
1010
|
+
// Persist the resolved providers as inputs so login()/redirect helpers can read them.
|
|
1011
|
+
autoOAuthProvider: l.autoOAuthProvider || r.autoOAuthProvider,
|
|
1012
|
+
autoSAMLProvider: l.autoSAMLProvider || r.autoSAMLProvider
|
|
1013
|
+
}), r;
|
|
1014
|
+
}).catch((r) => {
|
|
1015
|
+
throw f("atomic:fetchAppPreLogin error", r), r;
|
|
970
1016
|
});
|
|
971
1017
|
}
|
|
972
|
-
|
|
973
|
-
|
|
1018
|
+
const Tt = Ve;
|
|
1019
|
+
async function er(e, t, r = {}) {
|
|
1020
|
+
const n = `api/v1/search.dataset/${e}/${t}`, o = await u(n, { parameters: r }), a = t[0].toLowerCase() + t.slice(1), s = o.datasets[a];
|
|
974
1021
|
if ("errorCode" in s && "errorMessage" in s)
|
|
975
1022
|
throw new Error(s.errorMessage);
|
|
976
1023
|
return s;
|
|
977
1024
|
}
|
|
978
|
-
async function
|
|
1025
|
+
async function tr(e, t) {
|
|
979
1026
|
const r = `api/v1/search.dataset/${e}`, { parameters: n = {}, datasets: o = [] } = t;
|
|
980
|
-
return (await
|
|
1027
|
+
return (await u(r, { parameters: n, datasets: o })).datasets;
|
|
981
1028
|
}
|
|
982
|
-
async function
|
|
983
|
-
return await
|
|
1029
|
+
async function rr(e) {
|
|
1030
|
+
return await _(`api/v1/search.dataset/${e}`);
|
|
984
1031
|
}
|
|
985
|
-
async function
|
|
1032
|
+
async function nr(e, t = !0, r) {
|
|
986
1033
|
try {
|
|
987
|
-
return (await
|
|
1034
|
+
return (await u("api/v1/labels", {
|
|
988
1035
|
action: "list",
|
|
989
1036
|
q: e,
|
|
990
1037
|
public: t,
|
|
@@ -995,18 +1042,18 @@ async function Zt(e, t = !0, r) {
|
|
|
995
1042
|
throw f("Error in fetchLabels", n), n;
|
|
996
1043
|
}
|
|
997
1044
|
}
|
|
998
|
-
async function
|
|
1045
|
+
async function Ge() {
|
|
999
1046
|
try {
|
|
1000
|
-
const { app: e = "" } =
|
|
1047
|
+
const { app: e = "" } = l, t = new URLSearchParams({
|
|
1001
1048
|
app: e,
|
|
1002
1049
|
action: "getUserRights"
|
|
1003
1050
|
});
|
|
1004
|
-
return
|
|
1051
|
+
return _("api/v1/labels", t);
|
|
1005
1052
|
} catch (e) {
|
|
1006
1053
|
throw f("Error in getUserRights", e), e;
|
|
1007
1054
|
}
|
|
1008
1055
|
}
|
|
1009
|
-
async function
|
|
1056
|
+
async function ze(e, t, r = !0) {
|
|
1010
1057
|
try {
|
|
1011
1058
|
const n = {
|
|
1012
1059
|
action: "add",
|
|
@@ -1032,12 +1079,12 @@ async function Qe(e, t, r = !0) {
|
|
|
1032
1079
|
]
|
|
1033
1080
|
}
|
|
1034
1081
|
};
|
|
1035
|
-
return
|
|
1082
|
+
return u("api/v1/labels", n);
|
|
1036
1083
|
} catch (n) {
|
|
1037
1084
|
throw f("Error in add", n), n;
|
|
1038
1085
|
}
|
|
1039
1086
|
}
|
|
1040
|
-
async function
|
|
1087
|
+
async function He(e, t, r = !0) {
|
|
1041
1088
|
try {
|
|
1042
1089
|
const n = {
|
|
1043
1090
|
action: "remove",
|
|
@@ -1063,12 +1110,12 @@ async function Ve(e, t, r = !0) {
|
|
|
1063
1110
|
]
|
|
1064
1111
|
}
|
|
1065
1112
|
};
|
|
1066
|
-
return
|
|
1113
|
+
return u("api/v1/labels", n);
|
|
1067
1114
|
} catch (n) {
|
|
1068
1115
|
throw f("Error in remove", n), n;
|
|
1069
1116
|
}
|
|
1070
1117
|
}
|
|
1071
|
-
async function
|
|
1118
|
+
async function Je(e, t, r = !0) {
|
|
1072
1119
|
try {
|
|
1073
1120
|
const n = {
|
|
1074
1121
|
action: "rename",
|
|
@@ -1084,12 +1131,12 @@ async function Ge(e, t, r = !0) {
|
|
|
1084
1131
|
}
|
|
1085
1132
|
}
|
|
1086
1133
|
};
|
|
1087
|
-
return
|
|
1134
|
+
return u("api/v1/labels", n);
|
|
1088
1135
|
} catch (n) {
|
|
1089
1136
|
throw f("Error in rename", n), n;
|
|
1090
1137
|
}
|
|
1091
1138
|
}
|
|
1092
|
-
async function
|
|
1139
|
+
async function We(e, t = !0) {
|
|
1093
1140
|
try {
|
|
1094
1141
|
const r = {
|
|
1095
1142
|
action: "delete",
|
|
@@ -1103,12 +1150,12 @@ async function ze(e, t = !0) {
|
|
|
1103
1150
|
}
|
|
1104
1151
|
}
|
|
1105
1152
|
};
|
|
1106
|
-
return
|
|
1153
|
+
return u("api/v1/labels", r);
|
|
1107
1154
|
} catch (r) {
|
|
1108
1155
|
throw f("Error in deleteLabels", r), r;
|
|
1109
1156
|
}
|
|
1110
1157
|
}
|
|
1111
|
-
async function
|
|
1158
|
+
async function Xe(e, t, r = !0) {
|
|
1112
1159
|
try {
|
|
1113
1160
|
const n = {
|
|
1114
1161
|
action: "bulkAdd",
|
|
@@ -1124,12 +1171,12 @@ async function He(e, t, r = !0) {
|
|
|
1124
1171
|
}
|
|
1125
1172
|
}
|
|
1126
1173
|
};
|
|
1127
|
-
return
|
|
1174
|
+
return u("api/v1/labels", n);
|
|
1128
1175
|
} catch (n) {
|
|
1129
1176
|
throw f("Error in bulkAdd", n), n;
|
|
1130
1177
|
}
|
|
1131
1178
|
}
|
|
1132
|
-
async function
|
|
1179
|
+
async function Ye(e, t, r = !0) {
|
|
1133
1180
|
try {
|
|
1134
1181
|
const n = {
|
|
1135
1182
|
action: "bulkRemove",
|
|
@@ -1145,36 +1192,36 @@ async function Je(e, t, r = !0) {
|
|
|
1145
1192
|
}
|
|
1146
1193
|
}
|
|
1147
1194
|
};
|
|
1148
|
-
return
|
|
1195
|
+
return u("api/v1/labels", n);
|
|
1149
1196
|
} catch (n) {
|
|
1150
1197
|
throw f("Error in bulkRemove", n), n;
|
|
1151
1198
|
}
|
|
1152
1199
|
}
|
|
1153
|
-
const
|
|
1154
|
-
getUserRights:
|
|
1155
|
-
add:
|
|
1156
|
-
remove:
|
|
1157
|
-
rename:
|
|
1158
|
-
delete:
|
|
1159
|
-
bulkAdd:
|
|
1160
|
-
bulkRemove:
|
|
1200
|
+
const or = {
|
|
1201
|
+
getUserRights: Ge,
|
|
1202
|
+
add: ze,
|
|
1203
|
+
remove: He,
|
|
1204
|
+
rename: Je,
|
|
1205
|
+
delete: We,
|
|
1206
|
+
bulkAdd: Xe,
|
|
1207
|
+
bulkRemove: Ye
|
|
1161
1208
|
};
|
|
1162
|
-
async function
|
|
1209
|
+
async function ar(e, t) {
|
|
1163
1210
|
if (typeof window > "u")
|
|
1164
|
-
return
|
|
1211
|
+
return u("api/v1/preview", {
|
|
1165
1212
|
action: "get",
|
|
1166
1213
|
id: e,
|
|
1167
1214
|
query: t
|
|
1168
1215
|
});
|
|
1169
1216
|
const r = `${window.location.origin}${window.location.pathname}`, n = { name: t?.name, text: t?.text };
|
|
1170
|
-
return
|
|
1217
|
+
return u("api/v1/preview", {
|
|
1171
1218
|
action: "get",
|
|
1172
1219
|
id: e,
|
|
1173
1220
|
query: n,
|
|
1174
1221
|
browserUrl: r
|
|
1175
1222
|
});
|
|
1176
1223
|
}
|
|
1177
|
-
async function
|
|
1224
|
+
async function sr(e) {
|
|
1178
1225
|
const t = new Headers();
|
|
1179
1226
|
t.append("content-type", "text");
|
|
1180
1227
|
const r = await fetch(
|
|
@@ -1186,23 +1233,23 @@ async function er(e) {
|
|
|
1186
1233
|
);
|
|
1187
1234
|
P(r);
|
|
1188
1235
|
}
|
|
1189
|
-
async function
|
|
1236
|
+
async function Ke() {
|
|
1190
1237
|
const e = new URLSearchParams({
|
|
1191
1238
|
action: "get",
|
|
1192
1239
|
noAutoAuthentication: "true"
|
|
1193
1240
|
});
|
|
1194
|
-
return
|
|
1241
|
+
return _("api/v1/principal", e);
|
|
1195
1242
|
}
|
|
1196
|
-
async function
|
|
1243
|
+
async function Ze(e) {
|
|
1197
1244
|
const t = {
|
|
1198
1245
|
noAutoAuthentication: "true",
|
|
1199
1246
|
...e
|
|
1200
1247
|
}, r = new URLSearchParams();
|
|
1201
1248
|
return Object.entries(t).forEach(([n, o]) => {
|
|
1202
1249
|
o !== void 0 && r.append(n, String(o));
|
|
1203
|
-
}),
|
|
1250
|
+
}), _("api/v1/principal/list", r);
|
|
1204
1251
|
}
|
|
1205
|
-
async function
|
|
1252
|
+
async function Ee(e) {
|
|
1206
1253
|
if (!e)
|
|
1207
1254
|
return Promise.reject(new Error("userid is required"));
|
|
1208
1255
|
const t = new URLSearchParams({
|
|
@@ -1210,27 +1257,27 @@ async function Me(e) {
|
|
|
1210
1257
|
noAutoAuthentication: "true",
|
|
1211
1258
|
userid: e
|
|
1212
1259
|
});
|
|
1213
|
-
return
|
|
1260
|
+
return _("api/v1/principal", t);
|
|
1214
1261
|
}
|
|
1215
|
-
async function
|
|
1262
|
+
async function Te(e) {
|
|
1216
1263
|
if (e.length === 0)
|
|
1217
1264
|
return Promise.reject(new Error("userids is required"));
|
|
1218
1265
|
const t = new URLSearchParams({
|
|
1219
1266
|
noAutoAuthentication: "true",
|
|
1220
1267
|
userids: [...e].join(",")
|
|
1221
1268
|
});
|
|
1222
|
-
return
|
|
1269
|
+
return _("api/v1/principal/userids", t);
|
|
1223
1270
|
}
|
|
1224
|
-
const
|
|
1271
|
+
const ir = {
|
|
1225
1272
|
principal: {
|
|
1226
|
-
get:
|
|
1227
|
-
list:
|
|
1228
|
-
userid:
|
|
1229
|
-
userids:
|
|
1273
|
+
get: Ke,
|
|
1274
|
+
list: Ze,
|
|
1275
|
+
userid: Ee,
|
|
1276
|
+
userids: Te
|
|
1230
1277
|
}
|
|
1231
1278
|
}, ie = 11;
|
|
1232
|
-
async function
|
|
1233
|
-
const o = await
|
|
1279
|
+
async function cr(e, t, r) {
|
|
1280
|
+
const o = await u("api/v1/query", {
|
|
1234
1281
|
query: e,
|
|
1235
1282
|
$auditRecord: t,
|
|
1236
1283
|
queryIntentData: r
|
|
@@ -1241,26 +1288,26 @@ async function rr(e, t, r) {
|
|
|
1241
1288
|
const a = { ...o, nextPage: o.page < Math.ceil(o.rowCount / o.pageSize) ? o.page + 1 : void 0, previousPage: o.page > 1 ? o.page - 1 : void 0 };
|
|
1242
1289
|
return Promise.resolve(a);
|
|
1243
1290
|
}
|
|
1244
|
-
async function
|
|
1245
|
-
const { app: n = "" } =
|
|
1291
|
+
async function lr(e, t, r) {
|
|
1292
|
+
const { app: n = "" } = l, o = {
|
|
1246
1293
|
methods: [],
|
|
1247
1294
|
mode: t,
|
|
1248
1295
|
propagateErrors: !0,
|
|
1249
1296
|
$auditRecord: { auditEvents: [r] }
|
|
1250
1297
|
};
|
|
1251
|
-
for (const
|
|
1298
|
+
for (const c of e)
|
|
1252
1299
|
o.methods.push({
|
|
1253
1300
|
method: "query",
|
|
1254
1301
|
app: n,
|
|
1255
|
-
query:
|
|
1302
|
+
query: c
|
|
1256
1303
|
});
|
|
1257
|
-
const a = await
|
|
1258
|
-
a.results.forEach((
|
|
1259
|
-
|
|
1260
|
-
|
|
1304
|
+
const a = await u("api/v1/multi", o);
|
|
1305
|
+
a.results.forEach((c) => {
|
|
1306
|
+
c.aggregations.forEach((i) => {
|
|
1307
|
+
i.$hasMore = !1, !i.isDistribution && !i.isTree && i.items && (i.$hasMore = i.items.length === ie), i.isTree && z(i);
|
|
1261
1308
|
});
|
|
1262
|
-
}), a.results.forEach((
|
|
1263
|
-
const s = a.results.map((
|
|
1309
|
+
}), a.results.forEach((c) => c.records?.map((i) => Object.assign(i, { value: i.title, type: "default" })));
|
|
1310
|
+
const s = a.results.map((c) => ({ ...c, nextPage: c.page < Math.ceil(c.rowCount / c.pageSize) ? c.page + 1 : void 0, previousPage: c.page > 1 ? c.page - 1 : void 0 }));
|
|
1264
1311
|
return Promise.resolve(s);
|
|
1265
1312
|
}
|
|
1266
1313
|
function z(e, t = "", r = 0) {
|
|
@@ -1270,15 +1317,15 @@ function z(e, t = "", r = 0) {
|
|
|
1270
1317
|
n.push({ path: a, level: s }), o.$path = a, o.$level = s, o.hasChildren ? n = n.concat(z(o, a, s)) : o.hasChildren = !1;
|
|
1271
1318
|
}), n;
|
|
1272
1319
|
}
|
|
1273
|
-
async function
|
|
1274
|
-
const { webservice: o, format: a, maxcount: s, exportedColumns:
|
|
1320
|
+
async function ur({ model: e, appName: t, query: r, article: n }) {
|
|
1321
|
+
const { webservice: o, format: a, maxcount: s, exportedColumns: c, export: i } = e, d = {
|
|
1275
1322
|
app: t,
|
|
1276
1323
|
webservice: o,
|
|
1277
1324
|
query: r,
|
|
1278
|
-
type:
|
|
1325
|
+
type: i,
|
|
1279
1326
|
format: a,
|
|
1280
1327
|
maxcount: s,
|
|
1281
|
-
exportedColumns:
|
|
1328
|
+
exportedColumns: c,
|
|
1282
1329
|
$auditRecord: {
|
|
1283
1330
|
auditEvents: [{
|
|
1284
1331
|
type: "Search_ExportCSV",
|
|
@@ -1288,15 +1335,15 @@ async function or({ model: e, appName: t, query: r, article: n }) {
|
|
|
1288
1335
|
}]
|
|
1289
1336
|
}
|
|
1290
1337
|
};
|
|
1291
|
-
return
|
|
1338
|
+
return U(d), await u("api/v1/search.queryexport", d, { responseType: "blob" });
|
|
1292
1339
|
}
|
|
1293
|
-
async function
|
|
1294
|
-
return (await
|
|
1340
|
+
async function dr(e) {
|
|
1341
|
+
return (await u("api/v1/queryintent", {
|
|
1295
1342
|
query: e
|
|
1296
1343
|
}))?.intents;
|
|
1297
1344
|
}
|
|
1298
|
-
async function
|
|
1299
|
-
return (await
|
|
1345
|
+
async function fr(e, t, r) {
|
|
1346
|
+
return (await u(
|
|
1300
1347
|
"api/v1/similardocuments",
|
|
1301
1348
|
{
|
|
1302
1349
|
sourceDocumentId: e,
|
|
@@ -1307,17 +1354,17 @@ async function sr(e, t, r) {
|
|
|
1307
1354
|
{ signal: r }
|
|
1308
1355
|
)).data;
|
|
1309
1356
|
}
|
|
1310
|
-
async function
|
|
1311
|
-
return (await
|
|
1357
|
+
async function hr(e, t) {
|
|
1358
|
+
return (await u("api/v1/query.links", {
|
|
1312
1359
|
webservice: e,
|
|
1313
1360
|
query: t
|
|
1314
1361
|
}))?.links?.map((o) => ({ ...o, query: t }));
|
|
1315
1362
|
}
|
|
1316
|
-
function
|
|
1363
|
+
function et(e, t) {
|
|
1317
1364
|
if (typeof e == "number")
|
|
1318
1365
|
return `${e}`;
|
|
1319
|
-
if (
|
|
1320
|
-
return
|
|
1366
|
+
if (Ue(e))
|
|
1367
|
+
return tt(e);
|
|
1321
1368
|
if (typeof e == "boolean")
|
|
1322
1369
|
return e ? "true" : "false";
|
|
1323
1370
|
if (e === null)
|
|
@@ -1330,11 +1377,11 @@ function Ye(e, t) {
|
|
|
1330
1377
|
}
|
|
1331
1378
|
return e;
|
|
1332
1379
|
}
|
|
1333
|
-
function
|
|
1380
|
+
function tt(e) {
|
|
1334
1381
|
if (!e)
|
|
1335
1382
|
return "";
|
|
1336
1383
|
try {
|
|
1337
|
-
if (
|
|
1384
|
+
if (De(e) === 0)
|
|
1338
1385
|
return new Intl.DateTimeFormat("en-CA", {
|
|
1339
1386
|
year: "numeric",
|
|
1340
1387
|
month: "2-digit",
|
|
@@ -1353,8 +1400,8 @@ function Ke(e) {
|
|
|
1353
1400
|
return "Invalid date";
|
|
1354
1401
|
}
|
|
1355
1402
|
}
|
|
1356
|
-
async function
|
|
1357
|
-
const { app: a } =
|
|
1403
|
+
async function gr(e, t, r, n, o) {
|
|
1404
|
+
const { app: a } = l, s = {
|
|
1358
1405
|
app: a || "",
|
|
1359
1406
|
suggestQuery: e,
|
|
1360
1407
|
text: t,
|
|
@@ -1363,17 +1410,17 @@ async function cr(e, t, r, n, o) {
|
|
|
1363
1410
|
showSource: o
|
|
1364
1411
|
};
|
|
1365
1412
|
try {
|
|
1366
|
-
return (await
|
|
1413
|
+
return (await u(
|
|
1367
1414
|
"api/v1/search.suggest",
|
|
1368
1415
|
s
|
|
1369
1416
|
)).suggests;
|
|
1370
|
-
} catch (
|
|
1371
|
-
throw console.error("Error fetching suggestions:",
|
|
1417
|
+
} catch (c) {
|
|
1418
|
+
throw console.error("Error fetching suggestions:", c), c;
|
|
1372
1419
|
}
|
|
1373
1420
|
}
|
|
1374
|
-
async function
|
|
1375
|
-
const { app: o } =
|
|
1376
|
-
return (await
|
|
1421
|
+
async function pr(e, t, r, n) {
|
|
1422
|
+
const { app: o } = l;
|
|
1423
|
+
return (await u(
|
|
1377
1424
|
"api/v1/suggestquery",
|
|
1378
1425
|
{
|
|
1379
1426
|
app: o || "",
|
|
@@ -1384,9 +1431,9 @@ async function lr(e, t, r, n) {
|
|
|
1384
1431
|
}
|
|
1385
1432
|
)).suggests;
|
|
1386
1433
|
}
|
|
1387
|
-
async function
|
|
1434
|
+
async function mr(e, t, r) {
|
|
1388
1435
|
if (!t) return Promise.resolve([]);
|
|
1389
|
-
const { app: n } =
|
|
1436
|
+
const { app: n } = l, a = await u(
|
|
1390
1437
|
"api/v1/suggestfield",
|
|
1391
1438
|
{
|
|
1392
1439
|
app: n || "",
|
|
@@ -1396,11 +1443,11 @@ async function ur(e, t, r) {
|
|
|
1396
1443
|
}
|
|
1397
1444
|
);
|
|
1398
1445
|
return a.suggests.forEach((s) => {
|
|
1399
|
-
s.display =
|
|
1446
|
+
s.display = et(s.display);
|
|
1400
1447
|
}), a.suggests;
|
|
1401
1448
|
}
|
|
1402
|
-
async function
|
|
1403
|
-
return
|
|
1449
|
+
async function wr(e, t, r, n, o, a) {
|
|
1450
|
+
return u("api/v1/doc.textchunks", {
|
|
1404
1451
|
id: e,
|
|
1405
1452
|
textChunks: t,
|
|
1406
1453
|
highlights: r,
|
|
@@ -1409,74 +1456,74 @@ async function dr(e, t, r, n, o, a) {
|
|
|
1409
1456
|
rightSentencesCount: a
|
|
1410
1457
|
});
|
|
1411
1458
|
}
|
|
1412
|
-
async function
|
|
1413
|
-
const { app: e } =
|
|
1459
|
+
async function _r() {
|
|
1460
|
+
const { app: e } = l, t = new URLSearchParams({
|
|
1414
1461
|
app: e || "",
|
|
1415
1462
|
action: "load"
|
|
1416
1463
|
});
|
|
1417
|
-
return
|
|
1464
|
+
return _("api/v1/usersettings", t);
|
|
1418
1465
|
}
|
|
1419
|
-
async function
|
|
1466
|
+
async function rt(e, t) {
|
|
1420
1467
|
const r = {
|
|
1421
1468
|
action: "save",
|
|
1422
1469
|
userSettings: e,
|
|
1423
1470
|
$auditRecord: { auditEvents: [t] }
|
|
1424
1471
|
};
|
|
1425
|
-
return
|
|
1472
|
+
return U(r), u("api/v1/usersettings", r);
|
|
1426
1473
|
}
|
|
1427
|
-
async function
|
|
1474
|
+
async function kr(e, t) {
|
|
1428
1475
|
const n = {
|
|
1429
1476
|
action: "patch",
|
|
1430
1477
|
userSettings: e,
|
|
1431
1478
|
$auditRecord: t ? { auditEvents: [t] } : void 0
|
|
1432
1479
|
};
|
|
1433
|
-
return
|
|
1480
|
+
return U(n), u("api/v1/usersettings", n);
|
|
1434
1481
|
}
|
|
1435
|
-
async function
|
|
1436
|
-
return
|
|
1482
|
+
async function Sr() {
|
|
1483
|
+
return rt({}, { type: "UserSettings_Reset" });
|
|
1437
1484
|
}
|
|
1438
|
-
async function
|
|
1439
|
-
return
|
|
1485
|
+
async function br(e, t) {
|
|
1486
|
+
return u("api/v2/security/password/change", { newPassword: e, currentPassword: t });
|
|
1440
1487
|
}
|
|
1441
|
-
async function
|
|
1488
|
+
async function vr(e) {
|
|
1442
1489
|
const t = "api/v2/security/password/ask-reset-email", n = {
|
|
1443
1490
|
changePasswordRedirectUrl: `${window.location.origin}/login?mode=changepassword`,
|
|
1444
1491
|
userName: e
|
|
1445
1492
|
};
|
|
1446
|
-
return
|
|
1493
|
+
return u(t, n);
|
|
1447
1494
|
}
|
|
1448
|
-
async function
|
|
1449
|
-
return await
|
|
1495
|
+
async function Cr(e) {
|
|
1496
|
+
return await _(`api/v2/user-profile/${e}`);
|
|
1450
1497
|
}
|
|
1451
|
-
async function
|
|
1452
|
-
return await
|
|
1498
|
+
async function Rr(e) {
|
|
1499
|
+
return await u("api/v2/user-profile", e);
|
|
1453
1500
|
}
|
|
1454
|
-
async function
|
|
1455
|
-
return await
|
|
1501
|
+
async function Pr(e, t, r) {
|
|
1502
|
+
return await ve(
|
|
1456
1503
|
`api/v2/user-profile/${e.data?.id}/${t}/${r}`,
|
|
1457
1504
|
e
|
|
1458
1505
|
);
|
|
1459
1506
|
}
|
|
1460
|
-
async function
|
|
1507
|
+
async function yr(e, t, r) {
|
|
1461
1508
|
try {
|
|
1462
|
-
return (await
|
|
1509
|
+
return (await be(
|
|
1463
1510
|
`api/v2/user-profile/${e.data?.id}/${t}/${r}`
|
|
1464
1511
|
)).success === !0;
|
|
1465
1512
|
} catch {
|
|
1466
1513
|
return !1;
|
|
1467
1514
|
}
|
|
1468
1515
|
}
|
|
1469
|
-
async function
|
|
1470
|
-
return await
|
|
1516
|
+
async function xr() {
|
|
1517
|
+
return await _("api/v2/version");
|
|
1471
1518
|
}
|
|
1472
|
-
const v = 1e4,
|
|
1473
|
-
const { autoOAuthProvider: e } =
|
|
1519
|
+
const v = 1e4, nt = async () => {
|
|
1520
|
+
const { autoOAuthProvider: e } = l;
|
|
1474
1521
|
if (!e)
|
|
1475
1522
|
throw new Error("autoOAuthProvider is not configured in globalConfig");
|
|
1476
1523
|
if (typeof window > "u")
|
|
1477
1524
|
try {
|
|
1478
1525
|
const { signal: r } = b(v);
|
|
1479
|
-
return await
|
|
1526
|
+
return await u(
|
|
1480
1527
|
"security.oauth",
|
|
1481
1528
|
{
|
|
1482
1529
|
action: "getcode",
|
|
@@ -1496,7 +1543,7 @@ const v = 1e4, Ee = async () => {
|
|
|
1496
1543
|
originalUrl: window.location.href
|
|
1497
1544
|
};
|
|
1498
1545
|
try {
|
|
1499
|
-
const { signal: r } = b(v), n = await
|
|
1546
|
+
const { signal: r } = b(v), n = await u(
|
|
1500
1547
|
"api/v1/security.oauth",
|
|
1501
1548
|
t,
|
|
1502
1549
|
{ signal: r }
|
|
@@ -1509,14 +1556,14 @@ const v = 1e4, Ee = async () => {
|
|
|
1509
1556
|
} catch (r) {
|
|
1510
1557
|
throw f("Failed to authenticate with OAuth", r), r;
|
|
1511
1558
|
}
|
|
1512
|
-
},
|
|
1513
|
-
const { autoSAMLProvider: e } =
|
|
1559
|
+
}, ot = async () => {
|
|
1560
|
+
const { autoSAMLProvider: e } = l;
|
|
1514
1561
|
if (!e)
|
|
1515
1562
|
throw new Error("autoSAMLProvider is not configured in globalConfig");
|
|
1516
1563
|
if (typeof window > "u")
|
|
1517
1564
|
try {
|
|
1518
1565
|
const { signal: r } = b(v);
|
|
1519
|
-
return await
|
|
1566
|
+
return await u(
|
|
1520
1567
|
"security.saml",
|
|
1521
1568
|
{
|
|
1522
1569
|
action: "getresponse",
|
|
@@ -1536,7 +1583,7 @@ const v = 1e4, Ee = async () => {
|
|
|
1536
1583
|
originalUrl: window.location.href
|
|
1537
1584
|
};
|
|
1538
1585
|
try {
|
|
1539
|
-
const { signal: r } = b(v), n = await
|
|
1586
|
+
const { signal: r } = b(v), n = await u(
|
|
1540
1587
|
"api/v1/security.saml",
|
|
1541
1588
|
t,
|
|
1542
1589
|
{ signal: r }
|
|
@@ -1564,39 +1611,39 @@ const v = 1e4, Ee = async () => {
|
|
|
1564
1611
|
this.store = {};
|
|
1565
1612
|
}
|
|
1566
1613
|
}, J = H;
|
|
1567
|
-
function
|
|
1614
|
+
function at(e) {
|
|
1568
1615
|
return typeof window > "u" || !window.localStorage ? H.getItem(e) : window.localStorage.getItem(e);
|
|
1569
1616
|
}
|
|
1570
|
-
function
|
|
1617
|
+
function st(e) {
|
|
1571
1618
|
typeof window > "u" || !window.localStorage ? H.removeItem(e) : window.localStorage.removeItem(e);
|
|
1572
1619
|
}
|
|
1573
|
-
function
|
|
1620
|
+
function it(e) {
|
|
1574
1621
|
return typeof window > "u" || !window.sessionStorage ? J.getItem(e) : window.sessionStorage.getItem(e);
|
|
1575
1622
|
}
|
|
1576
|
-
function
|
|
1623
|
+
function ct(e, t) {
|
|
1577
1624
|
typeof window > "u" || !window.sessionStorage ? J.setItem(e, t) : window.sessionStorage.setItem(e, t);
|
|
1578
1625
|
}
|
|
1579
|
-
function
|
|
1626
|
+
function lt(e) {
|
|
1580
1627
|
typeof window > "u" || !window.sessionStorage ? J.removeItem(e) : window.sessionStorage.removeItem(e);
|
|
1581
1628
|
}
|
|
1582
|
-
const
|
|
1629
|
+
const A = (e) => ct(
|
|
1583
1630
|
"sinequa-credentials",
|
|
1584
1631
|
JSON.stringify({ data: { csrfToken: e } })
|
|
1585
|
-
),
|
|
1632
|
+
), ut = async () => {
|
|
1586
1633
|
try {
|
|
1587
|
-
const { signal: e } = b(v), t = await
|
|
1634
|
+
const { signal: e } = b(v), t = await _(
|
|
1588
1635
|
"api/v1/challenge?action=getCsrfToken&suppressErrors=true",
|
|
1589
1636
|
void 0,
|
|
1590
1637
|
{ signal: e }
|
|
1591
1638
|
);
|
|
1592
1639
|
if (t?.csrfToken)
|
|
1593
|
-
return
|
|
1640
|
+
return A(t.csrfToken), t.csrfToken;
|
|
1594
1641
|
throw new Error("No CSRF token returned");
|
|
1595
1642
|
} catch (e) {
|
|
1596
1643
|
throw f("Failed to get CSRF token", e), e;
|
|
1597
1644
|
}
|
|
1598
1645
|
};
|
|
1599
|
-
async function
|
|
1646
|
+
async function ce(e) {
|
|
1600
1647
|
if (e) {
|
|
1601
1648
|
const { username: t, password: r } = e, n = {
|
|
1602
1649
|
action: "get",
|
|
@@ -1607,12 +1654,12 @@ async function st(e) {
|
|
|
1607
1654
|
noAutoAuthentication: !0
|
|
1608
1655
|
};
|
|
1609
1656
|
try {
|
|
1610
|
-
const { signal: o } = b(v), a = await
|
|
1657
|
+
const { signal: o } = b(v), a = await u(
|
|
1611
1658
|
"api/v1/security.webtoken",
|
|
1612
1659
|
n,
|
|
1613
1660
|
{ signal: o }
|
|
1614
1661
|
);
|
|
1615
|
-
return a?.csrfToken ? (
|
|
1662
|
+
return a?.csrfToken ? (A(a.csrfToken), a.csrfToken) : null;
|
|
1616
1663
|
} catch (o) {
|
|
1617
1664
|
throw f("Failed to get JWT", o), o;
|
|
1618
1665
|
}
|
|
@@ -1623,7 +1670,7 @@ async function st(e) {
|
|
|
1623
1670
|
noUserOverride: !0,
|
|
1624
1671
|
noAutoAuthentication: !1
|
|
1625
1672
|
// Allow auto authentication for credentialless requests
|
|
1626
|
-
}, { bearerToken: r } =
|
|
1673
|
+
}, { bearerToken: r } = l;
|
|
1627
1674
|
if (!r)
|
|
1628
1675
|
throw new Error(
|
|
1629
1676
|
"Bearer token is required in globalConfig for credentialless JWT retrieval."
|
|
@@ -1631,100 +1678,96 @@ async function st(e) {
|
|
|
1631
1678
|
const n = new Headers();
|
|
1632
1679
|
n.append("Sinequa-Force-Camel-Case", "true"), n.append("accept", "application/json"), n.append("Content-Type", "application/json"), n.append("Authorization", `Bearer ${r}`);
|
|
1633
1680
|
try {
|
|
1634
|
-
const { signal: o } = b(v), a = await
|
|
1681
|
+
const { signal: o } = b(v), a = await u(
|
|
1635
1682
|
"api/v1/security.webtoken",
|
|
1636
1683
|
t,
|
|
1637
1684
|
{ headers: n, signal: o }
|
|
1638
1685
|
);
|
|
1639
|
-
return a?.csrfToken ? (
|
|
1686
|
+
return a?.csrfToken ? (A(a.csrfToken), a.csrfToken) : null;
|
|
1640
1687
|
} catch (o) {
|
|
1641
1688
|
throw f("Failed to get JWT without credentials", o), o;
|
|
1642
1689
|
}
|
|
1643
1690
|
}
|
|
1644
1691
|
}
|
|
1645
1692
|
const W = () => {
|
|
1646
|
-
const e =
|
|
1693
|
+
const e = it("sinequa-credentials");
|
|
1647
1694
|
if (e)
|
|
1648
1695
|
try {
|
|
1649
1696
|
const n = JSON.parse(e).data?.csrfToken;
|
|
1650
1697
|
if (n) return n;
|
|
1651
1698
|
} catch (r) {
|
|
1652
|
-
|
|
1699
|
+
I(
|
|
1653
1700
|
"Failed to parse session storage credentials, falling back to local storage",
|
|
1654
1701
|
r
|
|
1655
1702
|
);
|
|
1656
1703
|
}
|
|
1657
|
-
const t =
|
|
1704
|
+
const t = at("csrfToken");
|
|
1658
1705
|
return t || null;
|
|
1659
|
-
},
|
|
1660
|
-
if (e)
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
let i = null;
|
|
1664
|
-
try {
|
|
1665
|
-
S("Attempting to retrieve CSRF token from the backend"), i = await at(), x("CSRF token retrieval result", i ? "success" : "failed");
|
|
1666
|
-
} catch {
|
|
1667
|
-
}
|
|
1668
|
-
try {
|
|
1669
|
-
if (i === null) {
|
|
1670
|
-
const { autoOAuthProvider: c, autoSAMLProvider: d, useSAML: _ } = u;
|
|
1671
|
-
if (c && !_)
|
|
1672
|
-
return S("Initiating OAuth authentication flow"), await Ee(), w(!1), !1;
|
|
1673
|
-
if (d)
|
|
1674
|
-
return S("Initiating SAML authentication flow"), await Te(), w(!1), !1;
|
|
1675
|
-
S(
|
|
1676
|
-
"No direct authentication method available, will try SSO then credentials"
|
|
1677
|
-
), k({ useCredentials: !0, useSSO: !0 });
|
|
1678
|
-
} else
|
|
1679
|
-
return S("User authenticated via existing token"), w(!0), !0;
|
|
1680
|
-
} catch (c) {
|
|
1681
|
-
throw f("Unexpected error during authentication", c), w(!1), c;
|
|
1682
|
-
}
|
|
1683
|
-
return !1;
|
|
1706
|
+
}, Lr = async (e) => {
|
|
1707
|
+
if (e) {
|
|
1708
|
+
const { username: r, password: n } = e;
|
|
1709
|
+
return !r || !n ? (f("Credentials are required for authentication"), m(!1), !1) : dt({ username: r, password: n });
|
|
1684
1710
|
}
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1711
|
+
const t = l.authMode ?? g.unknown();
|
|
1712
|
+
if (t.kind === "credentials")
|
|
1713
|
+
return m(!1), !1;
|
|
1714
|
+
if (t.kind === "bearer")
|
|
1715
|
+
return ft();
|
|
1716
|
+
if (W())
|
|
1717
|
+
return S({ isRedirectUrl: !1 }), m(!0), !0;
|
|
1718
|
+
try {
|
|
1719
|
+
if (y("Checking for an existing session via CSRF token retrieval"), await ut())
|
|
1720
|
+
return y("User already authenticated (existing session / SSO)"), t.kind === "unknown" && S({ authMode: g.sso() }), m(!0), !0;
|
|
1721
|
+
} catch {
|
|
1722
|
+
}
|
|
1723
|
+
switch (t.kind) {
|
|
1724
|
+
case "oauth":
|
|
1725
|
+
return y("Initiating OAuth authentication flow"), await nt(), m(!1), !1;
|
|
1726
|
+
case "saml":
|
|
1727
|
+
return y("Initiating SAML authentication flow"), await ot(), m(!1), !1;
|
|
1728
|
+
case "sso":
|
|
1729
|
+
return m(!1), !1;
|
|
1730
|
+
default:
|
|
1731
|
+
return S({ authMode: g.credentials() }), m(!1), !1;
|
|
1732
|
+
}
|
|
1733
|
+
};
|
|
1734
|
+
async function dt(e) {
|
|
1735
|
+
y("Attempting authentication using credentials"), S({ authMode: g.credentials() });
|
|
1736
|
+
const { userOverrideActive: t, useroverride: r } = l;
|
|
1737
|
+
S({ userOverrideActive: !1, useroverride: void 0 });
|
|
1738
|
+
try {
|
|
1739
|
+
await ce(e);
|
|
1740
|
+
} catch (n) {
|
|
1741
|
+
throw m(!1), n;
|
|
1742
|
+
}
|
|
1743
|
+
return S({ userOverrideActive: t, useroverride: r }), m(!0), !0;
|
|
1744
|
+
}
|
|
1745
|
+
async function ft() {
|
|
1746
|
+
try {
|
|
1747
|
+
if (y("Attempting authentication using bearer token"), await ce())
|
|
1748
|
+
return m(!0), !0;
|
|
1749
|
+
} catch (e) {
|
|
1750
|
+
throw f("Bearer authentication failed", e), m(!1), e;
|
|
1751
|
+
}
|
|
1752
|
+
return m(!1), !1;
|
|
1753
|
+
}
|
|
1754
|
+
const ht = async () => {
|
|
1712
1755
|
const e = new URLSearchParams({
|
|
1713
1756
|
action: "deleteWebTokenCookie",
|
|
1714
1757
|
noUserOverride: "true",
|
|
1715
1758
|
noAutoAuthentication: "true"
|
|
1716
1759
|
}), { signal: t } = b(v);
|
|
1717
|
-
return
|
|
1760
|
+
return _(
|
|
1718
1761
|
"api/v1/challenge",
|
|
1719
1762
|
e,
|
|
1720
1763
|
{ signal: t }
|
|
1721
1764
|
);
|
|
1722
1765
|
};
|
|
1723
|
-
async function
|
|
1724
|
-
const { userOverrideActive: e } =
|
|
1725
|
-
if (
|
|
1766
|
+
async function $r() {
|
|
1767
|
+
const { userOverrideActive: e } = l;
|
|
1768
|
+
if (gt(), !e)
|
|
1726
1769
|
try {
|
|
1727
|
-
const { methodresult: t, logoutUrl: r } = await
|
|
1770
|
+
const { methodresult: t, logoutUrl: r } = await ht();
|
|
1728
1771
|
if (t === "ok")
|
|
1729
1772
|
return r;
|
|
1730
1773
|
f("logout failed");
|
|
@@ -1732,137 +1775,141 @@ async function Cr() {
|
|
|
1732
1775
|
f("logout failed", t);
|
|
1733
1776
|
}
|
|
1734
1777
|
}
|
|
1735
|
-
function
|
|
1736
|
-
|
|
1778
|
+
function gt() {
|
|
1779
|
+
st("csrfToken"), lt("sinequa-credentials"), m(!1);
|
|
1737
1780
|
}
|
|
1738
|
-
const
|
|
1781
|
+
const Ur = () => !!W();
|
|
1739
1782
|
export {
|
|
1740
|
-
|
|
1783
|
+
ir as API,
|
|
1741
1784
|
R as ApiError,
|
|
1742
|
-
|
|
1785
|
+
Kt as Audit,
|
|
1743
1786
|
C as AuditEventType,
|
|
1744
|
-
|
|
1787
|
+
g as AuthMode,
|
|
1788
|
+
Ce as DidYouMeanKind,
|
|
1745
1789
|
h as EngineType,
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1790
|
+
w as EngineTypeModifier,
|
|
1791
|
+
ne as LogLevel,
|
|
1792
|
+
Vt as MINIMUM_COMPATIBLE_SERVER_API_VERSION,
|
|
1793
|
+
Re as RFMDisplay,
|
|
1794
|
+
T as ServerError,
|
|
1795
|
+
Se as TimeoutError,
|
|
1752
1796
|
V as UnauthorizedError,
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1797
|
+
U as addAuditAdditionalInfo,
|
|
1798
|
+
St as addConcepts,
|
|
1799
|
+
Ne as addSessionId,
|
|
1800
|
+
qe as addUrl,
|
|
1801
|
+
ue as aggItemRegex,
|
|
1802
|
+
wt as aggregationItemStrictCompare,
|
|
1803
|
+
Tt as appInitializerFn,
|
|
1804
|
+
kt as bisect,
|
|
1761
1805
|
z as buildPathsAndLevels,
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1806
|
+
gt as clearSessionTokens,
|
|
1807
|
+
qt as configureLogger,
|
|
1808
|
+
$ as createHeaders,
|
|
1765
1809
|
b as createTimeoutController,
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1810
|
+
Rr as createUserProfile,
|
|
1811
|
+
L as debug,
|
|
1812
|
+
be as del,
|
|
1813
|
+
yr as deleteUserProfileProperty,
|
|
1814
|
+
Sr as deleteUserSettings,
|
|
1815
|
+
ht as deleteWebTokenCookie,
|
|
1816
|
+
je as detectAuthMode,
|
|
1817
|
+
m as emitAuthenticatedEvent,
|
|
1773
1818
|
f as error,
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1819
|
+
Xt as escapeExpr,
|
|
1820
|
+
Mt as expiresSoon,
|
|
1821
|
+
Gt as extraColumns,
|
|
1822
|
+
Zt as fetchAggregation,
|
|
1823
|
+
Et as fetchApp,
|
|
1824
|
+
Qe as fetchAppPreLogin,
|
|
1825
|
+
lr as fetchBulkQuery,
|
|
1826
|
+
br as fetchChangePassword,
|
|
1827
|
+
er as fetchDataset,
|
|
1828
|
+
rr as fetchDatasetList,
|
|
1829
|
+
tr as fetchDatasets,
|
|
1830
|
+
nr as fetchLabels,
|
|
1831
|
+
ar as fetchPreview,
|
|
1832
|
+
sr as fetchPreviewUrl,
|
|
1833
|
+
Ke as fetchPrincipal,
|
|
1834
|
+
Ze as fetchPrincipalList,
|
|
1835
|
+
Ee as fetchPrincipalUserid,
|
|
1836
|
+
Te as fetchPrincipalUserids,
|
|
1837
|
+
cr as fetchQuery,
|
|
1838
|
+
ur as fetchQueryExport,
|
|
1839
|
+
dr as fetchQueryIntent,
|
|
1840
|
+
vr as fetchSendPasswordResetEmail,
|
|
1841
|
+
fr as fetchSimilarDocuments,
|
|
1842
|
+
hr as fetchSponsoredLinks,
|
|
1843
|
+
gr as fetchSuggest,
|
|
1844
|
+
mr as fetchSuggestField,
|
|
1845
|
+
pr as fetchSuggestQuery,
|
|
1846
|
+
wr as fetchTextChunks,
|
|
1847
|
+
Cr as fetchUserProfile,
|
|
1848
|
+
_r as fetchUserSettings,
|
|
1849
|
+
xr as fetchVersion,
|
|
1850
|
+
zt as filter,
|
|
1851
|
+
_ as get,
|
|
1852
|
+
Ct as getConcepts,
|
|
1853
|
+
ut as getCsrfToken,
|
|
1854
|
+
re as getFiltersFromURI,
|
|
1855
|
+
Lt as getFiltersFromUrl,
|
|
1856
|
+
At as getHelpIndexUrl,
|
|
1857
|
+
Ut as getIdFromUrl,
|
|
1858
|
+
ce as getJWToken,
|
|
1859
|
+
Ht as getMetadata,
|
|
1860
|
+
Jt as getMetadataWithValues,
|
|
1861
|
+
ke as getOffsetFromDates,
|
|
1862
|
+
Ot as getQueryPageFromUrl,
|
|
1863
|
+
yt as getQueryParamsFromUrl,
|
|
1864
|
+
Dt as getQueryTabFromUrl,
|
|
1865
|
+
$t as getQueryTextFromUrl,
|
|
1866
|
+
Rt as getRelativeDate,
|
|
1867
|
+
De as getTime,
|
|
1823
1868
|
W as getToken,
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1869
|
+
xt as getUrlParamsFromQueryParams,
|
|
1870
|
+
l as globalConfig,
|
|
1871
|
+
Ie as guid,
|
|
1827
1872
|
P as handleResponse,
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1873
|
+
y as info,
|
|
1874
|
+
Ve as initializeAppConfig,
|
|
1875
|
+
Le as isArrayBuffer,
|
|
1876
|
+
Ur as isAuthenticated,
|
|
1877
|
+
$e as isBlob,
|
|
1878
|
+
Ue as isDate,
|
|
1879
|
+
Bt as isExpired,
|
|
1880
|
+
Wt as isJsonable,
|
|
1881
|
+
Pt as isNotInputEvent,
|
|
1882
|
+
F as isObject,
|
|
1837
1883
|
Oe as isString,
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1884
|
+
or as labels,
|
|
1885
|
+
le as legacyBooleansToAuthMode,
|
|
1886
|
+
Lr as login,
|
|
1887
|
+
$r as logout,
|
|
1888
|
+
p as makeColumn,
|
|
1889
|
+
Nt as notify,
|
|
1890
|
+
fe as openParentNodes,
|
|
1891
|
+
N as parseText,
|
|
1892
|
+
de as parseValueAndOperatorFromItem,
|
|
1893
|
+
ve as patch,
|
|
1894
|
+
Pr as patchUserProfile,
|
|
1895
|
+
kr as patchUserSettings,
|
|
1896
|
+
u as post,
|
|
1897
|
+
Ft as put,
|
|
1898
|
+
x as queryParamsFromUrl,
|
|
1899
|
+
bt as removeConcept,
|
|
1900
|
+
vt as removeConcepts,
|
|
1901
|
+
Qt as resolveToColumnName,
|
|
1855
1902
|
G as rewriteText,
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1903
|
+
rt as saveUserSettings,
|
|
1904
|
+
S as setGlobalConfig,
|
|
1905
|
+
A as setToken,
|
|
1906
|
+
Yt as sha512,
|
|
1907
|
+
_t as suggestionsToTreeAggregationNodes,
|
|
1908
|
+
It as sysLang,
|
|
1909
|
+
oe as toDate,
|
|
1910
|
+
mt as translateAggregationToDateOptions,
|
|
1911
|
+
nt as tryOAuthAuthentication,
|
|
1912
|
+
ot as trySAMLAuthentication,
|
|
1913
|
+
I as warn,
|
|
1914
|
+
jt as withRetry
|
|
1868
1915
|
};
|