@eyepop.ai/eyepop 1.0.4 → 1.1.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/eyepop.index.d.mts
CHANGED
package/dist/eyepop.index.d.ts
CHANGED
package/dist/eyepop.index.js
CHANGED
|
@@ -10870,6 +10870,21 @@ var DataEndpoint = class extends Endpoint {
|
|
|
10870
10870
|
} else {
|
|
10871
10871
|
await this.reconnect_ws();
|
|
10872
10872
|
}
|
|
10873
|
+
if (this.options().useCookie) {
|
|
10874
|
+
const client = this._client;
|
|
10875
|
+
const url = urlJoin(this._baseUrl, "security", "check?set_cookie=true");
|
|
10876
|
+
const headers2 = {
|
|
10877
|
+
"Authorization": await this.authorizationHeader()
|
|
10878
|
+
};
|
|
10879
|
+
response = await client.fetch(url, {
|
|
10880
|
+
headers: headers2
|
|
10881
|
+
});
|
|
10882
|
+
if (response.status != 204) {
|
|
10883
|
+
this.updateState("Error" /* Error */);
|
|
10884
|
+
const message = await response.text();
|
|
10885
|
+
return Promise.reject(`Unexpected status ${response.status}: ${message}`);
|
|
10886
|
+
}
|
|
10887
|
+
}
|
|
10873
10888
|
this.updateState();
|
|
10874
10889
|
return Promise.resolve(this);
|
|
10875
10890
|
}
|
|
@@ -10942,6 +10957,9 @@ var DataEndpoint = class extends Endpoint {
|
|
|
10942
10957
|
if (!baseUrl || !client) {
|
|
10943
10958
|
return Promise.reject("endpoint not connected");
|
|
10944
10959
|
}
|
|
10960
|
+
if (!disableAuth && this.options().useCookie) {
|
|
10961
|
+
disableAuth = true;
|
|
10962
|
+
}
|
|
10945
10963
|
let response = await this.fetchWithRetry(async () => {
|
|
10946
10964
|
const session = await this.session();
|
|
10947
10965
|
const headers = {
|
|
@@ -11329,7 +11347,7 @@ var EyePop;
|
|
|
11329
11347
|
domain: "dev-eyepop.us.auth0.com",
|
|
11330
11348
|
clientId: "jktx3YO2UnbkNPvr05PQWf26t1kNTJyg",
|
|
11331
11349
|
audience: "https://dev-app.eyepop.ai",
|
|
11332
|
-
scope: "admin:clouds"
|
|
11350
|
+
scope: "admin:clouds access:inference-api access:datasets"
|
|
11333
11351
|
}
|
|
11334
11352
|
};
|
|
11335
11353
|
} else {
|
|
@@ -11338,7 +11356,7 @@ var EyePop;
|
|
|
11338
11356
|
domain: "eyepop.us.auth0.com",
|
|
11339
11357
|
clientId: "Lb9ubA9Hf3jlaqWLUx8XgA0zvotgViCl",
|
|
11340
11358
|
audience: "https://api.eyepop.ai",
|
|
11341
|
-
scope: "admin:clouds"
|
|
11359
|
+
scope: "admin:clouds access:inference-api access:datasets"
|
|
11342
11360
|
}
|
|
11343
11361
|
};
|
|
11344
11362
|
}
|