@lobu/runtime-server 21.2.1 → 22.0.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/catalogs/automations.json +40 -13
- package/dist/catalogs/connectors.json +16601 -597
- package/dist/component.json +1 -1
- package/dist/connectors/README.md +7 -5
- package/dist/connectors/_google/actions.ts +270 -0
- package/dist/connectors/_google/discovery/calendar_v3.json +1 -0
- package/dist/connectors/_google/discovery/chat_v1.json +1 -0
- package/dist/connectors/_google/discovery/docs_v1.json +1 -0
- package/dist/connectors/_google/discovery/drive_v3.json +1 -0
- package/dist/connectors/_google/discovery/gmail_v1.json +1 -0
- package/dist/connectors/_google/discovery/people_v1.json +1 -0
- package/dist/connectors/_google/discovery/sheets_v4.json +1 -0
- package/dist/connectors/_google/discovery/tasks_v1.json +1 -0
- package/dist/connectors/_google/discovery/youtube_v3.json +1 -0
- package/dist/connectors/_google/discovery.ts +442 -0
- package/dist/connectors/_google/errors.ts +91 -0
- package/dist/connectors/_google/list-feed.ts +223 -0
- package/dist/connectors/_google/policies.ts +127 -0
- package/dist/connectors/agentid.ts +43 -0
- package/dist/connectors/chat-user-identity.ts +2 -1
- package/dist/connectors/github-automation-events.ts +9 -0
- package/dist/connectors/github-identity.ts +28 -3
- package/dist/connectors/github.ts +101 -59
- package/dist/connectors/google_calendar.ts +207 -719
- package/dist/connectors/google_drive.ts +16 -2
- package/dist/connectors/google_gmail.ts +51 -33
- package/dist/connectors/herdr.ts +406 -0
- package/dist/connectors/jira.ts +6 -6
- package/dist/connectors/linear.ts +7 -4
- package/dist/connectors/postgres.ts +27 -2
- package/dist/connectors/tiktok-inbox-page.js +230 -0
- package/dist/connectors/tiktok-web-page.js +211 -0
- package/dist/connectors/tiktok_web.ts +286 -0
- package/dist/connectors/whatsapp-web-adapter.js +228 -10
- package/dist/connectors/whatsapp-web-helpers.ts +47 -14
- package/dist/connectors/whatsapp-web-identity.ts +121 -0
- package/dist/connectors/whatsapp_web.ts +170 -29
- package/dist/connectors/x.ts +276 -136
- package/dist/db/migrations/20261005150000_retire_agent_tool_config.sql +31 -0
- package/dist/db/migrations/20261005173700_drop_retired_agent_tool_config.sql +29 -0
- package/dist/db/migrations/20261007010000_identity_association_guards.sql +242 -0
- package/dist/db/migrations/20261007010001_identity_association_indexes.sql +35 -0
- package/dist/db/migrations/20261007012000_connector_browser_requirement.sql +7 -0
- package/dist/db/migrations/20261009010000_identity_member_decision_indexes.sql +22 -0
- package/dist/db/migrations/20261009015900_retire_remaining_physical_merges.sql +196 -0
- package/dist/db/migrations/20261009020000_retire_physical_entity_merge.sql +82 -0
- package/dist/db/migrations/20261009030000_retire_physical_merge_indexes.sql +39 -0
- package/dist/db/migrations/20261009030001_drop_physical_entity_redirect.sql +62 -0
- package/dist/db/migrations/20261009040000_normalize_identity_decisions.sql +60 -0
- package/dist/db/migrations/20261010220000_notification_targets_user_event_order.sql +53 -0
- package/dist/db/migrations/20261010223000_device_workers_user_fresh_cover.sql +39 -0
- package/dist/db/migrations/20261010223001_runs_org_default_view.sql +41 -0
- package/dist/db/migrations/20261010223002_events_org_guidance.sql +42 -0
- package/dist/db/migrations/20261011002000_finish_product_eval_retirement.sql +37 -0
- package/dist/db/migrations/20261011160000_mcp_conversation_workspaces.sql +97 -0
- package/dist/db/migrations/20261013120000_events_live_org_effective_date.sql +42 -0
- package/dist/db/migrations/20261013150000_events_live_linked_org_ids_gin.sql +41 -0
- package/dist/db/migrations/20261014120000_clear_team_device_auto_pause.sql +34 -0
- package/dist/db/migrations/20261014150000_connector_webhook_event_type_backfill.sql +30 -0
- package/dist/db/migrations/20261014170000_retire_atlassian_mcp_webhook_refresh.sql +51 -0
- package/dist/db/migrations/20261015010000_connection_auth_profile_fk_set_null_column.sql +53 -0
- package/dist/db/migrations/20261015120000_personal_org_connector_auto_policy.sql +38 -0
- package/dist/db/migrations/preconditions/20261005150000_retire_agent_tool_config.sql +22 -0
- package/dist/db/migrations/preconditions/20261005173700_drop_retired_agent_tool_config.sql +13 -0
- package/dist/db/migrations/preconditions/20261009020000_retire_physical_entity_merge.sql +26 -0
- package/dist/db/migrations/preconditions/20261011002000_finish_product_eval_retirement.sql +14 -0
- package/dist/dependencies.bun.lock +135 -128
- package/dist/guest.bundle.js +131 -185
- package/dist/owletto/dist/assets/_-CEPl6gU4.js +3 -0
- package/dist/owletto/dist/assets/_-C_zNZben.js +2 -0
- package/dist/owletto/dist/assets/_-DtqBFgK5.js +1 -0
- package/dist/owletto/dist/assets/_agentId-CBC_SadO.js +2 -0
- package/dist/owletto/dist/assets/_agentId-QQW91cHX.js +2 -0
- package/dist/owletto/dist/assets/_automationId-YTTNksw6.js +2 -0
- package/dist/owletto/dist/assets/_connectorKey._connectionId-fK0h7RAp.js +2 -0
- package/dist/owletto/dist/assets/_connectorKey.index-C7TPS598.js +2 -0
- package/dist/owletto/dist/assets/_conversationId-CEhxlTIo.js +2 -0
- package/dist/owletto/dist/assets/_deploymentId-BQfYN1U2.js +2 -0
- package/dist/owletto/dist/assets/_eventId-Cl8GSdjg.js +2 -0
- package/dist/owletto/dist/assets/_name-t3oBJ6Zf.js +2 -0
- package/dist/owletto/dist/assets/_owner-cUtGHqSw.js +3 -0
- package/dist/owletto/dist/assets/_shape-bo2lMVCu.js +2 -0
- package/dist/owletto/dist/assets/_skillKey-Dwm4Q4wI.js +2 -0
- package/dist/owletto/dist/assets/_slug-CU1PuHB9.js +2 -0
- package/dist/owletto/dist/assets/_threadId-DtqBFgK5.js +1 -0
- package/dist/owletto/dist/assets/_viewKey-Bh6E_NxA.js +2 -0
- package/dist/owletto/dist/assets/_viewKey-D4jKl-Zf.js +2 -0
- package/dist/owletto/dist/assets/accept-invitation-D3OgJG4i.js +2 -0
- package/dist/owletto/dist/assets/activity-route-view-DQglkhXU.js +2 -0
- package/dist/owletto/dist/assets/agent-card-controls-DzRs4Ix9.js +2 -0
- package/dist/owletto/dist/assets/{agent-client-setup-list-BFtgRwe8.js → agent-client-setup-list-B2SvH7xD.js} +4 -3
- package/dist/owletto/dist/assets/agent-connect-pages-B6uKvT_X.js +2 -0
- package/dist/owletto/dist/assets/agent-editor-form-oUnIYHd7.js +2 -0
- package/dist/owletto/dist/assets/agent-guardrails-route-BaV1VpDh.js +2 -0
- package/dist/owletto/dist/assets/agent-loading-shells-CtZJM2Gc.js +2 -0
- package/dist/owletto/dist/assets/agent-permissions-matrix-Ds48KFK9.js +2 -0
- package/dist/owletto/dist/assets/{agent-skill-context-BAr2Dw3F.js → agent-skill-context-DPk5r08w.js} +2 -1
- package/dist/owletto/dist/assets/agent-skills-route-DYpB5H1J.js +2 -0
- package/dist/owletto/dist/assets/agent-subpage-shell-B3K_jPYR.js +2 -0
- package/dist/owletto/dist/assets/agent-thread-C8UaUTWc.js +6 -0
- package/dist/owletto/dist/assets/agents-F4mGI2oF.js +2 -0
- package/dist/owletto/dist/assets/agents-workbench-CMyk4PI7.js +2 -0
- package/dist/owletto/dist/assets/app-bridge-BCm4muqj.js +128 -0
- package/dist/owletto/dist/assets/app._appId-DH1Qutz6.js +2 -0
- package/dist/owletto/dist/assets/automation-detail-content-CEDNboId.js +2 -0
- package/dist/owletto/dist/assets/automations-F4mGI2oF.js +2 -0
- package/dist/owletto/dist/assets/{callback-CaRe2TOT.js → callback-CU-hb8JB.js} +2 -1
- package/dist/owletto/dist/assets/{card-CMmh2mzo.js → card-DIF8SF9b.js} +2 -1
- package/dist/owletto/dist/assets/claim-DELEa-gH.js +2 -0
- package/dist/owletto/dist/assets/client-rows-EJSKR6z1.js +1 -0
- package/dist/owletto/dist/assets/clients-CpG676mg.js +2 -0
- package/dist/owletto/dist/assets/code-editor-V27Z4o3P.js +16 -0
- package/dist/owletto/dist/assets/connect-B2YL6qIK.js +2 -0
- package/dist/owletto/dist/assets/connect._clientId-B6LDmDRV.js +2 -0
- package/dist/owletto/dist/assets/connected._clientId-D_HaKoI1.js +2 -0
- package/dist/owletto/dist/assets/connected._clientId.activity-DQWcUqKM.js +2 -0
- package/dist/owletto/dist/assets/connected._clientId.index-BC3R303A.js +2 -0
- package/dist/owletto/dist/assets/connection-DySpRE9x.js +2 -0
- package/dist/owletto/dist/assets/connection-feed-detail-C_D68j6d.js +2 -0
- package/dist/owletto/dist/assets/connection-label-BobuYiAG.js +1 -0
- package/dist/owletto/dist/assets/connections-browser-Cnv2iBbZ.js +2 -0
- package/dist/owletto/dist/assets/{connector-provenance-BjKiUhYE.js → connector-provenance-CNXtzYg5.js} +2 -1
- package/dist/owletto/dist/assets/connector-scope-lists-BKDetNDc.js +2 -0
- package/dist/owletto/dist/assets/{connectors-Baejya0T.js → connectors-BJnk1z_2.js} +2 -1
- package/dist/owletto/dist/assets/consent-BVzxrAO9.js +2 -0
- package/dist/owletto/dist/assets/conversations-table-DfZGICl7.js +2 -0
- package/dist/owletto/dist/assets/{core.esm-QA7BQgiK.js → core.esm-DiTpULFl.js} +2 -1
- package/dist/owletto/dist/assets/create-CUqO6Kfk.js +2 -0
- package/dist/owletto/dist/assets/create-JRFM8mMf.js +2 -0
- package/dist/owletto/dist/assets/create-automation-form-_4vUkrls.js +3 -0
- package/dist/owletto/dist/assets/create-iHcxV0xd.js +2 -0
- package/dist/owletto/dist/assets/create._connectorKey-CCYLEicg.js +2 -0
- package/dist/owletto/dist/assets/{cronstrue-2GHCtD7h.js → cronstrue-DPXl0qA2.js} +2 -1
- package/dist/owletto/dist/assets/deployments-DCQdFdwG.js +2 -0
- package/dist/owletto/dist/assets/{deployments-body-Bm2upStd.js → deployments-body-D6TAWs_6.js} +2 -1
- package/dist/owletto/dist/assets/deployments-ihkhK1zV.js +2 -0
- package/dist/owletto/dist/assets/device-CntqYW65.js +2 -0
- package/dist/owletto/dist/assets/device-pin-tombstone-Bz4JHHMK.js +2 -0
- package/dist/owletto/dist/assets/device._deviceId-D4plO3GM.js +2 -0
- package/dist/owletto/dist/assets/{entity-options-CrbS6K-i.js → entity-options-UJs64GdQ.js} +2 -1
- package/dist/owletto/dist/assets/entity-page-Djz6T50J.js +2 -0
- package/dist/owletto/dist/assets/entity-type-page-OznRag6A.js +2 -0
- package/dist/owletto/dist/assets/event-detail-04qOUGIP.js +2 -0
- package/dist/owletto/dist/assets/events-feed-fucGZSJR.js +2 -0
- package/dist/owletto/dist/assets/filter-editors-DCQgGLyR.js +2 -0
- package/dist/owletto/dist/assets/full-page-spinner-KpV2FS2u.js +2 -0
- package/dist/owletto/dist/assets/guardrails-molekzAF.js +2 -0
- package/dist/owletto/dist/assets/identity-BJcaG66g.js +2 -0
- package/dist/owletto/dist/assets/index-B04ON9Jv.js +2 -0
- package/dist/owletto/dist/assets/index-BEvyBdOU.js +2 -0
- package/dist/owletto/dist/assets/{index-Cf0GJoiG.js → index-BJXkc60S.js} +2 -1
- package/dist/owletto/dist/assets/index-BLEcy9-T.css +1 -0
- package/dist/owletto/dist/assets/index-BNh2cidi.js +2 -0
- package/dist/owletto/dist/assets/index-BOsK-K-2.js +2 -0
- package/dist/owletto/dist/assets/{index-DlepU3cY.js → index-BOzuAbvi.js} +2 -1
- package/dist/owletto/dist/assets/index-Bk1x7A67.js +2 -0
- package/dist/owletto/dist/assets/index-CDz3-ieP.js +1 -0
- package/dist/owletto/dist/assets/index-CFnx5huL.js +2 -0
- package/dist/owletto/dist/assets/index-D3s8rhG9.js +2 -0
- package/dist/owletto/dist/assets/index-DCdkwg9H.js +2 -0
- package/dist/owletto/dist/assets/index-Dbd1jusf.js +2 -0
- package/dist/owletto/dist/assets/index-DqZuqC08.js +2 -0
- package/dist/owletto/dist/assets/index-Dr-Xg_xO.js +2 -0
- package/dist/owletto/dist/assets/index-DtqBFgK5.js +1 -0
- package/dist/owletto/dist/assets/index-KPOvMVa-.js +2 -0
- package/dist/owletto/dist/assets/index-Vcq4gwWv.js +1 -0
- package/dist/owletto/dist/assets/index-_oPeVpL_.js +7950 -0
- package/dist/owletto/dist/assets/index-rrnUF981.js +1 -0
- package/dist/owletto/dist/assets/json-diff-D_Ym3Uku.js +4 -0
- package/dist/owletto/dist/assets/{list-skeleton-BtWn2eo2.js → list-skeleton-Bl0OS39L.js} +2 -1
- package/dist/owletto/dist/assets/login-QHdxqX-4.js +2 -0
- package/dist/owletto/dist/assets/logout-DUccApuZ.js +2 -0
- package/dist/owletto/dist/assets/member-scope-gate-CFbrq1by.js +2 -0
- package/dist/owletto/dist/assets/memory-browse-page-IrIXuZTF.js +103 -0
- package/dist/owletto/dist/assets/model-selector-CB1BDvlW.js +2 -0
- package/dist/owletto/dist/assets/models-DnMb3n-Z.js +2 -0
- package/dist/owletto/dist/assets/new-B5UsLiy6.js +2 -0
- package/dist/owletto/dist/assets/new-BWo8_Pms.js +2 -0
- package/dist/owletto/dist/assets/new-DpmDXmFI.js +2 -0
- package/dist/owletto/dist/assets/oauth-workspace-access-PGyTnW2K.js +2 -0
- package/dist/owletto/dist/assets/organization-BH8PYlVu.js +2 -0
- package/dist/owletto/dist/assets/peek-pane-content-B2AFNTzP.js +2 -0
- package/dist/owletto/dist/assets/{permissions-h_qSft1A.js → permissions-CwN_YP3u.js} +2 -1
- package/dist/owletto/dist/assets/proposal-review-shell-DKKGu4Ww.js +2 -0
- package/dist/owletto/dist/assets/public-shell-ready-7KYnww6e.js +2 -0
- package/dist/owletto/dist/assets/{recent-JiBNvZzD.js → recent-DqdZE_TI.js} +2 -1
- package/dist/owletto/dist/assets/record-activity-CvgZyCmw.js +2 -0
- package/dist/owletto/dist/assets/{renderer-DgPLyEbx.js → renderer-BL6VcwQH.js} +28 -27
- package/dist/owletto/dist/assets/reset-password-DAvBYkiI.js +2 -0
- package/dist/owletto/dist/assets/runs-BWtc5rmc.js +2 -0
- package/dist/owletto/dist/assets/runs-panel-BO3h5RkS.js +2 -0
- package/dist/owletto/dist/assets/runs-table-DxIiqrSk.js +2 -0
- package/dist/owletto/dist/assets/settings-4Ev-0iNL.js +2 -0
- package/dist/owletto/dist/assets/settings-Crxlwps-.js +2 -0
- package/dist/owletto/dist/assets/skill-editor-D_W3QlRz.js +1 -0
- package/dist/owletto/dist/assets/skills-D0X430X8.js +2 -0
- package/dist/owletto/dist/assets/source-record-panels-CRIPMWfN.js +2 -0
- package/dist/owletto/dist/assets/status-dot-C5KDvvm9.js +2 -0
- package/dist/owletto/dist/assets/tabs-B4Er9hJj.js +2 -0
- package/dist/owletto/dist/assets/{use-mention-search-B4DfZFm5.js → use-mention-search-DqEykWl_.js} +3 -2
- package/dist/owletto/dist/assets/view-param-filters-Cylutoy1.js +2 -0
- package/dist/owletto/dist/assets/workspace-label-o_QfBuCM.js +2 -0
- package/dist/owletto/dist/index.html +46 -4
- package/dist/providers.json +1 -1
- package/dist/server-main.bundle.mjs +135551 -132880
- package/npm-shrinkwrap.json +578 -611
- package/package.json +4 -3
- package/vendor/connector-sdk/dist/browser-requirement.d.ts +36 -0
- package/vendor/connector-sdk/dist/browser-requirement.js +60 -0
- package/vendor/connector-sdk/dist/connector-runtime.d.ts +3 -1
- package/vendor/connector-sdk/dist/connector-runtime.js +10 -0
- package/vendor/connector-sdk/dist/connector-types.d.ts +159 -45
- package/vendor/connector-sdk/dist/define-connector.d.ts +4 -2
- package/vendor/connector-sdk/dist/define-connector.js +3 -0
- package/vendor/connector-sdk/dist/index.d.ts +5 -2
- package/vendor/connector-sdk/dist/index.js +1 -0
- package/vendor/connector-sdk/dist/reaction-client-types.d.ts +16 -21
- package/vendor/connector-sdk/dist/reaction-client-types.typecheck.d.ts +5 -0
- package/vendor/connector-sdk/package.json +5 -1
- package/vendor/core/dist/agent-policy.js +1 -1
- package/vendor/core/dist/agent-store.d.ts +2 -0
- package/vendor/core/dist/agent-tooling.d.ts +1 -1
- package/vendor/core/dist/agent-tooling.js +1 -1
- package/vendor/core/dist/capabilities.js +2 -0
- package/vendor/core/dist/contracts/agent-settings.d.ts +0 -11
- package/vendor/core/dist/contracts/agent-settings.js +1 -7
- package/vendor/core/dist/contracts/tools/collection-presentation.d.ts +93 -0
- package/vendor/core/dist/contracts/tools/collection-presentation.js +88 -0
- package/vendor/core/dist/contracts/tools/collection-selection.d.ts +47 -0
- package/vendor/core/dist/contracts/tools/collection-selection.js +74 -0
- package/vendor/core/dist/contracts/tools/manage-agents.d.ts +10 -4
- package/vendor/core/dist/contracts/tools/manage-auth-profiles.d.ts +1 -1
- package/vendor/core/dist/contracts/tools/manage-auth-profiles.js +5 -1
- package/vendor/core/dist/contracts/tools/manage-automations.d.ts +19 -4
- package/vendor/core/dist/contracts/tools/manage-automations.js +25 -8
- package/vendor/core/dist/contracts/tools/manage-connections.d.ts +1 -0
- package/vendor/core/dist/contracts/tools/manage-connections.js +3 -0
- package/vendor/core/dist/contracts/tools/manage-entity-schema.d.ts +11 -0
- package/vendor/core/dist/contracts/tools/manage-entity-schema.js +42 -3
- package/vendor/core/dist/contracts/tools/manage-entity.d.ts +181 -152
- package/vendor/core/dist/contracts/tools/manage-entity.js +118 -162
- package/vendor/core/dist/contracts/tools/manage-operations.d.ts +41 -3
- package/vendor/core/dist/contracts/tools/manage-operations.js +40 -2
- package/vendor/core/dist/contracts/tools/manage-views.d.ts +182 -7
- package/vendor/core/dist/contracts/tools/manage-views.js +49 -13
- package/vendor/core/dist/contracts/tools/read-knowledge.d.ts +11 -2
- package/vendor/core/dist/contracts/tools/read-knowledge.js +23 -3
- package/vendor/core/dist/contracts/tools/save-memory.d.ts +3 -6
- package/vendor/core/dist/contracts/tools/save-memory.js +2 -6
- package/vendor/core/dist/contracts/tools/view-attach.d.ts +2 -1
- package/vendor/core/dist/contracts/tools/view-attach.js +7 -2
- package/vendor/core/dist/contracts/worker/protocol.d.ts +122 -28
- package/vendor/core/dist/contracts/worker/protocol.js +81 -17
- package/vendor/core/dist/index.d.ts +3 -4
- package/vendor/core/dist/index.js +3 -6
- package/vendor/core/dist/json-template.d.ts +6 -10
- package/vendor/core/dist/json-template.js +5 -9
- package/vendor/core/dist/logger.js +11 -5
- package/vendor/core/dist/shell-safety.d.ts +9 -0
- package/vendor/core/dist/shell-safety.js +154 -0
- package/vendor/core/dist/suggestions.d.ts +1 -1
- package/vendor/core/dist/suggestions.js +1 -1
- package/vendor/core/dist/tool-trace-summary.d.ts +1 -1
- package/vendor/core/dist/tool-trace-summary.js +1 -1
- package/vendor/core/dist/types.d.ts +1 -3
- package/vendor/core/dist/utils/diagnostic-scrubber.d.ts +7 -0
- package/vendor/core/dist/utils/{sentry-scrubber.js → diagnostic-scrubber.js} +25 -53
- package/vendor/core/dist/worker/auth.d.ts +44 -6
- package/vendor/core/dist/worker/auth.js +44 -11
- package/vendor/core/package.json +15 -6
- package/vendor/views/dist/api.d.ts +39 -29
- package/vendor/views/dist/api.js +110 -83
- package/vendor/views/dist/bridge.d.ts +4 -0
- package/vendor/views/dist/bridge.js +15 -0
- package/vendor/views/dist/index.d.ts +1 -0
- package/vendor/views/dist/index.js +0 -7
- package/vendor/views/package.json +4 -1
- package/dist/owletto/dist/assets/_-CLhipgJI.js +0 -1
- package/dist/owletto/dist/assets/_-D0ZVGAIA.js +0 -2
- package/dist/owletto/dist/assets/_agentId-BLXUf3ot.js +0 -1
- package/dist/owletto/dist/assets/_agentId-DnI66MF3.js +0 -1
- package/dist/owletto/dist/assets/_automationId-ziwseLb7.js +0 -1
- package/dist/owletto/dist/assets/_connectorKey._connectionId-B6V3ySFK.js +0 -1
- package/dist/owletto/dist/assets/_connectorKey.index-CR5u_dtt.js +0 -1
- package/dist/owletto/dist/assets/_conversationId-FBMYmOl8.js +0 -1
- package/dist/owletto/dist/assets/_deploymentId-DNTXbT_m.js +0 -1
- package/dist/owletto/dist/assets/_name-B37LKIxH.js +0 -1
- package/dist/owletto/dist/assets/_owner-BxYumqC2.js +0 -1
- package/dist/owletto/dist/assets/_shape-Bxz-04jR.js +0 -1
- package/dist/owletto/dist/assets/_skillKey-D5MFbiw2.js +0 -1
- package/dist/owletto/dist/assets/_slug-Dlhit09k.js +0 -1
- package/dist/owletto/dist/assets/_viewKey-C6535i-t.js +0 -1
- package/dist/owletto/dist/assets/_viewKey-CQCtY3Y8.js +0 -1
- package/dist/owletto/dist/assets/_viewKey-CxKfKbRa.js +0 -1
- package/dist/owletto/dist/assets/accept-invitation-BQQwec3R.js +0 -1
- package/dist/owletto/dist/assets/activity-route-view-BwThvdGs.js +0 -1
- package/dist/owletto/dist/assets/agent-card-controls-B3RhzsPz.js +0 -1
- package/dist/owletto/dist/assets/agent-connect-pages-BO4wQn4L.js +0 -1
- package/dist/owletto/dist/assets/agent-editor-form-BYC4uSNz.js +0 -1
- package/dist/owletto/dist/assets/agent-guardrails-route-Dp02G1AQ.js +0 -1
- package/dist/owletto/dist/assets/agent-loading-shells-OagauQzV.js +0 -1
- package/dist/owletto/dist/assets/agent-permissions-matrix-B9Ho3P1t.js +0 -1
- package/dist/owletto/dist/assets/agent-skills-route-B4VUnVi0.js +0 -1
- package/dist/owletto/dist/assets/agent-subpage-shell-Dz8I-GUt.js +0 -1
- package/dist/owletto/dist/assets/agent-thread-B9-cdkaV.js +0 -8
- package/dist/owletto/dist/assets/agent-thread-storage-U6htL3ad.js +0 -1
- package/dist/owletto/dist/assets/agents-D0CIg4b9.js +0 -1
- package/dist/owletto/dist/assets/agents-workbench-C2sr5h82.js +0 -1
- package/dist/owletto/dist/assets/app-bridge-BH3g2mKG.js +0 -127
- package/dist/owletto/dist/assets/app._appId-DLsJ_QWS.js +0 -1
- package/dist/owletto/dist/assets/automation-detail-content-9Rjb_I9j.js +0 -1
- package/dist/owletto/dist/assets/automations-D0CIg4b9.js +0 -1
- package/dist/owletto/dist/assets/calendar-DAiyi1ZL.js +0 -1
- package/dist/owletto/dist/assets/claim-CYHnUF7G.js +0 -1
- package/dist/owletto/dist/assets/clients-Cp1BJ28u.js +0 -1
- package/dist/owletto/dist/assets/code-editor-CYsR2VBP.js +0 -15
- package/dist/owletto/dist/assets/connect-CZip2g_B.js +0 -1
- package/dist/owletto/dist/assets/connect._clientId-CEKY8Dnv.js +0 -1
- package/dist/owletto/dist/assets/connected._clientId-C5xRjxNO.js +0 -1
- package/dist/owletto/dist/assets/connection-C06HZ241.js +0 -1
- package/dist/owletto/dist/assets/connection-feed-detail-D1whY5hL.js +0 -1
- package/dist/owletto/dist/assets/consent-CfYDldcF.js +0 -1
- package/dist/owletto/dist/assets/create-C3P-3_8O.js +0 -1
- package/dist/owletto/dist/assets/create-CwnrPUEw.js +0 -1
- package/dist/owletto/dist/assets/create-DOScS9Gl.js +0 -1
- package/dist/owletto/dist/assets/create-automation-form-CuxiIRCF.js +0 -2
- package/dist/owletto/dist/assets/create._connectorKey-Bjv3lCf8.js +0 -1
- package/dist/owletto/dist/assets/deployments-ByBv1DW-.js +0 -1
- package/dist/owletto/dist/assets/deployments-C-_ECORv.js +0 -1
- package/dist/owletto/dist/assets/device-B0i7Xp8y.js +0 -1
- package/dist/owletto/dist/assets/device-automation-BIjs7DZJ.js +0 -1
- package/dist/owletto/dist/assets/device-pin-tombstone-Bd6vS2zu.js +0 -1
- package/dist/owletto/dist/assets/device-rows-Bwf8qDte.js +0 -1
- package/dist/owletto/dist/assets/device._deviceId-DJLAesm3.js +0 -1
- package/dist/owletto/dist/assets/entity-page-ijZe_1-6.js +0 -1
- package/dist/owletto/dist/assets/entity-type-page-onp2Tk_E.js +0 -1
- package/dist/owletto/dist/assets/event-page-C0B2UDY-.js +0 -1
- package/dist/owletto/dist/assets/events-feed-DK35T4g7.js +0 -1
- package/dist/owletto/dist/assets/full-page-spinner-Dd8eEaxq.js +0 -1
- package/dist/owletto/dist/assets/guardrails-DKO8_J-G.js +0 -1
- package/dist/owletto/dist/assets/identity-CKM54vrM.js +0 -1
- package/dist/owletto/dist/assets/index--VmN5WxW.js +0 -1
- package/dist/owletto/dist/assets/index-B2AmRqYh.js +0 -7898
- package/dist/owletto/dist/assets/index-B_rcEgFX.js +0 -1
- package/dist/owletto/dist/assets/index-BmAuAhub.css +0 -1
- package/dist/owletto/dist/assets/index-BmhGe6-Z.js +0 -1
- package/dist/owletto/dist/assets/index-C1dJSGrL.js +0 -1
- package/dist/owletto/dist/assets/index-CAFw4qCb.js +0 -1
- package/dist/owletto/dist/assets/index-CCcc_xBw.js +0 -52
- package/dist/owletto/dist/assets/index-CLU3gXVm.js +0 -1
- package/dist/owletto/dist/assets/index-CqQVnAY-.js +0 -1
- package/dist/owletto/dist/assets/index-CxT0uyIe.js +0 -1
- package/dist/owletto/dist/assets/index-DR08e6Ec.js +0 -1
- package/dist/owletto/dist/assets/index-DYb9L5FC.js +0 -1
- package/dist/owletto/dist/assets/index-SUUcQGT-.js +0 -1
- package/dist/owletto/dist/assets/index-SdiFOfR1.js +0 -1
- package/dist/owletto/dist/assets/index-zcfi5r1l.js +0 -1
- package/dist/owletto/dist/assets/json-diff-ClBBYBQD.js +0 -3
- package/dist/owletto/dist/assets/login-d3PdO-qV.js +0 -1
- package/dist/owletto/dist/assets/logout-DgckxwLn.js +0 -1
- package/dist/owletto/dist/assets/member-scope-gate-DXOCfx-v.js +0 -1
- package/dist/owletto/dist/assets/memory-browse-page-CeAnKoTR.js +0 -101
- package/dist/owletto/dist/assets/missing-view-DrZ8m8yo.js +0 -1
- package/dist/owletto/dist/assets/model-selector-CapL1ARf.js +0 -1
- package/dist/owletto/dist/assets/models-CB8mhq7j.js +0 -1
- package/dist/owletto/dist/assets/new-BBUb-VR4.js +0 -1
- package/dist/owletto/dist/assets/new-CBLJ25_w.js +0 -1
- package/dist/owletto/dist/assets/new-tTXB4qBW.js +0 -1
- package/dist/owletto/dist/assets/oauth-workspace-access-DearynqZ.js +0 -1
- package/dist/owletto/dist/assets/organization-BgdBg-PJ.js +0 -1
- package/dist/owletto/dist/assets/pending-seed-CPbfgnLX.js +0 -1
- package/dist/owletto/dist/assets/proposal-review-shell-D4YNrrye.js +0 -1
- package/dist/owletto/dist/assets/reset-password-B8tWPtIj.js +0 -1
- package/dist/owletto/dist/assets/runs-oHveuEUB.js +0 -1
- package/dist/owletto/dist/assets/runs-panel-C56GDaJm.js +0 -1
- package/dist/owletto/dist/assets/runs-table-BUKDjiBc.js +0 -1
- package/dist/owletto/dist/assets/schema-value-normalization-3JuM_r1H.js +0 -1
- package/dist/owletto/dist/assets/settings-DaKg6U5O.js +0 -1
- package/dist/owletto/dist/assets/settings-DhnRi2nq.js +0 -1
- package/dist/owletto/dist/assets/skills-BpQncuMC.js +0 -1
- package/dist/owletto/dist/assets/switch-BQ40_DMb.js +0 -1
- package/dist/owletto/dist/assets/use-applied-views-B-Z-Weji.js +0 -1
- package/dist/owletto/dist/assets/view-frame-C7ciEoLo.js +0 -1
- package/vendor/core/dist/sentry.d.ts +0 -26
- package/vendor/core/dist/sentry.js +0 -133
- package/vendor/core/dist/tool-policy.d.ts +0 -74
- package/vendor/core/dist/tool-policy.js +0 -305
- package/vendor/core/dist/utils/sentry-scrubber.d.ts +0 -29
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobu/runtime-server",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "22.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
6
|
"repository": {
|
|
@@ -28,7 +28,6 @@
|
|
|
28
28
|
"@opentelemetry/exporter-trace-otlp-grpc": "^0.222.0",
|
|
29
29
|
"@opentelemetry/resources": "^2.11.0",
|
|
30
30
|
"@opentelemetry/semantic-conventions": "^1.28.0",
|
|
31
|
-
"@sentry/node": "^10.74.0",
|
|
32
31
|
"winston": "^3.17.0",
|
|
33
32
|
"@lobu/core": "file:vendor/core",
|
|
34
33
|
"isomorphic-git": "^1.34.0",
|
|
@@ -43,7 +42,7 @@
|
|
|
43
42
|
"esbuild": "^0.28.1",
|
|
44
43
|
"just-bash": "^2.14.2",
|
|
45
44
|
"pathe": "^2.0.3",
|
|
46
|
-
"undici": "7.29.
|
|
45
|
+
"undici": "7.29.1",
|
|
47
46
|
"@aws-sdk/client-bedrock": "^3.1028.0",
|
|
48
47
|
"@aws-sdk/client-secrets-manager": "^3.1028.0",
|
|
49
48
|
"@chat-adapter/discord": "4.38.1",
|
|
@@ -70,6 +69,8 @@
|
|
|
70
69
|
"hono-pino": "^0.10.3",
|
|
71
70
|
"kysely": "^0.28.0",
|
|
72
71
|
"kysely-postgres-js": "^2.0.0",
|
|
72
|
+
"mdast-util-gfm": "^3.1.0",
|
|
73
|
+
"mdast-util-to-markdown": "^2.1.2",
|
|
73
74
|
"pino": "^10.1.0",
|
|
74
75
|
"react": "^19.2.5",
|
|
75
76
|
"react-dom": "^19.2.5",
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { ChromeActionDispatcher } from './extension-network.js';
|
|
2
|
+
export declare const BROWSER_VERIFY_OPERATION = "verify_browser";
|
|
3
|
+
export declare const BROWSER_VERIFY_ACTION: {
|
|
4
|
+
name: string;
|
|
5
|
+
kind: "read";
|
|
6
|
+
description: string;
|
|
7
|
+
inputSchema: {
|
|
8
|
+
type: string;
|
|
9
|
+
properties: {};
|
|
10
|
+
additionalProperties: boolean;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
/** A delegated browser resource, independent of connector worker placement. */
|
|
14
|
+
export interface ConnectorBrowserRequirement {
|
|
15
|
+
/** Exact HTTPS origins the connector may drive. */
|
|
16
|
+
origins: string[];
|
|
17
|
+
/** Omit for every auth mode; use ['browser'] for an OAuth/browser alternative. */
|
|
18
|
+
authMethods?: string[];
|
|
19
|
+
/** Connector-owned, read-only self-identity probe. Never reads source content. */
|
|
20
|
+
accountProbe?: {
|
|
21
|
+
url: string;
|
|
22
|
+
/** Page expression returning { accountId, displayName? }, or null when signed out. */
|
|
23
|
+
expression: string;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export declare function validateBrowserRequirement(value: unknown): asserts value is ConnectorBrowserRequirement;
|
|
27
|
+
/** One auth-mode mapping for setup, discovery and every execution path. */
|
|
28
|
+
export declare function browserAuthMethod(profileKind: string | null | undefined): string;
|
|
29
|
+
export declare function resolveBrowserRequirement(value: unknown, authMethod: string): ConnectorBrowserRequirement | null;
|
|
30
|
+
/** Replaces caller-supplied `allowed_origins` with the catalog grant; URLs must fall inside it. */
|
|
31
|
+
export declare function constrainBrowserInput(browser: ConnectorBrowserRequirement, actionKey: string, input: Record<string, unknown>): Record<string, unknown>;
|
|
32
|
+
/** Shared accessor for built-in and external connectors. The host owns the grant. */
|
|
33
|
+
export declare function requireBrowser(ctx: {
|
|
34
|
+
browser?: ChromeActionDispatcher;
|
|
35
|
+
}): ChromeActionDispatcher;
|
|
36
|
+
//# sourceMappingURL=browser-requirement.d.ts.map
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export const BROWSER_VERIFY_OPERATION = 'verify_browser';
|
|
2
|
+
export const BROWSER_VERIFY_ACTION = {
|
|
3
|
+
name: 'Verify browser connection', kind: 'read',
|
|
4
|
+
description: 'Check the selected browser and any declared account identity without reading source content.',
|
|
5
|
+
inputSchema: { type: 'object', properties: {}, additionalProperties: false },
|
|
6
|
+
};
|
|
7
|
+
export function validateBrowserRequirement(value) {
|
|
8
|
+
if (!value || typeof value !== 'object' || Array.isArray(value))
|
|
9
|
+
throw new Error('Invalid browser requirement');
|
|
10
|
+
const browser = value;
|
|
11
|
+
if (!Array.isArray(browser.origins) || browser.origins.length === 0)
|
|
12
|
+
throw new Error('Browser origins must not be empty');
|
|
13
|
+
for (const origin of browser.origins) {
|
|
14
|
+
const url = new URL(origin);
|
|
15
|
+
if (url.protocol !== 'https:' || url.origin !== origin || url.username || url.password || url.hostname.includes('*')) {
|
|
16
|
+
throw new Error('Browser origins must be exact HTTPS origins');
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
if (browser.authMethods && (!Array.isArray(browser.authMethods) || !browser.authMethods.length || browser.authMethods.some(method => !['none', 'browser', 'oauth', 'env_keys', 'app_installation', 'interactive'].includes(method)))) {
|
|
20
|
+
throw new Error('Invalid browser authMethods');
|
|
21
|
+
}
|
|
22
|
+
if (browser.accountProbe && (!browser.origins.includes(new URL(browser.accountProbe.url).origin) || typeof browser.accountProbe.expression !== 'string' || !browser.accountProbe.expression.trim())) {
|
|
23
|
+
throw new Error('Browser account probe must target a declared origin and provide an expression');
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
/** One auth-mode mapping for setup, discovery and every execution path. */
|
|
27
|
+
export function browserAuthMethod(profileKind) {
|
|
28
|
+
return { oauth_account: 'oauth', oauth_app: 'oauth', env: 'env_keys', browser_session: 'browser' }[profileKind ?? ''] ?? profileKind ?? 'none';
|
|
29
|
+
}
|
|
30
|
+
export function resolveBrowserRequirement(value, authMethod) {
|
|
31
|
+
if (value == null)
|
|
32
|
+
return null;
|
|
33
|
+
validateBrowserRequirement(value);
|
|
34
|
+
return !value.authMethods || value.authMethods.includes(authMethod) ? value : null;
|
|
35
|
+
}
|
|
36
|
+
/** Replaces caller-supplied `allowed_origins` with the catalog grant; URLs must fall inside it. */
|
|
37
|
+
export function constrainBrowserInput(browser, actionKey, input) {
|
|
38
|
+
validateBrowserRequirement(browser);
|
|
39
|
+
const allowedActions = [BROWSER_VERIFY_OPERATION, 'navigate', 'evaluate', 'get_accessibility_tree', 'wait_for_selector', 'screenshot', 'click_ref', 'type_ref', 'press_key', 'scroll', 'focus_tab', 'close_tab', 'list_tabs', 'feed_listen', 'show_notification', 'network_intercept_start', 'network_intercept_drain', 'network_intercept_stop', 'network_intercept_replay', 'console_capture_start', 'console_capture_drain', 'console_capture_stop'];
|
|
40
|
+
if (!allowedActions.includes(actionKey))
|
|
41
|
+
throw new Error('Operation is outside the declared browser resource');
|
|
42
|
+
if (actionKey === 'navigate' && input.url === 'about:blank')
|
|
43
|
+
return { ...input, allowed_origins: browser.origins };
|
|
44
|
+
for (const key of ['url', 'click_url', 'landed_url']) {
|
|
45
|
+
if (input[key] !== undefined && (typeof input[key] !== 'string' || !browser.origins.includes(new URL(input[key]).origin))) {
|
|
46
|
+
throw new Error('Browser URL is outside the connector declared origins');
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
if (actionKey === 'navigate' && typeof input.url !== 'string') {
|
|
50
|
+
throw new Error('Browser navigation is outside the connector declared origins');
|
|
51
|
+
}
|
|
52
|
+
return { ...input, allowed_origins: browser.origins };
|
|
53
|
+
}
|
|
54
|
+
/** Shared accessor for built-in and external connectors. The host owns the grant. */
|
|
55
|
+
export function requireBrowser(ctx) {
|
|
56
|
+
if (!ctx.browser)
|
|
57
|
+
throw new Error('Browser setup is required for this connection');
|
|
58
|
+
return ctx.browser;
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=browser-requirement.js.map
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Abstract base class that all connectors must implement.
|
|
5
5
|
* Provides the contract for feed sync, source reads, and connector actions.
|
|
6
6
|
*/
|
|
7
|
-
import type { ActionContext, ActionResult, AuthContext, AuthResult, FeedReadContext, FeedReadResult, QueryContext, QueryResult, ReflectContext, ReflectResult, RuntimeConnectorDefinition, SyncContext, SyncResult, WebhookRegistration, WebhookRegistrationContext } from './connector-types.js';
|
|
7
|
+
import type { ActionContext, ActionResult, AuthContext, AuthResult, FeedObserveContext, FeedReadContext, FeedReadResult, QueryContext, QueryResult, ReflectContext, ReflectResult, RuntimeConnectorDefinition, SyncContext, SyncResult, WebhookRegistration, WebhookRegistrationContext } from './connector-types.js';
|
|
8
8
|
/**
|
|
9
9
|
* ConnectorRuntime is the base class for all connectors.
|
|
10
10
|
*
|
|
@@ -51,6 +51,8 @@ export declare abstract class ConnectorRuntime<C = Record<string, unknown>, F =
|
|
|
51
51
|
* kind or persistence flag.
|
|
52
52
|
*/
|
|
53
53
|
read(ctx: FeedReadContext<F>): Promise<FeedReadResult>;
|
|
54
|
+
/** Attach/reconnect the connector-owned listener; reference delivery bypasses this hook. */
|
|
55
|
+
observe(ctx: FeedObserveContext<C, F>): Promise<void>;
|
|
54
56
|
/**
|
|
55
57
|
* Execute an action on the connected service.
|
|
56
58
|
*
|
|
@@ -62,10 +62,20 @@ export class ConnectorRuntime {
|
|
|
62
62
|
if (!handler) {
|
|
63
63
|
throw new Error(`${this.definition.key} feed '${ctx.feedKey}' does not support source reads`);
|
|
64
64
|
}
|
|
65
|
+
if (ctx.match && !feed.matchPaths?.includes(ctx.match.path)) {
|
|
66
|
+
throw new Error(`${this.definition.key} feed '${ctx.feedKey}' cannot filter on '${ctx.match.path}'`);
|
|
67
|
+
}
|
|
65
68
|
const result = await handler(ctx);
|
|
66
69
|
assertFeedReadWindow(result, ctx.window, feed.readWindowAxis);
|
|
67
70
|
return result;
|
|
68
71
|
}
|
|
72
|
+
/** Attach/reconnect the connector-owned listener; reference delivery bypasses this hook. */
|
|
73
|
+
async observe(ctx) {
|
|
74
|
+
const handler = this.definition.feeds?.[ctx.feedKey]?.observe;
|
|
75
|
+
if (!handler)
|
|
76
|
+
throw new Error(`${this.definition.key} feed '${ctx.feedKey}' has no source listener`);
|
|
77
|
+
await handler(ctx);
|
|
78
|
+
}
|
|
69
79
|
/**
|
|
70
80
|
* Execute an action on the connected service.
|
|
71
81
|
*
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
* Defines the contract between connectors, the runtime, and the platform.
|
|
6
6
|
*/
|
|
7
7
|
import type { EntityTypeContribution, ReflectedMeasure } from './metrics.js';
|
|
8
|
+
import type { ConnectorBrowserRequirement } from './browser-requirement.js';
|
|
9
|
+
import type { ChromeActionDispatcher } from './extension-network.js';
|
|
10
|
+
import type { AttributeFilter } from '@lobu/core/contracts/tools/collection-selection';
|
|
11
|
+
import type { ConnectorOperationRequest, ConnectorOperationResult } from '@lobu/core/contracts/tools/manage-operations';
|
|
8
12
|
import type { ConnectorAutomationEvent, ConnectorAutomationSignalDraft } from './automation-triggers.js';
|
|
9
13
|
export interface ConnectorDefinition {
|
|
10
14
|
/** Unique connector key, e.g. 'google.gmail' */
|
|
@@ -28,6 +32,8 @@ export interface ConnectorDefinition {
|
|
|
28
32
|
kind?: 'data' | 'integration';
|
|
29
33
|
/** Auth configuration */
|
|
30
34
|
authSchema?: ConnectorAuthSchema;
|
|
35
|
+
/** Delegated browser dependency. This does not change worker placement. */
|
|
36
|
+
browser?: ConnectorBrowserRequirement;
|
|
31
37
|
/** Available feed definitions (keyed by feed_key) */
|
|
32
38
|
feeds?: Record<string, FeedDefinition>;
|
|
33
39
|
/** Available action definitions (keyed by action_key) */
|
|
@@ -35,18 +41,22 @@ export interface ConnectorDefinition {
|
|
|
35
41
|
/** Query filters implemented by this connector. Unsupported filters fail before query(). */
|
|
36
42
|
queryCapabilities?: {
|
|
37
43
|
exactMatch?: boolean;
|
|
44
|
+
selection?: boolean;
|
|
38
45
|
};
|
|
39
46
|
/** Connector-normalized events that can activate Automations. */
|
|
40
47
|
automationEvents?: ConnectorAutomationEvent[];
|
|
41
48
|
/**
|
|
42
49
|
* Declarative inbound-webhook config. Presence means this connector receives
|
|
43
|
-
* real-time provider deliveries at `POST /api/v1/webhooks/:connectionId
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
+
* real-time provider deliveries at `POST /api/v1/webhooks/:connectionId` (or
|
|
51
|
+
* the shared app-webhook endpoint for `delivery: 'app_installation'`). With an
|
|
52
|
+
* {@link ConnectorWebhookSchema.eventType} they are dispatched to the feeds
|
|
53
|
+
* that declare the event; without one, per-connection deliveries are stored
|
|
54
|
+
* raw under `webhook:<connectionId>` and app-installation deliveries are
|
|
55
|
+
* acked with nothing triggered. The gateway verifies the signature in process
|
|
56
|
+
* using this schema and the connection or app webhook secret, so verification
|
|
57
|
+
* never loads connector code. Per-connection subscriptions use
|
|
58
|
+
* {@link ConnectorRuntime.registerWebhook} at connect time and store the
|
|
59
|
+
* signing secret on the connection.
|
|
50
60
|
*/
|
|
51
61
|
webhook?: ConnectorWebhookSchema;
|
|
52
62
|
/** Global connector options schema (JSON Schema) */
|
|
@@ -235,12 +245,24 @@ export interface ConnectorWebhookSchema {
|
|
|
235
245
|
* raw-body HMAC, Slack `v0:{ts}:{rawBody}` with timestamp freshness, etc.).
|
|
236
246
|
*/
|
|
237
247
|
delivery?: 'registered' | 'app_installation';
|
|
248
|
+
/**
|
|
249
|
+
* Where a delivery names its event type: a request header (GitHub
|
|
250
|
+
* `x-github-event`) or a dotted body path. The platform matches it against
|
|
251
|
+
* each feed's `webhook.events` to dispatch a verified data delivery to the
|
|
252
|
+
* feeds it updates. Without it, per-connection deliveries are stored raw and
|
|
253
|
+
* app-installation deliveries trigger nothing.
|
|
254
|
+
*/
|
|
255
|
+
eventType?: {
|
|
256
|
+
header: string;
|
|
257
|
+
} | {
|
|
258
|
+
path: string;
|
|
259
|
+
};
|
|
238
260
|
/**
|
|
239
261
|
* `app_installation` mode only: how a VERIFIED delivery is dispatched once the
|
|
240
262
|
* generic engine has checked its signature.
|
|
241
|
-
* - `'data'` (default, absent) —
|
|
242
|
-
*
|
|
243
|
-
*
|
|
263
|
+
* - `'data'` (default, absent) — dispatch to the feeds whose `webhook.events`
|
|
264
|
+
* name the delivery's {@link eventType}; a delivery no feed declares (or a
|
|
265
|
+
* connector with no `eventType`) is acked with nothing triggered.
|
|
244
266
|
* - `'chat'` — forward to the chat adapter for the connector's provider (Slack;
|
|
245
267
|
* reusable by any future chat platform), bypassing the data-ingest pipeline.
|
|
246
268
|
* The engine dispatches on THIS, never on a provider name.
|
|
@@ -338,6 +360,8 @@ export interface ConnectorAuthInteractive {
|
|
|
338
360
|
}
|
|
339
361
|
export interface ConnectorAuthBrowser {
|
|
340
362
|
type: 'browser';
|
|
363
|
+
/** Existing profiles capture cookies; live profiles keep the session in Chrome. */
|
|
364
|
+
mode?: 'cookies' | 'live';
|
|
341
365
|
required?: boolean;
|
|
342
366
|
description?: string;
|
|
343
367
|
requiredDomains?: string[];
|
|
@@ -442,6 +466,47 @@ export interface ConnectorInstallationContext {
|
|
|
442
466
|
/** Provider-specific install metadata (bot_user_id, account login, …). */
|
|
443
467
|
metadata?: Record<string, unknown>;
|
|
444
468
|
}
|
|
469
|
+
/** The persisted part of a feed's {@link FeedDefinition.webhook} declaration. */
|
|
470
|
+
export interface FeedWebhookDeclaration {
|
|
471
|
+
/** Provider event types (values of the connector's `webhook.eventType`) that update this feed. */
|
|
472
|
+
events: string[];
|
|
473
|
+
/** Superseded by `kind`; still accepted, and `'store'` keeps a feed off device notifications. */
|
|
474
|
+
mode?: 'trigger' | 'store';
|
|
475
|
+
/** How a matching delivery is handled. Default `'invalidate'`. */
|
|
476
|
+
kind?: 'invalidate' | 'record';
|
|
477
|
+
/**
|
|
478
|
+
* Which feed instances a delivery belongs to: every `fields` entry maps a
|
|
479
|
+
* feed config key to a dotted payload path, and all of them must hold
|
|
480
|
+
* (AND). Only non-empty scalar values compare; a missing, empty or
|
|
481
|
+
* non-scalar value never matches. Omitted, a delivery reaches every feed of
|
|
482
|
+
* this key on the delivering connection.
|
|
483
|
+
*/
|
|
484
|
+
match?: {
|
|
485
|
+
fields: Record<string, string>;
|
|
486
|
+
/** Compare case-insensitively (GitHub owner/repo names). Default exact. */
|
|
487
|
+
caseInsensitive?: boolean;
|
|
488
|
+
};
|
|
489
|
+
}
|
|
490
|
+
/** Context for a `record` feed's {@link RuntimeFeedWebhook.normalize}. */
|
|
491
|
+
export interface WebhookRecordContext<F = Record<string, unknown>> {
|
|
492
|
+
feedKey: string;
|
|
493
|
+
/** The delivery's event type, read through the connector's `webhook.eventType`. */
|
|
494
|
+
eventType: string;
|
|
495
|
+
/** The feed instance's config (never credentials or connection secrets). */
|
|
496
|
+
config: F;
|
|
497
|
+
/** ISO time the platform verified the delivery. */
|
|
498
|
+
receivedAt: string;
|
|
499
|
+
}
|
|
500
|
+
/**
|
|
501
|
+
* Map one verified delivery to the envelope the feed's poll emits for the same
|
|
502
|
+
* source item (same origin_id), or null when the delivery records nothing
|
|
503
|
+
* (e.g. an unstar). Runs with no credentials, network, browser or operations.
|
|
504
|
+
*/
|
|
505
|
+
export type WebhookRecordNormalizer<F = Record<string, unknown>> = (payload: unknown, ctx: WebhookRecordContext<F>) => EventEnvelope | null | Promise<EventEnvelope | null>;
|
|
506
|
+
/** Runtime feed webhook: the persisted declaration plus a `record` feed's normalizer. */
|
|
507
|
+
export interface RuntimeFeedWebhook<F = Record<string, unknown>> extends FeedWebhookDeclaration {
|
|
508
|
+
normalize?: WebhookRecordNormalizer<F>;
|
|
509
|
+
}
|
|
445
510
|
export interface FeedDefinition {
|
|
446
511
|
/** Feed key, e.g. 'threads' */
|
|
447
512
|
key: string;
|
|
@@ -464,7 +529,7 @@ export interface FeedDefinition {
|
|
|
464
529
|
* this feed — every feed instance is created explicitly by the user (or by
|
|
465
530
|
* the device worker on their behalf). Use this for feeds whose configSchema
|
|
466
531
|
* has required fields that can only be supplied by an external actor, e.g.
|
|
467
|
-
* `
|
|
532
|
+
* the postgres `query` feed needs a user-authored SQL query.
|
|
468
533
|
*/
|
|
469
534
|
userManaged?: boolean;
|
|
470
535
|
/**
|
|
@@ -476,26 +541,30 @@ export interface FeedDefinition {
|
|
|
476
541
|
/** Declares that live reads can honor fixed windows on this source timestamp. */
|
|
477
542
|
readWindowAxis?: string;
|
|
478
543
|
/**
|
|
479
|
-
*
|
|
544
|
+
* Event paths a live read can filter by exact value (`FeedReadContext.match`).
|
|
545
|
+
* A feed that declares them returns EventEnvelope-shaped rows, newest first,
|
|
546
|
+
* so its event-kind attributions and relationships resolve against read rows
|
|
547
|
+
* exactly as they do against synced events.
|
|
548
|
+
*/
|
|
549
|
+
matchPaths?: string[];
|
|
550
|
+
/**
|
|
551
|
+
* Routes inbound provider deliveries to this feed. Lives on the feed (not
|
|
480
552
|
* the connector's webhook schema) because feeds_schema is the persisted,
|
|
481
|
-
* server-readable surface — the
|
|
482
|
-
*
|
|
483
|
-
*
|
|
484
|
-
*
|
|
485
|
-
* - `
|
|
486
|
-
* mark this feed due and let the poll fetch the complete record (deduped
|
|
487
|
-
* origin_id).
|
|
488
|
-
*
|
|
489
|
-
*
|
|
490
|
-
*
|
|
491
|
-
*
|
|
553
|
+
* server-readable surface — the platform reads this to dispatch a delivery
|
|
554
|
+
* WITHOUT hardcoding provider event types. The connector owns this knowledge
|
|
555
|
+
* (which event updates which feed, and whether the payload is complete
|
|
556
|
+
* enough to record):
|
|
557
|
+
* - `kind: 'invalidate'` (default) — the poll brings more than the webhook,
|
|
558
|
+
* so mark this feed due and let the poll fetch the complete record (deduped
|
|
559
|
+
* by origin_id). On a read-only feed, these are `automationEvents` keys
|
|
560
|
+
* whose source references (from `observe`) activate subscribed Automations
|
|
561
|
+
* without importing content.
|
|
562
|
+
* - `kind: 'record'` — the payload is event-complete (e.g. a GitHub `star`
|
|
563
|
+
* carries the actor + starred_at), so the runtime feed's `normalize` maps it
|
|
564
|
+
* to the same envelope (and origin_id) the poll emits, and the platform
|
|
565
|
+
* stores it without re-polling.
|
|
492
566
|
*/
|
|
493
|
-
webhook?:
|
|
494
|
-
/** Provider webhook event types (e.g. `x-github-event` values) that update this feed. */
|
|
495
|
-
events: string[];
|
|
496
|
-
/** How a matching delivery is handled. Default `'trigger'`. */
|
|
497
|
-
mode?: 'trigger' | 'store';
|
|
498
|
-
};
|
|
567
|
+
webhook?: FeedWebhookDeclaration;
|
|
499
568
|
/** Event kinds this feed produces, keyed by kind slug */
|
|
500
569
|
eventKinds?: Record<string, {
|
|
501
570
|
description?: string;
|
|
@@ -745,14 +814,12 @@ export interface EventEnvelope {
|
|
|
745
814
|
origin_id: string;
|
|
746
815
|
/** Source-native item type (e.g. post, message, issue) */
|
|
747
816
|
origin_type?: string;
|
|
748
|
-
/** Content format: 'text' (default), 'markdown', '
|
|
749
|
-
payload_type?: 'text' | 'markdown' | '
|
|
817
|
+
/** Content format: 'text' (default), 'markdown', 'media', 'empty' */
|
|
818
|
+
payload_type?: 'text' | 'markdown' | 'media' | 'empty';
|
|
750
819
|
/** Main text content */
|
|
751
820
|
payload_text: string;
|
|
752
|
-
/** Structured
|
|
821
|
+
/** Structured event data, preserved alongside content and media. */
|
|
753
822
|
payload_data?: Record<string, unknown>;
|
|
754
|
-
/** JSON template for rendering (required when payload_type is 'json_template') */
|
|
755
|
-
payload_template?: Record<string, unknown> | null;
|
|
756
823
|
/** File or media attachments */
|
|
757
824
|
attachments?: unknown[];
|
|
758
825
|
/** Title / subject line */
|
|
@@ -784,6 +851,8 @@ export interface EventEnvelope {
|
|
|
784
851
|
* - `F` — feed config shape (defaults to `Record<string, unknown>`)
|
|
785
852
|
*/
|
|
786
853
|
export interface SyncContext<C = Record<string, unknown>, F = Record<string, unknown>> {
|
|
854
|
+
/** Browser handle scoped by the host to this connection and declared origins. */
|
|
855
|
+
browser?: ChromeActionDispatcher;
|
|
787
856
|
/** Feed key */
|
|
788
857
|
feedKey: string;
|
|
789
858
|
/**
|
|
@@ -896,6 +965,8 @@ export interface WebhookRegistration {
|
|
|
896
965
|
metadata?: Record<string, unknown>;
|
|
897
966
|
}
|
|
898
967
|
export type FeedOperation = 'sync' | 'read';
|
|
968
|
+
/** Installs/reconnects a source listener. Delivery uses the existing browser feed transport. */
|
|
969
|
+
export type FeedObserveContext<C = Record<string, unknown>, F = Record<string, unknown>> = Omit<SyncContext<C, F>, 'commit' | 'entityIds'>;
|
|
899
970
|
/** Fixed half-open source-time bounds, preserved across every page of a read. */
|
|
900
971
|
export interface FeedReadWindow {
|
|
901
972
|
start: string;
|
|
@@ -911,6 +982,8 @@ export interface FeedReadWindowCoverage extends FeedReadWindow {
|
|
|
911
982
|
* returned to the caller without being persisted by this contract.
|
|
912
983
|
*/
|
|
913
984
|
export interface FeedReadContext<F = Record<string, unknown>> {
|
|
985
|
+
/** Browser handle scoped by the host to this connection and declared origins. */
|
|
986
|
+
browser?: ChromeActionDispatcher;
|
|
914
987
|
feedId?: number;
|
|
915
988
|
feedKey: string;
|
|
916
989
|
query?: string;
|
|
@@ -927,9 +1000,27 @@ export interface FeedReadContext<F = Record<string, unknown>> {
|
|
|
927
1000
|
column: string;
|
|
928
1001
|
order: 'asc' | 'desc';
|
|
929
1002
|
};
|
|
1003
|
+
/**
|
|
1004
|
+
* Exact-value filter on one of the feed's declared `matchPaths`. A matched
|
|
1005
|
+
* read pages only by `nextCursor`: a result without one is the last page.
|
|
1006
|
+
* Source-native page tokens are supported. Merged record activity also
|
|
1007
|
+
* needs `FeedReadResult.rowCursors` to resume a partially consumed page.
|
|
1008
|
+
*/
|
|
1009
|
+
match?: FeedReadMatch;
|
|
1010
|
+
}
|
|
1011
|
+
export interface FeedReadMatch {
|
|
1012
|
+
path: string;
|
|
1013
|
+
values: string[];
|
|
930
1014
|
}
|
|
931
1015
|
export interface FeedReadResult {
|
|
932
1016
|
rows: Record<string, unknown>[];
|
|
1017
|
+
/**
|
|
1018
|
+
* Optional exact resume token after each row, in the same order as `rows`.
|
|
1019
|
+
* Supply only when the source can seek past a stable row key even if that
|
|
1020
|
+
* row is deleted. Enables merging partially consumed pages across feeds.
|
|
1021
|
+
* Ordinary page-token readers omit this; never synthesize it from offsets.
|
|
1022
|
+
*/
|
|
1023
|
+
rowCursors?: string[];
|
|
933
1024
|
columns?: {
|
|
934
1025
|
name: string;
|
|
935
1026
|
type: string;
|
|
@@ -945,9 +1036,12 @@ export interface FeedReadResult {
|
|
|
945
1036
|
export type FeedSyncHandler<C = Record<string, unknown>, F = Record<string, unknown>> = (ctx: SyncContext<C, F>) => Promise<SyncResult>;
|
|
946
1037
|
export type FeedReadHandler<F = Record<string, unknown>> = (ctx: FeedReadContext<F>) => Promise<FeedReadResult>;
|
|
947
1038
|
/** Executable feed definition held only inside a connector runtime. */
|
|
948
|
-
export interface RuntimeFeedDefinition<C = Record<string, unknown>, F = Record<string, unknown>> extends Omit<FeedDefinition, 'operations'> {
|
|
1039
|
+
export interface RuntimeFeedDefinition<C = Record<string, unknown>, F = Record<string, unknown>> extends Omit<FeedDefinition, 'operations' | 'webhook'> {
|
|
1040
|
+
webhook?: RuntimeFeedWebhook<F>;
|
|
949
1041
|
sync?: FeedSyncHandler<C, F>;
|
|
950
1042
|
read?: FeedReadHandler<F>;
|
|
1043
|
+
/** Setup only: emits no result and does not add a feed operation. */
|
|
1044
|
+
observe?: (ctx: FeedObserveContext<C, F>) => Promise<void>;
|
|
951
1045
|
}
|
|
952
1046
|
/** Runtime-only connector definition. Metadata extraction strips handlers. */
|
|
953
1047
|
export interface RuntimeConnectorDefinition<C = Record<string, unknown>, F = Record<string, unknown>> extends Omit<ConnectorDefinition, 'feeds'> {
|
|
@@ -987,6 +1081,20 @@ export interface QueryContext<F = Record<string, unknown>> {
|
|
|
987
1081
|
columns: string[];
|
|
988
1082
|
value: string;
|
|
989
1083
|
};
|
|
1084
|
+
/**
|
|
1085
|
+
* Shared collection predicates, applied before sorting and pagination.
|
|
1086
|
+
* Search is a literal case-insensitive substring of the projected name.
|
|
1087
|
+
* Attribute filters are ANDed, use typed values, and treat absent fields as
|
|
1088
|
+
* null. The connector owns dialect-safe encoding and must reject unknown
|
|
1089
|
+
* columns. An empty object identifies an unfiltered collection read, allowing
|
|
1090
|
+
* a source to return its population total without counting ordinary SQL reads.
|
|
1091
|
+
* Requires queryCapabilities.selection for nonempty predicates; old sources
|
|
1092
|
+
* keep their unfiltered query semantics when the selection is empty.
|
|
1093
|
+
*/
|
|
1094
|
+
selection?: {
|
|
1095
|
+
search?: string;
|
|
1096
|
+
filters?: AttributeFilter[];
|
|
1097
|
+
};
|
|
990
1098
|
}
|
|
991
1099
|
/** Result from ConnectorRuntime.query(). Rows are returned to the caller, never persisted. */
|
|
992
1100
|
export interface QueryResult {
|
|
@@ -1105,10 +1213,21 @@ export interface AuthResult {
|
|
|
1105
1213
|
[key: string]: unknown;
|
|
1106
1214
|
};
|
|
1107
1215
|
}
|
|
1216
|
+
/** Host-mediated calls to a visible native device connection. The target's
|
|
1217
|
+
* Auto/Ask/Block policy applies independently. Pending approval is a receipt,
|
|
1218
|
+
* not a completed effect. Reuse the same key on ambiguous outcomes; do not
|
|
1219
|
+
* blindly retry an interactive prompt. Keys are scoped to the parent run. */
|
|
1220
|
+
export interface ConnectorOperations {
|
|
1221
|
+
execute(request: ConnectorOperationRequest): Promise<ConnectorOperationResult>;
|
|
1222
|
+
}
|
|
1108
1223
|
/**
|
|
1109
1224
|
* Context passed to ConnectorRuntime.execute()
|
|
1110
1225
|
*/
|
|
1111
1226
|
export interface ActionContext {
|
|
1227
|
+
/** Native device operations, delegated through the host's operation lifecycle. */
|
|
1228
|
+
operations?: ConnectorOperations;
|
|
1229
|
+
/** Browser handle scoped by the host to this connection and declared origins. */
|
|
1230
|
+
browser?: ChromeActionDispatcher;
|
|
1112
1231
|
/** Action key to execute */
|
|
1113
1232
|
actionKey: string;
|
|
1114
1233
|
/** Action input parameters */
|
|
@@ -1117,13 +1236,7 @@ export interface ActionContext {
|
|
|
1117
1236
|
credentials: SyncCredentials | null;
|
|
1118
1237
|
/** Connection config */
|
|
1119
1238
|
config: Record<string, unknown>;
|
|
1120
|
-
/**
|
|
1121
|
-
* Per-run session state. The connector-worker splices a live
|
|
1122
|
-
* `chrome_dispatcher` (a `ChromeActionDispatcher`) onto this for action runs
|
|
1123
|
-
* the same way it does for syncs, so on-demand actions can drive the paired
|
|
1124
|
-
* Owletto Chrome extension (e.g. scrape a page the agent chose at runtime).
|
|
1125
|
-
* Null when no session/dispatcher applies.
|
|
1126
|
-
*/
|
|
1239
|
+
/** Per-run authentication state. Use `browser` for declared browser access. */
|
|
1127
1240
|
sessionState?: Record<string, unknown> | null;
|
|
1128
1241
|
/** App-installation context when this connection is backed by an App install. */
|
|
1129
1242
|
installation?: ConnectorInstallationContext;
|
|
@@ -1174,7 +1287,8 @@ export interface ContentItem {
|
|
|
1174
1287
|
attachments_bytes?: number;
|
|
1175
1288
|
rating: string | null;
|
|
1176
1289
|
source_url: string | null;
|
|
1177
|
-
score
|
|
1290
|
+
/** Score returned by the read path; null when no score is available. */
|
|
1291
|
+
score: number | null;
|
|
1178
1292
|
normalized_score?: number;
|
|
1179
1293
|
metadata: Record<string, unknown>;
|
|
1180
1294
|
classifications: Record<string, unknown>;
|
|
@@ -1248,7 +1362,7 @@ export interface ContentItem {
|
|
|
1248
1362
|
text_content: string;
|
|
1249
1363
|
occurred_at: string;
|
|
1250
1364
|
source_url: string;
|
|
1251
|
-
score: number;
|
|
1365
|
+
score: number | null;
|
|
1252
1366
|
} | null;
|
|
1253
1367
|
/** Only if root not in results AND depth > 0 */
|
|
1254
1368
|
root_context?: {
|
|
@@ -1256,7 +1370,7 @@ export interface ContentItem {
|
|
|
1256
1370
|
title: string;
|
|
1257
1371
|
occurred_at: string;
|
|
1258
1372
|
source_url: string;
|
|
1259
|
-
score: number;
|
|
1373
|
+
score: number | null;
|
|
1260
1374
|
} | null;
|
|
1261
1375
|
/** Permalink URL for this specific knowledge item */
|
|
1262
1376
|
permalink?: string | null;
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
32
|
import { ConnectorRuntime } from "./connector-runtime.js";
|
|
33
|
-
import type { ActionContext, ActionDefinition, ActionResult, AuthContext, AuthResult, ConnectorDefinition, FeedDefinition, FeedReadHandler, FeedSyncHandler, QueryContext, QueryResult, ReflectContext, ReflectResult, WebhookRegistration, WebhookRegistrationContext } from "./connector-types.js";
|
|
33
|
+
import type { ActionContext, ActionDefinition, ActionResult, AuthContext, AuthResult, ConnectorDefinition, FeedDefinition, FeedObserveContext, FeedReadHandler, FeedSyncHandler, QueryContext, QueryResult, ReflectContext, ReflectResult, WebhookRegistration, WebhookRegistrationContext } from "./connector-types.js";
|
|
34
34
|
/**
|
|
35
35
|
* A feed's metadata plus one or both executable operations. Capabilities are
|
|
36
36
|
* inferred from these handlers when metadata is extracted.
|
|
@@ -38,9 +38,11 @@ import type { ActionContext, ActionDefinition, ActionResult, AuthContext, AuthRe
|
|
|
38
38
|
export type ConnectorFeedSpec<C = Record<string, unknown>, F = Record<string, unknown>> = Omit<FeedDefinition, "key" | "operations"> & ({
|
|
39
39
|
sync: FeedSyncHandler<C, F>;
|
|
40
40
|
read?: FeedReadHandler<F>;
|
|
41
|
+
observe?: never;
|
|
41
42
|
} | {
|
|
42
|
-
sync?:
|
|
43
|
+
sync?: never;
|
|
43
44
|
read: FeedReadHandler<F>;
|
|
45
|
+
observe?: (ctx: FeedObserveContext<C, F>) => Promise<void>;
|
|
44
46
|
});
|
|
45
47
|
/** An action's metadata (minus `key`) plus its `execute` handler. */
|
|
46
48
|
export interface ConnectorActionSpec extends Omit<ActionDefinition, "key"> {
|
|
@@ -44,6 +44,7 @@ function buildDefinition(spec) {
|
|
|
44
44
|
mcpConfig: spec.mcpConfig,
|
|
45
45
|
openapiConfig: spec.openapiConfig,
|
|
46
46
|
requiredCapability: spec.requiredCapability,
|
|
47
|
+
browser: spec.browser,
|
|
47
48
|
runtime: spec.runtime,
|
|
48
49
|
webhook: spec.webhook,
|
|
49
50
|
automationEvents: spec.automationEvents,
|
|
@@ -63,7 +64,9 @@ function buildDefinition(spec) {
|
|
|
63
64
|
eventKinds: feed.eventKinds,
|
|
64
65
|
sync: feed.sync,
|
|
65
66
|
read: feed.read,
|
|
67
|
+
observe: feed.observe,
|
|
66
68
|
readWindowAxis: feed.readWindowAxis,
|
|
69
|
+
matchPaths: feed.matchPaths,
|
|
67
70
|
},
|
|
68
71
|
]));
|
|
69
72
|
}
|
|
@@ -15,7 +15,7 @@ import { validateEntityMetrics } from './metrics.js';
|
|
|
15
15
|
export { validateEntityMetrics };
|
|
16
16
|
export type { Dimension, EntityMetrics, EventSet, FactMatchRule, Measure, MetricReadMode, MetricTier, Segment, } from './metrics.js';
|
|
17
17
|
export type { ConnectorActionSpec, ConnectorClass, ConnectorFeedSpec, ConnectorSpec, } from './define-connector.js';
|
|
18
|
-
export type { ActionContext, ActionDefinition, ActionResult, ApprovalStatus, AuthArtifact, AuthContext, AuthResult, Connection, ConnectorAgentTooling, ConnectorAgentToolingEnv, ConnectorAuthAppInstallation, ConnectorAuthBrowser, ConnectorAuthEnvField, ConnectorAuthEnvKeys, ConnectorAuthInteractive, ConnectorAuthMethod, ConnectorAuthNone, ConnectorAuthOAuth, ConnectorAuthSchema, ConnectorDefinition, ConnectorInstallationContext, ConnectorRuntimeInfo, ConnectorWebhookSchema, ContentItem, EntityIdentitySpec, EntityLinkPredicate, EntityTraitSpec, EventAttributionRole, EventAttributionRule, EventAttributionTargetSpec, EventEnvelope, Feed, FeedDefinition, FeedOperation, FeedReadContext, FeedReadHandler, FeedReadResult, FeedReadWindow, FeedReadWindowCoverage, FeedSyncHandler, EntityTypeContribution, QueryContext, QueryResult, ReflectContext, ReflectedMeasure, ReflectResult, Run, RunStatus, RunType, RuntimeConnectorDefinition, RuntimeFeedDefinition, SyncContext, SyncCredentials, SyncResult, WebhookRegistration, WebhookRegistrationContext, } from './connector-types.js';
|
|
18
|
+
export type { ActionContext, ActionDefinition, ActionResult, ApprovalStatus, AuthArtifact, AuthContext, AuthResult, Connection, ConnectorAgentTooling, ConnectorAgentToolingEnv, ConnectorAuthAppInstallation, ConnectorAuthBrowser, ConnectorAuthEnvField, ConnectorAuthEnvKeys, ConnectorAuthInteractive, ConnectorAuthMethod, ConnectorAuthNone, ConnectorAuthOAuth, ConnectorAuthSchema, ConnectorDefinition, ConnectorInstallationContext, ConnectorOperations, ConnectorRuntimeInfo, ConnectorWebhookSchema, ContentItem, EntityIdentitySpec, EntityLinkPredicate, EntityTraitSpec, EventAttributionRole, EventAttributionRule, EventAttributionTargetSpec, EventEnvelope, Feed, FeedDefinition, FeedOperation, FeedObserveContext, FeedReadContext, FeedReadHandler, FeedReadResult, FeedReadMatch, FeedReadWindow, FeedReadWindowCoverage, FeedSyncHandler, FeedWebhookDeclaration, EntityTypeContribution, QueryContext, QueryResult, ReflectContext, ReflectedMeasure, ReflectResult, Run, RunStatus, RunType, RuntimeConnectorDefinition, RuntimeFeedDefinition, RuntimeFeedWebhook, SyncContext, SyncCredentials, SyncResult, WebhookRecordContext, WebhookRecordNormalizer, WebhookRegistration, WebhookRegistrationContext, } from './connector-types.js';
|
|
19
19
|
import { normalizeAuthUserId, normalizeEmail, normalizeEmailDomain, normalizeIdentifier, normalizePhone } from './identity-normalize.js';
|
|
20
20
|
export { normalizeAuthUserId, normalizeEmail, normalizeEmailDomain, normalizeIdentifier, normalizePhone, };
|
|
21
21
|
export type { IdentityNamespace, IdentityNamespaceDefinition, IdentityNormalizerKind, IdentitySubjectKind, } from './identity-namespaces.js';
|
|
@@ -39,14 +39,17 @@ export { validatePublicUrl, validateUrlDomain } from './url-guards.js';
|
|
|
39
39
|
export { sleep } from './sleep.js';
|
|
40
40
|
export type { ExtensionDomScrapeResult, ExtensionScrapeConfig, ExtensionScrapeObservation, ExtensionScrapeResult, } from './extension-dom-scrape.js';
|
|
41
41
|
export { extensionDomScrape } from './extension-dom-scrape.js';
|
|
42
|
+
export type { ConnectorBrowserRequirement } from './browser-requirement.js';
|
|
43
|
+
export { BROWSER_VERIFY_OPERATION, BROWSER_VERIFY_ACTION, browserAuthMethod, constrainBrowserInput, requireBrowser, resolveBrowserRequirement, validateBrowserRequirement } from './browser-requirement.js';
|
|
42
44
|
export type { ChromeActionDispatcher, ChromeActionInput, ChromeActionOutput, ExtensionNetworkConfig, ExtensionNetworkPattern, ExtensionNetworkResult, InterceptedResponse, NavigateObservation, NetworkInterceptDrainObservation, NetworkInterceptStartObservation, } from './extension-network.js';
|
|
43
45
|
export { extensionNetworkSync } from './extension-network.js';
|
|
44
46
|
export type { AutomationScriptContext, ReactionContext, } from './reaction-sdk.js';
|
|
45
47
|
export type { ReactionClient } from './reaction-client-types.js';
|
|
46
48
|
export type { CardElement, KnowledgeDeleteInput, KnowledgeReadInput, KnowledgeSaveInput, KnowledgeSaveResult, KnowledgeSearchInput, NotificationsSendInput, NotificationsSendResult, } from './reaction-client-types.js';
|
|
47
49
|
export type { ConnectionListInput } from '@lobu/core/contracts/tools/manage-connections';
|
|
50
|
+
export type { CollectionPresentation } from '@lobu/core/contracts/tools/collection-presentation';
|
|
48
51
|
export type { EntityCreateInput, EntityDeleteInput, EntityGetInput, EntityLinkInput, EntityListInput, EntityListLinksInput, EntityUnlinkInput, EntityUpdateInput, EntityUpdateLinkInput, } from '@lobu/core/contracts/tools/manage-entity';
|
|
49
|
-
export type { OperationExecuteInput, OperationListAvailableInput, OperationListRunsInput, } from '@lobu/core/contracts/tools/manage-operations';
|
|
52
|
+
export type { ConnectorOperationRequest, ConnectorOperationResult, OperationExecuteInput, OperationListAvailableInput, OperationListRunsInput, } from '@lobu/core/contracts/tools/manage-operations';
|
|
50
53
|
export type { Env } from './types.js';
|
|
51
54
|
export type { FileDelta, FileSystemSource, Snapshot } from './file-source.js';
|
|
52
55
|
export { connect } from './net.js';
|
|
@@ -37,6 +37,7 @@ export { buildTimestampCheckpoint, filterByCheckpoint, finalizeTimestampSync, }
|
|
|
37
37
|
export { validatePublicUrl, validateUrlDomain } from './url-guards.js';
|
|
38
38
|
export { sleep } from './sleep.js';
|
|
39
39
|
export { extensionDomScrape } from './extension-dom-scrape.js';
|
|
40
|
+
export { BROWSER_VERIFY_OPERATION, BROWSER_VERIFY_ACTION, browserAuthMethod, constrainBrowserInput, requireBrowser, resolveBrowserRequirement, validateBrowserRequirement } from './browser-requirement.js';
|
|
40
41
|
export { extensionNetworkSync } from './extension-network.js';
|
|
41
42
|
// =============================================================================
|
|
42
43
|
// WinterCG Direct Sockets (Cloudflare / Isolate Sockets API)
|