@opengeni/sdk 1.0.2 → 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.
Files changed (40) hide show
  1. package/dist/adapters/next.js +2 -2
  2. package/dist/artifact-catalog.d.ts +7 -0
  3. package/dist/artifacts.js +4 -4
  4. package/dist/browser.js +2 -2
  5. package/dist/chat/index.js +8 -7
  6. package/dist/chat/index.js.map +1 -1
  7. package/dist/{chunk-FG3OO5LM.js → chunk-BNZNLUD4.js} +12 -2
  8. package/dist/chunk-BNZNLUD4.js.map +1 -0
  9. package/dist/{chunk-AH5D5Q5V.js → chunk-E3KHK7FG.js} +2 -2
  10. package/dist/{chunk-MOTJYIYL.js → chunk-H6WMYN23.js} +2 -2
  11. package/dist/{chunk-YIKA2QT4.js → chunk-RLLUZFOW.js} +1 -1
  12. package/dist/{chunk-YIKA2QT4.js.map → chunk-RLLUZFOW.js.map} +1 -1
  13. package/dist/{chunk-DUVIYER4.js → chunk-T6HNHCN2.js} +2 -2
  14. package/dist/{chunk-RWKB6YZG.js → chunk-YH3W3HZZ.js} +2 -2
  15. package/dist/{chunk-HMGADJGZ.js → chunk-ZBMS2HCV.js} +2 -2
  16. package/dist/client.d.ts +5 -1
  17. package/dist/core.js +3 -3
  18. package/dist/document-authority.js +3 -3
  19. package/dist/editable-artifacts.js +1 -1
  20. package/dist/index.d.ts +1 -1
  21. package/dist/index.js +7 -7
  22. package/dist/session-proxy.js +2 -2
  23. package/dist/site-browser-runtime.gen.d.ts +1 -1
  24. package/dist/site-document.js +1 -1
  25. package/dist/site-document.js.map +1 -1
  26. package/dist/site.js +3 -3
  27. package/dist/types.d.ts +1 -1
  28. package/package.json +5 -4
  29. package/src/artifact-catalog.ts +8 -0
  30. package/src/chat/opengeni.ts +3 -2
  31. package/src/client.ts +23 -1
  32. package/src/index.ts +1 -0
  33. package/src/site-browser-runtime.gen.ts +1 -1
  34. package/src/types.ts +1 -0
  35. package/dist/chunk-FG3OO5LM.js.map +0 -1
  36. /package/dist/{chunk-AH5D5Q5V.js.map → chunk-E3KHK7FG.js.map} +0 -0
  37. /package/dist/{chunk-MOTJYIYL.js.map → chunk-H6WMYN23.js.map} +0 -0
  38. /package/dist/{chunk-DUVIYER4.js.map → chunk-T6HNHCN2.js.map} +0 -0
  39. /package/dist/{chunk-RWKB6YZG.js.map → chunk-YH3W3HZZ.js.map} +0 -0
  40. /package/dist/{chunk-HMGADJGZ.js.map → chunk-ZBMS2HCV.js.map} +0 -0
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-4SMEOV3P.js";
4
4
  import {
5
5
  OpenGeniClient
6
- } from "./chunk-FG3OO5LM.js";
6
+ } from "./chunk-BNZNLUD4.js";
7
7
  import {
8
8
  OpenGeniApiError
9
9
  } from "./chunk-V6GIY62B.js";
@@ -636,4 +636,4 @@ export {
636
636
  isOpenGeniSiteBridgeCancelMessage,
637
637
  sanitizeOpenGeniSiteToolCallRequest
638
638
  };
639
- //# sourceMappingURL=chunk-DUVIYER4.js.map
639
+ //# sourceMappingURL=chunk-T6HNHCN2.js.map
@@ -11,7 +11,7 @@ import {
11
11
  import {
12
12
  OPENGENI_API_CONTRACT_HEADER,
13
13
  OPENGENI_API_CONTRACT_REVISION
14
- } from "./chunk-YIKA2QT4.js";
14
+ } from "./chunk-RLLUZFOW.js";
15
15
  import {
16
16
  OpenGeniApiError,
17
17
  OpenGeniSetupError
@@ -1267,4 +1267,4 @@ export {
1267
1267
  createSessionProxyHandler,
1268
1268
  artifactViewerCapability
1269
1269
  };
1270
- //# sourceMappingURL=chunk-RWKB6YZG.js.map
1270
+ //# sourceMappingURL=chunk-YH3W3HZZ.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  OpenGeniClient
3
- } from "./chunk-FG3OO5LM.js";
3
+ } from "./chunk-BNZNLUD4.js";
4
4
 
5
5
  // src/document-authority-client.ts
6
6
  var OpenGeniDocumentAuthorityClient = class extends OpenGeniClient {
@@ -147,4 +147,4 @@ var OpenGeniDocumentAuthorityClient = class extends OpenGeniClient {
147
147
  export {
148
148
  OpenGeniDocumentAuthorityClient
149
149
  };
150
- //# sourceMappingURL=chunk-HMGADJGZ.js.map
150
+ //# sourceMappingURL=chunk-ZBMS2HCV.js.map
package/dist/client.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { ClaudeSubscriptionAccountsResponse, ClaudeSubscriptionAccount, ClaudeSubscriptionOAuthStartRequest, ClaudeSubscriptionSetupTokenRequest, SubscriptionPoolSettings } from "@opengeni/contracts";
2
- import type { ArtifactCatalogListOptions, ArtifactCatalogListResponse } from "./artifact-catalog.js";
2
+ import type { ArtifactCatalogKind, ArtifactCatalogListOptions, ArtifactCatalogListResponse, ArtifactPinResponse } from "./artifact-catalog.js";
3
3
  import type { SessionMessageSearchRequest, SessionMessageSearchResponse, SessionMessagePreview, SessionMessagePreviewReference } from "./session-message-search.js";
4
4
  import type { KnowledgeOriginalFileDownload, AgentLearningContext, AgentLearningSettingsRecord, AgentLearningOverrideRecord, SaveAgentLearningSettingsRequest, KnowledgeEntryListRequest, KnowledgeEntryListResponse, KnowledgeReviewBatchListRequest, KnowledgeReviewBatchListResponse, KnowledgeEntryRecord, KnowledgeEntrySaveRequest, KnowledgeEntryWriteReceipt, KnowledgeEntryReviewRequest, KnowledgeEntryBatchReviewRequest, KnowledgeEntryRestoreRequest, AgentInstructionReviewRequest, AgentInstructionReceipt, AgentInstructionReviewListResponse } from "./knowledge.js";
5
5
  import type { RollbackWorkspaceArtifactRequest, SetWorkspaceArtifactStatusRequest, WorkspaceArtifactDetailResponse, WorkspaceArtifactListOptions, WorkspaceArtifactListResponse, WorkspaceArtifactMutationResponse } from "./workspace-artifacts.js";
@@ -1225,6 +1225,10 @@ export declare class OpenGeniClient {
1225
1225
  listArtifactCatalog(workspaceId: string, options?: ArtifactCatalogListOptions & {
1226
1226
  signal?: AbortSignal;
1227
1227
  }): Promise<ArtifactCatalogListResponse>;
1228
+ /** Idempotently set a workspace-shared pin; refresh the catalog after completion. */
1229
+ updateArtifactPin(workspaceId: string, kind: ArtifactCatalogKind, artifactId: string, pinned: boolean, options?: {
1230
+ signal?: AbortSignal;
1231
+ }): Promise<ArtifactPinResponse>;
1228
1232
  listWorkspaceArtifacts(workspaceId: string, options?: WorkspaceArtifactListOptions & {
1229
1233
  signal?: AbortSignal;
1230
1234
  }): Promise<WorkspaceArtifactListResponse>;
package/dist/core.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-VYCTL62C.js";
4
4
  import {
5
5
  OpenGeniDocumentAuthorityClient
6
- } from "./chunk-HMGADJGZ.js";
6
+ } from "./chunk-ZBMS2HCV.js";
7
7
  import {
8
8
  OpenGeniToolCallError,
9
9
  OpenGeniToolReapprovalRequiredError,
@@ -11,12 +11,12 @@ import {
11
11
  } from "./chunk-4SMEOV3P.js";
12
12
  import {
13
13
  parseDeprecationNotice
14
- } from "./chunk-FG3OO5LM.js";
14
+ } from "./chunk-BNZNLUD4.js";
15
15
  import "./chunk-APXVSSSY.js";
16
16
  import {
17
17
  OPENGENI_API_CONTRACT_HEADER,
18
18
  OPENGENI_API_CONTRACT_REVISION
19
- } from "./chunk-YIKA2QT4.js";
19
+ } from "./chunk-RLLUZFOW.js";
20
20
  import "./chunk-NC57YMUO.js";
21
21
  import {
22
22
  OpenGeniApiContractMismatchError,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  OpenGeniDocumentAuthorityClient
3
- } from "./chunk-HMGADJGZ.js";
4
- import "./chunk-FG3OO5LM.js";
3
+ } from "./chunk-ZBMS2HCV.js";
4
+ import "./chunk-BNZNLUD4.js";
5
5
  import "./chunk-APXVSSSY.js";
6
- import "./chunk-YIKA2QT4.js";
6
+ import "./chunk-RLLUZFOW.js";
7
7
  import "./chunk-NC57YMUO.js";
8
8
  import "./chunk-V6GIY62B.js";
9
9
  export {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  OPENGENI_API_CONTRACT_HEADER,
3
3
  OPENGENI_API_CONTRACT_REVISION
4
- } from "./chunk-YIKA2QT4.js";
4
+ } from "./chunk-RLLUZFOW.js";
5
5
  import {
6
6
  DEFAULT_ARTIFACT_WORKER_RPC_LIMITS,
7
7
  decodeArtifactWorkerRpcMessage,
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export type { SubscriptionAccountSummary, SubscriptionPoolSettings, ClaudeSubscriptionSetupTokenRequest, ClaudeSubscriptionAccount, ClaudeSubscriptionAccountsResponse, } from "@opengeni/contracts";
2
- export type { ArtifactCatalogKind, ArtifactCatalogItem, ArtifactCatalogListOptions, ArtifactCatalogListResponse, } from "./artifact-catalog.js";
2
+ export type { ArtifactPinResponse, ArtifactCatalogKind, ArtifactCatalogItem, ArtifactCatalogListOptions, ArtifactCatalogListResponse, } from "./artifact-catalog.js";
3
3
  export type { SessionMessageSearchRequest, SessionMessageSearchMatch, SessionMessageSearchResponse, SessionMessagePreview, SessionMessagePreviewReference, } from "./session-message-search.js";
4
4
  export { OpenGeniEmbeddingClient as OpenGeniClient } from "./embedding-client.js";
5
5
  export type { Chats } from "./chats.js";
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  EMPTY_FINAL_REPLY_NOTICE,
3
3
  OpenGeniEmbeddingClient,
4
4
  turnCompletedWithEmptyFinalReply
5
- } from "./chunk-MOTJYIYL.js";
5
+ } from "./chunk-H6WMYN23.js";
6
6
  import {
7
7
  DEFAULT_WORKSPACE_TRANSCRIPTION_POLICY,
8
8
  authorizeTranscriptionAdapter,
@@ -35,8 +35,8 @@ import {
35
35
  projectSessionRealtimeLifecycle,
36
36
  startCodexRealtimeWebrtc
37
37
  } from "./chunk-2UXZUCEZ.js";
38
- import "./chunk-AH5D5Q5V.js";
39
- import "./chunk-HMGADJGZ.js";
38
+ import "./chunk-E3KHK7FG.js";
39
+ import "./chunk-ZBMS2HCV.js";
40
40
  import {
41
41
  humanizeModelSlug,
42
42
  isRawModelLabel,
@@ -66,7 +66,7 @@ import {
66
66
  resumeSequenceFromRequest,
67
67
  sessionEventsToSseResponse,
68
68
  sessionEventsToSseStream
69
- } from "./chunk-RWKB6YZG.js";
69
+ } from "./chunk-YH3W3HZZ.js";
70
70
  import "./chunk-UM4ZXXJR.js";
71
71
  import {
72
72
  ToolRequestError,
@@ -91,7 +91,7 @@ import {
91
91
  isOpenGeniSiteBridgeRequestMessage,
92
92
  isSiteCatalogStaleError,
93
93
  sanitizeOpenGeniSiteToolCallRequest
94
- } from "./chunk-DUVIYER4.js";
94
+ } from "./chunk-T6HNHCN2.js";
95
95
  import {
96
96
  OpenGeniToolCallError,
97
97
  OpenGeniToolReapprovalRequiredError,
@@ -111,7 +111,7 @@ import {
111
111
  streamWorkspaceControlEvents,
112
112
  streamWorkspaceInteractionRevisions,
113
113
  streamWorkspaceLiveEvents
114
- } from "./chunk-FG3OO5LM.js";
114
+ } from "./chunk-BNZNLUD4.js";
115
115
  import {
116
116
  parseSseStream,
117
117
  sessionEventStreamCoveredThrough,
@@ -131,7 +131,7 @@ import {
131
131
  RETAINED_OUTPUT_MAX_PAGE_BYTES,
132
132
  SANDBOX_FILE_ARTIFACT_MAX_BYTES,
133
133
  SESSION_EVENT_TYPES
134
- } from "./chunk-YIKA2QT4.js";
134
+ } from "./chunk-RLLUZFOW.js";
135
135
  import {
136
136
  AttachedBrowserDeviceCollection,
137
137
  AttachedBrowserDeviceResource,
@@ -6,11 +6,11 @@ import {
6
6
  downloadSessionProxySiteHtml,
7
7
  getSessionProxyArtifactAssociation,
8
8
  getSessionProxyWorkspaceGrant
9
- } from "./chunk-RWKB6YZG.js";
9
+ } from "./chunk-YH3W3HZZ.js";
10
10
  import "./chunk-UM4ZXXJR.js";
11
11
  import "./chunk-U6CV2SXO.js";
12
12
  import "./chunk-APXVSSSY.js";
13
- import "./chunk-YIKA2QT4.js";
13
+ import "./chunk-RLLUZFOW.js";
14
14
  import "./chunk-V6GIY62B.js";
15
15
  export {
16
16
  SESSION_PROXY_SITE_HTML_MAX_BYTES,