effect 4.0.0-rc.112 → 4.0.0-rc.113
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +24 -9
- package/CLAUDE.md +24 -9
- package/ai-docs/package.json +2 -2
- package/ai-docs/src/01_effect/01_basics/02_effect-fn.ts +18 -5
- package/ai-docs/src/01_effect/01_basics/index.md +5 -3
- package/ai-docs/src/01_effect/03_services/20_layer-composition.ts +1 -1
- package/ai-docs/src/01_effect/03_services/20_layer-unwrap.ts +2 -2
- package/ai-docs/src/01_effect/05_resources/10_acquire-release.ts +2 -2
- package/ai-docs/src/03_stream/30_encoding.ts +5 -7
- package/ai-docs/src/08_observability/10_logging.ts +1 -1
- package/ai-docs/src/70_cli/10_basics.ts +7 -7
- package/ai-docs/src/71_ai/10_language-model.ts +2 -2
- package/ai-docs/src/71_ai/20_tools.ts +1 -1
- package/ai-docs/src/71_ai/30_chat.ts +1 -1
- package/dist/Array.d.ts +86 -50
- package/dist/Array.d.ts.map +1 -1
- package/dist/Array.js +58 -32
- package/dist/Array.js.map +1 -1
- package/dist/BigDecimal.d.ts +5 -1
- package/dist/BigDecimal.d.ts.map +1 -1
- package/dist/BigDecimal.js +40 -23
- package/dist/BigDecimal.js.map +1 -1
- package/dist/ByteSize.d.ts +633 -0
- package/dist/ByteSize.d.ts.map +1 -0
- package/dist/ByteSize.js +524 -0
- package/dist/ByteSize.js.map +1 -0
- package/dist/Cache.d.ts.map +1 -1
- package/dist/Cache.js +17 -3
- package/dist/Cache.js.map +1 -1
- package/dist/Cause.d.ts +1 -1
- package/dist/Cause.d.ts.map +1 -1
- package/dist/Channel.d.ts +97 -24
- package/dist/Channel.d.ts.map +1 -1
- package/dist/Channel.js +66 -39
- package/dist/Channel.js.map +1 -1
- package/dist/Chunk.d.ts +49 -28
- package/dist/Chunk.d.ts.map +1 -1
- package/dist/Chunk.js +27 -18
- package/dist/Chunk.js.map +1 -1
- package/dist/Config.d.ts +162 -201
- package/dist/Config.d.ts.map +1 -1
- package/dist/Config.js +103 -212
- package/dist/Config.js.map +1 -1
- package/dist/ConfigProvider.d.ts +4 -4
- package/dist/ConfigProvider.d.ts.map +1 -1
- package/dist/ConfigProvider.js +7 -7
- package/dist/ConfigProvider.js.map +1 -1
- package/dist/Context.d.ts +31 -0
- package/dist/Context.d.ts.map +1 -1
- package/dist/Context.js.map +1 -1
- package/dist/Cron.d.ts +2 -2
- package/dist/Cron.d.ts.map +1 -1
- package/dist/Cron.js +2 -2
- package/dist/Cron.js.map +1 -1
- package/dist/Crypto.d.ts +1 -1
- package/dist/Crypto.d.ts.map +1 -1
- package/dist/Crypto.js +3 -2
- package/dist/Crypto.js.map +1 -1
- package/dist/DateTime.d.ts +2 -2
- package/dist/DateTime.d.ts.map +1 -1
- package/dist/Deferred.d.ts.map +1 -1
- package/dist/Deferred.js +6 -6
- package/dist/Deferred.js.map +1 -1
- package/dist/Duration.d.ts +1 -1
- package/dist/Duration.d.ts.map +1 -1
- package/dist/Duration.js +1 -1
- package/dist/Duration.js.map +1 -1
- package/dist/Effect.d.ts +220 -113
- package/dist/Effect.d.ts.map +1 -1
- package/dist/Effect.js +27 -26
- package/dist/Effect.js.map +1 -1
- package/dist/Effectable.d.ts +58 -2
- package/dist/Effectable.d.ts.map +1 -1
- package/dist/Effectable.js +58 -6
- package/dist/Effectable.js.map +1 -1
- package/dist/Encoding.d.ts +3 -1
- package/dist/Encoding.d.ts.map +1 -1
- package/dist/Encoding.js +40 -10
- package/dist/Encoding.js.map +1 -1
- package/dist/Equal.d.ts +1 -1
- package/dist/Equal.d.ts.map +1 -1
- package/dist/Equal.js +1 -1
- package/dist/Equal.js.map +1 -1
- package/dist/ExecutionPlan.d.ts.map +1 -1
- package/dist/ExecutionPlan.js +1 -0
- package/dist/ExecutionPlan.js.map +1 -1
- package/dist/Fiber.d.ts +32 -8
- package/dist/Fiber.d.ts.map +1 -1
- package/dist/Fiber.js.map +1 -1
- package/dist/FiberHandle.js +3 -3
- package/dist/FiberHandle.js.map +1 -1
- package/dist/FiberMap.d.ts +12 -6
- package/dist/FiberMap.d.ts.map +1 -1
- package/dist/FiberMap.js +11 -6
- package/dist/FiberMap.js.map +1 -1
- package/dist/FileSystem.d.ts +42 -210
- package/dist/FileSystem.d.ts.map +1 -1
- package/dist/FileSystem.js +16 -148
- package/dist/FileSystem.js.map +1 -1
- package/dist/Formatter.d.ts +1 -0
- package/dist/Formatter.d.ts.map +1 -1
- package/dist/Formatter.js +19 -3
- package/dist/Formatter.js.map +1 -1
- package/dist/Graph.d.ts +48 -20
- package/dist/Graph.d.ts.map +1 -1
- package/dist/Graph.js +20 -5
- package/dist/Graph.js.map +1 -1
- package/dist/Hash.d.ts +1 -1
- package/dist/Hash.d.ts.map +1 -1
- package/dist/Hash.js +5 -14
- package/dist/Hash.js.map +1 -1
- package/dist/HashMap.d.ts +1 -1
- package/dist/HashMap.d.ts.map +1 -1
- package/dist/HashRing.d.ts +6 -1
- package/dist/HashRing.d.ts.map +1 -1
- package/dist/HashRing.js +9 -2
- package/dist/HashRing.js.map +1 -1
- package/dist/HashSet.d.ts +1 -1
- package/dist/HashSet.d.ts.map +1 -1
- package/dist/HashSet.js.map +1 -1
- package/dist/Iterable.d.ts +33 -15
- package/dist/Iterable.d.ts.map +1 -1
- package/dist/Iterable.js +58 -45
- package/dist/Iterable.js.map +1 -1
- package/dist/JsonPatch.js +4 -4
- package/dist/JsonPatch.js.map +1 -1
- package/dist/JsonPointer.d.ts +68 -4
- package/dist/JsonPointer.d.ts.map +1 -1
- package/dist/JsonPointer.js +90 -4
- package/dist/JsonPointer.js.map +1 -1
- package/dist/JsonSchema.js +8 -22
- package/dist/JsonSchema.js.map +1 -1
- package/dist/Layer.d.ts +47 -4
- package/dist/Layer.d.ts.map +1 -1
- package/dist/Layer.js +4 -6
- package/dist/Layer.js.map +1 -1
- package/dist/LayerMap.d.ts +1 -3
- package/dist/LayerMap.d.ts.map +1 -1
- package/dist/LayerMap.js +7 -5
- package/dist/LayerMap.js.map +1 -1
- package/dist/LayerRef.d.ts.map +1 -1
- package/dist/LayerRef.js +7 -5
- package/dist/LayerRef.js.map +1 -1
- package/dist/Logger.d.ts +114 -9
- package/dist/Logger.d.ts.map +1 -1
- package/dist/Logger.js +109 -9
- package/dist/Logger.js.map +1 -1
- package/dist/ManagedRuntime.js +1 -1
- package/dist/ManagedRuntime.js.map +1 -1
- package/dist/Match.d.ts +43 -31
- package/dist/Match.d.ts.map +1 -1
- package/dist/Match.js +5 -2
- package/dist/Match.js.map +1 -1
- package/dist/Metric.d.ts +11 -4
- package/dist/Metric.d.ts.map +1 -1
- package/dist/Metric.js +14 -18
- package/dist/Metric.js.map +1 -1
- package/dist/MutableHashMap.d.ts +1 -1
- package/dist/MutableHashMap.d.ts.map +1 -1
- package/dist/MutableHashMap.js +1 -1
- package/dist/MutableHashMap.js.map +1 -1
- package/dist/MutableHashSet.d.ts +1 -1
- package/dist/MutableHashSet.d.ts.map +1 -1
- package/dist/MutableHashSet.js +1 -1
- package/dist/MutableHashSet.js.map +1 -1
- package/dist/MutableList.d.ts +13 -2
- package/dist/MutableList.d.ts.map +1 -1
- package/dist/MutableList.js +18 -2
- package/dist/MutableList.js.map +1 -1
- package/dist/Number.d.ts +6 -0
- package/dist/Number.d.ts.map +1 -1
- package/dist/Number.js +3 -1
- package/dist/Number.js.map +1 -1
- package/dist/Optic.d.ts.map +1 -1
- package/dist/Optic.js +5 -4
- package/dist/Optic.js.map +1 -1
- package/dist/Option.d.ts +1 -1
- package/dist/Option.d.ts.map +1 -1
- package/dist/Option.js +1 -1
- package/dist/Option.js.map +1 -1
- package/dist/Order.d.ts +1 -0
- package/dist/Order.d.ts.map +1 -1
- package/dist/Order.js +3 -1
- package/dist/Order.js.map +1 -1
- package/dist/PartitionedSemaphore.d.ts.map +1 -1
- package/dist/PartitionedSemaphore.js +1 -2
- package/dist/PartitionedSemaphore.js.map +1 -1
- package/dist/Path.d.ts +1 -1
- package/dist/Path.d.ts.map +1 -1
- package/dist/Path.js +1 -1
- package/dist/Path.js.map +1 -1
- package/dist/PlatformError.d.ts +1 -1
- package/dist/PlatformError.d.ts.map +1 -1
- package/dist/PlatformError.js +1 -1
- package/dist/PlatformError.js.map +1 -1
- package/dist/Pool.d.ts +38 -1
- package/dist/Pool.d.ts.map +1 -1
- package/dist/Pool.js +81 -5
- package/dist/Pool.js.map +1 -1
- package/dist/PrimaryKey.d.ts +1 -1
- package/dist/PrimaryKey.d.ts.map +1 -1
- package/dist/PrimaryKey.js +1 -1
- package/dist/PrimaryKey.js.map +1 -1
- package/dist/PubSub.d.ts +21 -9
- package/dist/PubSub.d.ts.map +1 -1
- package/dist/PubSub.js +18 -14
- package/dist/PubSub.js.map +1 -1
- package/dist/Queue.d.ts +82 -6
- package/dist/Queue.d.ts.map +1 -1
- package/dist/Queue.js +116 -27
- package/dist/Queue.js.map +1 -1
- package/dist/Random.d.ts +17 -4
- package/dist/Random.d.ts.map +1 -1
- package/dist/Random.js +1 -1
- package/dist/Random.js.map +1 -1
- package/dist/RcMap.d.ts.map +1 -1
- package/dist/RcMap.js +15 -9
- package/dist/RcMap.js.map +1 -1
- package/dist/Redacted.d.ts +1 -1
- package/dist/Redacted.d.ts.map +1 -1
- package/dist/Redacted.js +1 -1
- package/dist/Redacted.js.map +1 -1
- package/dist/RequestResolver.d.ts +15 -9
- package/dist/RequestResolver.d.ts.map +1 -1
- package/dist/RequestResolver.js +33 -15
- package/dist/RequestResolver.js.map +1 -1
- package/dist/Result.d.ts +1 -1
- package/dist/Result.d.ts.map +1 -1
- package/dist/Result.js +1 -1
- package/dist/Result.js.map +1 -1
- package/dist/Scheduler.d.ts.map +1 -1
- package/dist/Scheduler.js +19 -10
- package/dist/Scheduler.js.map +1 -1
- package/dist/Schema.d.ts +2155 -2415
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +2755 -4174
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaAST.d.ts +354 -183
- package/dist/SchemaAST.d.ts.map +1 -1
- package/dist/SchemaAST.js +277 -601
- package/dist/SchemaAST.js.map +1 -1
- package/dist/SchemaGetter.d.ts +46 -22
- package/dist/SchemaGetter.d.ts.map +1 -1
- package/dist/SchemaGetter.js +56 -53
- package/dist/SchemaGetter.js.map +1 -1
- package/dist/SchemaIssue.d.ts +122 -188
- package/dist/SchemaIssue.d.ts.map +1 -1
- package/dist/SchemaIssue.js +48 -263
- package/dist/SchemaIssue.js.map +1 -1
- package/dist/SchemaParser.js +2 -9
- package/dist/SchemaParser.js.map +1 -1
- package/dist/SchemaRepresentation.d.ts +1099 -16
- package/dist/SchemaRepresentation.d.ts.map +1 -1
- package/dist/SchemaRepresentation.js +1341 -20
- package/dist/SchemaRepresentation.js.map +1 -1
- package/dist/SchemaTransformation.d.ts +49 -16
- package/dist/SchemaTransformation.d.ts.map +1 -1
- package/dist/SchemaTransformation.js +75 -98
- package/dist/SchemaTransformation.js.map +1 -1
- package/dist/ScopedCache.d.ts.map +1 -1
- package/dist/ScopedCache.js +10 -3
- package/dist/ScopedCache.js.map +1 -1
- package/dist/Sink.d.ts +9 -4
- package/dist/Sink.d.ts.map +1 -1
- package/dist/Sink.js +49 -31
- package/dist/Sink.js.map +1 -1
- package/dist/Stream.d.ts +221 -35
- package/dist/Stream.d.ts.map +1 -1
- package/dist/Stream.js +168 -84
- package/dist/Stream.js.map +1 -1
- package/dist/String.d.ts +16 -6
- package/dist/String.d.ts.map +1 -1
- package/dist/String.js +12 -5
- package/dist/String.js.map +1 -1
- package/dist/Struct.d.ts.map +1 -1
- package/dist/Struct.js +7 -4
- package/dist/Struct.js.map +1 -1
- package/dist/SynchronizedRef.d.ts +3 -2
- package/dist/SynchronizedRef.d.ts.map +1 -1
- package/dist/SynchronizedRef.js.map +1 -1
- package/dist/Terminal.d.ts +3 -3
- package/dist/Terminal.d.ts.map +1 -1
- package/dist/Terminal.js +3 -3
- package/dist/Terminal.js.map +1 -1
- package/dist/Tracer.d.ts +27 -7
- package/dist/Tracer.d.ts.map +1 -1
- package/dist/Tracer.js +38 -13
- package/dist/Tracer.js.map +1 -1
- package/dist/Trie.d.ts +1 -1
- package/dist/Trie.d.ts.map +1 -1
- package/dist/Tuple.d.ts +2 -1
- package/dist/Tuple.d.ts.map +1 -1
- package/dist/Tuple.js.map +1 -1
- package/dist/TxChunk.d.ts +1 -1
- package/dist/TxChunk.d.ts.map +1 -1
- package/dist/TxChunk.js +1 -1
- package/dist/TxChunk.js.map +1 -1
- package/dist/TxDeferred.d.ts +1 -1
- package/dist/TxDeferred.d.ts.map +1 -1
- package/dist/TxDeferred.js +1 -1
- package/dist/TxDeferred.js.map +1 -1
- package/dist/TxHashMap.d.ts +1 -1
- package/dist/TxHashMap.d.ts.map +1 -1
- package/dist/TxHashMap.js +1 -1
- package/dist/TxHashMap.js.map +1 -1
- package/dist/TxHashSet.d.ts +1 -1
- package/dist/TxHashSet.d.ts.map +1 -1
- package/dist/TxHashSet.js +1 -1
- package/dist/TxHashSet.js.map +1 -1
- package/dist/TxPriorityQueue.d.ts +1 -1
- package/dist/TxPriorityQueue.d.ts.map +1 -1
- package/dist/TxPriorityQueue.js +1 -1
- package/dist/TxPriorityQueue.js.map +1 -1
- package/dist/TxPubSub.d.ts +1 -1
- package/dist/TxPubSub.d.ts.map +1 -1
- package/dist/TxPubSub.js +1 -1
- package/dist/TxPubSub.js.map +1 -1
- package/dist/TxQueue.d.ts +9 -9
- package/dist/TxQueue.d.ts.map +1 -1
- package/dist/TxQueue.js +93 -86
- package/dist/TxQueue.js.map +1 -1
- package/dist/TxReentrantLock.d.ts +29 -1
- package/dist/TxReentrantLock.d.ts.map +1 -1
- package/dist/TxReentrantLock.js +29 -1
- package/dist/TxReentrantLock.js.map +1 -1
- package/dist/TxRef.d.ts +1 -1
- package/dist/TxRef.d.ts.map +1 -1
- package/dist/TxRef.js +1 -1
- package/dist/TxRef.js.map +1 -1
- package/dist/TxSemaphore.d.ts +1 -1
- package/dist/TxSemaphore.d.ts.map +1 -1
- package/dist/TxSemaphore.js +1 -1
- package/dist/TxSemaphore.js.map +1 -1
- package/dist/TxSubscriptionRef.d.ts +1 -1
- package/dist/TxSubscriptionRef.d.ts.map +1 -1
- package/dist/TxSubscriptionRef.js +1 -1
- package/dist/TxSubscriptionRef.js.map +1 -1
- package/dist/Types.d.ts +33 -19
- package/dist/Types.d.ts.map +1 -1
- package/dist/Utils.d.ts.map +1 -1
- package/dist/Utils.js +2 -1
- package/dist/Utils.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/internal/arbitrary/model.d.ts +2 -0
- package/dist/internal/arbitrary/model.d.ts.map +1 -0
- package/dist/internal/arbitrary/model.js +495 -0
- package/dist/internal/arbitrary/model.js.map +1 -0
- package/dist/internal/arbitrary/regexp.d.ts +2 -0
- package/dist/internal/arbitrary/regexp.d.ts.map +1 -0
- package/dist/internal/arbitrary/regexp.js +789 -0
- package/dist/internal/arbitrary/regexp.js.map +1 -0
- package/dist/internal/arbitrary/runner.d.ts +2 -0
- package/dist/internal/arbitrary/runner.d.ts.map +1 -0
- package/dist/internal/arbitrary/runner.js +496 -0
- package/dist/internal/arbitrary/runner.js.map +1 -0
- package/dist/internal/arbitrary/schema.d.ts.map +1 -0
- package/dist/internal/arbitrary/schema.js +1340 -0
- package/dist/internal/arbitrary/schema.js.map +1 -0
- package/dist/internal/core.js +27 -13
- package/dist/internal/core.js.map +1 -1
- package/dist/internal/count.d.ts +2 -0
- package/dist/internal/count.d.ts.map +1 -0
- package/dist/internal/count.js +14 -0
- package/dist/internal/count.js.map +1 -0
- package/dist/internal/dateTime.js +4 -10
- package/dist/internal/dateTime.js.map +1 -1
- package/dist/internal/effect.js +386 -251
- package/dist/internal/effect.js.map +1 -1
- package/dist/internal/graph.js +3 -1
- package/dist/internal/graph.js.map +1 -1
- package/dist/internal/hashMap.js +5 -3
- package/dist/internal/hashMap.js.map +1 -1
- package/dist/internal/hashSet.js +1 -1
- package/dist/internal/hashSet.js.map +1 -1
- package/dist/internal/matcher.js +1 -1
- package/dist/internal/matcher.js.map +1 -1
- package/dist/internal/metric.js +1 -1
- package/dist/internal/metric.js.map +1 -1
- package/dist/internal/option.js +6 -5
- package/dist/internal/option.js.map +1 -1
- package/dist/internal/random.js +17 -0
- package/dist/internal/random.js.map +1 -1
- package/dist/internal/rcRef.js +10 -7
- package/dist/internal/rcRef.js.map +1 -1
- package/dist/internal/references.js +1 -0
- package/dist/internal/references.js.map +1 -1
- package/dist/internal/request.js +13 -6
- package/dist/internal/request.js.map +1 -1
- package/dist/internal/result.js +11 -9
- package/dist/internal/result.js.map +1 -1
- package/dist/internal/schema/annotations.js +1 -1
- package/dist/internal/schema/annotations.js.map +1 -1
- package/dist/internal/schema/fromJsonSchemaDocument.js +14 -12
- package/dist/internal/schema/fromJsonSchemaDocument.js.map +1 -1
- package/dist/internal/schema/fromRepresentation.js +5 -5
- package/dist/internal/schema/fromRepresentation.js.map +1 -1
- package/dist/internal/schema/make.d.ts +2 -0
- package/dist/internal/schema/make.d.ts.map +1 -0
- package/dist/internal/schema/{schema.js → make.js} +1 -25
- package/dist/internal/schema/make.js.map +1 -0
- package/dist/internal/schema/parser.d.ts +0 -12
- package/dist/internal/schema/parser.d.ts.map +1 -1
- package/dist/internal/schema/parser.js +7 -0
- package/dist/internal/schema/parser.js.map +1 -1
- package/dist/internal/schema/standardSchema.d.ts +2 -0
- package/dist/internal/schema/standardSchema.d.ts.map +1 -0
- package/dist/internal/schema/standardSchema.js +112 -0
- package/dist/internal/schema/standardSchema.js.map +1 -0
- package/dist/internal/schema/toCodeDocument.js +34 -22
- package/dist/internal/schema/toCodeDocument.js.map +1 -1
- package/dist/internal/schema/toCodec.d.ts +2 -0
- package/dist/internal/schema/toCodec.d.ts.map +1 -0
- package/dist/internal/schema/toCodec.js +242 -0
- package/dist/internal/schema/toCodec.js.map +1 -0
- package/dist/internal/schema/toDifferJsonPatch.d.ts +2 -0
- package/dist/internal/schema/toDifferJsonPatch.d.ts.map +1 -0
- package/dist/internal/schema/toDifferJsonPatch.js +20 -0
- package/dist/internal/schema/toDifferJsonPatch.js.map +1 -0
- package/dist/internal/schema/toEncoderXml.d.ts +2 -0
- package/dist/internal/schema/toEncoderXml.d.ts.map +1 -0
- package/dist/internal/schema/toEncoderXml.js +104 -0
- package/dist/internal/schema/toEncoderXml.js.map +1 -0
- package/dist/internal/schema/toEquivalence.js +66 -0
- package/dist/internal/schema/toEquivalence.js.map +1 -1
- package/dist/internal/schema/toFormatter.d.ts +2 -0
- package/dist/internal/schema/toFormatter.d.ts.map +1 -0
- package/dist/internal/schema/toFormatter.js +227 -0
- package/dist/internal/schema/toFormatter.js.map +1 -0
- package/dist/internal/schema/toIso.d.ts +2 -0
- package/dist/internal/schema/toIso.d.ts.map +1 -0
- package/dist/internal/schema/toIso.js +17 -0
- package/dist/internal/schema/toIso.js.map +1 -0
- package/dist/internal/schema/toJsonSchemaDocument.js +122 -71
- package/dist/internal/schema/toJsonSchemaDocument.js.map +1 -1
- package/dist/internal/schema/toRepresentation.js +3 -1
- package/dist/internal/schema/toRepresentation.js.map +1 -1
- package/dist/internal/schemaError.d.ts +4 -0
- package/dist/internal/schemaError.d.ts.map +1 -0
- package/dist/internal/schemaError.js +6 -0
- package/dist/internal/schemaError.js.map +1 -0
- package/dist/internal/stream.js +5 -6
- package/dist/internal/stream.js.map +1 -1
- package/dist/internal/tracer.d.ts +1 -3
- package/dist/internal/tracer.d.ts.map +1 -1
- package/dist/internal/tracer.js +6 -0
- package/dist/internal/tracer.js.map +1 -1
- package/dist/internal/trie.js +2 -2
- package/dist/internal/trie.js.map +1 -1
- package/dist/internal/uuid.d.ts +1 -2
- package/dist/internal/uuid.d.ts.map +1 -1
- package/dist/internal/uuid.js +2 -0
- package/dist/internal/uuid.js.map +1 -1
- package/dist/testing/TestSchema.d.ts +9 -11
- package/dist/testing/TestSchema.d.ts.map +1 -1
- package/dist/testing/TestSchema.js +20 -18
- package/dist/testing/TestSchema.js.map +1 -1
- package/dist/testing/index.d.ts +0 -4
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +0 -4
- package/dist/testing/index.js.map +1 -1
- package/dist/unstable/ai/AiError.d.ts +74 -23
- package/dist/unstable/ai/AiError.d.ts.map +1 -1
- package/dist/unstable/ai/AiError.js +59 -5
- package/dist/unstable/ai/AiError.js.map +1 -1
- package/dist/unstable/ai/AnthropicStructuredOutput.d.ts.map +1 -1
- package/dist/unstable/ai/AnthropicStructuredOutput.js +2 -1
- package/dist/unstable/ai/AnthropicStructuredOutput.js.map +1 -1
- package/dist/unstable/ai/Chat.d.ts +27 -32
- package/dist/unstable/ai/Chat.d.ts.map +1 -1
- package/dist/unstable/ai/Chat.js +10 -13
- package/dist/unstable/ai/Chat.js.map +1 -1
- package/dist/unstable/ai/EmbeddingModel.d.ts +23 -16
- package/dist/unstable/ai/EmbeddingModel.d.ts.map +1 -1
- package/dist/unstable/ai/EmbeddingModel.js +13 -11
- package/dist/unstable/ai/EmbeddingModel.js.map +1 -1
- package/dist/unstable/ai/LanguageModel.d.ts +48 -37
- package/dist/unstable/ai/LanguageModel.d.ts.map +1 -1
- package/dist/unstable/ai/LanguageModel.js +150 -47
- package/dist/unstable/ai/LanguageModel.js.map +1 -1
- package/dist/unstable/ai/McpServer.d.ts +2 -2
- package/dist/unstable/ai/McpServer.d.ts.map +1 -1
- package/dist/unstable/ai/McpServer.js +21 -12
- package/dist/unstable/ai/McpServer.js.map +1 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.d.ts.map +1 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.js +2 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.js.map +1 -1
- package/dist/unstable/ai/Prompt.d.ts +1 -1
- package/dist/unstable/ai/Prompt.d.ts.map +1 -1
- package/dist/unstable/ai/Prompt.js +15 -4
- package/dist/unstable/ai/Prompt.js.map +1 -1
- package/dist/unstable/ai/Response.d.ts +37 -94
- package/dist/unstable/ai/Response.d.ts.map +1 -1
- package/dist/unstable/ai/Response.js +46 -96
- package/dist/unstable/ai/Response.js.map +1 -1
- package/dist/unstable/ai/Tokenizer.js +4 -5
- package/dist/unstable/ai/Tokenizer.js.map +1 -1
- package/dist/unstable/ai/Tool.d.ts +38 -20
- package/dist/unstable/ai/Tool.d.ts.map +1 -1
- package/dist/unstable/ai/Tool.js +27 -1
- package/dist/unstable/ai/Tool.js.map +1 -1
- package/dist/unstable/ai/Toolkit.d.ts +1 -1
- package/dist/unstable/ai/Toolkit.d.ts.map +1 -1
- package/dist/unstable/ai/Toolkit.js +30 -18
- package/dist/unstable/ai/Toolkit.js.map +1 -1
- package/dist/unstable/ai/internal/structured-output.js +8 -5
- package/dist/unstable/ai/internal/structured-output.js.map +1 -1
- package/dist/unstable/arbitrary/Arbitrary.d.ts +626 -0
- package/dist/unstable/arbitrary/Arbitrary.d.ts.map +1 -0
- package/dist/unstable/arbitrary/Arbitrary.js +238 -0
- package/dist/unstable/arbitrary/Arbitrary.js.map +1 -0
- package/dist/unstable/arbitrary/index.d.ts +8 -0
- package/dist/unstable/arbitrary/index.d.ts.map +1 -0
- package/dist/unstable/arbitrary/index.js +9 -0
- package/dist/unstable/arbitrary/index.js.map +1 -0
- package/dist/unstable/cli/Argument.d.ts +104 -108
- package/dist/unstable/cli/Argument.d.ts.map +1 -1
- package/dist/unstable/cli/Argument.js +56 -57
- package/dist/unstable/cli/Argument.js.map +1 -1
- package/dist/unstable/cli/CliError.d.ts +2 -0
- package/dist/unstable/cli/CliError.d.ts.map +1 -1
- package/dist/unstable/cli/CliError.js +2 -0
- package/dist/unstable/cli/CliError.js.map +1 -1
- package/dist/unstable/cli/CliOutput.js +26 -3
- package/dist/unstable/cli/CliOutput.js.map +1 -1
- package/dist/unstable/cli/Command.d.ts +73 -73
- package/dist/unstable/cli/Command.js +18 -18
- package/dist/unstable/cli/Completions.d.ts +4 -4
- package/dist/unstable/cli/Completions.d.ts.map +1 -1
- package/dist/unstable/cli/Flag.d.ts +150 -161
- package/dist/unstable/cli/Flag.d.ts.map +1 -1
- package/dist/unstable/cli/Flag.js +79 -90
- package/dist/unstable/cli/Flag.js.map +1 -1
- package/dist/unstable/cli/GlobalFlag.d.ts +3 -3
- package/dist/unstable/cli/GlobalFlag.js +13 -13
- package/dist/unstable/cli/GlobalFlag.js.map +1 -1
- package/dist/unstable/cli/Param.d.ts +118 -126
- package/dist/unstable/cli/Param.d.ts.map +1 -1
- package/dist/unstable/cli/Param.js +104 -113
- package/dist/unstable/cli/Param.js.map +1 -1
- package/dist/unstable/cli/Primitive.d.ts +69 -58
- package/dist/unstable/cli/Primitive.d.ts.map +1 -1
- package/dist/unstable/cli/Primitive.js +65 -66
- package/dist/unstable/cli/Primitive.js.map +1 -1
- package/dist/unstable/cli/Prompt.d.ts +23 -24
- package/dist/unstable/cli/Prompt.d.ts.map +1 -1
- package/dist/unstable/cli/Prompt.js +68 -63
- package/dist/unstable/cli/Prompt.js.map +1 -1
- package/dist/unstable/cli/internal/completions/descriptor.js +23 -11
- package/dist/unstable/cli/internal/completions/descriptor.js.map +1 -1
- package/dist/unstable/cli/internal/completions/zsh.js +2 -2
- package/dist/unstable/cli/internal/completions/zsh.js.map +1 -1
- package/dist/unstable/cli/internal/config.js +4 -4
- package/dist/unstable/cli/internal/parser.js +1 -1
- package/dist/unstable/cli/internal/parser.js.map +1 -1
- package/dist/unstable/cli/internal/wizard.d.ts.map +1 -1
- package/dist/unstable/cli/internal/wizard.js +14 -13
- package/dist/unstable/cli/internal/wizard.js.map +1 -1
- package/dist/unstable/cluster/ClusterSchema.d.ts +13 -0
- package/dist/unstable/cluster/ClusterSchema.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterSchema.js +16 -1
- package/dist/unstable/cluster/ClusterSchema.js.map +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterWorkflowEngine.js +57 -14
- package/dist/unstable/cluster/ClusterWorkflowEngine.js.map +1 -1
- package/dist/unstable/cluster/Entity.d.ts.map +1 -1
- package/dist/unstable/cluster/Entity.js +2 -0
- package/dist/unstable/cluster/Entity.js.map +1 -1
- package/dist/unstable/cluster/EntityProxyServer.d.ts +2 -2
- package/dist/unstable/cluster/EntityProxyServer.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityProxyServer.js.map +1 -1
- package/dist/unstable/cluster/Envelope.d.ts +4 -4
- package/dist/unstable/cluster/Envelope.d.ts.map +1 -1
- package/dist/unstable/cluster/Envelope.js +2 -3
- package/dist/unstable/cluster/Envelope.js.map +1 -1
- package/dist/unstable/cluster/HttpRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/HttpRunner.js +5 -2
- package/dist/unstable/cluster/HttpRunner.js.map +1 -1
- package/dist/unstable/cluster/MessageStorage.d.ts +34 -4
- package/dist/unstable/cluster/MessageStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/MessageStorage.js +28 -9
- package/dist/unstable/cluster/MessageStorage.js.map +1 -1
- package/dist/unstable/cluster/Reply.d.ts +1 -1
- package/dist/unstable/cluster/Sharding.d.ts +1 -1
- package/dist/unstable/cluster/Sharding.d.ts.map +1 -1
- package/dist/unstable/cluster/Sharding.js +32 -17
- package/dist/unstable/cluster/Sharding.js.map +1 -1
- package/dist/unstable/cluster/ShardingConfig.js +23 -23
- package/dist/unstable/cluster/ShardingConfig.js.map +1 -1
- package/dist/unstable/cluster/SocketRunner.d.ts +2 -2
- package/dist/unstable/cluster/SocketRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/SocketRunner.js +4 -3
- package/dist/unstable/cluster/SocketRunner.js.map +1 -1
- package/dist/unstable/cluster/SqlMessageStorage.js +11 -8
- package/dist/unstable/cluster/SqlMessageStorage.js.map +1 -1
- package/dist/unstable/cluster/SqlRunnerStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/SqlRunnerStorage.js +11 -4
- package/dist/unstable/cluster/SqlRunnerStorage.js.map +1 -1
- package/dist/unstable/cluster/internal/clusterAbandon.d.ts +5 -0
- package/dist/unstable/cluster/internal/clusterAbandon.d.ts.map +1 -0
- package/dist/unstable/cluster/internal/clusterAbandon.js +9 -0
- package/dist/unstable/cluster/internal/clusterAbandon.js.map +1 -0
- package/dist/unstable/cluster/internal/entityManager.js +7 -4
- package/dist/unstable/cluster/internal/entityManager.js.map +1 -1
- package/dist/unstable/cluster/internal/interruptors.js +30 -1
- package/dist/unstable/cluster/internal/interruptors.js.map +1 -1
- package/dist/unstable/cluster/internal/resourceRef.js +12 -7
- package/dist/unstable/cluster/internal/resourceRef.js.map +1 -1
- package/dist/unstable/devtools/DevToolsClient.d.ts.map +1 -1
- package/dist/unstable/devtools/DevToolsClient.js +12 -7
- package/dist/unstable/devtools/DevToolsClient.js.map +1 -1
- package/dist/unstable/encoding/Ini.d.ts +2 -0
- package/dist/unstable/encoding/Ini.d.ts.map +1 -1
- package/dist/unstable/encoding/Ini.js +2 -0
- package/dist/unstable/encoding/Ini.js.map +1 -1
- package/dist/unstable/encoding/SchemaBinary.d.ts +27 -3
- package/dist/unstable/encoding/SchemaBinary.d.ts.map +1 -1
- package/dist/unstable/encoding/SchemaBinary.js +108 -39
- package/dist/unstable/encoding/SchemaBinary.js.map +1 -1
- package/dist/unstable/encoding/Sse.js +1 -1
- package/dist/unstable/encoding/Sse.js.map +1 -1
- package/dist/unstable/encoding/Toml.d.ts +2 -0
- package/dist/unstable/encoding/Toml.d.ts.map +1 -1
- package/dist/unstable/encoding/Toml.js +6 -4
- package/dist/unstable/encoding/Toml.js.map +1 -1
- package/dist/unstable/encoding/Yaml.d.ts +2 -0
- package/dist/unstable/encoding/Yaml.d.ts.map +1 -1
- package/dist/unstable/encoding/Yaml.js +16 -5
- package/dist/unstable/encoding/Yaml.js.map +1 -1
- package/dist/unstable/encoding/index.d.ts +0 -4
- package/dist/unstable/encoding/index.d.ts.map +1 -1
- package/dist/unstable/encoding/index.js +0 -4
- package/dist/unstable/encoding/index.js.map +1 -1
- package/dist/unstable/eventlog/Event.d.ts +5 -5
- package/dist/unstable/eventlog/Event.d.ts.map +1 -1
- package/dist/unstable/eventlog/Event.js +3 -3
- package/dist/unstable/eventlog/Event.js.map +1 -1
- package/dist/unstable/eventlog/EventJournal.d.ts +7 -7
- package/dist/unstable/eventlog/EventJournal.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventJournal.js +9 -9
- package/dist/unstable/eventlog/EventJournal.js.map +1 -1
- package/dist/unstable/eventlog/EventLog.d.ts +1 -1
- package/dist/unstable/eventlog/EventLog.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLog.js +4 -4
- package/dist/unstable/eventlog/EventLog.js.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.d.ts +11 -5
- package/dist/unstable/eventlog/EventLogMessage.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.js +25 -15
- package/dist/unstable/eventlog/EventLogMessage.js.map +1 -1
- package/dist/unstable/eventlog/EventLogRemote.d.ts +7 -1
- package/dist/unstable/eventlog/EventLogRemote.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogRemote.js +13 -3
- package/dist/unstable/eventlog/EventLogRemote.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js +2 -2
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventJournal.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventJournal.js +26 -13
- package/dist/unstable/eventlog/SqlEventJournal.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js +5 -1
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js.map +1 -1
- package/dist/unstable/http/Cookies.d.ts +1 -45
- package/dist/unstable/http/Cookies.d.ts.map +1 -1
- package/dist/unstable/http/Cookies.js +2 -64
- package/dist/unstable/http/Cookies.js.map +1 -1
- package/dist/unstable/http/FetchHttpClient.js +1 -1
- package/dist/unstable/http/FetchHttpClient.js.map +1 -1
- package/dist/unstable/http/FindMyWay/internal/router.js +124 -33
- package/dist/unstable/http/FindMyWay/internal/router.js.map +1 -1
- package/dist/unstable/http/FindMyWay.d.ts +15 -5
- package/dist/unstable/http/FindMyWay.d.ts.map +1 -1
- package/dist/unstable/http/FindMyWay.js +3 -1
- package/dist/unstable/http/FindMyWay.js.map +1 -1
- package/dist/unstable/http/Headers.d.ts +0 -22
- package/dist/unstable/http/Headers.d.ts.map +1 -1
- package/dist/unstable/http/Headers.js +3 -34
- package/dist/unstable/http/Headers.js.map +1 -1
- package/dist/unstable/http/HttpBody.d.ts +41 -10
- package/dist/unstable/http/HttpBody.d.ts.map +1 -1
- package/dist/unstable/http/HttpBody.js +64 -10
- package/dist/unstable/http/HttpBody.js.map +1 -1
- package/dist/unstable/http/HttpClient.d.ts +1 -1
- package/dist/unstable/http/HttpClient.d.ts.map +1 -1
- package/dist/unstable/http/HttpClient.js +28 -18
- package/dist/unstable/http/HttpClient.js.map +1 -1
- package/dist/unstable/http/HttpClientRequest.d.ts +28 -6
- package/dist/unstable/http/HttpClientRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientRequest.js +8 -19
- package/dist/unstable/http/HttpClientRequest.js.map +1 -1
- package/dist/unstable/http/HttpClientResponse.d.ts +6 -1
- package/dist/unstable/http/HttpClientResponse.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientResponse.js +10 -6
- package/dist/unstable/http/HttpClientResponse.js.map +1 -1
- package/dist/unstable/http/HttpEffect.d.ts +16 -0
- package/dist/unstable/http/HttpEffect.d.ts.map +1 -1
- package/dist/unstable/http/HttpEffect.js +121 -65
- package/dist/unstable/http/HttpEffect.js.map +1 -1
- package/dist/unstable/http/HttpIncomingMessage.d.ts +3 -3
- package/dist/unstable/http/HttpIncomingMessage.d.ts.map +1 -1
- package/dist/unstable/http/HttpIncomingMessage.js +1 -13
- package/dist/unstable/http/HttpIncomingMessage.js.map +1 -1
- package/dist/unstable/http/HttpMiddleware.d.ts +1 -1
- package/dist/unstable/http/HttpMiddleware.d.ts.map +1 -1
- package/dist/unstable/http/HttpMiddleware.js +29 -21
- package/dist/unstable/http/HttpMiddleware.js.map +1 -1
- package/dist/unstable/http/HttpPlatform.d.ts +12 -11
- package/dist/unstable/http/HttpPlatform.d.ts.map +1 -1
- package/dist/unstable/http/HttpPlatform.js +36 -10
- package/dist/unstable/http/HttpPlatform.js.map +1 -1
- package/dist/unstable/http/HttpRouter.d.ts +5 -1
- package/dist/unstable/http/HttpRouter.d.ts.map +1 -1
- package/dist/unstable/http/HttpRouter.js +22 -8
- package/dist/unstable/http/HttpRouter.js.map +1 -1
- package/dist/unstable/http/HttpServer.d.ts +11 -42
- package/dist/unstable/http/HttpServer.d.ts.map +1 -1
- package/dist/unstable/http/HttpServer.js +16 -20
- package/dist/unstable/http/HttpServer.js.map +1 -1
- package/dist/unstable/http/HttpServerRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerRequest.js +11 -11
- package/dist/unstable/http/HttpServerRequest.js.map +1 -1
- package/dist/unstable/http/HttpServerRespondable.js +1 -1
- package/dist/unstable/http/HttpServerRespondable.js.map +1 -1
- package/dist/unstable/http/HttpServerResponse.d.ts +9 -13
- package/dist/unstable/http/HttpServerResponse.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerResponse.js +34 -44
- package/dist/unstable/http/HttpServerResponse.js.map +1 -1
- package/dist/unstable/http/HttpStaticServer.d.ts +2 -2
- package/dist/unstable/http/HttpStaticServer.d.ts.map +1 -1
- package/dist/unstable/http/HttpStaticServer.js +19 -19
- package/dist/unstable/http/HttpStaticServer.js.map +1 -1
- package/dist/unstable/http/Mime.d.ts +28 -0
- package/dist/unstable/http/Mime.d.ts.map +1 -0
- package/dist/unstable/http/Mime.js +72 -0
- package/dist/unstable/http/Mime.js.map +1 -0
- package/dist/unstable/http/Multipart.d.ts +22 -9
- package/dist/unstable/http/Multipart.d.ts.map +1 -1
- package/dist/unstable/http/Multipart.js +26 -10
- package/dist/unstable/http/Multipart.js.map +1 -1
- package/dist/unstable/http/MultipartParser/internal/multipart.d.ts +1 -1
- package/dist/unstable/http/MultipartParser/internal/multipart.d.ts.map +1 -1
- package/dist/unstable/http/MultipartParser/internal/multipart.js +8 -3
- package/dist/unstable/http/MultipartParser/internal/multipart.js.map +1 -1
- package/dist/unstable/http/MultipartParser.d.ts +4 -3
- package/dist/unstable/http/MultipartParser.d.ts.map +1 -1
- package/dist/unstable/http/MultipartParser.js.map +1 -1
- package/dist/unstable/http/UrlParams.d.ts +0 -97
- package/dist/unstable/http/UrlParams.d.ts.map +1 -1
- package/dist/unstable/http/UrlParams.js +3 -104
- package/dist/unstable/http/UrlParams.js.map +1 -1
- package/dist/unstable/http/index.d.ts +4 -0
- package/dist/unstable/http/index.d.ts.map +1 -1
- package/dist/unstable/http/index.js +4 -0
- package/dist/unstable/http/index.js.map +1 -1
- package/dist/unstable/http/internal/compression.js +8 -11
- package/dist/unstable/http/internal/compression.js.map +1 -1
- package/dist/unstable/http/internal/headers.d.ts +2 -0
- package/dist/unstable/http/internal/headers.d.ts.map +1 -0
- package/dist/unstable/http/internal/headers.js +5 -0
- package/dist/unstable/http/internal/headers.js.map +1 -0
- package/dist/unstable/http/internal/httpBody.js +8 -0
- package/dist/unstable/http/internal/httpBody.js.map +1 -1
- package/dist/unstable/http/internal/mimeTypes.d.ts +361 -0
- package/dist/unstable/http/internal/mimeTypes.d.ts.map +1 -0
- package/dist/unstable/http/internal/mimeTypes.js +363 -0
- package/dist/unstable/http/internal/mimeTypes.js.map +1 -0
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts +13 -0
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.js +23 -6
- package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiClient.d.ts +4 -3
- package/dist/unstable/httpapi/HttpApiClient.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiClient.js +25 -13
- package/dist/unstable/httpapi/HttpApiClient.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiEndpoint.d.ts +8 -3
- package/dist/unstable/httpapi/HttpApiEndpoint.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiEndpoint.js +9 -6
- package/dist/unstable/httpapi/HttpApiEndpoint.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiError.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiError.js +3 -1
- package/dist/unstable/httpapi/HttpApiError.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.js +7 -5
- package/dist/unstable/httpapi/HttpApiMiddleware.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.d.ts +12 -0
- package/dist/unstable/httpapi/HttpApiSchema.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.js +8 -10
- package/dist/unstable/httpapi/HttpApiSchema.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiTest.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiTest.js +8 -2
- package/dist/unstable/httpapi/HttpApiTest.js.map +1 -1
- package/dist/unstable/httpapi/OpenApi.d.ts.map +1 -1
- package/dist/unstable/httpapi/OpenApi.js +31 -20
- package/dist/unstable/httpapi/OpenApi.js.map +1 -1
- package/dist/unstable/net/IpInterface.d.ts +140 -0
- package/dist/unstable/net/IpInterface.d.ts.map +1 -0
- package/dist/unstable/net/IpInterface.js +149 -0
- package/dist/unstable/net/IpInterface.js.map +1 -0
- package/dist/unstable/net/IpNetwork.d.ts +227 -0
- package/dist/unstable/net/IpNetwork.d.ts.map +1 -0
- package/dist/unstable/net/IpNetwork.js +239 -0
- package/dist/unstable/net/IpNetwork.js.map +1 -0
- package/dist/unstable/net/NetAddress.d.ts +705 -0
- package/dist/unstable/net/NetAddress.d.ts.map +1 -0
- package/dist/unstable/net/NetAddress.js +956 -0
- package/dist/unstable/net/NetAddress.js.map +1 -0
- package/dist/unstable/net/index.d.ts +16 -0
- package/dist/unstable/net/index.d.ts.map +1 -0
- package/dist/unstable/net/index.js +17 -0
- package/dist/unstable/net/index.js.map +1 -0
- package/dist/unstable/observability/OtlpExporter.d.ts +1 -0
- package/dist/unstable/observability/OtlpExporter.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpExporter.js +4 -6
- package/dist/unstable/observability/OtlpExporter.js.map +1 -1
- package/dist/unstable/observability/OtlpLogger.js +9 -9
- package/dist/unstable/observability/OtlpLogger.js.map +1 -1
- package/dist/unstable/observability/OtlpMetrics.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpMetrics.js +9 -8
- package/dist/unstable/observability/OtlpMetrics.js.map +1 -1
- package/dist/unstable/observability/OtlpResource.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpResource.js +2 -2
- package/dist/unstable/observability/OtlpResource.js.map +1 -1
- package/dist/unstable/observability/OtlpTracer.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpTracer.js +82 -55
- package/dist/unstable/observability/OtlpTracer.js.map +1 -1
- package/dist/unstable/observability/internal/otlpEnv.d.ts +1 -1
- package/dist/unstable/observability/internal/otlpEnv.d.ts.map +1 -1
- package/dist/unstable/observability/internal/otlpEnv.js +5 -9
- package/dist/unstable/observability/internal/otlpEnv.js.map +1 -1
- package/dist/unstable/persistence/PersistedCache.js +1 -1
- package/dist/unstable/persistence/PersistedCache.js.map +1 -1
- package/dist/unstable/persistence/PersistedQueue.d.ts +114 -14
- package/dist/unstable/persistence/PersistedQueue.d.ts.map +1 -1
- package/dist/unstable/persistence/PersistedQueue.js +799 -234
- package/dist/unstable/persistence/PersistedQueue.js.map +1 -1
- package/dist/unstable/persistence/RateLimiter.d.ts +28 -15
- package/dist/unstable/persistence/RateLimiter.d.ts.map +1 -1
- package/dist/unstable/persistence/RateLimiter.js +33 -41
- package/dist/unstable/persistence/RateLimiter.js.map +1 -1
- package/dist/unstable/process/ChildProcess.d.ts +8 -2
- package/dist/unstable/process/ChildProcess.d.ts.map +1 -1
- package/dist/unstable/process/ChildProcess.js +7 -2
- package/dist/unstable/process/ChildProcess.js.map +1 -1
- package/dist/unstable/process/ChildProcessSpawner.d.ts +1 -1
- package/dist/unstable/process/ChildProcessSpawner.d.ts.map +1 -1
- package/dist/unstable/process/ChildProcessSpawner.js +1 -1
- package/dist/unstable/process/ChildProcessSpawner.js.map +1 -1
- package/dist/unstable/reactivity/Atom.d.ts.map +1 -1
- package/dist/unstable/reactivity/Atom.js +6 -3
- package/dist/unstable/reactivity/Atom.js.map +1 -1
- package/dist/unstable/reactivity/AtomHttpApi.d.ts +3 -6
- package/dist/unstable/reactivity/AtomHttpApi.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomHttpApi.js +6 -3
- package/dist/unstable/reactivity/AtomHttpApi.js.map +1 -1
- package/dist/unstable/reactivity/AtomRegistry.js +2 -3
- package/dist/unstable/reactivity/AtomRegistry.js.map +1 -1
- package/dist/unstable/reactivity/AtomRpc.d.ts +2 -2
- package/dist/unstable/reactivity/AtomRpc.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRpc.js +1 -1
- package/dist/unstable/reactivity/AtomRpc.js.map +1 -1
- package/dist/unstable/reactivity/Hydration.d.ts +6 -4
- package/dist/unstable/reactivity/Hydration.d.ts.map +1 -1
- package/dist/unstable/reactivity/Hydration.js +20 -6
- package/dist/unstable/reactivity/Hydration.js.map +1 -1
- package/dist/unstable/reactivity/Reactivity.d.ts +26 -26
- package/dist/unstable/reactivity/Reactivity.d.ts.map +1 -1
- package/dist/unstable/reactivity/Reactivity.js +10 -12
- package/dist/unstable/reactivity/Reactivity.js.map +1 -1
- package/dist/unstable/rpc/RpcClient.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcClient.js +64 -64
- package/dist/unstable/rpc/RpcClient.js.map +1 -1
- package/dist/unstable/rpc/RpcClientError.d.ts +1 -1
- package/dist/unstable/rpc/RpcMessage.d.ts +3 -1
- package/dist/unstable/rpc/RpcMessage.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcMessage.js +1 -1
- package/dist/unstable/rpc/RpcMessage.js.map +1 -1
- package/dist/unstable/rpc/RpcMiddleware.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcMiddleware.js +7 -5
- package/dist/unstable/rpc/RpcMiddleware.js.map +1 -1
- package/dist/unstable/rpc/RpcSerialization.d.ts +5 -39
- package/dist/unstable/rpc/RpcSerialization.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcSerialization.js +22 -115
- package/dist/unstable/rpc/RpcSerialization.js.map +1 -1
- package/dist/unstable/rpc/RpcServer.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcServer.js +104 -57
- package/dist/unstable/rpc/RpcServer.js.map +1 -1
- package/dist/unstable/schema/Model.d.ts.map +1 -1
- package/dist/unstable/schema/Model.js +7 -6
- package/dist/unstable/schema/Model.js.map +1 -1
- package/dist/unstable/schema/VariantSchema.d.ts.map +1 -1
- package/dist/unstable/schema/VariantSchema.js +3 -0
- package/dist/unstable/schema/VariantSchema.js.map +1 -1
- package/dist/unstable/socket/Socket.d.ts +287 -102
- package/dist/unstable/socket/Socket.d.ts.map +1 -1
- package/dist/unstable/socket/Socket.js +408 -215
- package/dist/unstable/socket/Socket.js.map +1 -1
- package/dist/unstable/socket/SocketServer.d.ts +5 -32
- package/dist/unstable/socket/SocketServer.d.ts.map +1 -1
- package/dist/unstable/socket/SocketServer.js +3 -3
- package/dist/unstable/socket/SocketServer.js.map +1 -1
- package/dist/unstable/sql/SqlClient.d.ts +20 -0
- package/dist/unstable/sql/SqlClient.d.ts.map +1 -1
- package/dist/unstable/sql/SqlClient.js +14 -7
- package/dist/unstable/sql/SqlClient.js.map +1 -1
- package/dist/unstable/sql/SqlConnection.d.ts +15 -0
- package/dist/unstable/sql/SqlConnection.d.ts.map +1 -1
- package/dist/unstable/sql/SqlConnection.js.map +1 -1
- package/dist/unstable/sql/SqlModel.d.ts +1 -1
- package/dist/unstable/sql/SqlModel.d.ts.map +1 -1
- package/dist/unstable/sql/Statement.d.ts +13 -5
- package/dist/unstable/sql/Statement.d.ts.map +1 -1
- package/dist/unstable/sql/Statement.js +29 -15
- package/dist/unstable/sql/Statement.js.map +1 -1
- package/dist/unstable/workers/Transferable.js +1 -1
- package/dist/unstable/workers/Worker.d.ts.map +1 -1
- package/dist/unstable/workers/Worker.js +3 -1
- package/dist/unstable/workers/Worker.js.map +1 -1
- package/dist/unstable/workflow/Activity.d.ts +7 -0
- package/dist/unstable/workflow/Activity.d.ts.map +1 -1
- package/dist/unstable/workflow/Activity.js +14 -4
- package/dist/unstable/workflow/Activity.js.map +1 -1
- package/dist/unstable/workflow/DurableClock.js +1 -1
- package/dist/unstable/workflow/DurableClock.js.map +1 -1
- package/dist/unstable/workflow/DurableDeferred.d.ts +2 -2
- package/dist/unstable/workflow/DurableDeferred.d.ts.map +1 -1
- package/dist/unstable/workflow/DurableDeferred.js.map +1 -1
- package/dist/unstable/workflow/DurableQueue.d.ts +8 -0
- package/dist/unstable/workflow/DurableQueue.d.ts.map +1 -1
- package/dist/unstable/workflow/DurableQueue.js +8 -0
- package/dist/unstable/workflow/DurableQueue.js.map +1 -1
- package/dist/unstable/workflow/Workflow.d.ts +5 -0
- package/dist/unstable/workflow/Workflow.d.ts.map +1 -1
- package/dist/unstable/workflow/Workflow.js +70 -12
- package/dist/unstable/workflow/Workflow.js.map +1 -1
- package/dist/unstable/workflow/WorkflowEngine.d.ts +6 -0
- package/dist/unstable/workflow/WorkflowEngine.d.ts.map +1 -1
- package/dist/unstable/workflow/WorkflowEngine.js +11 -0
- package/dist/unstable/workflow/WorkflowEngine.js.map +1 -1
- package/package.json +7 -9
- package/src/Array.ts +118 -67
- package/src/BigDecimal.ts +50 -28
- package/src/ByteSize.ts +838 -0
- package/src/Cache.ts +17 -3
- package/src/Cause.ts +1 -1
- package/src/Channel.ts +183 -48
- package/src/Chunk.ts +65 -36
- package/src/Config.ts +237 -248
- package/src/ConfigProvider.ts +7 -8
- package/src/Context.ts +31 -0
- package/src/Cron.ts +2 -2
- package/src/Crypto.ts +3 -2
- package/src/Deferred.ts +7 -6
- package/src/Duration.ts +1 -1
- package/src/Effect.ts +226 -122
- package/src/Effectable.ts +78 -9
- package/src/Encoding.ts +101 -11
- package/src/Equal.ts +1 -1
- package/src/ExecutionPlan.ts +3 -0
- package/src/Fiber.ts +33 -8
- package/src/FiberHandle.ts +3 -3
- package/src/FiberMap.ts +19 -10
- package/src/FileSystem.ts +55 -230
- package/src/Formatter.ts +21 -3
- package/src/Graph.ts +55 -25
- package/src/Hash.ts +5 -16
- package/src/HashRing.ts +9 -2
- package/src/HashSet.ts +56 -0
- package/src/Iterable.ts +66 -41
- package/src/JsonPatch.ts +4 -4
- package/src/JsonPointer.ts +97 -4
- package/src/JsonSchema.ts +8 -26
- package/src/Layer.ts +59 -18
- package/src/LayerMap.ts +8 -6
- package/src/LayerRef.ts +7 -5
- package/src/Logger.ts +125 -18
- package/src/ManagedRuntime.ts +1 -1
- package/src/Match.ts +33 -14
- package/src/Metric.ts +24 -21
- package/src/MutableHashMap.ts +1 -1
- package/src/MutableHashSet.ts +1 -1
- package/src/MutableList.ts +18 -2
- package/src/Number.ts +7 -1
- package/src/Optic.ts +8 -4
- package/src/Option.ts +1 -1
- package/src/Order.ts +3 -1
- package/src/PartitionedSemaphore.ts +1 -2
- package/src/Path.ts +1 -1
- package/src/PlatformError.ts +1 -1
- package/src/Pool.ts +125 -8
- package/src/PrimaryKey.ts +1 -1
- package/src/PubSub.ts +32 -20
- package/src/Queue.ts +119 -28
- package/src/Random.ts +20 -6
- package/src/RcMap.ts +20 -13
- package/src/Redacted.ts +1 -1
- package/src/RequestResolver.ts +49 -26
- package/src/Result.ts +1 -1
- package/src/Scheduler.ts +21 -11
- package/src/Schema.ts +4809 -6368
- package/src/SchemaAST.ts +1031 -284
- package/src/SchemaGetter.ts +75 -21
- package/src/SchemaIssue.ts +259 -15
- package/src/SchemaParser.ts +2 -12
- package/src/SchemaRepresentation.ts +1593 -29
- package/src/SchemaTransformation.ts +145 -22
- package/src/ScopedCache.ts +10 -3
- package/src/Sink.ts +31 -15
- package/src/Stream.ts +294 -76
- package/src/String.ts +20 -9
- package/src/Struct.ts +8 -4
- package/src/SynchronizedRef.ts +3 -5
- package/src/Terminal.ts +3 -3
- package/src/Tracer.ts +43 -14
- package/src/Tuple.ts +3 -1
- package/src/TxChunk.ts +1 -1
- package/src/TxDeferred.ts +1 -1
- package/src/TxHashMap.ts +1 -1
- package/src/TxHashSet.ts +92 -11
- package/src/TxPriorityQueue.ts +1 -1
- package/src/TxPubSub.ts +1 -1
- package/src/TxQueue.ts +22 -17
- package/src/TxReentrantLock.ts +29 -1
- package/src/TxRef.ts +1 -1
- package/src/TxSemaphore.ts +1 -1
- package/src/TxSubscriptionRef.ts +1 -1
- package/src/Types.ts +40 -17
- package/src/Utils.ts +3 -1
- package/src/index.ts +5 -0
- package/src/internal/arbitrary/model.ts +701 -0
- package/src/internal/arbitrary/regexp.ts +855 -0
- package/src/internal/arbitrary/runner.ts +608 -0
- package/src/internal/arbitrary/schema.ts +1800 -0
- package/src/internal/core.ts +48 -22
- package/src/internal/count.ts +14 -0
- package/src/internal/dateTime.ts +8 -10
- package/src/internal/effect.ts +475 -295
- package/src/internal/graph.ts +6 -1
- package/src/internal/hashMap.ts +5 -3
- package/src/internal/hashSet.ts +1 -1
- package/src/internal/matcher.ts +34 -19
- package/src/internal/metric.ts +1 -1
- package/src/internal/option.ts +8 -6
- package/src/internal/random.ts +20 -7
- package/src/internal/rcRef.ts +10 -7
- package/src/internal/references.ts +1 -0
- package/src/internal/request.ts +12 -7
- package/src/internal/result.ts +15 -11
- package/src/internal/schema/annotations.ts +3 -3
- package/src/internal/schema/fromJsonSchemaDocument.ts +14 -29
- package/src/internal/schema/fromRepresentation.ts +5 -3
- package/src/internal/schema/{schema.ts → make.ts} +0 -40
- package/src/internal/schema/parser.ts +8 -0
- package/src/internal/schema/standardSchema.ts +125 -0
- package/src/internal/schema/toCodeDocument.ts +58 -44
- package/src/internal/schema/toCodec.ts +312 -0
- package/src/internal/schema/toDifferJsonPatch.ts +24 -0
- package/src/internal/schema/toEncoderXml.ts +110 -0
- package/src/internal/schema/toEquivalence.ts +76 -0
- package/src/internal/schema/toFormatter.ts +230 -0
- package/src/internal/schema/toIso.ts +20 -0
- package/src/internal/schema/toJsonSchemaDocument.ts +125 -67
- package/src/internal/schema/toRepresentation.ts +1 -1
- package/src/internal/schemaError.ts +8 -0
- package/src/internal/stream.ts +14 -6
- package/src/internal/tracer.ts +4 -0
- package/src/internal/trie.ts +5 -2
- package/src/internal/uuid.ts +4 -0
- package/src/testing/TestSchema.ts +36 -30
- package/src/testing/index.ts +0 -5
- package/src/unstable/ai/AiError.ts +69 -5
- package/src/unstable/ai/AnthropicStructuredOutput.ts +4 -1
- package/src/unstable/ai/Chat.ts +35 -36
- package/src/unstable/ai/EmbeddingModel.ts +27 -15
- package/src/unstable/ai/LanguageModel.ts +283 -100
- package/src/unstable/ai/McpServer.ts +36 -20
- package/src/unstable/ai/OpenAiStructuredOutput.ts +4 -1
- package/src/unstable/ai/Prompt.ts +19 -4
- package/src/unstable/ai/Response.ts +107 -189
- package/src/unstable/ai/Tokenizer.ts +4 -5
- package/src/unstable/ai/Tool.ts +58 -35
- package/src/unstable/ai/Toolkit.ts +43 -37
- package/src/unstable/ai/internal/structured-output.ts +5 -5
- package/src/unstable/arbitrary/Arbitrary.ts +715 -0
- package/src/unstable/arbitrary/index.ts +10 -0
- package/src/unstable/cli/Argument.ts +111 -115
- package/src/unstable/cli/CliError.ts +2 -0
- package/src/unstable/cli/CliOutput.ts +40 -3
- package/src/unstable/cli/Command.ts +74 -74
- package/src/unstable/cli/Completions.ts +4 -4
- package/src/unstable/cli/Flag.ts +158 -169
- package/src/unstable/cli/GlobalFlag.ts +13 -13
- package/src/unstable/cli/Param.ts +150 -159
- package/src/unstable/cli/Primitive.ts +75 -76
- package/src/unstable/cli/Prompt.ts +88 -87
- package/src/unstable/cli/internal/completions/descriptor.ts +23 -11
- package/src/unstable/cli/internal/completions/zsh.ts +2 -2
- package/src/unstable/cli/internal/config.ts +4 -4
- package/src/unstable/cli/internal/parser.ts +1 -1
- package/src/unstable/cli/internal/wizard.ts +18 -13
- package/src/unstable/cluster/ClusterSchema.ts +19 -1
- package/src/unstable/cluster/ClusterWorkflowEngine.ts +66 -16
- package/src/unstable/cluster/Entity.ts +3 -0
- package/src/unstable/cluster/EntityProxyServer.ts +6 -2
- package/src/unstable/cluster/Envelope.ts +3 -3
- package/src/unstable/cluster/HttpRunner.ts +7 -2
- package/src/unstable/cluster/MessageStorage.ts +62 -21
- package/src/unstable/cluster/Reply.ts +2 -2
- package/src/unstable/cluster/Sharding.ts +44 -19
- package/src/unstable/cluster/ShardingConfig.ts +23 -23
- package/src/unstable/cluster/SocketRunner.ts +5 -4
- package/src/unstable/cluster/SqlMessageStorage.ts +12 -8
- package/src/unstable/cluster/SqlRunnerStorage.ts +18 -10
- package/src/unstable/cluster/internal/clusterAbandon.ts +14 -0
- package/src/unstable/cluster/internal/entityManager.ts +12 -4
- package/src/unstable/cluster/internal/interruptors.ts +58 -1
- package/src/unstable/cluster/internal/resourceRef.ts +15 -7
- package/src/unstable/devtools/DevToolsClient.ts +13 -3
- package/src/unstable/encoding/Ini.ts +2 -0
- package/src/unstable/encoding/SchemaBinary.ts +150 -44
- package/src/unstable/encoding/Sse.ts +1 -1
- package/src/unstable/encoding/Toml.ts +7 -5
- package/src/unstable/encoding/Yaml.ts +18 -5
- package/src/unstable/encoding/index.ts +0 -5
- package/src/unstable/eventlog/Event.ts +7 -7
- package/src/unstable/eventlog/EventJournal.ts +9 -9
- package/src/unstable/eventlog/EventLog.ts +5 -5
- package/src/unstable/eventlog/EventLogMessage.ts +25 -15
- package/src/unstable/eventlog/EventLogRemote.ts +15 -4
- package/src/unstable/eventlog/EventLogServerUnencrypted.ts +2 -2
- package/src/unstable/eventlog/SqlEventJournal.ts +32 -9
- package/src/unstable/eventlog/SqlEventLogServerUnencrypted.ts +11 -1
- package/src/unstable/http/Cookies.ts +2 -102
- package/src/unstable/http/FetchHttpClient.ts +1 -1
- package/src/unstable/http/FindMyWay/internal/router.ts +139 -33
- package/src/unstable/http/FindMyWay.ts +15 -5
- package/src/unstable/http/Headers.ts +3 -48
- package/src/unstable/http/HttpBody.ts +107 -36
- package/src/unstable/http/HttpClient.ts +41 -30
- package/src/unstable/http/HttpClientRequest.ts +32 -18
- package/src/unstable/http/HttpClientResponse.ts +16 -3
- package/src/unstable/http/HttpEffect.ts +145 -73
- package/src/unstable/http/HttpIncomingMessage.ts +4 -4
- package/src/unstable/http/HttpMiddleware.ts +43 -24
- package/src/unstable/http/HttpPlatform.ts +62 -20
- package/src/unstable/http/HttpRouter.ts +27 -16
- package/src/unstable/http/HttpServer.ts +18 -57
- package/src/unstable/http/HttpServerRequest.ts +17 -15
- package/src/unstable/http/HttpServerRespondable.ts +1 -1
- package/src/unstable/http/HttpServerResponse.ts +49 -40
- package/src/unstable/http/HttpStaticServer.ts +30 -28
- package/src/unstable/http/Mime.ts +76 -0
- package/src/unstable/http/Multipart.ts +35 -18
- package/src/unstable/http/MultipartParser/internal/multipart.ts +10 -3
- package/src/unstable/http/MultipartParser.ts +4 -3
- package/src/unstable/http/UrlParams.ts +3 -161
- package/src/unstable/http/index.ts +5 -0
- package/src/unstable/http/internal/compression.ts +11 -12
- package/src/unstable/http/internal/headers.ts +7 -0
- package/src/unstable/http/internal/httpBody.ts +9 -0
- package/src/unstable/http/internal/mimeTypes.ts +395 -0
- package/src/unstable/httpapi/HttpApiBuilder.ts +52 -6
- package/src/unstable/httpapi/HttpApiClient.ts +44 -24
- package/src/unstable/httpapi/HttpApiEndpoint.ts +24 -11
- package/src/unstable/httpapi/HttpApiError.ts +3 -1
- package/src/unstable/httpapi/HttpApiMiddleware.ts +7 -5
- package/src/unstable/httpapi/HttpApiSchema.ts +14 -7
- package/src/unstable/httpapi/HttpApiTest.ts +6 -1
- package/src/unstable/httpapi/OpenApi.ts +32 -22
- package/src/unstable/net/IpInterface.ts +242 -0
- package/src/unstable/net/IpNetwork.ts +357 -0
- package/src/unstable/net/NetAddress.ts +1271 -0
- package/src/unstable/net/index.ts +20 -0
- package/src/unstable/observability/OtlpExporter.ts +5 -6
- package/src/unstable/observability/OtlpLogger.ts +9 -9
- package/src/unstable/observability/OtlpMetrics.ts +9 -8
- package/src/unstable/observability/OtlpResource.ts +5 -4
- package/src/unstable/observability/OtlpTracer.ts +103 -81
- package/src/unstable/observability/internal/otlpEnv.ts +10 -13
- package/src/unstable/persistence/PersistedCache.ts +1 -1
- package/src/unstable/persistence/PersistedQueue.ts +1100 -291
- package/src/unstable/persistence/RateLimiter.ts +64 -58
- package/src/unstable/process/ChildProcess.ts +15 -4
- package/src/unstable/process/ChildProcessSpawner.ts +1 -1
- package/src/unstable/reactivity/Atom.ts +6 -3
- package/src/unstable/reactivity/AtomHttpApi.ts +21 -10
- package/src/unstable/reactivity/AtomRegistry.ts +2 -4
- package/src/unstable/reactivity/AtomRpc.ts +6 -5
- package/src/unstable/reactivity/Hydration.ts +26 -7
- package/src/unstable/reactivity/Reactivity.ts +49 -36
- package/src/unstable/rpc/RpcClient.ts +62 -59
- package/src/unstable/rpc/RpcMessage.ts +3 -1
- package/src/unstable/rpc/RpcMiddleware.ts +7 -5
- package/src/unstable/rpc/RpcSerialization.ts +27 -117
- package/src/unstable/rpc/RpcServer.ts +143 -80
- package/src/unstable/schema/Model.ts +8 -7
- package/src/unstable/schema/VariantSchema.ts +3 -0
- package/src/unstable/socket/Socket.ts +714 -383
- package/src/unstable/socket/SocketServer.ts +5 -35
- package/src/unstable/sql/SqlClient.ts +42 -7
- package/src/unstable/sql/SqlConnection.ts +18 -0
- package/src/unstable/sql/SqlModel.ts +1 -1
- package/src/unstable/sql/Statement.ts +46 -20
- package/src/unstable/workers/Transferable.ts +1 -1
- package/src/unstable/workers/Worker.ts +3 -1
- package/src/unstable/workflow/Activity.ts +20 -9
- package/src/unstable/workflow/DurableClock.ts +1 -1
- package/src/unstable/workflow/DurableDeferred.ts +6 -0
- package/src/unstable/workflow/DurableQueue.ts +8 -0
- package/src/unstable/workflow/Workflow.ts +105 -28
- package/src/unstable/workflow/WorkflowEngine.ts +22 -0
- package/dist/internal/schema/schema.d.ts.map +0 -1
- package/dist/internal/schema/schema.js.map +0 -1
- package/dist/internal/schema/toArbitrary.d.ts +0 -2
- package/dist/internal/schema/toArbitrary.d.ts.map +0 -1
- package/dist/internal/schema/toArbitrary.js +0 -705
- package/dist/internal/schema/toArbitrary.js.map +0 -1
- package/dist/testing/FastCheck.d.ts +0 -90
- package/dist/testing/FastCheck.d.ts.map +0 -1
- package/dist/testing/FastCheck.js +0 -90
- package/dist/testing/FastCheck.js.map +0 -1
- package/dist/unstable/encoding/Msgpack.d.ts +0 -185
- package/dist/unstable/encoding/Msgpack.d.ts.map +0 -1
- package/dist/unstable/encoding/Msgpack.js +0 -227
- package/dist/unstable/encoding/Msgpack.js.map +0 -1
- package/src/internal/schema/toArbitrary.ts +0 -843
- package/src/testing/FastCheck.ts +0 -90
- package/src/unstable/encoding/Msgpack.ts +0 -432
- /package/dist/internal/{schema → arbitrary}/schema.d.ts +0 -0
|
@@ -42,8 +42,8 @@ export declare namespace ToJsonSchema {
|
|
|
42
42
|
* **Gotchas**
|
|
43
43
|
*
|
|
44
44
|
* Treat the input schemas as immutable. The returned value must be a valid JSON Schema object graph and must not be
|
|
45
|
-
* mutated after this function returns.
|
|
46
|
-
* compilation.
|
|
45
|
+
* mutated after this function returns. Local `$defs` references must use valid JSON Pointer URI fragments. Return a
|
|
46
|
+
* new object graph to produce different output during a later compilation.
|
|
47
47
|
*
|
|
48
48
|
* @category models
|
|
49
49
|
* @since 4.0.0
|
|
@@ -253,7 +253,12 @@ export interface Literal extends Keyword<"Literal"> {
|
|
|
253
253
|
readonly literal: SchemaAST.LiteralValue;
|
|
254
254
|
}
|
|
255
255
|
/**
|
|
256
|
-
* A unique
|
|
256
|
+
* A unique symbol representation.
|
|
257
|
+
*
|
|
258
|
+
* **Details**
|
|
259
|
+
*
|
|
260
|
+
* Globally registered symbols have an exact JSON string representation. Local
|
|
261
|
+
* symbols have no JSON representation.
|
|
257
262
|
*
|
|
258
263
|
* @category models
|
|
259
264
|
* @since 4.0.0
|
|
@@ -274,7 +279,7 @@ export interface ObjectKeyword extends Keyword<"ObjectKeyword"> {
|
|
|
274
279
|
*
|
|
275
280
|
* **Details**
|
|
276
281
|
*
|
|
277
|
-
* Enum members are stored as native string or number values. Persistent
|
|
282
|
+
* Enum members are stored as native string or finite number values. Persistent
|
|
278
283
|
* codecs add an explicit type discriminator when encoding them.
|
|
279
284
|
*
|
|
280
285
|
* @category models
|
|
@@ -364,7 +369,7 @@ export interface Objects extends Keyword<"Objects"> {
|
|
|
364
369
|
*/
|
|
365
370
|
export interface Union extends Keyword<"Union"> {
|
|
366
371
|
readonly types: ReadonlyArray<Representation>;
|
|
367
|
-
readonly
|
|
372
|
+
readonly options?: SchemaAST.UnionOptions | undefined;
|
|
368
373
|
}
|
|
369
374
|
/**
|
|
370
375
|
* The structural schema representation.
|
|
@@ -505,21 +510,1094 @@ export type AnyReviver = Reviver<any>;
|
|
|
505
510
|
* @category constructors
|
|
506
511
|
* @since 4.0.0
|
|
507
512
|
*/
|
|
508
|
-
export declare const
|
|
513
|
+
export declare const makeReviverDeclaration: <P>(id: string, payloadSchema: Schema.Decoder<P>, revive: DeclarationReviver<P>["revive"]) => DeclarationReviver<P>;
|
|
509
514
|
/**
|
|
510
515
|
* Creates a filter reviver while inferring its payload type from `payloadSchema`.
|
|
511
516
|
*
|
|
512
517
|
* @category constructors
|
|
513
518
|
* @since 4.0.0
|
|
514
519
|
*/
|
|
515
|
-
export declare const
|
|
520
|
+
export declare const makeReviverFilter: <P>(id: string, payloadSchema: Schema.Decoder<P>, revive: FilterReviver<P>["revive"]) => FilterReviver<P>;
|
|
516
521
|
/**
|
|
517
522
|
* Creates a filter group reviver while inferring its payload type from `payloadSchema`.
|
|
518
523
|
*
|
|
519
524
|
* @category constructors
|
|
520
525
|
* @since 4.0.0
|
|
521
526
|
*/
|
|
522
|
-
export declare const
|
|
527
|
+
export declare const makeReviverFilterGroup: <P>(id: string, payloadSchema: Schema.Decoder<P>, revive: FilterGroupReviver<P>["revive"]) => FilterGroupReviver<P>;
|
|
528
|
+
type ErrorRepresentationOptions = {
|
|
529
|
+
readonly includeStack?: true | undefined;
|
|
530
|
+
readonly excludeCause?: true | undefined;
|
|
531
|
+
};
|
|
532
|
+
type ErrorRepresentationPayload = ErrorRepresentationOptions | null;
|
|
533
|
+
declare const ErrorRepresentationPayload: Schema.Decoder<ErrorRepresentationPayload>;
|
|
534
|
+
type RedactedRepresentationOptions = {
|
|
535
|
+
readonly label?: string | undefined;
|
|
536
|
+
readonly disallowJsonEncode?: true | undefined;
|
|
537
|
+
};
|
|
538
|
+
type RedactedRepresentationPayload = RedactedRepresentationOptions | null;
|
|
539
|
+
declare const RedactedRepresentationPayload: Schema.Decoder<RedactedRepresentationPayload>;
|
|
540
|
+
/**
|
|
541
|
+
* Reviver for persisted `isTrimmed` checks.
|
|
542
|
+
*
|
|
543
|
+
* **When to use**
|
|
544
|
+
*
|
|
545
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isTrimmed}.
|
|
546
|
+
*
|
|
547
|
+
* @see {@link Schema.isTrimmed} for creating the corresponding check
|
|
548
|
+
*
|
|
549
|
+
* @category validation
|
|
550
|
+
* @since 4.0.0
|
|
551
|
+
*/
|
|
552
|
+
export declare const isTrimmedReviver: FilterReviver<null>;
|
|
553
|
+
/**
|
|
554
|
+
* Reviver for persisted `isPattern` checks.
|
|
555
|
+
*
|
|
556
|
+
* **When to use**
|
|
557
|
+
*
|
|
558
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isPattern}.
|
|
559
|
+
*
|
|
560
|
+
* @see {@link Schema.isPattern} for creating the corresponding check
|
|
561
|
+
*
|
|
562
|
+
* @category validation
|
|
563
|
+
* @since 4.0.0
|
|
564
|
+
*/
|
|
565
|
+
export declare const isPatternReviver: FilterReviver<{
|
|
566
|
+
readonly source: string;
|
|
567
|
+
readonly flags: string;
|
|
568
|
+
}>;
|
|
569
|
+
/**
|
|
570
|
+
* Reviver for persisted `isStringFinite` checks.
|
|
571
|
+
*
|
|
572
|
+
* **When to use**
|
|
573
|
+
*
|
|
574
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isStringFinite}.
|
|
575
|
+
*
|
|
576
|
+
* @see {@link Schema.isStringFinite} for creating the corresponding check
|
|
577
|
+
*
|
|
578
|
+
* @category validation
|
|
579
|
+
* @since 4.0.0
|
|
580
|
+
*/
|
|
581
|
+
export declare const isStringFiniteReviver: FilterReviver<null>;
|
|
582
|
+
/**
|
|
583
|
+
* Reviver for persisted `isStringBigInt` checks.
|
|
584
|
+
*
|
|
585
|
+
* **When to use**
|
|
586
|
+
*
|
|
587
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isStringBigInt}.
|
|
588
|
+
*
|
|
589
|
+
* @see {@link Schema.isStringBigInt} for creating the corresponding check
|
|
590
|
+
*
|
|
591
|
+
* @category validation
|
|
592
|
+
* @since 4.0.0
|
|
593
|
+
*/
|
|
594
|
+
export declare const isStringBigIntReviver: FilterReviver<null>;
|
|
595
|
+
/**
|
|
596
|
+
* Reviver for persisted `isStringSymbol` checks.
|
|
597
|
+
*
|
|
598
|
+
* **When to use**
|
|
599
|
+
*
|
|
600
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isStringSymbol}.
|
|
601
|
+
*
|
|
602
|
+
* @see {@link Schema.isStringSymbol} for creating the corresponding check
|
|
603
|
+
*
|
|
604
|
+
* @category validation
|
|
605
|
+
* @since 4.0.0
|
|
606
|
+
*/
|
|
607
|
+
export declare const isStringSymbolReviver: FilterReviver<null>;
|
|
608
|
+
/**
|
|
609
|
+
* Reviver for persisted `isUUID` checks.
|
|
610
|
+
*
|
|
611
|
+
* **When to use**
|
|
612
|
+
*
|
|
613
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isUUID}.
|
|
614
|
+
*
|
|
615
|
+
* @see {@link Schema.isUUID} for creating the corresponding check
|
|
616
|
+
*
|
|
617
|
+
* @category validation
|
|
618
|
+
* @since 4.0.0
|
|
619
|
+
*/
|
|
620
|
+
export declare const isUUIDReviver: FilterReviver<{
|
|
621
|
+
readonly version: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | null;
|
|
622
|
+
}>;
|
|
623
|
+
/**
|
|
624
|
+
* Reviver for persisted `isGUID` checks.
|
|
625
|
+
*
|
|
626
|
+
* **When to use**
|
|
627
|
+
*
|
|
628
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isGUID}.
|
|
629
|
+
*
|
|
630
|
+
* @see {@link Schema.isGUID} for creating the corresponding check
|
|
631
|
+
*
|
|
632
|
+
* @category validation
|
|
633
|
+
* @since 4.0.0
|
|
634
|
+
*/
|
|
635
|
+
export declare const isGUIDReviver: FilterReviver<null>;
|
|
636
|
+
/**
|
|
637
|
+
* Reviver for persisted `isULID` checks.
|
|
638
|
+
*
|
|
639
|
+
* **When to use**
|
|
640
|
+
*
|
|
641
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isULID}.
|
|
642
|
+
*
|
|
643
|
+
* @see {@link Schema.isULID} for creating the corresponding check
|
|
644
|
+
*
|
|
645
|
+
* @category validation
|
|
646
|
+
* @since 4.0.0
|
|
647
|
+
*/
|
|
648
|
+
export declare const isULIDReviver: FilterReviver<null>;
|
|
649
|
+
/**
|
|
650
|
+
* Reviver for persisted `isBase64` checks.
|
|
651
|
+
*
|
|
652
|
+
* **When to use**
|
|
653
|
+
*
|
|
654
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isBase64}.
|
|
655
|
+
*
|
|
656
|
+
* @see {@link Schema.isBase64} for creating the corresponding check
|
|
657
|
+
*
|
|
658
|
+
* @category validation
|
|
659
|
+
* @since 4.0.0
|
|
660
|
+
*/
|
|
661
|
+
export declare const isBase64Reviver: FilterReviver<null>;
|
|
662
|
+
/**
|
|
663
|
+
* Reviver for persisted `isBase64Url` checks.
|
|
664
|
+
*
|
|
665
|
+
* **When to use**
|
|
666
|
+
*
|
|
667
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isBase64Url}.
|
|
668
|
+
*
|
|
669
|
+
* @see {@link Schema.isBase64Url} for creating the corresponding check
|
|
670
|
+
*
|
|
671
|
+
* @category validation
|
|
672
|
+
* @since 4.0.0
|
|
673
|
+
*/
|
|
674
|
+
export declare const isBase64UrlReviver: FilterReviver<null>;
|
|
675
|
+
/**
|
|
676
|
+
* Reviver for persisted `isStartsWith` checks.
|
|
677
|
+
*
|
|
678
|
+
* **When to use**
|
|
679
|
+
*
|
|
680
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isStartsWith}.
|
|
681
|
+
*
|
|
682
|
+
* @see {@link Schema.isStartsWith} for creating the corresponding check
|
|
683
|
+
*
|
|
684
|
+
* @category validation
|
|
685
|
+
* @since 4.0.0
|
|
686
|
+
*/
|
|
687
|
+
export declare const isStartsWithReviver: FilterReviver<{
|
|
688
|
+
readonly startsWith: string;
|
|
689
|
+
}>;
|
|
690
|
+
/**
|
|
691
|
+
* Reviver for persisted `isEndsWith` checks.
|
|
692
|
+
*
|
|
693
|
+
* **When to use**
|
|
694
|
+
*
|
|
695
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isEndsWith}.
|
|
696
|
+
*
|
|
697
|
+
* @see {@link Schema.isEndsWith} for creating the corresponding check
|
|
698
|
+
*
|
|
699
|
+
* @category validation
|
|
700
|
+
* @since 4.0.0
|
|
701
|
+
*/
|
|
702
|
+
export declare const isEndsWithReviver: FilterReviver<{
|
|
703
|
+
readonly endsWith: string;
|
|
704
|
+
}>;
|
|
705
|
+
/**
|
|
706
|
+
* Reviver for persisted `isIncludes` checks.
|
|
707
|
+
*
|
|
708
|
+
* **When to use**
|
|
709
|
+
*
|
|
710
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isIncludes}.
|
|
711
|
+
*
|
|
712
|
+
* @see {@link Schema.isIncludes} for creating the corresponding check
|
|
713
|
+
*
|
|
714
|
+
* @category validation
|
|
715
|
+
* @since 4.0.0
|
|
716
|
+
*/
|
|
717
|
+
export declare const isIncludesReviver: FilterReviver<{
|
|
718
|
+
readonly includes: string;
|
|
719
|
+
}>;
|
|
720
|
+
/**
|
|
721
|
+
* Reviver for persisted `isUppercased` checks.
|
|
722
|
+
*
|
|
723
|
+
* **When to use**
|
|
724
|
+
*
|
|
725
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isUppercased}.
|
|
726
|
+
*
|
|
727
|
+
* @see {@link Schema.isUppercased} for creating the corresponding check
|
|
728
|
+
*
|
|
729
|
+
* @category validation
|
|
730
|
+
* @since 4.0.0
|
|
731
|
+
*/
|
|
732
|
+
export declare const isUppercasedReviver: FilterReviver<null>;
|
|
733
|
+
/**
|
|
734
|
+
* Reviver for persisted `isLowercased` checks.
|
|
735
|
+
*
|
|
736
|
+
* **When to use**
|
|
737
|
+
*
|
|
738
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isLowercased}.
|
|
739
|
+
*
|
|
740
|
+
* @see {@link Schema.isLowercased} for creating the corresponding check
|
|
741
|
+
*
|
|
742
|
+
* @category validation
|
|
743
|
+
* @since 4.0.0
|
|
744
|
+
*/
|
|
745
|
+
export declare const isLowercasedReviver: FilterReviver<null>;
|
|
746
|
+
/**
|
|
747
|
+
* Reviver for persisted `isCapitalized` checks.
|
|
748
|
+
*
|
|
749
|
+
* **When to use**
|
|
750
|
+
*
|
|
751
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isCapitalized}.
|
|
752
|
+
*
|
|
753
|
+
* @see {@link Schema.isCapitalized} for creating the corresponding check
|
|
754
|
+
*
|
|
755
|
+
* @category validation
|
|
756
|
+
* @since 4.0.0
|
|
757
|
+
*/
|
|
758
|
+
export declare const isCapitalizedReviver: FilterReviver<null>;
|
|
759
|
+
/**
|
|
760
|
+
* Reviver for persisted `isUncapitalized` checks.
|
|
761
|
+
*
|
|
762
|
+
* **When to use**
|
|
763
|
+
*
|
|
764
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isUncapitalized}.
|
|
765
|
+
*
|
|
766
|
+
* @see {@link Schema.isUncapitalized} for creating the corresponding check
|
|
767
|
+
*
|
|
768
|
+
* @category validation
|
|
769
|
+
* @since 4.0.0
|
|
770
|
+
*/
|
|
771
|
+
export declare const isUncapitalizedReviver: FilterReviver<null>;
|
|
772
|
+
/**
|
|
773
|
+
* Reviver for persisted `isFinite` checks.
|
|
774
|
+
*
|
|
775
|
+
* **When to use**
|
|
776
|
+
*
|
|
777
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isFinite}.
|
|
778
|
+
*
|
|
779
|
+
* @see {@link Schema.isFinite} for creating the corresponding check
|
|
780
|
+
*
|
|
781
|
+
* @category validation
|
|
782
|
+
* @since 4.0.0
|
|
783
|
+
*/
|
|
784
|
+
export declare const isFiniteReviver: FilterReviver<null>;
|
|
785
|
+
/**
|
|
786
|
+
* Reviver for persisted `isGreaterThan` checks.
|
|
787
|
+
*
|
|
788
|
+
* **When to use**
|
|
789
|
+
*
|
|
790
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isGreaterThan}.
|
|
791
|
+
*
|
|
792
|
+
* @see {@link Schema.isGreaterThan} for creating the corresponding check
|
|
793
|
+
*
|
|
794
|
+
* @category validation
|
|
795
|
+
* @since 4.0.0
|
|
796
|
+
*/
|
|
797
|
+
export declare const isGreaterThanReviver: FilterReviver<{
|
|
798
|
+
readonly exclusiveMinimum: number;
|
|
799
|
+
}>;
|
|
800
|
+
/**
|
|
801
|
+
* Reviver for persisted `isGreaterThanOrEqualTo` checks.
|
|
802
|
+
*
|
|
803
|
+
* **When to use**
|
|
804
|
+
*
|
|
805
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isGreaterThanOrEqualTo}.
|
|
806
|
+
*
|
|
807
|
+
* @see {@link Schema.isGreaterThanOrEqualTo} for creating the corresponding check
|
|
808
|
+
*
|
|
809
|
+
* @category validation
|
|
810
|
+
* @since 4.0.0
|
|
811
|
+
*/
|
|
812
|
+
export declare const isGreaterThanOrEqualToReviver: FilterReviver<{
|
|
813
|
+
readonly minimum: number;
|
|
814
|
+
}>;
|
|
815
|
+
/**
|
|
816
|
+
* Reviver for persisted `isLessThan` checks.
|
|
817
|
+
*
|
|
818
|
+
* **When to use**
|
|
819
|
+
*
|
|
820
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isLessThan}.
|
|
821
|
+
*
|
|
822
|
+
* @see {@link Schema.isLessThan} for creating the corresponding check
|
|
823
|
+
*
|
|
824
|
+
* @category validation
|
|
825
|
+
* @since 4.0.0
|
|
826
|
+
*/
|
|
827
|
+
export declare const isLessThanReviver: FilterReviver<{
|
|
828
|
+
readonly exclusiveMaximum: number;
|
|
829
|
+
}>;
|
|
830
|
+
/**
|
|
831
|
+
* Reviver for persisted `isLessThanOrEqualTo` checks.
|
|
832
|
+
*
|
|
833
|
+
* **When to use**
|
|
834
|
+
*
|
|
835
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isLessThanOrEqualTo}.
|
|
836
|
+
*
|
|
837
|
+
* @see {@link Schema.isLessThanOrEqualTo} for creating the corresponding check
|
|
838
|
+
*
|
|
839
|
+
* @category validation
|
|
840
|
+
* @since 4.0.0
|
|
841
|
+
*/
|
|
842
|
+
export declare const isLessThanOrEqualToReviver: FilterReviver<{
|
|
843
|
+
readonly maximum: number;
|
|
844
|
+
}>;
|
|
845
|
+
/**
|
|
846
|
+
* Reviver for persisted `isBetween` checks.
|
|
847
|
+
*
|
|
848
|
+
* **When to use**
|
|
849
|
+
*
|
|
850
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isBetween}.
|
|
851
|
+
*
|
|
852
|
+
* @see {@link Schema.isBetween} for creating the corresponding check
|
|
853
|
+
*
|
|
854
|
+
* @category validation
|
|
855
|
+
* @since 4.0.0
|
|
856
|
+
*/
|
|
857
|
+
export declare const isBetweenReviver: FilterReviver<{
|
|
858
|
+
readonly minimum: number;
|
|
859
|
+
readonly maximum: number;
|
|
860
|
+
readonly exclusiveMinimum?: true | undefined;
|
|
861
|
+
readonly exclusiveMaximum?: true | undefined;
|
|
862
|
+
}>;
|
|
863
|
+
/**
|
|
864
|
+
* Reviver for persisted `isMultipleOf` checks.
|
|
865
|
+
*
|
|
866
|
+
* **When to use**
|
|
867
|
+
*
|
|
868
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isMultipleOf}.
|
|
869
|
+
*
|
|
870
|
+
* @see {@link Schema.isMultipleOf} for creating the corresponding check
|
|
871
|
+
*
|
|
872
|
+
* @category validation
|
|
873
|
+
* @since 4.0.0
|
|
874
|
+
*/
|
|
875
|
+
export declare const isMultipleOfReviver: FilterReviver<{
|
|
876
|
+
readonly divisor: number;
|
|
877
|
+
}>;
|
|
878
|
+
/**
|
|
879
|
+
* Reviver for persisted `isInt` checks.
|
|
880
|
+
*
|
|
881
|
+
* **When to use**
|
|
882
|
+
*
|
|
883
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isInt}.
|
|
884
|
+
*
|
|
885
|
+
* @see {@link Schema.isInt} for creating the corresponding check
|
|
886
|
+
*
|
|
887
|
+
* @category validation
|
|
888
|
+
* @since 4.0.0
|
|
889
|
+
*/
|
|
890
|
+
export declare const isIntReviver: FilterReviver<null>;
|
|
891
|
+
/**
|
|
892
|
+
* Reviver for persisted `isMinLength` checks.
|
|
893
|
+
*
|
|
894
|
+
* **When to use**
|
|
895
|
+
*
|
|
896
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isMinLength}.
|
|
897
|
+
*
|
|
898
|
+
* @see {@link Schema.isMinLength} for creating the corresponding check
|
|
899
|
+
*
|
|
900
|
+
* @category validation
|
|
901
|
+
* @since 4.0.0
|
|
902
|
+
*/
|
|
903
|
+
export declare const isMinLengthReviver: FilterReviver<{
|
|
904
|
+
readonly minLength: number;
|
|
905
|
+
}>;
|
|
906
|
+
/**
|
|
907
|
+
* Reviver for persisted `isMaxLength` checks.
|
|
908
|
+
*
|
|
909
|
+
* **When to use**
|
|
910
|
+
*
|
|
911
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isMaxLength}.
|
|
912
|
+
*
|
|
913
|
+
* @see {@link Schema.isMaxLength} for creating the corresponding check
|
|
914
|
+
*
|
|
915
|
+
* @category validation
|
|
916
|
+
* @since 4.0.0
|
|
917
|
+
*/
|
|
918
|
+
export declare const isMaxLengthReviver: FilterReviver<{
|
|
919
|
+
readonly maxLength: number;
|
|
920
|
+
}>;
|
|
921
|
+
/**
|
|
922
|
+
* Reviver for persisted `isLengthBetween` checks.
|
|
923
|
+
*
|
|
924
|
+
* **When to use**
|
|
925
|
+
*
|
|
926
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isLengthBetween}.
|
|
927
|
+
*
|
|
928
|
+
* @see {@link Schema.isLengthBetween} for creating the corresponding check
|
|
929
|
+
*
|
|
930
|
+
* @category validation
|
|
931
|
+
* @since 4.0.0
|
|
932
|
+
*/
|
|
933
|
+
export declare const isLengthBetweenReviver: FilterReviver<{
|
|
934
|
+
readonly minimum: number;
|
|
935
|
+
readonly maximum: number;
|
|
936
|
+
}>;
|
|
937
|
+
/**
|
|
938
|
+
* Reviver for persisted `isMinSize` checks.
|
|
939
|
+
*
|
|
940
|
+
* **When to use**
|
|
941
|
+
*
|
|
942
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isMinSize}.
|
|
943
|
+
*
|
|
944
|
+
* @see {@link Schema.isMinSize} for creating the corresponding check
|
|
945
|
+
*
|
|
946
|
+
* @category validation
|
|
947
|
+
* @since 4.0.0
|
|
948
|
+
*/
|
|
949
|
+
export declare const isMinSizeReviver: FilterReviver<{
|
|
950
|
+
readonly minSize: number;
|
|
951
|
+
}>;
|
|
952
|
+
/**
|
|
953
|
+
* Reviver for persisted `isMaxSize` checks.
|
|
954
|
+
*
|
|
955
|
+
* **When to use**
|
|
956
|
+
*
|
|
957
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isMaxSize}.
|
|
958
|
+
*
|
|
959
|
+
* @see {@link Schema.isMaxSize} for creating the corresponding check
|
|
960
|
+
*
|
|
961
|
+
* @category validation
|
|
962
|
+
* @since 4.0.0
|
|
963
|
+
*/
|
|
964
|
+
export declare const isMaxSizeReviver: FilterReviver<{
|
|
965
|
+
readonly maxSize: number;
|
|
966
|
+
}>;
|
|
967
|
+
/**
|
|
968
|
+
* Reviver for persisted `isSizeBetween` checks.
|
|
969
|
+
*
|
|
970
|
+
* **When to use**
|
|
971
|
+
*
|
|
972
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isSizeBetween}.
|
|
973
|
+
*
|
|
974
|
+
* @see {@link Schema.isSizeBetween} for creating the corresponding check
|
|
975
|
+
*
|
|
976
|
+
* @category validation
|
|
977
|
+
* @since 4.0.0
|
|
978
|
+
*/
|
|
979
|
+
export declare const isSizeBetweenReviver: FilterReviver<{
|
|
980
|
+
readonly minimum: number;
|
|
981
|
+
readonly maximum: number;
|
|
982
|
+
}>;
|
|
983
|
+
/**
|
|
984
|
+
* Reviver for persisted `isMinProperties` checks.
|
|
985
|
+
*
|
|
986
|
+
* **When to use**
|
|
987
|
+
*
|
|
988
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isMinProperties}.
|
|
989
|
+
*
|
|
990
|
+
* @see {@link Schema.isMinProperties} for creating the corresponding check
|
|
991
|
+
*
|
|
992
|
+
* @category validation
|
|
993
|
+
* @since 4.0.0
|
|
994
|
+
*/
|
|
995
|
+
export declare const isMinPropertiesReviver: FilterReviver<{
|
|
996
|
+
readonly minProperties: number;
|
|
997
|
+
}>;
|
|
998
|
+
/**
|
|
999
|
+
* Reviver for persisted `isMaxProperties` checks.
|
|
1000
|
+
*
|
|
1001
|
+
* **When to use**
|
|
1002
|
+
*
|
|
1003
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isMaxProperties}.
|
|
1004
|
+
*
|
|
1005
|
+
* @see {@link Schema.isMaxProperties} for creating the corresponding check
|
|
1006
|
+
*
|
|
1007
|
+
* @category validation
|
|
1008
|
+
* @since 4.0.0
|
|
1009
|
+
*/
|
|
1010
|
+
export declare const isMaxPropertiesReviver: FilterReviver<{
|
|
1011
|
+
readonly maxProperties: number;
|
|
1012
|
+
}>;
|
|
1013
|
+
/**
|
|
1014
|
+
* Reviver for persisted `isPropertiesLengthBetween` checks.
|
|
1015
|
+
*
|
|
1016
|
+
* **When to use**
|
|
1017
|
+
*
|
|
1018
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isPropertiesLengthBetween}.
|
|
1019
|
+
*
|
|
1020
|
+
* @see {@link Schema.isPropertiesLengthBetween} for creating the corresponding check
|
|
1021
|
+
*
|
|
1022
|
+
* @category validation
|
|
1023
|
+
* @since 4.0.0
|
|
1024
|
+
*/
|
|
1025
|
+
export declare const isPropertiesLengthBetweenReviver: FilterReviver<{
|
|
1026
|
+
readonly minimum: number;
|
|
1027
|
+
readonly maximum: number;
|
|
1028
|
+
}>;
|
|
1029
|
+
/**
|
|
1030
|
+
* Reviver for persisted `isPropertyNames` checks.
|
|
1031
|
+
*
|
|
1032
|
+
* **When to use**
|
|
1033
|
+
*
|
|
1034
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isPropertyNames}.
|
|
1035
|
+
*
|
|
1036
|
+
* @see {@link Schema.isPropertyNames} for creating the corresponding check
|
|
1037
|
+
*
|
|
1038
|
+
* @category validation
|
|
1039
|
+
* @since 4.0.0
|
|
1040
|
+
*/
|
|
1041
|
+
export declare const isPropertyNamesReviver: FilterReviver<null>;
|
|
1042
|
+
/**
|
|
1043
|
+
* Reviver for persisted `isUnique` checks.
|
|
1044
|
+
*
|
|
1045
|
+
* **When to use**
|
|
1046
|
+
*
|
|
1047
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isUnique}.
|
|
1048
|
+
*
|
|
1049
|
+
* @see {@link Schema.isUnique} for creating the corresponding check
|
|
1050
|
+
*
|
|
1051
|
+
* @category validation
|
|
1052
|
+
* @since 4.0.0
|
|
1053
|
+
*/
|
|
1054
|
+
export declare const isUniqueReviver: FilterReviver<null>;
|
|
1055
|
+
/**
|
|
1056
|
+
* Reviver for persisted `isUniqueKey` checks.
|
|
1057
|
+
*
|
|
1058
|
+
* **When to use**
|
|
1059
|
+
*
|
|
1060
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isUniqueKey}.
|
|
1061
|
+
*
|
|
1062
|
+
* @see {@link Schema.isUniqueKey} for creating the corresponding check
|
|
1063
|
+
* @category validation
|
|
1064
|
+
* @since 4.0.0
|
|
1065
|
+
*/
|
|
1066
|
+
export declare const isUniqueKeyReviver: FilterReviver<null>;
|
|
1067
|
+
/**
|
|
1068
|
+
* Reviver for persisted `Option` declarations.
|
|
1069
|
+
*
|
|
1070
|
+
* **When to use**
|
|
1071
|
+
*
|
|
1072
|
+
* Use when reconstructing documents that may contain schemas created by {@link Schema.Option}.
|
|
1073
|
+
*
|
|
1074
|
+
* @see {@link Schema.Option} for creating the corresponding schema
|
|
1075
|
+
*
|
|
1076
|
+
* @category schemas
|
|
1077
|
+
* @since 4.0.0
|
|
1078
|
+
*/
|
|
1079
|
+
export declare const OptionReviver: DeclarationReviver<null>;
|
|
1080
|
+
/**
|
|
1081
|
+
* Reviver for persisted {@link Schema.Result} declarations.
|
|
1082
|
+
*
|
|
1083
|
+
* **When to use**
|
|
1084
|
+
*
|
|
1085
|
+
* Use when reconstructing documents that may contain schemas created by {@link Schema.Result}.
|
|
1086
|
+
*
|
|
1087
|
+
* @see {@link Schema.Result} for creating the corresponding schema
|
|
1088
|
+
*
|
|
1089
|
+
* @category schemas
|
|
1090
|
+
* @since 4.0.0
|
|
1091
|
+
*/
|
|
1092
|
+
export declare const ResultReviver: DeclarationReviver<null>;
|
|
1093
|
+
/**
|
|
1094
|
+
* Reviver for persisted {@link Schema.Redacted} declarations.
|
|
1095
|
+
*
|
|
1096
|
+
* **When to use**
|
|
1097
|
+
*
|
|
1098
|
+
* Use when reconstructing documents that may contain schemas created by {@link Schema.Redacted}.
|
|
1099
|
+
*
|
|
1100
|
+
* @see {@link Schema.Redacted} for creating the corresponding schema
|
|
1101
|
+
*
|
|
1102
|
+
* @category schemas
|
|
1103
|
+
* @since 4.0.0
|
|
1104
|
+
*/
|
|
1105
|
+
export declare const RedactedReviver: DeclarationReviver<RedactedRepresentationPayload>;
|
|
1106
|
+
/**
|
|
1107
|
+
* Reviver for persisted `CauseReason` declarations.
|
|
1108
|
+
*
|
|
1109
|
+
* **When to use**
|
|
1110
|
+
*
|
|
1111
|
+
* Use when reconstructing documents that may contain schemas created by {@link Schema.CauseReason}.
|
|
1112
|
+
*
|
|
1113
|
+
* @see {@link Schema.CauseReason} for creating the corresponding schema
|
|
1114
|
+
*
|
|
1115
|
+
* @category schemas
|
|
1116
|
+
* @since 4.0.0
|
|
1117
|
+
*/
|
|
1118
|
+
export declare const CauseReasonReviver: DeclarationReviver<null>;
|
|
1119
|
+
/**
|
|
1120
|
+
* Reviver for persisted `Cause` declarations.
|
|
1121
|
+
*
|
|
1122
|
+
* **When to use**
|
|
1123
|
+
*
|
|
1124
|
+
* Use when reconstructing documents that may contain schemas created by {@link Schema.Cause}.
|
|
1125
|
+
*
|
|
1126
|
+
* @see {@link Schema.Cause} for creating the corresponding schema
|
|
1127
|
+
*
|
|
1128
|
+
* @category schemas
|
|
1129
|
+
* @since 4.0.0
|
|
1130
|
+
*/
|
|
1131
|
+
export declare const CauseReviver: DeclarationReviver<null>;
|
|
1132
|
+
/**
|
|
1133
|
+
* Reviver for persisted {@link Schema.ErrorInstance} declarations.
|
|
1134
|
+
*
|
|
1135
|
+
* **When to use**
|
|
1136
|
+
*
|
|
1137
|
+
* Use when reconstructing documents that may contain schemas created by {@link Schema.ErrorInstance}.
|
|
1138
|
+
*
|
|
1139
|
+
* @see {@link Schema.ErrorInstance} for creating the corresponding schema
|
|
1140
|
+
*
|
|
1141
|
+
* @category schemas
|
|
1142
|
+
* @since 4.0.0
|
|
1143
|
+
*/
|
|
1144
|
+
export declare const ErrorInstanceReviver: DeclarationReviver<ErrorRepresentationPayload>;
|
|
1145
|
+
/**
|
|
1146
|
+
* Reviver for persisted `Exit` declarations.
|
|
1147
|
+
*
|
|
1148
|
+
* **When to use**
|
|
1149
|
+
*
|
|
1150
|
+
* Use when reconstructing documents that may contain schemas created by {@link Schema.Exit}.
|
|
1151
|
+
*
|
|
1152
|
+
* @see {@link Schema.Exit} for creating the corresponding schema
|
|
1153
|
+
*
|
|
1154
|
+
* @category schemas
|
|
1155
|
+
* @since 4.0.0
|
|
1156
|
+
*/
|
|
1157
|
+
export declare const ExitReviver: DeclarationReviver<null>;
|
|
1158
|
+
/**
|
|
1159
|
+
* Reviver for persisted {@link Schema.ReadonlyMap} declarations.
|
|
1160
|
+
*
|
|
1161
|
+
* **When to use**
|
|
1162
|
+
*
|
|
1163
|
+
* Use when reconstructing documents that may contain schemas created by {@link Schema.ReadonlyMap}.
|
|
1164
|
+
*
|
|
1165
|
+
* @see {@link Schema.ReadonlyMap} for creating the corresponding schema
|
|
1166
|
+
*
|
|
1167
|
+
* @category schemas
|
|
1168
|
+
* @since 4.0.0
|
|
1169
|
+
*/
|
|
1170
|
+
export declare const ReadonlyMapReviver: DeclarationReviver<null>;
|
|
1171
|
+
/**
|
|
1172
|
+
* Reviver for persisted {@link Schema.Graph} declarations.
|
|
1173
|
+
*
|
|
1174
|
+
* @category schemas
|
|
1175
|
+
* @since 4.0.0
|
|
1176
|
+
*/
|
|
1177
|
+
export declare const GraphReviver: DeclarationReviver<"directed" | "undirected">;
|
|
1178
|
+
/**
|
|
1179
|
+
* Reviver for persisted `HashMap` declarations.
|
|
1180
|
+
*
|
|
1181
|
+
* **When to use**
|
|
1182
|
+
*
|
|
1183
|
+
* Use when reconstructing documents that may contain schemas created by {@link Schema.HashMap}.
|
|
1184
|
+
*
|
|
1185
|
+
* @see {@link Schema.HashMap} for creating the corresponding schema
|
|
1186
|
+
*
|
|
1187
|
+
* @category schemas
|
|
1188
|
+
* @since 4.0.0
|
|
1189
|
+
*/
|
|
1190
|
+
export declare const HashMapReviver: DeclarationReviver<null>;
|
|
1191
|
+
/**
|
|
1192
|
+
* Reviver for persisted {@link Schema.ReadonlySet} declarations.
|
|
1193
|
+
*
|
|
1194
|
+
* **When to use**
|
|
1195
|
+
*
|
|
1196
|
+
* Use when reconstructing documents that may contain schemas created by {@link Schema.ReadonlySet}.
|
|
1197
|
+
*
|
|
1198
|
+
* @see {@link Schema.ReadonlySet} for creating the corresponding schema
|
|
1199
|
+
*
|
|
1200
|
+
* @category schemas
|
|
1201
|
+
* @since 4.0.0
|
|
1202
|
+
*/
|
|
1203
|
+
export declare const ReadonlySetReviver: DeclarationReviver<null>;
|
|
1204
|
+
/**
|
|
1205
|
+
* Reviver for persisted `HashSet` declarations.
|
|
1206
|
+
*
|
|
1207
|
+
* **When to use**
|
|
1208
|
+
*
|
|
1209
|
+
* Use when reconstructing documents that may contain schemas created by {@link Schema.HashSet}.
|
|
1210
|
+
*
|
|
1211
|
+
* @see {@link Schema.HashSet} for creating the corresponding schema
|
|
1212
|
+
*
|
|
1213
|
+
* @category schemas
|
|
1214
|
+
* @since 4.0.0
|
|
1215
|
+
*/
|
|
1216
|
+
export declare const HashSetReviver: DeclarationReviver<null>;
|
|
1217
|
+
/**
|
|
1218
|
+
* Reviver for persisted {@link Schema.Chunk} declarations.
|
|
1219
|
+
*
|
|
1220
|
+
* **When to use**
|
|
1221
|
+
*
|
|
1222
|
+
* Use when reconstructing documents that may contain schemas created by {@link Schema.Chunk}.
|
|
1223
|
+
*
|
|
1224
|
+
* @see {@link Schema.Chunk} for creating the corresponding schema
|
|
1225
|
+
*
|
|
1226
|
+
* @category schemas
|
|
1227
|
+
* @since 4.0.0
|
|
1228
|
+
*/
|
|
1229
|
+
export declare const ChunkReviver: DeclarationReviver<null>;
|
|
1230
|
+
/**
|
|
1231
|
+
* Reviver for persisted `RegExp` declarations.
|
|
1232
|
+
*
|
|
1233
|
+
* **When to use**
|
|
1234
|
+
*
|
|
1235
|
+
* Use when reconstructing documents that may contain the {@link Schema.RegExp} schema.
|
|
1236
|
+
*
|
|
1237
|
+
* @see {@link Schema.RegExp} for the corresponding schema
|
|
1238
|
+
*
|
|
1239
|
+
* @category schemas
|
|
1240
|
+
* @since 4.0.0
|
|
1241
|
+
*/
|
|
1242
|
+
export declare const RegExpReviver: DeclarationReviver<null>;
|
|
1243
|
+
/**
|
|
1244
|
+
* Reviver for persisted `URL` declarations.
|
|
1245
|
+
*
|
|
1246
|
+
* **When to use**
|
|
1247
|
+
*
|
|
1248
|
+
* Use when reconstructing documents that may contain the {@link Schema.URL} schema.
|
|
1249
|
+
*
|
|
1250
|
+
* @see {@link Schema.URL} for the corresponding schema
|
|
1251
|
+
*
|
|
1252
|
+
* @category schemas
|
|
1253
|
+
* @since 4.0.0
|
|
1254
|
+
*/
|
|
1255
|
+
export declare const URLReviver: DeclarationReviver<null>;
|
|
1256
|
+
/**
|
|
1257
|
+
* Reviver for persisted `Date` declarations.
|
|
1258
|
+
*
|
|
1259
|
+
* **When to use**
|
|
1260
|
+
*
|
|
1261
|
+
* Use when reconstructing documents that may contain the {@link Schema.Date} schema.
|
|
1262
|
+
*
|
|
1263
|
+
* @see {@link Schema.Date} for the corresponding schema
|
|
1264
|
+
*
|
|
1265
|
+
* @category schemas
|
|
1266
|
+
* @since 4.0.0
|
|
1267
|
+
*/
|
|
1268
|
+
export declare const DateReviver: DeclarationReviver<null>;
|
|
1269
|
+
/**
|
|
1270
|
+
* Reviver for persisted {@link Schema.Duration} declarations.
|
|
1271
|
+
*
|
|
1272
|
+
* **When to use**
|
|
1273
|
+
*
|
|
1274
|
+
* Use when reconstructing documents that may contain the {@link Schema.Duration} schema.
|
|
1275
|
+
*
|
|
1276
|
+
* @see {@link Schema.Duration} for the corresponding schema
|
|
1277
|
+
*
|
|
1278
|
+
* @category schemas
|
|
1279
|
+
* @since 4.0.0
|
|
1280
|
+
*/
|
|
1281
|
+
export declare const DurationReviver: DeclarationReviver<null>;
|
|
1282
|
+
/**
|
|
1283
|
+
* Reviver for persisted {@link Schema.ByteSize} declarations.
|
|
1284
|
+
*
|
|
1285
|
+
* @category schemas
|
|
1286
|
+
* @since 4.0.0
|
|
1287
|
+
*/
|
|
1288
|
+
export declare const ByteSizeReviver: DeclarationReviver<null>;
|
|
1289
|
+
/**
|
|
1290
|
+
* Reviver for persisted {@link Schema.BigDecimal} declarations.
|
|
1291
|
+
*
|
|
1292
|
+
* **When to use**
|
|
1293
|
+
*
|
|
1294
|
+
* Use when reconstructing documents that may contain the {@link Schema.BigDecimal} schema.
|
|
1295
|
+
*
|
|
1296
|
+
* @see {@link Schema.BigDecimal} for the corresponding schema
|
|
1297
|
+
*
|
|
1298
|
+
* @category schemas
|
|
1299
|
+
* @since 4.0.0
|
|
1300
|
+
*/
|
|
1301
|
+
export declare const BigDecimalReviver: DeclarationReviver<null>;
|
|
1302
|
+
/**
|
|
1303
|
+
* Reviver for persisted `File` declarations.
|
|
1304
|
+
*
|
|
1305
|
+
* **When to use**
|
|
1306
|
+
*
|
|
1307
|
+
* Use when reconstructing documents that may contain the {@link Schema.File} schema.
|
|
1308
|
+
*
|
|
1309
|
+
* @see {@link Schema.File} for the corresponding schema
|
|
1310
|
+
*
|
|
1311
|
+
* @category schemas
|
|
1312
|
+
* @since 4.0.0
|
|
1313
|
+
*/
|
|
1314
|
+
export declare const FileReviver: DeclarationReviver<null>;
|
|
1315
|
+
/**
|
|
1316
|
+
* Reviver for persisted `FormData` declarations.
|
|
1317
|
+
*
|
|
1318
|
+
* **When to use**
|
|
1319
|
+
*
|
|
1320
|
+
* Use when reconstructing documents that may contain the {@link Schema.FormData} schema.
|
|
1321
|
+
*
|
|
1322
|
+
* @see {@link Schema.FormData} for the corresponding schema
|
|
1323
|
+
*
|
|
1324
|
+
* @category schemas
|
|
1325
|
+
* @since 4.0.0
|
|
1326
|
+
*/
|
|
1327
|
+
export declare const FormDataReviver: DeclarationReviver<null>;
|
|
1328
|
+
/**
|
|
1329
|
+
* Reviver for persisted `URLSearchParams` declarations.
|
|
1330
|
+
*
|
|
1331
|
+
* **When to use**
|
|
1332
|
+
*
|
|
1333
|
+
* Use when reconstructing documents that may contain the {@link Schema.URLSearchParams} schema.
|
|
1334
|
+
*
|
|
1335
|
+
* @see {@link Schema.URLSearchParams} for the corresponding schema
|
|
1336
|
+
*
|
|
1337
|
+
* @category schemas
|
|
1338
|
+
* @since 4.0.0
|
|
1339
|
+
*/
|
|
1340
|
+
export declare const URLSearchParamsReviver: DeclarationReviver<null>;
|
|
1341
|
+
/**
|
|
1342
|
+
* Reviver for persisted `Uint8Array` declarations.
|
|
1343
|
+
*
|
|
1344
|
+
* **When to use**
|
|
1345
|
+
*
|
|
1346
|
+
* Use when reconstructing documents that may contain the {@link Schema.Uint8Array} schema.
|
|
1347
|
+
*
|
|
1348
|
+
* @see {@link Schema.Uint8Array} for the corresponding schema
|
|
1349
|
+
*
|
|
1350
|
+
* @category schemas
|
|
1351
|
+
* @since 4.0.0
|
|
1352
|
+
*/
|
|
1353
|
+
export declare const Uint8ArrayReviver: DeclarationReviver<null>;
|
|
1354
|
+
/**
|
|
1355
|
+
* Reviver for persisted {@link Schema.DateTimeUtc} declarations.
|
|
1356
|
+
*
|
|
1357
|
+
* **When to use**
|
|
1358
|
+
*
|
|
1359
|
+
* Use when reconstructing documents that may contain the {@link Schema.DateTimeUtc} schema.
|
|
1360
|
+
*
|
|
1361
|
+
* @see {@link Schema.DateTimeUtc} for the corresponding schema
|
|
1362
|
+
*
|
|
1363
|
+
* @category schemas
|
|
1364
|
+
* @since 4.0.0
|
|
1365
|
+
*/
|
|
1366
|
+
export declare const DateTimeUtcReviver: DeclarationReviver<null>;
|
|
1367
|
+
/**
|
|
1368
|
+
* Reviver for persisted {@link Schema.TimeZoneOffset} declarations.
|
|
1369
|
+
*
|
|
1370
|
+
* **When to use**
|
|
1371
|
+
*
|
|
1372
|
+
* Use when reconstructing documents that may contain the {@link Schema.TimeZoneOffset} schema.
|
|
1373
|
+
*
|
|
1374
|
+
* @see {@link Schema.TimeZoneOffset} for the corresponding schema
|
|
1375
|
+
*
|
|
1376
|
+
* @category schemas
|
|
1377
|
+
* @since 4.0.0
|
|
1378
|
+
*/
|
|
1379
|
+
export declare const TimeZoneOffsetReviver: DeclarationReviver<null>;
|
|
1380
|
+
/**
|
|
1381
|
+
* Reviver for persisted {@link Schema.TimeZoneNamed} declarations.
|
|
1382
|
+
*
|
|
1383
|
+
* **When to use**
|
|
1384
|
+
*
|
|
1385
|
+
* Use when reconstructing documents that may contain the {@link Schema.TimeZoneNamed} schema.
|
|
1386
|
+
*
|
|
1387
|
+
* @see {@link Schema.TimeZoneNamed} for the corresponding schema
|
|
1388
|
+
*
|
|
1389
|
+
* @category schemas
|
|
1390
|
+
* @since 4.0.0
|
|
1391
|
+
*/
|
|
1392
|
+
export declare const TimeZoneNamedReviver: DeclarationReviver<null>;
|
|
1393
|
+
/**
|
|
1394
|
+
* Reviver for persisted {@link Schema.TimeZone} declarations.
|
|
1395
|
+
*
|
|
1396
|
+
* **When to use**
|
|
1397
|
+
*
|
|
1398
|
+
* Use when reconstructing documents that may contain the {@link Schema.TimeZone} schema.
|
|
1399
|
+
*
|
|
1400
|
+
* @see {@link Schema.TimeZone} for the corresponding schema
|
|
1401
|
+
*
|
|
1402
|
+
* @category schemas
|
|
1403
|
+
* @since 4.0.0
|
|
1404
|
+
*/
|
|
1405
|
+
export declare const TimeZoneReviver: DeclarationReviver<null>;
|
|
1406
|
+
/**
|
|
1407
|
+
* Reviver for persisted {@link Schema.DateTimeZoned} declarations.
|
|
1408
|
+
*
|
|
1409
|
+
* **When to use**
|
|
1410
|
+
*
|
|
1411
|
+
* Use when reconstructing documents that may contain the {@link Schema.DateTimeZoned} schema.
|
|
1412
|
+
*
|
|
1413
|
+
* @see {@link Schema.DateTimeZoned} for the corresponding schema
|
|
1414
|
+
*
|
|
1415
|
+
* @category schemas
|
|
1416
|
+
* @since 4.0.0
|
|
1417
|
+
*/
|
|
1418
|
+
export declare const DateTimeZonedReviver: DeclarationReviver<null>;
|
|
1419
|
+
/**
|
|
1420
|
+
* Reviver for persisted `isGreaterThanDate` checks.
|
|
1421
|
+
*
|
|
1422
|
+
* **When to use**
|
|
1423
|
+
*
|
|
1424
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isGreaterThanDate}.
|
|
1425
|
+
*
|
|
1426
|
+
* @see {@link Schema.isGreaterThanDate} for creating the corresponding check
|
|
1427
|
+
*
|
|
1428
|
+
* @category validation
|
|
1429
|
+
* @since 4.0.0
|
|
1430
|
+
*/
|
|
1431
|
+
export declare const isGreaterThanDateReviver: FilterReviver<{
|
|
1432
|
+
readonly exclusiveMinimum: globalThis.Date;
|
|
1433
|
+
}>;
|
|
1434
|
+
/**
|
|
1435
|
+
* Reviver for persisted `isGreaterThanOrEqualToDate` checks.
|
|
1436
|
+
*
|
|
1437
|
+
* **When to use**
|
|
1438
|
+
*
|
|
1439
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isGreaterThanOrEqualToDate}.
|
|
1440
|
+
*
|
|
1441
|
+
* @see {@link Schema.isGreaterThanOrEqualToDate} for creating the corresponding check
|
|
1442
|
+
*
|
|
1443
|
+
* @category validation
|
|
1444
|
+
* @since 4.0.0
|
|
1445
|
+
*/
|
|
1446
|
+
export declare const isGreaterThanOrEqualToDateReviver: FilterReviver<{
|
|
1447
|
+
readonly minimum: globalThis.Date;
|
|
1448
|
+
}>;
|
|
1449
|
+
/**
|
|
1450
|
+
* Reviver for persisted `isLessThanDate` checks.
|
|
1451
|
+
*
|
|
1452
|
+
* **When to use**
|
|
1453
|
+
*
|
|
1454
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isLessThanDate}.
|
|
1455
|
+
*
|
|
1456
|
+
* @see {@link Schema.isLessThanDate} for creating the corresponding check
|
|
1457
|
+
*
|
|
1458
|
+
* @category validation
|
|
1459
|
+
* @since 4.0.0
|
|
1460
|
+
*/
|
|
1461
|
+
export declare const isLessThanDateReviver: FilterReviver<{
|
|
1462
|
+
readonly exclusiveMaximum: globalThis.Date;
|
|
1463
|
+
}>;
|
|
1464
|
+
/**
|
|
1465
|
+
* Reviver for persisted `isLessThanOrEqualToDate` checks.
|
|
1466
|
+
*
|
|
1467
|
+
* **When to use**
|
|
1468
|
+
*
|
|
1469
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isLessThanOrEqualToDate}.
|
|
1470
|
+
*
|
|
1471
|
+
* @see {@link Schema.isLessThanOrEqualToDate} for creating the corresponding check
|
|
1472
|
+
*
|
|
1473
|
+
* @category validation
|
|
1474
|
+
* @since 4.0.0
|
|
1475
|
+
*/
|
|
1476
|
+
export declare const isLessThanOrEqualToDateReviver: FilterReviver<{
|
|
1477
|
+
readonly maximum: globalThis.Date;
|
|
1478
|
+
}>;
|
|
1479
|
+
/**
|
|
1480
|
+
* Reviver for persisted `isBetweenDate` checks.
|
|
1481
|
+
*
|
|
1482
|
+
* **When to use**
|
|
1483
|
+
*
|
|
1484
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isBetweenDate}.
|
|
1485
|
+
*
|
|
1486
|
+
* @see {@link Schema.isBetweenDate} for creating the corresponding check
|
|
1487
|
+
*
|
|
1488
|
+
* @category validation
|
|
1489
|
+
* @since 4.0.0
|
|
1490
|
+
*/
|
|
1491
|
+
export declare const isBetweenDateReviver: FilterReviver<{
|
|
1492
|
+
readonly minimum: globalThis.Date;
|
|
1493
|
+
readonly maximum: globalThis.Date;
|
|
1494
|
+
readonly exclusiveMinimum?: true | undefined;
|
|
1495
|
+
readonly exclusiveMaximum?: true | undefined;
|
|
1496
|
+
}>;
|
|
1497
|
+
/**
|
|
1498
|
+
* Reviver for persisted `isGreaterThanBigInt` checks.
|
|
1499
|
+
*
|
|
1500
|
+
* **When to use**
|
|
1501
|
+
*
|
|
1502
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isGreaterThanBigInt}.
|
|
1503
|
+
*
|
|
1504
|
+
* @see {@link Schema.isGreaterThanBigInt} for creating the corresponding check
|
|
1505
|
+
*
|
|
1506
|
+
* @category validation
|
|
1507
|
+
* @since 4.0.0
|
|
1508
|
+
*/
|
|
1509
|
+
export declare const isGreaterThanBigIntReviver: FilterReviver<{
|
|
1510
|
+
readonly exclusiveMinimum: bigint;
|
|
1511
|
+
}>;
|
|
1512
|
+
/**
|
|
1513
|
+
* Reviver for persisted `isGreaterThanOrEqualToBigInt` checks.
|
|
1514
|
+
*
|
|
1515
|
+
* **When to use**
|
|
1516
|
+
*
|
|
1517
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isGreaterThanOrEqualToBigInt}.
|
|
1518
|
+
*
|
|
1519
|
+
* @see {@link Schema.isGreaterThanOrEqualToBigInt} for creating the corresponding check
|
|
1520
|
+
*
|
|
1521
|
+
* @category validation
|
|
1522
|
+
* @since 4.0.0
|
|
1523
|
+
*/
|
|
1524
|
+
export declare const isGreaterThanOrEqualToBigIntReviver: FilterReviver<{
|
|
1525
|
+
readonly minimum: bigint;
|
|
1526
|
+
}>;
|
|
1527
|
+
/**
|
|
1528
|
+
* Reviver for persisted `isLessThanBigInt` checks.
|
|
1529
|
+
*
|
|
1530
|
+
* **When to use**
|
|
1531
|
+
*
|
|
1532
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isLessThanBigInt}.
|
|
1533
|
+
*
|
|
1534
|
+
* @see {@link Schema.isLessThanBigInt} for creating the corresponding check
|
|
1535
|
+
*
|
|
1536
|
+
* @category validation
|
|
1537
|
+
* @since 4.0.0
|
|
1538
|
+
*/
|
|
1539
|
+
export declare const isLessThanBigIntReviver: FilterReviver<{
|
|
1540
|
+
readonly exclusiveMaximum: bigint;
|
|
1541
|
+
}>;
|
|
1542
|
+
/**
|
|
1543
|
+
* Reviver for persisted `isLessThanOrEqualToBigInt` checks.
|
|
1544
|
+
*
|
|
1545
|
+
* **When to use**
|
|
1546
|
+
*
|
|
1547
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isLessThanOrEqualToBigInt}.
|
|
1548
|
+
*
|
|
1549
|
+
* @see {@link Schema.isLessThanOrEqualToBigInt} for creating the corresponding check
|
|
1550
|
+
*
|
|
1551
|
+
* @category validation
|
|
1552
|
+
* @since 4.0.0
|
|
1553
|
+
*/
|
|
1554
|
+
export declare const isLessThanOrEqualToBigIntReviver: FilterReviver<{
|
|
1555
|
+
readonly maximum: bigint;
|
|
1556
|
+
}>;
|
|
1557
|
+
/**
|
|
1558
|
+
* Reviver for persisted `isBetweenBigInt` checks.
|
|
1559
|
+
*
|
|
1560
|
+
* **When to use**
|
|
1561
|
+
*
|
|
1562
|
+
* Use when reconstructing documents that may contain checks created by {@link Schema.isBetweenBigInt}.
|
|
1563
|
+
*
|
|
1564
|
+
* @see {@link Schema.isBetweenBigInt} for creating the corresponding check
|
|
1565
|
+
*
|
|
1566
|
+
* @category validation
|
|
1567
|
+
* @since 4.0.0
|
|
1568
|
+
*/
|
|
1569
|
+
export declare const isBetweenBigIntReviver: FilterReviver<{
|
|
1570
|
+
readonly minimum: bigint;
|
|
1571
|
+
readonly maximum: bigint;
|
|
1572
|
+
readonly exclusiveMinimum?: true | undefined;
|
|
1573
|
+
readonly exclusiveMaximum?: true | undefined;
|
|
1574
|
+
}>;
|
|
1575
|
+
/**
|
|
1576
|
+
* Reviver for persisted `Json` declarations.
|
|
1577
|
+
*
|
|
1578
|
+
* **When to use**
|
|
1579
|
+
*
|
|
1580
|
+
* Use when reconstructing documents that may contain the {@link Schema.Json} schema.
|
|
1581
|
+
*
|
|
1582
|
+
* @see {@link Schema.Json} for the corresponding immutable JSON schema
|
|
1583
|
+
*
|
|
1584
|
+
* @category schemas
|
|
1585
|
+
* @since 4.0.0
|
|
1586
|
+
*/
|
|
1587
|
+
export declare const JsonReviver: DeclarationReviver<null>;
|
|
1588
|
+
/**
|
|
1589
|
+
* Reviver for persisted `MutableJson` declarations.
|
|
1590
|
+
*
|
|
1591
|
+
* **When to use**
|
|
1592
|
+
*
|
|
1593
|
+
* Use when reconstructing documents that may contain the {@link Schema.MutableJson} schema.
|
|
1594
|
+
*
|
|
1595
|
+
* @see {@link Schema.MutableJson} for the corresponding mutable JSON schema
|
|
1596
|
+
*
|
|
1597
|
+
* @category schemas
|
|
1598
|
+
* @since 4.0.0
|
|
1599
|
+
*/
|
|
1600
|
+
export declare const MutableJsonReviver: DeclarationReviver<null>;
|
|
523
1601
|
/**
|
|
524
1602
|
* Options for importing JSON Schema Draft 2020-12 documents.
|
|
525
1603
|
*
|
|
@@ -728,21 +1806,24 @@ export declare function toMultiDocument(document: Document): MultiDocument;
|
|
|
728
1806
|
*
|
|
729
1807
|
* **Details**
|
|
730
1808
|
*
|
|
731
|
-
*
|
|
732
|
-
*
|
|
733
|
-
*
|
|
1809
|
+
* The generated document is intended for preliminary validation. JSON Schema
|
|
1810
|
+
* and Effect checks do not always have identical semantics, so the Effect
|
|
1811
|
+
* decoder remains the final authority. Passing JSON Schema validation does not
|
|
1812
|
+
* guarantee that Effect decoding will succeed.
|
|
734
1813
|
*
|
|
735
1814
|
* **Gotchas**
|
|
736
1815
|
*
|
|
737
1816
|
* - Reference allocation is already fixed in the input `Document`. The inherited `referencePolicy` option has no effect
|
|
738
1817
|
* here; pass it to {@link toRepresentation} when creating the document.
|
|
739
|
-
* -
|
|
1818
|
+
* - String length, RegExp flags, decoded-object property checks, and `oneOf` can differ from Effect validation.
|
|
1819
|
+
* - Opaque declarations are represented by an unconstrained JSON Schema.
|
|
740
1820
|
* - Check callback results are used directly, and exceptions raised by a callback pass through unchanged. Callbacks
|
|
741
1821
|
* must treat their input schemas as immutable. Each returned value must be a valid JSON Schema object graph and must
|
|
742
|
-
* not be mutated after the callback returns.
|
|
1822
|
+
* not be mutated after the callback returns. The callback author is responsible for the emitted semantics.
|
|
743
1823
|
* - Local definition references returned by callbacks are resolved together with compiler-generated references.
|
|
744
|
-
*
|
|
745
|
-
*
|
|
1824
|
+
* Invalid JSON Pointer URI fragments throw an `Error`.
|
|
1825
|
+
* - The default `onExcessProperty: "ignore"` matches the decoder default. Use `onExcessProperty: "error"` in both
|
|
1826
|
+
* places when a closed object contract is required.
|
|
746
1827
|
*
|
|
747
1828
|
* @see {@link toJsonSchemaMultiDocument} for multiple roots sharing definitions
|
|
748
1829
|
*
|
|
@@ -764,7 +1845,9 @@ export declare function toJsonSchemaDocument(document: Document, options?: Schem
|
|
|
764
1845
|
* - Every definition is compiled, including definitions that are not reachable from a root. Check callbacks must treat
|
|
765
1846
|
* their input schemas as immutable. Each returned value must be a valid JSON Schema object graph and must not be
|
|
766
1847
|
* mutated after the callback returns. Local definition references returned by callbacks are resolved together with
|
|
767
|
-
* compiler-generated references.
|
|
1848
|
+
* compiler-generated references. Invalid JSON Pointer URI fragments throw an `Error`.
|
|
1849
|
+
* - String length, RegExp flags, decoded-object property checks, `oneOf`, and custom check callbacks can differ from
|
|
1850
|
+
* Effect validation, as described by {@link toJsonSchemaDocument}.
|
|
768
1851
|
*
|
|
769
1852
|
* @see {@link toJsonSchemaDocument} for a single root
|
|
770
1853
|
*
|