@opengeni/db 0.19.0 → 0.21.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/{chunk-SZP6KRLC.js → chunk-NK2A36KP.js} +2547 -1916
- package/dist/chunk-NK2A36KP.js.map +1 -0
- package/dist/{chunk-XOXEQ7HG.js → chunk-OTJHD33E.js} +81 -1
- package/dist/chunk-OTJHD33E.js.map +1 -0
- package/dist/index.d.ts +24 -1
- package/dist/index.js +5377 -2905
- package/dist/index.js.map +1 -1
- package/dist/provision-roles.js +1 -1
- package/dist/runtime-posture.d.ts +3 -3
- package/dist/schema.d.ts +226 -0
- package/dist/schema.js +33 -1
- package/dist/scoped-knowledge-schema.d.ts +5341 -0
- package/dist/scoped-knowledge.d.ts +208 -0
- package/dist/session-queue-commands.d.ts +2 -1
- package/drizzle/0153_mcp_personal_connection_delegations.sql +181 -0
- package/drizzle/0154_scoped_knowledge_foundation.sql +2292 -0
- package/package.json +3 -3
- package/src/connection-token-resolver.ts +3 -0
- package/src/index.ts +341 -7
- package/src/provision-roles.ts +48 -0
- package/src/runtime-posture.ts +32 -0
- package/src/schema.ts +47 -2
- package/src/scoped-knowledge-schema.ts +603 -0
- package/src/scoped-knowledge.ts +2891 -0
- package/src/session-queue-commands.ts +48 -0
- package/dist/chunk-SZP6KRLC.js.map +0 -1
- package/dist/chunk-XOXEQ7HG.js.map +0 -1
package/dist/provision-roles.js
CHANGED
|
@@ -4,7 +4,7 @@ import type { Database, RlsStrategy } from "./index";
|
|
|
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", "connections", "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_memories", "knowledge_memory_lifecycle_events", "knowledge_memory_relationships", "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_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_revisions", "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_capacity_waiters", "codex_credential_leases", "codex_reset_redemption_attempts", "codex_rotation_settings", "codex_subscription_credentials", "composer_drafts", "connections", "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_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_revisions", "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
|
|
@@ -18,9 +18,9 @@ export declare const NON_RLS_RUNTIME_TABLES: readonly ["auth_identities", "auth_
|
|
|
18
18
|
*/
|
|
19
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", "connections", "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_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
|
-
export declare const RUNTIME_READ_ONLY_TABLES: readonly ["knowledge_memory_lifecycle_events", "knowledge_memory_relationships", "nested_agent_depth_configuration", "preference_registry_events", "preference_registry_snapshots"];
|
|
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"];
|
|
22
22
|
/** Append-only evidence/revision tables are insertable and queryable, never mutable. */
|
|
23
|
-
export declare const RUNTIME_READ_INSERT_TABLES: readonly ["preference_registry_preferences", "preference_registry_revisions", "session_spawn_denials", "workspace_artifact_events", "workspace_artifact_versions", "workspace_instruction_policy_activation_events", "workspace_instruction_policy_revisions"];
|
|
23
|
+
export declare const RUNTIME_READ_INSERT_TABLES: readonly ["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_operation_receipts", "knowledge_providers", "knowledge_source_acl_versions", "knowledge_source_objects", "knowledge_sources", "knowledge_sync_runs", "preference_registry_preferences", "preference_registry_revisions", "session_spawn_denials", "workspace_artifact_events", "workspace_artifact_versions", "workspace_instruction_policy_activation_events", "workspace_instruction_policy_revisions"];
|
|
24
24
|
/**
|
|
25
25
|
* These FORCE-RLS tables are owned by security-definer host-export routines.
|
|
26
26
|
* The ordinary application role must have no direct table privileges on them.
|
package/dist/schema.d.ts
CHANGED
|
@@ -6483,6 +6483,37 @@ export declare const sessions: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
6483
6483
|
}, {}, {
|
|
6484
6484
|
$type: ("artifacts_create" | "artifacts_get_source" | "artifacts_list" | "artifacts_publish" | "artifacts_rollback" | "environment_list" | "environment_set_variable" | "github_connect_link" | "github_repositories_list" | "github_token" | "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")[];
|
|
6485
6485
|
}>;
|
|
6486
|
+
initialPersonalConnectionDelegations: import("drizzle-orm/pg-core").PgColumn<{
|
|
6487
|
+
name: "initial_personal_connection_delegations";
|
|
6488
|
+
tableName: "sessions";
|
|
6489
|
+
dataType: "json";
|
|
6490
|
+
columnType: "PgJsonb";
|
|
6491
|
+
data: {
|
|
6492
|
+
serverId: string;
|
|
6493
|
+
connectionId: string;
|
|
6494
|
+
ownerSubjectId: string;
|
|
6495
|
+
providerDomain: string;
|
|
6496
|
+
kind?: "api_key" | "app_install" | "delegated" | "oauth2" | undefined;
|
|
6497
|
+
}[];
|
|
6498
|
+
driverParam: unknown;
|
|
6499
|
+
notNull: true;
|
|
6500
|
+
hasDefault: true;
|
|
6501
|
+
isPrimaryKey: false;
|
|
6502
|
+
isAutoincrement: false;
|
|
6503
|
+
hasRuntimeDefault: false;
|
|
6504
|
+
enumValues: undefined;
|
|
6505
|
+
baseColumn: never;
|
|
6506
|
+
identity: undefined;
|
|
6507
|
+
generated: undefined;
|
|
6508
|
+
}, {}, {
|
|
6509
|
+
$type: {
|
|
6510
|
+
serverId: string;
|
|
6511
|
+
connectionId: string;
|
|
6512
|
+
ownerSubjectId: string;
|
|
6513
|
+
providerDomain: string;
|
|
6514
|
+
kind?: "api_key" | "app_install" | "delegated" | "oauth2" | undefined;
|
|
6515
|
+
}[];
|
|
6516
|
+
}>;
|
|
6486
6517
|
toolPolicy: import("drizzle-orm/pg-core").PgColumn<{
|
|
6487
6518
|
name: "tool_policy";
|
|
6488
6519
|
tableName: "sessions";
|
|
@@ -6542,6 +6573,23 @@ export declare const sessions: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
6542
6573
|
identity: undefined;
|
|
6543
6574
|
generated: undefined;
|
|
6544
6575
|
}, {}, {}>;
|
|
6576
|
+
parentTurnId: import("drizzle-orm/pg-core").PgColumn<{
|
|
6577
|
+
name: "parent_turn_id";
|
|
6578
|
+
tableName: "sessions";
|
|
6579
|
+
dataType: "string";
|
|
6580
|
+
columnType: "PgUUID";
|
|
6581
|
+
data: string;
|
|
6582
|
+
driverParam: string;
|
|
6583
|
+
notNull: false;
|
|
6584
|
+
hasDefault: false;
|
|
6585
|
+
isPrimaryKey: false;
|
|
6586
|
+
isAutoincrement: false;
|
|
6587
|
+
hasRuntimeDefault: false;
|
|
6588
|
+
enumValues: undefined;
|
|
6589
|
+
baseColumn: never;
|
|
6590
|
+
identity: undefined;
|
|
6591
|
+
generated: undefined;
|
|
6592
|
+
}, {}, {}>;
|
|
6545
6593
|
createIdempotencyKey: import("drizzle-orm/pg-core").PgColumn<{
|
|
6546
6594
|
name: "create_idempotency_key";
|
|
6547
6595
|
tableName: "sessions";
|
|
@@ -10267,6 +10315,37 @@ export declare const sessionTurns: import("drizzle-orm/pg-core").PgTableWithColu
|
|
|
10267
10315
|
}, {}, {
|
|
10268
10316
|
$type: Record<string, unknown>;
|
|
10269
10317
|
}>;
|
|
10318
|
+
personalConnectionDelegations: import("drizzle-orm/pg-core").PgColumn<{
|
|
10319
|
+
name: "personal_connection_delegations";
|
|
10320
|
+
tableName: "session_turns";
|
|
10321
|
+
dataType: "json";
|
|
10322
|
+
columnType: "PgJsonb";
|
|
10323
|
+
data: {
|
|
10324
|
+
serverId: string;
|
|
10325
|
+
connectionId: string;
|
|
10326
|
+
ownerSubjectId: string;
|
|
10327
|
+
providerDomain: string;
|
|
10328
|
+
kind?: "api_key" | "app_install" | "delegated" | "oauth2" | undefined;
|
|
10329
|
+
}[];
|
|
10330
|
+
driverParam: unknown;
|
|
10331
|
+
notNull: true;
|
|
10332
|
+
hasDefault: true;
|
|
10333
|
+
isPrimaryKey: false;
|
|
10334
|
+
isAutoincrement: false;
|
|
10335
|
+
hasRuntimeDefault: false;
|
|
10336
|
+
enumValues: undefined;
|
|
10337
|
+
baseColumn: never;
|
|
10338
|
+
identity: undefined;
|
|
10339
|
+
generated: undefined;
|
|
10340
|
+
}, {}, {
|
|
10341
|
+
$type: {
|
|
10342
|
+
serverId: string;
|
|
10343
|
+
connectionId: string;
|
|
10344
|
+
ownerSubjectId: string;
|
|
10345
|
+
providerDomain: string;
|
|
10346
|
+
kind?: "api_key" | "app_install" | "delegated" | "oauth2" | undefined;
|
|
10347
|
+
}[];
|
|
10348
|
+
}>;
|
|
10270
10349
|
cancelledBy: import("drizzle-orm/pg-core").PgColumn<{
|
|
10271
10350
|
name: "cancelled_by";
|
|
10272
10351
|
tableName: "session_turns";
|
|
@@ -12255,6 +12334,37 @@ export declare const sessionSystemUpdates: import("drizzle-orm/pg-core").PgTable
|
|
|
12255
12334
|
}, {}, {
|
|
12256
12335
|
$type: Record<string, unknown>;
|
|
12257
12336
|
}>;
|
|
12337
|
+
personalConnectionDelegations: import("drizzle-orm/pg-core").PgColumn<{
|
|
12338
|
+
name: "personal_connection_delegations";
|
|
12339
|
+
tableName: "session_system_updates";
|
|
12340
|
+
dataType: "json";
|
|
12341
|
+
columnType: "PgJsonb";
|
|
12342
|
+
data: {
|
|
12343
|
+
serverId: string;
|
|
12344
|
+
connectionId: string;
|
|
12345
|
+
ownerSubjectId: string;
|
|
12346
|
+
providerDomain: string;
|
|
12347
|
+
kind?: "api_key" | "app_install" | "delegated" | "oauth2" | undefined;
|
|
12348
|
+
}[];
|
|
12349
|
+
driverParam: unknown;
|
|
12350
|
+
notNull: true;
|
|
12351
|
+
hasDefault: true;
|
|
12352
|
+
isPrimaryKey: false;
|
|
12353
|
+
isAutoincrement: false;
|
|
12354
|
+
hasRuntimeDefault: false;
|
|
12355
|
+
enumValues: undefined;
|
|
12356
|
+
baseColumn: never;
|
|
12357
|
+
identity: undefined;
|
|
12358
|
+
generated: undefined;
|
|
12359
|
+
}, {}, {
|
|
12360
|
+
$type: {
|
|
12361
|
+
serverId: string;
|
|
12362
|
+
connectionId: string;
|
|
12363
|
+
ownerSubjectId: string;
|
|
12364
|
+
providerDomain: string;
|
|
12365
|
+
kind?: "api_key" | "app_install" | "delegated" | "oauth2" | undefined;
|
|
12366
|
+
}[];
|
|
12367
|
+
}>;
|
|
12258
12368
|
state: import("drizzle-orm/pg-core").PgColumn<{
|
|
12259
12369
|
name: "state";
|
|
12260
12370
|
tableName: "session_system_updates";
|
|
@@ -12561,6 +12671,37 @@ export declare const sessionSystemUpdateOutbox: import("drizzle-orm/pg-core").Pg
|
|
|
12561
12671
|
}, {}, {
|
|
12562
12672
|
$type: Record<string, unknown>;
|
|
12563
12673
|
}>;
|
|
12674
|
+
personalConnectionDelegations: import("drizzle-orm/pg-core").PgColumn<{
|
|
12675
|
+
name: "personal_connection_delegations";
|
|
12676
|
+
tableName: "session_system_update_outbox";
|
|
12677
|
+
dataType: "json";
|
|
12678
|
+
columnType: "PgJsonb";
|
|
12679
|
+
data: {
|
|
12680
|
+
serverId: string;
|
|
12681
|
+
connectionId: string;
|
|
12682
|
+
ownerSubjectId: string;
|
|
12683
|
+
providerDomain: string;
|
|
12684
|
+
kind?: "api_key" | "app_install" | "delegated" | "oauth2" | undefined;
|
|
12685
|
+
}[];
|
|
12686
|
+
driverParam: unknown;
|
|
12687
|
+
notNull: true;
|
|
12688
|
+
hasDefault: true;
|
|
12689
|
+
isPrimaryKey: false;
|
|
12690
|
+
isAutoincrement: false;
|
|
12691
|
+
hasRuntimeDefault: false;
|
|
12692
|
+
enumValues: undefined;
|
|
12693
|
+
baseColumn: never;
|
|
12694
|
+
identity: undefined;
|
|
12695
|
+
generated: undefined;
|
|
12696
|
+
}, {}, {
|
|
12697
|
+
$type: {
|
|
12698
|
+
serverId: string;
|
|
12699
|
+
connectionId: string;
|
|
12700
|
+
ownerSubjectId: string;
|
|
12701
|
+
providerDomain: string;
|
|
12702
|
+
kind?: "api_key" | "app_install" | "delegated" | "oauth2" | undefined;
|
|
12703
|
+
}[];
|
|
12704
|
+
}>;
|
|
12564
12705
|
status: import("drizzle-orm/pg-core").PgColumn<{
|
|
12565
12706
|
name: "status";
|
|
12566
12707
|
tableName: "session_system_update_outbox";
|
|
@@ -20096,6 +20237,90 @@ export declare const scheduledTasks: import("drizzle-orm/pg-core").PgTableWithCo
|
|
|
20096
20237
|
}, {}, {
|
|
20097
20238
|
$type: unknown;
|
|
20098
20239
|
}>;
|
|
20240
|
+
createdByKind: import("drizzle-orm/pg-core").PgColumn<{
|
|
20241
|
+
name: "created_by_kind";
|
|
20242
|
+
tableName: "scheduled_tasks";
|
|
20243
|
+
dataType: "string";
|
|
20244
|
+
columnType: "PgText";
|
|
20245
|
+
data: string;
|
|
20246
|
+
driverParam: string;
|
|
20247
|
+
notNull: true;
|
|
20248
|
+
hasDefault: true;
|
|
20249
|
+
isPrimaryKey: false;
|
|
20250
|
+
isAutoincrement: false;
|
|
20251
|
+
hasRuntimeDefault: false;
|
|
20252
|
+
enumValues: [string, ...string[]];
|
|
20253
|
+
baseColumn: never;
|
|
20254
|
+
identity: undefined;
|
|
20255
|
+
generated: undefined;
|
|
20256
|
+
}, {}, {}>;
|
|
20257
|
+
createdBySubjectId: import("drizzle-orm/pg-core").PgColumn<{
|
|
20258
|
+
name: "created_by_subject_id";
|
|
20259
|
+
tableName: "scheduled_tasks";
|
|
20260
|
+
dataType: "string";
|
|
20261
|
+
columnType: "PgText";
|
|
20262
|
+
data: string;
|
|
20263
|
+
driverParam: string;
|
|
20264
|
+
notNull: true;
|
|
20265
|
+
hasDefault: true;
|
|
20266
|
+
isPrimaryKey: false;
|
|
20267
|
+
isAutoincrement: false;
|
|
20268
|
+
hasRuntimeDefault: false;
|
|
20269
|
+
enumValues: [string, ...string[]];
|
|
20270
|
+
baseColumn: never;
|
|
20271
|
+
identity: undefined;
|
|
20272
|
+
generated: undefined;
|
|
20273
|
+
}, {}, {}>;
|
|
20274
|
+
createdByContext: import("drizzle-orm/pg-core").PgColumn<{
|
|
20275
|
+
name: "created_by_context";
|
|
20276
|
+
tableName: "scheduled_tasks";
|
|
20277
|
+
dataType: "json";
|
|
20278
|
+
columnType: "PgJsonb";
|
|
20279
|
+
data: Record<string, unknown>;
|
|
20280
|
+
driverParam: unknown;
|
|
20281
|
+
notNull: true;
|
|
20282
|
+
hasDefault: true;
|
|
20283
|
+
isPrimaryKey: false;
|
|
20284
|
+
isAutoincrement: false;
|
|
20285
|
+
hasRuntimeDefault: false;
|
|
20286
|
+
enumValues: undefined;
|
|
20287
|
+
baseColumn: never;
|
|
20288
|
+
identity: undefined;
|
|
20289
|
+
generated: undefined;
|
|
20290
|
+
}, {}, {
|
|
20291
|
+
$type: Record<string, unknown>;
|
|
20292
|
+
}>;
|
|
20293
|
+
personalConnectionDelegations: import("drizzle-orm/pg-core").PgColumn<{
|
|
20294
|
+
name: "personal_connection_delegations";
|
|
20295
|
+
tableName: "scheduled_tasks";
|
|
20296
|
+
dataType: "json";
|
|
20297
|
+
columnType: "PgJsonb";
|
|
20298
|
+
data: {
|
|
20299
|
+
serverId: string;
|
|
20300
|
+
connectionId: string;
|
|
20301
|
+
ownerSubjectId: string;
|
|
20302
|
+
providerDomain: string;
|
|
20303
|
+
kind?: "api_key" | "app_install" | "delegated" | "oauth2" | undefined;
|
|
20304
|
+
}[];
|
|
20305
|
+
driverParam: unknown;
|
|
20306
|
+
notNull: true;
|
|
20307
|
+
hasDefault: true;
|
|
20308
|
+
isPrimaryKey: false;
|
|
20309
|
+
isAutoincrement: false;
|
|
20310
|
+
hasRuntimeDefault: false;
|
|
20311
|
+
enumValues: undefined;
|
|
20312
|
+
baseColumn: never;
|
|
20313
|
+
identity: undefined;
|
|
20314
|
+
generated: undefined;
|
|
20315
|
+
}, {}, {
|
|
20316
|
+
$type: {
|
|
20317
|
+
serverId: string;
|
|
20318
|
+
connectionId: string;
|
|
20319
|
+
ownerSubjectId: string;
|
|
20320
|
+
providerDomain: string;
|
|
20321
|
+
kind?: "api_key" | "app_install" | "delegated" | "oauth2" | undefined;
|
|
20322
|
+
}[];
|
|
20323
|
+
}>;
|
|
20099
20324
|
reusableSessionId: import("drizzle-orm/pg-core").PgColumn<{
|
|
20100
20325
|
name: "reusable_session_id";
|
|
20101
20326
|
tableName: "scheduled_tasks";
|
|
@@ -25612,3 +25837,4 @@ export declare const rigChanges: import("drizzle-orm/pg-core").PgTableWithColumn
|
|
|
25612
25837
|
export * from "./workspace-instruction-policies-schema";
|
|
25613
25838
|
export * from "./preference-registry-schema";
|
|
25614
25839
|
export * from "./memory-governance-schema";
|
|
25840
|
+
export * from "./scoped-knowledge-schema";
|
package/dist/schema.js
CHANGED
|
@@ -34,9 +34,25 @@ import {
|
|
|
34
34
|
importBatches,
|
|
35
35
|
integrationOauthClients,
|
|
36
36
|
integrationOauthStateNonces,
|
|
37
|
+
knowledgeChangeProposals,
|
|
38
|
+
knowledgeClaimEvidence,
|
|
39
|
+
knowledgeClaimRelations,
|
|
40
|
+
knowledgeClaimReviews,
|
|
41
|
+
knowledgeClaims,
|
|
42
|
+
knowledgeDocumentVersions,
|
|
43
|
+
knowledgeEntities,
|
|
44
|
+
knowledgeEntityAliases,
|
|
45
|
+
knowledgeFacts,
|
|
46
|
+
knowledgeLifecycleEvents,
|
|
37
47
|
knowledgeMemories,
|
|
38
48
|
knowledgeMemoryLifecycleEvents,
|
|
39
49
|
knowledgeMemoryRelationships,
|
|
50
|
+
knowledgeOperationReceipts,
|
|
51
|
+
knowledgeProviders,
|
|
52
|
+
knowledgeSourceAclVersions,
|
|
53
|
+
knowledgeSourceObjects,
|
|
54
|
+
knowledgeSources,
|
|
55
|
+
knowledgeSyncRuns,
|
|
40
56
|
machineMetricsLatest,
|
|
41
57
|
machineMetricsSeries,
|
|
42
58
|
managedAccounts,
|
|
@@ -114,7 +130,7 @@ import {
|
|
|
114
130
|
workspaceVariableSetVariables,
|
|
115
131
|
workspaceVariableSets,
|
|
116
132
|
workspaces
|
|
117
|
-
} from "./chunk-
|
|
133
|
+
} from "./chunk-NK2A36KP.js";
|
|
118
134
|
import "./chunk-PZ5AY32C.js";
|
|
119
135
|
export {
|
|
120
136
|
agentRunStates,
|
|
@@ -152,9 +168,25 @@ export {
|
|
|
152
168
|
importBatches,
|
|
153
169
|
integrationOauthClients,
|
|
154
170
|
integrationOauthStateNonces,
|
|
171
|
+
knowledgeChangeProposals,
|
|
172
|
+
knowledgeClaimEvidence,
|
|
173
|
+
knowledgeClaimRelations,
|
|
174
|
+
knowledgeClaimReviews,
|
|
175
|
+
knowledgeClaims,
|
|
176
|
+
knowledgeDocumentVersions,
|
|
177
|
+
knowledgeEntities,
|
|
178
|
+
knowledgeEntityAliases,
|
|
179
|
+
knowledgeFacts,
|
|
180
|
+
knowledgeLifecycleEvents,
|
|
155
181
|
knowledgeMemories,
|
|
156
182
|
knowledgeMemoryLifecycleEvents,
|
|
157
183
|
knowledgeMemoryRelationships,
|
|
184
|
+
knowledgeOperationReceipts,
|
|
185
|
+
knowledgeProviders,
|
|
186
|
+
knowledgeSourceAclVersions,
|
|
187
|
+
knowledgeSourceObjects,
|
|
188
|
+
knowledgeSources,
|
|
189
|
+
knowledgeSyncRuns,
|
|
158
190
|
machineMetricsLatest,
|
|
159
191
|
machineMetricsSeries,
|
|
160
192
|
managedAccounts,
|