effect 4.0.0-beta.73 → 4.0.0-beta.74
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 +16 -16
- package/dist/Array.js +4 -4
- package/dist/Boolean.d.ts +2 -2
- package/dist/Boolean.js +2 -2
- package/dist/Channel.d.ts +63 -63
- package/dist/Channel.js +25 -25
- package/dist/Chunk.d.ts +17 -17
- package/dist/Chunk.js +5 -5
- package/dist/Context.d.ts +3 -3
- package/dist/Context.js +1 -1
- package/dist/Cron.d.ts +4 -4
- package/dist/Cron.js +4 -4
- package/dist/Deferred.d.ts +37 -37
- package/dist/Deferred.js +13 -13
- package/dist/Duration.d.ts +6 -6
- package/dist/Duration.js +2 -2
- package/dist/Effect.d.ts +58 -58
- package/dist/Effect.js +39 -39
- package/dist/Equal.d.ts +2 -2
- package/dist/Equal.js +2 -2
- package/dist/Equivalence.d.ts +1 -1
- package/dist/Equivalence.js +1 -1
- package/dist/ExecutionPlan.d.ts +2 -2
- package/dist/ExecutionPlan.js +1 -1
- package/dist/FileSystem.d.ts +6 -6
- package/dist/FileSystem.js +2 -2
- package/dist/Function.d.ts +5 -5
- package/dist/Function.js +5 -5
- package/dist/Graph.d.ts +11 -11
- package/dist/Graph.js +5 -5
- package/dist/HKT.d.ts +1 -1
- package/dist/HashMap.d.ts +3 -3
- package/dist/HashSet.d.ts +1 -1
- package/dist/Iterable.d.ts +15 -15
- package/dist/Iterable.js +5 -5
- package/dist/Layer.d.ts +16 -16
- package/dist/Layer.js +5 -5
- package/dist/Logger.d.ts +5 -5
- package/dist/Logger.js +4 -4
- package/dist/ManagedRuntime.d.ts +2 -2
- package/dist/Match.d.ts +20 -20
- package/dist/Match.js +16 -16
- package/dist/Metric.d.ts +16 -16
- package/dist/Metric.js +3 -3
- package/dist/Option.d.ts +36 -36
- package/dist/Option.js +17 -17
- package/dist/Order.d.ts +1 -1
- package/dist/Order.js +1 -1
- package/dist/Path.d.ts +1 -1
- package/dist/Path.js +1 -1
- package/dist/Pipeable.d.ts +1 -1
- package/dist/Pipeable.js +1 -1
- package/dist/Predicate.d.ts +5 -5
- package/dist/PubSub.d.ts +9 -9
- package/dist/PubSub.js +5 -5
- package/dist/Queue.d.ts +24 -24
- package/dist/Queue.js +20 -20
- package/dist/Record.d.ts +15 -15
- package/dist/Record.js +5 -5
- package/dist/Redacted.d.ts +2 -2
- package/dist/Redacted.js +1 -1
- package/dist/Ref.d.ts +6 -6
- package/dist/Ref.js +6 -6
- package/dist/RegExp.d.ts +1 -1
- package/dist/RegExp.js +1 -1
- package/dist/Request.d.ts +4 -4
- package/dist/RequestResolver.d.ts +6 -6
- package/dist/RequestResolver.js +2 -2
- package/dist/Resource.d.ts +1 -1
- package/dist/Resource.js +1 -1
- package/dist/Result.d.ts +18 -18
- package/dist/Result.js +11 -11
- package/dist/Schedule.d.ts +44 -44
- package/dist/Schedule.js +18 -18
- package/dist/Schema.d.ts +177 -459
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +25 -25
- package/dist/Schema.js.map +1 -1
- package/dist/SchemaAST.d.ts +1 -1
- package/dist/SchemaGetter.d.ts +13 -13
- package/dist/SchemaGetter.js +12 -12
- package/dist/SchemaParser.d.ts +3 -3
- package/dist/SchemaParser.js +3 -3
- package/dist/Scope.d.ts +1 -1
- package/dist/Scope.js +1 -1
- package/dist/Sink.d.ts +5 -5
- package/dist/Sink.js +3 -3
- package/dist/Stream.d.ts +55 -55
- package/dist/Stream.js +21 -21
- package/dist/String.d.ts +5 -5
- package/dist/String.js +3 -3
- package/dist/Struct.d.ts +8 -8
- package/dist/Struct.js +3 -3
- package/dist/SynchronizedRef.d.ts +57 -57
- package/dist/SynchronizedRef.js +19 -19
- package/dist/Terminal.d.ts +1 -1
- package/dist/Terminal.js +1 -1
- package/dist/Tracer.d.ts +5 -5
- package/dist/Tracer.js +2 -2
- package/dist/Tuple.d.ts +14 -14
- package/dist/Tuple.js +6 -6
- package/dist/TxHashMap.d.ts +3 -3
- package/dist/TxHashSet.d.ts +1 -1
- package/dist/Unify.d.ts +7 -7
- package/dist/Unify.js +1 -1
- package/dist/testing/TestClock.d.ts +5 -5
- package/dist/testing/TestClock.js +4 -4
- package/dist/testing/TestConsole.d.ts +3 -3
- package/dist/testing/TestConsole.js +3 -3
- package/dist/unstable/ai/Chat.d.ts +2 -2
- package/dist/unstable/ai/Chat.js +2 -2
- package/dist/unstable/ai/EmbeddingModel.d.ts +1 -1
- package/dist/unstable/ai/IdGenerator.d.ts +2 -2
- package/dist/unstable/ai/IdGenerator.js +1 -1
- package/dist/unstable/ai/LanguageModel.d.ts +4 -4
- package/dist/unstable/ai/LanguageModel.js +1 -1
- package/dist/unstable/ai/Prompt.d.ts +15 -15
- package/dist/unstable/ai/Prompt.js +1 -1
- package/dist/unstable/ai/Telemetry.d.ts +5 -5
- package/dist/unstable/ai/Telemetry.js +2 -2
- package/dist/unstable/ai/Tokenizer.d.ts +1 -1
- package/dist/unstable/ai/Tokenizer.js +1 -1
- package/dist/unstable/ai/Tool.d.ts +6 -6
- package/dist/unstable/ai/Tool.js +6 -6
- package/dist/unstable/cli/Command.d.ts.map +1 -1
- package/dist/unstable/cli/Command.js +1 -1
- package/dist/unstable/cli/Command.js.map +1 -1
- package/dist/unstable/cli/Param.d.ts +1 -1
- package/dist/unstable/cli/Primitive.d.ts +3 -3
- package/dist/unstable/cli/Primitive.js +1 -1
- package/dist/unstable/cli/Prompt.d.ts +11 -11
- package/dist/unstable/cli/internal/parser.js +145 -10
- package/dist/unstable/cli/internal/parser.js.map +1 -1
- package/dist/unstable/cluster/Entity.d.ts +1 -1
- package/dist/unstable/cluster/Entity.js +1 -1
- package/dist/unstable/cluster/HttpRunner.d.ts +2 -2
- package/dist/unstable/cluster/HttpRunner.js +2 -2
- package/dist/unstable/cluster/K8sHttpClient.d.ts +1 -1
- package/dist/unstable/cluster/K8sHttpClient.js +1 -1
- package/dist/unstable/cluster/Runners.d.ts +1 -1
- package/dist/unstable/cluster/Runners.js +1 -1
- package/dist/unstable/cluster/Sharding.d.ts +1 -1
- package/dist/unstable/cluster/Sharding.js +1 -1
- package/dist/unstable/cluster/SingletonAddress.d.ts +1 -1
- package/dist/unstable/cluster/SingletonAddress.js +1 -1
- package/dist/unstable/cluster/Snowflake.d.ts +5 -5
- package/dist/unstable/cluster/Snowflake.js +5 -5
- package/dist/unstable/devtools/DevToolsClient.d.ts +1 -1
- package/dist/unstable/devtools/DevToolsClient.js +1 -1
- package/dist/unstable/eventlog/EventLog.d.ts +1 -1
- package/dist/unstable/eventlog/EventLog.js +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.d.ts +1 -1
- package/dist/unstable/eventlog/EventLogEncryption.js +1 -1
- package/dist/unstable/eventlog/EventLogRemote.d.ts +1 -1
- package/dist/unstable/eventlog/EventLogRemote.js +1 -1
- package/dist/unstable/eventlog/EventLogServerUnencrypted.d.ts +3 -3
- package/dist/unstable/eventlog/EventLogServerUnencrypted.js +3 -3
- package/dist/unstable/http/Cookies.d.ts +1 -1
- package/dist/unstable/http/Etag.d.ts +1 -1
- package/dist/unstable/http/Etag.js +1 -1
- package/dist/unstable/http/FetchHttpClient.d.ts +2 -2
- package/dist/unstable/http/FetchHttpClient.js +2 -2
- package/dist/unstable/http/HttpClient.d.ts +1 -1
- package/dist/unstable/http/HttpClient.js +1 -1
- package/dist/unstable/http/HttpClientRequest.d.ts +2 -2
- package/dist/unstable/http/HttpMiddleware.d.ts +1 -1
- package/dist/unstable/http/HttpMiddleware.js +1 -1
- package/dist/unstable/http/HttpPlatform.d.ts +1 -1
- package/dist/unstable/http/HttpPlatform.js +1 -1
- package/dist/unstable/http/HttpRouter.d.ts +4 -4
- package/dist/unstable/http/HttpRouter.js +4 -4
- package/dist/unstable/http/HttpServerResponse.d.ts +3 -3
- package/dist/unstable/http/Url.d.ts +33 -33
- package/dist/unstable/http/Url.js +11 -11
- package/dist/unstable/httpapi/HttpApi.d.ts +1 -1
- package/dist/unstable/httpapi/HttpApi.js +1 -1
- package/dist/unstable/httpapi/HttpApiError.d.ts +13 -13
- package/dist/unstable/httpapi/HttpApiError.js +13 -13
- package/dist/unstable/observability/PrometheusMetrics.d.ts +4 -4
- package/dist/unstable/observability/PrometheusMetrics.js +2 -2
- package/dist/unstable/persistence/KeyValueStore.d.ts +3 -3
- package/dist/unstable/persistence/KeyValueStore.js +1 -1
- package/dist/unstable/persistence/Persistable.d.ts +2 -2
- package/dist/unstable/persistence/Persistable.js +2 -2
- package/dist/unstable/persistence/PersistedQueue.d.ts +8 -8
- package/dist/unstable/persistence/PersistedQueue.js +8 -8
- package/dist/unstable/persistence/RateLimiter.d.ts +1 -1
- package/dist/unstable/persistence/RateLimiter.js +1 -1
- package/dist/unstable/process/ChildProcess.d.ts +5 -5
- package/dist/unstable/process/ChildProcess.js +2 -2
- package/dist/unstable/reactivity/AsyncResult.d.ts +4 -4
- package/dist/unstable/reactivity/AsyncResult.js +1 -1
- package/dist/unstable/reactivity/Atom.d.ts +1 -1
- package/dist/unstable/reactivity/Atom.js +1 -1
- package/dist/unstable/reactivity/AtomRegistry.d.ts +1 -1
- package/dist/unstable/reactivity/AtomRegistry.js +1 -1
- package/dist/unstable/reactivity/Reactivity.d.ts +1 -1
- package/dist/unstable/reactivity/Reactivity.js +1 -1
- package/dist/unstable/rpc/Rpc.d.ts +5 -5
- package/dist/unstable/rpc/Rpc.js +1 -1
- package/dist/unstable/rpc/RpcMiddleware.d.ts +1 -1
- package/dist/unstable/rpc/RpcMiddleware.js +1 -1
- package/dist/unstable/rpc/RpcSchema.d.ts +3 -3
- package/dist/unstable/rpc/RpcSchema.js +2 -2
- package/dist/unstable/schema/Model.d.ts +2 -2
- package/dist/unstable/schema/Model.js +1 -1
- package/dist/unstable/socket/Socket.d.ts +3 -3
- package/dist/unstable/socket/Socket.js +3 -3
- package/dist/unstable/socket/SocketServer.d.ts +1 -1
- package/dist/unstable/socket/SocketServer.js +1 -1
- package/dist/unstable/sql/Migrator.d.ts +1 -1
- package/dist/unstable/sql/SqlClient.d.ts +3 -3
- package/dist/unstable/sql/SqlClient.js +2 -2
- package/dist/unstable/sql/SqlConnection.d.ts +1 -1
- package/dist/unstable/sql/SqlConnection.js +1 -1
- package/dist/unstable/sql/Statement.d.ts +2 -2
- package/dist/unstable/sql/Statement.js +2 -2
- package/dist/unstable/workers/Transferable.d.ts +1 -1
- package/dist/unstable/workers/Transferable.js +1 -1
- package/dist/unstable/workers/Worker.d.ts +1 -1
- package/dist/unstable/workers/Worker.js +1 -1
- package/dist/unstable/workflow/Activity.d.ts +1 -1
- package/dist/unstable/workflow/Activity.js +1 -1
- package/dist/unstable/workflow/DurableDeferred.d.ts +1 -1
- package/dist/unstable/workflow/DurableDeferred.js +1 -1
- package/package.json +1 -1
- package/src/Array.ts +16 -16
- package/src/Boolean.ts +2 -2
- package/src/Channel.ts +67 -67
- package/src/Chunk.ts +18 -18
- package/src/Context.ts +4 -4
- package/src/Cron.ts +4 -4
- package/src/Deferred.ts +37 -37
- package/src/Duration.ts +6 -6
- package/src/Effect.ts +58 -58
- package/src/Equal.ts +2 -2
- package/src/Equivalence.ts +1 -1
- package/src/ExecutionPlan.ts +2 -2
- package/src/FileSystem.ts +6 -6
- package/src/Function.ts +5 -5
- package/src/Graph.ts +11 -11
- package/src/HKT.ts +1 -1
- package/src/HashMap.ts +3 -3
- package/src/HashSet.ts +1 -1
- package/src/Iterable.ts +15 -15
- package/src/Layer.ts +16 -16
- package/src/Logger.ts +7 -7
- package/src/ManagedRuntime.ts +2 -2
- package/src/Match.ts +20 -20
- package/src/Metric.ts +20 -20
- package/src/Option.ts +36 -36
- package/src/Order.ts +1 -1
- package/src/Path.ts +1 -1
- package/src/Pipeable.ts +1 -1
- package/src/Predicate.ts +5 -5
- package/src/PubSub.ts +9 -9
- package/src/Queue.ts +24 -24
- package/src/Record.ts +15 -15
- package/src/Redacted.ts +2 -2
- package/src/Ref.ts +18 -18
- package/src/RegExp.ts +1 -1
- package/src/Request.ts +4 -4
- package/src/RequestResolver.ts +8 -8
- package/src/Resource.ts +1 -1
- package/src/Result.ts +18 -18
- package/src/Schedule.ts +45 -45
- package/src/Schema.ts +177 -459
- package/src/SchemaAST.ts +1 -1
- package/src/SchemaGetter.ts +13 -13
- package/src/SchemaParser.ts +3 -3
- package/src/Scope.ts +1 -1
- package/src/Sink.ts +5 -5
- package/src/Stream.ts +57 -57
- package/src/String.ts +5 -5
- package/src/Struct.ts +8 -8
- package/src/SynchronizedRef.ts +57 -57
- package/src/Terminal.ts +1 -1
- package/src/Tracer.ts +5 -5
- package/src/Tuple.ts +14 -14
- package/src/TxHashMap.ts +3 -3
- package/src/TxHashSet.ts +1 -1
- package/src/Unify.ts +7 -7
- package/src/testing/TestClock.ts +5 -5
- package/src/testing/TestConsole.ts +3 -3
- package/src/unstable/ai/Chat.ts +2 -2
- package/src/unstable/ai/EmbeddingModel.ts +1 -1
- package/src/unstable/ai/IdGenerator.ts +2 -2
- package/src/unstable/ai/LanguageModel.ts +4 -4
- package/src/unstable/ai/Prompt.ts +15 -15
- package/src/unstable/ai/Telemetry.ts +5 -5
- package/src/unstable/ai/Tokenizer.ts +1 -1
- package/src/unstable/ai/Tool.ts +6 -6
- package/src/unstable/cli/Command.ts +5 -1
- package/src/unstable/cli/Param.ts +1 -1
- package/src/unstable/cli/Primitive.ts +3 -3
- package/src/unstable/cli/Prompt.ts +11 -11
- package/src/unstable/cli/internal/parser.ts +204 -10
- package/src/unstable/cluster/Entity.ts +1 -1
- package/src/unstable/cluster/HttpRunner.ts +2 -2
- package/src/unstable/cluster/K8sHttpClient.ts +1 -1
- package/src/unstable/cluster/Runners.ts +1 -1
- package/src/unstable/cluster/Sharding.ts +1 -1
- package/src/unstable/cluster/SingletonAddress.ts +1 -1
- package/src/unstable/cluster/Snowflake.ts +5 -5
- package/src/unstable/devtools/DevToolsClient.ts +1 -1
- package/src/unstable/eventlog/EventLog.ts +1 -1
- package/src/unstable/eventlog/EventLogEncryption.ts +1 -1
- package/src/unstable/eventlog/EventLogRemote.ts +1 -1
- package/src/unstable/eventlog/EventLogServerUnencrypted.ts +3 -3
- package/src/unstable/http/Cookies.ts +1 -1
- package/src/unstable/http/Etag.ts +1 -1
- package/src/unstable/http/FetchHttpClient.ts +2 -2
- package/src/unstable/http/HttpClient.ts +1 -1
- package/src/unstable/http/HttpClientRequest.ts +2 -2
- package/src/unstable/http/HttpMiddleware.ts +1 -1
- package/src/unstable/http/HttpPlatform.ts +1 -1
- package/src/unstable/http/HttpRouter.ts +4 -4
- package/src/unstable/http/HttpServerResponse.ts +3 -3
- package/src/unstable/http/Url.ts +33 -33
- package/src/unstable/httpapi/HttpApi.ts +1 -1
- package/src/unstable/httpapi/HttpApiError.ts +13 -13
- package/src/unstable/observability/PrometheusMetrics.ts +4 -4
- package/src/unstable/persistence/KeyValueStore.ts +3 -3
- package/src/unstable/persistence/Persistable.ts +2 -2
- package/src/unstable/persistence/PersistedQueue.ts +8 -8
- package/src/unstable/persistence/RateLimiter.ts +1 -1
- package/src/unstable/process/ChildProcess.ts +5 -5
- package/src/unstable/reactivity/AsyncResult.ts +4 -4
- package/src/unstable/reactivity/Atom.ts +1 -1
- package/src/unstable/reactivity/AtomRegistry.ts +1 -1
- package/src/unstable/reactivity/Reactivity.ts +1 -1
- package/src/unstable/rpc/Rpc.ts +5 -5
- package/src/unstable/rpc/RpcMiddleware.ts +1 -1
- package/src/unstable/rpc/RpcSchema.ts +3 -3
- package/src/unstable/schema/Model.ts +2 -2
- package/src/unstable/socket/Socket.ts +3 -3
- package/src/unstable/socket/SocketServer.ts +1 -1
- package/src/unstable/sql/Migrator.ts +1 -1
- package/src/unstable/sql/SqlClient.ts +3 -3
- package/src/unstable/sql/SqlConnection.ts +1 -1
- package/src/unstable/sql/Statement.ts +2 -2
- package/src/unstable/workers/Transferable.ts +1 -1
- package/src/unstable/workers/Worker.ts +1 -1
- package/src/unstable/workflow/Activity.ts +1 -1
- package/src/unstable/workflow/DurableDeferred.ts +1 -1
package/dist/Schema.js
CHANGED
|
@@ -240,7 +240,7 @@ export function declare(is, annotations) {
|
|
|
240
240
|
* type E = typeof bottom["Encoded"] // string
|
|
241
241
|
* ```
|
|
242
242
|
*
|
|
243
|
-
* @category
|
|
243
|
+
* @category utility types
|
|
244
244
|
* @since 4.0.0
|
|
245
245
|
*/
|
|
246
246
|
export function revealBottom(bottom) {
|
|
@@ -367,7 +367,7 @@ export function annotateKey(annotations) {
|
|
|
367
367
|
* type Enc = typeof codec["Encoded"] // string
|
|
368
368
|
* ```
|
|
369
369
|
*
|
|
370
|
-
* @category
|
|
370
|
+
* @category utility types
|
|
371
371
|
* @since 4.0.0
|
|
372
372
|
*/
|
|
373
373
|
export function revealCodec(codec) {
|
|
@@ -1560,7 +1560,7 @@ export const Number = /*#__PURE__*/make(AST.number);
|
|
|
1560
1560
|
*
|
|
1561
1561
|
* @see {@link BooleanFromBit} for a schema that decodes bit literals `0` or `1` into a boolean
|
|
1562
1562
|
*
|
|
1563
|
-
* @category
|
|
1563
|
+
* @category boolean
|
|
1564
1564
|
* @since 4.0.0
|
|
1565
1565
|
*/
|
|
1566
1566
|
export const Boolean = /*#__PURE__*/make(AST.boolean);
|
|
@@ -2989,7 +2989,7 @@ export function link() {
|
|
|
2989
2989
|
* // at ["c"])]))
|
|
2990
2990
|
* ```
|
|
2991
2991
|
*
|
|
2992
|
-
* @category
|
|
2992
|
+
* @category constructors
|
|
2993
2993
|
* @since 4.0.0
|
|
2994
2994
|
*/
|
|
2995
2995
|
export const makeFilter = AST.makeFilter;
|
|
@@ -2997,7 +2997,7 @@ export const makeFilter = AST.makeFilter;
|
|
|
2997
2997
|
* Groups multiple checks into a single {@link AST.FilterGroup}, applying
|
|
2998
2998
|
* optional shared annotations to the group as a whole.
|
|
2999
2999
|
*
|
|
3000
|
-
* @category
|
|
3000
|
+
* @category constructors
|
|
3001
3001
|
* @since 4.0.0
|
|
3002
3002
|
*/
|
|
3003
3003
|
export function makeFilterGroup(checks, annotations = undefined) {
|
|
@@ -4730,7 +4730,7 @@ export function isUnique(annotations) {
|
|
|
4730
4730
|
* Schema for non-empty strings. Validates that a string has at least one
|
|
4731
4731
|
* character.
|
|
4732
4732
|
*
|
|
4733
|
-
* @category
|
|
4733
|
+
* @category string
|
|
4734
4734
|
* @since 3.10.0
|
|
4735
4735
|
*/
|
|
4736
4736
|
export const NonEmptyString = /*#__PURE__*/String.check(/*#__PURE__*/isNonEmpty());
|
|
@@ -4750,7 +4750,7 @@ export const NonEmptyString = /*#__PURE__*/String.check(/*#__PURE__*/isNonEmpty(
|
|
|
4750
4750
|
* @see {@link NonEmptyString} for strings with length greater than zero
|
|
4751
4751
|
* @see {@link isLengthBetween} for the underlying length check
|
|
4752
4752
|
*
|
|
4753
|
-
* @category
|
|
4753
|
+
* @category string
|
|
4754
4754
|
* @since 3.10.0
|
|
4755
4755
|
*/
|
|
4756
4756
|
export const Char = /*#__PURE__*/String.check(/*#__PURE__*/isLengthBetween(1, 1));
|
|
@@ -6117,7 +6117,7 @@ export const BigDecimalFromString = /*#__PURE__*/BigDecimalString.pipe(/*#__PURE
|
|
|
6117
6117
|
* // => { a: 1, b: 2 }
|
|
6118
6118
|
* ```
|
|
6119
6119
|
*
|
|
6120
|
-
* @category
|
|
6120
|
+
* @category schemas
|
|
6121
6121
|
* @since 4.0.0
|
|
6122
6122
|
*/
|
|
6123
6123
|
export const UnknownFromJsonString = /*#__PURE__*/fromJsonString(Unknown);
|
|
@@ -6184,7 +6184,7 @@ export const UnknownFromJsonString = /*#__PURE__*/fromJsonString(Unknown);
|
|
|
6184
6184
|
* // }
|
|
6185
6185
|
* ```
|
|
6186
6186
|
*
|
|
6187
|
-
* @category
|
|
6187
|
+
* @category constructors
|
|
6188
6188
|
* @since 4.0.0
|
|
6189
6189
|
*/
|
|
6190
6190
|
export function fromJsonString(schema) {
|
|
@@ -6202,7 +6202,7 @@ export function fromJsonString(schema) {
|
|
|
6202
6202
|
* The default JSON serializer encodes a `File` as `{ data, type, name, lastModified }`
|
|
6203
6203
|
* where `data` is base64-encoded.
|
|
6204
6204
|
*
|
|
6205
|
-
* @category
|
|
6205
|
+
* @category file
|
|
6206
6206
|
* @since 4.0.0
|
|
6207
6207
|
*/
|
|
6208
6208
|
export const File = /*#__PURE__*/instanceOf(globalThis.File, {
|
|
@@ -6397,7 +6397,7 @@ export function fromFormData(schema) {
|
|
|
6397
6397
|
*
|
|
6398
6398
|
* The default JSON serializer encodes a `URLSearchParams` as a query string.
|
|
6399
6399
|
*
|
|
6400
|
-
* @category
|
|
6400
|
+
* @category search params
|
|
6401
6401
|
* @since 4.0.0
|
|
6402
6402
|
*/
|
|
6403
6403
|
export const URLSearchParams = /*#__PURE__*/instanceOf(globalThis.URLSearchParams, {
|
|
@@ -6583,7 +6583,7 @@ export const BigIntFromString = /*#__PURE__*/make(AST.bigIntString).pipe(/*#__PU
|
|
|
6583
6583
|
/**
|
|
6584
6584
|
* Schema for strings that contains no leading or trailing whitespaces.
|
|
6585
6585
|
*
|
|
6586
|
-
* @category
|
|
6586
|
+
* @category string
|
|
6587
6587
|
* @since 3.10.0
|
|
6588
6588
|
*/
|
|
6589
6589
|
export const Trimmed = /*#__PURE__*/String.check(/*#__PURE__*/isTrimmed());
|
|
@@ -6598,7 +6598,7 @@ export const Trimmed = /*#__PURE__*/String.check(/*#__PURE__*/isTrimmed());
|
|
|
6598
6598
|
* Encoding:
|
|
6599
6599
|
* - The trimmed string is encoded as is.
|
|
6600
6600
|
*
|
|
6601
|
-
* @category
|
|
6601
|
+
* @category string
|
|
6602
6602
|
* @since 3.10.0
|
|
6603
6603
|
*/
|
|
6604
6604
|
export const Trim = /*#__PURE__*/String.annotate({
|
|
@@ -6615,7 +6615,7 @@ export const Trim = /*#__PURE__*/String.annotate({
|
|
|
6615
6615
|
* Encoding:
|
|
6616
6616
|
* - A `string` is encoded as a base64-encoded string.
|
|
6617
6617
|
*
|
|
6618
|
-
* @category
|
|
6618
|
+
* @category string
|
|
6619
6619
|
* @since 3.10.0
|
|
6620
6620
|
*/
|
|
6621
6621
|
export const StringFromBase64 = /*#__PURE__*/String.annotate({
|
|
@@ -6632,7 +6632,7 @@ export const StringFromBase64 = /*#__PURE__*/String.annotate({
|
|
|
6632
6632
|
* Encoding:
|
|
6633
6633
|
* - A `string` is encoded as a base64 (URL) encoded string.
|
|
6634
6634
|
*
|
|
6635
|
-
* @category
|
|
6635
|
+
* @category string
|
|
6636
6636
|
* @since 3.10.0
|
|
6637
6637
|
*/
|
|
6638
6638
|
export const StringFromBase64Url = /*#__PURE__*/String.annotate({
|
|
@@ -6649,7 +6649,7 @@ export const StringFromBase64Url = /*#__PURE__*/String.annotate({
|
|
|
6649
6649
|
* Encoding:
|
|
6650
6650
|
* - A `string` is encoded as a hex string.
|
|
6651
6651
|
*
|
|
6652
|
-
* @category
|
|
6652
|
+
* @category string
|
|
6653
6653
|
* @since 3.10.0
|
|
6654
6654
|
*/
|
|
6655
6655
|
export const StringFromHex = /*#__PURE__*/String.annotate({
|
|
@@ -6685,7 +6685,7 @@ export const StringFromHex = /*#__PURE__*/String.annotate({
|
|
|
6685
6685
|
* // %7B%22maxItemPerPage%22%3A10%2C%22page%22%3A1%7D
|
|
6686
6686
|
* ```
|
|
6687
6687
|
*
|
|
6688
|
-
* @category
|
|
6688
|
+
* @category string
|
|
6689
6689
|
* @since 3.12.0
|
|
6690
6690
|
*/
|
|
6691
6691
|
export const StringFromUriComponent = /*#__PURE__*/String.annotate({
|
|
@@ -6707,7 +6707,7 @@ export const PropertyKey = /*#__PURE__*/Union([Finite, Symbol, String]);
|
|
|
6707
6707
|
* The result contains an `issues` array where each issue has a message and an
|
|
6708
6708
|
* optional path made of property keys or keyed path segments.
|
|
6709
6709
|
*
|
|
6710
|
-
* @category
|
|
6710
|
+
* @category Standard Schema
|
|
6711
6711
|
* @since 4.0.0
|
|
6712
6712
|
*/
|
|
6713
6713
|
export const StandardSchemaV1FailureResult = /*#__PURE__*/Struct({
|
|
@@ -6734,7 +6734,7 @@ export const StandardSchemaV1FailureResult = /*#__PURE__*/Struct({
|
|
|
6734
6734
|
* @see {@link Boolean} for validating values that are already booleans
|
|
6735
6735
|
* @see {@link Literals} for keeping bit literals instead of decoding them
|
|
6736
6736
|
*
|
|
6737
|
-
* @category
|
|
6737
|
+
* @category boolean
|
|
6738
6738
|
* @since 4.0.0
|
|
6739
6739
|
*/
|
|
6740
6740
|
export const BooleanFromBit = /*#__PURE__*/Literals([0, 1]).pipe(/*#__PURE__*/decodeTo(Boolean, /*#__PURE__*/Transformation.transform({
|
|
@@ -7608,7 +7608,7 @@ export function toFormatter(schema, options) {
|
|
|
7608
7608
|
* Use when the default structural equivalence derived by {@link toEquivalence}
|
|
7609
7609
|
* is not appropriate for a type.
|
|
7610
7610
|
*
|
|
7611
|
-
* @category
|
|
7611
|
+
* @category instances
|
|
7612
7612
|
* @since 4.0.0
|
|
7613
7613
|
*/
|
|
7614
7614
|
export function overrideToEquivalence(toEquivalence) {
|
|
@@ -7632,7 +7632,7 @@ export function overrideToEquivalence(toEquivalence) {
|
|
|
7632
7632
|
* console.log(eq({ id: 1, name: "Alice" }, { id: 2, name: "Alice" })) // false
|
|
7633
7633
|
* ```
|
|
7634
7634
|
*
|
|
7635
|
-
* @category
|
|
7635
|
+
* @category instances
|
|
7636
7636
|
* @since 4.0.0
|
|
7637
7637
|
*/
|
|
7638
7638
|
export function toEquivalence(schema) {
|
|
@@ -7661,7 +7661,7 @@ export function toRepresentation(schema) {
|
|
|
7661
7661
|
* properties and synthesized check descriptions; it does not change the draft
|
|
7662
7662
|
* target.
|
|
7663
7663
|
*
|
|
7664
|
-
* @category
|
|
7664
|
+
* @category converting
|
|
7665
7665
|
* @since 4.0.0
|
|
7666
7666
|
*/
|
|
7667
7667
|
export function toJsonSchemaDocument(schema, options) {
|
|
@@ -8059,7 +8059,7 @@ export function overrideToCodecIso(to, transformation) {
|
|
|
8059
8059
|
* {@link toCodecJson}), computes RFC 6902 JSON Patch operations between old
|
|
8060
8060
|
* and new values, and can apply patches back to the typed value.
|
|
8061
8061
|
*
|
|
8062
|
-
* @category
|
|
8062
|
+
* @category converting
|
|
8063
8063
|
* @since 4.0.0
|
|
8064
8064
|
*/
|
|
8065
8065
|
export function toDifferJsonPatch(schema) {
|
|
@@ -8102,7 +8102,7 @@ export function Tree(node) {
|
|
|
8102
8102
|
* console.log(result._tag) // "Some"
|
|
8103
8103
|
* ```
|
|
8104
8104
|
*
|
|
8105
|
-
* @category
|
|
8105
|
+
* @category schemas
|
|
8106
8106
|
* @since 4.0.0
|
|
8107
8107
|
*/
|
|
8108
8108
|
export const Json = /*#__PURE__*/make(AST.Json);
|
|
@@ -8110,7 +8110,7 @@ export const Json = /*#__PURE__*/make(AST.Json);
|
|
|
8110
8110
|
* Schema that accepts any mutable JSON-compatible value. See {@link Json} for
|
|
8111
8111
|
* the immutable variant.
|
|
8112
8112
|
*
|
|
8113
|
-
* @category
|
|
8113
|
+
* @category schemas
|
|
8114
8114
|
* @since 4.0.0
|
|
8115
8115
|
*/
|
|
8116
8116
|
export const MutableJson = /*#__PURE__*/make(AST.MutableJson);
|