@opengeni/db 0.36.1 → 3.1.0-canary.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.
Files changed (274) hide show
  1. package/dist/attached-browser-devices.d.ts +7 -0
  2. package/dist/automations.d.ts +154 -0
  3. package/dist/canonical-human-identities.js +3 -3
  4. package/dist/capability-integrations.d.ts +13 -0
  5. package/dist/child-lifecycle-notices.d.ts +68 -0
  6. package/dist/{chunk-GYO7ED2Q.js → chunk-EULAN2NP.js} +2 -2
  7. package/dist/{chunk-VTPRIXKG.js → chunk-NJVZPWXY.js} +3 -3
  8. package/dist/{chunk-HSOWSYOX.js → chunk-NMUBV7Z5.js} +19 -11
  9. package/dist/chunk-NMUBV7Z5.js.map +1 -0
  10. package/dist/chunk-OF5OBB76.js +4457 -0
  11. package/dist/chunk-OF5OBB76.js.map +1 -0
  12. package/dist/{chunk-5KTIEDX7.js → chunk-PR2WMLOQ.js} +7714 -4443
  13. package/dist/chunk-PR2WMLOQ.js.map +1 -0
  14. package/dist/{chunk-Z7VYMNPZ.js → chunk-SCPUJS53.js} +41 -4
  15. package/dist/chunk-SCPUJS53.js.map +1 -0
  16. package/dist/{chunk-SK7YYHBI.js → chunk-SIBYBA2D.js} +46 -1
  17. package/dist/chunk-SIBYBA2D.js.map +1 -0
  18. package/dist/chunk-TIKF3KTI.js +383 -0
  19. package/dist/chunk-TIKF3KTI.js.map +1 -0
  20. package/dist/chunk-ZZ5LJEFX.js +516 -0
  21. package/dist/chunk-ZZ5LJEFX.js.map +1 -0
  22. package/dist/codemode-operations.d.ts +1 -6
  23. package/dist/company-brain-context-selection-schema.d.ts +705 -0
  24. package/dist/company-brain-context-selection.d.ts +94 -0
  25. package/dist/company-brain-governed-writes.d.ts +24 -0
  26. package/dist/company-brain.d.ts +55 -0
  27. package/dist/company-profile-agent-admin.d.ts +15 -0
  28. package/dist/company-profile-schema.d.ts +619 -2
  29. package/dist/company-profile.d.ts +9 -4
  30. package/dist/connection-authority.d.ts +95 -0
  31. package/dist/connection-scopes.d.ts +8 -0
  32. package/dist/connection-tenancy-backfill.d.ts +41 -0
  33. package/dist/connection-token-resolver.d.ts +30 -1
  34. package/dist/database.d.ts +19 -0
  35. package/dist/editable-artifact-durable-export.d.ts +10 -0
  36. package/dist/editable-artifact-durable-export.js +18 -3
  37. package/dist/editable-artifact-durable-export.js.map +1 -1
  38. package/dist/editable-artifacts.d.ts +2 -2
  39. package/dist/editable-artifacts.js +3 -3
  40. package/dist/governed-learning-activation-schema.d.ts +984 -0
  41. package/dist/governed-learning-activation.d.ts +98 -0
  42. package/dist/governed-learning-evaluator-schema.d.ts +633 -0
  43. package/dist/governed-learning-evaluator.d.ts +28 -0
  44. package/dist/index.d.ts +1633 -87
  45. package/dist/index.js +22004 -8109
  46. package/dist/index.js.map +1 -1
  47. package/dist/insights.d.ts +18 -0
  48. package/dist/integration-bindings.d.ts +1 -0
  49. package/dist/integration-facets.d.ts +30 -0
  50. package/dist/interaction-placement-loss.d.ts +22 -0
  51. package/dist/knowledge-source-sync-schema.d.ts +730 -0
  52. package/dist/knowledge-source-sync.d.ts +60 -0
  53. package/dist/managed-human-provisioning.d.ts +25 -0
  54. package/dist/memory-domain.d.ts +3 -3
  55. package/dist/migrate.d.ts +11 -1
  56. package/dist/migrate.js +1 -1
  57. package/dist/new-session-drafts.d.ts +43 -5
  58. package/dist/organization-membership-backfill.d.ts +174 -0
  59. package/dist/organization-membership-lifecycle.d.ts +162 -0
  60. package/dist/pr-review.d.ts +107 -0
  61. package/dist/preference-registry-schema.d.ts +2 -0
  62. package/dist/preference-registry.d.ts +2 -0
  63. package/dist/provision-roles.js +1 -1
  64. package/dist/runtime-posture.d.ts +23 -9
  65. package/dist/schema.d.ts +24925 -13697
  66. package/dist/schema.js +103 -1
  67. package/dist/scoped-knowledge-schema.d.ts +52 -1
  68. package/dist/session-background-commands.d.ts +125 -0
  69. package/dist/session-background-commands.js +34 -0
  70. package/dist/session-background-commands.js.map +1 -0
  71. package/dist/session-control.d.ts +156 -3
  72. package/dist/session-goal-pacing.d.ts +68 -0
  73. package/dist/session-queue-commands.d.ts +42 -5
  74. package/dist/session-realtime-ledger.d.ts +3 -0
  75. package/dist/session-tenancy.d.ts +71 -1
  76. package/dist/session-tenancy.js +25 -3
  77. package/dist/session-tool-call-settlement.d.ts +9 -4
  78. package/dist/slack-routing-personal-workspace.d.ts +23 -0
  79. package/dist/slack-routing.d.ts +153 -0
  80. package/dist/slack-task-policy-schema.d.ts +34 -0
  81. package/dist/slack-task-policy.d.ts +8 -0
  82. package/dist/slack-user-link-access.d.ts +1 -0
  83. package/dist/task-notes-schema.d.ts +594 -0
  84. package/dist/task-notes.d.ts +39 -0
  85. package/dist/turn-initiator.d.ts +2 -0
  86. package/dist/user-resource-authority.d.ts +109 -0
  87. package/dist/video-generation.js +3 -3
  88. package/dist/workspace-authority.d.ts +81 -0
  89. package/dist/workspace-instruction-policies-schema.d.ts +279 -0
  90. package/dist/workspace-instruction-policies.d.ts +62 -0
  91. package/dist/workspace-learning-policy.d.ts +1 -0
  92. package/dist/workspace-membership-permissions.d.ts +2 -0
  93. package/drizzle/0240_enrollment_connection_authority.sql +39 -0
  94. package/drizzle/0240_model_context_user_messages.sql +204 -0
  95. package/drizzle/0241_atomic_personal_resource_delegation.sql +1000 -0
  96. package/drizzle/0241_enrollment_agent_runtime.sql +70 -0
  97. package/drizzle/0243_google_drive_object_acl_authority.sql +554 -0
  98. package/drizzle/0244_slack_app_home_refresh_queue.sql +120 -0
  99. package/drizzle/0245_model_context_contribution_facts.sql +88 -0
  100. package/drizzle/0246_integration_personal_instance_authority.sql +70 -0
  101. package/drizzle/0247_terraform_stacks_provenance_repair.sql +428 -0
  102. package/drizzle/0248_terraform_stacks_component_resolution_fence.sql +83 -0
  103. package/drizzle/0249_personal_resource_delegation_authority_correction.sql +662 -0
  104. package/drizzle/0250_direct_retained_process_owner_liveness.sql +199 -0
  105. package/drizzle/0251_connected_machine_operation_policy.sql +45 -0
  106. package/drizzle/0252_scheduled_personal_resource_delegation.sql +1867 -0
  107. package/drizzle/0253_common_user_resource_authority_lifecycle.sql +1555 -0
  108. package/drizzle/0254_scoped_variable_set_authority.sql +1255 -0
  109. package/drizzle/0255_company_brain_governed_write_proposals.sql +524 -0
  110. package/drizzle/0256_connection_authority_delegation.sql +703 -0
  111. package/drizzle/0257_goal_revision_decisions_and_root_constraints.sql +436 -0
  112. package/drizzle/0258_three_scope_document_knowledge_authority.sql +1273 -0
  113. package/drizzle/0259_company_brain_context_selection_receipts.sql +869 -0
  114. package/drizzle/0260_task_note_knowledge_promotion.sql +820 -0
  115. package/drizzle/0261_preference_knowledge_proposal_actor_binding.sql +471 -0
  116. package/drizzle/0262_scoped_connected_machines_and_rigs.sql +1700 -0
  117. package/drizzle/0263_organization_membership_lifecycle.sql +3284 -0
  118. package/drizzle/0264_connection_authority_runtime_activation.sql +1084 -0
  119. package/drizzle/0266_company_brain_context_receipt_inspection.sql +156 -0
  120. package/drizzle/0268_governed_learning_decision_receipts.sql +825 -0
  121. package/drizzle/0269_governed_learning_activation_controller.sql +1874 -0
  122. package/drizzle/0270_governed_learning_history_inspection.sql +170 -0
  123. package/drizzle/0271_company_brain_retrieval_only_default.sql +524 -0
  124. package/drizzle/0272_human_confirmed_learning_activation.sql +591 -0
  125. package/drizzle/0273_scheduled_variable_set_materialization.sql +268 -0
  126. package/drizzle/0274_human_confirmed_knowledge_review.sql +310 -0
  127. package/drizzle/0275_scheduled_connection_authority.sql +5527 -0
  128. package/drizzle/0276_onboarding_proposal_initiating_human_guc.sql +198 -0
  129. package/drizzle/0277_workspace_writer_authority_attribution.sql +393 -0
  130. package/drizzle/0278_workspace_membership_removal_fencing.sql +1174 -0
  131. package/drizzle/0279_workspace_connection_use_lane.sql +343 -0
  132. package/drizzle/0280_connection_and_variable_set_audit_attribution.sql +773 -0
  133. package/drizzle/0281_viewer_holder_authority_claims.sql +52 -0
  134. package/drizzle/0282_variable_set_session_attach_attribution.sql +178 -0
  135. package/drizzle/0283_editable_spreadsheet_authored_state.sql +82 -0
  136. package/drizzle/0284_truthful_human_confirmed_review_reason.sql +930 -0
  137. package/drizzle/0285_organization_tenancy_inventory.sql +329 -0
  138. package/drizzle/0286_widen_task_note_expiry_ceiling.sql +391 -0
  139. package/drizzle/0287_open_suffix_pending_tool_calls.sql +18 -0
  140. package/drizzle/0288_attached_browser_reenrollment.sql +64 -0
  141. package/drizzle/0289_session_composer_policy_authority.sql +597 -0
  142. package/drizzle/0290_organization_membership_backfill.sql +268 -0
  143. package/drizzle/0291_resource_authority_classification_assertion.sql +371 -0
  144. package/drizzle/0292_truthful_tenancy_inventory_counters.sql +291 -0
  145. package/drizzle/0293_confirm_time_rule_rebaseline.sql +615 -0
  146. package/drizzle/0294_preference_activation_authority.sql +237 -0
  147. package/drizzle/0295_retire_legacy_standing_memory_mode.sql +476 -0
  148. package/drizzle/0296_force_rls_backfill_noop_repair.sql +215 -0
  149. package/drizzle/0297_session_ownership_classification_and_backfill.sql +752 -0
  150. package/drizzle/0298_organization_tenancy_parity.sql +609 -0
  151. package/drizzle/0299_organization_membership_lock_order.sql +291 -0
  152. package/drizzle/0300_tenancy_backfill_ledger.sql +459 -0
  153. package/drizzle/0301_session_snapshot_and_pin_visibility.sql +181 -0
  154. package/drizzle/0302_personal_workspace_session_ownership.sql +303 -0
  155. package/drizzle/0303_session_tenancy_product_activation.sql +919 -0
  156. package/drizzle/0304_personal_workspace_private_session_reads.sql +97 -0
  157. package/drizzle/0305_personal_resource_grant_management.sql +584 -0
  158. package/drizzle/0306_atomic_personal_resource_attachments.sql +1374 -0
  159. package/drizzle/0307_session_attention_state.sql +51 -0
  160. package/drizzle/0308_session_archives.sql +35 -0
  161. package/drizzle/0309_channel_project_pins.sql +6 -0
  162. package/drizzle/0310_channel_project_order.sql +27 -0
  163. package/drizzle/0311_company_scope_and_private_session_create.sql +656 -0
  164. package/drizzle/0312_quiescent_session_tree_deletion.sql +39 -0
  165. package/drizzle/0313_private_child_session_authority.sql +365 -0
  166. package/drizzle/0314_unregistered_organization_invitations.sql +606 -0
  167. package/drizzle/0315_personal_github_repository_selection.sql +624 -0
  168. package/drizzle/0316_human_confirmed_activation_resumed_generation.sql +869 -0
  169. package/drizzle/0317_session_goal_continuation_hold.sql +64 -0
  170. package/drizzle/0318_session_turn_startup_milestones.sql +115 -0
  171. package/drizzle/0319_event_triggered_automations.sql +254 -0
  172. package/drizzle/0320_pr_review_pack.sql +113 -0
  173. package/drizzle/0321_slack_bot_environment_display_name.sql +15 -0
  174. package/drizzle/0322_session_turns_unclaimed_prompt_trigger_index.sql +5 -0
  175. package/drizzle/0323_organization_private_session_enablement.sql +489 -0
  176. package/drizzle/0324_human_confirmed_company_profile_agent_admin.sql +856 -0
  177. package/drizzle/0325_child_lifecycle_notices.sql +44 -0
  178. package/drizzle/0326_interaction_operation_error_codes.sql +62 -0
  179. package/drizzle/0327_slack_first_task_hint.sql +29 -0
  180. package/drizzle/0328_session_background_commands.sql +590 -0
  181. package/drizzle/0329_slack_orchestration_delivery_events.sql +91 -0
  182. package/drizzle/0330_api_key_descriptions.sql +20 -0
  183. package/drizzle/0331_managed_organization_creation.sql +163 -0
  184. package/drizzle/0332_organization_shared_workspace_control_plane.sql +539 -0
  185. package/drizzle/0333_session_turn_prompt_routing.sql +45 -0
  186. package/drizzle/0334_connected_machine_workspace_root.sql +99 -0
  187. package/drizzle/0335_slack_workspace_routing.sql +460 -0
  188. package/drizzle/0336_atomic_session_fork_visibility.sql +667 -0
  189. package/drizzle/0337_slack_routed_action_handles.sql +189 -0
  190. package/drizzle/0338_atomic_connected_machine_attachments.sql +410 -0
  191. package/drizzle/0339_document_authority_reclassification.sql +1153 -0
  192. package/drizzle/0340_tenancy_backfill_activation_evidence.sql +1347 -0
  193. package/drizzle/0341_slack_routing_probe_organization_fence.sql +109 -0
  194. package/package.json +10 -6
  195. package/src/attached-browser-devices.ts +233 -5
  196. package/src/automations.ts +911 -0
  197. package/src/browser-sessions.ts +10 -0
  198. package/src/capability-integrations.ts +175 -1
  199. package/src/child-lifecycle-notices.ts +241 -0
  200. package/src/codemode-operations.ts +1 -35
  201. package/src/company-brain-context-selection-schema.ts +100 -0
  202. package/src/company-brain-context-selection.ts +359 -0
  203. package/src/company-brain-governed-writes.ts +1170 -0
  204. package/src/company-brain.ts +309 -0
  205. package/src/company-profile-agent-admin.ts +225 -0
  206. package/src/company-profile-schema.ts +121 -1
  207. package/src/company-profile.ts +21 -0
  208. package/src/computer-sessions.ts +10 -1
  209. package/src/connection-authority.ts +290 -0
  210. package/src/connection-scopes.ts +20 -0
  211. package/src/connection-tenancy-backfill.ts +81 -0
  212. package/src/connection-token-resolver.ts +263 -31
  213. package/src/database.ts +75 -2
  214. package/src/editable-artifact-durable-export.ts +27 -0
  215. package/src/editable-artifacts-schema.ts +10 -5
  216. package/src/editable-artifacts.ts +21 -11
  217. package/src/governed-learning-activation-schema.ts +121 -0
  218. package/src/governed-learning-activation.ts +588 -0
  219. package/src/governed-learning-evaluator-schema.ts +72 -0
  220. package/src/governed-learning-evaluator.ts +217 -0
  221. package/src/index.ts +12001 -1699
  222. package/src/insights.ts +107 -0
  223. package/src/integration-bindings.ts +88 -6
  224. package/src/integration-facets.ts +287 -84
  225. package/src/interaction-placement-loss.ts +234 -0
  226. package/src/knowledge-source-sync-schema.ts +83 -0
  227. package/src/knowledge-source-sync.ts +530 -0
  228. package/src/managed-human-provisioning.ts +116 -0
  229. package/src/memory-domain.ts +27 -32
  230. package/src/migrate.ts +77 -1
  231. package/src/new-session-drafts.ts +229 -35
  232. package/src/organization-membership-backfill.ts +735 -0
  233. package/src/organization-membership-lifecycle.ts +985 -0
  234. package/src/pr-review.ts +890 -0
  235. package/src/preference-registry.ts +31 -1
  236. package/src/provision-roles.ts +931 -24
  237. package/src/runtime-posture-cli.ts +2 -0
  238. package/src/runtime-posture.ts +1315 -52
  239. package/src/schema.ts +3336 -438
  240. package/src/scoped-knowledge-schema.ts +16 -8
  241. package/src/scoped-knowledge.ts +1 -1
  242. package/src/session-background-commands.ts +759 -0
  243. package/src/session-control.ts +640 -74
  244. package/src/session-goal-pacing.ts +126 -0
  245. package/src/session-queue-commands.ts +450 -98
  246. package/src/session-realtime-context.ts +19 -3
  247. package/src/session-realtime-ledger.ts +75 -12
  248. package/src/session-realtime-mirror.ts +1 -1
  249. package/src/session-tenancy.ts +403 -49
  250. package/src/session-tool-call-settlement.ts +38 -29
  251. package/src/slack-routing-personal-workspace.ts +67 -0
  252. package/src/slack-routing.ts +469 -0
  253. package/src/slack-task-policy-schema.ts +5 -0
  254. package/src/slack-task-policy.ts +18 -0
  255. package/src/slack-user-link-access.ts +17 -1
  256. package/src/task-notes-schema.ts +74 -0
  257. package/src/task-notes.ts +124 -2
  258. package/src/turn-initiator.ts +8 -0
  259. package/src/user-resource-authority.ts +377 -0
  260. package/src/workspace-authority.ts +160 -0
  261. package/src/workspace-instruction-policies-schema.ts +53 -1
  262. package/src/workspace-instruction-policies.ts +528 -77
  263. package/src/workspace-learning-policy.ts +21 -5
  264. package/src/workspace-membership-permissions.ts +9 -0
  265. package/dist/chunk-5KTIEDX7.js.map +0 -1
  266. package/dist/chunk-FPVAD4CO.js +0 -117
  267. package/dist/chunk-FPVAD4CO.js.map +0 -1
  268. package/dist/chunk-HSOWSYOX.js.map +0 -1
  269. package/dist/chunk-SK7YYHBI.js.map +0 -1
  270. package/dist/chunk-VKLB2ZGI.js +0 -2389
  271. package/dist/chunk-VKLB2ZGI.js.map +0 -1
  272. package/dist/chunk-Z7VYMNPZ.js.map +0 -1
  273. /package/dist/{chunk-GYO7ED2Q.js.map → chunk-EULAN2NP.js.map} +0 -0
  274. /package/dist/{chunk-VTPRIXKG.js.map → chunk-NJVZPWXY.js.map} +0 -0
@@ -732,7 +732,7 @@ export declare const companyProfileSnapshots: import("drizzle-orm/pg-core").PgTa
732
732
  activationVersion: number;
733
733
  activatedAt: string;
734
734
  provenance: {
735
- source: "durable_learning" | "human" | "migration";
735
+ source: "agent_admin" | "durable_learning" | "human" | "migration";
736
736
  sourceIdHash: string | null;
737
737
  };
738
738
  } | null;
@@ -754,7 +754,7 @@ export declare const companyProfileSnapshots: import("drizzle-orm/pg-core").PgTa
754
754
  activationVersion: number;
755
755
  activatedAt: string;
756
756
  provenance: {
757
- source: "durable_learning" | "human" | "migration";
757
+ source: "agent_admin" | "durable_learning" | "human" | "migration";
758
758
  sourceIdHash: string | null;
759
759
  };
760
760
  } | null;
@@ -796,3 +796,620 @@ export declare const companyProfileSnapshots: import("drizzle-orm/pg-core").PgTa
796
796
  };
797
797
  dialect: 'pg';
798
798
  }>;
799
+ export declare const companyProfileAgentProposalReceipts: import("drizzle-orm/pg-core").PgTableWithColumns<{
800
+ name: "company_profile_agent_proposal_receipts";
801
+ schema: undefined;
802
+ columns: {
803
+ id: import("drizzle-orm/pg-core").PgColumn<{
804
+ name: "id";
805
+ tableName: "company_profile_agent_proposal_receipts";
806
+ dataType: "string";
807
+ columnType: "PgUUID";
808
+ data: string;
809
+ driverParam: string;
810
+ notNull: true;
811
+ hasDefault: true;
812
+ isPrimaryKey: true;
813
+ isAutoincrement: false;
814
+ hasRuntimeDefault: false;
815
+ enumValues: undefined;
816
+ baseColumn: never;
817
+ identity: undefined;
818
+ generated: undefined;
819
+ }, {}, {}>;
820
+ operationId: import("drizzle-orm/pg-core").PgColumn<{
821
+ name: "operation_id";
822
+ tableName: "company_profile_agent_proposal_receipts";
823
+ dataType: "string";
824
+ columnType: "PgUUID";
825
+ data: string;
826
+ driverParam: string;
827
+ notNull: true;
828
+ hasDefault: false;
829
+ isPrimaryKey: false;
830
+ isAutoincrement: false;
831
+ hasRuntimeDefault: false;
832
+ enumValues: undefined;
833
+ baseColumn: never;
834
+ identity: undefined;
835
+ generated: undefined;
836
+ }, {}, {}>;
837
+ inputHash: import("drizzle-orm/pg-core").PgColumn<{
838
+ name: "input_hash";
839
+ tableName: "company_profile_agent_proposal_receipts";
840
+ dataType: "string";
841
+ columnType: "PgText";
842
+ data: string;
843
+ driverParam: string;
844
+ notNull: true;
845
+ hasDefault: false;
846
+ isPrimaryKey: false;
847
+ isAutoincrement: false;
848
+ hasRuntimeDefault: false;
849
+ enumValues: [string, ...string[]];
850
+ baseColumn: never;
851
+ identity: undefined;
852
+ generated: undefined;
853
+ }, {}, {}>;
854
+ accountId: import("drizzle-orm/pg-core").PgColumn<{
855
+ name: "account_id";
856
+ tableName: "company_profile_agent_proposal_receipts";
857
+ dataType: "string";
858
+ columnType: "PgUUID";
859
+ data: string;
860
+ driverParam: string;
861
+ notNull: true;
862
+ hasDefault: false;
863
+ isPrimaryKey: false;
864
+ isAutoincrement: false;
865
+ hasRuntimeDefault: false;
866
+ enumValues: undefined;
867
+ baseColumn: never;
868
+ identity: undefined;
869
+ generated: undefined;
870
+ }, {}, {}>;
871
+ workspaceId: import("drizzle-orm/pg-core").PgColumn<{
872
+ name: "workspace_id";
873
+ tableName: "company_profile_agent_proposal_receipts";
874
+ dataType: "string";
875
+ columnType: "PgUUID";
876
+ data: string;
877
+ driverParam: string;
878
+ notNull: true;
879
+ hasDefault: false;
880
+ isPrimaryKey: false;
881
+ isAutoincrement: false;
882
+ hasRuntimeDefault: false;
883
+ enumValues: undefined;
884
+ baseColumn: never;
885
+ identity: undefined;
886
+ generated: undefined;
887
+ }, {}, {}>;
888
+ sessionId: import("drizzle-orm/pg-core").PgColumn<{
889
+ name: "session_id";
890
+ tableName: "company_profile_agent_proposal_receipts";
891
+ dataType: "string";
892
+ columnType: "PgUUID";
893
+ data: string;
894
+ driverParam: string;
895
+ notNull: true;
896
+ hasDefault: false;
897
+ isPrimaryKey: false;
898
+ isAutoincrement: false;
899
+ hasRuntimeDefault: false;
900
+ enumValues: undefined;
901
+ baseColumn: never;
902
+ identity: undefined;
903
+ generated: undefined;
904
+ }, {}, {}>;
905
+ turnId: import("drizzle-orm/pg-core").PgColumn<{
906
+ name: "turn_id";
907
+ tableName: "company_profile_agent_proposal_receipts";
908
+ dataType: "string";
909
+ columnType: "PgUUID";
910
+ data: string;
911
+ driverParam: string;
912
+ notNull: true;
913
+ hasDefault: false;
914
+ isPrimaryKey: false;
915
+ isAutoincrement: false;
916
+ hasRuntimeDefault: false;
917
+ enumValues: undefined;
918
+ baseColumn: never;
919
+ identity: undefined;
920
+ generated: undefined;
921
+ }, {}, {}>;
922
+ creationAttemptId: import("drizzle-orm/pg-core").PgColumn<{
923
+ name: "creation_attempt_id";
924
+ tableName: "company_profile_agent_proposal_receipts";
925
+ dataType: "string";
926
+ columnType: "PgUUID";
927
+ data: string;
928
+ driverParam: string;
929
+ notNull: true;
930
+ hasDefault: false;
931
+ isPrimaryKey: false;
932
+ isAutoincrement: false;
933
+ hasRuntimeDefault: false;
934
+ enumValues: undefined;
935
+ baseColumn: never;
936
+ identity: undefined;
937
+ generated: undefined;
938
+ }, {}, {}>;
939
+ executionGeneration: import("drizzle-orm/pg-core").PgColumn<{
940
+ name: "execution_generation";
941
+ tableName: "company_profile_agent_proposal_receipts";
942
+ dataType: "number";
943
+ columnType: "PgInteger";
944
+ data: number;
945
+ driverParam: string | number;
946
+ notNull: true;
947
+ hasDefault: false;
948
+ isPrimaryKey: false;
949
+ isAutoincrement: false;
950
+ hasRuntimeDefault: false;
951
+ enumValues: undefined;
952
+ baseColumn: never;
953
+ identity: undefined;
954
+ generated: undefined;
955
+ }, {}, {}>;
956
+ initiatingHumanSubjectId: import("drizzle-orm/pg-core").PgColumn<{
957
+ name: "initiating_human_subject_id";
958
+ tableName: "company_profile_agent_proposal_receipts";
959
+ dataType: "string";
960
+ columnType: "PgText";
961
+ data: string;
962
+ driverParam: string;
963
+ notNull: true;
964
+ hasDefault: false;
965
+ isPrimaryKey: false;
966
+ isAutoincrement: false;
967
+ hasRuntimeDefault: false;
968
+ enumValues: [string, ...string[]];
969
+ baseColumn: never;
970
+ identity: undefined;
971
+ generated: undefined;
972
+ }, {}, {}>;
973
+ initiatingMembershipId: import("drizzle-orm/pg-core").PgColumn<{
974
+ name: "initiating_membership_id";
975
+ tableName: "company_profile_agent_proposal_receipts";
976
+ dataType: "string";
977
+ columnType: "PgUUID";
978
+ data: string;
979
+ driverParam: string;
980
+ notNull: true;
981
+ hasDefault: false;
982
+ isPrimaryKey: false;
983
+ isAutoincrement: false;
984
+ hasRuntimeDefault: false;
985
+ enumValues: undefined;
986
+ baseColumn: never;
987
+ identity: undefined;
988
+ generated: undefined;
989
+ }, {}, {}>;
990
+ revisionId: import("drizzle-orm/pg-core").PgColumn<{
991
+ name: "revision_id";
992
+ tableName: "company_profile_agent_proposal_receipts";
993
+ dataType: "string";
994
+ columnType: "PgUUID";
995
+ data: string;
996
+ driverParam: string;
997
+ notNull: true;
998
+ hasDefault: false;
999
+ isPrimaryKey: false;
1000
+ isAutoincrement: false;
1001
+ hasRuntimeDefault: false;
1002
+ enumValues: undefined;
1003
+ baseColumn: never;
1004
+ identity: undefined;
1005
+ generated: undefined;
1006
+ }, {}, {}>;
1007
+ expectedCurrentRevisionId: import("drizzle-orm/pg-core").PgColumn<{
1008
+ name: "expected_current_revision_id";
1009
+ tableName: "company_profile_agent_proposal_receipts";
1010
+ dataType: "string";
1011
+ columnType: "PgUUID";
1012
+ data: string;
1013
+ driverParam: string;
1014
+ notNull: false;
1015
+ hasDefault: false;
1016
+ isPrimaryKey: false;
1017
+ isAutoincrement: false;
1018
+ hasRuntimeDefault: false;
1019
+ enumValues: undefined;
1020
+ baseColumn: never;
1021
+ identity: undefined;
1022
+ generated: undefined;
1023
+ }, {}, {}>;
1024
+ expectedActivationVersion: import("drizzle-orm/pg-core").PgColumn<{
1025
+ name: "expected_activation_version";
1026
+ tableName: "company_profile_agent_proposal_receipts";
1027
+ dataType: "number";
1028
+ columnType: "PgBigInt53";
1029
+ data: number;
1030
+ driverParam: string | number;
1031
+ notNull: true;
1032
+ hasDefault: false;
1033
+ isPrimaryKey: false;
1034
+ isAutoincrement: false;
1035
+ hasRuntimeDefault: false;
1036
+ enumValues: undefined;
1037
+ baseColumn: never;
1038
+ identity: undefined;
1039
+ generated: undefined;
1040
+ }, {}, {}>;
1041
+ reason: import("drizzle-orm/pg-core").PgColumn<{
1042
+ name: "reason";
1043
+ tableName: "company_profile_agent_proposal_receipts";
1044
+ dataType: "string";
1045
+ columnType: "PgText";
1046
+ data: string;
1047
+ driverParam: string;
1048
+ notNull: true;
1049
+ hasDefault: false;
1050
+ isPrimaryKey: false;
1051
+ isAutoincrement: false;
1052
+ hasRuntimeDefault: false;
1053
+ enumValues: [string, ...string[]];
1054
+ baseColumn: never;
1055
+ identity: undefined;
1056
+ generated: undefined;
1057
+ }, {}, {}>;
1058
+ humanInput: import("drizzle-orm/pg-core").PgColumn<{
1059
+ name: "human_input";
1060
+ tableName: "company_profile_agent_proposal_receipts";
1061
+ dataType: "json";
1062
+ columnType: "PgJsonb";
1063
+ data: {
1064
+ questions: {
1065
+ id: string;
1066
+ kind: "multi_select" | "single_select" | "text";
1067
+ prompt: string;
1068
+ label?: string | null | undefined;
1069
+ helpText?: string | null | undefined;
1070
+ options: {
1071
+ id: string;
1072
+ label: string;
1073
+ description?: string | null | undefined;
1074
+ }[];
1075
+ required: boolean;
1076
+ allowOther: boolean;
1077
+ validation?: {
1078
+ minSelections?: number | null | undefined;
1079
+ maxSelections?: number | null | undefined;
1080
+ } | null | undefined;
1081
+ }[];
1082
+ allowSkip: false;
1083
+ };
1084
+ driverParam: unknown;
1085
+ notNull: true;
1086
+ hasDefault: false;
1087
+ isPrimaryKey: false;
1088
+ isAutoincrement: false;
1089
+ hasRuntimeDefault: false;
1090
+ enumValues: undefined;
1091
+ baseColumn: never;
1092
+ identity: undefined;
1093
+ generated: undefined;
1094
+ }, {}, {
1095
+ $type: {
1096
+ questions: {
1097
+ id: string;
1098
+ kind: "multi_select" | "single_select" | "text";
1099
+ prompt: string;
1100
+ label?: string | null | undefined;
1101
+ helpText?: string | null | undefined;
1102
+ options: {
1103
+ id: string;
1104
+ label: string;
1105
+ description?: string | null | undefined;
1106
+ }[];
1107
+ required: boolean;
1108
+ allowOther: boolean;
1109
+ validation?: {
1110
+ minSelections?: number | null | undefined;
1111
+ maxSelections?: number | null | undefined;
1112
+ } | null | undefined;
1113
+ }[];
1114
+ allowSkip: false;
1115
+ };
1116
+ }>;
1117
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
1118
+ name: "created_at";
1119
+ tableName: "company_profile_agent_proposal_receipts";
1120
+ dataType: "date";
1121
+ columnType: "PgTimestamp";
1122
+ data: Date;
1123
+ driverParam: string;
1124
+ notNull: true;
1125
+ hasDefault: true;
1126
+ isPrimaryKey: false;
1127
+ isAutoincrement: false;
1128
+ hasRuntimeDefault: false;
1129
+ enumValues: undefined;
1130
+ baseColumn: never;
1131
+ identity: undefined;
1132
+ generated: undefined;
1133
+ }, {}, {}>;
1134
+ };
1135
+ dialect: 'pg';
1136
+ }>;
1137
+ export declare const companyProfileAgentConfirmationReceipts: import("drizzle-orm/pg-core").PgTableWithColumns<{
1138
+ name: "company_profile_agent_confirmation_receipts";
1139
+ schema: undefined;
1140
+ columns: {
1141
+ id: import("drizzle-orm/pg-core").PgColumn<{
1142
+ name: "id";
1143
+ tableName: "company_profile_agent_confirmation_receipts";
1144
+ dataType: "string";
1145
+ columnType: "PgUUID";
1146
+ data: string;
1147
+ driverParam: string;
1148
+ notNull: true;
1149
+ hasDefault: true;
1150
+ isPrimaryKey: true;
1151
+ isAutoincrement: false;
1152
+ hasRuntimeDefault: false;
1153
+ enumValues: undefined;
1154
+ baseColumn: never;
1155
+ identity: undefined;
1156
+ generated: undefined;
1157
+ }, {}, {}>;
1158
+ operationId: import("drizzle-orm/pg-core").PgColumn<{
1159
+ name: "operation_id";
1160
+ tableName: "company_profile_agent_confirmation_receipts";
1161
+ dataType: "string";
1162
+ columnType: "PgUUID";
1163
+ data: string;
1164
+ driverParam: string;
1165
+ notNull: true;
1166
+ hasDefault: false;
1167
+ isPrimaryKey: false;
1168
+ isAutoincrement: false;
1169
+ hasRuntimeDefault: false;
1170
+ enumValues: undefined;
1171
+ baseColumn: never;
1172
+ identity: undefined;
1173
+ generated: undefined;
1174
+ }, {}, {}>;
1175
+ inputHash: import("drizzle-orm/pg-core").PgColumn<{
1176
+ name: "input_hash";
1177
+ tableName: "company_profile_agent_confirmation_receipts";
1178
+ dataType: "string";
1179
+ columnType: "PgText";
1180
+ data: string;
1181
+ driverParam: string;
1182
+ notNull: true;
1183
+ hasDefault: false;
1184
+ isPrimaryKey: false;
1185
+ isAutoincrement: false;
1186
+ hasRuntimeDefault: false;
1187
+ enumValues: [string, ...string[]];
1188
+ baseColumn: never;
1189
+ identity: undefined;
1190
+ generated: undefined;
1191
+ }, {}, {}>;
1192
+ accountId: import("drizzle-orm/pg-core").PgColumn<{
1193
+ name: "account_id";
1194
+ tableName: "company_profile_agent_confirmation_receipts";
1195
+ dataType: "string";
1196
+ columnType: "PgUUID";
1197
+ data: string;
1198
+ driverParam: string;
1199
+ notNull: true;
1200
+ hasDefault: false;
1201
+ isPrimaryKey: false;
1202
+ isAutoincrement: false;
1203
+ hasRuntimeDefault: false;
1204
+ enumValues: undefined;
1205
+ baseColumn: never;
1206
+ identity: undefined;
1207
+ generated: undefined;
1208
+ }, {}, {}>;
1209
+ workspaceId: import("drizzle-orm/pg-core").PgColumn<{
1210
+ name: "workspace_id";
1211
+ tableName: "company_profile_agent_confirmation_receipts";
1212
+ dataType: "string";
1213
+ columnType: "PgUUID";
1214
+ data: string;
1215
+ driverParam: string;
1216
+ notNull: true;
1217
+ hasDefault: false;
1218
+ isPrimaryKey: false;
1219
+ isAutoincrement: false;
1220
+ hasRuntimeDefault: false;
1221
+ enumValues: undefined;
1222
+ baseColumn: never;
1223
+ identity: undefined;
1224
+ generated: undefined;
1225
+ }, {}, {}>;
1226
+ sessionId: import("drizzle-orm/pg-core").PgColumn<{
1227
+ name: "session_id";
1228
+ tableName: "company_profile_agent_confirmation_receipts";
1229
+ dataType: "string";
1230
+ columnType: "PgUUID";
1231
+ data: string;
1232
+ driverParam: string;
1233
+ notNull: true;
1234
+ hasDefault: false;
1235
+ isPrimaryKey: false;
1236
+ isAutoincrement: false;
1237
+ hasRuntimeDefault: false;
1238
+ enumValues: undefined;
1239
+ baseColumn: never;
1240
+ identity: undefined;
1241
+ generated: undefined;
1242
+ }, {}, {}>;
1243
+ turnId: import("drizzle-orm/pg-core").PgColumn<{
1244
+ name: "turn_id";
1245
+ tableName: "company_profile_agent_confirmation_receipts";
1246
+ dataType: "string";
1247
+ columnType: "PgUUID";
1248
+ data: string;
1249
+ driverParam: string;
1250
+ notNull: true;
1251
+ hasDefault: false;
1252
+ isPrimaryKey: false;
1253
+ isAutoincrement: false;
1254
+ hasRuntimeDefault: false;
1255
+ enumValues: undefined;
1256
+ baseColumn: never;
1257
+ identity: undefined;
1258
+ generated: undefined;
1259
+ }, {}, {}>;
1260
+ confirmationAttemptId: import("drizzle-orm/pg-core").PgColumn<{
1261
+ name: "confirmation_attempt_id";
1262
+ tableName: "company_profile_agent_confirmation_receipts";
1263
+ dataType: "string";
1264
+ columnType: "PgUUID";
1265
+ data: string;
1266
+ driverParam: string;
1267
+ notNull: true;
1268
+ hasDefault: false;
1269
+ isPrimaryKey: false;
1270
+ isAutoincrement: false;
1271
+ hasRuntimeDefault: false;
1272
+ enumValues: undefined;
1273
+ baseColumn: never;
1274
+ identity: undefined;
1275
+ generated: undefined;
1276
+ }, {}, {}>;
1277
+ executionGeneration: import("drizzle-orm/pg-core").PgColumn<{
1278
+ name: "execution_generation";
1279
+ tableName: "company_profile_agent_confirmation_receipts";
1280
+ dataType: "number";
1281
+ columnType: "PgInteger";
1282
+ data: number;
1283
+ driverParam: string | number;
1284
+ notNull: true;
1285
+ hasDefault: false;
1286
+ isPrimaryKey: false;
1287
+ isAutoincrement: false;
1288
+ hasRuntimeDefault: false;
1289
+ enumValues: undefined;
1290
+ baseColumn: never;
1291
+ identity: undefined;
1292
+ generated: undefined;
1293
+ }, {}, {}>;
1294
+ proposalReceiptId: import("drizzle-orm/pg-core").PgColumn<{
1295
+ name: "proposal_receipt_id";
1296
+ tableName: "company_profile_agent_confirmation_receipts";
1297
+ dataType: "string";
1298
+ columnType: "PgUUID";
1299
+ data: string;
1300
+ driverParam: string;
1301
+ notNull: true;
1302
+ hasDefault: false;
1303
+ isPrimaryKey: false;
1304
+ isAutoincrement: false;
1305
+ hasRuntimeDefault: false;
1306
+ enumValues: undefined;
1307
+ baseColumn: never;
1308
+ identity: undefined;
1309
+ generated: undefined;
1310
+ }, {}, {}>;
1311
+ proposalRevisionId: import("drizzle-orm/pg-core").PgColumn<{
1312
+ name: "proposal_revision_id";
1313
+ tableName: "company_profile_agent_confirmation_receipts";
1314
+ dataType: "string";
1315
+ columnType: "PgUUID";
1316
+ data: string;
1317
+ driverParam: string;
1318
+ notNull: true;
1319
+ hasDefault: false;
1320
+ isPrimaryKey: false;
1321
+ isAutoincrement: false;
1322
+ hasRuntimeDefault: false;
1323
+ enumValues: undefined;
1324
+ baseColumn: never;
1325
+ identity: undefined;
1326
+ generated: undefined;
1327
+ }, {}, {}>;
1328
+ humanInputRequestId: import("drizzle-orm/pg-core").PgColumn<{
1329
+ name: "human_input_request_id";
1330
+ tableName: "company_profile_agent_confirmation_receipts";
1331
+ dataType: "string";
1332
+ columnType: "PgUUID";
1333
+ data: string;
1334
+ driverParam: string;
1335
+ notNull: true;
1336
+ hasDefault: false;
1337
+ isPrimaryKey: false;
1338
+ isAutoincrement: false;
1339
+ hasRuntimeDefault: false;
1340
+ enumValues: undefined;
1341
+ baseColumn: never;
1342
+ identity: undefined;
1343
+ generated: undefined;
1344
+ }, {}, {}>;
1345
+ approverSubjectId: import("drizzle-orm/pg-core").PgColumn<{
1346
+ name: "approver_subject_id";
1347
+ tableName: "company_profile_agent_confirmation_receipts";
1348
+ dataType: "string";
1349
+ columnType: "PgText";
1350
+ data: string;
1351
+ driverParam: string;
1352
+ notNull: true;
1353
+ hasDefault: false;
1354
+ isPrimaryKey: false;
1355
+ isAutoincrement: false;
1356
+ hasRuntimeDefault: false;
1357
+ enumValues: [string, ...string[]];
1358
+ baseColumn: never;
1359
+ identity: undefined;
1360
+ generated: undefined;
1361
+ }, {}, {}>;
1362
+ approverMembershipId: import("drizzle-orm/pg-core").PgColumn<{
1363
+ name: "approver_membership_id";
1364
+ tableName: "company_profile_agent_confirmation_receipts";
1365
+ dataType: "string";
1366
+ columnType: "PgUUID";
1367
+ data: string;
1368
+ driverParam: string;
1369
+ notNull: true;
1370
+ hasDefault: false;
1371
+ isPrimaryKey: false;
1372
+ isAutoincrement: false;
1373
+ hasRuntimeDefault: false;
1374
+ enumValues: undefined;
1375
+ baseColumn: never;
1376
+ identity: undefined;
1377
+ generated: undefined;
1378
+ }, {}, {}>;
1379
+ activationEventId: import("drizzle-orm/pg-core").PgColumn<{
1380
+ name: "activation_event_id";
1381
+ tableName: "company_profile_agent_confirmation_receipts";
1382
+ dataType: "string";
1383
+ columnType: "PgUUID";
1384
+ data: string;
1385
+ driverParam: string;
1386
+ notNull: true;
1387
+ hasDefault: false;
1388
+ isPrimaryKey: false;
1389
+ isAutoincrement: false;
1390
+ hasRuntimeDefault: false;
1391
+ enumValues: undefined;
1392
+ baseColumn: never;
1393
+ identity: undefined;
1394
+ generated: undefined;
1395
+ }, {}, {}>;
1396
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
1397
+ name: "created_at";
1398
+ tableName: "company_profile_agent_confirmation_receipts";
1399
+ dataType: "date";
1400
+ columnType: "PgTimestamp";
1401
+ data: Date;
1402
+ driverParam: string;
1403
+ notNull: true;
1404
+ hasDefault: true;
1405
+ isPrimaryKey: false;
1406
+ isAutoincrement: false;
1407
+ hasRuntimeDefault: false;
1408
+ enumValues: undefined;
1409
+ baseColumn: never;
1410
+ identity: undefined;
1411
+ generated: undefined;
1412
+ }, {}, {}>;
1413
+ };
1414
+ dialect: 'pg';
1415
+ }>;
@@ -1,4 +1,4 @@
1
- import { CompanyProfileLearningWrite, type CompanyProfileContent as CompanyProfileContentType, type CompanyProfileDiffResponse, type CompanyProfileHead, type CompanyProfileListResponse, type CompanyProfileMutationResponse, type CompanyProfilePrincipalKind, type CompanyProfileRevision } from "@opengeni/contracts";
1
+ import { CompanyProfileLearningWrite, type CompanyProfileActivationEvent, type CompanyProfileContent as CompanyProfileContentType, type CompanyProfileDiffResponse, type CompanyProfileHead, type CompanyProfileListResponse, type CompanyProfileMutationResponse, type CompanyProfilePrincipalKind, type CompanyProfileRevision } from "@opengeni/contracts";
2
2
  import type { Database } from "./database.js";
3
3
  export type CompanyProfileAttemptClaims = {
4
4
  accountId: string;
@@ -79,7 +79,7 @@ export declare function activateCompanyProfileRevision(db: Database, input: {
79
79
  }[];
80
80
  };
81
81
  provenance: {
82
- source: "durable_learning" | "human" | "migration";
82
+ source: "agent_admin" | "durable_learning" | "human" | "migration";
83
83
  sourceId: string | null;
84
84
  };
85
85
  supersedesRevisionId: string | null;
@@ -154,7 +154,7 @@ export declare function rollbackCompanyProfileRevision(db: Database, input: {
154
154
  }[];
155
155
  };
156
156
  provenance: {
157
- source: "durable_learning" | "human" | "migration";
157
+ source: "agent_admin" | "durable_learning" | "human" | "migration";
158
158
  sourceId: string | null;
159
159
  };
160
160
  supersedesRevisionId: string | null;
@@ -218,6 +218,11 @@ export declare function getCompanyProfileRevision(db: Database, input: {
218
218
  workspaceId: string;
219
219
  revisionId: string;
220
220
  }): Promise<CompanyProfileRevision>;
221
+ export declare function getCompanyProfileActivationEvent(db: Database, input: {
222
+ accountId: string;
223
+ workspaceId: string;
224
+ eventId: string;
225
+ }): Promise<CompanyProfileActivationEvent>;
221
226
  export declare function diffCompanyProfileRevisions(db: Database, input: {
222
227
  accountId: string;
223
228
  workspaceId: string;
@@ -241,7 +246,7 @@ export declare function getOrCreateCompanyProfileSnapshot(db: Database, claims:
241
246
  activationVersion: number;
242
247
  activatedAt: string;
243
248
  provenance: {
244
- source: "durable_learning" | "human" | "migration";
249
+ source: "agent_admin" | "durable_learning" | "human" | "migration";
245
250
  sourceIdHash: string | null;
246
251
  };
247
252
  profile: {