@opengeni/sdk 0.20.0 → 0.23.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 +342 -3
- package/dist/index.js +192 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +257 -15
- package/src/index.ts +34 -0
- package/src/types.ts +372 -1
package/README.md
CHANGED
|
@@ -56,12 +56,28 @@ the requested class. It cannot be combined with any type or class include/exclud
|
|
|
56
56
|
filter, so an unrelated newer event cannot displace the requested result and an
|
|
57
57
|
exclusion cannot remove it.
|
|
58
58
|
|
|
59
|
+
For callback-loss recovery, `latest` selects authoritative current/legacy rows
|
|
60
|
+
by durable session `sequence` across distinct turns; explicit `late_rejected` and
|
|
61
|
+
`duplicate` callbacks never compete with current truth. `turnGeneration` remains
|
|
62
|
+
metadata and is interpreted only within its turn/retry scope. Use
|
|
63
|
+
`resultMode: "compact"` to receive one bounded result-bearing completion,
|
|
64
|
+
failure, checkpoint, or receipt without creating another model turn. The
|
|
65
|
+
`receipt` spelling aliases `tool_receipt`, and a missing event returns `null`.
|
|
66
|
+
The compact result includes exact source/generation/covered-sequence facts and
|
|
67
|
+
bounded text/output/result/failure/checkpoint/receipt values. Retained-output
|
|
68
|
+
storage and full-evidence retrieval are separate contracts from this event
|
|
69
|
+
projection.
|
|
70
|
+
|
|
59
71
|
```ts
|
|
60
72
|
const terminal = await client.listEventPage(workspaceId, sessionId, {
|
|
61
73
|
latest: "terminal",
|
|
62
74
|
payloadMode: "summary",
|
|
63
75
|
});
|
|
64
76
|
|
|
77
|
+
const recovered = await client.getLatestEventResult(workspaceId, sessionId, {
|
|
78
|
+
latest: "terminal",
|
|
79
|
+
});
|
|
80
|
+
|
|
65
81
|
const older = await client.listEventPage(workspaceId, sessionId, {
|
|
66
82
|
before: terminal.nextBefore ?? undefined,
|
|
67
83
|
includeClasses: ["failure", "checkpoint"],
|
package/dist/index.d.ts
CHANGED
|
@@ -346,6 +346,33 @@ type ResourceRef = RepositoryResourceRef | FileResourceRef;
|
|
|
346
346
|
type ToolRef = {
|
|
347
347
|
kind: "mcp";
|
|
348
348
|
id: string;
|
|
349
|
+
optional?: boolean | undefined;
|
|
350
|
+
};
|
|
351
|
+
type SessionToolPolicy = {
|
|
352
|
+
mode: "workspace_default" | "explicit" | "inherited" | "legacy";
|
|
353
|
+
inheritedFromSessionId: string | null;
|
|
354
|
+
};
|
|
355
|
+
type SessionEffectiveToolPolicy = {
|
|
356
|
+
mode: SessionToolPolicy["mode"];
|
|
357
|
+
inheritedFromSessionId: string | null;
|
|
358
|
+
selectedIds: string[];
|
|
359
|
+
effectiveIds: string[];
|
|
360
|
+
mandatoryIds: string[];
|
|
361
|
+
lazyRouter: {
|
|
362
|
+
state: "required" | "disabled";
|
|
363
|
+
deferredIds: string[];
|
|
364
|
+
};
|
|
365
|
+
configuredIds: string[];
|
|
366
|
+
droppedIds: string[];
|
|
367
|
+
counts: {
|
|
368
|
+
selected: number;
|
|
369
|
+
effective: number;
|
|
370
|
+
mandatory: number;
|
|
371
|
+
deferred: number;
|
|
372
|
+
configured: number;
|
|
373
|
+
dropped: number;
|
|
374
|
+
};
|
|
375
|
+
idsTruncated: boolean;
|
|
349
376
|
};
|
|
350
377
|
type GoalSpec = {
|
|
351
378
|
text: string;
|
|
@@ -368,14 +395,23 @@ type SessionMcpCredentialUpdateInput = {
|
|
|
368
395
|
id: string;
|
|
369
396
|
headers: Record<string, string>;
|
|
370
397
|
};
|
|
398
|
+
type SessionMcpApprovalPolicy = boolean | string[];
|
|
371
399
|
type SessionMcpServerMetadata = {
|
|
372
400
|
id: string;
|
|
373
401
|
name: string | null;
|
|
374
402
|
url: string;
|
|
375
403
|
headerNames: string[];
|
|
376
404
|
credentialVersion: number;
|
|
405
|
+
requireApproval: SessionMcpApprovalPolicy;
|
|
377
406
|
connectionRef: McpServerConnectionRef | null;
|
|
378
407
|
};
|
|
408
|
+
type UpdateSessionMcpApprovalPolicyRequest = {
|
|
409
|
+
requireApproval: SessionMcpApprovalPolicy;
|
|
410
|
+
};
|
|
411
|
+
type UpdateSessionMcpApprovalPolicyResponse = {
|
|
412
|
+
server: SessionMcpServerMetadata;
|
|
413
|
+
effectiveFrom: "next_attempt";
|
|
414
|
+
};
|
|
379
415
|
type ConnectionKind = "oauth2" | "api_key" | "app_install" | "delegated";
|
|
380
416
|
type ConnectionStatus = "active" | "needs_reauth" | "revoked" | "error";
|
|
381
417
|
type McpServerConnectionRef = {
|
|
@@ -486,6 +522,8 @@ type Session = {
|
|
|
486
522
|
instructions: string | null;
|
|
487
523
|
resources: ResourceRef[];
|
|
488
524
|
tools: ToolRef[];
|
|
525
|
+
toolPolicy?: SessionToolPolicy | undefined;
|
|
526
|
+
effectiveToolPolicy?: SessionEffectiveToolPolicy | undefined;
|
|
489
527
|
metadata: Record<string, unknown>;
|
|
490
528
|
/** Frozen creator fact; later turns carry their own independent initiator. */
|
|
491
529
|
createdBy: TurnInitiator;
|
|
@@ -577,6 +615,7 @@ type SessionTurn = {
|
|
|
577
615
|
prompt: string;
|
|
578
616
|
resources: ResourceRef[];
|
|
579
617
|
tools: ToolRef[];
|
|
618
|
+
toolsProvided?: boolean | undefined;
|
|
580
619
|
model: string;
|
|
581
620
|
reasoningEffort: ReasoningEffort;
|
|
582
621
|
sandboxBackend: SandboxBackend;
|
|
@@ -652,7 +691,7 @@ type SessionHumanInputRequest = {
|
|
|
652
691
|
createdAt: string;
|
|
653
692
|
updatedAt: string;
|
|
654
693
|
};
|
|
655
|
-
declare const SESSION_EVENT_TYPES: readonly ["session.created", "session.event.envelope_omitted", "session.status.changed", "session.requiresAction", "session.humanInput.requested", "session.context.compaction.requested", "session.context.compacted", "session.context.compaction.skipped", "session.context.cleared", "user.message", "user.pause", "user.approvalDecision", "user.humanInputResponse", "turn.queued", "turn.started", "turn.completed", "turn.failed", "turn.cancelled", "turn.superseded", "turn.recovery.requested", "turn.capacity_waiting", "agent.message.delta", "agent.message.completed", "agent.reasoning.delta", "agent.toolCall.created", "agent.toolCall.output", "agent.model.usage", "tool.auth_needed", "credential.auth_needed", "agent.updated", "rig.setup.started", "rig.setup.completed", "rig.setup.skipped", "rig.setup.failed", "sandbox.operation.started", "sandbox.operation.completed", "sandbox.operation.failed", "sandbox.command.output.delta", "artifact.created", "goal.set", "goal.updated", "goal.completed", "goal.paused", "goal.resumed", "goal.cleared", "goal.continuation", "system.update.pending", "system.update.delivered", "session.control.paused", "session.control.resumed", "session.control.steer_requested", "workspace.inference.paused", "workspace.inference.resumed", "session.queue.changed", "session.queue.prompt.cancelled", "session.queue.history", "turn.event.rejected_late", "memory.saved", "memory.corrected", "stream.url.rotated", "stream.opened", "stream.closed", "stream.revoked", "recording.started", "recording.available", "recording.failed", "fs.changed", "git.changed", "terminal.pty.started", "terminal.pty.output.delta", "terminal.pty.exited", "session.title_set", "codex.account.switched", "codex.credential.selected", "codex.capacity.waiting", "codex.capacity.resumed", "codex.capacity.superseded", "sandbox.box.created", "sandbox.box.lost", "sandbox.box.terminated", "sandbox.box.snapshot", "sandbox.env.drift", "session.route.reconciled", "workspace.revision.captured", "workspace.revision.degraded", "machine.op.failed", "machine.op.recovered", "machine.link.lost", "machine.link.restored", "machine.runner.restarted"];
|
|
694
|
+
declare const SESSION_EVENT_TYPES: readonly ["session.created", "session.event.envelope_omitted", "session.status.changed", "session.requiresAction", "session.humanInput.requested", "session.context.compaction.requested", "session.context.compacted", "session.context.compaction.skipped", "session.context.cleared", "user.message", "user.pause", "user.approvalDecision", "user.humanInputResponse", "turn.queued", "turn.started", "turn.completed", "turn.failed", "turn.cancelled", "turn.superseded", "turn.recovery.requested", "turn.capacity_waiting", "agent.message.delta", "agent.message.completed", "agent.reasoning.delta", "agent.toolCall.created", "agent.toolCall.output", "agent.model.request", "agent.model.usage", "tool.auth_needed", "credential.auth_needed", "agent.updated", "rig.setup.started", "rig.setup.completed", "rig.setup.skipped", "rig.setup.failed", "sandbox.operation.started", "sandbox.operation.completed", "sandbox.operation.failed", "sandbox.command.output.delta", "artifact.created", "goal.set", "goal.updated", "goal.completed", "goal.paused", "goal.resumed", "goal.cleared", "goal.continuation", "system.update.pending", "system.update.delivered", "session.control.paused", "session.control.resumed", "session.control.steer_requested", "workspace.inference.paused", "workspace.inference.resumed", "session.queue.changed", "session.queue.prompt.cancelled", "session.queue.history", "turn.event.rejected_late", "memory.saved", "memory.corrected", "stream.url.rotated", "stream.opened", "stream.closed", "stream.revoked", "recording.started", "recording.available", "recording.failed", "fs.changed", "git.changed", "terminal.pty.started", "terminal.pty.output.delta", "terminal.pty.exited", "session.title_set", "session.mcp.approval_policy.updated", "codex.account.switched", "codex.credential.selected", "codex.capacity.waiting", "codex.capacity.resumed", "codex.capacity.superseded", "sandbox.box.created", "sandbox.box.lost", "sandbox.box.terminated", "sandbox.box.snapshot", "sandbox.env.drift", "session.route.reconciled", "workspace.revision.captured", "workspace.revision.degraded", "machine.op.failed", "machine.op.recovered", "machine.link.lost", "machine.link.restored", "machine.runner.restarted"];
|
|
656
695
|
type KnownSessionEventType = (typeof SESSION_EVENT_TYPES)[number];
|
|
657
696
|
/**
|
|
658
697
|
* Event types the SDK knows about today, kept open so a newer OpenGeni server
|
|
@@ -677,9 +716,11 @@ type SessionEvent = {
|
|
|
677
716
|
duplicateReason?: string | null | undefined;
|
|
678
717
|
};
|
|
679
718
|
type SessionEventSemanticClass = "control" | "terminal" | "failure" | "checkpoint" | "tool_receipt" | "provider_account";
|
|
719
|
+
type SessionEventLatestClass = SessionEventSemanticClass | "receipt";
|
|
680
720
|
type SessionEventPayloadMode = "none" | "summary" | "full";
|
|
681
721
|
type SessionEventReadMode = "monitoring" | "forensic";
|
|
682
722
|
type SessionEventReadDirection = "after" | "before";
|
|
723
|
+
type SessionEventResultMode = "events" | "compact";
|
|
683
724
|
type SessionEventListCommonOptions = {
|
|
684
725
|
after?: number;
|
|
685
726
|
before?: number;
|
|
@@ -688,6 +729,7 @@ type SessionEventListCommonOptions = {
|
|
|
688
729
|
mode?: SessionEventReadMode;
|
|
689
730
|
direction?: SessionEventReadDirection;
|
|
690
731
|
payloadMode?: SessionEventPayloadMode;
|
|
732
|
+
resultMode?: "events";
|
|
691
733
|
};
|
|
692
734
|
type SessionEventListOptions = SessionEventListCommonOptions & ({
|
|
693
735
|
latest?: never;
|
|
@@ -697,12 +739,62 @@ type SessionEventListOptions = SessionEventListCommonOptions & ({
|
|
|
697
739
|
excludeClasses?: SessionEventSemanticClass[];
|
|
698
740
|
} | {
|
|
699
741
|
/** Exclusive lookup for the newest event in exactly this semantic class. */
|
|
700
|
-
latest:
|
|
742
|
+
latest: SessionEventLatestClass;
|
|
701
743
|
includeTypes?: never;
|
|
702
744
|
excludeTypes?: never;
|
|
703
745
|
includeClasses?: never;
|
|
704
746
|
excludeClasses?: never;
|
|
705
747
|
});
|
|
748
|
+
type SessionEventCompactResult = {
|
|
749
|
+
version: 1;
|
|
750
|
+
semanticClass: SessionEventSemanticClass;
|
|
751
|
+
source: {
|
|
752
|
+
id: string;
|
|
753
|
+
type: SessionEventType;
|
|
754
|
+
sequence: number;
|
|
755
|
+
occurredAt: string;
|
|
756
|
+
turnId: string | null;
|
|
757
|
+
turnGeneration: number | null;
|
|
758
|
+
turnAttemptId: string | null;
|
|
759
|
+
turnAssociation: SessionEvent["turnAssociation"];
|
|
760
|
+
};
|
|
761
|
+
id: string;
|
|
762
|
+
type: SessionEventType;
|
|
763
|
+
sequence: number;
|
|
764
|
+
occurredAt: string;
|
|
765
|
+
turnId: string | null;
|
|
766
|
+
turnGeneration: number | null;
|
|
767
|
+
turnAttemptId: string | null;
|
|
768
|
+
turnAssociation: SessionEvent["turnAssociation"];
|
|
769
|
+
coveredSequence: {
|
|
770
|
+
first: number;
|
|
771
|
+
last: number;
|
|
772
|
+
};
|
|
773
|
+
status: "completed" | "failed" | "cancelled" | "superseded" | "checkpoint" | "receipt" | "unknown";
|
|
774
|
+
text: string | null;
|
|
775
|
+
output: unknown;
|
|
776
|
+
result: unknown;
|
|
777
|
+
failure: {
|
|
778
|
+
error: string | null;
|
|
779
|
+
code: string | null;
|
|
780
|
+
retryable: boolean | null;
|
|
781
|
+
recovery: string | null;
|
|
782
|
+
} | null;
|
|
783
|
+
checkpoint: unknown;
|
|
784
|
+
receipt: unknown;
|
|
785
|
+
truncation: {
|
|
786
|
+
truncated: boolean;
|
|
787
|
+
fields: string[];
|
|
788
|
+
originalBytes: number | null;
|
|
789
|
+
deliveredBytes: number;
|
|
790
|
+
};
|
|
791
|
+
};
|
|
792
|
+
type SessionEventCompactResultOptions = {
|
|
793
|
+
latest: SessionEventLatestClass;
|
|
794
|
+
resultMode: "compact";
|
|
795
|
+
mode?: SessionEventReadMode;
|
|
796
|
+
payloadMode?: SessionEventPayloadMode;
|
|
797
|
+
};
|
|
706
798
|
type SessionEventPage = {
|
|
707
799
|
events: SessionEvent[];
|
|
708
800
|
mode: SessionEventReadMode;
|
|
@@ -1251,6 +1343,65 @@ type KnownPermission = (typeof KNOWN_PERMISSIONS)[number];
|
|
|
1251
1343
|
*/
|
|
1252
1344
|
type Permission = KnownPermission | (string & {});
|
|
1253
1345
|
type ProductAccessMode = "local" | "configured" | "managed";
|
|
1346
|
+
type ModelCapabilitySupportV1 = "supported" | "unsupported" | "unknown";
|
|
1347
|
+
type ModelCapabilityStateV1 = {
|
|
1348
|
+
upstream: ModelCapabilitySupportV1;
|
|
1349
|
+
runnable: boolean;
|
|
1350
|
+
};
|
|
1351
|
+
type ModelCapabilitiesV1 = {
|
|
1352
|
+
reasoning: ModelCapabilityStateV1 & {
|
|
1353
|
+
efforts: ReasoningEffort[];
|
|
1354
|
+
defaultEffort: ReasoningEffort | null;
|
|
1355
|
+
required: boolean;
|
|
1356
|
+
};
|
|
1357
|
+
functionCalling: ModelCapabilityStateV1;
|
|
1358
|
+
structuredOutput: ModelCapabilityStateV1;
|
|
1359
|
+
hostedTools: {
|
|
1360
|
+
webSearch: ModelCapabilityStateV1;
|
|
1361
|
+
xSearch: ModelCapabilityStateV1;
|
|
1362
|
+
codeExecution: ModelCapabilityStateV1;
|
|
1363
|
+
};
|
|
1364
|
+
inputModalities: Array<"text" | "image" | "audio">;
|
|
1365
|
+
outputModalities: Array<"text" | "image" | "audio">;
|
|
1366
|
+
transports: {
|
|
1367
|
+
sse: ModelCapabilityStateV1;
|
|
1368
|
+
responsesWebSocket: ModelCapabilityStateV1;
|
|
1369
|
+
realtimeAudio: ModelCapabilityStateV1;
|
|
1370
|
+
};
|
|
1371
|
+
latencyModes: Array<{
|
|
1372
|
+
id: "standard" | "priority" | "fast";
|
|
1373
|
+
upstream: ModelCapabilitySupportV1;
|
|
1374
|
+
runnable: boolean;
|
|
1375
|
+
billingMultiplierBps?: number | undefined;
|
|
1376
|
+
}>;
|
|
1377
|
+
};
|
|
1378
|
+
type ModelCredentialSourceV1 = {
|
|
1379
|
+
kind: "deployment";
|
|
1380
|
+
mechanism: "api_key" | "azure_ad_bearer";
|
|
1381
|
+
} | {
|
|
1382
|
+
kind: "connected_subscription";
|
|
1383
|
+
provider: "codex";
|
|
1384
|
+
} | {
|
|
1385
|
+
kind: "workspace_connection";
|
|
1386
|
+
mechanism: "api_key";
|
|
1387
|
+
};
|
|
1388
|
+
type ModelBillingAttributionV1 = {
|
|
1389
|
+
upstreamPayer: "deployment" | "workspace" | "connected_subscription";
|
|
1390
|
+
metering: "opengeni_credits" | "external";
|
|
1391
|
+
};
|
|
1392
|
+
type ModelPricingV1 = {
|
|
1393
|
+
inputMicrosPerMillionTokens: number;
|
|
1394
|
+
cachedInputMicrosPerMillionTokens?: number | undefined;
|
|
1395
|
+
outputMicrosPerMillionTokens: number;
|
|
1396
|
+
marginBps?: number | undefined;
|
|
1397
|
+
};
|
|
1398
|
+
type ModelPricingScheduleV1 = {
|
|
1399
|
+
default: ModelPricingV1;
|
|
1400
|
+
inputTokenTiers?: Array<{
|
|
1401
|
+
minimumInputTokens: number;
|
|
1402
|
+
pricing: ModelPricingV1;
|
|
1403
|
+
}> | undefined;
|
|
1404
|
+
};
|
|
1254
1405
|
/**
|
|
1255
1406
|
* One model a client may select at send time, plus the provider that serves it.
|
|
1256
1407
|
* The wire API (`responses` | `chat`) lets a client reason about provider
|
|
@@ -1265,6 +1416,42 @@ type ClientModel = {
|
|
|
1265
1416
|
providerLabel: string;
|
|
1266
1417
|
api: "responses" | "chat";
|
|
1267
1418
|
contextWindowTokens?: number | undefined;
|
|
1419
|
+
schemaVersion?: 1 | undefined;
|
|
1420
|
+
aliases?: string[] | undefined;
|
|
1421
|
+
deployment?: {
|
|
1422
|
+
upstreamModelId: string;
|
|
1423
|
+
wireApi: "responses" | "chat";
|
|
1424
|
+
} | undefined;
|
|
1425
|
+
executionLimits?: {
|
|
1426
|
+
contextWindowTokens: number | null;
|
|
1427
|
+
effectiveContextWindowTokens: number | null;
|
|
1428
|
+
autoCompactTokenLimit: number | null;
|
|
1429
|
+
toolOutputTruncationTokens: number | null;
|
|
1430
|
+
} | undefined;
|
|
1431
|
+
credentialSource?: ModelCredentialSourceV1 | undefined;
|
|
1432
|
+
billing?: ModelBillingAttributionV1 | undefined;
|
|
1433
|
+
capabilities?: ModelCapabilitiesV1 | undefined;
|
|
1434
|
+
pricing?: ModelPricingScheduleV1 | undefined;
|
|
1435
|
+
definitionVersion?: string | undefined;
|
|
1436
|
+
};
|
|
1437
|
+
type ModelAvailabilityV1 = {
|
|
1438
|
+
status: "available" | "unavailable" | "degraded" | "unknown";
|
|
1439
|
+
selectable: boolean;
|
|
1440
|
+
reason: "missing_credential" | "needs_reauth" | "credential_not_ready" | "not_entitled" | "provider_unhealthy" | "policy_blocked" | "unsupported" | null;
|
|
1441
|
+
checkedAt: string | null;
|
|
1442
|
+
};
|
|
1443
|
+
type ModelCredentialReadinessV1 = {
|
|
1444
|
+
status: "ready" | "not_ready" | "error";
|
|
1445
|
+
reason: "missing_credential" | "needs_reauth" | "prerequisites_missing" | "resolver_error" | "observation_stale" | null;
|
|
1446
|
+
basis: "configuration" | "connection" | "resolver";
|
|
1447
|
+
checkedAt: string | null;
|
|
1448
|
+
};
|
|
1449
|
+
type WorkspaceModelCatalogModel = ClientModel & {
|
|
1450
|
+
credentialReadiness: ModelCredentialReadinessV1;
|
|
1451
|
+
availability: ModelAvailabilityV1;
|
|
1452
|
+
};
|
|
1453
|
+
type WorkspaceModelCatalogResponse = {
|
|
1454
|
+
models: WorkspaceModelCatalogModel[];
|
|
1268
1455
|
};
|
|
1269
1456
|
/**
|
|
1270
1457
|
* Connection state of a workspace's Codex (ChatGPT) subscription, returned by
|
|
@@ -1313,6 +1500,11 @@ type CodexUsagePayload = {
|
|
|
1313
1500
|
weekly: CodexUsageWindow | null;
|
|
1314
1501
|
limitReached: boolean;
|
|
1315
1502
|
fetchedAt: string;
|
|
1503
|
+
/** Authoritative count-only summary from /wham/usage; never synthesized rows. */
|
|
1504
|
+
rateLimitResetCredits?: {
|
|
1505
|
+
availableCount: number;
|
|
1506
|
+
credits: null;
|
|
1507
|
+
} | null;
|
|
1316
1508
|
/** Present only on an auth/refresh failure path. */
|
|
1317
1509
|
reason?: "needs_relogin";
|
|
1318
1510
|
additionalLimits?: Array<{
|
|
@@ -1344,6 +1536,73 @@ type CodexAccount = {
|
|
|
1344
1536
|
weekly?: CodexUsageWindow | null;
|
|
1345
1537
|
usageCheckedAt?: string | null;
|
|
1346
1538
|
exhaustedUntil?: string | null;
|
|
1539
|
+
/** Controls only NEW automatic allocations. */
|
|
1540
|
+
allocatorEnabled: boolean;
|
|
1541
|
+
/** Independent OCC sequence; credential/token `version` is never exposed. */
|
|
1542
|
+
allocatorVersion: number;
|
|
1543
|
+
allocatorUpdatedAt?: string | null;
|
|
1544
|
+
/** Cached authoritative summary count, never detailed redemption authority. */
|
|
1545
|
+
resetCreditAvailableCount?: number | null;
|
|
1546
|
+
resetCreditsCheckedAt?: string | null;
|
|
1547
|
+
};
|
|
1548
|
+
type CodexResetCredit = {
|
|
1549
|
+
id: string;
|
|
1550
|
+
resetType: "codexRateLimits" | "unknown";
|
|
1551
|
+
status: "available" | "redeeming" | "redeemed" | "unknown";
|
|
1552
|
+
/** Unix seconds from the provider contract. */
|
|
1553
|
+
grantedAt: number;
|
|
1554
|
+
/** Unix seconds, or null when the provider reports no expiry. */
|
|
1555
|
+
expiresAt: number | null;
|
|
1556
|
+
title: string | null;
|
|
1557
|
+
description: string | null;
|
|
1558
|
+
/** True only for fresh, complete, owning-human provider detail. */
|
|
1559
|
+
actionable: boolean;
|
|
1560
|
+
};
|
|
1561
|
+
/** Owning-human recovery metadata. It contains no token, browser-session hash, or provider key. */
|
|
1562
|
+
type CodexResetRedemptionRecovery = {
|
|
1563
|
+
attemptId: string;
|
|
1564
|
+
creditId: string;
|
|
1565
|
+
status: "provider_started" | "completed";
|
|
1566
|
+
outcome: "reset" | "nothingToReset" | "noCredit" | "alreadyRedeemed" | null;
|
|
1567
|
+
providerStartedAt: string | null;
|
|
1568
|
+
completedAt: string | null;
|
|
1569
|
+
createdAt: string;
|
|
1570
|
+
updatedAt: string;
|
|
1571
|
+
};
|
|
1572
|
+
type CodexAccountOverview = {
|
|
1573
|
+
accountId: string;
|
|
1574
|
+
usage: {
|
|
1575
|
+
source: "provider" | "cache" | "none";
|
|
1576
|
+
fetchedAt: string | null;
|
|
1577
|
+
stale: boolean;
|
|
1578
|
+
error: string | null;
|
|
1579
|
+
value: CodexUsagePayload | null;
|
|
1580
|
+
};
|
|
1581
|
+
resetCredits: {
|
|
1582
|
+
source: "provider" | "cache" | "none";
|
|
1583
|
+
fetchedAt: string | null;
|
|
1584
|
+
stale: boolean;
|
|
1585
|
+
error: string | null;
|
|
1586
|
+
detailState: "detailed" | "count_only" | "capped" | "unsupported" | "unknown" | "error";
|
|
1587
|
+
detailsComplete: boolean;
|
|
1588
|
+
availableCount: number | null;
|
|
1589
|
+
credits: CodexResetCredit[];
|
|
1590
|
+
};
|
|
1591
|
+
canRedeem: boolean;
|
|
1592
|
+
/** Owning managed-cookie human may replay durable completion without a healthy provider token. */
|
|
1593
|
+
canResumeRedemption: boolean;
|
|
1594
|
+
/** Durable owner-scoped ambiguity/completion discovery; never redemption authority for agents. */
|
|
1595
|
+
redemptions: CodexResetRedemptionRecovery[];
|
|
1596
|
+
};
|
|
1597
|
+
/** Independently settled live overview keyed by workspace credential id. */
|
|
1598
|
+
type CodexOverviewResponse = {
|
|
1599
|
+
accounts: Record<string, CodexAccountOverview>;
|
|
1600
|
+
};
|
|
1601
|
+
type CodexAllocatorUpdate = {
|
|
1602
|
+
allocatorEnabled: boolean;
|
|
1603
|
+
allocatorVersion: number;
|
|
1604
|
+
allocatorUpdatedAt: string | null;
|
|
1605
|
+
changed: boolean;
|
|
1347
1606
|
};
|
|
1348
1607
|
/** Per-workspace Codex rotation/active settings. P1: rotation inert, only activeCredentialId loads. */
|
|
1349
1608
|
type CodexRotationSettings = {
|
|
@@ -1648,6 +1907,8 @@ type ComposerDraft = {
|
|
|
1648
1907
|
text: string;
|
|
1649
1908
|
resources: ResourceRef[];
|
|
1650
1909
|
tools: ToolRef[];
|
|
1910
|
+
/** False inherits the session policy; true preserves an explicit array. */
|
|
1911
|
+
toolsProvided: boolean;
|
|
1651
1912
|
model: string;
|
|
1652
1913
|
reasoningEffort: ReasoningEffort;
|
|
1653
1914
|
sourceTurnId: string | null;
|
|
@@ -1962,6 +2223,49 @@ type FileAsset = {
|
|
|
1962
2223
|
createdAt: string;
|
|
1963
2224
|
updatedAt: string;
|
|
1964
2225
|
};
|
|
2226
|
+
/** Mirrors the closed, provider-neutral retained-output contract. */
|
|
2227
|
+
declare const RETAINED_OUTPUT_DEFAULT_PAGE_BYTES: number;
|
|
2228
|
+
declare const RETAINED_OUTPUT_MAX_PAGE_BYTES: number;
|
|
2229
|
+
type RetainedOutputKind = "tool_result" | "assistant_completion" | "internal_update" | "event_media" | "file";
|
|
2230
|
+
type RetainedOutputUnavailableReason = "not_retained" | "pending" | "failed" | "expired" | "deleted" | "missing_storage" | "storage_write_failed" | "unsupported";
|
|
2231
|
+
type RetainedArtifactReference = {
|
|
2232
|
+
available: true;
|
|
2233
|
+
artifactId: string;
|
|
2234
|
+
kind: RetainedOutputKind;
|
|
2235
|
+
contentType: string;
|
|
2236
|
+
originalBytes: number;
|
|
2237
|
+
sha256: string;
|
|
2238
|
+
retainedAt: string;
|
|
2239
|
+
retention: {
|
|
2240
|
+
policy: "workspace_file";
|
|
2241
|
+
expiresAt: null;
|
|
2242
|
+
};
|
|
2243
|
+
retrieval: {
|
|
2244
|
+
method: "GET";
|
|
2245
|
+
path: string;
|
|
2246
|
+
acceptRanges: "bytes";
|
|
2247
|
+
maxRangeBytes: number;
|
|
2248
|
+
};
|
|
2249
|
+
};
|
|
2250
|
+
type RetainedArtifactUnavailable = {
|
|
2251
|
+
available: false;
|
|
2252
|
+
artifactId: string;
|
|
2253
|
+
reason: RetainedOutputUnavailableReason;
|
|
2254
|
+
};
|
|
2255
|
+
type RetainedArtifactMetadata = RetainedArtifactReference | RetainedArtifactUnavailable;
|
|
2256
|
+
type RetainedArtifactContentOptions = {
|
|
2257
|
+
/** One RFC-style bytes range, for example `bytes=1048576-2097151`. */
|
|
2258
|
+
range?: string | undefined;
|
|
2259
|
+
signal?: AbortSignal | undefined;
|
|
2260
|
+
};
|
|
2261
|
+
type RetainedArtifactContent = {
|
|
2262
|
+
bytes: Uint8Array;
|
|
2263
|
+
status: 200 | 206;
|
|
2264
|
+
contentType: string;
|
|
2265
|
+
contentLength: number;
|
|
2266
|
+
contentRange: string | null;
|
|
2267
|
+
acceptRanges: "bytes";
|
|
2268
|
+
};
|
|
1965
2269
|
type CreateFileUploadRequest = {
|
|
1966
2270
|
filename: string;
|
|
1967
2271
|
contentType: string;
|
|
@@ -2304,6 +2608,11 @@ type CapabilityRuntime = {
|
|
|
2304
2608
|
mcpServerId?: string | undefined;
|
|
2305
2609
|
transport?: string | undefined;
|
|
2306
2610
|
notes: string | null;
|
|
2611
|
+
/** Secret-safe server-derived registry exposure state. */
|
|
2612
|
+
catalogTrust?: {
|
|
2613
|
+
state: "trusted" | "legacy_active" | "unverified";
|
|
2614
|
+
reason: "trusted_source" | "verified_probe" | "active_installation_compatibility" | "missing_verification";
|
|
2615
|
+
} | undefined;
|
|
2307
2616
|
};
|
|
2308
2617
|
type CapabilityCatalogItem = {
|
|
2309
2618
|
id: string;
|
|
@@ -2800,6 +3109,12 @@ declare class OpenGeniClient {
|
|
|
2800
3109
|
createSession(workspaceId: string, request: CreateSessionRequest): Promise<CreateSessionResponse>;
|
|
2801
3110
|
getSession(workspaceId: string, sessionId: string): Promise<Session>;
|
|
2802
3111
|
updateSession(workspaceId: string, sessionId: string, request: UpdateSessionRequest): Promise<Session>;
|
|
3112
|
+
/**
|
|
3113
|
+
* Replace one attached MCP server's approval policy. The change is captured
|
|
3114
|
+
* by the next claimed attempt; already-claimed work keeps its immutable
|
|
3115
|
+
* policy snapshot.
|
|
3116
|
+
*/
|
|
3117
|
+
updateSessionMcpApprovalPolicy(workspaceId: string, sessionId: string, serverId: string, request: UpdateSessionMcpApprovalPolicyRequest): Promise<UpdateSessionMcpApprovalPolicyResponse>;
|
|
2803
3118
|
listSessions(workspaceId: string, options?: {
|
|
2804
3119
|
limit?: number;
|
|
2805
3120
|
parentSessionId?: string | null;
|
|
@@ -2888,7 +3203,15 @@ declare class OpenGeniClient {
|
|
|
2888
3203
|
*/
|
|
2889
3204
|
listEvents(workspaceId: string, sessionId: string, options?: SessionEventListOptions): Promise<SessionEvent[]>;
|
|
2890
3205
|
/** Bounded durable/monitoring page plus exact projection and cursor facts. */
|
|
3206
|
+
listEventPage(workspaceId: string, sessionId: string, options: SessionEventCompactResultOptions): Promise<SessionEventCompactResult | null>;
|
|
2891
3207
|
listEventPage(workspaceId: string, sessionId: string, options?: SessionEventListOptions): Promise<SessionEventPage>;
|
|
3208
|
+
/**
|
|
3209
|
+
* Fetch the authoritative newest-sequence semantic result directly. This is
|
|
3210
|
+
* the callback-loss recovery path: it reads one compact durable result and
|
|
3211
|
+
* never creates a model turn. `latest: "receipt"` aliases `tool_receipt`;
|
|
3212
|
+
* turn generation remains scoped retry metadata.
|
|
3213
|
+
*/
|
|
3214
|
+
getLatestEventResult(workspaceId: string, sessionId: string, options?: Omit<SessionEventCompactResultOptions, "resultMode">): Promise<SessionEventCompactResult | null>;
|
|
2892
3215
|
/** POST a user/control event to the session. Returns the accepted event. */
|
|
2893
3216
|
sendEvent(workspaceId: string, sessionId: string, event: ClientSessionEventInput): Promise<SessionEvent>;
|
|
2894
3217
|
sendMessage(workspaceId: string, sessionId: string, message: string | SendMessageInput): Promise<SessionEvent>;
|
|
@@ -3061,6 +3384,8 @@ declare class OpenGeniClient {
|
|
|
3061
3384
|
* knowledge of the host setup; safe to call before any auth is established.
|
|
3062
3385
|
*/
|
|
3063
3386
|
getClientConfig(): Promise<ClientConfig>;
|
|
3387
|
+
/** Authenticated model definitions plus workspace-specific selectability. */
|
|
3388
|
+
getWorkspaceModelCatalog(workspaceId: string): Promise<WorkspaceModelCatalogResponse>;
|
|
3064
3389
|
/** The caller's access context: subject, account + workspace grants, defaults. */
|
|
3065
3390
|
getAccessContext(): Promise<AccessContext>;
|
|
3066
3391
|
listWorkspaces(): Promise<Workspace[]>;
|
|
@@ -3167,6 +3492,13 @@ declare class OpenGeniClient {
|
|
|
3167
3492
|
*/
|
|
3168
3493
|
uploadFile(workspaceId: string, input: UploadFileInput): Promise<FileAsset>;
|
|
3169
3494
|
getFile(workspaceId: string, fileId: string): Promise<FileAsset>;
|
|
3495
|
+
/** Read provider-neutral retained evidence metadata; never returns a storage location. */
|
|
3496
|
+
getRetainedArtifact(workspaceId: string, artifactId: string): Promise<RetainedArtifactMetadata>;
|
|
3497
|
+
/**
|
|
3498
|
+
* Read at most one authenticated retained-evidence range from the API. This
|
|
3499
|
+
* deliberately does not use the ordinary signed file-download URL.
|
|
3500
|
+
*/
|
|
3501
|
+
getRetainedArtifactContent(workspaceId: string, artifactId: string, options?: RetainedArtifactContentOptions): Promise<RetainedArtifactContent>;
|
|
3170
3502
|
/** Mint a short-lived signed download URL for a ready file. */
|
|
3171
3503
|
createFileDownloadUrl(workspaceId: string, fileId: string): Promise<FileDownloadUrlResponse>;
|
|
3172
3504
|
createDocumentBase(workspaceId: string, request: CreateDocumentBaseRequest): Promise<DocumentBase>;
|
|
@@ -3267,6 +3599,8 @@ declare class OpenGeniClient {
|
|
|
3267
3599
|
refreshCodexUsage(workspaceId: string): Promise<{
|
|
3268
3600
|
usage: CodexUsageMap;
|
|
3269
3601
|
}>;
|
|
3602
|
+
/** Live independently-settled quota + reset-credit overview for every account. */
|
|
3603
|
+
codexOverview(workspaceId: string): Promise<CodexOverviewResponse>;
|
|
3270
3604
|
/** Disconnect ALL accounts (legacy workspace-wide). Prefer `disconnectCodexAccount`. */
|
|
3271
3605
|
codexDisconnect(workspaceId: string): Promise<{
|
|
3272
3606
|
disconnected: boolean;
|
|
@@ -3283,6 +3617,11 @@ declare class OpenGeniClient {
|
|
|
3283
3617
|
rotationEnabled?: boolean;
|
|
3284
3618
|
rotationStrategy?: CodexRotationSettings["rotationStrategy"];
|
|
3285
3619
|
}): Promise<CodexRotationSettings>;
|
|
3620
|
+
/** Toggle only NEW automatic allocations under independent allocator OCC. */
|
|
3621
|
+
setCodexAccountAllocator(workspaceId: string, accountId: string, input: {
|
|
3622
|
+
enabled: boolean;
|
|
3623
|
+
expectedVersion: number;
|
|
3624
|
+
}): Promise<CodexAllocatorUpdate>;
|
|
3286
3625
|
/** Disconnect ONE Codex account by id (re-picks active when the removed one was active). */
|
|
3287
3626
|
disconnectCodexAccount(workspaceId: string, accountId: string): Promise<{
|
|
3288
3627
|
disconnected: boolean;
|
|
@@ -3520,4 +3859,4 @@ declare function ttydInputFrame(data: string): string;
|
|
|
3520
3859
|
/** Build a client→server RESIZE frame: "1" + JSON.stringify({ columns, rows }). */
|
|
3521
3860
|
declare function ttydResizeFrame(columns: number, rows: number): string;
|
|
3522
3861
|
|
|
3523
|
-
export { type AccessContext, type AccessGrant, type AccountGrant, type AccountRole, type AcknowledgeStreamRequest, type AcknowledgeStreamResponse, type AddDocumentRequest, type AddWorkspaceMemberRequest, type AgentMessageCompletedPayload, type AgentTextDeltaPayload, type AgentToolCallCreatedPayload, type AgentToolCallOutputPayload, type ApiKey, type AttachViewerRequest, type AttachViewerResponse, type BillingBalance, type BillingEntitlementsResponse, type BillingMode, type BillingSummary, type BillingUsageResponse, type CapabilityCatalogItem, type CapabilityCatalogResponse, type CapabilityInstallation, type CapabilityInstallationStatus, type CapabilityKind, type CapabilityPack, type CapabilityPackConnector, type CapabilityPackConnectorAuthModel, type CapabilityPackKnowledge, type CapabilityPackScheduledTaskTemplate, type CapabilityPackSkill, type CapabilityPackSkillFile, type CapabilityPackVariableSetSpec, type CapabilityRuntime, type CapabilitySource, type CapabilityUnavailableReason, type ClientAuthConfig, type ClientConfig, type ClientModel, type ClientSessionEventInput, type CodexAccount, type CodexAccountSwitchedPayload, type CodexAccountsResponse, type CodexConnectPoll, type CodexConnectStart, type CodexConnectionStatus, type CodexRotationSettings, type CodexUsage, type CodexUsageMap, type CodexUsagePayload, type CodexUsageWindow, type CompactSessionContextResult, type CompleteFileUploadResponse, type ComposerDraft, type ComputerUseCapability, type ConnectionKind, type ConnectionMetadata, type ConnectionResponse, type ConnectionStatus, type CreateApiKeyRequest, type CreateApiKeyResponse, type CreateCapabilityCatalogItemRequest, type CreateCheckoutRequest, type CreateCheckoutResponse, type CreateConnectionRequest, type CreateDocumentBaseRequest, type CreateFileUploadRequest, type CreateFileUploadResponse, type CreateGitHubAppManifestRequest, type CreateGitHubAppManifestResponse, type CreateKnowledgeMemoryRequest, type CreateRigRequest, type CreateScheduledTaskRequest, type CreateSessionRequest, type CreateVariableSetRequest, type CreateWorkspaceEnvironmentRequest, type CreateWorkspaceRequest, DEFAULT_WORKSPACE_TRANSCRIPTION_POLICY, type DeleteSessionQueueItemRequest, type DesktopConnectionState, type DesktopRfbFactory, type DesktopRfbLike, type DesktopStreamCapability, type DesktopStreamEvent, type DeviceEnrollmentApproveRequest, type DeviceEnrollmentApproveResponse, type DeviceEnrollmentDenyRequest, type DeviceEnrollmentDenyResponse, type DeviceEnrollmentLookupMachine, type DeviceEnrollmentLookupRequest, type DeviceEnrollmentLookupResponse, type DiscoverMcpCapabilitiesResponse, type Document, type DocumentBase, type DocumentSearchMode, type DocumentSearchRequest, type DocumentSearchResponse, type DocumentSearchResult, type DocumentStatus, type EditSessionQueueItemRequest, type EffectiveControlBlocker, type EffectiveControlResumeOption, type EffectiveSessionControl, type EnableCapabilityRequest, type EnablePackRequest, type EnrollTokenExchangeRequest, type EnrollTokenExchangeResponse, type EnrollmentCredentials, type EnrollmentOs, type EntitlementValue, type Entitlements, type EntitlementsMode, type FetchLike, type FileAsset, type FileDownloadUrlResponse, type FileResourceRef, type FileStatus, type FileSystemCapability, type FileUploadData, type FsChangeKind, type FsChangedPayload, type FsDeleteRequest, type FsDeleteResponse, type FsEncoding, type FsListRequest, type FsListResponse, type FsMkdirRequest, type FsMkdirResponse, type FsMoveRequest, type FsMoveResponse, type FsNodeType, type FsReadRequest, type FsReadResponse, type FsTreeNode, type FsWriteRequest, type FsWriteResponse, type GetPackResponse, type GetWorkspaceCaptureFileResponse, type GetWorkspaceCaptureResponse, type GitCapability, type GitChangedPayload, type GitCommit, type GitCredentialBindingId, type GitCredentialProvider, type GitDiffHunk, type GitDiffLine, type GitDiffLineType, type GitDiffRequest, type GitDiffResponse, type GitFileDiff, type GitFileStatus, type GitFileStatusCode, type GitHubAppInfo, type GitHubInstallationBinding, type GitHubRepositoriesResponse, type GitHubRepository, type GitHubRepositoryScope, type GitLogRequest, type GitLogResponse, type GitRepositoryAccess, type GitShowRequest, type GitShowResponse, type GitStatusRequest, type GitStatusResponse, type GoalSpec, type HumanInputAnswer, type HumanInputOption, type HumanInputQuestion, type HumanInputQuestionKind, type HumanInputResponse, type IntegrationClientMetadata, KNOWN_PERMISSIONS, KNOWN_USAGE_EVENT_TYPES, type KnowledgeMemory, type KnowledgeMemoryKind, type KnowledgeMemorySearchRequest, type KnowledgeMemoryStatus, type KnowledgeSourceKind, type KnowledgeSourceRef, type KnownPermission, type KnownSessionEventType, type KnownUsageEventType, type LineageNode, type ListApiKeysResponse, type ListConnectionsResponse, type ListPacksResponse, type ListWorkspaceMembersResponse, type MachineKind, type MachineMetricsSeriesResponse, type MachineState, type MachineView, type MachinesResponse, type McpServerConnectionRef, type MetricSample, type MintEnrollTokenRequest, type MintEnrollTokenResponse, type MoveSessionQueueItemRequest, type OAuthStartRequest, type OAuthStartResponse, OPENGENI_API_CONTRACT_HEADER, OPENGENI_API_CONTRACT_REVISION, OpenGeniApiContractMismatchError, OpenGeniApiError, OpenGeniClient, type OpenGeniClientOptions, type OpenGeniRequestOptions, OpenGeniStreamError, type PackInstallation, type PackInstallationStatus, type Permission, type ProductAccessMode, type ProposeRigChangeRequest, type ProxySessionEventStreamOptions, type PtyCloseRequest, type PtyOpenRequest, type PtyOpenResponse, type PtyResizeRequest, type PtyWriteRequest, type ReasoningEffort, type RecordingAvailablePayload, type RecordingCapability, type RecordingCodec, type RecordingContentType, type RecordingFailedPayload, type RecordingFailedReason, type RecordingMode, type RecordingStartedPayload, type RegisterCapabilityPackRequest, type RepositoryResourceRef, type ResourceRef, type Rig, type RigChange, type RigChangeKind, type RigChangeStatus, type RigChangeVerification, type RigCheck, type RigCheckResult, type RigDefinitionEditPayload, type RigSetupAppendPayload, type RigVersion, SESSION_EVENT_TYPES, type SandboxBackend, type SandboxCapabilityName, type SandboxCommandOutputDeltaPayload, type SandboxOs, type SaveComposerDraftRequest, type ScheduledTask, type ScheduledTaskAgentConfig, type ScheduledTaskAgentConfigInput, type ScheduledTaskDayOfWeek, type ScheduledTaskOverlapPolicy, type ScheduledTaskRun, type ScheduledTaskRunMode, type ScheduledTaskRunStatus, type ScheduledTaskScheduleSpec, type ScheduledTaskStatus, type ScheduledTaskTriggerType, type SendMessageInput, type ServiceTurnInitiator, type ServiceTurnInitiatorContext, type Session, type SessionCapabilities, type SessionCommandReceipt, type SessionControlResponse, type SessionEvent, type SessionEventListOptions, type SessionEventPage, type SessionEventPayloadMode, type SessionEventReadDirection, type SessionEventReadMode, type SessionEventSemanticClass, type SessionEventStreamTransport, type SessionEventType, type SessionGoal, type SessionGoalCreatedBy, type SessionGoalStatus, type SessionHumanInputRequest, type SessionLineageResponse, type SessionListResponse, type SessionMcpCredentialUpdateInput, type SessionMcpServerInput, type SessionMcpServerMetadata, type SessionQueueMutationResponse, type SessionQueueSnapshot, type SessionStatus, type SessionStatusChangedPayload, type SessionStructuredCapabilities, type SessionSummary, type SessionSystemUpdate, type SessionSystemUpdateKind, type SessionSystemUpdateState, type SessionTurn, type SessionTurnSource, type SessionTurnStatus, type SetWorkspaceEnvironmentVariableRequest, type SseMessage, type SseReStreamOptions, type SteerMessageResult, type SteerSessionQueueItemRequest, type StreamClosedPayload, type StreamConnectionState, type StreamOpenedPayload, type StreamRevokedPayload, type StreamSessionEventsOptions, type StreamUrlRotatedPayload, type SubmitHumanInputResponseRequest, type SwapActiveSandboxRequest, type SwapActiveSandboxResponse, TTYD_SUBPROTOCOL, type TerminalCapability, type TerminalExecRequest, type TerminalExecResponse, type TerminalPtyExitedPayload, type TerminalPtyOutputDeltaPayload, type TerminalPtyStartedPayload, type ToolAuthNeededPayload, type ToolRef, type TranscriptionAdapter, type TranscriptionAdapterDescriptor, type TranscriptionAdapterStartContext, type TranscriptionAuthorization, type TranscriptionCredentialMode, type TranscriptionDiagnostic, type TranscriptionErrorCode, type TranscriptionEvent, type TranscriptionEventListener, type TranscriptionLifecycleStatus, type TranscriptionPolicyBlockReason, type TranscriptionResultMetadata, type TranscriptionSession, type TranscriptionSessionRequest, type TranscriptionSpeaker, type TranscriptionTargetSelection, type TranscriptionTimeSpan, type TranscriptionWord, TtydClientCommand, TtydServerCommand, type TurnInitiator, type UpdateConnectionRequest, type UpdateKnowledgeMemoryRequest, type UpdateRigRequest, type UpdateScheduledTaskRequest, type UpdateSessionGoalRequest, type UpdateSessionPinRequest, type UpdateSessionRequest, type UpdateVariableSetRequest, type UpdateWorkspaceEnvironmentRequest, type UpdateWorkspaceMemberRequest, type UpdateWorkspaceRequest, type UpdateWorkspaceSettingsRequest, type UploadFileInput, type UsageEvent, type UsageEventType, type UserApprovalDecisionEventInput, type UserHumanInputResponseEventInput, type UserMessageEventInput, type VariableSet, type VariableSetVariableMetadata, type ViewerHeartbeatRequest, type ViewerHeartbeatResponse, type ViewerHolder, type Workspace, type WorkspaceCaptureDegradedReason, type WorkspaceCaptureFile, type WorkspaceCaptureManifest, type WorkspaceCaptureRepo, type WorkspaceCaptureSignedUrl, type WorkspaceCaptureStats, type WorkspaceControlEvent, type WorkspaceControlEventPage, type WorkspaceControlStreamTransport, type WorkspaceEnvironment, type WorkspaceEnvironmentVariableMetadata, type WorkspaceInferenceControlResponse, type WorkspaceMember, type WorkspaceMemorySearchMode, type WorkspaceMemorySearchRequest, type WorkspaceMemorySearchResponse, type WorkspaceMemorySearchResult, type WorkspaceRegisteredPack, type WorkspaceRevisionCapturedPayload, type WorkspaceRevisionDegradedPayload, type WorkspaceSettings, type WorkspaceTranscriptionPolicy, type WorkspaceTranscriptionTarget, applyUrlRotation, authorizeTranscriptionAdapter, createTranscriptionSessionRequest, desktopSocketUrl, formatSseEvent, isRetryableStreamError, nextDesktopState, parseSseStream, proxySessionEventStream, resolveWorkspaceTranscriptionPolicy, resumeSequenceFromRequest, sessionEventsToSseResponse, sessionEventsToSseStream, streamSessionEvents, streamWorkspaceControlEvents, terminalSocketUrl, ttydAuthFrame, ttydInputFrame, ttydResizeFrame };
|
|
3862
|
+
export { type AccessContext, type AccessGrant, type AccountGrant, type AccountRole, type AcknowledgeStreamRequest, type AcknowledgeStreamResponse, type AddDocumentRequest, type AddWorkspaceMemberRequest, type AgentMessageCompletedPayload, type AgentTextDeltaPayload, type AgentToolCallCreatedPayload, type AgentToolCallOutputPayload, type ApiKey, type AttachViewerRequest, type AttachViewerResponse, type BillingBalance, type BillingEntitlementsResponse, type BillingMode, type BillingSummary, type BillingUsageResponse, type CapabilityCatalogItem, type CapabilityCatalogResponse, type CapabilityInstallation, type CapabilityInstallationStatus, type CapabilityKind, type CapabilityPack, type CapabilityPackConnector, type CapabilityPackConnectorAuthModel, type CapabilityPackKnowledge, type CapabilityPackScheduledTaskTemplate, type CapabilityPackSkill, type CapabilityPackSkillFile, type CapabilityPackVariableSetSpec, type CapabilityRuntime, type CapabilitySource, type CapabilityUnavailableReason, type ClientAuthConfig, type ClientConfig, type ClientModel, type ClientSessionEventInput, type CodexAccount, type CodexAccountOverview, type CodexAccountSwitchedPayload, type CodexAccountsResponse, type CodexAllocatorUpdate, type CodexConnectPoll, type CodexConnectStart, type CodexConnectionStatus, type CodexOverviewResponse, type CodexResetCredit, type CodexResetRedemptionRecovery, type CodexRotationSettings, type CodexUsage, type CodexUsageMap, type CodexUsagePayload, type CodexUsageWindow, type CompactSessionContextResult, type CompleteFileUploadResponse, type ComposerDraft, type ComputerUseCapability, type ConnectionKind, type ConnectionMetadata, type ConnectionResponse, type ConnectionStatus, type CreateApiKeyRequest, type CreateApiKeyResponse, type CreateCapabilityCatalogItemRequest, type CreateCheckoutRequest, type CreateCheckoutResponse, type CreateConnectionRequest, type CreateDocumentBaseRequest, type CreateFileUploadRequest, type CreateFileUploadResponse, type CreateGitHubAppManifestRequest, type CreateGitHubAppManifestResponse, type CreateKnowledgeMemoryRequest, type CreateRigRequest, type CreateScheduledTaskRequest, type CreateSessionRequest, type CreateVariableSetRequest, type CreateWorkspaceEnvironmentRequest, type CreateWorkspaceRequest, DEFAULT_WORKSPACE_TRANSCRIPTION_POLICY, type DeleteSessionQueueItemRequest, type DesktopConnectionState, type DesktopRfbFactory, type DesktopRfbLike, type DesktopStreamCapability, type DesktopStreamEvent, type DeviceEnrollmentApproveRequest, type DeviceEnrollmentApproveResponse, type DeviceEnrollmentDenyRequest, type DeviceEnrollmentDenyResponse, type DeviceEnrollmentLookupMachine, type DeviceEnrollmentLookupRequest, type DeviceEnrollmentLookupResponse, type DiscoverMcpCapabilitiesResponse, type Document, type DocumentBase, type DocumentSearchMode, type DocumentSearchRequest, type DocumentSearchResponse, type DocumentSearchResult, type DocumentStatus, type EditSessionQueueItemRequest, type EffectiveControlBlocker, type EffectiveControlResumeOption, type EffectiveSessionControl, type EnableCapabilityRequest, type EnablePackRequest, type EnrollTokenExchangeRequest, type EnrollTokenExchangeResponse, type EnrollmentCredentials, type EnrollmentOs, type EntitlementValue, type Entitlements, type EntitlementsMode, type FetchLike, type FileAsset, type FileDownloadUrlResponse, type FileResourceRef, type FileStatus, type FileSystemCapability, type FileUploadData, type FsChangeKind, type FsChangedPayload, type FsDeleteRequest, type FsDeleteResponse, type FsEncoding, type FsListRequest, type FsListResponse, type FsMkdirRequest, type FsMkdirResponse, type FsMoveRequest, type FsMoveResponse, type FsNodeType, type FsReadRequest, type FsReadResponse, type FsTreeNode, type FsWriteRequest, type FsWriteResponse, type GetPackResponse, type GetWorkspaceCaptureFileResponse, type GetWorkspaceCaptureResponse, type GitCapability, type GitChangedPayload, type GitCommit, type GitCredentialBindingId, type GitCredentialProvider, type GitDiffHunk, type GitDiffLine, type GitDiffLineType, type GitDiffRequest, type GitDiffResponse, type GitFileDiff, type GitFileStatus, type GitFileStatusCode, type GitHubAppInfo, type GitHubInstallationBinding, type GitHubRepositoriesResponse, type GitHubRepository, type GitHubRepositoryScope, type GitLogRequest, type GitLogResponse, type GitRepositoryAccess, type GitShowRequest, type GitShowResponse, type GitStatusRequest, type GitStatusResponse, type GoalSpec, type HumanInputAnswer, type HumanInputOption, type HumanInputQuestion, type HumanInputQuestionKind, type HumanInputResponse, type IntegrationClientMetadata, KNOWN_PERMISSIONS, KNOWN_USAGE_EVENT_TYPES, type KnowledgeMemory, type KnowledgeMemoryKind, type KnowledgeMemorySearchRequest, type KnowledgeMemoryStatus, type KnowledgeSourceKind, type KnowledgeSourceRef, type KnownPermission, type KnownSessionEventType, type KnownUsageEventType, type LineageNode, type ListApiKeysResponse, type ListConnectionsResponse, type ListPacksResponse, type ListWorkspaceMembersResponse, type MachineKind, type MachineMetricsSeriesResponse, type MachineState, type MachineView, type MachinesResponse, type McpServerConnectionRef, type MetricSample, type MintEnrollTokenRequest, type MintEnrollTokenResponse, type ModelAvailabilityV1, type ModelBillingAttributionV1, type ModelCapabilitiesV1, type ModelCapabilityStateV1, type ModelCapabilitySupportV1, type ModelCredentialReadinessV1, type ModelCredentialSourceV1, type ModelPricingScheduleV1, type ModelPricingV1, type MoveSessionQueueItemRequest, type OAuthStartRequest, type OAuthStartResponse, OPENGENI_API_CONTRACT_HEADER, OPENGENI_API_CONTRACT_REVISION, OpenGeniApiContractMismatchError, OpenGeniApiError, OpenGeniClient, type OpenGeniClientOptions, type OpenGeniRequestOptions, OpenGeniStreamError, type PackInstallation, type PackInstallationStatus, type Permission, type ProductAccessMode, type ProposeRigChangeRequest, type ProxySessionEventStreamOptions, type PtyCloseRequest, type PtyOpenRequest, type PtyOpenResponse, type PtyResizeRequest, type PtyWriteRequest, RETAINED_OUTPUT_DEFAULT_PAGE_BYTES, RETAINED_OUTPUT_MAX_PAGE_BYTES, type ReasoningEffort, type RecordingAvailablePayload, type RecordingCapability, type RecordingCodec, type RecordingContentType, type RecordingFailedPayload, type RecordingFailedReason, type RecordingMode, type RecordingStartedPayload, type RegisterCapabilityPackRequest, type RepositoryResourceRef, type ResourceRef, type RetainedArtifactContent, type RetainedArtifactContentOptions, type RetainedArtifactMetadata, type RetainedArtifactReference, type RetainedArtifactUnavailable, type RetainedOutputKind, type RetainedOutputUnavailableReason, type Rig, type RigChange, type RigChangeKind, type RigChangeStatus, type RigChangeVerification, type RigCheck, type RigCheckResult, type RigDefinitionEditPayload, type RigSetupAppendPayload, type RigVersion, SESSION_EVENT_TYPES, type SandboxBackend, type SandboxCapabilityName, type SandboxCommandOutputDeltaPayload, type SandboxOs, type SaveComposerDraftRequest, type ScheduledTask, type ScheduledTaskAgentConfig, type ScheduledTaskAgentConfigInput, type ScheduledTaskDayOfWeek, type ScheduledTaskOverlapPolicy, type ScheduledTaskRun, type ScheduledTaskRunMode, type ScheduledTaskRunStatus, type ScheduledTaskScheduleSpec, type ScheduledTaskStatus, type ScheduledTaskTriggerType, type SendMessageInput, type ServiceTurnInitiator, type ServiceTurnInitiatorContext, type Session, type SessionCapabilities, type SessionCommandReceipt, type SessionControlResponse, type SessionEffectiveToolPolicy, type SessionEvent, type SessionEventCompactResult, type SessionEventCompactResultOptions, type SessionEventLatestClass, type SessionEventListOptions, type SessionEventPage, type SessionEventPayloadMode, type SessionEventReadDirection, type SessionEventReadMode, type SessionEventResultMode, type SessionEventSemanticClass, type SessionEventStreamTransport, type SessionEventType, type SessionGoal, type SessionGoalCreatedBy, type SessionGoalStatus, type SessionHumanInputRequest, type SessionLineageResponse, type SessionListResponse, type SessionMcpApprovalPolicy, type SessionMcpCredentialUpdateInput, type SessionMcpServerInput, type SessionMcpServerMetadata, type SessionQueueMutationResponse, type SessionQueueSnapshot, type SessionStatus, type SessionStatusChangedPayload, type SessionStructuredCapabilities, type SessionSummary, type SessionSystemUpdate, type SessionSystemUpdateKind, type SessionSystemUpdateState, type SessionToolPolicy, type SessionTurn, type SessionTurnSource, type SessionTurnStatus, type SetWorkspaceEnvironmentVariableRequest, type SseMessage, type SseReStreamOptions, type SteerMessageResult, type SteerSessionQueueItemRequest, type StreamClosedPayload, type StreamConnectionState, type StreamOpenedPayload, type StreamRevokedPayload, type StreamSessionEventsOptions, type StreamUrlRotatedPayload, type SubmitHumanInputResponseRequest, type SwapActiveSandboxRequest, type SwapActiveSandboxResponse, TTYD_SUBPROTOCOL, type TerminalCapability, type TerminalExecRequest, type TerminalExecResponse, type TerminalPtyExitedPayload, type TerminalPtyOutputDeltaPayload, type TerminalPtyStartedPayload, type ToolAuthNeededPayload, type ToolRef, type TranscriptionAdapter, type TranscriptionAdapterDescriptor, type TranscriptionAdapterStartContext, type TranscriptionAuthorization, type TranscriptionCredentialMode, type TranscriptionDiagnostic, type TranscriptionErrorCode, type TranscriptionEvent, type TranscriptionEventListener, type TranscriptionLifecycleStatus, type TranscriptionPolicyBlockReason, type TranscriptionResultMetadata, type TranscriptionSession, type TranscriptionSessionRequest, type TranscriptionSpeaker, type TranscriptionTargetSelection, type TranscriptionTimeSpan, type TranscriptionWord, TtydClientCommand, TtydServerCommand, type TurnInitiator, type UpdateConnectionRequest, type UpdateKnowledgeMemoryRequest, type UpdateRigRequest, type UpdateScheduledTaskRequest, type UpdateSessionGoalRequest, type UpdateSessionMcpApprovalPolicyRequest, type UpdateSessionMcpApprovalPolicyResponse, type UpdateSessionPinRequest, type UpdateSessionRequest, type UpdateVariableSetRequest, type UpdateWorkspaceEnvironmentRequest, type UpdateWorkspaceMemberRequest, type UpdateWorkspaceRequest, type UpdateWorkspaceSettingsRequest, type UploadFileInput, type UsageEvent, type UsageEventType, type UserApprovalDecisionEventInput, type UserHumanInputResponseEventInput, type UserMessageEventInput, type VariableSet, type VariableSetVariableMetadata, type ViewerHeartbeatRequest, type ViewerHeartbeatResponse, type ViewerHolder, type Workspace, type WorkspaceCaptureDegradedReason, type WorkspaceCaptureFile, type WorkspaceCaptureManifest, type WorkspaceCaptureRepo, type WorkspaceCaptureSignedUrl, type WorkspaceCaptureStats, type WorkspaceControlEvent, type WorkspaceControlEventPage, type WorkspaceControlStreamTransport, type WorkspaceEnvironment, type WorkspaceEnvironmentVariableMetadata, type WorkspaceInferenceControlResponse, type WorkspaceMember, type WorkspaceMemorySearchMode, type WorkspaceMemorySearchRequest, type WorkspaceMemorySearchResponse, type WorkspaceMemorySearchResult, type WorkspaceModelCatalogModel, type WorkspaceModelCatalogResponse, type WorkspaceRegisteredPack, type WorkspaceRevisionCapturedPayload, type WorkspaceRevisionDegradedPayload, type WorkspaceSettings, type WorkspaceTranscriptionPolicy, type WorkspaceTranscriptionTarget, applyUrlRotation, authorizeTranscriptionAdapter, createTranscriptionSessionRequest, desktopSocketUrl, formatSseEvent, isRetryableStreamError, nextDesktopState, parseSseStream, proxySessionEventStream, resolveWorkspaceTranscriptionPolicy, resumeSequenceFromRequest, sessionEventsToSseResponse, sessionEventsToSseStream, streamSessionEvents, streamWorkspaceControlEvents, terminalSocketUrl, ttydAuthFrame, ttydInputFrame, ttydResizeFrame };
|