@moltzap/client 2026.1002.0 → 2026.1005.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/NOTICE +1 -6
- package/README.md +2 -2
- package/bin/moltzapd +2 -2
- package/dist/{harness-mcp-contract.d.ts → delivery/history-export.d.ts} +96 -136
- package/dist/delivery/history-export.d.ts.map +1 -0
- package/dist/{daemon/runtime → delivery}/history-export.js +36 -3
- package/dist/delivery/history-export.js.map +1 -0
- package/dist/delivery/host-delivery.d.ts +51 -0
- package/dist/delivery/host-delivery.d.ts.map +1 -0
- package/dist/delivery/host-delivery.js +109 -0
- package/dist/delivery/host-delivery.js.map +1 -0
- package/dist/delivery/inbox.d.ts +142 -0
- package/dist/delivery/inbox.d.ts.map +1 -0
- package/dist/delivery/inbox.js +130 -0
- package/dist/delivery/inbox.js.map +1 -0
- package/dist/delivery/index.d.ts +4 -0
- package/dist/delivery/index.d.ts.map +1 -0
- package/dist/delivery/index.js +4 -0
- package/dist/delivery/index.js.map +1 -0
- package/dist/delivery/operations.d.ts +787 -0
- package/dist/delivery/operations.d.ts.map +1 -0
- package/dist/delivery/operations.js +162 -0
- package/dist/delivery/operations.js.map +1 -0
- package/dist/delivery/pass.d.ts +91 -0
- package/dist/delivery/pass.d.ts.map +1 -0
- package/dist/{daemon/runtime/pending-delivery.js → delivery/pass.js} +61 -34
- package/dist/delivery/pass.js.map +1 -0
- package/dist/delivery/send-invocations.d.ts +106 -0
- package/dist/delivery/send-invocations.d.ts.map +1 -0
- package/dist/delivery/send-invocations.js +109 -0
- package/dist/delivery/send-invocations.js.map +1 -0
- package/dist/endpoint/harness-endpoint/capability.d.ts +39 -0
- package/dist/endpoint/harness-endpoint/capability.d.ts.map +1 -0
- package/dist/endpoint/harness-endpoint/capability.js +9 -0
- package/dist/endpoint/harness-endpoint/capability.js.map +1 -0
- package/dist/endpoint/harness-endpoint/events.d.ts +12 -0
- package/dist/endpoint/harness-endpoint/events.d.ts.map +1 -0
- package/dist/endpoint/harness-endpoint/events.js +199 -0
- package/dist/endpoint/harness-endpoint/events.js.map +1 -0
- package/dist/{client-runtime.d.ts → endpoint/harness-endpoint/index.d.ts} +4 -2
- package/dist/endpoint/harness-endpoint/index.d.ts.map +1 -0
- package/dist/{client-runtime.js → endpoint/harness-endpoint/index.js} +115 -115
- package/dist/endpoint/harness-endpoint/index.js.map +1 -0
- package/dist/endpoint/implementation.d.ts +4 -0
- package/dist/endpoint/implementation.d.ts.map +1 -0
- package/dist/endpoint/implementation.js +5 -0
- package/dist/endpoint/implementation.js.map +1 -0
- package/dist/endpoint/mcp/auth.d.ts +31 -0
- package/dist/endpoint/mcp/auth.d.ts.map +1 -0
- package/dist/endpoint/mcp/auth.js +42 -0
- package/dist/endpoint/mcp/auth.js.map +1 -0
- package/dist/endpoint/mcp/event-schemas.d.ts +151 -0
- package/dist/endpoint/mcp/event-schemas.d.ts.map +1 -0
- package/dist/endpoint/mcp/event-schemas.js +72 -0
- package/dist/endpoint/mcp/event-schemas.js.map +1 -0
- package/dist/endpoint/mcp/event-signing.d.ts +62 -0
- package/dist/endpoint/mcp/event-signing.d.ts.map +1 -0
- package/dist/endpoint/mcp/event-signing.js +185 -0
- package/dist/endpoint/mcp/event-signing.js.map +1 -0
- package/dist/endpoint/mcp/events.d.ts +45 -0
- package/dist/endpoint/mcp/events.d.ts.map +1 -0
- package/dist/endpoint/mcp/events.js +308 -0
- package/dist/endpoint/mcp/events.js.map +1 -0
- package/dist/{harness-mcp-http.d.ts → endpoint/mcp/http.d.ts} +1 -1
- package/dist/endpoint/mcp/http.d.ts.map +1 -0
- package/dist/{harness-mcp-http.js → endpoint/mcp/http.js} +1 -1
- package/dist/endpoint/mcp/http.js.map +1 -0
- package/dist/endpoint/mcp/index.d.ts +10 -0
- package/dist/endpoint/mcp/index.d.ts.map +1 -0
- package/dist/endpoint/mcp/index.js +8 -0
- package/dist/endpoint/mcp/index.js.map +1 -0
- package/dist/endpoint/mcp/names.d.ts +18 -0
- package/dist/endpoint/mcp/names.d.ts.map +1 -0
- package/dist/endpoint/mcp/names.js +18 -0
- package/dist/endpoint/mcp/names.js.map +1 -0
- package/dist/{management-runtime.d.ts → endpoint/mcp/owner-tools.d.ts} +7 -7
- package/dist/endpoint/mcp/owner-tools.d.ts.map +1 -0
- package/dist/{management-runtime.js → endpoint/mcp/owner-tools.js} +2 -4
- package/dist/endpoint/mcp/owner-tools.js.map +1 -0
- package/dist/endpoint/mcp/schemas.d.ts +42 -0
- package/dist/endpoint/mcp/schemas.d.ts.map +1 -0
- package/dist/endpoint/mcp/schemas.js +89 -0
- package/dist/endpoint/mcp/schemas.js.map +1 -0
- package/dist/{harness-mcp-wire.d.ts → endpoint/mcp/tools.d.ts} +17 -14
- package/dist/endpoint/mcp/tools.d.ts.map +1 -0
- package/dist/{harness-mcp-wire.js → endpoint/mcp/tools.js} +230 -110
- package/dist/endpoint/mcp/tools.js.map +1 -0
- package/dist/endpoint/mcp/webhook.d.ts +15 -0
- package/dist/endpoint/mcp/webhook.d.ts.map +1 -0
- package/dist/endpoint/mcp/webhook.js +359 -0
- package/dist/endpoint/mcp/webhook.js.map +1 -0
- package/dist/identity/credentials.d.ts +46 -0
- package/dist/identity/credentials.d.ts.map +1 -0
- package/dist/identity/credentials.js +55 -0
- package/dist/identity/credentials.js.map +1 -0
- package/dist/identity/index.d.ts +4 -0
- package/dist/identity/index.d.ts.map +1 -0
- package/dist/identity/index.js +4 -0
- package/dist/identity/index.js.map +1 -0
- package/dist/index.d.ts +21 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +23 -5
- package/dist/index.js.map +1 -1
- package/dist/{contract.types-check.d.ts → index.types-check.d.ts} +12 -7
- package/dist/index.types-check.d.ts.map +1 -0
- package/dist/{contract.types-check.js → index.types-check.js} +6 -5
- package/dist/index.types-check.js.map +1 -0
- package/dist/{daemon/runtime/activation.d.ts → service/activation/index.d.ts} +11 -13
- package/dist/service/activation/index.d.ts.map +1 -0
- package/dist/{daemon/runtime/activation.js → service/activation/index.js} +3 -3
- package/dist/service/activation/index.js.map +1 -0
- package/dist/{daemon/configuration.d.ts → service/bootstrap.d.ts} +9 -17
- package/dist/service/bootstrap.d.ts.map +1 -0
- package/dist/service/bootstrap.js +6 -0
- package/dist/service/bootstrap.js.map +1 -0
- package/dist/service/configuration.d.ts +13 -0
- package/dist/service/configuration.d.ts.map +1 -0
- package/dist/service/configuration.js +75 -0
- package/dist/service/configuration.js.map +1 -0
- package/dist/{daemon/runtime → service}/controller.d.ts +9 -7
- package/dist/service/controller.d.ts.map +1 -0
- package/dist/service/controller.js +106 -0
- package/dist/service/controller.js.map +1 -0
- package/dist/{server.d.ts → service/index.d.ts} +7 -4
- package/dist/service/index.d.ts.map +1 -0
- package/dist/{server.js → service/index.js} +17 -15
- package/dist/service/index.js.map +1 -0
- package/dist/{server.types-check.d.ts → service/index.types-check.d.ts} +7 -7
- package/dist/service/index.types-check.d.ts.map +1 -0
- package/dist/{server.types-check.js → service/index.types-check.js} +1 -1
- package/dist/service/index.types-check.js.map +1 -0
- package/dist/{daemon/runtime/index.d.ts → service/lifecycle.d.ts} +4 -4
- package/dist/service/lifecycle.d.ts.map +1 -0
- package/dist/{daemon/runtime/index.js → service/lifecycle.js} +29 -26
- package/dist/service/lifecycle.js.map +1 -0
- package/dist/{daemon → service}/management.d.ts +3 -3
- package/dist/service/management.d.ts.map +1 -0
- package/dist/{daemon → service}/management.js +4 -14
- package/dist/service/management.js.map +1 -0
- package/dist/{daemon/registration.d.ts → service/registration/index.d.ts} +3 -3
- package/dist/service/registration/index.d.ts.map +1 -0
- package/dist/{daemon/registration.js → service/registration/index.js} +2 -3
- package/dist/service/registration/index.js.map +1 -0
- package/dist/{daemon/runtime/protocol.d.ts → service/supervision.d.ts} +17 -25
- package/dist/service/supervision.d.ts.map +1 -0
- package/dist/{daemon/runtime/protocol.js → service/supervision.js} +34 -37
- package/dist/service/supervision.js.map +1 -0
- package/dist/store/anchors.d.ts.map +1 -0
- package/dist/store/anchors.js.map +1 -0
- package/dist/store/database/index.d.ts.map +1 -0
- package/dist/store/database/index.js.map +1 -0
- package/dist/store/database/schema.d.ts.map +1 -0
- package/dist/{endpoint/store → store}/database/schema.js +42 -6
- package/dist/store/database/schema.js.map +1 -0
- package/dist/store/database/values.d.ts.map +1 -0
- package/dist/store/database/values.js.map +1 -0
- package/dist/store/inbox.d.ts +86 -0
- package/dist/store/inbox.d.ts.map +1 -0
- package/dist/store/inbox.js +269 -0
- package/dist/store/inbox.js.map +1 -0
- package/dist/store/index.d.ts +12 -0
- package/dist/store/index.d.ts.map +1 -0
- package/dist/store/index.js +8 -0
- package/dist/store/index.js.map +1 -0
- package/dist/{endpoint/store → store/queues}/deliveries.d.ts +9 -1
- package/dist/store/queues/deliveries.d.ts.map +1 -0
- package/dist/{endpoint/store → store/queues}/deliveries.js +19 -3
- package/dist/store/queues/deliveries.js.map +1 -0
- package/dist/{endpoint/store → store/queues}/dissemination.d.ts +4 -2
- package/dist/store/queues/dissemination.d.ts.map +1 -0
- package/dist/{endpoint/store → store/queues}/dissemination.js +5 -4
- package/dist/store/queues/dissemination.js.map +1 -0
- package/dist/store/queues/index.d.ts +5 -0
- package/dist/store/queues/index.d.ts.map +1 -0
- package/dist/store/queues/index.js +7 -0
- package/dist/store/queues/index.js.map +1 -0
- package/dist/{endpoint/store → store/queues}/outbound.d.ts +1 -1
- package/dist/store/queues/outbound.d.ts.map +1 -0
- package/dist/{endpoint/store → store/queues}/outbound.js +1 -1
- package/dist/store/queues/outbound.js.map +1 -0
- package/dist/{endpoint/store/management.d.ts → store/reads.d.ts} +1 -1
- package/dist/store/reads.d.ts.map +1 -0
- package/dist/{endpoint/store/management.js → store/reads.js} +2 -4
- package/dist/store/reads.js.map +1 -0
- package/dist/store/records.d.ts.map +1 -0
- package/dist/{endpoint/store → store}/records.js +1 -2
- package/dist/store/records.js.map +1 -0
- package/dist/store/rows/index.d.ts.map +1 -0
- package/dist/store/rows/index.js.map +1 -0
- package/dist/store/runtime-codec.d.ts +17 -0
- package/dist/store/runtime-codec.d.ts.map +1 -0
- package/dist/store/runtime-codec.js +32 -0
- package/dist/store/runtime-codec.js.map +1 -0
- package/dist/{endpoint/store/index.d.ts → store/store.d.ts} +2 -2
- package/dist/store/store.d.ts.map +1 -0
- package/dist/{endpoint/store/index.js → store/store.js} +34 -7
- package/dist/store/store.js.map +1 -0
- package/dist/{endpoint/store → store}/types.d.ts +41 -0
- package/dist/store/types.d.ts.map +1 -0
- package/dist/store/types.js.map +1 -0
- package/dist/transport/collectives/answer-formats.d.ts +21 -0
- package/dist/transport/collectives/answer-formats.d.ts.map +1 -0
- package/dist/transport/collectives/answer-formats.js +127 -0
- package/dist/transport/collectives/answer-formats.js.map +1 -0
- package/dist/transport/collectives/failures.d.ts +34 -0
- package/dist/transport/collectives/failures.d.ts.map +1 -0
- package/dist/transport/collectives/failures.js +40 -0
- package/dist/transport/collectives/failures.js.map +1 -0
- package/dist/transport/collectives/forms.d.ts +260 -0
- package/dist/transport/collectives/forms.d.ts.map +1 -0
- package/dist/transport/collectives/forms.js +214 -0
- package/dist/transport/collectives/forms.js.map +1 -0
- package/dist/transport/collectives/inbound.d.ts +129 -0
- package/dist/transport/collectives/inbound.d.ts.map +1 -0
- package/dist/transport/collectives/inbound.js +81 -0
- package/dist/transport/collectives/inbound.js.map +1 -0
- package/dist/transport/collectives/index.d.ts +10 -0
- package/dist/transport/collectives/index.d.ts.map +1 -0
- package/dist/transport/collectives/index.js +8 -0
- package/dist/transport/collectives/index.js.map +1 -0
- package/dist/{message-text.d.ts → transport/collectives/message-text.d.ts} +8 -4
- package/dist/transport/collectives/message-text.d.ts.map +1 -0
- package/dist/{message-text.js → transport/collectives/message-text.js} +23 -47
- package/dist/transport/collectives/message-text.js.map +1 -0
- package/dist/{endpoint/collective → transport/collectives}/operation.d.ts +35 -24
- package/dist/transport/collectives/operation.d.ts.map +1 -0
- package/dist/{endpoint/collective → transport/collectives}/operation.js +70 -105
- package/dist/transport/collectives/operation.js.map +1 -0
- package/dist/transport/collectives/part/grammar.d.ts +175 -0
- package/dist/transport/collectives/part/grammar.d.ts.map +1 -0
- package/dist/transport/collectives/part/grammar.js +222 -0
- package/dist/transport/collectives/part/grammar.js.map +1 -0
- package/dist/{endpoint/collective/wire.d.ts → transport/collectives/part/index.d.ts} +38 -51
- package/dist/transport/collectives/part/index.d.ts.map +1 -0
- package/dist/{endpoint/collective/wire.js → transport/collectives/part/index.js} +20 -122
- package/dist/transport/collectives/part/index.js.map +1 -0
- package/dist/{endpoint/collective → transport/collectives}/received-request.d.ts +2 -1
- package/dist/transport/collectives/received-request.d.ts.map +1 -0
- package/dist/transport/collectives/received-request.js.map +1 -0
- package/dist/transport/collectives/render.d.ts +40 -0
- package/dist/transport/collectives/render.d.ts.map +1 -0
- package/dist/transport/collectives/render.js +74 -0
- package/dist/transport/collectives/render.js.map +1 -0
- package/dist/{endpoint/collective → transport/collectives}/request-sends.d.ts +3 -2
- package/dist/transport/collectives/request-sends.d.ts.map +1 -0
- package/dist/transport/collectives/request-sends.js.map +1 -0
- package/dist/{endpoint/collective → transport/collectives}/shared-answers.d.ts +4 -3
- package/dist/transport/collectives/shared-answers.d.ts.map +1 -0
- package/dist/transport/collectives/shared-answers.js.map +1 -0
- package/dist/transport/collectives/validation.d.ts +31 -0
- package/dist/transport/collectives/validation.d.ts.map +1 -0
- package/dist/transport/collectives/validation.js +239 -0
- package/dist/transport/collectives/validation.js.map +1 -0
- package/dist/{endpoint/addressing/index.d.ts → transport/messaging/address.d.ts} +7 -4
- package/dist/transport/messaging/address.d.ts.map +1 -0
- package/dist/{endpoint/addressing/index.js → transport/messaging/address.js} +30 -26
- package/dist/transport/messaging/address.js.map +1 -0
- package/dist/{endpoint/protocol/index.d.ts → transport/messaging/certification.d.ts} +4 -4
- package/dist/transport/messaging/certification.d.ts.map +1 -0
- package/dist/{endpoint/protocol/index.js → transport/messaging/certification.js} +15 -10
- package/dist/transport/messaging/certification.js.map +1 -0
- package/dist/{endpoint/engine-dissemination.d.ts → transport/messaging/dissemination.d.ts} +3 -3
- package/dist/transport/messaging/dissemination.d.ts.map +1 -0
- package/dist/{endpoint/engine-dissemination.js → transport/messaging/dissemination.js} +7 -6
- package/dist/transport/messaging/dissemination.js.map +1 -0
- package/dist/transport/messaging/errors.d.ts +50 -0
- package/dist/transport/messaging/errors.d.ts.map +1 -0
- package/dist/transport/messaging/errors.js +64 -0
- package/dist/transport/messaging/errors.js.map +1 -0
- package/dist/{endpoint/protocol → transport/messaging}/evidence.d.ts +3 -3
- package/dist/transport/messaging/evidence.d.ts.map +1 -0
- package/dist/{endpoint/protocol → transport/messaging}/evidence.js +1 -1
- package/dist/transport/messaging/evidence.js.map +1 -0
- package/dist/{endpoint/engine.d.ts → transport/messaging/index.d.ts} +4 -4
- package/dist/transport/messaging/index.d.ts.map +1 -0
- package/dist/{endpoint/engine.js → transport/messaging/index.js} +25 -9
- package/dist/transport/messaging/index.js.map +1 -0
- package/dist/transport/messaging/message.d.ts +112 -0
- package/dist/transport/messaging/message.d.ts.map +1 -0
- package/dist/transport/messaging/message.js +38 -0
- package/dist/transport/messaging/message.js.map +1 -0
- package/dist/{endpoint/recovery → transport/messaging}/reanchor/empty.d.ts +5 -5
- package/dist/transport/messaging/reanchor/empty.d.ts.map +1 -0
- package/dist/{endpoint/recovery → transport/messaging}/reanchor/empty.js +3 -3
- package/dist/transport/messaging/reanchor/empty.js.map +1 -0
- package/dist/{endpoint/recovery → transport/messaging}/reanchor/index.d.ts +3 -3
- package/dist/transport/messaging/reanchor/index.d.ts.map +1 -0
- package/dist/{endpoint/recovery → transport/messaging}/reanchor/index.js +27 -12
- package/dist/transport/messaging/reanchor/index.js.map +1 -0
- package/dist/{endpoint/engine-durability.d.ts → transport/messaging/records/index.d.ts} +9 -6
- package/dist/transport/messaging/records/index.d.ts.map +1 -0
- package/dist/{endpoint/engine-durability.js → transport/messaging/records/index.js} +9 -15
- package/dist/transport/messaging/records/index.js.map +1 -0
- package/dist/{endpoint → transport/messaging}/recovery/barrier.d.ts +1 -1
- package/dist/transport/messaging/recovery/barrier.d.ts.map +1 -0
- package/dist/transport/messaging/recovery/barrier.js.map +1 -0
- package/dist/{endpoint/recovery/store-evidence.d.ts → transport/messaging/recovery/evidence.d.ts} +5 -5
- package/dist/transport/messaging/recovery/evidence.d.ts.map +1 -0
- package/dist/{endpoint/recovery/store-evidence.js → transport/messaging/recovery/evidence.js} +3 -3
- package/dist/transport/messaging/recovery/evidence.js.map +1 -0
- package/dist/{endpoint → transport/messaging}/recovery/index.d.ts +4 -4
- package/dist/transport/messaging/recovery/index.d.ts.map +1 -0
- package/dist/{endpoint → transport/messaging}/recovery/index.js +41 -32
- package/dist/transport/messaging/recovery/index.js.map +1 -0
- package/dist/{endpoint/recovery/store.d.ts → transport/messaging/recovery/persistence.d.ts} +5 -5
- package/dist/transport/messaging/recovery/persistence.d.ts.map +1 -0
- package/dist/{endpoint/recovery/store.js → transport/messaging/recovery/persistence.js} +4 -4
- package/dist/transport/messaging/recovery/persistence.js.map +1 -0
- package/dist/{endpoint/recovery/state.d.ts → transport/messaging/recovery-session/index.d.ts} +6 -6
- package/dist/transport/messaging/recovery-session/index.d.ts.map +1 -0
- package/dist/{endpoint/recovery/state.js → transport/messaging/recovery-session/index.js} +3 -3
- package/dist/transport/messaging/recovery-session/index.js.map +1 -0
- package/dist/{endpoint/engine-types.d.ts → transport/messaging/runtime/index.d.ts} +22 -5
- package/dist/transport/messaging/runtime/index.d.ts.map +1 -0
- package/dist/{endpoint/engine-types.js → transport/messaging/runtime/index.js} +1 -1
- package/dist/transport/messaging/runtime/index.js.map +1 -0
- package/dist/{endpoint/engine-send.d.ts → transport/messaging/send.d.ts} +5 -4
- package/dist/transport/messaging/send.d.ts.map +1 -0
- package/dist/{endpoint/engine-send.js → transport/messaging/send.js} +4 -4
- package/dist/transport/messaging/send.js.map +1 -0
- package/dist/transport/router/index.d.ts.map +1 -0
- package/dist/{endpoint/router-worker → transport/router}/index.js +1 -1
- package/dist/transport/router/index.js.map +1 -0
- package/dist/transport/router/outage.d.ts.map +1 -0
- package/dist/transport/router/outage.js.map +1 -0
- package/dist/{endpoint/router-worker → transport/router}/types.d.ts +3 -4
- package/dist/transport/router/types.d.ts.map +1 -0
- package/dist/transport/router/types.js.map +1 -0
- package/dist/{endpoint/representation-canonical.d.ts → transport/wire/encoding/canonical.d.ts} +1 -2
- package/dist/transport/wire/encoding/canonical.d.ts.map +1 -0
- package/dist/{endpoint/representation-canonical.js → transport/wire/encoding/canonical.js} +2 -2
- package/dist/transport/wire/encoding/canonical.js.map +1 -0
- package/dist/{endpoint/representation-codec.d.ts → transport/wire/encoding/codec.d.ts} +5 -9
- package/dist/transport/wire/encoding/codec.d.ts.map +1 -0
- package/dist/{endpoint/representation-codec.js → transport/wire/encoding/codec.js} +7 -27
- package/dist/transport/wire/encoding/codec.js.map +1 -0
- package/dist/transport/wire/encoding/index.d.ts +4 -0
- package/dist/transport/wire/encoding/index.d.ts.map +1 -0
- package/dist/transport/wire/encoding/index.js +6 -0
- package/dist/transport/wire/encoding/index.js.map +1 -0
- package/dist/transport/wire/index.d.ts +6 -0
- package/dist/transport/wire/index.d.ts.map +1 -0
- package/dist/transport/wire/index.js +9 -0
- package/dist/transport/wire/index.js.map +1 -0
- package/dist/{endpoint/representation-schemas.d.ts → transport/wire/schemas.d.ts} +76 -98
- package/dist/transport/wire/schemas.d.ts.map +1 -0
- package/dist/{endpoint/representation-schemas.js → transport/wire/schemas.js} +7 -19
- package/dist/transport/wire/schemas.js.map +1 -0
- package/dist/transport/wire/values.d.ts +114 -0
- package/dist/transport/wire/values.d.ts.map +1 -0
- package/dist/transport/wire/values.js +192 -0
- package/dist/transport/wire/values.js.map +1 -0
- package/dist/{endpoint/representation-verification.d.ts → transport/wire/verification.d.ts} +3 -4
- package/dist/transport/wire/verification.d.ts.map +1 -0
- package/dist/{endpoint/representation-verification.js → transport/wire/verification.js} +4 -4
- package/dist/transport/wire/verification.js.map +1 -0
- package/package.json +6 -6
- package/dist/client-runtime.d.ts.map +0 -1
- package/dist/client-runtime.js.map +0 -1
- package/dist/contract.d.ts +0 -721
- package/dist/contract.d.ts.map +0 -1
- package/dist/contract.js +0 -441
- package/dist/contract.js.map +0 -1
- package/dist/contract.types-check.d.ts.map +0 -1
- package/dist/contract.types-check.js.map +0 -1
- package/dist/daemon/configuration.d.ts.map +0 -1
- package/dist/daemon/configuration.js +0 -75
- package/dist/daemon/configuration.js.map +0 -1
- package/dist/daemon/management.d.ts.map +0 -1
- package/dist/daemon/management.js.map +0 -1
- package/dist/daemon/registration.d.ts.map +0 -1
- package/dist/daemon/registration.js.map +0 -1
- package/dist/daemon/runtime/activation.d.ts.map +0 -1
- package/dist/daemon/runtime/activation.js.map +0 -1
- package/dist/daemon/runtime/controller.d.ts.map +0 -1
- package/dist/daemon/runtime/controller.js +0 -138
- package/dist/daemon/runtime/controller.js.map +0 -1
- package/dist/daemon/runtime/history-export.d.ts +0 -33
- package/dist/daemon/runtime/history-export.d.ts.map +0 -1
- package/dist/daemon/runtime/history-export.js.map +0 -1
- package/dist/daemon/runtime/index.d.ts.map +0 -1
- package/dist/daemon/runtime/index.js.map +0 -1
- package/dist/daemon/runtime/pending-delivery.d.ts +0 -49
- package/dist/daemon/runtime/pending-delivery.d.ts.map +0 -1
- package/dist/daemon/runtime/pending-delivery.js.map +0 -1
- package/dist/daemon/runtime/protocol.d.ts.map +0 -1
- package/dist/daemon/runtime/protocol.js.map +0 -1
- package/dist/endpoint/addressing/index.d.ts.map +0 -1
- package/dist/endpoint/addressing/index.js.map +0 -1
- package/dist/endpoint/collective/operation.d.ts.map +0 -1
- package/dist/endpoint/collective/operation.js.map +0 -1
- package/dist/endpoint/collective/received-request.d.ts.map +0 -1
- package/dist/endpoint/collective/received-request.js.map +0 -1
- package/dist/endpoint/collective/request-sends.d.ts.map +0 -1
- package/dist/endpoint/collective/request-sends.js.map +0 -1
- package/dist/endpoint/collective/shared-answers.d.ts.map +0 -1
- package/dist/endpoint/collective/shared-answers.js.map +0 -1
- package/dist/endpoint/collective/validation.d.ts +0 -49
- package/dist/endpoint/collective/validation.d.ts.map +0 -1
- package/dist/endpoint/collective/validation.js +0 -97
- package/dist/endpoint/collective/validation.js.map +0 -1
- package/dist/endpoint/collective/wire.d.ts.map +0 -1
- package/dist/endpoint/collective/wire.js.map +0 -1
- package/dist/endpoint/engine-dissemination.d.ts.map +0 -1
- package/dist/endpoint/engine-dissemination.js.map +0 -1
- package/dist/endpoint/engine-durability.d.ts.map +0 -1
- package/dist/endpoint/engine-durability.js.map +0 -1
- package/dist/endpoint/engine-send.d.ts.map +0 -1
- package/dist/endpoint/engine-send.js.map +0 -1
- package/dist/endpoint/engine-types.d.ts.map +0 -1
- package/dist/endpoint/engine-types.js.map +0 -1
- package/dist/endpoint/engine.d.ts.map +0 -1
- package/dist/endpoint/engine.js.map +0 -1
- package/dist/endpoint/protocol/evidence.d.ts.map +0 -1
- package/dist/endpoint/protocol/evidence.js.map +0 -1
- package/dist/endpoint/protocol/index.d.ts.map +0 -1
- package/dist/endpoint/protocol/index.js.map +0 -1
- package/dist/endpoint/recovery/barrier.d.ts.map +0 -1
- package/dist/endpoint/recovery/barrier.js.map +0 -1
- package/dist/endpoint/recovery/index.d.ts.map +0 -1
- package/dist/endpoint/recovery/index.js.map +0 -1
- package/dist/endpoint/recovery/reanchor/empty.d.ts.map +0 -1
- package/dist/endpoint/recovery/reanchor/empty.js.map +0 -1
- package/dist/endpoint/recovery/reanchor/index.d.ts.map +0 -1
- package/dist/endpoint/recovery/reanchor/index.js.map +0 -1
- package/dist/endpoint/recovery/state.d.ts.map +0 -1
- package/dist/endpoint/recovery/state.js.map +0 -1
- package/dist/endpoint/recovery/store-evidence.d.ts.map +0 -1
- package/dist/endpoint/recovery/store-evidence.js.map +0 -1
- package/dist/endpoint/recovery/store.d.ts.map +0 -1
- package/dist/endpoint/recovery/store.js.map +0 -1
- package/dist/endpoint/representation-canonical.d.ts.map +0 -1
- package/dist/endpoint/representation-canonical.js.map +0 -1
- package/dist/endpoint/representation-codec.d.ts.map +0 -1
- package/dist/endpoint/representation-codec.js.map +0 -1
- package/dist/endpoint/representation-schemas.d.ts.map +0 -1
- package/dist/endpoint/representation-schemas.js.map +0 -1
- package/dist/endpoint/representation-verification.d.ts.map +0 -1
- package/dist/endpoint/representation-verification.js.map +0 -1
- package/dist/endpoint/representation.d.ts +0 -6
- package/dist/endpoint/representation.d.ts.map +0 -1
- package/dist/endpoint/representation.js +0 -8
- package/dist/endpoint/representation.js.map +0 -1
- package/dist/endpoint/router-worker/index.d.ts.map +0 -1
- package/dist/endpoint/router-worker/index.js.map +0 -1
- package/dist/endpoint/router-worker/outage.d.ts.map +0 -1
- package/dist/endpoint/router-worker/outage.js.map +0 -1
- package/dist/endpoint/router-worker/types.d.ts.map +0 -1
- package/dist/endpoint/router-worker/types.js.map +0 -1
- package/dist/endpoint/store/anchors.d.ts.map +0 -1
- package/dist/endpoint/store/anchors.js.map +0 -1
- package/dist/endpoint/store/database/index.d.ts.map +0 -1
- package/dist/endpoint/store/database/index.js.map +0 -1
- package/dist/endpoint/store/database/schema.d.ts.map +0 -1
- package/dist/endpoint/store/database/schema.js.map +0 -1
- package/dist/endpoint/store/database/values.d.ts.map +0 -1
- package/dist/endpoint/store/database/values.js.map +0 -1
- package/dist/endpoint/store/deliveries.d.ts.map +0 -1
- package/dist/endpoint/store/deliveries.js.map +0 -1
- package/dist/endpoint/store/dissemination.d.ts.map +0 -1
- package/dist/endpoint/store/dissemination.js.map +0 -1
- package/dist/endpoint/store/index.d.ts.map +0 -1
- package/dist/endpoint/store/index.js.map +0 -1
- package/dist/endpoint/store/management.d.ts.map +0 -1
- package/dist/endpoint/store/management.js.map +0 -1
- package/dist/endpoint/store/outbound.d.ts.map +0 -1
- package/dist/endpoint/store/outbound.js.map +0 -1
- package/dist/endpoint/store/records.d.ts.map +0 -1
- package/dist/endpoint/store/records.js.map +0 -1
- package/dist/endpoint/store/rows/index.d.ts.map +0 -1
- package/dist/endpoint/store/rows/index.js.map +0 -1
- package/dist/endpoint/store/types.d.ts.map +0 -1
- package/dist/endpoint/store/types.js.map +0 -1
- package/dist/endpoint/store.d.ts +0 -10
- package/dist/endpoint/store.d.ts.map +0 -1
- package/dist/endpoint/store.js +0 -6
- package/dist/endpoint/store.js.map +0 -1
- package/dist/harness-mcp-contract.d.ts.map +0 -1
- package/dist/harness-mcp-contract.js +0 -113
- package/dist/harness-mcp-contract.js.map +0 -1
- package/dist/harness-mcp-http.d.ts.map +0 -1
- package/dist/harness-mcp-http.js.map +0 -1
- package/dist/harness-mcp-subscription.d.ts +0 -30
- package/dist/harness-mcp-subscription.d.ts.map +0 -1
- package/dist/harness-mcp-subscription.js +0 -361
- package/dist/harness-mcp-subscription.js.map +0 -1
- package/dist/harness-mcp-wire.d.ts.map +0 -1
- package/dist/harness-mcp-wire.js.map +0 -1
- package/dist/management-runtime.d.ts.map +0 -1
- package/dist/management-runtime.js.map +0 -1
- package/dist/message-text.d.ts.map +0 -1
- package/dist/message-text.js.map +0 -1
- package/dist/server.d.ts.map +0 -1
- package/dist/server.js.map +0 -1
- package/dist/server.types-check.d.ts.map +0 -1
- package/dist/server.types-check.js.map +0 -1
- /package/dist/{endpoint/store → store}/anchors.d.ts +0 -0
- /package/dist/{endpoint/store → store}/anchors.js +0 -0
- /package/dist/{endpoint/store → store}/database/index.d.ts +0 -0
- /package/dist/{endpoint/store → store}/database/index.js +0 -0
- /package/dist/{endpoint/store → store}/database/schema.d.ts +0 -0
- /package/dist/{endpoint/store → store}/database/values.d.ts +0 -0
- /package/dist/{endpoint/store → store}/database/values.js +0 -0
- /package/dist/{endpoint/store → store}/records.d.ts +0 -0
- /package/dist/{endpoint/store → store}/rows/index.d.ts +0 -0
- /package/dist/{endpoint/store → store}/rows/index.js +0 -0
- /package/dist/{endpoint/store → store}/types.js +0 -0
- /package/dist/{endpoint/collective → transport/collectives}/received-request.js +0 -0
- /package/dist/{endpoint/collective → transport/collectives}/request-sends.js +0 -0
- /package/dist/{endpoint/collective → transport/collectives}/shared-answers.js +0 -0
- /package/dist/{endpoint → transport/messaging}/recovery/barrier.js +0 -0
- /package/dist/{endpoint/router-worker → transport/router}/index.d.ts +0 -0
- /package/dist/{endpoint/router-worker → transport/router}/outage.d.ts +0 -0
- /package/dist/{endpoint/router-worker → transport/router}/outage.js +0 -0
- /package/dist/{endpoint/router-worker → transport/router}/types.js +0 -0
package/dist/contract.d.ts
DELETED
|
@@ -1,721 +0,0 @@
|
|
|
1
|
-
/** @file Public runtime capability for one configured MoltZap endpoint. */
|
|
2
|
-
import { type Effect, Schema, type Stream } from "effect";
|
|
3
|
-
/** An explicit direct destination using one canonical Registry name. */
|
|
4
|
-
export declare const AgentAddress: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">;
|
|
5
|
-
/** A validated direct destination. */
|
|
6
|
-
export type AgentAddress = typeof AgentAddress.Type;
|
|
7
|
-
/** A complete fixed-member group address in unsigned ASCII name order. */
|
|
8
|
-
export declare const GroupAddress: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "GroupAddress">;
|
|
9
|
-
/** A validated canonical complete group destination. */
|
|
10
|
-
export type GroupAddress = typeof GroupAddress.Type;
|
|
11
|
-
/** Either accepted destination input, including noncanonical group order. */
|
|
12
|
-
export declare const MessageAddressInput: Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">;
|
|
13
|
-
/** A validated explicit destination input. */
|
|
14
|
-
export type MessageAddressInput = typeof MessageAddressInput.Type;
|
|
15
|
-
/** Opaque identity minted for one addressed-send invocation. */
|
|
16
|
-
export declare const PostId: Schema.brand<Schema.filter<typeof Schema.String>, "PostId">;
|
|
17
|
-
/** A validated author-scoped post identity. */
|
|
18
|
-
export type PostId = typeof PostId.Type;
|
|
19
|
-
/** A value accepted by the closed semantic content boundary. */
|
|
20
|
-
export type JsonValue = null | boolean | number | string | readonly JsonValue[] | {
|
|
21
|
-
readonly [key: string]: JsonValue;
|
|
22
|
-
};
|
|
23
|
-
/** Runtime validation for the closed recursive JSON value. */
|
|
24
|
-
export declare const JsonValue: Schema.Schema<JsonValue>;
|
|
25
|
-
/** One exact semantic part of a message. */
|
|
26
|
-
export declare const ContentPart: Schema.Union<[Schema.Struct<{
|
|
27
|
-
type: Schema.Literal<["text"]>;
|
|
28
|
-
text: Schema.filter<typeof Schema.String>;
|
|
29
|
-
}>, Schema.Struct<{
|
|
30
|
-
type: Schema.Literal<["data"]>;
|
|
31
|
-
value: Schema.Schema<JsonValue, JsonValue, never>;
|
|
32
|
-
}>]>;
|
|
33
|
-
/** A validated semantic message part. */
|
|
34
|
-
export type ContentPart = typeof ContentPart.Type;
|
|
35
|
-
/** Nonempty semantic content whose canonical JSON is at most 32,768 bytes. */
|
|
36
|
-
export declare const Content: Schema.refine<readonly [{
|
|
37
|
-
readonly type: "text";
|
|
38
|
-
readonly text: string;
|
|
39
|
-
} | {
|
|
40
|
-
readonly type: "data";
|
|
41
|
-
readonly value: JsonValue;
|
|
42
|
-
}, ...({
|
|
43
|
-
readonly type: "text";
|
|
44
|
-
readonly text: string;
|
|
45
|
-
} | {
|
|
46
|
-
readonly type: "data";
|
|
47
|
-
readonly value: JsonValue;
|
|
48
|
-
})[]], Schema.NonEmptyArray<Schema.Union<[Schema.Struct<{
|
|
49
|
-
type: Schema.Literal<["text"]>;
|
|
50
|
-
text: Schema.filter<typeof Schema.String>;
|
|
51
|
-
}>, Schema.Struct<{
|
|
52
|
-
type: Schema.Literal<["data"]>;
|
|
53
|
-
value: Schema.Schema<JsonValue, JsonValue, never>;
|
|
54
|
-
}>]>>>;
|
|
55
|
-
/** Validated nonempty semantic content. */
|
|
56
|
-
export type Content = typeof Content.Type;
|
|
57
|
-
/**
|
|
58
|
-
* Identity of one gather or all_gather, minted by the requesting endpoint.
|
|
59
|
-
* The request, each member's answer post, an all_gather's close, the result
|
|
60
|
-
* and any failure carry it. An answer that matches no single open request is
|
|
61
|
-
* refused under an id minted for the refusal, so its failure is named too.
|
|
62
|
-
*/
|
|
63
|
-
export declare const CollectiveId: Schema.brand<Schema.filter<typeof Schema.String>, "CollectiveId">;
|
|
64
|
-
/** A validated collective operation id. */
|
|
65
|
-
export type CollectiveId = typeof CollectiveId.Type;
|
|
66
|
-
/**
|
|
67
|
-
* The MCP form-mode `requestedSchema` of a collecting operation: a flat object
|
|
68
|
-
* of primitive properties. This schema fixes its outline; the sending endpoint
|
|
69
|
-
* checks each property against the MCP form-mode grammar before any post.
|
|
70
|
-
*/
|
|
71
|
-
export declare const RequestedSchema: Schema.Struct<{
|
|
72
|
-
$schema: Schema.optionalWith<typeof Schema.String, {
|
|
73
|
-
exact: true;
|
|
74
|
-
}>;
|
|
75
|
-
type: Schema.Literal<["object"]>;
|
|
76
|
-
properties: Schema.Record$<typeof Schema.String, Schema.Record$<typeof Schema.String, Schema.Schema<JsonValue, JsonValue, never>>>;
|
|
77
|
-
required: Schema.optionalWith<Schema.Array$<typeof Schema.String>, {
|
|
78
|
-
exact: true;
|
|
79
|
-
}>;
|
|
80
|
-
}>;
|
|
81
|
-
/** A form-mode schema as stated by its requester. */
|
|
82
|
-
export type RequestedSchema = typeof RequestedSchema.Type;
|
|
83
|
-
/**
|
|
84
|
-
* One answer to a collecting operation, field by field. Its value space is MCP
|
|
85
|
-
* `ElicitResult` content's; the request's schema decides which fields apply.
|
|
86
|
-
*/
|
|
87
|
-
export declare const AnswerContent: Schema.Record$<typeof Schema.String, Schema.Union<[typeof Schema.String, Schema.filter<typeof Schema.Number>, typeof Schema.Boolean, Schema.Array$<typeof Schema.String>]>>;
|
|
88
|
-
/** A structurally valid answer. */
|
|
89
|
-
export type AnswerContent = typeof AnswerContent.Type;
|
|
90
|
-
/** The longest deadline a collecting operation may state: 30 days, in seconds. */
|
|
91
|
-
export declare const MAXIMUM_DEADLINE_SECONDS = 2592000;
|
|
92
|
-
/** A collecting operation's relative deadline: whole seconds, up to 30 days. */
|
|
93
|
-
export declare const DeadlineSeconds: Schema.filter<Schema.filter<typeof Schema.Number>>;
|
|
94
|
-
/** The collective operation one send performs, discriminated by `op`. */
|
|
95
|
-
declare const CollectiveOperation: Schema.Union<[Schema.Struct<{
|
|
96
|
-
op: Schema.optionalWith<Schema.Literal<["multicast"]>, {
|
|
97
|
-
exact: true;
|
|
98
|
-
}>;
|
|
99
|
-
}>, Schema.Struct<{
|
|
100
|
-
op: Schema.Literal<["gather", "all_gather"]>;
|
|
101
|
-
deadline: Schema.filter<Schema.filter<typeof Schema.Number>>;
|
|
102
|
-
requestedSchema: Schema.Struct<{
|
|
103
|
-
$schema: Schema.optionalWith<typeof Schema.String, {
|
|
104
|
-
exact: true;
|
|
105
|
-
}>;
|
|
106
|
-
type: Schema.Literal<["object"]>;
|
|
107
|
-
properties: Schema.Record$<typeof Schema.String, Schema.Record$<typeof Schema.String, Schema.Schema<JsonValue, JsonValue, never>>>;
|
|
108
|
-
required: Schema.optionalWith<Schema.Array$<typeof Schema.String>, {
|
|
109
|
-
exact: true;
|
|
110
|
-
}>;
|
|
111
|
-
}>;
|
|
112
|
-
}>]>;
|
|
113
|
-
/** A validated collective operation. */
|
|
114
|
-
export type CollectiveOperation = typeof CollectiveOperation.Type;
|
|
115
|
-
/**
|
|
116
|
-
* A member's answer to the one request open in the conversation it is sent
|
|
117
|
-
* to: the requester's direct conversation for a gather, the group for an
|
|
118
|
-
* all_gather. It is MCP's `ElicitResult`; only `accept` carries content,
|
|
119
|
-
* valid against the request's schema.
|
|
120
|
-
*/
|
|
121
|
-
declare const CollectiveResponse: Schema.Union<[Schema.Struct<{
|
|
122
|
-
action: Schema.Literal<["accept"]>;
|
|
123
|
-
content: Schema.Record$<typeof Schema.String, Schema.Union<[typeof Schema.String, Schema.filter<typeof Schema.Number>, typeof Schema.Boolean, Schema.Array$<typeof Schema.String>]>>;
|
|
124
|
-
}>, Schema.Struct<{
|
|
125
|
-
action: Schema.Literal<["decline"]>;
|
|
126
|
-
}>]>;
|
|
127
|
-
/** A validated collective response. */
|
|
128
|
-
export type CollectiveResponse = typeof CollectiveResponse.Type;
|
|
129
|
-
/**
|
|
130
|
-
* One send to one address: text with its collective operation, multicast
|
|
131
|
-
* when `collective` is omitted, or an answer to the request open in that
|
|
132
|
-
* address's conversation. `parseMessageText` reads both from a message's
|
|
133
|
-
* text.
|
|
134
|
-
*/
|
|
135
|
-
export declare const SendInput: Schema.Union<[Schema.Struct<{
|
|
136
|
-
to: Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">;
|
|
137
|
-
text: Schema.filter<typeof Schema.String>;
|
|
138
|
-
collective: Schema.optionalWith<Schema.Union<[Schema.Struct<{
|
|
139
|
-
op: Schema.optionalWith<Schema.Literal<["multicast"]>, {
|
|
140
|
-
exact: true;
|
|
141
|
-
}>;
|
|
142
|
-
}>, Schema.Struct<{
|
|
143
|
-
op: Schema.Literal<["gather", "all_gather"]>;
|
|
144
|
-
deadline: Schema.filter<Schema.filter<typeof Schema.Number>>;
|
|
145
|
-
requestedSchema: Schema.Struct<{
|
|
146
|
-
$schema: Schema.optionalWith<typeof Schema.String, {
|
|
147
|
-
exact: true;
|
|
148
|
-
}>;
|
|
149
|
-
type: Schema.Literal<["object"]>;
|
|
150
|
-
properties: Schema.Record$<typeof Schema.String, Schema.Record$<typeof Schema.String, Schema.Schema<JsonValue, JsonValue, never>>>;
|
|
151
|
-
required: Schema.optionalWith<Schema.Array$<typeof Schema.String>, {
|
|
152
|
-
exact: true;
|
|
153
|
-
}>;
|
|
154
|
-
}>;
|
|
155
|
-
}>]>, {
|
|
156
|
-
exact: true;
|
|
157
|
-
}>;
|
|
158
|
-
}>, Schema.Struct<{
|
|
159
|
-
to: Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">;
|
|
160
|
-
collectiveResponse: Schema.Union<[Schema.Struct<{
|
|
161
|
-
action: Schema.Literal<["accept"]>;
|
|
162
|
-
content: Schema.Record$<typeof Schema.String, Schema.Union<[typeof Schema.String, Schema.filter<typeof Schema.Number>, typeof Schema.Boolean, Schema.Array$<typeof Schema.String>]>>;
|
|
163
|
-
}>, Schema.Struct<{
|
|
164
|
-
action: Schema.Literal<["decline"]>;
|
|
165
|
-
}>]>;
|
|
166
|
-
}>]>;
|
|
167
|
-
/** Validated input for one send. */
|
|
168
|
-
export type SendInput = typeof SendInput.Type;
|
|
169
|
-
/**
|
|
170
|
-
* Where a refused collecting operation or response reports its error:
|
|
171
|
-
* returned to the caller, or emitted as an `operationFailed` item while the
|
|
172
|
-
* send completes.
|
|
173
|
-
*/
|
|
174
|
-
export type FailureDelivery = "result" | "inbound";
|
|
175
|
-
declare const sendFailure: Schema.Literal<["invalid-address", "unknown-agent", "membership-invalid", "content-invalid", "not-registered", "version-mismatch", "certification-unavailable", "persistence-failed", "network-unavailable"]>;
|
|
176
|
-
type SendFailure = typeof sendFailure.Type;
|
|
177
|
-
/** What a completed send returns: a collecting operation names its id. */
|
|
178
|
-
export interface SendResult {
|
|
179
|
-
readonly operationId?: CollectiveId;
|
|
180
|
-
}
|
|
181
|
-
declare const directMessage: Schema.filter<Schema.Struct<{
|
|
182
|
-
kind: Schema.Literal<["direct"]>;
|
|
183
|
-
postId: Schema.brand<Schema.filter<typeof Schema.String>, "PostId">;
|
|
184
|
-
address: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">;
|
|
185
|
-
sender: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">;
|
|
186
|
-
content: Schema.refine<readonly [{
|
|
187
|
-
readonly type: "text";
|
|
188
|
-
readonly text: string;
|
|
189
|
-
} | {
|
|
190
|
-
readonly type: "data";
|
|
191
|
-
readonly value: JsonValue;
|
|
192
|
-
}, ...({
|
|
193
|
-
readonly type: "text";
|
|
194
|
-
readonly text: string;
|
|
195
|
-
} | {
|
|
196
|
-
readonly type: "data";
|
|
197
|
-
readonly value: JsonValue;
|
|
198
|
-
})[]], Schema.NonEmptyArray<Schema.Union<[Schema.Struct<{
|
|
199
|
-
type: Schema.Literal<["text"]>;
|
|
200
|
-
text: Schema.filter<typeof Schema.String>;
|
|
201
|
-
}>, Schema.Struct<{
|
|
202
|
-
type: Schema.Literal<["data"]>;
|
|
203
|
-
value: Schema.Schema<JsonValue, JsonValue, never>;
|
|
204
|
-
}>]>>>;
|
|
205
|
-
}>>;
|
|
206
|
-
declare const groupMessage: Schema.filter<Schema.Struct<{
|
|
207
|
-
kind: Schema.Literal<["group"]>;
|
|
208
|
-
postId: Schema.brand<Schema.filter<typeof Schema.String>, "PostId">;
|
|
209
|
-
address: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "GroupAddress">;
|
|
210
|
-
sender: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">;
|
|
211
|
-
members: Schema.filter<Schema.TupleType<readonly [Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">, Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">, Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">], [Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">]>>;
|
|
212
|
-
content: Schema.refine<readonly [{
|
|
213
|
-
readonly type: "text";
|
|
214
|
-
readonly text: string;
|
|
215
|
-
} | {
|
|
216
|
-
readonly type: "data";
|
|
217
|
-
readonly value: JsonValue;
|
|
218
|
-
}, ...({
|
|
219
|
-
readonly type: "text";
|
|
220
|
-
readonly text: string;
|
|
221
|
-
} | {
|
|
222
|
-
readonly type: "data";
|
|
223
|
-
readonly value: JsonValue;
|
|
224
|
-
})[]], Schema.NonEmptyArray<Schema.Union<[Schema.Struct<{
|
|
225
|
-
type: Schema.Literal<["text"]>;
|
|
226
|
-
text: Schema.filter<typeof Schema.String>;
|
|
227
|
-
}>, Schema.Struct<{
|
|
228
|
-
type: Schema.Literal<["data"]>;
|
|
229
|
-
value: Schema.Schema<JsonValue, JsonValue, never>;
|
|
230
|
-
}>]>>>;
|
|
231
|
-
}>>;
|
|
232
|
-
/** One certified remote-authored direct message. */
|
|
233
|
-
export type DirectMessage = typeof directMessage.Type;
|
|
234
|
-
/** One certified remote-authored fixed-group message. */
|
|
235
|
-
export type GroupMessage = typeof groupMessage.Type;
|
|
236
|
-
/** One certified remote-authored post, direct or to a fixed group. */
|
|
237
|
-
export declare const InboundMessage: Schema.Union<[Schema.filter<Schema.Struct<{
|
|
238
|
-
kind: Schema.Literal<["direct"]>;
|
|
239
|
-
postId: Schema.brand<Schema.filter<typeof Schema.String>, "PostId">;
|
|
240
|
-
address: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">;
|
|
241
|
-
sender: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">;
|
|
242
|
-
content: Schema.refine<readonly [{
|
|
243
|
-
readonly type: "text";
|
|
244
|
-
readonly text: string;
|
|
245
|
-
} | {
|
|
246
|
-
readonly type: "data";
|
|
247
|
-
readonly value: JsonValue;
|
|
248
|
-
}, ...({
|
|
249
|
-
readonly type: "text";
|
|
250
|
-
readonly text: string;
|
|
251
|
-
} | {
|
|
252
|
-
readonly type: "data";
|
|
253
|
-
readonly value: JsonValue;
|
|
254
|
-
})[]], Schema.NonEmptyArray<Schema.Union<[Schema.Struct<{
|
|
255
|
-
type: Schema.Literal<["text"]>;
|
|
256
|
-
text: Schema.filter<typeof Schema.String>;
|
|
257
|
-
}>, Schema.Struct<{
|
|
258
|
-
type: Schema.Literal<["data"]>;
|
|
259
|
-
value: Schema.Schema<JsonValue, JsonValue, never>;
|
|
260
|
-
}>]>>>;
|
|
261
|
-
}>>, Schema.filter<Schema.Struct<{
|
|
262
|
-
kind: Schema.Literal<["group"]>;
|
|
263
|
-
postId: Schema.brand<Schema.filter<typeof Schema.String>, "PostId">;
|
|
264
|
-
address: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "GroupAddress">;
|
|
265
|
-
sender: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">;
|
|
266
|
-
members: Schema.filter<Schema.TupleType<readonly [Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">, Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">, Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">], [Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">]>>;
|
|
267
|
-
content: Schema.refine<readonly [{
|
|
268
|
-
readonly type: "text";
|
|
269
|
-
readonly text: string;
|
|
270
|
-
} | {
|
|
271
|
-
readonly type: "data";
|
|
272
|
-
readonly value: JsonValue;
|
|
273
|
-
}, ...({
|
|
274
|
-
readonly type: "text";
|
|
275
|
-
readonly text: string;
|
|
276
|
-
} | {
|
|
277
|
-
readonly type: "data";
|
|
278
|
-
readonly value: JsonValue;
|
|
279
|
-
})[]], Schema.NonEmptyArray<Schema.Union<[Schema.Struct<{
|
|
280
|
-
type: Schema.Literal<["text"]>;
|
|
281
|
-
text: Schema.filter<typeof Schema.String>;
|
|
282
|
-
}>, Schema.Struct<{
|
|
283
|
-
type: Schema.Literal<["data"]>;
|
|
284
|
-
value: Schema.Schema<JsonValue, JsonValue, never>;
|
|
285
|
-
}>]>>>;
|
|
286
|
-
}>>]>;
|
|
287
|
-
/** A validated direct or group post. */
|
|
288
|
-
export type InboundMessage = typeof InboundMessage.Type;
|
|
289
|
-
/**
|
|
290
|
-
* One member's outcome in a completed gather or all_gather, discriminated by
|
|
291
|
-
* `kind`. `no-answer` covers every member that did not answer: one whose
|
|
292
|
-
* request post was refused or not certified in time, and one silent at the
|
|
293
|
-
* deadline.
|
|
294
|
-
*/
|
|
295
|
-
declare const memberOutcome: Schema.Union<[Schema.Struct<{
|
|
296
|
-
kind: Schema.Literal<["answered"]>;
|
|
297
|
-
content: Schema.Record$<typeof Schema.String, Schema.Union<[typeof Schema.String, Schema.filter<typeof Schema.Number>, typeof Schema.Boolean, Schema.Array$<typeof Schema.String>]>>;
|
|
298
|
-
}>, Schema.Struct<{
|
|
299
|
-
kind: Schema.Literal<["declined"]>;
|
|
300
|
-
}>, Schema.Struct<{
|
|
301
|
-
kind: Schema.Literal<["invalid"]>;
|
|
302
|
-
reason: typeof Schema.String;
|
|
303
|
-
}>, Schema.Struct<{
|
|
304
|
-
kind: Schema.Literal<["no-answer"]>;
|
|
305
|
-
}>]>;
|
|
306
|
-
/** One member's recorded outcome. */
|
|
307
|
-
export type CollectiveMemberOutcome = typeof memberOutcome.Type;
|
|
308
|
-
/**
|
|
309
|
-
* One inbound item, discriminated by `kind`. The endpoint consumes the
|
|
310
|
-
* collective layer's protocol posts, posts whose collective part is malformed
|
|
311
|
-
* or duplicated, and multicasts that carry nothing besides that part; every
|
|
312
|
-
* other certified post becomes one item, and the endpoint itself emits
|
|
313
|
-
* results and failures.
|
|
314
|
-
*/
|
|
315
|
-
export declare const InboundItem: Schema.Union<[Schema.Struct<{
|
|
316
|
-
kind: Schema.Literal<["multicast"]>;
|
|
317
|
-
message: Schema.Union<[Schema.filter<Schema.Struct<{
|
|
318
|
-
kind: Schema.Literal<["direct"]>;
|
|
319
|
-
postId: Schema.brand<Schema.filter<typeof Schema.String>, "PostId">;
|
|
320
|
-
address: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">;
|
|
321
|
-
sender: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">;
|
|
322
|
-
content: Schema.refine<readonly [{
|
|
323
|
-
readonly type: "text";
|
|
324
|
-
readonly text: string;
|
|
325
|
-
} | {
|
|
326
|
-
readonly type: "data";
|
|
327
|
-
readonly value: JsonValue;
|
|
328
|
-
}, ...({
|
|
329
|
-
readonly type: "text";
|
|
330
|
-
readonly text: string;
|
|
331
|
-
} | {
|
|
332
|
-
readonly type: "data";
|
|
333
|
-
readonly value: JsonValue;
|
|
334
|
-
})[]], Schema.NonEmptyArray<Schema.Union<[Schema.Struct<{
|
|
335
|
-
type: Schema.Literal<["text"]>;
|
|
336
|
-
text: Schema.filter<typeof Schema.String>;
|
|
337
|
-
}>, Schema.Struct<{
|
|
338
|
-
type: Schema.Literal<["data"]>;
|
|
339
|
-
value: Schema.Schema<JsonValue, JsonValue, never>;
|
|
340
|
-
}>]>>>;
|
|
341
|
-
}>>, Schema.filter<Schema.Struct<{
|
|
342
|
-
kind: Schema.Literal<["group"]>;
|
|
343
|
-
postId: Schema.brand<Schema.filter<typeof Schema.String>, "PostId">;
|
|
344
|
-
address: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "GroupAddress">;
|
|
345
|
-
sender: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">;
|
|
346
|
-
members: Schema.filter<Schema.TupleType<readonly [Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">, Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">, Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">], [Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">]>>;
|
|
347
|
-
content: Schema.refine<readonly [{
|
|
348
|
-
readonly type: "text";
|
|
349
|
-
readonly text: string;
|
|
350
|
-
} | {
|
|
351
|
-
readonly type: "data";
|
|
352
|
-
readonly value: JsonValue;
|
|
353
|
-
}, ...({
|
|
354
|
-
readonly type: "text";
|
|
355
|
-
readonly text: string;
|
|
356
|
-
} | {
|
|
357
|
-
readonly type: "data";
|
|
358
|
-
readonly value: JsonValue;
|
|
359
|
-
})[]], Schema.NonEmptyArray<Schema.Union<[Schema.Struct<{
|
|
360
|
-
type: Schema.Literal<["text"]>;
|
|
361
|
-
text: Schema.filter<typeof Schema.String>;
|
|
362
|
-
}>, Schema.Struct<{
|
|
363
|
-
type: Schema.Literal<["data"]>;
|
|
364
|
-
value: Schema.Schema<JsonValue, JsonValue, never>;
|
|
365
|
-
}>]>>>;
|
|
366
|
-
}>>]>;
|
|
367
|
-
}>, Schema.Struct<{
|
|
368
|
-
kind: Schema.Literal<["collectiveRequest"]>;
|
|
369
|
-
id: Schema.brand<Schema.filter<typeof Schema.String>, "CollectiveId">;
|
|
370
|
-
postId: Schema.brand<Schema.filter<typeof Schema.String>, "PostId">;
|
|
371
|
-
from: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">;
|
|
372
|
-
to: Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">;
|
|
373
|
-
question: Schema.filter<typeof Schema.String>;
|
|
374
|
-
requestedSchema: Schema.Struct<{
|
|
375
|
-
$schema: Schema.optionalWith<typeof Schema.String, {
|
|
376
|
-
exact: true;
|
|
377
|
-
}>;
|
|
378
|
-
type: Schema.Literal<["object"]>;
|
|
379
|
-
properties: Schema.Record$<typeof Schema.String, Schema.Record$<typeof Schema.String, Schema.Schema<JsonValue, JsonValue, never>>>;
|
|
380
|
-
required: Schema.optionalWith<Schema.Array$<typeof Schema.String>, {
|
|
381
|
-
exact: true;
|
|
382
|
-
}>;
|
|
383
|
-
}>;
|
|
384
|
-
deadlineAt: Schema.filter<Schema.filter<typeof Schema.Number>>;
|
|
385
|
-
}>, Schema.Struct<{
|
|
386
|
-
kind: Schema.Literal<["collectiveResult"]>;
|
|
387
|
-
id: Schema.brand<Schema.filter<typeof Schema.String>, "CollectiveId">;
|
|
388
|
-
to: Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">;
|
|
389
|
-
question: Schema.filter<typeof Schema.String>;
|
|
390
|
-
outcomes: Schema.NonEmptyArray<Schema.Struct<{
|
|
391
|
-
member: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">;
|
|
392
|
-
outcome: Schema.Union<[Schema.Struct<{
|
|
393
|
-
kind: Schema.Literal<["answered"]>;
|
|
394
|
-
content: Schema.Record$<typeof Schema.String, Schema.Union<[typeof Schema.String, Schema.filter<typeof Schema.Number>, typeof Schema.Boolean, Schema.Array$<typeof Schema.String>]>>;
|
|
395
|
-
}>, Schema.Struct<{
|
|
396
|
-
kind: Schema.Literal<["declined"]>;
|
|
397
|
-
}>, Schema.Struct<{
|
|
398
|
-
kind: Schema.Literal<["invalid"]>;
|
|
399
|
-
reason: typeof Schema.String;
|
|
400
|
-
}>, Schema.Struct<{
|
|
401
|
-
kind: Schema.Literal<["no-answer"]>;
|
|
402
|
-
}>]>;
|
|
403
|
-
}>>;
|
|
404
|
-
closePostId: Schema.optionalWith<Schema.brand<Schema.filter<typeof Schema.String>, "PostId">, {
|
|
405
|
-
exact: true;
|
|
406
|
-
}>;
|
|
407
|
-
}>, Schema.Struct<{
|
|
408
|
-
kind: Schema.Literal<["operationFailed"]>;
|
|
409
|
-
id: Schema.brand<Schema.filter<typeof Schema.String>, "CollectiveId">;
|
|
410
|
-
to: Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">;
|
|
411
|
-
error: typeof Schema.String;
|
|
412
|
-
}>]>;
|
|
413
|
-
/** A validated inbound item. */
|
|
414
|
-
export type InboundItem = typeof InboundItem.Type;
|
|
415
|
-
/**
|
|
416
|
-
* One line of the daemon's optional history export: an item as the daemon
|
|
417
|
-
* published it, a completed `send` invocation with its input and outcome, or
|
|
418
|
-
* the one line that says the export stopped. Readers decode the file line by
|
|
419
|
-
* line with this schema rather than copying its shape.
|
|
420
|
-
*/
|
|
421
|
-
export declare const HistoryExportRecord: Schema.Union<[Schema.Struct<{
|
|
422
|
-
kind: Schema.Literal<["inbound"]>;
|
|
423
|
-
item: Schema.Union<[Schema.Struct<{
|
|
424
|
-
kind: Schema.Literal<["multicast"]>;
|
|
425
|
-
message: Schema.Union<[Schema.filter<Schema.Struct<{
|
|
426
|
-
kind: Schema.Literal<["direct"]>;
|
|
427
|
-
postId: Schema.brand<Schema.filter<typeof Schema.String>, "PostId">;
|
|
428
|
-
address: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">;
|
|
429
|
-
sender: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">;
|
|
430
|
-
content: Schema.refine<readonly [{
|
|
431
|
-
readonly type: "text";
|
|
432
|
-
readonly text: string;
|
|
433
|
-
} | {
|
|
434
|
-
readonly type: "data";
|
|
435
|
-
readonly value: JsonValue;
|
|
436
|
-
}, ...({
|
|
437
|
-
readonly type: "text";
|
|
438
|
-
readonly text: string;
|
|
439
|
-
} | {
|
|
440
|
-
readonly type: "data";
|
|
441
|
-
readonly value: JsonValue;
|
|
442
|
-
})[]], Schema.NonEmptyArray<Schema.Union<[Schema.Struct<{
|
|
443
|
-
type: Schema.Literal<["text"]>;
|
|
444
|
-
text: Schema.filter<typeof Schema.String>;
|
|
445
|
-
}>, Schema.Struct<{
|
|
446
|
-
type: Schema.Literal<["data"]>;
|
|
447
|
-
value: Schema.Schema<JsonValue, JsonValue, never>;
|
|
448
|
-
}>]>>>;
|
|
449
|
-
}>>, Schema.filter<Schema.Struct<{
|
|
450
|
-
kind: Schema.Literal<["group"]>;
|
|
451
|
-
postId: Schema.brand<Schema.filter<typeof Schema.String>, "PostId">;
|
|
452
|
-
address: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "GroupAddress">;
|
|
453
|
-
sender: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">;
|
|
454
|
-
members: Schema.filter<Schema.TupleType<readonly [Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">, Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">, Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">], [Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">]>>;
|
|
455
|
-
content: Schema.refine<readonly [{
|
|
456
|
-
readonly type: "text";
|
|
457
|
-
readonly text: string;
|
|
458
|
-
} | {
|
|
459
|
-
readonly type: "data";
|
|
460
|
-
readonly value: JsonValue;
|
|
461
|
-
}, ...({
|
|
462
|
-
readonly type: "text";
|
|
463
|
-
readonly text: string;
|
|
464
|
-
} | {
|
|
465
|
-
readonly type: "data";
|
|
466
|
-
readonly value: JsonValue;
|
|
467
|
-
})[]], Schema.NonEmptyArray<Schema.Union<[Schema.Struct<{
|
|
468
|
-
type: Schema.Literal<["text"]>;
|
|
469
|
-
text: Schema.filter<typeof Schema.String>;
|
|
470
|
-
}>, Schema.Struct<{
|
|
471
|
-
type: Schema.Literal<["data"]>;
|
|
472
|
-
value: Schema.Schema<JsonValue, JsonValue, never>;
|
|
473
|
-
}>]>>>;
|
|
474
|
-
}>>]>;
|
|
475
|
-
}>, Schema.Struct<{
|
|
476
|
-
kind: Schema.Literal<["collectiveRequest"]>;
|
|
477
|
-
id: Schema.brand<Schema.filter<typeof Schema.String>, "CollectiveId">;
|
|
478
|
-
postId: Schema.brand<Schema.filter<typeof Schema.String>, "PostId">;
|
|
479
|
-
from: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">;
|
|
480
|
-
to: Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">;
|
|
481
|
-
question: Schema.filter<typeof Schema.String>;
|
|
482
|
-
requestedSchema: Schema.Struct<{
|
|
483
|
-
$schema: Schema.optionalWith<typeof Schema.String, {
|
|
484
|
-
exact: true;
|
|
485
|
-
}>;
|
|
486
|
-
type: Schema.Literal<["object"]>;
|
|
487
|
-
properties: Schema.Record$<typeof Schema.String, Schema.Record$<typeof Schema.String, Schema.Schema<JsonValue, JsonValue, never>>>;
|
|
488
|
-
required: Schema.optionalWith<Schema.Array$<typeof Schema.String>, {
|
|
489
|
-
exact: true;
|
|
490
|
-
}>;
|
|
491
|
-
}>;
|
|
492
|
-
deadlineAt: Schema.filter<Schema.filter<typeof Schema.Number>>;
|
|
493
|
-
}>, Schema.Struct<{
|
|
494
|
-
kind: Schema.Literal<["collectiveResult"]>;
|
|
495
|
-
id: Schema.brand<Schema.filter<typeof Schema.String>, "CollectiveId">;
|
|
496
|
-
to: Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">;
|
|
497
|
-
question: Schema.filter<typeof Schema.String>;
|
|
498
|
-
outcomes: Schema.NonEmptyArray<Schema.Struct<{
|
|
499
|
-
member: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">;
|
|
500
|
-
outcome: Schema.Union<[Schema.Struct<{
|
|
501
|
-
kind: Schema.Literal<["answered"]>;
|
|
502
|
-
content: Schema.Record$<typeof Schema.String, Schema.Union<[typeof Schema.String, Schema.filter<typeof Schema.Number>, typeof Schema.Boolean, Schema.Array$<typeof Schema.String>]>>;
|
|
503
|
-
}>, Schema.Struct<{
|
|
504
|
-
kind: Schema.Literal<["declined"]>;
|
|
505
|
-
}>, Schema.Struct<{
|
|
506
|
-
kind: Schema.Literal<["invalid"]>;
|
|
507
|
-
reason: typeof Schema.String;
|
|
508
|
-
}>, Schema.Struct<{
|
|
509
|
-
kind: Schema.Literal<["no-answer"]>;
|
|
510
|
-
}>]>;
|
|
511
|
-
}>>;
|
|
512
|
-
closePostId: Schema.optionalWith<Schema.brand<Schema.filter<typeof Schema.String>, "PostId">, {
|
|
513
|
-
exact: true;
|
|
514
|
-
}>;
|
|
515
|
-
}>, Schema.Struct<{
|
|
516
|
-
kind: Schema.Literal<["operationFailed"]>;
|
|
517
|
-
id: Schema.brand<Schema.filter<typeof Schema.String>, "CollectiveId">;
|
|
518
|
-
to: Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">;
|
|
519
|
-
error: typeof Schema.String;
|
|
520
|
-
}>]>;
|
|
521
|
-
at: typeof Schema.DateTimeUtc;
|
|
522
|
-
}>, Schema.Struct<{
|
|
523
|
-
kind: Schema.Literal<["outbound"]>;
|
|
524
|
-
input: Schema.Union<[Schema.Struct<{
|
|
525
|
-
to: Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">;
|
|
526
|
-
text: Schema.filter<typeof Schema.String>;
|
|
527
|
-
collective: Schema.optionalWith<Schema.Union<[Schema.Struct<{
|
|
528
|
-
op: Schema.optionalWith<Schema.Literal<["multicast"]>, {
|
|
529
|
-
exact: true;
|
|
530
|
-
}>;
|
|
531
|
-
}>, Schema.Struct<{
|
|
532
|
-
op: Schema.Literal<["gather", "all_gather"]>;
|
|
533
|
-
deadline: Schema.filter<Schema.filter<typeof Schema.Number>>;
|
|
534
|
-
requestedSchema: Schema.Struct<{
|
|
535
|
-
$schema: Schema.optionalWith<typeof Schema.String, {
|
|
536
|
-
exact: true;
|
|
537
|
-
}>;
|
|
538
|
-
type: Schema.Literal<["object"]>;
|
|
539
|
-
properties: Schema.Record$<typeof Schema.String, Schema.Record$<typeof Schema.String, Schema.Schema<JsonValue, JsonValue, never>>>;
|
|
540
|
-
required: Schema.optionalWith<Schema.Array$<typeof Schema.String>, {
|
|
541
|
-
exact: true;
|
|
542
|
-
}>;
|
|
543
|
-
}>;
|
|
544
|
-
}>]>, {
|
|
545
|
-
exact: true;
|
|
546
|
-
}>;
|
|
547
|
-
}>, Schema.Struct<{
|
|
548
|
-
to: Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">;
|
|
549
|
-
collectiveResponse: Schema.Union<[Schema.Struct<{
|
|
550
|
-
action: Schema.Literal<["accept"]>;
|
|
551
|
-
content: Schema.Record$<typeof Schema.String, Schema.Union<[typeof Schema.String, Schema.filter<typeof Schema.Number>, typeof Schema.Boolean, Schema.Array$<typeof Schema.String>]>>;
|
|
552
|
-
}>, Schema.Struct<{
|
|
553
|
-
action: Schema.Literal<["decline"]>;
|
|
554
|
-
}>]>;
|
|
555
|
-
}>]>;
|
|
556
|
-
outcome: Schema.Union<[Schema.Struct<{
|
|
557
|
-
kind: Schema.Literal<["sent"]>;
|
|
558
|
-
operationId: Schema.optionalWith<Schema.brand<Schema.filter<typeof Schema.String>, "CollectiveId">, {
|
|
559
|
-
exact: true;
|
|
560
|
-
}>;
|
|
561
|
-
postIds: Schema.Array$<Schema.brand<Schema.filter<typeof Schema.String>, "PostId">>;
|
|
562
|
-
}>, Schema.Struct<{
|
|
563
|
-
kind: Schema.Literal<["failed"]>;
|
|
564
|
-
error: typeof Schema.String;
|
|
565
|
-
}>]>;
|
|
566
|
-
at: typeof Schema.DateTimeUtc;
|
|
567
|
-
}>, Schema.Struct<{
|
|
568
|
-
kind: Schema.Literal<["export-failed"]>;
|
|
569
|
-
reason: typeof Schema.String;
|
|
570
|
-
at: typeof Schema.DateTimeUtc;
|
|
571
|
-
}>]>;
|
|
572
|
-
/** A validated line of the daemon's history export. */
|
|
573
|
-
export type HistoryExportRecord = typeof HistoryExportRecord.Type;
|
|
574
|
-
declare const SendError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
575
|
-
readonly _tag: "SendError";
|
|
576
|
-
} & Readonly<A>;
|
|
577
|
-
/** An addressed send failed before local certification completed. */
|
|
578
|
-
export declare class SendError extends SendError_base<{
|
|
579
|
-
readonly reason: SendFailure;
|
|
580
|
-
}> {
|
|
581
|
-
get message(): string;
|
|
582
|
-
}
|
|
583
|
-
/**
|
|
584
|
-
* Why a collective send was refused, discriminated by `kind`: a gather or
|
|
585
|
-
* all_gather whose schema is outside the form-mode grammar or whose request
|
|
586
|
-
* post some member could not receive, or a response the member's endpoint
|
|
587
|
-
* cannot send.
|
|
588
|
-
*/
|
|
589
|
-
declare const collectiveFailure: Schema.Union<[Schema.Struct<{
|
|
590
|
-
kind: Schema.Literal<["members-unreachable"]>;
|
|
591
|
-
members: Schema.NonEmptyArray<Schema.Struct<{
|
|
592
|
-
member: Schema.brand<Schema.filter<Schema.brand<Schema.filter<typeof Schema.String>, "MessageAddressInput">>, "AgentAddress">;
|
|
593
|
-
reason: Schema.Literal<["invalid-address", "unknown-agent", "membership-invalid", "content-invalid", "not-registered", "version-mismatch", "certification-unavailable", "persistence-failed", "network-unavailable"]>;
|
|
594
|
-
}>>;
|
|
595
|
-
}>, Schema.Struct<{
|
|
596
|
-
kind: Schema.Literal<["schema-invalid"]>;
|
|
597
|
-
detail: typeof Schema.String;
|
|
598
|
-
}>, Schema.Struct<{
|
|
599
|
-
kind: Schema.Literal<["answer-invalid"]>;
|
|
600
|
-
fields: Schema.NonEmptyArray<Schema.Struct<{
|
|
601
|
-
field: typeof Schema.String;
|
|
602
|
-
reason: Schema.Literal<["missing", "unexpected", "invalid"]>;
|
|
603
|
-
detail: Schema.optionalWith<typeof Schema.String, {
|
|
604
|
-
exact: true;
|
|
605
|
-
}>;
|
|
606
|
-
}>>;
|
|
607
|
-
}>, Schema.Struct<{
|
|
608
|
-
kind: Schema.Literal<["request-none"]>;
|
|
609
|
-
}>, Schema.Struct<{
|
|
610
|
-
kind: Schema.Literal<["request-ambiguous"]>;
|
|
611
|
-
}>, Schema.Struct<{
|
|
612
|
-
kind: Schema.Literal<["request-answered"]>;
|
|
613
|
-
}>, Schema.Struct<{
|
|
614
|
-
kind: Schema.Literal<["request-expired"]>;
|
|
615
|
-
}>]>;
|
|
616
|
-
/** A validated collective failure. */
|
|
617
|
-
export type CollectiveFailure = typeof collectiveFailure.Type;
|
|
618
|
-
/**
|
|
619
|
-
* Decode a collective failure carried across the loopback MCP boundary.
|
|
620
|
-
* @param value Untrusted failure detail from a refused send's error data.
|
|
621
|
-
* @returns The validated failure.
|
|
622
|
-
*/
|
|
623
|
-
export declare const decodeCollectiveFailure: (u: unknown, overrideOptions?: import("effect/SchemaAST").ParseOptions) => Effect.Effect<{
|
|
624
|
-
readonly kind: "members-unreachable";
|
|
625
|
-
readonly members: readonly [{
|
|
626
|
-
readonly member: string & import("effect/Brand").Brand<"MessageAddressInput"> & import("effect/Brand").Brand<"AgentAddress">;
|
|
627
|
-
readonly reason: "certification-unavailable" | "content-invalid" | "invalid-address" | "membership-invalid" | "network-unavailable" | "not-registered" | "persistence-failed" | "unknown-agent" | "version-mismatch";
|
|
628
|
-
}, ...{
|
|
629
|
-
readonly member: string & import("effect/Brand").Brand<"MessageAddressInput"> & import("effect/Brand").Brand<"AgentAddress">;
|
|
630
|
-
readonly reason: "certification-unavailable" | "content-invalid" | "invalid-address" | "membership-invalid" | "network-unavailable" | "not-registered" | "persistence-failed" | "unknown-agent" | "version-mismatch";
|
|
631
|
-
}[]];
|
|
632
|
-
} | {
|
|
633
|
-
readonly kind: "schema-invalid";
|
|
634
|
-
readonly detail: string;
|
|
635
|
-
} | {
|
|
636
|
-
readonly kind: "answer-invalid";
|
|
637
|
-
readonly fields: readonly [{
|
|
638
|
-
readonly field: string;
|
|
639
|
-
readonly reason: "invalid" | "missing" | "unexpected";
|
|
640
|
-
readonly detail?: string | undefined;
|
|
641
|
-
}, ...{
|
|
642
|
-
readonly field: string;
|
|
643
|
-
readonly reason: "invalid" | "missing" | "unexpected";
|
|
644
|
-
readonly detail?: string | undefined;
|
|
645
|
-
}[]];
|
|
646
|
-
} | {
|
|
647
|
-
readonly kind: "request-none";
|
|
648
|
-
} | {
|
|
649
|
-
readonly kind: "request-ambiguous";
|
|
650
|
-
} | {
|
|
651
|
-
readonly kind: "request-answered";
|
|
652
|
-
} | {
|
|
653
|
-
readonly kind: "request-expired";
|
|
654
|
-
}, import("effect/ParseResult").ParseError, never>;
|
|
655
|
-
declare const CollectiveError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
656
|
-
readonly _tag: "CollectiveError";
|
|
657
|
-
} & Readonly<A>;
|
|
658
|
-
/**
|
|
659
|
-
* A gather, all_gather or answer was refused. The message names each
|
|
660
|
-
* unreachable member or failing field, so a host can hand it to its model as
|
|
661
|
-
* the tool error.
|
|
662
|
-
*/
|
|
663
|
-
export declare class CollectiveError extends CollectiveError_base<{
|
|
664
|
-
readonly id: CollectiveId;
|
|
665
|
-
readonly failure: CollectiveFailure;
|
|
666
|
-
}> {
|
|
667
|
-
get message(): string;
|
|
668
|
-
}
|
|
669
|
-
type ListenFailure = "already-listening" | "incompatible-daemon" | "transport-failed" | "decode-failed";
|
|
670
|
-
declare const ListenError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
671
|
-
readonly _tag: "ListenError";
|
|
672
|
-
} & Readonly<A>;
|
|
673
|
-
/** The endpoint's sole inbound subscription failed. */
|
|
674
|
-
export declare class ListenError extends ListenError_base<{
|
|
675
|
-
readonly reason: ListenFailure;
|
|
676
|
-
}> {
|
|
677
|
-
get message(): string;
|
|
678
|
-
}
|
|
679
|
-
type DeliveryAcknowledgeFailure = "unknown-delivery" | "delivery-conflict" | "persistence-failed" | "transport-failed";
|
|
680
|
-
declare const DeliveryAcknowledgeError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
681
|
-
readonly _tag: "DeliveryAcknowledgeError";
|
|
682
|
-
} & Readonly<A>;
|
|
683
|
-
/** Transport acknowledgment could not complete for one delivery. */
|
|
684
|
-
export declare class DeliveryAcknowledgeError extends DeliveryAcknowledgeError_base<{
|
|
685
|
-
readonly reason: DeliveryAcknowledgeFailure;
|
|
686
|
-
}> {
|
|
687
|
-
get message(): string;
|
|
688
|
-
}
|
|
689
|
-
type ConnectFailure = "transport-failed" | "decode-failed" | "incompatible-daemon";
|
|
690
|
-
declare const ConnectError_base: new <A extends Record<string, any> = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => import("effect/Cause").YieldableError & {
|
|
691
|
-
readonly _tag: "ConnectError";
|
|
692
|
-
} & Readonly<A>;
|
|
693
|
-
/** Acquiring the endpoint connection failed. */
|
|
694
|
-
export declare class ConnectError extends ConnectError_base<{
|
|
695
|
-
readonly reason: ConnectFailure;
|
|
696
|
-
}> {
|
|
697
|
-
get message(): string;
|
|
698
|
-
}
|
|
699
|
-
/** One inbound item plus its transport-only acknowledgment. */
|
|
700
|
-
export interface InboundDelivery {
|
|
701
|
-
readonly item: InboundItem;
|
|
702
|
-
readonly acknowledge: Effect.Effect<void, DeliveryAcknowledgeError>;
|
|
703
|
-
}
|
|
704
|
-
/**
|
|
705
|
-
* Structural runtime capability owned by one scoped endpoint connection.
|
|
706
|
-
* Every send is one operation or one collective response; the stream yields
|
|
707
|
-
* inbound items.
|
|
708
|
-
*
|
|
709
|
-
* A host whose tool returns before the send completes passes
|
|
710
|
-
* `failureDelivery: "inbound"`: a refused gather, all_gather or response
|
|
711
|
-
* then completes and its error arrives as an `operationFailed` item on the
|
|
712
|
-
* stream. A multicast has no operation id, so its failure is always returned.
|
|
713
|
-
*/
|
|
714
|
-
export interface HarnessEndpoint {
|
|
715
|
-
readonly send: (input: SendInput, options?: Readonly<{
|
|
716
|
-
failureDelivery?: FailureDelivery;
|
|
717
|
-
}>) => Effect.Effect<SendResult, SendError | CollectiveError>;
|
|
718
|
-
readonly messages: Stream.Stream<InboundDelivery, ListenError>;
|
|
719
|
-
}
|
|
720
|
-
export {};
|
|
721
|
-
//# sourceMappingURL=contract.d.ts.map
|