@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 CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  OpenGeniClient
3
- } from "./chunk-L2APU4LV.js";
4
- import "./chunk-FGXR55F2.js";
5
- import "./chunk-7WSXZWWJ.js";
3
+ } from "./chunk-VPU5C3A5.js";
4
+ import "./chunk-KOU5FJJT.js";
5
+ import "./chunk-BSAOFIDV.js";
6
6
  import "./chunk-QTBAMHEF.js";
7
- import "./chunk-RM352F3Q.js";
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-7WSXZWWJ.js";
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-RM352F3Q.js";
16
+ } from "./chunk-PH6HK24S.js";
17
17
  import {
18
18
  OpenGeniApiContractMismatchError,
19
19
  OpenGeniApiError,
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  OpenGeniEmbeddingClient
3
- } from "../chunk-NX2WU4BY.js";
4
- import "../chunk-L2APU4LV.js";
5
- import "../chunk-FGXR55F2.js";
3
+ } from "../chunk-HNHWTDFC.js";
4
+ import "../chunk-VPU5C3A5.js";
5
+ import "../chunk-KOU5FJJT.js";
6
6
  import {
7
7
  parseSseStream
8
- } from "../chunk-7WSXZWWJ.js";
8
+ } from "../chunk-BSAOFIDV.js";
9
9
  import "../chunk-QTBAMHEF.js";
10
- import "../chunk-RM352F3Q.js";
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-RM352F3Q.js";
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-7WSXZWWJ.js.map
6324
+ //# sourceMappingURL=chunk-BSAOFIDV.js.map