@tickernelz/paperclip-pro-db 2026.925.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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-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 +42 -0
- package/dist/backup-lib.d.ts.map +1 -0
- package/dist/backup-lib.js +921 -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 +502 -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-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-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 +111 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +883 -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 +1759 -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 +98 -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/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 +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +10 -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/meta/_journal.json +1980 -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/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/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/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/activity_log.d.ts +214 -0
- package/dist/schema/activity_log.d.ts.map +1 -0
- package/dist/schema/activity_log.js +25 -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_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_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 +56 -0
- package/dist/schema/agent_wakeup_requests.js.map +1 -0
- package/dist/schema/agents.d.ts +434 -0
- package/dist/schema/agents.d.ts.map +1 -0
- package/dist/schema/agents.js +35 -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_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/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 +20 -0
- package/dist/schema/approvals.js.map +1 -0
- package/dist/schema/assets.d.ts +212 -0
- package/dist/schema/assets.d.ts.map +1 -0
- package/dist/schema/assets.js +22 -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/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 +263 -0
- package/dist/schema/budget_policies.d.ts.map +1 -0
- package/dist/schema/budget_policies.js +24 -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 +3035 -0
- package/dist/schema/chat_channels.d.ts.map +1 -0
- package/dist/schema/chat_channels.js +605 -0
- package/dist/schema/chat_channels.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 +730 -0
- package/dist/schema/chat_github.d.ts.map +1 -0
- package/dist/schema/chat_github.js +110 -0
- package/dist/schema/chat_github.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/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 +333 -0
- package/dist/schema/companies.d.ts.map +1 -0
- package/dist/schema/companies.js +32 -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 +384 -0
- package/dist/schema/company_secrets.d.ts.map +1 -0
- package/dist/schema/company_secrets.js +56 -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_skills.d.ts +1858 -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 +331 -0
- package/dist/schema/cost_events.d.ts.map +1 -0
- package/dist/schema/cost_events.js +35 -0
- package/dist/schema/cost_events.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 +78 -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/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/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 +469 -0
- package/dist/schema/finance_events.d.ts.map +1 -0
- package/dist/schema/finance_events.js +45 -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 +36 -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 +1206 -0
- package/dist/schema/heartbeat_runs.d.ts.map +1 -0
- package/dist/schema/heartbeat_runs.js +103 -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 +138 -0
- package/dist/schema/index.d.ts.map +1 -0
- package/dist/schema/index.js +138 -0
- package/dist/schema/index.js.map +1 -0
- package/dist/schema/instance_settings.d.ts +131 -0
- package/dist/schema/instance_settings.d.ts.map +1 -0
- package/dist/schema/instance_settings.js +14 -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_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_comments.d.ts +429 -0
- package/dist/schema/issue_comments.d.ts.map +1 -0
- package/dist/schema/issue_comments.js +45 -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_thread_interactions.d.ts +516 -0
- package/dist/schema/issue_thread_interactions.d.ts.map +1 -0
- package/dist/schema/issue_thread_interactions.js +61 -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 +1062 -0
- package/dist/schema/issues.d.ts.map +1 -0
- package/dist/schema/issues.js +158 -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/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/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 +52 -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/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_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_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 +302 -0
- package/dist/schema/projects.d.ts.map +1 -0
- package/dist/schema/projects.js +26 -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/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/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/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/tool_access.d.ts +8382 -0
- package/dist/schema/tool_access.d.ts.map +1 -0
- package/dist/schema/tool_access.js +735 -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/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/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/seed.d.ts +2 -0
- package/dist/seed.d.ts.map +1 -0
- package/dist/seed.js +91 -0
- package/dist/seed.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/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 +37 -0
- package/dist/test-embedded-postgres.d.ts.map +1 -0
- package/dist/test-embedded-postgres.js +240 -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/transient-write-retry.d.ts +4 -0
- package/dist/transient-write-retry.d.ts.map +1 -0
- package/dist/transient-write-retry.js +79 -0
- package/dist/transient-write-retry.js.map +1 -0
- package/dist/transient-write-retry.test.d.ts +2 -0
- package/dist/transient-write-retry.test.d.ts.map +1 -0
- package/dist/transient-write-retry.test.js +166 -0
- package/dist/transient-write-retry.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/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 +828 -0
- package/node_modules/pg/lib/connection-parameters.js +184 -0
- package/node_modules/pg/lib/connection.js +243 -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 +420 -0
- package/node_modules/pg/lib/native/index.js +2 -0
- package/node_modules/pg/lib/native/query.js +165 -0
- package/node_modules/pg/lib/query.js +259 -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 +207 -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 +31 -0
- package/node_modules/pg-cloudflare/dist/index.js +154 -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 +169 -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 +52 -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 +17 -0
- package/node_modules/pg-protocol/dist/buffer-writer.js +104 -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 +196 -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 +110 -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 +280 -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 +69 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2014 Iced Development
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
pg-connection-string
|
|
2
|
+
====================
|
|
3
|
+
|
|
4
|
+
[](https://nodei.co/npm/pg-connection-string/)
|
|
5
|
+
|
|
6
|
+
Functions for dealing with a PostgreSQL connection string
|
|
7
|
+
|
|
8
|
+
`parse` method taken from [node-postgres](https://github.com/brianc/node-postgres.git)
|
|
9
|
+
Copyright (c) 2010-2014 Brian Carlson (brian.m.carlson@gmail.com)
|
|
10
|
+
MIT License
|
|
11
|
+
|
|
12
|
+
## Usage
|
|
13
|
+
|
|
14
|
+
```js
|
|
15
|
+
const parse = require('pg-connection-string').parse;
|
|
16
|
+
|
|
17
|
+
const config = parse('postgres://someuser:somepassword@somehost:381/somedatabase')
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
The resulting config contains a subset of the following properties:
|
|
21
|
+
|
|
22
|
+
* `user` - User with which to authenticate to the server
|
|
23
|
+
* `password` - Corresponding password
|
|
24
|
+
* `host` - Postgres server hostname or, for UNIX domain sockets, the socket filename
|
|
25
|
+
* `port` - port on which to connect
|
|
26
|
+
* `database` - Database name within the server
|
|
27
|
+
* `client_encoding` - string encoding the client will use
|
|
28
|
+
* `ssl`, either a boolean or an object with properties
|
|
29
|
+
* `rejectUnauthorized`
|
|
30
|
+
* `cert`
|
|
31
|
+
* `key`
|
|
32
|
+
* `ca`
|
|
33
|
+
* any other query parameters (for example, `application_name`) are preserved intact.
|
|
34
|
+
|
|
35
|
+
### ClientConfig Compatibility for TypeScript
|
|
36
|
+
|
|
37
|
+
The pg-connection-string `ConnectionOptions` interface is not compatible with the `ClientConfig` interface that [pg.Client](https://node-postgres.com/apis/client) expects. To remedy this, use the `parseIntoClientConfig` function instead of `parse`:
|
|
38
|
+
|
|
39
|
+
```ts
|
|
40
|
+
import { ClientConfig } from 'pg';
|
|
41
|
+
import { parseIntoClientConfig } from 'pg-connection-string';
|
|
42
|
+
|
|
43
|
+
const config: ClientConfig = parseIntoClientConfig('postgres://someuser:somepassword@somehost:381/somedatabase')
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
You can also use `toClientConfig` to convert an existing `ConnectionOptions` interface into a `ClientConfig` interface:
|
|
47
|
+
|
|
48
|
+
```ts
|
|
49
|
+
import { ClientConfig } from 'pg';
|
|
50
|
+
import { parse, toClientConfig } from 'pg-connection-string';
|
|
51
|
+
|
|
52
|
+
const config = parse('postgres://someuser:somepassword@somehost:381/somedatabase')
|
|
53
|
+
const clientConfig: ClientConfig = toClientConfig(config)
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Connection Strings
|
|
57
|
+
|
|
58
|
+
The short summary of acceptable URLs is:
|
|
59
|
+
|
|
60
|
+
* `socket:<path>?<query>` - UNIX domain socket
|
|
61
|
+
* `postgres://<user>:<password>@<host>:<port>/<database>?<query>` - TCP connection
|
|
62
|
+
|
|
63
|
+
But see below for more details.
|
|
64
|
+
|
|
65
|
+
### UNIX Domain Sockets
|
|
66
|
+
|
|
67
|
+
When user and password are not given, the socket path follows `socket:`, as in `socket:/var/run/pgsql`.
|
|
68
|
+
This form can be shortened to just a path: `/var/run/pgsql`.
|
|
69
|
+
|
|
70
|
+
When user and password are given, they are included in the typical URL positions, with an empty `host`, as in `socket://user:pass@/var/run/pgsql`.
|
|
71
|
+
|
|
72
|
+
Query parameters follow a `?` character, including the following special query parameters:
|
|
73
|
+
|
|
74
|
+
* `db=<database>` - sets the database name (urlencoded)
|
|
75
|
+
* `encoding=<encoding>` - sets the `client_encoding` property
|
|
76
|
+
|
|
77
|
+
### TCP Connections
|
|
78
|
+
|
|
79
|
+
TCP connections to the Postgres server are indicated with `pg:` or `postgres:` schemes (in fact, any scheme but `socket:` is accepted).
|
|
80
|
+
If username and password are included, they should be urlencoded.
|
|
81
|
+
The database name, however, should *not* be urlencoded.
|
|
82
|
+
|
|
83
|
+
Query parameters follow a `?` character, including the following special query parameters:
|
|
84
|
+
* `host=<host>` - sets `host` property, overriding the URL's host
|
|
85
|
+
* `encoding=<encoding>` - sets the `client_encoding` property
|
|
86
|
+
* `ssl=1`, `ssl=true`, `ssl=0`, `ssl=false` - sets `ssl` to true or false, accordingly
|
|
87
|
+
* `uselibpqcompat=true` - use libpq semantics
|
|
88
|
+
* `sslmode=<sslmode>` when `uselibpqcompat=true` is not set
|
|
89
|
+
* `sslmode=disable` - sets `ssl` to false
|
|
90
|
+
* `sslmode=no-verify` - sets `ssl` to `{ rejectUnauthorized: false }`
|
|
91
|
+
* `sslmode=prefer`, `sslmode=require`, `sslmode=verify-ca`, `sslmode=verify-full` - sets `ssl` to true
|
|
92
|
+
* `sslmode=<sslmode>` when `uselibpqcompat=true`
|
|
93
|
+
* `sslmode=disable` - sets `ssl` to false
|
|
94
|
+
* `sslmode=prefer` - sets `ssl` to `{ rejectUnauthorized: false }`
|
|
95
|
+
* `sslmode=require` - sets `ssl` to `{ rejectUnauthorized: false }` unless `sslrootcert` is specified, in which case it behaves like `verify-ca`
|
|
96
|
+
* `sslmode=verify-ca` - sets `ssl` to `{ checkServerIdentity: no-op }` (verify CA, but not server identity). This verifies the presented certificate against the effective CA specified in sslrootcert.
|
|
97
|
+
* `sslmode=verify-full` - sets `ssl` to `{}` (verify CA and server identity)
|
|
98
|
+
* `sslcert=<filename>` - reads data from the given file and includes the result as `ssl.cert`
|
|
99
|
+
* `sslkey=<filename>` - reads data from the given file and includes the result as `ssl.key`
|
|
100
|
+
* `sslrootcert=<filename>` - reads data from the given file and includes the result as `ssl.ca`
|
|
101
|
+
|
|
102
|
+
A bare relative URL, such as `salesdata`, will indicate a database name while leaving other properties empty.
|
|
103
|
+
|
|
104
|
+
> [!CAUTION]
|
|
105
|
+
> Choosing an sslmode other than verify-full has serious security implications. Please read https://www.postgresql.org/docs/current/libpq-ssl.html#LIBPQ-SSL-SSLMODE-STATEMENTS to understand the trade-offs.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// ESM wrapper for pg-connection-string
|
|
2
|
+
import connectionString from '../index.js'
|
|
3
|
+
|
|
4
|
+
// Re-export the parse function
|
|
5
|
+
export default connectionString.parse
|
|
6
|
+
export const parse = connectionString.parse
|
|
7
|
+
export const toClientConfig = connectionString.toClientConfig
|
|
8
|
+
export const parseIntoClientConfig = connectionString.parseIntoClientConfig
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ClientConfig } from 'pg'
|
|
2
|
+
|
|
3
|
+
export function parse(connectionString: string, options?: Options): ConnectionOptions
|
|
4
|
+
|
|
5
|
+
export interface Options {
|
|
6
|
+
// Use libpq semantics when interpreting the connection string
|
|
7
|
+
useLibpqCompat?: boolean
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
interface SSLConfig {
|
|
11
|
+
ca?: string
|
|
12
|
+
cert?: string | null
|
|
13
|
+
key?: string
|
|
14
|
+
rejectUnauthorized?: boolean
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface ConnectionOptions {
|
|
18
|
+
host: string | null
|
|
19
|
+
password?: string
|
|
20
|
+
user?: string
|
|
21
|
+
port?: string | null
|
|
22
|
+
database: string | null | undefined
|
|
23
|
+
client_encoding?: string
|
|
24
|
+
ssl?: boolean | string | SSLConfig
|
|
25
|
+
sslnegotiation?: 'postgres' | 'direct'
|
|
26
|
+
|
|
27
|
+
application_name?: string
|
|
28
|
+
fallback_application_name?: string
|
|
29
|
+
options?: string
|
|
30
|
+
keepalives?: number
|
|
31
|
+
|
|
32
|
+
// We allow any other options to be passed through
|
|
33
|
+
[key: string]: unknown
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function toClientConfig(config: ConnectionOptions): ClientConfig
|
|
37
|
+
export function parseIntoClientConfig(connectionString: string): ClientConfig
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
//Parse method copied from https://github.com/brianc/node-postgres
|
|
4
|
+
//Copyright (c) 2010-2014 Brian Carlson (brian.m.carlson@gmail.com)
|
|
5
|
+
//MIT License
|
|
6
|
+
|
|
7
|
+
//parses a connection string
|
|
8
|
+
function parse(str, options = {}) {
|
|
9
|
+
//unix socket
|
|
10
|
+
if (str.charAt(0) === '/') {
|
|
11
|
+
const config = str.split(' ')
|
|
12
|
+
return { host: config[0], database: config[1] }
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// Check for empty host in URL
|
|
16
|
+
|
|
17
|
+
const config = Object.create(null)
|
|
18
|
+
let result
|
|
19
|
+
let dummyHost = false
|
|
20
|
+
if (/ |%[^a-f0-9]|%[a-f0-9][^a-f0-9]/i.test(str)) {
|
|
21
|
+
// Ensure spaces are encoded as %20
|
|
22
|
+
str = encodeURI(str).replace(/%25(\d\d)/g, '%$1')
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
try {
|
|
26
|
+
try {
|
|
27
|
+
result = new URL(str, 'postgres://base')
|
|
28
|
+
} catch (e) {
|
|
29
|
+
// The URL is invalid so try again with a dummy host
|
|
30
|
+
result = new URL(str.replace('@/', '@___DUMMY___/'), 'postgres://base')
|
|
31
|
+
dummyHost = true
|
|
32
|
+
}
|
|
33
|
+
} catch (err) {
|
|
34
|
+
// Remove the input from the error message to avoid leaking sensitive information
|
|
35
|
+
err.input && (err.input = '*****REDACTED*****')
|
|
36
|
+
throw err
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// We'd like to use Object.fromEntries() here but Node.js 10 does not support it
|
|
40
|
+
for (const entry of result.searchParams.entries()) {
|
|
41
|
+
config[entry[0]] = entry[1]
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
config.user = config.user || decodeURIComponent(result.username)
|
|
45
|
+
config.password = config.password || decodeURIComponent(result.password)
|
|
46
|
+
|
|
47
|
+
if (result.protocol == 'socket:') {
|
|
48
|
+
config.host = decodeURI(result.pathname)
|
|
49
|
+
config.database = result.searchParams.get('db')
|
|
50
|
+
config.client_encoding = result.searchParams.get('encoding')
|
|
51
|
+
return config
|
|
52
|
+
}
|
|
53
|
+
const hostname = dummyHost ? '' : result.hostname
|
|
54
|
+
if (!config.host) {
|
|
55
|
+
// Only set the host if there is no equivalent query param.
|
|
56
|
+
config.host = decodeURIComponent(hostname)
|
|
57
|
+
} else if (hostname && /^%2f/i.test(hostname)) {
|
|
58
|
+
// Only prepend the hostname to the pathname if it is not a URL encoded Unix socket host.
|
|
59
|
+
result.pathname = hostname + result.pathname
|
|
60
|
+
}
|
|
61
|
+
if (!config.port) {
|
|
62
|
+
// Only set the port if there is no equivalent query param.
|
|
63
|
+
config.port = result.port
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const pathname = result.pathname.slice(1) || null
|
|
67
|
+
config.database = pathname ? decodeURI(pathname) : null
|
|
68
|
+
|
|
69
|
+
if (config.ssl === 'true' || config.ssl === '1') {
|
|
70
|
+
config.ssl = true
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
if (config.ssl === '0') {
|
|
74
|
+
config.ssl = false
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if (config.sslcert || config.sslkey || config.sslrootcert || config.sslmode) {
|
|
78
|
+
config.ssl = {}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// sslnegotiation=direct implies SSL is in use (libpq requires sslmode>=require),
|
|
82
|
+
// so enable SSL if the connection string did not otherwise configure it.
|
|
83
|
+
if (config.sslnegotiation === 'direct' && config.ssl === undefined) {
|
|
84
|
+
config.ssl = true
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// Only try to load fs if we expect to read from the disk
|
|
88
|
+
const fs = config.sslcert || config.sslkey || config.sslrootcert ? require('fs') : null
|
|
89
|
+
|
|
90
|
+
if (config.sslcert) {
|
|
91
|
+
config.ssl.cert = fs.readFileSync(config.sslcert).toString()
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
if (config.sslkey) {
|
|
95
|
+
config.ssl.key = fs.readFileSync(config.sslkey).toString()
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
if (config.sslrootcert) {
|
|
99
|
+
config.ssl.ca = fs.readFileSync(config.sslrootcert).toString()
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
if (options.useLibpqCompat && config.uselibpqcompat) {
|
|
103
|
+
throw new Error('Both useLibpqCompat and uselibpqcompat are set. Please use only one of them.')
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
if (config.uselibpqcompat === 'true' || options.useLibpqCompat) {
|
|
107
|
+
switch (config.sslmode) {
|
|
108
|
+
case 'disable': {
|
|
109
|
+
config.ssl = false
|
|
110
|
+
break
|
|
111
|
+
}
|
|
112
|
+
case 'prefer': {
|
|
113
|
+
config.ssl.rejectUnauthorized = false
|
|
114
|
+
break
|
|
115
|
+
}
|
|
116
|
+
case 'require': {
|
|
117
|
+
if (config.sslrootcert) {
|
|
118
|
+
// If a root CA is specified, behavior of `sslmode=require` will be the same as that of `verify-ca`
|
|
119
|
+
config.ssl.checkServerIdentity = function () {}
|
|
120
|
+
} else {
|
|
121
|
+
config.ssl.rejectUnauthorized = false
|
|
122
|
+
}
|
|
123
|
+
break
|
|
124
|
+
}
|
|
125
|
+
case 'verify-ca': {
|
|
126
|
+
if (!config.ssl.ca) {
|
|
127
|
+
throw new Error(
|
|
128
|
+
'SECURITY WARNING: Using sslmode=verify-ca requires specifying a CA with sslrootcert. If a public CA is used, verify-ca allows connections to a server that somebody else may have registered with the CA, making you vulnerable to Man-in-the-Middle attacks. Either specify a custom CA certificate with sslrootcert parameter or use sslmode=verify-full for proper security.'
|
|
129
|
+
)
|
|
130
|
+
}
|
|
131
|
+
config.ssl.checkServerIdentity = function () {}
|
|
132
|
+
break
|
|
133
|
+
}
|
|
134
|
+
case 'verify-full': {
|
|
135
|
+
break
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
} else {
|
|
139
|
+
switch (config.sslmode) {
|
|
140
|
+
case 'disable': {
|
|
141
|
+
config.ssl = false
|
|
142
|
+
break
|
|
143
|
+
}
|
|
144
|
+
case 'prefer':
|
|
145
|
+
case 'require':
|
|
146
|
+
case 'verify-ca':
|
|
147
|
+
case 'verify-full': {
|
|
148
|
+
if (config.sslmode !== 'verify-full') {
|
|
149
|
+
deprecatedSslModeWarning(config.sslmode)
|
|
150
|
+
}
|
|
151
|
+
break
|
|
152
|
+
}
|
|
153
|
+
case 'no-verify': {
|
|
154
|
+
config.ssl.rejectUnauthorized = false
|
|
155
|
+
break
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
return config
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
// convert pg-connection-string ssl config to a ClientConfig.ConnectionOptions
|
|
164
|
+
function toConnectionOptions(sslConfig) {
|
|
165
|
+
const connectionOptions = Object.entries(sslConfig).reduce((c, [key, value]) => {
|
|
166
|
+
// we explicitly check for undefined and null instead of `if (value)` because some
|
|
167
|
+
// options accept falsy values. Example: `ssl.rejectUnauthorized = false`
|
|
168
|
+
if (value !== undefined && value !== null) {
|
|
169
|
+
c[key] = value
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
return c
|
|
173
|
+
}, Object.create(null))
|
|
174
|
+
|
|
175
|
+
return connectionOptions
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
// convert pg-connection-string config to a ClientConfig
|
|
179
|
+
function toClientConfig(config) {
|
|
180
|
+
const poolConfig = Object.entries(config).reduce((c, [key, value]) => {
|
|
181
|
+
if (key === 'ssl') {
|
|
182
|
+
const sslConfig = value
|
|
183
|
+
|
|
184
|
+
if (typeof sslConfig === 'boolean') {
|
|
185
|
+
c[key] = sslConfig
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
if (typeof sslConfig === 'object') {
|
|
189
|
+
c[key] = toConnectionOptions(sslConfig)
|
|
190
|
+
}
|
|
191
|
+
} else if (value !== undefined && value !== null) {
|
|
192
|
+
if (key === 'port') {
|
|
193
|
+
// when port is not specified, it is converted into an empty string
|
|
194
|
+
// we want to avoid NaN or empty string as a values in ClientConfig
|
|
195
|
+
if (value !== '') {
|
|
196
|
+
const v = parseInt(value, 10)
|
|
197
|
+
if (isNaN(v)) {
|
|
198
|
+
throw new Error(`Invalid ${key}: ${value}`)
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
c[key] = v
|
|
202
|
+
}
|
|
203
|
+
} else {
|
|
204
|
+
c[key] = value
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
return c
|
|
209
|
+
}, Object.create(null))
|
|
210
|
+
|
|
211
|
+
return poolConfig
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
// parses a connection string into ClientConfig
|
|
215
|
+
function parseIntoClientConfig(str) {
|
|
216
|
+
return toClientConfig(parse(str))
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
function deprecatedSslModeWarning(sslmode) {
|
|
220
|
+
if (!deprecatedSslModeWarning.warned && typeof process !== 'undefined' && process.emitWarning) {
|
|
221
|
+
deprecatedSslModeWarning.warned = true
|
|
222
|
+
process.emitWarning(`SECURITY WARNING: The SSL modes 'prefer', 'require', and 'verify-ca' are treated as aliases for 'verify-full'.
|
|
223
|
+
In the next major version (pg-connection-string v3.0.0 and pg v9.0.0), these modes will adopt standard libpq semantics, which have weaker security guarantees.
|
|
224
|
+
|
|
225
|
+
To prepare for this change:
|
|
226
|
+
- If you want the current behavior, explicitly use 'sslmode=verify-full'
|
|
227
|
+
- If you want libpq compatibility now, use 'uselibpqcompat=true&sslmode=${sslmode}'
|
|
228
|
+
|
|
229
|
+
See https://www.postgresql.org/docs/current/libpq-ssl.html for libpq SSL mode definitions.`)
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
module.exports = parse
|
|
234
|
+
|
|
235
|
+
parse.parse = parse
|
|
236
|
+
parse.toClientConfig = toClientConfig
|
|
237
|
+
parse.parseIntoClientConfig = parseIntoClientConfig
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "pg-connection-string",
|
|
3
|
+
"version": "2.14.0",
|
|
4
|
+
"description": "Functions for dealing with a PostgreSQL connection string",
|
|
5
|
+
"main": "./index.js",
|
|
6
|
+
"types": "./index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./index.d.ts",
|
|
10
|
+
"import": "./esm/index.mjs",
|
|
11
|
+
"require": "./index.js",
|
|
12
|
+
"default": "./index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"test": "nyc --reporter=lcov mocha && npm run check-coverage",
|
|
17
|
+
"check-coverage": "nyc check-coverage --statements 100 --branches 100 --lines 100 --functions 100"
|
|
18
|
+
},
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "git://github.com/brianc/node-postgres.git",
|
|
22
|
+
"directory": "packages/pg-connection-string"
|
|
23
|
+
},
|
|
24
|
+
"keywords": [
|
|
25
|
+
"pg",
|
|
26
|
+
"connection",
|
|
27
|
+
"string",
|
|
28
|
+
"parse"
|
|
29
|
+
],
|
|
30
|
+
"author": "Blaine Bublitz <blaine@iceddev.com> (http://iceddev.com/)",
|
|
31
|
+
"license": "MIT",
|
|
32
|
+
"bugs": {
|
|
33
|
+
"url": "https://github.com/brianc/node-postgres/issues"
|
|
34
|
+
},
|
|
35
|
+
"homepage": "https://github.com/brianc/node-postgres/tree/master/packages/pg-connection-string",
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@types/pg": "^8.12.0",
|
|
38
|
+
"chai": "^4.1.1",
|
|
39
|
+
"coveralls": "^3.0.4",
|
|
40
|
+
"istanbul": "^0.4.5",
|
|
41
|
+
"mocha": "^11.7.5",
|
|
42
|
+
"nyc": "^15",
|
|
43
|
+
"tsx": "^4.19.4",
|
|
44
|
+
"typescript": "^6.0.3"
|
|
45
|
+
},
|
|
46
|
+
"files": [
|
|
47
|
+
"index.js",
|
|
48
|
+
"index.d.ts",
|
|
49
|
+
"esm"
|
|
50
|
+
],
|
|
51
|
+
"gitHead": "b617619f9fb6fbd231731823e2732a2927ded4be"
|
|
52
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Copyright © 2017, Charmander <~@charmander.me>
|
|
2
|
+
|
|
3
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
4
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
5
|
+
copyright notice and this permission notice appear in all copies.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
9
|
+
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
[![Build status][ci image]][ci]
|
|
2
|
+
|
|
3
|
+
64-bit big-endian signed integer-to-string conversion designed for [pg][].
|
|
4
|
+
|
|
5
|
+
```js
|
|
6
|
+
const readInt8 = require('pg-int8');
|
|
7
|
+
|
|
8
|
+
readInt8(Buffer.from([0, 1, 2, 3, 4, 5, 6, 7]))
|
|
9
|
+
// '283686952306183'
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
[pg]: https://github.com/brianc/node-postgres
|
|
14
|
+
|
|
15
|
+
[ci]: https://travis-ci.org/charmander/pg-int8
|
|
16
|
+
[ci image]: https://api.travis-ci.org/charmander/pg-int8.svg
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// selected so (BASE - 1) * 0x100000000 + 0xffffffff is a safe integer
|
|
4
|
+
var BASE = 1000000;
|
|
5
|
+
|
|
6
|
+
function readInt8(buffer) {
|
|
7
|
+
var high = buffer.readInt32BE(0);
|
|
8
|
+
var low = buffer.readUInt32BE(4);
|
|
9
|
+
var sign = '';
|
|
10
|
+
|
|
11
|
+
if (high < 0) {
|
|
12
|
+
high = ~high + (low === 0);
|
|
13
|
+
low = (~low + 1) >>> 0;
|
|
14
|
+
sign = '-';
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
var result = '';
|
|
18
|
+
var carry;
|
|
19
|
+
var t;
|
|
20
|
+
var digits;
|
|
21
|
+
var pad;
|
|
22
|
+
var l;
|
|
23
|
+
var i;
|
|
24
|
+
|
|
25
|
+
{
|
|
26
|
+
carry = high % BASE;
|
|
27
|
+
high = high / BASE >>> 0;
|
|
28
|
+
|
|
29
|
+
t = 0x100000000 * carry + low;
|
|
30
|
+
low = t / BASE >>> 0;
|
|
31
|
+
digits = '' + (t - BASE * low);
|
|
32
|
+
|
|
33
|
+
if (low === 0 && high === 0) {
|
|
34
|
+
return sign + digits + result;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
pad = '';
|
|
38
|
+
l = 6 - digits.length;
|
|
39
|
+
|
|
40
|
+
for (i = 0; i < l; i++) {
|
|
41
|
+
pad += '0';
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
result = pad + digits + result;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
{
|
|
48
|
+
carry = high % BASE;
|
|
49
|
+
high = high / BASE >>> 0;
|
|
50
|
+
|
|
51
|
+
t = 0x100000000 * carry + low;
|
|
52
|
+
low = t / BASE >>> 0;
|
|
53
|
+
digits = '' + (t - BASE * low);
|
|
54
|
+
|
|
55
|
+
if (low === 0 && high === 0) {
|
|
56
|
+
return sign + digits + result;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
pad = '';
|
|
60
|
+
l = 6 - digits.length;
|
|
61
|
+
|
|
62
|
+
for (i = 0; i < l; i++) {
|
|
63
|
+
pad += '0';
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
result = pad + digits + result;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
{
|
|
70
|
+
carry = high % BASE;
|
|
71
|
+
high = high / BASE >>> 0;
|
|
72
|
+
|
|
73
|
+
t = 0x100000000 * carry + low;
|
|
74
|
+
low = t / BASE >>> 0;
|
|
75
|
+
digits = '' + (t - BASE * low);
|
|
76
|
+
|
|
77
|
+
if (low === 0 && high === 0) {
|
|
78
|
+
return sign + digits + result;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
pad = '';
|
|
82
|
+
l = 6 - digits.length;
|
|
83
|
+
|
|
84
|
+
for (i = 0; i < l; i++) {
|
|
85
|
+
pad += '0';
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
result = pad + digits + result;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
{
|
|
92
|
+
carry = high % BASE;
|
|
93
|
+
t = 0x100000000 * carry + low;
|
|
94
|
+
digits = '' + t % BASE;
|
|
95
|
+
|
|
96
|
+
return sign + digits + result;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
module.exports = readInt8;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "pg-int8",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "64-bit big-endian signed integer-to-string conversion",
|
|
5
|
+
"bugs": "https://github.com/charmander/pg-int8/issues",
|
|
6
|
+
"license": "ISC",
|
|
7
|
+
"files": [
|
|
8
|
+
"index.js"
|
|
9
|
+
],
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/charmander/pg-int8"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"test": "tap test"
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@charmander/eslint-config-base": "1.0.2",
|
|
19
|
+
"tap": "10.7.3"
|
|
20
|
+
},
|
|
21
|
+
"engines": {
|
|
22
|
+
"node": ">=4.0.0"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2017 Brian M. Carlson
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|