@opengeni/db 0.28.1 → 0.31.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/attached-browser-devices.d.ts +42 -0
- package/dist/attempt-tool-catalogs.d.ts +16 -0
- package/dist/browser-auth.d.ts +91 -0
- package/dist/browser-identities.d.ts +128 -0
- package/dist/browser-sessions.d.ts +272 -0
- package/dist/browser-state-artifacts.d.ts +17 -0
- package/dist/capability-components.d.ts +37 -0
- package/dist/capability-integrations.d.ts +192 -0
- package/dist/chunk-F5FT7BEZ.js +3535 -0
- package/dist/chunk-F5FT7BEZ.js.map +1 -0
- package/dist/chunk-ISI2TIUG.js +639 -0
- package/dist/chunk-ISI2TIUG.js.map +1 -0
- package/dist/chunk-MWDVXQOL.js +11639 -0
- package/dist/chunk-MWDVXQOL.js.map +1 -0
- package/dist/chunk-NBE6CHRI.js +955 -0
- package/dist/chunk-NBE6CHRI.js.map +1 -0
- package/dist/{chunk-DBS5HPEW.js → chunk-YHZXQ7HP.js} +760 -11
- package/dist/chunk-YHZXQ7HP.js.map +1 -0
- package/dist/codemode-operations.d.ts +117 -0
- package/dist/codex-token-resolver.d.ts +2 -2
- package/dist/company-profile-schema.d.ts +798 -0
- package/dist/company-profile.d.ts +268 -0
- package/dist/computer-sessions.d.ts +109 -0
- package/dist/connection-token-resolver.d.ts +9 -4
- package/dist/database.d.ts +52 -3
- package/dist/editable-artifact-durable-export.d.ts +153 -0
- package/dist/editable-artifact-durable-export.js +788 -0
- package/dist/editable-artifact-durable-export.js.map +1 -0
- package/dist/editable-artifact-materialization.d.ts +123 -0
- package/dist/editable-artifacts-schema.d.ts +4152 -0
- package/dist/editable-artifacts.d.ts +610 -0
- package/dist/editable-artifacts.js +26 -0
- package/dist/editable-artifacts.js.map +1 -0
- package/dist/environment-crypto.d.ts +8 -4
- package/dist/generated-images.d.ts +139 -0
- package/dist/index.d.ts +958 -126
- package/dist/index.js +31204 -12172
- package/dist/index.js.map +1 -1
- package/dist/insights.d.ts +51 -4
- package/dist/integration-bindings.d.ts +70 -0
- package/dist/integration-features.d.ts +99 -0
- package/dist/interaction-revisions.d.ts +3 -0
- package/dist/interaction-schema.d.ts +5372 -0
- package/dist/knowledge-source-sync-schema.d.ts +1679 -0
- package/dist/knowledge-source-sync.d.ts +274 -0
- package/dist/lossless-columns.d.ts +58 -0
- package/dist/lossless-json.d.ts +39 -0
- package/dist/memory-domain.d.ts +3 -6
- package/dist/memory-governance.d.ts +2 -2
- package/dist/memory-slack-delivery.d.ts +101 -0
- package/dist/new-session-drafts.d.ts +2 -2
- package/dist/pack-components.d.ts +76 -0
- package/dist/pack-installations.d.ts +86 -0
- package/dist/persistence-errors.d.ts +7 -14
- package/dist/plugin-packages.d.ts +126 -0
- package/dist/preference-registry.d.ts +1 -1
- package/dist/provision-roles.d.ts +9 -1
- package/dist/provision-roles.js +1 -1
- package/dist/runtime-posture.d.ts +18 -6
- package/dist/schema.d.ts +19122 -8731
- package/dist/schema.js +173 -1
- package/dist/scoped-knowledge.d.ts +97 -1
- package/dist/session-control.d.ts +4 -4
- package/dist/session-queue-commands.d.ts +19 -11
- package/dist/session-realtime-context.d.ts +2 -2
- package/dist/session-realtime-ledger.d.ts +4 -4
- package/dist/session-realtime-mirror.d.ts +2 -2
- package/dist/session-realtime-state.d.ts +1 -1
- package/dist/session-realtime-terminal.d.ts +8 -1
- package/dist/session-realtime.d.ts +7 -7
- package/dist/session-tool-call-settlement.d.ts +1 -1
- package/dist/slack-user-link-access.d.ts +54 -0
- package/dist/transcription-recordings-schema.d.ts +44 -6
- package/dist/transcription-recordings.d.ts +3 -3
- package/dist/turn-initiator.d.ts +2 -2
- package/dist/video-generation.d.ts +216 -0
- package/dist/video-generation.js +66 -0
- package/dist/video-generation.js.map +1 -0
- package/dist/workspace-artifacts.d.ts +1 -1
- package/dist/workspace-instruction-policies.d.ts +1 -1
- package/dist/workspace-learning-policy-schema.d.ts +932 -0
- package/dist/workspace-learning-policy.d.ts +161 -0
- package/drizzle/0065_enrollment_credential_generation.sql +10 -0
- package/drizzle/0140_retained_screenshot_artifacts.sql +192 -0
- package/drizzle/0176_lossless_canonical_json.sql +975 -0
- package/drizzle/0177_session_events_workspace_turn_type_index.sql +5 -0
- package/drizzle/0178_permissioned_secret_reads.sql +14 -0
- package/drizzle/0179_slack_private_shortcut_delivery_gate.sql +85 -0
- package/drizzle/0180_retained_screenshot_lifecycle_fences.sql +273 -0
- package/drizzle/0181_connected_machine_removal.sql +52 -0
- package/drizzle/0182_connected_machine_remove_session_default.sql +77 -0
- package/drizzle/0183_model_call_provider_cost_estimates.sql +39 -0
- package/drizzle/0184_sandbox_drain_teardown_fence.sql +682 -0
- package/drizzle/0185_temporal_schedule_cleanup_outbox.sql +168 -0
- package/drizzle/0186_sandbox_capture_provider_contract.sql +400 -0
- package/drizzle/0187_generated_image_artifacts.sql +173 -0
- package/drizzle/0188_image_generation_retention_failure.sql +25 -0
- package/drizzle/0189_retained_session_image_formats.sql +13 -0
- package/drizzle/0190_timeline_annotations.sql +31 -0
- package/drizzle/0191_editable_artifact_engine.sql +3853 -0
- package/drizzle/0192_editable_artifact_live_tickets.sql +338 -0
- package/drizzle/0193_editable_artifact_authorization.sql +190 -0
- package/drizzle/0194_editable_artifact_durable_exports.sql +160 -0
- package/drizzle/0195_editable_artifact_import_authorization.sql +203 -0
- package/drizzle/0196_rig_provider_images.sql +152 -0
- package/drizzle/0197_knowledge_source_sync_schedules.sql +523 -0
- package/drizzle/0198_memory_slack_publication_delivery.sql +393 -0
- package/drizzle/0199_workspace_learning_policy.sql +980 -0
- package/drizzle/0201_company_profile_authority.sql +849 -0
- package/drizzle/0202_document_index_checkpoints.sql +85 -0
- package/drizzle/0203_durable_video_generation.sql +353 -0
- package/drizzle/0204_video_generation_funding.sql +44 -0
- package/drizzle/0205_attempt_tool_catalogs.sql +230 -0
- package/drizzle/0206_browser_sessions.sql +646 -0
- package/drizzle/0207_browser_identities.sql +379 -0
- package/drizzle/0208_attached_browser_devices.sql +165 -0
- package/drizzle/0209_computer_sessions.sql +575 -0
- package/drizzle/0210_browser_auth_network_interventions.sql +441 -0
- package/drizzle/0211_editable_artifact_session_links.sql +58 -0
- package/drizzle/0212_slack_installation_bindings.sql +348 -0
- package/drizzle/0213_slack_user_link_access_requests.sql +177 -0
- package/drizzle/0214_session_activity_commit_gate.sql +262 -0
- package/drizzle/0215_capabilities_platform.sql +980 -0
- package/drizzle/0216_pack_component_ownership.sql +235 -0
- package/drizzle/0217_capability_definition_delete_authority.sql +32 -0
- package/package.json +18 -5
- package/src/attached-browser-devices.ts +371 -0
- package/src/attempt-tool-catalogs.ts +131 -0
- package/src/browser-auth.ts +1896 -0
- package/src/browser-identities.ts +1168 -0
- package/src/browser-sessions.ts +2005 -0
- package/src/browser-state-artifacts.ts +59 -0
- package/src/capability-components.ts +166 -0
- package/src/capability-integrations.ts +1663 -0
- package/src/codemode-operations.ts +674 -0
- package/src/company-profile-schema.ts +143 -0
- package/src/company-profile.ts +968 -0
- package/src/computer-sessions.ts +1130 -0
- package/src/connection-token-resolver.ts +270 -25
- package/src/database.ts +434 -24
- package/src/editable-artifact-durable-export.ts +1201 -0
- package/src/editable-artifact-materialization.ts +893 -0
- package/src/editable-artifacts-schema.ts +879 -0
- package/src/editable-artifacts.ts +5404 -0
- package/src/environment-crypto.ts +22 -9
- package/src/generated-images.ts +740 -0
- package/src/index.ts +10117 -2730
- package/src/insights.ts +160 -13
- package/src/integration-bindings.ts +455 -0
- package/src/integration-features.ts +859 -0
- package/src/interaction-revisions.ts +40 -0
- package/src/interaction-schema.ts +1303 -0
- package/src/knowledge-source-sync-schema.ts +192 -0
- package/src/knowledge-source-sync.ts +1922 -0
- package/src/lossless-columns.ts +35 -0
- package/src/lossless-json.ts +322 -0
- package/src/memory-domain.ts +5 -44
- package/src/memory-slack-delivery.ts +801 -0
- package/src/pack-components.ts +954 -0
- package/src/pack-installations.ts +929 -0
- package/src/persistence-errors.ts +26 -34
- package/src/plugin-packages.ts +1186 -0
- package/src/provision-roles.ts +302 -1
- package/src/runtime-posture-cli.ts +9 -0
- package/src/runtime-posture.ts +514 -5
- package/src/schema.ts +5177 -2957
- package/src/scoped-knowledge-schema.ts +1 -1
- package/src/scoped-knowledge.ts +655 -3
- package/src/session-control.ts +133 -81
- package/src/session-queue-commands.ts +511 -247
- package/src/session-realtime-context.ts +20 -7
- package/src/session-realtime-ledger.ts +32 -10
- package/src/session-realtime-mirror.ts +4 -2
- package/src/session-realtime-terminal.ts +89 -21
- package/src/session-realtime.ts +10 -9
- package/src/session-tool-call-settlement.ts +38 -15
- package/src/slack-user-link-access.ts +702 -0
- package/src/transcription-recordings-schema.ts +5 -2
- package/src/transcription-recordings.ts +70 -40
- package/src/video-generation.ts +1452 -0
- package/src/workspace-learning-policy-schema.ts +139 -0
- package/src/workspace-learning-policy.ts +595 -0
- package/dist/chunk-DBS5HPEW.js.map +0 -1
- package/dist/chunk-HT5T62CC.js +0 -6803
- package/dist/chunk-HT5T62CC.js.map +0 -1
- package/dist/event-payload-sanitizer.d.ts +0 -32
- package/src/event-payload-sanitizer.ts +0 -377
package/dist/schema.js
CHANGED
|
@@ -1,17 +1,44 @@
|
|
|
1
1
|
import {
|
|
2
2
|
agentRunStates,
|
|
3
3
|
apiKeys,
|
|
4
|
+
attachedBrowserDevices,
|
|
5
|
+
attachedBrowserInventories,
|
|
4
6
|
auditEvents,
|
|
7
|
+
authRuns,
|
|
5
8
|
billingCustomers,
|
|
9
|
+
browserIdentities,
|
|
10
|
+
browserRevisionComponents,
|
|
11
|
+
browserRevisions,
|
|
12
|
+
browserSessionAssociations,
|
|
13
|
+
browserSessions,
|
|
14
|
+
browserStateArtifacts,
|
|
15
|
+
capabilityApiFacets,
|
|
6
16
|
capabilityCatalogItems,
|
|
17
|
+
capabilityComponentOwners,
|
|
18
|
+
capabilityFacetInstallations,
|
|
19
|
+
capabilityFacets,
|
|
7
20
|
capabilityInstallations,
|
|
21
|
+
capabilityIntegrationFacets,
|
|
22
|
+
capabilityMcpFacets,
|
|
23
|
+
capabilityOperations,
|
|
24
|
+
capabilityPluginInstallations,
|
|
25
|
+
capabilityPluginVersions,
|
|
26
|
+
capabilityPlugins,
|
|
27
|
+
capabilitySkillFacets,
|
|
28
|
+
capabilitySkillFiles,
|
|
8
29
|
codexAppsSettings,
|
|
9
30
|
codexCapacityWaiters,
|
|
10
31
|
codexCredentialLeases,
|
|
11
32
|
codexResetRedemptionAttempts,
|
|
12
33
|
codexRotationSettings,
|
|
13
34
|
codexSubscriptionCredentials,
|
|
35
|
+
companyProfileActivationEvents,
|
|
36
|
+
companyProfileHeads,
|
|
37
|
+
companyProfileRevisions,
|
|
38
|
+
companyProfileSnapshots,
|
|
14
39
|
composerDrafts,
|
|
40
|
+
computerSessionAssociations,
|
|
41
|
+
computerSessions,
|
|
15
42
|
connectionDisconnectOperations,
|
|
16
43
|
connections,
|
|
17
44
|
connectorActionPolicies,
|
|
@@ -22,12 +49,29 @@ import {
|
|
|
22
49
|
documentBases,
|
|
23
50
|
documentChunks,
|
|
24
51
|
documents,
|
|
52
|
+
editableArtifactBlobRefs,
|
|
53
|
+
editableArtifactIdempotencyReceipts,
|
|
54
|
+
editableArtifactLiveOutbox,
|
|
55
|
+
editableArtifactLiveTickets,
|
|
56
|
+
editableArtifactMaterializationJobs,
|
|
57
|
+
editableArtifactMaterializationResults,
|
|
58
|
+
editableArtifactOperations,
|
|
59
|
+
editableArtifactReplicaLeases,
|
|
60
|
+
editableArtifactScopeAuthorizationHeads,
|
|
61
|
+
editableArtifactSequenceCheckpoints,
|
|
62
|
+
editableArtifactSnapshots,
|
|
63
|
+
editableArtifactTransactions,
|
|
64
|
+
editableArtifactUndoClaims,
|
|
65
|
+
editableArtifactVersions,
|
|
66
|
+
editableArtifacts,
|
|
25
67
|
enrollmentExposureValues,
|
|
26
68
|
enrollmentOsValues,
|
|
27
69
|
enrollmentStatusValues,
|
|
28
70
|
enrollments,
|
|
29
71
|
fileUploads,
|
|
30
72
|
files,
|
|
73
|
+
generatedImageArtifacts,
|
|
74
|
+
generatedVideoArtifacts,
|
|
31
75
|
githubInstallationRepositories,
|
|
32
76
|
githubInstallations,
|
|
33
77
|
hostExportConfig,
|
|
@@ -35,9 +79,21 @@ import {
|
|
|
35
79
|
hostExportCursorState,
|
|
36
80
|
hostExportDeadLetters,
|
|
37
81
|
hostExportOutbox,
|
|
82
|
+
imageGenerationOperations,
|
|
38
83
|
importBatches,
|
|
84
|
+
integrationFeatureBindingOwners,
|
|
85
|
+
integrationFeatureBindings,
|
|
86
|
+
integrationFeatureFacets,
|
|
39
87
|
integrationOauthClients,
|
|
40
88
|
integrationOauthStateNonces,
|
|
89
|
+
integrationSpecRevisions,
|
|
90
|
+
integrationTools,
|
|
91
|
+
interactionInterventions,
|
|
92
|
+
interactionLifecycleValues,
|
|
93
|
+
interactionOperationKindValues,
|
|
94
|
+
interactionOperationStateValues,
|
|
95
|
+
interactionOperations,
|
|
96
|
+
interactionResourceOperations,
|
|
41
97
|
knowledgeChangeProposals,
|
|
42
98
|
knowledgeClaimEvidence,
|
|
43
99
|
knowledgeClaimRelations,
|
|
@@ -55,19 +111,32 @@ import {
|
|
|
55
111
|
knowledgeProviders,
|
|
56
112
|
knowledgeSourceAclVersions,
|
|
57
113
|
knowledgeSourceObjects,
|
|
114
|
+
knowledgeSourceSyncIndexObligations,
|
|
115
|
+
knowledgeSourceSyncItemOutcomes,
|
|
116
|
+
knowledgeSourceSyncObjectObservations,
|
|
117
|
+
knowledgeSourceSyncStates,
|
|
118
|
+
knowledgeSourceSyncWakes,
|
|
58
119
|
knowledgeSources,
|
|
59
120
|
knowledgeSyncRuns,
|
|
60
121
|
machineMetricsLatest,
|
|
61
122
|
machineMetricsSeries,
|
|
123
|
+
machineRemovalOperationOutcomeValues,
|
|
124
|
+
machineRemovalOperations,
|
|
62
125
|
managedAccounts,
|
|
126
|
+
memorySlackPublicationConfigurations,
|
|
127
|
+
memorySlackPublicationReceipts,
|
|
128
|
+
memorySlackPublications,
|
|
63
129
|
modelCallFacts,
|
|
64
130
|
nestedAgentDepthConfiguration,
|
|
131
|
+
networkRoutes,
|
|
65
132
|
newSessionDrafts,
|
|
133
|
+
packInstallationComponents,
|
|
66
134
|
packInstallations,
|
|
67
135
|
preferenceRegistryEvents,
|
|
68
136
|
preferenceRegistryPreferences,
|
|
69
137
|
preferenceRegistryRevisions,
|
|
70
138
|
preferenceRegistrySnapshots,
|
|
139
|
+
retainedScreenshotArtifacts,
|
|
71
140
|
rigChanges,
|
|
72
141
|
rigVersions,
|
|
73
142
|
rigs,
|
|
@@ -87,7 +156,9 @@ import {
|
|
|
87
156
|
sandboxes,
|
|
88
157
|
scheduledTaskRuns,
|
|
89
158
|
scheduledTasks,
|
|
159
|
+
sessionAttemptCodemodeCalls,
|
|
90
160
|
sessionAttemptInterruptions,
|
|
161
|
+
sessionAttemptToolCatalogs,
|
|
91
162
|
sessionCommandReceipts,
|
|
92
163
|
sessionEvents,
|
|
93
164
|
sessionGoals,
|
|
@@ -112,15 +183,20 @@ import {
|
|
|
112
183
|
sessionTurns,
|
|
113
184
|
sessionWorkflowWakeOutbox,
|
|
114
185
|
sessions,
|
|
186
|
+
siteAuthConnections,
|
|
115
187
|
slackBotDeleteOperations,
|
|
116
188
|
slackBotPostOperations,
|
|
117
189
|
slackBotUserLinks,
|
|
190
|
+
slackInstallationBindings,
|
|
118
191
|
slackInteractionInbox,
|
|
119
192
|
slackInteractionProgressDeliveries,
|
|
120
193
|
slackInteractions,
|
|
194
|
+
slackUserLinkAccessRequestOperations,
|
|
195
|
+
slackUserLinkAccessRequests,
|
|
121
196
|
socialConnections,
|
|
122
197
|
socialPosts,
|
|
123
198
|
stripeWebhookEvents,
|
|
199
|
+
temporalScheduleCleanupOutbox,
|
|
124
200
|
transcriptionRecordingChunkStateValues,
|
|
125
201
|
transcriptionRecordingChunks,
|
|
126
202
|
transcriptionRecordingObjectKindValues,
|
|
@@ -130,6 +206,8 @@ import {
|
|
|
130
206
|
transcriptionRecordingStateValues,
|
|
131
207
|
transcriptionRecordings,
|
|
132
208
|
usageEvents,
|
|
209
|
+
videoGenerationOperations,
|
|
210
|
+
videoGenerationReferences,
|
|
133
211
|
workspaceArtifactEvents,
|
|
134
212
|
workspaceArtifactVersions,
|
|
135
213
|
workspaceArtifacts,
|
|
@@ -141,29 +219,64 @@ import {
|
|
|
141
219
|
workspaceInstructionPolicyOnboardingProposals,
|
|
142
220
|
workspaceInstructionPolicyRevisions,
|
|
143
221
|
workspaceInstructionPolicySnapshots,
|
|
222
|
+
workspaceInteractionRevisions,
|
|
223
|
+
workspaceLearningPolicyActivationEvents,
|
|
224
|
+
workspaceLearningPolicyHeads,
|
|
225
|
+
workspaceLearningPolicyRevisions,
|
|
226
|
+
workspaceLearningPolicySnapshots,
|
|
144
227
|
workspaceMemberships,
|
|
145
228
|
workspaceModelPolicies,
|
|
146
229
|
workspacePacks,
|
|
230
|
+
workspaceScreenshotQuotas,
|
|
147
231
|
workspaceSessionActivityRevisions,
|
|
148
232
|
workspaceVariableSetVariables,
|
|
149
233
|
workspaceVariableSets,
|
|
234
|
+
workspaceVideoGenerationPolicies,
|
|
235
|
+
workspaceVideoGenerationQuotas,
|
|
150
236
|
workspaces
|
|
151
|
-
} from "./chunk-
|
|
237
|
+
} from "./chunk-MWDVXQOL.js";
|
|
152
238
|
import "./chunk-PZ5AY32C.js";
|
|
153
239
|
export {
|
|
154
240
|
agentRunStates,
|
|
155
241
|
apiKeys,
|
|
242
|
+
attachedBrowserDevices,
|
|
243
|
+
attachedBrowserInventories,
|
|
156
244
|
auditEvents,
|
|
245
|
+
authRuns,
|
|
157
246
|
billingCustomers,
|
|
247
|
+
browserIdentities,
|
|
248
|
+
browserRevisionComponents,
|
|
249
|
+
browserRevisions,
|
|
250
|
+
browserSessionAssociations,
|
|
251
|
+
browserSessions,
|
|
252
|
+
browserStateArtifacts,
|
|
253
|
+
capabilityApiFacets,
|
|
158
254
|
capabilityCatalogItems,
|
|
255
|
+
capabilityComponentOwners,
|
|
256
|
+
capabilityFacetInstallations,
|
|
257
|
+
capabilityFacets,
|
|
159
258
|
capabilityInstallations,
|
|
259
|
+
capabilityIntegrationFacets,
|
|
260
|
+
capabilityMcpFacets,
|
|
261
|
+
capabilityOperations,
|
|
262
|
+
capabilityPluginInstallations,
|
|
263
|
+
capabilityPluginVersions,
|
|
264
|
+
capabilityPlugins,
|
|
265
|
+
capabilitySkillFacets,
|
|
266
|
+
capabilitySkillFiles,
|
|
160
267
|
codexAppsSettings,
|
|
161
268
|
codexCapacityWaiters,
|
|
162
269
|
codexCredentialLeases,
|
|
163
270
|
codexResetRedemptionAttempts,
|
|
164
271
|
codexRotationSettings,
|
|
165
272
|
codexSubscriptionCredentials,
|
|
273
|
+
companyProfileActivationEvents,
|
|
274
|
+
companyProfileHeads,
|
|
275
|
+
companyProfileRevisions,
|
|
276
|
+
companyProfileSnapshots,
|
|
166
277
|
composerDrafts,
|
|
278
|
+
computerSessionAssociations,
|
|
279
|
+
computerSessions,
|
|
167
280
|
connectionDisconnectOperations,
|
|
168
281
|
connections,
|
|
169
282
|
connectorActionPolicies,
|
|
@@ -174,12 +287,29 @@ export {
|
|
|
174
287
|
documentBases,
|
|
175
288
|
documentChunks,
|
|
176
289
|
documents,
|
|
290
|
+
editableArtifactBlobRefs,
|
|
291
|
+
editableArtifactIdempotencyReceipts,
|
|
292
|
+
editableArtifactLiveOutbox,
|
|
293
|
+
editableArtifactLiveTickets,
|
|
294
|
+
editableArtifactMaterializationJobs,
|
|
295
|
+
editableArtifactMaterializationResults,
|
|
296
|
+
editableArtifactOperations,
|
|
297
|
+
editableArtifactReplicaLeases,
|
|
298
|
+
editableArtifactScopeAuthorizationHeads,
|
|
299
|
+
editableArtifactSequenceCheckpoints,
|
|
300
|
+
editableArtifactSnapshots,
|
|
301
|
+
editableArtifactTransactions,
|
|
302
|
+
editableArtifactUndoClaims,
|
|
303
|
+
editableArtifactVersions,
|
|
304
|
+
editableArtifacts,
|
|
177
305
|
enrollmentExposureValues,
|
|
178
306
|
enrollmentOsValues,
|
|
179
307
|
enrollmentStatusValues,
|
|
180
308
|
enrollments,
|
|
181
309
|
fileUploads,
|
|
182
310
|
files,
|
|
311
|
+
generatedImageArtifacts,
|
|
312
|
+
generatedVideoArtifacts,
|
|
183
313
|
githubInstallationRepositories,
|
|
184
314
|
githubInstallations,
|
|
185
315
|
hostExportConfig,
|
|
@@ -187,9 +317,21 @@ export {
|
|
|
187
317
|
hostExportCursorState,
|
|
188
318
|
hostExportDeadLetters,
|
|
189
319
|
hostExportOutbox,
|
|
320
|
+
imageGenerationOperations,
|
|
190
321
|
importBatches,
|
|
322
|
+
integrationFeatureBindingOwners,
|
|
323
|
+
integrationFeatureBindings,
|
|
324
|
+
integrationFeatureFacets,
|
|
191
325
|
integrationOauthClients,
|
|
192
326
|
integrationOauthStateNonces,
|
|
327
|
+
integrationSpecRevisions,
|
|
328
|
+
integrationTools,
|
|
329
|
+
interactionInterventions,
|
|
330
|
+
interactionLifecycleValues,
|
|
331
|
+
interactionOperationKindValues,
|
|
332
|
+
interactionOperationStateValues,
|
|
333
|
+
interactionOperations,
|
|
334
|
+
interactionResourceOperations,
|
|
193
335
|
knowledgeChangeProposals,
|
|
194
336
|
knowledgeClaimEvidence,
|
|
195
337
|
knowledgeClaimRelations,
|
|
@@ -207,19 +349,32 @@ export {
|
|
|
207
349
|
knowledgeProviders,
|
|
208
350
|
knowledgeSourceAclVersions,
|
|
209
351
|
knowledgeSourceObjects,
|
|
352
|
+
knowledgeSourceSyncIndexObligations,
|
|
353
|
+
knowledgeSourceSyncItemOutcomes,
|
|
354
|
+
knowledgeSourceSyncObjectObservations,
|
|
355
|
+
knowledgeSourceSyncStates,
|
|
356
|
+
knowledgeSourceSyncWakes,
|
|
210
357
|
knowledgeSources,
|
|
211
358
|
knowledgeSyncRuns,
|
|
212
359
|
machineMetricsLatest,
|
|
213
360
|
machineMetricsSeries,
|
|
361
|
+
machineRemovalOperationOutcomeValues,
|
|
362
|
+
machineRemovalOperations,
|
|
214
363
|
managedAccounts,
|
|
364
|
+
memorySlackPublicationConfigurations,
|
|
365
|
+
memorySlackPublicationReceipts,
|
|
366
|
+
memorySlackPublications,
|
|
215
367
|
modelCallFacts,
|
|
216
368
|
nestedAgentDepthConfiguration,
|
|
369
|
+
networkRoutes,
|
|
217
370
|
newSessionDrafts,
|
|
371
|
+
packInstallationComponents,
|
|
218
372
|
packInstallations,
|
|
219
373
|
preferenceRegistryEvents,
|
|
220
374
|
preferenceRegistryPreferences,
|
|
221
375
|
preferenceRegistryRevisions,
|
|
222
376
|
preferenceRegistrySnapshots,
|
|
377
|
+
retainedScreenshotArtifacts,
|
|
223
378
|
rigChanges,
|
|
224
379
|
rigVersions,
|
|
225
380
|
rigs,
|
|
@@ -239,7 +394,9 @@ export {
|
|
|
239
394
|
sandboxes,
|
|
240
395
|
scheduledTaskRuns,
|
|
241
396
|
scheduledTasks,
|
|
397
|
+
sessionAttemptCodemodeCalls,
|
|
242
398
|
sessionAttemptInterruptions,
|
|
399
|
+
sessionAttemptToolCatalogs,
|
|
243
400
|
sessionCommandReceipts,
|
|
244
401
|
sessionEvents,
|
|
245
402
|
sessionGoals,
|
|
@@ -264,15 +421,20 @@ export {
|
|
|
264
421
|
sessionTurns,
|
|
265
422
|
sessionWorkflowWakeOutbox,
|
|
266
423
|
sessions,
|
|
424
|
+
siteAuthConnections,
|
|
267
425
|
slackBotDeleteOperations,
|
|
268
426
|
slackBotPostOperations,
|
|
269
427
|
slackBotUserLinks,
|
|
428
|
+
slackInstallationBindings,
|
|
270
429
|
slackInteractionInbox,
|
|
271
430
|
slackInteractionProgressDeliveries,
|
|
272
431
|
slackInteractions,
|
|
432
|
+
slackUserLinkAccessRequestOperations,
|
|
433
|
+
slackUserLinkAccessRequests,
|
|
273
434
|
socialConnections,
|
|
274
435
|
socialPosts,
|
|
275
436
|
stripeWebhookEvents,
|
|
437
|
+
temporalScheduleCleanupOutbox,
|
|
276
438
|
transcriptionRecordingChunkStateValues,
|
|
277
439
|
transcriptionRecordingChunks,
|
|
278
440
|
transcriptionRecordingObjectKindValues,
|
|
@@ -282,6 +444,8 @@ export {
|
|
|
282
444
|
transcriptionRecordingStateValues,
|
|
283
445
|
transcriptionRecordings,
|
|
284
446
|
usageEvents,
|
|
447
|
+
videoGenerationOperations,
|
|
448
|
+
videoGenerationReferences,
|
|
285
449
|
workspaceArtifactEvents,
|
|
286
450
|
workspaceArtifactVersions,
|
|
287
451
|
workspaceArtifacts,
|
|
@@ -293,12 +457,20 @@ export {
|
|
|
293
457
|
workspaceInstructionPolicyOnboardingProposals,
|
|
294
458
|
workspaceInstructionPolicyRevisions,
|
|
295
459
|
workspaceInstructionPolicySnapshots,
|
|
460
|
+
workspaceInteractionRevisions,
|
|
461
|
+
workspaceLearningPolicyActivationEvents,
|
|
462
|
+
workspaceLearningPolicyHeads,
|
|
463
|
+
workspaceLearningPolicyRevisions,
|
|
464
|
+
workspaceLearningPolicySnapshots,
|
|
296
465
|
workspaceMemberships,
|
|
297
466
|
workspaceModelPolicies,
|
|
298
467
|
workspacePacks,
|
|
468
|
+
workspaceScreenshotQuotas,
|
|
299
469
|
workspaceSessionActivityRevisions,
|
|
300
470
|
workspaceVariableSetVariables,
|
|
301
471
|
workspaceVariableSets,
|
|
472
|
+
workspaceVideoGenerationPolicies,
|
|
473
|
+
workspaceVideoGenerationQuotas,
|
|
302
474
|
workspaces
|
|
303
475
|
};
|
|
304
476
|
//# sourceMappingURL=schema.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { EligibleKnowledgeClaim, KnowledgeChangeProposalRecord, KnowledgeClaimEvidencePolarity, KnowledgeClaimOrigin, KnowledgeClaimRecord, KnowledgeClaimRelationType, KnowledgeClaimReviewState, KnowledgeDocumentVersionRecord, KnowledgeFactObjectKind, KnowledgeFactRecord, KnowledgeLifecycleEventType, KnowledgeLifecycleState, KnowledgeProviderRecord, KnowledgeSourceAclVersionRecord, KnowledgeSourceObjectRecord, KnowledgeSourceRecord, KnowledgeSyncRunRecord, ScopedKnowledgeActor, ScopedKnowledgeScope } from "@opengeni/contracts";
|
|
2
|
-
import type { Database } from "./database";
|
|
2
|
+
import type { Database } from "./database.js";
|
|
3
3
|
type KnowledgeWriteContext = {
|
|
4
4
|
accountId: string;
|
|
5
5
|
workspaceId: string;
|
|
@@ -30,6 +30,16 @@ export declare class ScopedKnowledgeInvalidOperationError extends Error {
|
|
|
30
30
|
export declare class ScopedKnowledgeAuthorityError extends Error {
|
|
31
31
|
readonly name = "ScopedKnowledgeAuthorityError";
|
|
32
32
|
}
|
|
33
|
+
export declare class KnowledgeSourceSyncObservationFenceError extends Error {
|
|
34
|
+
readonly name = "KnowledgeSourceSyncObservationFenceError";
|
|
35
|
+
readonly code = "KNOWLEDGE_SOURCE_SYNC_OBSERVATION_FENCE";
|
|
36
|
+
}
|
|
37
|
+
export type KnowledgeSourceSyncVersionObservationFence = {
|
|
38
|
+
scheduledTaskRunId: string;
|
|
39
|
+
scanGeneration: number;
|
|
40
|
+
providerRevision: string | null;
|
|
41
|
+
metadataHash: string | null;
|
|
42
|
+
};
|
|
33
43
|
export declare function scopedKnowledgeInputHash(value: unknown): string;
|
|
34
44
|
export declare function normalizeScopedKnowledgeKey(value: string): string;
|
|
35
45
|
export declare function scopedKnowledgeScopeKey(scope: ScopedKnowledgeScope): string;
|
|
@@ -43,6 +53,54 @@ export declare function upsertKnowledgeSource(db: Database, input: KnowledgeWrit
|
|
|
43
53
|
sourceKind: string;
|
|
44
54
|
sourceUri?: string | null;
|
|
45
55
|
}): Promise<KnowledgeSourceRecord>;
|
|
56
|
+
export declare function getKnowledgeSourceForSyncAuthority(db: Database, input: {
|
|
57
|
+
accountId: string;
|
|
58
|
+
workspaceId: string;
|
|
59
|
+
sourceId: string;
|
|
60
|
+
initiatingSubjectId: string;
|
|
61
|
+
}): Promise<{
|
|
62
|
+
source: KnowledgeSourceRecord;
|
|
63
|
+
provider: KnowledgeProviderRecord;
|
|
64
|
+
} | null>;
|
|
65
|
+
export declare function getKnowledgeSourceByExternalIdentityForSyncAuthority(db: Database, input: {
|
|
66
|
+
accountId: string;
|
|
67
|
+
workspaceId: string;
|
|
68
|
+
providerId: string;
|
|
69
|
+
externalSourceId: string;
|
|
70
|
+
initiatingSubjectId: string;
|
|
71
|
+
}): Promise<KnowledgeSourceRecord | null>;
|
|
72
|
+
export declare function getKnowledgeSourceAclForSyncAuthority(db: Database, input: {
|
|
73
|
+
accountId: string;
|
|
74
|
+
workspaceId: string;
|
|
75
|
+
sourceId: string;
|
|
76
|
+
generation: number;
|
|
77
|
+
initiatingSubjectId: string;
|
|
78
|
+
}): Promise<KnowledgeSourceAclVersionRecord | null>;
|
|
79
|
+
export declare function getKnowledgeSourceObjectForSyncAuthority(db: Database, input: {
|
|
80
|
+
accountId: string;
|
|
81
|
+
workspaceId: string;
|
|
82
|
+
sourceId: string;
|
|
83
|
+
externalObjectId: string;
|
|
84
|
+
initiatingSubjectId: string;
|
|
85
|
+
}): Promise<KnowledgeSourceObjectRecord | null>;
|
|
86
|
+
export declare function getKnowledgeDocumentVersionForSyncAuthority(db: Database, input: {
|
|
87
|
+
accountId: string;
|
|
88
|
+
workspaceId: string;
|
|
89
|
+
versionId: string;
|
|
90
|
+
initiatingSubjectId: string;
|
|
91
|
+
}): Promise<KnowledgeDocumentVersionRecord | null>;
|
|
92
|
+
export declare function getKnowledgeDocumentVersionObservationForSyncAuthority(db: Database, input: {
|
|
93
|
+
accountId: string;
|
|
94
|
+
workspaceId: string;
|
|
95
|
+
versionId: string;
|
|
96
|
+
initiatingSubjectId: string;
|
|
97
|
+
}): Promise<{
|
|
98
|
+
version: KnowledgeDocumentVersionRecord;
|
|
99
|
+
sourceMetadata: Record<string, unknown>;
|
|
100
|
+
sourceUpdatedAt: string | null;
|
|
101
|
+
locationMetadata: Record<string, unknown>;
|
|
102
|
+
documentChunkCount: number;
|
|
103
|
+
} | null>;
|
|
46
104
|
export declare function appendKnowledgeSourceAclVersion(db: Database, input: Omit<KnowledgeWriteContext, "scope"> & {
|
|
47
105
|
sourceId: string;
|
|
48
106
|
audience: ScopedKnowledgeScope;
|
|
@@ -52,12 +110,42 @@ export declare function appendKnowledgeSourceAclVersion(db: Database, input: Omi
|
|
|
52
110
|
agentAccess: boolean;
|
|
53
111
|
reasonCode: string;
|
|
54
112
|
}): Promise<KnowledgeSourceAclVersionRecord>;
|
|
113
|
+
/** Atomically advance the source ACL to a deny generation and revoke every
|
|
114
|
+
* materialized retrieval path. Delivery pause alone is never authorization. */
|
|
115
|
+
export declare function deauthorizeKnowledgeSourceRetrieval(db: Database, input: Omit<KnowledgeWriteContext, "scope"> & {
|
|
116
|
+
sourceId: string;
|
|
117
|
+
audience: ScopedKnowledgeScope;
|
|
118
|
+
reasonCode: string;
|
|
119
|
+
}): Promise<KnowledgeSourceAclVersionRecord>;
|
|
120
|
+
export declare function updateKnowledgeSourceDocumentObservationMetadata(db: Database, input: {
|
|
121
|
+
accountId: string;
|
|
122
|
+
workspaceId: string;
|
|
123
|
+
initiatingSubjectId: string;
|
|
124
|
+
sourceId: string;
|
|
125
|
+
expectedSourceLifecycleGeneration: number;
|
|
126
|
+
objectId: string;
|
|
127
|
+
expectedObjectLifecycleGeneration: number;
|
|
128
|
+
versionId: string;
|
|
129
|
+
documentId: string;
|
|
130
|
+
title: string;
|
|
131
|
+
sourceUri: string;
|
|
132
|
+
sourceVersion: string;
|
|
133
|
+
sourceUpdatedAt: string | null;
|
|
134
|
+
syncObservation?: KnowledgeSourceSyncVersionObservationFence;
|
|
135
|
+
}): Promise<void>;
|
|
55
136
|
export declare function beginKnowledgeSyncRun(db: Database, input: Omit<KnowledgeWriteContext, "scope"> & {
|
|
56
137
|
sourceId: string;
|
|
57
138
|
expectedSourceLifecycleGeneration: number;
|
|
58
139
|
expectedSyncGeneration: number;
|
|
59
140
|
inputCursor: string | null;
|
|
60
141
|
}): Promise<KnowledgeSyncRunRecord>;
|
|
142
|
+
export declare function getKnowledgeSyncRunForSyncAuthority(db: Database, input: {
|
|
143
|
+
accountId: string;
|
|
144
|
+
workspaceId: string;
|
|
145
|
+
sourceId: string;
|
|
146
|
+
operationId: string;
|
|
147
|
+
initiatingSubjectId: string;
|
|
148
|
+
}): Promise<KnowledgeSyncRunRecord | null>;
|
|
61
149
|
export declare function completeKnowledgeSyncRun(db: Database, input: {
|
|
62
150
|
accountId: string;
|
|
63
151
|
workspaceId: string;
|
|
@@ -77,6 +165,7 @@ export declare function upsertKnowledgeSourceObject(db: Database, input: Omit<Kn
|
|
|
77
165
|
}): Promise<KnowledgeSourceObjectRecord>;
|
|
78
166
|
export declare function appendKnowledgeDocumentVersion(db: Database, input: Omit<KnowledgeWriteContext, "scope"> & {
|
|
79
167
|
objectId: string;
|
|
168
|
+
expectedSourceLifecycleGeneration: number;
|
|
80
169
|
expectedObjectLifecycleGeneration: number;
|
|
81
170
|
expectedVersionGeneration: number;
|
|
82
171
|
externalVersionId: string;
|
|
@@ -91,6 +180,13 @@ export declare function appendKnowledgeDocumentVersion(db: Database, input: Omit
|
|
|
91
180
|
documentId?: string | null;
|
|
92
181
|
fileId?: string | null;
|
|
93
182
|
locationMetadata?: Record<string, unknown> | undefined;
|
|
183
|
+
documentObservationMetadata?: {
|
|
184
|
+
title: string;
|
|
185
|
+
sourceUri: string;
|
|
186
|
+
sourceVersion: string;
|
|
187
|
+
sourceUpdatedAt: string | null;
|
|
188
|
+
};
|
|
189
|
+
syncObservation?: KnowledgeSourceSyncVersionObservationFence;
|
|
94
190
|
reasonCode: string;
|
|
95
191
|
}): Promise<KnowledgeDocumentVersionRecord>;
|
|
96
192
|
export declare function recordKnowledgeLifecycleEvent(db: Database, input: Omit<KnowledgeWriteContext, "scope"> & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type SessionMcpApprovalPolicy, type TurnInitiatorContext } from "@opengeni/contracts";
|
|
2
|
-
import type { Database } from "./database";
|
|
3
|
-
import * as schema from "./schema";
|
|
2
|
+
import type { Database, SessionActivityDatabase } from "./database.js";
|
|
3
|
+
import * as schema from "./schema.js";
|
|
4
4
|
export declare const SESSION_ANCESTRY_LIMIT = 10000;
|
|
5
5
|
export type WorkspaceControlLockMode = "none" | "share" | "update";
|
|
6
6
|
export type EffectiveControlState = "active" | "paused";
|
|
@@ -297,7 +297,7 @@ export type SessionControlMutationResult = {
|
|
|
297
297
|
}>;
|
|
298
298
|
replay: boolean;
|
|
299
299
|
};
|
|
300
|
-
export declare function mutateSessionControlInTransaction(db:
|
|
300
|
+
export declare function mutateSessionControlInTransaction(db: SessionActivityDatabase, input: {
|
|
301
301
|
accountId: string;
|
|
302
302
|
workspaceId: string;
|
|
303
303
|
sessionId: string;
|
|
@@ -307,7 +307,7 @@ export declare function mutateSessionControlInTransaction(db: Database, input: {
|
|
|
307
307
|
reason?: string | null;
|
|
308
308
|
expectedControlEtag?: string | null;
|
|
309
309
|
}): Promise<SessionControlMutationResult>;
|
|
310
|
-
export declare function autoResumeSessionBranchInTransaction(db:
|
|
310
|
+
export declare function autoResumeSessionBranchInTransaction(db: SessionActivityDatabase, input: {
|
|
311
311
|
workspaceId: string;
|
|
312
312
|
sessionId: string;
|
|
313
313
|
actor: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ResourceRef, type McpPersonalConnectionDelegation, type LatencyMode, type ReasoningEffort, type TurnExecutionPolicyV1 } from "@opengeni/contracts";
|
|
2
|
-
import type { Database } from "./database";
|
|
3
|
-
import { type SessionCommandActor, type SessionCommandReceiptRow } from "./session-control";
|
|
4
|
-
import * as schema from "./schema";
|
|
1
|
+
import { ResourceRef, type McpPersonalConnectionDelegation, type DraftTimelineAnnotation, type LatencyMode, type ReasoningEffort, type SessionEvent, type SessionTurn, type TurnExecutionPolicyV1, type TimelineAnnotation } from "@opengeni/contracts";
|
|
2
|
+
import type { Database, SessionActivityDatabase } from "./database.js";
|
|
3
|
+
import { type SessionCommandActor, type SessionCommandReceiptRow } from "./session-control.js";
|
|
4
|
+
import * as schema from "./schema.js";
|
|
5
5
|
export type QueueCommandConflictCode = "QUEUE_VERSION_CHANGED" | "QUEUE_PROMPT_STARTED" | "QUEUE_ANCHOR_CHANGED" | "PROMPT_CHANGED" | "DRAFT_CHANGED" | "DRAFT_NOT_EMPTY" | "EDIT_SOURCE_CHANGED";
|
|
6
6
|
export declare class QueueCommandConflictError extends Error {
|
|
7
7
|
readonly code: QueueCommandConflictCode;
|
|
@@ -36,6 +36,10 @@ export type SteerQueueCommandResult = QueueCommandResult & {
|
|
|
36
36
|
export type SubmitHumanPromptResult = {
|
|
37
37
|
receipt: SessionCommandReceiptRow;
|
|
38
38
|
queueVersion: number;
|
|
39
|
+
accepted: SessionEvent;
|
|
40
|
+
events: SessionEvent[];
|
|
41
|
+
turn: SessionTurn;
|
|
42
|
+
/** Backward-compatible row identities for lower-level callers. */
|
|
39
43
|
acceptedEventId: string;
|
|
40
44
|
eventIds: string[];
|
|
41
45
|
turnId: string;
|
|
@@ -90,12 +94,13 @@ export declare function saveComposerDraftInTransaction(db: Database, input: {
|
|
|
90
94
|
subjectId: string;
|
|
91
95
|
expectedRevision: number;
|
|
92
96
|
text: string;
|
|
97
|
+
annotations?: DraftTimelineAnnotation[];
|
|
93
98
|
resources: ResourceRef[];
|
|
94
99
|
model: string;
|
|
95
100
|
reasoningEffort: ReasoningEffort;
|
|
96
101
|
latencyMode?: LatencyMode;
|
|
97
102
|
}): Promise<ComposerDraftRow>;
|
|
98
|
-
export declare function moveQueuedTurnInTransaction(db:
|
|
103
|
+
export declare function moveQueuedTurnInTransaction(db: SessionActivityDatabase, input: {
|
|
99
104
|
accountId: string;
|
|
100
105
|
workspaceId: string;
|
|
101
106
|
sessionId: string;
|
|
@@ -105,7 +110,7 @@ export declare function moveQueuedTurnInTransaction(db: Database, input: {
|
|
|
105
110
|
actor: SessionCommandActor;
|
|
106
111
|
operationKey: string;
|
|
107
112
|
}): Promise<QueueCommandResult>;
|
|
108
|
-
export declare function deleteSessionQueueItemInTransaction(db:
|
|
113
|
+
export declare function deleteSessionQueueItemInTransaction(db: SessionActivityDatabase, input: {
|
|
109
114
|
accountId: string;
|
|
110
115
|
workspaceId: string;
|
|
111
116
|
sessionId: string;
|
|
@@ -115,7 +120,7 @@ export declare function deleteSessionQueueItemInTransaction(db: Database, input:
|
|
|
115
120
|
operationKey: string;
|
|
116
121
|
reason?: string | null;
|
|
117
122
|
}): Promise<QueueCommandResult>;
|
|
118
|
-
export declare function editQueuedTurnInTransaction(db:
|
|
123
|
+
export declare function editQueuedTurnInTransaction(db: SessionActivityDatabase, input: {
|
|
119
124
|
accountId: string;
|
|
120
125
|
workspaceId: string;
|
|
121
126
|
sessionId: string;
|
|
@@ -127,7 +132,7 @@ export declare function editQueuedTurnInTransaction(db: Database, input: {
|
|
|
127
132
|
actor: SessionCommandActor;
|
|
128
133
|
operationKey: string;
|
|
129
134
|
}): Promise<EditQueueCommandResult>;
|
|
130
|
-
export declare function steerQueuedTurnInTransaction(db:
|
|
135
|
+
export declare function steerQueuedTurnInTransaction(db: SessionActivityDatabase, input: {
|
|
131
136
|
accountId: string;
|
|
132
137
|
workspaceId: string;
|
|
133
138
|
sessionId: string;
|
|
@@ -137,7 +142,7 @@ export declare function steerQueuedTurnInTransaction(db: Database, input: {
|
|
|
137
142
|
actor: SessionCommandActor;
|
|
138
143
|
operationKey: string;
|
|
139
144
|
}): Promise<SteerQueueCommandResult>;
|
|
140
|
-
export declare function submitHumanPromptInTransaction(db:
|
|
145
|
+
export declare function submitHumanPromptInTransaction(db: SessionActivityDatabase, input: {
|
|
141
146
|
accountId: string;
|
|
142
147
|
workspaceId: string;
|
|
143
148
|
sessionId: string;
|
|
@@ -149,6 +154,7 @@ export declare function submitHumanPromptInTransaction(db: Database, input: {
|
|
|
149
154
|
controlEtag?: string | null;
|
|
150
155
|
expectedDraftRevision?: number | null;
|
|
151
156
|
text: string;
|
|
157
|
+
annotations?: TimelineAnnotation[];
|
|
152
158
|
turnInstructions?: string | null;
|
|
153
159
|
resources: ResourceRef[];
|
|
154
160
|
model?: string | null;
|
|
@@ -166,13 +172,15 @@ export declare function submitHumanPromptInTransaction(db: Database, input: {
|
|
|
166
172
|
context: string;
|
|
167
173
|
};
|
|
168
174
|
source: "user" | "api";
|
|
175
|
+
/** Record the admitted run's durable usage fact in this transaction. */
|
|
176
|
+
recordAgentRunUsage?: boolean;
|
|
169
177
|
personalConnectionDelegations?: McpPersonalConnectionDelegation[];
|
|
170
178
|
mcpCredentialUpdates?: Array<{
|
|
171
179
|
id: string;
|
|
172
180
|
headersEncrypted: Record<string, string>;
|
|
173
181
|
}>;
|
|
174
182
|
}): Promise<SubmitHumanPromptResult>;
|
|
175
|
-
export declare function sendAgentMessageInTransaction(db:
|
|
183
|
+
export declare function sendAgentMessageInTransaction(db: SessionActivityDatabase, input: {
|
|
176
184
|
accountId: string;
|
|
177
185
|
workspaceId: string;
|
|
178
186
|
targetSessionId: string;
|
|
@@ -182,7 +190,7 @@ export declare function sendAgentMessageInTransaction(db: Database, input: {
|
|
|
182
190
|
operationKey: string;
|
|
183
191
|
text: string;
|
|
184
192
|
}): Promise<AgentInternalUpdateCommandResult>;
|
|
185
|
-
export declare function steerAgentSessionInTransaction(db:
|
|
193
|
+
export declare function steerAgentSessionInTransaction(db: SessionActivityDatabase, input: {
|
|
186
194
|
accountId: string;
|
|
187
195
|
workspaceId: string;
|
|
188
196
|
targetSessionId: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Database } from "./database";
|
|
1
|
+
import type { Database, SessionActivityDatabase } from "./database.js";
|
|
2
2
|
export declare const SESSION_REALTIME_CONTEXT_MAX_BYTES = 65536;
|
|
3
3
|
export declare const SESSION_REALTIME_TAIL_SOURCE = "transcript_tail_flush";
|
|
4
4
|
export declare const SESSION_REALTIME_TAIL_INSTRUCTION = "The user just ended the realtime voice session but remains reachable by text. Ending voice changes only the communication mode; it does not stop, pause, or complete existing work. Treat the remaining transcript tail as additional context. If work was already underway, continue it from the current state. Change or stop that work only if the user explicitly requested it. If nothing was underway and the transcript contains no unhandled request, acknowledge briefly; otherwise handle any unhandled request.";
|
|
@@ -40,7 +40,7 @@ export declare function renderSessionRealtimeTail(entries: readonly SessionRealt
|
|
|
40
40
|
* Codex-style end fence: route only finalized voice transcript after the last
|
|
41
41
|
* delegation into the same canonical Steer-or-start path used by a human.
|
|
42
42
|
*/
|
|
43
|
-
export declare function flushSessionRealtimeTranscriptTailInTransaction(db:
|
|
43
|
+
export declare function flushSessionRealtimeTranscriptTailInTransaction(db: SessionActivityDatabase, input: {
|
|
44
44
|
accountId: string;
|
|
45
45
|
workspaceId: string;
|
|
46
46
|
sessionId: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type SessionRealtimeMode } from "@opengeni/contracts";
|
|
2
|
-
import type { Database } from "./database";
|
|
3
|
-
import { type AssertSessionRealtimeOwnerInput } from "./session-realtime";
|
|
2
|
+
import type { Database, SessionActivityDatabase } from "./database.js";
|
|
3
|
+
import { type AssertSessionRealtimeOwnerInput } from "./session-realtime.js";
|
|
4
4
|
export declare const SESSION_REALTIME_LEDGER_MAX_BATCH = 64;
|
|
5
5
|
export declare const SESSION_REALTIME_LEDGER_MAX_TEXT_BYTES = 131072;
|
|
6
6
|
export declare const SESSION_REALTIME_LEDGER_MAX_PAYLOAD_BYTES = 131072;
|
|
@@ -146,7 +146,7 @@ export type AppendSessionRealtimeOutboundResult = {
|
|
|
146
146
|
entry: SessionRealtimeLedgerEntry;
|
|
147
147
|
replay: boolean;
|
|
148
148
|
};
|
|
149
|
-
export { projectSessionRealtimeDelegationTerminalInTransaction, type ProjectSessionRealtimeDelegationTerminalInput, type ProjectSessionRealtimeDelegationTerminalResult, } from "./session-realtime-terminal";
|
|
149
|
+
export { projectSessionRealtimeDelegationTerminalInTransaction, type ProjectSessionRealtimeDelegationTerminalInput, type ProjectSessionRealtimeDelegationTerminalResult, } from "./session-realtime-terminal.js";
|
|
150
150
|
export type ProjectSessionRealtimeDelegationProgressInput = {
|
|
151
151
|
accountId: string;
|
|
152
152
|
workspaceId: string;
|
|
@@ -169,7 +169,7 @@ export declare function claimSessionRealtimeConnectionInTransaction(db: Database
|
|
|
169
169
|
export declare function completeSessionRealtimeConnectionInTransaction(db: Database, input: CompleteSessionRealtimeConnectionInput): Promise<CompleteSessionRealtimeConnectionResult>;
|
|
170
170
|
export declare function activateSessionRealtimeConnectionInTransaction(db: Database, input: ActivateSessionRealtimeConnectionInput): Promise<ActivateSessionRealtimeConnectionResult>;
|
|
171
171
|
export declare function failSessionRealtimeConnectionInTransaction(db: Database, input: FailSessionRealtimeConnectionInput): Promise<FailSessionRealtimeConnectionResult>;
|
|
172
|
-
export declare function syncSessionRealtimeLedgerInTransaction(db:
|
|
172
|
+
export declare function syncSessionRealtimeLedgerInTransaction(db: SessionActivityDatabase, input: SyncSessionRealtimeLedgerInput, hooks?: SyncSessionRealtimeLedgerHooks): Promise<SyncSessionRealtimeLedgerResult>;
|
|
173
173
|
export declare function appendSessionRealtimeOutboundInTransaction(db: Database, input: AppendSessionRealtimeOutboundInput): Promise<AppendSessionRealtimeOutboundResult>;
|
|
174
174
|
/**
|
|
175
175
|
* Under the caller's canonical session/turn fence, mirror accepted assistant
|