@toa.io/extensions.exposition 1.0.0-alpha.267 → 1.0.0-alpha.269

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 (119) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/components/{octets.storage → exposition.octets}/manifest.toa.yaml +2 -2
  3. package/components/exposition.stash/manifest.toa.yaml +12 -0
  4. package/components/exposition.stash/operations/count.js +7 -0
  5. package/components/identity.basic/operations/tsconfig.tsbuildinfo +1 -1
  6. package/components/identity.credentials/operations/tsconfig.tsbuildinfo +1 -1
  7. package/components/identity.federation/operations/tsconfig.tsbuildinfo +1 -1
  8. package/components/identity.keys/operations/tsconfig.tsbuildinfo +1 -1
  9. package/components/identity.otp/operations/tsconfig.tsbuildinfo +1 -1
  10. package/components/identity.passkeys/operations/tsconfig.tsbuildinfo +1 -1
  11. package/components/identity.roles/operations/tsconfig.tsbuildinfo +1 -1
  12. package/components/identity.tokens/operations/tsconfig.tsbuildinfo +1 -1
  13. package/documentation/io.md +45 -17
  14. package/documentation/notes/throttling.md +6 -0
  15. package/features/access.feature +55 -0
  16. package/features/io.throttle.feature +127 -0
  17. package/features/map.feature +5 -5
  18. package/features/octets.cloudinary.feature +12 -9
  19. package/features/octets.download.feature +4 -3
  20. package/features/octets.entries.feature +5 -3
  21. package/features/octets.feature +4 -4
  22. package/features/octets.head.feature +1 -1
  23. package/features/octets.location.feature +1 -1
  24. package/features/octets.meta.feature +2 -2
  25. package/features/octets.workflows.feature +7 -7
  26. package/package.json +8 -8
  27. package/schemas/io/throttle.cos.yaml +9 -2
  28. package/source/Directive.test.ts +72 -7
  29. package/source/Directive.ts +15 -5
  30. package/source/HTTP/messages.ts +5 -1
  31. package/source/Interception.ts +8 -0
  32. package/source/RTD/Context.ts +3 -0
  33. package/source/RTD/Directives.ts +1 -1
  34. package/source/RTD/Tree.ts +17 -0
  35. package/source/RTD/factory.ts +11 -1
  36. package/source/directives/cors/CORS.ts +26 -9
  37. package/source/directives/io/Directive.ts +4 -2
  38. package/source/directives/io/IO.ts +18 -7
  39. package/source/directives/io/Input.ts +5 -1
  40. package/source/directives/io/Throttle.ts +8 -6
  41. package/source/directives/io/lib/throttle/Configuration.test.ts +21 -0
  42. package/source/directives/io/lib/throttle/Configuration.ts +11 -4
  43. package/source/directives/io/lib/throttle/Keys.ts +12 -11
  44. package/source/directives/io/lib/throttle/Quotas.test.ts +207 -46
  45. package/source/directives/io/lib/throttle/Quotas.ts +59 -35
  46. package/source/directives/io/lib/throttle/components/Component.ts +2 -1
  47. package/source/directives/io/lib/throttle/components/Identity.ts +19 -0
  48. package/source/directives/io/lib/throttle/components/Route.ts +19 -0
  49. package/source/directives/io/lib/throttle/components/Segment.ts +19 -0
  50. package/source/directives/io/lib/throttle/components/index.ts +8 -2
  51. package/source/directives/io/schemas.test.ts +16 -0
  52. package/source/directives/octets/Octets.ts +1 -1
  53. package/source/directives/octets/workflows/Execution.ts +4 -2
  54. package/transpiled/Directive.d.ts +3 -1
  55. package/transpiled/Directive.js +12 -3
  56. package/transpiled/Directive.js.map +1 -1
  57. package/transpiled/HTTP/messages.js +4 -1
  58. package/transpiled/HTTP/messages.js.map +1 -1
  59. package/transpiled/Interception.d.ts +2 -0
  60. package/transpiled/Interception.js +4 -0
  61. package/transpiled/Interception.js.map +1 -1
  62. package/transpiled/RTD/Context.d.ts +2 -0
  63. package/transpiled/RTD/Directives.d.ts +1 -1
  64. package/transpiled/RTD/Tree.js +14 -0
  65. package/transpiled/RTD/Tree.js.map +1 -1
  66. package/transpiled/RTD/factory.js +8 -1
  67. package/transpiled/RTD/factory.js.map +1 -1
  68. package/transpiled/directives/cors/CORS.d.ts +8 -1
  69. package/transpiled/directives/cors/CORS.js +23 -9
  70. package/transpiled/directives/cors/CORS.js.map +1 -1
  71. package/transpiled/directives/io/Directive.d.ts +4 -2
  72. package/transpiled/directives/io/IO.d.ts +6 -3
  73. package/transpiled/directives/io/IO.js +11 -5
  74. package/transpiled/directives/io/IO.js.map +1 -1
  75. package/transpiled/directives/io/Input.js +5 -1
  76. package/transpiled/directives/io/Input.js.map +1 -1
  77. package/transpiled/directives/io/Throttle.d.ts +5 -3
  78. package/transpiled/directives/io/Throttle.js +6 -6
  79. package/transpiled/directives/io/Throttle.js.map +1 -1
  80. package/transpiled/directives/io/lib/throttle/Configuration.d.ts +6 -2
  81. package/transpiled/directives/io/lib/throttle/Configuration.js +5 -2
  82. package/transpiled/directives/io/lib/throttle/Configuration.js.map +1 -1
  83. package/transpiled/directives/io/lib/throttle/Keys.d.ts +4 -3
  84. package/transpiled/directives/io/lib/throttle/Keys.js +7 -10
  85. package/transpiled/directives/io/lib/throttle/Keys.js.map +1 -1
  86. package/transpiled/directives/io/lib/throttle/Quotas.d.ts +27 -8
  87. package/transpiled/directives/io/lib/throttle/Quotas.js +47 -31
  88. package/transpiled/directives/io/lib/throttle/Quotas.js.map +1 -1
  89. package/transpiled/directives/io/lib/throttle/components/Component.d.ts +2 -1
  90. package/transpiled/directives/io/lib/throttle/components/Identity.d.ts +11 -0
  91. package/transpiled/directives/io/lib/throttle/components/Identity.js +16 -0
  92. package/transpiled/directives/io/lib/throttle/components/Identity.js.map +1 -0
  93. package/transpiled/directives/io/lib/throttle/components/Route.d.ts +12 -0
  94. package/transpiled/directives/io/lib/throttle/components/Route.js +20 -0
  95. package/transpiled/directives/io/lib/throttle/components/Route.js.map +1 -0
  96. package/transpiled/directives/io/lib/throttle/components/Segment.d.ts +9 -0
  97. package/transpiled/directives/io/lib/throttle/components/Segment.js +20 -0
  98. package/transpiled/directives/io/lib/throttle/components/Segment.js.map +1 -0
  99. package/transpiled/directives/io/lib/throttle/components/index.d.ts +1 -1
  100. package/transpiled/directives/io/lib/throttle/components/index.js +7 -1
  101. package/transpiled/directives/io/lib/throttle/components/index.js.map +1 -1
  102. package/transpiled/directives/octets/Octets.js +1 -1
  103. package/transpiled/directives/octets/Octets.js.map +1 -1
  104. package/transpiled/directives/octets/workflows/Execution.js +3 -1
  105. package/transpiled/directives/octets/workflows/Execution.js.map +1 -1
  106. package/transpiled/tsconfig.tsbuildinfo +1 -1
  107. package/features/auth.issue.feature +0 -32
  108. package/source/directives/io/lib/throttle/Interval.ts +0 -40
  109. package/source/directives/io/lib/throttle/Quota.ts +0 -22
  110. package/transpiled/directives/io/lib/throttle/Interval.d.ts +0 -10
  111. package/transpiled/directives/io/lib/throttle/Interval.js +0 -39
  112. package/transpiled/directives/io/lib/throttle/Interval.js.map +0 -1
  113. package/transpiled/directives/io/lib/throttle/Quota.d.ts +0 -8
  114. package/transpiled/directives/io/lib/throttle/Quota.js +0 -22
  115. package/transpiled/directives/io/lib/throttle/Quota.js.map +0 -1
  116. /package/components/{octets.storage → exposition.octets}/operations/delete.js +0 -0
  117. /package/components/{octets.storage → exposition.octets}/operations/get.js +0 -0
  118. /package/components/{octets.storage → exposition.octets}/operations/head.js +0 -0
  119. /package/components/{octets.storage → exposition.octets}/operations/put.js +0 -0
package/CHANGELOG.md CHANGED
@@ -3,6 +3,32 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.0.0-alpha.269](https://github.com/toa-io/toa/compare/v1.0.0-alpha.268...v1.0.0-alpha.269) (2026-08-30)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **exposition:** check input restrictions before directives add to the body ([b37961a](https://github.com/toa-io/toa/commit/b37961aa43b8ea52fbbbfd8d447fd20a71fbbef6))
12
+
13
+
14
+
15
+
16
+
17
+ # [1.0.0-alpha.268](https://github.com/toa-io/toa/compare/v1.0.0-alpha.267...v1.0.0-alpha.268) (2026-08-30)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **agent:** do not append a content-length a request already declares ([17893e9](https://github.com/toa-io/toa/commit/17893e9bc8c64c744dac2ad7cf057267a0932afb))
23
+ * **exposition:** make the allowed CORS headers stable and per-gateway ([2ea3554](https://github.com/toa-io/toa/commit/2ea3554ad61bd4dc9246cebc30cad6cf553dcce5))
24
+ * **exposition:** report the entity length on HEAD ([bf20086](https://github.com/toa-io/toa/commit/bf2008672d5f192bdeffa5d7c1d46fef7e06ea7b))
25
+ * **exposition:** serialize the error a failed workflow step reports ([c11a3a6](https://github.com/toa-io/toa/commit/c11a3a6ecdf177227679bad590a886753cbdf2a5))
26
+ * **exposition:** type the throttle key declaration precisely ([ac7d486](https://github.com/toa-io/toa/commit/ac7d4865f689f1a77f65ed3262da47fd49b62e81))
27
+
28
+
29
+
30
+
31
+
6
32
  # [1.0.0-alpha.267](https://github.com/toa-io/toa/compare/v1.0.0-alpha.266...v1.0.0-alpha.267) (2026-08-29)
7
33
 
8
34
  **Note:** Version bump only for package @toa.io/extensions.exposition
@@ -1,5 +1,5 @@
1
- namespace: octets
2
- name: storage
1
+ namespace: exposition
2
+ name: octets
3
3
 
4
4
  storages: ~
5
5
 
@@ -0,0 +1,12 @@
1
+ namespace: exposition
2
+ name: stash
3
+
4
+ stash: ~
5
+
6
+ operations:
7
+ count:
8
+ bindings: ~ # the gateway calls this in its own process, over the loop
9
+ input:
10
+ name*: string
11
+ interval*: number
12
+ amount*: number
@@ -0,0 +1,7 @@
1
+ 'use strict'
2
+
3
+ async function count (input, context) {
4
+ return context.stash.count(input.name, input.interval, input.amount)
5
+ }
6
+
7
+ exports.computation = count