@sentropic/cluster-mesh 0.24.0 → 0.26.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/README.md +5 -0
- package/dist/comments/storage-schema.d.ts +1 -1
- package/dist/comments/transport-contracts.d.ts +1 -1
- package/dist/compile/contract/diagnostics.d.ts +9 -0
- package/dist/compile/contract/diagnostics.d.ts.map +1 -0
- package/dist/compile/contract/diagnostics.js +82 -0
- package/dist/compile/contract/diagnostics.js.map +1 -0
- package/dist/compile/contract/encoding.d.ts +12 -0
- package/dist/compile/contract/encoding.d.ts.map +1 -0
- package/dist/compile/contract/encoding.js +95 -0
- package/dist/compile/contract/encoding.js.map +1 -0
- package/dist/compile/contract/index.d.ts +9 -0
- package/dist/compile/contract/index.d.ts.map +1 -0
- package/dist/compile/contract/index.js +9 -0
- package/dist/compile/contract/index.js.map +1 -0
- package/dist/compile/contract/json.d.ts +3 -0
- package/dist/compile/contract/json.d.ts.map +1 -0
- package/dist/compile/contract/json.js +75 -0
- package/dist/compile/contract/json.js.map +1 -0
- package/dist/compile/contract/output.d.ts +5 -0
- package/dist/compile/contract/output.d.ts.map +1 -0
- package/dist/compile/contract/output.js +57 -0
- package/dist/compile/contract/output.js.map +1 -0
- package/dist/compile/contract/recipe.d.ts +5 -0
- package/dist/compile/contract/recipe.d.ts.map +1 -0
- package/dist/compile/contract/recipe.js +86 -0
- package/dist/compile/contract/recipe.js.map +1 -0
- package/dist/compile/contract/schema.d.ts +26 -0
- package/dist/compile/contract/schema.d.ts.map +1 -0
- package/dist/compile/contract/schema.js +92 -0
- package/dist/compile/contract/schema.js.map +1 -0
- package/dist/compile/contract/types.d.ts +166 -0
- package/dist/compile/contract/types.d.ts.map +1 -0
- package/dist/compile/contract/types.js +21 -0
- package/dist/compile/contract/types.js.map +1 -0
- package/dist/compile/contract/vectors.d.ts +38 -0
- package/dist/compile/contract/vectors.d.ts.map +1 -0
- package/dist/compile/contract/vectors.js +29 -0
- package/dist/compile/contract/vectors.js.map +1 -0
- package/dist/engram-memory/wire-adaptation.d.ts +1 -1
- package/dist/engram-memory/wire-adaptation.d.ts.map +1 -1
- package/dist/engram-memory/wire-adaptation.js +24 -8
- package/dist/engram-memory/wire-adaptation.js.map +1 -1
- package/dist/forge/contracts.d.ts +60 -0
- package/dist/forge/contracts.d.ts.map +1 -0
- package/dist/forge/contracts.js +19 -0
- package/dist/forge/contracts.js.map +1 -0
- package/dist/forge/custody.d.ts +7 -0
- package/dist/forge/custody.d.ts.map +1 -0
- package/dist/forge/custody.js +76 -0
- package/dist/forge/custody.js.map +1 -0
- package/dist/forge/enrollment.d.ts +151 -0
- package/dist/forge/enrollment.d.ts.map +1 -0
- package/dist/forge/enrollment.js +98 -0
- package/dist/forge/enrollment.js.map +1 -0
- package/dist/forge/github-api.d.ts +6 -0
- package/dist/forge/github-api.d.ts.map +1 -0
- package/dist/forge/github-api.js +131 -0
- package/dist/forge/github-api.js.map +1 -0
- package/dist/forge/hono.d.ts +14 -0
- package/dist/forge/hono.d.ts.map +1 -0
- package/dist/forge/hono.js +141 -0
- package/dist/forge/hono.js.map +1 -0
- package/dist/forge/lifecycle.d.ts +108 -0
- package/dist/forge/lifecycle.d.ts.map +1 -0
- package/dist/forge/lifecycle.js +160 -0
- package/dist/forge/lifecycle.js.map +1 -0
- package/dist/forge/records.d.ts +70 -0
- package/dist/forge/records.d.ts.map +1 -0
- package/dist/forge/records.js +2 -0
- package/dist/forge/records.js.map +1 -0
- package/dist/forge/rotation.d.ts +46 -0
- package/dist/forge/rotation.d.ts.map +1 -0
- package/dist/forge/rotation.js +62 -0
- package/dist/forge/rotation.js.map +1 -0
- package/dist/identity/auth-abort.d.ts +9 -0
- package/dist/identity/auth-abort.d.ts.map +1 -0
- package/dist/identity/auth-abort.js +59 -0
- package/dist/identity/auth-abort.js.map +1 -0
- package/dist/identity/auth-binding.d.ts +3 -0
- package/dist/identity/auth-binding.d.ts.map +1 -0
- package/dist/identity/auth-binding.js +87 -0
- package/dist/identity/auth-binding.js.map +1 -0
- package/dist/identity/auth-boundary.d.ts +11 -0
- package/dist/identity/auth-boundary.d.ts.map +1 -0
- package/dist/identity/auth-boundary.js +73 -0
- package/dist/identity/auth-boundary.js.map +1 -0
- package/dist/identity/auth-completion.d.ts +9 -0
- package/dist/identity/auth-completion.d.ts.map +1 -0
- package/dist/identity/auth-completion.js +24 -0
- package/dist/identity/auth-completion.js.map +1 -0
- package/dist/identity/auth-credentials.d.ts +5 -0
- package/dist/identity/auth-credentials.d.ts.map +1 -0
- package/dist/identity/auth-credentials.js +82 -0
- package/dist/identity/auth-credentials.js.map +1 -0
- package/dist/identity/auth-email.d.ts +8 -0
- package/dist/identity/auth-email.d.ts.map +1 -0
- package/dist/identity/auth-email.js +104 -0
- package/dist/identity/auth-email.js.map +1 -0
- package/dist/identity/auth-hono.d.ts +5 -0
- package/dist/identity/auth-hono.d.ts.map +1 -0
- package/dist/identity/auth-hono.js +10 -0
- package/dist/identity/auth-hono.js.map +1 -0
- package/dist/identity/auth-proofs.d.ts +11 -0
- package/dist/identity/auth-proofs.d.ts.map +1 -0
- package/dist/identity/auth-proofs.js +107 -0
- package/dist/identity/auth-proofs.js.map +1 -0
- package/dist/identity/auth-service-tenant.d.ts +4 -0
- package/dist/identity/auth-service-tenant.d.ts.map +1 -0
- package/dist/identity/auth-service-tenant.js +54 -0
- package/dist/identity/auth-service-tenant.js.map +1 -0
- package/dist/identity/auth-sessions.d.ts +8 -0
- package/dist/identity/auth-sessions.d.ts.map +1 -0
- package/dist/identity/auth-sessions.js +141 -0
- package/dist/identity/auth-sessions.js.map +1 -0
- package/dist/identity/auth-social.d.ts +4 -0
- package/dist/identity/auth-social.d.ts.map +1 -0
- package/dist/identity/auth-social.js +82 -0
- package/dist/identity/auth-social.js.map +1 -0
- package/dist/identity/auth-users.d.ts +9 -0
- package/dist/identity/auth-users.d.ts.map +1 -0
- package/dist/identity/auth-users.js +116 -0
- package/dist/identity/auth-users.js.map +1 -0
- package/dist/identity/auth-webauthn.d.ts +22 -0
- package/dist/identity/auth-webauthn.d.ts.map +1 -0
- package/dist/identity/auth-webauthn.js +108 -0
- package/dist/identity/auth-webauthn.js.map +1 -0
- package/dist/identity/cascade.d.ts +12 -0
- package/dist/identity/cascade.d.ts.map +1 -0
- package/dist/identity/cascade.js +19 -0
- package/dist/identity/cascade.js.map +1 -0
- package/dist/identity/connector-custody.d.ts +85 -0
- package/dist/identity/connector-custody.d.ts.map +1 -0
- package/dist/identity/connector-custody.js +288 -0
- package/dist/identity/connector-custody.js.map +1 -0
- package/dist/identity/conversation.d.ts +50 -0
- package/dist/identity/conversation.d.ts.map +1 -0
- package/dist/identity/conversation.js +102 -0
- package/dist/identity/conversation.js.map +1 -0
- package/dist/identity/custody-crypto.d.ts +37 -0
- package/dist/identity/custody-crypto.d.ts.map +1 -0
- package/dist/identity/custody-crypto.js +173 -0
- package/dist/identity/custody-crypto.js.map +1 -0
- package/dist/identity/decision.d.ts +28 -0
- package/dist/identity/decision.d.ts.map +1 -0
- package/dist/identity/decision.js +97 -0
- package/dist/identity/decision.js.map +1 -0
- package/dist/identity/index.d.ts +9 -0
- package/dist/identity/index.d.ts.map +1 -0
- package/dist/identity/index.js +13 -0
- package/dist/identity/index.js.map +1 -0
- package/dist/identity/ledger.d.ts +120 -0
- package/dist/identity/ledger.d.ts.map +1 -0
- package/dist/identity/ledger.js +226 -0
- package/dist/identity/ledger.js.map +1 -0
- package/dist/identity/postgres.d.ts +13 -0
- package/dist/identity/postgres.d.ts.map +1 -0
- package/dist/identity/postgres.js +207 -0
- package/dist/identity/postgres.js.map +1 -0
- package/dist/identity/sqlite.d.ts +14 -0
- package/dist/identity/sqlite.d.ts.map +1 -0
- package/dist/identity/sqlite.js +193 -0
- package/dist/identity/sqlite.js.map +1 -0
- package/dist/identity-contracts/access.d.ts +54 -0
- package/dist/identity-contracts/access.d.ts.map +1 -0
- package/dist/identity-contracts/access.js +168 -0
- package/dist/identity-contracts/access.js.map +1 -0
- package/dist/identity-contracts/accounts.d.ts +44 -0
- package/dist/identity-contracts/accounts.d.ts.map +1 -0
- package/dist/identity-contracts/accounts.js +150 -0
- package/dist/identity-contracts/accounts.js.map +1 -0
- package/dist/identity-contracts/boundary-resolution.d.ts +31 -0
- package/dist/identity-contracts/boundary-resolution.d.ts.map +1 -0
- package/dist/identity-contracts/boundary-resolution.js +56 -0
- package/dist/identity-contracts/boundary-resolution.js.map +1 -0
- package/dist/identity-contracts/composition-descriptors.d.ts +17 -0
- package/dist/identity-contracts/composition-descriptors.d.ts.map +1 -0
- package/dist/identity-contracts/composition-descriptors.js +77 -0
- package/dist/identity-contracts/composition-descriptors.js.map +1 -0
- package/dist/identity-contracts/custody-auth.d.ts +122 -0
- package/dist/identity-contracts/custody-auth.d.ts.map +1 -0
- package/dist/identity-contracts/custody-auth.js +2 -0
- package/dist/identity-contracts/custody-auth.js.map +1 -0
- package/dist/identity-contracts/custody-descriptors.d.ts +18 -0
- package/dist/identity-contracts/custody-descriptors.d.ts.map +1 -0
- package/dist/identity-contracts/custody-descriptors.js +83 -0
- package/dist/identity-contracts/custody-descriptors.js.map +1 -0
- package/dist/identity-contracts/custody-errors.d.ts +21 -0
- package/dist/identity-contracts/custody-errors.d.ts.map +1 -0
- package/dist/identity-contracts/custody-errors.js +80 -0
- package/dist/identity-contracts/custody-errors.js.map +1 -0
- package/dist/identity-contracts/custody-operations.d.ts +79 -0
- package/dist/identity-contracts/custody-operations.d.ts.map +1 -0
- package/dist/identity-contracts/custody-operations.js +2 -0
- package/dist/identity-contracts/custody-operations.js.map +1 -0
- package/dist/identity-contracts/custody.d.ts +587 -0
- package/dist/identity-contracts/custody.d.ts.map +1 -0
- package/dist/identity-contracts/custody.js +7 -0
- package/dist/identity-contracts/custody.js.map +1 -0
- package/dist/identity-contracts/descriptors.d.ts +12 -0
- package/dist/identity-contracts/descriptors.d.ts.map +1 -0
- package/dist/identity-contracts/descriptors.js +57 -0
- package/dist/identity-contracts/descriptors.js.map +1 -0
- package/dist/identity-contracts/doubles.d.ts +124 -0
- package/dist/identity-contracts/doubles.d.ts.map +1 -0
- package/dist/identity-contracts/doubles.js +360 -0
- package/dist/identity-contracts/doubles.js.map +1 -0
- package/dist/identity-contracts/enforcement.d.ts +27 -0
- package/dist/identity-contracts/enforcement.d.ts.map +1 -0
- package/dist/identity-contracts/enforcement.js +155 -0
- package/dist/identity-contracts/enforcement.js.map +1 -0
- package/dist/identity-contracts/errors.d.ts +71 -0
- package/dist/identity-contracts/errors.d.ts.map +1 -0
- package/dist/identity-contracts/errors.js +129 -0
- package/dist/identity-contracts/errors.js.map +1 -0
- package/dist/identity-contracts/index.d.ts +22 -0
- package/dist/identity-contracts/index.d.ts.map +1 -0
- package/dist/identity-contracts/index.js +23 -0
- package/dist/identity-contracts/index.js.map +1 -0
- package/dist/identity-contracts/oauth-reads.d.ts +42 -0
- package/dist/identity-contracts/oauth-reads.d.ts.map +1 -0
- package/dist/identity-contracts/oauth-reads.js +38 -0
- package/dist/identity-contracts/oauth-reads.js.map +1 -0
- package/dist/identity-contracts/ports.d.ts +116 -0
- package/dist/identity-contracts/ports.d.ts.map +1 -0
- package/dist/identity-contracts/ports.js +7 -0
- package/dist/identity-contracts/ports.js.map +1 -0
- package/dist/identity-contracts/replica-sync.d.ts +89 -0
- package/dist/identity-contracts/replica-sync.d.ts.map +1 -0
- package/dist/identity-contracts/replica-sync.js +7 -0
- package/dist/identity-contracts/replica-sync.js.map +1 -0
- package/dist/identity-contracts/resolution.d.ts +56 -0
- package/dist/identity-contracts/resolution.d.ts.map +1 -0
- package/dist/identity-contracts/resolution.js +87 -0
- package/dist/identity-contracts/resolution.js.map +1 -0
- package/dist/identity-contracts/service-tenancy.d.ts +43 -0
- package/dist/identity-contracts/service-tenancy.d.ts.map +1 -0
- package/dist/identity-contracts/service-tenancy.js +75 -0
- package/dist/identity-contracts/service-tenancy.js.map +1 -0
- package/dist/identity-contracts/tenancy.d.ts +52 -0
- package/dist/identity-contracts/tenancy.d.ts.map +1 -0
- package/dist/identity-contracts/tenancy.js +171 -0
- package/dist/identity-contracts/tenancy.js.map +1 -0
- package/dist/identity-contracts/types.d.ts +253 -0
- package/dist/identity-contracts/types.d.ts.map +1 -0
- package/dist/identity-contracts/types.js +7 -0
- package/dist/identity-contracts/types.js.map +1 -0
- package/dist/identity-contracts/workspace-deletion.d.ts +56 -0
- package/dist/identity-contracts/workspace-deletion.d.ts.map +1 -0
- package/dist/identity-contracts/workspace-deletion.js +7 -0
- package/dist/identity-contracts/workspace-deletion.js.map +1 -0
- package/dist/identity-contracts/workspaces.d.ts +37 -0
- package/dist/identity-contracts/workspaces.d.ts.map +1 -0
- package/dist/identity-contracts/workspaces.js +118 -0
- package/dist/identity-contracts/workspaces.js.map +1 -0
- package/dist/identity-stores/index.d.ts +4 -0
- package/dist/identity-stores/index.d.ts.map +1 -0
- package/dist/identity-stores/index.js +7 -0
- package/dist/identity-stores/index.js.map +1 -0
- package/dist/identity-stores/tenancy-postgres.d.ts +23 -0
- package/dist/identity-stores/tenancy-postgres.d.ts.map +1 -0
- package/dist/identity-stores/tenancy-postgres.js +294 -0
- package/dist/identity-stores/tenancy-postgres.js.map +1 -0
- package/dist/identity-stores/tenancy-schema.d.ts +11 -0
- package/dist/identity-stores/tenancy-schema.d.ts.map +1 -0
- package/dist/identity-stores/tenancy-schema.js +74 -0
- package/dist/identity-stores/tenancy-schema.js.map +1 -0
- package/dist/identity-stores/tenancy-sqlite.d.ts +24 -0
- package/dist/identity-stores/tenancy-sqlite.d.ts.map +1 -0
- package/dist/identity-stores/tenancy-sqlite.js +288 -0
- package/dist/identity-stores/tenancy-sqlite.js.map +1 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -1
- package/dist/integrations/mcp/memory-compose.d.ts +11 -0
- package/dist/integrations/mcp/memory-compose.d.ts.map +1 -0
- package/dist/integrations/mcp/memory-compose.js +79 -0
- package/dist/integrations/mcp/memory-compose.js.map +1 -0
- package/dist/integrations/mcp/memory-definition.d.ts +28 -0
- package/dist/integrations/mcp/memory-definition.d.ts.map +1 -0
- package/dist/integrations/mcp/memory-definition.js +2 -0
- package/dist/integrations/mcp/memory-definition.js.map +1 -0
- package/dist/integrations/mcp/memory-manifest.d.ts +4 -0
- package/dist/integrations/mcp/memory-manifest.d.ts.map +1 -0
- package/dist/integrations/mcp/memory-manifest.js +9 -0
- package/dist/integrations/mcp/memory-manifest.js.map +1 -0
- package/dist/integrations/mcp/memory-transport.d.ts +21 -0
- package/dist/integrations/mcp/memory-transport.d.ts.map +1 -0
- package/dist/integrations/mcp/memory-transport.js +47 -0
- package/dist/integrations/mcp/memory-transport.js.map +1 -0
- package/dist/integrations/mcp/memory.d.ts +19 -0
- package/dist/integrations/mcp/memory.d.ts.map +1 -0
- package/dist/integrations/mcp/memory.js +40 -0
- package/dist/integrations/mcp/memory.js.map +1 -0
- package/dist/loaders/mcp/index.d.ts +1 -0
- package/dist/loaders/mcp/index.d.ts.map +1 -1
- package/dist/loaders/mcp/index.js +1 -0
- package/dist/loaders/mcp/index.js.map +1 -1
- package/dist/loaders/mcp/memory.d.ts +6 -0
- package/dist/loaders/mcp/memory.d.ts.map +1 -0
- package/dist/loaders/mcp/memory.js +9 -0
- package/dist/loaders/mcp/memory.js.map +1 -0
- package/dist/loaders/notifications/index.d.ts +5 -0
- package/dist/loaders/notifications/index.d.ts.map +1 -0
- package/dist/loaders/notifications/index.js +6 -0
- package/dist/loaders/notifications/index.js.map +1 -0
- package/dist/mcp/stateful-preflight.d.ts +1 -1
- package/dist/messaging/email-port.d.ts +49 -0
- package/dist/messaging/email-port.d.ts.map +1 -0
- package/dist/messaging/email-port.js +92 -0
- package/dist/messaging/email-port.js.map +1 -0
- package/dist/messaging/index.d.ts +1 -0
- package/dist/messaging/index.d.ts.map +1 -1
- package/dist/messaging/index.js +1 -0
- package/dist/messaging/index.js.map +1 -1
- package/dist/modules/catalog.d.ts +7 -4
- package/dist/modules/catalog.d.ts.map +1 -1
- package/dist/modules/catalog.js +24 -5
- package/dist/modules/catalog.js.map +1 -1
- package/dist/modules/contracts.d.ts +1 -1
- package/dist/modules/contracts.d.ts.map +1 -1
- package/dist/modules/contracts.js +3 -0
- package/dist/modules/contracts.js.map +1 -1
- package/dist/notifications/incident-policy.d.ts +6 -0
- package/dist/notifications/incident-policy.d.ts.map +1 -0
- package/dist/notifications/incident-policy.js +119 -0
- package/dist/notifications/incident-policy.js.map +1 -0
- package/dist/notifications/incident-schedule.d.ts +14 -0
- package/dist/notifications/incident-schedule.d.ts.map +1 -0
- package/dist/notifications/incident-schedule.js +36 -0
- package/dist/notifications/incident-schedule.js.map +1 -0
- package/dist/notifications/incident-state.d.ts +72 -0
- package/dist/notifications/incident-state.d.ts.map +1 -0
- package/dist/notifications/incident-state.js +72 -0
- package/dist/notifications/incident-state.js.map +1 -0
- package/dist/notifications/index.d.ts +9 -0
- package/dist/notifications/index.d.ts.map +1 -0
- package/dist/notifications/index.js +9 -0
- package/dist/notifications/index.js.map +1 -0
- package/dist/notifications/ops-job-failure-contract.d.ts +19 -0
- package/dist/notifications/ops-job-failure-contract.d.ts.map +1 -0
- package/dist/notifications/ops-job-failure-contract.js +183 -0
- package/dist/notifications/ops-job-failure-contract.js.map +1 -0
- package/dist/notifications/ops-job-failure-types.d.ts +81 -0
- package/dist/notifications/ops-job-failure-types.d.ts.map +1 -0
- package/dist/notifications/ops-job-failure-types.js +73 -0
- package/dist/notifications/ops-job-failure-types.js.map +1 -0
- package/dist/notifications/recipients-http.d.ts +66 -0
- package/dist/notifications/recipients-http.d.ts.map +1 -0
- package/dist/notifications/recipients-http.js +148 -0
- package/dist/notifications/recipients-http.js.map +1 -0
- package/dist/notifications/recipients.d.ts +50 -0
- package/dist/notifications/recipients.d.ts.map +1 -0
- package/dist/notifications/recipients.js +59 -0
- package/dist/notifications/recipients.js.map +1 -0
- package/dist/prompts/registry.d.ts +55 -0
- package/dist/prompts/registry.d.ts.map +1 -0
- package/dist/prompts/registry.js +76 -0
- package/dist/prompts/registry.js.map +1 -0
- package/dist/runtime/heavy-phase-queue.d.ts +101 -0
- package/dist/runtime/heavy-phase-queue.d.ts.map +1 -0
- package/dist/runtime/heavy-phase-queue.js +129 -0
- package/dist/runtime/heavy-phase-queue.js.map +1 -0
- package/dist/sessions/content-policy.d.ts +55 -0
- package/dist/sessions/content-policy.d.ts.map +1 -0
- package/dist/sessions/content-policy.js +133 -0
- package/dist/sessions/content-policy.js.map +1 -0
- package/dist/sessions/registry-admin.d.ts +19 -0
- package/dist/sessions/registry-admin.d.ts.map +1 -0
- package/dist/sessions/registry-admin.js +42 -0
- package/dist/sessions/registry-admin.js.map +1 -0
- package/dist/sessions/registry-freshness.d.ts +8 -0
- package/dist/sessions/registry-freshness.d.ts.map +1 -0
- package/dist/sessions/registry-freshness.js +108 -0
- package/dist/sessions/registry-freshness.js.map +1 -0
- package/dist/sessions/registry-ingest.d.ts +5 -0
- package/dist/sessions/registry-ingest.d.ts.map +1 -0
- package/dist/sessions/registry-ingest.js +113 -0
- package/dist/sessions/registry-ingest.js.map +1 -0
- package/dist/sessions/registry-publish.d.ts +18 -0
- package/dist/sessions/registry-publish.d.ts.map +1 -0
- package/dist/sessions/registry-publish.js +134 -0
- package/dist/sessions/registry-publish.js.map +1 -0
- package/dist/sessions/registry-store.d.ts +51 -0
- package/dist/sessions/registry-store.d.ts.map +1 -0
- package/dist/sessions/registry-store.js +134 -0
- package/dist/sessions/registry-store.js.map +1 -0
- package/dist/sessions/registry-types.d.ts +180 -0
- package/dist/sessions/registry-types.d.ts.map +1 -0
- package/dist/sessions/registry-types.js +32 -0
- package/dist/sessions/registry-types.js.map +1 -0
- package/dist/sessions/registry.d.ts +45 -0
- package/dist/sessions/registry.d.ts.map +1 -0
- package/dist/sessions/registry.js +74 -0
- package/dist/sessions/registry.js.map +1 -0
- package/dist/sessions/relay-bind.d.ts +38 -0
- package/dist/sessions/relay-bind.d.ts.map +1 -0
- package/dist/sessions/relay-bind.js +74 -0
- package/dist/sessions/relay-bind.js.map +1 -0
- package/dist/sessions/relay-brand.d.ts +2 -0
- package/dist/sessions/relay-brand.d.ts.map +1 -0
- package/dist/sessions/relay-brand.js +7 -0
- package/dist/sessions/relay-brand.js.map +1 -0
- package/dist/sessions/relay-capsule.d.ts +50 -0
- package/dist/sessions/relay-capsule.d.ts.map +1 -0
- package/dist/sessions/relay-capsule.js +72 -0
- package/dist/sessions/relay-capsule.js.map +1 -0
- package/dist/sessions/relay-chain-failure.d.ts +25 -0
- package/dist/sessions/relay-chain-failure.d.ts.map +1 -0
- package/dist/sessions/relay-chain-failure.js +23 -0
- package/dist/sessions/relay-chain-failure.js.map +1 -0
- package/dist/sessions/relay-chain.d.ts +74 -0
- package/dist/sessions/relay-chain.d.ts.map +1 -0
- package/dist/sessions/relay-chain.js +71 -0
- package/dist/sessions/relay-chain.js.map +1 -0
- package/dist/sessions/relay-composition.d.ts +8 -0
- package/dist/sessions/relay-composition.d.ts.map +1 -0
- package/dist/sessions/relay-composition.js +65 -0
- package/dist/sessions/relay-composition.js.map +1 -0
- package/dist/sessions/relay-credit.d.ts +40 -0
- package/dist/sessions/relay-credit.d.ts.map +1 -0
- package/dist/sessions/relay-credit.js +68 -0
- package/dist/sessions/relay-credit.js.map +1 -0
- package/dist/sessions/relay-engine.d.ts +19 -0
- package/dist/sessions/relay-engine.d.ts.map +1 -0
- package/dist/sessions/relay-engine.js +34 -0
- package/dist/sessions/relay-engine.js.map +1 -0
- package/dist/sessions/relay-frames.d.ts +28 -0
- package/dist/sessions/relay-frames.d.ts.map +1 -0
- package/dist/sessions/relay-frames.js +72 -0
- package/dist/sessions/relay-frames.js.map +1 -0
- package/dist/sessions/relay-lane-client.d.ts +7 -0
- package/dist/sessions/relay-lane-client.d.ts.map +1 -0
- package/dist/sessions/relay-lane-client.js +137 -0
- package/dist/sessions/relay-lane-client.js.map +1 -0
- package/dist/sessions/relay-lane-lease.d.ts +20 -0
- package/dist/sessions/relay-lane-lease.d.ts.map +1 -0
- package/dist/sessions/relay-lane-lease.js +74 -0
- package/dist/sessions/relay-lane-lease.js.map +1 -0
- package/dist/sessions/relay-lane-record.d.ts +28 -0
- package/dist/sessions/relay-lane-record.d.ts.map +1 -0
- package/dist/sessions/relay-lane-record.js +28 -0
- package/dist/sessions/relay-lane-record.js.map +1 -0
- package/dist/sessions/relay-lane-stream.d.ts +13 -0
- package/dist/sessions/relay-lane-stream.d.ts.map +1 -0
- package/dist/sessions/relay-lane-stream.js +148 -0
- package/dist/sessions/relay-lane-stream.js.map +1 -0
- package/dist/sessions/relay-routes.d.ts +368 -0
- package/dist/sessions/relay-routes.d.ts.map +1 -0
- package/dist/sessions/relay-routes.js +46 -0
- package/dist/sessions/relay-routes.js.map +1 -0
- package/dist/sessions/relay-skeleton.d.ts +4 -0
- package/dist/sessions/relay-skeleton.d.ts.map +1 -0
- package/dist/sessions/relay-skeleton.js +85 -0
- package/dist/sessions/relay-skeleton.js.map +1 -0
- package/dist/sessions/relay-types.d.ts +107 -0
- package/dist/sessions/relay-types.d.ts.map +1 -0
- package/dist/sessions/relay-types.js +2 -0
- package/dist/sessions/relay-types.js.map +1 -0
- package/dist/sessions/relay-validate.d.ts +8 -0
- package/dist/sessions/relay-validate.d.ts.map +1 -0
- package/dist/sessions/relay-validate.js +169 -0
- package/dist/sessions/relay-validate.js.map +1 -0
- package/dist/sessions/relay-wire.d.ts +8 -0
- package/dist/sessions/relay-wire.d.ts.map +1 -0
- package/dist/sessions/relay-wire.js +37 -0
- package/dist/sessions/relay-wire.js.map +1 -0
- package/dist/sessions/relay-wiring.d.ts +26 -0
- package/dist/sessions/relay-wiring.d.ts.map +1 -0
- package/dist/sessions/relay-wiring.js +13 -0
- package/dist/sessions/relay-wiring.js.map +1 -0
- package/dist/sessions/relay.d.ts +11 -0
- package/dist/sessions/relay.d.ts.map +1 -0
- package/dist/sessions/relay.js +71 -0
- package/dist/sessions/relay.js.map +1 -0
- package/dist/storage/descriptor.d.ts +1 -1
- package/dist/storage/errors.d.ts +1 -1
- package/dist/storage/identity/atomic-deletion.d.ts +4 -0
- package/dist/storage/identity/atomic-deletion.d.ts.map +1 -0
- package/dist/storage/identity/atomic-deletion.js +235 -0
- package/dist/storage/identity/atomic-deletion.js.map +1 -0
- package/dist/storage/identity/custody-composition.d.ts +9 -0
- package/dist/storage/identity/custody-composition.d.ts.map +1 -0
- package/dist/storage/identity/custody-composition.js +31 -0
- package/dist/storage/identity/custody-composition.js.map +1 -0
- package/dist/storage/identity/custody-delivery-record.d.ts +4 -0
- package/dist/storage/identity/custody-delivery-record.d.ts.map +1 -0
- package/dist/storage/identity/custody-delivery-record.js +11 -0
- package/dist/storage/identity/custody-delivery-record.js.map +1 -0
- package/dist/storage/identity/custody-host.d.ts +16 -0
- package/dist/storage/identity/custody-host.d.ts.map +1 -0
- package/dist/storage/identity/custody-host.js +5 -0
- package/dist/storage/identity/custody-host.js.map +1 -0
- package/dist/storage/identity/custody-import-deliveries.d.ts +6 -0
- package/dist/storage/identity/custody-import-deliveries.d.ts.map +1 -0
- package/dist/storage/identity/custody-import-deliveries.js +46 -0
- package/dist/storage/identity/custody-import-deliveries.js.map +1 -0
- package/dist/storage/identity/custody-import.d.ts +4 -0
- package/dist/storage/identity/custody-import.d.ts.map +1 -0
- package/dist/storage/identity/custody-import.js +364 -0
- package/dist/storage/identity/custody-import.js.map +1 -0
- package/dist/storage/identity/custody-journal-postgres.d.ts +125 -0
- package/dist/storage/identity/custody-journal-postgres.d.ts.map +1 -0
- package/dist/storage/identity/custody-journal-postgres.js +428 -0
- package/dist/storage/identity/custody-journal-postgres.js.map +1 -0
- package/dist/storage/identity/custody-journal-sqlite.d.ts +121 -0
- package/dist/storage/identity/custody-journal-sqlite.d.ts.map +1 -0
- package/dist/storage/identity/custody-journal-sqlite.js +345 -0
- package/dist/storage/identity/custody-journal-sqlite.js.map +1 -0
- package/dist/storage/identity/custody-lifecycle.d.ts +4 -0
- package/dist/storage/identity/custody-lifecycle.d.ts.map +1 -0
- package/dist/storage/identity/custody-lifecycle.js +42 -0
- package/dist/storage/identity/custody-lifecycle.js.map +1 -0
- package/dist/storage/identity/custody-postgres.d.ts +96 -0
- package/dist/storage/identity/custody-postgres.d.ts.map +1 -0
- package/dist/storage/identity/custody-postgres.js +726 -0
- package/dist/storage/identity/custody-postgres.js.map +1 -0
- package/dist/storage/identity/custody-records.d.ts +17 -0
- package/dist/storage/identity/custody-records.d.ts.map +1 -0
- package/dist/storage/identity/custody-records.js +260 -0
- package/dist/storage/identity/custody-records.js.map +1 -0
- package/dist/storage/identity/custody-shared.d.ts +28 -0
- package/dist/storage/identity/custody-shared.d.ts.map +1 -0
- package/dist/storage/identity/custody-shared.js +24 -0
- package/dist/storage/identity/custody-shared.js.map +1 -0
- package/dist/storage/identity/custody-sqlite.d.ts +93 -0
- package/dist/storage/identity/custody-sqlite.d.ts.map +1 -0
- package/dist/storage/identity/custody-sqlite.js +568 -0
- package/dist/storage/identity/custody-sqlite.js.map +1 -0
- package/dist/storage/identity/custody-tombstone-record.d.ts +3 -0
- package/dist/storage/identity/custody-tombstone-record.d.ts.map +1 -0
- package/dist/storage/identity/custody-tombstone-record.js +8 -0
- package/dist/storage/identity/custody-tombstone-record.js.map +1 -0
- package/dist/storage/identity/custody-transaction-guards.d.ts +16 -0
- package/dist/storage/identity/custody-transaction-guards.d.ts.map +1 -0
- package/dist/storage/identity/custody-transaction-guards.js +64 -0
- package/dist/storage/identity/custody-transaction-guards.js.map +1 -0
- package/dist/storage/identity/custody-transaction-ports.d.ts +9 -0
- package/dist/storage/identity/custody-transaction-ports.d.ts.map +1 -0
- package/dist/storage/identity/custody-transaction-ports.js +106 -0
- package/dist/storage/identity/custody-transaction-ports.js.map +1 -0
- package/dist/storage/identity/deletion-planes.d.ts +10 -0
- package/dist/storage/identity/deletion-planes.d.ts.map +1 -0
- package/dist/storage/identity/deletion-planes.js +54 -0
- package/dist/storage/identity/deletion-planes.js.map +1 -0
- package/dist/storage/identity/index.d.ts +18 -0
- package/dist/storage/identity/index.d.ts.map +1 -0
- package/dist/storage/identity/index.js +22 -0
- package/dist/storage/identity/index.js.map +1 -0
- package/dist/storage/identity/postgres.d.ts +16 -0
- package/dist/storage/identity/postgres.d.ts.map +1 -0
- package/dist/storage/identity/postgres.js +345 -0
- package/dist/storage/identity/postgres.js.map +1 -0
- package/dist/storage/identity/records.d.ts +12 -0
- package/dist/storage/identity/records.d.ts.map +1 -0
- package/dist/storage/identity/records.js +84 -0
- package/dist/storage/identity/records.js.map +1 -0
- package/dist/storage/identity/replica-sync.d.ts +4 -0
- package/dist/storage/identity/replica-sync.d.ts.map +1 -0
- package/dist/storage/identity/replica-sync.js +402 -0
- package/dist/storage/identity/replica-sync.js.map +1 -0
- package/dist/storage/identity/schema.d.ts +13 -0
- package/dist/storage/identity/schema.d.ts.map +1 -0
- package/dist/storage/identity/schema.js +418 -0
- package/dist/storage/identity/schema.js.map +1 -0
- package/dist/storage/identity/sqlite-schema.d.ts +4 -0
- package/dist/storage/identity/sqlite-schema.d.ts.map +1 -0
- package/dist/storage/identity/sqlite-schema.js +17 -0
- package/dist/storage/identity/sqlite-schema.js.map +1 -0
- package/dist/storage/identity/sqlite.d.ts +25 -0
- package/dist/storage/identity/sqlite.d.ts.map +1 -0
- package/dist/storage/identity/sqlite.js +233 -0
- package/dist/storage/identity/sqlite.js.map +1 -0
- package/dist/storage/identity/stores.d.ts +10 -0
- package/dist/storage/identity/stores.d.ts.map +1 -0
- package/dist/storage/identity/stores.js +5 -0
- package/dist/storage/identity/stores.js.map +1 -0
- package/dist/storage/identity/wiring.d.ts +20 -0
- package/dist/storage/identity/wiring.d.ts.map +1 -0
- package/dist/storage/identity/wiring.js +26 -0
- package/dist/storage/identity/wiring.js.map +1 -0
- package/dist/storage/identity/workspace-deletion.d.ts +3 -0
- package/dist/storage/identity/workspace-deletion.d.ts.map +1 -0
- package/dist/storage/identity/workspace-deletion.js +100 -0
- package/dist/storage/identity/workspace-deletion.js.map +1 -0
- package/dist/storage/postgres/journal.d.ts +1 -1
- package/dist/storage/postgres/profiles.d.ts +2 -2
- package/dist/storage/postgres/scope.d.ts +1 -1
- package/dist/storage/root-facade.d.ts +1 -1
- package/dist/storage/root-journal.d.ts +1 -1
- package/dist/storage/root-profiles.d.ts +1 -1
- package/docs/memory-mcp-candidate.md +46 -0
- package/docs/memory-mcp.md +98 -0
- package/examples/memory-mcp-stdio.mjs +42 -0
- package/package.json +66 -5
- package/ui/AdminUsersScreen.svelte +197 -0
- package/ui/AdminUsersScreen.svelte.d.ts +4 -0
- package/ui/LoginScreen.svelte +15 -0
- package/ui/LoginScreen.svelte.d.ts +4 -0
- package/ui/MembershipDecisionsScreen.svelte +76 -0
- package/ui/MembershipDecisionsScreen.svelte.d.ts +4 -0
- package/ui/RegistrationScreen.svelte +15 -0
- package/ui/RegistrationScreen.svelte.d.ts +4 -0
- package/ui/WorkspaceMembersScreen.svelte +86 -0
- package/ui/WorkspaceMembersScreen.svelte.d.ts +4 -0
- package/ui/auth-flow.ts +44 -0
- package/ui/management-ports.ts +36 -0
- package/ui/management-transport.ts +29 -0
- package/contracts/engram-memory-neutral-contract-v1.d.ts +0 -367
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
import type { RelayErrorCode } from './registry-types.js';
|
|
2
|
+
export type SessionRelayLane = 'content' | 'actions' | 'results' | 'lifecycle';
|
|
3
|
+
export type SessionRelayStage = 'listing' | 'bootstrap' | 'bound';
|
|
4
|
+
export type SessionRelayEngineKind = 'cli' | 'app-chat';
|
|
5
|
+
export interface SessionRelayRouteSpec {
|
|
6
|
+
readonly method: 'GET' | 'POST';
|
|
7
|
+
readonly path: string;
|
|
8
|
+
readonly lane: SessionRelayLane;
|
|
9
|
+
readonly stages: readonly SessionRelayStage[];
|
|
10
|
+
readonly engines: readonly SessionRelayEngineKind[];
|
|
11
|
+
readonly stream: boolean;
|
|
12
|
+
readonly maxRequestBytes: number;
|
|
13
|
+
readonly successStatus: number;
|
|
14
|
+
readonly pathParameters: readonly string[];
|
|
15
|
+
readonly bodyRequired: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const SESSION_RELAY_INNER_ROUTES: {
|
|
18
|
+
readonly 'source-open': {
|
|
19
|
+
readonly method: "POST";
|
|
20
|
+
readonly path: "/api/v1/auth/session/content/:bindingId/source/sessions";
|
|
21
|
+
readonly lane: "lifecycle";
|
|
22
|
+
readonly stages: readonly ["bootstrap", "bound"];
|
|
23
|
+
readonly engines: readonly ["cli"];
|
|
24
|
+
readonly stream: false;
|
|
25
|
+
readonly maxRequestBytes: 65536;
|
|
26
|
+
readonly successStatus: 200;
|
|
27
|
+
readonly pathParameters: readonly ["bindingId"];
|
|
28
|
+
readonly bodyRequired: true;
|
|
29
|
+
};
|
|
30
|
+
readonly 'source-renew': {
|
|
31
|
+
readonly method: "POST";
|
|
32
|
+
readonly path: "/api/v1/auth/session/content/:bindingId/source/sessions/:sourceSessionId/renew";
|
|
33
|
+
readonly lane: "lifecycle";
|
|
34
|
+
readonly stages: readonly ["bound"];
|
|
35
|
+
readonly engines: readonly ["cli"];
|
|
36
|
+
readonly stream: false;
|
|
37
|
+
readonly maxRequestBytes: 65536;
|
|
38
|
+
readonly successStatus: 200;
|
|
39
|
+
readonly pathParameters: readonly ["bindingId", "sourceSessionId"];
|
|
40
|
+
readonly bodyRequired: true;
|
|
41
|
+
};
|
|
42
|
+
readonly 'grant-fetch': {
|
|
43
|
+
readonly method: "GET";
|
|
44
|
+
readonly path: "/api/v1/auth/session/content/:bindingId/source/sessions/:sourceSessionId/grants/:proposalId";
|
|
45
|
+
readonly lane: "lifecycle";
|
|
46
|
+
readonly stages: readonly ["bound"];
|
|
47
|
+
readonly engines: readonly ["cli"];
|
|
48
|
+
readonly stream: false;
|
|
49
|
+
readonly maxRequestBytes: 0;
|
|
50
|
+
readonly successStatus: 200;
|
|
51
|
+
readonly pathParameters: readonly ["bindingId", "sourceSessionId", "proposalId"];
|
|
52
|
+
readonly bodyRequired: false;
|
|
53
|
+
};
|
|
54
|
+
readonly 'policy-fetch': {
|
|
55
|
+
readonly method: "GET";
|
|
56
|
+
readonly path: "/api/v1/auth/session/content/:bindingId/source/sessions/:sourceSessionId/policies/:policyId/:policyRevision";
|
|
57
|
+
readonly lane: "lifecycle";
|
|
58
|
+
readonly stages: readonly ["bound"];
|
|
59
|
+
readonly engines: readonly ["cli"];
|
|
60
|
+
readonly stream: false;
|
|
61
|
+
readonly maxRequestBytes: 0;
|
|
62
|
+
readonly successStatus: 200;
|
|
63
|
+
readonly pathParameters: readonly ["bindingId", "sourceSessionId", "policyId", "policyRevision"];
|
|
64
|
+
readonly bodyRequired: false;
|
|
65
|
+
};
|
|
66
|
+
readonly 'activation-ack': {
|
|
67
|
+
readonly method: "POST";
|
|
68
|
+
readonly path: "/api/v1/auth/session/content/:bindingId/source/sessions/:sourceSessionId/acks";
|
|
69
|
+
readonly lane: "lifecycle";
|
|
70
|
+
readonly stages: readonly ["bound"];
|
|
71
|
+
readonly engines: readonly ["cli"];
|
|
72
|
+
readonly stream: false;
|
|
73
|
+
readonly maxRequestBytes: 65536;
|
|
74
|
+
readonly successStatus: 200;
|
|
75
|
+
readonly pathParameters: readonly ["bindingId", "sourceSessionId"];
|
|
76
|
+
readonly bodyRequired: true;
|
|
77
|
+
};
|
|
78
|
+
readonly 'native-challenge': {
|
|
79
|
+
readonly method: "POST";
|
|
80
|
+
readonly path: "/api/v1/auth/session/content/:bindingId/source/sessions/:sourceSessionId/challenges";
|
|
81
|
+
readonly lane: "lifecycle";
|
|
82
|
+
readonly stages: readonly ["bound"];
|
|
83
|
+
readonly engines: readonly ["cli"];
|
|
84
|
+
readonly stream: false;
|
|
85
|
+
readonly maxRequestBytes: 65536;
|
|
86
|
+
readonly successStatus: 200;
|
|
87
|
+
readonly pathParameters: readonly ["bindingId", "sourceSessionId"];
|
|
88
|
+
readonly bodyRequired: true;
|
|
89
|
+
};
|
|
90
|
+
readonly 'source-control': {
|
|
91
|
+
readonly method: "GET";
|
|
92
|
+
readonly path: "/api/v1/auth/session/content/:bindingId/source/sessions/:sourceSessionId/control";
|
|
93
|
+
readonly lane: "lifecycle";
|
|
94
|
+
readonly stages: readonly ["bound"];
|
|
95
|
+
readonly engines: readonly ["cli"];
|
|
96
|
+
readonly stream: true;
|
|
97
|
+
readonly maxRequestBytes: 0;
|
|
98
|
+
readonly successStatus: 200;
|
|
99
|
+
readonly pathParameters: readonly ["bindingId", "sourceSessionId"];
|
|
100
|
+
readonly bodyRequired: false;
|
|
101
|
+
};
|
|
102
|
+
readonly 'cli-proof': {
|
|
103
|
+
readonly method: "POST";
|
|
104
|
+
readonly path: "/api/v1/auth/session/content/:bindingId/source/sessions/:sourceSessionId/proofs";
|
|
105
|
+
readonly lane: "lifecycle";
|
|
106
|
+
readonly stages: readonly ["bound"];
|
|
107
|
+
readonly engines: readonly ["cli"];
|
|
108
|
+
readonly stream: false;
|
|
109
|
+
readonly maxRequestBytes: 65536;
|
|
110
|
+
readonly successStatus: 200;
|
|
111
|
+
readonly pathParameters: readonly ["bindingId", "sourceSessionId"];
|
|
112
|
+
readonly bodyRequired: true;
|
|
113
|
+
};
|
|
114
|
+
readonly 'action-nonce': {
|
|
115
|
+
readonly method: "POST";
|
|
116
|
+
readonly path: "/api/v1/auth/session/content/:bindingId/source/sessions/:sourceSessionId/actions/nonces";
|
|
117
|
+
readonly lane: "lifecycle";
|
|
118
|
+
readonly stages: readonly ["bound"];
|
|
119
|
+
readonly engines: readonly ["cli"];
|
|
120
|
+
readonly stream: false;
|
|
121
|
+
readonly maxRequestBytes: 65536;
|
|
122
|
+
readonly successStatus: 200;
|
|
123
|
+
readonly pathParameters: readonly ["bindingId", "sourceSessionId"];
|
|
124
|
+
readonly bodyRequired: true;
|
|
125
|
+
};
|
|
126
|
+
readonly 'continuity-ack': {
|
|
127
|
+
readonly method: "POST";
|
|
128
|
+
readonly path: "/api/v1/auth/session/content/:bindingId/source/acks";
|
|
129
|
+
readonly lane: "lifecycle";
|
|
130
|
+
readonly stages: readonly ["bound"];
|
|
131
|
+
readonly engines: readonly ["cli"];
|
|
132
|
+
readonly stream: false;
|
|
133
|
+
readonly maxRequestBytes: 65536;
|
|
134
|
+
readonly successStatus: 200;
|
|
135
|
+
readonly pathParameters: readonly ["bindingId"];
|
|
136
|
+
readonly bodyRequired: true;
|
|
137
|
+
};
|
|
138
|
+
readonly 'history-auth': {
|
|
139
|
+
readonly method: "GET";
|
|
140
|
+
readonly path: "/api/v1/auth/session/content/:bindingId/history/authorizations/:authorizationId";
|
|
141
|
+
readonly lane: "lifecycle";
|
|
142
|
+
readonly stages: readonly ["bound"];
|
|
143
|
+
readonly engines: readonly ["cli"];
|
|
144
|
+
readonly stream: false;
|
|
145
|
+
readonly maxRequestBytes: 0;
|
|
146
|
+
readonly successStatus: 200;
|
|
147
|
+
readonly pathParameters: readonly ["bindingId", "authorizationId"];
|
|
148
|
+
readonly bodyRequired: false;
|
|
149
|
+
};
|
|
150
|
+
readonly 'history-admission': {
|
|
151
|
+
readonly method: "GET";
|
|
152
|
+
readonly path: "/api/v1/auth/session/content/:bindingId/history/admissions/:descriptorHash";
|
|
153
|
+
readonly lane: "lifecycle";
|
|
154
|
+
readonly stages: readonly ["bound"];
|
|
155
|
+
readonly engines: readonly ["cli"];
|
|
156
|
+
readonly stream: false;
|
|
157
|
+
readonly maxRequestBytes: 0;
|
|
158
|
+
readonly successStatus: 200;
|
|
159
|
+
readonly pathParameters: readonly ["bindingId", "descriptorHash"];
|
|
160
|
+
readonly bodyRequired: false;
|
|
161
|
+
};
|
|
162
|
+
readonly 'typed-events': {
|
|
163
|
+
readonly method: "POST";
|
|
164
|
+
readonly path: "/api/v1/auth/session/content/:bindingId/source/sessions/:sourceSessionId/events";
|
|
165
|
+
readonly lane: "content";
|
|
166
|
+
readonly stages: readonly ["bound"];
|
|
167
|
+
readonly engines: readonly ["cli"];
|
|
168
|
+
readonly stream: false;
|
|
169
|
+
readonly maxRequestBytes: 65536;
|
|
170
|
+
readonly successStatus: 200;
|
|
171
|
+
readonly pathParameters: readonly ["bindingId", "sourceSessionId"];
|
|
172
|
+
readonly bodyRequired: true;
|
|
173
|
+
};
|
|
174
|
+
readonly 'pty-fragments': {
|
|
175
|
+
readonly method: "POST";
|
|
176
|
+
readonly path: "/api/v1/auth/session/content/:bindingId/fragments";
|
|
177
|
+
readonly lane: "content";
|
|
178
|
+
readonly stages: readonly ["bound"];
|
|
179
|
+
readonly engines: readonly ["cli"];
|
|
180
|
+
readonly stream: false;
|
|
181
|
+
readonly maxRequestBytes: 65536;
|
|
182
|
+
readonly successStatus: 200;
|
|
183
|
+
readonly pathParameters: readonly ["bindingId"];
|
|
184
|
+
readonly bodyRequired: true;
|
|
185
|
+
};
|
|
186
|
+
readonly 'archive-snapshot': {
|
|
187
|
+
readonly method: "POST";
|
|
188
|
+
readonly path: "/api/v1/auth/session/content/:bindingId/source/snapshots";
|
|
189
|
+
readonly lane: "content";
|
|
190
|
+
readonly stages: readonly ["bound"];
|
|
191
|
+
readonly engines: readonly ["cli"];
|
|
192
|
+
readonly stream: false;
|
|
193
|
+
readonly maxRequestBytes: 65536;
|
|
194
|
+
readonly successStatus: 200;
|
|
195
|
+
readonly pathParameters: readonly ["bindingId"];
|
|
196
|
+
readonly bodyRequired: true;
|
|
197
|
+
};
|
|
198
|
+
readonly 'archive-segment': {
|
|
199
|
+
readonly method: "POST";
|
|
200
|
+
readonly path: "/api/v1/auth/session/content/:bindingId/source/segments";
|
|
201
|
+
readonly lane: "content";
|
|
202
|
+
readonly stages: readonly ["bound"];
|
|
203
|
+
readonly engines: readonly ["cli"];
|
|
204
|
+
readonly stream: false;
|
|
205
|
+
readonly maxRequestBytes: 65536;
|
|
206
|
+
readonly successStatus: 200;
|
|
207
|
+
readonly pathParameters: readonly ["bindingId"];
|
|
208
|
+
readonly bodyRequired: true;
|
|
209
|
+
};
|
|
210
|
+
readonly 'action-stream': {
|
|
211
|
+
readonly method: "GET";
|
|
212
|
+
readonly path: "/api/v1/auth/session/content/:bindingId/source/sessions/:sourceSessionId/actions/stream";
|
|
213
|
+
readonly lane: "actions";
|
|
214
|
+
readonly stages: readonly ["bound"];
|
|
215
|
+
readonly engines: readonly ["cli"];
|
|
216
|
+
readonly stream: true;
|
|
217
|
+
readonly maxRequestBytes: 0;
|
|
218
|
+
readonly successStatus: 200;
|
|
219
|
+
readonly pathParameters: readonly ["bindingId", "sourceSessionId"];
|
|
220
|
+
readonly bodyRequired: false;
|
|
221
|
+
};
|
|
222
|
+
readonly 'action-claim': {
|
|
223
|
+
readonly method: "POST";
|
|
224
|
+
readonly path: "/api/v1/auth/session/content/:bindingId/source/sessions/:sourceSessionId/actions/:actionId/claim";
|
|
225
|
+
readonly lane: "actions";
|
|
226
|
+
readonly stages: readonly ["bound"];
|
|
227
|
+
readonly engines: readonly ["cli"];
|
|
228
|
+
readonly stream: false;
|
|
229
|
+
readonly maxRequestBytes: 65536;
|
|
230
|
+
readonly successStatus: 200;
|
|
231
|
+
readonly pathParameters: readonly ["bindingId", "sourceSessionId", "actionId"];
|
|
232
|
+
readonly bodyRequired: true;
|
|
233
|
+
};
|
|
234
|
+
readonly 'action-result': {
|
|
235
|
+
readonly method: "POST";
|
|
236
|
+
readonly path: "/api/v1/auth/session/content/:bindingId/source/sessions/:sourceSessionId/actions/:actionId/results";
|
|
237
|
+
readonly lane: "results";
|
|
238
|
+
readonly stages: readonly ["bound"];
|
|
239
|
+
readonly engines: readonly ["cli"];
|
|
240
|
+
readonly stream: false;
|
|
241
|
+
readonly maxRequestBytes: 65536;
|
|
242
|
+
readonly successStatus: 200;
|
|
243
|
+
readonly pathParameters: readonly ["bindingId", "sourceSessionId", "actionId"];
|
|
244
|
+
readonly bodyRequired: true;
|
|
245
|
+
};
|
|
246
|
+
readonly 'listing-grant-fetch': {
|
|
247
|
+
readonly method: "GET";
|
|
248
|
+
readonly path: "/mesh/v1/remote-sessions/:sessionId/listing-grants/:grantId";
|
|
249
|
+
readonly lane: "lifecycle";
|
|
250
|
+
readonly stages: readonly ["listing", "bootstrap", "bound"];
|
|
251
|
+
readonly engines: readonly ["cli", "app-chat"];
|
|
252
|
+
readonly stream: false;
|
|
253
|
+
readonly maxRequestBytes: 0;
|
|
254
|
+
readonly successStatus: 200;
|
|
255
|
+
readonly pathParameters: readonly ["sessionId", "grantId"];
|
|
256
|
+
readonly bodyRequired: false;
|
|
257
|
+
};
|
|
258
|
+
readonly 'listing-grant-ack': {
|
|
259
|
+
readonly method: "POST";
|
|
260
|
+
readonly path: "/mesh/v1/remote-sessions/:sessionId/listing-grants/:grantId/acks";
|
|
261
|
+
readonly lane: "lifecycle";
|
|
262
|
+
readonly stages: readonly ["listing", "bootstrap", "bound"];
|
|
263
|
+
readonly engines: readonly ["cli", "app-chat"];
|
|
264
|
+
readonly stream: false;
|
|
265
|
+
readonly maxRequestBytes: 65536;
|
|
266
|
+
readonly successStatus: 200;
|
|
267
|
+
readonly pathParameters: readonly ["sessionId", "grantId"];
|
|
268
|
+
readonly bodyRequired: true;
|
|
269
|
+
};
|
|
270
|
+
readonly 'listing-publish': {
|
|
271
|
+
readonly method: "POST";
|
|
272
|
+
readonly path: "/mesh/v1/remote-sessions/:sessionId/listing";
|
|
273
|
+
readonly lane: "lifecycle";
|
|
274
|
+
readonly stages: readonly ["listing", "bootstrap", "bound"];
|
|
275
|
+
readonly engines: readonly ["cli", "app-chat"];
|
|
276
|
+
readonly stream: false;
|
|
277
|
+
readonly maxRequestBytes: 65536;
|
|
278
|
+
readonly successStatus: 200;
|
|
279
|
+
readonly pathParameters: readonly ["sessionId"];
|
|
280
|
+
readonly bodyRequired: true;
|
|
281
|
+
};
|
|
282
|
+
readonly 'freshness-publish': {
|
|
283
|
+
readonly method: "POST";
|
|
284
|
+
readonly path: "/mesh/v1/remote-sessions/:sessionId/freshness";
|
|
285
|
+
readonly lane: "lifecycle";
|
|
286
|
+
readonly stages: readonly ["listing", "bootstrap", "bound"];
|
|
287
|
+
readonly engines: readonly ["cli", "app-chat"];
|
|
288
|
+
readonly stream: false;
|
|
289
|
+
readonly maxRequestBytes: 65536;
|
|
290
|
+
readonly successStatus: 200;
|
|
291
|
+
readonly pathParameters: readonly ["sessionId"];
|
|
292
|
+
readonly bodyRequired: true;
|
|
293
|
+
};
|
|
294
|
+
readonly 'lifecycle-publish': {
|
|
295
|
+
readonly method: "POST";
|
|
296
|
+
readonly path: "/mesh/v1/remote-sessions/:sessionId/lifecycle";
|
|
297
|
+
readonly lane: "lifecycle";
|
|
298
|
+
readonly stages: readonly ["bound"];
|
|
299
|
+
readonly engines: readonly ["cli", "app-chat"];
|
|
300
|
+
readonly stream: false;
|
|
301
|
+
readonly maxRequestBytes: 65536;
|
|
302
|
+
readonly successStatus: 200;
|
|
303
|
+
readonly pathParameters: readonly ["sessionId"];
|
|
304
|
+
readonly bodyRequired: true;
|
|
305
|
+
};
|
|
306
|
+
readonly 'snapshot-publish': {
|
|
307
|
+
readonly method: "POST";
|
|
308
|
+
readonly path: "/mesh/v1/remote-sessions/:sessionId/snapshot";
|
|
309
|
+
readonly lane: "lifecycle";
|
|
310
|
+
readonly stages: readonly ["bound"];
|
|
311
|
+
readonly engines: readonly ["cli", "app-chat"];
|
|
312
|
+
readonly stream: false;
|
|
313
|
+
readonly maxRequestBytes: 65536;
|
|
314
|
+
readonly successStatus: 200;
|
|
315
|
+
readonly pathParameters: readonly ["sessionId"];
|
|
316
|
+
readonly bodyRequired: true;
|
|
317
|
+
};
|
|
318
|
+
readonly 'drive-binding-fetch': {
|
|
319
|
+
readonly method: "GET";
|
|
320
|
+
readonly path: "/mesh/v1/remote-sessions/:sessionId/drive-bindings/:bindingId/:consentRevision";
|
|
321
|
+
readonly lane: "lifecycle";
|
|
322
|
+
readonly stages: readonly ["bound"];
|
|
323
|
+
readonly engines: readonly ["cli"];
|
|
324
|
+
readonly stream: false;
|
|
325
|
+
readonly maxRequestBytes: 0;
|
|
326
|
+
readonly successStatus: 200;
|
|
327
|
+
readonly pathParameters: readonly ["sessionId", "bindingId", "consentRevision"];
|
|
328
|
+
readonly bodyRequired: false;
|
|
329
|
+
};
|
|
330
|
+
readonly 'drive-binding-ack': {
|
|
331
|
+
readonly method: "POST";
|
|
332
|
+
readonly path: "/mesh/v1/remote-sessions/:sessionId/drive-bindings/:bindingId/:consentRevision/acks";
|
|
333
|
+
readonly lane: "lifecycle";
|
|
334
|
+
readonly stages: readonly ["bound"];
|
|
335
|
+
readonly engines: readonly ["cli"];
|
|
336
|
+
readonly stream: false;
|
|
337
|
+
readonly maxRequestBytes: 65536;
|
|
338
|
+
readonly successStatus: 200;
|
|
339
|
+
readonly pathParameters: readonly ["sessionId", "bindingId", "consentRevision"];
|
|
340
|
+
readonly bodyRequired: true;
|
|
341
|
+
};
|
|
342
|
+
readonly 'chat-events': {
|
|
343
|
+
readonly method: "POST";
|
|
344
|
+
readonly path: "/mesh/v1/remote-sessions/:sessionId/chat/events";
|
|
345
|
+
readonly lane: "content";
|
|
346
|
+
readonly stages: readonly ["bound"];
|
|
347
|
+
readonly engines: readonly ["app-chat"];
|
|
348
|
+
readonly stream: false;
|
|
349
|
+
readonly maxRequestBytes: 65536;
|
|
350
|
+
readonly successStatus: 200;
|
|
351
|
+
readonly pathParameters: readonly ["sessionId"];
|
|
352
|
+
readonly bodyRequired: true;
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
export type SessionRelayLaneRequestRouteId = Exclude<keyof typeof SESSION_RELAY_INNER_ROUTES, 'source-control' | 'action-stream'>;
|
|
356
|
+
export type SessionRelayLaneStreamRouteId = 'source-control' | 'action-stream';
|
|
357
|
+
export type SessionRelayLaneRouteId = keyof typeof SESSION_RELAY_INNER_ROUTES;
|
|
358
|
+
export declare const SESSION_RELAY_LANE_REQUEST_ROUTE_IDS: readonly SessionRelayLaneRequestRouteId[];
|
|
359
|
+
export declare const SESSION_RELAY_LANE_STREAM_ROUTE_IDS: readonly SessionRelayLaneStreamRouteId[];
|
|
360
|
+
type RevisionPathParameter = 'policyRevision' | 'consentRevision';
|
|
361
|
+
export type SessionRelayPathParameters<R extends SessionRelayLaneRouteId> = {
|
|
362
|
+
[K in (typeof SESSION_RELAY_INNER_ROUTES)[R]['pathParameters'][number]]: K extends RevisionPathParameter ? number : string;
|
|
363
|
+
};
|
|
364
|
+
export type SessionRelayRequestBody<R extends SessionRelayLaneRouteId> = (typeof SESSION_RELAY_INNER_ROUTES)[R]['bodyRequired'] extends true ? unknown : null;
|
|
365
|
+
export declare function relayRouteSpec(routeId: string): SessionRelayRouteSpec | null;
|
|
366
|
+
export declare const SESSION_RELAY_CLOSE_REASONS: readonly RelayErrorCode[];
|
|
367
|
+
export {};
|
|
368
|
+
//# sourceMappingURL=relay-routes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"relay-routes.d.ts","sourceRoot":"","sources":["../../src/sessions/relay-routes.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAE1D,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,WAAW,CAAC;AAC/E,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,WAAW,GAAG,OAAO,CAAC;AAClE,MAAM,MAAM,sBAAsB,GAAG,KAAK,GAAG,UAAU,CAAC;AAExD,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,MAAM,EAAE,KAAK,GAAG,MAAM,CAAC;IAChC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,gBAAgB,CAAC;IAChC,QAAQ,CAAC,MAAM,EAAE,SAAS,iBAAiB,EAAE,CAAC;IAC9C,QAAQ,CAAC,OAAO,EAAE,SAAS,sBAAsB,EAAE,CAAC;IACpD,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B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AAC,OAAO,0BAA0B,CAAC,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,SAAS,IAAI,GAAG,OAAO,GAAG,IAAI,CAAC;AAEvF,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,qBAAqB,GAAG,IAAI,CAE5E;AAED,eAAO,MAAM,2BAA2B,EAAE,SAAS,cAAc,EAMhE,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
const R = '/api/v1/auth/session/content/:bindingId';
|
|
2
|
+
const S = `${R}/source/sessions/:sourceSessionId`;
|
|
3
|
+
const M = '/mesh/v1/remote-sessions/:sessionId';
|
|
4
|
+
export const SESSION_RELAY_INNER_ROUTES = {
|
|
5
|
+
'source-open': { method: 'POST', path: `${R}/source/sessions`, lane: 'lifecycle', stages: ['bootstrap', 'bound'], engines: ['cli'], stream: false, maxRequestBytes: 65536, successStatus: 200, pathParameters: ['bindingId'], bodyRequired: true },
|
|
6
|
+
'source-renew': { method: 'POST', path: `${S}/renew`, lane: 'lifecycle', stages: ['bound'], engines: ['cli'], stream: false, maxRequestBytes: 65536, successStatus: 200, pathParameters: ['bindingId', 'sourceSessionId'], bodyRequired: true },
|
|
7
|
+
'grant-fetch': { method: 'GET', path: `${S}/grants/:proposalId`, lane: 'lifecycle', stages: ['bound'], engines: ['cli'], stream: false, maxRequestBytes: 0, successStatus: 200, pathParameters: ['bindingId', 'sourceSessionId', 'proposalId'], bodyRequired: false },
|
|
8
|
+
'policy-fetch': { method: 'GET', path: `${S}/policies/:policyId/:policyRevision`, lane: 'lifecycle', stages: ['bound'], engines: ['cli'], stream: false, maxRequestBytes: 0, successStatus: 200, pathParameters: ['bindingId', 'sourceSessionId', 'policyId', 'policyRevision'], bodyRequired: false },
|
|
9
|
+
'activation-ack': { method: 'POST', path: `${S}/acks`, lane: 'lifecycle', stages: ['bound'], engines: ['cli'], stream: false, maxRequestBytes: 65536, successStatus: 200, pathParameters: ['bindingId', 'sourceSessionId'], bodyRequired: true },
|
|
10
|
+
'native-challenge': { method: 'POST', path: `${S}/challenges`, lane: 'lifecycle', stages: ['bound'], engines: ['cli'], stream: false, maxRequestBytes: 65536, successStatus: 200, pathParameters: ['bindingId', 'sourceSessionId'], bodyRequired: true },
|
|
11
|
+
'source-control': { method: 'GET', path: `${S}/control`, lane: 'lifecycle', stages: ['bound'], engines: ['cli'], stream: true, maxRequestBytes: 0, successStatus: 200, pathParameters: ['bindingId', 'sourceSessionId'], bodyRequired: false },
|
|
12
|
+
'cli-proof': { method: 'POST', path: `${S}/proofs`, lane: 'lifecycle', stages: ['bound'], engines: ['cli'], stream: false, maxRequestBytes: 65536, successStatus: 200, pathParameters: ['bindingId', 'sourceSessionId'], bodyRequired: true },
|
|
13
|
+
'action-nonce': { method: 'POST', path: `${S}/actions/nonces`, lane: 'lifecycle', stages: ['bound'], engines: ['cli'], stream: false, maxRequestBytes: 65536, successStatus: 200, pathParameters: ['bindingId', 'sourceSessionId'], bodyRequired: true },
|
|
14
|
+
'continuity-ack': { method: 'POST', path: `${R}/source/acks`, lane: 'lifecycle', stages: ['bound'], engines: ['cli'], stream: false, maxRequestBytes: 65536, successStatus: 200, pathParameters: ['bindingId'], bodyRequired: true },
|
|
15
|
+
'history-auth': { method: 'GET', path: `${R}/history/authorizations/:authorizationId`, lane: 'lifecycle', stages: ['bound'], engines: ['cli'], stream: false, maxRequestBytes: 0, successStatus: 200, pathParameters: ['bindingId', 'authorizationId'], bodyRequired: false },
|
|
16
|
+
'history-admission': { method: 'GET', path: `${R}/history/admissions/:descriptorHash`, lane: 'lifecycle', stages: ['bound'], engines: ['cli'], stream: false, maxRequestBytes: 0, successStatus: 200, pathParameters: ['bindingId', 'descriptorHash'], bodyRequired: false },
|
|
17
|
+
'typed-events': { method: 'POST', path: `${S}/events`, lane: 'content', stages: ['bound'], engines: ['cli'], stream: false, maxRequestBytes: 65536, successStatus: 200, pathParameters: ['bindingId', 'sourceSessionId'], bodyRequired: true },
|
|
18
|
+
'pty-fragments': { method: 'POST', path: `${R}/fragments`, lane: 'content', stages: ['bound'], engines: ['cli'], stream: false, maxRequestBytes: 65536, successStatus: 200, pathParameters: ['bindingId'], bodyRequired: true },
|
|
19
|
+
'archive-snapshot': { method: 'POST', path: `${R}/source/snapshots`, lane: 'content', stages: ['bound'], engines: ['cli'], stream: false, maxRequestBytes: 65536, successStatus: 200, pathParameters: ['bindingId'], bodyRequired: true },
|
|
20
|
+
'archive-segment': { method: 'POST', path: `${R}/source/segments`, lane: 'content', stages: ['bound'], engines: ['cli'], stream: false, maxRequestBytes: 65536, successStatus: 200, pathParameters: ['bindingId'], bodyRequired: true },
|
|
21
|
+
'action-stream': { method: 'GET', path: `${S}/actions/stream`, lane: 'actions', stages: ['bound'], engines: ['cli'], stream: true, maxRequestBytes: 0, successStatus: 200, pathParameters: ['bindingId', 'sourceSessionId'], bodyRequired: false },
|
|
22
|
+
'action-claim': { method: 'POST', path: `${S}/actions/:actionId/claim`, lane: 'actions', stages: ['bound'], engines: ['cli'], stream: false, maxRequestBytes: 65536, successStatus: 200, pathParameters: ['bindingId', 'sourceSessionId', 'actionId'], bodyRequired: true },
|
|
23
|
+
'action-result': { method: 'POST', path: `${S}/actions/:actionId/results`, lane: 'results', stages: ['bound'], engines: ['cli'], stream: false, maxRequestBytes: 65536, successStatus: 200, pathParameters: ['bindingId', 'sourceSessionId', 'actionId'], bodyRequired: true },
|
|
24
|
+
'listing-grant-fetch': { method: 'GET', path: `${M}/listing-grants/:grantId`, lane: 'lifecycle', stages: ['listing', 'bootstrap', 'bound'], engines: ['cli', 'app-chat'], stream: false, maxRequestBytes: 0, successStatus: 200, pathParameters: ['sessionId', 'grantId'], bodyRequired: false },
|
|
25
|
+
'listing-grant-ack': { method: 'POST', path: `${M}/listing-grants/:grantId/acks`, lane: 'lifecycle', stages: ['listing', 'bootstrap', 'bound'], engines: ['cli', 'app-chat'], stream: false, maxRequestBytes: 65536, successStatus: 200, pathParameters: ['sessionId', 'grantId'], bodyRequired: true },
|
|
26
|
+
'listing-publish': { method: 'POST', path: `${M}/listing`, lane: 'lifecycle', stages: ['listing', 'bootstrap', 'bound'], engines: ['cli', 'app-chat'], stream: false, maxRequestBytes: 65536, successStatus: 200, pathParameters: ['sessionId'], bodyRequired: true },
|
|
27
|
+
'freshness-publish': { method: 'POST', path: `${M}/freshness`, lane: 'lifecycle', stages: ['listing', 'bootstrap', 'bound'], engines: ['cli', 'app-chat'], stream: false, maxRequestBytes: 65536, successStatus: 200, pathParameters: ['sessionId'], bodyRequired: true },
|
|
28
|
+
'lifecycle-publish': { method: 'POST', path: `${M}/lifecycle`, lane: 'lifecycle', stages: ['bound'], engines: ['cli', 'app-chat'], stream: false, maxRequestBytes: 65536, successStatus: 200, pathParameters: ['sessionId'], bodyRequired: true },
|
|
29
|
+
'snapshot-publish': { method: 'POST', path: `${M}/snapshot`, lane: 'lifecycle', stages: ['bound'], engines: ['cli', 'app-chat'], stream: false, maxRequestBytes: 65536, successStatus: 200, pathParameters: ['sessionId'], bodyRequired: true },
|
|
30
|
+
'drive-binding-fetch': { method: 'GET', path: `${M}/drive-bindings/:bindingId/:consentRevision`, lane: 'lifecycle', stages: ['bound'], engines: ['cli'], stream: false, maxRequestBytes: 0, successStatus: 200, pathParameters: ['sessionId', 'bindingId', 'consentRevision'], bodyRequired: false },
|
|
31
|
+
'drive-binding-ack': { method: 'POST', path: `${M}/drive-bindings/:bindingId/:consentRevision/acks`, lane: 'lifecycle', stages: ['bound'], engines: ['cli'], stream: false, maxRequestBytes: 65536, successStatus: 200, pathParameters: ['sessionId', 'bindingId', 'consentRevision'], bodyRequired: true },
|
|
32
|
+
'chat-events': { method: 'POST', path: `${M}/chat/events`, lane: 'content', stages: ['bound'], engines: ['app-chat'], stream: false, maxRequestBytes: 65536, successStatus: 200, pathParameters: ['sessionId'], bodyRequired: true },
|
|
33
|
+
};
|
|
34
|
+
export const SESSION_RELAY_LANE_REQUEST_ROUTE_IDS = Object.keys(SESSION_RELAY_INNER_ROUTES).filter((id) => !SESSION_RELAY_INNER_ROUTES[id].stream);
|
|
35
|
+
export const SESSION_RELAY_LANE_STREAM_ROUTE_IDS = ['source-control', 'action-stream'];
|
|
36
|
+
export function relayRouteSpec(routeId) {
|
|
37
|
+
return SESSION_RELAY_INNER_ROUTES[routeId] ?? null;
|
|
38
|
+
}
|
|
39
|
+
export const SESSION_RELAY_CLOSE_REASONS = [
|
|
40
|
+
'relay_auth_required', 'relay_scope_refused', 'relay_consent_refused', 'relay_lane_refused',
|
|
41
|
+
'relay_loop', 'relay_hop_limit', 'relay_route_conflict', 'relay_stale_generation',
|
|
42
|
+
'relay_frame_conflict', 'relay_grant_expired', 'relay_grant_revoked', 'relay_grant_unavailable',
|
|
43
|
+
'relay_origin_refused', 'relay_protocol_refused', 'relay_oversize', 'relay_version_unsupported',
|
|
44
|
+
'relay_backpressure', 'relay_unavailable', 'relay_policy_unavailable',
|
|
45
|
+
];
|
|
46
|
+
//# sourceMappingURL=relay-routes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"relay-routes.js","sourceRoot":"","sources":["../../src/sessions/relay-routes.ts"],"names":[],"mappings":"AAwBA,MAAM,CAAC,GAAG,yCAAyC,CAAC;AACpD,MAAM,CAAC,GAAG,GAAG,CAAC,mCAAmC,CAAC;AAClD,MAAM,CAAC,GAAG,qCAAqC,CAAC;AAEhD,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,aAAa,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,CAAC,kBAAkB,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,WAAW,EAAE,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,aAAa,EAAE,GAAG,EAAE,cAAc,EAAE,CAAC,WAAW,CAAC,EAAE,YAAY,EAAE,IAAI,EAAE;IAClP,cAAc,EAAE,EAAE,M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RelayLaneClientV1;
|
|
3
|
+
export declare function createSkeletonLaneClient(): SessionRelayLaneClientV1;
|
|
4
|
+
//# sourceMappingURL=relay-skeleton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"relay-skeleton.d.ts","sourceRoot":"","sources":["../../src/sessions/relay-skeleton.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAEV,wBAAwB,EAGzB,MAAM,kBAAkB,CAAC;AAG1B,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,wBAAwB,CAM1F;AAmBD,wBAAgB,wBAAwB,IAAI,wBAAwB,CAmDnE"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
// INTERNAL fail-closed skeleton lane client — NOT part of the packed public
|
|
2
|
+
// surface (not re-exported from src/sessions/relay.ts; isSessionRelayLaneClient
|
|
3
|
+
// is the only public touchpoint). Until the wire engine lands, every lane
|
|
4
|
+
// operation resolves to its typed refusal: never throws, never fabricates
|
|
5
|
+
// endpointRefusal bytes, never fills a source-gap field locally.
|
|
6
|
+
import { relayError } from './registry-types.js';
|
|
7
|
+
import { SESSION_RELAY_LANE_CLIENT_BRAND } from './relay-brand.js';
|
|
8
|
+
import { validateLaneCloseParameters, validateLaneRequestParameters, validateLaneStreamParameters } from './relay-validate.js';
|
|
9
|
+
export function isSessionRelayLaneClient(value) {
|
|
10
|
+
return (typeof value === 'object' &&
|
|
11
|
+
value !== null &&
|
|
12
|
+
value[SESSION_RELAY_LANE_CLIENT_BRAND] === 'SessionRelayLaneClientV1');
|
|
13
|
+
}
|
|
14
|
+
function assertParameters(parameters, method) {
|
|
15
|
+
if (typeof parameters !== 'object' || parameters === null || Array.isArray(parameters)) {
|
|
16
|
+
throw new TypeError(`SessionRelayLaneClientV1.${method}: parameters must be a single named object`);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
function assertOptions(options, method) {
|
|
20
|
+
if (options === undefined)
|
|
21
|
+
return;
|
|
22
|
+
if (typeof options !== 'object' || options === null || Array.isArray(options)) {
|
|
23
|
+
throw new TypeError(`SessionRelayLaneClientV1.${method}: options must be an object`);
|
|
24
|
+
}
|
|
25
|
+
if ('signal' in options && options.signal !== undefined && !(options.signal instanceof AbortSignal)) {
|
|
26
|
+
throw new TypeError(`SessionRelayLaneClientV1.${method}: options.signal must be an AbortSignal`);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
// Fail-closed skeleton lane client: handed out only by a connected engine.
|
|
30
|
+
export function createSkeletonLaneClient() {
|
|
31
|
+
let closed = false;
|
|
32
|
+
const unavailable = (routeId) => ({
|
|
33
|
+
routeId,
|
|
34
|
+
error: relayError('relay_unavailable', true),
|
|
35
|
+
});
|
|
36
|
+
const client = {
|
|
37
|
+
[SESSION_RELAY_LANE_CLIENT_BRAND]: 'SessionRelayLaneClientV1',
|
|
38
|
+
async request(parameters, options) {
|
|
39
|
+
assertParameters(parameters, 'request');
|
|
40
|
+
assertOptions(options, 'request');
|
|
41
|
+
const defect = validateLaneRequestParameters(parameters);
|
|
42
|
+
if (defect)
|
|
43
|
+
return { routeId: String(parameters.routeId ?? ''), error: relayError('relay_protocol_refused') };
|
|
44
|
+
if (closed || options?.signal?.aborted) {
|
|
45
|
+
return { routeId: parameters.routeId, error: relayError('relay_unavailable', true) };
|
|
46
|
+
}
|
|
47
|
+
return unavailable(parameters.routeId);
|
|
48
|
+
},
|
|
49
|
+
stream(parameters, options) {
|
|
50
|
+
assertParameters(parameters, 'stream');
|
|
51
|
+
assertOptions(options, 'stream');
|
|
52
|
+
const defect = validateLaneStreamParameters(parameters);
|
|
53
|
+
const routeId = defect ? String(parameters.routeId ?? '') : parameters.routeId;
|
|
54
|
+
const first = defect
|
|
55
|
+
? { routeId, error: relayError('relay_protocol_refused') }
|
|
56
|
+
: { routeId, error: relayError('relay_unavailable', true) };
|
|
57
|
+
let yielded = false;
|
|
58
|
+
return {
|
|
59
|
+
[Symbol.asyncIterator]() {
|
|
60
|
+
return this;
|
|
61
|
+
},
|
|
62
|
+
next() {
|
|
63
|
+
if (yielded)
|
|
64
|
+
return Promise.resolve({ done: true, value: undefined });
|
|
65
|
+
yielded = true;
|
|
66
|
+
return Promise.resolve({ done: false, value: first });
|
|
67
|
+
},
|
|
68
|
+
return() {
|
|
69
|
+
yielded = true;
|
|
70
|
+
return Promise.resolve({ done: true, value: undefined });
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
},
|
|
74
|
+
async close(parameters) {
|
|
75
|
+
assertParameters(parameters, 'close');
|
|
76
|
+
const defect = validateLaneCloseParameters(parameters);
|
|
77
|
+
if (defect)
|
|
78
|
+
throw new TypeError(`SessionRelayLaneClientV1.close: ${defect}`);
|
|
79
|
+
closed = true;
|
|
80
|
+
return { status: 'closed' };
|
|
81
|
+
},
|
|
82
|
+
};
|
|
83
|
+
return client;
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=relay-skeleton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"relay-skeleton.js","sourceRoot":"","sources":["../../src/sessions/relay-skeleton.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,gFAAgF;AAChF,0EAA0E;AAC1E,0EAA0E;AAC1E,iEAAiE;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,+BAA+B,EAAE,MAAM,kBAAkB,CAAC;AAOnE,OAAO,EAAE,2BAA2B,EAAE,6BAA6B,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AAE/H,MAAM,UAAU,wBAAwB,CAAC,KAAc;IACrD,OAAO,CACL,OAAO,KAAK,KAAK,QAAQ;QACzB,KAAK,KAAK,IAAI;QACb,KAAiC,CAAC,+BAA+B,CAAC,KAAK,0BAA0B,CACnG,CAAC;AACJ,CAAC;AAED,SAAS,gBAAgB,CAAC,UAAmB,EAAE,MAAc;IAC3D,IAAI,OAAO,UAAU,KAAK,QAAQ,I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