@opengeni/db 0.28.9 → 0.36.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/dist/attached-browser-devices.d.ts +42 -0
- package/dist/attempt-tool-catalogs.d.ts +16 -0
- package/dist/browser-auth.d.ts +299 -0
- package/dist/browser-downloads.d.ts +51 -0
- package/dist/browser-identities.d.ts +137 -0
- package/dist/browser-sessions.d.ts +354 -0
- package/dist/browser-state-artifacts.d.ts +91 -0
- package/dist/canonical-human-identities.d.ts +48 -0
- package/dist/canonical-human-identities.js +28 -0
- package/dist/canonical-human-identities.js.map +1 -0
- package/dist/capability-components.d.ts +37 -0
- package/dist/capability-integrations.d.ts +194 -0
- package/dist/chunk-5KTIEDX7.js +13200 -0
- package/dist/chunk-5KTIEDX7.js.map +1 -0
- package/dist/chunk-CQZ4QSP5.js +995 -0
- package/dist/chunk-CQZ4QSP5.js.map +1 -0
- package/dist/chunk-F32YT7MP.js +117 -0
- package/dist/chunk-F32YT7MP.js.map +1 -0
- package/dist/chunk-JC5QPLUM.js +666 -0
- package/dist/chunk-JC5QPLUM.js.map +1 -0
- package/dist/chunk-P3RE4D2B.js +3535 -0
- package/dist/chunk-P3RE4D2B.js.map +1 -0
- package/dist/chunk-TAUTWOS5.js +259 -0
- package/dist/chunk-TAUTWOS5.js.map +1 -0
- package/dist/chunk-VKLB2ZGI.js +2389 -0
- package/dist/chunk-VKLB2ZGI.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 +57 -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 +1122 -126
- package/dist/index.js +42329 -18407
- package/dist/index.js.map +1 -1
- package/dist/insights.d.ts +73 -10
- package/dist/integration-bindings.d.ts +70 -0
- package/dist/integration-facets.d.ts +99 -0
- package/dist/interaction-revisions.d.ts +14 -0
- package/dist/interaction-schema.d.ts +6036 -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 +19 -6
- package/dist/schema.d.ts +22654 -9359
- package/dist/schema.js +209 -3
- package/dist/scoped-knowledge.d.ts +97 -1
- package/dist/session-control.d.ts +33 -7
- 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-tenancy.d.ts +44 -0
- package/dist/session-tenancy.js +16 -0
- package/dist/session-tenancy.js.map +1 -0
- package/dist/session-tool-call-settlement.d.ts +1 -1
- package/dist/slack-task-policy-schema.d.ts +847 -0
- package/dist/slack-task-policy.d.ts +65 -0
- package/dist/slack-user-link-access.d.ts +54 -0
- package/dist/task-notes-schema.d.ts +924 -0
- package/dist/task-notes.d.ts +85 -0
- package/dist/transcription-recordings.d.ts +2 -2
- package/dist/turn-initiator.d.ts +2 -2
- package/dist/video-generation.d.ts +225 -0
- package/dist/video-generation.js +68 -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/dist/xai-subscription.d.ts +326 -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_browser_state_transfer_hardening.sql +560 -0
- package/drizzle/0212_slack_installation_bindings.sql +348 -0
- package/drizzle/0213_browser_interaction_authority.sql +67 -0
- package/drizzle/0213_slack_user_link_access_requests.sql +177 -0
- package/drizzle/0214_browser_download_saves.sql +34 -0
- package/drizzle/0214_session_activity_commit_gate.sql +262 -0
- package/drizzle/0215_browser_controller_host.sql +385 -0
- package/drizzle/0215_capabilities_platform.sql +980 -0
- package/drizzle/0216_browser_auth_health_evidence.sql +137 -0
- package/drizzle/0216_pack_component_ownership.sql +235 -0
- package/drizzle/0217_capability_definition_delete_authority.sql +32 -0
- package/drizzle/0217_external_browser_auth_operations.sql +22 -0
- package/drizzle/0218_organization_tenancy_foundation.sql +299 -0
- package/drizzle/0219_organization_tenancy_managed_human_provisioning.sql +317 -0
- package/drizzle/0219_site_auth_maintenance_sessions.sql +234 -0
- package/drizzle/0220_memory_slack_append_only_cascade.sql +38 -0
- package/drizzle/0220_session_channels.sql +54 -0
- package/drizzle/0221_sessions_channel_index.sql +5 -0
- package/drizzle/0222_session_visibility_authority_epochs.sql +158 -0
- package/drizzle/0222_sessions_channel_fk.sql +89 -0
- package/drizzle/0223_pending_tool_event_output.sql +55 -0
- package/drizzle/0223_sessions_channel_fk_validate.sql +118 -0
- package/drizzle/0224_slack_post_outcome_reconciliation.sql +123 -0
- package/drizzle/0225_session_visibility_fork_activation.sql +1363 -0
- package/drizzle/0226_personal_codex_authority_foundation.sql +365 -0
- package/drizzle/0227_slack_native_actions.sql +145 -0
- package/drizzle/0228_interaction_controller_data_plane.sql +14 -0
- package/drizzle/0228_slack_task_policy.sql +400 -0
- package/drizzle/0229_slack_inbox_file_fact.sql +10 -0
- package/drizzle/0230_user_scoped_variable_sets_rigs.sql +84 -0
- package/drizzle/0231_integration_definition_identity_cutover.sql +271 -0
- package/drizzle/0232_integration_facet_authority_cutover.sql +610 -0
- package/drizzle/0233_skill_and_integration_authority_cutover.sql +1162 -0
- package/drizzle/0234_xai_subscription_authority.sql +1139 -0
- package/drizzle/0235_canonical_human_login_bindings.sql +920 -0
- package/drizzle/0236_browser_identity_lifecycle.sql +39 -0
- package/drizzle/0236_session_visibility_slack_policy.sql +72 -0
- package/drizzle/0237_interaction_transition_reaper.sql +263 -0
- package/drizzle/0238_goal_persistence_policy.sql +471 -0
- package/drizzle/0238_supergrok_realtime_model.sql +29 -0
- package/drizzle/0239_supergrok_video_funding.sql +50 -0
- package/drizzle/0239_task_tree_notes.sql +990 -0
- package/package.json +26 -5
- package/src/attached-browser-devices.ts +371 -0
- package/src/attempt-tool-catalogs.ts +131 -0
- package/src/browser-auth.ts +4373 -0
- package/src/browser-downloads.ts +517 -0
- package/src/browser-identities.ts +1385 -0
- package/src/browser-sessions.ts +2294 -0
- package/src/browser-state-artifacts.ts +449 -0
- package/src/canonical-human-identities.ts +317 -0
- package/src/capability-components.ts +166 -0
- package/src/capability-integrations.ts +1571 -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 +468 -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/generated-images.ts +740 -0
- package/src/index.ts +9963 -1465
- package/src/insights.ts +251 -23
- package/src/integration-bindings.ts +455 -0
- package/src/integration-facets.ts +862 -0
- package/src/interaction-revisions.ts +70 -0
- package/src/interaction-schema.ts +1606 -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 +886 -0
- package/src/persistence-errors.ts +4 -7
- package/src/plugin-packages.ts +1186 -0
- package/src/provision-roles.ts +534 -1
- package/src/runtime-posture-cli.ts +9 -0
- package/src/runtime-posture.ts +721 -5
- package/src/schema.ts +6270 -3159
- package/src/scoped-knowledge-schema.ts +1 -1
- package/src/scoped-knowledge.ts +655 -3
- package/src/session-control.ts +130 -42
- package/src/session-queue-commands.ts +265 -15
- 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-tenancy.ts +188 -0
- package/src/session-tool-call-settlement.ts +18 -3
- package/src/slack-task-policy-schema.ts +130 -0
- package/src/slack-task-policy.ts +341 -0
- package/src/slack-user-link-access.ts +702 -0
- package/src/task-notes-schema.ts +135 -0
- package/src/task-notes.ts +178 -0
- package/src/video-generation.ts +1530 -0
- package/src/workspace-artifacts.ts +1 -1
- package/src/workspace-learning-policy-schema.ts +139 -0
- package/src/workspace-learning-policy.ts +595 -0
- package/src/xai-subscription.ts +1887 -0
- package/dist/chunk-P6CUHXQZ.js +0 -7248
- package/dist/chunk-P6CUHXQZ.js.map +0 -1
- package/dist/chunk-VHBFHMPC.js +0 -1219
- package/dist/chunk-VHBFHMPC.js.map +0 -1
package/dist/schema.js
CHANGED
|
@@ -1,17 +1,46 @@
|
|
|
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
|
+
browserStateUploads,
|
|
16
|
+
capabilityApiFacets,
|
|
6
17
|
capabilityCatalogItems,
|
|
18
|
+
capabilityComponentOwners,
|
|
19
|
+
capabilityFacetInstallations,
|
|
20
|
+
capabilityFacets,
|
|
7
21
|
capabilityInstallations,
|
|
22
|
+
capabilityIntegrationFacets,
|
|
23
|
+
capabilityMcpFacets,
|
|
24
|
+
capabilityOperations,
|
|
25
|
+
capabilityPluginInstallations,
|
|
26
|
+
capabilityPluginVersions,
|
|
27
|
+
capabilityPlugins,
|
|
28
|
+
capabilitySkillFacets,
|
|
29
|
+
capabilitySkillFiles,
|
|
30
|
+
channels,
|
|
8
31
|
codexAppsSettings,
|
|
9
32
|
codexCapacityWaiters,
|
|
10
33
|
codexCredentialLeases,
|
|
11
34
|
codexResetRedemptionAttempts,
|
|
12
35
|
codexRotationSettings,
|
|
13
36
|
codexSubscriptionCredentials,
|
|
37
|
+
companyProfileActivationEvents,
|
|
38
|
+
companyProfileHeads,
|
|
39
|
+
companyProfileRevisions,
|
|
40
|
+
companyProfileSnapshots,
|
|
14
41
|
composerDrafts,
|
|
42
|
+
computerSessionAssociations,
|
|
43
|
+
computerSessions,
|
|
15
44
|
connectionDisconnectOperations,
|
|
16
45
|
connections,
|
|
17
46
|
connectorActionPolicies,
|
|
@@ -22,12 +51,29 @@ import {
|
|
|
22
51
|
documentBases,
|
|
23
52
|
documentChunks,
|
|
24
53
|
documents,
|
|
54
|
+
editableArtifactBlobRefs,
|
|
55
|
+
editableArtifactIdempotencyReceipts,
|
|
56
|
+
editableArtifactLiveOutbox,
|
|
57
|
+
editableArtifactLiveTickets,
|
|
58
|
+
editableArtifactMaterializationJobs,
|
|
59
|
+
editableArtifactMaterializationResults,
|
|
60
|
+
editableArtifactOperations,
|
|
61
|
+
editableArtifactReplicaLeases,
|
|
62
|
+
editableArtifactScopeAuthorizationHeads,
|
|
63
|
+
editableArtifactSequenceCheckpoints,
|
|
64
|
+
editableArtifactSnapshots,
|
|
65
|
+
editableArtifactTransactions,
|
|
66
|
+
editableArtifactUndoClaims,
|
|
67
|
+
editableArtifactVersions,
|
|
68
|
+
editableArtifacts,
|
|
25
69
|
enrollmentExposureValues,
|
|
26
70
|
enrollmentOsValues,
|
|
27
71
|
enrollmentStatusValues,
|
|
28
72
|
enrollments,
|
|
29
73
|
fileUploads,
|
|
30
74
|
files,
|
|
75
|
+
generatedImageArtifacts,
|
|
76
|
+
generatedVideoArtifacts,
|
|
31
77
|
githubInstallationRepositories,
|
|
32
78
|
githubInstallations,
|
|
33
79
|
hostExportConfig,
|
|
@@ -35,9 +81,21 @@ import {
|
|
|
35
81
|
hostExportCursorState,
|
|
36
82
|
hostExportDeadLetters,
|
|
37
83
|
hostExportOutbox,
|
|
84
|
+
imageGenerationOperations,
|
|
38
85
|
importBatches,
|
|
86
|
+
integrationFacetBindingOwners,
|
|
87
|
+
integrationFacetBindings,
|
|
88
|
+
integrationFacetDefinitions,
|
|
39
89
|
integrationOauthClients,
|
|
40
90
|
integrationOauthStateNonces,
|
|
91
|
+
integrationSpecRevisions,
|
|
92
|
+
integrationTools,
|
|
93
|
+
interactionInterventions,
|
|
94
|
+
interactionLifecycleValues,
|
|
95
|
+
interactionOperationKindValues,
|
|
96
|
+
interactionOperationStateValues,
|
|
97
|
+
interactionOperations,
|
|
98
|
+
interactionResourceOperations,
|
|
41
99
|
knowledgeChangeProposals,
|
|
42
100
|
knowledgeClaimEvidence,
|
|
43
101
|
knowledgeClaimRelations,
|
|
@@ -55,6 +113,11 @@ import {
|
|
|
55
113
|
knowledgeProviders,
|
|
56
114
|
knowledgeSourceAclVersions,
|
|
57
115
|
knowledgeSourceObjects,
|
|
116
|
+
knowledgeSourceSyncIndexObligations,
|
|
117
|
+
knowledgeSourceSyncItemOutcomes,
|
|
118
|
+
knowledgeSourceSyncObjectObservations,
|
|
119
|
+
knowledgeSourceSyncStates,
|
|
120
|
+
knowledgeSourceSyncWakes,
|
|
58
121
|
knowledgeSources,
|
|
59
122
|
knowledgeSyncRuns,
|
|
60
123
|
machineMetricsLatest,
|
|
@@ -62,9 +125,18 @@ import {
|
|
|
62
125
|
machineRemovalOperationOutcomeValues,
|
|
63
126
|
machineRemovalOperations,
|
|
64
127
|
managedAccounts,
|
|
128
|
+
memorySlackPublicationConfigurations,
|
|
129
|
+
memorySlackPublicationReceipts,
|
|
130
|
+
memorySlackPublications,
|
|
65
131
|
modelCallFacts,
|
|
66
132
|
nestedAgentDepthConfiguration,
|
|
133
|
+
networkRoutes,
|
|
67
134
|
newSessionDrafts,
|
|
135
|
+
organizationMemberships,
|
|
136
|
+
organizationUserResourceAuthorities,
|
|
137
|
+
organizationUserResourceGrants,
|
|
138
|
+
organizationUserRetentionPolicies,
|
|
139
|
+
packInstallationComponents,
|
|
68
140
|
packInstallations,
|
|
69
141
|
preferenceRegistryEvents,
|
|
70
142
|
preferenceRegistryPreferences,
|
|
@@ -90,9 +162,12 @@ import {
|
|
|
90
162
|
sandboxes,
|
|
91
163
|
scheduledTaskRuns,
|
|
92
164
|
scheduledTasks,
|
|
165
|
+
sessionAttemptCodemodeCalls,
|
|
93
166
|
sessionAttemptInterruptions,
|
|
167
|
+
sessionAttemptToolCatalogs,
|
|
94
168
|
sessionCommandReceipts,
|
|
95
169
|
sessionEvents,
|
|
170
|
+
sessionGoalRevisions,
|
|
96
171
|
sessionGoals,
|
|
97
172
|
sessionHistoryItems,
|
|
98
173
|
sessionHumanInputRequests,
|
|
@@ -115,15 +190,29 @@ import {
|
|
|
115
190
|
sessionTurns,
|
|
116
191
|
sessionWorkflowWakeOutbox,
|
|
117
192
|
sessions,
|
|
193
|
+
siteAuthConnections,
|
|
118
194
|
slackBotDeleteOperations,
|
|
119
195
|
slackBotPostOperations,
|
|
196
|
+
slackBotUpdateOperations,
|
|
120
197
|
slackBotUserLinks,
|
|
198
|
+
slackInstallationBindings,
|
|
199
|
+
slackInteractionActionHandles,
|
|
121
200
|
slackInteractionInbox,
|
|
122
201
|
slackInteractionProgressDeliveries,
|
|
123
202
|
slackInteractions,
|
|
203
|
+
slackSharedTaskOrigins,
|
|
204
|
+
slackTaskPolicyActivationEvents,
|
|
205
|
+
slackTaskPolicyHeads,
|
|
206
|
+
slackTaskPolicyRevisions,
|
|
207
|
+
slackUserLinkAccessRequestOperations,
|
|
208
|
+
slackUserLinkAccessRequests,
|
|
124
209
|
socialConnections,
|
|
125
210
|
socialPosts,
|
|
126
211
|
stripeWebhookEvents,
|
|
212
|
+
taskNoteEvents,
|
|
213
|
+
taskNoteWriteCapabilities,
|
|
214
|
+
taskNotes,
|
|
215
|
+
temporalScheduleCleanupOutbox,
|
|
127
216
|
transcriptionRecordingChunkStateValues,
|
|
128
217
|
transcriptionRecordingChunks,
|
|
129
218
|
transcriptionRecordingObjectKindValues,
|
|
@@ -133,6 +222,8 @@ import {
|
|
|
133
222
|
transcriptionRecordingStateValues,
|
|
134
223
|
transcriptionRecordings,
|
|
135
224
|
usageEvents,
|
|
225
|
+
videoGenerationOperations,
|
|
226
|
+
videoGenerationReferences,
|
|
136
227
|
workspaceArtifactEvents,
|
|
137
228
|
workspaceArtifactVersions,
|
|
138
229
|
workspaceArtifacts,
|
|
@@ -144,6 +235,11 @@ import {
|
|
|
144
235
|
workspaceInstructionPolicyOnboardingProposals,
|
|
145
236
|
workspaceInstructionPolicyRevisions,
|
|
146
237
|
workspaceInstructionPolicySnapshots,
|
|
238
|
+
workspaceInteractionRevisions,
|
|
239
|
+
workspaceLearningPolicyActivationEvents,
|
|
240
|
+
workspaceLearningPolicyHeads,
|
|
241
|
+
workspaceLearningPolicyRevisions,
|
|
242
|
+
workspaceLearningPolicySnapshots,
|
|
147
243
|
workspaceMemberships,
|
|
148
244
|
workspaceModelPolicies,
|
|
149
245
|
workspacePacks,
|
|
@@ -151,23 +247,59 @@ import {
|
|
|
151
247
|
workspaceSessionActivityRevisions,
|
|
152
248
|
workspaceVariableSetVariables,
|
|
153
249
|
workspaceVariableSets,
|
|
154
|
-
|
|
155
|
-
|
|
250
|
+
workspaceVideoGenerationPolicies,
|
|
251
|
+
workspaceVideoGenerationQuotas,
|
|
252
|
+
workspaces,
|
|
253
|
+
xaiCapacityWaiters,
|
|
254
|
+
xaiCredentialLeases,
|
|
255
|
+
xaiRotationSettings,
|
|
256
|
+
xaiSessionAccountPins,
|
|
257
|
+
xaiSubscriptionCredentials
|
|
258
|
+
} from "./chunk-5KTIEDX7.js";
|
|
156
259
|
import "./chunk-PZ5AY32C.js";
|
|
157
260
|
export {
|
|
158
261
|
agentRunStates,
|
|
159
262
|
apiKeys,
|
|
263
|
+
attachedBrowserDevices,
|
|
264
|
+
attachedBrowserInventories,
|
|
160
265
|
auditEvents,
|
|
266
|
+
authRuns,
|
|
161
267
|
billingCustomers,
|
|
268
|
+
browserIdentities,
|
|
269
|
+
browserRevisionComponents,
|
|
270
|
+
browserRevisions,
|
|
271
|
+
browserSessionAssociations,
|
|
272
|
+
browserSessions,
|
|
273
|
+
browserStateArtifacts,
|
|
274
|
+
browserStateUploads,
|
|
275
|
+
capabilityApiFacets,
|
|
162
276
|
capabilityCatalogItems,
|
|
277
|
+
capabilityComponentOwners,
|
|
278
|
+
capabilityFacetInstallations,
|
|
279
|
+
capabilityFacets,
|
|
163
280
|
capabilityInstallations,
|
|
281
|
+
capabilityIntegrationFacets,
|
|
282
|
+
capabilityMcpFacets,
|
|
283
|
+
capabilityOperations,
|
|
284
|
+
capabilityPluginInstallations,
|
|
285
|
+
capabilityPluginVersions,
|
|
286
|
+
capabilityPlugins,
|
|
287
|
+
capabilitySkillFacets,
|
|
288
|
+
capabilitySkillFiles,
|
|
289
|
+
channels,
|
|
164
290
|
codexAppsSettings,
|
|
165
291
|
codexCapacityWaiters,
|
|
166
292
|
codexCredentialLeases,
|
|
167
293
|
codexResetRedemptionAttempts,
|
|
168
294
|
codexRotationSettings,
|
|
169
295
|
codexSubscriptionCredentials,
|
|
296
|
+
companyProfileActivationEvents,
|
|
297
|
+
companyProfileHeads,
|
|
298
|
+
companyProfileRevisions,
|
|
299
|
+
companyProfileSnapshots,
|
|
170
300
|
composerDrafts,
|
|
301
|
+
computerSessionAssociations,
|
|
302
|
+
computerSessions,
|
|
171
303
|
connectionDisconnectOperations,
|
|
172
304
|
connections,
|
|
173
305
|
connectorActionPolicies,
|
|
@@ -178,12 +310,29 @@ export {
|
|
|
178
310
|
documentBases,
|
|
179
311
|
documentChunks,
|
|
180
312
|
documents,
|
|
313
|
+
editableArtifactBlobRefs,
|
|
314
|
+
editableArtifactIdempotencyReceipts,
|
|
315
|
+
editableArtifactLiveOutbox,
|
|
316
|
+
editableArtifactLiveTickets,
|
|
317
|
+
editableArtifactMaterializationJobs,
|
|
318
|
+
editableArtifactMaterializationResults,
|
|
319
|
+
editableArtifactOperations,
|
|
320
|
+
editableArtifactReplicaLeases,
|
|
321
|
+
editableArtifactScopeAuthorizationHeads,
|
|
322
|
+
editableArtifactSequenceCheckpoints,
|
|
323
|
+
editableArtifactSnapshots,
|
|
324
|
+
editableArtifactTransactions,
|
|
325
|
+
editableArtifactUndoClaims,
|
|
326
|
+
editableArtifactVersions,
|
|
327
|
+
editableArtifacts,
|
|
181
328
|
enrollmentExposureValues,
|
|
182
329
|
enrollmentOsValues,
|
|
183
330
|
enrollmentStatusValues,
|
|
184
331
|
enrollments,
|
|
185
332
|
fileUploads,
|
|
186
333
|
files,
|
|
334
|
+
generatedImageArtifacts,
|
|
335
|
+
generatedVideoArtifacts,
|
|
187
336
|
githubInstallationRepositories,
|
|
188
337
|
githubInstallations,
|
|
189
338
|
hostExportConfig,
|
|
@@ -191,9 +340,21 @@ export {
|
|
|
191
340
|
hostExportCursorState,
|
|
192
341
|
hostExportDeadLetters,
|
|
193
342
|
hostExportOutbox,
|
|
343
|
+
imageGenerationOperations,
|
|
194
344
|
importBatches,
|
|
345
|
+
integrationFacetBindingOwners,
|
|
346
|
+
integrationFacetBindings,
|
|
347
|
+
integrationFacetDefinitions,
|
|
195
348
|
integrationOauthClients,
|
|
196
349
|
integrationOauthStateNonces,
|
|
350
|
+
integrationSpecRevisions,
|
|
351
|
+
integrationTools,
|
|
352
|
+
interactionInterventions,
|
|
353
|
+
interactionLifecycleValues,
|
|
354
|
+
interactionOperationKindValues,
|
|
355
|
+
interactionOperationStateValues,
|
|
356
|
+
interactionOperations,
|
|
357
|
+
interactionResourceOperations,
|
|
197
358
|
knowledgeChangeProposals,
|
|
198
359
|
knowledgeClaimEvidence,
|
|
199
360
|
knowledgeClaimRelations,
|
|
@@ -211,6 +372,11 @@ export {
|
|
|
211
372
|
knowledgeProviders,
|
|
212
373
|
knowledgeSourceAclVersions,
|
|
213
374
|
knowledgeSourceObjects,
|
|
375
|
+
knowledgeSourceSyncIndexObligations,
|
|
376
|
+
knowledgeSourceSyncItemOutcomes,
|
|
377
|
+
knowledgeSourceSyncObjectObservations,
|
|
378
|
+
knowledgeSourceSyncStates,
|
|
379
|
+
knowledgeSourceSyncWakes,
|
|
214
380
|
knowledgeSources,
|
|
215
381
|
knowledgeSyncRuns,
|
|
216
382
|
machineMetricsLatest,
|
|
@@ -218,9 +384,18 @@ export {
|
|
|
218
384
|
machineRemovalOperationOutcomeValues,
|
|
219
385
|
machineRemovalOperations,
|
|
220
386
|
managedAccounts,
|
|
387
|
+
memorySlackPublicationConfigurations,
|
|
388
|
+
memorySlackPublicationReceipts,
|
|
389
|
+
memorySlackPublications,
|
|
221
390
|
modelCallFacts,
|
|
222
391
|
nestedAgentDepthConfiguration,
|
|
392
|
+
networkRoutes,
|
|
223
393
|
newSessionDrafts,
|
|
394
|
+
organizationMemberships,
|
|
395
|
+
organizationUserResourceAuthorities,
|
|
396
|
+
organizationUserResourceGrants,
|
|
397
|
+
organizationUserRetentionPolicies,
|
|
398
|
+
packInstallationComponents,
|
|
224
399
|
packInstallations,
|
|
225
400
|
preferenceRegistryEvents,
|
|
226
401
|
preferenceRegistryPreferences,
|
|
@@ -246,9 +421,12 @@ export {
|
|
|
246
421
|
sandboxes,
|
|
247
422
|
scheduledTaskRuns,
|
|
248
423
|
scheduledTasks,
|
|
424
|
+
sessionAttemptCodemodeCalls,
|
|
249
425
|
sessionAttemptInterruptions,
|
|
426
|
+
sessionAttemptToolCatalogs,
|
|
250
427
|
sessionCommandReceipts,
|
|
251
428
|
sessionEvents,
|
|
429
|
+
sessionGoalRevisions,
|
|
252
430
|
sessionGoals,
|
|
253
431
|
sessionHistoryItems,
|
|
254
432
|
sessionHumanInputRequests,
|
|
@@ -271,15 +449,29 @@ export {
|
|
|
271
449
|
sessionTurns,
|
|
272
450
|
sessionWorkflowWakeOutbox,
|
|
273
451
|
sessions,
|
|
452
|
+
siteAuthConnections,
|
|
274
453
|
slackBotDeleteOperations,
|
|
275
454
|
slackBotPostOperations,
|
|
455
|
+
slackBotUpdateOperations,
|
|
276
456
|
slackBotUserLinks,
|
|
457
|
+
slackInstallationBindings,
|
|
458
|
+
slackInteractionActionHandles,
|
|
277
459
|
slackInteractionInbox,
|
|
278
460
|
slackInteractionProgressDeliveries,
|
|
279
461
|
slackInteractions,
|
|
462
|
+
slackSharedTaskOrigins,
|
|
463
|
+
slackTaskPolicyActivationEvents,
|
|
464
|
+
slackTaskPolicyHeads,
|
|
465
|
+
slackTaskPolicyRevisions,
|
|
466
|
+
slackUserLinkAccessRequestOperations,
|
|
467
|
+
slackUserLinkAccessRequests,
|
|
280
468
|
socialConnections,
|
|
281
469
|
socialPosts,
|
|
282
470
|
stripeWebhookEvents,
|
|
471
|
+
taskNoteEvents,
|
|
472
|
+
taskNoteWriteCapabilities,
|
|
473
|
+
taskNotes,
|
|
474
|
+
temporalScheduleCleanupOutbox,
|
|
283
475
|
transcriptionRecordingChunkStateValues,
|
|
284
476
|
transcriptionRecordingChunks,
|
|
285
477
|
transcriptionRecordingObjectKindValues,
|
|
@@ -289,6 +481,8 @@ export {
|
|
|
289
481
|
transcriptionRecordingStateValues,
|
|
290
482
|
transcriptionRecordings,
|
|
291
483
|
usageEvents,
|
|
484
|
+
videoGenerationOperations,
|
|
485
|
+
videoGenerationReferences,
|
|
292
486
|
workspaceArtifactEvents,
|
|
293
487
|
workspaceArtifactVersions,
|
|
294
488
|
workspaceArtifacts,
|
|
@@ -300,6 +494,11 @@ export {
|
|
|
300
494
|
workspaceInstructionPolicyOnboardingProposals,
|
|
301
495
|
workspaceInstructionPolicyRevisions,
|
|
302
496
|
workspaceInstructionPolicySnapshots,
|
|
497
|
+
workspaceInteractionRevisions,
|
|
498
|
+
workspaceLearningPolicyActivationEvents,
|
|
499
|
+
workspaceLearningPolicyHeads,
|
|
500
|
+
workspaceLearningPolicyRevisions,
|
|
501
|
+
workspaceLearningPolicySnapshots,
|
|
303
502
|
workspaceMemberships,
|
|
304
503
|
workspaceModelPolicies,
|
|
305
504
|
workspacePacks,
|
|
@@ -307,6 +506,13 @@ export {
|
|
|
307
506
|
workspaceSessionActivityRevisions,
|
|
308
507
|
workspaceVariableSetVariables,
|
|
309
508
|
workspaceVariableSets,
|
|
310
|
-
|
|
509
|
+
workspaceVideoGenerationPolicies,
|
|
510
|
+
workspaceVideoGenerationQuotas,
|
|
511
|
+
workspaces,
|
|
512
|
+
xaiCapacityWaiters,
|
|
513
|
+
xaiCredentialLeases,
|
|
514
|
+
xaiRotationSettings,
|
|
515
|
+
xaiSessionAccountPins,
|
|
516
|
+
xaiSubscriptionCredentials
|
|
311
517
|
};
|
|
312
518
|
//# 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";
|
|
@@ -130,8 +130,8 @@ export declare class SessionCommandIdempotencyError extends Error {
|
|
|
130
130
|
constructor();
|
|
131
131
|
}
|
|
132
132
|
export declare class AgentCommandAuthorityError extends Error {
|
|
133
|
-
readonly code: "CALLER_STALE" | "CALLER_INTERRUPTED" | "
|
|
134
|
-
constructor(code: "CALLER_STALE" | "CALLER_INTERRUPTED" | "
|
|
133
|
+
readonly code: "CALLER_STALE" | "CALLER_INTERRUPTED" | "TARGET_NOT_VERTICAL" | "SELF_STEER";
|
|
134
|
+
constructor(code: "CALLER_STALE" | "CALLER_INTERRUPTED" | "TARGET_NOT_VERTICAL" | "SELF_STEER", message: string);
|
|
135
135
|
}
|
|
136
136
|
export declare function assertAgentCommandAuthorityInTransaction(db: Database, input: {
|
|
137
137
|
workspaceId: string;
|
|
@@ -169,7 +169,7 @@ export type SessionEventWriteLocks = {
|
|
|
169
169
|
*
|
|
170
170
|
* workspace_inference_controls (when control-aware)
|
|
171
171
|
* -> actual workspaces row FOR KEY SHARE
|
|
172
|
-
* -> session rows FOR UPDATE, UUID ordered
|
|
172
|
+
* -> session rows FOR NO KEY UPDATE, UUID ordered
|
|
173
173
|
* -> exact turn rows FOR UPDATE, UUID ordered
|
|
174
174
|
* -> exact attempt rows FOR UPDATE, UUID ordered
|
|
175
175
|
*
|
|
@@ -178,6 +178,11 @@ export type SessionEventWriteLocks = {
|
|
|
178
178
|
* `FOR UPDATE` lock serialized unrelated sessions and inverted the activity
|
|
179
179
|
* path's session -> implicit workspace-FK edge.
|
|
180
180
|
*
|
|
181
|
+
* `FOR NO KEY UPDATE` is equally deliberate for sessions. Session primary and
|
|
182
|
+
* composite identity keys are immutable, so writers need to exclude only concurrent
|
|
183
|
+
* non-key mutation. Keeping FK `FOR KEY SHARE` checks compatible prevents the
|
|
184
|
+
* activity finalizer's workspace counter from participating in a lock cycle.
|
|
185
|
+
*
|
|
181
186
|
* Complex lifecycle transactions may acquire allocator/control locks before
|
|
182
187
|
* this helper and may discover exact turn IDs only after locking the session.
|
|
183
188
|
* They use the explicit `already_locked` stages, while retaining the same
|
|
@@ -195,9 +200,30 @@ export declare function registerSessionTurnAttemptClaim(db: Database, input: {
|
|
|
195
200
|
temporalWorkflowRunId: string;
|
|
196
201
|
temporalActivityId: string;
|
|
197
202
|
verifiedControlRevision: number;
|
|
203
|
+
authorityEpoch: number;
|
|
204
|
+
authorityVisibility: "user_private" | "workspace_shared";
|
|
205
|
+
authorityOwnerOrganizationMembershipId: string | null;
|
|
198
206
|
mcpApprovalPolicies: Record<string, SessionMcpApprovalPolicy>;
|
|
199
207
|
connectorActionPolicies: schema.ConnectorActionPolicySnapshotEntry[];
|
|
200
208
|
}): Promise<typeof schema.sessionTurnAttempts.$inferSelect>;
|
|
209
|
+
export type SessionAuthoritySnapshot = {
|
|
210
|
+
authorityEpoch: number;
|
|
211
|
+
authorityVisibility: "user_private" | "workspace_shared";
|
|
212
|
+
authorityOwnerOrganizationMembershipId: string | null;
|
|
213
|
+
};
|
|
214
|
+
/**
|
|
215
|
+
* Validate the complete accepted-attempt authority tuple. Missing or partial
|
|
216
|
+
* values are not legacy defaults: current claim writers must provide the
|
|
217
|
+
* exact locked session authority explicitly.
|
|
218
|
+
*/
|
|
219
|
+
export declare function assertSessionAuthoritySnapshot(input: {
|
|
220
|
+
attemptId?: string;
|
|
221
|
+
authorityEpoch: unknown;
|
|
222
|
+
authorityVisibility: unknown;
|
|
223
|
+
authorityOwnerOrganizationMembershipId: unknown;
|
|
224
|
+
}): SessionAuthoritySnapshot;
|
|
225
|
+
export declare function sessionAuthoritySnapshotMatchesSession(snapshot: SessionAuthoritySnapshot, session: Pick<typeof schema.sessions.$inferSelect, "authorityEpoch" | "visibility" | "ownerOrganizationMembershipId">): boolean;
|
|
226
|
+
export declare function sessionAuthoritySnapshotsEqual(left: Pick<SessionAuthoritySnapshot, "authorityEpoch" | "authorityVisibility" | "authorityOwnerOrganizationMembershipId">, right: Pick<SessionAuthoritySnapshot, "authorityEpoch" | "authorityVisibility" | "authorityOwnerOrganizationMembershipId">): boolean;
|
|
201
227
|
/**
|
|
202
228
|
* Close the exact first-class owner while the caller still holds the owning
|
|
203
229
|
* session/turn locks. Every path that clears `session_turns.active_attempt_id`
|
|
@@ -297,7 +323,7 @@ export type SessionControlMutationResult = {
|
|
|
297
323
|
}>;
|
|
298
324
|
replay: boolean;
|
|
299
325
|
};
|
|
300
|
-
export declare function mutateSessionControlInTransaction(db:
|
|
326
|
+
export declare function mutateSessionControlInTransaction(db: SessionActivityDatabase, input: {
|
|
301
327
|
accountId: string;
|
|
302
328
|
workspaceId: string;
|
|
303
329
|
sessionId: string;
|
|
@@ -307,7 +333,7 @@ export declare function mutateSessionControlInTransaction(db: Database, input: {
|
|
|
307
333
|
reason?: string | null;
|
|
308
334
|
expectedControlEtag?: string | null;
|
|
309
335
|
}): Promise<SessionControlMutationResult>;
|
|
310
|
-
export declare function autoResumeSessionBranchInTransaction(db:
|
|
336
|
+
export declare function autoResumeSessionBranchInTransaction(db: SessionActivityDatabase, input: {
|
|
311
337
|
workspaceId: string;
|
|
312
338
|
sessionId: string;
|
|
313
339
|
actor: string;
|