@opengeni/db 0.27.8 → 0.27.11
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/{chunk-M6EOXYHK.js → chunk-JYQPJ6Y5.js} +59 -50
- package/dist/chunk-JYQPJ6Y5.js.map +1 -0
- package/dist/{chunk-IHPCI4GV.js → chunk-RPHPNVWW.js} +3 -1
- package/dist/chunk-RPHPNVWW.js.map +1 -0
- package/dist/codex-token-resolver.d.ts +50 -8
- package/dist/connection-token-resolver.d.ts +45 -7
- package/dist/database.d.ts +137 -0
- package/dist/index.d.ts +83 -184
- package/dist/index.js +2983 -2691
- package/dist/index.js.map +1 -1
- package/dist/insights.d.ts +1 -1
- package/dist/memory-governance.d.ts +1 -1
- package/dist/new-session-drafts.d.ts +1 -1
- package/dist/preference-registry.d.ts +1 -1
- package/dist/provision-roles.d.ts +1 -1
- package/dist/provision-roles.js +1 -1
- package/dist/runtime-posture.d.ts +3 -3
- package/dist/schema.d.ts +155 -96
- package/dist/schema.js +3 -1
- package/dist/scoped-knowledge.d.ts +1 -1
- package/dist/session-control.d.ts +1 -1
- package/dist/session-queue-commands.d.ts +1 -1
- package/dist/session-realtime-context.d.ts +1 -1
- package/dist/session-realtime-ledger.d.ts +1 -1
- package/dist/session-realtime-mirror.d.ts +1 -1
- package/dist/session-realtime-state.d.ts +1 -1
- package/dist/session-realtime-terminal.d.ts +1 -1
- package/dist/session-realtime.d.ts +1 -1
- package/dist/session-tool-call-settlement.d.ts +1 -1
- package/dist/turn-initiator.d.ts +1 -1
- package/dist/workspace-artifacts.d.ts +1 -1
- package/dist/workspace-instruction-policies.d.ts +1 -1
- package/drizzle/0171_social_connection_subject_ownership.sql +53 -0
- package/drizzle/0172_retire_model_visible_github_token.sql +86 -0
- package/drizzle/0173_codex_auth_boundaries.sql +107 -0
- package/drizzle/0174_session_wake_live_interruption.sql +80 -0
- package/package.json +4 -4
- package/src/codex-token-resolver.ts +102 -49
- package/src/connection-token-resolver.ts +67 -26
- package/src/database.ts +393 -0
- package/src/index.ts +747 -645
- package/src/insights.ts +2 -2
- package/src/memory-governance.ts +2 -2
- package/src/new-session-drafts.ts +1 -1
- package/src/preference-registry.ts +2 -2
- package/src/provision-roles.ts +1 -1
- package/src/runtime-posture.ts +3 -1
- package/src/schema.ts +70 -50
- package/src/scoped-knowledge.ts +2 -2
- package/src/session-control.ts +1 -1
- package/src/session-queue-commands.ts +1 -1
- package/src/session-realtime-context.ts +1 -1
- package/src/session-realtime-ledger.ts +1 -1
- package/src/session-realtime-mirror.ts +1 -1
- package/src/session-realtime-state.ts +1 -1
- package/src/session-realtime-terminal.ts +1 -1
- package/src/session-realtime.ts +1 -1
- package/src/session-tool-call-settlement.ts +1 -1
- package/src/turn-initiator.ts +1 -1
- package/src/workspace-artifacts.ts +2 -2
- package/src/workspace-instruction-policies.ts +2 -2
- package/dist/chunk-IHPCI4GV.js.map +0 -1
- package/dist/chunk-M6EOXYHK.js.map +0 -1
package/dist/insights.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Database } from "./
|
|
1
|
+
import type { Database } from "./database";
|
|
2
2
|
import { type MemoryOperationPlanInput, type MemoryRevertPlanInput } from "./memory-domain";
|
|
3
3
|
export declare class MemoryGovernanceAuthorityError extends Error {
|
|
4
4
|
readonly name = "MemoryGovernanceAuthorityError";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { NewSessionDraftOptions, LatencyMode, ReasoningEffort, ResourceRef, ToolRef } from "@opengeni/contracts";
|
|
2
|
-
import type { Database } from "./
|
|
2
|
+
import type { Database } from "./database";
|
|
3
3
|
import * as schema from "./schema";
|
|
4
4
|
export type NewSessionDraftRow = typeof schema.newSessionDrafts.$inferSelect;
|
|
5
5
|
export declare class NewSessionDraftConflictError extends Error {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PreferenceRegistryDescriptor, type CreatePreferenceRegistryProposalRequest, type PreferenceRegistryConflictStrategy, type PreferenceRegistryScope, type PreferenceRegistryStatus } from "@opengeni/contracts";
|
|
2
|
-
import type { Database } from "./
|
|
2
|
+
import type { Database } from "./database";
|
|
3
3
|
export declare class PreferenceRegistryNotFoundError extends Error {
|
|
4
4
|
readonly name = "PreferenceRegistryNotFoundError";
|
|
5
5
|
}
|
package/dist/provision-roles.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { Database, RlsStrategy } from "./
|
|
1
|
+
import type { Database, RlsStrategy } from "./database";
|
|
2
2
|
/**
|
|
3
3
|
* The complete standalone tenant-table contract. Adding or removing a
|
|
4
4
|
* FORCE-RLS table is an architectural change: update this list in the same
|
|
5
5
|
* commit as the migration so startup cannot silently accept an unreviewed gap.
|
|
6
6
|
*/
|
|
7
|
-
export declare const FORCE_RLS_TABLES: readonly ["agent_run_states", "api_keys", "audit_events", "billing_customers", "capability_catalog_items", "capability_installations", "codex_capacity_waiters", "codex_credential_leases", "codex_reset_redemption_attempts", "codex_rotation_settings", "codex_subscription_credentials", "composer_drafts", "connection_disconnect_operations", "connections", "connector_action_policies", "connector_action_requests", "credit_ledger_entries", "device_enrollment_requests", "document_bases", "document_chunks", "documents", "enrollments", "file_uploads", "files", "github_installation_repositories", "github_installations", "host_export_config", "host_export_consumers", "host_export_cursor_state", "host_export_dead_letters", "host_export_outbox", "import_batches", "integration_oauth_state_nonces", "knowledge_change_proposals", "knowledge_claim_evidence", "knowledge_claim_relations", "knowledge_claim_reviews", "knowledge_claims", "knowledge_document_versions", "knowledge_entities", "knowledge_entity_aliases", "knowledge_facts", "knowledge_lifecycle_events", "knowledge_memories", "knowledge_memory_lifecycle_events", "knowledge_memory_relationships", "knowledge_operation_receipts", "knowledge_providers", "knowledge_source_acl_versions", "knowledge_source_objects", "knowledge_sources", "knowledge_sync_runs", "machine_metrics_latest", "machine_metrics_series", "model_call_facts", "new_session_drafts", "pack_installations", "preference_registry_events", "preference_registry_preferences", "preference_registry_revisions", "preference_registry_snapshots", "rig_changes", "rig_versions", "rigs", "sandbox_checkpoint_artifacts", "sandbox_lease_holders", "sandbox_leases", "sandbox_pty_sessions", "sandbox_retained_processes", "sandbox_session_envelopes", "sandbox_workspace_mutation_admissions", "sandboxes", "scheduled_task_runs", "scheduled_tasks", "session_attempt_interruptions", "session_command_receipts", "session_events", "session_goals", "session_history_items", "session_human_input_requests", "session_list_snapshots", "session_mcp_servers", "session_pending_tool_calls", "session_pins", "session_realtime_connections", "session_realtime_context_projections", "session_realtime_entries", "session_realtime_modes", "session_recordings", "session_spawn_denials", "session_stream_acknowledgments", "session_system_update_outbox", "session_system_updates", "session_turn_attempts", "session_turns", "session_workflow_wake_outbox", "sessions", "slack_bot_delete_operations", "slack_bot_post_operations", "slack_bot_user_links", "slack_interaction_inbox", "slack_interaction_progress_deliveries", "slack_interactions", "social_connections", "social_posts", "usage_events", "workspace_artifact_events", "workspace_artifact_versions", "workspace_artifacts", "workspace_captures", "workspace_control_events", "workspace_inference_controls", "workspace_instruction_policy_activation_events", "workspace_instruction_policy_heads", "workspace_instruction_policy_onboarding_proposals", "workspace_instruction_policy_revisions", "workspace_instruction_policy_snapshots", "workspace_model_policies", "workspace_packs", "workspace_session_activity_revisions", "workspace_variable_set_variables", "workspace_variable_sets"];
|
|
7
|
+
export declare const FORCE_RLS_TABLES: readonly ["agent_run_states", "api_keys", "audit_events", "billing_customers", "capability_catalog_items", "capability_installations", "codex_apps_settings", "codex_capacity_waiters", "codex_credential_leases", "codex_reset_redemption_attempts", "codex_rotation_settings", "codex_subscription_credentials", "composer_drafts", "connection_disconnect_operations", "connections", "connector_action_policies", "connector_action_requests", "credit_ledger_entries", "device_enrollment_requests", "document_bases", "document_chunks", "documents", "enrollments", "file_uploads", "files", "github_installation_repositories", "github_installations", "host_export_config", "host_export_consumers", "host_export_cursor_state", "host_export_dead_letters", "host_export_outbox", "import_batches", "integration_oauth_state_nonces", "knowledge_change_proposals", "knowledge_claim_evidence", "knowledge_claim_relations", "knowledge_claim_reviews", "knowledge_claims", "knowledge_document_versions", "knowledge_entities", "knowledge_entity_aliases", "knowledge_facts", "knowledge_lifecycle_events", "knowledge_memories", "knowledge_memory_lifecycle_events", "knowledge_memory_relationships", "knowledge_operation_receipts", "knowledge_providers", "knowledge_source_acl_versions", "knowledge_source_objects", "knowledge_sources", "knowledge_sync_runs", "machine_metrics_latest", "machine_metrics_series", "model_call_facts", "new_session_drafts", "pack_installations", "preference_registry_events", "preference_registry_preferences", "preference_registry_revisions", "preference_registry_snapshots", "rig_changes", "rig_versions", "rigs", "sandbox_checkpoint_artifacts", "sandbox_lease_holders", "sandbox_leases", "sandbox_pty_sessions", "sandbox_retained_processes", "sandbox_session_envelopes", "sandbox_workspace_mutation_admissions", "sandboxes", "scheduled_task_runs", "scheduled_tasks", "session_attempt_interruptions", "session_command_receipts", "session_events", "session_goals", "session_history_items", "session_human_input_requests", "session_list_snapshots", "session_mcp_servers", "session_pending_tool_calls", "session_pins", "session_realtime_connections", "session_realtime_context_projections", "session_realtime_entries", "session_realtime_modes", "session_recordings", "session_spawn_denials", "session_stream_acknowledgments", "session_system_update_outbox", "session_system_updates", "session_turn_attempts", "session_turns", "session_workflow_wake_outbox", "sessions", "slack_bot_delete_operations", "slack_bot_post_operations", "slack_bot_user_links", "slack_interaction_inbox", "slack_interaction_progress_deliveries", "slack_interactions", "social_connections", "social_posts", "usage_events", "workspace_artifact_events", "workspace_artifact_versions", "workspace_artifacts", "workspace_captures", "workspace_control_events", "workspace_inference_controls", "workspace_instruction_policy_activation_events", "workspace_instruction_policy_heads", "workspace_instruction_policy_onboarding_proposals", "workspace_instruction_policy_revisions", "workspace_instruction_policy_snapshots", "workspace_model_policies", "workspace_packs", "workspace_session_activity_revisions", "workspace_variable_set_variables", "workspace_variable_sets"];
|
|
8
8
|
/**
|
|
9
9
|
* Deployment-global and authentication tables used by ordinary API/worker
|
|
10
10
|
* traffic. They intentionally do not carry workspace RLS: their access model
|
|
@@ -16,7 +16,7 @@ export declare const NON_RLS_RUNTIME_TABLES: readonly ["auth_identities", "auth_
|
|
|
16
16
|
* explicit instead of being derived from FORCE_RLS_TABLES: adding a protected
|
|
17
17
|
* table must not silently grant it broader DML than its migration intended.
|
|
18
18
|
*/
|
|
19
|
-
export declare const RUNTIME_FULL_DML_TABLES: readonly ["agent_run_states", "api_keys", "audit_events", "auth_identities", "auth_rate_limits", "auth_sessions", "auth_users", "auth_verifications", "billing_customers", "capability_catalog_items", "capability_installations", "codex_capacity_waiters", "codex_credential_leases", "codex_reset_redemption_attempts", "codex_rotation_settings", "codex_subscription_credentials", "composer_drafts", "connection_disconnect_operations", "connections", "connector_action_policies", "connector_action_requests", "credit_ledger_entries", "device_enrollment_requests", "document_bases", "document_chunks", "documents", "enrollments", "file_uploads", "files", "github_installation_repositories", "github_installations", "import_batches", "integration_oauth_clients", "integration_oauth_state_nonces", "knowledge_memories", "machine_metrics_latest", "machine_metrics_series", "managed_accounts", "model_call_facts", "new_session_drafts", "pack_installations", "rig_changes", "rig_versions", "rigs", "sandbox_checkpoint_artifacts", "sandbox_lease_holders", "sandbox_leases", "sandbox_pty_sessions", "sandbox_retained_processes", "sandbox_session_envelopes", "sandbox_workspace_mutation_admissions", "sandboxes", "scheduled_task_runs", "scheduled_tasks", "session_attempt_interruptions", "session_command_receipts", "session_events", "session_goals", "session_history_items", "session_human_input_requests", "session_list_snapshots", "session_mcp_servers", "session_pending_tool_calls", "session_pins", "session_realtime_connections", "session_realtime_context_projections", "session_realtime_entries", "session_realtime_modes", "session_recordings", "session_stream_acknowledgments", "session_system_update_outbox", "session_system_updates", "session_turn_attempts", "session_turns", "session_workflow_wake_outbox", "sessions", "slack_bot_delete_operations", "slack_bot_post_operations", "slack_bot_user_links", "slack_interaction_inbox", "slack_interaction_progress_deliveries", "slack_interactions", "social_connections", "social_posts", "stripe_webhook_events", "usage_events", "workspace_artifacts", "workspace_captures", "workspace_control_events", "workspace_inference_controls", "workspace_instruction_policy_heads", "workspace_memberships", "workspace_model_policies", "workspace_packs", "workspace_session_activity_revisions", "workspace_variable_set_variables", "workspace_variable_sets", "workspaces"];
|
|
19
|
+
export declare const RUNTIME_FULL_DML_TABLES: readonly ["agent_run_states", "api_keys", "audit_events", "auth_identities", "auth_rate_limits", "auth_sessions", "auth_users", "auth_verifications", "billing_customers", "capability_catalog_items", "capability_installations", "codex_apps_settings", "codex_capacity_waiters", "codex_credential_leases", "codex_reset_redemption_attempts", "codex_rotation_settings", "codex_subscription_credentials", "composer_drafts", "connection_disconnect_operations", "connections", "connector_action_policies", "connector_action_requests", "credit_ledger_entries", "device_enrollment_requests", "document_bases", "document_chunks", "documents", "enrollments", "file_uploads", "files", "github_installation_repositories", "github_installations", "import_batches", "integration_oauth_clients", "integration_oauth_state_nonces", "knowledge_memories", "machine_metrics_latest", "machine_metrics_series", "managed_accounts", "model_call_facts", "new_session_drafts", "pack_installations", "rig_changes", "rig_versions", "rigs", "sandbox_checkpoint_artifacts", "sandbox_lease_holders", "sandbox_leases", "sandbox_pty_sessions", "sandbox_retained_processes", "sandbox_session_envelopes", "sandbox_workspace_mutation_admissions", "sandboxes", "scheduled_task_runs", "scheduled_tasks", "session_attempt_interruptions", "session_command_receipts", "session_events", "session_goals", "session_history_items", "session_human_input_requests", "session_list_snapshots", "session_mcp_servers", "session_pending_tool_calls", "session_pins", "session_realtime_connections", "session_realtime_context_projections", "session_realtime_entries", "session_realtime_modes", "session_recordings", "session_stream_acknowledgments", "session_system_update_outbox", "session_system_updates", "session_turn_attempts", "session_turns", "session_workflow_wake_outbox", "sessions", "slack_bot_delete_operations", "slack_bot_post_operations", "slack_bot_user_links", "slack_interaction_inbox", "slack_interaction_progress_deliveries", "slack_interactions", "social_connections", "social_posts", "stripe_webhook_events", "usage_events", "workspace_artifacts", "workspace_captures", "workspace_control_events", "workspace_inference_controls", "workspace_instruction_policy_heads", "workspace_memberships", "workspace_model_policies", "workspace_packs", "workspace_session_activity_revisions", "workspace_variable_set_variables", "workspace_variable_sets", "workspaces"];
|
|
20
20
|
/** Configuration and lifecycle-owned audit rows are read-only at runtime. */
|
|
21
21
|
export declare const RUNTIME_READ_ONLY_TABLES: readonly ["knowledge_lifecycle_events", "knowledge_memory_lifecycle_events", "knowledge_memory_relationships", "nested_agent_depth_configuration", "preference_registry_events", "preference_registry_snapshots", "workspace_instruction_policy_snapshots"];
|
|
22
22
|
/** Append-only evidence/revision tables are insertable and queryable, never mutable. */
|
package/dist/schema.d.ts
CHANGED
|
@@ -2422,66 +2422,6 @@ export declare const codexSubscriptionCredentials: import("drizzle-orm/pg-core")
|
|
|
2422
2422
|
identity: undefined;
|
|
2423
2423
|
generated: undefined;
|
|
2424
2424
|
}, {}, {}>;
|
|
2425
|
-
connectorNamespaces: import("drizzle-orm/pg-core").PgColumn<{
|
|
2426
|
-
name: "connector_namespaces";
|
|
2427
|
-
tableName: "codex_subscription_credentials";
|
|
2428
|
-
dataType: "array";
|
|
2429
|
-
columnType: "PgArray";
|
|
2430
|
-
data: string[];
|
|
2431
|
-
driverParam: string | string[];
|
|
2432
|
-
notNull: false;
|
|
2433
|
-
hasDefault: false;
|
|
2434
|
-
isPrimaryKey: false;
|
|
2435
|
-
isAutoincrement: false;
|
|
2436
|
-
hasRuntimeDefault: false;
|
|
2437
|
-
enumValues: [string, ...string[]];
|
|
2438
|
-
baseColumn: import("drizzle-orm").Column<{
|
|
2439
|
-
name: "connector_namespaces";
|
|
2440
|
-
tableName: "codex_subscription_credentials";
|
|
2441
|
-
dataType: "string";
|
|
2442
|
-
columnType: "PgText";
|
|
2443
|
-
data: string;
|
|
2444
|
-
driverParam: string;
|
|
2445
|
-
notNull: false;
|
|
2446
|
-
hasDefault: false;
|
|
2447
|
-
isPrimaryKey: false;
|
|
2448
|
-
isAutoincrement: false;
|
|
2449
|
-
hasRuntimeDefault: false;
|
|
2450
|
-
enumValues: [string, ...string[]];
|
|
2451
|
-
baseColumn: never;
|
|
2452
|
-
identity: undefined;
|
|
2453
|
-
generated: undefined;
|
|
2454
|
-
}, {}, {}>;
|
|
2455
|
-
identity: undefined;
|
|
2456
|
-
generated: undefined;
|
|
2457
|
-
}, {}, {
|
|
2458
|
-
baseBuilder: import("drizzle-orm/pg-core").PgColumnBuilder<{
|
|
2459
|
-
name: "connector_namespaces";
|
|
2460
|
-
dataType: 'string';
|
|
2461
|
-
columnType: 'PgText';
|
|
2462
|
-
data: string;
|
|
2463
|
-
enumValues: [string, ...string[]];
|
|
2464
|
-
driverParam: string;
|
|
2465
|
-
}, {}, {}, import("drizzle-orm").ColumnBuilderExtraConfig>;
|
|
2466
|
-
size: undefined;
|
|
2467
|
-
}>;
|
|
2468
|
-
connectorsCheckedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
2469
|
-
name: "connectors_checked_at";
|
|
2470
|
-
tableName: "codex_subscription_credentials";
|
|
2471
|
-
dataType: "date";
|
|
2472
|
-
columnType: "PgTimestamp";
|
|
2473
|
-
data: Date;
|
|
2474
|
-
driverParam: string;
|
|
2475
|
-
notNull: false;
|
|
2476
|
-
hasDefault: false;
|
|
2477
|
-
isPrimaryKey: false;
|
|
2478
|
-
isAutoincrement: false;
|
|
2479
|
-
hasRuntimeDefault: false;
|
|
2480
|
-
enumValues: undefined;
|
|
2481
|
-
baseColumn: never;
|
|
2482
|
-
identity: undefined;
|
|
2483
|
-
generated: undefined;
|
|
2484
|
-
}, {}, {}>;
|
|
2485
2425
|
allocatorEnabled: import("drizzle-orm/pg-core").PgColumn<{
|
|
2486
2426
|
name: "allocator_enabled";
|
|
2487
2427
|
tableName: "codex_subscription_credentials";
|
|
@@ -2672,6 +2612,132 @@ export declare const codexSubscriptionCredentials: import("drizzle-orm/pg-core")
|
|
|
2672
2612
|
};
|
|
2673
2613
|
dialect: 'pg';
|
|
2674
2614
|
}>;
|
|
2615
|
+
export declare const codexAppsSettings: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
2616
|
+
name: "codex_apps_settings";
|
|
2617
|
+
schema: undefined;
|
|
2618
|
+
columns: {
|
|
2619
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
2620
|
+
name: "id";
|
|
2621
|
+
tableName: "codex_apps_settings";
|
|
2622
|
+
dataType: "string";
|
|
2623
|
+
columnType: "PgUUID";
|
|
2624
|
+
data: string;
|
|
2625
|
+
driverParam: string;
|
|
2626
|
+
notNull: true;
|
|
2627
|
+
hasDefault: true;
|
|
2628
|
+
isPrimaryKey: true;
|
|
2629
|
+
isAutoincrement: false;
|
|
2630
|
+
hasRuntimeDefault: false;
|
|
2631
|
+
enumValues: undefined;
|
|
2632
|
+
baseColumn: never;
|
|
2633
|
+
identity: undefined;
|
|
2634
|
+
generated: undefined;
|
|
2635
|
+
}, {}, {}>;
|
|
2636
|
+
accountId: import("drizzle-orm/pg-core").PgColumn<{
|
|
2637
|
+
name: "account_id";
|
|
2638
|
+
tableName: "codex_apps_settings";
|
|
2639
|
+
dataType: "string";
|
|
2640
|
+
columnType: "PgUUID";
|
|
2641
|
+
data: string;
|
|
2642
|
+
driverParam: string;
|
|
2643
|
+
notNull: true;
|
|
2644
|
+
hasDefault: false;
|
|
2645
|
+
isPrimaryKey: false;
|
|
2646
|
+
isAutoincrement: false;
|
|
2647
|
+
hasRuntimeDefault: false;
|
|
2648
|
+
enumValues: undefined;
|
|
2649
|
+
baseColumn: never;
|
|
2650
|
+
identity: undefined;
|
|
2651
|
+
generated: undefined;
|
|
2652
|
+
}, {}, {}>;
|
|
2653
|
+
workspaceId: import("drizzle-orm/pg-core").PgColumn<{
|
|
2654
|
+
name: "workspace_id";
|
|
2655
|
+
tableName: "codex_apps_settings";
|
|
2656
|
+
dataType: "string";
|
|
2657
|
+
columnType: "PgUUID";
|
|
2658
|
+
data: string;
|
|
2659
|
+
driverParam: string;
|
|
2660
|
+
notNull: true;
|
|
2661
|
+
hasDefault: false;
|
|
2662
|
+
isPrimaryKey: false;
|
|
2663
|
+
isAutoincrement: false;
|
|
2664
|
+
hasRuntimeDefault: false;
|
|
2665
|
+
enumValues: undefined;
|
|
2666
|
+
baseColumn: never;
|
|
2667
|
+
identity: undefined;
|
|
2668
|
+
generated: undefined;
|
|
2669
|
+
}, {}, {}>;
|
|
2670
|
+
credentialId: import("drizzle-orm/pg-core").PgColumn<{
|
|
2671
|
+
name: "credential_id";
|
|
2672
|
+
tableName: "codex_apps_settings";
|
|
2673
|
+
dataType: "string";
|
|
2674
|
+
columnType: "PgUUID";
|
|
2675
|
+
data: string;
|
|
2676
|
+
driverParam: string;
|
|
2677
|
+
notNull: false;
|
|
2678
|
+
hasDefault: false;
|
|
2679
|
+
isPrimaryKey: false;
|
|
2680
|
+
isAutoincrement: false;
|
|
2681
|
+
hasRuntimeDefault: false;
|
|
2682
|
+
enumValues: undefined;
|
|
2683
|
+
baseColumn: never;
|
|
2684
|
+
identity: undefined;
|
|
2685
|
+
generated: undefined;
|
|
2686
|
+
}, {}, {}>;
|
|
2687
|
+
version: import("drizzle-orm/pg-core").PgColumn<{
|
|
2688
|
+
name: "version";
|
|
2689
|
+
tableName: "codex_apps_settings";
|
|
2690
|
+
dataType: "number";
|
|
2691
|
+
columnType: "PgInteger";
|
|
2692
|
+
data: number;
|
|
2693
|
+
driverParam: string | number;
|
|
2694
|
+
notNull: true;
|
|
2695
|
+
hasDefault: true;
|
|
2696
|
+
isPrimaryKey: false;
|
|
2697
|
+
isAutoincrement: false;
|
|
2698
|
+
hasRuntimeDefault: false;
|
|
2699
|
+
enumValues: undefined;
|
|
2700
|
+
baseColumn: never;
|
|
2701
|
+
identity: undefined;
|
|
2702
|
+
generated: undefined;
|
|
2703
|
+
}, {}, {}>;
|
|
2704
|
+
designatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
2705
|
+
name: "designated_at";
|
|
2706
|
+
tableName: "codex_apps_settings";
|
|
2707
|
+
dataType: "date";
|
|
2708
|
+
columnType: "PgTimestamp";
|
|
2709
|
+
data: Date;
|
|
2710
|
+
driverParam: string;
|
|
2711
|
+
notNull: false;
|
|
2712
|
+
hasDefault: false;
|
|
2713
|
+
isPrimaryKey: false;
|
|
2714
|
+
isAutoincrement: false;
|
|
2715
|
+
hasRuntimeDefault: false;
|
|
2716
|
+
enumValues: undefined;
|
|
2717
|
+
baseColumn: never;
|
|
2718
|
+
identity: undefined;
|
|
2719
|
+
generated: undefined;
|
|
2720
|
+
}, {}, {}>;
|
|
2721
|
+
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
2722
|
+
name: "updated_at";
|
|
2723
|
+
tableName: "codex_apps_settings";
|
|
2724
|
+
dataType: "date";
|
|
2725
|
+
columnType: "PgTimestamp";
|
|
2726
|
+
data: Date;
|
|
2727
|
+
driverParam: string;
|
|
2728
|
+
notNull: true;
|
|
2729
|
+
hasDefault: true;
|
|
2730
|
+
isPrimaryKey: false;
|
|
2731
|
+
isAutoincrement: false;
|
|
2732
|
+
hasRuntimeDefault: false;
|
|
2733
|
+
enumValues: undefined;
|
|
2734
|
+
baseColumn: never;
|
|
2735
|
+
identity: undefined;
|
|
2736
|
+
generated: undefined;
|
|
2737
|
+
}, {}, {}>;
|
|
2738
|
+
};
|
|
2739
|
+
dialect: 'pg';
|
|
2740
|
+
}>;
|
|
2675
2741
|
export declare const codexResetRedemptionAttempts: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
2676
2742
|
name: "codex_reset_redemption_attempts";
|
|
2677
2743
|
schema: undefined;
|
|
@@ -6905,7 +6971,7 @@ export declare const sessions: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
6905
6971
|
tableName: "sessions";
|
|
6906
6972
|
dataType: "json";
|
|
6907
6973
|
columnType: "PgJsonb";
|
|
6908
|
-
data: ("artifacts_create" | "artifacts_get_source" | "artifacts_list" | "artifacts_publish" | "artifacts_rollback" | "environment_list" | "environment_set_variable" | "github_connect_link" | "github_repositories_list" | "
|
|
6974
|
+
data: ("artifacts_create" | "artifacts_get_source" | "artifacts_list" | "artifacts_publish" | "artifacts_rollback" | "environment_list" | "environment_set_variable" | "github_connect_link" | "github_repositories_list" | "goal_complete" | "goal_pause" | "goal_set" | "goal_update" | "memory_correct" | "memory_save" | "memory_search" | "preference_registry_get" | "preference_registry_summary" | "rig_get" | "rig_list" | "rig_promote" | "rig_propose_change" | "rig_verify" | "run_on" | "sandbox_attach" | "sandbox_provision" | "sandbox_swap" | "sandboxes_list" | "scheduled_task_runs_list" | "scheduled_tasks_create" | "scheduled_tasks_delete" | "scheduled_tasks_get" | "scheduled_tasks_list" | "scheduled_tasks_pause" | "scheduled_tasks_resume" | "scheduled_tasks_trigger" | "scheduled_tasks_update" | "session_create" | "session_events" | "session_get" | "session_pause" | "session_resume" | "session_send_message" | "session_steer" | "sessions_list" | "set_other_session_title" | "set_session_title" | "slack_bot_channel_history" | "slack_bot_delete_message" | "slack_bot_file_content" | "slack_bot_file_info" | "slack_bot_list_channels" | "slack_bot_list_files" | "slack_bot_list_users" | "slack_bot_post_message" | "slack_bot_thread_replies" | "social_connections_list" | "social_daily_analysis_context" | "social_mentions_live" | "social_post_reply" | "social_posts_recent" | "social_posts_sync" | "social_search_live" | "social_thread_fetch" | "variable_set_list" | "variable_set_set_variable")[];
|
|
6909
6975
|
driverParam: unknown;
|
|
6910
6976
|
notNull: true;
|
|
6911
6977
|
hasDefault: false;
|
|
@@ -6917,7 +6983,7 @@ export declare const sessions: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
6917
6983
|
identity: undefined;
|
|
6918
6984
|
generated: undefined;
|
|
6919
6985
|
}, {}, {
|
|
6920
|
-
$type: ("artifacts_create" | "artifacts_get_source" | "artifacts_list" | "artifacts_publish" | "artifacts_rollback" | "environment_list" | "environment_set_variable" | "github_connect_link" | "github_repositories_list" | "
|
|
6986
|
+
$type: ("artifacts_create" | "artifacts_get_source" | "artifacts_list" | "artifacts_publish" | "artifacts_rollback" | "environment_list" | "environment_set_variable" | "github_connect_link" | "github_repositories_list" | "goal_complete" | "goal_pause" | "goal_set" | "goal_update" | "memory_correct" | "memory_save" | "memory_search" | "preference_registry_get" | "preference_registry_summary" | "rig_get" | "rig_list" | "rig_promote" | "rig_propose_change" | "rig_verify" | "run_on" | "sandbox_attach" | "sandbox_provision" | "sandbox_swap" | "sandboxes_list" | "scheduled_task_runs_list" | "scheduled_tasks_create" | "scheduled_tasks_delete" | "scheduled_tasks_get" | "scheduled_tasks_list" | "scheduled_tasks_pause" | "scheduled_tasks_resume" | "scheduled_tasks_trigger" | "scheduled_tasks_update" | "session_create" | "session_events" | "session_get" | "session_pause" | "session_resume" | "session_send_message" | "session_steer" | "sessions_list" | "set_other_session_title" | "set_session_title" | "slack_bot_channel_history" | "slack_bot_delete_message" | "slack_bot_file_content" | "slack_bot_file_info" | "slack_bot_list_channels" | "slack_bot_list_files" | "slack_bot_list_users" | "slack_bot_post_message" | "slack_bot_thread_replies" | "social_connections_list" | "social_daily_analysis_context" | "social_mentions_live" | "social_post_reply" | "social_posts_recent" | "social_posts_sync" | "social_search_live" | "social_thread_fetch" | "variable_set_list" | "variable_set_set_variable")[];
|
|
6921
6987
|
}>;
|
|
6922
6988
|
initialPersonalConnectionDelegations: import("drizzle-orm/pg-core").PgColumn<{
|
|
6923
6989
|
name: "initial_personal_connection_delegations";
|
|
@@ -6930,6 +6996,7 @@ export declare const sessions: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
6930
6996
|
ownerSubjectId: string;
|
|
6931
6997
|
providerDomain: string;
|
|
6932
6998
|
kind?: "api_key" | "app_install" | "delegated" | "oauth2" | undefined;
|
|
6999
|
+
connectionType?: "mcp" | "social" | undefined;
|
|
6933
7000
|
}[];
|
|
6934
7001
|
driverParam: unknown;
|
|
6935
7002
|
notNull: true;
|
|
@@ -6948,6 +7015,7 @@ export declare const sessions: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
6948
7015
|
ownerSubjectId: string;
|
|
6949
7016
|
providerDomain: string;
|
|
6950
7017
|
kind?: "api_key" | "app_install" | "delegated" | "oauth2" | undefined;
|
|
7018
|
+
connectionType?: "mcp" | "social" | undefined;
|
|
6951
7019
|
}[];
|
|
6952
7020
|
}>;
|
|
6953
7021
|
toolPolicy: import("drizzle-orm/pg-core").PgColumn<{
|
|
@@ -11958,6 +12026,7 @@ export declare const sessionTurns: import("drizzle-orm/pg-core").PgTableWithColu
|
|
|
11958
12026
|
ownerSubjectId: string;
|
|
11959
12027
|
providerDomain: string;
|
|
11960
12028
|
kind?: "api_key" | "app_install" | "delegated" | "oauth2" | undefined;
|
|
12029
|
+
connectionType?: "mcp" | "social" | undefined;
|
|
11961
12030
|
}[];
|
|
11962
12031
|
driverParam: unknown;
|
|
11963
12032
|
notNull: true;
|
|
@@ -11976,6 +12045,7 @@ export declare const sessionTurns: import("drizzle-orm/pg-core").PgTableWithColu
|
|
|
11976
12045
|
ownerSubjectId: string;
|
|
11977
12046
|
providerDomain: string;
|
|
11978
12047
|
kind?: "api_key" | "app_install" | "delegated" | "oauth2" | undefined;
|
|
12048
|
+
connectionType?: "mcp" | "social" | undefined;
|
|
11979
12049
|
}[];
|
|
11980
12050
|
}>;
|
|
11981
12051
|
cancelledBy: import("drizzle-orm/pg-core").PgColumn<{
|
|
@@ -14751,6 +14821,7 @@ export declare const sessionSystemUpdates: import("drizzle-orm/pg-core").PgTable
|
|
|
14751
14821
|
ownerSubjectId: string;
|
|
14752
14822
|
providerDomain: string;
|
|
14753
14823
|
kind?: "api_key" | "app_install" | "delegated" | "oauth2" | undefined;
|
|
14824
|
+
connectionType?: "mcp" | "social" | undefined;
|
|
14754
14825
|
}[];
|
|
14755
14826
|
driverParam: unknown;
|
|
14756
14827
|
notNull: true;
|
|
@@ -14769,6 +14840,7 @@ export declare const sessionSystemUpdates: import("drizzle-orm/pg-core").PgTable
|
|
|
14769
14840
|
ownerSubjectId: string;
|
|
14770
14841
|
providerDomain: string;
|
|
14771
14842
|
kind?: "api_key" | "app_install" | "delegated" | "oauth2" | undefined;
|
|
14843
|
+
connectionType?: "mcp" | "social" | undefined;
|
|
14772
14844
|
}[];
|
|
14773
14845
|
}>;
|
|
14774
14846
|
state: import("drizzle-orm/pg-core").PgColumn<{
|
|
@@ -15088,6 +15160,7 @@ export declare const sessionSystemUpdateOutbox: import("drizzle-orm/pg-core").Pg
|
|
|
15088
15160
|
ownerSubjectId: string;
|
|
15089
15161
|
providerDomain: string;
|
|
15090
15162
|
kind?: "api_key" | "app_install" | "delegated" | "oauth2" | undefined;
|
|
15163
|
+
connectionType?: "mcp" | "social" | undefined;
|
|
15091
15164
|
}[];
|
|
15092
15165
|
driverParam: unknown;
|
|
15093
15166
|
notNull: true;
|
|
@@ -15106,6 +15179,7 @@ export declare const sessionSystemUpdateOutbox: import("drizzle-orm/pg-core").Pg
|
|
|
15106
15179
|
ownerSubjectId: string;
|
|
15107
15180
|
providerDomain: string;
|
|
15108
15181
|
kind?: "api_key" | "app_install" | "delegated" | "oauth2" | undefined;
|
|
15182
|
+
connectionType?: "mcp" | "social" | undefined;
|
|
15109
15183
|
}[];
|
|
15110
15184
|
}>;
|
|
15111
15185
|
status: import("drizzle-orm/pg-core").PgColumn<{
|
|
@@ -16685,23 +16759,6 @@ export declare const agentRunStates: import("drizzle-orm/pg-core").PgTableWithCo
|
|
|
16685
16759
|
}, {}, {
|
|
16686
16760
|
$type: unknown[];
|
|
16687
16761
|
}>;
|
|
16688
|
-
frozenCodexCredentialId: import("drizzle-orm/pg-core").PgColumn<{
|
|
16689
|
-
name: "frozen_codex_credential_id";
|
|
16690
|
-
tableName: "agent_run_states";
|
|
16691
|
-
dataType: "string";
|
|
16692
|
-
columnType: "PgUUID";
|
|
16693
|
-
data: string;
|
|
16694
|
-
driverParam: string;
|
|
16695
|
-
notNull: false;
|
|
16696
|
-
hasDefault: false;
|
|
16697
|
-
isPrimaryKey: false;
|
|
16698
|
-
isAutoincrement: false;
|
|
16699
|
-
hasRuntimeDefault: false;
|
|
16700
|
-
enumValues: undefined;
|
|
16701
|
-
baseColumn: never;
|
|
16702
|
-
identity: undefined;
|
|
16703
|
-
generated: undefined;
|
|
16704
|
-
}, {}, {}>;
|
|
16705
16762
|
providerArtifactInvalidatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
16706
16763
|
name: "provider_artifact_invalidated_at";
|
|
16707
16764
|
tableName: "agent_run_states";
|
|
@@ -17275,23 +17332,6 @@ export declare const sessionHistoryItems: import("drizzle-orm/pg-core").PgTableW
|
|
|
17275
17332
|
identity: undefined;
|
|
17276
17333
|
generated: undefined;
|
|
17277
17334
|
}, {}, {}>;
|
|
17278
|
-
producerCodexCredentialId: import("drizzle-orm/pg-core").PgColumn<{
|
|
17279
|
-
name: "producer_codex_credential_id";
|
|
17280
|
-
tableName: "session_history_items";
|
|
17281
|
-
dataType: "string";
|
|
17282
|
-
columnType: "PgUUID";
|
|
17283
|
-
data: string;
|
|
17284
|
-
driverParam: string;
|
|
17285
|
-
notNull: false;
|
|
17286
|
-
hasDefault: false;
|
|
17287
|
-
isPrimaryKey: false;
|
|
17288
|
-
isAutoincrement: false;
|
|
17289
|
-
hasRuntimeDefault: false;
|
|
17290
|
-
enumValues: undefined;
|
|
17291
|
-
baseColumn: never;
|
|
17292
|
-
identity: undefined;
|
|
17293
|
-
generated: undefined;
|
|
17294
|
-
}, {}, {}>;
|
|
17295
17335
|
providerArtifactInvalidatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
17296
17336
|
name: "provider_artifact_invalidated_at";
|
|
17297
17337
|
tableName: "session_history_items";
|
|
@@ -22720,6 +22760,7 @@ export declare const scheduledTasks: import("drizzle-orm/pg-core").PgTableWithCo
|
|
|
22720
22760
|
ownerSubjectId: string;
|
|
22721
22761
|
providerDomain: string;
|
|
22722
22762
|
kind?: "api_key" | "app_install" | "delegated" | "oauth2" | undefined;
|
|
22763
|
+
connectionType?: "mcp" | "social" | undefined;
|
|
22723
22764
|
}[];
|
|
22724
22765
|
driverParam: unknown;
|
|
22725
22766
|
notNull: true;
|
|
@@ -22738,6 +22779,7 @@ export declare const scheduledTasks: import("drizzle-orm/pg-core").PgTableWithCo
|
|
|
22738
22779
|
ownerSubjectId: string;
|
|
22739
22780
|
providerDomain: string;
|
|
22740
22781
|
kind?: "api_key" | "app_install" | "delegated" | "oauth2" | undefined;
|
|
22782
|
+
connectionType?: "mcp" | "social" | undefined;
|
|
22741
22783
|
}[];
|
|
22742
22784
|
}>;
|
|
22743
22785
|
reusableSessionId: import("drizzle-orm/pg-core").PgColumn<{
|
|
@@ -27176,6 +27218,23 @@ export declare const socialConnections: import("drizzle-orm/pg-core").PgTableWit
|
|
|
27176
27218
|
identity: undefined;
|
|
27177
27219
|
generated: undefined;
|
|
27178
27220
|
}, {}, {}>;
|
|
27221
|
+
subjectId: import("drizzle-orm/pg-core").PgColumn<{
|
|
27222
|
+
name: "subject_id";
|
|
27223
|
+
tableName: "social_connections";
|
|
27224
|
+
dataType: "string";
|
|
27225
|
+
columnType: "PgText";
|
|
27226
|
+
data: string;
|
|
27227
|
+
driverParam: string;
|
|
27228
|
+
notNull: false;
|
|
27229
|
+
hasDefault: false;
|
|
27230
|
+
isPrimaryKey: false;
|
|
27231
|
+
isAutoincrement: false;
|
|
27232
|
+
hasRuntimeDefault: false;
|
|
27233
|
+
enumValues: [string, ...string[]];
|
|
27234
|
+
baseColumn: never;
|
|
27235
|
+
identity: undefined;
|
|
27236
|
+
generated: undefined;
|
|
27237
|
+
}, {}, {}>;
|
|
27179
27238
|
provider: import("drizzle-orm/pg-core").PgColumn<{
|
|
27180
27239
|
name: "provider";
|
|
27181
27240
|
tableName: "social_connections";
|
package/dist/schema.js
CHANGED
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
billingCustomers,
|
|
6
6
|
capabilityCatalogItems,
|
|
7
7
|
capabilityInstallations,
|
|
8
|
+
codexAppsSettings,
|
|
8
9
|
codexCapacityWaiters,
|
|
9
10
|
codexCredentialLeases,
|
|
10
11
|
codexResetRedemptionAttempts,
|
|
@@ -139,7 +140,7 @@ import {
|
|
|
139
140
|
workspaceVariableSetVariables,
|
|
140
141
|
workspaceVariableSets,
|
|
141
142
|
workspaces
|
|
142
|
-
} from "./chunk-
|
|
143
|
+
} from "./chunk-JYQPJ6Y5.js";
|
|
143
144
|
import "./chunk-PZ5AY32C.js";
|
|
144
145
|
export {
|
|
145
146
|
agentRunStates,
|
|
@@ -148,6 +149,7 @@ export {
|
|
|
148
149
|
billingCustomers,
|
|
149
150
|
capabilityCatalogItems,
|
|
150
151
|
capabilityInstallations,
|
|
152
|
+
codexAppsSettings,
|
|
151
153
|
codexCapacityWaiters,
|
|
152
154
|
codexCredentialLeases,
|
|
153
155
|
codexResetRedemptionAttempts,
|
|
@@ -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 "./
|
|
2
|
+
import type { Database } from "./database";
|
|
3
3
|
type KnowledgeWriteContext = {
|
|
4
4
|
accountId: string;
|
|
5
5
|
workspaceId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type SessionMcpApprovalPolicy, type TurnInitiatorContext } from "@opengeni/contracts";
|
|
2
|
-
import type { Database } from "./
|
|
2
|
+
import type { Database } from "./database";
|
|
3
3
|
import * as schema from "./schema";
|
|
4
4
|
export declare const SESSION_ANCESTRY_LIMIT = 10000;
|
|
5
5
|
export type WorkspaceControlLockMode = "none" | "share" | "update";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ResourceRef, type McpPersonalConnectionDelegation, type LatencyMode, type ReasoningEffort, type TurnExecutionPolicyV1 } from "@opengeni/contracts";
|
|
2
|
-
import type { Database } from "./
|
|
2
|
+
import type { Database } from "./database";
|
|
3
3
|
import { type SessionCommandActor, type SessionCommandReceiptRow } from "./session-control";
|
|
4
4
|
import * as schema from "./schema";
|
|
5
5
|
export type QueueCommandConflictCode = "QUEUE_VERSION_CHANGED" | "QUEUE_PROMPT_STARTED" | "QUEUE_ANCHOR_CHANGED" | "PROMPT_CHANGED" | "DRAFT_CHANGED" | "DRAFT_NOT_EMPTY" | "EDIT_SOURCE_CHANGED";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Database } from "./
|
|
1
|
+
import type { Database } from "./database";
|
|
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.";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type SessionRealtimeMode } from "@opengeni/contracts";
|
|
2
|
-
import type { Database } from "./
|
|
2
|
+
import type { Database } from "./database";
|
|
3
3
|
import { type AssertSessionRealtimeOwnerInput } from "./session-realtime";
|
|
4
4
|
export declare const SESSION_REALTIME_LEDGER_MAX_BATCH = 64;
|
|
5
5
|
export declare const SESSION_REALTIME_LEDGER_MAX_TEXT_BYTES = 131072;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HumanInputQuestion, HumanInputResponse } from "@opengeni/contracts";
|
|
2
|
-
import type { Database } from "./
|
|
2
|
+
import type { Database } from "./database";
|
|
3
3
|
import * as schema from "./schema";
|
|
4
4
|
export type SessionRealtimeMirrorChannel = "speakable" | "commentary" | null;
|
|
5
5
|
export type MirrorSessionRealtimeContextInput = {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Database } from "./
|
|
1
|
+
import type { Database } from "./database";
|
|
2
2
|
export declare function sessionRealtimeIsActiveInTransaction(db: Database, workspaceId: string, sessionId: string, now?: Date): Promise<boolean>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SessionRealtimeEndReason, SessionRealtimeMode, SessionRealtimeModel } from "@opengeni/contracts";
|
|
2
|
-
import type { Database } from "./
|
|
2
|
+
import type { Database } from "./database";
|
|
3
3
|
import * as schema from "./schema";
|
|
4
4
|
export { sessionRealtimeIsActiveInTransaction } from "./session-realtime-state";
|
|
5
5
|
export declare const SESSION_REALTIME_LEASE_MS = 30000;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SessionEvent } from "@opengeni/contracts";
|
|
2
|
-
import type { Database } from "./
|
|
2
|
+
import type { Database } from "./database";
|
|
3
3
|
export declare const TOOL_RESULT_TYPE_BY_CALL_TYPE: Readonly<Record<string, string>>;
|
|
4
4
|
export declare function historyCallId(item: Record<string, unknown>): string | null;
|
|
5
5
|
export declare function historyItemType(item: Record<string, unknown>): string | null;
|
package/dist/turn-initiator.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type TurnInitiator, type TurnInitiatorContext } from "@opengeni/contracts";
|
|
2
|
-
import type { Database } from "./
|
|
2
|
+
import type { Database } from "./database";
|
|
3
3
|
import type { SessionCommandActor } from "./session-control";
|
|
4
4
|
export declare const UNATTRIBUTED_LEGACY_INITIATOR: TurnInitiator;
|
|
5
5
|
export type FrozenTurnInitiator = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { WorkspaceArtifact, WorkspaceArtifactDetailResponse, WorkspaceArtifactMutationResponse, WorkspaceArtifactVersion } from "@opengeni/contracts";
|
|
2
|
-
import type { Database } from "./
|
|
2
|
+
import type { Database } from "./database";
|
|
3
3
|
type ArtifactMutationToolName = "artifacts_create" | "artifacts_publish" | "artifacts_rollback";
|
|
4
4
|
export declare class WorkspaceArtifactNotFoundError extends Error {
|
|
5
5
|
readonly name = "WorkspaceArtifactNotFoundError";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WorkspaceInstructionPolicySnapshot } from "@opengeni/contracts";
|
|
2
2
|
import type { WorkspaceInstructionPolicyActivationResponse, WorkspaceInstructionPolicyDiffResponse, WorkspaceInstructionPolicyDraftProvenanceSource, WorkspaceInstructionPolicyHead, WorkspaceInstructionPolicyListQuery, WorkspaceInstructionPolicyListResponse, WorkspaceInstructionPolicyOnboardingProposal, WorkspaceInstructionPolicyOnboardingProposalListQuery, WorkspaceInstructionPolicyOnboardingProposalListResponse, WorkspaceInstructionPolicyProvenanceSource, WorkspaceInstructionPolicyRevision, WorkspaceInstructionPolicyTarget } from "@opengeni/contracts";
|
|
3
|
-
import type { Database } from "./
|
|
3
|
+
import type { Database } from "./database";
|
|
4
4
|
type DraftRequestInput = WorkspaceInstructionPolicyTarget & {
|
|
5
5
|
operationId: string;
|
|
6
6
|
accountId: string;
|