@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
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ManageEntityResultSchema = exports.ManageEntityItemSchema = exports.
|
|
3
|
+
exports.ManageEntityResultSchema = exports.ManageEntityItemSchema = exports.EntityIdentitySchema = exports.RelationshipCountByTypeSchema = exports.RelationshipRowSchema = exports.ManageEntitySchema = exports.DiscoverDuplicatesAction = exports.ListLinksAction = exports.UpdateLinkAction = exports.UnlinkEntitiesAction = exports.LinkEntitiesAction = exports.DeleteEntityAction = exports.GetEntityAction = exports.ListEntitiesAction = exports.UpdateEntityAction = exports.CreateEntityAction = void 0;
|
|
4
4
|
const typebox_1 = require("@sinclair/typebox");
|
|
5
5
|
const interaction_envelope_1 = require("../interaction-envelope");
|
|
6
|
+
const collection_selection_1 = require("./collection-selection");
|
|
6
7
|
const pagination_1 = require("./pagination");
|
|
7
8
|
function SortOrderField(description) {
|
|
8
9
|
return typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.Literal("asc"), typebox_1.Type.Literal("desc")], { description }));
|
|
@@ -17,11 +18,12 @@ function SortOrderField(description) {
|
|
|
17
18
|
const EntityType = typebox_1.Type.String({
|
|
18
19
|
description: "Entity type as defined in your workspace",
|
|
19
20
|
});
|
|
20
|
-
const EntityId = typebox_1.Type.
|
|
21
|
-
|
|
21
|
+
const EntityId = typebox_1.Type.Integer({
|
|
22
|
+
minimum: 1,
|
|
23
|
+
description: "[get/update/delete/list_links] Entity ID to operate on",
|
|
22
24
|
});
|
|
23
25
|
// Attributes an entity carries. `create` and `update` share the set; `list`
|
|
24
|
-
// filters on `parent_id
|
|
26
|
+
// filters on `parent_id` and schema-declared metadata using `filters`.
|
|
25
27
|
const EntityFields = {
|
|
26
28
|
name: typebox_1.Type.String({
|
|
27
29
|
description: "[create/update] Entity name",
|
|
@@ -37,32 +39,17 @@ const EntityFields = {
|
|
|
37
39
|
parent_id: typebox_1.Type.Number({
|
|
38
40
|
description: "[create/update] Parent entity ID (for hierarchical entities).",
|
|
39
41
|
}),
|
|
40
|
-
domain: typebox_1.Type.String({
|
|
41
|
-
description: "[create/update] Primary domain (e.g., spotify.com)",
|
|
42
|
-
}),
|
|
43
|
-
category: typebox_1.Type.String({
|
|
44
|
-
description: "[create/update/list] Industry category",
|
|
45
|
-
}),
|
|
46
|
-
platform_type: typebox_1.Type.String({
|
|
47
|
-
description: "[create/update] Platform type (b2b, b2c, b2b2c)",
|
|
48
|
-
}),
|
|
49
|
-
main_market: typebox_1.Type.String({
|
|
50
|
-
description: "[create/update/list] Primary market (ISO 3166-1 alpha-2)",
|
|
51
|
-
}),
|
|
52
|
-
market: typebox_1.Type.String({
|
|
53
|
-
description: "[create/update/list] Market/region (ISO 3166-1 alpha-2)",
|
|
54
|
-
}),
|
|
55
|
-
link: typebox_1.Type.String({ description: "[create/update] Entity URL" }),
|
|
56
42
|
};
|
|
57
43
|
// Custom metadata (validated against entity type's JSON schema)
|
|
58
44
|
const Metadata = typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Unknown(), {
|
|
59
45
|
description: "[create/update/link/update_link] Custom metadata object. For entities: validated against the entity type's JSON schema. For links: relationship metadata. On update, fields a human owns are NOT overwritten — they are queued for the human's approval and reported in the result's `blocked_fields`/`approval_queued`; tell the user you PROPOSED those changes rather than claiming you set them. Unowned fields in the same call apply directly (`applied_fields`).",
|
|
60
46
|
});
|
|
61
47
|
// Carried by exactly the variants whose handler reads it: the principal seam
|
|
62
|
-
// (`create`, `update`, `list`, `delete
|
|
63
|
-
// it (`list_links`), and reaction tracking (`link`). `get`
|
|
64
|
-
// gate without one, and
|
|
65
|
-
// never consult it —
|
|
48
|
+
// (`create`, `update`, `list`, `delete`), the read gate that consults
|
|
49
|
+
// it (`list_links`), and reaction tracking (`link`). `get` and
|
|
50
|
+
// `discover_duplicates` resolve their read gate without one, and
|
|
51
|
+
// `unlink`/`update_link` never consult it —
|
|
52
|
+
// declaring it there would advertise an inert field.
|
|
66
53
|
const AutomationSource = typebox_1.Type.Object({
|
|
67
54
|
automation_id: typebox_1.Type.Number({
|
|
68
55
|
description: "Automation that triggered this mutation",
|
|
@@ -74,7 +61,7 @@ const AutomationSource = typebox_1.Type.Object({
|
|
|
74
61
|
description: "Attribution source when mutation is triggered by an Automation reaction",
|
|
75
62
|
});
|
|
76
63
|
const DryRun = typebox_1.Type.Boolean({
|
|
77
|
-
description: "[delete,
|
|
64
|
+
description: "[delete, identity link/unlink] Preflight only. For delete: report what it would remove/detach. For identity link/unlink: preview apply, human review, rejected-candidate suppression, or refusal using current policy and write rules. Mutates nothing and never queues an approval.",
|
|
78
65
|
});
|
|
79
66
|
const IncludeDeleted = typebox_1.Type.Boolean({
|
|
80
67
|
description: "[get] Return the entity even if it is soft-deleted (deleted_at set). [list_links] Include soft-deleted relationships.",
|
|
@@ -119,12 +106,6 @@ exports.CreateEntityAction = typebox_1.Type.Object({
|
|
|
119
106
|
content: typebox_1.Type.Optional(EntityFields.content),
|
|
120
107
|
slug: typebox_1.Type.Optional(EntityFields.slug),
|
|
121
108
|
parent_id: typebox_1.Type.Optional(EntityFields.parent_id),
|
|
122
|
-
domain: typebox_1.Type.Optional(EntityFields.domain),
|
|
123
|
-
category: typebox_1.Type.Optional(EntityFields.category),
|
|
124
|
-
platform_type: typebox_1.Type.Optional(EntityFields.platform_type),
|
|
125
|
-
main_market: typebox_1.Type.Optional(EntityFields.main_market),
|
|
126
|
-
market: typebox_1.Type.Optional(EntityFields.market),
|
|
127
|
-
link: typebox_1.Type.Optional(EntityFields.link),
|
|
128
109
|
metadata: typebox_1.Type.Optional(Metadata),
|
|
129
110
|
automation_source: typebox_1.Type.Optional(AutomationSource),
|
|
130
111
|
});
|
|
@@ -137,12 +118,6 @@ exports.UpdateEntityAction = typebox_1.Type.Object({
|
|
|
137
118
|
content: typebox_1.Type.Optional(EntityFields.content),
|
|
138
119
|
slug: typebox_1.Type.Optional(EntityFields.slug),
|
|
139
120
|
parent_id: typebox_1.Type.Optional(EntityFields.parent_id),
|
|
140
|
-
domain: typebox_1.Type.Optional(EntityFields.domain),
|
|
141
|
-
category: typebox_1.Type.Optional(EntityFields.category),
|
|
142
|
-
platform_type: typebox_1.Type.Optional(EntityFields.platform_type),
|
|
143
|
-
main_market: typebox_1.Type.Optional(EntityFields.main_market),
|
|
144
|
-
market: typebox_1.Type.Optional(EntityFields.market),
|
|
145
|
-
link: typebox_1.Type.Optional(EntityFields.link),
|
|
146
121
|
metadata: typebox_1.Type.Optional(Metadata),
|
|
147
122
|
// Human-correction annotation
|
|
148
123
|
field_note: typebox_1.Type.Optional(typebox_1.Type.String({
|
|
@@ -159,13 +134,14 @@ exports.ListEntitiesAction = typebox_1.Type.Object({
|
|
|
159
134
|
description: "Paginated entity list with filters.",
|
|
160
135
|
}),
|
|
161
136
|
entity_type: typebox_1.Type.Optional(EntityType),
|
|
137
|
+
filters: typebox_1.Type.Optional(collection_selection_1.AttributeFiltersSchema),
|
|
162
138
|
parent_id: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.Number(), typebox_1.Type.Null()], {
|
|
163
139
|
description: "[list] Parent filter: omit for all entities, null for roots, or an ID for that parent's children.",
|
|
164
140
|
})),
|
|
165
141
|
search: typebox_1.Type.Optional(typebox_1.Type.String({ description: "[list] Search by name" })),
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
142
|
+
segment: typebox_1.Type.Optional(typebox_1.Type.String({
|
|
143
|
+
description: "[list] Name of an on:'entity' segment declared on entity_type (metrics_config.segments). Narrows the list to entities matching its predicate. Requires entity_type.",
|
|
144
|
+
})),
|
|
169
145
|
...(0, pagination_1.paginationFields)(100),
|
|
170
146
|
sort_by: typebox_1.Type.Optional(typebox_1.Type.String({
|
|
171
147
|
description: "[list] Sort by column (name, created_at, domain, total_content, active_connections, automations_count, children_count)",
|
|
@@ -189,7 +165,37 @@ exports.DeleteEntityAction = typebox_1.Type.Object({
|
|
|
189
165
|
dry_run: typebox_1.Type.Optional(DryRun),
|
|
190
166
|
automation_source: typebox_1.Type.Optional(AutomationSource),
|
|
191
167
|
});
|
|
168
|
+
const IdentityPreview = typebox_1.Type.Object({
|
|
169
|
+
outcome: typebox_1.Type.Union([
|
|
170
|
+
typebox_1.Type.Literal("apply"),
|
|
171
|
+
typebox_1.Type.Literal("review"),
|
|
172
|
+
typebox_1.Type.Literal("suppressed"),
|
|
173
|
+
typebox_1.Type.Literal("refused"),
|
|
174
|
+
]),
|
|
175
|
+
reason: typebox_1.Type.String(),
|
|
176
|
+
});
|
|
177
|
+
function IdentityDecisionResults(action) {
|
|
178
|
+
return [
|
|
179
|
+
typebox_1.Type.Object({
|
|
180
|
+
action: typebox_1.Type.Literal(action),
|
|
181
|
+
dry_run: typebox_1.Type.Literal(true),
|
|
182
|
+
preview: IdentityPreview,
|
|
183
|
+
}, { additionalProperties: false }),
|
|
184
|
+
typebox_1.Type.Object({
|
|
185
|
+
action: typebox_1.Type.Literal(action),
|
|
186
|
+
approval_queued: typebox_1.Type.Literal(true),
|
|
187
|
+
approval_run_id: typebox_1.Type.Integer({ minimum: 1 }),
|
|
188
|
+
approval_url: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
189
|
+
}, { additionalProperties: false }),
|
|
190
|
+
typebox_1.Type.Object({
|
|
191
|
+
action: typebox_1.Type.Literal(action),
|
|
192
|
+
approval_suppressed: typebox_1.Type.Literal(true),
|
|
193
|
+
message: typebox_1.Type.String(),
|
|
194
|
+
}, { additionalProperties: false }),
|
|
195
|
+
];
|
|
196
|
+
}
|
|
192
197
|
exports.LinkEntitiesAction = typebox_1.Type.Object({
|
|
198
|
+
dry_run: typebox_1.Type.Optional(DryRun),
|
|
193
199
|
action: typebox_1.Type.Literal("link", {
|
|
194
200
|
description: "Create a relationship edge between two entities.",
|
|
195
201
|
}),
|
|
@@ -202,6 +208,8 @@ exports.LinkEntitiesAction = typebox_1.Type.Object({
|
|
|
202
208
|
automation_source: typebox_1.Type.Optional(AutomationSource),
|
|
203
209
|
});
|
|
204
210
|
exports.UnlinkEntitiesAction = typebox_1.Type.Object({
|
|
211
|
+
dry_run: typebox_1.Type.Optional(DryRun),
|
|
212
|
+
automation_source: typebox_1.Type.Optional(AutomationSource),
|
|
205
213
|
action: typebox_1.Type.Literal("unlink", {
|
|
206
214
|
description: "Soft-delete a relationship.",
|
|
207
215
|
}),
|
|
@@ -226,7 +234,13 @@ exports.ListLinksAction = typebox_1.Type.Object({
|
|
|
226
234
|
action: typebox_1.Type.Literal("list_links", {
|
|
227
235
|
description: "List relationships for an entity with filters + counts.",
|
|
228
236
|
}),
|
|
229
|
-
entity_id: EntityId,
|
|
237
|
+
entity_id: typebox_1.Type.Optional(EntityId),
|
|
238
|
+
record: typebox_1.Type.Optional(typebox_1.Type.Object({
|
|
239
|
+
type: typebox_1.Type.String({ minLength: 1 }),
|
|
240
|
+
key: typebox_1.Type.String({ minLength: 1 }),
|
|
241
|
+
}, {
|
|
242
|
+
description: "[list_links] A record of a source-backed entity type, instead of entity_id. Its relationships are read live from the event kinds that declare them; stores nothing.",
|
|
243
|
+
})),
|
|
230
244
|
direction: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.Literal("outbound"), typebox_1.Type.Literal("inbound"), typebox_1.Type.Literal("both")], { description: "[list_links] Direction filter. Default both." })),
|
|
231
245
|
relationship_type_slug: typebox_1.Type.Optional(EdgeEndpoints.relationship_type_slug),
|
|
232
246
|
confidence_min: typebox_1.Type.Optional(typebox_1.Type.Number({
|
|
@@ -237,54 +251,26 @@ exports.ListLinksAction = typebox_1.Type.Object({
|
|
|
237
251
|
source: typebox_1.Type.Optional(RelationshipSource),
|
|
238
252
|
include_deleted: typebox_1.Type.Optional(IncludeDeleted),
|
|
239
253
|
...(0, pagination_1.paginationFields)(100),
|
|
254
|
+
cursor: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.String({ minLength: 1, maxLength: 65536 }), typebox_1.Type.Null()], {
|
|
255
|
+
description: "[list_links, record only] Omit or pass null for the first bounded page, then pass next_cursor until it is null. Stop automatic pagination on record_failures; the cursor retains failed sources for an explicit retry. Pages may be short or empty while next_cursor exists. Merge repeated links across pages by (relationship_type, direction, entity_type, key), keeping the newest occurred_at. Stored entity_id calls retain limit/offset pagination.",
|
|
256
|
+
})),
|
|
240
257
|
automation_source: typebox_1.Type.Optional(AutomationSource),
|
|
241
258
|
});
|
|
242
|
-
exports.
|
|
243
|
-
action: typebox_1.Type.Literal("
|
|
244
|
-
description: "
|
|
245
|
-
}),
|
|
246
|
-
// Merge target (the survivor) — the loser is passed as `entity_id`.
|
|
247
|
-
winner_entity_id: typebox_1.Type.Number({
|
|
248
|
-
description: "[merge] The surviving entity that absorbs `entity_id` (the duplicate).",
|
|
259
|
+
exports.DiscoverDuplicatesAction = typebox_1.Type.Object({
|
|
260
|
+
action: typebox_1.Type.Literal("discover_duplicates", {
|
|
261
|
+
description: "Read whole duplicate components across all live entities of one type. Current-state sweep: changes behind the cursor are reconsidered next sweep. Writes nothing.",
|
|
249
262
|
}),
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
description: "[
|
|
256
|
-
})),
|
|
257
|
-
merge_evidence: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.Object({
|
|
258
|
-
kind: typebox_1.Type.String({ maxLength: 64 }),
|
|
259
|
-
identifier: typebox_1.Type.String({ maxLength: 512 }),
|
|
260
|
-
identity_ids: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.Number(), { maxItems: 50 })),
|
|
261
|
-
}), {
|
|
262
|
-
maxItems: 25,
|
|
263
|
-
description: "[merge] Optional structured evidence for human-initiated merge provenance. Agent and Automation evidence is always recomputed from the entity type's resolution policy.",
|
|
263
|
+
entity_type: EntityType,
|
|
264
|
+
limit: typebox_1.Type.Optional(typebox_1.Type.Integer({
|
|
265
|
+
minimum: 1,
|
|
266
|
+
maximum: 100,
|
|
267
|
+
default: 50,
|
|
268
|
+
description: "[discover_duplicates] Maximum whole components per page; also bounded to 199 proposed decisions.",
|
|
264
269
|
})),
|
|
265
|
-
|
|
266
|
-
maxLength:
|
|
267
|
-
description: "[
|
|
270
|
+
cursor: typebox_1.Type.Optional(typebox_1.Type.String({
|
|
271
|
+
maxLength: 2048,
|
|
272
|
+
description: "[discover_duplicates] Opaque continuation from the preceding page, scoped to this workspace and entity type.",
|
|
268
273
|
})),
|
|
269
|
-
dry_run: typebox_1.Type.Optional(DryRun),
|
|
270
|
-
automation_source: typebox_1.Type.Optional(AutomationSource),
|
|
271
|
-
});
|
|
272
|
-
exports.ResolveDuplicatesAction = typebox_1.Type.Object({
|
|
273
|
-
action: typebox_1.Type.Literal("resolve_duplicates", {
|
|
274
|
-
description: "Discover duplicate components among candidate_entity_ids using the entity type's x-lobu-resolution policy, then auto-merge deterministic matches or queue review.",
|
|
275
|
-
}),
|
|
276
|
-
candidate_entity_ids: typebox_1.Type.Array(typebox_1.Type.Integer({ minimum: 1 }), {
|
|
277
|
-
minItems: 2,
|
|
278
|
-
maxItems: 5000,
|
|
279
|
-
uniqueItems: true,
|
|
280
|
-
description: "[resolve_duplicates] Candidate entity IDs. The server re-reads their values and applies the entity type's resolution policy.",
|
|
281
|
-
}),
|
|
282
|
-
});
|
|
283
|
-
exports.UnmergeEntityAction = typebox_1.Type.Object({
|
|
284
|
-
action: typebox_1.Type.Literal("unmerge", {
|
|
285
|
-
description: "Reverse a merge from its durable ledger: restore the loser's identities, canonical attributes, and relationships, then un-tombstone it. Fails closed if later edits made exact reversal unsafe.",
|
|
286
|
-
}),
|
|
287
|
-
entity_id: EntityId,
|
|
288
274
|
});
|
|
289
275
|
exports.ManageEntitySchema = typebox_1.Type.Union([
|
|
290
276
|
exports.CreateEntityAction,
|
|
@@ -296,9 +282,7 @@ exports.ManageEntitySchema = typebox_1.Type.Union([
|
|
|
296
282
|
exports.UnlinkEntitiesAction,
|
|
297
283
|
exports.UpdateLinkAction,
|
|
298
284
|
exports.ListLinksAction,
|
|
299
|
-
exports.
|
|
300
|
-
exports.ResolveDuplicatesAction,
|
|
301
|
-
exports.UnmergeEntityAction,
|
|
285
|
+
exports.DiscoverDuplicatesAction,
|
|
302
286
|
]);
|
|
303
287
|
// ============================================
|
|
304
288
|
// Result Types
|
|
@@ -345,6 +329,15 @@ exports.RelationshipCountByTypeSchema = typebox_1.Type.Object({
|
|
|
345
329
|
relationship_type_name: typebox_1.Type.String(),
|
|
346
330
|
count: typebox_1.Type.Integer(),
|
|
347
331
|
});
|
|
332
|
+
/** Server-derived grouping. Persist record IDs; the representative can change. */
|
|
333
|
+
exports.EntityIdentitySchema = typebox_1.Type.Object({
|
|
334
|
+
root_id: typebox_1.Type.Integer({ minimum: 1 }),
|
|
335
|
+
member_ids: typebox_1.Type.Array(typebox_1.Type.Integer({ minimum: 1 }), {
|
|
336
|
+
minItems: 1,
|
|
337
|
+
maxItems: 26,
|
|
338
|
+
uniqueItems: true,
|
|
339
|
+
}),
|
|
340
|
+
});
|
|
348
341
|
/**
|
|
349
342
|
* Shared entity shape across the create/update/get/list variants (the superset
|
|
350
343
|
* of fields; each variant marks its extras optional). `metadata` and the
|
|
@@ -353,6 +346,7 @@ exports.RelationshipCountByTypeSchema = typebox_1.Type.Object({
|
|
|
353
346
|
*/
|
|
354
347
|
exports.ManageEntityItemSchema = typebox_1.Type.Object({
|
|
355
348
|
id: typebox_1.Type.Integer(),
|
|
349
|
+
identity: typebox_1.Type.Optional(exports.EntityIdentitySchema),
|
|
356
350
|
entity_type: typebox_1.Type.String(),
|
|
357
351
|
name: typebox_1.Type.String(),
|
|
358
352
|
slug: typebox_1.Type.String(),
|
|
@@ -467,18 +461,34 @@ exports.ManageEntityResultSchema = typebox_1.Type.Union([
|
|
|
467
461
|
approval_current: typebox_1.Type.Optional(typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Unknown())),
|
|
468
462
|
approval_attribution: typebox_1.Type.Optional(interaction_envelope_1.ApprovalAttributionSchema),
|
|
469
463
|
}),
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
relationship: exports.RelationshipRowSchema,
|
|
473
|
-
}),
|
|
464
|
+
...IdentityDecisionResults("link"),
|
|
465
|
+
typebox_1.Type.Object({ action: typebox_1.Type.Literal("link"), relationship: exports.RelationshipRowSchema }, { additionalProperties: false }),
|
|
474
466
|
typebox_1.Type.Object({
|
|
475
467
|
action: typebox_1.Type.Literal("update_link"),
|
|
476
468
|
relationship: exports.RelationshipRowSchema,
|
|
477
469
|
}),
|
|
470
|
+
...IdentityDecisionResults("unlink"),
|
|
478
471
|
typebox_1.Type.Object({
|
|
479
472
|
action: typebox_1.Type.Literal("unlink"),
|
|
480
|
-
success: typebox_1.Type.
|
|
473
|
+
success: typebox_1.Type.Literal(true),
|
|
481
474
|
message: typebox_1.Type.String(),
|
|
475
|
+
}, { additionalProperties: false }),
|
|
476
|
+
typebox_1.Type.Object({
|
|
477
|
+
action: typebox_1.Type.Literal("list_links"),
|
|
478
|
+
record_links: typebox_1.Type.Array(typebox_1.Type.Object({
|
|
479
|
+
relationship_type: typebox_1.Type.String(),
|
|
480
|
+
direction: typebox_1.Type.Union([
|
|
481
|
+
typebox_1.Type.Literal("outgoing"),
|
|
482
|
+
typebox_1.Type.Literal("incoming"),
|
|
483
|
+
]),
|
|
484
|
+
entity_type: typebox_1.Type.String(),
|
|
485
|
+
key: typebox_1.Type.String(),
|
|
486
|
+
name: typebox_1.Type.String(),
|
|
487
|
+
occurred_at: typebox_1.Type.String(),
|
|
488
|
+
source_url: typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()]),
|
|
489
|
+
})),
|
|
490
|
+
record_failures: typebox_1.Type.Array(typebox_1.Type.Object({ feed_id: typebox_1.Type.Integer(), error: typebox_1.Type.String() })),
|
|
491
|
+
next_cursor: typebox_1.Type.Optional(typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()])),
|
|
482
492
|
}),
|
|
483
493
|
typebox_1.Type.Object({
|
|
484
494
|
action: typebox_1.Type.Literal("list_links"),
|
|
@@ -491,78 +501,24 @@ exports.ManageEntityResultSchema = typebox_1.Type.Union([
|
|
|
491
501
|
has_more: typebox_1.Type.Boolean(),
|
|
492
502
|
}),
|
|
493
503
|
}),
|
|
494
|
-
typebox_1.Type.Union([
|
|
495
|
-
typebox_1.Type.Object({
|
|
496
|
-
action: typebox_1.Type.Literal("merge"),
|
|
497
|
-
success: typebox_1.Type.Boolean(),
|
|
498
|
-
message: typebox_1.Type.String(),
|
|
499
|
-
winner_entity_id: typebox_1.Type.Integer(),
|
|
500
|
-
loser_entity_id: typebox_1.Type.Integer(),
|
|
501
|
-
loser_entity_ids: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.Integer())),
|
|
502
|
-
moved_identities: typebox_1.Type.Integer(),
|
|
503
|
-
repointed_edges: typebox_1.Type.Integer(),
|
|
504
|
-
// Preflight only. A dry run reports the rule verdict and writes nothing,
|
|
505
|
-
// so moved_identities/repointed_edges are 0 and mean "not attempted".
|
|
506
|
-
dry_run: typebox_1.Type.Optional(typebox_1.Type.Boolean()),
|
|
507
|
-
resolution: typebox_1.Type.Optional(typebox_1.Type.Object({
|
|
508
|
-
decision: typebox_1.Type.Union([
|
|
509
|
-
typebox_1.Type.Literal("auto_merge"),
|
|
510
|
-
typebox_1.Type.Literal("human"),
|
|
511
|
-
]),
|
|
512
|
-
reason: typebox_1.Type.String(),
|
|
513
|
-
evidence: typebox_1.Type.Array(typebox_1.Type.Object({ kind: typebox_1.Type.String(), identifier: typebox_1.Type.String() })),
|
|
514
|
-
})),
|
|
515
|
-
}),
|
|
516
|
-
typebox_1.Type.Object({
|
|
517
|
-
action: typebox_1.Type.Literal("merge"),
|
|
518
|
-
approval_queued: typebox_1.Type.Literal(true),
|
|
519
|
-
approval_url: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
520
|
-
approval_run_id: typebox_1.Type.Integer(),
|
|
521
|
-
approval_action: typebox_1.Type.Literal("merge"),
|
|
522
|
-
approval_proposal: typebox_1.Type.Object({
|
|
523
|
-
entity_id: typebox_1.Type.Integer(),
|
|
524
|
-
entity_ids: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.Integer())),
|
|
525
|
-
winner_entity_id: typebox_1.Type.Integer(),
|
|
526
|
-
}),
|
|
527
|
-
approval_attribution: interaction_envelope_1.ApprovalAttributionSchema,
|
|
528
|
-
next_steps: typebox_1.Type.Array(typebox_1.Type.String()),
|
|
529
|
-
resolution: typebox_1.Type.Optional(typebox_1.Type.Object({
|
|
530
|
-
decision: typebox_1.Type.Literal("review"),
|
|
531
|
-
reason: typebox_1.Type.String(),
|
|
532
|
-
evidence: typebox_1.Type.Array(typebox_1.Type.Object({ kind: typebox_1.Type.String(), identifier: typebox_1.Type.String() })),
|
|
533
|
-
})),
|
|
534
|
-
}),
|
|
535
|
-
typebox_1.Type.Object({
|
|
536
|
-
action: typebox_1.Type.Literal("merge"),
|
|
537
|
-
approval_suppressed: typebox_1.Type.Literal(true),
|
|
538
|
-
message: typebox_1.Type.String(),
|
|
539
|
-
resolution: typebox_1.Type.Object({
|
|
540
|
-
decision: typebox_1.Type.Literal("review"),
|
|
541
|
-
reason: typebox_1.Type.String(),
|
|
542
|
-
evidence: typebox_1.Type.Array(typebox_1.Type.Object({ kind: typebox_1.Type.String(), identifier: typebox_1.Type.String() })),
|
|
543
|
-
}),
|
|
544
|
-
}),
|
|
545
|
-
]),
|
|
546
504
|
typebox_1.Type.Object({
|
|
547
|
-
action: typebox_1.Type.Literal("
|
|
505
|
+
action: typebox_1.Type.Literal("discover_duplicates"),
|
|
548
506
|
candidates_scanned: typebox_1.Type.Integer(),
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
/** Identities restored to the loser with their prior provenance markers. */
|
|
565
|
-
restored_identities: typebox_1.Type.Integer(),
|
|
507
|
+
components: typebox_1.Type.Array(typebox_1.Type.Object({
|
|
508
|
+
component_id: typebox_1.Type.Integer(),
|
|
509
|
+
candidate_count: typebox_1.Type.Integer(),
|
|
510
|
+
candidate_entity_ids: typebox_1.Type.Array(typebox_1.Type.Integer(), {
|
|
511
|
+
description: "All component IDs for eligible components; empty for oversized components, which must not be partially submitted.",
|
|
512
|
+
}),
|
|
513
|
+
oversized: typebox_1.Type.Boolean(),
|
|
514
|
+
deferred_candidates: typebox_1.Type.Integer(),
|
|
515
|
+
decisions: typebox_1.Type.Array(typebox_1.Type.Object({
|
|
516
|
+
from_entity_id: typebox_1.Type.Integer(),
|
|
517
|
+
to_entity_id: typebox_1.Type.Integer(),
|
|
518
|
+
relationship_type_slug: typebox_1.Type.String(),
|
|
519
|
+
})),
|
|
520
|
+
})),
|
|
521
|
+
next_cursor: typebox_1.Type.Union([typebox_1.Type.String(), typebox_1.Type.Null()]),
|
|
566
522
|
}),
|
|
567
523
|
]);
|
|
568
524
|
//# sourceMappingURL=manage-entity.js.map
|
|
@@ -22,6 +22,7 @@ export declare const ExecuteAction: import("@sinclair/typebox").TObject<{
|
|
|
22
22
|
operation_key: import("@sinclair/typebox").TString;
|
|
23
23
|
input: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TAny>>;
|
|
24
24
|
idempotency_key: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
25
|
+
background: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
25
26
|
activation: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
26
27
|
kind: import("@sinclair/typebox").TLiteral<"page_visit">;
|
|
27
28
|
urls: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
@@ -32,6 +33,22 @@ export declare const ExecuteAction: import("@sinclair/typebox").TObject<{
|
|
|
32
33
|
run_id: import("@sinclair/typebox").TNumber;
|
|
33
34
|
}>>;
|
|
34
35
|
}>;
|
|
36
|
+
/** Connector implementation calls use the public operation lifecycle, with a
|
|
37
|
+
* parent-scoped idempotency key and no caller-supplied authority or device id. */
|
|
38
|
+
export declare const ConnectorOperationRequestSchema: import("@sinclair/typebox").TObject<{
|
|
39
|
+
connection_id: import("@sinclair/typebox").TInteger;
|
|
40
|
+
idempotency_key: import("@sinclair/typebox").TString;
|
|
41
|
+
input: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TAny>>;
|
|
42
|
+
operation_key: import("@sinclair/typebox").TString;
|
|
43
|
+
background: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
44
|
+
}>;
|
|
45
|
+
export type ConnectorOperationRequest = Static<typeof ConnectorOperationRequestSchema>;
|
|
46
|
+
export declare function isConnectorOperationRequest(value: unknown): value is ConnectorOperationRequest;
|
|
47
|
+
export type ConnectorOperationResult = Extract<ManageOperationsResult, {
|
|
48
|
+
action: "execute";
|
|
49
|
+
} | {
|
|
50
|
+
error: string;
|
|
51
|
+
}>;
|
|
35
52
|
/**
|
|
36
53
|
* Run types excluded from `list_runs` when the caller does not name run types
|
|
37
54
|
* explicitly. Every chat reply AND every non-terminal streaming delta is
|
|
@@ -72,6 +89,10 @@ export declare const GetRunAction: import("@sinclair/typebox").TObject<{
|
|
|
72
89
|
action: import("@sinclair/typebox").TLiteral<"get_run">;
|
|
73
90
|
run_id: import("@sinclair/typebox").TNumber;
|
|
74
91
|
}>;
|
|
92
|
+
export declare const CancelAction: import("@sinclair/typebox").TObject<{
|
|
93
|
+
action: import("@sinclair/typebox").TLiteral<"cancel">;
|
|
94
|
+
run_id: import("@sinclair/typebox").TInteger;
|
|
95
|
+
}>;
|
|
75
96
|
/**
|
|
76
97
|
* Unified workspace attention feed for Home UI + agent context.
|
|
77
98
|
* Member-readable (same tier as list_runs). Optionally collapses adjacent
|
|
@@ -89,7 +110,7 @@ export declare const ListActivityAction: import("@sinclair/typebox").TObject<{
|
|
|
89
110
|
* Failures never merge with successes. Default true.
|
|
90
111
|
*/
|
|
91
112
|
aggregate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
92
|
-
/** Restrict
|
|
113
|
+
/** Restrict kinds: automation_due | automation | sync | action | notification (default all). */
|
|
93
114
|
kinds: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
94
115
|
/**
|
|
95
116
|
* Scope the feed to a single agent: only that agent's Automation runs are
|
|
@@ -258,7 +279,7 @@ export declare const ManageOperationsResultSchema: import("@sinclair/typebox").T
|
|
|
258
279
|
browser_url: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
259
280
|
browser_handoff: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
260
281
|
run_id: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TInteger, import("@sinclair/typebox").TNull]>;
|
|
261
|
-
state: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"ready">, import("@sinclair/typebox").TLiteral<"expired">, import("@sinclair/typebox").TLiteral<"completed">]>;
|
|
282
|
+
state: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"ready">, import("@sinclair/typebox").TLiteral<"preparing">, import("@sinclair/typebox").TLiteral<"expired">, import("@sinclair/typebox").TLiteral<"completed">]>;
|
|
262
283
|
expires_at: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
263
284
|
error_message: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TString, import("@sinclair/typebox").TNull]>;
|
|
264
285
|
}>>;
|
|
@@ -287,6 +308,13 @@ export declare const ManageOperationsResultSchema: import("@sinclair/typebox").T
|
|
|
287
308
|
feed_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
288
309
|
automation_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
289
310
|
automation_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
311
|
+
next_action: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
312
|
+
method: import("@sinclair/typebox").TLiteral<"automations.claimNextWindow">;
|
|
313
|
+
input: import("@sinclair/typebox").TObject<{
|
|
314
|
+
automation_id: import("@sinclair/typebox").TString;
|
|
315
|
+
run_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
316
|
+
}>;
|
|
317
|
+
}>>;
|
|
290
318
|
agent_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
291
319
|
agent_name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
292
320
|
client_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -303,6 +331,11 @@ export declare const ManageOperationsResultSchema: import("@sinclair/typebox").T
|
|
|
303
331
|
run_id: import("@sinclair/typebox").TInteger;
|
|
304
332
|
event_id: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
305
333
|
message: import("@sinclair/typebox").TString;
|
|
334
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
335
|
+
action: import("@sinclair/typebox").TLiteral<"cancel">;
|
|
336
|
+
run_id: import("@sinclair/typebox").TInteger;
|
|
337
|
+
status: import("@sinclair/typebox").TString;
|
|
338
|
+
cancelled: import("@sinclair/typebox").TBoolean;
|
|
306
339
|
}>, import("@sinclair/typebox").TObject<{
|
|
307
340
|
action: import("@sinclair/typebox").TLiteral<"reject">;
|
|
308
341
|
rejected: import("@sinclair/typebox").TLiteral<true>;
|
|
@@ -344,6 +377,7 @@ export declare const ManageOperationsSchema: import("@sinclair/typebox").TUnion<
|
|
|
344
377
|
operation_key: import("@sinclair/typebox").TString;
|
|
345
378
|
input: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TAny>>;
|
|
346
379
|
idempotency_key: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
380
|
+
background: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
347
381
|
activation: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
|
|
348
382
|
kind: import("@sinclair/typebox").TLiteral<"page_visit">;
|
|
349
383
|
urls: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
@@ -382,6 +416,9 @@ export declare const ManageOperationsSchema: import("@sinclair/typebox").TUnion<
|
|
|
382
416
|
}>, import("@sinclair/typebox").TObject<{
|
|
383
417
|
action: import("@sinclair/typebox").TLiteral<"get_run">;
|
|
384
418
|
run_id: import("@sinclair/typebox").TNumber;
|
|
419
|
+
}>, import("@sinclair/typebox").TObject<{
|
|
420
|
+
action: import("@sinclair/typebox").TLiteral<"cancel">;
|
|
421
|
+
run_id: import("@sinclair/typebox").TInteger;
|
|
385
422
|
}>, import("@sinclair/typebox").TObject<{
|
|
386
423
|
action: import("@sinclair/typebox").TLiteral<"list_activity">;
|
|
387
424
|
limit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TInteger>;
|
|
@@ -394,7 +431,7 @@ export declare const ManageOperationsSchema: import("@sinclair/typebox").TUnion<
|
|
|
394
431
|
* Failures never merge with successes. Default true.
|
|
395
432
|
*/
|
|
396
433
|
aggregate: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
397
|
-
/** Restrict
|
|
434
|
+
/** Restrict kinds: automation_due | automation | sync | action | notification (default all). */
|
|
398
435
|
kinds: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>;
|
|
399
436
|
/**
|
|
400
437
|
* Scope the feed to a single agent: only that agent's Automation runs are
|
|
@@ -437,6 +474,7 @@ export declare const ManageOperationsSchema: import("@sinclair/typebox").TUnion<
|
|
|
437
474
|
export type ManageOperationsArgs = Static<typeof ManageOperationsSchema>;
|
|
438
475
|
export type OperationListAvailableInput = ActionInput<ManageOperationsArgs, "list_available">;
|
|
439
476
|
export type OperationExecuteInput = ActionInput<ManageOperationsArgs, "execute">;
|
|
477
|
+
export type OperationListActivityInput = ActionInput<ManageOperationsArgs, "list_activity">;
|
|
440
478
|
export type OperationListRunsInput = ActionInput<ManageOperationsArgs, "list_runs">;
|
|
441
479
|
export type OperationApproveInput = ActionInput<ManageOperationsArgs, "approve">;
|
|
442
480
|
export type OperationRejectInput = ActionInput<ManageOperationsArgs, "reject">;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ManageOperationsSchema = exports.ManageOperationsResultSchema = exports.NotificationDeliverySchema = exports.RejectBatchAction = exports.ApproveBatchAction = exports.ApprovalBatchScope = exports.RejectAction = exports.ApproveAction = exports.ListActivityAction = exports.GetRunAction = exports.ListRunsAction = exports.LIST_RUNS_DEFAULT_EXCLUDED_RUN_TYPES = exports.ExecuteAction = exports.ListAvailableAction = exports.KindLiteral = exports.BackendLiteral = void 0;
|
|
3
|
+
exports.ManageOperationsSchema = exports.ManageOperationsResultSchema = exports.NotificationDeliverySchema = exports.RejectBatchAction = exports.ApproveBatchAction = exports.ApprovalBatchScope = exports.RejectAction = exports.ApproveAction = exports.ListActivityAction = exports.CancelAction = exports.GetRunAction = exports.ListRunsAction = exports.LIST_RUNS_DEFAULT_EXCLUDED_RUN_TYPES = exports.ConnectorOperationRequestSchema = exports.ExecuteAction = exports.ListAvailableAction = exports.KindLiteral = exports.BackendLiteral = void 0;
|
|
4
|
+
exports.isConnectorOperationRequest = isConnectorOperationRequest;
|
|
4
5
|
const typebox_1 = require("@sinclair/typebox");
|
|
6
|
+
const value_1 = require("@sinclair/typebox/value");
|
|
5
7
|
const pagination_1 = require("./pagination");
|
|
6
8
|
// manage_operations is flattened to one MCP object, so duplicate properties
|
|
7
9
|
// must tell the truth for both actions instead of publishing one false default.
|
|
@@ -61,6 +63,10 @@ exports.ExecuteAction = typebox_1.Type.Object({
|
|
|
61
63
|
maxLength: 256,
|
|
62
64
|
description: "Durable caller key. Replays return the original operation run; reusing the key for a different operation or input is rejected.",
|
|
63
65
|
})),
|
|
66
|
+
background: typebox_1.Type.Optional(typebox_1.Type.Boolean({
|
|
67
|
+
default: false,
|
|
68
|
+
description: "Device operations only: return the durable run_id immediately. The run survives the caller disconnecting; use get_run for results and cancel to stop it. Approval and queue expiry still apply.",
|
|
69
|
+
})),
|
|
64
70
|
activation: typebox_1.Type.Optional(typebox_1.Type.Object({
|
|
65
71
|
kind: typebox_1.Type.Literal("page_visit"),
|
|
66
72
|
urls: typebox_1.Type.Array(typebox_1.Type.String({ format: "uri" }), {
|
|
@@ -75,6 +81,17 @@ exports.ExecuteAction = typebox_1.Type.Object({
|
|
|
75
81
|
run_id: typebox_1.Type.Number(),
|
|
76
82
|
})),
|
|
77
83
|
});
|
|
84
|
+
/** Connector implementation calls use the public operation lifecycle, with a
|
|
85
|
+
* parent-scoped idempotency key and no caller-supplied authority or device id. */
|
|
86
|
+
exports.ConnectorOperationRequestSchema = typebox_1.Type.Object({
|
|
87
|
+
...typebox_1.Type.Pick(exports.ExecuteAction, ["operation_key", "input", "background"])
|
|
88
|
+
.properties,
|
|
89
|
+
connection_id: typebox_1.Type.Integer({ minimum: 1 }),
|
|
90
|
+
idempotency_key: typebox_1.Type.String({ minLength: 1, maxLength: 128 }),
|
|
91
|
+
}, { additionalProperties: false });
|
|
92
|
+
function isConnectorOperationRequest(value) {
|
|
93
|
+
return value_1.Value.Check(exports.ConnectorOperationRequestSchema, value);
|
|
94
|
+
}
|
|
78
95
|
/**
|
|
79
96
|
* Run types excluded from `list_runs` when the caller does not name run types
|
|
80
97
|
* explicitly. Every chat reply AND every non-terminal streaming delta is
|
|
@@ -127,6 +144,12 @@ exports.GetRunAction = typebox_1.Type.Object({
|
|
|
127
144
|
}),
|
|
128
145
|
run_id: typebox_1.Type.Number(),
|
|
129
146
|
});
|
|
147
|
+
exports.CancelAction = typebox_1.Type.Object({
|
|
148
|
+
action: typebox_1.Type.Literal("cancel", {
|
|
149
|
+
description: "Cancel a connector operation owned by the requester, or as a workspace administrator. Prevents further claims/results and asks the worker to stop on its next heartbeat; already performed effects are not undone.",
|
|
150
|
+
}),
|
|
151
|
+
run_id: typebox_1.Type.Integer({ minimum: 1 }),
|
|
152
|
+
});
|
|
130
153
|
/**
|
|
131
154
|
* Unified workspace attention feed for Home UI + agent context.
|
|
132
155
|
* Member-readable (same tier as list_runs). Optionally collapses adjacent
|
|
@@ -151,7 +174,7 @@ exports.ListActivityAction = typebox_1.Type.Object({
|
|
|
151
174
|
* Failures never merge with successes. Default true.
|
|
152
175
|
*/
|
|
153
176
|
aggregate: typebox_1.Type.Optional(typebox_1.Type.Boolean({ default: true })),
|
|
154
|
-
/** Restrict
|
|
177
|
+
/** Restrict kinds: automation_due | automation | sync | action | notification (default all). */
|
|
155
178
|
kinds: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.String())),
|
|
156
179
|
/**
|
|
157
180
|
* Scope the feed to a single agent: only that agent's Automation runs are
|
|
@@ -355,6 +378,7 @@ exports.ManageOperationsResultSchema = typebox_1.Type.Union([
|
|
|
355
378
|
run_id: typebox_1.Type.Union([typebox_1.Type.Integer(), typebox_1.Type.Null()]),
|
|
356
379
|
state: typebox_1.Type.Union([
|
|
357
380
|
typebox_1.Type.Literal("ready"),
|
|
381
|
+
typebox_1.Type.Literal("preparing"),
|
|
358
382
|
typebox_1.Type.Literal("expired"),
|
|
359
383
|
typebox_1.Type.Literal("completed"),
|
|
360
384
|
]),
|
|
@@ -386,6 +410,13 @@ exports.ManageOperationsResultSchema = typebox_1.Type.Union([
|
|
|
386
410
|
feed_name: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
387
411
|
automation_id: typebox_1.Type.Optional(typebox_1.Type.Integer()),
|
|
388
412
|
automation_name: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
413
|
+
next_action: typebox_1.Type.Optional(typebox_1.Type.Object({
|
|
414
|
+
method: typebox_1.Type.Literal("automations.claimNextWindow"),
|
|
415
|
+
input: typebox_1.Type.Object({
|
|
416
|
+
automation_id: typebox_1.Type.String(),
|
|
417
|
+
run_id: typebox_1.Type.Optional(typebox_1.Type.Integer()),
|
|
418
|
+
}),
|
|
419
|
+
})),
|
|
389
420
|
agent_id: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
390
421
|
agent_name: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
391
422
|
client_id: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
@@ -404,6 +435,12 @@ exports.ManageOperationsResultSchema = typebox_1.Type.Union([
|
|
|
404
435
|
event_id: typebox_1.Type.Optional(typebox_1.Type.Integer()),
|
|
405
436
|
message: typebox_1.Type.String(),
|
|
406
437
|
}),
|
|
438
|
+
typebox_1.Type.Object({
|
|
439
|
+
action: typebox_1.Type.Literal("cancel"),
|
|
440
|
+
run_id: typebox_1.Type.Integer(),
|
|
441
|
+
status: typebox_1.Type.String(),
|
|
442
|
+
cancelled: typebox_1.Type.Boolean(),
|
|
443
|
+
}),
|
|
407
444
|
typebox_1.Type.Object({
|
|
408
445
|
action: typebox_1.Type.Literal("reject"),
|
|
409
446
|
rejected: typebox_1.Type.Literal(true),
|
|
@@ -433,6 +470,7 @@ exports.ManageOperationsSchema = typebox_1.Type.Union([
|
|
|
433
470
|
exports.ExecuteAction,
|
|
434
471
|
exports.ListRunsAction,
|
|
435
472
|
exports.GetRunAction,
|
|
473
|
+
exports.CancelAction,
|
|
436
474
|
exports.ListActivityAction,
|
|
437
475
|
exports.ApproveAction,
|
|
438
476
|
exports.RejectAction,
|