@tickernelz/wardmote-db 0.0.0 → 2026.1108.2
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/adapter-auth-sessions-schema.test.d.ts +2 -0
- package/dist/adapter-auth-sessions-schema.test.d.ts.map +1 -0
- package/dist/adapter-auth-sessions-schema.test.js +112 -0
- package/dist/adapter-auth-sessions-schema.test.js.map +1 -0
- package/dist/agent-chat-migration.test.d.ts +2 -0
- package/dist/agent-chat-migration.test.d.ts.map +1 -0
- package/dist/agent-chat-migration.test.js +111 -0
- package/dist/agent-chat-migration.test.js.map +1 -0
- package/dist/agent-instruction-migration.test.d.ts +2 -0
- package/dist/agent-instruction-migration.test.d.ts.map +1 -0
- package/dist/agent-instruction-migration.test.js +141 -0
- package/dist/agent-instruction-migration.test.js.map +1 -0
- package/dist/agent-wakeup-requests-schema.test.d.ts +2 -0
- package/dist/agent-wakeup-requests-schema.test.d.ts.map +1 -0
- package/dist/agent-wakeup-requests-schema.test.js +24 -0
- package/dist/agent-wakeup-requests-schema.test.js.map +1 -0
- package/dist/backup-lib.d.ts +44 -0
- package/dist/backup-lib.d.ts.map +1 -0
- package/dist/backup-lib.js +958 -0
- package/dist/backup-lib.js.map +1 -0
- package/dist/backup-lib.test.d.ts +2 -0
- package/dist/backup-lib.test.d.ts.map +1 -0
- package/dist/backup-lib.test.js +564 -0
- package/dist/backup-lib.test.js.map +1 -0
- package/dist/backup.d.ts +2 -0
- package/dist/backup.d.ts.map +1 -0
- package/dist/backup.js +77 -0
- package/dist/backup.js.map +1 -0
- package/dist/better-auth-account-issuer-migration.test.d.ts +9 -0
- package/dist/better-auth-account-issuer-migration.test.d.ts.map +1 -0
- package/dist/better-auth-account-issuer-migration.test.js +113 -0
- package/dist/better-auth-account-issuer-migration.test.js.map +1 -0
- package/dist/built-in-agent-unique-marker-migration.test.d.ts +2 -0
- package/dist/built-in-agent-unique-marker-migration.test.d.ts.map +1 -0
- package/dist/built-in-agent-unique-marker-migration.test.js +102 -0
- package/dist/built-in-agent-unique-marker-migration.test.js.map +1 -0
- package/dist/chat-github-migration.test.d.ts +2 -0
- package/dist/chat-github-migration.test.d.ts.map +1 -0
- package/dist/chat-github-migration.test.js +34 -0
- package/dist/chat-github-migration.test.js.map +1 -0
- package/dist/chat-identity-migration-reconciliation.test.d.ts +2 -0
- package/dist/chat-identity-migration-reconciliation.test.d.ts.map +1 -0
- package/dist/chat-identity-migration-reconciliation.test.js +531 -0
- package/dist/chat-identity-migration-reconciliation.test.js.map +1 -0
- package/dist/chat-openwa-migration.test.d.ts +2 -0
- package/dist/chat-openwa-migration.test.d.ts.map +1 -0
- package/dist/chat-openwa-migration.test.js +126 -0
- package/dist/chat-openwa-migration.test.js.map +1 -0
- package/dist/chat-telegram-draft-ids-migration.test.d.ts +2 -0
- package/dist/chat-telegram-draft-ids-migration.test.d.ts.map +1 -0
- package/dist/chat-telegram-draft-ids-migration.test.js +71 -0
- package/dist/chat-telegram-draft-ids-migration.test.js.map +1 -0
- package/dist/chat-tenant-foreign-keys.test.d.ts +2 -0
- package/dist/chat-tenant-foreign-keys.test.d.ts.map +1 -0
- package/dist/chat-tenant-foreign-keys.test.js +140 -0
- package/dist/chat-tenant-foreign-keys.test.js.map +1 -0
- package/dist/check-migration-numbering.d.ts +2 -0
- package/dist/check-migration-numbering.d.ts.map +1 -0
- package/dist/check-migration-numbering.js +64 -0
- package/dist/check-migration-numbering.js.map +1 -0
- package/dist/check-migration-safety.d.ts +27 -0
- package/dist/check-migration-safety.d.ts.map +1 -0
- package/dist/check-migration-safety.js +811 -0
- package/dist/check-migration-safety.js.map +1 -0
- package/dist/check-migration-safety.test.d.ts +2 -0
- package/dist/check-migration-safety.test.d.ts.map +1 -0
- package/dist/check-migration-safety.test.js +391 -0
- package/dist/check-migration-safety.test.js.map +1 -0
- package/dist/client-disconnect-replay.test.d.ts +2 -0
- package/dist/client-disconnect-replay.test.d.ts.map +1 -0
- package/dist/client-disconnect-replay.test.js +182 -0
- package/dist/client-disconnect-replay.test.js.map +1 -0
- package/dist/client-options.test.d.ts +2 -0
- package/dist/client-options.test.d.ts.map +1 -0
- package/dist/client-options.test.js +88 -0
- package/dist/client-options.test.js.map +1 -0
- package/dist/client-teardown-registry.test.d.ts +2 -0
- package/dist/client-teardown-registry.test.d.ts.map +1 -0
- package/dist/client-teardown-registry.test.js +100 -0
- package/dist/client-teardown-registry.test.js.map +1 -0
- package/dist/client.d.ts +112 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +942 -0
- package/dist/client.js.map +1 -0
- package/dist/client.test.d.ts +2 -0
- package/dist/client.test.d.ts.map +1 -0
- package/dist/client.test.js +1792 -0
- package/dist/client.test.js.map +1 -0
- package/dist/company-secret-proposals-migration.test.d.ts +2 -0
- package/dist/company-secret-proposals-migration.test.d.ts.map +1 -0
- package/dist/company-secret-proposals-migration.test.js +40 -0
- package/dist/company-secret-proposals-migration.test.js.map +1 -0
- package/dist/connection-grants-phase2-migration.test.d.ts +2 -0
- package/dist/connection-grants-phase2-migration.test.d.ts.map +1 -0
- package/dist/connection-grants-phase2-migration.test.js +30 -0
- package/dist/connection-grants-phase2-migration.test.js.map +1 -0
- package/dist/connection-grants-phase4-migration.test.d.ts +2 -0
- package/dist/connection-grants-phase4-migration.test.d.ts.map +1 -0
- package/dist/connection-grants-phase4-migration.test.js +300 -0
- package/dist/connection-grants-phase4-migration.test.js.map +1 -0
- package/dist/connections-v3-schema-core-migration.test.d.ts +2 -0
- package/dist/connections-v3-schema-core-migration.test.d.ts.map +1 -0
- package/dist/connections-v3-schema-core-migration.test.js +114 -0
- package/dist/connections-v3-schema-core-migration.test.js.map +1 -0
- package/dist/decision-queue-migrations.test.d.ts +2 -0
- package/dist/decision-queue-migrations.test.d.ts.map +1 -0
- package/dist/decision-queue-migrations.test.js +78 -0
- package/dist/decision-queue-migrations.test.js.map +1 -0
- package/dist/embedded-postgres-error.d.ts +9 -0
- package/dist/embedded-postgres-error.d.ts.map +1 -0
- package/dist/embedded-postgres-error.js +73 -0
- package/dist/embedded-postgres-error.js.map +1 -0
- package/dist/embedded-postgres-error.test.d.ts +2 -0
- package/dist/embedded-postgres-error.test.d.ts.map +1 -0
- package/dist/embedded-postgres-error.test.js +25 -0
- package/dist/embedded-postgres-error.test.js.map +1 -0
- package/dist/embedded-postgres-lifecycle.d.ts +16 -0
- package/dist/embedded-postgres-lifecycle.d.ts.map +1 -0
- package/dist/embedded-postgres-lifecycle.js +43 -0
- package/dist/embedded-postgres-lifecycle.js.map +1 -0
- package/dist/embedded-postgres-lifecycle.test.d.ts +2 -0
- package/dist/embedded-postgres-lifecycle.test.d.ts.map +1 -0
- package/dist/embedded-postgres-lifecycle.test.js +64 -0
- package/dist/embedded-postgres-lifecycle.test.js.map +1 -0
- package/dist/embedded-postgres-native.d.ts +3 -0
- package/dist/embedded-postgres-native.d.ts.map +1 -0
- package/dist/embedded-postgres-native.js +83 -0
- package/dist/embedded-postgres-native.js.map +1 -0
- package/dist/embedded-postgres-native.test.d.ts +2 -0
- package/dist/embedded-postgres-native.test.d.ts.map +1 -0
- package/dist/embedded-postgres-native.test.js +49 -0
- package/dist/embedded-postgres-native.test.js.map +1 -0
- package/dist/environment-custom-images-schema.test.d.ts +2 -0
- package/dist/environment-custom-images-schema.test.d.ts.map +1 -0
- package/dist/environment-custom-images-schema.test.js +26 -0
- package/dist/environment-custom-images-schema.test.js.map +1 -0
- package/dist/external-objects-schema.test.d.ts +2 -0
- package/dist/external-objects-schema.test.d.ts.map +1 -0
- package/dist/external-objects-schema.test.js +46 -0
- package/dist/external-objects-schema.test.js.map +1 -0
- package/dist/heartbeat-context-snapshot-index-migration.test.d.ts +2 -0
- package/dist/heartbeat-context-snapshot-index-migration.test.d.ts.map +1 -0
- package/dist/heartbeat-context-snapshot-index-migration.test.js +60 -0
- package/dist/heartbeat-context-snapshot-index-migration.test.js.map +1 -0
- package/dist/heartbeat-run-issue-privacy-migration.test.d.ts +2 -0
- package/dist/heartbeat-run-issue-privacy-migration.test.d.ts.map +1 -0
- package/dist/heartbeat-run-issue-privacy-migration.test.js +265 -0
- package/dist/heartbeat-run-issue-privacy-migration.test.js.map +1 -0
- package/dist/inbox-archive-agent-policies-migration.test.d.ts +2 -0
- package/dist/inbox-archive-agent-policies-migration.test.d.ts.map +1 -0
- package/dist/inbox-archive-agent-policies-migration.test.js +155 -0
- package/dist/inbox-archive-agent-policies-migration.test.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -0
- package/dist/issue-comment-derived-attribution-migration.test.d.ts +2 -0
- package/dist/issue-comment-derived-attribution-migration.test.d.ts.map +1 -0
- package/dist/issue-comment-derived-attribution-migration.test.js +287 -0
- package/dist/issue-comment-derived-attribution-migration.test.js.map +1 -0
- package/dist/issue-comment-on-behalf-migration.test.d.ts +2 -0
- package/dist/issue-comment-on-behalf-migration.test.d.ts.map +1 -0
- package/dist/issue-comment-on-behalf-migration.test.js +146 -0
- package/dist/issue-comment-on-behalf-migration.test.js.map +1 -0
- package/dist/issue-thread-interaction-resolver-policy-migration.test.d.ts +2 -0
- package/dist/issue-thread-interaction-resolver-policy-migration.test.d.ts.map +1 -0
- package/dist/issue-thread-interaction-resolver-policy-migration.test.js +146 -0
- package/dist/issue-thread-interaction-resolver-policy-migration.test.js.map +1 -0
- package/dist/migrate.d.ts +2 -0
- package/dist/migrate.d.ts.map +1 -0
- package/dist/migrate.js +25 -0
- package/dist/migrate.js.map +1 -0
- package/dist/migration-runtime.d.ts +7 -0
- package/dist/migration-runtime.d.ts.map +1 -0
- package/dist/migration-runtime.js +159 -0
- package/dist/migration-runtime.js.map +1 -0
- package/dist/migration-safety-baseline.d.ts +135 -0
- package/dist/migration-safety-baseline.d.ts.map +1 -0
- package/dist/migration-safety-baseline.js +150 -0
- package/dist/migration-safety-baseline.js.map +1 -0
- package/dist/migration-snapshot-drift.test.d.ts +2 -0
- package/dist/migration-snapshot-drift.test.d.ts.map +1 -0
- package/dist/migration-snapshot-drift.test.js +55 -0
- package/dist/migration-snapshot-drift.test.js.map +1 -0
- package/dist/migration-status.d.ts +2 -0
- package/dist/migration-status.d.ts.map +1 -0
- package/dist/migration-status.js +55 -0
- package/dist/migration-status.js.map +1 -0
- package/dist/migrations/0000_mature_masked_marvel.sql +208 -0
- package/dist/migrations/0001_fast_northstar.sql +87 -0
- package/dist/migrations/0002_big_zaladane.sql +1 -0
- package/dist/migrations/0003_shallow_quentin_quire.sql +5 -0
- package/dist/migrations/0004_issue_identifiers.sql +28 -0
- package/dist/migrations/0005_chief_luke_cage.sql +19 -0
- package/dist/migrations/0006_overjoyed_mister_sinister.sql +36 -0
- package/dist/migrations/0007_new_quentin_quire.sql +20 -0
- package/dist/migrations/0008_amused_zzzax.sql +1 -0
- package/dist/migrations/0009_fast_jackal.sql +36 -0
- package/dist/migrations/0010_stale_justin_hammer.sql +37 -0
- package/dist/migrations/0011_windy_corsair.sql +18 -0
- package/dist/migrations/0012_perpetual_ser_duncan.sql +2 -0
- package/dist/migrations/0013_dashing_wasp.sql +4 -0
- package/dist/migrations/0014_many_mikhail_rasputin.sql +135 -0
- package/dist/migrations/0015_project_color_archived.sql +2 -0
- package/dist/migrations/0016_agent_icon.sql +1 -0
- package/dist/migrations/0017_tiresome_gabe_jones.sql +51 -0
- package/dist/migrations/0018_flat_sleepwalker.sql +26 -0
- package/dist/migrations/0019_public_victor_mancha.sql +18 -0
- package/dist/migrations/0020_white_anita_blake.sql +1 -0
- package/dist/migrations/0021_chief_vindicator.sql +1 -0
- package/dist/migrations/0022_company_brand_color.sql +1 -0
- package/dist/migrations/0023_fair_lethal_legion.sql +3 -0
- package/dist/migrations/0024_far_beast.sql +2 -0
- package/dist/migrations/0025_nasty_salo.sql +15 -0
- package/dist/migrations/0026_lying_pete_wisdom.sql +39 -0
- package/dist/migrations/0027_tranquil_tenebrous.sql +2 -0
- package/dist/migrations/0028_harsh_goliath.sql +54 -0
- package/dist/migrations/0029_plugin_tables.sql +177 -0
- package/dist/migrations/0030_rich_magneto.sql +12 -0
- package/dist/migrations/0031_zippy_magma.sql +51 -0
- package/dist/migrations/0032_pretty_doctor_octopus.sql +102 -0
- package/dist/migrations/0033_shiny_black_tarantula.sql +2 -0
- package/dist/migrations/0034_fat_dormammu.sql +2 -0
- package/dist/migrations/0035_marvelous_satana.sql +91 -0
- package/dist/migrations/0036_cheerful_nitro.sql +9 -0
- package/dist/migrations/0037_friendly_eddie_brock.sql +29 -0
- package/dist/migrations/0038_careless_iron_monger.sql +5 -0
- package/dist/migrations/0039_fat_magneto.sql +161 -0
- package/dist/migrations/0040_eager_shotgun.sql +5 -0
- package/dist/migrations/0041_curly_maria_hill.sql +1 -0
- package/dist/migrations/0042_spotty_the_renegades.sql +26 -0
- package/dist/migrations/0043_reflective_captain_universe.sql +6 -0
- package/dist/migrations/0044_illegal_toad.sql +56 -0
- package/dist/migrations/0045_workable_shockwave.sql +17 -0
- package/dist/migrations/0046_smooth_sentinels.sql +11 -0
- package/dist/migrations/0047_overjoyed_groot.sql +102 -0
- package/dist/migrations/0048_flashy_marrow.sql +1 -0
- package/dist/migrations/0049_flawless_abomination.sql +21 -0
- package/dist/migrations/0050_stiff_luckman.sql +1 -0
- package/dist/migrations/0051_young_korg.sql +5 -0
- package/dist/migrations/0052_mushy_trauma.sql +26 -0
- package/dist/migrations/0053_sharp_wild_child.sql +18 -0
- package/dist/migrations/0054_draft_routines.sql +2 -0
- package/dist/migrations/0055_kind_weapon_omega.sql +1 -0
- package/dist/migrations/0056_spooky_ultragirl.sql +22 -0
- package/dist/migrations/0057_tidy_join_requests.sql +57 -0
- package/dist/migrations/0058_wealthy_starbolt.sql +6 -0
- package/dist/migrations/0059_plugin_database_namespaces.sql +41 -0
- package/dist/migrations/0060_orange_annihilus.sql +50 -0
- package/dist/migrations/0061_lively_thor_girl.sql +3 -0
- package/dist/migrations/0062_routine_run_dispatch_fingerprint.sql +9 -0
- package/dist/migrations/0063_issue_thread_interactions.sql +65 -0
- package/dist/migrations/0064_issue_thread_interaction_idempotency.sql +4 -0
- package/dist/migrations/0065_environments.sql +50 -0
- package/dist/migrations/0066_issue_tree_holds.sql +107 -0
- package/dist/migrations/0067_agent_default_environment.sql +3 -0
- package/dist/migrations/0068_environment_local_driver_unique.sql +2 -0
- package/dist/migrations/0069_liveness_recovery_dedupe.sql +13 -0
- package/dist/migrations/0070_active_run_output_watchdog.sql +70 -0
- package/dist/migrations/0071_default_hire_approval_off.sql +1 -0
- package/dist/migrations/0072_large_sandman.sql +6 -0
- package/dist/migrations/0073_shiny_salo.sql +1 -0
- package/dist/migrations/0074_striped_genesis.sql +4 -0
- package/dist/migrations/0075_cultured_sebastian_shaw.sql +7 -0
- package/dist/migrations/0076_useful_elektra.sql +29 -0
- package/dist/migrations/0077_unusual_karnak.sql +140 -0
- package/dist/migrations/0078_white_darwin.sql +3 -0
- package/dist/migrations/0079_company_search_document_indexes.sql +2 -0
- package/dist/migrations/0080_company_search_fuzzystrmatch.sql +1 -0
- package/dist/migrations/0081_optimal_dormammu.sql +1 -0
- package/dist/migrations/0082_dry_vision.sql +124 -0
- package/dist/migrations/0083_company_secret_provider_configs.sql +51 -0
- package/dist/migrations/0084_issue_recovery_actions.sql +64 -0
- package/dist/migrations/0085_tranquil_the_executioner.sql +8 -0
- package/dist/migrations/0086_routine_env_runtime_contract.sql +8 -0
- package/dist/migrations/0087_backfill_environment_manage_human_defaults.sql +29 -0
- package/dist/migrations/0088_backfill_principal_access_compatibility.sql +75 -0
- package/dist/migrations/0089_cloud_upstreams.sql +71 -0
- package/dist/migrations/0090_resource_memberships.sql +55 -0
- package/dist/migrations/0091_old_swarm.sql +189 -0
- package/dist/migrations/0092_mighty_puma.sql +28 -0
- package/dist/migrations/0093_giant_green_goblin.sql +6 -0
- package/dist/migrations/0094_backfill_archived_company_agent_pauses.sql +10 -0
- package/dist/migrations/0095_issue_comment_tombstones.sql +15 -0
- package/dist/migrations/0096_document_annotation_issue_comment_links.sql +7 -0
- package/dist/migrations/0097_low_trust_source_trust.sql +4 -0
- package/dist/migrations/0098_project_icon.sql +1 -0
- package/dist/migrations/0099_skills_store_foundation.sql +121 -0
- package/dist/migrations/0100_skill_install_count_backfill.sql +3 -0
- package/dist/migrations/0101_plugin_company_id_tenant_isolation.sql +14 -0
- package/dist/migrations/0102_managed_sandbox_dedup_index.sql +33 -0
- package/dist/migrations/0103_agent_error_reason.sql +1 -0
- package/dist/migrations/0104_issue_watchdogs.sql +90 -0
- package/dist/migrations/0105_instance_scoped_environments.sql +170 -0
- package/dist/migrations/0106_external_object_references.sql +106 -0
- package/dist/migrations/0107_external_object_display_metadata.sql +5 -0
- package/dist/migrations/0108_workspace_operations_issue_id.sql +41 -0
- package/dist/migrations/0109_routine_description_annotations.sql +170 -0
- package/dist/migrations/0110_document_company_cascade.sql +31 -0
- package/dist/migrations/0111_backfill_skill_create_human_defaults.sql +29 -0
- package/dist/migrations/0112_rename_skill_create_permission_key.sql +30 -0
- package/dist/migrations/0113_pipeline_foundation.sql +335 -0
- package/dist/migrations/0114_pipeline_case_issue_unlinked_event.sql +3 -0
- package/dist/migrations/0115_pipeline_routine_origin.sql +3 -0
- package/dist/migrations/0116_pipeline_upstream_drift_event.sql +3 -0
- package/dist/migrations/0117_pipeline_transition_forced_event.sql +3 -0
- package/dist/migrations/0118_pipeline_case_agent_fanout.sql +3 -0
- package/dist/migrations/0119_pipeline_drift_acknowledged_event.sql +3 -0
- package/dist/migrations/0120_pipeline_stage_working_primitives.sql +19 -0
- package/dist/migrations/0121_pipeline_automation_retry_effects.sql +43 -0
- package/dist/migrations/0122_pipeline_case_documents.sql +28 -0
- package/dist/migrations/0123_document_annotation_source_trust.sql +1 -0
- package/dist/migrations/0124_agent_api_key_scope_config.sql +1 -0
- package/dist/migrations/0125_environment_custom_image_templates.sql +147 -0
- package/dist/migrations/0127_environment_custom_images_instance_scoped.sql +106 -0
- package/dist/migrations/0128_user_specific_secrets.sql +178 -0
- package/dist/migrations/0129_agent_api_key_responsible_user.sql +41 -0
- package/dist/migrations/0131_repair_run_responsible_user_context_refs.sql +67 -0
- package/dist/migrations/0132_issue_comment_derived_attribution_fast.sql +82 -0
- package/dist/migrations/0133_resource_membership_stars.sql +7 -0
- package/dist/migrations/0134_run_responsible_user_invariant.sql +211 -0
- package/dist/migrations/0135_repair_run_responsible_user_updated_at_sweep.sql +84 -0
- package/dist/migrations/0136_acpx_default_engine_migration.sql +97 -0
- package/dist/migrations/0137_skill_studio_server_foundation.sql +76 -0
- package/dist/migrations/0138_skill_studio_run_retention.sql +5 -0
- package/dist/migrations/0139_skill_studio_run_templates.sql +44 -0
- package/dist/migrations/0140_built_in_managed_resources.sql +43 -0
- package/dist/migrations/0141_heartbeat_runs_company_created_at_index.sql +2 -0
- package/dist/migrations/0142_company_search_sort_indexes.sql +3 -0
- package/dist/migrations/0143_cases_foundation.sql +248 -0
- package/dist/migrations/0144_case_document_annotations.sql +31 -0
- package/dist/migrations/0145_inbox_dismissal_snooze_kind.sql +15 -0
- package/dist/migrations/0146_routine_activity_gate.sql +3 -0
- package/dist/migrations/0147_cost_event_status.sql +1 -0
- package/dist/migrations/0148_tool_access_mcp_connections.sql +126 -0
- package/dist/migrations/0149_agent_access_phase2_contracts.sql +612 -0
- package/dist/migrations/0150_tool_invocation_catalog_snapshots.sql +2 -0
- package/dist/migrations/0151_tool_gateway_sessions.sql +38 -0
- package/dist/migrations/0152_tool_connection_application_no_cascade.sql +18 -0
- package/dist/migrations/0153_tool_stdio_command_templates.sql +32 -0
- package/dist/migrations/0154_tool_oauth_states.sql +36 -0
- package/dist/migrations/0155_tool_oauth_state_actor_binding.sql +5 -0
- package/dist/migrations/0156_tool_oauth_state_session_binding.sql +1 -0
- package/dist/migrations/0157_tool_profile_new_tools_review.sql +1 -0
- package/dist/migrations/0158_tool_invocation_connected_mcp_metadata.sql +4 -0
- package/dist/migrations/0159_named_mcp_gateways.sql +72 -0
- package/dist/migrations/0160_mcp_gateway_contract_expansion.sql +176 -0
- package/dist/migrations/0161_environment_custom_image_company_scope_repair.sql +8 -0
- package/dist/migrations/0162_tool_runtime_metric_counters.sql +27 -0
- package/dist/migrations/0163_secret_binding_projection_class.sql +2 -0
- package/dist/migrations/0164_plugin_config_company_scope.sql +117 -0
- package/dist/migrations/0165_connection_token_issuances.sql +64 -0
- package/dist/migrations/0166_smoke_lab_results.sql +51 -0
- package/dist/migrations/0167_environment_custom_image_instance_scope_cleanup.sql +32 -0
- package/dist/migrations/0168_tool_connection_installs.sql +56 -0
- package/dist/migrations/0169_tool_gateway_protocol_rate_limit_counters.sql +43 -0
- package/dist/migrations/0170_company_skill_policies.sql +12 -0
- package/dist/migrations/0171_issue_create_idempotency_keys.sql +19 -0
- package/dist/migrations/0172_inbox_archive_agent_policies.sql +42 -0
- package/dist/migrations/0173_inbox_policy_agent_cleanup.sql +22 -0
- package/dist/migrations/0174_folders.sql +46 -0
- package/dist/migrations/0175_nested_skill_folders.sql +232 -0
- package/dist/migrations/0176_issue_create_idempotency_key_expiry.sql +2 -0
- package/dist/migrations/0177_activity_log_responsible_user.sql +10 -0
- package/dist/migrations/0178_summary_slots.sql +37 -0
- package/dist/migrations/0179_summary_slot_failure_reason.sql +1 -0
- package/dist/migrations/0180_decision_training_examples.sql +23 -0
- package/dist/migrations/0181_decision_training_retention_policy.sql +2 -0
- package/dist/migrations/0182_connections_v3_schema_core.sql +74 -0
- package/dist/migrations/0183_connection_user_authorization_state.sql +6 -0
- package/dist/migrations/0184_routable_blocked.sql +3 -0
- package/dist/migrations/0185_status_cards.sql +111 -0
- package/dist/migrations/0186_status_card_compile_provenance.sql +3 -0
- package/dist/migrations/0187_status_card_pending_change_hash.sql +1 -0
- package/dist/migrations/0188_status_card_generation_issue_index.sql +1 -0
- package/dist/migrations/0189_status_card_agent.sql +6 -0
- package/dist/migrations/0190_status_card_single_prompt.sql +2 -0
- package/dist/migrations/0191_status_card_mentioned_issue_ids.sql +1 -0
- package/dist/migrations/0192_task_watchdog_stop_snapshots.sql +2 -0
- package/dist/migrations/0193_document_memberships.sql +15 -0
- package/dist/migrations/0194_company_skill_releases.sql +4 -0
- package/dist/migrations/0195_built_in_agent_unique_marker.sql +53 -0
- package/dist/migrations/0196_drop_cloud_upstream_tables.sql +9 -0
- package/dist/migrations/0197_decisions_v1.sql +106 -0
- package/dist/migrations/0198_decision_queues_and_triage.sql +161 -0
- package/dist/migrations/0199_decision_queue_composite_key.sql +10 -0
- package/dist/migrations/0200_yellow_maria_hill.sql +64 -0
- package/dist/migrations/0201_concerned_captain_midlands.sql +1 -0
- package/dist/migrations/0202_eminent_marvel_zombies.sql +1 -0
- package/dist/migrations/0203_interaction_resolver_governance.sql +8 -0
- package/dist/migrations/0204_interaction_addressee.sql +6 -0
- package/dist/migrations/0205_narrow_shiva.sql +10 -0
- package/dist/migrations/0206_review_path_recovery_idempotency_index.sql +2 -0
- package/dist/migrations/0207_moaning_amazoness.sql +94 -0
- package/dist/migrations/0208_keen_sharon_carter.sql +1 -0
- package/dist/migrations/0209_heartbeat_context_snapshot_indexes.sql +4 -0
- package/dist/migrations/0210_heartbeat_context_taskkey_index.sql +1 -0
- package/dist/migrations/0211_bright_morg.sql +1 -0
- package/dist/migrations/0212_onboarding_first_task_unique.sql +3 -0
- package/dist/migrations/0213_complete_mystique.sql +24 -0
- package/dist/migrations/0214_lively_lord_tyger.sql +22 -0
- package/dist/migrations/0215_flat_daimon_hellstrom.sql +1 -0
- package/dist/migrations/0216_company_onboarding_seeds.sql +42 -0
- package/dist/migrations/0217_yielding_starbolt.sql +21 -0
- package/dist/migrations/0218_mushy_jack_murdock.sql +38 -0
- package/dist/migrations/0219_runtime_service_exposure.sql +3 -0
- package/dist/migrations/0220_execution_workspace_runtime_leases.sql +26 -0
- package/dist/migrations/0221_swift_justin_hammer.sql +20 -0
- package/dist/migrations/0222_orphan_cleanup_env_reference_survives_delete.sql +4 -0
- package/dist/migrations/0223_robust_zaladane.sql +6 -0
- package/dist/migrations/0224_unified_adapter_auth_sessions.sql +18 -0
- package/dist/migrations/0225_drop_claude_setup_token_sessions.sql +5 -0
- package/dist/migrations/0226_tan_colossus.sql +2 -0
- package/dist/migrations/0227_modern_pandemic.sql +410 -0
- package/dist/migrations/0228_nasty_grim_reaper.sql +59 -0
- package/dist/migrations/0229_drop_company_brand_color_and_attachment_max_bytes.sql +7 -0
- package/dist/migrations/0230_better_auth_account_issuer.sql +23 -0
- package/dist/migrations/0231_remove_app_connection_wide_includes.sql +10 -0
- package/dist/migrations/0232_fixed_hannibal_king.sql +202 -0
- package/dist/migrations/0233_living_dreaming_celestial.sql +13 -0
- package/dist/migrations/0234_provider_trace_records.sql +31 -0
- package/dist/migrations/0235_heartbeat_run_event_sequence_uniqueness.sql +28 -0
- package/dist/migrations/0236_remove_cheap_model_profiles.sql +108 -0
- package/dist/migrations/0237_clammy_colonel_america.sql +52 -0
- package/dist/migrations/0238_graceful_infant_terrible.sql +7 -0
- package/dist/migrations/0239_sturdy_santa_claus.sql +38 -0
- package/dist/migrations/0240_pink_fantastic_four.sql +25 -0
- package/dist/migrations/0241_conscious_adam_destine.sql +1 -0
- package/dist/migrations/0242_wide_lightspeed.sql +1 -0
- package/dist/migrations/0243_sleepy_metal_master.sql +1 -0
- package/dist/migrations/0244_organic_meltdown.sql +1 -0
- package/dist/migrations/0245_misty_nightshade.sql +3 -0
- package/dist/migrations/0246_nostalgic_medusa.sql +19 -0
- package/dist/migrations/0247_even_moon_knight.sql +2 -0
- package/dist/migrations/0248_small_manta.sql +36 -0
- package/dist/migrations/0249_fast_silverclaw.sql +33 -0
- package/dist/migrations/0250_exotic_dakota_north.sql +2 -0
- package/dist/migrations/0251_narrow_mastermind.sql +1 -0
- package/dist/migrations/0252_friendly_kate_bishop.sql +1 -0
- package/dist/migrations/0253_real_firebrand.sql +1 -0
- package/dist/migrations/0254_military_calypso.sql +3 -0
- package/dist/migrations/0255_previous_captain_america.sql +290 -0
- package/dist/migrations/0256_married_king_cobra.sql +3 -0
- package/dist/migrations/0257_bizarre_the_hunter.sql +8 -0
- package/dist/migrations/0258_typical_sauron.sql +2 -0
- package/dist/migrations/0259_tan_chat.sql +1 -0
- package/dist/migrations/0260_chat_interaction_wakeup_idempotency.sql +106 -0
- package/dist/migrations/0261_faulty_iceman.sql +4 -0
- package/dist/migrations/0262_lying_avengers.sql +3 -0
- package/dist/migrations/0263_nebulous_iron_lad.sql +3 -0
- package/dist/migrations/0264_cynical_hellcat.sql +3 -0
- package/dist/migrations/0265_chat_interaction_wakeup_provenance.sql +80 -0
- package/dist/migrations/0266_brave_living_mummy.sql +56 -0
- package/dist/migrations/0267_warm_wild_child.sql +8 -0
- package/dist/migrations/0268_lively_runaways.sql +1 -0
- package/dist/migrations/0269_fearless_young_avengers.sql +15 -0
- package/dist/migrations/0270_harsh_queen_noir.sql +12 -0
- package/dist/migrations/0271_woozy_silver_surfer.sql +1 -0
- package/dist/migrations/0272_light_kate_bishop.sql +98 -0
- package/dist/migrations/0273_aromatic_moondragon.sql +3 -0
- package/dist/migrations/0274_agent_chat.sql +33 -0
- package/dist/migrations/0275_easy_dragon_man.sql +5 -0
- package/dist/migrations/0276_hard_mandroid.sql +77 -0
- package/dist/migrations/0277_uneven_lady_deathstrike.sql +47 -0
- package/dist/migrations/0278_nappy_colonel_america.sql +6 -0
- package/dist/migrations/0279_tired_deathstrike.sql +3 -0
- package/dist/migrations/0280_unique_genesis.sql +11 -0
- package/dist/migrations/0281_true_boom_boom.sql +14 -0
- package/dist/migrations/0282_colossal_shocker.sql +2 -0
- package/dist/migrations/0283_jittery_psynapse.sql +81 -0
- package/dist/migrations/0284_fearless_stranger.sql +27 -0
- package/dist/migrations/0285_safe_vampiro.sql +14 -0
- package/dist/migrations/0286_cheerful_toro.sql +2 -0
- package/dist/migrations/0287_slimy_smasher.sql +215 -0
- package/dist/migrations/0288_exotic_daimon_hellstrom.sql +1 -0
- package/dist/migrations/0289_talented_fabian_cortez.sql +23 -0
- package/dist/migrations/0290_dizzy_ultragirl.sql +2 -0
- package/dist/migrations/0291_petite_genesis.sql +1 -0
- package/dist/migrations/0292_heavy_oracle.sql +1 -0
- package/dist/migrations/0293_complete_alice.sql +13 -0
- package/dist/migrations/0294_serious_tinkerer.sql +61 -0
- package/dist/migrations/0295_glorious_jamie_braddock.sql +36 -0
- package/dist/migrations/0296_drop_user_keyboard_shortcuts.sql +5 -0
- package/dist/migrations/0297_browser_use_cloud.sql +155 -0
- package/dist/migrations/0298_conscious_secret_warriors.sql +119 -0
- package/dist/migrations/0299_powerful_devos.sql +1 -0
- package/dist/migrations/0300_broad_rattler.sql +1 -0
- package/dist/migrations/0301_chilly_marvel_apes.sql +1 -0
- package/dist/migrations/0302_public_captain_cross.sql +21 -0
- package/dist/migrations/0303_stiff_thaddeus_ross.sql +25 -0
- package/dist/migrations/0304_foamy_swordsman.sql +14 -0
- package/dist/migrations/0305_connection_agent_instructions.sql +16 -0
- package/dist/migrations/0306_absent_ser_duncan.sql +64 -0
- package/dist/migrations/0307_fuzzy_wolfpack.sql +23 -0
- package/dist/migrations/0308_sparkling_clea.sql +16 -0
- package/dist/migrations/0309_nervous_robin_chapel.sql +23 -0
- package/dist/migrations/0310_mighty_chameleon.sql +6 -0
- package/dist/migrations/0311_milky_timeslip.sql +2 -0
- package/dist/migrations/0312_slippery_meteorite.sql +6 -0
- package/dist/migrations/0313_jittery_klaw.sql +2 -0
- package/dist/migrations/0314_chilly_triton.sql +14 -0
- package/dist/migrations/0315_chunky_chamber.sql +3 -0
- package/dist/migrations/0316_lumpy_maria_hill.sql +157 -0
- package/dist/migrations/0317_colossal_otto_octavius.sql +24 -0
- package/dist/migrations/0318_supreme_garia.sql +1 -0
- package/dist/migrations/0319_curvy_shadow_king.sql +27 -0
- package/dist/migrations/0320_chubby_vin_gonzales.sql +7 -0
- package/dist/migrations/0321_familiar_titania.sql +4 -0
- package/dist/migrations/0322_cool_naoko.sql +3 -0
- package/dist/migrations/0323_whole_steel_serpent.sql +20 -0
- package/dist/migrations/0324_loving_the_hood.sql +77 -0
- package/dist/migrations/0325_agent_commentary.sql +33 -0
- package/dist/migrations/0326_mcp_file_transfers.sql +48 -0
- package/dist/migrations/0327_easy_eternity.sql +232 -0
- package/dist/migrations/0328_private_task_access.sql +278 -0
- package/dist/migrations/0329_private_task_draft_assets.sql +28 -0
- package/dist/migrations/0330_rapid_emma_frost.sql +44 -0
- package/dist/migrations/0331_premium_slayback.sql +81 -0
- package/dist/migrations/0332_messy_famine.sql +189 -0
- package/dist/migrations/0333_strong_blacklash.sql +23 -0
- package/dist/migrations/0334_heavy_captain_midlands.sql +15 -0
- package/dist/migrations/0335_daily_onslaught.sql +16 -0
- package/dist/migrations/0336_acoustic_human_fly.sql +1 -0
- package/dist/migrations/0337_reflective_kree.sql +98 -0
- package/dist/migrations/0338_petite_shockwave.sql +4 -0
- package/dist/migrations/0339_long_franklin_storm.sql +153 -0
- package/dist/migrations/0340_aberrant_machine_man.sql +6 -0
- package/dist/migrations/0341_blushing_screwball.sql +17 -0
- package/dist/migrations/0342_sad_proteus.sql +23 -0
- package/dist/migrations/0343_chunky_mentallo.sql +52 -0
- package/dist/migrations/0344_free_wolf_cub.sql +18 -0
- package/dist/migrations/0345_spooky_white_tiger.sql +7 -0
- package/dist/migrations/0346_panoramic_spyke.sql +74 -0
- package/dist/migrations/0347_little_night_nurse.sql +1 -0
- package/dist/migrations/0348_breezy_chat.sql +27 -0
- package/dist/migrations/0349_round_matthew_murdock.sql +3 -0
- package/dist/migrations/0350_finalize_orphaned_claimed_wakeups.sql +10 -0
- package/dist/migrations/0351_local_browser_connections.sql +35 -0
- package/dist/migrations/0352_lucky_marvel_apes.sql +12 -0
- package/dist/migrations/0353_supreme_whirlwind.sql +1 -0
- package/dist/migrations/0354_melodic_romulus.sql +4 -0
- package/dist/migrations/0355_overjoyed_ma_gnuci.sql +1 -0
- package/dist/migrations/0356_normal_thundra.sql +3 -0
- package/dist/migrations/meta/_journal.json +2491 -0
- package/dist/native-runner-recovery-migration.test.d.ts +2 -0
- package/dist/native-runner-recovery-migration.test.d.ts.map +1 -0
- package/dist/native-runner-recovery-migration.test.js +121 -0
- package/dist/native-runner-recovery-migration.test.js.map +1 -0
- package/dist/nested-skill-folders-migration.test.d.ts +2 -0
- package/dist/nested-skill-folders-migration.test.d.ts.map +1 -0
- package/dist/nested-skill-folders-migration.test.js +106 -0
- package/dist/nested-skill-folders-migration.test.js.map +1 -0
- package/dist/orphaned-claimed-wakeups-migration.test.d.ts +2 -0
- package/dist/orphaned-claimed-wakeups-migration.test.d.ts.map +1 -0
- package/dist/orphaned-claimed-wakeups-migration.test.js +67 -0
- package/dist/orphaned-claimed-wakeups-migration.test.js.map +1 -0
- package/dist/pipelines-schema.test.d.ts +2 -0
- package/dist/pipelines-schema.test.d.ts.map +1 -0
- package/dist/pipelines-schema.test.js +205 -0
- package/dist/pipelines-schema.test.js.map +1 -0
- package/dist/postgres-connection-recovery.test.d.ts +2 -0
- package/dist/postgres-connection-recovery.test.d.ts.map +1 -0
- package/dist/postgres-connection-recovery.test.js +35 -0
- package/dist/postgres-connection-recovery.test.js.map +1 -0
- package/dist/private-task-draft-assets-migration.test.d.ts +2 -0
- package/dist/private-task-draft-assets-migration.test.d.ts.map +1 -0
- package/dist/private-task-draft-assets-migration.test.js +35 -0
- package/dist/private-task-draft-assets-migration.test.js.map +1 -0
- package/dist/question-response-delivery-migration.test.d.ts +2 -0
- package/dist/question-response-delivery-migration.test.d.ts.map +1 -0
- package/dist/question-response-delivery-migration.test.js +62 -0
- package/dist/question-response-delivery-migration.test.js.map +1 -0
- package/dist/question-response-history-migration.test.d.ts +2 -0
- package/dist/question-response-history-migration.test.d.ts.map +1 -0
- package/dist/question-response-history-migration.test.js +53 -0
- package/dist/question-response-history-migration.test.js.map +1 -0
- package/dist/run-event-payload.d.ts +30 -0
- package/dist/run-event-payload.d.ts.map +1 -0
- package/dist/run-event-payload.js +57 -0
- package/dist/run-event-payload.js.map +1 -0
- package/dist/run-event-payload.test.d.ts +2 -0
- package/dist/run-event-payload.test.d.ts.map +1 -0
- package/dist/run-event-payload.test.js +46 -0
- package/dist/run-event-payload.test.js.map +1 -0
- package/dist/run-identity-migration.test.d.ts +2 -0
- package/dist/run-identity-migration.test.d.ts.map +1 -0
- package/dist/run-identity-migration.test.js +60 -0
- package/dist/run-identity-migration.test.js.map +1 -0
- package/dist/runtime-config.d.ts +16 -0
- package/dist/runtime-config.d.ts.map +1 -0
- package/dist/runtime-config.js +168 -0
- package/dist/runtime-config.js.map +1 -0
- package/dist/runtime-config.test.d.ts +2 -0
- package/dist/runtime-config.test.d.ts.map +1 -0
- package/dist/runtime-config.test.js +111 -0
- package/dist/runtime-config.test.js.map +1 -0
- package/dist/schema/accounting.d.ts +1282 -0
- package/dist/schema/accounting.d.ts.map +1 -0
- package/dist/schema/accounting.js +120 -0
- package/dist/schema/accounting.js.map +1 -0
- package/dist/schema/activity_log.d.ts +214 -0
- package/dist/schema/activity_log.d.ts.map +1 -0
- package/dist/schema/activity_log.js +26 -0
- package/dist/schema/activity_log.js.map +1 -0
- package/dist/schema/adapter_auth_sessions.d.ts +377 -0
- package/dist/schema/adapter_auth_sessions.d.ts.map +1 -0
- package/dist/schema/adapter_auth_sessions.js +88 -0
- package/dist/schema/adapter_auth_sessions.js.map +1 -0
- package/dist/schema/agent_api_keys.d.ts +204 -0
- package/dist/schema/agent_api_keys.d.ts.map +1 -0
- package/dist/schema/agent_api_keys.js +19 -0
- package/dist/schema/agent_api_keys.js.map +1 -0
- package/dist/schema/agent_commentary.d.ts +181 -0
- package/dist/schema/agent_commentary.d.ts.map +1 -0
- package/dist/schema/agent_commentary.js +24 -0
- package/dist/schema/agent_commentary.js.map +1 -0
- package/dist/schema/agent_config_revisions.d.ts +201 -0
- package/dist/schema/agent_config_revisions.d.ts.map +1 -0
- package/dist/schema/agent_config_revisions.js +20 -0
- package/dist/schema/agent_config_revisions.js.map +1 -0
- package/dist/schema/agent_identity_keys.d.ts +131 -0
- package/dist/schema/agent_identity_keys.d.ts.map +1 -0
- package/dist/schema/agent_identity_keys.js +20 -0
- package/dist/schema/agent_identity_keys.js.map +1 -0
- package/dist/schema/agent_instruction_revisions.d.ts +740 -0
- package/dist/schema/agent_instruction_revisions.d.ts.map +1 -0
- package/dist/schema/agent_instruction_revisions.js +80 -0
- package/dist/schema/agent_instruction_revisions.js.map +1 -0
- package/dist/schema/agent_memberships.d.ts +144 -0
- package/dist/schema/agent_memberships.d.ts.map +1 -0
- package/dist/schema/agent_memberships.js +19 -0
- package/dist/schema/agent_memberships.js.map +1 -0
- package/dist/schema/agent_runtime_state.d.ts +248 -0
- package/dist/schema/agent_runtime_state.d.ts.map +1 -0
- package/dist/schema/agent_runtime_state.js +23 -0
- package/dist/schema/agent_runtime_state.js.map +1 -0
- package/dist/schema/agent_task_sessions.d.ts +569 -0
- package/dist/schema/agent_task_sessions.d.ts.map +1 -0
- package/dist/schema/agent_task_sessions.js +51 -0
- package/dist/schema/agent_task_sessions.js.map +1 -0
- package/dist/schema/agent_wakeup_requests.d.ts +333 -0
- package/dist/schema/agent_wakeup_requests.d.ts.map +1 -0
- package/dist/schema/agent_wakeup_requests.js +65 -0
- package/dist/schema/agent_wakeup_requests.js.map +1 -0
- package/dist/schema/agents.d.ts +564 -0
- package/dist/schema/agents.d.ts.map +1 -0
- package/dist/schema/agents.js +43 -0
- package/dist/schema/agents.js.map +1 -0
- package/dist/schema/ai_connection_defaults.d.ts +132 -0
- package/dist/schema/ai_connection_defaults.d.ts.map +1 -0
- package/dist/schema/ai_connection_defaults.js +28 -0
- package/dist/schema/ai_connection_defaults.js.map +1 -0
- package/dist/schema/ai_connection_routing.d.ts +351 -0
- package/dist/schema/ai_connection_routing.d.ts.map +1 -0
- package/dist/schema/ai_connection_routing.js +37 -0
- package/dist/schema/ai_connection_routing.js.map +1 -0
- package/dist/schema/ai_provider_defaults.d.ts +114 -0
- package/dist/schema/ai_provider_defaults.d.ts.map +1 -0
- package/dist/schema/ai_provider_defaults.js +19 -0
- package/dist/schema/ai_provider_defaults.js.map +1 -0
- package/dist/schema/ai_subscriptions.d.ts +619 -0
- package/dist/schema/ai_subscriptions.d.ts.map +1 -0
- package/dist/schema/ai_subscriptions.js +61 -0
- package/dist/schema/ai_subscriptions.js.map +1 -0
- package/dist/schema/announcement_dismissals.d.ts +83 -0
- package/dist/schema/announcement_dismissals.d.ts.map +1 -0
- package/dist/schema/announcement_dismissals.js +15 -0
- package/dist/schema/announcement_dismissals.js.map +1 -0
- package/dist/schema/approval_comments.d.ts +144 -0
- package/dist/schema/approval_comments.d.ts.map +1 -0
- package/dist/schema/approval_comments.js +19 -0
- package/dist/schema/approval_comments.js.map +1 -0
- package/dist/schema/approvals.d.ts +214 -0
- package/dist/schema/approvals.d.ts.map +1 -0
- package/dist/schema/approvals.js +24 -0
- package/dist/schema/approvals.js.map +1 -0
- package/dist/schema/assets.d.ts +229 -0
- package/dist/schema/assets.d.ts.map +1 -0
- package/dist/schema/assets.js +23 -0
- package/dist/schema/assets.js.map +1 -0
- package/dist/schema/auth.d.ts +638 -0
- package/dist/schema/auth.d.ts.map +1 -0
- package/dist/schema/auth.js +61 -0
- package/dist/schema/auth.js.map +1 -0
- package/dist/schema/board_api_keys.d.ts +144 -0
- package/dist/schema/board_api_keys.d.ts.map +1 -0
- package/dist/schema/board_api_keys.js +16 -0
- package/dist/schema/board_api_keys.js.map +1 -0
- package/dist/schema/browser_use.d.ts +745 -0
- package/dist/schema/browser_use.d.ts.map +1 -0
- package/dist/schema/browser_use.js +104 -0
- package/dist/schema/browser_use.js.map +1 -0
- package/dist/schema/budget_incidents.d.ts +297 -0
- package/dist/schema/budget_incidents.d.ts.map +1 -0
- package/dist/schema/budget_incidents.js +29 -0
- package/dist/schema/budget_incidents.js.map +1 -0
- package/dist/schema/budget_policies.d.ts +331 -0
- package/dist/schema/budget_policies.d.ts.map +1 -0
- package/dist/schema/budget_policies.js +30 -0
- package/dist/schema/budget_policies.js.map +1 -0
- package/dist/schema/built_in_managed_resources.d.ts +197 -0
- package/dist/schema/built_in_managed_resources.d.ts.map +1 -0
- package/dist/schema/built_in_managed_resources.js +22 -0
- package/dist/schema/built_in_managed_resources.js.map +1 -0
- package/dist/schema/cases.d.ts +982 -0
- package/dist/schema/cases.d.ts.map +1 -0
- package/dist/schema/cases.js +122 -0
- package/dist/schema/cases.js.map +1 -0
- package/dist/schema/chat_channels.d.ts +5309 -0
- package/dist/schema/chat_channels.d.ts.map +1 -0
- package/dist/schema/chat_channels.js +1005 -0
- package/dist/schema/chat_channels.js.map +1 -0
- package/dist/schema/chat_completion_deliveries.d.ts +361 -0
- package/dist/schema/chat_completion_deliveries.d.ts.map +1 -0
- package/dist/schema/chat_completion_deliveries.js +36 -0
- package/dist/schema/chat_completion_deliveries.js.map +1 -0
- package/dist/schema/chat_discord_command_owners.d.ts +93 -0
- package/dist/schema/chat_discord_command_owners.d.ts.map +1 -0
- package/dist/schema/chat_discord_command_owners.js +19 -0
- package/dist/schema/chat_discord_command_owners.js.map +1 -0
- package/dist/schema/chat_github.d.ts +838 -0
- package/dist/schema/chat_github.d.ts.map +1 -0
- package/dist/schema/chat_github.js +117 -0
- package/dist/schema/chat_github.js.map +1 -0
- package/dist/schema/chat_slack_registrations.d.ts +287 -0
- package/dist/schema/chat_slack_registrations.d.ts.map +1 -0
- package/dist/schema/chat_slack_registrations.js +26 -0
- package/dist/schema/chat_slack_registrations.js.map +1 -0
- package/dist/schema/chat_teams_file_transfers.d.ts +639 -0
- package/dist/schema/chat_teams_file_transfers.d.ts.map +1 -0
- package/dist/schema/chat_teams_file_transfers.js +86 -0
- package/dist/schema/chat_teams_file_transfers.js.map +1 -0
- package/dist/schema/chat_telegram_draft_ids.d.ts +2 -0
- package/dist/schema/chat_telegram_draft_ids.d.ts.map +1 -0
- package/dist/schema/chat_telegram_draft_ids.js +14 -0
- package/dist/schema/chat_telegram_draft_ids.js.map +1 -0
- package/dist/schema/chat_voice_callbacks.d.ts +128 -0
- package/dist/schema/chat_voice_callbacks.d.ts.map +1 -0
- package/dist/schema/chat_voice_callbacks.js +18 -0
- package/dist/schema/chat_voice_callbacks.js.map +1 -0
- package/dist/schema/chat_voice_inbound.d.ts +461 -0
- package/dist/schema/chat_voice_inbound.d.ts.map +1 -0
- package/dist/schema/chat_voice_inbound.js +45 -0
- package/dist/schema/chat_voice_inbound.js.map +1 -0
- package/dist/schema/chat_voice_reports.d.ts +184 -0
- package/dist/schema/chat_voice_reports.d.ts.map +1 -0
- package/dist/schema/chat_voice_reports.js +24 -0
- package/dist/schema/chat_voice_reports.js.map +1 -0
- package/dist/schema/chat_voice_sessions.d.ts +730 -0
- package/dist/schema/chat_voice_sessions.d.ts.map +1 -0
- package/dist/schema/chat_voice_sessions.js +85 -0
- package/dist/schema/chat_voice_sessions.js.map +1 -0
- package/dist/schema/cli_auth_challenges.d.ts +263 -0
- package/dist/schema/cli_auth_challenges.d.ts.map +1 -0
- package/dist/schema/cli_auth_challenges.js +26 -0
- package/dist/schema/cli_auth_challenges.js.map +1 -0
- package/dist/schema/companies.d.ts +369 -0
- package/dist/schema/companies.d.ts.map +1 -0
- package/dist/schema/companies.js +34 -0
- package/dist/schema/companies.js.map +1 -0
- package/dist/schema/company_logos.d.ts +93 -0
- package/dist/schema/company_logos.d.ts.map +1 -0
- package/dist/schema/company_logos.js +14 -0
- package/dist/schema/company_logos.js.map +1 -0
- package/dist/schema/company_memberships.d.ts +144 -0
- package/dist/schema/company_memberships.d.ts.map +1 -0
- package/dist/schema/company_memberships.js +17 -0
- package/dist/schema/company_memberships.js.map +1 -0
- package/dist/schema/company_onboarding_seeds.d.ts +257 -0
- package/dist/schema/company_onboarding_seeds.d.ts.map +1 -0
- package/dist/schema/company_onboarding_seeds.js +35 -0
- package/dist/schema/company_onboarding_seeds.js.map +1 -0
- package/dist/schema/company_secret_bindings.d.ts +229 -0
- package/dist/schema/company_secret_bindings.d.ts.map +1 -0
- package/dist/schema/company_secret_bindings.js +24 -0
- package/dist/schema/company_secret_bindings.js.map +1 -0
- package/dist/schema/company_secret_proposals.d.ts +575 -0
- package/dist/schema/company_secret_proposals.d.ts.map +1 -0
- package/dist/schema/company_secret_proposals.js +69 -0
- package/dist/schema/company_secret_proposals.js.map +1 -0
- package/dist/schema/company_secret_provider_configs.d.ts +284 -0
- package/dist/schema/company_secret_provider_configs.d.ts.map +1 -0
- package/dist/schema/company_secret_provider_configs.js +29 -0
- package/dist/schema/company_secret_provider_configs.js.map +1 -0
- package/dist/schema/company_secret_versions.d.ts +231 -0
- package/dist/schema/company_secret_versions.d.ts.map +1 -0
- package/dist/schema/company_secret_versions.js +24 -0
- package/dist/schema/company_secret_versions.js.map +1 -0
- package/dist/schema/company_secrets.d.ts +401 -0
- package/dist/schema/company_secrets.d.ts.map +1 -0
- package/dist/schema/company_secrets.js +57 -0
- package/dist/schema/company_secrets.js.map +1 -0
- package/dist/schema/company_skill_policies.d.ts +131 -0
- package/dist/schema/company_skill_policies.d.ts.map +1 -0
- package/dist/schema/company_skill_policies.js +12 -0
- package/dist/schema/company_skill_policies.js.map +1 -0
- package/dist/schema/company_skill_sources.d.ts +498 -0
- package/dist/schema/company_skill_sources.d.ts.map +1 -0
- package/dist/schema/company_skill_sources.js +43 -0
- package/dist/schema/company_skill_sources.js.map +1 -0
- package/dist/schema/company_skills.d.ts +1860 -0
- package/dist/schema/company_skills.d.ts.map +1 -0
- package/dist/schema/company_skills.js +157 -0
- package/dist/schema/company_skills.js.map +1 -0
- package/dist/schema/company_transfer_runs.d.ts +297 -0
- package/dist/schema/company_transfer_runs.d.ts.map +1 -0
- package/dist/schema/company_transfer_runs.js +42 -0
- package/dist/schema/company_transfer_runs.js.map +1 -0
- package/dist/schema/company_user_sidebar_preferences.d.ts +112 -0
- package/dist/schema/company_user_sidebar_preferences.d.ts.map +1 -0
- package/dist/schema/company_user_sidebar_preferences.js +15 -0
- package/dist/schema/company_user_sidebar_preferences.js.map +1 -0
- package/dist/schema/completion_contracts.d.ts +265 -0
- package/dist/schema/completion_contracts.d.ts.map +1 -0
- package/dist/schema/completion_contracts.js +35 -0
- package/dist/schema/completion_contracts.js.map +1 -0
- package/dist/schema/connection_event_deliveries.d.ts +291 -0
- package/dist/schema/connection_event_deliveries.d.ts.map +1 -0
- package/dist/schema/connection_event_deliveries.js +31 -0
- package/dist/schema/connection_event_deliveries.js.map +1 -0
- package/dist/schema/connection_intent_deliveries.d.ts +94 -0
- package/dist/schema/connection_intent_deliveries.d.ts.map +1 -0
- package/dist/schema/connection_intent_deliveries.js +12 -0
- package/dist/schema/connection_intent_deliveries.js.map +1 -0
- package/dist/schema/cost_events.d.ts +469 -0
- package/dist/schema/cost_events.d.ts.map +1 -0
- package/dist/schema/cost_events.js +52 -0
- package/dist/schema/cost_events.js.map +1 -0
- package/dist/schema/decision_models.d.ts +579 -0
- package/dist/schema/decision_models.d.ts.map +1 -0
- package/dist/schema/decision_models.js +50 -0
- package/dist/schema/decision_models.js.map +1 -0
- package/dist/schema/decision_queues.d.ts +1510 -0
- package/dist/schema/decision_queues.d.ts.map +1 -0
- package/dist/schema/decision_queues.js +161 -0
- package/dist/schema/decision_queues.js.map +1 -0
- package/dist/schema/decision_training_examples.d.ts +255 -0
- package/dist/schema/decision_training_examples.d.ts.map +1 -0
- package/dist/schema/decision_training_examples.js +27 -0
- package/dist/schema/decision_training_examples.js.map +1 -0
- package/dist/schema/decisions.d.ts +824 -0
- package/dist/schema/decisions.d.ts.map +1 -0
- package/dist/schema/decisions.js +81 -0
- package/dist/schema/decisions.js.map +1 -0
- package/dist/schema/document_annotation_anchor_snapshots.d.ts +255 -0
- package/dist/schema/document_annotation_anchor_snapshots.d.ts.map +1 -0
- package/dist/schema/document_annotation_anchor_snapshots.js +25 -0
- package/dist/schema/document_annotation_anchor_snapshots.js.map +1 -0
- package/dist/schema/document_annotation_comments.d.ts +285 -0
- package/dist/schema/document_annotation_comments.d.ts.map +1 -0
- package/dist/schema/document_annotation_comments.js +39 -0
- package/dist/schema/document_annotation_comments.js.map +1 -0
- package/dist/schema/document_annotation_threads.d.ts +510 -0
- package/dist/schema/document_annotation_threads.d.ts.map +1 -0
- package/dist/schema/document_annotation_threads.js +52 -0
- package/dist/schema/document_annotation_threads.js.map +1 -0
- package/dist/schema/document_memberships.d.ts +127 -0
- package/dist/schema/document_memberships.d.ts.map +1 -0
- package/dist/schema/document_memberships.js +16 -0
- package/dist/schema/document_memberships.js.map +1 -0
- package/dist/schema/document_revisions.d.ts +212 -0
- package/dist/schema/document_revisions.d.ts.map +1 -0
- package/dist/schema/document_revisions.js +23 -0
- package/dist/schema/document_revisions.js.map +1 -0
- package/dist/schema/documents.d.ts +300 -0
- package/dist/schema/documents.d.ts.map +1 -0
- package/dist/schema/documents.js +28 -0
- package/dist/schema/documents.js.map +1 -0
- package/dist/schema/dot_runner.d.ts +980 -0
- package/dist/schema/dot_runner.d.ts.map +1 -0
- package/dist/schema/dot_runner.js +82 -0
- package/dist/schema/dot_runner.js.map +1 -0
- package/dist/schema/email.d.ts +550 -0
- package/dist/schema/email.d.ts.map +1 -0
- package/dist/schema/email.js +80 -0
- package/dist/schema/email.js.map +1 -0
- package/dist/schema/environment_custom_image_setup_sessions.d.ts +351 -0
- package/dist/schema/environment_custom_image_setup_sessions.d.ts.map +1 -0
- package/dist/schema/environment_custom_image_setup_sessions.js +39 -0
- package/dist/schema/environment_custom_image_setup_sessions.js.map +1 -0
- package/dist/schema/environment_custom_image_templates.d.ts +284 -0
- package/dist/schema/environment_custom_image_templates.d.ts.map +1 -0
- package/dist/schema/environment_custom_image_templates.js +32 -0
- package/dist/schema/environment_custom_image_templates.js.map +1 -0
- package/dist/schema/environment_leases.d.ts +333 -0
- package/dist/schema/environment_leases.d.ts.map +1 -0
- package/dist/schema/environment_leases.js +42 -0
- package/dist/schema/environment_leases.js.map +1 -0
- package/dist/schema/environments.d.ts +184 -0
- package/dist/schema/environments.d.ts.map +1 -0
- package/dist/schema/environments.js +24 -0
- package/dist/schema/environments.js.map +1 -0
- package/dist/schema/execution_workspace_runtime_leases.d.ts +248 -0
- package/dist/schema/execution_workspace_runtime_leases.d.ts.map +1 -0
- package/dist/schema/execution_workspace_runtime_leases.js +35 -0
- package/dist/schema/execution_workspace_runtime_leases.js.map +1 -0
- package/dist/schema/execution_workspaces.d.ts +418 -0
- package/dist/schema/execution_workspaces.d.ts.map +1 -0
- package/dist/schema/execution_workspaces.js +39 -0
- package/dist/schema/execution_workspaces.js.map +1 -0
- package/dist/schema/external_object_mentions.d.ts +337 -0
- package/dist/schema/external_object_mentions.d.ts.map +1 -0
- package/dist/schema/external_object_mentions.js +34 -0
- package/dist/schema/external_object_mentions.js.map +1 -0
- package/dist/schema/external_objects.d.ts +543 -0
- package/dist/schema/external_objects.d.ts.map +1 -0
- package/dist/schema/external_objects.js +43 -0
- package/dist/schema/external_objects.js.map +1 -0
- package/dist/schema/fast_responses.d.ts +662 -0
- package/dist/schema/fast_responses.d.ts.map +1 -0
- package/dist/schema/fast_responses.js +65 -0
- package/dist/schema/fast_responses.js.map +1 -0
- package/dist/schema/feedback_exports.d.ts +450 -0
- package/dist/schema/feedback_exports.d.ts.map +1 -0
- package/dist/schema/feedback_exports.js +41 -0
- package/dist/schema/feedback_exports.js.map +1 -0
- package/dist/schema/feedback_votes.d.ts +246 -0
- package/dist/schema/feedback_votes.d.ts.map +1 -0
- package/dist/schema/feedback_votes.js +25 -0
- package/dist/schema/feedback_votes.js.map +1 -0
- package/dist/schema/finance_events.d.ts +503 -0
- package/dist/schema/finance_events.d.ts.map +1 -0
- package/dist/schema/finance_events.js +48 -0
- package/dist/schema/finance_events.js.map +1 -0
- package/dist/schema/folders.d.ts +198 -0
- package/dist/schema/folders.d.ts.map +1 -0
- package/dist/schema/folders.js +29 -0
- package/dist/schema/folders.js.map +1 -0
- package/dist/schema/goals.d.ts +178 -0
- package/dist/schema/goals.d.ts.map +1 -0
- package/dist/schema/goals.js +18 -0
- package/dist/schema/goals.js.map +1 -0
- package/dist/schema/heartbeat_run_events.d.ts +299 -0
- package/dist/schema/heartbeat_run_events.d.ts.map +1 -0
- package/dist/schema/heartbeat_run_events.js +45 -0
- package/dist/schema/heartbeat_run_events.js.map +1 -0
- package/dist/schema/heartbeat_run_watchdog_decisions.d.ts +195 -0
- package/dist/schema/heartbeat_run_watchdog_decisions.d.ts.map +1 -0
- package/dist/schema/heartbeat_run_watchdog_decisions.js +22 -0
- package/dist/schema/heartbeat_run_watchdog_decisions.js.map +1 -0
- package/dist/schema/heartbeat_runs.d.ts +1344 -0
- package/dist/schema/heartbeat_runs.d.ts.map +1 -0
- package/dist/schema/heartbeat_runs.js +124 -0
- package/dist/schema/heartbeat_runs.js.map +1 -0
- package/dist/schema/inbox_dismissals.d.ts +163 -0
- package/dist/schema/inbox_dismissals.d.ts.map +1 -0
- package/dist/schema/inbox_dismissals.js +18 -0
- package/dist/schema/inbox_dismissals.js.map +1 -0
- package/dist/schema/index.d.ts +172 -0
- package/dist/schema/index.d.ts.map +1 -0
- package/dist/schema/index.js +172 -0
- package/dist/schema/index.js.map +1 -0
- package/dist/schema/instance_settings.d.ts +150 -0
- package/dist/schema/instance_settings.d.ts.map +1 -0
- package/dist/schema/instance_settings.js +15 -0
- package/dist/schema/instance_settings.js.map +1 -0
- package/dist/schema/instance_user_roles.d.ts +93 -0
- package/dist/schema/instance_user_roles.d.ts.map +1 -0
- package/dist/schema/instance_user_roles.js +12 -0
- package/dist/schema/instance_user_roles.js.map +1 -0
- package/dist/schema/invites.d.ts +214 -0
- package/dist/schema/invites.d.ts.map +1 -0
- package/dist/schema/invites.js +20 -0
- package/dist/schema/invites.js.map +1 -0
- package/dist/schema/issue_access_grants.d.ts +161 -0
- package/dist/schema/issue_access_grants.d.ts.map +1 -0
- package/dist/schema/issue_access_grants.js +21 -0
- package/dist/schema/issue_access_grants.js.map +1 -0
- package/dist/schema/issue_approvals.d.ts +110 -0
- package/dist/schema/issue_approvals.d.ts.map +1 -0
- package/dist/schema/issue_approvals.js +19 -0
- package/dist/schema/issue_approvals.js.map +1 -0
- package/dist/schema/issue_attachments.d.ts +144 -0
- package/dist/schema/issue_attachments.d.ts.map +1 -0
- package/dist/schema/issue_attachments.js +24 -0
- package/dist/schema/issue_attachments.js.map +1 -0
- package/dist/schema/issue_autonomy_windows.d.ts +250 -0
- package/dist/schema/issue_autonomy_windows.d.ts.map +1 -0
- package/dist/schema/issue_autonomy_windows.js +30 -0
- package/dist/schema/issue_autonomy_windows.js.map +1 -0
- package/dist/schema/issue_comments.d.ts +482 -0
- package/dist/schema/issue_comments.d.ts.map +1 -0
- package/dist/schema/issue_comments.js +48 -0
- package/dist/schema/issue_comments.js.map +1 -0
- package/dist/schema/issue_create_idempotency_keys.d.ts +93 -0
- package/dist/schema/issue_create_idempotency_keys.d.ts.map +1 -0
- package/dist/schema/issue_create_idempotency_keys.js +15 -0
- package/dist/schema/issue_create_idempotency_keys.js.map +1 -0
- package/dist/schema/issue_documents.d.ts +127 -0
- package/dist/schema/issue_documents.d.ts.map +1 -0
- package/dist/schema/issue_documents.js +18 -0
- package/dist/schema/issue_documents.js.map +1 -0
- package/dist/schema/issue_execution_decisions.d.ts +212 -0
- package/dist/schema/issue_execution_decisions.d.ts.map +1 -0
- package/dist/schema/issue_execution_decisions.js +23 -0
- package/dist/schema/issue_execution_decisions.js.map +1 -0
- package/dist/schema/issue_inbox_archives.d.ts +180 -0
- package/dist/schema/issue_inbox_archives.d.ts.map +1 -0
- package/dist/schema/issue_inbox_archives.js +25 -0
- package/dist/schema/issue_inbox_archives.js.map +1 -0
- package/dist/schema/issue_labels.d.ts +76 -0
- package/dist/schema/issue_labels.d.ts.map +1 -0
- package/dist/schema/issue_labels.js +16 -0
- package/dist/schema/issue_labels.js.map +1 -0
- package/dist/schema/issue_plan_decompositions.d.ts +284 -0
- package/dist/schema/issue_plan_decompositions.d.ts.map +1 -0
- package/dist/schema/issue_plan_decompositions.js +36 -0
- package/dist/schema/issue_plan_decompositions.js.map +1 -0
- package/dist/schema/issue_question_response_deliveries.d.ts +320 -0
- package/dist/schema/issue_question_response_deliveries.d.ts.map +1 -0
- package/dist/schema/issue_question_response_deliveries.js +42 -0
- package/dist/schema/issue_question_response_deliveries.js.map +1 -0
- package/dist/schema/issue_read_states.d.ts +127 -0
- package/dist/schema/issue_read_states.d.ts.map +1 -0
- package/dist/schema/issue_read_states.js +17 -0
- package/dist/schema/issue_read_states.js.map +1 -0
- package/dist/schema/issue_recovery_actions.d.ts +456 -0
- package/dist/schema/issue_recovery_actions.d.ts.map +1 -0
- package/dist/schema/issue_recovery_actions.js +44 -0
- package/dist/schema/issue_recovery_actions.js.map +1 -0
- package/dist/schema/issue_reference_mentions.d.ts +180 -0
- package/dist/schema/issue_reference_mentions.d.ts.map +1 -0
- package/dist/schema/issue_reference_mentions.js +23 -0
- package/dist/schema/issue_reference_mentions.js.map +1 -0
- package/dist/schema/issue_relations.d.ts +163 -0
- package/dist/schema/issue_relations.d.ts.map +1 -0
- package/dist/schema/issue_relations.js +21 -0
- package/dist/schema/issue_relations.js.map +1 -0
- package/dist/schema/issue_share_links.d.ts +195 -0
- package/dist/schema/issue_share_links.d.ts.map +1 -0
- package/dist/schema/issue_share_links.js +24 -0
- package/dist/schema/issue_share_links.js.map +1 -0
- package/dist/schema/issue_thread_interaction_owner_relays.d.ts +198 -0
- package/dist/schema/issue_thread_interaction_owner_relays.d.ts.map +1 -0
- package/dist/schema/issue_thread_interaction_owner_relays.js +23 -0
- package/dist/schema/issue_thread_interaction_owner_relays.js.map +1 -0
- package/dist/schema/issue_thread_interactions.d.ts +535 -0
- package/dist/schema/issue_thread_interactions.d.ts.map +1 -0
- package/dist/schema/issue_thread_interactions.js +65 -0
- package/dist/schema/issue_thread_interactions.js.map +1 -0
- package/dist/schema/issue_tree_hold_members.d.ts +280 -0
- package/dist/schema/issue_tree_hold_members.d.ts.map +1 -0
- package/dist/schema/issue_tree_hold_members.js +29 -0
- package/dist/schema/issue_tree_hold_members.js.map +1 -0
- package/dist/schema/issue_tree_holds.d.ts +352 -0
- package/dist/schema/issue_tree_holds.d.ts.map +1 -0
- package/dist/schema/issue_tree_holds.js +31 -0
- package/dist/schema/issue_tree_holds.js.map +1 -0
- package/dist/schema/issue_watchdogs.d.ts +382 -0
- package/dist/schema/issue_watchdogs.d.ts.map +1 -0
- package/dist/schema/issue_watchdogs.js +38 -0
- package/dist/schema/issue_watchdogs.js.map +1 -0
- package/dist/schema/issue_work_products.d.ts +370 -0
- package/dist/schema/issue_work_products.d.ts.map +1 -0
- package/dist/schema/issue_work_products.js +38 -0
- package/dist/schema/issue_work_products.js.map +1 -0
- package/dist/schema/issues.d.ts +1130 -0
- package/dist/schema/issues.d.ts.map +1 -0
- package/dist/schema/issues.js +165 -0
- package/dist/schema/issues.js.map +1 -0
- package/dist/schema/join_requests.d.ts +384 -0
- package/dist/schema/join_requests.d.ts.map +1 -0
- package/dist/schema/join_requests.js +39 -0
- package/dist/schema/join_requests.js.map +1 -0
- package/dist/schema/labels.d.ts +110 -0
- package/dist/schema/labels.d.ts.map +1 -0
- package/dist/schema/labels.js +14 -0
- package/dist/schema/labels.js.map +1 -0
- package/dist/schema/local_browser_connections.d.ts +429 -0
- package/dist/schema/local_browser_connections.d.ts.map +1 -0
- package/dist/schema/local_browser_connections.js +35 -0
- package/dist/schema/local_browser_connections.js.map +1 -0
- package/dist/schema/managed_agent_profiles.d.ts +339 -0
- package/dist/schema/managed_agent_profiles.d.ts.map +1 -0
- package/dist/schema/managed_agent_profiles.js +44 -0
- package/dist/schema/managed_agent_profiles.js.map +1 -0
- package/dist/schema/model_cooldowns.d.ts +144 -0
- package/dist/schema/model_cooldowns.d.ts.map +1 -0
- package/dist/schema/model_cooldowns.js +16 -0
- package/dist/schema/model_cooldowns.js.map +1 -0
- package/dist/schema/native_run_finalizations.d.ts +403 -0
- package/dist/schema/native_run_finalizations.d.ts.map +1 -0
- package/dist/schema/native_run_finalizations.js +91 -0
- package/dist/schema/native_run_finalizations.js.map +1 -0
- package/dist/schema/native_run_results.d.ts +248 -0
- package/dist/schema/native_run_results.d.ts.map +1 -0
- package/dist/schema/native_run_results.js +56 -0
- package/dist/schema/native_run_results.js.map +1 -0
- package/dist/schema/pipeline_case_events.d.ts +231 -0
- package/dist/schema/pipeline_case_events.d.ts.map +1 -0
- package/dist/schema/pipeline_case_events.js +53 -0
- package/dist/schema/pipeline_case_events.js.map +1 -0
- package/dist/schema/pipeline_cases.d.ts +1388 -0
- package/dist/schema/pipeline_cases.d.ts.map +1 -0
- package/dist/schema/pipeline_cases.js +138 -0
- package/dist/schema/pipeline_cases.js.map +1 -0
- package/dist/schema/pipelines.d.ts +500 -0
- package/dist/schema/pipelines.d.ts.map +1 -0
- package/dist/schema/pipelines.js +52 -0
- package/dist/schema/pipelines.js.map +1 -0
- package/dist/schema/pixels_office_seats.d.ts +127 -0
- package/dist/schema/pixels_office_seats.d.ts.map +1 -0
- package/dist/schema/pixels_office_seats.js +16 -0
- package/dist/schema/pixels_office_seats.js.map +1 -0
- package/dist/schema/plugin_company_settings.d.ts +159 -0
- package/dist/schema/plugin_company_settings.d.ts.map +1 -0
- package/dist/schema/plugin_company_settings.js +35 -0
- package/dist/schema/plugin_company_settings.js.map +1 -0
- package/dist/schema/plugin_config.d.ts +139 -0
- package/dist/schema/plugin_config.d.ts.map +1 -0
- package/dist/schema/plugin_config.js +29 -0
- package/dist/schema/plugin_config.js.map +1 -0
- package/dist/schema/plugin_database.d.ts +357 -0
- package/dist/schema/plugin_database.d.ts.map +1 -0
- package/dist/schema/plugin_database.js +51 -0
- package/dist/schema/plugin_database.js.map +1 -0
- package/dist/schema/plugin_entities.d.ts +230 -0
- package/dist/schema/plugin_entities.d.ts.map +1 -0
- package/dist/schema/plugin_entities.js +52 -0
- package/dist/schema/plugin_entities.js.map +1 -0
- package/dist/schema/plugin_jobs.d.ts +409 -0
- package/dist/schema/plugin_jobs.d.ts.map +1 -0
- package/dist/schema/plugin_jobs.js +87 -0
- package/dist/schema/plugin_jobs.js.map +1 -0
- package/dist/schema/plugin_lifecycle_acknowledgments.d.ts +59 -0
- package/dist/schema/plugin_lifecycle_acknowledgments.d.ts.map +1 -0
- package/dist/schema/plugin_lifecycle_acknowledgments.js +12 -0
- package/dist/schema/plugin_lifecycle_acknowledgments.js.map +1 -0
- package/dist/schema/plugin_logs.d.ts +142 -0
- package/dist/schema/plugin_logs.d.ts.map +1 -0
- package/dist/schema/plugin_logs.js +33 -0
- package/dist/schema/plugin_logs.js.map +1 -0
- package/dist/schema/plugin_managed_resources.d.ts +180 -0
- package/dist/schema/plugin_managed_resources.d.ts.map +1 -0
- package/dist/schema/plugin_managed_resources.js +25 -0
- package/dist/schema/plugin_managed_resources.js.map +1 -0
- package/dist/schema/plugin_state.d.ts +169 -0
- package/dist/schema/plugin_state.d.ts.map +1 -0
- package/dist/schema/plugin_state.js +68 -0
- package/dist/schema/plugin_state.js.map +1 -0
- package/dist/schema/plugin_webhooks.d.ts +256 -0
- package/dist/schema/plugin_webhooks.d.ts.map +1 -0
- package/dist/schema/plugin_webhooks.js +56 -0
- package/dist/schema/plugin_webhooks.js.map +1 -0
- package/dist/schema/plugins.d.ts +246 -0
- package/dist/schema/plugins.d.ts.map +1 -0
- package/dist/schema/plugins.js +31 -0
- package/dist/schema/plugins.js.map +1 -0
- package/dist/schema/principal_permission_grants.d.ts +163 -0
- package/dist/schema/principal_permission_grants.d.ts.map +1 -0
- package/dist/schema/principal_permission_grants.js +17 -0
- package/dist/schema/principal_permission_grants.js.map +1 -0
- package/dist/schema/project_access_members.d.ts +111 -0
- package/dist/schema/project_access_members.d.ts.map +1 -0
- package/dist/schema/project_access_members.js +18 -0
- package/dist/schema/project_access_members.js.map +1 -0
- package/dist/schema/project_goals.d.ts +93 -0
- package/dist/schema/project_goals.d.ts.map +1 -0
- package/dist/schema/project_goals.js +17 -0
- package/dist/schema/project_goals.js.map +1 -0
- package/dist/schema/project_memberships.d.ts +144 -0
- package/dist/schema/project_memberships.d.ts.map +1 -0
- package/dist/schema/project_memberships.js +19 -0
- package/dist/schema/project_memberships.js.map +1 -0
- package/dist/schema/project_workspaces.d.ts +333 -0
- package/dist/schema/project_workspaces.d.ts.map +1 -0
- package/dist/schema/project_workspaces.js +32 -0
- package/dist/schema/project_workspaces.js.map +1 -0
- package/dist/schema/projects.d.ts +353 -0
- package/dist/schema/projects.d.ts.map +1 -0
- package/dist/schema/projects.js +34 -0
- package/dist/schema/projects.js.map +1 -0
- package/dist/schema/provider_trace_records.d.ts +264 -0
- package/dist/schema/provider_trace_records.d.ts.map +1 -0
- package/dist/schema/provider_trace_records.js +34 -0
- package/dist/schema/provider_trace_records.js.map +1 -0
- package/dist/schema/public_mcp.d.ts +2100 -0
- package/dist/schema/public_mcp.d.ts.map +1 -0
- package/dist/schema/public_mcp.js +191 -0
- package/dist/schema/public_mcp.js.map +1 -0
- package/dist/schema/remote_agent_profiles.d.ts +238 -0
- package/dist/schema/remote_agent_profiles.d.ts.map +1 -0
- package/dist/schema/remote_agent_profiles.js +31 -0
- package/dist/schema/remote_agent_profiles.js.map +1 -0
- package/dist/schema/resource_lifecycle_events.d.ts +115 -0
- package/dist/schema/resource_lifecycle_events.d.ts.map +1 -0
- package/dist/schema/resource_lifecycle_events.js +19 -0
- package/dist/schema/resource_lifecycle_events.js.map +1 -0
- package/dist/schema/routine_documents.d.ts +127 -0
- package/dist/schema/routine_documents.d.ts.map +1 -0
- package/dist/schema/routine_documents.js +18 -0
- package/dist/schema/routine_documents.js.map +1 -0
- package/dist/schema/routines.d.ts +1611 -0
- package/dist/schema/routines.d.ts.map +1 -0
- package/dist/schema/routines.js +140 -0
- package/dist/schema/routines.js.map +1 -0
- package/dist/schema/run_identity_contexts.d.ts +248 -0
- package/dist/schema/run_identity_contexts.d.ts.map +1 -0
- package/dist/schema/run_identity_contexts.js +29 -0
- package/dist/schema/run_identity_contexts.js.map +1 -0
- package/dist/schema/runner_api_response_reservations.d.ts +110 -0
- package/dist/schema/runner_api_response_reservations.d.ts.map +1 -0
- package/dist/schema/runner_api_response_reservations.js +13 -0
- package/dist/schema/runner_api_response_reservations.js.map +1 -0
- package/dist/schema/secret_access_events.d.ts +382 -0
- package/dist/schema/secret_access_events.d.ts.map +1 -0
- package/dist/schema/secret_access_events.js +39 -0
- package/dist/schema/secret_access_events.js.map +1 -0
- package/dist/schema/smoke_lab.d.ts +367 -0
- package/dist/schema/smoke_lab.d.ts.map +1 -0
- package/dist/schema/smoke_lab.js +33 -0
- package/dist/schema/smoke_lab.js.map +1 -0
- package/dist/schema/status_cards.d.ts +949 -0
- package/dist/schema/status_cards.d.ts.map +1 -0
- package/dist/schema/status_cards.js +70 -0
- package/dist/schema/status_cards.js.map +1 -0
- package/dist/schema/status_decision_effects.d.ts +299 -0
- package/dist/schema/status_decision_effects.d.ts.map +1 -0
- package/dist/schema/status_decision_effects.js +37 -0
- package/dist/schema/status_decision_effects.js.map +1 -0
- package/dist/schema/status_decisions.d.ts +282 -0
- package/dist/schema/status_decisions.d.ts.map +1 -0
- package/dist/schema/status_decisions.js +49 -0
- package/dist/schema/status_decisions.js.map +1 -0
- package/dist/schema/summary_slots.d.ts +252 -0
- package/dist/schema/summary_slots.d.ts.map +1 -0
- package/dist/schema/summary_slots.js +32 -0
- package/dist/schema/summary_slots.js.map +1 -0
- package/dist/schema/terminal_ssh_hosts.d.ts +127 -0
- package/dist/schema/terminal_ssh_hosts.d.ts.map +1 -0
- package/dist/schema/terminal_ssh_hosts.js +14 -0
- package/dist/schema/terminal_ssh_hosts.js.map +1 -0
- package/dist/schema/tool_access.d.ts +8433 -0
- package/dist/schema/tool_access.d.ts.map +1 -0
- package/dist/schema/tool_access.js +737 -0
- package/dist/schema/tool_access.js.map +1 -0
- package/dist/schema/tool_action_deliveries.d.ts +111 -0
- package/dist/schema/tool_action_deliveries.d.ts.map +1 -0
- package/dist/schema/tool_action_deliveries.js +27 -0
- package/dist/schema/tool_action_deliveries.js.map +1 -0
- package/dist/schema/tool_connection_app_snapshots.d.ts +184 -0
- package/dist/schema/tool_connection_app_snapshots.d.ts.map +1 -0
- package/dist/schema/tool_connection_app_snapshots.js +20 -0
- package/dist/schema/tool_connection_app_snapshots.js.map +1 -0
- package/dist/schema/tool_connection_app_syncs.d.ts +215 -0
- package/dist/schema/tool_connection_app_syncs.d.ts.map +1 -0
- package/dist/schema/tool_connection_app_syncs.js +22 -0
- package/dist/schema/tool_connection_app_syncs.js.map +1 -0
- package/dist/schema/user_company_preferences.d.ts +127 -0
- package/dist/schema/user_company_preferences.d.ts.map +1 -0
- package/dist/schema/user_company_preferences.js +16 -0
- package/dist/schema/user_company_preferences.js.map +1 -0
- package/dist/schema/user_inbox_agent_policies.d.ts +131 -0
- package/dist/schema/user_inbox_agent_policies.d.ts.map +1 -0
- package/dist/schema/user_inbox_agent_policies.js +17 -0
- package/dist/schema/user_inbox_agent_policies.js.map +1 -0
- package/dist/schema/user_secret_declarations.d.ts +229 -0
- package/dist/schema/user_secret_declarations.d.ts.map +1 -0
- package/dist/schema/user_secret_declarations.js +31 -0
- package/dist/schema/user_secret_declarations.js.map +1 -0
- package/dist/schema/user_secret_definitions.d.ts +316 -0
- package/dist/schema/user_secret_definitions.d.ts.map +1 -0
- package/dist/schema/user_secret_definitions.js +33 -0
- package/dist/schema/user_secret_definitions.js.map +1 -0
- package/dist/schema/user_sidebar_preferences.d.ts +95 -0
- package/dist/schema/user_sidebar_preferences.d.ts.map +1 -0
- package/dist/schema/user_sidebar_preferences.js +11 -0
- package/dist/schema/user_sidebar_preferences.js.map +1 -0
- package/dist/schema/web_push_subscriptions.d.ts +197 -0
- package/dist/schema/web_push_subscriptions.d.ts.map +1 -0
- package/dist/schema/web_push_subscriptions.js +18 -0
- package/dist/schema/web_push_subscriptions.js.map +1 -0
- package/dist/schema/work_assessments.d.ts +333 -0
- package/dist/schema/work_assessments.d.ts.map +1 -0
- package/dist/schema/work_assessments.js +67 -0
- package/dist/schema/work_assessments.js.map +1 -0
- package/dist/schema/workspace_operations.d.ts +384 -0
- package/dist/schema/workspace_operations.d.ts.map +1 -0
- package/dist/schema/workspace_operations.js +40 -0
- package/dist/schema/workspace_operations.js.map +1 -0
- package/dist/schema/workspace_runtime_services.d.ts +523 -0
- package/dist/schema/workspace_runtime_services.d.ts.map +1 -0
- package/dist/schema/workspace_runtime_services.js +53 -0
- package/dist/schema/workspace_runtime_services.js.map +1 -0
- package/dist/session-goal-migration.test.d.ts +2 -0
- package/dist/session-goal-migration.test.d.ts.map +1 -0
- package/dist/session-goal-migration.test.js +47 -0
- package/dist/session-goal-migration.test.js.map +1 -0
- package/dist/speko-voice-migration.test.d.ts +2 -0
- package/dist/speko-voice-migration.test.d.ts.map +1 -0
- package/dist/speko-voice-migration.test.js +88 -0
- package/dist/speko-voice-migration.test.js.map +1 -0
- package/dist/status-card-migrations.test.d.ts +2 -0
- package/dist/status-card-migrations.test.d.ts.map +1 -0
- package/dist/status-card-migrations.test.js +34 -0
- package/dist/status-card-migrations.test.js.map +1 -0
- package/dist/summary-slots-schema.test.d.ts +2 -0
- package/dist/summary-slots-schema.test.d.ts.map +1 -0
- package/dist/summary-slots-schema.test.js +62 -0
- package/dist/summary-slots-schema.test.js.map +1 -0
- package/dist/table-size-estimates.d.ts +366 -0
- package/dist/table-size-estimates.d.ts.map +1 -0
- package/dist/table-size-estimates.js +153 -0
- package/dist/table-size-estimates.js.map +1 -0
- package/dist/test-embedded-postgres.d.ts +42 -0
- package/dist/test-embedded-postgres.d.ts.map +1 -0
- package/dist/test-embedded-postgres.js +267 -0
- package/dist/test-embedded-postgres.js.map +1 -0
- package/dist/test-embedded-postgres.test.d.ts +2 -0
- package/dist/test-embedded-postgres.test.d.ts.map +1 -0
- package/dist/test-embedded-postgres.test.js +76 -0
- package/dist/test-embedded-postgres.test.js.map +1 -0
- package/dist/vercel-connect-credential-source-migration.test.d.ts +2 -0
- package/dist/vercel-connect-credential-source-migration.test.d.ts.map +1 -0
- package/dist/vercel-connect-credential-source-migration.test.js +71 -0
- package/dist/vercel-connect-credential-source-migration.test.js.map +1 -0
- package/dist/work-signals.d.ts +20 -0
- package/dist/work-signals.d.ts.map +1 -0
- package/dist/work-signals.js +123 -0
- package/dist/work-signals.js.map +1 -0
- package/dist/work-signals.test.d.ts +2 -0
- package/dist/work-signals.test.d.ts.map +1 -0
- package/dist/work-signals.test.js +177 -0
- package/dist/work-signals.test.js.map +1 -0
- package/node_modules/async-exit-hook/index.js +171 -0
- package/node_modules/async-exit-hook/license +21 -0
- package/node_modules/async-exit-hook/package.json +66 -0
- package/node_modules/async-exit-hook/readme.md +118 -0
- package/node_modules/embedded-postgres/LICENSE.md +9 -0
- package/node_modules/embedded-postgres/README.md +191 -0
- package/node_modules/embedded-postgres/dist/binary.d.ts +7 -0
- package/node_modules/embedded-postgres/dist/binary.js +41 -0
- package/node_modules/embedded-postgres/dist/index.d.ts +58 -0
- package/node_modules/embedded-postgres/dist/index.js +366 -0
- package/node_modules/embedded-postgres/dist/types.d.ts +54 -0
- package/node_modules/embedded-postgres/dist/types.js +1 -0
- package/node_modules/embedded-postgres/package.json +59 -0
- package/node_modules/pg/LICENSE +21 -0
- package/node_modules/pg/README.md +96 -0
- package/node_modules/pg/esm/index.mjs +20 -0
- package/node_modules/pg/lib/client.js +846 -0
- package/node_modules/pg/lib/connection-parameters.js +184 -0
- package/node_modules/pg/lib/connection.js +250 -0
- package/node_modules/pg/lib/crypto/cert-signatures.js +122 -0
- package/node_modules/pg/lib/crypto/sasl.js +262 -0
- package/node_modules/pg/lib/crypto/utils.js +89 -0
- package/node_modules/pg/lib/defaults.js +94 -0
- package/node_modules/pg/lib/index.js +73 -0
- package/node_modules/pg/lib/native/client.js +428 -0
- package/node_modules/pg/lib/native/index.js +2 -0
- package/node_modules/pg/lib/native/query.js +167 -0
- package/node_modules/pg/lib/query.js +263 -0
- package/node_modules/pg/lib/result.js +109 -0
- package/node_modules/pg/lib/stream.js +83 -0
- package/node_modules/pg/lib/type-overrides.js +35 -0
- package/node_modules/pg/lib/utils.js +225 -0
- package/node_modules/pg/package.json +76 -0
- package/node_modules/pg-cloudflare/LICENSE +21 -0
- package/node_modules/pg-cloudflare/README.md +112 -0
- package/node_modules/pg-cloudflare/dist/empty.d.ts +2 -0
- package/node_modules/pg-cloudflare/dist/empty.js +6 -0
- package/node_modules/pg-cloudflare/dist/empty.js.map +1 -0
- package/node_modules/pg-cloudflare/dist/index.d.ts +29 -0
- package/node_modules/pg-cloudflare/dist/index.js +171 -0
- package/node_modules/pg-cloudflare/dist/index.js.map +1 -0
- package/node_modules/pg-cloudflare/esm/index.mjs +3 -0
- package/node_modules/pg-cloudflare/package.json +39 -0
- package/node_modules/pg-cloudflare/src/empty.ts +3 -0
- package/node_modules/pg-cloudflare/src/index.ts +187 -0
- package/node_modules/pg-cloudflare/src/types.d.ts +25 -0
- package/node_modules/pg-connection-string/LICENSE +21 -0
- package/node_modules/pg-connection-string/README.md +105 -0
- package/node_modules/pg-connection-string/esm/index.mjs +8 -0
- package/node_modules/pg-connection-string/index.d.ts +37 -0
- package/node_modules/pg-connection-string/index.js +237 -0
- package/node_modules/pg-connection-string/package.json +51 -0
- package/node_modules/pg-int8/LICENSE +13 -0
- package/node_modules/pg-int8/README.md +16 -0
- package/node_modules/pg-int8/index.js +100 -0
- package/node_modules/pg-int8/package.json +24 -0
- package/node_modules/pg-pool/LICENSE +21 -0
- package/node_modules/pg-pool/README.md +357 -0
- package/node_modules/pg-pool/esm/index.mjs +5 -0
- package/node_modules/pg-pool/index.js +517 -0
- package/node_modules/pg-pool/package.json +51 -0
- package/node_modules/pg-protocol/LICENSE +21 -0
- package/node_modules/pg-protocol/README.md +3 -0
- package/node_modules/pg-protocol/dist/b.d.ts +1 -0
- package/node_modules/pg-protocol/dist/b.js +23 -0
- package/node_modules/pg-protocol/dist/b.js.map +1 -0
- package/node_modules/pg-protocol/dist/buffer-reader.d.ts +14 -0
- package/node_modules/pg-protocol/dist/buffer-reader.js +55 -0
- package/node_modules/pg-protocol/dist/buffer-reader.js.map +1 -0
- package/node_modules/pg-protocol/dist/buffer-writer.d.ts +21 -0
- package/node_modules/pg-protocol/dist/buffer-writer.js +113 -0
- package/node_modules/pg-protocol/dist/buffer-writer.js.map +1 -0
- package/node_modules/pg-protocol/dist/inbound-parser.test.d.ts +1 -0
- package/node_modules/pg-protocol/dist/inbound-parser.test.js +538 -0
- package/node_modules/pg-protocol/dist/inbound-parser.test.js.map +1 -0
- package/node_modules/pg-protocol/dist/index.d.ts +5 -0
- package/node_modules/pg-protocol/dist/index.js +15 -0
- package/node_modules/pg-protocol/dist/index.js.map +1 -0
- package/node_modules/pg-protocol/dist/messages.d.ts +161 -0
- package/node_modules/pg-protocol/dist/messages.js +160 -0
- package/node_modules/pg-protocol/dist/messages.js.map +1 -0
- package/node_modules/pg-protocol/dist/outbound-serializer.test.d.ts +1 -0
- package/node_modules/pg-protocol/dist/outbound-serializer.test.js +325 -0
- package/node_modules/pg-protocol/dist/outbound-serializer.test.js.map +1 -0
- package/node_modules/pg-protocol/dist/parser.d.ts +22 -0
- package/node_modules/pg-protocol/dist/parser.js +325 -0
- package/node_modules/pg-protocol/dist/parser.js.map +1 -0
- package/node_modules/pg-protocol/dist/serializer.d.ts +42 -0
- package/node_modules/pg-protocol/dist/serializer.js +198 -0
- package/node_modules/pg-protocol/dist/serializer.js.map +1 -0
- package/node_modules/pg-protocol/esm/index.js +11 -0
- package/node_modules/pg-protocol/package.json +44 -0
- package/node_modules/pg-protocol/src/b.ts +25 -0
- package/node_modules/pg-protocol/src/buffer-reader.ts +58 -0
- package/node_modules/pg-protocol/src/buffer-writer.ts +120 -0
- package/node_modules/pg-protocol/src/inbound-parser.test.ts +585 -0
- package/node_modules/pg-protocol/src/index.ts +11 -0
- package/node_modules/pg-protocol/src/messages.ts +262 -0
- package/node_modules/pg-protocol/src/outbound-serializer.test.ts +356 -0
- package/node_modules/pg-protocol/src/parser.ts +414 -0
- package/node_modules/pg-protocol/src/serializer.ts +286 -0
- package/node_modules/pg-protocol/src/testing/buffer-list.ts +67 -0
- package/node_modules/pg-protocol/src/testing/test-buffers.ts +166 -0
- package/node_modules/pg-types/.travis.yml +7 -0
- package/node_modules/pg-types/Makefile +14 -0
- package/node_modules/pg-types/README.md +75 -0
- package/node_modules/pg-types/index.d.ts +137 -0
- package/node_modules/pg-types/index.js +47 -0
- package/node_modules/pg-types/index.test-d.ts +21 -0
- package/node_modules/pg-types/lib/arrayParser.js +11 -0
- package/node_modules/pg-types/lib/binaryParsers.js +257 -0
- package/node_modules/pg-types/lib/builtins.js +73 -0
- package/node_modules/pg-types/lib/textParsers.js +215 -0
- package/node_modules/pg-types/package.json +42 -0
- package/node_modules/pg-types/test/index.js +24 -0
- package/node_modules/pg-types/test/types.js +597 -0
- package/node_modules/pgpass/README.md +74 -0
- package/node_modules/pgpass/lib/helper.js +233 -0
- package/node_modules/pgpass/lib/index.js +23 -0
- package/node_modules/pgpass/package.json +41 -0
- package/node_modules/postgres-array/index.d.ts +4 -0
- package/node_modules/postgres-array/index.js +97 -0
- package/node_modules/postgres-array/license +21 -0
- package/node_modules/postgres-array/package.json +35 -0
- package/node_modules/postgres-array/readme.md +43 -0
- package/node_modules/postgres-bytea/index.js +33 -0
- package/node_modules/postgres-bytea/license +21 -0
- package/node_modules/postgres-bytea/package.json +34 -0
- package/node_modules/postgres-bytea/readme.md +34 -0
- package/node_modules/postgres-date/index.js +116 -0
- package/node_modules/postgres-date/license +21 -0
- package/node_modules/postgres-date/package.json +33 -0
- package/node_modules/postgres-date/readme.md +49 -0
- package/node_modules/postgres-interval/index.d.ts +20 -0
- package/node_modules/postgres-interval/index.js +125 -0
- package/node_modules/postgres-interval/license +21 -0
- package/node_modules/postgres-interval/package.json +36 -0
- package/node_modules/postgres-interval/readme.md +48 -0
- package/node_modules/split2/LICENSE +13 -0
- package/node_modules/split2/README.md +85 -0
- package/node_modules/split2/bench.js +27 -0
- package/node_modules/split2/index.js +141 -0
- package/node_modules/split2/package.json +39 -0
- package/node_modules/split2/test.js +409 -0
- package/node_modules/xtend/.jshintrc +30 -0
- package/node_modules/xtend/LICENSE +20 -0
- package/node_modules/xtend/README.md +32 -0
- package/node_modules/xtend/immutable.js +19 -0
- package/node_modules/xtend/mutable.js +17 -0
- package/node_modules/xtend/package.json +55 -0
- package/node_modules/xtend/test.js +103 -0
- package/package.json +61 -10
- package/README.md +0 -8
- package/index.js +0 -1
|
@@ -0,0 +1,1005 @@
|
|
|
1
|
+
import { sql } from "drizzle-orm";
|
|
2
|
+
import { boolean, check, foreignKey, index, integer, jsonb, pgTable, text, timestamp, unique, uniqueIndex, uuid, } from "drizzle-orm/pg-core";
|
|
3
|
+
import { agents } from "./agents.js";
|
|
4
|
+
import { companies } from "./companies.js";
|
|
5
|
+
import { heartbeatRuns } from "./heartbeat_runs.js";
|
|
6
|
+
import { issueComments } from "./issue_comments.js";
|
|
7
|
+
import { issueThreadInteractions } from "./issue_thread_interactions.js";
|
|
8
|
+
import { issues } from "./issues.js";
|
|
9
|
+
import { toolConnections } from "./tool_access.js";
|
|
10
|
+
export const chatEndpoints = pgTable("chat_endpoints", {
|
|
11
|
+
id: uuid("id").primaryKey().defaultRandom(),
|
|
12
|
+
companyId: uuid("company_id")
|
|
13
|
+
.notNull()
|
|
14
|
+
.references(() => companies.id, { onDelete: "cascade" }),
|
|
15
|
+
connectionId: uuid("connection_id").notNull(),
|
|
16
|
+
provider: text("provider").$type().notNull(),
|
|
17
|
+
publicId: text("public_id").notNull(),
|
|
18
|
+
publicationMode: text("publication_mode").$type().notNull().default("automatic"),
|
|
19
|
+
externalExecutionPolicy: text("external_execution_policy").$type().notNull().default("restricted"),
|
|
20
|
+
assignedAgentId: uuid("assigned_agent_id")
|
|
21
|
+
.notNull()
|
|
22
|
+
.references(() => agents.id, { onDelete: "restrict" }),
|
|
23
|
+
sponsorUserId: text("sponsor_user_id"),
|
|
24
|
+
status: text("status")
|
|
25
|
+
.$type()
|
|
26
|
+
.notNull()
|
|
27
|
+
.default("draft"),
|
|
28
|
+
deploymentMode: text("deployment_mode")
|
|
29
|
+
.$type()
|
|
30
|
+
.notNull()
|
|
31
|
+
.default("direct"),
|
|
32
|
+
providerAccountId: text("provider_account_id"),
|
|
33
|
+
providerAccountLabel: text("provider_account_label"),
|
|
34
|
+
botExternalId: text("bot_external_id"),
|
|
35
|
+
botUsername: text("bot_username"),
|
|
36
|
+
botDisplayName: text("bot_display_name"),
|
|
37
|
+
botAvatarUrl: text("bot_avatar_url"),
|
|
38
|
+
communicationInstructions: text("communication_instructions").notNull().default(""),
|
|
39
|
+
allowDirectMessages: boolean("allow_direct_messages")
|
|
40
|
+
.notNull()
|
|
41
|
+
.default(true),
|
|
42
|
+
requireAtMention: boolean("require_at_mention").notNull().default(false),
|
|
43
|
+
allowGroupChats: boolean("allow_group_chats").notNull().default(false),
|
|
44
|
+
allowUnlinkedPeople: boolean("allow_unlinked_people")
|
|
45
|
+
.notNull()
|
|
46
|
+
.default(true),
|
|
47
|
+
concurrencyPolicy: text("concurrency_policy")
|
|
48
|
+
.$type()
|
|
49
|
+
.notNull()
|
|
50
|
+
.default("queue"),
|
|
51
|
+
capabilities: jsonb("capabilities")
|
|
52
|
+
.$type()
|
|
53
|
+
.notNull()
|
|
54
|
+
.default({
|
|
55
|
+
threads: false,
|
|
56
|
+
directMessages: false,
|
|
57
|
+
nativeStreaming: false,
|
|
58
|
+
messageEdits: false,
|
|
59
|
+
messageDeletes: false,
|
|
60
|
+
reactions: false,
|
|
61
|
+
files: false,
|
|
62
|
+
cards: false,
|
|
63
|
+
actions: false,
|
|
64
|
+
modals: false,
|
|
65
|
+
slashCommands: false,
|
|
66
|
+
ephemeralMessages: false,
|
|
67
|
+
proactiveDirectMessages: false,
|
|
68
|
+
}),
|
|
69
|
+
setup: jsonb("setup")
|
|
70
|
+
.$type()
|
|
71
|
+
.notNull()
|
|
72
|
+
.default({ step: "provider_setup" }),
|
|
73
|
+
policy: jsonb("policy")
|
|
74
|
+
.$type()
|
|
75
|
+
.notNull()
|
|
76
|
+
.default({}),
|
|
77
|
+
policyRevision: integer("policy_revision").notNull().default(0),
|
|
78
|
+
inflightMode: text("inflight_mode")
|
|
79
|
+
.$type()
|
|
80
|
+
.notNull()
|
|
81
|
+
.default("queue"),
|
|
82
|
+
healthMessage: text("health_message"),
|
|
83
|
+
lastEventAt: timestamp("last_event_at", { withTimezone: true }),
|
|
84
|
+
lastPublicationAt: timestamp("last_publication_at", { withTimezone: true }),
|
|
85
|
+
lastError: text("last_error"),
|
|
86
|
+
activatedAt: timestamp("activated_at", { withTimezone: true }),
|
|
87
|
+
archivedAt: timestamp("archived_at", { withTimezone: true }),
|
|
88
|
+
createdAt: timestamp("created_at", { withTimezone: true })
|
|
89
|
+
.notNull()
|
|
90
|
+
.defaultNow(),
|
|
91
|
+
updatedAt: timestamp("updated_at", { withTimezone: true })
|
|
92
|
+
.notNull()
|
|
93
|
+
.defaultNow(),
|
|
94
|
+
}, (table) => [
|
|
95
|
+
check("chat_endpoints_publication_mode_check", sql `${table.publicationMode} in ('automatic', 'explicit')`),
|
|
96
|
+
check("chat_endpoints_execution_policy_check", sql `${table.externalExecutionPolicy} in ('restricted', 'agent')`),
|
|
97
|
+
check("chat_endpoints_email_policy_check", sql `${table.provider} <> 'agentmail' or (${table.publicationMode} = 'explicit' and ${table.externalExecutionPolicy} = 'agent')`),
|
|
98
|
+
check("chat_endpoints_provider_check", sql `${table.provider} in ('slack', 'github', 'discord', 'microsoft-teams', 'telegram', 'speko', 'agentmail', 'imessage-photon', 'openwa')`),
|
|
99
|
+
check("chat_endpoints_inflight_mode_check", sql `${table.inflightMode} in ('steer', 'queue')`),
|
|
100
|
+
check("chat_endpoints_policy_revision_check", sql `${table.policyRevision} >= 0`),
|
|
101
|
+
check("chat_endpoints_status_check", sql `${table.status} in ('draft', 'verifying', 'active', 'paused', 'attention', 'revoked', 'archived')`),
|
|
102
|
+
check("chat_endpoints_deployment_check", sql `${table.deploymentMode} in ('direct', 'relay')`),
|
|
103
|
+
check("chat_endpoints_concurrency_check", sql `${table.concurrencyPolicy} in ('burst', 'queue', 'debounce', 'drop', 'concurrent')`),
|
|
104
|
+
index("chat_endpoints_company_idx").on(table.companyId),
|
|
105
|
+
index("chat_endpoints_agent_idx").on(table.companyId, table.assignedAgentId),
|
|
106
|
+
index("chat_endpoints_status_idx").on(table.companyId, table.status),
|
|
107
|
+
uniqueIndex("chat_endpoints_public_id_uq").on(table.publicId),
|
|
108
|
+
uniqueIndex("chat_endpoints_agentmail_inbox_uq")
|
|
109
|
+
.on(table.botExternalId)
|
|
110
|
+
.where(sql `${table.provider} = 'agentmail' and ${table.status} != 'archived' and ${table.botExternalId} is not null`),
|
|
111
|
+
uniqueIndex("chat_endpoints_connection_uq").on(table.connectionId),
|
|
112
|
+
// A native provider identity can back only one live Paperclip endpoint.
|
|
113
|
+
// Historical archived/revoked endpoints retain attribution without
|
|
114
|
+
// preventing an operator from deliberately reusing the provider bot later.
|
|
115
|
+
uniqueIndex("chat_endpoints_live_bot_external_uq")
|
|
116
|
+
.on(table.provider, table.providerAccountId, table.botExternalId)
|
|
117
|
+
.where(sql `${table.status} in ('verifying', 'active', 'paused', 'attention')
|
|
118
|
+
and ${table.providerAccountId} is not null
|
|
119
|
+
and ${table.botExternalId} is not null`),
|
|
120
|
+
// One Discord application can be installed in many guilds, but it remains
|
|
121
|
+
// one native bot identity. Excluding providerAccountId closes the race
|
|
122
|
+
// where concurrent setup in two guilds could otherwise claim that bot for
|
|
123
|
+
// two Paperclip agents after both application-level prechecks passed.
|
|
124
|
+
uniqueIndex("chat_endpoints_photon_number_uq")
|
|
125
|
+
.on(table.botExternalId)
|
|
126
|
+
.where(sql `${table.provider} = 'imessage-photon' and ${table.status} <> 'archived' and ${table.botExternalId} is not null`),
|
|
127
|
+
uniqueIndex("chat_endpoints_openwa_account_uq")
|
|
128
|
+
.on(table.providerAccountId)
|
|
129
|
+
.where(sql `${table.provider} = 'openwa' and ${table.status} <> 'archived' and ${table.providerAccountId} is not null`),
|
|
130
|
+
uniqueIndex("chat_endpoints_openwa_number_uq")
|
|
131
|
+
.on(table.botExternalId)
|
|
132
|
+
.where(sql `${table.provider} = 'openwa' and ${table.status} <> 'archived' and ${table.botExternalId} is not null`),
|
|
133
|
+
uniqueIndex("chat_endpoints_live_discord_bot_external_uq")
|
|
134
|
+
.on(table.provider, table.botExternalId)
|
|
135
|
+
.where(sql `${table.provider} = 'discord'
|
|
136
|
+
and ${table.status} in ('verifying', 'active', 'paused', 'attention')
|
|
137
|
+
and ${table.botExternalId} is not null`),
|
|
138
|
+
// GitHub App and Microsoft Bot application ids are provider-global bot
|
|
139
|
+
// identities. Their mutable owner/tenant coordinate is useful metadata,
|
|
140
|
+
// but it cannot be part of the exclusivity key: an App transfer or a
|
|
141
|
+
// multi-tenant service principal must never let one native bot represent
|
|
142
|
+
// two Paperclip agents through two different webhook URLs.
|
|
143
|
+
uniqueIndex("chat_endpoints_live_global_app_bot_external_uq")
|
|
144
|
+
.on(table.provider, table.botExternalId)
|
|
145
|
+
.where(sql `${table.provider} in ('github', 'microsoft-teams')
|
|
146
|
+
and ${table.status} in ('verifying', 'active', 'paused', 'attention')
|
|
147
|
+
and ${table.botExternalId} is not null`),
|
|
148
|
+
// GitHub App verification does not expose the bot user's numeric id, so
|
|
149
|
+
// retain an equivalent live-slot constraint on the provider-native name.
|
|
150
|
+
uniqueIndex("chat_endpoints_live_bot_username_uq")
|
|
151
|
+
.on(table.provider, table.providerAccountId, table.botUsername)
|
|
152
|
+
.where(sql `${table.status} in ('verifying', 'active', 'paused', 'attention')
|
|
153
|
+
and ${table.providerAccountId} is not null
|
|
154
|
+
and ${table.botUsername} is not null`),
|
|
155
|
+
unique("chat_endpoints_company_id_uq").on(table.companyId, table.id),
|
|
156
|
+
foreignKey({
|
|
157
|
+
columns: [table.companyId, table.assignedAgentId],
|
|
158
|
+
foreignColumns: [agents.companyId, agents.id],
|
|
159
|
+
name: "chat_endpoints_company_agent_fk",
|
|
160
|
+
}),
|
|
161
|
+
foreignKey({
|
|
162
|
+
columns: [table.companyId, table.connectionId],
|
|
163
|
+
foreignColumns: [toolConnections.companyId, toolConnections.id],
|
|
164
|
+
name: "chat_endpoints_company_connection_fk",
|
|
165
|
+
}).onDelete("cascade"),
|
|
166
|
+
]);
|
|
167
|
+
export const chatEndpointResources = pgTable("chat_endpoint_resources", {
|
|
168
|
+
id: uuid("id").primaryKey().defaultRandom(),
|
|
169
|
+
companyId: uuid("company_id")
|
|
170
|
+
.notNull()
|
|
171
|
+
.references(() => companies.id, { onDelete: "cascade" }),
|
|
172
|
+
endpointId: uuid("endpoint_id").notNull(),
|
|
173
|
+
type: text("type").notNull(),
|
|
174
|
+
providerResourceId: text("provider_resource_id").notNull(),
|
|
175
|
+
parentProviderResourceId: text("parent_provider_resource_id"),
|
|
176
|
+
label: text("label").notNull(),
|
|
177
|
+
detail: text("detail"),
|
|
178
|
+
providerUrl: text("provider_url"),
|
|
179
|
+
availability: text("availability")
|
|
180
|
+
.$type()
|
|
181
|
+
.notNull()
|
|
182
|
+
.default("available"),
|
|
183
|
+
enabled: boolean("enabled").notNull().default(false),
|
|
184
|
+
metadata: jsonb("metadata")
|
|
185
|
+
.$type()
|
|
186
|
+
.notNull()
|
|
187
|
+
.default({}),
|
|
188
|
+
settings: jsonb("settings")
|
|
189
|
+
.$type()
|
|
190
|
+
.notNull()
|
|
191
|
+
.default({}),
|
|
192
|
+
createdAt: timestamp("created_at", { withTimezone: true })
|
|
193
|
+
.notNull()
|
|
194
|
+
.defaultNow(),
|
|
195
|
+
updatedAt: timestamp("updated_at", { withTimezone: true })
|
|
196
|
+
.notNull()
|
|
197
|
+
.defaultNow(),
|
|
198
|
+
}, (table) => [
|
|
199
|
+
check("chat_endpoint_resources_availability_check", sql `${table.availability} in ('available', 'unavailable', 'removed')`),
|
|
200
|
+
index("chat_endpoint_resources_endpoint_idx").on(table.companyId, table.endpointId),
|
|
201
|
+
uniqueIndex("chat_endpoint_resources_external_uq").on(table.endpointId, table.type, table.providerResourceId),
|
|
202
|
+
unique("chat_endpoint_resources_company_id_uq").on(table.companyId, table.id),
|
|
203
|
+
foreignKey({
|
|
204
|
+
columns: [table.companyId, table.endpointId],
|
|
205
|
+
foreignColumns: [chatEndpoints.companyId, chatEndpoints.id],
|
|
206
|
+
name: "chat_endpoint_resources_company_endpoint_fk",
|
|
207
|
+
}).onDelete("cascade"),
|
|
208
|
+
]);
|
|
209
|
+
export const chatExternalPrincipals = pgTable("chat_external_principals", {
|
|
210
|
+
id: uuid("id").primaryKey().defaultRandom(),
|
|
211
|
+
companyId: uuid("company_id")
|
|
212
|
+
.notNull()
|
|
213
|
+
.references(() => companies.id, { onDelete: "cascade" }),
|
|
214
|
+
provider: text("provider").$type().notNull(),
|
|
215
|
+
providerAccountId: text("provider_account_id").notNull(),
|
|
216
|
+
externalId: text("external_id").notNull(),
|
|
217
|
+
kind: text("kind").$type().notNull().default("user"),
|
|
218
|
+
displayName: text("display_name"),
|
|
219
|
+
handle: text("handle"),
|
|
220
|
+
avatarUrl: text("avatar_url"),
|
|
221
|
+
isBot: boolean("is_bot").notNull().default(false),
|
|
222
|
+
alternateExternalIds: text("alternate_external_ids")
|
|
223
|
+
.array()
|
|
224
|
+
.notNull()
|
|
225
|
+
.default(sql `'{}'::text[]`),
|
|
226
|
+
lastSeenAt: timestamp("last_seen_at", { withTimezone: true }),
|
|
227
|
+
createdAt: timestamp("created_at", { withTimezone: true })
|
|
228
|
+
.notNull()
|
|
229
|
+
.defaultNow(),
|
|
230
|
+
updatedAt: timestamp("updated_at", { withTimezone: true })
|
|
231
|
+
.notNull()
|
|
232
|
+
.defaultNow(),
|
|
233
|
+
}, (table) => [
|
|
234
|
+
check("chat_external_principals_provider_check", sql `${table.provider} in ('slack', 'github', 'discord', 'microsoft-teams', 'telegram', 'speko', 'agentmail', 'imessage-photon', 'openwa')`),
|
|
235
|
+
check("chat_external_principals_kind_check", sql `${table.kind} in ('user', 'bot', 'app', 'system')`),
|
|
236
|
+
index("chat_external_principals_company_idx").on(table.companyId),
|
|
237
|
+
uniqueIndex("chat_external_principals_external_uq").on(table.companyId, table.provider, table.providerAccountId, table.externalId),
|
|
238
|
+
unique("chat_external_principals_company_id_uq").on(table.companyId, table.id),
|
|
239
|
+
]);
|
|
240
|
+
export const chatIdentityLinks = pgTable("chat_identity_links", {
|
|
241
|
+
id: uuid("id").primaryKey().defaultRandom(),
|
|
242
|
+
companyId: uuid("company_id")
|
|
243
|
+
.notNull()
|
|
244
|
+
.references(() => companies.id, { onDelete: "cascade" }),
|
|
245
|
+
endpointId: uuid("endpoint_id").notNull(),
|
|
246
|
+
principalId: uuid("principal_id").notNull(),
|
|
247
|
+
paperclipUserId: text("paperclip_user_id"),
|
|
248
|
+
status: text("status")
|
|
249
|
+
.$type()
|
|
250
|
+
.notNull()
|
|
251
|
+
.default("pending"),
|
|
252
|
+
confirmationTokenHash: text("confirmation_token_hash"),
|
|
253
|
+
expiresAt: timestamp("expires_at", { withTimezone: true }),
|
|
254
|
+
confirmedAt: timestamp("confirmed_at", { withTimezone: true }),
|
|
255
|
+
revokedAt: timestamp("revoked_at", { withTimezone: true }),
|
|
256
|
+
createdAt: timestamp("created_at", { withTimezone: true })
|
|
257
|
+
.notNull()
|
|
258
|
+
.defaultNow(),
|
|
259
|
+
updatedAt: timestamp("updated_at", { withTimezone: true })
|
|
260
|
+
.notNull()
|
|
261
|
+
.defaultNow(),
|
|
262
|
+
}, (table) => [
|
|
263
|
+
check("chat_identity_links_status_check", sql `${table.status} in ('pending', 'linked', 'revoked', 'expired')`),
|
|
264
|
+
index("chat_identity_links_user_idx").on(table.companyId, table.paperclipUserId),
|
|
265
|
+
uniqueIndex("chat_identity_links_endpoint_principal_uq").on(table.endpointId, table.principalId),
|
|
266
|
+
unique("chat_identity_links_company_id_uq").on(table.companyId, table.id),
|
|
267
|
+
foreignKey({
|
|
268
|
+
columns: [table.companyId, table.endpointId],
|
|
269
|
+
foreignColumns: [chatEndpoints.companyId, chatEndpoints.id],
|
|
270
|
+
name: "chat_identity_links_company_endpoint_fk",
|
|
271
|
+
}).onDelete("cascade"),
|
|
272
|
+
foreignKey({
|
|
273
|
+
columns: [table.companyId, table.principalId],
|
|
274
|
+
foreignColumns: [
|
|
275
|
+
chatExternalPrincipals.companyId,
|
|
276
|
+
chatExternalPrincipals.id,
|
|
277
|
+
],
|
|
278
|
+
name: "chat_identity_links_company_principal_fk",
|
|
279
|
+
}).onDelete("cascade"),
|
|
280
|
+
]);
|
|
281
|
+
export const chatConversations = pgTable("chat_conversations", {
|
|
282
|
+
id: uuid("id").primaryKey().defaultRandom(),
|
|
283
|
+
companyId: uuid("company_id")
|
|
284
|
+
.notNull()
|
|
285
|
+
.references(() => companies.id, { onDelete: "cascade" }),
|
|
286
|
+
endpointId: uuid("endpoint_id").notNull(),
|
|
287
|
+
resourceId: uuid("resource_id").references(() => chatEndpointResources.id, {
|
|
288
|
+
onDelete: "set null",
|
|
289
|
+
}),
|
|
290
|
+
issueId: uuid("issue_id")
|
|
291
|
+
.notNull()
|
|
292
|
+
.references(() => issues.id, { onDelete: "restrict" }),
|
|
293
|
+
externalConversationId: text("external_conversation_id").notNull(),
|
|
294
|
+
externalThreadId: text("external_thread_id").notNull().default(""),
|
|
295
|
+
// Providers with linear conversations (DMs, Telegram groups, Teams group
|
|
296
|
+
// chats) reuse one native thread id. A generation preserves the native id
|
|
297
|
+
// used for replies while allowing completed Paperclip tasks to roll over.
|
|
298
|
+
sessionGeneration: integer("session_generation").notNull().default(1),
|
|
299
|
+
externalLabel: text("external_label").notNull(),
|
|
300
|
+
providerUrl: text("provider_url"),
|
|
301
|
+
isDirectMessage: boolean("is_direct_message").notNull().default(false),
|
|
302
|
+
// Immutable initial task context, never refreshed from endpoint settings.
|
|
303
|
+
communicationGuidance: text("communication_guidance"),
|
|
304
|
+
state: text("state").notNull().default("active"),
|
|
305
|
+
lastActivityAt: timestamp("last_activity_at", { withTimezone: true }),
|
|
306
|
+
createdAt: timestamp("created_at", { withTimezone: true })
|
|
307
|
+
.notNull()
|
|
308
|
+
.defaultNow(),
|
|
309
|
+
updatedAt: timestamp("updated_at", { withTimezone: true })
|
|
310
|
+
.notNull()
|
|
311
|
+
.defaultNow(),
|
|
312
|
+
}, (table) => [
|
|
313
|
+
check("chat_conversations_state_check", sql `${table.state} in ('active', 'waiting', 'completed', 'unavailable', 'endpoint_removed')`),
|
|
314
|
+
index("chat_conversations_issue_idx").on(table.companyId, table.issueId),
|
|
315
|
+
uniqueIndex("chat_conversations_thread_uq").on(table.endpointId, table.externalConversationId, table.externalThreadId, table.sessionGeneration),
|
|
316
|
+
unique("chat_conversations_company_id_uq").on(table.companyId, table.id),
|
|
317
|
+
foreignKey({
|
|
318
|
+
columns: [table.companyId, table.issueId],
|
|
319
|
+
foreignColumns: [issues.companyId, issues.id],
|
|
320
|
+
name: "chat_conversations_company_issue_fk",
|
|
321
|
+
}),
|
|
322
|
+
foreignKey({
|
|
323
|
+
columns: [table.companyId, table.endpointId],
|
|
324
|
+
foreignColumns: [chatEndpoints.companyId, chatEndpoints.id],
|
|
325
|
+
name: "chat_conversations_company_endpoint_fk",
|
|
326
|
+
}).onDelete("cascade"),
|
|
327
|
+
foreignKey({
|
|
328
|
+
columns: [table.companyId, table.resourceId],
|
|
329
|
+
foreignColumns: [
|
|
330
|
+
chatEndpointResources.companyId,
|
|
331
|
+
chatEndpointResources.id,
|
|
332
|
+
],
|
|
333
|
+
name: "chat_conversations_company_resource_fk",
|
|
334
|
+
}),
|
|
335
|
+
]);
|
|
336
|
+
export const chatDeliveries = pgTable("chat_deliveries", {
|
|
337
|
+
id: uuid("id").primaryKey().defaultRandom(),
|
|
338
|
+
companyId: uuid("company_id")
|
|
339
|
+
.notNull()
|
|
340
|
+
.references(() => companies.id, { onDelete: "cascade" }),
|
|
341
|
+
endpointId: uuid("endpoint_id").notNull(),
|
|
342
|
+
conversationId: uuid("conversation_id").references(() => chatConversations.id, {
|
|
343
|
+
onDelete: "set null",
|
|
344
|
+
}),
|
|
345
|
+
principalId: uuid("principal_id").references(() => chatExternalPrincipals.id, {
|
|
346
|
+
onDelete: "set null",
|
|
347
|
+
}),
|
|
348
|
+
providerEventId: text("provider_event_id").notNull(),
|
|
349
|
+
deduplicationKey: text("deduplication_key").notNull(),
|
|
350
|
+
eventKind: text("event_kind").$type().notNull(),
|
|
351
|
+
normalizedEvent: jsonb("normalized_event")
|
|
352
|
+
.$type()
|
|
353
|
+
.notNull(),
|
|
354
|
+
state: text("state")
|
|
355
|
+
.$type()
|
|
356
|
+
.notNull()
|
|
357
|
+
.default("received"),
|
|
358
|
+
attempts: integer("attempts").notNull().default(0),
|
|
359
|
+
redactedError: text("redacted_error"),
|
|
360
|
+
nextAttemptAt: timestamp("next_attempt_at", { withTimezone: true }),
|
|
361
|
+
triggerClass: text("trigger_class").$type(),
|
|
362
|
+
principalRole: text("principal_role").$type(),
|
|
363
|
+
answerState: text("answer_state").$type(),
|
|
364
|
+
receivedAt: timestamp("received_at", { withTimezone: true })
|
|
365
|
+
.notNull()
|
|
366
|
+
.defaultNow(),
|
|
367
|
+
processedAt: timestamp("processed_at", { withTimezone: true }),
|
|
368
|
+
createdAt: timestamp("created_at", { withTimezone: true })
|
|
369
|
+
.notNull()
|
|
370
|
+
.defaultNow(),
|
|
371
|
+
updatedAt: timestamp("updated_at", { withTimezone: true })
|
|
372
|
+
.notNull()
|
|
373
|
+
.defaultNow(),
|
|
374
|
+
}, (table) => [
|
|
375
|
+
check("chat_deliveries_state_check", sql `${table.state} in ('received', 'filtered', 'processing', 'processed', 'retry', 'failed')`),
|
|
376
|
+
check("chat_deliveries_trigger_class_check", sql `${table.triggerClass} is null or ${table.triggerClass} in ('owner', 'other', 'grant')`),
|
|
377
|
+
check("chat_deliveries_principal_role_check", sql `${table.principalRole} is null or ${table.principalRole} in ('owner', 'allowed', 'outside_allowlist', 'denylisted')`),
|
|
378
|
+
check("chat_deliveries_answer_state_check", sql `${table.answerState} is null or ${table.answerState} in ('pending', 'answered', 'silenced', 'handed_off')`),
|
|
379
|
+
index("chat_deliveries_work_idx").on(table.state, table.nextAttemptAt),
|
|
380
|
+
index("chat_deliveries_pending_answer_idx")
|
|
381
|
+
.on(table.endpointId, table.conversationId, table.receivedAt)
|
|
382
|
+
.where(sql `${table.answerState} = 'pending'`),
|
|
383
|
+
unique("chat_deliveries_company_id_uq").on(table.companyId, table.id),
|
|
384
|
+
uniqueIndex("chat_deliveries_event_uq").on(table.endpointId, table.providerEventId),
|
|
385
|
+
uniqueIndex("chat_deliveries_dedupe_uq").on(table.endpointId, table.deduplicationKey),
|
|
386
|
+
foreignKey({
|
|
387
|
+
columns: [table.companyId, table.endpointId],
|
|
388
|
+
foreignColumns: [chatEndpoints.companyId, chatEndpoints.id],
|
|
389
|
+
name: "chat_deliveries_company_endpoint_fk",
|
|
390
|
+
}).onDelete("cascade"),
|
|
391
|
+
foreignKey({
|
|
392
|
+
columns: [table.companyId, table.conversationId],
|
|
393
|
+
foreignColumns: [chatConversations.companyId, chatConversations.id],
|
|
394
|
+
name: "chat_deliveries_company_conversation_fk",
|
|
395
|
+
}),
|
|
396
|
+
foreignKey({
|
|
397
|
+
columns: [table.companyId, table.principalId],
|
|
398
|
+
foreignColumns: [
|
|
399
|
+
chatExternalPrincipals.companyId,
|
|
400
|
+
chatExternalPrincipals.id,
|
|
401
|
+
],
|
|
402
|
+
name: "chat_deliveries_company_principal_fk",
|
|
403
|
+
}),
|
|
404
|
+
]);
|
|
405
|
+
export const chatPublications = pgTable("chat_publications", {
|
|
406
|
+
id: uuid("id").primaryKey().defaultRandom(),
|
|
407
|
+
companyId: uuid("company_id")
|
|
408
|
+
.notNull()
|
|
409
|
+
.references(() => companies.id, { onDelete: "cascade" }),
|
|
410
|
+
endpointId: uuid("endpoint_id").notNull(),
|
|
411
|
+
conversationId: uuid("conversation_id").notNull(),
|
|
412
|
+
issueId: uuid("issue_id")
|
|
413
|
+
.notNull()
|
|
414
|
+
.references(() => issues.id, { onDelete: "restrict" }),
|
|
415
|
+
commentId: uuid("comment_id").references(() => issueComments.id, {
|
|
416
|
+
onDelete: "set null",
|
|
417
|
+
}),
|
|
418
|
+
idempotencyKey: text("idempotency_key").notNull(),
|
|
419
|
+
payload: jsonb("payload").$type().notNull(),
|
|
420
|
+
state: text("state")
|
|
421
|
+
.$type()
|
|
422
|
+
.notNull()
|
|
423
|
+
.default("pending"),
|
|
424
|
+
providerMessageId: text("provider_message_id"),
|
|
425
|
+
providerUrl: text("provider_url"),
|
|
426
|
+
attempts: integer("attempts").notNull().default(0),
|
|
427
|
+
redactedError: text("redacted_error"),
|
|
428
|
+
nextAttemptAt: timestamp("next_attempt_at", { withTimezone: true }),
|
|
429
|
+
publishedAt: timestamp("published_at", { withTimezone: true }),
|
|
430
|
+
createdAt: timestamp("created_at", { withTimezone: true })
|
|
431
|
+
.notNull()
|
|
432
|
+
.defaultNow(),
|
|
433
|
+
updatedAt: timestamp("updated_at", { withTimezone: true })
|
|
434
|
+
.notNull()
|
|
435
|
+
.defaultNow(),
|
|
436
|
+
}, (table) => [
|
|
437
|
+
check("chat_publications_state_check", sql `${table.state} in ('pending', 'streaming', 'published', 'retry', 'delivery_unknown', 'failed', 'cancelled', 'awaiting_consent')`),
|
|
438
|
+
uniqueIndex("chat_publications_company_id_uq").on(table.companyId, table.id),
|
|
439
|
+
foreignKey({
|
|
440
|
+
columns: [table.companyId, table.issueId],
|
|
441
|
+
foreignColumns: [issues.companyId, issues.id],
|
|
442
|
+
name: "chat_publications_company_issue_fk",
|
|
443
|
+
}),
|
|
444
|
+
// Retain the single-column SET NULL action above. The additional tenant
|
|
445
|
+
// key uses NO ACTION so deletion clears only comment_id, never company_id.
|
|
446
|
+
foreignKey({
|
|
447
|
+
columns: [table.companyId, table.commentId],
|
|
448
|
+
foreignColumns: [issueComments.companyId, issueComments.id],
|
|
449
|
+
name: "chat_publications_company_comment_fk",
|
|
450
|
+
}),
|
|
451
|
+
index("chat_publications_work_idx").on(table.state, table.nextAttemptAt),
|
|
452
|
+
uniqueIndex("chat_publications_idempotency_uq").on(table.companyId, table.idempotencyKey),
|
|
453
|
+
foreignKey({
|
|
454
|
+
columns: [table.companyId, table.endpointId],
|
|
455
|
+
foreignColumns: [chatEndpoints.companyId, chatEndpoints.id],
|
|
456
|
+
name: "chat_publications_company_endpoint_fk",
|
|
457
|
+
}).onDelete("cascade"),
|
|
458
|
+
foreignKey({
|
|
459
|
+
columns: [table.companyId, table.conversationId],
|
|
460
|
+
foreignColumns: [chatConversations.companyId, chatConversations.id],
|
|
461
|
+
name: "chat_publications_company_conversation_fk",
|
|
462
|
+
}).onDelete("cascade"),
|
|
463
|
+
]);
|
|
464
|
+
export const chatMessageLinks = pgTable("chat_message_links", {
|
|
465
|
+
id: uuid("id").primaryKey().defaultRandom(),
|
|
466
|
+
companyId: uuid("company_id")
|
|
467
|
+
.notNull()
|
|
468
|
+
.references(() => companies.id, { onDelete: "cascade" }),
|
|
469
|
+
endpointId: uuid("endpoint_id").notNull(),
|
|
470
|
+
conversationId: uuid("conversation_id").notNull(),
|
|
471
|
+
deliveryId: uuid("delivery_id").references(() => chatDeliveries.id, {
|
|
472
|
+
onDelete: "set null",
|
|
473
|
+
}),
|
|
474
|
+
publicationId: uuid("publication_id").references(() => chatPublications.id, { onDelete: "set null" }),
|
|
475
|
+
commentId: uuid("comment_id").references(() => issueComments.id, {
|
|
476
|
+
onDelete: "set null",
|
|
477
|
+
}),
|
|
478
|
+
providerMessageId: text("provider_message_id").notNull(),
|
|
479
|
+
direction: text("direction").notNull(),
|
|
480
|
+
createdAt: timestamp("created_at", { withTimezone: true })
|
|
481
|
+
.notNull()
|
|
482
|
+
.defaultNow(),
|
|
483
|
+
}, (table) => [
|
|
484
|
+
check("chat_message_links_direction_check", sql `${table.direction} in ('inbound', 'outbound')`),
|
|
485
|
+
foreignKey({
|
|
486
|
+
columns: [table.companyId, table.endpointId],
|
|
487
|
+
foreignColumns: [chatEndpoints.companyId, chatEndpoints.id],
|
|
488
|
+
name: "chat_message_links_company_endpoint_fk",
|
|
489
|
+
}).onDelete("cascade"),
|
|
490
|
+
foreignKey({
|
|
491
|
+
columns: [table.companyId, table.deliveryId],
|
|
492
|
+
foreignColumns: [chatDeliveries.companyId, chatDeliveries.id],
|
|
493
|
+
name: "chat_message_links_company_delivery_fk",
|
|
494
|
+
}),
|
|
495
|
+
foreignKey({
|
|
496
|
+
columns: [table.companyId, table.publicationId],
|
|
497
|
+
foreignColumns: [chatPublications.companyId, chatPublications.id],
|
|
498
|
+
name: "chat_message_links_company_publication_fk",
|
|
499
|
+
}),
|
|
500
|
+
foreignKey({
|
|
501
|
+
columns: [table.companyId, table.commentId],
|
|
502
|
+
foreignColumns: [issueComments.companyId, issueComments.id],
|
|
503
|
+
name: "chat_message_links_company_comment_fk",
|
|
504
|
+
}),
|
|
505
|
+
uniqueIndex("chat_message_links_provider_message_uq").on(table.endpointId, table.conversationId, table.providerMessageId),
|
|
506
|
+
foreignKey({
|
|
507
|
+
columns: [table.companyId, table.conversationId],
|
|
508
|
+
foreignColumns: [chatConversations.companyId, chatConversations.id],
|
|
509
|
+
name: "chat_message_links_company_conversation_fk",
|
|
510
|
+
}).onDelete("cascade"),
|
|
511
|
+
]);
|
|
512
|
+
export const chatActions = pgTable("chat_actions", {
|
|
513
|
+
id: uuid("id").primaryKey().defaultRandom(),
|
|
514
|
+
companyId: uuid("company_id")
|
|
515
|
+
.notNull()
|
|
516
|
+
.references(() => companies.id, { onDelete: "cascade" }),
|
|
517
|
+
endpointId: uuid("endpoint_id").notNull(),
|
|
518
|
+
deliveryId: uuid("delivery_id").references(() => chatDeliveries.id, {
|
|
519
|
+
onDelete: "set null",
|
|
520
|
+
}),
|
|
521
|
+
conversationId: uuid("conversation_id"),
|
|
522
|
+
principalId: uuid("principal_id"),
|
|
523
|
+
kind: text("kind").notNull(),
|
|
524
|
+
providerActionId: text("provider_action_id").notNull(),
|
|
525
|
+
payload: jsonb("payload")
|
|
526
|
+
.$type()
|
|
527
|
+
.notNull()
|
|
528
|
+
.default({}),
|
|
529
|
+
status: text("status").notNull().default("received"),
|
|
530
|
+
result: jsonb("result").$type(),
|
|
531
|
+
createdAt: timestamp("created_at", { withTimezone: true })
|
|
532
|
+
.notNull()
|
|
533
|
+
.defaultNow(),
|
|
534
|
+
updatedAt: timestamp("updated_at", { withTimezone: true })
|
|
535
|
+
.notNull()
|
|
536
|
+
.defaultNow(),
|
|
537
|
+
}, (table) => [
|
|
538
|
+
uniqueIndex("chat_actions_provider_action_uq").on(table.endpointId, table.providerActionId),
|
|
539
|
+
foreignKey({
|
|
540
|
+
columns: [table.companyId, table.deliveryId],
|
|
541
|
+
foreignColumns: [chatDeliveries.companyId, chatDeliveries.id],
|
|
542
|
+
name: "chat_actions_company_delivery_fk",
|
|
543
|
+
}),
|
|
544
|
+
foreignKey({
|
|
545
|
+
columns: [table.companyId, table.conversationId],
|
|
546
|
+
foreignColumns: [chatConversations.companyId, chatConversations.id],
|
|
547
|
+
name: "chat_actions_company_conversation_fk",
|
|
548
|
+
}),
|
|
549
|
+
foreignKey({
|
|
550
|
+
columns: [table.companyId, table.principalId],
|
|
551
|
+
foreignColumns: [
|
|
552
|
+
chatExternalPrincipals.companyId,
|
|
553
|
+
chatExternalPrincipals.id,
|
|
554
|
+
],
|
|
555
|
+
name: "chat_actions_company_principal_fk",
|
|
556
|
+
}),
|
|
557
|
+
foreignKey({
|
|
558
|
+
columns: [table.companyId, table.endpointId],
|
|
559
|
+
foreignColumns: [chatEndpoints.companyId, chatEndpoints.id],
|
|
560
|
+
name: "chat_actions_company_endpoint_fk",
|
|
561
|
+
}).onDelete("cascade"),
|
|
562
|
+
]);
|
|
563
|
+
export const chatAgentRoutes = pgTable("chat_agent_routes", {
|
|
564
|
+
id: uuid("id").primaryKey().defaultRandom(),
|
|
565
|
+
companyId: uuid("company_id")
|
|
566
|
+
.notNull()
|
|
567
|
+
.references(() => companies.id, { onDelete: "cascade" }),
|
|
568
|
+
sourceEndpointId: uuid("source_endpoint_id").notNull(),
|
|
569
|
+
destinationEndpointId: uuid("destination_endpoint_id").notNull(),
|
|
570
|
+
enabled: boolean("enabled").notNull().default(false),
|
|
571
|
+
triggerMode: text("trigger_mode").notNull().default("explicit_mention"),
|
|
572
|
+
maxHops: integer("max_hops").notNull().default(1),
|
|
573
|
+
createdByUserId: text("created_by_user_id"),
|
|
574
|
+
createdAt: timestamp("created_at", { withTimezone: true })
|
|
575
|
+
.notNull()
|
|
576
|
+
.defaultNow(),
|
|
577
|
+
updatedAt: timestamp("updated_at", { withTimezone: true })
|
|
578
|
+
.notNull()
|
|
579
|
+
.defaultNow(),
|
|
580
|
+
}, (table) => [
|
|
581
|
+
check("chat_agent_routes_hops_check", sql `${table.maxHops} between 1 and 8`),
|
|
582
|
+
uniqueIndex("chat_agent_routes_pair_uq").on(table.sourceEndpointId, table.destinationEndpointId),
|
|
583
|
+
foreignKey({
|
|
584
|
+
columns: [table.companyId, table.sourceEndpointId],
|
|
585
|
+
foreignColumns: [chatEndpoints.companyId, chatEndpoints.id],
|
|
586
|
+
name: "chat_agent_routes_company_source_fk",
|
|
587
|
+
}).onDelete("cascade"),
|
|
588
|
+
foreignKey({
|
|
589
|
+
columns: [table.companyId, table.destinationEndpointId],
|
|
590
|
+
foreignColumns: [chatEndpoints.companyId, chatEndpoints.id],
|
|
591
|
+
name: "chat_agent_routes_company_destination_fk",
|
|
592
|
+
}).onDelete("cascade"),
|
|
593
|
+
]);
|
|
594
|
+
export const chatEndpointLeases = pgTable("chat_endpoint_leases", {
|
|
595
|
+
id: uuid("id").primaryKey().defaultRandom(),
|
|
596
|
+
companyId: uuid("company_id")
|
|
597
|
+
.notNull()
|
|
598
|
+
.references(() => companies.id, { onDelete: "cascade" }),
|
|
599
|
+
endpointId: uuid("endpoint_id").notNull(),
|
|
600
|
+
leaseKey: text("lease_key").notNull(),
|
|
601
|
+
token: text("token").notNull(),
|
|
602
|
+
expiresAt: timestamp("expires_at", { withTimezone: true }).notNull(),
|
|
603
|
+
createdAt: timestamp("created_at", { withTimezone: true })
|
|
604
|
+
.notNull()
|
|
605
|
+
.defaultNow(),
|
|
606
|
+
updatedAt: timestamp("updated_at", { withTimezone: true })
|
|
607
|
+
.notNull()
|
|
608
|
+
.defaultNow(),
|
|
609
|
+
}, (table) => [
|
|
610
|
+
uniqueIndex("chat_endpoint_leases_active_uq").on(table.endpointId, table.leaseKey),
|
|
611
|
+
index("chat_endpoint_leases_expiry_idx").on(table.expiresAt),
|
|
612
|
+
foreignKey({
|
|
613
|
+
columns: [table.companyId, table.endpointId],
|
|
614
|
+
foreignColumns: [chatEndpoints.companyId, chatEndpoints.id],
|
|
615
|
+
name: "chat_endpoint_leases_company_endpoint_fk",
|
|
616
|
+
}).onDelete("cascade"),
|
|
617
|
+
]);
|
|
618
|
+
export const chatSdkState = pgTable("chat_sdk_state", {
|
|
619
|
+
id: uuid("id").primaryKey().defaultRandom(),
|
|
620
|
+
companyId: uuid("company_id")
|
|
621
|
+
.notNull()
|
|
622
|
+
.references(() => companies.id, { onDelete: "cascade" }),
|
|
623
|
+
endpointId: uuid("endpoint_id").notNull(),
|
|
624
|
+
stateKey: text("state_key").notNull(),
|
|
625
|
+
version: integer("version").notNull().default(1),
|
|
626
|
+
value: jsonb("value").$type().notNull(),
|
|
627
|
+
expiresAt: timestamp("expires_at", { withTimezone: true }),
|
|
628
|
+
createdAt: timestamp("created_at", { withTimezone: true })
|
|
629
|
+
.notNull()
|
|
630
|
+
.defaultNow(),
|
|
631
|
+
updatedAt: timestamp("updated_at", { withTimezone: true })
|
|
632
|
+
.notNull()
|
|
633
|
+
.defaultNow(),
|
|
634
|
+
}, (table) => [
|
|
635
|
+
uniqueIndex("chat_sdk_state_key_uq").on(table.endpointId, table.stateKey),
|
|
636
|
+
index("chat_sdk_state_expiry_idx").on(table.expiresAt),
|
|
637
|
+
foreignKey({
|
|
638
|
+
columns: [table.companyId, table.endpointId],
|
|
639
|
+
foreignColumns: [chatEndpoints.companyId, chatEndpoints.id],
|
|
640
|
+
name: "chat_sdk_state_company_endpoint_fk",
|
|
641
|
+
}).onDelete("cascade"),
|
|
642
|
+
]);
|
|
643
|
+
export const chatEndpointOwners = pgTable("chat_endpoint_owners", {
|
|
644
|
+
id: uuid("id").primaryKey().defaultRandom(),
|
|
645
|
+
companyId: uuid("company_id")
|
|
646
|
+
.notNull()
|
|
647
|
+
.references(() => companies.id, { onDelete: "cascade" }),
|
|
648
|
+
endpointId: uuid("endpoint_id").notNull(),
|
|
649
|
+
identityLinkId: uuid("identity_link_id").notNull(),
|
|
650
|
+
addedByUserId: text("added_by_user_id"),
|
|
651
|
+
createdAt: timestamp("created_at", { withTimezone: true })
|
|
652
|
+
.notNull()
|
|
653
|
+
.defaultNow(),
|
|
654
|
+
updatedAt: timestamp("updated_at", { withTimezone: true })
|
|
655
|
+
.notNull()
|
|
656
|
+
.defaultNow(),
|
|
657
|
+
}, (table) => [
|
|
658
|
+
uniqueIndex("chat_endpoint_owners_link_uq").on(table.endpointId, table.identityLinkId),
|
|
659
|
+
unique("chat_endpoint_owners_company_id_uq").on(table.companyId, table.id),
|
|
660
|
+
foreignKey({
|
|
661
|
+
columns: [table.companyId, table.endpointId],
|
|
662
|
+
foreignColumns: [chatEndpoints.companyId, chatEndpoints.id],
|
|
663
|
+
name: "chat_endpoint_owners_company_endpoint_fk",
|
|
664
|
+
}).onDelete("cascade"),
|
|
665
|
+
foreignKey({
|
|
666
|
+
columns: [table.companyId, table.identityLinkId],
|
|
667
|
+
foreignColumns: [chatIdentityLinks.companyId, chatIdentityLinks.id],
|
|
668
|
+
name: "chat_endpoint_owners_company_identity_link_fk",
|
|
669
|
+
}).onDelete("cascade"),
|
|
670
|
+
]);
|
|
671
|
+
export const chatOpenwaLinkedSessions = pgTable("chat_openwa_linked_sessions", {
|
|
672
|
+
id: uuid("id").primaryKey().defaultRandom(),
|
|
673
|
+
companyId: uuid("company_id")
|
|
674
|
+
.notNull()
|
|
675
|
+
.references(() => companies.id, { onDelete: "cascade" }),
|
|
676
|
+
endpointId: uuid("endpoint_id").notNull(),
|
|
677
|
+
sessionId: text("session_id").notNull(),
|
|
678
|
+
label: text("label").notNull(),
|
|
679
|
+
phoneMasked: text("phone_masked"),
|
|
680
|
+
pushName: text("push_name"),
|
|
681
|
+
secretId: uuid("secret_id").notNull(),
|
|
682
|
+
gatewayKeyId: text("gateway_key_id").notNull(),
|
|
683
|
+
allowedChats: jsonb("allowed_chats")
|
|
684
|
+
.$type()
|
|
685
|
+
.notNull()
|
|
686
|
+
.default([]),
|
|
687
|
+
status: text("status").$type().notNull().default("active"),
|
|
688
|
+
createdByUserId: text("created_by_user_id"),
|
|
689
|
+
createdAt: timestamp("created_at", { withTimezone: true })
|
|
690
|
+
.notNull()
|
|
691
|
+
.defaultNow(),
|
|
692
|
+
updatedAt: timestamp("updated_at", { withTimezone: true })
|
|
693
|
+
.notNull()
|
|
694
|
+
.defaultNow(),
|
|
695
|
+
}, (table) => [
|
|
696
|
+
uniqueIndex("chat_openwa_linked_sessions_endpoint_session_uq").on(table.endpointId, table.sessionId),
|
|
697
|
+
check("chat_openwa_linked_sessions_status_check", sql `${table.status} in ('active', 'unavailable')`),
|
|
698
|
+
foreignKey({
|
|
699
|
+
columns: [table.companyId, table.endpointId],
|
|
700
|
+
foreignColumns: [chatEndpoints.companyId, chatEndpoints.id],
|
|
701
|
+
name: "chat_openwa_linked_sessions_company_endpoint_fk",
|
|
702
|
+
}).onDelete("cascade"),
|
|
703
|
+
]);
|
|
704
|
+
export const chatSenderRules = pgTable("chat_sender_rules", {
|
|
705
|
+
id: uuid("id").primaryKey().defaultRandom(),
|
|
706
|
+
companyId: uuid("company_id")
|
|
707
|
+
.notNull()
|
|
708
|
+
.references(() => companies.id, { onDelete: "cascade" }),
|
|
709
|
+
endpointId: uuid("endpoint_id").notNull(),
|
|
710
|
+
list: text("list").$type().notNull(),
|
|
711
|
+
e164: text("e164").notNull(),
|
|
712
|
+
label: text("label"),
|
|
713
|
+
createdByUserId: text("created_by_user_id"),
|
|
714
|
+
createdByPrincipalId: uuid("created_by_principal_id").references(() => chatExternalPrincipals.id, { onDelete: "set null" }),
|
|
715
|
+
createdAt: timestamp("created_at", { withTimezone: true })
|
|
716
|
+
.notNull()
|
|
717
|
+
.defaultNow(),
|
|
718
|
+
updatedAt: timestamp("updated_at", { withTimezone: true })
|
|
719
|
+
.notNull()
|
|
720
|
+
.defaultNow(),
|
|
721
|
+
}, (table) => [
|
|
722
|
+
check("chat_sender_rules_list_check", sql `${table.list} in ('allow', 'deny')`),
|
|
723
|
+
check("chat_sender_rules_e164_check", sql `${table.e164} ~ '^[+][1-9][0-9]{6,14}$'`),
|
|
724
|
+
uniqueIndex("chat_sender_rules_entry_uq").on(table.endpointId, table.list, table.e164),
|
|
725
|
+
foreignKey({
|
|
726
|
+
columns: [table.companyId, table.endpointId],
|
|
727
|
+
foreignColumns: [chatEndpoints.companyId, chatEndpoints.id],
|
|
728
|
+
name: "chat_sender_rules_company_endpoint_fk",
|
|
729
|
+
}).onDelete("cascade"),
|
|
730
|
+
foreignKey({
|
|
731
|
+
columns: [table.companyId, table.createdByPrincipalId],
|
|
732
|
+
foreignColumns: [chatExternalPrincipals.companyId, chatExternalPrincipals.id],
|
|
733
|
+
name: "chat_sender_rules_company_principal_fk",
|
|
734
|
+
}),
|
|
735
|
+
]);
|
|
736
|
+
export const chatScheduledWakes = pgTable("chat_scheduled_wakes", {
|
|
737
|
+
id: uuid("id").primaryKey().defaultRandom(),
|
|
738
|
+
companyId: uuid("company_id")
|
|
739
|
+
.notNull()
|
|
740
|
+
.references(() => companies.id, { onDelete: "cascade" }),
|
|
741
|
+
endpointId: uuid("endpoint_id").notNull(),
|
|
742
|
+
chatKey: text("chat_key").notNull(),
|
|
743
|
+
kind: text("kind").$type().notNull(),
|
|
744
|
+
fireAt: timestamp("fire_at", { withTimezone: true }).notNull(),
|
|
745
|
+
state: text("state")
|
|
746
|
+
.$type()
|
|
747
|
+
.notNull()
|
|
748
|
+
.default("pending"),
|
|
749
|
+
relatedId: uuid("related_id"),
|
|
750
|
+
payload: jsonb("payload")
|
|
751
|
+
.$type()
|
|
752
|
+
.notNull()
|
|
753
|
+
.default({}),
|
|
754
|
+
createdAt: timestamp("created_at", { withTimezone: true })
|
|
755
|
+
.notNull()
|
|
756
|
+
.defaultNow(),
|
|
757
|
+
updatedAt: timestamp("updated_at", { withTimezone: true })
|
|
758
|
+
.notNull()
|
|
759
|
+
.defaultNow(),
|
|
760
|
+
}, (table) => [
|
|
761
|
+
check("chat_scheduled_wakes_kind_check", sql `${table.kind} in ('owner_absent', 'approval_reminder', 'approval_expiry')`),
|
|
762
|
+
check("chat_scheduled_wakes_state_check", sql `${table.state} in ('pending', 'fired', 'cancelled')`),
|
|
763
|
+
index("chat_scheduled_wakes_pending_fire_idx")
|
|
764
|
+
.on(table.fireAt)
|
|
765
|
+
.where(sql `${table.state} = 'pending'`),
|
|
766
|
+
uniqueIndex("chat_scheduled_wakes_pending_absent_uq")
|
|
767
|
+
.on(table.endpointId, table.chatKey)
|
|
768
|
+
.where(sql `${table.kind} = 'owner_absent' and ${table.state} = 'pending'`),
|
|
769
|
+
foreignKey({
|
|
770
|
+
columns: [table.companyId, table.endpointId],
|
|
771
|
+
foreignColumns: [chatEndpoints.companyId, chatEndpoints.id],
|
|
772
|
+
name: "chat_scheduled_wakes_company_endpoint_fk",
|
|
773
|
+
}).onDelete("cascade"),
|
|
774
|
+
]);
|
|
775
|
+
export const chatOwnerApprovalRequests = pgTable("chat_owner_approval_requests", {
|
|
776
|
+
id: uuid("id").primaryKey().defaultRandom(),
|
|
777
|
+
companyId: uuid("company_id")
|
|
778
|
+
.notNull()
|
|
779
|
+
.references(() => companies.id, { onDelete: "cascade" }),
|
|
780
|
+
endpointId: uuid("endpoint_id").notNull(),
|
|
781
|
+
originChatKey: text("origin_chat_key").notNull(),
|
|
782
|
+
originConversationId: uuid("origin_conversation_id").references(() => chatConversations.id, { onDelete: "set null" }),
|
|
783
|
+
interactionId: uuid("interaction_id").references(() => issueThreadInteractions.id, { onDelete: "set null" }),
|
|
784
|
+
requestedByPrincipalId: uuid("requested_by_principal_id").references(() => chatExternalPrincipals.id, { onDelete: "set null" }),
|
|
785
|
+
requestedInRunId: uuid("requested_in_run_id").references(() => heartbeatRuns.id, { onDelete: "set null" }),
|
|
786
|
+
categories: text("categories").array().$type().notNull(),
|
|
787
|
+
scope: text("scope").$type().notNull(),
|
|
788
|
+
summary: text("summary").notNull(),
|
|
789
|
+
proposedAction: text("proposed_action").notNull(),
|
|
790
|
+
status: text("status")
|
|
791
|
+
.$type()
|
|
792
|
+
.notNull()
|
|
793
|
+
.default("pending"),
|
|
794
|
+
reminderCount: integer("reminder_count").notNull().default(0),
|
|
795
|
+
resolvedVia: text("resolved_via").$type(),
|
|
796
|
+
resolvedByUserId: text("resolved_by_user_id"),
|
|
797
|
+
ownerText: text("owner_text"),
|
|
798
|
+
agentConditions: text("agent_conditions"),
|
|
799
|
+
resolvedAt: timestamp("resolved_at", { withTimezone: true }),
|
|
800
|
+
createdAt: timestamp("created_at", { withTimezone: true })
|
|
801
|
+
.notNull()
|
|
802
|
+
.defaultNow(),
|
|
803
|
+
updatedAt: timestamp("updated_at", { withTimezone: true })
|
|
804
|
+
.notNull()
|
|
805
|
+
.defaultNow(),
|
|
806
|
+
}, (table) => [
|
|
807
|
+
check("chat_owner_approval_requests_categories_check", sql `cardinality(${table.categories}) > 0 and ${table.categories} <@ array['create_task', 'external_tools', 'cross_chat_send', 'wa_admin', 'gateway_admin', 'reply_outside_allowlist', 'reply']::text[]`),
|
|
808
|
+
check("chat_owner_approval_requests_scope_check", sql `${table.scope} in ('one_action', 'requester')`),
|
|
809
|
+
check("chat_owner_approval_requests_status_check", sql `${table.status} in ('pending', 'approved', 'rejected', 'cancelled', 'expired', 'withdrawn')`),
|
|
810
|
+
check("chat_owner_approval_requests_resolved_via_check", sql `${table.resolvedVia} is null or ${table.resolvedVia} in ('whatsapp', 'paperclip')`),
|
|
811
|
+
check("chat_owner_approval_requests_reminder_count_check", sql `${table.reminderCount} >= 0`),
|
|
812
|
+
index("chat_owner_approval_requests_status_idx").on(table.endpointId, table.status),
|
|
813
|
+
unique("chat_owner_approval_requests_company_id_uq").on(table.companyId, table.id),
|
|
814
|
+
foreignKey({
|
|
815
|
+
columns: [table.companyId, table.endpointId],
|
|
816
|
+
foreignColumns: [chatEndpoints.companyId, chatEndpoints.id],
|
|
817
|
+
name: "chat_owner_approval_requests_company_endpoint_fk",
|
|
818
|
+
}).onDelete("cascade"),
|
|
819
|
+
foreignKey({
|
|
820
|
+
columns: [table.companyId, table.originConversationId],
|
|
821
|
+
foreignColumns: [chatConversations.companyId, chatConversations.id],
|
|
822
|
+
name: "chat_owner_approval_requests_company_conversation_fk",
|
|
823
|
+
}),
|
|
824
|
+
foreignKey({
|
|
825
|
+
columns: [table.companyId, table.requestedByPrincipalId],
|
|
826
|
+
foreignColumns: [chatExternalPrincipals.companyId, chatExternalPrincipals.id],
|
|
827
|
+
name: "chat_owner_approval_requests_company_principal_fk",
|
|
828
|
+
}),
|
|
829
|
+
]);
|
|
830
|
+
export const chatOutboundMessages = pgTable("chat_outbound_messages", {
|
|
831
|
+
id: uuid("id").primaryKey().defaultRandom(),
|
|
832
|
+
companyId: uuid("company_id")
|
|
833
|
+
.notNull()
|
|
834
|
+
.references(() => companies.id, { onDelete: "cascade" }),
|
|
835
|
+
endpointId: uuid("endpoint_id").notNull(),
|
|
836
|
+
chatKey: text("chat_key").notNull(),
|
|
837
|
+
source: text("source").$type().notNull(),
|
|
838
|
+
runId: uuid("run_id").references(() => heartbeatRuns.id, {
|
|
839
|
+
onDelete: "set null",
|
|
840
|
+
}),
|
|
841
|
+
providerMessageId: text("provider_message_id"),
|
|
842
|
+
state: text("state")
|
|
843
|
+
.$type()
|
|
844
|
+
.notNull()
|
|
845
|
+
.default("pending"),
|
|
846
|
+
bodyHash: text("body_hash").notNull(),
|
|
847
|
+
clientNonce: text("client_nonce").notNull(),
|
|
848
|
+
sentAt: timestamp("sent_at", { withTimezone: true }),
|
|
849
|
+
createdAt: timestamp("created_at", { withTimezone: true })
|
|
850
|
+
.notNull()
|
|
851
|
+
.defaultNow(),
|
|
852
|
+
updatedAt: timestamp("updated_at", { withTimezone: true })
|
|
853
|
+
.notNull()
|
|
854
|
+
.defaultNow(),
|
|
855
|
+
}, (table) => [
|
|
856
|
+
check("chat_outbound_messages_source_check", sql `${table.source} in ('tool', 'publication', 'approval')`),
|
|
857
|
+
check("chat_outbound_messages_state_check", sql `${table.state} in ('pending', 'sent', 'uncertain', 'failed')`),
|
|
858
|
+
uniqueIndex("chat_outbound_messages_provider_message_uq")
|
|
859
|
+
.on(table.endpointId, table.providerMessageId)
|
|
860
|
+
.where(sql `${table.providerMessageId} is not null`),
|
|
861
|
+
index("chat_outbound_messages_chat_state_idx").on(table.endpointId, table.chatKey, table.state),
|
|
862
|
+
index("chat_outbound_messages_sent_at_idx").on(table.endpointId, table.sentAt),
|
|
863
|
+
unique("chat_outbound_messages_company_id_uq").on(table.companyId, table.id),
|
|
864
|
+
foreignKey({
|
|
865
|
+
columns: [table.companyId, table.endpointId],
|
|
866
|
+
foreignColumns: [chatEndpoints.companyId, chatEndpoints.id],
|
|
867
|
+
name: "chat_outbound_messages_company_endpoint_fk",
|
|
868
|
+
}).onDelete("cascade"),
|
|
869
|
+
]);
|
|
870
|
+
export const chatOwnerApprovalBubbles = pgTable("chat_owner_approval_bubbles", {
|
|
871
|
+
id: uuid("id").primaryKey().defaultRandom(),
|
|
872
|
+
companyId: uuid("company_id")
|
|
873
|
+
.notNull()
|
|
874
|
+
.references(() => companies.id, { onDelete: "cascade" }),
|
|
875
|
+
endpointId: uuid("endpoint_id").notNull(),
|
|
876
|
+
requestId: uuid("request_id").notNull(),
|
|
877
|
+
ownerId: uuid("owner_id").notNull(),
|
|
878
|
+
outboundMessageId: uuid("outbound_message_id").notNull(),
|
|
879
|
+
createdAt: timestamp("created_at", { withTimezone: true })
|
|
880
|
+
.notNull()
|
|
881
|
+
.defaultNow(),
|
|
882
|
+
updatedAt: timestamp("updated_at", { withTimezone: true })
|
|
883
|
+
.notNull()
|
|
884
|
+
.defaultNow(),
|
|
885
|
+
}, (table) => [
|
|
886
|
+
uniqueIndex("chat_owner_approval_bubbles_outbound_uq").on(table.endpointId, table.outboundMessageId),
|
|
887
|
+
index("chat_owner_approval_bubbles_request_idx").on(table.requestId),
|
|
888
|
+
foreignKey({
|
|
889
|
+
columns: [table.companyId, table.endpointId],
|
|
890
|
+
foreignColumns: [chatEndpoints.companyId, chatEndpoints.id],
|
|
891
|
+
name: "chat_owner_approval_bubbles_company_endpoint_fk",
|
|
892
|
+
}).onDelete("cascade"),
|
|
893
|
+
foreignKey({
|
|
894
|
+
columns: [table.companyId, table.requestId],
|
|
895
|
+
foreignColumns: [chatOwnerApprovalRequests.companyId, chatOwnerApprovalRequests.id],
|
|
896
|
+
name: "chat_owner_approval_bubbles_company_request_fk",
|
|
897
|
+
}).onDelete("cascade"),
|
|
898
|
+
foreignKey({
|
|
899
|
+
columns: [table.companyId, table.ownerId],
|
|
900
|
+
foreignColumns: [chatEndpointOwners.companyId, chatEndpointOwners.id],
|
|
901
|
+
name: "chat_owner_approval_bubbles_company_owner_fk",
|
|
902
|
+
}).onDelete("cascade"),
|
|
903
|
+
foreignKey({
|
|
904
|
+
columns: [table.companyId, table.outboundMessageId],
|
|
905
|
+
foreignColumns: [chatOutboundMessages.companyId, chatOutboundMessages.id],
|
|
906
|
+
name: "chat_owner_approval_bubbles_company_outbound_fk",
|
|
907
|
+
}).onDelete("cascade"),
|
|
908
|
+
]);
|
|
909
|
+
export const chatOwnerGrants = pgTable("chat_owner_grants", {
|
|
910
|
+
id: uuid("id").primaryKey().defaultRandom(),
|
|
911
|
+
companyId: uuid("company_id")
|
|
912
|
+
.notNull()
|
|
913
|
+
.references(() => companies.id, { onDelete: "cascade" }),
|
|
914
|
+
endpointId: uuid("endpoint_id").notNull(),
|
|
915
|
+
requestId: uuid("request_id").notNull(),
|
|
916
|
+
originChatKey: text("origin_chat_key").notNull(),
|
|
917
|
+
requesterPrincipalId: uuid("requester_principal_id").references(() => chatExternalPrincipals.id, { onDelete: "set null" }),
|
|
918
|
+
category: text("category").$type().notNull(),
|
|
919
|
+
scope: text("scope").$type().notNull(),
|
|
920
|
+
status: text("status")
|
|
921
|
+
.$type()
|
|
922
|
+
.notNull()
|
|
923
|
+
.default("live"),
|
|
924
|
+
approvedByUserId: text("approved_by_user_id"),
|
|
925
|
+
approvedVia: text("approved_via").$type().notNull(),
|
|
926
|
+
expiresAt: timestamp("expires_at", { withTimezone: true }).notNull(),
|
|
927
|
+
consumedAt: timestamp("consumed_at", { withTimezone: true }),
|
|
928
|
+
consumedByRunId: uuid("consumed_by_run_id").references(() => heartbeatRuns.id, { onDelete: "set null" }),
|
|
929
|
+
createdAt: timestamp("created_at", { withTimezone: true })
|
|
930
|
+
.notNull()
|
|
931
|
+
.defaultNow(),
|
|
932
|
+
updatedAt: timestamp("updated_at", { withTimezone: true })
|
|
933
|
+
.notNull()
|
|
934
|
+
.defaultNow(),
|
|
935
|
+
}, (table) => [
|
|
936
|
+
check("chat_owner_grants_category_check", sql `${table.category} in ('create_task', 'external_tools', 'cross_chat_send', 'wa_admin', 'gateway_admin', 'reply_outside_allowlist', 'reply')`),
|
|
937
|
+
check("chat_owner_grants_scope_check", sql `${table.scope} in ('one_action', 'requester')`),
|
|
938
|
+
check("chat_owner_grants_status_check", sql `${table.status} in ('live', 'consumed', 'revoked', 'expired')`),
|
|
939
|
+
check("chat_owner_grants_approved_via_check", sql `${table.approvedVia} in ('whatsapp', 'paperclip')`),
|
|
940
|
+
index("chat_owner_grants_lookup_idx").on(table.endpointId, table.originChatKey, table.requesterPrincipalId, table.status),
|
|
941
|
+
index("chat_owner_grants_request_idx").on(table.requestId),
|
|
942
|
+
foreignKey({
|
|
943
|
+
columns: [table.companyId, table.endpointId],
|
|
944
|
+
foreignColumns: [chatEndpoints.companyId, chatEndpoints.id],
|
|
945
|
+
name: "chat_owner_grants_company_endpoint_fk",
|
|
946
|
+
}).onDelete("cascade"),
|
|
947
|
+
foreignKey({
|
|
948
|
+
columns: [table.companyId, table.requestId],
|
|
949
|
+
foreignColumns: [chatOwnerApprovalRequests.companyId, chatOwnerApprovalRequests.id],
|
|
950
|
+
name: "chat_owner_grants_company_request_fk",
|
|
951
|
+
}).onDelete("cascade"),
|
|
952
|
+
foreignKey({
|
|
953
|
+
columns: [table.companyId, table.requesterPrincipalId],
|
|
954
|
+
foreignColumns: [chatExternalPrincipals.companyId, chatExternalPrincipals.id],
|
|
955
|
+
name: "chat_owner_grants_company_principal_fk",
|
|
956
|
+
}),
|
|
957
|
+
]);
|
|
958
|
+
export const chatAuditEntries = pgTable("chat_audit_entries", {
|
|
959
|
+
id: uuid("id").primaryKey().defaultRandom(),
|
|
960
|
+
companyId: uuid("company_id")
|
|
961
|
+
.notNull()
|
|
962
|
+
.references(() => companies.id, { onDelete: "cascade" }),
|
|
963
|
+
endpointId: uuid("endpoint_id").notNull(),
|
|
964
|
+
conversationId: uuid("conversation_id").references(() => chatConversations.id, { onDelete: "set null" }),
|
|
965
|
+
chatKey: text("chat_key"),
|
|
966
|
+
kind: text("kind").$type().notNull(),
|
|
967
|
+
actorKind: text("actor_kind").$type().notNull(),
|
|
968
|
+
actorRef: text("actor_ref"),
|
|
969
|
+
runId: uuid("run_id").references(() => heartbeatRuns.id, {
|
|
970
|
+
onDelete: "set null",
|
|
971
|
+
}),
|
|
972
|
+
metadata: jsonb("metadata")
|
|
973
|
+
.$type()
|
|
974
|
+
.notNull()
|
|
975
|
+
.default({}),
|
|
976
|
+
content: jsonb("content").$type(),
|
|
977
|
+
contentPurgeAt: timestamp("content_purge_at", { withTimezone: true }),
|
|
978
|
+
occurredAt: timestamp("occurred_at", { withTimezone: true })
|
|
979
|
+
.notNull()
|
|
980
|
+
.defaultNow(),
|
|
981
|
+
createdAt: timestamp("created_at", { withTimezone: true })
|
|
982
|
+
.notNull()
|
|
983
|
+
.defaultNow(),
|
|
984
|
+
updatedAt: timestamp("updated_at", { withTimezone: true })
|
|
985
|
+
.notNull()
|
|
986
|
+
.defaultNow(),
|
|
987
|
+
}, (table) => [
|
|
988
|
+
check("chat_audit_entries_kind_check", sql `${table.kind} in ('trigger_admitted', 'trigger_filtered', 'message_sent', 'publication_suppressed', 'tool_called', 'approval_requested', 'approval_reminded', 'approval_resolved', 'approval_cancelled', 'approval_expired', 'approval_withdrawn', 'config_changed', 'group_added', 'group_left', 'session_health', 'linked_read', 'run_failed', 'owner_report_fallback')`),
|
|
989
|
+
check("chat_audit_entries_actor_kind_check", sql `${table.actorKind} in ('user', 'agent', 'chat_principal', 'system')`),
|
|
990
|
+
index("chat_audit_entries_endpoint_occurred_idx").on(table.endpointId, table.occurredAt.desc()),
|
|
991
|
+
index("chat_audit_entries_content_purge_idx")
|
|
992
|
+
.on(table.contentPurgeAt)
|
|
993
|
+
.where(sql `${table.content} is not null`),
|
|
994
|
+
foreignKey({
|
|
995
|
+
columns: [table.companyId, table.endpointId],
|
|
996
|
+
foreignColumns: [chatEndpoints.companyId, chatEndpoints.id],
|
|
997
|
+
name: "chat_audit_entries_company_endpoint_fk",
|
|
998
|
+
}).onDelete("cascade"),
|
|
999
|
+
foreignKey({
|
|
1000
|
+
columns: [table.companyId, table.conversationId],
|
|
1001
|
+
foreignColumns: [chatConversations.companyId, chatConversations.id],
|
|
1002
|
+
name: "chat_audit_entries_company_conversation_fk",
|
|
1003
|
+
}),
|
|
1004
|
+
]);
|
|
1005
|
+
//# sourceMappingURL=chat_channels.js.map
|