@opengeni/sdk 6.1.0-canary.0 → 6.1.0-canary.2
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/artifacts.js +4 -4
- package/dist/browser.js +2 -2
- package/dist/chat/index.js +5 -5
- package/dist/{chunk-7WSXZWWJ.js → chunk-BSAOFIDV.js} +10 -3
- package/dist/chunk-BSAOFIDV.js.map +1 -0
- package/dist/{chunk-NX2WU4BY.js → chunk-HNHWTDFC.js} +2 -2
- package/dist/{chunk-FGXR55F2.js → chunk-KOU5FJJT.js} +2 -2
- package/dist/{chunk-RM352F3Q.js → chunk-PH6HK24S.js} +1 -1
- package/dist/chunk-PH6HK24S.js.map +1 -0
- package/dist/{chunk-B2ZC3AJC.js → chunk-QYMJJ2DE.js} +2 -2
- package/dist/{chunk-L2APU4LV.js → chunk-VPU5C3A5.js} +2 -2
- package/dist/client.d.ts +2 -0
- package/dist/core.js +3 -3
- package/dist/document-authority.js +3 -3
- package/dist/editable-artifacts.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -6
- package/dist/site-browser-runtime.gen.d.ts +1 -1
- package/dist/site-document.js +1 -1
- package/dist/site-document.js.map +1 -1
- package/dist/site.js +3 -3
- package/dist/types.d.ts +16 -0
- package/package.json +3 -3
- package/src/client.ts +14 -0
- package/src/index.ts +2 -0
- package/src/site-browser-runtime.gen.ts +1 -1
- package/src/types.ts +14 -0
- package/dist/chunk-7WSXZWWJ.js.map +0 -1
- package/dist/chunk-RM352F3Q.js.map +0 -1
- /package/dist/{chunk-NX2WU4BY.js.map → chunk-HNHWTDFC.js.map} +0 -0
- /package/dist/{chunk-FGXR55F2.js.map → chunk-KOU5FJJT.js.map} +0 -0
- /package/dist/{chunk-B2ZC3AJC.js.map → chunk-QYMJJ2DE.js.map} +0 -0
- /package/dist/{chunk-L2APU4LV.js.map → chunk-VPU5C3A5.js.map} +0 -0
package/dist/artifacts.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OpenGeniClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-VPU5C3A5.js";
|
|
4
|
+
import "./chunk-KOU5FJJT.js";
|
|
5
|
+
import "./chunk-BSAOFIDV.js";
|
|
6
6
|
import "./chunk-QTBAMHEF.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-PH6HK24S.js";
|
|
8
8
|
import "./chunk-OO5LPTO7.js";
|
|
9
9
|
export {
|
|
10
10
|
OpenGeniClient
|
package/dist/browser.js
CHANGED
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
} from "./chunk-FMLDFJ2Q.js";
|
|
9
9
|
import {
|
|
10
10
|
OpenGeniClient
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-BSAOFIDV.js";
|
|
12
12
|
import "./chunk-QTBAMHEF.js";
|
|
13
13
|
import {
|
|
14
14
|
OPENGENI_API_CONTRACT_HEADER,
|
|
15
15
|
OPENGENI_API_CONTRACT_REVISION
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-PH6HK24S.js";
|
|
17
17
|
import {
|
|
18
18
|
OpenGeniApiContractMismatchError,
|
|
19
19
|
OpenGeniApiError,
|
package/dist/chat/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OpenGeniEmbeddingClient
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-HNHWTDFC.js";
|
|
4
|
+
import "../chunk-VPU5C3A5.js";
|
|
5
|
+
import "../chunk-KOU5FJJT.js";
|
|
6
6
|
import {
|
|
7
7
|
parseSseStream
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-BSAOFIDV.js";
|
|
9
9
|
import "../chunk-QTBAMHEF.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-PH6HK24S.js";
|
|
11
11
|
import {
|
|
12
12
|
OpenGeniApiError
|
|
13
13
|
} from "../chunk-OO5LPTO7.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
OPENGENI_API_CONTRACT_REVISION,
|
|
10
10
|
OPENGENI_CORRELATION_HEADER,
|
|
11
11
|
RETAINED_OUTPUT_MAX_PAGE_BYTES
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PH6HK24S.js";
|
|
13
13
|
import {
|
|
14
14
|
OpenGeniApiContractMismatchError,
|
|
15
15
|
OpenGeniApiError,
|
|
@@ -1229,7 +1229,9 @@ var OpenGeniClient = class {
|
|
|
1229
1229
|
...options.createdFrom ? { createdFrom: options.createdFrom } : {},
|
|
1230
1230
|
...options.createdBefore ? { createdBefore: options.createdBefore } : {},
|
|
1231
1231
|
...options.pinsOnly ? { pinsOnly: "true" } : {},
|
|
1232
|
-
...options.archivedOnly ? { archivedOnly: "true" } : {}
|
|
1232
|
+
...options.archivedOnly ? { archivedOnly: "true" } : {},
|
|
1233
|
+
...options.sortBy ? { sortBy: options.sortBy } : {},
|
|
1234
|
+
...options.archiveStatus ? { archiveStatus: options.archiveStatus } : {}
|
|
1233
1235
|
},
|
|
1234
1236
|
{ signal: options.signal }
|
|
1235
1237
|
);
|
|
@@ -1245,6 +1247,11 @@ var OpenGeniClient = class {
|
|
|
1245
1247
|
}
|
|
1246
1248
|
throw error;
|
|
1247
1249
|
}
|
|
1250
|
+
if (options.sortBy !== void 0 && (Array.isArray(response) || response.sortBy !== options.sortBy) || options.archiveStatus !== void 0 && (Array.isArray(response) || response.archiveStatus !== options.archiveStatus)) {
|
|
1251
|
+
throw new Error(
|
|
1252
|
+
"The connected OpenGeni API does not support the requested session sorting/archive filter"
|
|
1253
|
+
);
|
|
1254
|
+
}
|
|
1248
1255
|
if (Array.isArray(response)) {
|
|
1249
1256
|
if (options.cursor) {
|
|
1250
1257
|
throw new Error("The connected OpenGeni API does not support stable session-page cursors");
|
|
@@ -6314,4 +6321,4 @@ export {
|
|
|
6314
6321
|
parseMediaGenerationResult,
|
|
6315
6322
|
OpenGeniClient
|
|
6316
6323
|
};
|
|
6317
|
-
//# sourceMappingURL=chunk-
|
|
6324
|
+
//# sourceMappingURL=chunk-BSAOFIDV.js.map
|