@toa.io/extensions.exposition 1.0.0-alpha.300 → 1.0.0-alpha.301

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.
Files changed (244) hide show
  1. package/components/exposition.octets/operations/delete.js +1 -3
  2. package/components/exposition.octets/operations/get.js +1 -3
  3. package/components/exposition.octets/operations/head.js +1 -3
  4. package/components/exposition.octets/operations/put.js +1 -3
  5. package/components/exposition.octets/package.json +2 -2
  6. package/components/identity.basic/source/add.ts +1 -1
  7. package/components/identity.basic/source/authenticate.ts +2 -2
  8. package/components/identity.basic/source/check.ts +1 -1
  9. package/components/identity.basic/source/delete.ts +1 -1
  10. package/components/identity.basic/source/incept.ts +2 -2
  11. package/components/identity.basic/source/info.ts +1 -1
  12. package/components/identity.basic/source/transit.ts +1 -1
  13. package/components/identity.basic/types/index.d.ts +1 -1
  14. package/components/identity.clients/source/describe.ts +2 -2
  15. package/components/identity.clients/source/lib/Context.ts +3 -4
  16. package/components/identity.clients/source/lib/canonical.ts +1 -1
  17. package/components/identity.clients/source/lib/cimd.ts +3 -3
  18. package/components/identity.clients/source/lib/index.ts +6 -6
  19. package/components/identity.clients/source/register.ts +2 -2
  20. package/components/identity.federation/source/authenticate.ts +2 -2
  21. package/components/identity.federation/source/create.ts +2 -2
  22. package/components/identity.federation/source/decode.ts +2 -2
  23. package/components/identity.federation/source/delete.ts +1 -1
  24. package/components/identity.federation/source/incept.ts +3 -3
  25. package/components/identity.federation/source/lib/Ctx.ts +2 -2
  26. package/components/identity.federation/source/lib/decode.ts +4 -4
  27. package/components/identity.federation/source/lib/discovery.ts +2 -2
  28. package/components/identity.federation/source/lib/exchange.ts +5 -5
  29. package/components/identity.federation/source/lib/index.ts +5 -5
  30. package/components/identity.federation/source/lib/principal.ts +1 -1
  31. package/components/identity.federation/source/lib/resolve.ts +5 -5
  32. package/components/identity.federation/source/list.ts +1 -1
  33. package/components/identity.federation/source/types/context.ts +2 -2
  34. package/components/identity.federation/source/types/index.ts +4 -4
  35. package/components/identity.grants/source/authorize.ts +2 -2
  36. package/components/identity.grants/source/exchange.ts +2 -2
  37. package/components/identity.grants/source/lib/code.ts +1 -1
  38. package/components/identity.grants/source/lib/index.ts +3 -3
  39. package/components/identity.grants/source/list.ts +1 -1
  40. package/components/identity.grants/source/revoke.ts +1 -1
  41. package/components/identity.grants/types/index.d.ts +2 -3
  42. package/components/identity.otp/source/authenticate.ts +1 -1
  43. package/components/identity.otp/source/issue.ts +1 -1
  44. package/components/identity.otp/source/lib/Context.ts +1 -1
  45. package/components/identity.otp/source/lib/index.ts +1 -1
  46. package/components/identity.passkeys/source/authenticate.ts +1 -1
  47. package/components/identity.passkeys/source/challenge.ts +2 -2
  48. package/components/identity.passkeys/source/create.ts +1 -1
  49. package/components/identity.passkeys/source/delete.ts +1 -1
  50. package/components/identity.passkeys/source/list.ts +2 -2
  51. package/components/identity.passkeys/source/types/Context.ts +3 -3
  52. package/components/identity.passkeys/source/types/index.ts +2 -2
  53. package/components/identity.passkeys/source/use.ts +1 -1
  54. package/components/identity.roles/manifest.toa.yaml +4 -8
  55. package/components/identity.roles/source/grant.ts +1 -1
  56. package/components/identity.roles/source/list.ts +1 -1
  57. package/components/identity.roles/source/principal.ts +2 -2
  58. package/components/identity.tokens/source/authenticate.ts +2 -2
  59. package/components/identity.tokens/source/decrypt.ts +2 -2
  60. package/components/identity.tokens/source/encrypt.ts +2 -2
  61. package/components/identity.tokens/source/issue.ts +1 -1
  62. package/components/identity.tokens/source/lib/index.ts +4 -4
  63. package/components/identity.tokens/source/revoke.ts +1 -1
  64. package/components/identity.tokens/types/index.d.ts +2 -8
  65. package/package.json +10 -10
  66. package/readme.md +2 -0
  67. package/transpiled/Branch.d.ts +2 -2
  68. package/transpiled/Composition.d.ts +1 -1
  69. package/transpiled/Context.d.ts +1 -1
  70. package/transpiled/Directive.d.ts +6 -6
  71. package/transpiled/Discovery/Explorer.d.ts +2 -2
  72. package/transpiled/Discovery/Site.d.ts +2 -2
  73. package/transpiled/Discovery/index.d.ts +3 -3
  74. package/transpiled/Discovery/tree.d.ts +3 -3
  75. package/transpiled/Discovery/trunk.d.ts +1 -1
  76. package/transpiled/Endpoint.d.ts +6 -6
  77. package/transpiled/Factory.d.ts +1 -1
  78. package/transpiled/Gateway.d.ts +6 -6
  79. package/transpiled/HTTP/Context.d.ts +4 -4
  80. package/transpiled/HTTP/Server.d.ts +6 -4
  81. package/transpiled/HTTP/Server.js.map +1 -1
  82. package/transpiled/HTTP/Timing.d.ts +1 -1
  83. package/transpiled/HTTP/address.d.ts +1 -1
  84. package/transpiled/HTTP/exceptions.d.ts +3 -0
  85. package/transpiled/HTTP/exceptions.js +5 -0
  86. package/transpiled/HTTP/exceptions.js.map +1 -1
  87. package/transpiled/HTTP/index.d.ts +6 -6
  88. package/transpiled/HTTP/messages.d.ts +2 -2
  89. package/transpiled/Interception.d.ts +2 -2
  90. package/transpiled/Introspection.d.ts +1 -1
  91. package/transpiled/MCP/Server.d.ts +2 -2
  92. package/transpiled/MCP/errors.d.ts +2 -2
  93. package/transpiled/MCP/index.d.ts +1 -1
  94. package/transpiled/MCP/schema.d.ts +2 -2
  95. package/transpiled/MCP/tools.d.ts +3 -3
  96. package/transpiled/Mapping.d.ts +6 -6
  97. package/transpiled/Query.d.ts +4 -4
  98. package/transpiled/RPC/Context.d.ts +2 -2
  99. package/transpiled/RPC/Dispatcher.d.ts +1 -1
  100. package/transpiled/RPC/errors.d.ts +1 -1
  101. package/transpiled/RPC/index.d.ts +1 -1
  102. package/transpiled/RPC/names.d.ts +2 -2
  103. package/transpiled/RTD/Context.d.ts +3 -3
  104. package/transpiled/RTD/Directives.d.ts +5 -5
  105. package/transpiled/RTD/Endpoint.d.ts +5 -5
  106. package/transpiled/RTD/Match.d.ts +1 -1
  107. package/transpiled/RTD/Method.d.ts +5 -5
  108. package/transpiled/RTD/Node.d.ts +7 -7
  109. package/transpiled/RTD/Route.d.ts +3 -3
  110. package/transpiled/RTD/Tree.d.ts +5 -5
  111. package/transpiled/RTD/factory.d.ts +3 -3
  112. package/transpiled/RTD/index.d.ts +8 -8
  113. package/transpiled/RTD/segment.d.ts +1 -1
  114. package/transpiled/Remotes.d.ts +1 -1
  115. package/transpiled/Tenant.d.ts +2 -2
  116. package/transpiled/directives/auth/Anonymous.d.ts +2 -2
  117. package/transpiled/directives/auth/Anyone.d.ts +2 -2
  118. package/transpiled/directives/auth/Assert.d.ts +1 -1
  119. package/transpiled/directives/auth/Authorization.d.ts +7 -7
  120. package/transpiled/directives/auth/Delegate.d.ts +2 -2
  121. package/transpiled/directives/auth/Echo.d.ts +2 -2
  122. package/transpiled/directives/auth/Federation.d.ts +3 -3
  123. package/transpiled/directives/auth/Id.d.ts +3 -3
  124. package/transpiled/directives/auth/Incept.d.ts +2 -2
  125. package/transpiled/directives/auth/Input.d.ts +2 -2
  126. package/transpiled/directives/auth/Role.d.ts +3 -3
  127. package/transpiled/directives/auth/Rule.d.ts +3 -3
  128. package/transpiled/directives/auth/Scheme.d.ts +1 -1
  129. package/transpiled/directives/auth/create.d.ts +1 -1
  130. package/transpiled/directives/auth/index.d.ts +1 -1
  131. package/transpiled/directives/auth/schemes.d.ts +1 -1
  132. package/transpiled/directives/auth/split.d.ts +1 -1
  133. package/transpiled/directives/auth/types.d.ts +4 -4
  134. package/transpiled/directives/cache/Cache.d.ts +4 -4
  135. package/transpiled/directives/cache/Control.d.ts +1 -1
  136. package/transpiled/directives/cache/Exact.d.ts +1 -1
  137. package/transpiled/directives/cache/index.d.ts +1 -1
  138. package/transpiled/directives/cache/types.d.ts +1 -1
  139. package/transpiled/directives/censor/Censor.d.ts +10 -0
  140. package/transpiled/directives/censor/Censor.js +20 -0
  141. package/transpiled/directives/censor/Censor.js.map +1 -0
  142. package/transpiled/directives/censor/index.d.ts +2 -0
  143. package/transpiled/directives/censor/index.js +3 -0
  144. package/transpiled/directives/censor/index.js.map +1 -0
  145. package/transpiled/directives/cors/CORS.d.ts +2 -2
  146. package/transpiled/directives/cors/index.d.ts +1 -1
  147. package/transpiled/directives/dev/Development.d.ts +3 -3
  148. package/transpiled/directives/dev/Faulty.d.ts +2 -2
  149. package/transpiled/directives/dev/Sleep.d.ts +2 -2
  150. package/transpiled/directives/dev/Stub.d.ts +2 -2
  151. package/transpiled/directives/dev/Throw.d.ts +2 -2
  152. package/transpiled/directives/dev/index.d.ts +1 -1
  153. package/transpiled/directives/dev/types.d.ts +1 -1
  154. package/transpiled/directives/flow/Compose.d.ts +2 -2
  155. package/transpiled/directives/flow/Fetch.d.ts +5 -5
  156. package/transpiled/directives/flow/Flow.d.ts +4 -4
  157. package/transpiled/directives/flow/index.d.ts +1 -1
  158. package/transpiled/directives/flow/types.d.ts +2 -2
  159. package/transpiled/directives/help/Family.d.ts +6 -7
  160. package/transpiled/directives/help/Parameters.d.ts +1 -1
  161. package/transpiled/directives/help/index.d.ts +9 -9
  162. package/transpiled/directives/index.d.ts +5 -4
  163. package/transpiled/directives/index.js +5 -3
  164. package/transpiled/directives/index.js.map +1 -1
  165. package/transpiled/directives/io/Directive.d.ts +4 -4
  166. package/transpiled/directives/io/IO.d.ts +5 -5
  167. package/transpiled/directives/io/Input.d.ts +2 -2
  168. package/transpiled/directives/io/Output.d.ts +2 -2
  169. package/transpiled/directives/io/Status.d.ts +2 -2
  170. package/transpiled/directives/io/Throttle.d.ts +4 -4
  171. package/transpiled/directives/io/index.d.ts +1 -1
  172. package/transpiled/directives/io/lib/throttle/Keys.d.ts +5 -5
  173. package/transpiled/directives/io/lib/throttle/Quotas.d.ts +5 -5
  174. package/transpiled/directives/io/lib/throttle/Sync.d.ts +1 -1
  175. package/transpiled/directives/io/lib/throttle/components/Component.d.ts +2 -2
  176. package/transpiled/directives/io/lib/throttle/components/IP.d.ts +2 -2
  177. package/transpiled/directives/io/lib/throttle/components/Identity.d.ts +2 -2
  178. package/transpiled/directives/io/lib/throttle/components/Path.d.ts +2 -2
  179. package/transpiled/directives/io/lib/throttle/components/Route.d.ts +1 -1
  180. package/transpiled/directives/io/lib/throttle/components/Segment.d.ts +3 -3
  181. package/transpiled/directives/io/lib/throttle/components/index.d.ts +3 -3
  182. package/transpiled/directives/io/lib/throttle/components/index.js.map +1 -1
  183. package/transpiled/directives/io/lib/throttle/conditions/Condition.d.ts +1 -1
  184. package/transpiled/directives/io/lib/throttle/conditions/Status.d.ts +2 -2
  185. package/transpiled/directives/io/lib/throttle/conditions/index.d.ts +3 -3
  186. package/transpiled/directives/io/lib/throttle/conditions/index.js.map +1 -1
  187. package/transpiled/directives/io/lib/throttle/index.d.ts +4 -4
  188. package/transpiled/directives/io/schemas.d.ts +4 -4
  189. package/transpiled/directives/map/Authority.d.ts +2 -2
  190. package/transpiled/directives/map/Buffer.d.ts +2 -2
  191. package/transpiled/directives/map/Claims.d.ts +3 -3
  192. package/transpiled/directives/map/Directive.d.ts +2 -2
  193. package/transpiled/directives/map/Headers.d.ts +3 -3
  194. package/transpiled/directives/map/Instance.d.ts +4 -4
  195. package/transpiled/directives/map/Language.d.ts +4 -4
  196. package/transpiled/directives/map/Languages.d.ts +1 -1
  197. package/transpiled/directives/map/Map.d.ts +7 -7
  198. package/transpiled/directives/map/Mapping.d.ts +5 -5
  199. package/transpiled/directives/map/Segments.d.ts +3 -3
  200. package/transpiled/directives/map/index.d.ts +1 -1
  201. package/transpiled/directives/mcp/MCP.d.ts +4 -4
  202. package/transpiled/directives/mcp/index.d.ts +3 -3
  203. package/transpiled/directives/oauth/Discovery.d.ts +3 -3
  204. package/transpiled/directives/oauth/index.d.ts +1 -1
  205. package/transpiled/directives/octets/Context.d.ts +2 -2
  206. package/transpiled/directives/octets/Delete.d.ts +6 -6
  207. package/transpiled/directives/octets/Directive.d.ts +4 -4
  208. package/transpiled/directives/octets/Get.d.ts +3 -3
  209. package/transpiled/directives/octets/Octets.d.ts +6 -6
  210. package/transpiled/directives/octets/Put.d.ts +7 -7
  211. package/transpiled/directives/octets/Workflow.d.ts +6 -6
  212. package/transpiled/directives/octets/index.d.ts +1 -1
  213. package/transpiled/directives/octets/schemas.d.ts +4 -4
  214. package/transpiled/directives/octets/types.d.ts +2 -2
  215. package/transpiled/directives/octets/workflows/Execution.d.ts +2 -2
  216. package/transpiled/directives/octets/workflows/Workflow.d.ts +3 -3
  217. package/transpiled/directives/octets/workflows/index.d.ts +2 -2
  218. package/transpiled/directives/require/Directive.d.ts +1 -1
  219. package/transpiled/directives/require/Headers.d.ts +2 -2
  220. package/transpiled/directives/require/Require.d.ts +3 -3
  221. package/transpiled/directives/require/index.d.ts +1 -1
  222. package/transpiled/exceptions.d.ts +1 -1
  223. package/transpiled/index.d.ts +5 -5
  224. package/transpiled/io.d.ts +1 -1
  225. package/transpiled/root.d.ts +1 -1
  226. package/transpiled/service.d.ts +1 -1
  227. package/ui/dist/_app/immutable/chunks/{DWKNKsnY.js → BE7eB5v5.js} +1 -1
  228. package/ui/dist/_app/immutable/chunks/{C_DmHQYW.js → D4j-xChx.js} +2 -2
  229. package/ui/dist/_app/immutable/chunks/VDPx7_k6.js +1 -0
  230. package/ui/dist/_app/immutable/chunks/{Bu6-PFR2.js → sa0pbjcV.js} +41 -41
  231. package/ui/dist/_app/immutable/entry/{app.BGsFlGMF.js → app.AkuFmFm5.js} +2 -2
  232. package/ui/dist/_app/immutable/entry/start.Bf-Wtlxj.js +1 -0
  233. package/ui/dist/_app/immutable/nodes/{0.CoZD8TUK.js → 0.tjrDhK2K.js} +1 -1
  234. package/ui/dist/_app/immutable/nodes/{1.CK_wvdhC.js → 1.BBstrUMk.js} +1 -1
  235. package/ui/dist/_app/immutable/nodes/{2.C8Ba-vjq.js → 2.kK-1mow1.js} +1 -1
  236. package/ui/dist/_app/immutable/nodes/3.DyUOxgbQ.js +1 -0
  237. package/ui/dist/_app/immutable/nodes/{4.Bbw5GORo.js → 4.DRJYPW3m.js} +1 -1
  238. package/ui/dist/_app/immutable/nodes/{5.B1Jp9o4B.js → 5.3gnA7sEW.js} +1 -1
  239. package/ui/dist/_app/immutable/nodes/{6.DeLSCU5t.js → 6.DNBe1ELW.js} +1 -1
  240. package/ui/dist/_app/version.json +1 -1
  241. package/ui/dist/index.html +10 -10
  242. package/ui/dist/_app/immutable/chunks/CxYJ7ZeC.js +0 -1
  243. package/ui/dist/_app/immutable/entry/start.Dy23hery.js +0 -1
  244. package/ui/dist/_app/immutable/nodes/3.DMVojOYg.js +0 -1
@@ -1,7 +1,7 @@
1
1
  import type { Maybe } from '@toa.io/core/types'
2
2
  import type { Operation } from '@toa.io/bridges.node'
3
- import { form } from './lib/index.js'
4
- import type { AuthenticateInput, AuthenticateOutput, Context } from './lib/index.js'
3
+ import { form } from './lib/index.ts'
4
+ import type { AuthenticateInput, AuthenticateOutput, Context } from './lib/index.ts'
5
5
 
6
6
  export class Computation implements Operation {
7
7
  private refresh: number = 0
@@ -1,10 +1,10 @@
1
1
  import { DecryptFactory, ImportKeyFactory } from 'paseto/v3/local'
2
2
  import { LRUCache } from 'lru-cache'
3
- import { form, jweKey } from './lib/index.js'
3
+ import { form, jweKey } from './lib/index.ts'
4
4
  import { load } from './lib/jose.js'
5
5
  import type { Maybe } from '@toa.io/core/types'
6
6
  import type { Operation } from '@toa.io/bridges.node'
7
- import type { Context, Claims, DecryptOutput, JWEClaims } from './lib/index.js'
7
+ import type { Context, Claims, DecryptOutput, JWEClaims } from './lib/index.ts'
8
8
 
9
9
  export class Computation implements Operation {
10
10
  private readonly keys: Record<string, Key> = {}
@@ -1,8 +1,8 @@
1
- import { jweKey } from './lib/index.js'
1
+ import { jweKey } from './lib/index.ts'
2
2
  import { load } from './lib/jose.js'
3
3
  import type { Operation } from '@toa.io/bridges.node'
4
4
  import type { Maybe } from '@toa.io/core/types'
5
- import type { Identity, Context, EncryptInput, Key } from './lib/index.js'
5
+ import type { Identity, Context, EncryptInput, Key } from './lib/index.ts'
6
6
 
7
7
  export class Effect implements Operation {
8
8
  private key!: Pick<Key, 'id' | 'key'>
@@ -1,7 +1,7 @@
1
1
  import { quote } from '@toa.io/generic'
2
2
  import type { Maybe } from '@toa.io/core/types'
3
3
  import type { Operation } from '@toa.io/bridges.node'
4
- import type { Context, Identity } from './lib/index.js'
4
+ import type { Context, Identity } from './lib/index.ts'
5
5
 
6
6
  export class Effect implements Operation {
7
7
  private keys!: Context['remote']['identity']['keys']
@@ -1,4 +1,4 @@
1
- export * from './form.js'
2
- export * from './pad.js'
3
- export type * from '../../types/index.js'
4
- export { jweKey } from './key.js'
1
+ export * from './form.ts'
2
+ export * from './pad.ts'
3
+ export type * from '../../types/index.d.ts'
4
+ export { jweKey } from './key.ts'
@@ -1,4 +1,4 @@
1
- import type { Entity } from './lib/index.js'
1
+ import type { Entity } from './lib/index.ts'
2
2
 
3
3
  export function transition(_: unknown, object: Entity): void {
4
4
  object.revokedAt = Date.now()
@@ -3,12 +3,8 @@ export * from './toa.d.ts'
3
3
  // What a manifest does not state belongs here, and every run keeps it.
4
4
 
5
5
  import type { Logs } from '@toa.io/extensions.telemetry'
6
- import type {
7
- AuthenticateOutput,
8
- Component,
9
- Configuration,
10
- DecryptOutput
11
- } from './toa.js'
6
+ import type { AuthenticateOutput, Component, Configuration } from './toa.d.ts'
7
+ export type { DecryptOutput } from './toa.d.ts'
12
8
 
13
9
  /** Who the token is for, as it travels: the claim set the gateway is written against. */
14
10
  export type Identity = AuthenticateOutput['identity']
@@ -67,5 +63,3 @@ export interface Context {
67
63
  configuration: Configuration
68
64
  logs: Logs
69
65
  }
70
-
71
- export type { DecryptOutput }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toa.io/extensions.exposition",
3
- "version": "1.0.0-alpha.300",
3
+ "version": "1.0.0-alpha.301",
4
4
  "type": "module",
5
5
  "description": "Toa Exposition",
6
6
  "author": "temich <tema.gurtovoy@gmail.com>",
@@ -28,16 +28,16 @@
28
28
  "!**/.env*"
29
29
  ],
30
30
  "dependencies": {
31
- "@toa.io/core": "1.0.0-alpha.300",
32
- "@toa.io/definitions": "1.0.0-alpha.300",
33
- "@toa.io/generic": "1.0.0-alpha.292",
34
- "@toa.io/schemas": "1.0.0-alpha.299",
31
+ "@toa.io/core": "1.0.0-alpha.301",
32
+ "@toa.io/definitions": "1.0.0-alpha.301",
33
+ "@toa.io/generic": "1.0.0-alpha.301",
34
+ "@toa.io/schemas": "1.0.0-alpha.301",
35
35
  "content-type": "3.0.0",
36
36
  "matchacho": "0.6.1",
37
37
  "minimatch": "10.2.6",
38
38
  "msgpackr": "2.1.0",
39
39
  "negotiator": "1.1.0",
40
- "openspan": "1.0.0-alpha.293"
40
+ "openspan": "1.0.0-alpha.301"
41
41
  },
42
42
  "scripts": {
43
43
  "test": "echo \"Error: run tests from root\" && exit 1",
@@ -62,15 +62,15 @@
62
62
  },
63
63
  "devDependencies": {
64
64
  "@node-rs/bcrypt": "1.10.8",
65
- "@simplewebauthn/server": "14.0.0",
65
+ "@simplewebauthn/server": "14.0.1",
66
66
  "@toa.io/agent": "*",
67
67
  "@toa.io/extensions.storages": "*",
68
68
  "@types/cors": "2.8.19",
69
69
  "@types/negotiator": "0.6.5",
70
- "jose": "6.2.10",
70
+ "jose": "6.2.12",
71
71
  "js-yaml": "5.4.1",
72
72
  "lru-cache": "11.5.2",
73
- "paseto": "4.0.0"
73
+ "paseto": "4.0.1"
74
74
  },
75
- "gitHead": "f91131a9aeb29aa271f177c4055ddcf0cda8c75e"
75
+ "gitHead": "cc49bc90efd35464b2ad7803246786c607a44685"
76
76
  }
package/readme.md CHANGED
@@ -138,6 +138,7 @@ exposition:
138
138
  | `debug` | Output server errors. Default `false`. |
139
139
  | `ip` | Header the client address is read from. See [Client address](documentation/ip.md). |
140
140
  | `bouncer` | Meter of failed authentications per address. See [Identity authentication](documentation/identity.md#failed-authentications). |
141
+ | `censor` | Header values a request is answered `451` for. See [Censor](documentation/censor.md). |
141
142
  | `oauth` | Authorization server exposed to OAuth clients. See [OAuth](documentation/oauth.md). |
142
143
  | `protocol` | `h1` or `h2c`. See [Protocol](documentation/protocol.md). |
143
144
  | `rpc` | JSON-RPC at `/.rpc`; none is served without it. See [JSON-RPC](documentation/rpc.md). |
@@ -208,6 +209,7 @@ See also [telemetry ready probe](../telemetry/readme.md#ready-probe) and
208
209
 
209
210
  - [Protocol support](documentation/protocol.md)
210
211
  - [Client address](documentation/ip.md)
212
+ - [Censor](documentation/censor.md)
211
213
  - [Resource Tree Definition](documentation/tree.md)
212
214
  - [Identity authentication](documentation/identity.md)
213
215
  - [Access authorization](documentation/access.md)
@@ -1,5 +1,5 @@
1
- import type * as RTD from './RTD/syntax/index.js';
2
- import type { Node } from './RTD/index.js';
1
+ import type * as RTD from './RTD/syntax/index.ts';
2
+ import type { Node } from './RTD/index.ts';
3
3
  export interface Branch {
4
4
  namespace: string;
5
5
  component: string;
@@ -1,5 +1,5 @@
1
1
  import { Connector } from '@toa.io/core';
2
- import { type Host } from './Factory.js';
2
+ import { type Host } from './Factory.ts';
3
3
  export declare class Composition extends Connector {
4
4
  private readonly host;
5
5
  constructor(host: Host);
@@ -1,4 +1,4 @@
1
- import type * as RTD from './RTD/index.js';
1
+ import type * as RTD from './RTD/index.ts';
2
2
  export type Context = RTD.Context<Extension | undefined>;
3
3
  interface Extension {
4
4
  namespace: string;
@@ -1,9 +1,9 @@
1
- import type { Context, OutgoingMessage, Options } from './HTTP/index.js';
2
- import type { Remotes } from './Remotes.js';
3
- import type { Host } from './Factory.js';
4
- import type { Output } from './io.js';
5
- import type { Introspection } from './Introspection.js';
6
- import type * as RTD from './RTD/index.js';
1
+ import type { Context, OutgoingMessage, Options } from './HTTP/index.ts';
2
+ import type { Remotes } from './Remotes.ts';
3
+ import type { Host } from './Factory.ts';
4
+ import type { Output } from './io.ts';
5
+ import type { Introspection } from './Introspection.ts';
6
+ import type * as RTD from './RTD/index.ts';
7
7
  export declare class Directives implements RTD.Directives {
8
8
  private readonly sets;
9
9
  /** the span of a stage depends only on the set, so it is built once per route */
@@ -1,5 +1,5 @@
1
- import * as http from '../HTTP/index.js';
2
- import type { Tree } from '../RTD/index.js';
1
+ import * as http from '../HTTP/index.ts';
2
+ import type { Tree } from '../RTD/index.ts';
3
3
  /**
4
4
  * What an application serves, for every route at once. Each entry is what `OPTIONS` on that
5
5
  * path answers, so a key taken from here is a request that can be made.
@@ -1,5 +1,5 @@
1
- import type { Input, Output } from '../io.js';
2
- import type { Interceptor } from '../Interception.js';
1
+ import type { Input, Output } from '../io.ts';
2
+ import type { Interceptor } from '../Interception.ts';
3
3
  /**
4
4
  * The page that reads the tree: the directory `ui` builds, and nothing else.
5
5
  *
@@ -1,3 +1,3 @@
1
- export { Explorer } from './Explorer.js';
2
- export { Site } from './Site.js';
3
- export { looking } from './trunk.js';
1
+ export { Explorer } from './Explorer.ts';
2
+ export { Site } from './Site.ts';
3
+ export { looking } from './trunk.ts';
@@ -1,6 +1,6 @@
1
- import { type Described } from '../directives/help/index.js';
2
- import type * as http from '../HTTP/index.js';
3
- import type { Tree } from '../RTD/index.js';
1
+ import { type Described } from '../directives/help/index.ts';
2
+ import type * as http from '../HTTP/index.ts';
3
+ import type { Tree } from '../RTD/index.ts';
4
4
  /**
5
5
  * Every route in the tree this caller may reach, keyed by the template it answers at, and
6
6
  * each described exactly as `OPTIONS` on that path describes it — so a key can be taken
@@ -1,4 +1,4 @@
1
- import type { Context, OutgoingMessage } from '../HTTP/index.js';
1
+ import type { Context, OutgoingMessage } from '../HTTP/index.ts';
2
2
  /**
3
3
  * Where a browser that asked for the trunk is sent. An application serves what it declares,
4
4
  * and `/` is usually not one of those — a person who typed the address into a browser is
@@ -1,10 +1,10 @@
1
- import { Mapping } from './Mapping.js';
2
- import * as http from './HTTP/index.js';
3
- import type { Introspection, Schema } from './Introspection.js';
1
+ import { Mapping } from './Mapping.ts';
2
+ import * as http from './HTTP/index.ts';
3
+ import type { Introspection, Schema } from './Introspection.ts';
4
4
  import type { Remote } from '@toa.io/core';
5
- import type { Remotes } from './Remotes.js';
6
- import type { Context } from './Context.js';
7
- import type * as RTD from './RTD/index.js';
5
+ import type { Remotes } from './Remotes.ts';
6
+ import type { Context } from './Context.ts';
7
+ import type * as RTD from './RTD/index.ts';
8
8
  export declare class Endpoint implements RTD.Endpoint {
9
9
  private readonly endpoint;
10
10
  private readonly mapping;
@@ -1,4 +1,4 @@
1
- import type { syntax } from './RTD/index.js';
1
+ import type { syntax } from './RTD/index.ts';
2
2
  import type { Connector, Locator } from '@toa.io/core';
3
3
  import type { extensions } from '@toa.io/core/types';
4
4
  export declare class Factory implements extensions.Factory {
@@ -1,11 +1,11 @@
1
1
  import { Connector } from '@toa.io/core';
2
2
  import type { bindings } from '@toa.io/core/types';
3
- import * as http from './HTTP/index.js';
4
- import type { Interception } from './Interception.js';
5
- import type { Dispatcher } from './RPC/index.js';
6
- import type { Server } from './MCP/index.js';
7
- import type { DirectiveFactory, Tree } from './RTD/index.js';
8
- import type { Label } from './discovery.js';
3
+ import * as http from './HTTP/index.ts';
4
+ import type { Interception } from './Interception.ts';
5
+ import type { Dispatcher } from './RPC/index.ts';
6
+ import type { Server } from './MCP/index.ts';
7
+ import type { DirectiveFactory, Tree } from './RTD/index.ts';
8
+ import type { Label } from './discovery.ts';
9
9
  export declare class Gateway extends Connector {
10
10
  private readonly broadcast;
11
11
  private readonly tree;
@@ -1,7 +1,7 @@
1
- import { Timing } from './Timing.js';
2
- import { type Format } from './formats/index.js';
3
- import type { OutgoingMessage } from './messages.js';
4
- import type { IncomingMessage } from './types.js';
1
+ import { Timing } from './Timing.ts';
2
+ import { type Format } from './formats/index.ts';
3
+ import type { OutgoingMessage } from './messages.ts';
4
+ import type { IncomingMessage } from './types.ts';
5
5
  export declare class Context {
6
6
  readonly authority: string;
7
7
  readonly request: IncomingMessage;
@@ -1,8 +1,8 @@
1
1
  import { Connector } from '@toa.io/core';
2
- import { type OutgoingMessage } from './messages.js';
3
- import { Context } from './Context.js';
4
- import type { Protocol } from './types.js';
5
- import type { Bouncer, MCPAnnotation as MCP, OAuth, RPCAnnotation as RPC } from '@toa.io/definitions/extensions.exposition';
2
+ import { type OutgoingMessage } from './messages.ts';
3
+ import { Context } from './Context.ts';
4
+ import type { Protocol } from './types.ts';
5
+ import type { Bouncer, Censor, MCPAnnotation as MCP, OAuth, RPCAnnotation as RPC } from '@toa.io/definitions/extensions.exposition';
6
6
  export declare class Server extends Connector {
7
7
  private readonly server;
8
8
  private readonly properties;
@@ -50,6 +50,8 @@ interface Properties {
50
50
  ip?: string;
51
51
  /** Failed authentications an address may make; none are metered unless set. */
52
52
  bouncer?: Bouncer;
53
+ /** Header values a request is answered 451 for; none is refused without it. */
54
+ censor?: Censor;
53
55
  /** The authorization server this context exposes; none is exposed without it. */
54
56
  oauth?: OAuth;
55
57
  /** JSON-RPC at `/.rpc`; none is served without it. */
@@ -1 +1 @@
1
- {"version":3,"file":"Server.js","sourceRoot":"","sources":["../../source/HTTP/Server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAA;AACxB,OAAO,EAAE,MAAM,SAAS,CAAA;AACxB,OAAO,KAAK,IAAI,MAAM,WAAW,CAAA;AACjC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAoB,MAAM,UAAU,CAAA;AAClF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAwB,KAAK,EAAE,MAAM,eAAe,CAAA;AAC3D,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAClC,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAA;AASvE,MAAM,OAAO,MAAO,SAAQ,SAAS;IAClB,MA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AAG,CAAA;AAE1B,yFAAyF;AACzF,MAAM,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;AAE1B;;;;;GAKG;AACH,SAAS,KAAK,CAAC,OAAmC;IAChD,IAAI,OAAO,OAAO,CAAC,WAAW,KAAK,QAAQ;QAAE,OAAO,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,CAAA;IAE/E,kDAAkD;IAClD,IACE,OAAO,OAAO,CAAC,GAAG,KAAK,QAAQ;QAC/B,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC;QACrB,OAAO,CAAC,GAAG,KAAK,QAAQ;QAExB,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,CAAA;IAElE,OAAO,IAAI,CAAA;AACb,CAAC;AAED;;;GAGG;AACH,MAAM,IAAI,GAAG,2DAA2D,CAAA;AAExE,MAAM,GAAG,GAAG,gBAAgB,CAAA;AAC5B,MAAM,QAAQ,GAAG,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;AAE/B,MAAM,QAAQ,GAAoC;IAChD,OAAO,EAAE,IAAI,GAAG,CAAS;QACvB,SAAS;QACT,KAAK;QACL,MAAM;QACN,MAAM;QACN,KAAK;QACL,OAAO;QACP,QAAQ;QACR,MAAM;QACN,QAAQ;KACT,CAAC;IACF,KAAK,EAAE,KAAK;IACZ,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,KAAK,GAAG,IAAI;IACnB,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE,KAAK;CACb,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { ServerResponse } from './types.js';
1
+ import type { ServerResponse } from './types.ts';
2
2
  /** How long the request took, from received to written: one number, the header's. */
3
3
  export declare class Timing {
4
4
  private readonly start;
@@ -1,4 +1,4 @@
1
- import type { IncomingMessage } from './types.js';
1
+ import type { IncomingMessage } from './types.ts';
2
2
  /**
3
3
  * The client address: the value of the header the deployment names, and nothing otherwise.
4
4
  * Of a header holding a list, the last value is the one the edge in front appended. The
@@ -44,6 +44,9 @@ export declare class TooManyRequests extends ClientError {
44
44
  /** @param retry Seconds until the request would be admitted. */
45
45
  constructor(retry?: number);
46
46
  }
47
+ export declare class UnavailableForLegalReasons extends ClientError {
48
+ constructor();
49
+ }
47
50
  export declare class ServiceUnavailable extends Exception {
48
51
  constructor(body?: any);
49
52
  }
@@ -73,6 +73,11 @@ export class TooManyRequests extends ClientError {
73
73
  super(429, undefined, retry === undefined ? undefined : new Headers({ 'retry-after': String(retry) }));
74
74
  }
75
75
  }
76
+ export class UnavailableForLegalReasons extends ClientError {
77
+ constructor() {
78
+ super(451);
79
+ }
80
+ }
76
81
  export class ServiceUnavailable extends Exception {
77
82
  constructor(body) {
78
83
  super(503, body);
@@ -1 +1 @@
1
- {"version":3,"file":"exceptions.js","sourceRoot":"","sources":["../../source/HTTP/exceptions.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,SAAU,SAAQ,KAAK;IAClB,MAAM,CAAQ;IACd,IAAI,CAAM;IAE1B,+EAA+E;IAC/D,OAAO,CAAU;IAEjC,YAAsB,MAAc,EAAE,IAAU,EAAE,OAAiB;QACjE,KAAK,EAAE,CAAA;QACP,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QACpB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;QAChB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACxB,CAAC;CACF;AAED,MAAM,OAAO,WAAY,SAAQ,SAAS;CAAG;AAE7C,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC,YAAmB,IAAU;QAC3B,KAAK,CAAC,GAAG,EAAE,IAAI,CAAC,CAAA;IAClB,CAAC;CACF;AAED,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C,YAAmB,IAAU;QAC3B,KAAK,CAAC,GAAG,EAAE,IAAI,CAAC,CAAA;IAClB,CAAC;CACF;AAED,MAAM,OAAO,SAAU,SAA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AAC,GAAG,EAAE,IAAI,CAAC,CAAA;IAClB,CAAC;CACF;AAED,MAAM,OAAO,cAAe,SAAQ,SAAS;IAC3C,YAAmB,IAAU;QAC3B,KAAK,CAAC,GAAG,EAAE,IAAI,CAAC,CAAA;IAClB,CAAC;CACF"}
@@ -1,6 +1,6 @@
1
- export * from './Server.js';
2
- export * from './messages.js';
3
- export * from './exceptions.js';
4
- export * from './Context.js';
5
- export * from './types.js';
6
- export * from './Probe.js';
1
+ export * from './Server.ts';
2
+ export * from './messages.ts';
3
+ export * from './exceptions.ts';
4
+ export * from './Context.ts';
5
+ export * from './types.ts';
6
+ export * from './Probe.ts';
@@ -1,6 +1,6 @@
1
1
  import { Readable } from 'node:stream';
2
- import type { Context } from './Context.js';
3
- import type { ServerResponse } from './types.js';
2
+ import type { Context } from './Context.ts';
3
+ import type { ServerResponse } from './types.ts';
4
4
  /**
5
5
  * Applies what the request accumulated in `pipelines.response` — an `io:output` restriction,
6
6
  * a `vary` a `map` directive owes. Separate from `write` because a message is not always
@@ -1,5 +1,5 @@
1
- import type * as http from './HTTP/index.js';
2
- import type { Input, Output } from './io.js';
1
+ import type * as http from './HTTP/index.ts';
2
+ import type { Input, Output } from './io.ts';
3
3
  export declare class Interception implements Interceptor {
4
4
  private readonly interceptors;
5
5
  constructor(interceptors: Interceptor[], options: http.Options);
@@ -1,5 +1,5 @@
1
1
  import type { Remote } from '@toa.io/core';
2
- import type { Context } from './HTTP/index.js';
2
+ import type { Context } from './HTTP/index.ts';
3
3
  export interface Introspection {
4
4
  /**
5
5
  * What the route states this method is. The operation states what it is too, and that is
@@ -1,5 +1,5 @@
1
- import * as http from '../HTTP/index.js';
2
- import type { Tree } from '../RTD/index.js';
1
+ import * as http from '../HTTP/index.ts';
2
+ import type { Tree } from '../RTD/index.ts';
3
3
  import type { MCPAnnotation as MCP } from '@toa.io/definitions/extensions.exposition';
4
4
  /**
5
5
  * The Model Context Protocol, as one endpoint that remembers nothing between requests.
@@ -1,5 +1,5 @@
1
- import * as http from '../HTTP/index.js';
2
- import { type Failure, type Response } from './types.js';
1
+ import * as http from '../HTTP/index.ts';
2
+ import { type Failure, type Response } from './types.ts';
3
3
  export declare const PARSE = -32700;
4
4
  export declare const INVALID_REQUEST = -32600;
5
5
  export declare const METHOD_NOT_FOUND = -32601;
@@ -1 +1 @@
1
- export { Server } from './Server.js';
1
+ export { Server } from './Server.ts';
@@ -1,5 +1,5 @@
1
- import type { Introspection, Schema } from '../Introspection.js';
2
- import type { Annotations } from './types.js';
1
+ import type { Introspection, Schema } from '../Introspection.ts';
2
+ import type { Annotations } from './types.ts';
3
3
  /**
4
4
  * What a tool takes, which is what the procedure takes: a route variable by the name the
5
5
  * template gives it, the querystring under a name of its own, and what is left is the body.
@@ -1,6 +1,6 @@
1
- import * as http from '../HTTP/index.js';
2
- import type { Tree } from '../RTD/index.js';
3
- import type { Params, Result, Tool } from './types.js';
1
+ import * as http from '../HTTP/index.ts';
2
+ import type { Tree } from '../RTD/index.ts';
3
+ import type { Params, Result, Tool } from './types.ts';
4
4
  /**
5
5
  * Every method this caller may reach that is published as a tool, named as the procedure
6
6
  * it is.
@@ -1,9 +1,9 @@
1
- import { type Parameter } from './RTD/index.js';
2
- import { Query } from './Query.js';
3
- import type { Introspection, Schema } from './Introspection.js';
4
- import type { QueryString } from './Query.js';
5
- import type * as http from './HTTP/index.js';
6
- import type * as syntax from './RTD/syntax/index.js';
1
+ import { type Parameter } from './RTD/index.ts';
2
+ import { Query } from './Query.ts';
3
+ import type { Introspection, Schema } from './Introspection.ts';
4
+ import type { QueryString } from './Query.ts';
5
+ import type * as http from './HTTP/index.ts';
6
+ import type * as syntax from './RTD/syntax/index.ts';
7
7
  import type * as core from '@toa.io/core/types';
8
8
  export declare abstract class Mapping {
9
9
  protected readonly query: Query;
@@ -1,7 +1,7 @@
1
- import * as http from './HTTP/index.js';
2
- import { type Parameter } from './RTD/index.js';
3
- import type { Introspection, Schema } from './Introspection.js';
4
- import type * as syntax from './RTD/syntax/index.js';
1
+ import * as http from './HTTP/index.ts';
2
+ import { type Parameter } from './RTD/index.ts';
3
+ import type { Introspection, Schema } from './Introspection.ts';
4
+ import type * as syntax from './RTD/syntax/index.ts';
5
5
  import type * as core from '@toa.io/core/types';
6
6
  export declare class Query {
7
7
  readonly parameterized: boolean;
@@ -1,5 +1,5 @@
1
- import * as http from '../HTTP/index.js';
2
- import type { Params } from './types.js';
1
+ import * as http from '../HTTP/index.ts';
2
+ import type { Params } from './types.ts';
3
3
  /**
4
4
  * One call, as a request the rest of the gateway can serve.
5
5
  *
@@ -1,4 +1,4 @@
1
- import * as http from '../HTTP/index.js';
1
+ import * as http from '../HTTP/index.ts';
2
2
  import type { RPCAnnotation as RPC } from '@toa.io/definitions/extensions.exposition';
3
3
  /**
4
4
  * JSON-RPC, as the calls a request carries.
@@ -1,4 +1,4 @@
1
- import { type Failure, type Response } from './types.js';
1
+ import { type Failure, type Response } from './types.ts';
2
2
  export declare const PARSE = -32700;
3
3
  export declare const INVALID_REQUEST = -32600;
4
4
  export declare const METHOD_NOT_FOUND = -32601;
@@ -1 +1 @@
1
- export { Dispatcher } from './Dispatcher.js';
1
+ export { Dispatcher } from './Dispatcher.ts';
@@ -1,5 +1,5 @@
1
- import type { Segment } from '../RTD/segment.js';
2
- import { type Params } from './types.js';
1
+ import type { Segment } from '../RTD/segment.ts';
2
+ import { type Params } from './types.ts';
3
3
  /**
4
4
  * What a name resolves to: the path the call is made at, and the verb it is made with.
5
5
  *
@@ -1,6 +1,6 @@
1
- import { type DirectiveFactory } from './Directives.js';
2
- import { type EndpointsFactory } from './Endpoint.js';
3
- import type { Directive } from './syntax/index.js';
1
+ import { type DirectiveFactory } from './Directives.ts';
2
+ import { type EndpointsFactory } from './Endpoint.ts';
3
+ import type { Directive } from './syntax/index.ts';
4
4
  export interface Context<TExtension = any> {
5
5
  readonly protected: boolean;
6
6
  readonly endpoints: EndpointsFactory;
@@ -1,8 +1,8 @@
1
- import type { Parameter } from './Match.js';
2
- import type * as syntax from './syntax/index.js';
3
- import type { Context, OutgoingMessage, Options } from '../HTTP/index.js';
4
- import type { Output } from '../io.js';
5
- import type { Introspection } from '../Introspection.js';
1
+ import type { Parameter } from './Match.ts';
2
+ import type * as syntax from './syntax/index.ts';
3
+ import type { Context, OutgoingMessage, Options } from '../HTTP/index.ts';
4
+ import type { Output } from '../io.ts';
5
+ import type { Introspection } from '../Introspection.ts';
6
6
  import type { extensions } from '@toa.io/core/types';
7
7
  type Host = extensions.Host;
8
8
  export interface Directives {