effect 4.1.5 → 4.1.6

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 (309) hide show
  1. package/ai-docs/package.json +2 -2
  2. package/dist/Channel.d.ts +104 -7
  3. package/dist/Channel.d.ts.map +1 -1
  4. package/dist/Channel.js +73 -4
  5. package/dist/Channel.js.map +1 -1
  6. package/dist/Codegen.d.ts +7 -2
  7. package/dist/Codegen.d.ts.map +1 -1
  8. package/dist/Codegen.js +7 -2
  9. package/dist/Codegen.js.map +1 -1
  10. package/dist/Effect.d.ts +139 -18
  11. package/dist/Effect.d.ts.map +1 -1
  12. package/dist/Effect.js +10 -2
  13. package/dist/Effect.js.map +1 -1
  14. package/dist/Equal.d.ts +4 -4
  15. package/dist/Equal.d.ts.map +1 -1
  16. package/dist/Equal.js +78 -65
  17. package/dist/Equal.js.map +1 -1
  18. package/dist/Hash.d.ts.map +1 -1
  19. package/dist/Hash.js +24 -17
  20. package/dist/Hash.js.map +1 -1
  21. package/dist/LayerRef.d.ts +1 -1
  22. package/dist/LayerRef.d.ts.map +1 -1
  23. package/dist/LayerRef.js +3 -3
  24. package/dist/LayerRef.js.map +1 -1
  25. package/dist/Logger.d.ts +37 -13
  26. package/dist/Logger.d.ts.map +1 -1
  27. package/dist/Logger.js +39 -10
  28. package/dist/Logger.js.map +1 -1
  29. package/dist/Match.d.ts +23 -23
  30. package/dist/Match.d.ts.map +1 -1
  31. package/dist/Match.js.map +1 -1
  32. package/dist/Order.js +1 -1
  33. package/dist/Order.js.map +1 -1
  34. package/dist/Schema.d.ts +41 -0
  35. package/dist/Schema.d.ts.map +1 -1
  36. package/dist/Schema.js +51 -390
  37. package/dist/Schema.js.map +1 -1
  38. package/dist/SchemaAST.d.ts.map +1 -1
  39. package/dist/SchemaAST.js +0 -3
  40. package/dist/SchemaAST.js.map +1 -1
  41. package/dist/ScopedCache.d.ts.map +1 -1
  42. package/dist/ScopedCache.js +6 -4
  43. package/dist/ScopedCache.js.map +1 -1
  44. package/dist/Stream.d.ts +128 -5
  45. package/dist/Stream.d.ts.map +1 -1
  46. package/dist/Stream.js +124 -29
  47. package/dist/Stream.js.map +1 -1
  48. package/dist/String.js +1 -1
  49. package/dist/String.js.map +1 -1
  50. package/dist/Tracer.d.ts +10 -0
  51. package/dist/Tracer.d.ts.map +1 -1
  52. package/dist/Tracer.js +2 -0
  53. package/dist/Tracer.js.map +1 -1
  54. package/dist/ai/McpSchema.d.ts +88 -88
  55. package/dist/ai/McpSchema.d.ts.map +1 -1
  56. package/dist/ai/McpServer.d.ts +152 -2
  57. package/dist/ai/McpServer.d.ts.map +1 -1
  58. package/dist/ai/McpServer.js +8 -2
  59. package/dist/ai/McpServer.js.map +1 -1
  60. package/dist/ai/Prompt.d.ts +3 -1
  61. package/dist/ai/Prompt.d.ts.map +1 -1
  62. package/dist/ai/Prompt.js +17 -3
  63. package/dist/ai/Prompt.js.map +1 -1
  64. package/dist/ai/Skill.d.ts +172 -0
  65. package/dist/ai/Skill.d.ts.map +1 -0
  66. package/dist/ai/Skill.js +209 -0
  67. package/dist/ai/Skill.js.map +1 -0
  68. package/dist/ai/index.d.ts +5 -0
  69. package/dist/ai/index.d.ts.map +1 -1
  70. package/dist/ai/index.js +5 -0
  71. package/dist/ai/index.js.map +1 -1
  72. package/dist/cluster/ClusterWorkflowEngine.d.ts.map +1 -1
  73. package/dist/cluster/ClusterWorkflowEngine.js +155 -83
  74. package/dist/cluster/ClusterWorkflowEngine.js.map +1 -1
  75. package/dist/cluster/MessageStorage.d.ts +56 -0
  76. package/dist/cluster/MessageStorage.d.ts.map +1 -1
  77. package/dist/cluster/MessageStorage.js +18 -2
  78. package/dist/cluster/MessageStorage.js.map +1 -1
  79. package/dist/cluster/SqlMessageStorage.d.ts.map +1 -1
  80. package/dist/cluster/SqlMessageStorage.js +45 -22
  81. package/dist/cluster/SqlMessageStorage.js.map +1 -1
  82. package/dist/cluster/internal/entityActivation.js +2 -0
  83. package/dist/cluster/internal/entityActivation.js.map +1 -1
  84. package/dist/cluster/internal/entityManager.js +8 -5
  85. package/dist/cluster/internal/entityManager.js.map +1 -1
  86. package/dist/encoding/Base64.js +5 -1
  87. package/dist/encoding/Base64.js.map +1 -1
  88. package/dist/encoding/Base64Url.d.ts.map +1 -1
  89. package/dist/encoding/Base64Url.js +6 -1
  90. package/dist/encoding/Base64Url.js.map +1 -1
  91. package/dist/encoding/Xml.d.ts +38 -9
  92. package/dist/encoding/Xml.d.ts.map +1 -1
  93. package/dist/encoding/Xml.js +63 -31
  94. package/dist/encoding/Xml.js.map +1 -1
  95. package/dist/http/FetchHttpClient.d.ts +2 -1
  96. package/dist/http/FetchHttpClient.d.ts.map +1 -1
  97. package/dist/http/FetchHttpClient.js +14 -10
  98. package/dist/http/FetchHttpClient.js.map +1 -1
  99. package/dist/http/Headers.d.ts +201 -3
  100. package/dist/http/Headers.d.ts.map +1 -1
  101. package/dist/http/Headers.js +205 -3
  102. package/dist/http/Headers.js.map +1 -1
  103. package/dist/http/HttpClient.d.ts.map +1 -1
  104. package/dist/http/HttpClient.js +11 -7
  105. package/dist/http/HttpClient.js.map +1 -1
  106. package/dist/http/HttpClientError.d.ts +1 -0
  107. package/dist/http/HttpClientError.d.ts.map +1 -1
  108. package/dist/http/HttpClientError.js +32 -9
  109. package/dist/http/HttpClientError.js.map +1 -1
  110. package/dist/http/HttpClientRequest.d.ts +46 -0
  111. package/dist/http/HttpClientRequest.d.ts.map +1 -1
  112. package/dist/http/HttpClientRequest.js +15 -0
  113. package/dist/http/HttpClientRequest.js.map +1 -1
  114. package/dist/http/HttpClientResponse.d.ts +132 -0
  115. package/dist/http/HttpClientResponse.d.ts.map +1 -1
  116. package/dist/http/HttpClientResponse.js +83 -0
  117. package/dist/http/HttpClientResponse.js.map +1 -1
  118. package/dist/http/HttpMiddleware.js +1 -1
  119. package/dist/http/HttpMiddleware.js.map +1 -1
  120. package/dist/http/HttpServerResponse.d.ts +118 -0
  121. package/dist/http/HttpServerResponse.d.ts.map +1 -1
  122. package/dist/http/HttpServerResponse.js +43 -0
  123. package/dist/http/HttpServerResponse.js.map +1 -1
  124. package/dist/http/Multipart.d.ts.map +1 -1
  125. package/dist/http/Multipart.js +0 -5
  126. package/dist/http/Multipart.js.map +1 -1
  127. package/dist/http/MultipartParser/internal/contentType.d.ts +6 -0
  128. package/dist/http/MultipartParser/internal/contentType.d.ts.map +1 -1
  129. package/dist/http/MultipartParser/internal/contentType.js +1 -1
  130. package/dist/http/MultipartParser/internal/contentType.js.map +1 -1
  131. package/dist/http/internal/clientPath.d.ts +2 -0
  132. package/dist/http/internal/clientPath.d.ts.map +1 -0
  133. package/dist/http/internal/clientPath.js +24 -0
  134. package/dist/http/internal/clientPath.js.map +1 -0
  135. package/dist/http/internal/redactedPath.js +2 -0
  136. package/dist/http/internal/redactedPath.js.map +1 -1
  137. package/dist/http/internal/tracing.js +5 -3
  138. package/dist/http/internal/tracing.js.map +1 -1
  139. package/dist/http-api/HttpApi.d.ts +2 -2
  140. package/dist/http-api/HttpApi.d.ts.map +1 -1
  141. package/dist/http-api/HttpApi.js +30 -7
  142. package/dist/http-api/HttpApi.js.map +1 -1
  143. package/dist/http-api/HttpApiBuilder.d.ts.map +1 -1
  144. package/dist/http-api/HttpApiBuilder.js +5 -2
  145. package/dist/http-api/HttpApiBuilder.js.map +1 -1
  146. package/dist/http-api/HttpApiClient.d.ts.map +1 -1
  147. package/dist/http-api/HttpApiClient.js +23 -6
  148. package/dist/http-api/HttpApiClient.js.map +1 -1
  149. package/dist/http-api/internal/redactedKeys.d.ts +2 -0
  150. package/dist/http-api/internal/redactedKeys.d.ts.map +1 -0
  151. package/dist/http-api/internal/redactedKeys.js +37 -0
  152. package/dist/http-api/internal/redactedKeys.js.map +1 -0
  153. package/dist/internal/base64.js +34 -2
  154. package/dist/internal/base64.js.map +1 -1
  155. package/dist/internal/dateTime.js +35 -17
  156. package/dist/internal/dateTime.js.map +1 -1
  157. package/dist/internal/effect.js +9 -1
  158. package/dist/internal/effect.js.map +1 -1
  159. package/dist/internal/equal.js +14 -13
  160. package/dist/internal/equal.js.map +1 -1
  161. package/dist/internal/hash.js +4 -1
  162. package/dist/internal/hash.js.map +1 -1
  163. package/dist/internal/matcher.js +17 -17
  164. package/dist/internal/matcher.js.map +1 -1
  165. package/dist/internal/schema/schemaCodegen.js +3 -2
  166. package/dist/internal/schema/schemaCodegen.js.map +1 -1
  167. package/dist/internal/schema/schemaCodegenBuiltIns.d.ts +2 -0
  168. package/dist/internal/schema/schemaCodegenBuiltIns.d.ts.map +1 -0
  169. package/dist/internal/schema/schemaCodegenBuiltIns.js +425 -0
  170. package/dist/internal/schema/schemaCodegenBuiltIns.js.map +1 -0
  171. package/dist/internal/schema/toEquivalence.js +3 -4
  172. package/dist/internal/schema/toEquivalence.js.map +1 -1
  173. package/dist/internal/version.js +1 -1
  174. package/dist/jose/JoseError.d.ts +51 -1
  175. package/dist/jose/JoseError.d.ts.map +1 -1
  176. package/dist/jose/JoseError.js +25 -18
  177. package/dist/jose/JoseError.js.map +1 -1
  178. package/dist/jose/internal/compact.js +10 -5
  179. package/dist/jose/internal/compact.js.map +1 -1
  180. package/dist/observability/Otlp.d.ts +19 -0
  181. package/dist/observability/Otlp.d.ts.map +1 -1
  182. package/dist/observability/Otlp.js +10 -0
  183. package/dist/observability/Otlp.js.map +1 -1
  184. package/dist/observability/OtlpExporter.d.ts +49 -13
  185. package/dist/observability/OtlpExporter.d.ts.map +1 -1
  186. package/dist/observability/OtlpExporter.js +135 -54
  187. package/dist/observability/OtlpExporter.js.map +1 -1
  188. package/dist/observability/OtlpLogger.d.ts +14 -0
  189. package/dist/observability/OtlpLogger.d.ts.map +1 -1
  190. package/dist/observability/OtlpLogger.js +10 -2
  191. package/dist/observability/OtlpLogger.js.map +1 -1
  192. package/dist/observability/OtlpMetrics.d.ts.map +1 -1
  193. package/dist/observability/OtlpMetrics.js +2 -0
  194. package/dist/observability/OtlpMetrics.js.map +1 -1
  195. package/dist/observability/OtlpTracer.d.ts +14 -0
  196. package/dist/observability/OtlpTracer.d.ts.map +1 -1
  197. package/dist/observability/OtlpTracer.js +10 -2
  198. package/dist/observability/OtlpTracer.js.map +1 -1
  199. package/dist/persistence/KeyValueStore.d.ts.map +1 -1
  200. package/dist/persistence/KeyValueStore.js +6 -4
  201. package/dist/persistence/KeyValueStore.js.map +1 -1
  202. package/dist/reactivity/Atom.d.ts.map +1 -1
  203. package/dist/reactivity/Atom.js +10 -9
  204. package/dist/reactivity/Atom.js.map +1 -1
  205. package/dist/rpc/RpcClient.d.ts.map +1 -1
  206. package/dist/rpc/RpcClient.js +32 -1
  207. package/dist/rpc/RpcClient.js.map +1 -1
  208. package/dist/rpc/RpcGroup.d.ts +1 -1
  209. package/dist/rpc/RpcGroup.d.ts.map +1 -1
  210. package/dist/rpc/RpcGroup.js +4 -0
  211. package/dist/rpc/RpcGroup.js.map +1 -1
  212. package/dist/sql/Migrator.d.ts.map +1 -1
  213. package/dist/sql/Migrator.js +2 -5
  214. package/dist/sql/Migrator.js.map +1 -1
  215. package/dist/sql/SqlClient.d.ts.map +1 -1
  216. package/dist/sql/SqlClient.js +5 -1
  217. package/dist/sql/SqlClient.js.map +1 -1
  218. package/dist/workflow/Activity.d.ts +18 -0
  219. package/dist/workflow/Activity.d.ts.map +1 -1
  220. package/dist/workflow/Activity.js +13 -4
  221. package/dist/workflow/Activity.js.map +1 -1
  222. package/dist/workflow/Workflow.d.ts +10 -9
  223. package/dist/workflow/Workflow.d.ts.map +1 -1
  224. package/dist/workflow/Workflow.js +33 -22
  225. package/dist/workflow/Workflow.js.map +1 -1
  226. package/dist/workflow/WorkflowEngine.d.ts.map +1 -1
  227. package/dist/workflow/WorkflowEngine.js +26 -12
  228. package/dist/workflow/WorkflowEngine.js.map +1 -1
  229. package/dist/workflow/internal/retry.d.ts +2 -0
  230. package/dist/workflow/internal/retry.d.ts.map +1 -0
  231. package/dist/workflow/internal/retry.js +11 -0
  232. package/dist/workflow/internal/retry.js.map +1 -0
  233. package/dist/workflow/internal/scope.d.ts +2 -0
  234. package/dist/workflow/internal/scope.d.ts.map +1 -0
  235. package/dist/workflow/internal/scope.js +26 -0
  236. package/dist/workflow/internal/scope.js.map +1 -0
  237. package/package.json +3 -3
  238. package/src/Channel.ts +105 -8
  239. package/src/Codegen.ts +7 -2
  240. package/src/Effect.ts +224 -48
  241. package/src/Equal.ts +85 -79
  242. package/src/Hash.ts +30 -22
  243. package/src/LayerRef.ts +6 -4
  244. package/src/Logger.ts +68 -25
  245. package/src/Match.ts +78 -50
  246. package/src/Order.ts +1 -1
  247. package/src/Schema.ts +79 -296
  248. package/src/SchemaAST.ts +0 -1
  249. package/src/ScopedCache.ts +6 -4
  250. package/src/Stream.ts +167 -33
  251. package/src/String.ts +1 -1
  252. package/src/Tracer.ts +10 -0
  253. package/src/ai/McpServer.ts +161 -4
  254. package/src/ai/Prompt.ts +20 -3
  255. package/src/ai/Skill.ts +236 -0
  256. package/src/ai/index.ts +6 -0
  257. package/src/cluster/ClusterWorkflowEngine.ts +172 -96
  258. package/src/cluster/MessageStorage.ts +51 -2
  259. package/src/cluster/SqlMessageStorage.ts +81 -34
  260. package/src/cluster/internal/entityActivation.ts +6 -0
  261. package/src/cluster/internal/entityManager.ts +8 -4
  262. package/src/encoding/Base64.ts +5 -1
  263. package/src/encoding/Base64Url.ts +6 -1
  264. package/src/encoding/Xml.ts +96 -26
  265. package/src/http/FetchHttpClient.ts +8 -5
  266. package/src/http/Headers.ts +309 -3
  267. package/src/http/HttpClient.ts +19 -7
  268. package/src/http/HttpClientError.ts +42 -9
  269. package/src/http/HttpClientRequest.ts +51 -0
  270. package/src/http/HttpClientResponse.ts +156 -0
  271. package/src/http/HttpMiddleware.ts +1 -1
  272. package/src/http/HttpServerResponse.ts +126 -0
  273. package/src/http/Multipart.ts +0 -5
  274. package/src/http/MultipartParser/internal/contentType.ts +1 -1
  275. package/src/http/internal/clientPath.ts +39 -0
  276. package/src/http/internal/redactedPath.ts +4 -0
  277. package/src/http/internal/tracing.ts +6 -3
  278. package/src/http-api/HttpApi.ts +29 -8
  279. package/src/http-api/HttpApiBuilder.ts +7 -2
  280. package/src/http-api/HttpApiClient.ts +30 -7
  281. package/src/http-api/internal/redactedKeys.ts +40 -0
  282. package/src/internal/base64.ts +57 -2
  283. package/src/internal/dateTime.ts +43 -24
  284. package/src/internal/effect.ts +31 -102
  285. package/src/internal/equal.ts +37 -17
  286. package/src/internal/hash.ts +5 -1
  287. package/src/internal/matcher.ts +34 -113
  288. package/src/internal/schema/schemaCodegen.ts +5 -4
  289. package/src/internal/schema/schemaCodegenBuiltIns.ts +343 -0
  290. package/src/internal/schema/toEquivalence.ts +3 -5
  291. package/src/internal/version.ts +1 -1
  292. package/src/jose/JoseError.ts +34 -0
  293. package/src/jose/internal/compact.ts +14 -5
  294. package/src/observability/Otlp.ts +29 -0
  295. package/src/observability/OtlpExporter.ts +206 -75
  296. package/src/observability/OtlpLogger.ts +24 -2
  297. package/src/observability/OtlpMetrics.ts +2 -0
  298. package/src/observability/OtlpTracer.ts +24 -3
  299. package/src/persistence/KeyValueStore.ts +17 -14
  300. package/src/reactivity/Atom.ts +12 -18
  301. package/src/rpc/RpcClient.ts +26 -1
  302. package/src/rpc/RpcGroup.ts +4 -1
  303. package/src/sql/Migrator.ts +2 -11
  304. package/src/sql/SqlClient.ts +14 -8
  305. package/src/workflow/Activity.ts +28 -4
  306. package/src/workflow/Workflow.ts +68 -44
  307. package/src/workflow/WorkflowEngine.ts +38 -15
  308. package/src/workflow/internal/retry.ts +12 -0
  309. package/src/workflow/internal/scope.ts +36 -0
package/dist/Schema.js CHANGED
@@ -3586,9 +3586,6 @@ export function isTrimmed(annotations) {
3586
3586
  toJsonSchema: () => ({
3587
3587
  pattern: regExp.source
3588
3588
  }),
3589
- toCode: () => ({
3590
- runtime: "Schema.isTrimmed()"
3591
- }),
3592
3589
  arbitraryConstraint: {
3593
3590
  patterns: [{
3594
3591
  source: TRIMMED_PATTERN,
@@ -3622,14 +3619,10 @@ export function isPattern(regExp, annotations) {
3622
3619
  const source = regExp.source;
3623
3620
  const flags = regExp.flags;
3624
3621
  const canExport = /^[dg]*uy?$/.test(flags);
3625
- const runtimeRegExp = flags === "" ? `new globalThis.RegExp(${format(source)})` : `new globalThis.RegExp(${format(source)}, ${format(flags)})`;
3626
3622
  return SchemaAST.isPattern(regExp, {
3627
3623
  toJsonSchema: () => canExport ? {
3628
3624
  pattern: flags.endsWith("y") ? `^(?:${source})` : source
3629
3625
  } : [{}, true],
3630
- toCode: () => ({
3631
- runtime: `Schema.isPattern(${runtimeRegExp})`
3632
- }),
3633
3626
  ...annotations
3634
3627
  });
3635
3628
  }
@@ -3653,12 +3646,7 @@ export function isPattern(regExp, annotations) {
3653
3646
  * @since 4.0.0
3654
3647
  */
3655
3648
  export function isStringFinite(annotations) {
3656
- return SchemaAST.isStringFinite({
3657
- toCode: () => ({
3658
- runtime: "Schema.isStringFinite()"
3659
- }),
3660
- ...annotations
3661
- });
3649
+ return SchemaAST.isStringFinite(annotations);
3662
3650
  }
3663
3651
  /**
3664
3652
  * Validates that a string is a signed base-10 integer literal for Effect's
@@ -3679,12 +3667,7 @@ export function isStringFinite(annotations) {
3679
3667
  * @since 4.0.0
3680
3668
  */
3681
3669
  export function isStringBigInt(annotations) {
3682
- return SchemaAST.isStringBigInt({
3683
- toCode: () => ({
3684
- runtime: "Schema.isStringBigInt()"
3685
- }),
3686
- ...annotations
3687
- });
3670
+ return SchemaAST.isStringBigInt(annotations);
3688
3671
  }
3689
3672
  /**
3690
3673
  * Validates that a string has the `Symbol(description)` format used by Effect's
@@ -3700,12 +3683,7 @@ export function isStringBigInt(annotations) {
3700
3683
  * @since 4.0.0
3701
3684
  */
3702
3685
  export function isStringSymbol(annotations) {
3703
- return SchemaAST.isStringSymbol({
3704
- toCode: () => ({
3705
- runtime: "Schema.isStringSymbol()"
3706
- }),
3707
- ...annotations
3708
- });
3686
+ return SchemaAST.isStringSymbol(annotations);
3709
3687
  }
3710
3688
  const getUUIDRegExp = version => {
3711
3689
  if (version) {
@@ -3758,9 +3736,6 @@ export function isUUID(version, annotations) {
3758
3736
  pattern: regExp.source,
3759
3737
  format: "uuid"
3760
3738
  }),
3761
- toCode: () => ({
3762
- runtime: version === undefined ? "Schema.isUUID()" : `Schema.isUUID(${version})`
3763
- }),
3764
3739
  ...annotations
3765
3740
  });
3766
3741
  }
@@ -3797,9 +3772,6 @@ export function isGUID(annotations) {
3797
3772
  id: "effect/schema/isGUID",
3798
3773
  payload: null
3799
3774
  },
3800
- toCode: () => ({
3801
- runtime: "Schema.isGUID()"
3802
- }),
3803
3775
  ...annotations
3804
3776
  });
3805
3777
  }
@@ -3833,9 +3805,6 @@ export function isULID(annotations) {
3833
3805
  id: "effect/schema/isULID",
3834
3806
  payload: null
3835
3807
  },
3836
- toCode: () => ({
3837
- runtime: "Schema.isULID()"
3838
- }),
3839
3808
  ...annotations
3840
3809
  });
3841
3810
  }
@@ -3876,9 +3845,6 @@ export function isAscii(annotations) {
3876
3845
  id: "effect/schema/isAscii",
3877
3846
  payload: null
3878
3847
  },
3879
- toCode: () => ({
3880
- runtime: "Schema.isAscii()"
3881
- }),
3882
3848
  ...annotations
3883
3849
  });
3884
3850
  }
@@ -3920,9 +3886,6 @@ export function isBase64(annotations) {
3920
3886
  flags: ""
3921
3887
  }]
3922
3888
  },
3923
- toCode: () => ({
3924
- runtime: "Schema.isBase64()"
3925
- }),
3926
3889
  ...annotations
3927
3890
  });
3928
3891
  }
@@ -3965,9 +3928,6 @@ export function isBase64Url(annotations) {
3965
3928
  flags: ""
3966
3929
  }]
3967
3930
  },
3968
- toCode: () => ({
3969
- runtime: "Schema.isBase64Url()"
3970
- }),
3971
3931
  ...annotations
3972
3932
  });
3973
3933
  }
@@ -4004,9 +3964,6 @@ export function isStartingWith(startsWith, annotations) {
4004
3964
  }
4005
3965
  },
4006
3966
  toJsonSchema: () => literalToJsonSchema(jsonSchemaLiteral, startsWith, `^${RegExp_.escape(jsonSchemaLiteral)}`),
4007
- toCode: () => ({
4008
- runtime: `Schema.isStartingWith(${format(startsWith)})`
4009
- }),
4010
3967
  arbitraryConstraint: {
4011
3968
  patterns: [{
4012
3969
  source: regExp.source,
@@ -4042,9 +3999,6 @@ export function isEndingWith(endsWith, annotations) {
4042
3999
  }
4043
4000
  },
4044
4001
  toJsonSchema: () => literalToJsonSchema(jsonSchemaLiteral, endsWith, `${RegExp_.escape(jsonSchemaLiteral)}$`),
4045
- toCode: () => ({
4046
- runtime: `Schema.isEndingWith(${format(endsWith)})`
4047
- }),
4048
4002
  arbitraryConstraint: {
4049
4003
  patterns: [{
4050
4004
  source: regExp.source,
@@ -4081,9 +4035,6 @@ export function isIncluding(includes, annotations) {
4081
4035
  }
4082
4036
  },
4083
4037
  toJsonSchema: () => literalToJsonSchema(jsonSchemaLiteral, includes, RegExp_.escape(jsonSchemaLiteral)),
4084
- toCode: () => ({
4085
- runtime: `Schema.isIncluding(${format(includes)})`
4086
- }),
4087
4038
  arbitraryConstraint: {
4088
4039
  patterns: [{
4089
4040
  source: regExp.source,
@@ -4118,9 +4069,6 @@ export function isUppercased(annotations) {
4118
4069
  toJsonSchema: () => [{
4119
4070
  pattern: regExp.source
4120
4071
  }, true],
4121
- toCode: () => ({
4122
- runtime: "Schema.isUppercased()"
4123
- }),
4124
4072
  arbitraryConstraint: {
4125
4073
  patterns: [{
4126
4074
  source: UPPERCASED_PATTERN,
@@ -4155,9 +4103,6 @@ export function isLowercased(annotations) {
4155
4103
  toJsonSchema: () => [{
4156
4104
  pattern: regExp.source
4157
4105
  }, true],
4158
- toCode: () => ({
4159
- runtime: "Schema.isLowercased()"
4160
- }),
4161
4106
  arbitraryConstraint: {
4162
4107
  patterns: [{
4163
4108
  source: LOWERCASED_PATTERN,
@@ -4194,9 +4139,6 @@ export function isCapitalized(annotations) {
4194
4139
  toJsonSchema: () => [{
4195
4140
  pattern: CAPITALIZED_PATTERN
4196
4141
  }, true],
4197
- toCode: () => ({
4198
- runtime: "Schema.isCapitalized()"
4199
- }),
4200
4142
  arbitraryConstraint: {
4201
4143
  patterns: [{
4202
4144
  source: CAPITALIZED_PATTERN,
@@ -4233,9 +4175,6 @@ export function isUncapitalized(annotations) {
4233
4175
  toJsonSchema: () => [{
4234
4176
  pattern: UNCAPITALIZED_PATTERN
4235
4177
  }, true],
4236
- toCode: () => ({
4237
- runtime: "Schema.isUncapitalized()"
4238
- }),
4239
4178
  arbitraryConstraint: {
4240
4179
  patterns: [{
4241
4180
  source: UNCAPITALIZED_PATTERN,
@@ -4455,9 +4394,6 @@ export const isGreaterThan = /*#__PURE__*/makeIsGreaterThan({
4455
4394
  },
4456
4395
  toJsonSchema: () => ({
4457
4396
  exclusiveMinimum
4458
- }),
4459
- toCode: () => ({
4460
- runtime: `Schema.isGreaterThan(${format(exclusiveMinimum)})`
4461
4397
  })
4462
4398
  })
4463
4399
  });
@@ -4491,9 +4427,6 @@ export const isGreaterThanOrEqualTo = /*#__PURE__*/makeIsGreaterThanOrEqualTo({
4491
4427
  },
4492
4428
  toJsonSchema: () => ({
4493
4429
  minimum
4494
- }),
4495
- toCode: () => ({
4496
- runtime: `Schema.isGreaterThanOrEqualTo(${format(minimum)})`
4497
4430
  })
4498
4431
  })
4499
4432
  });
@@ -4527,9 +4460,6 @@ export const isLessThan = /*#__PURE__*/makeIsLessThan({
4527
4460
  },
4528
4461
  toJsonSchema: () => ({
4529
4462
  exclusiveMaximum
4530
- }),
4531
- toCode: () => ({
4532
- runtime: `Schema.isLessThan(${format(exclusiveMaximum)})`
4533
4463
  })
4534
4464
  })
4535
4465
  });
@@ -4563,9 +4493,6 @@ export const isLessThanOrEqualTo = /*#__PURE__*/makeIsLessThanOrEqualTo({
4563
4493
  },
4564
4494
  toJsonSchema: () => ({
4565
4495
  maximum
4566
- }),
4567
- toCode: () => ({
4568
- runtime: `Schema.isLessThanOrEqualTo(${format(maximum)})`
4569
4496
  })
4570
4497
  })
4571
4498
  });
@@ -4614,9 +4541,6 @@ export const isBetween = /*#__PURE__*/makeIsBetween({
4614
4541
  toJsonSchema: () => ({
4615
4542
  [exclusiveMinimum ? "exclusiveMinimum" : "minimum"]: options.minimum,
4616
4543
  [exclusiveMaximum ? "exclusiveMaximum" : "maximum"]: options.maximum
4617
- }),
4618
- toCode: () => ({
4619
- runtime: `Schema.isBetween({ minimum: ${format(options.minimum)}, maximum: ${format(options.maximum)}, exclusiveMinimum: ${format(exclusiveMinimum)}, exclusiveMaximum: ${format(exclusiveMaximum)} })`
4620
4544
  })
4621
4545
  };
4622
4546
  }
@@ -4656,9 +4580,6 @@ export function isMultipleOf(divisor, annotations) {
4656
4580
  toJsonSchema: () => ({
4657
4581
  multipleOf: divisor
4658
4582
  }),
4659
- toCode: () => ({
4660
- runtime: `Schema.isMultipleOf(${format(divisor)})`
4661
- }),
4662
4583
  ...annotations
4663
4584
  });
4664
4585
  }
@@ -4693,9 +4614,6 @@ export function isInt(annotations) {
4693
4614
  minimum: globalThis.Number.MIN_SAFE_INTEGER,
4694
4615
  maximum: globalThis.Number.MAX_SAFE_INTEGER
4695
4616
  }),
4696
- toCode: () => ({
4697
- runtime: "Schema.isInt()"
4698
- }),
4699
4617
  arbitraryConstraint: {
4700
4618
  number: "integer"
4701
4619
  },
@@ -4788,9 +4706,6 @@ function encodeDatePayload(date) {
4788
4706
  }
4789
4707
  return date.toISOString();
4790
4708
  }
4791
- function formatDateRuntime(date) {
4792
- return `new globalThis.Date(${format(date.getTime())})`;
4793
- }
4794
4709
  /**
4795
4710
  * Validates that a Date is greater than the specified value (exclusive).
4796
4711
  *
@@ -4815,10 +4730,7 @@ export const isGreaterThanDate = /*#__PURE__*/makeIsGreaterThan({
4815
4730
  exclusiveMinimum: encoded
4816
4731
  }
4817
4732
  },
4818
- toJsonSchema: () => [{}, true],
4819
- toCode: () => ({
4820
- runtime: `Schema.isGreaterThanDate(${formatDateRuntime(exclusiveMinimum)})`
4821
- })
4733
+ toJsonSchema: () => [{}, true]
4822
4734
  };
4823
4735
  }
4824
4736
  });
@@ -4852,10 +4764,7 @@ export const isGreaterThanOrEqualToDate = /*#__PURE__*/makeIsGreaterThanOrEqualT
4852
4764
  minimum: encoded
4853
4765
  }
4854
4766
  },
4855
- toJsonSchema: () => [{}, true],
4856
- toCode: () => ({
4857
- runtime: `Schema.isGreaterThanOrEqualToDate(${formatDateRuntime(minimum)})`
4858
- })
4767
+ toJsonSchema: () => [{}, true]
4859
4768
  };
4860
4769
  }
4861
4770
  });
@@ -4883,10 +4792,7 @@ export const isLessThanDate = /*#__PURE__*/makeIsLessThan({
4883
4792
  exclusiveMaximum: encoded
4884
4793
  }
4885
4794
  },
4886
- toJsonSchema: () => [{}, true],
4887
- toCode: () => ({
4888
- runtime: `Schema.isLessThanDate(${formatDateRuntime(exclusiveMaximum)})`
4889
- })
4795
+ toJsonSchema: () => [{}, true]
4890
4796
  };
4891
4797
  }
4892
4798
  });
@@ -4920,10 +4826,7 @@ export const isLessThanOrEqualToDate = /*#__PURE__*/makeIsLessThanOrEqualTo({
4920
4826
  maximum: encoded
4921
4827
  }
4922
4828
  },
4923
- toJsonSchema: () => [{}, true],
4924
- toCode: () => ({
4925
- runtime: `Schema.isLessThanOrEqualToDate(${formatDateRuntime(maximum)})`
4926
- })
4829
+ toJsonSchema: () => [{}, true]
4927
4830
  };
4928
4831
  }
4929
4832
  });
@@ -4966,10 +4869,7 @@ export const isBetweenDate = /*#__PURE__*/makeIsBetween({
4966
4869
  id: "effect/schema/isBetweenDate",
4967
4870
  payload
4968
4871
  },
4969
- toJsonSchema: () => [{}, true],
4970
- toCode: () => ({
4971
- runtime: `Schema.isBetweenDate({ minimum: ${formatDateRuntime(options.minimum)}, maximum: ${formatDateRuntime(options.maximum)}, exclusiveMinimum: ${format(exclusiveMinimum)}, exclusiveMaximum: ${format(exclusiveMaximum)} })`
4972
- })
4872
+ toJsonSchema: () => [{}, true]
4973
4873
  };
4974
4874
  }
4975
4875
  });
@@ -4997,10 +4897,7 @@ export const isGreaterThanBigInt = /*#__PURE__*/makeIsGreaterThan({
4997
4897
  exclusiveMinimum: encoded
4998
4898
  }
4999
4899
  },
5000
- toJsonSchema: () => [{}, true],
5001
- toCode: () => ({
5002
- runtime: `Schema.isGreaterThanBigInt(${format(exclusiveMinimum)})`
5003
- })
4900
+ toJsonSchema: () => [{}, true]
5004
4901
  };
5005
4902
  }
5006
4903
  });
@@ -5029,10 +4926,7 @@ export const isGreaterThanOrEqualToBigInt = /*#__PURE__*/makeIsGreaterThanOrEqua
5029
4926
  minimum: encoded
5030
4927
  }
5031
4928
  },
5032
- toJsonSchema: () => [{}, true],
5033
- toCode: () => ({
5034
- runtime: `Schema.isGreaterThanOrEqualToBigInt(${format(minimum)})`
5035
- })
4929
+ toJsonSchema: () => [{}, true]
5036
4930
  };
5037
4931
  }
5038
4932
  });
@@ -5060,10 +4954,7 @@ export const isLessThanBigInt = /*#__PURE__*/makeIsLessThan({
5060
4954
  exclusiveMaximum: encoded
5061
4955
  }
5062
4956
  },
5063
- toJsonSchema: () => [{}, true],
5064
- toCode: () => ({
5065
- runtime: `Schema.isLessThanBigInt(${format(exclusiveMaximum)})`
5066
- })
4957
+ toJsonSchema: () => [{}, true]
5067
4958
  };
5068
4959
  }
5069
4960
  });
@@ -5092,10 +4983,7 @@ export const isLessThanOrEqualToBigInt = /*#__PURE__*/makeIsLessThanOrEqualTo({
5092
4983
  maximum: encoded
5093
4984
  }
5094
4985
  },
5095
- toJsonSchema: () => [{}, true],
5096
- toCode: () => ({
5097
- runtime: `Schema.isLessThanOrEqualToBigInt(${format(maximum)})`
5098
- })
4986
+ toJsonSchema: () => [{}, true]
5099
4987
  };
5100
4988
  }
5101
4989
  });
@@ -5133,10 +5021,7 @@ export const isBetweenBigInt = /*#__PURE__*/makeIsBetween({
5133
5021
  id: "effect/schema/isBetweenBigInt",
5134
5022
  payload
5135
5023
  },
5136
- toJsonSchema: () => [{}, true],
5137
- toCode: () => ({
5138
- runtime: `Schema.isBetweenBigInt({ minimum: ${format(options.minimum)}, maximum: ${format(options.maximum)}, exclusiveMinimum: ${format(exclusiveMinimum)}, exclusiveMaximum: ${format(exclusiveMaximum)} })`
5139
- })
5024
+ toJsonSchema: () => [{}, true]
5140
5025
  };
5141
5026
  }
5142
5027
  });
@@ -5200,9 +5085,6 @@ function makeIsMinLength(minLength, minCodePoints, annotations) {
5200
5085
  minLength: minCodePoints,
5201
5086
  minItems: minLength
5202
5087
  }, true] : [{}, true],
5203
- toCode: () => ({
5204
- runtime: `Schema.isMinLength(${minLength})`
5205
- }),
5206
5088
  [InternalAnnotations.STRUCTURAL_ANNOTATION_KEY]: true,
5207
5089
  arbitraryConstraint: {
5208
5090
  minLength
@@ -5278,9 +5160,6 @@ export function isMaxLength(maxLength, annotations) {
5278
5160
  maxLength,
5279
5161
  maxItems: maxLength
5280
5162
  }, true] : [{}, true],
5281
- toCode: () => ({
5282
- runtime: `Schema.isMaxLength(${maxLength})`
5283
- }),
5284
5163
  [InternalAnnotations.STRUCTURAL_ANNOTATION_KEY]: true,
5285
5164
  arbitraryConstraint: {
5286
5165
  maxLength
@@ -5341,9 +5220,6 @@ export function isBetweenLength(minimum, maximum, annotations) {
5341
5220
  minItems: minimum,
5342
5221
  maxItems: maximum
5343
5222
  }, true] : [{}, true],
5344
- toCode: () => ({
5345
- runtime: `Schema.isBetweenLength(${minimum}, ${maximum})`
5346
- }),
5347
5223
  [InternalAnnotations.STRUCTURAL_ANNOTATION_KEY]: true,
5348
5224
  arbitraryConstraint: {
5349
5225
  minLength: minimum,
@@ -5387,9 +5263,6 @@ export function isMinCodePoints(minCodePoints, annotations) {
5387
5263
  toJsonSchema: () => ({
5388
5264
  minLength: minCodePoints
5389
5265
  }),
5390
- toCode: () => ({
5391
- runtime: `Schema.isMinCodePoints(${minCodePoints})`
5392
- }),
5393
5266
  arbitraryConstraint: {
5394
5267
  minCodePoints
5395
5268
  },
@@ -5431,9 +5304,6 @@ export function isMaxCodePoints(maxCodePoints, annotations) {
5431
5304
  toJsonSchema: () => ({
5432
5305
  maxLength: maxCodePoints
5433
5306
  }),
5434
- toCode: () => ({
5435
- runtime: `Schema.isMaxCodePoints(${maxCodePoints})`
5436
- }),
5437
5307
  arbitraryConstraint: {
5438
5308
  maxCodePoints
5439
5309
  },
@@ -5484,9 +5354,6 @@ export function isBetweenCodePoints(minimum, maximum, annotations) {
5484
5354
  maxLength: maximum
5485
5355
  }]
5486
5356
  }),
5487
- toCode: () => ({
5488
- runtime: `Schema.isBetweenCodePoints(${minimum}, ${maximum})`
5489
- }),
5490
5357
  arbitraryConstraint: {
5491
5358
  minCodePoints: minimum,
5492
5359
  maxCodePoints: maximum
@@ -5540,9 +5407,6 @@ export function isMinSize(minSize, annotations) {
5540
5407
  }
5541
5408
  },
5542
5409
  toJsonSchema: () => [{}, true],
5543
- toCode: () => ({
5544
- runtime: `Schema.isMinSize(${minSize})`
5545
- }),
5546
5410
  [InternalAnnotations.STRUCTURAL_ANNOTATION_KEY]: true,
5547
5411
  arbitraryConstraint: {
5548
5412
  minSize
@@ -5582,9 +5446,6 @@ export function isMaxSize(maxSize, annotations) {
5582
5446
  }
5583
5447
  },
5584
5448
  toJsonSchema: () => [{}, true],
5585
- toCode: () => ({
5586
- runtime: `Schema.isMaxSize(${maxSize})`
5587
- }),
5588
5449
  [InternalAnnotations.STRUCTURAL_ANNOTATION_KEY]: true,
5589
5450
  arbitraryConstraint: {
5590
5451
  maxSize
@@ -5626,9 +5487,6 @@ export function isBetweenSize(minimum, maximum, annotations) {
5626
5487
  }
5627
5488
  },
5628
5489
  toJsonSchema: () => [{}, true],
5629
- toCode: () => ({
5630
- runtime: `Schema.isBetweenSize(${minimum}, ${maximum})`
5631
- }),
5632
5490
  [InternalAnnotations.STRUCTURAL_ANNOTATION_KEY]: true,
5633
5491
  arbitraryConstraint: {
5634
5492
  minSize: minimum,
@@ -5677,9 +5535,6 @@ export function isMinProperties(minProperties, annotations) {
5677
5535
  } : [{
5678
5536
  minProperties
5679
5537
  }, true],
5680
- toCode: () => ({
5681
- runtime: `Schema.isMinProperties(${minProperties})`
5682
- }),
5683
5538
  [InternalAnnotations.STRUCTURAL_ANNOTATION_KEY]: true,
5684
5539
  arbitraryConstraint: {
5685
5540
  minProperties
@@ -5727,9 +5582,6 @@ export function isMaxProperties(maxProperties, annotations) {
5727
5582
  } : [{
5728
5583
  maxProperties
5729
5584
  }, true],
5730
- toCode: () => ({
5731
- runtime: `Schema.isMaxProperties(${maxProperties})`
5732
- }),
5733
5585
  [InternalAnnotations.STRUCTURAL_ANNOTATION_KEY]: true,
5734
5586
  arbitraryConstraint: {
5735
5587
  maxProperties
@@ -5784,9 +5636,6 @@ export function isBetweenProperties(minimum, maximum, annotations) {
5784
5636
  minProperties: minimum,
5785
5637
  maxProperties: maximum
5786
5638
  }, true],
5787
- toCode: () => ({
5788
- runtime: `Schema.isBetweenProperties(${minimum}, ${maximum})`
5789
- }),
5790
5639
  [InternalAnnotations.STRUCTURAL_ANNOTATION_KEY]: true,
5791
5640
  arbitraryConstraint: {
5792
5641
  minProperties: minimum,
@@ -5846,11 +5695,6 @@ export function isPropertyNames(keySchema, annotations) {
5846
5695
  } : [{
5847
5696
  propertyNames: schemas[0]
5848
5697
  }, true],
5849
- toCode: ({
5850
- schemas
5851
- }) => ({
5852
- runtime: `Schema.isPropertyNames(${schemas[0].runtime})`
5853
- }),
5854
5698
  [InternalAnnotations.STRUCTURAL_ANNOTATION_KEY]: true,
5855
5699
  ...annotations
5856
5700
  });
@@ -5881,9 +5725,6 @@ export function isUnique(annotations) {
5881
5725
  toJsonSchema: () => ({
5882
5726
  uniqueItems: true
5883
5727
  }),
5884
- toCode: () => ({
5885
- runtime: "Schema.isUnique()"
5886
- }),
5887
5728
  arbitraryConstraint: {
5888
5729
  uniqueBy: identity
5889
5730
  },
@@ -5913,9 +5754,6 @@ export function isUniqueKey(annotations) {
5913
5754
  id: "effect/schema/isUniqueKey",
5914
5755
  payload: null
5915
5756
  },
5916
- toCode: () => ({
5917
- runtime: "Schema.isUniqueKey()"
5918
- }),
5919
5757
  arbitraryConstraint: {
5920
5758
  uniqueBy: entry => entry[0]
5921
5759
  },
@@ -6001,10 +5839,6 @@ export function ErrorInstance(options) {
6001
5839
  id: "effect/schema/Error",
6002
5840
  payload: normalizedOptions ?? null
6003
5841
  },
6004
- toCode: () => ({
6005
- runtime: normalizedOptions !== undefined ? `Schema.ErrorInstance(${format(normalizedOptions)})` : `Schema.ErrorInstance()`,
6006
- Type: `globalThis.Error`
6007
- }),
6008
5842
  expected: "Error",
6009
5843
  toCodecJson: () => link()(JsonError, SchemaTransformation.errorFromJsonError(normalizedOptions))
6010
5844
  });
@@ -6089,12 +5923,6 @@ export function ReadonlyMap(key, value) {
6089
5923
  id: "effect/schema/ReadonlyMap",
6090
5924
  payload: null
6091
5925
  },
6092
- toCode: ({
6093
- typeParameters
6094
- }) => ({
6095
- runtime: `Schema.ReadonlyMap(${typeParameters[0].runtime}, ${typeParameters[1].runtime})`,
6096
- Type: `globalThis.ReadonlyMap<${typeParameters[0].Type}, ${typeParameters[1].Type}>`
6097
- }),
6098
5926
  expected: "ReadonlyMap",
6099
5927
  toCodec: ([key, value]) => link()(ArraySchema(Tuple([key, value])), SchemaTransformation.transform({
6100
5928
  decode: entries => new globalThis.Map(entries),
@@ -6130,12 +5958,6 @@ export function ReadonlySet(value) {
6130
5958
  id: "effect/schema/ReadonlySet",
6131
5959
  payload: null
6132
5960
  },
6133
- toCode: ({
6134
- typeParameters
6135
- }) => ({
6136
- runtime: `Schema.ReadonlySet(${typeParameters[0].runtime})`,
6137
- Type: `globalThis.ReadonlySet<${typeParameters[0].Type}>`
6138
- }),
6139
5961
  expected: "ReadonlySet",
6140
5962
  toCodec: ([value]) => link()(ArraySchema(value), SchemaTransformation.transform({
6141
5963
  decode: values => new globalThis.Set(values),
@@ -6162,10 +5984,6 @@ export const RegExp = /*#__PURE__*/instanceOf(globalThis.RegExp, {
6162
5984
  id: "effect/schema/RegExp",
6163
5985
  payload: null
6164
5986
  },
6165
- toCode: () => ({
6166
- runtime: `Schema.RegExp`,
6167
- Type: `globalThis.RegExp`
6168
- }),
6169
5987
  expected: "RegExp",
6170
5988
  toCodecJson: () => link()(Struct({
6171
5989
  source: String,
@@ -6204,10 +6022,6 @@ export const URL = /*#__PURE__*/instanceOf(globalThis.URL, {
6204
6022
  id: "effect/schema/URL",
6205
6023
  payload: null
6206
6024
  },
6207
- toCode: () => ({
6208
- runtime: `Schema.URL`,
6209
- Type: `globalThis.URL`
6210
- }),
6211
6025
  expected: "URL",
6212
6026
  toCodecJson: () => link()(URLString, SchemaTransformation.urlFromString)
6213
6027
  });
@@ -6264,10 +6078,6 @@ export const Date = /*#__PURE__*/declare(input => input instanceof globalThis.Da
6264
6078
  id: "effect/schema/Date",
6265
6079
  payload: null
6266
6080
  },
6267
- toCode: () => ({
6268
- runtime: `Schema.Date`,
6269
- Type: `globalThis.Date`
6270
- }),
6271
6081
  expected: "a valid Date",
6272
6082
  toCodecJson: () => link()(DateString, SchemaTransformation.dateFromString)
6273
6083
  });
@@ -6383,10 +6193,6 @@ export const File = /*#__PURE__*/instanceOf(globalThis.File, {
6383
6193
  id: "effect/schema/File",
6384
6194
  payload: null
6385
6195
  },
6386
- toCode: () => ({
6387
- runtime: `Schema.File`,
6388
- Type: `globalThis.File`
6389
- }),
6390
6196
  expected: "File",
6391
6197
  toCodecJson: () => link()(Struct({
6392
6198
  data: String.check(isBase64()),
@@ -6441,10 +6247,6 @@ export const FormData = /*#__PURE__*/declare(u => u instanceof globalThis.FormDa
6441
6247
  id: "effect/schema/FormData",
6442
6248
  payload: null
6443
6249
  },
6444
- toCode: () => ({
6445
- runtime: `Schema.FormData`,
6446
- Type: `globalThis.FormData`
6447
- }),
6448
6250
  expected: "FormData",
6449
6251
  toCodecJson: () => link()(ArraySchema(Tuple([String, Union([Struct({
6450
6252
  _tag: tag("String"),
@@ -6579,10 +6381,6 @@ export const URLSearchParams = /*#__PURE__*/instanceOf(globalThis.URLSearchParam
6579
6381
  id: "effect/schema/URLSearchParams",
6580
6382
  payload: null
6581
6383
  },
6582
- toCode: () => ({
6583
- runtime: `Schema.URLSearchParams`,
6584
- Type: `globalThis.URLSearchParams`
6585
- }),
6586
6384
  expected: "URLSearchParams",
6587
6385
  toCodecJson: () => link()(String.annotate({
6588
6386
  expected: "a query string that will be decoded as URLSearchParams"
@@ -6938,10 +6736,6 @@ export const Uint8Array = /*#__PURE__*/instanceOf(globalThis.Uint8Array, {
6938
6736
  id: "effect/schema/Uint8Array",
6939
6737
  payload: null
6940
6738
  },
6941
- toCode: () => ({
6942
- runtime: `Schema.Uint8Array`,
6943
- Type: `globalThis.Uint8Array`
6944
- }),
6945
6739
  expected: "Uint8Array",
6946
6740
  toCodecJson: () => link()(Base64String, SchemaTransformation.uint8ArrayFromBase64String)
6947
6741
  });
@@ -7108,11 +6902,6 @@ export const BigDecimal = /*#__PURE__*/declare(BigDecimal_.isBigDecimal, {
7108
6902
  id: "effect/schema/BigDecimal",
7109
6903
  payload: null
7110
6904
  },
7111
- toCode: () => ({
7112
- runtime: `Schema.BigDecimal`,
7113
- Type: `BigDecimal.BigDecimal`,
7114
- importDeclarations: [`import * as BigDecimal from "effect/BigDecimal"`]
7115
- }),
7116
6905
  expected: "BigDecimal",
7117
6906
  toCodecJson: () => link()(BigDecimalString, bigDecimalFromString),
7118
6907
  toFormatter: () => bd => BigDecimal_.format(bd)
@@ -7181,11 +6970,6 @@ export const Rational = /*#__PURE__*/declare(Rational_.isRational, {
7181
6970
  id: "effect/schema/Rational",
7182
6971
  payload: null
7183
6972
  },
7184
- toCode: () => ({
7185
- runtime: `Schema.Rational`,
7186
- Type: `Rational.Rational`,
7187
- importDeclarations: [`import * as Rational from "effect/Rational"`]
7188
- }),
7189
6973
  expected: "Rational",
7190
6974
  toCodecArbitrary: () => linkDecoding()(Struct({
7191
6975
  numerator: BigInt,
@@ -7234,11 +7018,6 @@ export const ByteSize = /*#__PURE__*/declare(ByteSize_.isByteSize, {
7234
7018
  id: "effect/schema/ByteSize",
7235
7019
  payload: null
7236
7020
  },
7237
- toCode: () => ({
7238
- runtime: `Schema.ByteSize`,
7239
- Type: `ByteSize.ByteSize`,
7240
- importDeclarations: [`import * as ByteSize from "effect/ByteSize"`]
7241
- }),
7242
7021
  expected: "ByteSize",
7243
7022
  toCodecJson: () => link()(BigInt.check(isGreaterThanOrEqualToBigInt(globalThis.BigInt(0))), SchemaTransformation.transform({
7244
7023
  decode: ByteSize_.bytes,
@@ -7345,13 +7124,6 @@ export function CauseReason(error, defect) {
7345
7124
  id: "effect/schema/CauseReason",
7346
7125
  payload: null
7347
7126
  },
7348
- toCode: ({
7349
- typeParameters
7350
- }) => ({
7351
- runtime: `Schema.CauseReason(${typeParameters[0].runtime}, ${typeParameters[1].runtime})`,
7352
- Type: `Cause.Reason<${typeParameters[0].Type}>`,
7353
- importDeclarations: [`import * as Cause from "effect/Cause"`]
7354
- }),
7355
7127
  expected: "Cause.Failure",
7356
7128
  toCodec: ([error, defect]) => link()(Union([Struct({
7357
7129
  _tag: Literal("Fail"),
@@ -7438,13 +7210,6 @@ export function Cause(error, defect) {
7438
7210
  id: "effect/schema/Cause",
7439
7211
  payload: null
7440
7212
  },
7441
- toCode: ({
7442
- typeParameters
7443
- }) => ({
7444
- runtime: `Schema.Cause(${typeParameters[0].runtime}, ${typeParameters[1].runtime})`,
7445
- Type: `Cause.Cause<${typeParameters[0].Type}>`,
7446
- importDeclarations: [`import * as Cause from "effect/Cause"`]
7447
- }),
7448
7213
  expected: "Cause",
7449
7214
  toCodec: ([error, defect]) => link()(ArraySchema(CauseReason(error, defect)), SchemaTransformation.transform({
7450
7215
  decode: Cause_.fromReasons,
@@ -7491,12 +7256,6 @@ export function Chunk(value) {
7491
7256
  id: "effect/schema/Chunk",
7492
7257
  payload: null
7493
7258
  },
7494
- toCode: ({
7495
- typeParameters
7496
- }) => ({
7497
- runtime: `Schema.Chunk(${typeParameters[0].runtime})`,
7498
- Type: `Chunk.Chunk<${typeParameters[0].Type}>`
7499
- }),
7500
7259
  expected: "Chunk",
7501
7260
  toCodec: ([value]) => chunkLink(ArraySchema(value)),
7502
7261
  toCodecArbitrary: ({
@@ -7618,11 +7377,6 @@ export const DateTimeUtc = /*#__PURE__*/declare(u => DateTime.isDateTime(u) && D
7618
7377
  id: "effect/schema/DateTimeUtc",
7619
7378
  payload: null
7620
7379
  },
7621
- toCode: () => ({
7622
- runtime: `Schema.DateTimeUtc`,
7623
- Type: `DateTime.Utc`,
7624
- importDeclarations: [`import * as DateTime from "effect/DateTime"`]
7625
- }),
7626
7380
  expected: "DateTime.Utc",
7627
7381
  toCodecArbitrary: ({
7628
7382
  constraint
@@ -7765,11 +7519,6 @@ export const TimeZoneOffset = /*#__PURE__*/declare(DateTime.isTimeZoneOffset, {
7765
7519
  id: "effect/schema/TimeZoneOffset",
7766
7520
  payload: null
7767
7521
  },
7768
- toCode: () => ({
7769
- runtime: `Schema.TimeZoneOffset`,
7770
- Type: `DateTime.TimeZone.Offset`,
7771
- importDeclarations: [`import * as DateTime from "effect/DateTime"`]
7772
- }),
7773
7522
  expected: "DateTime.TimeZone.Offset",
7774
7523
  toCodecJson: () => link()(Int, timeZoneOffsetFromNumber),
7775
7524
  toFormatter: () => tz => DateTime.zoneToString(tz)
@@ -7795,11 +7544,6 @@ export const TimeZoneNamed = /*#__PURE__*/declare(DateTime.isTimeZoneNamed, {
7795
7544
  id: "effect/schema/TimeZoneNamed",
7796
7545
  payload: null
7797
7546
  },
7798
- toCode: () => ({
7799
- runtime: `Schema.TimeZoneNamed`,
7800
- Type: `DateTime.TimeZone.Named`,
7801
- importDeclarations: [`import * as DateTime from "effect/DateTime"`]
7802
- }),
7803
7547
  expected: "DateTime.TimeZone.Named",
7804
7548
  toCodecArbitrary: () => linkDecoding()(Literals(arbitraryNamedTimeZones), SchemaGetter.transform(DateTime.zoneMakeNamedUnsafe)),
7805
7549
  toCodecJson: () => link()(TimeZoneNamedString, timeZoneNamedFromString),
@@ -7843,11 +7587,6 @@ export const TimeZone = /*#__PURE__*/declare(DateTime.isTimeZone, {
7843
7587
  id: "effect/schema/TimeZone",
7844
7588
  payload: null
7845
7589
  },
7846
- toCode: () => ({
7847
- runtime: `Schema.TimeZone`,
7848
- Type: `DateTime.TimeZone`,
7849
- importDeclarations: [`import * as DateTime from "effect/DateTime"`]
7850
- }),
7851
7590
  expected: "DateTime.TimeZone",
7852
7591
  toCodecArbitrary: () => linkDecoding()(timeZoneArbitrarySchema(), SchemaGetter.transform(value => typeof value === "number" ? DateTime.zoneMakeOffset(value) : DateTime.zoneMakeNamedUnsafe(value))),
7853
7592
  toCodecJson: () => link()(TimeZoneString, timeZoneFromString),
@@ -7893,11 +7632,6 @@ export const DateTimeZoned = /*#__PURE__*/declare(u => DateTime.isDateTime(u) &&
7893
7632
  id: "effect/schema/DateTimeZoned",
7894
7633
  payload: null
7895
7634
  },
7896
- toCode: () => ({
7897
- runtime: `Schema.DateTimeZoned`,
7898
- Type: `DateTime.Zoned`,
7899
- importDeclarations: [`import * as DateTime from "effect/DateTime"`]
7900
- }),
7901
7635
  expected: "DateTime.Zoned",
7902
7636
  toCodecArbitrary: ({
7903
7637
  constraint
@@ -8591,11 +8325,6 @@ export const Duration = /*#__PURE__*/declare(Duration_.isDuration, {
8591
8325
  id: "effect/schema/Duration",
8592
8326
  payload: null
8593
8327
  },
8594
- toCode: () => ({
8595
- runtime: `Schema.Duration`,
8596
- Type: `Duration.Duration`,
8597
- importDeclarations: [`import * as Duration from "effect/Duration"`]
8598
- }),
8599
8328
  expected: "Duration",
8600
8329
  toCodecJson: () => link()(Union([Struct({
8601
8330
  _tag: Literal("Infinity")
@@ -8958,16 +8687,6 @@ export const DnsRecord = /*#__PURE__*/Union([DnsARecord, DnsAaaaRecord, DnsCaaRe
8958
8687
  identifier: "DnsRecord"
8959
8688
  });
8960
8689
  const cryptoAlgorithmEquals = (self, that) => self === that || self.name === that.name && self.hash?.name === that.hash?.name && self.saltLength === that.saltLength;
8961
- const cryptoDigestCode = hash => `Digest.${hash.name.toLowerCase().replace("-", "")}`;
8962
- const cryptoAlgorithmCode = (family, algorithm) => {
8963
- if (algorithm.modulusLength === undefined || algorithm.hash === undefined || algorithm._tag === undefined) {
8964
- const code = `${family}.${algorithm.name}`;
8965
- return algorithm.hash === undefined ? code : `{ ...${code}, hash: ${cryptoDigestCode(algorithm.hash)} }`;
8966
- }
8967
- const factory = algorithm._tag.charAt(0).toLowerCase() + algorithm._tag.slice(1);
8968
- const saltLength = algorithm.saltLength === undefined ? "" : `, saltLength: ${algorithm.saltLength}`;
8969
- return `${family}.${factory}({ hash: ${cryptoDigestCode(algorithm.hash)}, modulusLength: ${algorithm.modulusLength}${saltLength} })`;
8970
- };
8971
8690
  const cryptoAlgorithmPayload = algorithm => {
8972
8691
  const payload = {
8973
8692
  name: algorithm.name
@@ -8978,7 +8697,6 @@ const cryptoAlgorithmPayload = algorithm => {
8978
8697
  return payload;
8979
8698
  };
8980
8699
  const declareCryptoKey = (name, family, type, is, algorithm) => {
8981
- const code = cryptoAlgorithmCode(family, algorithm);
8982
8700
  const forbidden = SchemaGetter.forbidden(() => `Cannot serialize ${family}.${type} values as JSON, use Schema.${name}FromFormat to read and write keys`);
8983
8701
  return declare(u => is(u) && cryptoAlgorithmEquals(u.algorithm, algorithm), {
8984
8702
  expected: `${family}.${type} for ${algorithm.name}`,
@@ -8986,11 +8704,6 @@ const declareCryptoKey = (name, family, type, is, algorithm) => {
8986
8704
  id: `effect/crypto/${name}`,
8987
8705
  payload: cryptoAlgorithmPayload(algorithm)
8988
8706
  },
8989
- toCode: () => ({
8990
- runtime: `Schema.${name}(${code})`,
8991
- Type: `${family}.${type}`,
8992
- importDeclarations: [`import * as ${family} from "effect/crypto/${family}"`, ...(code.includes("Digest.") ? [`import * as Digest from "effect/crypto/Digest"`] : [])]
8993
- }),
8994
8707
  toCodecJson: () => link()(Unknown, {
8995
8708
  decode: forbidden,
8996
8709
  encode: forbidden
@@ -9557,13 +9270,6 @@ export function Exit(value, error, defect) {
9557
9270
  id: "effect/schema/Exit",
9558
9271
  payload: null
9559
9272
  },
9560
- toCode: ({
9561
- typeParameters
9562
- }) => ({
9563
- runtime: `Schema.Exit(${typeParameters[0].runtime}, ${typeParameters[1].runtime}, ${typeParameters[2].runtime})`,
9564
- Type: `Exit.Exit<${typeParameters[0].Type}, ${typeParameters[1].Type}>`,
9565
- importDeclarations: [`import * as Exit from "effect/Exit"`]
9566
- }),
9567
9273
  expected: "Exit",
9568
9274
  toCodec: ([value, error, defect]) => link()(Union([Struct({
9569
9275
  _tag: Literal("Success"),
@@ -9703,13 +9409,6 @@ export function Graph(type, node, edge) {
9703
9409
  id: "effect/schema/Graph",
9704
9410
  payload: type
9705
9411
  },
9706
- toCode: ({
9707
- typeParameters
9708
- }) => ({
9709
- runtime: `Schema.Graph(${format(type)}, ${typeParameters[0].runtime}, ${typeParameters[1].runtime})`,
9710
- Type: `Graph.Graph<${typeParameters[0].Type}, ${typeParameters[1].Type}, ${format(type)}>`,
9711
- importDeclarations: [`import * as Graph from "effect/Graph"`]
9712
- }),
9713
9412
  expected: `an immutable ${type} Graph`,
9714
9413
  toCodec: ([node, edge]) => link()(graphEncodedSchema(type, node, edge), SchemaTransformation.transformEffect({
9715
9414
  decode: graphDecode,
@@ -9759,13 +9458,6 @@ export function HashMap(key, value) {
9759
9458
  id: "effect/schema/HashMap",
9760
9459
  payload: null
9761
9460
  },
9762
- toCode: ({
9763
- typeParameters
9764
- }) => ({
9765
- runtime: `Schema.HashMap(${typeParameters[0].runtime}, ${typeParameters[1].runtime})`,
9766
- Type: `HashMap.HashMap<${typeParameters[0].Type}, ${typeParameters[1].Type}>`,
9767
- importDeclarations: [`import * as HashMap from "effect/HashMap"`]
9768
- }),
9769
9461
  expected: "HashMap",
9770
9462
  toCodec: ([key, value]) => hashMapLink(ArraySchema(Tuple([key, value]))),
9771
9463
  toCodecArbitrary: ({
@@ -9812,12 +9504,6 @@ export function HashSet(value) {
9812
9504
  id: "effect/schema/HashSet",
9813
9505
  payload: null
9814
9506
  },
9815
- toCode: ({
9816
- typeParameters
9817
- }) => ({
9818
- runtime: `Schema.HashSet(${typeParameters[0].runtime})`,
9819
- Type: `HashSet.HashSet<${typeParameters[0].Type}>`
9820
- }),
9821
9507
  expected: "HashSet",
9822
9508
  toCodec: ([value]) => hashSetLink(ArraySchema(value)),
9823
9509
  toCodecArbitrary: ({
@@ -9854,13 +9540,6 @@ export function Option(value) {
9854
9540
  id: "effect/schema/Option",
9855
9541
  payload: null
9856
9542
  },
9857
- toCode: ({
9858
- typeParameters
9859
- }) => ({
9860
- runtime: `Schema.Option(${typeParameters[0].runtime})`,
9861
- Type: `Option.Option<${typeParameters[0].Type}>`,
9862
- importDeclarations: [`import * as Option from "effect/Option"`]
9863
- }),
9864
9543
  expected: "Option",
9865
9544
  toCodec: ([value]) => link()(Union([Struct({
9866
9545
  _tag: Literal("Some"),
@@ -9941,11 +9620,6 @@ export const Cookie = /*#__PURE__*/declare(Cookies_.isCookie, {
9941
9620
  id: "effect/http/Cookie",
9942
9621
  payload: null
9943
9622
  },
9944
- toCode: () => ({
9945
- runtime: "Schema.Cookie",
9946
- Type: "Cookies.Cookie",
9947
- importDeclarations: [`import * as Cookies from "effect/http/Cookies"`]
9948
- }),
9949
9623
  expected: "Cookie"
9950
9624
  });
9951
9625
  /**
@@ -9965,11 +9639,6 @@ export const Cookies = /*#__PURE__*/declare(Cookies_.isCookies, {
9965
9639
  id: "effect/http/Cookies",
9966
9640
  payload: null
9967
9641
  },
9968
- toCode: () => ({
9969
- runtime: "Schema.Cookies",
9970
- Type: "Cookies.Cookies",
9971
- importDeclarations: [`import * as Cookies from "effect/http/Cookies"`]
9972
- }),
9973
9642
  expected: "Cookies",
9974
9643
  toCodecJson: () => link()(ArraySchema(String), SchemaTransformation.transform({
9975
9644
  decode: Cookies_.fromSetCookie,
@@ -10008,11 +9677,6 @@ export const Headers = /*#__PURE__*/declare(Headers_.isHeaders, {
10008
9677
  id: "effect/http/Headers",
10009
9678
  payload: null
10010
9679
  },
10011
- toCode: () => ({
10012
- runtime: "Schema.Headers",
10013
- Type: "Headers.Headers",
10014
- importDeclarations: [`import * as Headers from "effect/http/Headers"`]
10015
- }),
10016
9680
  expected: "Headers",
10017
9681
  toEquivalence: () => Headers_.Equivalence,
10018
9682
  toCodec: () => link()(Record(String, String), SchemaTransformation.transform({
@@ -10080,6 +9744,42 @@ const retryAfterFromString = /*#__PURE__*/SchemaTransformation.transformEffect({
10080
9744
  export const RetryAfterFromString = /*#__PURE__*/String.annotate({
10081
9745
  expected: "a Retry-After header value"
10082
9746
  }).pipe(/*#__PURE__*/decodeTo(RetryAfter, retryAfterFromString));
9747
+ /**
9748
+ * Schema for `Link` header values (RFC 8288), decoded with
9749
+ * `Headers.parseLink` and encoded with `Headers.formatLink`.
9750
+ *
9751
+ * **When to use**
9752
+ *
9753
+ * Use with `HttpClientResponse.schemaHeaders` or HTTP API header schemas
9754
+ * that carry a `Link` header.
9755
+ *
9756
+ * **Details**
9757
+ *
9758
+ * Decoding never fails on a string, because `Headers.parseLink` is lenient.
9759
+ *
9760
+ * **Example** (Decoding a Link header)
9761
+ *
9762
+ * ```ts
9763
+ * import { Schema } from "effect"
9764
+ *
9765
+ * const links = Schema.decodeSync(Schema.LinkHeaderFromString)('</items?page=2>; rel="next"')
9766
+ * // => [{ target: "/items?page=2", rel: ["next"], params: {} }]
9767
+ * ```
9768
+ *
9769
+ * @stability unstable
9770
+ * @category schemas
9771
+ * @since 4.1.6
9772
+ */
9773
+ export const LinkHeaderFromString = /*#__PURE__*/String.annotate({
9774
+ expected: "a Link header value"
9775
+ }).pipe(/*#__PURE__*/decodeTo(/*#__PURE__*/ArraySchema(/*#__PURE__*/Struct({
9776
+ target: String,
9777
+ rel: /*#__PURE__*/ArraySchema(String),
9778
+ params: /*#__PURE__*/Record(String, String)
9779
+ })), /*#__PURE__*/SchemaTransformation.transform({
9780
+ decode: Headers_.parseLink,
9781
+ encode: Headers_.formatLink
9782
+ })));
10083
9783
  /**
10084
9784
  * Schema for HTTP URL parameters.
10085
9785
  *
@@ -10096,11 +9796,6 @@ export const UrlParams = /*#__PURE__*/declare(UrlParams_.isUrlParams, {
10096
9796
  id: "effect/http/UrlParams",
10097
9797
  payload: null
10098
9798
  },
10099
- toCode: () => ({
10100
- runtime: "Schema.UrlParams",
10101
- Type: "UrlParams.UrlParams",
10102
- importDeclarations: [`import * as UrlParams from "effect/http/UrlParams"`]
10103
- }),
10104
9799
  expected: "UrlParams",
10105
9800
  toEquivalence: () => UrlParams_.Equivalence,
10106
9801
  toCodec: () => link()(ArraySchema(Tuple([String, String])), SchemaTransformation.transform({
@@ -10285,13 +9980,6 @@ export function Redacted(value, options) {
10285
9980
  id: "effect/schema/Redacted",
10286
9981
  payload: normalizedOptions ?? null
10287
9982
  },
10288
- toCode: ({
10289
- typeParameters
10290
- }) => ({
10291
- runtime: normalizedOptions !== undefined ? `Schema.Redacted(${typeParameters[0].runtime}, ${format(normalizedOptions)})` : `Schema.Redacted(${typeParameters[0].runtime})`,
10292
- Type: `Redacted.Redacted<${typeParameters[0].Type}>`,
10293
- importDeclarations: [`import * as Redacted from "effect/Redacted"`]
10294
- }),
10295
9983
  expected: "Redacted",
10296
9984
  toCodecJson: ([value]) => link()(value, {
10297
9985
  decode: SchemaGetter.transform(e => Redacted_.make(e, {
@@ -10355,13 +10043,6 @@ export function Result(success, failure) {
10355
10043
  id: "effect/schema/Result",
10356
10044
  payload: null
10357
10045
  },
10358
- toCode: ({
10359
- typeParameters
10360
- }) => ({
10361
- runtime: `Schema.Result(${typeParameters[0].runtime}, ${typeParameters[1].runtime})`,
10362
- Type: `Result.Result<${typeParameters[0].Type}, ${typeParameters[1].Type}>`,
10363
- importDeclarations: [`import * as Result from "effect/Result"`]
10364
- }),
10365
10046
  expected: "Result",
10366
10047
  toCodec: ([success, failure]) => link()(Union([Struct({
10367
10048
  _tag: Literal("Success"),
@@ -10423,11 +10104,6 @@ export const SemVer = /*#__PURE__*/declare(SemVer_.isSemVer, {
10423
10104
  id: "effect/schema/SemVer",
10424
10105
  payload: null
10425
10106
  },
10426
- toCode: () => ({
10427
- runtime: `Schema.SemVer`,
10428
- Type: `SemVer.SemVer`,
10429
- importDeclarations: [`import * as SemVer from "effect/SemVer"`]
10430
- }),
10431
10107
  expected: "SemVer",
10432
10108
  toCodecArbitrary: () => linkDecoding()(Struct({
10433
10109
  ...SemVerCoreArbitrary.fields,
@@ -10472,11 +10148,6 @@ export const SemVerRange = /*#__PURE__*/declare(SemVerRange_.isSemVerRange, {
10472
10148
  id: "effect/schema/SemVerRange",
10473
10149
  payload: null
10474
10150
  },
10475
- toCode: () => ({
10476
- runtime: `Schema.SemVerRange`,
10477
- Type: `SemVerRange.SemVerRange`,
10478
- importDeclarations: [`import * as SemVerRange from "effect/SemVerRange"`]
10479
- }),
10480
10151
  expected: "SemVerRange",
10481
10152
  toCodecArbitrary: () => linkDecoding()(ArraySchema(ArraySchema(Struct({
10482
10153
  operator: Literals(["", "=", "<", "<=", ">", ">=", "~", "^"]),
@@ -11310,12 +10981,7 @@ export function Tree(node) {
11310
10981
  * @category schemas
11311
10982
  * @since 4.0.0
11312
10983
  */
11313
- export const Json = /*#__PURE__*/make(/*#__PURE__*/SchemaAST.annotate(SchemaAST.Json, {
11314
- toCode: () => ({
11315
- runtime: "Schema.Json",
11316
- Type: "Schema.Json"
11317
- })
11318
- }));
10984
+ export const Json = /*#__PURE__*/make(SchemaAST.Json);
11319
10985
  /**
11320
10986
  * Schema for readonly string-keyed records whose values are JSON-compatible.
11321
10987
  *
@@ -11352,12 +11018,7 @@ const JsonError = /*#__PURE__*/Struct({
11352
11018
  * @category schemas
11353
11019
  * @since 4.0.0
11354
11020
  */
11355
- export const MutableJson = /*#__PURE__*/make(/*#__PURE__*/SchemaAST.annotate(SchemaAST.MutableJson, {
11356
- toCode: () => ({
11357
- runtime: "Schema.MutableJson",
11358
- Type: "Schema.MutableJson"
11359
- })
11360
- }));
11021
+ export const MutableJson = /*#__PURE__*/make(SchemaAST.MutableJson);
11361
11022
  /**
11362
11023
  * Resolves the typed annotations from a schema. The term "resolve" (rather
11363
11024
  * than "get") reflects the lookup strategy: if the schema has checks, the