effect 4.0.0-beta.78 → 4.0.0-beta.79
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/dist/Array.d.ts.map +1 -1
- package/dist/Array.js +6 -81
- package/dist/Array.js.map +1 -1
- package/dist/BigDecimal.d.ts +5 -55
- package/dist/BigDecimal.d.ts.map +1 -1
- package/dist/BigDecimal.js +5 -55
- package/dist/BigDecimal.js.map +1 -1
- package/dist/BigInt.d.ts +5 -64
- package/dist/BigInt.d.ts.map +1 -1
- package/dist/BigInt.js +5 -64
- package/dist/BigInt.js.map +1 -1
- package/dist/Boolean.d.ts +5 -52
- package/dist/Boolean.d.ts.map +1 -1
- package/dist/Boolean.js +5 -52
- package/dist/Boolean.js.map +1 -1
- package/dist/Brand.d.ts.map +1 -1
- package/dist/Brand.js +0 -44
- package/dist/Brand.js.map +1 -1
- package/dist/Cache.d.ts.map +1 -1
- package/dist/Cache.js +5 -44
- package/dist/Cache.js.map +1 -1
- package/dist/Cause.d.ts +6 -72
- package/dist/Cause.d.ts.map +1 -1
- package/dist/Cause.js +6 -72
- package/dist/Cause.js.map +1 -1
- package/dist/Channel.d.ts +6 -67
- package/dist/Channel.d.ts.map +1 -1
- package/dist/Channel.js +6 -67
- package/dist/Channel.js.map +1 -1
- package/dist/ChannelSchema.d.ts +5 -41
- package/dist/ChannelSchema.d.ts.map +1 -1
- package/dist/ChannelSchema.js.map +1 -1
- package/dist/Chunk.d.ts +6 -67
- package/dist/Chunk.d.ts.map +1 -1
- package/dist/Chunk.js +6 -67
- package/dist/Chunk.js.map +1 -1
- package/dist/Clock.d.ts +4 -56
- package/dist/Clock.d.ts.map +1 -1
- package/dist/Clock.js.map +1 -1
- package/dist/Combiner.d.ts +6 -57
- package/dist/Combiner.d.ts.map +1 -1
- package/dist/Combiner.js.map +1 -1
- package/dist/Config.d.ts +5 -69
- package/dist/Config.d.ts.map +1 -1
- package/dist/Config.js.map +1 -1
- package/dist/ConfigProvider.d.ts +6 -75
- package/dist/ConfigProvider.d.ts.map +1 -1
- package/dist/ConfigProvider.js +6 -75
- package/dist/ConfigProvider.js.map +1 -1
- package/dist/Console.d.ts +6 -70
- package/dist/Console.d.ts.map +1 -1
- package/dist/Console.js.map +1 -1
- package/dist/Context.d.ts +8 -47
- package/dist/Context.d.ts.map +1 -1
- package/dist/Context.js.map +1 -1
- package/dist/Cron.d.ts.map +1 -1
- package/dist/Cron.js +5 -41
- package/dist/Cron.js.map +1 -1
- package/dist/Crypto.d.ts +6 -50
- package/dist/Crypto.d.ts.map +1 -1
- package/dist/Crypto.js +6 -50
- package/dist/Crypto.js.map +1 -1
- package/dist/Data.d.ts +5 -72
- package/dist/Data.d.ts.map +1 -1
- package/dist/Data.js.map +1 -1
- package/dist/DateTime.d.ts +8 -48
- package/dist/DateTime.d.ts.map +1 -1
- package/dist/DateTime.js.map +1 -1
- package/dist/Deferred.d.ts +5 -58
- package/dist/Deferred.d.ts.map +1 -1
- package/dist/Deferred.js.map +1 -1
- package/dist/Differ.d.ts +4 -35
- package/dist/Differ.d.ts.map +1 -1
- package/dist/Differ.js +4 -35
- package/dist/Duration.d.ts +6 -46
- package/dist/Duration.d.ts.map +1 -1
- package/dist/Duration.js +6 -46
- package/dist/Duration.js.map +1 -1
- package/dist/Effect.d.ts +227 -103
- package/dist/Effect.d.ts.map +1 -1
- package/dist/Effect.js +172 -18
- package/dist/Effect.js.map +1 -1
- package/dist/Effectable.d.ts +4 -34
- package/dist/Effectable.d.ts.map +1 -1
- package/dist/Effectable.js.map +1 -1
- package/dist/Encoding.d.ts.map +1 -1
- package/dist/Encoding.js +5 -46
- package/dist/Encoding.js.map +1 -1
- package/dist/Equal.d.ts +6 -66
- package/dist/Equal.d.ts.map +1 -1
- package/dist/Equal.js.map +1 -1
- package/dist/Equivalence.d.ts.map +1 -1
- package/dist/Equivalence.js +6 -48
- package/dist/Equivalence.js.map +1 -1
- package/dist/ErrorReporter.d.ts +8 -47
- package/dist/ErrorReporter.d.ts.map +1 -1
- package/dist/ErrorReporter.js.map +1 -1
- package/dist/ExecutionPlan.d.ts +6 -79
- package/dist/ExecutionPlan.d.ts.map +1 -1
- package/dist/ExecutionPlan.js.map +1 -1
- package/dist/Exit.d.ts +6 -53
- package/dist/Exit.d.ts.map +1 -1
- package/dist/Exit.js.map +1 -1
- package/dist/Fiber.d.ts +5 -52
- package/dist/Fiber.d.ts.map +1 -1
- package/dist/Fiber.js.map +1 -1
- package/dist/FiberHandle.d.ts.map +1 -1
- package/dist/FiberHandle.js +8 -38
- package/dist/FiberHandle.js.map +1 -1
- package/dist/FiberMap.d.ts.map +1 -1
- package/dist/FiberMap.js +7 -34
- package/dist/FiberMap.js.map +1 -1
- package/dist/FiberSet.d.ts.map +1 -1
- package/dist/FiberSet.js +6 -36
- package/dist/FiberSet.js.map +1 -1
- package/dist/FileSystem.d.ts.map +1 -1
- package/dist/FileSystem.js +8 -51
- package/dist/FileSystem.js.map +1 -1
- package/dist/Filter.d.ts +8 -33
- package/dist/Filter.d.ts.map +1 -1
- package/dist/Filter.js.map +1 -1
- package/dist/Formatter.d.ts.map +1 -1
- package/dist/Formatter.js +6 -49
- package/dist/Formatter.js.map +1 -1
- package/dist/Function.d.ts +5 -43
- package/dist/Function.d.ts.map +1 -1
- package/dist/Function.js.map +1 -1
- package/dist/Graph.d.ts +5 -48
- package/dist/Graph.d.ts.map +1 -1
- package/dist/Graph.js +69 -61
- package/dist/Graph.js.map +1 -1
- package/dist/HKT.d.ts +6 -48
- package/dist/HKT.d.ts.map +1 -1
- package/dist/Hash.d.ts.map +1 -1
- package/dist/Hash.js +7 -49
- package/dist/Hash.js.map +1 -1
- package/dist/HashMap.d.ts +6 -69
- package/dist/HashMap.d.ts.map +1 -1
- package/dist/HashMap.js +6 -69
- package/dist/HashMap.js.map +1 -1
- package/dist/HashRing.d.ts.map +1 -1
- package/dist/HashRing.js +6 -56
- package/dist/HashRing.js.map +1 -1
- package/dist/HashSet.d.ts +7 -36
- package/dist/HashSet.d.ts.map +1 -1
- package/dist/HashSet.js +7 -36
- package/dist/HashSet.js.map +1 -1
- package/dist/Inspectable.d.ts.map +1 -1
- package/dist/Inspectable.js +6 -60
- package/dist/Inspectable.js.map +1 -1
- package/dist/Iterable.d.ts +5 -50
- package/dist/Iterable.d.ts.map +1 -1
- package/dist/Iterable.js +5 -50
- package/dist/Iterable.js.map +1 -1
- package/dist/JsonPatch.d.ts.map +1 -1
- package/dist/JsonPatch.js +0 -53
- package/dist/JsonPatch.js.map +1 -1
- package/dist/JsonPointer.d.ts +4 -49
- package/dist/JsonPointer.d.ts.map +1 -1
- package/dist/JsonPointer.js +4 -49
- package/dist/JsonPointer.js.map +1 -1
- package/dist/JsonSchema.d.ts.map +1 -1
- package/dist/JsonSchema.js +6 -82
- package/dist/JsonSchema.js.map +1 -1
- package/dist/Latch.d.ts +5 -31
- package/dist/Latch.d.ts.map +1 -1
- package/dist/Latch.js.map +1 -1
- package/dist/Layer.d.ts +6 -38
- package/dist/Layer.d.ts.map +1 -1
- package/dist/Layer.js.map +1 -1
- package/dist/LayerMap.d.ts +7 -32
- package/dist/LayerMap.d.ts.map +1 -1
- package/dist/LayerMap.js +7 -32
- package/dist/LayerMap.js.map +1 -1
- package/dist/LogLevel.d.ts +4 -35
- package/dist/LogLevel.d.ts.map +1 -1
- package/dist/LogLevel.js.map +1 -1
- package/dist/Logger.d.ts.map +1 -1
- package/dist/Logger.js +6 -80
- package/dist/Logger.js.map +1 -1
- package/dist/ManagedRuntime.d.ts +6 -36
- package/dist/ManagedRuntime.d.ts.map +1 -1
- package/dist/ManagedRuntime.js.map +1 -1
- package/dist/Match.d.ts.map +1 -1
- package/dist/Match.js +8 -42
- package/dist/Match.js.map +1 -1
- package/dist/Metric.d.ts +8 -81
- package/dist/Metric.d.ts.map +1 -1
- package/dist/Metric.js +8 -81
- package/dist/Metric.js.map +1 -1
- package/dist/MutableHashMap.d.ts +6 -35
- package/dist/MutableHashMap.d.ts.map +1 -1
- package/dist/MutableHashMap.js.map +1 -1
- package/dist/MutableHashSet.d.ts.map +1 -1
- package/dist/MutableHashSet.js +5 -63
- package/dist/MutableHashSet.js.map +1 -1
- package/dist/MutableList.d.ts.map +1 -1
- package/dist/MutableList.js +6 -46
- package/dist/MutableList.js.map +1 -1
- package/dist/MutableRef.d.ts.map +1 -1
- package/dist/MutableRef.js +7 -30
- package/dist/MutableRef.js.map +1 -1
- package/dist/Newtype.d.ts +8 -61
- package/dist/Newtype.d.ts.map +1 -1
- package/dist/Newtype.js.map +1 -1
- package/dist/NonEmptyIterable.d.ts +0 -135
- package/dist/NonEmptyIterable.d.ts.map +1 -1
- package/dist/NonEmptyIterable.js +0 -135
- package/dist/NonEmptyIterable.js.map +1 -1
- package/dist/Number.d.ts +4 -55
- package/dist/Number.d.ts.map +1 -1
- package/dist/Number.js +4 -55
- package/dist/Number.js.map +1 -1
- package/dist/Optic.d.ts +9 -91
- package/dist/Optic.d.ts.map +1 -1
- package/dist/Optic.js +9 -91
- package/dist/Optic.js.map +1 -1
- package/dist/Option.d.ts +8 -69
- package/dist/Option.d.ts.map +1 -1
- package/dist/Option.js +8 -69
- package/dist/Option.js.map +1 -1
- package/dist/Order.d.ts.map +1 -1
- package/dist/Order.js +8 -76
- package/dist/Order.js.map +1 -1
- package/dist/Ordering.d.ts +5 -31
- package/dist/Ordering.d.ts.map +1 -1
- package/dist/Ordering.js.map +1 -1
- package/dist/PartitionedSemaphore.d.ts +0 -28
- package/dist/PartitionedSemaphore.d.ts.map +1 -1
- package/dist/PartitionedSemaphore.js +0 -28
- package/dist/PartitionedSemaphore.js.map +1 -1
- package/dist/Path.d.ts +7 -29
- package/dist/Path.d.ts.map +1 -1
- package/dist/Path.js +6 -28
- package/dist/Path.js.map +1 -1
- package/dist/Pipeable.d.ts +0 -11
- package/dist/Pipeable.d.ts.map +1 -1
- package/dist/Pipeable.js +0 -11
- package/dist/Pipeable.js.map +1 -1
- package/dist/PlatformError.d.ts +7 -29
- package/dist/PlatformError.d.ts.map +1 -1
- package/dist/PlatformError.js +7 -29
- package/dist/PlatformError.js.map +1 -1
- package/dist/Pool.d.ts.map +1 -1
- package/dist/Pool.js.map +1 -1
- package/dist/Predicate.d.ts.map +1 -1
- package/dist/Predicate.js +6 -61
- package/dist/Predicate.js.map +1 -1
- package/dist/PrimaryKey.d.ts +0 -40
- package/dist/PrimaryKey.d.ts.map +1 -1
- package/dist/PrimaryKey.js +0 -40
- package/dist/PrimaryKey.js.map +1 -1
- package/dist/PubSub.d.ts +8 -56
- package/dist/PubSub.d.ts.map +1 -1
- package/dist/PubSub.js +8 -56
- package/dist/PubSub.js.map +1 -1
- package/dist/Pull.d.ts +8 -25
- package/dist/Pull.d.ts.map +1 -1
- package/dist/Pull.js +8 -25
- package/dist/Pull.js.map +1 -1
- package/dist/Queue.d.ts +5 -62
- package/dist/Queue.d.ts.map +1 -1
- package/dist/Queue.js +5 -62
- package/dist/Queue.js.map +1 -1
- package/dist/Random.d.ts +5 -39
- package/dist/Random.d.ts.map +1 -1
- package/dist/Random.js +6 -74
- package/dist/Random.js.map +1 -1
- package/dist/RcMap.d.ts +9 -17
- package/dist/RcMap.d.ts.map +1 -1
- package/dist/RcMap.js +9 -17
- package/dist/RcMap.js.map +1 -1
- package/dist/RcRef.d.ts +6 -36
- package/dist/RcRef.d.ts.map +1 -1
- package/dist/RcRef.js.map +1 -1
- package/dist/Record.d.ts +6 -71
- package/dist/Record.d.ts.map +1 -1
- package/dist/Record.js +6 -71
- package/dist/Record.js.map +1 -1
- package/dist/Redactable.d.ts +0 -58
- package/dist/Redactable.d.ts.map +1 -1
- package/dist/Redactable.js.map +1 -1
- package/dist/Redacted.d.ts +8 -41
- package/dist/Redacted.d.ts.map +1 -1
- package/dist/Redacted.js +8 -41
- package/dist/Redacted.js.map +1 -1
- package/dist/Reducer.d.ts +5 -64
- package/dist/Reducer.d.ts.map +1 -1
- package/dist/Reducer.js +5 -64
- package/dist/Reducer.js.map +1 -1
- package/dist/Ref.d.ts +8 -49
- package/dist/Ref.d.ts.map +1 -1
- package/dist/Ref.js +8 -49
- package/dist/Ref.js.map +1 -1
- package/dist/References.d.ts +0 -49
- package/dist/References.d.ts.map +1 -1
- package/dist/References.js.map +1 -1
- package/dist/RegExp.d.ts.map +1 -1
- package/dist/RegExp.js +0 -26
- package/dist/RegExp.js.map +1 -1
- package/dist/Request.d.ts +6 -41
- package/dist/Request.d.ts.map +1 -1
- package/dist/Request.js.map +1 -1
- package/dist/RequestResolver.d.ts +6 -41
- package/dist/RequestResolver.d.ts.map +1 -1
- package/dist/RequestResolver.js.map +1 -1
- package/dist/Resource.d.ts.map +1 -1
- package/dist/Resource.js +5 -30
- package/dist/Resource.js.map +1 -1
- package/dist/Result.d.ts +6 -64
- package/dist/Result.d.ts.map +1 -1
- package/dist/Result.js +6 -64
- package/dist/Result.js.map +1 -1
- package/dist/Runtime.d.ts.map +1 -1
- package/dist/Runtime.js +7 -55
- package/dist/Runtime.js.map +1 -1
- package/dist/Schedule.d.ts.map +1 -1
- package/dist/Schedule.js +5 -61
- package/dist/Schedule.js.map +1 -1
- package/dist/Scheduler.d.ts +6 -17
- package/dist/Scheduler.d.ts.map +1 -1
- package/dist/Scheduler.js +6 -17
- package/dist/Scheduler.js.map +1 -1
- package/dist/Schema.d.ts +257 -166
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +347 -361
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaAST.d.ts +18 -73
- package/dist/SchemaAST.d.ts.map +1 -1
- package/dist/SchemaAST.js +83 -89
- package/dist/SchemaAST.js.map +1 -1
- package/dist/SchemaGetter.d.ts +9 -83
- package/dist/SchemaGetter.d.ts.map +1 -1
- package/dist/SchemaGetter.js +9 -83
- package/dist/SchemaGetter.js.map +1 -1
- package/dist/SchemaIssue.d.ts +8 -76
- package/dist/SchemaIssue.d.ts.map +1 -1
- package/dist/SchemaIssue.js.map +1 -1
- package/dist/SchemaParser.d.ts.map +1 -1
- package/dist/SchemaParser.js +23 -43
- package/dist/SchemaParser.js.map +1 -1
- package/dist/SchemaRepresentation.d.ts.map +1 -1
- package/dist/SchemaRepresentation.js +10 -84
- package/dist/SchemaRepresentation.js.map +1 -1
- package/dist/SchemaTransformation.d.ts +9 -82
- package/dist/SchemaTransformation.d.ts.map +1 -1
- package/dist/SchemaTransformation.js +9 -82
- package/dist/SchemaTransformation.js.map +1 -1
- package/dist/SchemaUtils.d.ts.map +1 -1
- package/dist/SchemaUtils.js +5 -33
- package/dist/SchemaUtils.js.map +1 -1
- package/dist/Scope.d.ts +6 -41
- package/dist/Scope.d.ts.map +1 -1
- package/dist/Scope.js +6 -41
- package/dist/Scope.js.map +1 -1
- package/dist/ScopedCache.d.ts.map +1 -1
- package/dist/ScopedCache.js +8 -23
- package/dist/ScopedCache.js.map +1 -1
- package/dist/ScopedRef.d.ts +6 -18
- package/dist/ScopedRef.d.ts.map +1 -1
- package/dist/ScopedRef.js +6 -18
- package/dist/ScopedRef.js.map +1 -1
- package/dist/Semaphore.d.ts +8 -30
- package/dist/Semaphore.d.ts.map +1 -1
- package/dist/Semaphore.js.map +1 -1
- package/dist/Sink.d.ts +6 -29
- package/dist/Sink.d.ts.map +1 -1
- package/dist/Sink.js.map +1 -1
- package/dist/Stdio.d.ts +7 -26
- package/dist/Stdio.d.ts.map +1 -1
- package/dist/Stdio.js +7 -26
- package/dist/Stdio.js.map +1 -1
- package/dist/Stream.d.ts +8 -79
- package/dist/Stream.d.ts.map +1 -1
- package/dist/Stream.js +8 -79
- package/dist/Stream.js.map +1 -1
- package/dist/String.d.ts +5 -63
- package/dist/String.d.ts.map +1 -1
- package/dist/String.js +5 -63
- package/dist/String.js.map +1 -1
- package/dist/Struct.d.ts +8 -71
- package/dist/Struct.d.ts.map +1 -1
- package/dist/Struct.js +9 -71
- package/dist/Struct.js.map +1 -1
- package/dist/SubscriptionRef.d.ts +6 -53
- package/dist/SubscriptionRef.d.ts.map +1 -1
- package/dist/SubscriptionRef.js +6 -53
- package/dist/SubscriptionRef.js.map +1 -1
- package/dist/Symbol.d.ts +0 -17
- package/dist/Symbol.d.ts.map +1 -1
- package/dist/Symbol.js +0 -17
- package/dist/Symbol.js.map +1 -1
- package/dist/SynchronizedRef.d.ts +8 -21
- package/dist/SynchronizedRef.d.ts.map +1 -1
- package/dist/SynchronizedRef.js +8 -21
- package/dist/SynchronizedRef.js.map +1 -1
- package/dist/Take.d.ts +0 -24
- package/dist/Take.d.ts.map +1 -1
- package/dist/Take.js.map +1 -1
- package/dist/Terminal.d.ts +7 -28
- package/dist/Terminal.d.ts.map +1 -1
- package/dist/Terminal.js.map +1 -1
- package/dist/Tracer.d.ts +6 -36
- package/dist/Tracer.d.ts.map +1 -1
- package/dist/Tracer.js +6 -36
- package/dist/Tracer.js.map +1 -1
- package/dist/Trie.d.ts +6 -49
- package/dist/Trie.d.ts.map +1 -1
- package/dist/Trie.js.map +1 -1
- package/dist/Tuple.d.ts +8 -66
- package/dist/Tuple.d.ts.map +1 -1
- package/dist/Tuple.js +8 -66
- package/dist/Tuple.js.map +1 -1
- package/dist/TxChunk.d.ts +8 -40
- package/dist/TxChunk.d.ts.map +1 -1
- package/dist/TxChunk.js +8 -40
- package/dist/TxChunk.js.map +1 -1
- package/dist/TxDeferred.d.ts +0 -18
- package/dist/TxDeferred.d.ts.map +1 -1
- package/dist/TxDeferred.js +0 -18
- package/dist/TxDeferred.js.map +1 -1
- package/dist/TxHashMap.d.ts +6 -23
- package/dist/TxHashMap.d.ts.map +1 -1
- package/dist/TxHashMap.js +6 -23
- package/dist/TxHashMap.js.map +1 -1
- package/dist/TxHashSet.d.ts +10 -19
- package/dist/TxHashSet.d.ts.map +1 -1
- package/dist/TxHashSet.js +10 -19
- package/dist/TxHashSet.js.map +1 -1
- package/dist/TxPriorityQueue.d.ts +9 -29
- package/dist/TxPriorityQueue.d.ts.map +1 -1
- package/dist/TxPriorityQueue.js +9 -29
- package/dist/TxPriorityQueue.js.map +1 -1
- package/dist/TxPubSub.d.ts +6 -44
- package/dist/TxPubSub.d.ts.map +1 -1
- package/dist/TxPubSub.js +6 -44
- package/dist/TxPubSub.js.map +1 -1
- package/dist/TxQueue.d.ts +8 -48
- package/dist/TxQueue.d.ts.map +1 -1
- package/dist/TxQueue.js.map +1 -1
- package/dist/TxReentrantLock.d.ts +8 -40
- package/dist/TxReentrantLock.d.ts.map +1 -1
- package/dist/TxReentrantLock.js +8 -40
- package/dist/TxReentrantLock.js.map +1 -1
- package/dist/TxRef.d.ts +9 -59
- package/dist/TxRef.d.ts.map +1 -1
- package/dist/TxRef.js +9 -59
- package/dist/TxRef.js.map +1 -1
- package/dist/TxSemaphore.d.ts +6 -34
- package/dist/TxSemaphore.d.ts.map +1 -1
- package/dist/TxSemaphore.js +6 -34
- package/dist/TxSemaphore.js.map +1 -1
- package/dist/TxSubscriptionRef.d.ts +7 -35
- package/dist/TxSubscriptionRef.d.ts.map +1 -1
- package/dist/TxSubscriptionRef.js +7 -35
- package/dist/TxSubscriptionRef.js.map +1 -1
- package/dist/Types.d.ts +6 -48
- package/dist/Types.d.ts.map +1 -1
- package/dist/Types.js +5 -47
- package/dist/UndefinedOr.d.ts +8 -55
- package/dist/UndefinedOr.d.ts.map +1 -1
- package/dist/UndefinedOr.js +8 -55
- package/dist/UndefinedOr.js.map +1 -1
- package/dist/Unify.d.ts +8 -29
- package/dist/Unify.d.ts.map +1 -1
- package/dist/Unify.js +8 -29
- package/dist/Unify.js.map +1 -1
- package/dist/Utils.d.ts +8 -55
- package/dist/Utils.d.ts.map +1 -1
- package/dist/Utils.js +20 -14
- package/dist/Utils.js.map +1 -1
- package/dist/internal/effect.js +5 -3
- package/dist/internal/effect.js.map +1 -1
- package/dist/internal/option.js +5 -3
- package/dist/internal/option.js.map +1 -1
- package/dist/internal/schema/arbitrary.d.ts +4 -1
- package/dist/internal/schema/arbitrary.d.ts.map +1 -1
- package/dist/internal/schema/arbitrary.js +655 -170
- package/dist/internal/schema/arbitrary.js.map +1 -1
- package/dist/internal/schema/representation.js +1 -1
- package/dist/internal/schema/representation.js.map +1 -1
- package/dist/testing/FastCheck.d.ts +5 -6
- package/dist/testing/FastCheck.d.ts.map +1 -1
- package/dist/testing/FastCheck.js +5 -6
- package/dist/testing/FastCheck.js.map +1 -1
- package/dist/testing/TestClock.d.ts.map +1 -1
- package/dist/testing/TestClock.js +8 -23
- package/dist/testing/TestClock.js.map +1 -1
- package/dist/testing/TestConsole.d.ts.map +1 -1
- package/dist/testing/TestConsole.js +7 -36
- package/dist/testing/TestConsole.js.map +1 -1
- package/dist/testing/TestSchema.d.ts.map +1 -1
- package/dist/testing/TestSchema.js +6 -63
- package/dist/testing/TestSchema.js.map +1 -1
- package/dist/unstable/ai/AiError.d.ts +9 -78
- package/dist/unstable/ai/AiError.d.ts.map +1 -1
- package/dist/unstable/ai/AiError.js +9 -78
- 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 +7 -32
- package/dist/unstable/ai/AnthropicStructuredOutput.js.map +1 -1
- package/dist/unstable/ai/Chat.d.ts.map +1 -1
- package/dist/unstable/ai/Chat.js +0 -46
- package/dist/unstable/ai/Chat.js.map +1 -1
- package/dist/unstable/ai/EmbeddingModel.d.ts +8 -45
- package/dist/unstable/ai/EmbeddingModel.d.ts.map +1 -1
- package/dist/unstable/ai/EmbeddingModel.js +8 -45
- package/dist/unstable/ai/EmbeddingModel.js.map +1 -1
- package/dist/unstable/ai/IdGenerator.d.ts +6 -44
- package/dist/unstable/ai/IdGenerator.d.ts.map +1 -1
- package/dist/unstable/ai/IdGenerator.js +6 -44
- package/dist/unstable/ai/IdGenerator.js.map +1 -1
- package/dist/unstable/ai/LanguageModel.d.ts.map +1 -1
- package/dist/unstable/ai/LanguageModel.js.map +1 -1
- package/dist/unstable/ai/McpSchema.d.ts +8 -27
- package/dist/unstable/ai/McpSchema.d.ts.map +1 -1
- package/dist/unstable/ai/McpSchema.js +8 -27
- package/dist/unstable/ai/McpSchema.js.map +1 -1
- package/dist/unstable/ai/McpServer.d.ts.map +1 -1
- package/dist/unstable/ai/McpServer.js +8 -22
- package/dist/unstable/ai/McpServer.js.map +1 -1
- package/dist/unstable/ai/Model.d.ts +8 -49
- package/dist/unstable/ai/Model.d.ts.map +1 -1
- package/dist/unstable/ai/Model.js +8 -49
- package/dist/unstable/ai/Model.js.map +1 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.d.ts.map +1 -1
- package/dist/unstable/ai/OpenAiStructuredOutput.js +9 -50
- package/dist/unstable/ai/OpenAiStructuredOutput.js.map +1 -1
- package/dist/unstable/ai/Prompt.d.ts.map +1 -1
- package/dist/unstable/ai/Prompt.js +6 -50
- package/dist/unstable/ai/Prompt.js.map +1 -1
- package/dist/unstable/ai/Response.d.ts +8 -49
- package/dist/unstable/ai/Response.d.ts.map +1 -1
- package/dist/unstable/ai/Response.js.map +1 -1
- package/dist/unstable/ai/ResponseIdTracker.d.ts +0 -26
- package/dist/unstable/ai/ResponseIdTracker.d.ts.map +1 -1
- package/dist/unstable/ai/ResponseIdTracker.js +0 -26
- package/dist/unstable/ai/ResponseIdTracker.js.map +1 -1
- package/dist/unstable/ai/Telemetry.d.ts +6 -30
- package/dist/unstable/ai/Telemetry.d.ts.map +1 -1
- package/dist/unstable/ai/Telemetry.js +6 -30
- package/dist/unstable/ai/Telemetry.js.map +1 -1
- package/dist/unstable/ai/Tokenizer.d.ts +8 -46
- package/dist/unstable/ai/Tokenizer.d.ts.map +1 -1
- package/dist/unstable/ai/Tokenizer.js +8 -46
- package/dist/unstable/ai/Tokenizer.js.map +1 -1
- package/dist/unstable/ai/Tool.d.ts +9 -54
- package/dist/unstable/ai/Tool.d.ts.map +1 -1
- package/dist/unstable/ai/Tool.js +9 -54
- package/dist/unstable/ai/Tool.js.map +1 -1
- package/dist/unstable/ai/Toolkit.d.ts.map +1 -1
- package/dist/unstable/ai/Toolkit.js.map +1 -1
- package/dist/unstable/cli/Argument.d.ts +6 -20
- package/dist/unstable/cli/Argument.d.ts.map +1 -1
- package/dist/unstable/cli/Argument.js.map +1 -1
- package/dist/unstable/cli/CliError.d.ts.map +1 -1
- package/dist/unstable/cli/CliError.js +8 -23
- package/dist/unstable/cli/CliError.js.map +1 -1
- package/dist/unstable/cli/CliOutput.d.ts +6 -19
- package/dist/unstable/cli/CliOutput.d.ts.map +1 -1
- package/dist/unstable/cli/CliOutput.js +6 -19
- package/dist/unstable/cli/CliOutput.js.map +1 -1
- package/dist/unstable/cli/Command.d.ts +8 -27
- package/dist/unstable/cli/Command.d.ts.map +1 -1
- package/dist/unstable/cli/Command.js.map +1 -1
- package/dist/unstable/cli/Completions.d.ts.map +1 -1
- package/dist/unstable/cli/Completions.js +0 -24
- package/dist/unstable/cli/Completions.js.map +1 -1
- package/dist/unstable/cli/Flag.d.ts +8 -18
- package/dist/unstable/cli/Flag.d.ts.map +1 -1
- package/dist/unstable/cli/Flag.js.map +1 -1
- package/dist/unstable/cli/GlobalFlag.d.ts +8 -22
- package/dist/unstable/cli/GlobalFlag.d.ts.map +1 -1
- package/dist/unstable/cli/GlobalFlag.js +9 -23
- package/dist/unstable/cli/GlobalFlag.js.map +1 -1
- package/dist/unstable/cli/HelpDoc.d.ts +6 -19
- package/dist/unstable/cli/HelpDoc.d.ts.map +1 -1
- package/dist/unstable/cli/HelpDoc.js +6 -19
- package/dist/unstable/cli/Param.d.ts +8 -25
- package/dist/unstable/cli/Param.d.ts.map +1 -1
- package/dist/unstable/cli/Param.js +8 -25
- package/dist/unstable/cli/Param.js.map +1 -1
- package/dist/unstable/cli/Primitive.d.ts.map +1 -1
- package/dist/unstable/cli/Primitive.js +8 -58
- package/dist/unstable/cli/Primitive.js.map +1 -1
- package/dist/unstable/cli/Prompt.d.ts.map +1 -1
- package/dist/unstable/cli/Prompt.js +7 -22
- package/dist/unstable/cli/Prompt.js.map +1 -1
- package/dist/unstable/cluster/ClusterCron.d.ts +6 -26
- package/dist/unstable/cluster/ClusterCron.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterCron.js +6 -26
- package/dist/unstable/cluster/ClusterCron.js.map +1 -1
- package/dist/unstable/cluster/ClusterError.d.ts +5 -40
- package/dist/unstable/cluster/ClusterError.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterError.js +5 -40
- package/dist/unstable/cluster/ClusterError.js.map +1 -1
- package/dist/unstable/cluster/ClusterMetrics.d.ts +6 -20
- package/dist/unstable/cluster/ClusterMetrics.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterMetrics.js +6 -20
- package/dist/unstable/cluster/ClusterMetrics.js.map +1 -1
- package/dist/unstable/cluster/ClusterSchema.d.ts +0 -38
- package/dist/unstable/cluster/ClusterSchema.d.ts.map +1 -1
- package/dist/unstable/cluster/ClusterSchema.js +0 -38
- 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 +0 -16
- package/dist/unstable/cluster/ClusterWorkflowEngine.js.map +1 -1
- package/dist/unstable/cluster/DeliverAt.d.ts +0 -17
- package/dist/unstable/cluster/DeliverAt.d.ts.map +1 -1
- package/dist/unstable/cluster/DeliverAt.js.map +1 -1
- package/dist/unstable/cluster/Entity.d.ts.map +1 -1
- package/dist/unstable/cluster/Entity.js +8 -31
- package/dist/unstable/cluster/Entity.js.map +1 -1
- package/dist/unstable/cluster/EntityAddress.d.ts +0 -13
- package/dist/unstable/cluster/EntityAddress.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityAddress.js +0 -13
- package/dist/unstable/cluster/EntityAddress.js.map +1 -1
- package/dist/unstable/cluster/EntityId.d.ts +0 -24
- package/dist/unstable/cluster/EntityId.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityId.js +0 -24
- package/dist/unstable/cluster/EntityId.js.map +1 -1
- package/dist/unstable/cluster/EntityProxy.d.ts +7 -21
- package/dist/unstable/cluster/EntityProxy.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityProxy.js +6 -20
- package/dist/unstable/cluster/EntityProxy.js.map +1 -1
- package/dist/unstable/cluster/EntityProxyServer.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityProxyServer.js +7 -19
- package/dist/unstable/cluster/EntityProxyServer.js.map +1 -1
- package/dist/unstable/cluster/EntityResource.d.ts +8 -22
- package/dist/unstable/cluster/EntityResource.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityResource.js.map +1 -1
- package/dist/unstable/cluster/EntityType.d.ts +0 -13
- package/dist/unstable/cluster/EntityType.d.ts.map +1 -1
- package/dist/unstable/cluster/EntityType.js +0 -13
- package/dist/unstable/cluster/EntityType.js.map +1 -1
- package/dist/unstable/cluster/Envelope.d.ts.map +1 -1
- package/dist/unstable/cluster/Envelope.js +7 -22
- package/dist/unstable/cluster/Envelope.js.map +1 -1
- package/dist/unstable/cluster/HttpRunner.d.ts +5 -32
- package/dist/unstable/cluster/HttpRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/HttpRunner.js +5 -32
- package/dist/unstable/cluster/HttpRunner.js.map +1 -1
- package/dist/unstable/cluster/K8sHttpClient.d.ts +0 -32
- package/dist/unstable/cluster/K8sHttpClient.d.ts.map +1 -1
- package/dist/unstable/cluster/K8sHttpClient.js.map +1 -1
- package/dist/unstable/cluster/MachineId.d.ts +0 -20
- package/dist/unstable/cluster/MachineId.d.ts.map +1 -1
- package/dist/unstable/cluster/MachineId.js +0 -20
- package/dist/unstable/cluster/MachineId.js.map +1 -1
- package/dist/unstable/cluster/Message.d.ts +7 -23
- package/dist/unstable/cluster/Message.d.ts.map +1 -1
- package/dist/unstable/cluster/Message.js +7 -23
- package/dist/unstable/cluster/Message.js.map +1 -1
- package/dist/unstable/cluster/MessageStorage.d.ts +8 -37
- package/dist/unstable/cluster/MessageStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/MessageStorage.js +7 -36
- package/dist/unstable/cluster/MessageStorage.js.map +1 -1
- package/dist/unstable/cluster/Reply.d.ts +7 -19
- package/dist/unstable/cluster/Reply.d.ts.map +1 -1
- package/dist/unstable/cluster/Reply.js.map +1 -1
- package/dist/unstable/cluster/Runner.d.ts +3 -35
- package/dist/unstable/cluster/Runner.d.ts.map +1 -1
- package/dist/unstable/cluster/Runner.js +3 -35
- package/dist/unstable/cluster/Runner.js.map +1 -1
- package/dist/unstable/cluster/RunnerAddress.d.ts +4 -32
- package/dist/unstable/cluster/RunnerAddress.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerAddress.js +4 -32
- package/dist/unstable/cluster/RunnerAddress.js.map +1 -1
- package/dist/unstable/cluster/RunnerHealth.d.ts +6 -35
- package/dist/unstable/cluster/RunnerHealth.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerHealth.js +6 -35
- package/dist/unstable/cluster/RunnerHealth.js.map +1 -1
- package/dist/unstable/cluster/RunnerServer.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerServer.js +8 -23
- package/dist/unstable/cluster/RunnerServer.js.map +1 -1
- package/dist/unstable/cluster/RunnerStorage.d.ts +6 -21
- package/dist/unstable/cluster/RunnerStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/RunnerStorage.js +6 -21
- package/dist/unstable/cluster/RunnerStorage.js.map +1 -1
- package/dist/unstable/cluster/Runners.d.ts +8 -29
- package/dist/unstable/cluster/Runners.d.ts.map +1 -1
- package/dist/unstable/cluster/Runners.js +7 -28
- package/dist/unstable/cluster/Runners.js.map +1 -1
- package/dist/unstable/cluster/ShardId.d.ts +0 -17
- package/dist/unstable/cluster/ShardId.d.ts.map +1 -1
- package/dist/unstable/cluster/ShardId.js +0 -17
- package/dist/unstable/cluster/ShardId.js.map +1 -1
- package/dist/unstable/cluster/Sharding.d.ts.map +1 -1
- package/dist/unstable/cluster/Sharding.js +7 -39
- package/dist/unstable/cluster/Sharding.js.map +1 -1
- package/dist/unstable/cluster/ShardingConfig.d.ts +7 -34
- package/dist/unstable/cluster/ShardingConfig.d.ts.map +1 -1
- package/dist/unstable/cluster/ShardingConfig.js +8 -35
- package/dist/unstable/cluster/ShardingConfig.js.map +1 -1
- package/dist/unstable/cluster/ShardingRegistrationEvent.d.ts +0 -22
- package/dist/unstable/cluster/ShardingRegistrationEvent.d.ts.map +1 -1
- package/dist/unstable/cluster/ShardingRegistrationEvent.js +0 -22
- package/dist/unstable/cluster/ShardingRegistrationEvent.js.map +1 -1
- package/dist/unstable/cluster/SingleRunner.d.ts +8 -21
- package/dist/unstable/cluster/SingleRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/SingleRunner.js +8 -21
- package/dist/unstable/cluster/SingleRunner.js.map +1 -1
- package/dist/unstable/cluster/Singleton.d.ts +0 -23
- package/dist/unstable/cluster/Singleton.d.ts.map +1 -1
- package/dist/unstable/cluster/Singleton.js +0 -23
- package/dist/unstable/cluster/Singleton.js.map +1 -1
- package/dist/unstable/cluster/SingletonAddress.d.ts +0 -22
- package/dist/unstable/cluster/SingletonAddress.d.ts.map +1 -1
- package/dist/unstable/cluster/SingletonAddress.js +0 -22
- package/dist/unstable/cluster/SingletonAddress.js.map +1 -1
- package/dist/unstable/cluster/Snowflake.d.ts +8 -17
- package/dist/unstable/cluster/Snowflake.d.ts.map +1 -1
- package/dist/unstable/cluster/Snowflake.js.map +1 -1
- package/dist/unstable/cluster/SocketRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/SocketRunner.js +6 -19
- package/dist/unstable/cluster/SocketRunner.js.map +1 -1
- package/dist/unstable/cluster/SqlMessageStorage.d.ts.map +1 -1
- package/dist/unstable/cluster/SqlMessageStorage.js +7 -36
- 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 +6 -27
- package/dist/unstable/cluster/SqlRunnerStorage.js.map +1 -1
- package/dist/unstable/cluster/TestRunner.d.ts +0 -21
- package/dist/unstable/cluster/TestRunner.d.ts.map +1 -1
- package/dist/unstable/cluster/TestRunner.js +0 -21
- package/dist/unstable/cluster/TestRunner.js.map +1 -1
- package/dist/unstable/cluster/internal/entityManager.js +18 -6
- package/dist/unstable/cluster/internal/entityManager.js.map +1 -1
- package/dist/unstable/devtools/DevTools.d.ts +0 -17
- package/dist/unstable/devtools/DevTools.d.ts.map +1 -1
- package/dist/unstable/devtools/DevTools.js +0 -17
- package/dist/unstable/devtools/DevTools.js.map +1 -1
- package/dist/unstable/devtools/DevToolsClient.d.ts.map +1 -1
- package/dist/unstable/devtools/DevToolsClient.js +0 -24
- package/dist/unstable/devtools/DevToolsClient.js.map +1 -1
- package/dist/unstable/devtools/DevToolsSchema.d.ts.map +1 -1
- package/dist/unstable/devtools/DevToolsSchema.js +0 -17
- package/dist/unstable/devtools/DevToolsSchema.js.map +1 -1
- package/dist/unstable/devtools/DevToolsServer.d.ts +0 -13
- package/dist/unstable/devtools/DevToolsServer.d.ts.map +1 -1
- package/dist/unstable/devtools/DevToolsServer.js +0 -13
- package/dist/unstable/devtools/DevToolsServer.js.map +1 -1
- package/dist/unstable/encoding/Msgpack.d.ts.map +1 -1
- package/dist/unstable/encoding/Msgpack.js +5 -28
- package/dist/unstable/encoding/Msgpack.js.map +1 -1
- package/dist/unstable/encoding/Ndjson.d.ts +4 -28
- package/dist/unstable/encoding/Ndjson.d.ts.map +1 -1
- package/dist/unstable/encoding/Ndjson.js +4 -28
- package/dist/unstable/encoding/Ndjson.js.map +1 -1
- package/dist/unstable/encoding/Sse.d.ts +6 -37
- package/dist/unstable/encoding/Sse.d.ts.map +1 -1
- package/dist/unstable/encoding/Sse.js.map +1 -1
- package/dist/unstable/eventlog/Event.d.ts.map +1 -1
- package/dist/unstable/eventlog/Event.js +3 -25
- package/dist/unstable/eventlog/Event.js.map +1 -1
- package/dist/unstable/eventlog/EventGroup.d.ts +6 -21
- package/dist/unstable/eventlog/EventGroup.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventGroup.js +6 -21
- package/dist/unstable/eventlog/EventGroup.js.map +1 -1
- package/dist/unstable/eventlog/EventJournal.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventJournal.js +9 -32
- package/dist/unstable/eventlog/EventJournal.js.map +1 -1
- package/dist/unstable/eventlog/EventLog.d.ts +6 -28
- package/dist/unstable/eventlog/EventLog.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLog.js +6 -28
- package/dist/unstable/eventlog/EventLog.js.map +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.d.ts +5 -18
- package/dist/unstable/eventlog/EventLogEncryption.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.js +5 -18
- package/dist/unstable/eventlog/EventLogEncryption.js.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.d.ts +4 -20
- package/dist/unstable/eventlog/EventLogMessage.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogMessage.js.map +1 -1
- package/dist/unstable/eventlog/EventLogRemote.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogRemote.js +7 -17
- package/dist/unstable/eventlog/EventLogRemote.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServer.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServer.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServerEncrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServerEncrypted.js +8 -19
- package/dist/unstable/eventlog/EventLogServerEncrypted.js.map +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js +7 -35
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js.map +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.d.ts.map +1 -1
- package/dist/unstable/eventlog/EventLogSessionAuth.js +6 -35
- package/dist/unstable/eventlog/EventLogSessionAuth.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventJournal.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventJournal.js +0 -26
- package/dist/unstable/eventlog/SqlEventJournal.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.d.ts +6 -39
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.js +6 -39
- package/dist/unstable/eventlog/SqlEventLogServerEncrypted.js.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.d.ts.map +1 -1
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js +0 -29
- package/dist/unstable/eventlog/SqlEventLogServerUnencrypted.js.map +1 -1
- package/dist/unstable/http/Cookies.d.ts +7 -59
- package/dist/unstable/http/Cookies.d.ts.map +1 -1
- package/dist/unstable/http/Cookies.js +7 -59
- package/dist/unstable/http/Cookies.js.map +1 -1
- package/dist/unstable/http/Etag.d.ts +0 -22
- package/dist/unstable/http/Etag.d.ts.map +1 -1
- package/dist/unstable/http/Etag.js +0 -22
- package/dist/unstable/http/Etag.js.map +1 -1
- package/dist/unstable/http/FetchHttpClient.d.ts +0 -23
- package/dist/unstable/http/FetchHttpClient.d.ts.map +1 -1
- package/dist/unstable/http/FetchHttpClient.js +0 -23
- package/dist/unstable/http/FetchHttpClient.js.map +1 -1
- package/dist/unstable/http/FindMyWay.d.ts +6 -0
- package/dist/unstable/http/FindMyWay.d.ts.map +1 -1
- package/dist/unstable/http/FindMyWay.js +6 -0
- package/dist/unstable/http/FindMyWay.js.map +1 -1
- package/dist/unstable/http/Headers.d.ts +6 -52
- package/dist/unstable/http/Headers.d.ts.map +1 -1
- package/dist/unstable/http/Headers.js +9 -53
- package/dist/unstable/http/Headers.js.map +1 -1
- package/dist/unstable/http/HttpBody.d.ts.map +1 -1
- package/dist/unstable/http/HttpBody.js +9 -53
- package/dist/unstable/http/HttpBody.js.map +1 -1
- package/dist/unstable/http/HttpClient.d.ts +9 -34
- package/dist/unstable/http/HttpClient.d.ts.map +1 -1
- package/dist/unstable/http/HttpClient.js.map +1 -1
- package/dist/unstable/http/HttpClientError.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientError.js +0 -20
- package/dist/unstable/http/HttpClientError.js.map +1 -1
- package/dist/unstable/http/HttpClientRequest.d.ts +4 -35
- package/dist/unstable/http/HttpClientRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientRequest.js +4 -35
- package/dist/unstable/http/HttpClientRequest.js.map +1 -1
- package/dist/unstable/http/HttpClientResponse.d.ts +6 -34
- package/dist/unstable/http/HttpClientResponse.d.ts.map +1 -1
- package/dist/unstable/http/HttpClientResponse.js +6 -34
- package/dist/unstable/http/HttpClientResponse.js.map +1 -1
- package/dist/unstable/http/HttpEffect.d.ts.map +1 -1
- package/dist/unstable/http/HttpEffect.js.map +1 -1
- package/dist/unstable/http/HttpIncomingMessage.d.ts +6 -22
- package/dist/unstable/http/HttpIncomingMessage.d.ts.map +1 -1
- package/dist/unstable/http/HttpIncomingMessage.js +6 -22
- package/dist/unstable/http/HttpIncomingMessage.js.map +1 -1
- package/dist/unstable/http/HttpMethod.d.ts +5 -29
- package/dist/unstable/http/HttpMethod.d.ts.map +1 -1
- package/dist/unstable/http/HttpMethod.js +5 -29
- package/dist/unstable/http/HttpMethod.js.map +1 -1
- package/dist/unstable/http/HttpMiddleware.d.ts.map +1 -1
- package/dist/unstable/http/HttpMiddleware.js +6 -19
- package/dist/unstable/http/HttpMiddleware.js.map +1 -1
- package/dist/unstable/http/HttpPlatform.d.ts +0 -13
- package/dist/unstable/http/HttpPlatform.d.ts.map +1 -1
- package/dist/unstable/http/HttpPlatform.js +0 -13
- package/dist/unstable/http/HttpPlatform.js.map +1 -1
- package/dist/unstable/http/HttpRouter.d.ts.map +1 -1
- package/dist/unstable/http/HttpRouter.js +7 -39
- package/dist/unstable/http/HttpRouter.js.map +1 -1
- package/dist/unstable/http/HttpServer.d.ts +6 -29
- package/dist/unstable/http/HttpServer.d.ts.map +1 -1
- package/dist/unstable/http/HttpServer.js +6 -29
- package/dist/unstable/http/HttpServer.js.map +1 -1
- package/dist/unstable/http/HttpServerError.d.ts +6 -30
- package/dist/unstable/http/HttpServerError.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerError.js +6 -30
- package/dist/unstable/http/HttpServerError.js.map +1 -1
- package/dist/unstable/http/HttpServerRequest.d.ts +8 -33
- package/dist/unstable/http/HttpServerRequest.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerRequest.js.map +1 -1
- package/dist/unstable/http/HttpServerRespondable.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerRespondable.js +5 -29
- package/dist/unstable/http/HttpServerRespondable.js.map +1 -1
- package/dist/unstable/http/HttpServerResponse.d.ts +8 -41
- package/dist/unstable/http/HttpServerResponse.d.ts.map +1 -1
- package/dist/unstable/http/HttpServerResponse.js +8 -41
- package/dist/unstable/http/HttpServerResponse.js.map +1 -1
- package/dist/unstable/http/HttpStaticServer.d.ts +6 -31
- package/dist/unstable/http/HttpStaticServer.d.ts.map +1 -1
- package/dist/unstable/http/HttpStaticServer.js +6 -31
- package/dist/unstable/http/HttpStaticServer.js.map +1 -1
- package/dist/unstable/http/HttpTraceContext.d.ts +0 -24
- package/dist/unstable/http/HttpTraceContext.d.ts.map +1 -1
- package/dist/unstable/http/HttpTraceContext.js +0 -24
- package/dist/unstable/http/HttpTraceContext.js.map +1 -1
- package/dist/unstable/http/Multipart.d.ts +6 -35
- package/dist/unstable/http/Multipart.d.ts.map +1 -1
- package/dist/unstable/http/Multipart.js +6 -35
- package/dist/unstable/http/Multipart.js.map +1 -1
- package/dist/unstable/http/Multipasta/HeadersParser.d.ts +5 -0
- package/dist/unstable/http/Multipasta/HeadersParser.d.ts.map +1 -1
- package/dist/unstable/http/Multipasta/HeadersParser.js +5 -0
- package/dist/unstable/http/Multipasta/HeadersParser.js.map +1 -1
- package/dist/unstable/http/Multipasta/Node.d.ts +5 -0
- package/dist/unstable/http/Multipasta/Node.d.ts.map +1 -1
- package/dist/unstable/http/Multipasta/Node.js +5 -0
- package/dist/unstable/http/Multipasta/Node.js.map +1 -1
- package/dist/unstable/http/Multipasta/Search.d.ts +5 -0
- package/dist/unstable/http/Multipasta/Search.d.ts.map +1 -1
- package/dist/unstable/http/Multipasta/Search.js +5 -0
- package/dist/unstable/http/Multipasta/Search.js.map +1 -1
- package/dist/unstable/http/Multipasta/Web.d.ts +5 -0
- package/dist/unstable/http/Multipasta/Web.d.ts.map +1 -1
- package/dist/unstable/http/Multipasta/Web.js +5 -0
- package/dist/unstable/http/Multipasta/Web.js.map +1 -1
- package/dist/unstable/http/Multipasta.d.ts +6 -0
- package/dist/unstable/http/Multipasta.d.ts.map +1 -1
- package/dist/unstable/http/Multipasta.js +6 -0
- package/dist/unstable/http/Multipasta.js.map +1 -1
- package/dist/unstable/http/Template.d.ts +5 -26
- package/dist/unstable/http/Template.d.ts.map +1 -1
- package/dist/unstable/http/Template.js +5 -26
- package/dist/unstable/http/Template.js.map +1 -1
- package/dist/unstable/http/Url.d.ts +5 -28
- package/dist/unstable/http/Url.d.ts.map +1 -1
- package/dist/unstable/http/Url.js +5 -28
- package/dist/unstable/http/Url.js.map +1 -1
- package/dist/unstable/http/UrlParams.d.ts +4 -32
- package/dist/unstable/http/UrlParams.d.ts.map +1 -1
- package/dist/unstable/http/UrlParams.js +4 -32
- package/dist/unstable/http/UrlParams.js.map +1 -1
- package/dist/unstable/httpapi/HttpApi.d.ts +5 -45
- package/dist/unstable/httpapi/HttpApi.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApi.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiBuilder.js +5 -39
- package/dist/unstable/httpapi/HttpApiBuilder.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiClient.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiClient.js +20 -43
- package/dist/unstable/httpapi/HttpApiClient.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiEndpoint.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiEndpoint.js +9 -51
- 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 +1 -32
- package/dist/unstable/httpapi/HttpApiError.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiGroup.d.ts +8 -34
- package/dist/unstable/httpapi/HttpApiGroup.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiGroup.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.d.ts +9 -48
- package/dist/unstable/httpapi/HttpApiMiddleware.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiMiddleware.js +9 -48
- package/dist/unstable/httpapi/HttpApiMiddleware.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiScalar.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiScalar.js +0 -24
- package/dist/unstable/httpapi/HttpApiScalar.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.d.ts +0 -32
- package/dist/unstable/httpapi/HttpApiSchema.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSchema.js +0 -32
- package/dist/unstable/httpapi/HttpApiSchema.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts +0 -29
- package/dist/unstable/httpapi/HttpApiSecurity.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSecurity.js +0 -29
- package/dist/unstable/httpapi/HttpApiSecurity.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiSwagger.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiSwagger.js +0 -24
- package/dist/unstable/httpapi/HttpApiSwagger.js.map +1 -1
- package/dist/unstable/httpapi/HttpApiTest.d.ts.map +1 -1
- package/dist/unstable/httpapi/HttpApiTest.js +5 -18
- 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 +5 -39
- package/dist/unstable/httpapi/OpenApi.js.map +1 -1
- package/dist/unstable/observability/Otlp.d.ts +5 -32
- package/dist/unstable/observability/Otlp.d.ts.map +1 -1
- package/dist/unstable/observability/Otlp.js.map +1 -1
- package/dist/unstable/observability/OtlpExporter.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpExporter.js +5 -22
- package/dist/unstable/observability/OtlpExporter.js.map +1 -1
- package/dist/unstable/observability/OtlpLogger.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpLogger.js +5 -31
- 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 +8 -20
- 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 +5 -35
- package/dist/unstable/observability/OtlpResource.js.map +1 -1
- package/dist/unstable/observability/OtlpSerialization.d.ts +4 -26
- package/dist/unstable/observability/OtlpSerialization.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpSerialization.js +4 -26
- package/dist/unstable/observability/OtlpSerialization.js.map +1 -1
- package/dist/unstable/observability/OtlpTracer.d.ts.map +1 -1
- package/dist/unstable/observability/OtlpTracer.js +7 -20
- package/dist/unstable/observability/OtlpTracer.js.map +1 -1
- package/dist/unstable/observability/PrometheusMetrics.d.ts +4 -41
- package/dist/unstable/observability/PrometheusMetrics.d.ts.map +1 -1
- package/dist/unstable/observability/PrometheusMetrics.js.map +1 -1
- package/dist/unstable/persistence/KeyValueStore.d.ts +8 -20
- package/dist/unstable/persistence/KeyValueStore.d.ts.map +1 -1
- package/dist/unstable/persistence/KeyValueStore.js +7 -19
- package/dist/unstable/persistence/KeyValueStore.js.map +1 -1
- package/dist/unstable/persistence/Persistable.d.ts +5 -19
- package/dist/unstable/persistence/Persistable.d.ts.map +1 -1
- package/dist/unstable/persistence/Persistable.js.map +1 -1
- package/dist/unstable/persistence/PersistedCache.d.ts +5 -28
- package/dist/unstable/persistence/PersistedCache.d.ts.map +1 -1
- package/dist/unstable/persistence/PersistedCache.js +5 -28
- package/dist/unstable/persistence/PersistedCache.js.map +1 -1
- package/dist/unstable/persistence/PersistedQueue.d.ts.map +1 -1
- package/dist/unstable/persistence/PersistedQueue.js.map +1 -1
- package/dist/unstable/persistence/Persistence.d.ts +6 -22
- package/dist/unstable/persistence/Persistence.d.ts.map +1 -1
- package/dist/unstable/persistence/Persistence.js +5 -21
- package/dist/unstable/persistence/Persistence.js.map +1 -1
- package/dist/unstable/persistence/RateLimiter.d.ts +8 -24
- package/dist/unstable/persistence/RateLimiter.d.ts.map +1 -1
- package/dist/unstable/persistence/RateLimiter.js +17 -35
- package/dist/unstable/persistence/RateLimiter.js.map +1 -1
- package/dist/unstable/persistence/Redis.d.ts.map +1 -1
- package/dist/unstable/persistence/Redis.js +6 -32
- package/dist/unstable/persistence/Redis.js.map +1 -1
- package/dist/unstable/process/ChildProcess.d.ts.map +1 -1
- package/dist/unstable/process/ChildProcess.js +6 -38
- package/dist/unstable/process/ChildProcess.js.map +1 -1
- package/dist/unstable/process/ChildProcessSpawner.d.ts +7 -15
- package/dist/unstable/process/ChildProcessSpawner.d.ts.map +1 -1
- package/dist/unstable/process/ChildProcessSpawner.js +7 -15
- package/dist/unstable/process/ChildProcessSpawner.js.map +1 -1
- package/dist/unstable/reactivity/AsyncResult.d.ts +8 -40
- package/dist/unstable/reactivity/AsyncResult.d.ts.map +1 -1
- package/dist/unstable/reactivity/AsyncResult.js +8 -40
- package/dist/unstable/reactivity/AsyncResult.js.map +1 -1
- package/dist/unstable/reactivity/Atom.d.ts +8 -36
- package/dist/unstable/reactivity/Atom.d.ts.map +1 -1
- package/dist/unstable/reactivity/Atom.js +8 -36
- package/dist/unstable/reactivity/Atom.js.map +1 -1
- package/dist/unstable/reactivity/AtomHttpApi.d.ts +6 -25
- package/dist/unstable/reactivity/AtomHttpApi.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomHttpApi.js +6 -25
- package/dist/unstable/reactivity/AtomHttpApi.js.map +1 -1
- package/dist/unstable/reactivity/AtomRef.d.ts +4 -29
- package/dist/unstable/reactivity/AtomRef.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRef.js +4 -29
- package/dist/unstable/reactivity/AtomRef.js.map +1 -1
- package/dist/unstable/reactivity/AtomRegistry.d.ts +7 -74
- package/dist/unstable/reactivity/AtomRegistry.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRegistry.js +6 -73
- package/dist/unstable/reactivity/AtomRegistry.js.map +1 -1
- package/dist/unstable/reactivity/AtomRpc.d.ts +6 -20
- package/dist/unstable/reactivity/AtomRpc.d.ts.map +1 -1
- package/dist/unstable/reactivity/AtomRpc.js +6 -20
- package/dist/unstable/reactivity/AtomRpc.js.map +1 -1
- package/dist/unstable/reactivity/Hydration.d.ts.map +1 -1
- package/dist/unstable/reactivity/Hydration.js +8 -31
- package/dist/unstable/reactivity/Hydration.js.map +1 -1
- package/dist/unstable/reactivity/Reactivity.d.ts +6 -37
- package/dist/unstable/reactivity/Reactivity.d.ts.map +1 -1
- package/dist/unstable/reactivity/Reactivity.js +6 -37
- package/dist/unstable/reactivity/Reactivity.js.map +1 -1
- package/dist/unstable/rpc/Rpc.d.ts +8 -40
- package/dist/unstable/rpc/Rpc.d.ts.map +1 -1
- package/dist/unstable/rpc/Rpc.js.map +1 -1
- package/dist/unstable/rpc/RpcClient.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcClient.js.map +1 -1
- package/dist/unstable/rpc/RpcClientError.d.ts +0 -23
- package/dist/unstable/rpc/RpcClientError.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcClientError.js +0 -23
- package/dist/unstable/rpc/RpcClientError.js.map +1 -1
- package/dist/unstable/rpc/RpcGroup.d.ts +5 -30
- package/dist/unstable/rpc/RpcGroup.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcGroup.js.map +1 -1
- package/dist/unstable/rpc/RpcMessage.d.ts +0 -26
- package/dist/unstable/rpc/RpcMessage.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcMessage.js.map +1 -1
- package/dist/unstable/rpc/RpcMiddleware.d.ts +0 -28
- package/dist/unstable/rpc/RpcMiddleware.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcMiddleware.js +0 -28
- package/dist/unstable/rpc/RpcMiddleware.js.map +1 -1
- package/dist/unstable/rpc/RpcSchema.d.ts +0 -25
- package/dist/unstable/rpc/RpcSchema.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcSchema.js +0 -25
- package/dist/unstable/rpc/RpcSchema.js.map +1 -1
- package/dist/unstable/rpc/RpcSerialization.d.ts +7 -33
- package/dist/unstable/rpc/RpcSerialization.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcSerialization.js +6 -32
- 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.map +1 -1
- package/dist/unstable/rpc/RpcTest.d.ts +0 -24
- package/dist/unstable/rpc/RpcTest.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcTest.js +0 -24
- package/dist/unstable/rpc/RpcTest.js.map +1 -1
- package/dist/unstable/rpc/RpcWorker.d.ts +6 -30
- package/dist/unstable/rpc/RpcWorker.d.ts.map +1 -1
- package/dist/unstable/rpc/RpcWorker.js.map +1 -1
- package/dist/unstable/rpc/Utils.d.ts.map +1 -1
- package/dist/unstable/rpc/Utils.js.map +1 -1
- package/dist/unstable/schema/Model.d.ts +20 -3
- package/dist/unstable/schema/Model.d.ts.map +1 -1
- package/dist/unstable/schema/Model.js +18 -17
- package/dist/unstable/schema/Model.js.map +1 -1
- package/dist/unstable/schema/VariantSchema.d.ts +5 -17
- package/dist/unstable/schema/VariantSchema.d.ts.map +1 -1
- package/dist/unstable/schema/VariantSchema.js.map +1 -1
- package/dist/unstable/socket/Socket.d.ts +6 -21
- package/dist/unstable/socket/Socket.d.ts.map +1 -1
- package/dist/unstable/socket/Socket.js.map +1 -1
- package/dist/unstable/socket/SocketServer.d.ts +6 -20
- package/dist/unstable/socket/SocketServer.d.ts.map +1 -1
- package/dist/unstable/socket/SocketServer.js +6 -20
- package/dist/unstable/socket/SocketServer.js.map +1 -1
- package/dist/unstable/sql/Migrator.d.ts.map +1 -1
- package/dist/unstable/sql/Migrator.js +5 -40
- package/dist/unstable/sql/Migrator.js.map +1 -1
- package/dist/unstable/sql/SqlClient.d.ts.map +1 -1
- package/dist/unstable/sql/SqlClient.js +5 -19
- package/dist/unstable/sql/SqlClient.js.map +1 -1
- package/dist/unstable/sql/SqlConnection.d.ts +6 -18
- package/dist/unstable/sql/SqlConnection.d.ts.map +1 -1
- package/dist/unstable/sql/SqlConnection.js +6 -18
- package/dist/unstable/sql/SqlConnection.js.map +1 -1
- package/dist/unstable/sql/SqlError.d.ts.map +1 -1
- package/dist/unstable/sql/SqlError.js +7 -32
- package/dist/unstable/sql/SqlError.js.map +1 -1
- package/dist/unstable/sql/SqlModel.d.ts +6 -14
- package/dist/unstable/sql/SqlModel.d.ts.map +1 -1
- package/dist/unstable/sql/SqlModel.js.map +1 -1
- package/dist/unstable/sql/SqlResolver.d.ts +6 -23
- package/dist/unstable/sql/SqlResolver.d.ts.map +1 -1
- package/dist/unstable/sql/SqlResolver.js +6 -23
- package/dist/unstable/sql/SqlResolver.js.map +1 -1
- package/dist/unstable/sql/SqlSchema.d.ts +3 -27
- package/dist/unstable/sql/SqlSchema.d.ts.map +1 -1
- package/dist/unstable/sql/SqlSchema.js +3 -27
- package/dist/unstable/sql/SqlSchema.js.map +1 -1
- package/dist/unstable/sql/SqlStream.d.ts.map +1 -1
- package/dist/unstable/sql/SqlStream.js +0 -10
- package/dist/unstable/sql/SqlStream.js.map +1 -1
- package/dist/unstable/sql/Statement.d.ts.map +1 -1
- package/dist/unstable/sql/Statement.js +6 -34
- package/dist/unstable/sql/Statement.js.map +1 -1
- package/dist/unstable/workers/Transferable.d.ts +0 -21
- package/dist/unstable/workers/Transferable.d.ts.map +1 -1
- package/dist/unstable/workers/Transferable.js +0 -21
- package/dist/unstable/workers/Transferable.js.map +1 -1
- package/dist/unstable/workers/Worker.d.ts +6 -34
- package/dist/unstable/workers/Worker.d.ts.map +1 -1
- package/dist/unstable/workers/Worker.js +6 -34
- package/dist/unstable/workers/Worker.js.map +1 -1
- package/dist/unstable/workers/WorkerError.d.ts.map +1 -1
- package/dist/unstable/workers/WorkerError.js +4 -33
- package/dist/unstable/workers/WorkerError.js.map +1 -1
- package/dist/unstable/workers/WorkerRunner.d.ts +5 -30
- package/dist/unstable/workers/WorkerRunner.d.ts.map +1 -1
- package/dist/unstable/workers/WorkerRunner.js +5 -30
- package/dist/unstable/workers/WorkerRunner.js.map +1 -1
- package/dist/unstable/workflow/Activity.d.ts +5 -18
- package/dist/unstable/workflow/Activity.d.ts.map +1 -1
- package/dist/unstable/workflow/Activity.js.map +1 -1
- package/dist/unstable/workflow/DurableClock.d.ts.map +1 -1
- package/dist/unstable/workflow/DurableClock.js +5 -24
- package/dist/unstable/workflow/DurableClock.js.map +1 -1
- package/dist/unstable/workflow/DurableDeferred.d.ts.map +1 -1
- package/dist/unstable/workflow/DurableDeferred.js +6 -18
- package/dist/unstable/workflow/DurableDeferred.js.map +1 -1
- package/dist/unstable/workflow/DurableQueue.d.ts +0 -25
- package/dist/unstable/workflow/DurableQueue.d.ts.map +1 -1
- package/dist/unstable/workflow/DurableQueue.js +0 -25
- package/dist/unstable/workflow/DurableQueue.js.map +1 -1
- package/dist/unstable/workflow/Workflow.d.ts +1 -1
- package/dist/unstable/workflow/Workflow.d.ts.map +1 -1
- package/dist/unstable/workflow/Workflow.js +7 -19
- package/dist/unstable/workflow/Workflow.js.map +1 -1
- package/dist/unstable/workflow/WorkflowEngine.d.ts +8 -20
- package/dist/unstable/workflow/WorkflowEngine.d.ts.map +1 -1
- package/dist/unstable/workflow/WorkflowEngine.js.map +1 -1
- package/dist/unstable/workflow/WorkflowProxy.d.ts +7 -23
- package/dist/unstable/workflow/WorkflowProxy.d.ts.map +1 -1
- package/dist/unstable/workflow/WorkflowProxy.js.map +1 -1
- package/dist/unstable/workflow/WorkflowProxyServer.d.ts +6 -23
- package/dist/unstable/workflow/WorkflowProxyServer.d.ts.map +1 -1
- package/dist/unstable/workflow/WorkflowProxyServer.js.map +1 -1
- package/package.json +1 -1
- package/src/Array.ts +6 -81
- package/src/BigDecimal.ts +5 -55
- package/src/BigInt.ts +5 -64
- package/src/Boolean.ts +5 -52
- package/src/Brand.ts +0 -44
- package/src/Cache.ts +5 -44
- package/src/Cause.ts +6 -72
- package/src/Channel.ts +6 -67
- package/src/ChannelSchema.ts +5 -41
- package/src/Chunk.ts +6 -67
- package/src/Clock.ts +4 -56
- package/src/Combiner.ts +6 -57
- package/src/Config.ts +5 -69
- package/src/ConfigProvider.ts +6 -75
- package/src/Console.ts +6 -70
- package/src/Context.ts +8 -47
- package/src/Cron.ts +5 -41
- package/src/Crypto.ts +6 -50
- package/src/Data.ts +5 -72
- package/src/DateTime.ts +8 -48
- package/src/Deferred.ts +5 -58
- package/src/Differ.ts +4 -35
- package/src/Duration.ts +6 -46
- package/src/Effect.ts +227 -103
- package/src/Effectable.ts +4 -34
- package/src/Encoding.ts +5 -46
- package/src/Equal.ts +6 -66
- package/src/Equivalence.ts +6 -48
- package/src/ErrorReporter.ts +8 -47
- package/src/ExecutionPlan.ts +6 -79
- package/src/Exit.ts +6 -53
- package/src/Fiber.ts +5 -52
- package/src/FiberHandle.ts +8 -38
- package/src/FiberMap.ts +7 -34
- package/src/FiberSet.ts +6 -36
- package/src/FileSystem.ts +8 -51
- package/src/Filter.ts +8 -33
- package/src/Formatter.ts +6 -49
- package/src/Function.ts +5 -43
- package/src/Graph.ts +79 -61
- package/src/HKT.ts +6 -48
- package/src/Hash.ts +7 -49
- package/src/HashMap.ts +6 -69
- package/src/HashRing.ts +6 -56
- package/src/HashSet.ts +7 -36
- package/src/Inspectable.ts +6 -60
- package/src/Iterable.ts +5 -50
- package/src/JsonPatch.ts +0 -53
- package/src/JsonPointer.ts +4 -49
- package/src/JsonSchema.ts +6 -82
- package/src/Latch.ts +5 -31
- package/src/Layer.ts +6 -38
- package/src/LayerMap.ts +7 -32
- package/src/LogLevel.ts +4 -35
- package/src/Logger.ts +6 -80
- package/src/ManagedRuntime.ts +6 -36
- package/src/Match.ts +8 -42
- package/src/Metric.ts +8 -81
- package/src/MutableHashMap.ts +6 -35
- package/src/MutableHashSet.ts +5 -63
- package/src/MutableList.ts +6 -46
- package/src/MutableRef.ts +7 -30
- package/src/Newtype.ts +8 -61
- package/src/NonEmptyIterable.ts +0 -135
- package/src/Number.ts +4 -55
- package/src/Optic.ts +9 -91
- package/src/Option.ts +8 -69
- package/src/Order.ts +8 -76
- package/src/Ordering.ts +5 -31
- package/src/PartitionedSemaphore.ts +0 -28
- package/src/Path.ts +7 -29
- package/src/Pipeable.ts +0 -11
- package/src/PlatformError.ts +7 -29
- package/src/Pool.ts +6 -42
- package/src/Predicate.ts +6 -61
- package/src/PrimaryKey.ts +0 -40
- package/src/PubSub.ts +8 -56
- package/src/Pull.ts +8 -25
- package/src/Queue.ts +5 -62
- package/src/Random.ts +18 -114
- package/src/RcMap.ts +9 -17
- package/src/RcRef.ts +6 -36
- package/src/Record.ts +6 -71
- package/src/Redactable.ts +0 -58
- package/src/Redacted.ts +8 -41
- package/src/Reducer.ts +5 -64
- package/src/Ref.ts +8 -49
- package/src/References.ts +0 -49
- package/src/RegExp.ts +0 -26
- package/src/Request.ts +6 -41
- package/src/RequestResolver.ts +6 -41
- package/src/Resource.ts +5 -30
- package/src/Result.ts +6 -64
- package/src/Runtime.ts +7 -55
- package/src/Schedule.ts +5 -61
- package/src/Scheduler.ts +6 -17
- package/src/Schema.ts +697 -397
- package/src/SchemaAST.ts +115 -91
- package/src/SchemaGetter.ts +9 -83
- package/src/SchemaIssue.ts +8 -76
- package/src/SchemaParser.ts +27 -43
- package/src/SchemaRepresentation.ts +10 -84
- package/src/SchemaTransformation.ts +9 -82
- package/src/SchemaUtils.ts +5 -33
- package/src/Scope.ts +6 -41
- package/src/ScopedCache.ts +8 -23
- package/src/ScopedRef.ts +6 -18
- package/src/Semaphore.ts +8 -30
- package/src/Sink.ts +6 -29
- package/src/Stdio.ts +7 -26
- package/src/Stream.ts +8 -79
- package/src/String.ts +5 -63
- package/src/Struct.ts +9 -71
- package/src/SubscriptionRef.ts +6 -53
- package/src/Symbol.ts +0 -17
- package/src/SynchronizedRef.ts +8 -21
- package/src/Take.ts +0 -24
- package/src/Terminal.ts +7 -28
- package/src/Tracer.ts +6 -36
- package/src/Trie.ts +6 -49
- package/src/Tuple.ts +8 -66
- package/src/TxChunk.ts +8 -40
- package/src/TxDeferred.ts +0 -18
- package/src/TxHashMap.ts +6 -23
- package/src/TxHashSet.ts +10 -19
- package/src/TxPriorityQueue.ts +9 -29
- package/src/TxPubSub.ts +6 -44
- package/src/TxQueue.ts +8 -48
- package/src/TxReentrantLock.ts +8 -40
- package/src/TxRef.ts +9 -59
- package/src/TxSemaphore.ts +6 -34
- package/src/TxSubscriptionRef.ts +7 -35
- package/src/Types.ts +6 -48
- package/src/UndefinedOr.ts +8 -55
- package/src/Unify.ts +8 -29
- package/src/Utils.ts +28 -68
- package/src/internal/effect.ts +9 -8
- package/src/internal/option.ts +31 -26
- package/src/internal/schema/arbitrary.ts +740 -173
- package/src/internal/schema/representation.ts +1 -1
- package/src/testing/FastCheck.ts +5 -6
- package/src/testing/TestClock.ts +8 -23
- package/src/testing/TestConsole.ts +7 -36
- package/src/testing/TestSchema.ts +6 -63
- package/src/unstable/ai/AiError.ts +9 -78
- package/src/unstable/ai/AnthropicStructuredOutput.ts +7 -32
- package/src/unstable/ai/Chat.ts +0 -46
- package/src/unstable/ai/EmbeddingModel.ts +8 -45
- package/src/unstable/ai/IdGenerator.ts +6 -44
- package/src/unstable/ai/LanguageModel.ts +9 -48
- package/src/unstable/ai/McpSchema.ts +8 -27
- package/src/unstable/ai/McpServer.ts +7 -21
- package/src/unstable/ai/Model.ts +8 -49
- package/src/unstable/ai/OpenAiStructuredOutput.ts +9 -49
- package/src/unstable/ai/Prompt.ts +6 -50
- package/src/unstable/ai/Response.ts +8 -49
- package/src/unstable/ai/ResponseIdTracker.ts +0 -26
- package/src/unstable/ai/Telemetry.ts +6 -30
- package/src/unstable/ai/Tokenizer.ts +8 -46
- package/src/unstable/ai/Tool.ts +9 -54
- package/src/unstable/ai/Toolkit.ts +6 -75
- package/src/unstable/cli/Argument.ts +6 -20
- package/src/unstable/cli/CliError.ts +8 -23
- package/src/unstable/cli/CliOutput.ts +6 -19
- package/src/unstable/cli/Command.ts +8 -27
- package/src/unstable/cli/Completions.ts +0 -24
- package/src/unstable/cli/Flag.ts +8 -18
- package/src/unstable/cli/GlobalFlag.ts +10 -22
- package/src/unstable/cli/HelpDoc.ts +6 -19
- package/src/unstable/cli/Param.ts +8 -25
- package/src/unstable/cli/Primitive.ts +8 -58
- package/src/unstable/cli/Prompt.ts +8 -23
- package/src/unstable/cluster/ClusterCron.ts +6 -26
- package/src/unstable/cluster/ClusterError.ts +5 -40
- package/src/unstable/cluster/ClusterMetrics.ts +6 -20
- package/src/unstable/cluster/ClusterSchema.ts +0 -38
- package/src/unstable/cluster/ClusterWorkflowEngine.ts +0 -16
- package/src/unstable/cluster/DeliverAt.ts +0 -17
- package/src/unstable/cluster/Entity.ts +8 -31
- package/src/unstable/cluster/EntityAddress.ts +0 -13
- package/src/unstable/cluster/EntityId.ts +0 -24
- package/src/unstable/cluster/EntityProxy.ts +6 -20
- package/src/unstable/cluster/EntityProxyServer.ts +7 -19
- package/src/unstable/cluster/EntityResource.ts +8 -22
- package/src/unstable/cluster/EntityType.ts +0 -13
- package/src/unstable/cluster/Envelope.ts +7 -22
- package/src/unstable/cluster/HttpRunner.ts +5 -32
- package/src/unstable/cluster/K8sHttpClient.ts +0 -32
- package/src/unstable/cluster/MachineId.ts +0 -20
- package/src/unstable/cluster/Message.ts +7 -23
- package/src/unstable/cluster/MessageStorage.ts +7 -36
- package/src/unstable/cluster/Reply.ts +7 -19
- package/src/unstable/cluster/Runner.ts +3 -35
- package/src/unstable/cluster/RunnerAddress.ts +4 -32
- package/src/unstable/cluster/RunnerHealth.ts +6 -35
- package/src/unstable/cluster/RunnerServer.ts +8 -23
- package/src/unstable/cluster/RunnerStorage.ts +6 -21
- package/src/unstable/cluster/Runners.ts +7 -28
- package/src/unstable/cluster/ShardId.ts +0 -17
- package/src/unstable/cluster/Sharding.ts +7 -39
- package/src/unstable/cluster/ShardingConfig.ts +7 -34
- package/src/unstable/cluster/ShardingRegistrationEvent.ts +0 -22
- package/src/unstable/cluster/SingleRunner.ts +7 -20
- package/src/unstable/cluster/Singleton.ts +0 -23
- package/src/unstable/cluster/SingletonAddress.ts +0 -22
- package/src/unstable/cluster/Snowflake.ts +7 -16
- package/src/unstable/cluster/SocketRunner.ts +6 -19
- package/src/unstable/cluster/SqlMessageStorage.ts +7 -36
- package/src/unstable/cluster/SqlRunnerStorage.ts +6 -27
- package/src/unstable/cluster/TestRunner.ts +0 -21
- package/src/unstable/cluster/internal/entityManager.ts +23 -5
- package/src/unstable/devtools/DevTools.ts +0 -17
- package/src/unstable/devtools/DevToolsClient.ts +0 -24
- package/src/unstable/devtools/DevToolsSchema.ts +0 -17
- package/src/unstable/devtools/DevToolsServer.ts +0 -13
- package/src/unstable/encoding/Msgpack.ts +5 -28
- package/src/unstable/encoding/Ndjson.ts +4 -28
- package/src/unstable/encoding/Sse.ts +6 -37
- package/src/unstable/eventlog/Event.ts +3 -25
- package/src/unstable/eventlog/EventGroup.ts +6 -21
- package/src/unstable/eventlog/EventJournal.ts +9 -32
- package/src/unstable/eventlog/EventLog.ts +6 -28
- package/src/unstable/eventlog/EventLogEncryption.ts +5 -18
- package/src/unstable/eventlog/EventLogMessage.ts +4 -20
- package/src/unstable/eventlog/EventLogRemote.ts +7 -17
- package/src/unstable/eventlog/EventLogServer.ts +3 -26
- package/src/unstable/eventlog/EventLogServerEncrypted.ts +7 -18
- package/src/unstable/eventlog/EventLogServerUnencrypted.ts +7 -35
- package/src/unstable/eventlog/EventLogSessionAuth.ts +6 -35
- package/src/unstable/eventlog/SqlEventJournal.ts +0 -26
- package/src/unstable/eventlog/SqlEventLogServerEncrypted.ts +6 -39
- package/src/unstable/eventlog/SqlEventLogServerUnencrypted.ts +0 -29
- package/src/unstable/http/Cookies.ts +6 -58
- package/src/unstable/http/Etag.ts +0 -22
- package/src/unstable/http/FetchHttpClient.ts +0 -23
- package/src/unstable/http/FindMyWay.ts +6 -0
- package/src/unstable/http/Headers.ts +9 -54
- package/src/unstable/http/HttpBody.ts +9 -53
- package/src/unstable/http/HttpClient.ts +9 -34
- package/src/unstable/http/HttpClientError.ts +0 -20
- package/src/unstable/http/HttpClientRequest.ts +4 -35
- package/src/unstable/http/HttpClientResponse.ts +6 -34
- package/src/unstable/http/HttpEffect.ts +5 -33
- package/src/unstable/http/HttpIncomingMessage.ts +6 -22
- package/src/unstable/http/HttpMethod.ts +5 -29
- package/src/unstable/http/HttpMiddleware.ts +6 -19
- package/src/unstable/http/HttpPlatform.ts +0 -13
- package/src/unstable/http/HttpRouter.ts +7 -39
- package/src/unstable/http/HttpServer.ts +6 -29
- package/src/unstable/http/HttpServerError.ts +6 -30
- package/src/unstable/http/HttpServerRequest.ts +7 -32
- package/src/unstable/http/HttpServerRespondable.ts +5 -29
- package/src/unstable/http/HttpServerResponse.ts +8 -41
- package/src/unstable/http/HttpStaticServer.ts +6 -31
- package/src/unstable/http/HttpTraceContext.ts +0 -24
- package/src/unstable/http/Multipart.ts +6 -35
- package/src/unstable/http/Multipasta/HeadersParser.ts +5 -0
- package/src/unstable/http/Multipasta/Node.ts +5 -0
- package/src/unstable/http/Multipasta/Search.ts +5 -0
- package/src/unstable/http/Multipasta/Web.ts +5 -0
- package/src/unstable/http/Multipasta.ts +6 -0
- package/src/unstable/http/Template.ts +5 -26
- package/src/unstable/http/Url.ts +5 -28
- package/src/unstable/http/UrlParams.ts +4 -32
- package/src/unstable/httpapi/HttpApi.ts +5 -45
- package/src/unstable/httpapi/HttpApiBuilder.ts +5 -39
- package/src/unstable/httpapi/HttpApiClient.ts +20 -43
- package/src/unstable/httpapi/HttpApiEndpoint.ts +9 -51
- package/src/unstable/httpapi/HttpApiError.ts +1 -32
- package/src/unstable/httpapi/HttpApiGroup.ts +8 -34
- package/src/unstable/httpapi/HttpApiMiddleware.ts +9 -48
- package/src/unstable/httpapi/HttpApiScalar.ts +0 -24
- package/src/unstable/httpapi/HttpApiSchema.ts +0 -32
- package/src/unstable/httpapi/HttpApiSecurity.ts +0 -29
- package/src/unstable/httpapi/HttpApiSwagger.ts +0 -24
- package/src/unstable/httpapi/HttpApiTest.ts +5 -18
- package/src/unstable/httpapi/OpenApi.ts +6 -40
- package/src/unstable/observability/Otlp.ts +5 -32
- package/src/unstable/observability/OtlpExporter.ts +5 -22
- package/src/unstable/observability/OtlpLogger.ts +5 -31
- package/src/unstable/observability/OtlpMetrics.ts +8 -20
- package/src/unstable/observability/OtlpResource.ts +5 -35
- package/src/unstable/observability/OtlpSerialization.ts +4 -26
- package/src/unstable/observability/OtlpTracer.ts +7 -20
- package/src/unstable/observability/PrometheusMetrics.ts +4 -41
- package/src/unstable/persistence/KeyValueStore.ts +8 -20
- package/src/unstable/persistence/Persistable.ts +4 -18
- package/src/unstable/persistence/PersistedCache.ts +5 -28
- package/src/unstable/persistence/PersistedQueue.ts +6 -22
- package/src/unstable/persistence/Persistence.ts +5 -21
- package/src/unstable/persistence/RateLimiter.ts +17 -35
- package/src/unstable/persistence/Redis.ts +6 -32
- package/src/unstable/process/ChildProcess.ts +6 -38
- package/src/unstable/process/ChildProcessSpawner.ts +7 -15
- package/src/unstable/reactivity/AsyncResult.ts +7 -39
- package/src/unstable/reactivity/Atom.ts +8 -36
- package/src/unstable/reactivity/AtomHttpApi.ts +6 -25
- package/src/unstable/reactivity/AtomRef.ts +4 -29
- package/src/unstable/reactivity/AtomRegistry.ts +6 -73
- package/src/unstable/reactivity/AtomRpc.ts +6 -20
- package/src/unstable/reactivity/Hydration.ts +8 -31
- package/src/unstable/reactivity/Reactivity.ts +6 -37
- package/src/unstable/rpc/Rpc.ts +8 -40
- package/src/unstable/rpc/RpcClient.ts +6 -32
- package/src/unstable/rpc/RpcClientError.ts +0 -23
- package/src/unstable/rpc/RpcGroup.ts +5 -30
- package/src/unstable/rpc/RpcMessage.ts +0 -26
- package/src/unstable/rpc/RpcMiddleware.ts +0 -28
- package/src/unstable/rpc/RpcSchema.ts +0 -25
- package/src/unstable/rpc/RpcSerialization.ts +6 -32
- package/src/unstable/rpc/RpcServer.ts +7 -40
- package/src/unstable/rpc/RpcTest.ts +0 -24
- package/src/unstable/rpc/RpcWorker.ts +6 -30
- package/src/unstable/rpc/Utils.ts +5 -21
- package/src/unstable/schema/Model.ts +28 -19
- package/src/unstable/schema/VariantSchema.ts +5 -17
- package/src/unstable/socket/Socket.ts +6 -21
- package/src/unstable/socket/SocketServer.ts +6 -20
- package/src/unstable/sql/Migrator.ts +5 -40
- package/src/unstable/sql/SqlClient.ts +5 -19
- package/src/unstable/sql/SqlConnection.ts +6 -18
- package/src/unstable/sql/SqlError.ts +7 -32
- package/src/unstable/sql/SqlModel.ts +6 -14
- package/src/unstable/sql/SqlResolver.ts +6 -23
- package/src/unstable/sql/SqlSchema.ts +3 -27
- package/src/unstable/sql/SqlStream.ts +0 -10
- package/src/unstable/sql/Statement.ts +6 -34
- package/src/unstable/workers/Transferable.ts +0 -21
- package/src/unstable/workers/Worker.ts +6 -34
- package/src/unstable/workers/WorkerError.ts +4 -33
- package/src/unstable/workers/WorkerRunner.ts +5 -30
- package/src/unstable/workflow/Activity.ts +5 -18
- package/src/unstable/workflow/DurableClock.ts +5 -24
- package/src/unstable/workflow/DurableDeferred.ts +6 -18
- package/src/unstable/workflow/DurableQueue.ts +0 -25
- package/src/unstable/workflow/Workflow.ts +9 -21
- package/src/unstable/workflow/WorkflowEngine.ts +7 -19
- package/src/unstable/workflow/WorkflowProxy.ts +7 -23
- package/src/unstable/workflow/WorkflowProxyServer.ts +6 -23
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as Array from "../../Array.js";
|
|
2
2
|
import * as Boolean from "../../Boolean.js";
|
|
3
|
+
import * as Equal from "../../Equal.js";
|
|
3
4
|
import { memoize } from "../../Function.js";
|
|
4
5
|
import * as Number from "../../Number.js";
|
|
5
6
|
import * as Option from "../../Option.js";
|
|
7
|
+
import * as Order from "../../Order.js";
|
|
6
8
|
import * as Predicate from "../../Predicate.js";
|
|
7
9
|
import * as SchemaAST from "../../SchemaAST.js";
|
|
8
10
|
import * as Struct from "../../Struct.js";
|
|
@@ -10,130 +12,419 @@ import * as UndefinedOr from "../../UndefinedOr.js";
|
|
|
10
12
|
import { errorWithPath } from "../errors.js";
|
|
11
13
|
import * as InternalAnnotations from "./annotations.js";
|
|
12
14
|
const arbitraryMemoMap = /*#__PURE__*/new WeakMap();
|
|
15
|
+
const suspendDepthIdentifierMap = /*#__PURE__*/new WeakMap();
|
|
16
|
+
const emptyRecursionStack = [];
|
|
17
|
+
/** @internal */
|
|
18
|
+
export function makeReport() {
|
|
19
|
+
return {
|
|
20
|
+
warnings: []
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
/** @internal */
|
|
24
|
+
export function toReport(report) {
|
|
25
|
+
return {
|
|
26
|
+
warnings: report.warnings.slice()
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function arbitraryError(what) {
|
|
30
|
+
return new Error(`Unable to derive an arbitrary for ${what}`);
|
|
31
|
+
}
|
|
32
|
+
const entryComparator = ([a], [b]) => Equal.equals(a, b);
|
|
13
33
|
function applyChecks(ast, filters, arbitrary) {
|
|
14
|
-
return filters.
|
|
15
|
-
}
|
|
16
|
-
function
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
function array(fc, ctx, item) {
|
|
20
|
-
const constraint = ctx.constraints?.array;
|
|
21
|
-
const out = isUniqueArrayConstraintsCustomCompare(constraint) ? fc.uniqueArray(item, constraint) : fc.array(item, constraint);
|
|
22
|
-
if (ctx.isSuspend) {
|
|
23
|
-
return fc.oneof({
|
|
24
|
-
maxDepth: 2,
|
|
25
|
-
depthIdentifier: ""
|
|
26
|
-
}, fc.constant([]), out);
|
|
34
|
+
return filters.reduce((acc, filter) => acc.filter(a => filter.run(a, ast, SchemaAST.defaultParseOptions) === undefined), arbitrary);
|
|
35
|
+
}
|
|
36
|
+
function validateArrayConstraints(constraint, label) {
|
|
37
|
+
if (constraint?.minLength !== undefined && constraint.maxLength !== undefined && constraint.minLength > constraint.maxLength) {
|
|
38
|
+
throw arbitraryError(`${label} constraints`);
|
|
27
39
|
}
|
|
28
|
-
|
|
40
|
+
}
|
|
41
|
+
function lengthToFastCheckConstraints(constraint) {
|
|
42
|
+
return constraint === undefined || constraint.minLength === undefined && constraint.maxLength === undefined ? undefined : {
|
|
43
|
+
...(constraint.minLength !== undefined ? {
|
|
44
|
+
minLength: constraint.minLength
|
|
45
|
+
} : {}),
|
|
46
|
+
...(constraint.maxLength !== undefined ? {
|
|
47
|
+
maxLength: constraint.maxLength
|
|
48
|
+
} : {})
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function arrayWithConstraints(fc, item, constraint, comparator) {
|
|
52
|
+
return comparator ? fc.uniqueArray(item, {
|
|
53
|
+
...constraint,
|
|
54
|
+
comparator
|
|
55
|
+
}) : fc.array(item, constraint);
|
|
56
|
+
}
|
|
57
|
+
function array(fc, ctx, item, terminal = false) {
|
|
58
|
+
const constraint = ctx.constraint;
|
|
59
|
+
const arrayConstraints = lengthToFastCheckConstraints(constraint);
|
|
60
|
+
validateArrayConstraints(arrayConstraints, "array");
|
|
61
|
+
return arrayWithConstraints(fc, item, terminal ? {
|
|
62
|
+
...arrayConstraints,
|
|
63
|
+
maxLength: arrayConstraints?.minLength ?? 0
|
|
64
|
+
} : arrayConstraints, constraint?.unique ? Equal.equals : undefined);
|
|
65
|
+
}
|
|
66
|
+
function appendArray(fc, out, len, rest) {
|
|
67
|
+
return out.chain(as => as.length < len ? fc.constant(as) : rest.map(rest => [...as, ...rest]));
|
|
68
|
+
}
|
|
69
|
+
function appendObjectEntries(out, entries) {
|
|
70
|
+
return out.chain(o => entries.map(entries => ({
|
|
71
|
+
...Object.fromEntries(entries),
|
|
72
|
+
...o
|
|
73
|
+
})));
|
|
29
74
|
}
|
|
30
75
|
const max = /*#__PURE__*/UndefinedOr.makeReducer(Number.ReducerMax);
|
|
31
76
|
const min = /*#__PURE__*/UndefinedOr.makeReducer(Number.ReducerMin);
|
|
32
77
|
const or = /*#__PURE__*/UndefinedOr.makeReducer(Boolean.ReducerOr);
|
|
33
78
|
const concat = /*#__PURE__*/UndefinedOr.makeReducer(/*#__PURE__*/Array.makeReducerConcat());
|
|
34
79
|
const combiner = /*#__PURE__*/Struct.makeCombiner({
|
|
35
|
-
|
|
36
|
-
max: min,
|
|
37
|
-
maxExcluded: or,
|
|
80
|
+
integer: or,
|
|
38
81
|
maxLength: min,
|
|
39
|
-
min: max,
|
|
40
|
-
minExcluded: or,
|
|
41
82
|
minLength: max,
|
|
42
|
-
|
|
43
|
-
noInteger: or,
|
|
44
|
-
noInvalidDate: or,
|
|
83
|
+
noInfinity: or,
|
|
45
84
|
noNaN: or,
|
|
46
85
|
patterns: concat,
|
|
47
|
-
|
|
86
|
+
unique: or,
|
|
87
|
+
valid: or
|
|
48
88
|
}, {
|
|
49
89
|
omitKeyWhen: Predicate.isUndefined
|
|
50
90
|
});
|
|
51
|
-
function
|
|
52
|
-
|
|
91
|
+
function mergeOrderedBound(order, self, selfExclusive, that, thatExclusive, takeComparison) {
|
|
92
|
+
if (that === undefined || self === undefined) {
|
|
93
|
+
return that === undefined ? [self, selfExclusive] : [that, thatExclusive];
|
|
94
|
+
}
|
|
95
|
+
const comparison = order(self, that);
|
|
96
|
+
return comparison === takeComparison ? [that, thatExclusive] : comparison === 0 ? [self, selfExclusive || thatExclusive] : [self, selfExclusive];
|
|
97
|
+
}
|
|
98
|
+
function mergeOrderedConstraints(self, that) {
|
|
99
|
+
if (self === undefined) {
|
|
100
|
+
return that;
|
|
101
|
+
}
|
|
102
|
+
if (self.order !== that.order) {
|
|
103
|
+
throw new Error("Cannot merge ordered arbitrary constraints with different Order instances");
|
|
104
|
+
}
|
|
105
|
+
const [minimum, exclusiveMinimum] = mergeOrderedBound(self.order, self.minimum, self.exclusiveMinimum, that.minimum, that.exclusiveMinimum, -1);
|
|
106
|
+
const [maximum, exclusiveMaximum] = mergeOrderedBound(self.order, self.maximum, self.exclusiveMaximum, that.maximum, that.exclusiveMaximum, 1);
|
|
53
107
|
return {
|
|
54
|
-
|
|
55
|
-
|
|
108
|
+
order: self.order,
|
|
109
|
+
...(minimum !== undefined ? {
|
|
110
|
+
minimum
|
|
111
|
+
} : {}),
|
|
112
|
+
...(exclusiveMinimum !== undefined ? {
|
|
113
|
+
exclusiveMinimum
|
|
114
|
+
} : {}),
|
|
115
|
+
...(maximum !== undefined ? {
|
|
116
|
+
maximum
|
|
117
|
+
} : {}),
|
|
118
|
+
...(exclusiveMaximum !== undefined ? {
|
|
119
|
+
exclusiveMaximum
|
|
120
|
+
} : {})
|
|
56
121
|
};
|
|
57
122
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
123
|
+
function mergeConstraint(self, that) {
|
|
124
|
+
const {
|
|
125
|
+
ordered: selfOrdered,
|
|
126
|
+
...selfRest
|
|
127
|
+
} = self ?? {};
|
|
128
|
+
const {
|
|
129
|
+
ordered: thatOrdered,
|
|
130
|
+
...thatRest
|
|
131
|
+
} = that;
|
|
132
|
+
const ordered = thatOrdered === undefined ? selfOrdered : mergeOrderedConstraints(selfOrdered, thatOrdered);
|
|
133
|
+
const out = combiner.combine(selfRest, thatRest);
|
|
134
|
+
return {
|
|
135
|
+
...out,
|
|
136
|
+
...(ordered === undefined ? {} : {
|
|
137
|
+
ordered
|
|
138
|
+
})
|
|
139
|
+
};
|
|
67
140
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
const
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
141
|
+
function collectChecks(checks) {
|
|
142
|
+
const filters = [];
|
|
143
|
+
const arbitraries = [];
|
|
144
|
+
function visit(check) {
|
|
145
|
+
if (check.annotations?.arbitrary) {
|
|
146
|
+
arbitraries.push(check.annotations.arbitrary);
|
|
147
|
+
}
|
|
148
|
+
if (check._tag !== "Filter") {
|
|
149
|
+
for (const child of check.checks) {
|
|
150
|
+
visit(child);
|
|
78
151
|
}
|
|
79
|
-
|
|
80
|
-
|
|
152
|
+
} else {
|
|
153
|
+
filters.push(check);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
checks?.forEach(visit);
|
|
157
|
+
return {
|
|
158
|
+
filters,
|
|
159
|
+
arbitraries
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
function constraintContext(arbitraries) {
|
|
163
|
+
const constraintAnnotations = arbitraries.map(({
|
|
164
|
+
constraint
|
|
165
|
+
}) => constraint).filter(Predicate.isNotUndefined);
|
|
166
|
+
return ctx => {
|
|
167
|
+
const constraint = constraintAnnotations.reduce((acc, c) => mergeConstraint(acc, c), ctx.constraint);
|
|
81
168
|
return {
|
|
82
169
|
...ctx,
|
|
83
|
-
|
|
170
|
+
constraint
|
|
84
171
|
};
|
|
85
172
|
};
|
|
86
173
|
}
|
|
87
174
|
function resetContext(ctx) {
|
|
88
175
|
return {
|
|
89
176
|
...ctx,
|
|
90
|
-
|
|
177
|
+
constraint: undefined
|
|
91
178
|
};
|
|
92
179
|
}
|
|
93
|
-
function
|
|
180
|
+
function objectEntriesConstraints(ast, constraint, requiredKeys) {
|
|
181
|
+
if (constraint === undefined || constraint.minLength === undefined && constraint.maxLength === undefined) {
|
|
182
|
+
return undefined;
|
|
183
|
+
}
|
|
184
|
+
if (constraint.minLength !== undefined && ast.indexSignatures.length === 0 && constraint.minLength > ast.propertySignatures.length) {
|
|
185
|
+
throw arbitraryError("object property constraints");
|
|
186
|
+
}
|
|
94
187
|
const out = {};
|
|
95
|
-
if (constraint.
|
|
96
|
-
out.
|
|
188
|
+
if (constraint.minLength !== undefined) {
|
|
189
|
+
out.minLength = Math.max(0, constraint.minLength - requiredKeys);
|
|
97
190
|
}
|
|
98
|
-
if (constraint.
|
|
99
|
-
out.
|
|
191
|
+
if (constraint.maxLength !== undefined) {
|
|
192
|
+
out.maxLength = constraint.maxLength - requiredKeys;
|
|
193
|
+
if (out.maxLength < 0) {
|
|
194
|
+
throw arbitraryError("object property constraints");
|
|
195
|
+
}
|
|
100
196
|
}
|
|
197
|
+
validateArrayConstraints(out, "object property");
|
|
101
198
|
return out;
|
|
102
199
|
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
if (
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
200
|
+
function objectWithOptionalCount(fc, pss, orderedNames, requiredKeys, optionalNames, constraint) {
|
|
201
|
+
const requiredCount = requiredKeys.length;
|
|
202
|
+
if (constraint.maxLength !== undefined && constraint.maxLength < requiredCount) {
|
|
203
|
+
throw arbitraryError("object property constraints");
|
|
204
|
+
}
|
|
205
|
+
const minOptional = constraint.minLength === undefined ? 0 : Math.max(0, constraint.minLength - requiredCount);
|
|
206
|
+
const maxOptional = constraint.maxLength === undefined ? optionalNames.length : Math.min(optionalNames.length, constraint.maxLength - requiredCount);
|
|
207
|
+
if (minOptional > maxOptional) {
|
|
208
|
+
throw arbitraryError("object property constraints");
|
|
209
|
+
}
|
|
210
|
+
const full = fc.record(pss, {
|
|
211
|
+
requiredKeys: [...requiredKeys, ...optionalNames]
|
|
212
|
+
});
|
|
213
|
+
const chosen = fc.shuffledSubarray([...optionalNames], {
|
|
214
|
+
minLength: minOptional,
|
|
215
|
+
maxLength: maxOptional
|
|
216
|
+
});
|
|
217
|
+
return fc.tuple(full, chosen).map(([base, names]) => {
|
|
218
|
+
const keep = new Set([...requiredKeys, ...names]);
|
|
219
|
+
const out = {};
|
|
220
|
+
for (const name of orderedNames) {
|
|
221
|
+
if (keep.has(name)) {
|
|
222
|
+
out[name] = base[name];
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
return out;
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
function toRangeConstraints(ordered, min, max, error) {
|
|
229
|
+
const out = {};
|
|
230
|
+
if (ordered?.minimum !== undefined) {
|
|
231
|
+
out.min = min(ordered.minimum, ordered.exclusiveMinimum === true);
|
|
232
|
+
}
|
|
233
|
+
if (ordered?.maximum !== undefined) {
|
|
234
|
+
out.max = max(ordered.maximum, ordered.exclusiveMaximum === true);
|
|
235
|
+
}
|
|
236
|
+
if (out.min !== undefined && out.max !== undefined && out.min > out.max) {
|
|
237
|
+
throw arbitraryError(error);
|
|
238
|
+
}
|
|
239
|
+
return out;
|
|
240
|
+
}
|
|
241
|
+
function toIntegerConstraints(ordered) {
|
|
242
|
+
return toRangeConstraints(ordered, (minimum, excluded) => excluded ? Math.floor(minimum) + 1 : Math.ceil(minimum), (maximum, excluded) => excluded ? Math.ceil(maximum) - 1 : Math.floor(maximum), "integer constraints");
|
|
243
|
+
}
|
|
244
|
+
function toFloatConstraints(constraint, ordered) {
|
|
245
|
+
const out = {
|
|
246
|
+
...(constraint?.noInfinity ? {
|
|
247
|
+
noDefaultInfinity: true
|
|
248
|
+
} : {}),
|
|
249
|
+
...(constraint?.noNaN ? {
|
|
250
|
+
noNaN: true
|
|
251
|
+
} : {}),
|
|
252
|
+
...(ordered?.minimum !== undefined ? {
|
|
253
|
+
min: ordered.minimum
|
|
254
|
+
} : {}),
|
|
255
|
+
...(ordered?.exclusiveMinimum !== undefined ? {
|
|
256
|
+
minExcluded: ordered.exclusiveMinimum
|
|
257
|
+
} : {}),
|
|
258
|
+
...(ordered?.maximum !== undefined ? {
|
|
259
|
+
max: ordered.maximum
|
|
260
|
+
} : {}),
|
|
261
|
+
...(ordered?.exclusiveMaximum !== undefined ? {
|
|
262
|
+
maxExcluded: ordered.exclusiveMaximum
|
|
263
|
+
} : {})
|
|
264
|
+
};
|
|
265
|
+
if (out.min !== undefined && out.max !== undefined && (out.min > out.max || out.min === out.max && (out.minExcluded || out.maxExcluded))) {
|
|
266
|
+
throw arbitraryError("number constraints");
|
|
267
|
+
}
|
|
268
|
+
return out;
|
|
269
|
+
}
|
|
270
|
+
function toBigIntConstraints(ordered) {
|
|
271
|
+
return toRangeConstraints(ordered, (minimum, excluded) => excluded ? minimum + BigInt(1) : minimum, (maximum, excluded) => excluded ? maximum - BigInt(1) : maximum, "the ordered bigint constraints");
|
|
272
|
+
}
|
|
273
|
+
function makeLazy(normal, terminal) {
|
|
274
|
+
const out = (fc, ctx, recursionStack = emptyRecursionStack) => normal(fc, ctx, recursionStack);
|
|
275
|
+
out.terminal = (fc, ctx, recursionStack = emptyRecursionStack) => terminal(fc, ctx, recursionStack);
|
|
276
|
+
return out;
|
|
277
|
+
}
|
|
278
|
+
function same(f) {
|
|
279
|
+
return makeLazy(f, f);
|
|
280
|
+
}
|
|
281
|
+
function getSuspendRecursion(fc, ast) {
|
|
282
|
+
const depthIdentifier = suspendDepthIdentifierMap.get(ast) ?? fc.createDepthIdentifier();
|
|
283
|
+
suspendDepthIdentifierMap.set(ast, depthIdentifier);
|
|
284
|
+
return {
|
|
285
|
+
maxDepth: 2,
|
|
286
|
+
depthIdentifier
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
function oneOf(fc, arbitraries) {
|
|
290
|
+
return arbitraries.length === 0 ? undefined : arbitraries.length === 1 ? arbitraries[0] : fc.oneof(...arbitraries);
|
|
291
|
+
}
|
|
292
|
+
function reportChecks(report, checks, path) {
|
|
293
|
+
function visit(check, covered) {
|
|
294
|
+
const arbitrary = check.annotations?.arbitrary;
|
|
295
|
+
const nextCovered = covered || arbitrary?.constraint !== undefined || arbitrary?.candidate !== undefined;
|
|
296
|
+
if (check._tag !== "Filter") {
|
|
297
|
+
for (const child of check.checks) {
|
|
298
|
+
visit(child, nextCovered);
|
|
112
299
|
}
|
|
300
|
+
} else if (!nextCovered) {
|
|
301
|
+
const meta = check.annotations?.meta;
|
|
302
|
+
const description = typeof meta === "object" && meta !== null && "_tag" in meta && typeof meta._tag === "string" ? meta._tag : check.annotations?.identifier ?? check.annotations?.expected;
|
|
303
|
+
report.warnings.push({
|
|
304
|
+
_tag: "OpaqueFilter",
|
|
305
|
+
path,
|
|
306
|
+
...(description === undefined ? {} : {
|
|
307
|
+
description
|
|
308
|
+
})
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
checks?.forEach(check => visit(check, false));
|
|
313
|
+
}
|
|
314
|
+
/** @internal */
|
|
315
|
+
export function collectReport(ast, report) {
|
|
316
|
+
const stack = new WeakSet();
|
|
317
|
+
function visit(ast, path) {
|
|
318
|
+
if (stack.has(ast)) {
|
|
319
|
+
return;
|
|
320
|
+
}
|
|
321
|
+
stack.add(ast);
|
|
322
|
+
reportChecks(report, ast.checks, path);
|
|
323
|
+
switch (ast._tag) {
|
|
324
|
+
case "Declaration":
|
|
325
|
+
ast.typeParameters.forEach(tp => visit(tp, path));
|
|
326
|
+
break;
|
|
327
|
+
case "Arrays":
|
|
328
|
+
{
|
|
329
|
+
for (const [i, type] of [...ast.elements, ...ast.rest].entries()) {
|
|
330
|
+
visit(type, [...path, i]);
|
|
331
|
+
}
|
|
332
|
+
break;
|
|
333
|
+
}
|
|
334
|
+
case "Objects":
|
|
335
|
+
ast.propertySignatures.forEach(ps => visit(ps.type, [...path, ps.name]));
|
|
336
|
+
ast.indexSignatures.forEach(is => {
|
|
337
|
+
visit(is.parameter, path);
|
|
338
|
+
visit(is.type, path);
|
|
339
|
+
});
|
|
340
|
+
break;
|
|
341
|
+
case "Union":
|
|
342
|
+
ast.types.forEach(type => visit(type, path));
|
|
343
|
+
break;
|
|
344
|
+
case "Suspend":
|
|
345
|
+
visit(ast.thunk(), path);
|
|
346
|
+
break;
|
|
347
|
+
}
|
|
348
|
+
stack.delete(ast);
|
|
349
|
+
}
|
|
350
|
+
visit(ast, []);
|
|
351
|
+
}
|
|
352
|
+
function applyCandidates(fc, ctx, arbitraries, base) {
|
|
353
|
+
const weighted = base === undefined ? [] : [{
|
|
354
|
+
arbitrary: base,
|
|
355
|
+
weight: 1
|
|
356
|
+
}];
|
|
357
|
+
for (const {
|
|
358
|
+
candidate
|
|
359
|
+
} of arbitraries) {
|
|
360
|
+
if (!candidate) {
|
|
361
|
+
continue;
|
|
362
|
+
}
|
|
363
|
+
const arbitrary = candidate.make(fc, ctx);
|
|
364
|
+
if (arbitrary === undefined) {
|
|
365
|
+
continue;
|
|
366
|
+
}
|
|
367
|
+
const weight = candidate.weight ?? 1;
|
|
368
|
+
if (!globalThis.Number.isInteger(weight) || weight <= 0) {
|
|
369
|
+
throw arbitraryError("a candidate with an invalid weight");
|
|
370
|
+
}
|
|
371
|
+
weighted.push({
|
|
372
|
+
arbitrary,
|
|
373
|
+
weight
|
|
113
374
|
});
|
|
114
375
|
}
|
|
115
|
-
return [];
|
|
376
|
+
return weighted.length === 0 ? undefined : weighted.length === 1 ? weighted[0].arbitrary : fc.oneof(...weighted);
|
|
377
|
+
}
|
|
378
|
+
function applyFilterLayer(ast, checks, fc, ctx, base) {
|
|
379
|
+
const out = applyCandidates(fc, ctx, checks.arbitraries, base);
|
|
380
|
+
return out === undefined ? undefined : applyChecks(ast, checks.filters, out);
|
|
381
|
+
}
|
|
382
|
+
function normalizeDerivation(output, hasTypeParameters) {
|
|
383
|
+
if (!(typeof output === "object" && output !== null && "arbitrary" in output)) {
|
|
384
|
+
return {
|
|
385
|
+
arbitrary: output,
|
|
386
|
+
terminal: hasTypeParameters ? undefined : output
|
|
387
|
+
};
|
|
388
|
+
}
|
|
389
|
+
const terminal = "terminal" in output ? output.terminal : hasTypeParameters ? undefined : output.arbitrary;
|
|
390
|
+
return {
|
|
391
|
+
arbitrary: output.arbitrary,
|
|
392
|
+
terminal
|
|
393
|
+
};
|
|
394
|
+
}
|
|
395
|
+
function makeTypeParameters(typeParameters, fc, ctx, recursionStack, lazyNormal) {
|
|
396
|
+
return typeParameters.map(tp => ({
|
|
397
|
+
arbitrary: lazyNormal ? fc.constant(null).chain(() => tp(fc, ctx, recursionStack)) : tp(fc, ctx, recursionStack),
|
|
398
|
+
terminal: tp.terminal(fc, ctx, recursionStack)
|
|
399
|
+
}));
|
|
400
|
+
}
|
|
401
|
+
function filterLayer(ast, checks, normalBase, terminalBase) {
|
|
402
|
+
const f = constraintContext(checks.arbitraries);
|
|
403
|
+
return makeLazy((fc, ctx, recursionStack) => {
|
|
404
|
+
const nextCtx = f(ctx);
|
|
405
|
+
return applyFilterLayer(ast, checks, fc, nextCtx, normalBase(fc, ctx, nextCtx, recursionStack));
|
|
406
|
+
}, (fc, ctx, recursionStack) => {
|
|
407
|
+
const nextCtx = f(ctx);
|
|
408
|
+
return applyFilterLayer(ast, checks, fc, nextCtx, terminalBase(fc, ctx, nextCtx, recursionStack));
|
|
409
|
+
});
|
|
116
410
|
}
|
|
117
411
|
/** @internal */
|
|
118
|
-
export const memoized = /*#__PURE__*/memoize(ast =>
|
|
119
|
-
return recur(ast, []);
|
|
120
|
-
});
|
|
412
|
+
export const memoized = /*#__PURE__*/memoize(ast => recur(ast, []));
|
|
121
413
|
function recur(ast, path) {
|
|
122
414
|
// ---------------------------------------------
|
|
123
|
-
// handle
|
|
415
|
+
// handle annotations
|
|
124
416
|
// ---------------------------------------------
|
|
125
417
|
const annotation = InternalAnnotations.resolve(ast)?.toArbitrary;
|
|
126
418
|
if (annotation) {
|
|
127
419
|
const typeParameters = SchemaAST.isDeclaration(ast) ? ast.typeParameters.map(tp => recur(tp, path)) : [];
|
|
128
|
-
const
|
|
129
|
-
const
|
|
130
|
-
return (
|
|
420
|
+
const checks = collectChecks(ast.checks);
|
|
421
|
+
const derive = lazyNormal => (fc, ctx, nextCtx, recursionStack) => normalizeDerivation(annotation(makeTypeParameters(typeParameters, fc, resetContext(ctx), recursionStack, lazyNormal))(fc, nextCtx), typeParameters.length > 0)[lazyNormal ? "terminal" : "arbitrary"];
|
|
422
|
+
return filterLayer(ast, checks, derive(false), derive(true));
|
|
131
423
|
}
|
|
132
424
|
if (ast.checks) {
|
|
133
|
-
const
|
|
134
|
-
const f = constraintContext(filters);
|
|
425
|
+
const checks = collectChecks(ast.checks);
|
|
135
426
|
const lawc = recur(SchemaAST.replaceChecks(ast, undefined), path);
|
|
136
|
-
return (fc,
|
|
427
|
+
return filterLayer(ast, checks, (fc, _ctx, nextCtx, recursionStack) => lawc(fc, nextCtx, recursionStack), (fc, _ctx, nextCtx, recursionStack) => lawc.terminal(fc, nextCtx, recursionStack));
|
|
137
428
|
}
|
|
138
429
|
return base(ast, path);
|
|
139
430
|
}
|
|
@@ -143,134 +434,328 @@ function base(ast, path) {
|
|
|
143
434
|
case "Declaration":
|
|
144
435
|
throw errorWithPath(`Unsupported AST ${ast._tag}`, path);
|
|
145
436
|
case "Null":
|
|
146
|
-
return fc => fc.constant(null);
|
|
437
|
+
return same(fc => fc.constant(null));
|
|
147
438
|
case "Void":
|
|
148
439
|
case "Undefined":
|
|
149
|
-
return fc => fc.constant(undefined);
|
|
440
|
+
return same(fc => fc.constant(undefined));
|
|
150
441
|
case "Unknown":
|
|
151
442
|
case "Any":
|
|
152
|
-
return fc => fc.anything();
|
|
443
|
+
return same(fc => fc.anything());
|
|
153
444
|
case "String":
|
|
154
|
-
return (fc, ctx) => {
|
|
155
|
-
const constraint = ctx.
|
|
445
|
+
return same((fc, ctx) => {
|
|
446
|
+
const constraint = ctx.constraint;
|
|
156
447
|
const patterns = constraint?.patterns;
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
}
|
|
160
|
-
return fc.string(constraint);
|
|
161
|
-
};
|
|
448
|
+
return patterns ? fc.oneof(...patterns.map(pattern => fc.stringMatching(new RegExp(pattern)))) : fc.string(lengthToFastCheckConstraints(constraint));
|
|
449
|
+
});
|
|
162
450
|
case "Number":
|
|
163
|
-
return (fc, ctx) => {
|
|
164
|
-
const constraint = ctx.
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
return fc.float(constraint);
|
|
169
|
-
};
|
|
451
|
+
return same((fc, ctx) => {
|
|
452
|
+
const constraint = ctx.constraint;
|
|
453
|
+
const ordered = constraint?.ordered?.order === Order.Number ? constraint.ordered : undefined;
|
|
454
|
+
return constraint?.integer ? fc.integer(toIntegerConstraints(ordered)) : fc.float(toFloatConstraints(constraint, ordered));
|
|
455
|
+
});
|
|
170
456
|
case "Boolean":
|
|
171
|
-
return fc => fc.boolean();
|
|
457
|
+
return same(fc => fc.boolean());
|
|
172
458
|
case "BigInt":
|
|
173
|
-
return (fc, ctx) =>
|
|
459
|
+
return same((fc, ctx) => {
|
|
460
|
+
const ordered = ctx.constraint?.ordered?.order === Order.BigInt ? ctx.constraint.ordered : undefined;
|
|
461
|
+
return fc.bigInt(toBigIntConstraints(ordered));
|
|
462
|
+
});
|
|
174
463
|
case "Symbol":
|
|
175
|
-
return fc => fc.string().map(Symbol.for);
|
|
464
|
+
return same(fc => fc.string().map(Symbol.for));
|
|
176
465
|
case "Literal":
|
|
177
|
-
return fc => fc.constant(ast.literal);
|
|
466
|
+
return same(fc => fc.constant(ast.literal));
|
|
178
467
|
case "UniqueSymbol":
|
|
179
|
-
return fc => fc.constant(ast.symbol);
|
|
468
|
+
return same(fc => fc.constant(ast.symbol));
|
|
180
469
|
case "ObjectKeyword":
|
|
181
|
-
return fc => fc.oneof(fc.object(), fc.array(fc.anything()));
|
|
470
|
+
return same(fc => fc.oneof(fc.object(), fc.array(fc.anything())));
|
|
182
471
|
case "Enum":
|
|
183
472
|
return recur(SchemaAST.enumsToLiterals(ast), path);
|
|
184
473
|
case "TemplateLiteral":
|
|
185
|
-
return fc => fc.stringMatching(SchemaAST.getTemplateLiteralRegExp(ast));
|
|
474
|
+
return same(fc => fc.stringMatching(SchemaAST.getTemplateLiteralRegExp(ast)));
|
|
186
475
|
case "Arrays":
|
|
187
|
-
|
|
188
|
-
const
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
const
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
476
|
+
{
|
|
477
|
+
const elements = ast.elements.map((ast, i) => ({
|
|
478
|
+
ast,
|
|
479
|
+
arbitrary: recur(ast, [...path, i])
|
|
480
|
+
}));
|
|
481
|
+
const len = ast.elements.length;
|
|
482
|
+
const rest = ast.rest.map((ast, i) => ({
|
|
483
|
+
ast,
|
|
484
|
+
arbitrary: recur(ast, [...path, len + i])
|
|
485
|
+
}));
|
|
486
|
+
const terminal = (fc, ctx, recursionStack) => {
|
|
487
|
+
const reset = resetContext(ctx);
|
|
488
|
+
const elementArbitraries = [];
|
|
489
|
+
const optionals = [];
|
|
490
|
+
let length = 0;
|
|
491
|
+
for (const element of elements) {
|
|
492
|
+
const out = element.arbitrary.terminal(fc, reset, recursionStack);
|
|
493
|
+
if (SchemaAST.isOptional(element.ast)) {
|
|
494
|
+
optionals.push(out);
|
|
495
|
+
continue;
|
|
496
|
+
}
|
|
497
|
+
if (out === undefined) {
|
|
498
|
+
return undefined;
|
|
499
|
+
}
|
|
500
|
+
length++;
|
|
501
|
+
elementArbitraries.push(out.map(Option.some));
|
|
196
502
|
}
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
503
|
+
const minLength = ctx.constraint?.minLength ?? 0;
|
|
504
|
+
const needsRest = Array.isReadonlyArrayNonEmpty(rest) && minLength > length + optionals.length;
|
|
505
|
+
const optionalTarget = needsRest ? optionals.length : Math.max(0, minLength - length);
|
|
506
|
+
let includedOptionals = 0;
|
|
507
|
+
for (const out of optionals) {
|
|
508
|
+
if (includedOptionals >= optionalTarget || out === undefined) {
|
|
509
|
+
elementArbitraries.push(fc.constant(Option.none()));
|
|
510
|
+
continue;
|
|
511
|
+
}
|
|
512
|
+
includedOptionals++;
|
|
513
|
+
length++;
|
|
514
|
+
elementArbitraries.push(out.map(Option.some));
|
|
515
|
+
}
|
|
516
|
+
if (includedOptionals < optionalTarget) {
|
|
517
|
+
return undefined;
|
|
518
|
+
}
|
|
519
|
+
let out = fc.tuple(...elementArbitraries).map(Array.getSomes);
|
|
520
|
+
if (Array.isReadonlyArrayNonEmpty(rest)) {
|
|
521
|
+
const [head, ...tail] = rest;
|
|
522
|
+
const restCtx = ast.elements.length === 0 ? ctx : reset;
|
|
523
|
+
const minRestLength = Math.max(0, minLength - length - tail.length);
|
|
524
|
+
const headArbitrary = minRestLength === 0 ? undefined : head.arbitrary.terminal(fc, reset, recursionStack);
|
|
525
|
+
if (minRestLength > 0 && headArbitrary === undefined) {
|
|
526
|
+
return undefined;
|
|
210
527
|
}
|
|
211
|
-
|
|
528
|
+
const restArbitrary = minRestLength === 0 ? fc.constant([]) : array(fc, {
|
|
529
|
+
...restCtx,
|
|
530
|
+
constraint: {
|
|
531
|
+
...restCtx.constraint,
|
|
532
|
+
minLength: minRestLength
|
|
533
|
+
}
|
|
534
|
+
}, headArbitrary, true);
|
|
535
|
+
out = appendArray(fc, out, len, restArbitrary);
|
|
536
|
+
if (tail.length > 0) {
|
|
537
|
+
const tailArbitraries = [];
|
|
538
|
+
for (const element of tail) {
|
|
539
|
+
const out = element.arbitrary.terminal(fc, reset, recursionStack);
|
|
540
|
+
if (out === undefined) {
|
|
541
|
+
return undefined;
|
|
542
|
+
}
|
|
543
|
+
tailArbitraries.push(out);
|
|
544
|
+
}
|
|
545
|
+
const t = fc.tuple(...tailArbitraries);
|
|
546
|
+
out = appendArray(fc, out, len, t);
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
return out;
|
|
550
|
+
};
|
|
551
|
+
return makeLazy((fc, ctx, recursionStack) => {
|
|
552
|
+
const reset = resetContext(ctx);
|
|
553
|
+
// ---------------------------------------------
|
|
554
|
+
// handle elements
|
|
555
|
+
// ---------------------------------------------
|
|
556
|
+
const elementArbitraries = elements.map(({
|
|
557
|
+
ast,
|
|
558
|
+
arbitrary
|
|
559
|
+
}) => {
|
|
560
|
+
const out = arbitrary(fc, reset, recursionStack);
|
|
561
|
+
return SchemaAST.isOptional(ast) ? out.chain(a => fc.boolean().map(b => b ? Option.some(a) : Option.none())) : out.map(Option.some);
|
|
212
562
|
});
|
|
563
|
+
let out = fc.tuple(...elementArbitraries).map(Array.getSomes);
|
|
213
564
|
// ---------------------------------------------
|
|
214
|
-
// handle
|
|
565
|
+
// handle rest element
|
|
215
566
|
// ---------------------------------------------
|
|
216
|
-
if (
|
|
217
|
-
const
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
567
|
+
if (Array.isReadonlyArrayNonEmpty(rest)) {
|
|
568
|
+
const [head, ...tail] = rest.map(({
|
|
569
|
+
arbitrary
|
|
570
|
+
}) => arbitrary(fc, reset, recursionStack));
|
|
571
|
+
const restArbitrary = array(fc, ast.elements.length === 0 ? ctx : reset, head);
|
|
572
|
+
out = appendArray(fc, out, len, restArbitrary);
|
|
573
|
+
// ---------------------------------------------
|
|
574
|
+
// handle post rest elements
|
|
575
|
+
// ---------------------------------------------
|
|
576
|
+
if (tail.length > 0) {
|
|
577
|
+
const t = fc.tuple(...tail);
|
|
578
|
+
out = appendArray(fc, out, len, t);
|
|
579
|
+
}
|
|
224
580
|
}
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
581
|
+
if (ctx.recursion) {
|
|
582
|
+
const terminalOut = terminal(fc, ctx, recursionStack);
|
|
583
|
+
if (terminalOut !== undefined) {
|
|
584
|
+
return fc.oneof(ctx.recursion, terminalOut, out);
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
return out;
|
|
588
|
+
}, terminal);
|
|
589
|
+
}
|
|
228
590
|
case "Objects":
|
|
229
|
-
|
|
230
|
-
const
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
const
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
591
|
+
{
|
|
592
|
+
const propertySignatures = ast.propertySignatures.map(ps => ({
|
|
593
|
+
ps,
|
|
594
|
+
arbitrary: recur(ps.type, [...path, ps.name])
|
|
595
|
+
}));
|
|
596
|
+
const indexSignatures = ast.indexSignatures.map(is => ({
|
|
597
|
+
is,
|
|
598
|
+
parameter: recur(is.parameter, path),
|
|
599
|
+
type: recur(is.type, path)
|
|
600
|
+
}));
|
|
601
|
+
const terminal = (fc, ctx, recursionStack) => {
|
|
602
|
+
const reset = resetContext(ctx);
|
|
603
|
+
const pss = {};
|
|
604
|
+
const requiredKeys = [];
|
|
605
|
+
const optionals = [];
|
|
606
|
+
for (const {
|
|
607
|
+
ps,
|
|
608
|
+
arbitrary
|
|
609
|
+
} of propertySignatures) {
|
|
610
|
+
const name = ps.name;
|
|
611
|
+
const out = arbitrary.terminal(fc, reset, recursionStack);
|
|
612
|
+
if (SchemaAST.isOptional(ps.type)) {
|
|
613
|
+
if (out !== undefined) {
|
|
614
|
+
optionals.push([name, out]);
|
|
615
|
+
}
|
|
616
|
+
continue;
|
|
617
|
+
}
|
|
618
|
+
if (out === undefined) {
|
|
619
|
+
return undefined;
|
|
620
|
+
}
|
|
239
621
|
requiredKeys.push(name);
|
|
622
|
+
pss[name] = out;
|
|
240
623
|
}
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
...Object.fromEntries(entries),
|
|
256
|
-
...o
|
|
257
|
-
};
|
|
258
|
-
});
|
|
624
|
+
let optionalCount = Math.max(0, (ctx.constraint?.minLength ?? 0) - requiredKeys.length);
|
|
625
|
+
for (const [name, out] of optionals) {
|
|
626
|
+
if (optionalCount === 0) {
|
|
627
|
+
break;
|
|
628
|
+
}
|
|
629
|
+
optionalCount--;
|
|
630
|
+
requiredKeys.push(name);
|
|
631
|
+
pss[name] = out;
|
|
632
|
+
}
|
|
633
|
+
if (optionalCount > 0 && ast.indexSignatures.length === 0) {
|
|
634
|
+
return undefined;
|
|
635
|
+
}
|
|
636
|
+
let out = fc.record(pss, {
|
|
637
|
+
requiredKeys
|
|
259
638
|
});
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
639
|
+
const entriesConstraints = objectEntriesConstraints(ast, ctx.constraint, requiredKeys.length);
|
|
640
|
+
const minEntries = entriesConstraints?.minLength ?? 0;
|
|
641
|
+
for (const {
|
|
642
|
+
parameter,
|
|
643
|
+
type
|
|
644
|
+
} of indexSignatures) {
|
|
645
|
+
let entries;
|
|
646
|
+
if (minEntries === 0) {
|
|
647
|
+
entries = fc.constant([]);
|
|
648
|
+
} else {
|
|
649
|
+
const key = parameter.terminal(fc, reset, recursionStack);
|
|
650
|
+
const value = type.terminal(fc, reset, recursionStack);
|
|
651
|
+
if (key === undefined || value === undefined) {
|
|
652
|
+
return undefined;
|
|
653
|
+
}
|
|
654
|
+
entries = arrayWithConstraints(fc, fc.tuple(key, value), {
|
|
655
|
+
...entriesConstraints,
|
|
656
|
+
maxLength: minEntries
|
|
657
|
+
}, entryComparator);
|
|
658
|
+
}
|
|
659
|
+
out = appendObjectEntries(out, entries);
|
|
660
|
+
}
|
|
661
|
+
return out;
|
|
662
|
+
};
|
|
663
|
+
return makeLazy((fc, ctx, recursionStack) => {
|
|
664
|
+
const reset = resetContext(ctx);
|
|
665
|
+
// ---------------------------------------------
|
|
666
|
+
// handle property signatures
|
|
667
|
+
// ---------------------------------------------
|
|
668
|
+
const pss = {};
|
|
669
|
+
const orderedNames = [];
|
|
670
|
+
const requiredKeys = [];
|
|
671
|
+
const optionalNames = [];
|
|
672
|
+
for (const {
|
|
673
|
+
ps,
|
|
674
|
+
arbitrary
|
|
675
|
+
} of propertySignatures) {
|
|
676
|
+
const name = ps.name;
|
|
677
|
+
orderedNames.push(name);
|
|
678
|
+
if (SchemaAST.isOptional(ps.type)) {
|
|
679
|
+
optionalNames.push(name);
|
|
680
|
+
} else {
|
|
681
|
+
requiredKeys.push(name);
|
|
682
|
+
}
|
|
683
|
+
pss[name] = arbitrary(fc, reset, recursionStack);
|
|
684
|
+
}
|
|
685
|
+
// When property-count constraints must be satisfied by selecting
|
|
686
|
+
// optional keys (no index signatures are available to fill the gap),
|
|
687
|
+
// generate a count-controlled subset of optional keys instead of
|
|
688
|
+
// relying on fast-check's independent inclusion plus discards. This
|
|
689
|
+
// enforces both bounds precisely while still varying which optionals
|
|
690
|
+
// appear.
|
|
691
|
+
const constraint = ctx.constraint;
|
|
692
|
+
if (optionalNames.length > 0 && indexSignatures.length === 0 && constraint !== undefined && (constraint.minLength !== undefined || constraint.maxLength !== undefined)) {
|
|
693
|
+
return objectWithOptionalCount(fc, pss, orderedNames, requiredKeys, optionalNames, constraint);
|
|
694
|
+
}
|
|
695
|
+
let out = fc.record(pss, {
|
|
696
|
+
requiredKeys
|
|
697
|
+
});
|
|
698
|
+
const entriesConstraints = objectEntriesConstraints(ast, ctx.constraint, requiredKeys.length);
|
|
699
|
+
// ---------------------------------------------
|
|
700
|
+
// handle index signatures
|
|
701
|
+
// ---------------------------------------------
|
|
702
|
+
for (const {
|
|
703
|
+
parameter,
|
|
704
|
+
type
|
|
705
|
+
} of indexSignatures) {
|
|
706
|
+
const entry = fc.tuple(parameter(fc, reset, recursionStack), type(fc, reset, recursionStack));
|
|
707
|
+
const entries = arrayWithConstraints(fc, entry, entriesConstraints, entryComparator);
|
|
708
|
+
out = appendObjectEntries(out, entries);
|
|
709
|
+
}
|
|
710
|
+
return out;
|
|
711
|
+
}, terminal);
|
|
712
|
+
}
|
|
263
713
|
case "Union":
|
|
264
|
-
|
|
714
|
+
{
|
|
715
|
+
const types = ast.types.map(ast => recur(ast, path));
|
|
716
|
+
const terminal = (fc, ctx, recursionStack) => oneOf(fc, types.map(type => type.terminal(fc, ctx, recursionStack)).filter(Predicate.isNotUndefined));
|
|
717
|
+
return makeLazy((fc, ctx, recursionStack) => {
|
|
718
|
+
const arbitraries = types.map(type => type(fc, ctx, recursionStack));
|
|
719
|
+
if (ctx.recursion) {
|
|
720
|
+
const terminalOut = terminal(fc, ctx, recursionStack);
|
|
721
|
+
if (terminalOut !== undefined) {
|
|
722
|
+
return fc.oneof(ctx.recursion, terminalOut, ...arbitraries);
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
const out = oneOf(fc, arbitraries);
|
|
726
|
+
if (out === undefined) {
|
|
727
|
+
throw arbitraryError("a union with no members");
|
|
728
|
+
}
|
|
729
|
+
return out;
|
|
730
|
+
}, terminal);
|
|
731
|
+
}
|
|
265
732
|
case "Suspend":
|
|
266
733
|
{
|
|
267
734
|
const memo = arbitraryMemoMap.get(ast);
|
|
268
735
|
if (memo) return memo;
|
|
269
736
|
const get = SchemaAST.memoizeThunk(() => recur(ast.thunk(), path));
|
|
270
|
-
const out = (fc, ctx
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
737
|
+
const out = makeLazy((fc, ctx, recursionStack) => {
|
|
738
|
+
const recursion = getSuspendRecursion(fc, ast);
|
|
739
|
+
const nextCtx = {
|
|
740
|
+
...ctx,
|
|
741
|
+
recursion
|
|
742
|
+
};
|
|
743
|
+
const nextStack = recursionStack.includes(ast) ? recursionStack : [...recursionStack, ast];
|
|
744
|
+
const terminal = get().terminal(fc, nextCtx, nextStack);
|
|
745
|
+
if (terminal === undefined) {
|
|
746
|
+
throw errorWithPath("Unable to derive an arbitrary for a recursive schema without a finite generation path", path);
|
|
747
|
+
}
|
|
748
|
+
return fc.oneof(recursion, terminal, fc.constant(null).chain(() => get()(fc, nextCtx, nextStack)));
|
|
749
|
+
}, (fc, ctx, recursionStack) => {
|
|
750
|
+
if (recursionStack.includes(ast)) {
|
|
751
|
+
return undefined;
|
|
752
|
+
}
|
|
753
|
+
const recursion = getSuspendRecursion(fc, ast);
|
|
754
|
+
return get().terminal(fc, {
|
|
755
|
+
...ctx,
|
|
756
|
+
recursion
|
|
757
|
+
}, [...recursionStack, ast]);
|
|
758
|
+
});
|
|
274
759
|
arbitraryMemoMap.set(ast, out);
|
|
275
760
|
return out;
|
|
276
761
|
}
|