@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.
- package/dist/artifact-catalog.d.ts +31 -0
- package/dist/artifacts.js +3 -3
- package/dist/browser.js +1 -1
- package/dist/chat/index.js +4 -4
- package/dist/{chunk-DH2QOVSC.js → chunk-4ZQQQBOH.js} +2 -2
- package/dist/{chunk-PO4OQGHP.js → chunk-64S3VKJU.js} +24 -1
- package/dist/chunk-64S3VKJU.js.map +1 -0
- package/dist/{chunk-BB3X77UG.js → chunk-CFSYTYMA.js} +2 -2
- package/dist/{chunk-AO5ZOWBW.js → chunk-IZH5F7QC.js} +2 -2
- package/dist/{chunk-RE52C4D3.js → chunk-VDACQXJZ.js} +2 -2
- package/dist/client.d.ts +5 -0
- package/dist/core.js +2 -2
- package/dist/document-authority.js +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +5 -5
- 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 +2 -2
- package/package.json +3 -3
- package/src/artifact-catalog.ts +41 -0
- package/src/client.ts +28 -0
- package/src/index.ts +6 -0
- package/src/site-browser-runtime.gen.ts +1 -1
- package/dist/chunk-PO4OQGHP.js.map +0 -1
- /package/dist/{chunk-DH2QOVSC.js.map → chunk-4ZQQQBOH.js.map} +0 -0
- /package/dist/{chunk-BB3X77UG.js.map → chunk-CFSYTYMA.js.map} +0 -0
- /package/dist/{chunk-AO5ZOWBW.js.map → chunk-IZH5F7QC.js.map} +0 -0
- /package/dist/{chunk-RE52C4D3.js.map → chunk-VDACQXJZ.js.map} +0 -0
|
@@ -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-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
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
package/dist/chat/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OpenGeniEmbeddingClient
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-VDACQXJZ.js";
|
|
4
|
+
import "../chunk-4ZQQQBOH.js";
|
|
5
|
+
import "../chunk-IZH5F7QC.js";
|
|
6
6
|
import {
|
|
7
7
|
parseSseStream
|
|
8
|
-
} from "../chunk-
|
|
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-
|
|
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-
|
|
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-
|
|
6272
|
+
//# sourceMappingURL=chunk-64S3VKJU.js.map
|