@sentry/junior 0.198.0 → 0.200.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/{agent-hooks-3E7O7ATZ.js → agent-hooks-6LGY2MBH.js} +11 -11
- package/dist/api/schema.d.ts +3157 -22
- package/dist/api/schema.js +1 -1
- package/dist/api.d.ts +27 -8
- package/dist/api.js +26 -25
- package/dist/app.d.ts +456 -16
- package/dist/app.js +3913 -3701
- package/dist/{catalog-runtime-QDUBRXEW.js → catalog-runtime-CIO3ERVQ.js} +4 -4
- package/dist/{chunk-X2WFY3TM.js → chunk-22Y5SBDM.js} +8 -8
- package/dist/{chunk-KVXHBJCH.js → chunk-3WUBDFFL.js} +1 -1
- package/dist/{chunk-N6LJYW7V.js → chunk-4Q5IR5GA.js} +1 -1
- package/dist/{chunk-342FVAX5.js → chunk-5JDNDQHL.js} +1 -1
- package/dist/{chunk-7KXZRRMK.js → chunk-5Q6KP6LH.js} +1 -1
- package/dist/{chunk-3J5Y4RWY.js → chunk-5VRPXF4T.js} +1 -1
- package/dist/{chunk-N3GQY63R.js → chunk-752M26LC.js} +1 -1
- package/dist/{chunk-3TMKXW4H.js → chunk-7DO36XLF.js} +1 -1
- package/dist/{chunk-ZORFTPFN.js → chunk-ADNSL3MX.js} +28 -28
- package/dist/{chunk-EWPTEQXA.js → chunk-AV552V2K.js} +3 -3
- package/dist/{chunk-IZ4CIFJY.js → chunk-EOOWKTQC.js} +9 -9
- package/dist/{chunk-EATO3SKS.js → chunk-GFXDMDHR.js} +3 -3
- package/dist/{chunk-QYSJWJLJ.js → chunk-IAZBUDVU.js} +4 -4
- package/dist/{chunk-U67DBSNZ.js → chunk-JLUCKXGI.js} +7 -6
- package/dist/{chunk-SPEJV3TW.js → chunk-JMRHEW6B.js} +3 -3
- package/dist/{chunk-2ACXVY6O.js → chunk-K2QYWZ7F.js} +1 -1
- package/dist/{chunk-CSGQWJIY.js → chunk-LICM66W2.js} +2 -2
- package/dist/{chunk-CGNZXN7B.js → chunk-LUITHZZL.js} +8 -8
- package/dist/{chunk-VYGZPJSM.js → chunk-M7BHRB3G.js} +4 -4
- package/dist/{chunk-LBN67OZR.js → chunk-MTM5IFCY.js} +1 -0
- package/dist/{chunk-4UW7BEJZ.js → chunk-N5VHBUXF.js} +7 -7
- package/dist/{chunk-F3XUS2T5.js → chunk-ODSGDVHT.js} +5 -5
- package/dist/{chunk-ZUEUBQWE.js → chunk-OIILBD56.js} +3 -3
- package/dist/{chunk-XNZAZ57D.js → chunk-OTTKTTVI.js} +2 -2
- package/dist/{chunk-BFIFTKUS.js → chunk-OVHO76WN.js} +3 -3
- package/dist/{chunk-CZC6ZEXR.js → chunk-PIHLVU7T.js} +6 -6
- package/dist/{chunk-T5KV6DUY.js → chunk-PMSENMWY.js} +1 -1
- package/dist/{chunk-G6XSYS3Q.js → chunk-PSQ4SWI3.js} +4 -4
- package/dist/{chunk-FU4OWKCL.js → chunk-RDWWCDA4.js} +2 -2
- package/dist/{chunk-NVDUM2CM.js → chunk-RG74Q34N.js} +1 -1
- package/dist/{chunk-4FHQ6CCO.js → chunk-SY2RQ77O.js} +1 -1
- package/dist/{chunk-D3SLBCD4.js → chunk-T6263C3N.js} +2 -2
- package/dist/{chunk-CBHQOGFA.js → chunk-TF5TXGRD.js} +1 -1
- package/dist/{chunk-A6KKPVEA.js → chunk-UR43NMUR.js} +4 -4
- package/dist/{chunk-C3SNQB6B.js → chunk-V2VL335Y.js} +21 -21
- package/dist/{chunk-OKQMTCHU.js → chunk-VLBLCJXK.js} +5 -5
- package/dist/{chunk-SCVIT6K4.js → chunk-X2Q4H6JQ.js} +25 -24
- package/dist/{chunk-LXPGGSYD.js → chunk-YVP6QNBZ.js} +3 -3
- package/dist/{chunk-G2CT2D5U.js → chunk-ZPLAAHVP.js} +5 -5
- package/dist/cli/chat.js +33 -33
- package/dist/cli/check.js +5 -5
- package/dist/cli/plugins.js +12 -12
- package/dist/cli/snapshot-create.js +9 -9
- package/dist/cli/upgrade.js +6 -6
- package/dist/{db-OSPYS4WA.js → db-SCTYCGQ5.js} +6 -6
- package/dist/instrumentation.d.ts +3 -1
- package/dist/instrumentation.js +3 -3
- package/dist/nitro.d.ts +14 -7
- package/dist/nitro.js +6 -6
- package/dist/{oauth-callback-server-VG736DHZ.js → oauth-callback-server-QXKBXP5M.js} +29 -29
- package/dist/{runner-3GKIVG6A.js → runner-Z3EQSZ23.js} +21 -21
- package/dist/{skills-FKMV7HTX.js → skills-CGEPG74A.js} +5 -5
- package/dist/spawn-WBEM46BW.js +42 -0
- package/dist/task-runner-2X5MUSHN.js +36 -0
- package/dist/{validation-4XYG33GY.js → validation-YLALMVMB.js} +5 -5
- package/dist/vercel.d.ts +4 -2
- package/dist/version.d.ts +3 -1
- package/dist/version.js +1 -1
- package/dist/{work-TJAL6PV3.js → work-N6PUG4MY.js} +21 -21
- package/dist/{worker-3OYUEME2.js → worker-M7464FAO.js} +10 -10
- package/package.json +6 -6
- package/dist/api/acp/auth.d.ts +0 -46
- package/dist/api/acp/authorization-page.d.ts +0 -11
- package/dist/api/acp/conversations.d.ts +0 -70
- package/dist/api/acp/errors.d.ts +0 -6
- package/dist/api/acp/route.d.ts +0 -16
- package/dist/api/acp/schema.d.ts +0 -115
- package/dist/api/acp/sleep.d.ts +0 -2
- package/dist/api/acp/state.d.ts +0 -22
- package/dist/api/acp/transport.d.ts +0 -113
- package/dist/api/activity.d.ts +0 -24
- package/dist/api/code/overview.d.ts +0 -98
- package/dist/api/code/routes.d.ts +0 -4
- package/dist/api/conversations/access.d.ts +0 -10
- package/dist/api/conversations/aggregate.d.ts +0 -31
- package/dist/api/conversations/archive.d.ts +0 -6
- package/dist/api/conversations/attachments.d.ts +0 -32
- package/dist/api/conversations/auxiliary-costs.d.ts +0 -6
- package/dist/api/conversations/cancel-pending-messages.d.ts +0 -4
- package/dist/api/conversations/create.d.ts +0 -6
- package/dist/api/conversations/cursor.d.ts +0 -17
- package/dist/api/conversations/detail.d.ts +0 -7
- package/dist/api/conversations/event-list.d.ts +0 -7
- package/dist/api/conversations/event-page.d.ts +0 -18
- package/dist/api/conversations/events.d.ts +0 -18
- package/dist/api/conversations/list.d.ts +0 -145
- package/dist/api/conversations/membership.d.ts +0 -30
- package/dist/api/conversations/pending-messages.d.ts +0 -15
- package/dist/api/conversations/priority.d.ts +0 -22
- package/dist/api/conversations/projection.d.ts +0 -21
- package/dist/api/conversations/reporting.d.ts +0 -48
- package/dist/api/conversations/routes.d.ts +0 -7
- package/dist/api/conversations/shared.d.ts +0 -5
- package/dist/api/conversations/stats.d.ts +0 -3
- package/dist/api/conversations/stats.query.d.ts +0 -3
- package/dist/api/conversations/usage.d.ts +0 -9
- package/dist/api/conversations/user-message-activity.d.ts +0 -3
- package/dist/api/http.d.ts +0 -8
- package/dist/api/locations/detail.d.ts +0 -134
- package/dist/api/locations/list.d.ts +0 -47
- package/dist/api/locations/query.d.ts +0 -8
- package/dist/api/locations/routes.d.ts +0 -4
- package/dist/api/people/code.d.ts +0 -34
- package/dist/api/people/list.d.ts +0 -3
- package/dist/api/people/list.query.d.ts +0 -3
- package/dist/api/people/plugin-reports.d.ts +0 -7
- package/dist/api/people/profile.d.ts +0 -6
- package/dist/api/people/profile.query.d.ts +0 -6
- package/dist/api/people/routes.d.ts +0 -4
- package/dist/api/people/shared.d.ts +0 -1375
- package/dist/api/people/spend.d.ts +0 -3
- package/dist/api/people/spend.query.d.ts +0 -3
- package/dist/api/personal-tokens/routes.d.ts +0 -4
- package/dist/api/reporting-window.d.ts +0 -78
- package/dist/api/route.d.ts +0 -15
- package/dist/api/schema/code.d.ts +0 -147
- package/dist/api/schema/common.d.ts +0 -6
- package/dist/api/schema/conversation.d.ts +0 -1604
- package/dist/api/schema/location.d.ts +0 -270
- package/dist/api/schema/person.d.ts +0 -362
- package/dist/api/schema/personal-token.d.ts +0 -38
- package/dist/api/schema/stats.d.ts +0 -22
- package/dist/api/schema/task.d.ts +0 -423
- package/dist/api/schema/workspace.d.ts +0 -69
- package/dist/api/stats.d.ts +0 -3
- package/dist/api/tasks/routes.d.ts +0 -4
- package/dist/api/user-pages/routes.d.ts +0 -4
- package/dist/api/validation.d.ts +0 -7
- package/dist/api/viewer.d.ts +0 -3
- package/dist/api/workspaces/routes.d.ts +0 -4
- package/dist/build/copy-build-content.d.ts +0 -6
- package/dist/build/glob-to-regex.d.ts +0 -2
- package/dist/build/rolldown-workarounds.d.ts +0 -14
- package/dist/build/virtual-config.d.ts +0 -25
- package/dist/chat/actor.d.ts +0 -83
- package/dist/chat/agent/action-confirmation-retry.d.ts +0 -6
- package/dist/chat/agent/handoff.d.ts +0 -73
- package/dist/chat/agent/index.d.ts +0 -22
- package/dist/chat/agent/prompt.d.ts +0 -86
- package/dist/chat/agent/repository-context.d.ts +0 -21
- package/dist/chat/agent/resume.d.ts +0 -60
- package/dist/chat/agent/retry-usage.d.ts +0 -8
- package/dist/chat/agent/sandbox.d.ts +0 -55
- package/dist/chat/agent/skills.d.ts +0 -17
- package/dist/chat/agent/tools.d.ts +0 -91
- package/dist/chat/agent/types.d.ts +0 -224
- package/dist/chat/agent-dispatch/context.d.ts +0 -43
- package/dist/chat/agent-dispatch/heartbeat.d.ts +0 -27
- package/dist/chat/agent-dispatch/store.d.ts +0 -42
- package/dist/chat/agent-dispatch/types.d.ts +0 -60
- package/dist/chat/agent-dispatch/validation.d.ts +0 -5
- package/dist/chat/agent-dispatch/work.d.ts +0 -49
- package/dist/chat/agent-invocations/errors.d.ts +0 -8
- package/dist/chat/agent-invocations/spawn.d.ts +0 -12
- package/dist/chat/agent-invocations/store.d.ts +0 -46
- package/dist/chat/agent-invocations/types.d.ts +0 -505
- package/dist/chat/agent-invocations/work.d.ts +0 -29
- package/dist/chat/app/conversation-work.d.ts +0 -37
- package/dist/chat/app/factory.d.ts +0 -23
- package/dist/chat/app/production.d.ts +0 -24
- package/dist/chat/app/services.d.ts +0 -25
- package/dist/chat/artifacts/store.d.ts +0 -42
- package/dist/chat/attachments/storage.d.ts +0 -14
- package/dist/chat/attachments/store.d.ts +0 -68
- package/dist/chat/attachments/vercel.d.ts +0 -3
- package/dist/chat/capabilities/factory.d.ts +0 -11
- package/dist/chat/capabilities/jr-rpc-command.d.ts +0 -26
- package/dist/chat/capabilities/router.d.ts +0 -20
- package/dist/chat/code/publisher.d.ts +0 -3
- package/dist/chat/code/store.d.ts +0 -9
- package/dist/chat/coerce.d.ts +0 -6
- package/dist/chat/config.d.ts +0 -100
- package/dist/chat/configuration/defaults.d.ts +0 -4
- package/dist/chat/configuration/service.d.ts +0 -5
- package/dist/chat/configuration/sql.d.ts +0 -9
- package/dist/chat/configuration/types.d.ts +0 -41
- package/dist/chat/configuration/validation.d.ts +0 -2
- package/dist/chat/conversation-privacy.d.ts +0 -39
- package/dist/chat/conversations/destination-visibility.d.ts +0 -7
- package/dist/chat/conversations/destination.d.ts +0 -12
- package/dist/chat/conversations/history.d.ts +0 -1157
- package/dist/chat/conversations/location.d.ts +0 -5
- package/dist/chat/conversations/message-projection.d.ts +0 -4
- package/dist/chat/conversations/message-search.d.ts +0 -38
- package/dist/chat/conversations/message-summaries.d.ts +0 -9
- package/dist/chat/conversations/messages.d.ts +0 -32
- package/dist/chat/conversations/projection.d.ts +0 -199
- package/dist/chat/conversations/provenance.d.ts +0 -50
- package/dist/chat/conversations/retention.d.ts +0 -40
- package/dist/chat/conversations/sql/actor-identity.d.ts +0 -19
- package/dist/chat/conversations/sql/bindings.d.ts +0 -13
- package/dist/chat/conversations/sql/conversation-row.d.ts +0 -17
- package/dist/chat/conversations/sql/event-actor.d.ts +0 -14
- package/dist/chat/conversations/sql/event-lock.d.ts +0 -3
- package/dist/chat/conversations/sql/history.d.ts +0 -4
- package/dist/chat/conversations/sql/location.d.ts +0 -18
- package/dist/chat/conversations/sql/message-search.d.ts +0 -4
- package/dist/chat/conversations/sql/participants.d.ts +0 -18
- package/dist/chat/conversations/sql/privacy.d.ts +0 -15
- package/dist/chat/conversations/sql/purge.d.ts +0 -45
- package/dist/chat/conversations/sql/store.d.ts +0 -77
- package/dist/chat/conversations/stop.d.ts +0 -12
- package/dist/chat/conversations/store.d.ts +0 -151
- package/dist/chat/conversations/structured-events.d.ts +0 -42
- package/dist/chat/conversations/tool-source.d.ts +0 -5
- package/dist/chat/conversations/turn-lifecycle.d.ts +0 -44
- package/dist/chat/conversations/web-authorization.d.ts +0 -24
- package/dist/chat/conversations/web-input.d.ts +0 -98
- package/dist/chat/conversations/web-mailbox.d.ts +0 -12
- package/dist/chat/credentials/broker.d.ts +0 -23
- package/dist/chat/credentials/context.d.ts +0 -121
- package/dist/chat/credentials/header-transforms.d.ts +0 -3
- package/dist/chat/credentials/oauth-scope.d.ts +0 -4
- package/dist/chat/credentials/state-adapter-token-store.d.ts +0 -11
- package/dist/chat/credentials/subject.d.ts +0 -49
- package/dist/chat/credentials/unlink-provider.d.ts +0 -3
- package/dist/chat/credentials/user-token-store.d.ts +0 -24
- package/dist/chat/current-instruction.d.ts +0 -8
- package/dist/chat/db.d.ts +0 -16
- package/dist/chat/destination.d.ts +0 -14
- package/dist/chat/discovery.d.ts +0 -49
- package/dist/chat/egress/credentialed.d.ts +0 -57
- package/dist/chat/egress/plugin.d.ts +0 -24
- package/dist/chat/event-tasks/ingest.d.ts +0 -9
- package/dist/chat/event-tasks/store.d.ts +0 -41
- package/dist/chat/event-tasks/tool-support.d.ts +0 -158
- package/dist/chat/event-tasks/types.d.ts +0 -51
- package/dist/chat/experimental.d.ts +0 -16
- package/dist/chat/identities/identity.d.ts +0 -18
- package/dist/chat/identities/sql.d.ts +0 -12
- package/dist/chat/ingress/bot-mention.d.ts +0 -13
- package/dist/chat/ingress/junior-chat.d.ts +0 -26
- package/dist/chat/ingress/message-changed.d.ts +0 -52
- package/dist/chat/ingress/message-router.d.ts +0 -12
- package/dist/chat/ingress/slack-webhook.d.ts +0 -21
- package/dist/chat/ingress/slash-command.d.ts +0 -3
- package/dist/chat/ingress/workspace-membership.d.ts +0 -9
- package/dist/chat/interruption-marker.d.ts +0 -2
- package/dist/chat/local/credential-sync.d.ts +0 -5
- package/dist/chat/local/oauth-relay.d.ts +0 -4
- package/dist/chat/log-context.d.ts +0 -40
- package/dist/chat/logging.d.ts +0 -122
- package/dist/chat/mcp/auth-store.d.ts +0 -43
- package/dist/chat/mcp/client.d.ts +0 -40
- package/dist/chat/mcp/errors.d.ts +0 -32
- package/dist/chat/mcp/oauth-provider.d.ts +0 -30
- package/dist/chat/mcp/oauth.d.ts +0 -21
- package/dist/chat/mcp/tool-manager.d.ts +0 -95
- package/dist/chat/mcp/tool-name.d.ts +0 -2
- package/dist/chat/model-profile.d.ts +0 -34
- package/dist/chat/no-reply.d.ts +0 -6
- package/dist/chat/oauth-authorization.d.ts +0 -17
- package/dist/chat/oauth-flow.d.ts +0 -60
- package/dist/chat/oauth-response.d.ts +0 -21
- package/dist/chat/optional-string.d.ts +0 -5
- package/dist/chat/pi/client.d.ts +0 -62
- package/dist/chat/pi/conversation-events.d.ts +0 -38
- package/dist/chat/pi/gateway-auth.d.ts +0 -16
- package/dist/chat/pi/messages.d.ts +0 -19
- package/dist/chat/pi/sdk.d.ts +0 -7
- package/dist/chat/pi/sql-model-usage.d.ts +0 -13
- package/dist/chat/pi/traced-stream.d.ts +0 -13
- package/dist/chat/pi/transcript.d.ts +0 -52
- package/dist/chat/plugins/agent-hooks.d.ts +0 -89
- package/dist/chat/plugins/annotations.d.ts +0 -11
- package/dist/chat/plugins/auth/api-headers-broker.d.ts +0 -6
- package/dist/chat/plugins/auth/auth-token-placeholder.d.ts +0 -3
- package/dist/chat/plugins/auth/oauth-bearer-broker.d.ts +0 -6
- package/dist/chat/plugins/auth/oauth-request.d.ts +0 -26
- package/dist/chat/plugins/catalog-runtime.d.ts +0 -1
- package/dist/chat/plugins/command-env.d.ts +0 -3
- package/dist/chat/plugins/conversation-event-stats.d.ts +0 -3
- package/dist/chat/plugins/conversation-events.d.ts +0 -15
- package/dist/chat/plugins/conversation-sidebar.d.ts +0 -3
- package/dist/chat/plugins/credential-hooks.d.ts +0 -51
- package/dist/chat/plugins/inline-manifest-source.d.ts +0 -5
- package/dist/chat/plugins/logging.d.ts +0 -3
- package/dist/chat/plugins/manifest.d.ts +0 -5
- package/dist/chat/plugins/model.d.ts +0 -9
- package/dist/chat/plugins/package-discovery.d.ts +0 -20
- package/dist/chat/plugins/prompt.d.ts +0 -14
- package/dist/chat/plugins/registry.d.ts +0 -27
- package/dist/chat/plugins/state.d.ts +0 -4
- package/dist/chat/plugins/task-queue.d.ts +0 -42
- package/dist/chat/plugins/task-runner.d.ts +0 -12
- package/dist/chat/plugins/types.d.ts +0 -126
- package/dist/chat/plugins/unfinished-work.d.ts +0 -13
- package/dist/chat/plugins/user-pages.d.ts +0 -16
- package/dist/chat/plugins/validation.d.ts +0 -5
- package/dist/chat/plugins/viewer.d.ts +0 -24
- package/dist/chat/prompt.d.ts +0 -44
- package/dist/chat/providers/slack/input.d.ts +0 -32
- package/dist/chat/providers/slack/processing-reaction.d.ts +0 -21
- package/dist/chat/providers/slack/resume.d.ts +0 -73
- package/dist/chat/providers/slack/runtime.d.ts +0 -114
- package/dist/chat/providers/slack/system-turn.d.ts +0 -13
- package/dist/chat/providers/slack/turn.d.ts +0 -59
- package/dist/chat/queue/callback.d.ts +0 -26
- package/dist/chat/queue/sign.d.ts +0 -30
- package/dist/chat/reasoning-level.d.ts +0 -4
- package/dist/chat/repository-instructions.d.ts +0 -55
- package/dist/chat/resource-events/actor.d.ts +0 -36
- package/dist/chat/resource-events/app-publisher.d.ts +0 -18
- package/dist/chat/resource-events/catalog.d.ts +0 -52
- package/dist/chat/resource-events/ingest.d.ts +0 -10
- package/dist/chat/resource-events/notification.d.ts +0 -54
- package/dist/chat/resource-events/runtime-catalog.d.ts +0 -8
- package/dist/chat/resource-events/store.d.ts +0 -92
- package/dist/chat/resource-events/tool-support.d.ts +0 -9
- package/dist/chat/resource-events/workspace.d.ts +0 -8
- package/dist/chat/runtime/agent-run-outcome.d.ts +0 -29
- package/dist/chat/runtime/agent-runner.d.ts +0 -18
- package/dist/chat/runtime/auth-pause-state.d.ts +0 -11
- package/dist/chat/runtime/conversation-message.d.ts +0 -10
- package/dist/chat/runtime/delivered-turn-state.d.ts +0 -12
- package/dist/chat/runtime/dev-agent-trace.d.ts +0 -1
- package/dist/chat/runtime/report-progress.d.ts +0 -6
- package/dist/chat/runtime/request-deadline.d.ts +0 -8
- package/dist/chat/runtime/thread-context.d.ts +0 -29
- package/dist/chat/runtime/thread-state.d.ts +0 -25
- package/dist/chat/runtime/turn-execution.d.ts +0 -35
- package/dist/chat/runtime/turn-input.d.ts +0 -34
- package/dist/chat/runtime/turn-preparation.d.ts +0 -30
- package/dist/chat/runtime/turn-user-message.d.ts +0 -13
- package/dist/chat/runtime/turn.d.ts +0 -77
- package/dist/chat/sandbox/command-result.d.ts +0 -74
- package/dist/chat/sandbox/credentials.d.ts +0 -11
- package/dist/chat/sandbox/docker.d.ts +0 -17
- package/dist/chat/sandbox/egress/credentials.d.ts +0 -61
- package/dist/chat/sandbox/egress/oidc.d.ts +0 -3
- package/dist/chat/sandbox/egress/policy.d.ts +0 -32
- package/dist/chat/sandbox/egress/proxy.d.ts +0 -35
- package/dist/chat/sandbox/egress/schemas.d.ts +0 -187
- package/dist/chat/sandbox/egress/session.d.ts +0 -59
- package/dist/chat/sandbox/egress/signals.d.ts +0 -9
- package/dist/chat/sandbox/egress/tracing.d.ts +0 -7
- package/dist/chat/sandbox/errors.d.ts +0 -18
- package/dist/chat/sandbox/http-error-details.d.ts +0 -18
- package/dist/chat/sandbox/noninteractive-command.d.ts +0 -21
- package/dist/chat/sandbox/paths.d.ts +0 -8
- package/dist/chat/sandbox/prepare-workspace.d.ts +0 -35
- package/dist/chat/sandbox/ref.d.ts +0 -6
- package/dist/chat/sandbox/resources.d.ts +0 -15
- package/dist/chat/sandbox/runtime-dependencies.d.ts +0 -3
- package/dist/chat/sandbox/sandbox.d.ts +0 -45
- package/dist/chat/sandbox/session.d.ts +0 -50
- package/dist/chat/sandbox/skill-sandbox.d.ts +0 -42
- package/dist/chat/sandbox/skill-sync.d.ts +0 -16
- package/dist/chat/sandbox/snapshot/builder-sandbox.d.ts +0 -5
- package/dist/chat/sandbox/snapshot/events.d.ts +0 -30
- package/dist/chat/sandbox/snapshot/install.d.ts +0 -6
- package/dist/chat/sandbox/snapshot/job-callback.d.ts +0 -5
- package/dist/chat/sandbox/snapshot/job-queue.d.ts +0 -26
- package/dist/chat/sandbox/snapshot/job-runner.d.ts +0 -11
- package/dist/chat/sandbox/snapshot/not-ready-error.d.ts +0 -11
- package/dist/chat/sandbox/snapshot/profile.d.ts +0 -15
- package/dist/chat/sandbox/snapshot/resolve.d.ts +0 -43
- package/dist/chat/sandbox/snapshot/runtime.d.ts +0 -2
- package/dist/chat/sandbox/snapshot/span.d.ts +0 -5
- package/dist/chat/sandbox/snapshot/store.d.ts +0 -31
- package/dist/chat/sandbox/snapshot/workspace.d.ts +0 -23
- package/dist/chat/sandbox/workspace.d.ts +0 -72
- package/dist/chat/scheduled-tasks/cadence.d.ts +0 -27
- package/dist/chat/scheduled-tasks/heartbeat.d.ts +0 -6
- package/dist/chat/scheduled-tasks/identity.d.ts +0 -6
- package/dist/chat/scheduled-tasks/personal.d.ts +0 -23
- package/dist/chat/scheduled-tasks/runs.d.ts +0 -49
- package/dist/chat/scheduled-tasks/schedule-intent.d.ts +0 -61
- package/dist/chat/scheduled-tasks/tasks.d.ts +0 -27
- package/dist/chat/scheduled-tasks/telemetry.d.ts +0 -7
- package/dist/chat/scheduled-tasks/tool-support.d.ts +0 -231
- package/dist/chat/scheduled-tasks/tools/create.d.ts +0 -95
- package/dist/chat/scheduled-tasks/tools/delete.d.ts +0 -70
- package/dist/chat/scheduled-tasks/tools/list.d.ts +0 -71
- package/dist/chat/scheduled-tasks/tools/run-now.d.ts +0 -70
- package/dist/chat/scheduled-tasks/tools/update.d.ts +0 -97
- package/dist/chat/scheduled-tasks/tools.d.ts +0 -6
- package/dist/chat/scheduled-tasks/types.d.ts +0 -135
- package/dist/chat/sentry-links.d.ts +0 -6
- package/dist/chat/sentry-payload-filter.d.ts +0 -14
- package/dist/chat/sentry.d.ts +0 -3
- package/dist/chat/services/assistant-reply.d.ts +0 -16
- package/dist/chat/services/auth-pause-response.d.ts +0 -2
- package/dist/chat/services/auth-pause.d.ts +0 -24
- package/dist/chat/services/automated-turn-limit.d.ts +0 -89
- package/dist/chat/services/context-budget.d.ts +0 -19
- package/dist/chat/services/context-compaction-marker.d.ts +0 -8
- package/dist/chat/services/context-compaction.d.ts +0 -78
- package/dist/chat/services/conversation-memory.d.ts +0 -53
- package/dist/chat/services/conversation-title.d.ts +0 -20
- package/dist/chat/services/empty-output-continuation.d.ts +0 -20
- package/dist/chat/services/guardian-action-policy.d.ts +0 -12
- package/dist/chat/services/guardian-action-review.d.ts +0 -9
- package/dist/chat/services/mcp-auth-orchestration.d.ts +0 -42
- package/dist/chat/services/message-actor-identity.d.ts +0 -16
- package/dist/chat/services/pending-auth.d.ts +0 -44
- package/dist/chat/services/persist-retry.d.ts +0 -2
- package/dist/chat/services/plugin-auth-orchestration.d.ts +0 -56
- package/dist/chat/services/provider-default-config.d.ts +0 -9
- package/dist/chat/services/provider-error.d.ts +0 -42
- package/dist/chat/services/provider-retry.d.ts +0 -13
- package/dist/chat/services/short-title.d.ts +0 -25
- package/dist/chat/services/subscribed-decision.d.ts +0 -75
- package/dist/chat/services/subscribed-reply-policy.d.ts +0 -13
- package/dist/chat/services/subscribed-reply-router-policy.d.ts +0 -12
- package/dist/chat/services/turn-failure-response.d.ts +0 -24
- package/dist/chat/services/turn-limit.d.ts +0 -16
- package/dist/chat/services/turn-result.d.ts +0 -42
- package/dist/chat/services/turn-router.d.ts +0 -59
- package/dist/chat/services/turn-session-routing.d.ts +0 -35
- package/dist/chat/skills.d.ts +0 -47
- package/dist/chat/slack/action-token.d.ts +0 -6
- package/dist/chat/slack/adapter-context.d.ts +0 -25
- package/dist/chat/slack/adapter.d.ts +0 -9
- package/dist/chat/slack/app-home.d.ts +0 -11
- package/dist/chat/slack/assistant-thread/lifecycle.d.ts +0 -12
- package/dist/chat/slack/assistant-thread/status-render.d.ts +0 -28
- package/dist/chat/slack/assistant-thread/status-scheduler.d.ts +0 -24
- package/dist/chat/slack/assistant-thread/status-send.d.ts +0 -31
- package/dist/chat/slack/assistant-thread/status.d.ts +0 -36
- package/dist/chat/slack/assistant-thread/title.d.ts +0 -16
- package/dist/chat/slack/attachment-fetchers.d.ts +0 -11
- package/dist/chat/slack/automated-turn-limit-notice.d.ts +0 -16
- package/dist/chat/slack/canvas-references.d.ts +0 -2
- package/dist/chat/slack/channel.d.ts +0 -65
- package/dist/chat/slack/client.d.ts +0 -87
- package/dist/chat/slack/context.d.ts +0 -21
- package/dist/chat/slack/conversation-context.d.ts +0 -40
- package/dist/chat/slack/dashboard-link.d.ts +0 -11
- package/dist/chat/slack/dispatch-turn.d.ts +0 -24
- package/dist/chat/slack/emoji.d.ts +0 -1
- package/dist/chat/slack/errors.d.ts +0 -8
- package/dist/chat/slack/footer.d.ts +0 -46
- package/dist/chat/slack/id-param.d.ts +0 -25
- package/dist/chat/slack/ids.d.ts +0 -24
- package/dist/chat/slack/location-url.d.ts +0 -11
- package/dist/chat/slack/message/attachments.d.ts +0 -2
- package/dist/chat/slack/message/blocks.d.ts +0 -2
- package/dist/chat/slack/message/content.d.ts +0 -18
- package/dist/chat/slack/message/identity.d.ts +0 -7
- package/dist/chat/slack/message-control.d.ts +0 -2
- package/dist/chat/slack/mrkdwn.d.ts +0 -19
- package/dist/chat/slack/oauth-authorization-message.d.ts +0 -3
- package/dist/chat/slack/outbound.d.ts +0 -79
- package/dist/chat/slack/output.d.ts +0 -54
- package/dist/chat/slack/reply.d.ts +0 -19
- package/dist/chat/slack/status-format.d.ts +0 -2
- package/dist/chat/slack/team-domain.d.ts +0 -4
- package/dist/chat/slack/timestamp-param.d.ts +0 -23
- package/dist/chat/slack/timestamp.d.ts +0 -6
- package/dist/chat/slack/tool-support/canvas/api.d.ts +0 -38
- package/dist/chat/slack/tool-support/canvas/context.d.ts +0 -11
- package/dist/chat/slack/tool-support/canvas/markdown.d.ts +0 -9
- package/dist/chat/slack/tool-support/channel-access.d.ts +0 -42
- package/dist/chat/slack/tool-support/channel-capabilities.d.ts +0 -13
- package/dist/chat/slack/tool-support/channel-target.d.ts +0 -28
- package/dist/chat/slack/tool-support/context.d.ts +0 -15
- package/dist/chat/slack/tool-support/list/api.d.ts +0 -50
- package/dist/chat/slack/tool-support/list/params.d.ts +0 -5
- package/dist/chat/slack/tool-support/slack-message-url.d.ts +0 -18
- package/dist/chat/slack/tools/canvas/create.d.ts +0 -30
- package/dist/chat/slack/tools/canvas/edit.d.ts +0 -48
- package/dist/chat/slack/tools/canvas/read.d.ts +0 -51
- package/dist/chat/slack/tools/canvas/write.d.ts +0 -29
- package/dist/chat/slack/tools/channel-join.d.ts +0 -28
- package/dist/chat/slack/tools/channel-list-messages.d.ts +0 -34
- package/dist/chat/slack/tools/conversation-message-search.d.ts +0 -67
- package/dist/chat/slack/tools/list/add-items.d.ts +0 -31
- package/dist/chat/slack/tools/list/create.d.ts +0 -28
- package/dist/chat/slack/tools/list/get-items.d.ts +0 -28
- package/dist/chat/slack/tools/list/update-item.d.ts +0 -36
- package/dist/chat/slack/tools/message-add-reaction.d.ts +0 -29
- package/dist/chat/slack/tools/public-search.d.ts +0 -121
- package/dist/chat/slack/tools/send-files.d.ts +0 -53
- package/dist/chat/slack/tools/thread-read.d.ts +0 -32
- package/dist/chat/slack/user.d.ts +0 -11
- package/dist/chat/slack/users.d.ts +0 -40
- package/dist/chat/slack/vision-cache.d.ts +0 -5
- package/dist/chat/slack/vision-context.d.ts +0 -63
- package/dist/chat/slack/workspace-context.d.ts +0 -4
- package/dist/chat/sleep.d.ts +0 -2
- package/dist/chat/source.d.ts +0 -16
- package/dist/chat/state/adapter.d.ts +0 -10
- package/dist/chat/state/conversation.d.ts +0 -80
- package/dist/chat/state/locks.d.ts +0 -35
- package/dist/chat/state/ttl.d.ts +0 -2
- package/dist/chat/state/turn-id.d.ts +0 -4
- package/dist/chat/task-execution/assistant-message.d.ts +0 -32
- package/dist/chat/task-execution/checkpoint.d.ts +0 -86
- package/dist/chat/task-execution/conversation-turn.d.ts +0 -8
- package/dist/chat/task-execution/heartbeat.d.ts +0 -13
- package/dist/chat/task-execution/mailbox-input.d.ts +0 -3
- package/dist/chat/task-execution/mailbox-turn.d.ts +0 -52
- package/dist/chat/task-execution/paused-turn.d.ts +0 -27
- package/dist/chat/task-execution/queue-signing.d.ts +0 -17
- package/dist/chat/task-execution/queue.d.ts +0 -33
- package/dist/chat/task-execution/slack-work.d.ts +0 -274
- package/dist/chat/task-execution/state.d.ts +0 -410
- package/dist/chat/task-execution/store.d.ts +0 -248
- package/dist/chat/task-execution/turn-cursor-keys.d.ts +0 -6
- package/dist/chat/task-execution/turn-cursor.d.ts +0 -165
- package/dist/chat/task-execution/turn-wake.d.ts +0 -41
- package/dist/chat/task-execution/vercel-callback.d.ts +0 -27
- package/dist/chat/task-execution/vercel-queue.d.ts +0 -19
- package/dist/chat/task-execution/worker.d.ts +0 -42
- package/dist/chat/task-input.d.ts +0 -22
- package/dist/chat/tasks/execution-stats.d.ts +0 -105
- package/dist/chat/tasks/read.d.ts +0 -22
- package/dist/chat/tool-exposure.d.ts +0 -10
- package/dist/chat/tool-support/action-review-evidence.d.ts +0 -4
- package/dist/chat/tool-support/action-review-history.d.ts +0 -117
- package/dist/chat/tool-support/action-review.d.ts +0 -143
- package/dist/chat/tool-support/catalog-tool-call.d.ts +0 -10
- package/dist/chat/tool-support/normalize-result.d.ts +0 -9
- package/dist/chat/tool-support/pi-tool-adapter.d.ts +0 -13
- package/dist/chat/tool-support/private-trace-result.d.ts +0 -4
- package/dist/chat/tool-support/skill/mcp-tool-summary.d.ts +0 -20
- package/dist/chat/tool-support/structured-result.d.ts +0 -44
- package/dist/chat/tool-support/text-range-result.d.ts +0 -37
- package/dist/chat/tool-support/timed-out-tool-result.d.ts +0 -11
- package/dist/chat/tool-support/tool-execution-report.d.ts +0 -8
- package/dist/chat/tool-support/zod-tool.d.ts +0 -46
- package/dist/chat/tools/create-event-task.d.ts +0 -71
- package/dist/chat/tools/definition.d.ts +0 -122
- package/dist/chat/tools/delete-event-task.d.ts +0 -61
- package/dist/chat/tools/event-tasks.d.ts +0 -5
- package/dist/chat/tools/execute-tool.d.ts +0 -11
- package/dist/chat/tools/execution/build-sandbox-input.d.ts +0 -2
- package/dist/chat/tools/execution/tool-error-handler.d.ts +0 -4
- package/dist/chat/tools/execution/tool-input-error.d.ts +0 -6
- package/dist/chat/tools/handoff/tool.d.ts +0 -31
- package/dist/chat/tools/idempotency.d.ts +0 -1
- package/dist/chat/tools/index.d.ts +0 -11
- package/dist/chat/tools/list-event-tasks.d.ts +0 -59
- package/dist/chat/tools/list-resource-event-subscriptions.d.ts +0 -46
- package/dist/chat/tools/publish-image.d.ts +0 -44
- package/dist/chat/tools/resource-events.d.ts +0 -5
- package/dist/chat/tools/runtime/report-progress.d.ts +0 -27
- package/dist/chat/tools/runtime/spawn-agent.d.ts +0 -33
- package/dist/chat/tools/sandbox/bash.d.ts +0 -11
- package/dist/chat/tools/sandbox/edit-file.d.ts +0 -43
- package/dist/chat/tools/sandbox/file-uploads.d.ts +0 -52
- package/dist/chat/tools/sandbox/file-utils.d.ts +0 -64
- package/dist/chat/tools/sandbox/find-files.d.ts +0 -33
- package/dist/chat/tools/sandbox/generated-artifacts.d.ts +0 -16
- package/dist/chat/tools/sandbox/grep.d.ts +0 -51
- package/dist/chat/tools/sandbox/list-dir.d.ts +0 -35
- package/dist/chat/tools/sandbox/read-file.d.ts +0 -12
- package/dist/chat/tools/sandbox/text-edits.d.ts +0 -29
- package/dist/chat/tools/sandbox/view-image.d.ts +0 -11
- package/dist/chat/tools/sandbox/write-file.d.ts +0 -10
- package/dist/chat/tools/scheduled-tasks.d.ts +0 -4
- package/dist/chat/tools/search-conversation-events.d.ts +0 -56
- package/dist/chat/tools/search-resource-event-types.d.ts +0 -56
- package/dist/chat/tools/search-tools.d.ts +0 -71
- package/dist/chat/tools/skill/call-mcp-tool.d.ts +0 -16
- package/dist/chat/tools/skill/load-skill.d.ts +0 -39
- package/dist/chat/tools/skill/search-mcp-tools.d.ts +0 -81
- package/dist/chat/tools/stop-watching-resources.d.ts +0 -30
- package/dist/chat/tools/system-time.d.ts +0 -42
- package/dist/chat/tools/types.d.ts +0 -129
- package/dist/chat/tools/unpublish-image.d.ts +0 -35
- package/dist/chat/tools/update-event-task.d.ts +0 -71
- package/dist/chat/tools/user-lookup.d.ts +0 -29
- package/dist/chat/tools/watch-resource-events.d.ts +0 -64
- package/dist/chat/tools/web/constants.d.ts +0 -6
- package/dist/chat/tools/web/fetch-content.d.ts +0 -28
- package/dist/chat/tools/web/fetch-tool.d.ts +0 -31
- package/dist/chat/tools/web/image-generate.d.ts +0 -51
- package/dist/chat/tools/web/network.d.ts +0 -6
- package/dist/chat/tools/web/search.d.ts +0 -28
- package/dist/chat/turn-context-tag.d.ts +0 -6
- package/dist/chat/usage.d.ts +0 -42
- package/dist/chat/vercel-queue-client.d.ts +0 -3
- package/dist/chat/workspaces/checkout-path.d.ts +0 -4
- package/dist/chat/workspaces/store.d.ts +0 -35
- package/dist/chat/workspaces/tools.d.ts +0 -4
- package/dist/chat/workspaces/types.d.ts +0 -36
- package/dist/chat/workspaces/validation.d.ts +0 -20
- package/dist/chat/xml.d.ts +0 -3
- package/dist/db/db.d.ts +0 -27
- package/dist/db/executor.d.ts +0 -8
- package/dist/db/neon.d.ts +0 -8
- package/dist/db/postgres-json.d.ts +0 -5
- package/dist/db/postgres.d.ts +0 -7
- package/dist/db/schema/agent-invocations.d.ts +0 -592
- package/dist/db/schema/api-tokens.d.ts +0 -160
- package/dist/db/schema/artifacts.d.ts +0 -178
- package/dist/db/schema/attachments.d.ts +0 -178
- package/dist/db/schema/code.d.ts +0 -367
- package/dist/db/schema/conversation-annotations.d.ts +0 -142
- package/dist/db/schema/conversation-bindings.d.ts +0 -110
- package/dist/db/schema/conversation-events.d.ts +0 -170
- package/dist/db/schema/conversation-participants.d.ts +0 -80
- package/dist/db/schema/conversations.d.ts +0 -1341
- package/dist/db/schema/destinations.d.ts +0 -209
- package/dist/db/schema/event-tasks.d.ts +0 -150
- package/dist/db/schema/identities.d.ts +0 -265
- package/dist/db/schema/location-configurations.d.ts +0 -127
- package/dist/db/schema/scheduled-tasks.d.ts +0 -298
- package/dist/db/schema/snapshots.d.ts +0 -271
- package/dist/db/schema/stats.d.ts +0 -97
- package/dist/db/schema/task-executions.d.ts +0 -131
- package/dist/db/schema/timestamps.d.ts +0 -1
- package/dist/db/schema/users.d.ts +0 -109
- package/dist/db/schema/workspaces.d.ts +0 -152
- package/dist/db/schema.d.ts +0 -4436
- package/dist/deployment.d.ts +0 -12
- package/dist/handlers/artifacts.d.ts +0 -8
- package/dist/handlers/health.d.ts +0 -7
- package/dist/handlers/heartbeat.d.ts +0 -7
- package/dist/handlers/mcp-oauth-callback.d.ts +0 -10
- package/dist/handlers/oauth-callback.d.ts +0 -10
- package/dist/handlers/oauth-html.d.ts +0 -4
- package/dist/handlers/retention.d.ts +0 -9
- package/dist/handlers/sandbox-egress-proxy.d.ts +0 -11
- package/dist/handlers/sandbox-egress-route.d.ts +0 -4
- package/dist/handlers/sandbox-egress-signals.d.ts +0 -4
- package/dist/handlers/slack-webhook.d.ts +0 -4
- package/dist/handlers/types.d.ts +0 -2
- package/dist/handlers/webhooks.d.ts +0 -12
- package/dist/package-resolution.d.ts +0 -13
- package/dist/personal-tokens/store.d.ts +0 -27
- package/dist/plugin-module.d.ts +0 -21
- package/dist/plugins.d.ts +0 -26
- package/dist/reporting-schema.d.ts +0 -194
- package/dist/reporting.d.ts +0 -12
- package/dist/spawn-5YR3E42B.js +0 -42
- package/dist/stats.d.ts +0 -18
- package/dist/task-runner-GR2WZNCW.js +0 -36
- package/dist/usage-schema.d.ts +0 -25
|
@@ -1,1157 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Durable conversation event history port.
|
|
3
|
-
*
|
|
4
|
-
* Events append under the conversation lease in stable sequence order.
|
|
5
|
-
* Compaction and handoff replace the active model history without rewriting
|
|
6
|
-
* prior events. Unsupported stored events remain readable as opaque facts,
|
|
7
|
-
* while malformed known events fail loudly. Provider-specific message fields
|
|
8
|
-
* are validated by the Pi adapter when it restores model context.
|
|
9
|
-
*/
|
|
10
|
-
import { z } from "zod";
|
|
11
|
-
/**
|
|
12
|
-
* One replayable agent-history item. Junior owns `type` and user provenance,
|
|
13
|
-
* forbids the provider `role` discriminator, and leaves preserved message
|
|
14
|
-
* fields for the Pi adapter to validate when restoring model context.
|
|
15
|
-
*/
|
|
16
|
-
export declare const agentHistoryItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
17
|
-
type: z.ZodLiteral<"user_message">;
|
|
18
|
-
role: z.ZodOptional<z.ZodNever>;
|
|
19
|
-
provenance: z.ZodObject<{
|
|
20
|
-
authority: z.ZodUnion<readonly [z.ZodLiteral<"instruction">, z.ZodLiteral<"context">]>;
|
|
21
|
-
actor: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
22
|
-
platform: z.ZodLiteral<"slack">;
|
|
23
|
-
teamId: z.ZodString;
|
|
24
|
-
email: z.ZodOptional<z.ZodString>;
|
|
25
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
26
|
-
userId: z.ZodString;
|
|
27
|
-
userName: z.ZodOptional<z.ZodString>;
|
|
28
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
29
|
-
platform: z.ZodLiteral<"local">;
|
|
30
|
-
email: z.ZodOptional<z.ZodString>;
|
|
31
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
32
|
-
userId: z.ZodString;
|
|
33
|
-
userName: z.ZodOptional<z.ZodString>;
|
|
34
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
35
|
-
platform: z.ZodLiteral<"web">;
|
|
36
|
-
email: z.ZodOptional<z.ZodString>;
|
|
37
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
38
|
-
userId: z.ZodString;
|
|
39
|
-
userName: z.ZodOptional<z.ZodString>;
|
|
40
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
41
|
-
platform: z.ZodLiteral<"system">;
|
|
42
|
-
name: z.ZodString;
|
|
43
|
-
}, z.core.$strict>], "platform">>;
|
|
44
|
-
}, z.core.$strict>;
|
|
45
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
46
|
-
type: z.ZodLiteral<"assistant_message">;
|
|
47
|
-
role: z.ZodOptional<z.ZodNever>;
|
|
48
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
49
|
-
type: z.ZodLiteral<"tool_result">;
|
|
50
|
-
role: z.ZodOptional<z.ZodNever>;
|
|
51
|
-
}, z.core.$loose>], "type">;
|
|
52
|
-
/** A native replayable agent-history item. */
|
|
53
|
-
export type AgentHistoryItem = z.output<typeof agentHistoryItemSchema>;
|
|
54
|
-
/** Validate an event that intentionally replaces active model history. */
|
|
55
|
-
export declare const historyReplacementSchema: z.ZodObject<{
|
|
56
|
-
data: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
57
|
-
type: z.ZodLiteral<"handoff">;
|
|
58
|
-
modelProfile: z.ZodString;
|
|
59
|
-
modelId: z.ZodString;
|
|
60
|
-
reasoningLevel: z.ZodOptional<z.ZodString>;
|
|
61
|
-
triggeringToolCallId: z.ZodOptional<z.ZodString>;
|
|
62
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
63
|
-
replacementHistory: z.ZodArray<z.ZodObject<{
|
|
64
|
-
item: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
65
|
-
type: z.ZodLiteral<"user_message">;
|
|
66
|
-
role: z.ZodOptional<z.ZodNever>;
|
|
67
|
-
provenance: z.ZodObject<{
|
|
68
|
-
authority: z.ZodUnion<readonly [z.ZodLiteral<"instruction">, z.ZodLiteral<"context">]>;
|
|
69
|
-
actor: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
70
|
-
platform: z.ZodLiteral<"slack">;
|
|
71
|
-
teamId: z.ZodString;
|
|
72
|
-
email: z.ZodOptional<z.ZodString>;
|
|
73
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
74
|
-
userId: z.ZodString;
|
|
75
|
-
userName: z.ZodOptional<z.ZodString>;
|
|
76
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
77
|
-
platform: z.ZodLiteral<"local">;
|
|
78
|
-
email: z.ZodOptional<z.ZodString>;
|
|
79
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
80
|
-
userId: z.ZodString;
|
|
81
|
-
userName: z.ZodOptional<z.ZodString>;
|
|
82
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
83
|
-
platform: z.ZodLiteral<"web">;
|
|
84
|
-
email: z.ZodOptional<z.ZodString>;
|
|
85
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
86
|
-
userId: z.ZodString;
|
|
87
|
-
userName: z.ZodOptional<z.ZodString>;
|
|
88
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
89
|
-
platform: z.ZodLiteral<"system">;
|
|
90
|
-
name: z.ZodString;
|
|
91
|
-
}, z.core.$strict>], "platform">>;
|
|
92
|
-
}, z.core.$strict>;
|
|
93
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
94
|
-
type: z.ZodLiteral<"assistant_message">;
|
|
95
|
-
role: z.ZodOptional<z.ZodNever>;
|
|
96
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
97
|
-
type: z.ZodLiteral<"tool_result">;
|
|
98
|
-
role: z.ZodOptional<z.ZodNever>;
|
|
99
|
-
}, z.core.$loose>], "type">;
|
|
100
|
-
sourceEventSeq: z.ZodOptional<z.ZodNumber>;
|
|
101
|
-
}, z.core.$strict>>;
|
|
102
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
103
|
-
type: z.ZodLiteral<"compaction">;
|
|
104
|
-
modelProfile: z.ZodString;
|
|
105
|
-
modelId: z.ZodString;
|
|
106
|
-
details: z.ZodOptional<z.ZodObject<{
|
|
107
|
-
reason: z.ZodLiteral<"capacity">;
|
|
108
|
-
estimatedInputTokens: z.ZodNumber;
|
|
109
|
-
replacementInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
110
|
-
triggerTokens: z.ZodNumber;
|
|
111
|
-
inputLimitTokens: z.ZodNumber;
|
|
112
|
-
inputMessageCount: z.ZodNumber;
|
|
113
|
-
retainedMessageCount: z.ZodNumber;
|
|
114
|
-
summaryChars: z.ZodNumber;
|
|
115
|
-
}, z.core.$strict>>;
|
|
116
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
117
|
-
replacementHistory: z.ZodArray<z.ZodObject<{
|
|
118
|
-
item: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
119
|
-
type: z.ZodLiteral<"user_message">;
|
|
120
|
-
role: z.ZodOptional<z.ZodNever>;
|
|
121
|
-
provenance: z.ZodObject<{
|
|
122
|
-
authority: z.ZodUnion<readonly [z.ZodLiteral<"instruction">, z.ZodLiteral<"context">]>;
|
|
123
|
-
actor: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
124
|
-
platform: z.ZodLiteral<"slack">;
|
|
125
|
-
teamId: z.ZodString;
|
|
126
|
-
email: z.ZodOptional<z.ZodString>;
|
|
127
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
128
|
-
userId: z.ZodString;
|
|
129
|
-
userName: z.ZodOptional<z.ZodString>;
|
|
130
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
131
|
-
platform: z.ZodLiteral<"local">;
|
|
132
|
-
email: z.ZodOptional<z.ZodString>;
|
|
133
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
134
|
-
userId: z.ZodString;
|
|
135
|
-
userName: z.ZodOptional<z.ZodString>;
|
|
136
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
137
|
-
platform: z.ZodLiteral<"web">;
|
|
138
|
-
email: z.ZodOptional<z.ZodString>;
|
|
139
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
140
|
-
userId: z.ZodString;
|
|
141
|
-
userName: z.ZodOptional<z.ZodString>;
|
|
142
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
143
|
-
platform: z.ZodLiteral<"system">;
|
|
144
|
-
name: z.ZodString;
|
|
145
|
-
}, z.core.$strict>], "platform">>;
|
|
146
|
-
}, z.core.$strict>;
|
|
147
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
148
|
-
type: z.ZodLiteral<"assistant_message">;
|
|
149
|
-
role: z.ZodOptional<z.ZodNever>;
|
|
150
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
151
|
-
type: z.ZodLiteral<"tool_result">;
|
|
152
|
-
role: z.ZodOptional<z.ZodNever>;
|
|
153
|
-
}, z.core.$loose>], "type">;
|
|
154
|
-
sourceEventSeq: z.ZodOptional<z.ZodNumber>;
|
|
155
|
-
}, z.core.$strict>>;
|
|
156
|
-
}, z.core.$strict>], "type">;
|
|
157
|
-
createdAtMs: z.ZodNumber;
|
|
158
|
-
}, z.core.$strict>;
|
|
159
|
-
/** One atomically persisted model-history replacement. */
|
|
160
|
-
export type HistoryReplacement = z.output<typeof historyReplacementSchema>;
|
|
161
|
-
export declare const authorizationKindSchema: z.ZodUnion<readonly [z.ZodLiteral<"plugin">, z.ZodLiteral<"mcp">]>;
|
|
162
|
-
/** Provider authorization family recorded by conversation events. */
|
|
163
|
-
export type AuthorizationKind = z.output<typeof authorizationKindSchema>;
|
|
164
|
-
/** Product surface that owns a durable conversation turn. */
|
|
165
|
-
export declare const conversationTurnSurfaceSchema: z.ZodEnum<{
|
|
166
|
-
slack: "slack";
|
|
167
|
-
api: "api";
|
|
168
|
-
scheduler: "scheduler";
|
|
169
|
-
internal: "internal";
|
|
170
|
-
}>;
|
|
171
|
-
/** Where a failed turn stopped. */
|
|
172
|
-
export declare const conversationTurnFailureCodeSchema: z.ZodEnum<{
|
|
173
|
-
agent_run_failed: "agent_run_failed";
|
|
174
|
-
delivery_failed: "delivery_failed";
|
|
175
|
-
model_execution_failed: "model_execution_failed";
|
|
176
|
-
persistence_failed: "persistence_failed";
|
|
177
|
-
}>;
|
|
178
|
-
/** Where a failed turn stopped. */
|
|
179
|
-
export type ConversationTurnFailureCode = z.output<typeof conversationTurnFailureCodeSchema>;
|
|
180
|
-
/**
|
|
181
|
-
* Why a failed turn stopped.
|
|
182
|
-
* Values are fixed labels only. Do not store raw exception text.
|
|
183
|
-
*/
|
|
184
|
-
export declare const conversationTurnFailureReasonSchema: z.ZodEnum<{
|
|
185
|
-
unknown: "unknown";
|
|
186
|
-
auth: "auth";
|
|
187
|
-
permission: "permission";
|
|
188
|
-
rate_limit: "rate_limit";
|
|
189
|
-
capacity: "capacity";
|
|
190
|
-
timeout: "timeout";
|
|
191
|
-
network: "network";
|
|
192
|
-
server: "server";
|
|
193
|
-
invalid_request: "invalid_request";
|
|
194
|
-
invalid_response: "invalid_response";
|
|
195
|
-
quota: "quota";
|
|
196
|
-
content_policy: "content_policy";
|
|
197
|
-
empty_output: "empty_output";
|
|
198
|
-
tool_errors: "tool_errors";
|
|
199
|
-
suppressed_output: "suppressed_output";
|
|
200
|
-
}>;
|
|
201
|
-
/** Why a failed turn stopped. */
|
|
202
|
-
export type ConversationTurnFailureReason = z.output<typeof conversationTurnFailureReasonSchema>;
|
|
203
|
-
/** Strict event-data contract reused by the SQL row codec. */
|
|
204
|
-
export declare const conversationEventDataSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
205
|
-
type: z.ZodLiteral<"message">;
|
|
206
|
-
messageId: z.ZodString;
|
|
207
|
-
role: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"assistant">, z.ZodLiteral<"system">]>;
|
|
208
|
-
text: z.ZodString;
|
|
209
|
-
authorIdentityId: z.ZodOptional<z.ZodString>;
|
|
210
|
-
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
211
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
212
|
-
messageId: z.ZodString;
|
|
213
|
-
role: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"assistant">, z.ZodLiteral<"system">]>;
|
|
214
|
-
text: z.ZodString;
|
|
215
|
-
authorIdentityId: z.ZodOptional<z.ZodString>;
|
|
216
|
-
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
217
|
-
type: z.ZodLiteral<"message_updated">;
|
|
218
|
-
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
219
|
-
type: z.ZodLiteral<"user_message">;
|
|
220
|
-
role: z.ZodOptional<z.ZodNever>;
|
|
221
|
-
provenance: z.ZodObject<{
|
|
222
|
-
authority: z.ZodUnion<readonly [z.ZodLiteral<"instruction">, z.ZodLiteral<"context">]>;
|
|
223
|
-
actor: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
224
|
-
platform: z.ZodLiteral<"slack">;
|
|
225
|
-
teamId: z.ZodString;
|
|
226
|
-
email: z.ZodOptional<z.ZodString>;
|
|
227
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
228
|
-
userId: z.ZodString;
|
|
229
|
-
userName: z.ZodOptional<z.ZodString>;
|
|
230
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
231
|
-
platform: z.ZodLiteral<"local">;
|
|
232
|
-
email: z.ZodOptional<z.ZodString>;
|
|
233
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
234
|
-
userId: z.ZodString;
|
|
235
|
-
userName: z.ZodOptional<z.ZodString>;
|
|
236
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
237
|
-
platform: z.ZodLiteral<"web">;
|
|
238
|
-
email: z.ZodOptional<z.ZodString>;
|
|
239
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
240
|
-
userId: z.ZodString;
|
|
241
|
-
userName: z.ZodOptional<z.ZodString>;
|
|
242
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
243
|
-
platform: z.ZodLiteral<"system">;
|
|
244
|
-
name: z.ZodString;
|
|
245
|
-
}, z.core.$strict>], "platform">>;
|
|
246
|
-
}, z.core.$strict>;
|
|
247
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
248
|
-
type: z.ZodLiteral<"assistant_message">;
|
|
249
|
-
role: z.ZodOptional<z.ZodNever>;
|
|
250
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
251
|
-
type: z.ZodLiteral<"tool_result">;
|
|
252
|
-
role: z.ZodOptional<z.ZodNever>;
|
|
253
|
-
}, z.core.$loose>], "type">, z.ZodObject<{
|
|
254
|
-
type: z.ZodLiteral<"mcp_provider_connected">;
|
|
255
|
-
provider: z.ZodString;
|
|
256
|
-
credentialSubjectId: z.ZodString;
|
|
257
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
258
|
-
type: z.ZodLiteral<"authorization_requested">;
|
|
259
|
-
kind: z.ZodUnion<readonly [z.ZodLiteral<"plugin">, z.ZodLiteral<"mcp">]>;
|
|
260
|
-
provider: z.ZodString;
|
|
261
|
-
actorId: z.ZodString;
|
|
262
|
-
authorizationId: z.ZodString;
|
|
263
|
-
delivery: z.ZodUnion<readonly [z.ZodLiteral<"private_link_sent">, z.ZodLiteral<"private_link_reused">]>;
|
|
264
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
265
|
-
type: z.ZodLiteral<"authorization_completed">;
|
|
266
|
-
kind: z.ZodUnion<readonly [z.ZodLiteral<"plugin">, z.ZodLiteral<"mcp">]>;
|
|
267
|
-
provider: z.ZodString;
|
|
268
|
-
actorId: z.ZodString;
|
|
269
|
-
authorizationId: z.ZodString;
|
|
270
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
271
|
-
type: z.ZodLiteral<"tool_execution_started">;
|
|
272
|
-
toolCallId: z.ZodString;
|
|
273
|
-
toolName: z.ZodString;
|
|
274
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
275
|
-
type: z.ZodLiteral<"guardian_action_reviewed">;
|
|
276
|
-
turnId: z.ZodString;
|
|
277
|
-
toolCallId: z.ZodString;
|
|
278
|
-
toolName: z.ZodString;
|
|
279
|
-
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
280
|
-
decision: z.ZodEnum<{
|
|
281
|
-
allow: "allow";
|
|
282
|
-
ask: "ask";
|
|
283
|
-
deny: "deny";
|
|
284
|
-
}>;
|
|
285
|
-
riskLevel: z.ZodEnum<{
|
|
286
|
-
low: "low";
|
|
287
|
-
medium: "medium";
|
|
288
|
-
high: "high";
|
|
289
|
-
critical: "critical";
|
|
290
|
-
}>;
|
|
291
|
-
userAuthorization: z.ZodEnum<{
|
|
292
|
-
unknown: "unknown";
|
|
293
|
-
low: "low";
|
|
294
|
-
medium: "medium";
|
|
295
|
-
high: "high";
|
|
296
|
-
}>;
|
|
297
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
298
|
-
type: z.ZodLiteral<"message_handled">;
|
|
299
|
-
messageId: z.ZodString;
|
|
300
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
301
|
-
type: z.ZodLiteral<"messages_summarized">;
|
|
302
|
-
historyFromSeq: z.ZodNumber;
|
|
303
|
-
compactions: z.ZodArray<z.ZodObject<{
|
|
304
|
-
coveredMessageCount: z.ZodNumber;
|
|
305
|
-
createdAtMs: z.ZodNumber;
|
|
306
|
-
id: z.ZodString;
|
|
307
|
-
summary: z.ZodString;
|
|
308
|
-
}, z.core.$strict>>;
|
|
309
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
310
|
-
type: z.ZodLiteral<"turn_started">;
|
|
311
|
-
turnId: z.ZodString;
|
|
312
|
-
inputMessageIds: z.ZodArray<z.ZodString>;
|
|
313
|
-
surface: z.ZodEnum<{
|
|
314
|
-
slack: "slack";
|
|
315
|
-
api: "api";
|
|
316
|
-
scheduler: "scheduler";
|
|
317
|
-
internal: "internal";
|
|
318
|
-
}>;
|
|
319
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
320
|
-
type: z.ZodLiteral<"turn_context">;
|
|
321
|
-
turnId: z.ZodString;
|
|
322
|
-
pluginName: z.ZodString;
|
|
323
|
-
kind: z.ZodString;
|
|
324
|
-
version: z.ZodNumber;
|
|
325
|
-
content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
326
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
327
|
-
type: z.ZodLiteral<"structured_event">;
|
|
328
|
-
namespace: z.ZodString;
|
|
329
|
-
name: z.ZodString;
|
|
330
|
-
version: z.ZodNumber;
|
|
331
|
-
turnId: z.ZodOptional<z.ZodString>;
|
|
332
|
-
content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
333
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
334
|
-
type: z.ZodLiteral<"attachments_delivered">;
|
|
335
|
-
attachments: z.ZodArray<z.ZodObject<{
|
|
336
|
-
id: z.ZodString;
|
|
337
|
-
filename: z.ZodString;
|
|
338
|
-
contentType: z.ZodString;
|
|
339
|
-
bytes: z.ZodNumber;
|
|
340
|
-
}, z.core.$strict>>;
|
|
341
|
-
toolCallId: z.ZodOptional<z.ZodString>;
|
|
342
|
-
turnId: z.ZodOptional<z.ZodString>;
|
|
343
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
344
|
-
type: z.ZodLiteral<"turn_routed">;
|
|
345
|
-
turnId: z.ZodString;
|
|
346
|
-
modelProfile: z.ZodString;
|
|
347
|
-
modelId: z.ZodString;
|
|
348
|
-
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
349
|
-
reasoningLevel: z.ZodEnum<{
|
|
350
|
-
low: "low";
|
|
351
|
-
medium: "medium";
|
|
352
|
-
high: "high";
|
|
353
|
-
xhigh: "xhigh";
|
|
354
|
-
none: "none";
|
|
355
|
-
}>;
|
|
356
|
-
confidence: z.ZodOptional<z.ZodNumber>;
|
|
357
|
-
source: z.ZodEnum<{
|
|
358
|
-
configured: "configured";
|
|
359
|
-
inherited: "inherited";
|
|
360
|
-
router: "router";
|
|
361
|
-
}>;
|
|
362
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
363
|
-
type: z.ZodLiteral<"turn_completed">;
|
|
364
|
-
turnId: z.ZodString;
|
|
365
|
-
outcome: z.ZodEnum<{
|
|
366
|
-
success: "success";
|
|
367
|
-
cancelled: "cancelled";
|
|
368
|
-
no_reply: "no_reply";
|
|
369
|
-
}>;
|
|
370
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
371
|
-
type: z.ZodLiteral<"turn_failed">;
|
|
372
|
-
turnId: z.ZodString;
|
|
373
|
-
failureCode: z.ZodEnum<{
|
|
374
|
-
agent_run_failed: "agent_run_failed";
|
|
375
|
-
delivery_failed: "delivery_failed";
|
|
376
|
-
model_execution_failed: "model_execution_failed";
|
|
377
|
-
persistence_failed: "persistence_failed";
|
|
378
|
-
}>;
|
|
379
|
-
failureReason: z.ZodOptional<z.ZodEnum<{
|
|
380
|
-
unknown: "unknown";
|
|
381
|
-
auth: "auth";
|
|
382
|
-
permission: "permission";
|
|
383
|
-
rate_limit: "rate_limit";
|
|
384
|
-
capacity: "capacity";
|
|
385
|
-
timeout: "timeout";
|
|
386
|
-
network: "network";
|
|
387
|
-
server: "server";
|
|
388
|
-
invalid_request: "invalid_request";
|
|
389
|
-
invalid_response: "invalid_response";
|
|
390
|
-
quota: "quota";
|
|
391
|
-
content_policy: "content_policy";
|
|
392
|
-
empty_output: "empty_output";
|
|
393
|
-
tool_errors: "tool_errors";
|
|
394
|
-
suppressed_output: "suppressed_output";
|
|
395
|
-
}>>;
|
|
396
|
-
eventId: z.ZodOptional<z.ZodString>;
|
|
397
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
398
|
-
type: z.ZodLiteral<"subagent_started">;
|
|
399
|
-
subagentInvocationId: z.ZodString;
|
|
400
|
-
subagentKind: z.ZodString;
|
|
401
|
-
modelId: z.ZodOptional<z.ZodString>;
|
|
402
|
-
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
403
|
-
reasoningLevel: z.ZodOptional<z.ZodString>;
|
|
404
|
-
childConversationId: z.ZodString;
|
|
405
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
406
|
-
type: z.ZodLiteral<"subagent_ended">;
|
|
407
|
-
subagentInvocationId: z.ZodString;
|
|
408
|
-
outcome: z.ZodUnion<readonly [z.ZodLiteral<"success">, z.ZodLiteral<"error">, z.ZodLiteral<"aborted">]>;
|
|
409
|
-
errorCode: z.ZodOptional<z.ZodString>;
|
|
410
|
-
}, z.core.$strict>]>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
411
|
-
type: z.ZodLiteral<"handoff">;
|
|
412
|
-
modelProfile: z.ZodString;
|
|
413
|
-
modelId: z.ZodString;
|
|
414
|
-
reasoningLevel: z.ZodOptional<z.ZodString>;
|
|
415
|
-
triggeringToolCallId: z.ZodOptional<z.ZodString>;
|
|
416
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
417
|
-
replacementHistory: z.ZodArray<z.ZodObject<{
|
|
418
|
-
item: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
419
|
-
type: z.ZodLiteral<"user_message">;
|
|
420
|
-
role: z.ZodOptional<z.ZodNever>;
|
|
421
|
-
provenance: z.ZodObject<{
|
|
422
|
-
authority: z.ZodUnion<readonly [z.ZodLiteral<"instruction">, z.ZodLiteral<"context">]>;
|
|
423
|
-
actor: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
424
|
-
platform: z.ZodLiteral<"slack">;
|
|
425
|
-
teamId: z.ZodString;
|
|
426
|
-
email: z.ZodOptional<z.ZodString>;
|
|
427
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
428
|
-
userId: z.ZodString;
|
|
429
|
-
userName: z.ZodOptional<z.ZodString>;
|
|
430
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
431
|
-
platform: z.ZodLiteral<"local">;
|
|
432
|
-
email: z.ZodOptional<z.ZodString>;
|
|
433
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
434
|
-
userId: z.ZodString;
|
|
435
|
-
userName: z.ZodOptional<z.ZodString>;
|
|
436
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
437
|
-
platform: z.ZodLiteral<"web">;
|
|
438
|
-
email: z.ZodOptional<z.ZodString>;
|
|
439
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
440
|
-
userId: z.ZodString;
|
|
441
|
-
userName: z.ZodOptional<z.ZodString>;
|
|
442
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
443
|
-
platform: z.ZodLiteral<"system">;
|
|
444
|
-
name: z.ZodString;
|
|
445
|
-
}, z.core.$strict>], "platform">>;
|
|
446
|
-
}, z.core.$strict>;
|
|
447
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
448
|
-
type: z.ZodLiteral<"assistant_message">;
|
|
449
|
-
role: z.ZodOptional<z.ZodNever>;
|
|
450
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
451
|
-
type: z.ZodLiteral<"tool_result">;
|
|
452
|
-
role: z.ZodOptional<z.ZodNever>;
|
|
453
|
-
}, z.core.$loose>], "type">;
|
|
454
|
-
sourceEventSeq: z.ZodOptional<z.ZodNumber>;
|
|
455
|
-
}, z.core.$strict>>;
|
|
456
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
457
|
-
type: z.ZodLiteral<"compaction">;
|
|
458
|
-
modelProfile: z.ZodString;
|
|
459
|
-
modelId: z.ZodString;
|
|
460
|
-
details: z.ZodOptional<z.ZodObject<{
|
|
461
|
-
reason: z.ZodLiteral<"capacity">;
|
|
462
|
-
estimatedInputTokens: z.ZodNumber;
|
|
463
|
-
replacementInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
464
|
-
triggerTokens: z.ZodNumber;
|
|
465
|
-
inputLimitTokens: z.ZodNumber;
|
|
466
|
-
inputMessageCount: z.ZodNumber;
|
|
467
|
-
retainedMessageCount: z.ZodNumber;
|
|
468
|
-
summaryChars: z.ZodNumber;
|
|
469
|
-
}, z.core.$strict>>;
|
|
470
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
471
|
-
replacementHistory: z.ZodArray<z.ZodObject<{
|
|
472
|
-
item: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
473
|
-
type: z.ZodLiteral<"user_message">;
|
|
474
|
-
role: z.ZodOptional<z.ZodNever>;
|
|
475
|
-
provenance: z.ZodObject<{
|
|
476
|
-
authority: z.ZodUnion<readonly [z.ZodLiteral<"instruction">, z.ZodLiteral<"context">]>;
|
|
477
|
-
actor: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
478
|
-
platform: z.ZodLiteral<"slack">;
|
|
479
|
-
teamId: z.ZodString;
|
|
480
|
-
email: z.ZodOptional<z.ZodString>;
|
|
481
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
482
|
-
userId: z.ZodString;
|
|
483
|
-
userName: z.ZodOptional<z.ZodString>;
|
|
484
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
485
|
-
platform: z.ZodLiteral<"local">;
|
|
486
|
-
email: z.ZodOptional<z.ZodString>;
|
|
487
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
488
|
-
userId: z.ZodString;
|
|
489
|
-
userName: z.ZodOptional<z.ZodString>;
|
|
490
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
491
|
-
platform: z.ZodLiteral<"web">;
|
|
492
|
-
email: z.ZodOptional<z.ZodString>;
|
|
493
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
494
|
-
userId: z.ZodString;
|
|
495
|
-
userName: z.ZodOptional<z.ZodString>;
|
|
496
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
497
|
-
platform: z.ZodLiteral<"system">;
|
|
498
|
-
name: z.ZodString;
|
|
499
|
-
}, z.core.$strict>], "platform">>;
|
|
500
|
-
}, z.core.$strict>;
|
|
501
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
502
|
-
type: z.ZodLiteral<"assistant_message">;
|
|
503
|
-
role: z.ZodOptional<z.ZodNever>;
|
|
504
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
505
|
-
type: z.ZodLiteral<"tool_result">;
|
|
506
|
-
role: z.ZodOptional<z.ZodNever>;
|
|
507
|
-
}, z.core.$loose>], "type">;
|
|
508
|
-
sourceEventSeq: z.ZodOptional<z.ZodNumber>;
|
|
509
|
-
}, z.core.$strict>>;
|
|
510
|
-
}, z.core.$strict>], "type">, z.ZodObject<{
|
|
511
|
-
type: z.ZodLiteral<"mcp_provider_connected_unowned">;
|
|
512
|
-
provider: z.ZodString;
|
|
513
|
-
}, z.core.$strict>]>;
|
|
514
|
-
/** One durable conversation event's validated data. */
|
|
515
|
-
export type ConversationEventData = z.output<typeof conversationEventDataSchema>;
|
|
516
|
-
/** Event type names recognized by current readers and observational queries. */
|
|
517
|
-
export declare const KNOWN_CONVERSATION_EVENT_TYPES: readonly ["message", "message_updated", "user_message", "assistant_message", "tool_result", "mcp_provider_connected", "mcp_provider_connected_unowned", "authorization_requested", "authorization_completed", "tool_execution_started", "guardian_action_reviewed", "message_handled", "messages_summarized", "turn_started", "turn_context", "structured_event", "attachments_delivered", "turn_routed", "turn_completed", "turn_failed", "subagent_started", "subagent_ended", "handoff", "compaction"];
|
|
518
|
-
/** One known durable conversation event type name. */
|
|
519
|
-
export type KnownConversationEventType = (typeof KNOWN_CONVERSATION_EVENT_TYPES)[number];
|
|
520
|
-
declare const unknownConversationEventDataSchema: z.ZodObject<{
|
|
521
|
-
type: z.ZodLiteral<"unknown">;
|
|
522
|
-
originalType: z.ZodString;
|
|
523
|
-
payload: z.ZodUnknown;
|
|
524
|
-
}, z.core.$strict>;
|
|
525
|
-
/** Opaque data from a stored event this Junior version cannot interpret. */
|
|
526
|
-
export type UnknownConversationEventData = z.output<typeof unknownConversationEventDataSchema>;
|
|
527
|
-
/**
|
|
528
|
-
* Canonical ordered envelope for the durable conversation log.
|
|
529
|
-
* `schemaVersion` is persisted with every physical event row.
|
|
530
|
-
*/
|
|
531
|
-
export declare const conversationEventSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
532
|
-
seq: z.ZodNumber;
|
|
533
|
-
historyVersion: z.ZodNumber;
|
|
534
|
-
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
535
|
-
createdAtMs: z.ZodNumber;
|
|
536
|
-
schemaVersion: z.ZodLiteral<1>;
|
|
537
|
-
data: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
538
|
-
type: z.ZodLiteral<"message">;
|
|
539
|
-
messageId: z.ZodString;
|
|
540
|
-
role: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"assistant">, z.ZodLiteral<"system">]>;
|
|
541
|
-
text: z.ZodString;
|
|
542
|
-
authorIdentityId: z.ZodOptional<z.ZodString>;
|
|
543
|
-
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
544
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
545
|
-
messageId: z.ZodString;
|
|
546
|
-
role: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"assistant">, z.ZodLiteral<"system">]>;
|
|
547
|
-
text: z.ZodString;
|
|
548
|
-
authorIdentityId: z.ZodOptional<z.ZodString>;
|
|
549
|
-
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
550
|
-
type: z.ZodLiteral<"message_updated">;
|
|
551
|
-
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
552
|
-
type: z.ZodLiteral<"user_message">;
|
|
553
|
-
role: z.ZodOptional<z.ZodNever>;
|
|
554
|
-
provenance: z.ZodObject<{
|
|
555
|
-
authority: z.ZodUnion<readonly [z.ZodLiteral<"instruction">, z.ZodLiteral<"context">]>;
|
|
556
|
-
actor: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
557
|
-
platform: z.ZodLiteral<"slack">;
|
|
558
|
-
teamId: z.ZodString;
|
|
559
|
-
email: z.ZodOptional<z.ZodString>;
|
|
560
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
561
|
-
userId: z.ZodString;
|
|
562
|
-
userName: z.ZodOptional<z.ZodString>;
|
|
563
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
564
|
-
platform: z.ZodLiteral<"local">;
|
|
565
|
-
email: z.ZodOptional<z.ZodString>;
|
|
566
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
567
|
-
userId: z.ZodString;
|
|
568
|
-
userName: z.ZodOptional<z.ZodString>;
|
|
569
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
570
|
-
platform: z.ZodLiteral<"web">;
|
|
571
|
-
email: z.ZodOptional<z.ZodString>;
|
|
572
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
573
|
-
userId: z.ZodString;
|
|
574
|
-
userName: z.ZodOptional<z.ZodString>;
|
|
575
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
576
|
-
platform: z.ZodLiteral<"system">;
|
|
577
|
-
name: z.ZodString;
|
|
578
|
-
}, z.core.$strict>], "platform">>;
|
|
579
|
-
}, z.core.$strict>;
|
|
580
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
581
|
-
type: z.ZodLiteral<"assistant_message">;
|
|
582
|
-
role: z.ZodOptional<z.ZodNever>;
|
|
583
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
584
|
-
type: z.ZodLiteral<"tool_result">;
|
|
585
|
-
role: z.ZodOptional<z.ZodNever>;
|
|
586
|
-
}, z.core.$loose>], "type">, z.ZodObject<{
|
|
587
|
-
type: z.ZodLiteral<"mcp_provider_connected">;
|
|
588
|
-
provider: z.ZodString;
|
|
589
|
-
credentialSubjectId: z.ZodString;
|
|
590
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
591
|
-
type: z.ZodLiteral<"authorization_requested">;
|
|
592
|
-
kind: z.ZodUnion<readonly [z.ZodLiteral<"plugin">, z.ZodLiteral<"mcp">]>;
|
|
593
|
-
provider: z.ZodString;
|
|
594
|
-
actorId: z.ZodString;
|
|
595
|
-
authorizationId: z.ZodString;
|
|
596
|
-
delivery: z.ZodUnion<readonly [z.ZodLiteral<"private_link_sent">, z.ZodLiteral<"private_link_reused">]>;
|
|
597
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
598
|
-
type: z.ZodLiteral<"authorization_completed">;
|
|
599
|
-
kind: z.ZodUnion<readonly [z.ZodLiteral<"plugin">, z.ZodLiteral<"mcp">]>;
|
|
600
|
-
provider: z.ZodString;
|
|
601
|
-
actorId: z.ZodString;
|
|
602
|
-
authorizationId: z.ZodString;
|
|
603
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
604
|
-
type: z.ZodLiteral<"tool_execution_started">;
|
|
605
|
-
toolCallId: z.ZodString;
|
|
606
|
-
toolName: z.ZodString;
|
|
607
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
608
|
-
type: z.ZodLiteral<"guardian_action_reviewed">;
|
|
609
|
-
turnId: z.ZodString;
|
|
610
|
-
toolCallId: z.ZodString;
|
|
611
|
-
toolName: z.ZodString;
|
|
612
|
-
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
613
|
-
decision: z.ZodEnum<{
|
|
614
|
-
allow: "allow";
|
|
615
|
-
ask: "ask";
|
|
616
|
-
deny: "deny";
|
|
617
|
-
}>;
|
|
618
|
-
riskLevel: z.ZodEnum<{
|
|
619
|
-
low: "low";
|
|
620
|
-
medium: "medium";
|
|
621
|
-
high: "high";
|
|
622
|
-
critical: "critical";
|
|
623
|
-
}>;
|
|
624
|
-
userAuthorization: z.ZodEnum<{
|
|
625
|
-
unknown: "unknown";
|
|
626
|
-
low: "low";
|
|
627
|
-
medium: "medium";
|
|
628
|
-
high: "high";
|
|
629
|
-
}>;
|
|
630
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
631
|
-
type: z.ZodLiteral<"message_handled">;
|
|
632
|
-
messageId: z.ZodString;
|
|
633
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
634
|
-
type: z.ZodLiteral<"messages_summarized">;
|
|
635
|
-
historyFromSeq: z.ZodNumber;
|
|
636
|
-
compactions: z.ZodArray<z.ZodObject<{
|
|
637
|
-
coveredMessageCount: z.ZodNumber;
|
|
638
|
-
createdAtMs: z.ZodNumber;
|
|
639
|
-
id: z.ZodString;
|
|
640
|
-
summary: z.ZodString;
|
|
641
|
-
}, z.core.$strict>>;
|
|
642
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
643
|
-
type: z.ZodLiteral<"turn_started">;
|
|
644
|
-
turnId: z.ZodString;
|
|
645
|
-
inputMessageIds: z.ZodArray<z.ZodString>;
|
|
646
|
-
surface: z.ZodEnum<{
|
|
647
|
-
slack: "slack";
|
|
648
|
-
api: "api";
|
|
649
|
-
scheduler: "scheduler";
|
|
650
|
-
internal: "internal";
|
|
651
|
-
}>;
|
|
652
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
653
|
-
type: z.ZodLiteral<"turn_context">;
|
|
654
|
-
turnId: z.ZodString;
|
|
655
|
-
pluginName: z.ZodString;
|
|
656
|
-
kind: z.ZodString;
|
|
657
|
-
version: z.ZodNumber;
|
|
658
|
-
content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
659
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
660
|
-
type: z.ZodLiteral<"structured_event">;
|
|
661
|
-
namespace: z.ZodString;
|
|
662
|
-
name: z.ZodString;
|
|
663
|
-
version: z.ZodNumber;
|
|
664
|
-
turnId: z.ZodOptional<z.ZodString>;
|
|
665
|
-
content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
666
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
667
|
-
type: z.ZodLiteral<"attachments_delivered">;
|
|
668
|
-
attachments: z.ZodArray<z.ZodObject<{
|
|
669
|
-
id: z.ZodString;
|
|
670
|
-
filename: z.ZodString;
|
|
671
|
-
contentType: z.ZodString;
|
|
672
|
-
bytes: z.ZodNumber;
|
|
673
|
-
}, z.core.$strict>>;
|
|
674
|
-
toolCallId: z.ZodOptional<z.ZodString>;
|
|
675
|
-
turnId: z.ZodOptional<z.ZodString>;
|
|
676
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
677
|
-
type: z.ZodLiteral<"turn_routed">;
|
|
678
|
-
turnId: z.ZodString;
|
|
679
|
-
modelProfile: z.ZodString;
|
|
680
|
-
modelId: z.ZodString;
|
|
681
|
-
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
682
|
-
reasoningLevel: z.ZodEnum<{
|
|
683
|
-
low: "low";
|
|
684
|
-
medium: "medium";
|
|
685
|
-
high: "high";
|
|
686
|
-
xhigh: "xhigh";
|
|
687
|
-
none: "none";
|
|
688
|
-
}>;
|
|
689
|
-
confidence: z.ZodOptional<z.ZodNumber>;
|
|
690
|
-
source: z.ZodEnum<{
|
|
691
|
-
configured: "configured";
|
|
692
|
-
inherited: "inherited";
|
|
693
|
-
router: "router";
|
|
694
|
-
}>;
|
|
695
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
696
|
-
type: z.ZodLiteral<"turn_completed">;
|
|
697
|
-
turnId: z.ZodString;
|
|
698
|
-
outcome: z.ZodEnum<{
|
|
699
|
-
success: "success";
|
|
700
|
-
cancelled: "cancelled";
|
|
701
|
-
no_reply: "no_reply";
|
|
702
|
-
}>;
|
|
703
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
704
|
-
type: z.ZodLiteral<"turn_failed">;
|
|
705
|
-
turnId: z.ZodString;
|
|
706
|
-
failureCode: z.ZodEnum<{
|
|
707
|
-
agent_run_failed: "agent_run_failed";
|
|
708
|
-
delivery_failed: "delivery_failed";
|
|
709
|
-
model_execution_failed: "model_execution_failed";
|
|
710
|
-
persistence_failed: "persistence_failed";
|
|
711
|
-
}>;
|
|
712
|
-
failureReason: z.ZodOptional<z.ZodEnum<{
|
|
713
|
-
unknown: "unknown";
|
|
714
|
-
auth: "auth";
|
|
715
|
-
permission: "permission";
|
|
716
|
-
rate_limit: "rate_limit";
|
|
717
|
-
capacity: "capacity";
|
|
718
|
-
timeout: "timeout";
|
|
719
|
-
network: "network";
|
|
720
|
-
server: "server";
|
|
721
|
-
invalid_request: "invalid_request";
|
|
722
|
-
invalid_response: "invalid_response";
|
|
723
|
-
quota: "quota";
|
|
724
|
-
content_policy: "content_policy";
|
|
725
|
-
empty_output: "empty_output";
|
|
726
|
-
tool_errors: "tool_errors";
|
|
727
|
-
suppressed_output: "suppressed_output";
|
|
728
|
-
}>>;
|
|
729
|
-
eventId: z.ZodOptional<z.ZodString>;
|
|
730
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
731
|
-
type: z.ZodLiteral<"subagent_started">;
|
|
732
|
-
subagentInvocationId: z.ZodString;
|
|
733
|
-
subagentKind: z.ZodString;
|
|
734
|
-
modelId: z.ZodOptional<z.ZodString>;
|
|
735
|
-
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
736
|
-
reasoningLevel: z.ZodOptional<z.ZodString>;
|
|
737
|
-
childConversationId: z.ZodString;
|
|
738
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
739
|
-
type: z.ZodLiteral<"subagent_ended">;
|
|
740
|
-
subagentInvocationId: z.ZodString;
|
|
741
|
-
outcome: z.ZodUnion<readonly [z.ZodLiteral<"success">, z.ZodLiteral<"error">, z.ZodLiteral<"aborted">]>;
|
|
742
|
-
errorCode: z.ZodOptional<z.ZodString>;
|
|
743
|
-
}, z.core.$strict>]>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
744
|
-
type: z.ZodLiteral<"handoff">;
|
|
745
|
-
modelProfile: z.ZodString;
|
|
746
|
-
modelId: z.ZodString;
|
|
747
|
-
reasoningLevel: z.ZodOptional<z.ZodString>;
|
|
748
|
-
triggeringToolCallId: z.ZodOptional<z.ZodString>;
|
|
749
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
750
|
-
replacementHistory: z.ZodArray<z.ZodObject<{
|
|
751
|
-
item: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
752
|
-
type: z.ZodLiteral<"user_message">;
|
|
753
|
-
role: z.ZodOptional<z.ZodNever>;
|
|
754
|
-
provenance: z.ZodObject<{
|
|
755
|
-
authority: z.ZodUnion<readonly [z.ZodLiteral<"instruction">, z.ZodLiteral<"context">]>;
|
|
756
|
-
actor: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
757
|
-
platform: z.ZodLiteral<"slack">;
|
|
758
|
-
teamId: z.ZodString;
|
|
759
|
-
email: z.ZodOptional<z.ZodString>;
|
|
760
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
761
|
-
userId: z.ZodString;
|
|
762
|
-
userName: z.ZodOptional<z.ZodString>;
|
|
763
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
764
|
-
platform: z.ZodLiteral<"local">;
|
|
765
|
-
email: z.ZodOptional<z.ZodString>;
|
|
766
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
767
|
-
userId: z.ZodString;
|
|
768
|
-
userName: z.ZodOptional<z.ZodString>;
|
|
769
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
770
|
-
platform: z.ZodLiteral<"web">;
|
|
771
|
-
email: z.ZodOptional<z.ZodString>;
|
|
772
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
773
|
-
userId: z.ZodString;
|
|
774
|
-
userName: z.ZodOptional<z.ZodString>;
|
|
775
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
776
|
-
platform: z.ZodLiteral<"system">;
|
|
777
|
-
name: z.ZodString;
|
|
778
|
-
}, z.core.$strict>], "platform">>;
|
|
779
|
-
}, z.core.$strict>;
|
|
780
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
781
|
-
type: z.ZodLiteral<"assistant_message">;
|
|
782
|
-
role: z.ZodOptional<z.ZodNever>;
|
|
783
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
784
|
-
type: z.ZodLiteral<"tool_result">;
|
|
785
|
-
role: z.ZodOptional<z.ZodNever>;
|
|
786
|
-
}, z.core.$loose>], "type">;
|
|
787
|
-
sourceEventSeq: z.ZodOptional<z.ZodNumber>;
|
|
788
|
-
}, z.core.$strict>>;
|
|
789
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
790
|
-
type: z.ZodLiteral<"compaction">;
|
|
791
|
-
modelProfile: z.ZodString;
|
|
792
|
-
modelId: z.ZodString;
|
|
793
|
-
details: z.ZodOptional<z.ZodObject<{
|
|
794
|
-
reason: z.ZodLiteral<"capacity">;
|
|
795
|
-
estimatedInputTokens: z.ZodNumber;
|
|
796
|
-
replacementInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
797
|
-
triggerTokens: z.ZodNumber;
|
|
798
|
-
inputLimitTokens: z.ZodNumber;
|
|
799
|
-
inputMessageCount: z.ZodNumber;
|
|
800
|
-
retainedMessageCount: z.ZodNumber;
|
|
801
|
-
summaryChars: z.ZodNumber;
|
|
802
|
-
}, z.core.$strict>>;
|
|
803
|
-
summary: z.ZodOptional<z.ZodString>;
|
|
804
|
-
replacementHistory: z.ZodArray<z.ZodObject<{
|
|
805
|
-
item: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
806
|
-
type: z.ZodLiteral<"user_message">;
|
|
807
|
-
role: z.ZodOptional<z.ZodNever>;
|
|
808
|
-
provenance: z.ZodObject<{
|
|
809
|
-
authority: z.ZodUnion<readonly [z.ZodLiteral<"instruction">, z.ZodLiteral<"context">]>;
|
|
810
|
-
actor: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
811
|
-
platform: z.ZodLiteral<"slack">;
|
|
812
|
-
teamId: z.ZodString;
|
|
813
|
-
email: z.ZodOptional<z.ZodString>;
|
|
814
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
815
|
-
userId: z.ZodString;
|
|
816
|
-
userName: z.ZodOptional<z.ZodString>;
|
|
817
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
818
|
-
platform: z.ZodLiteral<"local">;
|
|
819
|
-
email: z.ZodOptional<z.ZodString>;
|
|
820
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
821
|
-
userId: z.ZodString;
|
|
822
|
-
userName: z.ZodOptional<z.ZodString>;
|
|
823
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
824
|
-
platform: z.ZodLiteral<"web">;
|
|
825
|
-
email: z.ZodOptional<z.ZodString>;
|
|
826
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
827
|
-
userId: z.ZodString;
|
|
828
|
-
userName: z.ZodOptional<z.ZodString>;
|
|
829
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
830
|
-
platform: z.ZodLiteral<"system">;
|
|
831
|
-
name: z.ZodString;
|
|
832
|
-
}, z.core.$strict>], "platform">>;
|
|
833
|
-
}, z.core.$strict>;
|
|
834
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
835
|
-
type: z.ZodLiteral<"assistant_message">;
|
|
836
|
-
role: z.ZodOptional<z.ZodNever>;
|
|
837
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
838
|
-
type: z.ZodLiteral<"tool_result">;
|
|
839
|
-
role: z.ZodOptional<z.ZodNever>;
|
|
840
|
-
}, z.core.$loose>], "type">;
|
|
841
|
-
sourceEventSeq: z.ZodOptional<z.ZodNumber>;
|
|
842
|
-
}, z.core.$strict>>;
|
|
843
|
-
}, z.core.$strict>], "type">, z.ZodObject<{
|
|
844
|
-
type: z.ZodLiteral<"mcp_provider_connected_unowned">;
|
|
845
|
-
provider: z.ZodString;
|
|
846
|
-
}, z.core.$strict>]>;
|
|
847
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
848
|
-
schemaVersion: z.ZodNumber;
|
|
849
|
-
seq: z.ZodNumber;
|
|
850
|
-
historyVersion: z.ZodNumber;
|
|
851
|
-
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
852
|
-
createdAtMs: z.ZodNumber;
|
|
853
|
-
data: z.ZodObject<{
|
|
854
|
-
type: z.ZodLiteral<"unknown">;
|
|
855
|
-
originalType: z.ZodString;
|
|
856
|
-
payload: z.ZodUnknown;
|
|
857
|
-
}, z.core.$strict>;
|
|
858
|
-
}, z.core.$strict>]>;
|
|
859
|
-
/** One versioned event read from the durable conversation log. */
|
|
860
|
-
export type ConversationEvent = z.output<typeof conversationEventSchema>;
|
|
861
|
-
/** A decoded message-summary event and its readable history boundary. */
|
|
862
|
-
export type MessagesSummarizedEvent = Omit<Extract<ConversationEvent, {
|
|
863
|
-
schemaVersion: 1;
|
|
864
|
-
}>, "data"> & {
|
|
865
|
-
data: Extract<ConversationEventData, {
|
|
866
|
-
type: "messages_summarized";
|
|
867
|
-
}>;
|
|
868
|
-
};
|
|
869
|
-
/** Projection-ready message events paired with their authoritative boundary. */
|
|
870
|
-
export interface MessageHistory {
|
|
871
|
-
events: ConversationEvent[];
|
|
872
|
-
compaction: MessagesSummarizedEvent | undefined;
|
|
873
|
-
historyFromSeq: number;
|
|
874
|
-
}
|
|
875
|
-
declare const storedConversationEventSchema: z.ZodObject<{
|
|
876
|
-
schemaVersion: z.ZodNumber;
|
|
877
|
-
seq: z.ZodNumber;
|
|
878
|
-
historyVersion: z.ZodNumber;
|
|
879
|
-
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
880
|
-
createdAtMs: z.ZodNumber;
|
|
881
|
-
type: z.ZodString;
|
|
882
|
-
payload: z.ZodUnknown;
|
|
883
|
-
}, z.core.$strict>;
|
|
884
|
-
/**
|
|
885
|
-
* Decode a physical event row without making old or future event types
|
|
886
|
-
* unreadable. Unsupported rows stay opaque until an upgrade migration defines
|
|
887
|
-
* their semantics; known version-one events remain strict so corrupt canonical
|
|
888
|
-
* data cannot be mistaken for compatibility data.
|
|
889
|
-
*/
|
|
890
|
-
export declare function decodeStoredConversationEvent(value: z.input<typeof storedConversationEventSchema>): ConversationEvent;
|
|
891
|
-
/** Validate an append without permitting model-history replacement events. */
|
|
892
|
-
export declare const newConversationEventSchema: z.ZodObject<{
|
|
893
|
-
data: z.ZodUnion<readonly [z.ZodObject<{
|
|
894
|
-
type: z.ZodLiteral<"message">;
|
|
895
|
-
messageId: z.ZodString;
|
|
896
|
-
role: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"assistant">, z.ZodLiteral<"system">]>;
|
|
897
|
-
text: z.ZodString;
|
|
898
|
-
authorIdentityId: z.ZodOptional<z.ZodString>;
|
|
899
|
-
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
900
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
901
|
-
messageId: z.ZodString;
|
|
902
|
-
role: z.ZodUnion<readonly [z.ZodLiteral<"user">, z.ZodLiteral<"assistant">, z.ZodLiteral<"system">]>;
|
|
903
|
-
text: z.ZodString;
|
|
904
|
-
authorIdentityId: z.ZodOptional<z.ZodString>;
|
|
905
|
-
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
906
|
-
type: z.ZodLiteral<"message_updated">;
|
|
907
|
-
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
908
|
-
type: z.ZodLiteral<"user_message">;
|
|
909
|
-
role: z.ZodOptional<z.ZodNever>;
|
|
910
|
-
provenance: z.ZodObject<{
|
|
911
|
-
authority: z.ZodUnion<readonly [z.ZodLiteral<"instruction">, z.ZodLiteral<"context">]>;
|
|
912
|
-
actor: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
913
|
-
platform: z.ZodLiteral<"slack">;
|
|
914
|
-
teamId: z.ZodString;
|
|
915
|
-
email: z.ZodOptional<z.ZodString>;
|
|
916
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
917
|
-
userId: z.ZodString;
|
|
918
|
-
userName: z.ZodOptional<z.ZodString>;
|
|
919
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
920
|
-
platform: z.ZodLiteral<"local">;
|
|
921
|
-
email: z.ZodOptional<z.ZodString>;
|
|
922
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
923
|
-
userId: z.ZodString;
|
|
924
|
-
userName: z.ZodOptional<z.ZodString>;
|
|
925
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
926
|
-
platform: z.ZodLiteral<"web">;
|
|
927
|
-
email: z.ZodOptional<z.ZodString>;
|
|
928
|
-
fullName: z.ZodOptional<z.ZodString>;
|
|
929
|
-
userId: z.ZodString;
|
|
930
|
-
userName: z.ZodOptional<z.ZodString>;
|
|
931
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
932
|
-
platform: z.ZodLiteral<"system">;
|
|
933
|
-
name: z.ZodString;
|
|
934
|
-
}, z.core.$strict>], "platform">>;
|
|
935
|
-
}, z.core.$strict>;
|
|
936
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
937
|
-
type: z.ZodLiteral<"assistant_message">;
|
|
938
|
-
role: z.ZodOptional<z.ZodNever>;
|
|
939
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
940
|
-
type: z.ZodLiteral<"tool_result">;
|
|
941
|
-
role: z.ZodOptional<z.ZodNever>;
|
|
942
|
-
}, z.core.$loose>], "type">, z.ZodObject<{
|
|
943
|
-
type: z.ZodLiteral<"mcp_provider_connected">;
|
|
944
|
-
provider: z.ZodString;
|
|
945
|
-
credentialSubjectId: z.ZodString;
|
|
946
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
947
|
-
type: z.ZodLiteral<"authorization_requested">;
|
|
948
|
-
kind: z.ZodUnion<readonly [z.ZodLiteral<"plugin">, z.ZodLiteral<"mcp">]>;
|
|
949
|
-
provider: z.ZodString;
|
|
950
|
-
actorId: z.ZodString;
|
|
951
|
-
authorizationId: z.ZodString;
|
|
952
|
-
delivery: z.ZodUnion<readonly [z.ZodLiteral<"private_link_sent">, z.ZodLiteral<"private_link_reused">]>;
|
|
953
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
954
|
-
type: z.ZodLiteral<"authorization_completed">;
|
|
955
|
-
kind: z.ZodUnion<readonly [z.ZodLiteral<"plugin">, z.ZodLiteral<"mcp">]>;
|
|
956
|
-
provider: z.ZodString;
|
|
957
|
-
actorId: z.ZodString;
|
|
958
|
-
authorizationId: z.ZodString;
|
|
959
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
960
|
-
type: z.ZodLiteral<"tool_execution_started">;
|
|
961
|
-
toolCallId: z.ZodString;
|
|
962
|
-
toolName: z.ZodString;
|
|
963
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
964
|
-
type: z.ZodLiteral<"guardian_action_reviewed">;
|
|
965
|
-
turnId: z.ZodString;
|
|
966
|
-
toolCallId: z.ZodString;
|
|
967
|
-
toolName: z.ZodString;
|
|
968
|
-
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
969
|
-
decision: z.ZodEnum<{
|
|
970
|
-
allow: "allow";
|
|
971
|
-
ask: "ask";
|
|
972
|
-
deny: "deny";
|
|
973
|
-
}>;
|
|
974
|
-
riskLevel: z.ZodEnum<{
|
|
975
|
-
low: "low";
|
|
976
|
-
medium: "medium";
|
|
977
|
-
high: "high";
|
|
978
|
-
critical: "critical";
|
|
979
|
-
}>;
|
|
980
|
-
userAuthorization: z.ZodEnum<{
|
|
981
|
-
unknown: "unknown";
|
|
982
|
-
low: "low";
|
|
983
|
-
medium: "medium";
|
|
984
|
-
high: "high";
|
|
985
|
-
}>;
|
|
986
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
987
|
-
type: z.ZodLiteral<"message_handled">;
|
|
988
|
-
messageId: z.ZodString;
|
|
989
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
990
|
-
type: z.ZodLiteral<"messages_summarized">;
|
|
991
|
-
historyFromSeq: z.ZodNumber;
|
|
992
|
-
compactions: z.ZodArray<z.ZodObject<{
|
|
993
|
-
coveredMessageCount: z.ZodNumber;
|
|
994
|
-
createdAtMs: z.ZodNumber;
|
|
995
|
-
id: z.ZodString;
|
|
996
|
-
summary: z.ZodString;
|
|
997
|
-
}, z.core.$strict>>;
|
|
998
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
999
|
-
type: z.ZodLiteral<"turn_started">;
|
|
1000
|
-
turnId: z.ZodString;
|
|
1001
|
-
inputMessageIds: z.ZodArray<z.ZodString>;
|
|
1002
|
-
surface: z.ZodEnum<{
|
|
1003
|
-
slack: "slack";
|
|
1004
|
-
api: "api";
|
|
1005
|
-
scheduler: "scheduler";
|
|
1006
|
-
internal: "internal";
|
|
1007
|
-
}>;
|
|
1008
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1009
|
-
type: z.ZodLiteral<"turn_context">;
|
|
1010
|
-
turnId: z.ZodString;
|
|
1011
|
-
pluginName: z.ZodString;
|
|
1012
|
-
kind: z.ZodString;
|
|
1013
|
-
version: z.ZodNumber;
|
|
1014
|
-
content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1015
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1016
|
-
type: z.ZodLiteral<"structured_event">;
|
|
1017
|
-
namespace: z.ZodString;
|
|
1018
|
-
name: z.ZodString;
|
|
1019
|
-
version: z.ZodNumber;
|
|
1020
|
-
turnId: z.ZodOptional<z.ZodString>;
|
|
1021
|
-
content: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1022
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1023
|
-
type: z.ZodLiteral<"attachments_delivered">;
|
|
1024
|
-
attachments: z.ZodArray<z.ZodObject<{
|
|
1025
|
-
id: z.ZodString;
|
|
1026
|
-
filename: z.ZodString;
|
|
1027
|
-
contentType: z.ZodString;
|
|
1028
|
-
bytes: z.ZodNumber;
|
|
1029
|
-
}, z.core.$strict>>;
|
|
1030
|
-
toolCallId: z.ZodOptional<z.ZodString>;
|
|
1031
|
-
turnId: z.ZodOptional<z.ZodString>;
|
|
1032
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1033
|
-
type: z.ZodLiteral<"turn_routed">;
|
|
1034
|
-
turnId: z.ZodString;
|
|
1035
|
-
modelProfile: z.ZodString;
|
|
1036
|
-
modelId: z.ZodString;
|
|
1037
|
-
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
1038
|
-
reasoningLevel: z.ZodEnum<{
|
|
1039
|
-
low: "low";
|
|
1040
|
-
medium: "medium";
|
|
1041
|
-
high: "high";
|
|
1042
|
-
xhigh: "xhigh";
|
|
1043
|
-
none: "none";
|
|
1044
|
-
}>;
|
|
1045
|
-
confidence: z.ZodOptional<z.ZodNumber>;
|
|
1046
|
-
source: z.ZodEnum<{
|
|
1047
|
-
configured: "configured";
|
|
1048
|
-
inherited: "inherited";
|
|
1049
|
-
router: "router";
|
|
1050
|
-
}>;
|
|
1051
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1052
|
-
type: z.ZodLiteral<"turn_completed">;
|
|
1053
|
-
turnId: z.ZodString;
|
|
1054
|
-
outcome: z.ZodEnum<{
|
|
1055
|
-
success: "success";
|
|
1056
|
-
cancelled: "cancelled";
|
|
1057
|
-
no_reply: "no_reply";
|
|
1058
|
-
}>;
|
|
1059
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1060
|
-
type: z.ZodLiteral<"turn_failed">;
|
|
1061
|
-
turnId: z.ZodString;
|
|
1062
|
-
failureCode: z.ZodEnum<{
|
|
1063
|
-
agent_run_failed: "agent_run_failed";
|
|
1064
|
-
delivery_failed: "delivery_failed";
|
|
1065
|
-
model_execution_failed: "model_execution_failed";
|
|
1066
|
-
persistence_failed: "persistence_failed";
|
|
1067
|
-
}>;
|
|
1068
|
-
failureReason: z.ZodOptional<z.ZodEnum<{
|
|
1069
|
-
unknown: "unknown";
|
|
1070
|
-
auth: "auth";
|
|
1071
|
-
permission: "permission";
|
|
1072
|
-
rate_limit: "rate_limit";
|
|
1073
|
-
capacity: "capacity";
|
|
1074
|
-
timeout: "timeout";
|
|
1075
|
-
network: "network";
|
|
1076
|
-
server: "server";
|
|
1077
|
-
invalid_request: "invalid_request";
|
|
1078
|
-
invalid_response: "invalid_response";
|
|
1079
|
-
quota: "quota";
|
|
1080
|
-
content_policy: "content_policy";
|
|
1081
|
-
empty_output: "empty_output";
|
|
1082
|
-
tool_errors: "tool_errors";
|
|
1083
|
-
suppressed_output: "suppressed_output";
|
|
1084
|
-
}>>;
|
|
1085
|
-
eventId: z.ZodOptional<z.ZodString>;
|
|
1086
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1087
|
-
type: z.ZodLiteral<"subagent_started">;
|
|
1088
|
-
subagentInvocationId: z.ZodString;
|
|
1089
|
-
subagentKind: z.ZodString;
|
|
1090
|
-
modelId: z.ZodOptional<z.ZodString>;
|
|
1091
|
-
parentToolCallId: z.ZodOptional<z.ZodString>;
|
|
1092
|
-
reasoningLevel: z.ZodOptional<z.ZodString>;
|
|
1093
|
-
childConversationId: z.ZodString;
|
|
1094
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
1095
|
-
type: z.ZodLiteral<"subagent_ended">;
|
|
1096
|
-
subagentInvocationId: z.ZodString;
|
|
1097
|
-
outcome: z.ZodUnion<readonly [z.ZodLiteral<"success">, z.ZodLiteral<"error">, z.ZodLiteral<"aborted">]>;
|
|
1098
|
-
errorCode: z.ZodOptional<z.ZodString>;
|
|
1099
|
-
}, z.core.$strict>]>;
|
|
1100
|
-
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
1101
|
-
createdAtMs: z.ZodNumber;
|
|
1102
|
-
}, z.core.$strict>;
|
|
1103
|
-
/** An event to append; the store assigns `seq` and current history version. */
|
|
1104
|
-
export type NewConversationEvent = z.output<typeof newConversationEventSchema>;
|
|
1105
|
-
/** Bounded observational page over the durable conversation event log. */
|
|
1106
|
-
export interface ConversationEventQuery {
|
|
1107
|
-
/** Exclusive lower bound on `seq`. */
|
|
1108
|
-
afterSeq?: number;
|
|
1109
|
-
/** Exclusive upper bound on `seq`. */
|
|
1110
|
-
beforeSeq?: number;
|
|
1111
|
-
/** Maximum events to return. */
|
|
1112
|
-
limit: number;
|
|
1113
|
-
/** Optional event-type filter. Empty/undefined returns every type. */
|
|
1114
|
-
types?: readonly KnownConversationEventType[];
|
|
1115
|
-
}
|
|
1116
|
-
/** One page of raw conversation events plus pagination hints. */
|
|
1117
|
-
export interface ConversationEventPage {
|
|
1118
|
-
events: ConversationEvent[];
|
|
1119
|
-
/** True when at least one older event exists before the returned page. */
|
|
1120
|
-
hasOlder: boolean;
|
|
1121
|
-
/** True when at least one newer event exists after the returned page. */
|
|
1122
|
-
hasNewer: boolean;
|
|
1123
|
-
}
|
|
1124
|
-
/** Persist and read the canonical per-conversation event log. */
|
|
1125
|
-
export interface ConversationEventStore {
|
|
1126
|
-
/**
|
|
1127
|
-
* Append events atomically and return each event's sequence and history version.
|
|
1128
|
-
* Archive clears only for human user activity, not every non-preserve write.
|
|
1129
|
-
*/
|
|
1130
|
-
append(conversationId: string, events: NewConversationEvent[], options?: {
|
|
1131
|
-
activity?: "preserve";
|
|
1132
|
-
}): Promise<Array<Pick<ConversationEvent, "seq" | "historyVersion">>>;
|
|
1133
|
-
/** Replace active model history with a compaction or handoff event. */
|
|
1134
|
-
replaceHistory(conversationId: string, replacement: HistoryReplacement): Promise<void>;
|
|
1135
|
-
/** One event selected by its retry-stable key across history versions. */
|
|
1136
|
-
loadByIdempotencyKey(conversationId: string, idempotencyKey: string): Promise<ConversationEvent | undefined>;
|
|
1137
|
-
/** Latest matching structured event across history versions. */
|
|
1138
|
-
loadLatestStructuredEvent(conversationId: string, namespace: string, name: string): Promise<ConversationEvent | undefined>;
|
|
1139
|
-
/** Latest durable instruction across history versions. */
|
|
1140
|
-
loadLatestInstruction(conversationId: string): Promise<ConversationEvent | undefined>;
|
|
1141
|
-
/** Current model-history version, or zero when no event exists. */
|
|
1142
|
-
loadCurrentHistoryVersion(conversationId: string): Promise<number>;
|
|
1143
|
-
/** Events of the current history version in `seq` order. */
|
|
1144
|
-
loadCurrentHistory(conversationId: string): Promise<ConversationEvent[]>;
|
|
1145
|
-
/** Events in the history version containing `seq`, when it exists. */
|
|
1146
|
-
loadHistoryContaining(conversationId: string, seq: number, throughSeq?: number): Promise<ConversationEvent[] | undefined>;
|
|
1147
|
-
/** Projection-ready message suffix, summary snapshot, and readable boundary. */
|
|
1148
|
-
loadMessageHistory(conversationId: string): Promise<MessageHistory>;
|
|
1149
|
-
/** All events across every history version in `seq` order. */
|
|
1150
|
-
loadHistory(conversationId: string): Promise<ConversationEvent[]>;
|
|
1151
|
-
/**
|
|
1152
|
-
* Bounded raw event page for observational/debug reads.
|
|
1153
|
-
* Defaults to the newest matching events when neither bound is set.
|
|
1154
|
-
*/
|
|
1155
|
-
query(conversationId: string, query: ConversationEventQuery): Promise<ConversationEventPage>;
|
|
1156
|
-
}
|
|
1157
|
-
export {};
|