@opengeni/sdk 0.20.0 → 0.25.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/README.md +16 -0
- package/dist/index.d.ts +466 -7
- package/dist/index.js +281 -34
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +368 -49
- package/src/errors.ts +22 -1
- package/src/index.ts +43 -0
- package/src/types.ts +545 -5
package/src/index.ts
CHANGED
|
@@ -10,6 +10,7 @@ export type {
|
|
|
10
10
|
export {
|
|
11
11
|
OpenGeniApiContractMismatchError,
|
|
12
12
|
OpenGeniApiError,
|
|
13
|
+
OpenGeniSessionListCursorError,
|
|
13
14
|
OpenGeniStreamError,
|
|
14
15
|
isRetryableStreamError,
|
|
15
16
|
} from "./errors";
|
|
@@ -85,6 +86,8 @@ export {
|
|
|
85
86
|
KNOWN_USAGE_EVENT_TYPES,
|
|
86
87
|
OPENGENI_API_CONTRACT_HEADER,
|
|
87
88
|
OPENGENI_API_CONTRACT_REVISION,
|
|
89
|
+
RETAINED_OUTPUT_DEFAULT_PAGE_BYTES,
|
|
90
|
+
RETAINED_OUTPUT_MAX_PAGE_BYTES,
|
|
88
91
|
SESSION_EVENT_TYPES,
|
|
89
92
|
} from "./types";
|
|
90
93
|
export type {
|
|
@@ -121,12 +124,33 @@ export type {
|
|
|
121
124
|
CapabilityUnavailableReason,
|
|
122
125
|
ClientConfig,
|
|
123
126
|
ClientModel,
|
|
127
|
+
ModelAvailabilityV1,
|
|
128
|
+
ModelBillingAttributionV1,
|
|
129
|
+
ModelCapabilitiesV1,
|
|
130
|
+
ModelCapabilityStateV1,
|
|
131
|
+
ModelCapabilitySupportV1,
|
|
132
|
+
ModelCredentialReadinessV1,
|
|
133
|
+
ModelCredentialSourceV1,
|
|
134
|
+
ModelPricingScheduleV1,
|
|
135
|
+
ModelPricingV1,
|
|
136
|
+
WorkspaceModelCatalogModel,
|
|
137
|
+
WorkspaceModelCatalogResponse,
|
|
124
138
|
CodexAccount,
|
|
139
|
+
CodexAccountOverview,
|
|
125
140
|
CodexAccountsResponse,
|
|
141
|
+
CodexAllocatorUpdate,
|
|
126
142
|
CodexAccountSwitchedPayload,
|
|
127
143
|
CodexConnectionStatus,
|
|
128
144
|
CodexConnectStart,
|
|
129
145
|
CodexConnectPoll,
|
|
146
|
+
CodexFleetConfidence,
|
|
147
|
+
CodexFleetCacheState,
|
|
148
|
+
CodexFleetDecisionEventPayload,
|
|
149
|
+
CodexFleetDecisionScore,
|
|
150
|
+
CodexFleetShadowComparison,
|
|
151
|
+
CodexOverviewResponse,
|
|
152
|
+
CodexResetCredit,
|
|
153
|
+
CodexResetRedemptionRecovery,
|
|
130
154
|
CodexRotationSettings,
|
|
131
155
|
CodexUsage,
|
|
132
156
|
CodexUsageMap,
|
|
@@ -212,6 +236,13 @@ export type {
|
|
|
212
236
|
Permission,
|
|
213
237
|
ProductAccessMode,
|
|
214
238
|
ReasoningEffort,
|
|
239
|
+
RetainedArtifactContent,
|
|
240
|
+
RetainedArtifactContentOptions,
|
|
241
|
+
RetainedArtifactMetadata,
|
|
242
|
+
RetainedArtifactReference,
|
|
243
|
+
RetainedArtifactUnavailable,
|
|
244
|
+
RetainedOutputKind,
|
|
245
|
+
RetainedOutputUnavailableReason,
|
|
215
246
|
RecordingAvailablePayload,
|
|
216
247
|
RecordingCodec,
|
|
217
248
|
RecordingContentType,
|
|
@@ -240,6 +271,7 @@ export type {
|
|
|
240
271
|
SessionCapabilities,
|
|
241
272
|
SessionListResponse,
|
|
242
273
|
SessionLineageResponse,
|
|
274
|
+
SessionEffectiveToolPolicy,
|
|
243
275
|
SessionQueueMutationResponse,
|
|
244
276
|
SessionQueueSnapshot,
|
|
245
277
|
SessionControlResponse,
|
|
@@ -250,7 +282,10 @@ export type {
|
|
|
250
282
|
EffectiveControlResumeOption,
|
|
251
283
|
EffectiveSessionControl,
|
|
252
284
|
MoveSessionQueueItemRequest,
|
|
285
|
+
NewSessionDraft,
|
|
286
|
+
NewSessionDraftOptions,
|
|
253
287
|
SaveComposerDraftRequest,
|
|
288
|
+
SaveNewSessionDraftRequest,
|
|
254
289
|
SessionCommandReceipt,
|
|
255
290
|
SteerSessionQueueItemRequest,
|
|
256
291
|
WorkspaceInferenceControlResponse,
|
|
@@ -260,8 +295,10 @@ export type {
|
|
|
260
295
|
SessionSummary,
|
|
261
296
|
LineageNode,
|
|
262
297
|
SessionMcpCredentialUpdateInput,
|
|
298
|
+
SessionMcpApprovalPolicy,
|
|
263
299
|
SessionMcpServerInput,
|
|
264
300
|
SessionMcpServerMetadata,
|
|
301
|
+
SessionToolPolicy,
|
|
265
302
|
// Per-surface capability cell aliases (views of SessionCapabilities).
|
|
266
303
|
FileSystemCapability,
|
|
267
304
|
TerminalCapability,
|
|
@@ -283,11 +320,15 @@ export type {
|
|
|
283
320
|
ViewerHeartbeatRequest,
|
|
284
321
|
ViewerHeartbeatResponse,
|
|
285
322
|
SessionEvent,
|
|
323
|
+
SessionEventCompactResult,
|
|
324
|
+
SessionEventCompactResultOptions,
|
|
286
325
|
SessionEventListOptions,
|
|
326
|
+
SessionEventLatestClass,
|
|
287
327
|
SessionEventPage,
|
|
288
328
|
SessionEventPayloadMode,
|
|
289
329
|
SessionEventReadDirection,
|
|
290
330
|
SessionEventReadMode,
|
|
331
|
+
SessionEventResultMode,
|
|
291
332
|
SessionEventSemanticClass,
|
|
292
333
|
SessionEventType,
|
|
293
334
|
SessionGoal,
|
|
@@ -366,6 +407,8 @@ export type {
|
|
|
366
407
|
UpdateKnowledgeMemoryRequest,
|
|
367
408
|
UpdateScheduledTaskRequest,
|
|
368
409
|
UpdateSessionGoalRequest,
|
|
410
|
+
UpdateSessionMcpApprovalPolicyRequest,
|
|
411
|
+
UpdateSessionMcpApprovalPolicyResponse,
|
|
369
412
|
UpdateSessionPinRequest,
|
|
370
413
|
UpdateSessionRequest,
|
|
371
414
|
UpdateVariableSetRequest,
|