@opengeni/sdk 0.32.1 → 0.33.1

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/client.d.ts CHANGED
@@ -637,7 +637,7 @@ export declare class OpenGeniClient {
637
637
  pinSessionCodexAccount(workspaceId: string, sessionId: string, target: string): Promise<{
638
638
  pinned: string;
639
639
  }>;
640
- private requestJson;
640
+ protected requestJson<T>(method: string, path: string, body?: unknown, query?: Record<string, string>, options?: OpenGeniRequestOptions): Promise<T>;
641
641
  /** Like `requestJson` for endpoints that respond with no body (204). */
642
642
  private requestVoid;
643
643
  }
package/dist/core.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ export { OpenGeniClient as OpenGeniCoreClient } from "./client";
2
+ export type { FetchLike, OpenGeniClientOptions, OpenGeniRequestOptions, SendMessageInput, SteerMessageResult, TranscribeAudioInput, WorkspaceControlEventPage, } from "./client";
3
+ export { OpenGeniApiContractMismatchError, OpenGeniApiError, OpenGeniSessionListCursorError, OpenGeniStreamError, isRetryableStreamError, } from "./errors";
4
+ export { resolveWorkspaceVoiceInputEnabled } from "./transcription";
5
+ export { OPENGENI_API_CONTRACT_HEADER, OPENGENI_API_CONTRACT_REVISION } from "./types";
package/dist/core.js ADDED
@@ -0,0 +1,23 @@
1
+ import {
2
+ OPENGENI_API_CONTRACT_HEADER,
3
+ OPENGENI_API_CONTRACT_REVISION,
4
+ OpenGeniApiContractMismatchError,
5
+ OpenGeniApiError,
6
+ OpenGeniClient,
7
+ OpenGeniSessionListCursorError,
8
+ OpenGeniStreamError,
9
+ isRetryableStreamError,
10
+ resolveWorkspaceVoiceInputEnabled
11
+ } from "./chunk-YROWFD7R.js";
12
+ export {
13
+ OPENGENI_API_CONTRACT_HEADER,
14
+ OPENGENI_API_CONTRACT_REVISION,
15
+ OpenGeniApiContractMismatchError,
16
+ OpenGeniApiError,
17
+ OpenGeniClient as OpenGeniCoreClient,
18
+ OpenGeniSessionListCursorError,
19
+ OpenGeniStreamError,
20
+ isRetryableStreamError,
21
+ resolveWorkspaceVoiceInputEnabled
22
+ };
23
+ //# sourceMappingURL=core.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { OpenGeniClient } from "./client";
1
+ export { OpenGeniClient } from "./artifact-client";
2
2
  export type { FetchLike, OpenGeniClientOptions, OpenGeniRequestOptions, SendMessageInput, SteerMessageResult, TranscribeAudioInput, WorkspaceControlEventPage, } from "./client";
3
3
  export { OpenGeniApiContractMismatchError, OpenGeniApiError, OpenGeniSessionListCursorError, OpenGeniStreamError, isRetryableStreamError, } from "./errors";
4
4
  export { formatSseEvent, proxySessionEventStream, resumeSequenceFromRequest, sessionEventsToSseResponse, sessionEventsToSseStream, } from "./proxy";
@@ -14,6 +14,7 @@ export { streamSessionEvents } from "./stream";
14
14
  export type { SessionEventStreamTransport, StreamConnectionState, StreamSessionEventsOptions, } from "./stream";
15
15
  export { streamWorkspaceControlEvents } from "./workspace-control-stream";
16
16
  export type { WorkspaceControlStreamTransport } from "./workspace-control-stream";
17
+ export type { CreateWorkspaceArtifactRequest, PublishWorkspaceArtifactVersionRequest, RollbackWorkspaceArtifactRequest, WorkspaceArtifact, WorkspaceArtifactContentResponse, WorkspaceArtifactDetailResponse, WorkspaceArtifactEvent, WorkspaceArtifactListOptions, WorkspaceArtifactListResponse, WorkspaceArtifactMutationResponse, WorkspaceArtifactVersion, } from "./workspace-artifacts";
17
18
  export { normalizeWorkspaceInstructionPolicyRoleKey } from "./workspace-instruction-policies";
18
19
  export type { ActivateWorkspaceInstructionPolicyRequest, CreateWorkspaceInstructionPolicyDraftRequest, ImportLegacyWorkspaceInstructionPolicyDraftRequest, RollbackWorkspaceInstructionPolicyRequest, WorkspaceInstructionPolicyActivationEvent, WorkspaceInstructionPolicyActivationResponse, WorkspaceInstructionPolicyActivationType, WorkspaceInstructionPolicyConflictResponse, WorkspaceInstructionPolicyDiffRequest, WorkspaceInstructionPolicyDiffResponse, WorkspaceInstructionPolicyDraftProvenanceSource, WorkspaceInstructionPolicyHead, WorkspaceInstructionPolicyKind, WorkspaceInstructionPolicyListOptions, WorkspaceInstructionPolicyListResponse, WorkspaceInstructionPolicyProvenanceSource, WorkspaceInstructionPolicyRevision, WorkspaceInstructionPolicyRevisionIdentity, WorkspaceInstructionPolicyScope, WorkspaceInstructionPolicyTarget, } from "./workspace-instruction-policies";
19
20
  export type { WorkspaceStateDocumentStatusCounts, WorkspaceStateGapCode, WorkspaceStateMemoryKindCounts, WorkspaceStateMemoryStatusCounts, WorkspaceStateResponse, WorkspaceStateSourceKindCounts, } from "./workspace-state";