@opengeni/db 0.4.1 → 0.6.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/LICENSE +190 -0
- package/dist/{chunk-T2U4H4Z2.js → chunk-ZIUCA2IO.js} +150 -5
- package/dist/chunk-ZIUCA2IO.js.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1135 -21
- package/dist/index.js.map +1 -1
- package/dist/provision-roles.d.ts +284 -5
- package/dist/{schema-C7Wvjwge.d.ts → schema-Dsz6UHNv.d.ts} +2392 -855
- package/dist/schema.d.ts +1 -1
- package/dist/schema.js +11 -1
- package/drizzle/0038_enrollment_desktop_unavailable_reason.sql +18 -0
- package/drizzle/0039_connections.sql +62 -0
- package/drizzle/0039_session_mcp_require_approval.sql +7 -0
- package/drizzle/0040_schema_agnostic_opengeni_app_grants.sql +36 -0
- package/drizzle/0041_knowledge_layer.sql +73 -0
- package/drizzle/0042_integration_oauth_state.sql +56 -0
- package/drizzle/0043_integrations_catalog_imports.sql +104 -0
- package/drizzle/0043_toolspace_call_budget.sql +14 -0
- package/package.json +5 -10
- package/src/connection-token-resolver.ts +481 -0
- package/src/event-payload-sanitizer.ts +23 -0
- package/src/index.ts +1060 -23
- package/src/schema.ts +150 -2
- package/dist/chunk-T2U4H4Z2.js.map +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { SessionEventType, Permission, CapabilityKind, CapabilitySource, ScheduledTaskStatus, ScheduledTaskScheduleSpec, ScheduledTaskRunMode, ScheduledTaskOverlapPolicy, ScheduledTaskAgentConfig, SessionGoalCreatedBy, SocialProvider, SocialConnectionStatus, SessionTurnSource, ResourceRef, ToolRef, ReasoningEffort, SandboxBackend, SessionGoal, CapabilityPack, SessionMcpServerMetadata, SessionTurn, SessionEvent, SessionStatus, Session, BillingBalance, AccessContext, FileAsset, ApiKey, ScheduledTask, ScheduledTaskTriggerType, ScheduledTaskRun, SandboxOs, SocialConnection, SocialPost, Workspace, WorkspaceEnvironment, CapabilityInstallation, PackInstallation, SessionTurnStatus, CapabilityCatalogItem, FileUploadStatus, ManagedAccount, AccessGrant, WorkspaceRegisteredPack, UsageEvent, WorkspaceMember, SessionGoalStatus, WorkspaceEnvironmentVariableMetadata, PackInstallationStatus, ScheduledTaskRunStatus } from '@opengeni/contracts';
|
|
2
|
-
import { environmentsEncryptionKeyBytes, Settings } from '@opengeni/config';
|
|
1
|
+
import { SessionEventType, Permission, ConnectionKind, ConnectionStatus, CapabilityKind, CapabilitySource, KnowledgeMemoryStatus, KnowledgeMemoryKind, KnowledgeSourceRef, ScheduledTaskStatus, ScheduledTaskScheduleSpec, ScheduledTaskRunMode, ScheduledTaskOverlapPolicy, ScheduledTaskAgentConfig, SessionGoalCreatedBy, SocialProvider, SocialConnectionStatus, McpServerConnectionRef as McpServerConnectionRef$1, SessionTurnSource, ResourceRef, ToolRef, ReasoningEffort, SandboxBackend, SessionGoal, CapabilityPack, SessionMcpServerMetadata, SessionTurn, SessionEvent, SessionStatus, Session, BillingBalance, AccessContext, FileAsset, ApiKey, ConnectionMetadata, KnowledgeMemory, ScheduledTask, ScheduledTaskTriggerType, ScheduledTaskRun, SandboxOs, SocialConnection, SocialPost, Workspace, WorkspaceEnvironment, CapabilityInstallation, PackInstallation, SessionTurnStatus, CapabilityCatalogItem, FileUploadStatus, ManagedAccount, AccessGrant, WorkspaceRegisteredPack, UsageEvent, WorkspaceMember, SessionGoalStatus, WorkspaceEnvironmentVariableMetadata, PackInstallationStatus, ScheduledTaskRunStatus } from '@opengeni/contracts';
|
|
2
|
+
import { environmentsEncryptionKeyBytes, Settings, McpServerConnectionRef } from '@opengeni/config';
|
|
3
3
|
import { refreshCodexToken, CodexTokenSnapshot, CodexUsagePayload } from '@opengeni/codex';
|
|
4
4
|
import { PgDatabase } from 'drizzle-orm/pg-core';
|
|
5
|
-
import { s as schema, e as enrollmentOsValues, a as enrollmentExposureValues, d as deviceEnrollmentStatusValues, b as enrollmentStatusValues, c as sandboxKindValues, f as sessionRecordingCodecValues, g as sessionRecordingModeValues, h as sessionRecordingStateValues } from './schema-
|
|
5
|
+
import { s as schema, e as enrollmentOsValues, a as enrollmentExposureValues, d as deviceEnrollmentStatusValues, b as enrollmentStatusValues, c as sandboxKindValues, f as sessionRecordingCodecValues, g as sessionRecordingModeValues, h as sessionRecordingStateValues } from './schema-Dsz6UHNv.js';
|
|
6
6
|
import 'drizzle-orm';
|
|
7
7
|
import './migrate.js';
|
|
8
8
|
|
|
@@ -123,6 +123,50 @@ declare function buildCodexTokenResolver(db: Database, settings: Settings, works
|
|
|
123
123
|
*/
|
|
124
124
|
declare function fetchCodexUsageForAccount(db: Database, settings: Settings, workspaceId: string, credentialId: string): Promise<CodexUsagePayload>;
|
|
125
125
|
|
|
126
|
+
type ResolveConnectionCredentialResult = {
|
|
127
|
+
status: "ok";
|
|
128
|
+
headers: Record<string, string>;
|
|
129
|
+
connectionId: string;
|
|
130
|
+
expiresAt?: Date | null;
|
|
131
|
+
} | {
|
|
132
|
+
status: "auth_needed";
|
|
133
|
+
reason: "missing_connection" | "expired" | "insufficient_scope" | "refresh_failed";
|
|
134
|
+
providerDomain: string;
|
|
135
|
+
connectionId?: string;
|
|
136
|
+
scopes?: string[];
|
|
137
|
+
resource?: string;
|
|
138
|
+
authorizationUrl?: string;
|
|
139
|
+
};
|
|
140
|
+
type ResolveConnectionCredentialInput = {
|
|
141
|
+
workspaceId: string;
|
|
142
|
+
subjectId?: string;
|
|
143
|
+
serverId: string;
|
|
144
|
+
toolId?: string;
|
|
145
|
+
connectionRef: McpServerConnectionRef;
|
|
146
|
+
forceRefresh?: boolean;
|
|
147
|
+
};
|
|
148
|
+
type ConnectionBrokerDeps = {
|
|
149
|
+
loadCredential: typeof loadConnectionCredentialForBroker;
|
|
150
|
+
recordRefresh: typeof recordConnectionTokenRefresh;
|
|
151
|
+
setStatus: typeof setConnectionStatus;
|
|
152
|
+
recordUsed: typeof recordConnectionUsed;
|
|
153
|
+
refresh: typeof refreshOAuthConnectionCredential;
|
|
154
|
+
encrypt: typeof encryptEnvironmentValue;
|
|
155
|
+
keyBytes: typeof environmentsEncryptionKeyBytes;
|
|
156
|
+
now: () => Date;
|
|
157
|
+
};
|
|
158
|
+
declare function buildConnectionTokenResolver(db: Database, settings: Settings, deps?: ConnectionBrokerDeps): (input: ResolveConnectionCredentialInput) => Promise<ResolveConnectionCredentialResult>;
|
|
159
|
+
declare class ConnectionRefreshHttpError extends Error {
|
|
160
|
+
readonly httpStatus: number;
|
|
161
|
+
constructor(httpStatus: number);
|
|
162
|
+
}
|
|
163
|
+
declare function refreshOAuthConnectionCredential(cred: ConnectionCredentialForBroker, ref: McpServerConnectionRef, settings?: Settings): Promise<{
|
|
164
|
+
credential: Record<string, unknown>;
|
|
165
|
+
expiresAt: Date | null;
|
|
166
|
+
grantedScopes?: string[];
|
|
167
|
+
}>;
|
|
168
|
+
declare function isPrivateAddress(address: string): boolean;
|
|
169
|
+
|
|
126
170
|
type Database = PgDatabase<any, typeof schema>;
|
|
127
171
|
type DbClient = {
|
|
128
172
|
db: Database;
|
|
@@ -418,6 +462,35 @@ type RegisterWorkspacePackInput = {
|
|
|
418
462
|
workspaceId: string;
|
|
419
463
|
pack: CapabilityPack;
|
|
420
464
|
};
|
|
465
|
+
type CreateKnowledgeMemoryInput = {
|
|
466
|
+
accountId: string;
|
|
467
|
+
workspaceId: string;
|
|
468
|
+
status?: KnowledgeMemoryStatus | undefined;
|
|
469
|
+
kind?: KnowledgeMemoryKind | undefined;
|
|
470
|
+
scope?: string | undefined;
|
|
471
|
+
text: string;
|
|
472
|
+
sourceRefs?: KnowledgeSourceRef[] | undefined;
|
|
473
|
+
confidence?: number | undefined;
|
|
474
|
+
metadata?: Record<string, unknown> | undefined;
|
|
475
|
+
createdBySessionId?: string | null | undefined;
|
|
476
|
+
};
|
|
477
|
+
type UpdateKnowledgeMemoryInput = {
|
|
478
|
+
status?: KnowledgeMemoryStatus | undefined;
|
|
479
|
+
kind?: KnowledgeMemoryKind | undefined;
|
|
480
|
+
scope?: string | undefined;
|
|
481
|
+
text?: string | undefined;
|
|
482
|
+
sourceRefs?: KnowledgeSourceRef[] | undefined;
|
|
483
|
+
confidence?: number | undefined;
|
|
484
|
+
metadata?: Record<string, unknown> | undefined;
|
|
485
|
+
reviewedBy?: string | null | undefined;
|
|
486
|
+
};
|
|
487
|
+
type ListKnowledgeMemoryOptions = {
|
|
488
|
+
query?: string | undefined;
|
|
489
|
+
status?: KnowledgeMemoryStatus | undefined;
|
|
490
|
+
kind?: KnowledgeMemoryKind | undefined;
|
|
491
|
+
scope?: string | undefined;
|
|
492
|
+
limit?: number | undefined;
|
|
493
|
+
};
|
|
421
494
|
type CreateSocialConnectionInput = {
|
|
422
495
|
accountId: string;
|
|
423
496
|
workspaceId: string;
|
|
@@ -443,6 +516,88 @@ type CreateSocialPostInput = {
|
|
|
443
516
|
metrics?: Record<string, number>;
|
|
444
517
|
raw?: Record<string, unknown>;
|
|
445
518
|
};
|
|
519
|
+
type CreateConnectionInput = {
|
|
520
|
+
accountId: string;
|
|
521
|
+
workspaceId: string;
|
|
522
|
+
subjectId?: string | null;
|
|
523
|
+
providerDomain: string;
|
|
524
|
+
kind: ConnectionKind;
|
|
525
|
+
status?: ConnectionStatus;
|
|
526
|
+
credentialEncrypted: string;
|
|
527
|
+
grantedScopes?: string[];
|
|
528
|
+
expiresAt?: Date | null;
|
|
529
|
+
metadata?: Record<string, unknown>;
|
|
530
|
+
createdBySubjectId?: string | null;
|
|
531
|
+
updatedBySubjectId?: string | null;
|
|
532
|
+
};
|
|
533
|
+
type UpdateConnectionInput = {
|
|
534
|
+
workspaceId: string;
|
|
535
|
+
connectionId: string;
|
|
536
|
+
visibleToSubjectId?: string | null;
|
|
537
|
+
expectedVersion?: number | undefined;
|
|
538
|
+
subjectId?: string | null;
|
|
539
|
+
providerDomain?: string;
|
|
540
|
+
kind?: ConnectionKind;
|
|
541
|
+
status?: ConnectionStatus;
|
|
542
|
+
credentialEncrypted?: string;
|
|
543
|
+
grantedScopes?: string[];
|
|
544
|
+
expiresAt?: Date | null;
|
|
545
|
+
metadata?: Record<string, unknown>;
|
|
546
|
+
updatedBySubjectId?: string | null;
|
|
547
|
+
};
|
|
548
|
+
type ConnectionCredentialForBroker = {
|
|
549
|
+
id: string;
|
|
550
|
+
accountId: string;
|
|
551
|
+
workspaceId: string;
|
|
552
|
+
subjectId: string | null;
|
|
553
|
+
providerDomain: string;
|
|
554
|
+
kind: ConnectionKind;
|
|
555
|
+
status: ConnectionStatus;
|
|
556
|
+
credential: Record<string, unknown>;
|
|
557
|
+
grantedScopes: string[];
|
|
558
|
+
expiresAt: Date | null;
|
|
559
|
+
lastRefreshAt: Date | null;
|
|
560
|
+
version: number;
|
|
561
|
+
metadata: Record<string, unknown>;
|
|
562
|
+
};
|
|
563
|
+
type IntegrationOAuthClientForUse = {
|
|
564
|
+
id: string;
|
|
565
|
+
issuer: string;
|
|
566
|
+
authorizationServer: string;
|
|
567
|
+
clientId: string;
|
|
568
|
+
clientSecret: string | null;
|
|
569
|
+
tokenEndpointAuthMethod: string;
|
|
570
|
+
metadata: Record<string, unknown>;
|
|
571
|
+
createdAt: Date;
|
|
572
|
+
updatedAt: Date;
|
|
573
|
+
};
|
|
574
|
+
type StoredIntegrationOAuthClient = {
|
|
575
|
+
id: string;
|
|
576
|
+
issuer: string;
|
|
577
|
+
authorizationServer: string;
|
|
578
|
+
clientId: string;
|
|
579
|
+
clientSecretEncrypted: string | null;
|
|
580
|
+
tokenEndpointAuthMethod: string;
|
|
581
|
+
metadata: Record<string, unknown>;
|
|
582
|
+
createdAt: Date;
|
|
583
|
+
updatedAt: Date;
|
|
584
|
+
};
|
|
585
|
+
type StoreIntegrationOAuthClientInput = {
|
|
586
|
+
issuer: string;
|
|
587
|
+
authorizationServer: string;
|
|
588
|
+
clientId: string;
|
|
589
|
+
clientSecretEncrypted?: string | null;
|
|
590
|
+
tokenEndpointAuthMethod?: string;
|
|
591
|
+
metadata?: Record<string, unknown>;
|
|
592
|
+
};
|
|
593
|
+
type ConsumeOAuthStateNonceInput = {
|
|
594
|
+
accountId: string;
|
|
595
|
+
workspaceId: string;
|
|
596
|
+
subjectId: string;
|
|
597
|
+
nonce: string;
|
|
598
|
+
expiresAt: Date;
|
|
599
|
+
now: Date;
|
|
600
|
+
};
|
|
446
601
|
type CreateCapabilityCatalogItemInput = {
|
|
447
602
|
accountId: string;
|
|
448
603
|
workspaceId: string;
|
|
@@ -459,6 +614,64 @@ type CreateCapabilityCatalogItemInput = {
|
|
|
459
614
|
authModel?: string | null;
|
|
460
615
|
metadata?: Record<string, unknown>;
|
|
461
616
|
};
|
|
617
|
+
type ImportBatch = {
|
|
618
|
+
id: string;
|
|
619
|
+
source: string;
|
|
620
|
+
snapshotDate: string;
|
|
621
|
+
snapshotRef: string | null;
|
|
622
|
+
attributionNote: string;
|
|
623
|
+
importedCount: number;
|
|
624
|
+
skippedCount: number;
|
|
625
|
+
quarantinedCount: number;
|
|
626
|
+
logoFailureCount: number;
|
|
627
|
+
staleCount: number;
|
|
628
|
+
details: Record<string, unknown>;
|
|
629
|
+
createdAt: string;
|
|
630
|
+
updatedAt: string;
|
|
631
|
+
};
|
|
632
|
+
type CreateImportBatchInput = {
|
|
633
|
+
source: string;
|
|
634
|
+
snapshotDate: Date;
|
|
635
|
+
snapshotRef?: string | null;
|
|
636
|
+
attributionNote: string;
|
|
637
|
+
importedCount?: number;
|
|
638
|
+
skippedCount?: number;
|
|
639
|
+
quarantinedCount?: number;
|
|
640
|
+
logoFailureCount?: number;
|
|
641
|
+
staleCount?: number;
|
|
642
|
+
details?: Record<string, unknown>;
|
|
643
|
+
};
|
|
644
|
+
type UpdateImportBatchCountsInput = {
|
|
645
|
+
importedCount: number;
|
|
646
|
+
skippedCount: number;
|
|
647
|
+
quarantinedCount: number;
|
|
648
|
+
logoFailureCount: number;
|
|
649
|
+
staleCount: number;
|
|
650
|
+
details?: Record<string, unknown>;
|
|
651
|
+
};
|
|
652
|
+
type RegistryCapabilityCatalogItemInput = {
|
|
653
|
+
id: string;
|
|
654
|
+
providerDomain: string;
|
|
655
|
+
name: string;
|
|
656
|
+
description?: string | null;
|
|
657
|
+
mcpUrl: string;
|
|
658
|
+
transport: string;
|
|
659
|
+
authKind: "oauth2" | "api_key" | "none" | "unknown";
|
|
660
|
+
credentialFacts: Array<Record<string, unknown>>;
|
|
661
|
+
tier: "verified" | "community";
|
|
662
|
+
provenance: string;
|
|
663
|
+
logoAssetPath?: string | null;
|
|
664
|
+
importBatchId: string;
|
|
665
|
+
scopesHint?: string[];
|
|
666
|
+
homepageUrl?: string | null;
|
|
667
|
+
tags?: string[];
|
|
668
|
+
metadata?: Record<string, unknown>;
|
|
669
|
+
};
|
|
670
|
+
type RegistryCatalogSurfaceKey = {
|
|
671
|
+
id: string;
|
|
672
|
+
providerDomain: string;
|
|
673
|
+
mcpUrl: string;
|
|
674
|
+
};
|
|
462
675
|
type EnableCapabilityInstallationInput = {
|
|
463
676
|
accountId: string;
|
|
464
677
|
workspaceId: string;
|
|
@@ -482,6 +695,7 @@ type EnabledMcpCapabilityServer = {
|
|
|
482
695
|
* capability API surface.
|
|
483
696
|
*/
|
|
484
697
|
headersEncrypted?: Record<string, string>;
|
|
698
|
+
connectionRef?: McpServerConnectionRef$1;
|
|
485
699
|
};
|
|
486
700
|
type CreateSessionMcpServerInput = {
|
|
487
701
|
id: string;
|
|
@@ -490,6 +704,7 @@ type CreateSessionMcpServerInput = {
|
|
|
490
704
|
allowedTools?: string[] | null;
|
|
491
705
|
timeoutMs?: number | null;
|
|
492
706
|
cacheToolsList?: boolean | null;
|
|
707
|
+
requireApproval?: boolean | string[] | null;
|
|
493
708
|
headersEncrypted?: Record<string, string>;
|
|
494
709
|
};
|
|
495
710
|
type UpdateSessionMcpServerCredentialsInput = {
|
|
@@ -504,6 +719,7 @@ type SessionMcpServerForRun = SessionMcpServerMetadata & {
|
|
|
504
719
|
allowedTools?: string[];
|
|
505
720
|
timeoutMs?: number;
|
|
506
721
|
cacheToolsList?: boolean;
|
|
722
|
+
requireApproval?: boolean | string[];
|
|
507
723
|
headers: Record<string, string>;
|
|
508
724
|
};
|
|
509
725
|
type EnqueueSessionTurnInput = {
|
|
@@ -568,6 +784,14 @@ declare function registerWorkspacePack(db: Database, input: RegisterWorkspacePac
|
|
|
568
784
|
declare function listWorkspacePacks(db: Database, workspaceId: string): Promise<WorkspaceRegisteredPack[]>;
|
|
569
785
|
declare function getWorkspacePack(db: Database, workspaceId: string, packId: string): Promise<WorkspaceRegisteredPack | null>;
|
|
570
786
|
declare function deleteWorkspacePack(db: Database, workspaceId: string, packId: string): Promise<boolean>;
|
|
787
|
+
declare function createImportBatch(db: Database, input: CreateImportBatchInput): Promise<ImportBatch>;
|
|
788
|
+
declare function updateImportBatchCounts(db: Database, id: string, input: UpdateImportBatchCountsInput): Promise<ImportBatch>;
|
|
789
|
+
declare function upsertRegistryCapabilityCatalogItem(db: Database, input: RegistryCapabilityCatalogItemInput): Promise<CapabilityCatalogItem>;
|
|
790
|
+
declare function listRegistryCatalogSurfaceKeys(db: Database): Promise<RegistryCatalogSurfaceKey[]>;
|
|
791
|
+
declare function markStaleRegistryCatalogItems(db: Database, activeKeys: Iterable<{
|
|
792
|
+
providerDomain: string;
|
|
793
|
+
mcpUrl: string;
|
|
794
|
+
}>, importBatchId: string): Promise<number>;
|
|
571
795
|
declare function upsertCapabilityCatalogItem(db: Database, input: CreateCapabilityCatalogItemInput): Promise<CapabilityCatalogItem>;
|
|
572
796
|
declare function listCapabilityCatalogItems(db: Database, workspaceId: string): Promise<CapabilityCatalogItem[]>;
|
|
573
797
|
declare function getCapabilityCatalogItem(db: Database, workspaceId: string, capabilityId: string): Promise<CapabilityCatalogItem | null>;
|
|
@@ -591,6 +815,40 @@ declare function decryptedCapabilityHeaders(server: EnabledMcpCapabilityServer,
|
|
|
591
815
|
*/
|
|
592
816
|
declare function getStoredCapabilityHeaderCiphertext(db: Database, workspaceId: string, capabilityId: string): Promise<Record<string, string> | null>;
|
|
593
817
|
declare function mcpServerIdForCapability(capabilityId: string, metadata?: Record<string, unknown>): string;
|
|
818
|
+
declare function createConnection(db: Database, input: CreateConnectionInput): Promise<ConnectionMetadata>;
|
|
819
|
+
declare function listConnectionsMetadata(db: Database, workspaceId: string, subjectId?: string | null): Promise<ConnectionMetadata[]>;
|
|
820
|
+
declare function getConnectionMetadata(db: Database, workspaceId: string, connectionId: string, subjectId?: string | null): Promise<ConnectionMetadata | null>;
|
|
821
|
+
declare function updateConnection(db: Database, input: UpdateConnectionInput): Promise<ConnectionMetadata | null>;
|
|
822
|
+
declare function revokeConnection(db: Database, workspaceId: string, connectionId: string, updatedBySubjectId?: string | null): Promise<ConnectionMetadata | null>;
|
|
823
|
+
declare function loadConnectionCredentialForBroker(db: Database, settings: Settings, input: {
|
|
824
|
+
workspaceId: string;
|
|
825
|
+
connectionId?: string;
|
|
826
|
+
providerDomain: string;
|
|
827
|
+
kind?: ConnectionKind;
|
|
828
|
+
subjectId?: string | null;
|
|
829
|
+
allowSubjectOwned?: boolean;
|
|
830
|
+
}): Promise<ConnectionCredentialForBroker | null>;
|
|
831
|
+
declare function recordConnectionTokenRefresh(db: Database, input: {
|
|
832
|
+
id: string;
|
|
833
|
+
version: number;
|
|
834
|
+
workspaceId: string;
|
|
835
|
+
credentialEncrypted: string;
|
|
836
|
+
expiresAt: Date | null;
|
|
837
|
+
grantedScopes?: string[];
|
|
838
|
+
lastRefreshAt: Date;
|
|
839
|
+
}): Promise<boolean>;
|
|
840
|
+
declare function setConnectionStatus(db: Database, workspaceId: string, status: ConnectionStatus, lastError: string | null, guard: {
|
|
841
|
+
id: string;
|
|
842
|
+
version: number;
|
|
843
|
+
}): Promise<boolean>;
|
|
844
|
+
declare function recordConnectionUsed(db: Database, workspaceId: string, connectionId: string): Promise<void>;
|
|
845
|
+
declare function loadIntegrationOAuthClient(db: Database, settings: Settings, issuer: string): Promise<IntegrationOAuthClientForUse | null>;
|
|
846
|
+
declare function storeIntegrationOAuthClient(db: Database, input: StoreIntegrationOAuthClientInput): Promise<StoredIntegrationOAuthClient>;
|
|
847
|
+
declare function consumeIntegrationOAuthStateNonce(db: Database, input: ConsumeOAuthStateNonceInput): Promise<boolean>;
|
|
848
|
+
declare function createKnowledgeMemory(db: Database, input: CreateKnowledgeMemoryInput): Promise<KnowledgeMemory>;
|
|
849
|
+
declare function updateKnowledgeMemory(db: Database, workspaceId: string, memoryId: string, input: UpdateKnowledgeMemoryInput): Promise<KnowledgeMemory>;
|
|
850
|
+
declare function getKnowledgeMemory(db: Database, workspaceId: string, memoryId: string): Promise<KnowledgeMemory | null>;
|
|
851
|
+
declare function listKnowledgeMemories(db: Database, workspaceId: string, options?: ListKnowledgeMemoryOptions): Promise<KnowledgeMemory[]>;
|
|
594
852
|
declare function createSocialConnection(db: Database, input: CreateSocialConnectionInput): Promise<SocialConnection>;
|
|
595
853
|
declare function listSocialConnections(db: Database, workspaceId: string, limit?: number): Promise<SocialConnection[]>;
|
|
596
854
|
declare function getSocialConnection(db: Database, workspaceId: string, connectionId: string): Promise<SocialConnection | null>;
|
|
@@ -1077,6 +1335,23 @@ type ListSessionEventsOptions = {
|
|
|
1077
1335
|
declare function listSessionEvents(db: Database, workspaceId: string, sessionId: string): Promise<SessionEvent[]>;
|
|
1078
1336
|
declare function listSessionEvents(db: Database, workspaceId: string, sessionId: string, after: number, limit?: number): Promise<SessionEvent[]>;
|
|
1079
1337
|
declare function listSessionEvents(db: Database, workspaceId: string, sessionId: string, options: ListSessionEventsOptions): Promise<SessionEvent[]>;
|
|
1338
|
+
type ToolspaceCallReservation = {
|
|
1339
|
+
reserved: true;
|
|
1340
|
+
count: number;
|
|
1341
|
+
} | {
|
|
1342
|
+
reserved: false;
|
|
1343
|
+
};
|
|
1344
|
+
/**
|
|
1345
|
+
* Atomically reserve one toolspace call against a turn's per-turn budget.
|
|
1346
|
+
*
|
|
1347
|
+
* A single conditional UPDATE increments `toolspace_call_count` only while it is
|
|
1348
|
+
* below `limit` and returns the post-increment value. Concurrent reservations
|
|
1349
|
+
* for the same turn serialize on the row lock, so exactly `limit` of N
|
|
1350
|
+
* simultaneous callers observe `reserved: true` — closing the read-then-append
|
|
1351
|
+
* TOCTOU the event-count approach had. `reserved: false` means the turn is at or
|
|
1352
|
+
* over budget (or the turn row no longer exists).
|
|
1353
|
+
*/
|
|
1354
|
+
declare function reserveToolspaceCallForTurn(db: Database, workspaceId: string, sessionId: string, turnId: string, limit: number): Promise<ToolspaceCallReservation>;
|
|
1080
1355
|
declare function getSessionEvent(db: Database, workspaceId: string, eventId: string): Promise<SessionEvent | null>;
|
|
1081
1356
|
declare function getLatestRunState(db: Database, workspaceId: string, sessionId: string): Promise<{
|
|
1082
1357
|
id: string;
|
|
@@ -1616,6 +1891,9 @@ type EnrollmentRecord = {
|
|
|
1616
1891
|
pubkey: string;
|
|
1617
1892
|
exposure: EnrollmentExposure;
|
|
1618
1893
|
hasDisplay: boolean;
|
|
1894
|
+
/** Set when a display exists but capture is not permitted (macOS Screen Recording
|
|
1895
|
+
* not granted); null when capture is permitted or the machine is headless. */
|
|
1896
|
+
desktopUnavailableReason: string | null;
|
|
1619
1897
|
allowScreenControl: boolean;
|
|
1620
1898
|
status: EnrollmentStatus;
|
|
1621
1899
|
os: EnrollmentOs;
|
|
@@ -1661,11 +1939,12 @@ declare function touchEnrollmentLastSeen(db: Database, input: {
|
|
|
1661
1939
|
workspaceId: string;
|
|
1662
1940
|
enrollmentId: string;
|
|
1663
1941
|
}): Promise<void>;
|
|
1664
|
-
declare function
|
|
1942
|
+
declare function setEnrollmentDisplayState(db: Database, input: {
|
|
1665
1943
|
accountId: string;
|
|
1666
1944
|
workspaceId: string;
|
|
1667
1945
|
enrollmentId: string;
|
|
1668
1946
|
hasDisplay: boolean;
|
|
1947
|
+
desktopUnavailableReason: string | null;
|
|
1669
1948
|
}): Promise<{
|
|
1670
1949
|
updated: boolean;
|
|
1671
1950
|
}>;
|
|
@@ -2144,4 +2423,4 @@ type LockedSessionUpdateResult = {
|
|
|
2144
2423
|
declare function appendSessionEventsWithLockedSessionUpdate(db: Database, workspaceId: string, sessionId: string, build: (session: Session, context: LockedSessionUpdateContext) => LockedSessionUpdateResult | Promise<LockedSessionUpdateResult>): Promise<SessionEvent[]>;
|
|
2145
2424
|
declare function sessionSubject(workspaceId: string, sessionId: string): string;
|
|
2146
2425
|
|
|
2147
|
-
export { SandboxLeaseSupersededError as $, type AccrueWarmSecondsResult as A, type BootstrapWorkspaceInput as B, CLEARED_RUN_STATE as C, type Database as D, type EnableCapabilityInstallationInput as E, type EnrollmentExposure as F, type EnrollmentOs as G, type EnrollmentRecord as H, type EnrollmentStatus as I, type ForceDrainResult as J, type GitHubInstallation as K, type GoalContinuationDecision as L, type LeaseHolderKind as M, type LeaseSnapshot as N, type ListSessionEventsOptions as O, type LiveModalSandboxLeaseAttribution as P, type ProvisionResult, type ProvisionRolesOptions, MACHINE_METRICS_SERIES_INTERVAL_MS as Q, type MachineMetricsRow as R, type MachineMetricsSample as S, type MeterableWarmLease as T, type ReapDrainable as U, type RegisterWorkspacePackInput as V, type RlsContext as W, type RlsStrategy as X, SandboxImageConflictError as Y, type SandboxKind as Z, type SandboxLeaseLiveness as _, type AcquireLeaseInput as a, createSessionGoal as a$, type SandboxPtySessionRow as a0, type SandboxRecord as a1, type SessionCodexState as a2, type SessionMcpServerForRun as a3, type SessionRecordingCodec as a4, type SessionRecordingMode as a5, type SessionRecordingRow as a6, type SessionRecordingState as a7, type StreamAcknowledgment as a8, type UpdateQueuedSessionTurnInput as a9, commitWarmingToWarm as aA, completeFileUpload as aB, confirmDrainCold as aC, consumeDeviceEnrollmentRequest as aD, consumeSessionCompactionRequest as aE, countActiveApiKeysForWorkspace as aF, countActiveSessionHistoryItems as aG, countActiveSessionsForWorkspace as aH, countActiveSessionsUsingEnvironment as aI, countConsecutiveReactiveRotations as aJ, countQueuedTurns as aK, countSandboxLeasesByLiveness as aL, countScheduledTasksForWorkspace as aM, countScheduledTasksUsingEnvironment as aN, countSessionHistoryItems as aO, countTurnSessionHistoryItems as aP, countWorkspaceEnvironments as aQ, countWorkspacesForAccount as aR, createApiKey as aS, createDb as aT, createDeviceEnrollmentRequest as aU, createEnrollment as aV, createFileUpload as aW, createSandbox as aX, createScheduledTask as aY, createScheduledTaskRun as aZ, createSession as a_, type UpdateScheduledTaskInput as aa, type UpdateSessionMcpServerCredentialsInput as ab, type UpdateSessionMcpServerCredentialsResult as ac, type UserLookup as ad, type WakeParentForChildCompletionInput as ae, type WakeParentForChildCompletionResult as af, type WorkspaceEnvironmentForRun as ag, accrueWarmSeconds as ah, acquireLease as ai, allAccountPermissions as aj, allWorkspacePermissions as ak, appendSessionEvents as al, appendSessionEventsAndUpdateSession as am, appendSessionEventsWithLockedSessionUpdate as an, appendSessionHistoryItems as ao, applyContextCompaction as ap, applyCreditDebitUpToBalance as aq, applyCreditLedgerEntry as ar, approveDeviceEnrollmentRequest as as, bootstrapWorkspace as at, buildCodexTokenResolver as au, cancelQueuedSessionTurn as av, claimNextQueuedTurn as aw, clearSessionContext as ax, clearedContextMarkerItem as ay, closePtySession as az, type AcquireLeaseResult as b, getStoredCapabilityHeaderCiphertext as b$, createSessionMcpServers as b0, createSessionWithIdempotencyKey as b1, createSocialConnection as b2, createSocialPost as b3, createTurn as b4, createWorkspace as b5, createWorkspaceEnvironment as b6, decryptEnvironmentValue as b7, decryptedCapabilityHeaders as b8, deleteRecording as b9, getCapabilityCatalogItem as bA, getCapabilityInstallation as bB, getCodexCredentialStatus as bC, getCodexRotationSettings as bD, getDeviceEnrollmentRequestByDeviceCode as bE, getEnrollment as bF, getFile as bG, getFileUpload as bH, getLatestRunState as bI, getManagedAccount as bJ, getManagedUserByEmail as bK, getOpenPtySession as bL, getPackInstallation as bM, getPendingDeviceEnrollmentRequestByUserCode as bN, getPendingDeviceEnrollmentRequestByUserCodeGlobal as bO, getRecording as bP, getSandbox as bQ, getSandboxSessionEnvelope as bR, getScheduledTask as bS, getSession as bT, getSessionByCreateIdempotencyKey as bU, getSessionCodexState as bV, getSessionEvent as bW, getSessionGoal as bX, getSessionHistoryItems as bY, getSessionTurn as bZ, getSocialConnection as b_, deleteScheduledTask as ba, deleteWorkspace as bb, deleteWorkspaceEnvironment as bc, deleteWorkspaceEnvironmentVariable as bd, deleteWorkspacePack as be, denyDeviceEnrollmentRequest as bf, disableCapabilityInstallation as bg, disconnectAllCodexAccounts as bh, disconnectCodexAccount as bi, enableCapabilityInstallation as bj, enablePackInstallation as bk, encryptEnvironmentValue as bl, enqueueSessionTurn as bm, ensureCodexRotationSettings as bn, ensureManagedAccessForUser as bo, evaluateGoalContinuation as bp, failWarmingToCold as bq, fetchCodexUsageForAccount as br, finalizeEnrollmentByToken as bs, findActiveApiKeyByHash as bt, finishTurn as bu, forceDrainOverLimitViewerOnlyBoxes as bv, getActiveSessionHistoryItems as bw, getAnySessionInGroup as bx, getBillingBalance as by, getBillingCustomer as bz, type ActiveSandboxPointer as c, recordAuditEvent as c$, getStreamAcknowledgment as c0, getWorkspace as c1, getWorkspaceEnvironment as c2, getWorkspaceEnvironmentByName as c3, getWorkspaceEnvironmentValuesForRun as c4, getWorkspaceGrant as c5, getWorkspacePack as c6, grantWorkspaceAccess as c7, hasCreditLedgerEntry as c8, heartbeatLeaseHolder as c9, listSessionMcpServerMetadata as cA, listSessionMcpServersForRun as cB, listSessionTurns as cC, listSessions as cD, listSocialConnections as cE, listSocialPosts as cF, listUsageEvents as cG, listWorkspaceEnvironments as cH, listWorkspaceMembers as cI, listWorkspacePacks as cJ, listWorkspacesForSubject as cK, loadCodexCredentialForRun as cL, loadWorkspaceEnvironmentForRun as cM, markFileUploadFailed as cN, markStripeWebhookProcessed as cO, mcpServerIdForCapability as cP, nextSessionHistoryPosition as cQ, orphanedResultRowIndicesForRepair as cR, persistDrainSnapshot as cS, reArmDrainingLease as cT, readActiveSandbox as cU, readLease as cV, readMachineMetricsLatest as cW, readMachineMetricsLatestForWorkspace as cX, readMachineMetricsSeries as cY, reapStaleLeaseHolders as cZ, reapStaleLeaseHoldersGlobal as c_, incrementTurnWorkerDeathRedispatches as ca, ingestMachineMetricsSample as cb, insertMachineMetricsSeries as cc, insertPtySession as cd, insertRecording as ce, isCodexBilledTurn as cf, isStripeWebhookProcessed as cg, listApiKeys as ch, listCapabilityCatalogItems as ci, listCapabilityInstallations as cj, listCodexAccountStatuses as ck, listDistinctEnvironmentIdsInGroup as cl, listEnabledMcpCapabilityServers as cm, listEnrollments as cn, listGitHubInstallationIdsForWorkspace as co, listGitHubInstallationsForWorkspace as cp, listLiveModalSandboxLeaseAttributions as cq, listMeterableWarmLeases as cr, listOpenPtySessions as cs, listPackInstallations as ct, listRecordings as cu, listSandboxes as cv, listScheduledTaskRuns as cw, listScheduledTasks as cx, listSessionEvents as cy, listSessionIdsInGroup as cz, type AppendEventInput as d, upsertGitHubInstallation as d$, recordCodexAccountConnectors as d0, recordCodexAccountUsage as d1, recordCodexTokenRefresh as d2, recordLeaseDataPlaneUrl as d3, recordLeaseTerminalDataPlaneUrl as d4, recordSessionActiveCodexCredential as d5, recordStreamAcknowledgment as d6, recordStripeWebhookEvent as d7, recordUsageEvent as d8, recordWarmingSandboxCreated as d9, setCodexCredentialStatus as dA, setEnrollmentHasDisplay as dB, setRlsContext as dC, setSessionCodexPin as dD, setSessionGoalLastContinuationTurn as dE, setSessionGoalStatus as dF, setSessionLastInputTokens as dG, setSessionStatus as dH, setTemporalWorkflowId as dI, setWorkspaceEnvironmentVariable as dJ, sumUsageQuantity as dK, touchEnrollmentLastSeen as dL, updateCodexRotationSettings as dM, updatePackInstallationStatus as dN, updatePtySessionActivity as dO, updateQueuedSessionTurn as dP, updateRecording as dQ, updateScheduledTask as dR, updateScheduledTaskRun as dS, updateSessionGoal as dT, updateSessionMcpServerCredentials as dU, updateSessionTitle as dV, updateWorkspace as dW, updateWorkspaceEnvironment as dX, upsertBillingCustomer as dY, upsertCapabilityCatalogItem as dZ, upsertCodexSubscriptionCredential as d_, registerDbBinding as da, registerWorkspacePack as db, releaseLeaseHolder as dc, removeWorkspaceMember as dd, renameCodexAccount as de, reorderQueuedSessionTurns as df, requestSessionCompaction as dg, requeuePreemptedTurn as dh, requireFile as di, requireScheduledTask as dj, requireSession as dk, requireSocialConnection as dl, requireWorkspace as dm, revokeApiKey as dn, revokeEnrollment as dp, revokeViewer as dq, rlsContextForWorkspace as dr, rlsStrategyFor as ds, sanitizeEventPayload as dt, sanitizeEventString as du, saveRunState as dv, sessionSubject as dw, setActiveCodexCredential as dx, setActiveSandbox as dy, setCodexCredentialExhausted as dz, CODEX_ROTATION_STRATEGIES as e, upsertMachineMetricsLatest as e0, upsertSandboxSessionEnvelope as e1, upsertSessionGoal as e2, wakeParentSessionForChildCompletion as e3, withAccountRls as e4, withRlsContext as e5, withWorkspaceRls as e6, withWorkspaceUsageLock as e7, workspaceCodexSubscriptionActive as e8, type ClearSessionContextResult as f, type CodexAccountStatus as g, type CodexAccountUsageSnapshot as h, type CodexAuthDeps as i, type CodexCredentialForRun as j, type CodexCredentialTokens as k, type CodexRotationSettings as l, type CodexRotationStrategy as m, type CreateCapabilityCatalogItemInput as n, type CreateDbOptions as o, type CreatePackInstallationInput as p, provisionRoles, type CreateScheduledTaskInput as q, type CreateSessionGoalInput as r, type CreateSessionMcpServerInput as s, type CreateSocialConnectionInput as t, type CreateSocialPostInput as u, type DbClient as v, type DeviceEnrollmentRequestRecord as w, type DeviceEnrollmentStatus as x, type EnabledMcpCapabilityServer as y, type EnqueueSessionTurnInput as z };
|
|
2426
|
+
export { type MachineMetricsRow as $, type AccrueWarmSecondsResult as A, type BootstrapWorkspaceInput as B, CLEARED_RUN_STATE as C, type CreateSocialConnectionInput as D, type CreateSocialPostInput as E, type Database as F, type DbClient as G, type DeviceEnrollmentRequestRecord as H, type DeviceEnrollmentStatus as I, type EnableCapabilityInstallationInput as J, type EnabledMcpCapabilityServer as K, type EnqueueSessionTurnInput as L, type EnrollmentExposure as M, type EnrollmentOs as N, type EnrollmentRecord as O, type EnrollmentStatus as P, type ProvisionResult, type ProvisionRolesOptions, type ForceDrainResult as Q, type GitHubInstallation as R, type GoalContinuationDecision as S, type ImportBatch as T, type IntegrationOAuthClientForUse as U, type LeaseHolderKind as V, type LeaseSnapshot as W, type ListKnowledgeMemoryOptions as X, type ListSessionEventsOptions as Y, type LiveModalSandboxLeaseAttribution as Z, MACHINE_METRICS_SERIES_INTERVAL_MS as _, type AcquireLeaseInput as a, countActiveApiKeysForWorkspace as a$, type MachineMetricsSample as a0, type MeterableWarmLease as a1, type ReapDrainable as a2, type RegisterWorkspacePackInput as a3, type RegistryCapabilityCatalogItemInput as a4, type RegistryCatalogSurfaceKey as a5, type ResolveConnectionCredentialInput as a6, type ResolveConnectionCredentialResult as a7, type RlsContext as a8, type RlsStrategy as a9, type WorkspaceEnvironmentForRun as aA, accrueWarmSeconds as aB, acquireLease as aC, allAccountPermissions as aD, allWorkspacePermissions as aE, appendSessionEvents as aF, appendSessionEventsAndUpdateSession as aG, appendSessionEventsWithLockedSessionUpdate as aH, appendSessionHistoryItems as aI, applyContextCompaction as aJ, applyCreditDebitUpToBalance as aK, applyCreditLedgerEntry as aL, approveDeviceEnrollmentRequest as aM, bootstrapWorkspace as aN, buildCodexTokenResolver as aO, buildConnectionTokenResolver as aP, cancelQueuedSessionTurn as aQ, claimNextQueuedTurn as aR, clearSessionContext as aS, clearedContextMarkerItem as aT, closePtySession as aU, commitWarmingToWarm as aV, completeFileUpload as aW, confirmDrainCold as aX, consumeDeviceEnrollmentRequest as aY, consumeIntegrationOAuthStateNonce as aZ, consumeSessionCompactionRequest as a_, SandboxImageConflictError as aa, type SandboxKind as ab, type SandboxLeaseLiveness as ac, SandboxLeaseSupersededError as ad, type SandboxPtySessionRow as ae, type SandboxRecord as af, type SessionCodexState as ag, type SessionMcpServerForRun as ah, type SessionRecordingCodec as ai, type SessionRecordingMode as aj, type SessionRecordingRow as ak, type SessionRecordingState as al, type StoreIntegrationOAuthClientInput as am, type StoredIntegrationOAuthClient as an, type StreamAcknowledgment as ao, type ToolspaceCallReservation as ap, type UpdateConnectionInput as aq, type UpdateImportBatchCountsInput as ar, type UpdateKnowledgeMemoryInput as as, type UpdateQueuedSessionTurnInput as at, type UpdateScheduledTaskInput as au, type UpdateSessionMcpServerCredentialsInput as av, type UpdateSessionMcpServerCredentialsResult as aw, type UserLookup as ax, type WakeParentForChildCompletionInput as ay, type WakeParentForChildCompletionResult as az, type AcquireLeaseResult as b, getCodexCredentialStatus as b$, countActiveSessionHistoryItems as b0, countActiveSessionsForWorkspace as b1, countActiveSessionsUsingEnvironment as b2, countConsecutiveReactiveRotations as b3, countQueuedTurns as b4, countSandboxLeasesByLiveness as b5, countScheduledTasksForWorkspace as b6, countScheduledTasksUsingEnvironment as b7, countSessionHistoryItems as b8, countTurnSessionHistoryItems as b9, deleteWorkspace as bA, deleteWorkspaceEnvironment as bB, deleteWorkspaceEnvironmentVariable as bC, deleteWorkspacePack as bD, denyDeviceEnrollmentRequest as bE, disableCapabilityInstallation as bF, disconnectAllCodexAccounts as bG, disconnectCodexAccount as bH, enableCapabilityInstallation as bI, enablePackInstallation as bJ, encryptEnvironmentValue as bK, enqueueSessionTurn as bL, ensureCodexRotationSettings as bM, ensureManagedAccessForUser as bN, evaluateGoalContinuation as bO, failWarmingToCold as bP, fetchCodexUsageForAccount as bQ, finalizeEnrollmentByToken as bR, findActiveApiKeyByHash as bS, finishTurn as bT, forceDrainOverLimitViewerOnlyBoxes as bU, getActiveSessionHistoryItems as bV, getAnySessionInGroup as bW, getBillingBalance as bX, getBillingCustomer as bY, getCapabilityCatalogItem as bZ, getCapabilityInstallation as b_, countWorkspaceEnvironments as ba, countWorkspacesForAccount as bb, createApiKey as bc, createConnection as bd, createDb as be, createDeviceEnrollmentRequest as bf, createEnrollment as bg, createFileUpload as bh, createImportBatch as bi, createKnowledgeMemory as bj, createSandbox as bk, createScheduledTask as bl, createScheduledTaskRun as bm, createSession as bn, createSessionGoal as bo, createSessionMcpServers as bp, createSessionWithIdempotencyKey as bq, createSocialConnection as br, createSocialPost as bs, createTurn as bt, createWorkspace as bu, createWorkspaceEnvironment as bv, decryptEnvironmentValue as bw, decryptedCapabilityHeaders as bx, deleteRecording as by, deleteScheduledTask as bz, type ActiveSandboxPointer as c, listScheduledTaskRuns as c$, getCodexRotationSettings as c0, getConnectionMetadata as c1, getDeviceEnrollmentRequestByDeviceCode as c2, getEnrollment as c3, getFile as c4, getFileUpload as c5, getKnowledgeMemory as c6, getLatestRunState as c7, getManagedAccount as c8, getManagedUserByEmail as c9, heartbeatLeaseHolder as cA, incrementTurnWorkerDeathRedispatches as cB, ingestMachineMetricsSample as cC, insertMachineMetricsSeries as cD, insertPtySession as cE, insertRecording as cF, isCodexBilledTurn as cG, isPrivateAddress as cH, isStripeWebhookProcessed as cI, listApiKeys as cJ, listCapabilityCatalogItems as cK, listCapabilityInstallations as cL, listCodexAccountStatuses as cM, listConnectionsMetadata as cN, listDistinctEnvironmentIdsInGroup as cO, listEnabledMcpCapabilityServers as cP, listEnrollments as cQ, listGitHubInstallationIdsForWorkspace as cR, listGitHubInstallationsForWorkspace as cS, listKnowledgeMemories as cT, listLiveModalSandboxLeaseAttributions as cU, listMeterableWarmLeases as cV, listOpenPtySessions as cW, listPackInstallations as cX, listRecordings as cY, listRegistryCatalogSurfaceKeys as cZ, listSandboxes as c_, getOpenPtySession as ca, getPackInstallation as cb, getPendingDeviceEnrollmentRequestByUserCode as cc, getPendingDeviceEnrollmentRequestByUserCodeGlobal as cd, getRecording as ce, getSandbox as cf, getSandboxSessionEnvelope as cg, getScheduledTask as ch, getSession as ci, getSessionByCreateIdempotencyKey as cj, getSessionCodexState as ck, getSessionEvent as cl, getSessionGoal as cm, getSessionHistoryItems as cn, getSessionTurn as co, getSocialConnection as cp, getStoredCapabilityHeaderCiphertext as cq, getStreamAcknowledgment as cr, getWorkspace as cs, getWorkspaceEnvironment as ct, getWorkspaceEnvironmentByName as cu, getWorkspaceEnvironmentValuesForRun as cv, getWorkspaceGrant as cw, getWorkspacePack as cx, grantWorkspaceAccess as cy, hasCreditLedgerEntry as cz, type AppendEventInput as d, revokeConnection as d$, listScheduledTasks as d0, listSessionEvents as d1, listSessionIdsInGroup as d2, listSessionMcpServerMetadata as d3, listSessionMcpServersForRun as d4, listSessionTurns as d5, listSessions as d6, listSocialConnections as d7, listSocialPosts as d8, listUsageEvents as d9, recordCodexAccountUsage as dA, recordCodexTokenRefresh as dB, recordConnectionTokenRefresh as dC, recordConnectionUsed as dD, recordLeaseDataPlaneUrl as dE, recordLeaseTerminalDataPlaneUrl as dF, recordSessionActiveCodexCredential as dG, recordStreamAcknowledgment as dH, recordStripeWebhookEvent as dI, recordUsageEvent as dJ, recordWarmingSandboxCreated as dK, refreshOAuthConnectionCredential as dL, registerDbBinding as dM, registerWorkspacePack as dN, releaseLeaseHolder as dO, removeWorkspaceMember as dP, renameCodexAccount as dQ, reorderQueuedSessionTurns as dR, requestSessionCompaction as dS, requeuePreemptedTurn as dT, requireFile as dU, requireScheduledTask as dV, requireSession as dW, requireSocialConnection as dX, requireWorkspace as dY, reserveToolspaceCallForTurn as dZ, revokeApiKey as d_, listWorkspaceEnvironments as da, listWorkspaceMembers as db, listWorkspacePacks as dc, listWorkspacesForSubject as dd, loadCodexCredentialForRun as de, loadConnectionCredentialForBroker as df, loadIntegrationOAuthClient as dg, loadWorkspaceEnvironmentForRun as dh, markFileUploadFailed as di, markStaleRegistryCatalogItems as dj, markStripeWebhookProcessed as dk, mcpServerIdForCapability as dl, nextSessionHistoryPosition as dm, orphanedResultRowIndicesForRepair as dn, persistDrainSnapshot as dp, reArmDrainingLease as dq, readActiveSandbox as dr, readLease as ds, readMachineMetricsLatest as dt, readMachineMetricsLatestForWorkspace as du, readMachineMetricsSeries as dv, reapStaleLeaseHolders as dw, reapStaleLeaseHoldersGlobal as dx, recordAuditEvent as dy, recordCodexAccountConnectors as dz, CODEX_ROTATION_STRATEGIES as e, revokeEnrollment as e0, revokeViewer as e1, rlsContextForWorkspace as e2, rlsStrategyFor as e3, sanitizeEventPayload as e4, sanitizeEventString as e5, saveRunState as e6, sessionSubject as e7, setActiveCodexCredential as e8, setActiveSandbox as e9, updateSessionMcpServerCredentials as eA, updateSessionTitle as eB, updateWorkspace as eC, updateWorkspaceEnvironment as eD, upsertBillingCustomer as eE, upsertCapabilityCatalogItem as eF, upsertCodexSubscriptionCredential as eG, upsertGitHubInstallation as eH, upsertMachineMetricsLatest as eI, upsertRegistryCapabilityCatalogItem as eJ, upsertSandboxSessionEnvelope as eK, upsertSessionGoal as eL, wakeParentSessionForChildCompletion as eM, withAccountRls as eN, withRlsContext as eO, withWorkspaceRls as eP, withWorkspaceUsageLock as eQ, workspaceCodexSubscriptionActive as eR, setCodexCredentialExhausted as ea, setCodexCredentialStatus as eb, setConnectionStatus as ec, setEnrollmentDisplayState as ed, setRlsContext as ee, setSessionCodexPin as ef, setSessionGoalLastContinuationTurn as eg, setSessionGoalStatus as eh, setSessionLastInputTokens as ei, setSessionStatus as ej, setTemporalWorkflowId as ek, setWorkspaceEnvironmentVariable as el, storeIntegrationOAuthClient as em, sumUsageQuantity as en, touchEnrollmentLastSeen as eo, updateCodexRotationSettings as ep, updateConnection as eq, updateImportBatchCounts as er, updateKnowledgeMemory as es, updatePackInstallationStatus as et, updatePtySessionActivity as eu, updateQueuedSessionTurn as ev, updateRecording as ew, updateScheduledTask as ex, updateScheduledTaskRun as ey, updateSessionGoal as ez, type ClearSessionContextResult as f, type CodexAccountStatus as g, type CodexAccountUsageSnapshot as h, type CodexAuthDeps as i, type CodexCredentialForRun as j, type CodexCredentialTokens as k, type CodexRotationSettings as l, type CodexRotationStrategy as m, type ConnectionBrokerDeps as n, type ConnectionCredentialForBroker as o, ConnectionRefreshHttpError as p, provisionRoles, type ConsumeOAuthStateNonceInput as q, type CreateCapabilityCatalogItemInput as r, type CreateConnectionInput as s, type CreateDbOptions as t, type CreateImportBatchInput as u, type CreateKnowledgeMemoryInput as v, type CreatePackInstallationInput as w, type CreateScheduledTaskInput as x, type CreateSessionGoalInput as y, type CreateSessionMcpServerInput as z };
|