@opengeni/sdk 5.1.0-canary.2 → 6.0.0-canary.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.
@@ -0,0 +1,31 @@
1
+ import type { RetainedArtifactReference } from "./types.js";
2
+ export type ArtifactCatalogKind = "site" | "document" | "spreadsheet" | "presentation" | "image" | "file";
3
+ /** Native IDs are unique within a kind; use `${kind}:${id}` as a UI key. */
4
+ export type ArtifactCatalogItem = {
5
+ id: string;
6
+ kind: ArtifactCatalogKind;
7
+ title: string;
8
+ createdAt: string;
9
+ updatedAt: string;
10
+ status: "active" | "archived";
11
+ /** Present only when the viewer can read this session. */
12
+ sourceSessionId?: string;
13
+ versionId?: string;
14
+ file?: RetainedArtifactReference;
15
+ filename?: string;
16
+ contentType?: string;
17
+ sizeBytes?: number;
18
+ };
19
+ export type ArtifactCatalogListOptions = {
20
+ sourceSessionId?: string;
21
+ q?: string;
22
+ kind?: ArtifactCatalogKind;
23
+ sort?: "updated" | "newest" | "title";
24
+ status?: "active" | "archived";
25
+ limit?: number;
26
+ cursor?: string;
27
+ };
28
+ export type ArtifactCatalogListResponse = {
29
+ items: ArtifactCatalogItem[];
30
+ nextCursor: string | null;
31
+ };
package/dist/artifacts.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  OpenGeniClient
3
- } from "./chunk-DH2QOVSC.js";
4
- import "./chunk-AO5ZOWBW.js";
5
- import "./chunk-PO4OQGHP.js";
3
+ } from "./chunk-4ZQQQBOH.js";
4
+ import "./chunk-IZH5F7QC.js";
5
+ import "./chunk-64S3VKJU.js";
6
6
  import "./chunk-QTBAMHEF.js";
7
7
  import "./chunk-CMEU67C4.js";
8
8
  import "./chunk-OO5LPTO7.js";
package/dist/browser.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-FMLDFJ2Q.js";
9
9
  import {
10
10
  OpenGeniClient
11
- } from "./chunk-PO4OQGHP.js";
11
+ } from "./chunk-64S3VKJU.js";
12
12
  import "./chunk-QTBAMHEF.js";
13
13
  import {
14
14
  OPENGENI_API_CONTRACT_HEADER,
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  OpenGeniEmbeddingClient
3
- } from "../chunk-RE52C4D3.js";
4
- import "../chunk-DH2QOVSC.js";
5
- import "../chunk-AO5ZOWBW.js";
3
+ } from "../chunk-VDACQXJZ.js";
4
+ import "../chunk-4ZQQQBOH.js";
5
+ import "../chunk-IZH5F7QC.js";
6
6
  import {
7
7
  parseSseStream
8
- } from "../chunk-PO4OQGHP.js";
8
+ } from "../chunk-64S3VKJU.js";
9
9
  import "../chunk-QTBAMHEF.js";
10
10
  import "../chunk-CMEU67C4.js";
11
11
  import {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  OpenGeniDocumentAuthorityClient
3
- } from "./chunk-AO5ZOWBW.js";
3
+ } from "./chunk-IZH5F7QC.js";
4
4
 
5
5
  // src/artifact-client.ts
6
6
  var OpenGeniClient = class extends OpenGeniDocumentAuthorityClient {
@@ -121,4 +121,4 @@ var OpenGeniClient = class extends OpenGeniDocumentAuthorityClient {
121
121
  export {
122
122
  OpenGeniClient
123
123
  };
124
- //# sourceMappingURL=chunk-DH2QOVSC.js.map
124
+ //# sourceMappingURL=chunk-4ZQQQBOH.js.map
@@ -4860,6 +4860,29 @@ var OpenGeniClient = class {
4860
4860
  `/v1/workspaces/${workspaceId}/capabilities/${encodeURIComponent(capabilityId)}/disable`
4861
4861
  );
4862
4862
  }
4863
+ /** Read-only, permission-filtered workspace or session output discovery. */
4864
+ async listArtifactCatalog(workspaceId, options = {}) {
4865
+ const query = new URLSearchParams();
4866
+ for (const key of [
4867
+ "sourceSessionId",
4868
+ "q",
4869
+ "kind",
4870
+ "sort",
4871
+ "status",
4872
+ "limit",
4873
+ "cursor"
4874
+ ]) {
4875
+ if (options[key] !== void 0) query.set(key, String(options[key]));
4876
+ }
4877
+ const suffix = query.size ? `?${query.toString()}` : "";
4878
+ return this.requestJson(
4879
+ "GET",
4880
+ `/v1/workspaces/${encodeURIComponent(workspaceId)}/artifact-catalog${suffix}`,
4881
+ void 0,
4882
+ void 0,
4883
+ options
4884
+ );
4885
+ }
4863
4886
  async listWorkspaceArtifacts(workspaceId, options = {}) {
4864
4887
  const query = new URLSearchParams();
4865
4888
  if (options.limit !== void 0) query.set("limit", String(options.limit));
@@ -6246,4 +6269,4 @@ export {
6246
6269
  parseMediaGenerationResult,
6247
6270
  OpenGeniClient
6248
6271
  };
6249
- //# sourceMappingURL=chunk-PO4OQGHP.js.map
6272
+ //# sourceMappingURL=chunk-64S3VKJU.js.map