@opengeni/db 0.28.9 → 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-VHBFHMPC.js → chunk-YHZXQ7HP.js} +754 -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/generated-images.d.ts +139 -0
- package/dist/index.d.ts +698 -111
- package/dist/index.js +27573 -10322
- 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/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 +3 -3
- 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 +18342 -9099
- package/dist/schema.js +165 -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 +1 -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.d.ts +2 -2
- 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/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 +427 -23
- 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/generated-images.ts +740 -0
- package/src/index.ts +5917 -1182
- 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/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 +4 -7
- 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 +508 -5
- package/src/schema.ts +5117 -3119
- package/src/scoped-knowledge-schema.ts +1 -1
- package/src/scoped-knowledge.ts +655 -3
- package/src/session-control.ts +8 -5
- package/src/session-queue-commands.ts +187 -14
- package/src/session-realtime-context.ts +2 -2
- package/src/session-realtime-ledger.ts +3 -3
- package/src/session-realtime.ts +7 -7
- package/src/session-tool-call-settlement.ts +9 -0
- package/src/slack-user-link-access.ts +702 -0
- 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-P6CUHXQZ.js +0 -7248
- package/dist/chunk-P6CUHXQZ.js.map +0 -1
- package/dist/chunk-VHBFHMPC.js.map +0 -1
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,6 +111,11 @@ 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,
|
|
@@ -62,9 +123,14 @@ import {
|
|
|
62
123
|
machineRemovalOperationOutcomeValues,
|
|
63
124
|
machineRemovalOperations,
|
|
64
125
|
managedAccounts,
|
|
126
|
+
memorySlackPublicationConfigurations,
|
|
127
|
+
memorySlackPublicationReceipts,
|
|
128
|
+
memorySlackPublications,
|
|
65
129
|
modelCallFacts,
|
|
66
130
|
nestedAgentDepthConfiguration,
|
|
131
|
+
networkRoutes,
|
|
67
132
|
newSessionDrafts,
|
|
133
|
+
packInstallationComponents,
|
|
68
134
|
packInstallations,
|
|
69
135
|
preferenceRegistryEvents,
|
|
70
136
|
preferenceRegistryPreferences,
|
|
@@ -90,7 +156,9 @@ import {
|
|
|
90
156
|
sandboxes,
|
|
91
157
|
scheduledTaskRuns,
|
|
92
158
|
scheduledTasks,
|
|
159
|
+
sessionAttemptCodemodeCalls,
|
|
93
160
|
sessionAttemptInterruptions,
|
|
161
|
+
sessionAttemptToolCatalogs,
|
|
94
162
|
sessionCommandReceipts,
|
|
95
163
|
sessionEvents,
|
|
96
164
|
sessionGoals,
|
|
@@ -115,15 +183,20 @@ import {
|
|
|
115
183
|
sessionTurns,
|
|
116
184
|
sessionWorkflowWakeOutbox,
|
|
117
185
|
sessions,
|
|
186
|
+
siteAuthConnections,
|
|
118
187
|
slackBotDeleteOperations,
|
|
119
188
|
slackBotPostOperations,
|
|
120
189
|
slackBotUserLinks,
|
|
190
|
+
slackInstallationBindings,
|
|
121
191
|
slackInteractionInbox,
|
|
122
192
|
slackInteractionProgressDeliveries,
|
|
123
193
|
slackInteractions,
|
|
194
|
+
slackUserLinkAccessRequestOperations,
|
|
195
|
+
slackUserLinkAccessRequests,
|
|
124
196
|
socialConnections,
|
|
125
197
|
socialPosts,
|
|
126
198
|
stripeWebhookEvents,
|
|
199
|
+
temporalScheduleCleanupOutbox,
|
|
127
200
|
transcriptionRecordingChunkStateValues,
|
|
128
201
|
transcriptionRecordingChunks,
|
|
129
202
|
transcriptionRecordingObjectKindValues,
|
|
@@ -133,6 +206,8 @@ import {
|
|
|
133
206
|
transcriptionRecordingStateValues,
|
|
134
207
|
transcriptionRecordings,
|
|
135
208
|
usageEvents,
|
|
209
|
+
videoGenerationOperations,
|
|
210
|
+
videoGenerationReferences,
|
|
136
211
|
workspaceArtifactEvents,
|
|
137
212
|
workspaceArtifactVersions,
|
|
138
213
|
workspaceArtifacts,
|
|
@@ -144,6 +219,11 @@ import {
|
|
|
144
219
|
workspaceInstructionPolicyOnboardingProposals,
|
|
145
220
|
workspaceInstructionPolicyRevisions,
|
|
146
221
|
workspaceInstructionPolicySnapshots,
|
|
222
|
+
workspaceInteractionRevisions,
|
|
223
|
+
workspaceLearningPolicyActivationEvents,
|
|
224
|
+
workspaceLearningPolicyHeads,
|
|
225
|
+
workspaceLearningPolicyRevisions,
|
|
226
|
+
workspaceLearningPolicySnapshots,
|
|
147
227
|
workspaceMemberships,
|
|
148
228
|
workspaceModelPolicies,
|
|
149
229
|
workspacePacks,
|
|
@@ -151,23 +231,52 @@ import {
|
|
|
151
231
|
workspaceSessionActivityRevisions,
|
|
152
232
|
workspaceVariableSetVariables,
|
|
153
233
|
workspaceVariableSets,
|
|
234
|
+
workspaceVideoGenerationPolicies,
|
|
235
|
+
workspaceVideoGenerationQuotas,
|
|
154
236
|
workspaces
|
|
155
|
-
} from "./chunk-
|
|
237
|
+
} from "./chunk-MWDVXQOL.js";
|
|
156
238
|
import "./chunk-PZ5AY32C.js";
|
|
157
239
|
export {
|
|
158
240
|
agentRunStates,
|
|
159
241
|
apiKeys,
|
|
242
|
+
attachedBrowserDevices,
|
|
243
|
+
attachedBrowserInventories,
|
|
160
244
|
auditEvents,
|
|
245
|
+
authRuns,
|
|
161
246
|
billingCustomers,
|
|
247
|
+
browserIdentities,
|
|
248
|
+
browserRevisionComponents,
|
|
249
|
+
browserRevisions,
|
|
250
|
+
browserSessionAssociations,
|
|
251
|
+
browserSessions,
|
|
252
|
+
browserStateArtifacts,
|
|
253
|
+
capabilityApiFacets,
|
|
162
254
|
capabilityCatalogItems,
|
|
255
|
+
capabilityComponentOwners,
|
|
256
|
+
capabilityFacetInstallations,
|
|
257
|
+
capabilityFacets,
|
|
163
258
|
capabilityInstallations,
|
|
259
|
+
capabilityIntegrationFacets,
|
|
260
|
+
capabilityMcpFacets,
|
|
261
|
+
capabilityOperations,
|
|
262
|
+
capabilityPluginInstallations,
|
|
263
|
+
capabilityPluginVersions,
|
|
264
|
+
capabilityPlugins,
|
|
265
|
+
capabilitySkillFacets,
|
|
266
|
+
capabilitySkillFiles,
|
|
164
267
|
codexAppsSettings,
|
|
165
268
|
codexCapacityWaiters,
|
|
166
269
|
codexCredentialLeases,
|
|
167
270
|
codexResetRedemptionAttempts,
|
|
168
271
|
codexRotationSettings,
|
|
169
272
|
codexSubscriptionCredentials,
|
|
273
|
+
companyProfileActivationEvents,
|
|
274
|
+
companyProfileHeads,
|
|
275
|
+
companyProfileRevisions,
|
|
276
|
+
companyProfileSnapshots,
|
|
170
277
|
composerDrafts,
|
|
278
|
+
computerSessionAssociations,
|
|
279
|
+
computerSessions,
|
|
171
280
|
connectionDisconnectOperations,
|
|
172
281
|
connections,
|
|
173
282
|
connectorActionPolicies,
|
|
@@ -178,12 +287,29 @@ export {
|
|
|
178
287
|
documentBases,
|
|
179
288
|
documentChunks,
|
|
180
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,
|
|
181
305
|
enrollmentExposureValues,
|
|
182
306
|
enrollmentOsValues,
|
|
183
307
|
enrollmentStatusValues,
|
|
184
308
|
enrollments,
|
|
185
309
|
fileUploads,
|
|
186
310
|
files,
|
|
311
|
+
generatedImageArtifacts,
|
|
312
|
+
generatedVideoArtifacts,
|
|
187
313
|
githubInstallationRepositories,
|
|
188
314
|
githubInstallations,
|
|
189
315
|
hostExportConfig,
|
|
@@ -191,9 +317,21 @@ export {
|
|
|
191
317
|
hostExportCursorState,
|
|
192
318
|
hostExportDeadLetters,
|
|
193
319
|
hostExportOutbox,
|
|
320
|
+
imageGenerationOperations,
|
|
194
321
|
importBatches,
|
|
322
|
+
integrationFeatureBindingOwners,
|
|
323
|
+
integrationFeatureBindings,
|
|
324
|
+
integrationFeatureFacets,
|
|
195
325
|
integrationOauthClients,
|
|
196
326
|
integrationOauthStateNonces,
|
|
327
|
+
integrationSpecRevisions,
|
|
328
|
+
integrationTools,
|
|
329
|
+
interactionInterventions,
|
|
330
|
+
interactionLifecycleValues,
|
|
331
|
+
interactionOperationKindValues,
|
|
332
|
+
interactionOperationStateValues,
|
|
333
|
+
interactionOperations,
|
|
334
|
+
interactionResourceOperations,
|
|
197
335
|
knowledgeChangeProposals,
|
|
198
336
|
knowledgeClaimEvidence,
|
|
199
337
|
knowledgeClaimRelations,
|
|
@@ -211,6 +349,11 @@ export {
|
|
|
211
349
|
knowledgeProviders,
|
|
212
350
|
knowledgeSourceAclVersions,
|
|
213
351
|
knowledgeSourceObjects,
|
|
352
|
+
knowledgeSourceSyncIndexObligations,
|
|
353
|
+
knowledgeSourceSyncItemOutcomes,
|
|
354
|
+
knowledgeSourceSyncObjectObservations,
|
|
355
|
+
knowledgeSourceSyncStates,
|
|
356
|
+
knowledgeSourceSyncWakes,
|
|
214
357
|
knowledgeSources,
|
|
215
358
|
knowledgeSyncRuns,
|
|
216
359
|
machineMetricsLatest,
|
|
@@ -218,9 +361,14 @@ export {
|
|
|
218
361
|
machineRemovalOperationOutcomeValues,
|
|
219
362
|
machineRemovalOperations,
|
|
220
363
|
managedAccounts,
|
|
364
|
+
memorySlackPublicationConfigurations,
|
|
365
|
+
memorySlackPublicationReceipts,
|
|
366
|
+
memorySlackPublications,
|
|
221
367
|
modelCallFacts,
|
|
222
368
|
nestedAgentDepthConfiguration,
|
|
369
|
+
networkRoutes,
|
|
223
370
|
newSessionDrafts,
|
|
371
|
+
packInstallationComponents,
|
|
224
372
|
packInstallations,
|
|
225
373
|
preferenceRegistryEvents,
|
|
226
374
|
preferenceRegistryPreferences,
|
|
@@ -246,7 +394,9 @@ export {
|
|
|
246
394
|
sandboxes,
|
|
247
395
|
scheduledTaskRuns,
|
|
248
396
|
scheduledTasks,
|
|
397
|
+
sessionAttemptCodemodeCalls,
|
|
249
398
|
sessionAttemptInterruptions,
|
|
399
|
+
sessionAttemptToolCatalogs,
|
|
250
400
|
sessionCommandReceipts,
|
|
251
401
|
sessionEvents,
|
|
252
402
|
sessionGoals,
|
|
@@ -271,15 +421,20 @@ export {
|
|
|
271
421
|
sessionTurns,
|
|
272
422
|
sessionWorkflowWakeOutbox,
|
|
273
423
|
sessions,
|
|
424
|
+
siteAuthConnections,
|
|
274
425
|
slackBotDeleteOperations,
|
|
275
426
|
slackBotPostOperations,
|
|
276
427
|
slackBotUserLinks,
|
|
428
|
+
slackInstallationBindings,
|
|
277
429
|
slackInteractionInbox,
|
|
278
430
|
slackInteractionProgressDeliveries,
|
|
279
431
|
slackInteractions,
|
|
432
|
+
slackUserLinkAccessRequestOperations,
|
|
433
|
+
slackUserLinkAccessRequests,
|
|
280
434
|
socialConnections,
|
|
281
435
|
socialPosts,
|
|
282
436
|
stripeWebhookEvents,
|
|
437
|
+
temporalScheduleCleanupOutbox,
|
|
283
438
|
transcriptionRecordingChunkStateValues,
|
|
284
439
|
transcriptionRecordingChunks,
|
|
285
440
|
transcriptionRecordingObjectKindValues,
|
|
@@ -289,6 +444,8 @@ export {
|
|
|
289
444
|
transcriptionRecordingStateValues,
|
|
290
445
|
transcriptionRecordings,
|
|
291
446
|
usageEvents,
|
|
447
|
+
videoGenerationOperations,
|
|
448
|
+
videoGenerationReferences,
|
|
292
449
|
workspaceArtifactEvents,
|
|
293
450
|
workspaceArtifactVersions,
|
|
294
451
|
workspaceArtifacts,
|
|
@@ -300,6 +457,11 @@ export {
|
|
|
300
457
|
workspaceInstructionPolicyOnboardingProposals,
|
|
301
458
|
workspaceInstructionPolicyRevisions,
|
|
302
459
|
workspaceInstructionPolicySnapshots,
|
|
460
|
+
workspaceInteractionRevisions,
|
|
461
|
+
workspaceLearningPolicyActivationEvents,
|
|
462
|
+
workspaceLearningPolicyHeads,
|
|
463
|
+
workspaceLearningPolicyRevisions,
|
|
464
|
+
workspaceLearningPolicySnapshots,
|
|
303
465
|
workspaceMemberships,
|
|
304
466
|
workspaceModelPolicies,
|
|
305
467
|
workspacePacks,
|
|
@@ -307,6 +469,8 @@ export {
|
|
|
307
469
|
workspaceSessionActivityRevisions,
|
|
308
470
|
workspaceVariableSetVariables,
|
|
309
471
|
workspaceVariableSets,
|
|
472
|
+
workspaceVideoGenerationPolicies,
|
|
473
|
+
workspaceVideoGenerationQuotas,
|
|
310
474
|
workspaces
|
|
311
475
|
};
|
|
312
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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { HumanInputQuestion, HumanInputResponse } from "@opengeni/contracts";
|
|
2
|
-
import type { Database } from "./database";
|
|
3
|
-
import * as schema from "./schema";
|
|
2
|
+
import type { Database } from "./database.js";
|
|
3
|
+
import * as schema from "./schema.js";
|
|
4
4
|
export type SessionRealtimeMirrorChannel = "speakable" | "commentary" | null;
|
|
5
5
|
export type MirrorSessionRealtimeContextInput = {
|
|
6
6
|
accountId: string;
|