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
|
@@ -90,7 +90,7 @@ export interface KeyValueStore {
|
|
|
90
90
|
* Primitive operations are required, while helpers such as `has`, `isEmpty`,
|
|
91
91
|
* and `modify` can be supplied to override the defaults.
|
|
92
92
|
*
|
|
93
|
-
* @category
|
|
93
|
+
* @category options
|
|
94
94
|
* @since 4.0.0
|
|
95
95
|
*/
|
|
96
96
|
export type MakeOptions = Partial<KeyValueStore> & {
|
|
@@ -123,7 +123,7 @@ export type MakeOptions = Partial<KeyValueStore> & {
|
|
|
123
123
|
* Implementation callbacks for adapting a string-only backing store into a
|
|
124
124
|
* `KeyValueStore`.
|
|
125
125
|
*
|
|
126
|
-
* @category
|
|
126
|
+
* @category options
|
|
127
127
|
* @since 4.0.0
|
|
128
128
|
*/
|
|
129
129
|
export type MakeStringOptions = Partial<Omit<KeyValueStore, "set">> & {
|
|
@@ -180,7 +180,7 @@ export declare class KeyValueStoreError extends KeyValueStoreError_base<{
|
|
|
180
180
|
* Use to access or provide the persistence store used for lightweight durable
|
|
181
181
|
* state.
|
|
182
182
|
*
|
|
183
|
-
* @category
|
|
183
|
+
* @category services
|
|
184
184
|
* @since 4.0.0
|
|
185
185
|
*/
|
|
186
186
|
export declare const KeyValueStore: Context.Service<KeyValueStore, KeyValueStore>;
|
|
@@ -61,7 +61,7 @@ export class KeyValueStoreError extends /*#__PURE__*/Data.TaggedError("KeyValueS
|
|
|
61
61
|
* Use to access or provide the persistence store used for lightweight durable
|
|
62
62
|
* state.
|
|
63
63
|
*
|
|
64
|
-
* @category
|
|
64
|
+
* @category services
|
|
65
65
|
* @since 4.0.0
|
|
66
66
|
*/
|
|
67
67
|
export const KeyValueStore = /*#__PURE__*/Context.Service("effect/persistence/KeyValueStore");
|
|
@@ -157,7 +157,7 @@ export declare const exitSchema: <A extends Schema.Top, E extends Schema.Top>(se
|
|
|
157
157
|
* Encodes an `Exit` for a persistable request using its success and error
|
|
158
158
|
* schemas.
|
|
159
159
|
*
|
|
160
|
-
* @category
|
|
160
|
+
* @category serialization
|
|
161
161
|
* @since 4.0.0
|
|
162
162
|
*/
|
|
163
163
|
export declare const serializeExit: <A extends Schema.Top, E extends Schema.Top>(self: Persistable<A, E>, exit: Exit.Exit<A["Type"], E["Type"]>) => Effect.Effect<unknown, Schema.SchemaError, A["EncodingServices"] | E["EncodingServices"]>;
|
|
@@ -165,7 +165,7 @@ export declare const serializeExit: <A extends Schema.Top, E extends Schema.Top>
|
|
|
165
165
|
* Decodes a persisted value into an `Exit` for a persistable request using its
|
|
166
166
|
* success and error schemas.
|
|
167
167
|
*
|
|
168
|
-
* @category
|
|
168
|
+
* @category serialization
|
|
169
169
|
* @since 4.0.0
|
|
170
170
|
*/
|
|
171
171
|
export declare const deserializeExit: <A extends Schema.Top, E extends Schema.Top>(self: Persistable<A, E>, encoded: unknown) => Effect.Effect<Exit.Exit<A["Type"], E["Type"]>, Schema.SchemaError, A["DecodingServices"] | E["DecodingServices"]>;
|
|
@@ -63,7 +63,7 @@ const exitSchemaCache = /*#__PURE__*/new WeakMap();
|
|
|
63
63
|
* Encodes an `Exit` for a persistable request using its success and error
|
|
64
64
|
* schemas.
|
|
65
65
|
*
|
|
66
|
-
* @category
|
|
66
|
+
* @category serialization
|
|
67
67
|
* @since 4.0.0
|
|
68
68
|
*/
|
|
69
69
|
export const serializeExit = (self, exit) => {
|
|
@@ -74,7 +74,7 @@ export const serializeExit = (self, exit) => {
|
|
|
74
74
|
* Decodes a persisted value into an `Exit` for a persistable request using its
|
|
75
75
|
* success and error schemas.
|
|
76
76
|
*
|
|
77
|
-
* @category
|
|
77
|
+
* @category serialization
|
|
78
78
|
* @since 4.0.0
|
|
79
79
|
*/
|
|
80
80
|
export const deserializeExit = (self, encoded) => {
|
|
@@ -73,7 +73,7 @@ declare const PersistedQueueFactory_base: Context.ServiceClass<PersistedQueueFac
|
|
|
73
73
|
/**
|
|
74
74
|
* Service for constructing named `PersistedQueue` instances from schemas.
|
|
75
75
|
*
|
|
76
|
-
* @category
|
|
76
|
+
* @category services
|
|
77
77
|
* @since 4.0.0
|
|
78
78
|
*/
|
|
79
79
|
export declare class PersistedQueueFactory extends PersistedQueueFactory_base {
|
|
@@ -98,7 +98,7 @@ export declare const make: <S extends Schema.Top>(options: {
|
|
|
98
98
|
* assigned an id when needed, and acknowledged or retried according to the
|
|
99
99
|
* `take` handler's exit.
|
|
100
100
|
*
|
|
101
|
-
* @category
|
|
101
|
+
* @category constructors
|
|
102
102
|
* @since 4.0.0
|
|
103
103
|
*/
|
|
104
104
|
export declare const makeFactory: Effect.Effect<{
|
|
@@ -110,7 +110,7 @@ export declare const makeFactory: Effect.Effect<{
|
|
|
110
110
|
/**
|
|
111
111
|
* Provides `PersistedQueueFactory` using the current `PersistedQueueStore`.
|
|
112
112
|
*
|
|
113
|
-
* @category
|
|
113
|
+
* @category layers
|
|
114
114
|
* @since 4.0.0
|
|
115
115
|
*/
|
|
116
116
|
export declare const layer: Layer.Layer<PersistedQueueFactory, never, PersistedQueueStore>;
|
|
@@ -189,7 +189,7 @@ export declare class PersistedQueueStore extends PersistedQueueStore_base {
|
|
|
189
189
|
* The store is process-local and volatile; failed takes are requeued until the
|
|
190
190
|
* configured maximum attempts is reached.
|
|
191
191
|
*
|
|
192
|
-
* @category
|
|
192
|
+
* @category store
|
|
193
193
|
* @since 4.0.0
|
|
194
194
|
*/
|
|
195
195
|
export declare const layerStoreMemory: Layer.Layer<PersistedQueueStore>;
|
|
@@ -202,7 +202,7 @@ export declare const layerStoreMemory: Layer.Layer<PersistedQueueStore>;
|
|
|
202
202
|
* refreshes locks while items are being processed, and moves exhausted items
|
|
203
203
|
* to a failed queue.
|
|
204
204
|
*
|
|
205
|
-
* @category
|
|
205
|
+
* @category store
|
|
206
206
|
* @since 4.0.0
|
|
207
207
|
*/
|
|
208
208
|
export declare const makeStoreRedis: (options?: {
|
|
@@ -229,7 +229,7 @@ export declare const makeStoreRedis: (options?: {
|
|
|
229
229
|
/**
|
|
230
230
|
* Provides a Redis-backed `PersistedQueueStore` using `makeStoreRedis`.
|
|
231
231
|
*
|
|
232
|
-
* @category
|
|
232
|
+
* @category store
|
|
233
233
|
* @since 4.0.0
|
|
234
234
|
*/
|
|
235
235
|
export declare const layerStoreRedis: (options?: {
|
|
@@ -247,7 +247,7 @@ export declare const layerStoreRedis: (options?: {
|
|
|
247
247
|
* per-worker locks, refreshes active locks while scoped takes are running, and
|
|
248
248
|
* retries or completes rows according to the processing exit.
|
|
249
249
|
*
|
|
250
|
-
* @category
|
|
250
|
+
* @category store
|
|
251
251
|
* @since 4.0.0
|
|
252
252
|
*/
|
|
253
253
|
export declare const makeStoreSql: (options?: {
|
|
@@ -259,7 +259,7 @@ export declare const makeStoreSql: (options?: {
|
|
|
259
259
|
/**
|
|
260
260
|
* Provides a SQL-backed `PersistedQueueStore` using `makeStoreSql`.
|
|
261
261
|
*
|
|
262
|
-
* @category
|
|
262
|
+
* @category store
|
|
263
263
|
* @since 4.0.0
|
|
264
264
|
*/
|
|
265
265
|
export declare const layerStoreSql: (options?: {
|
|
@@ -26,7 +26,7 @@ export const TypeId = "~effect/persistence/PersistedQueue";
|
|
|
26
26
|
/**
|
|
27
27
|
* Service for constructing named `PersistedQueue` instances from schemas.
|
|
28
28
|
*
|
|
29
|
-
* @category
|
|
29
|
+
* @category services
|
|
30
30
|
* @since 4.0.0
|
|
31
31
|
*/
|
|
32
32
|
export class PersistedQueueFactory extends /*#__PURE__*/Context.Service()("effect/persistence/PersistedQueue/PersistedQueueFactory") {}
|
|
@@ -47,7 +47,7 @@ export const make = options => PersistedQueueFactory.use(factory => factory.make
|
|
|
47
47
|
* assigned an id when needed, and acknowledged or retried according to the
|
|
48
48
|
* `take` handler's exit.
|
|
49
49
|
*
|
|
50
|
-
* @category
|
|
50
|
+
* @category constructors
|
|
51
51
|
* @since 4.0.0
|
|
52
52
|
*/
|
|
53
53
|
export const makeFactory = /*#__PURE__*/Effect.gen(function* () {
|
|
@@ -89,7 +89,7 @@ export const makeFactory = /*#__PURE__*/Effect.gen(function* () {
|
|
|
89
89
|
/**
|
|
90
90
|
* Provides `PersistedQueueFactory` using the current `PersistedQueueStore`.
|
|
91
91
|
*
|
|
92
|
-
* @category
|
|
92
|
+
* @category layers
|
|
93
93
|
* @since 4.0.0
|
|
94
94
|
*/
|
|
95
95
|
export const layer = /*#__PURE__*/Layer.effect(PersistedQueueFactory, makeFactory);
|
|
@@ -143,7 +143,7 @@ export class PersistedQueueStore extends /*#__PURE__*/Context.Service()("effect/
|
|
|
143
143
|
* The store is process-local and volatile; failed takes are requeued until the
|
|
144
144
|
* configured maximum attempts is reached.
|
|
145
145
|
*
|
|
146
|
-
* @category
|
|
146
|
+
* @category store
|
|
147
147
|
* @since 4.0.0
|
|
148
148
|
*/
|
|
149
149
|
export const layerStoreMemory = /*#__PURE__*/Layer.sync(PersistedQueueStore, () => {
|
|
@@ -208,7 +208,7 @@ export const layerStoreMemory = /*#__PURE__*/Layer.sync(PersistedQueueStore, ()
|
|
|
208
208
|
* refreshes locks while items are being processed, and moves exhausted items
|
|
209
209
|
* to a failed queue.
|
|
210
210
|
*
|
|
211
|
-
* @category
|
|
211
|
+
* @category store
|
|
212
212
|
* @since 4.0.0
|
|
213
213
|
*/
|
|
214
214
|
export const makeStoreRedis = /*#__PURE__*/Effect.fnUntraced(function* (options) {
|
|
@@ -452,7 +452,7 @@ end
|
|
|
452
452
|
/**
|
|
453
453
|
* Provides a Redis-backed `PersistedQueueStore` using `makeStoreRedis`.
|
|
454
454
|
*
|
|
455
|
-
* @category
|
|
455
|
+
* @category store
|
|
456
456
|
* @since 4.0.0
|
|
457
457
|
*/
|
|
458
458
|
export const layerStoreRedis = /*#__PURE__*/flow(makeStoreRedis, /*#__PURE__*/Layer.effect(PersistedQueueStore));
|
|
@@ -465,7 +465,7 @@ export const layerStoreRedis = /*#__PURE__*/flow(makeStoreRedis, /*#__PURE__*/La
|
|
|
465
465
|
* per-worker locks, refreshes active locks while scoped takes are running, and
|
|
466
466
|
* retries or completes rows according to the processing exit.
|
|
467
467
|
*
|
|
468
|
-
* @category
|
|
468
|
+
* @category store
|
|
469
469
|
* @since 4.0.0
|
|
470
470
|
*/
|
|
471
471
|
export const makeStoreSql = /*#__PURE__*/Effect.fnUntraced(function* (options) {
|
|
@@ -799,7 +799,7 @@ class QueueKey extends Data.Class {}
|
|
|
799
799
|
/**
|
|
800
800
|
* Provides a SQL-backed `PersistedQueueStore` using `makeStoreSql`.
|
|
801
801
|
*
|
|
802
|
-
* @category
|
|
802
|
+
* @category store
|
|
803
803
|
* @since 4.0.0
|
|
804
804
|
*/
|
|
805
805
|
export const layerStoreSql = /*#__PURE__*/flow(makeStoreSql, /*#__PURE__*/Layer.effect(PersistedQueueStore));
|
|
@@ -73,7 +73,7 @@ export interface RateLimiter {
|
|
|
73
73
|
* Use to access or provide rate-limit checks backed by fixed-window counters or
|
|
74
74
|
* token-bucket state.
|
|
75
75
|
*
|
|
76
|
-
* @category
|
|
76
|
+
* @category services
|
|
77
77
|
* @since 4.0.0
|
|
78
78
|
*/
|
|
79
79
|
export declare const RateLimiter: Context.Service<RateLimiter, RateLimiter>;
|
|
@@ -49,7 +49,7 @@ export const TypeId = "~effect/persistence/RateLimiter";
|
|
|
49
49
|
* Use to access or provide rate-limit checks backed by fixed-window counters or
|
|
50
50
|
* token-bucket state.
|
|
51
51
|
*
|
|
52
|
-
* @category
|
|
52
|
+
* @category services
|
|
53
53
|
* @since 4.0.0
|
|
54
54
|
*/
|
|
55
55
|
export const RateLimiter = /*#__PURE__*/Context.Service(TypeId);
|
|
@@ -77,7 +77,7 @@ export type PipeToOption = "stdin" | `fd${number}`;
|
|
|
77
77
|
* )
|
|
78
78
|
* ```
|
|
79
79
|
*
|
|
80
|
-
* @category
|
|
80
|
+
* @category options
|
|
81
81
|
* @since 4.0.0
|
|
82
82
|
*/
|
|
83
83
|
export interface PipeOptions {
|
|
@@ -133,7 +133,7 @@ export type Encoding = "ascii" | "utf8" | "utf-8" | "utf16le" | "utf-16le" | "uc
|
|
|
133
133
|
/**
|
|
134
134
|
* Options that can be used to control how a child process is terminated.
|
|
135
135
|
*
|
|
136
|
-
* @category
|
|
136
|
+
* @category options
|
|
137
137
|
* @since 4.0.0
|
|
138
138
|
*/
|
|
139
139
|
export interface KillOptions {
|
|
@@ -258,7 +258,7 @@ export type AdditionalFdConfig = {
|
|
|
258
258
|
/**
|
|
259
259
|
* Options for command execution.
|
|
260
260
|
*
|
|
261
|
-
* @category
|
|
261
|
+
* @category options
|
|
262
262
|
* @since 4.0.0
|
|
263
263
|
*/
|
|
264
264
|
export interface CommandOptions extends KillOptions {
|
|
@@ -893,14 +893,14 @@ export declare const setEnv: {
|
|
|
893
893
|
* Parses an fd name like "fd3" to its numeric index.
|
|
894
894
|
* Returns undefined if the name is invalid.
|
|
895
895
|
*
|
|
896
|
-
* @category
|
|
896
|
+
* @category converting
|
|
897
897
|
* @since 4.0.0
|
|
898
898
|
*/
|
|
899
899
|
export declare const parseFdName: (name: string) => number | undefined;
|
|
900
900
|
/**
|
|
901
901
|
* Create an fd name from its numeric index.
|
|
902
902
|
*
|
|
903
|
-
* @category
|
|
903
|
+
* @category converting
|
|
904
904
|
* @since 4.0.0
|
|
905
905
|
*/
|
|
906
906
|
export declare const fdName: (fd: number) => string;
|
|
@@ -323,7 +323,7 @@ const isTemplateString = u => Array.isArray(u) && "raw" in u && Array.isArray(u.
|
|
|
323
323
|
* Parses an fd name like "fd3" to its numeric index.
|
|
324
324
|
* Returns undefined if the name is invalid.
|
|
325
325
|
*
|
|
326
|
-
* @category
|
|
326
|
+
* @category converting
|
|
327
327
|
* @since 4.0.0
|
|
328
328
|
*/
|
|
329
329
|
export const parseFdName = name => {
|
|
@@ -335,7 +335,7 @@ export const parseFdName = name => {
|
|
|
335
335
|
/**
|
|
336
336
|
* Create an fd name from its numeric index.
|
|
337
337
|
*
|
|
338
|
-
* @category
|
|
338
|
+
* @category converting
|
|
339
339
|
* @since 4.0.0
|
|
340
340
|
*/
|
|
341
341
|
export const fdName = fd => `fd${fd}`;
|
|
@@ -529,14 +529,14 @@ export declare const all: <const Arg extends Iterable<any> | Record<string, any>
|
|
|
529
529
|
/**
|
|
530
530
|
* Creates a typed builder for rendering an `AsyncResult` by handling waiting, initial, success, error, defect, interrupt, and failure cases.
|
|
531
531
|
*
|
|
532
|
-
* @category
|
|
532
|
+
* @category constructors
|
|
533
533
|
* @since 4.0.0
|
|
534
534
|
*/
|
|
535
535
|
export declare const builder: <A extends AsyncResult<any, any>>(self: A) => Builder<never, A extends Success<infer _A, infer _E> ? _A : never, A extends Failure<infer _A, infer _E_1> ? _E_1 : never, A extends Initial<infer _A, infer _E_2> ? true : never, A extends Failure<infer _A, infer _E_3> ? Defect | Interrupt : never>;
|
|
536
536
|
/**
|
|
537
537
|
* Type marker used by `Builder` to track whether defect failures still need to be handled.
|
|
538
538
|
*
|
|
539
|
-
* @category
|
|
539
|
+
* @category models
|
|
540
540
|
* @since 4.0.0
|
|
541
541
|
*/
|
|
542
542
|
export interface Defect {
|
|
@@ -545,7 +545,7 @@ export interface Defect {
|
|
|
545
545
|
/**
|
|
546
546
|
* Type marker used by `Builder` to track whether interrupt failures still need to be handled.
|
|
547
547
|
*
|
|
548
|
-
* @category
|
|
548
|
+
* @category models
|
|
549
549
|
* @since 4.0.0
|
|
550
550
|
*/
|
|
551
551
|
export interface Interrupt {
|
|
@@ -554,7 +554,7 @@ export interface Interrupt {
|
|
|
554
554
|
/**
|
|
555
555
|
* Fluent renderer for `AsyncResult` values that tracks unhandled cases at the type level and exposes `exhaustive` only after all possible cases are handled.
|
|
556
556
|
*
|
|
557
|
-
* @category
|
|
557
|
+
* @category models
|
|
558
558
|
* @since 4.0.0
|
|
559
559
|
*/
|
|
560
560
|
export type Builder<Out, A, E, I, F> = Pipeable & {
|
|
@@ -490,7 +490,7 @@ export const all = results => {
|
|
|
490
490
|
/**
|
|
491
491
|
* Creates a typed builder for rendering an `AsyncResult` by handling waiting, initial, success, error, defect, interrupt, and failure cases.
|
|
492
492
|
*
|
|
493
|
-
* @category
|
|
493
|
+
* @category constructors
|
|
494
494
|
* @since 4.0.0
|
|
495
495
|
*/
|
|
496
496
|
export const builder = self => new BuilderImpl(self);
|
|
@@ -1193,7 +1193,7 @@ export declare const kvs: <S extends Schema.Codec<any, any>, const Mode extends
|
|
|
1193
1193
|
*
|
|
1194
1194
|
* If you pass a schema, it has to be synchronous and have no context.
|
|
1195
1195
|
*
|
|
1196
|
-
* @category
|
|
1196
|
+
* @category search params
|
|
1197
1197
|
* @since 4.0.0
|
|
1198
1198
|
*/
|
|
1199
1199
|
export declare const searchParam: <S extends Schema.Codec<any, string> = never>(name: string, options?: {
|
|
@@ -1238,7 +1238,7 @@ export const kvs = options => {
|
|
|
1238
1238
|
*
|
|
1239
1239
|
* If you pass a schema, it has to be synchronous and have no context.
|
|
1240
1240
|
*
|
|
1241
|
-
* @category
|
|
1241
|
+
* @category search params
|
|
1242
1242
|
* @since 4.0.0
|
|
1243
1243
|
*/
|
|
1244
1244
|
export const searchParam = (name, options) => {
|
|
@@ -182,7 +182,7 @@ export declare const make: (options?: {
|
|
|
182
182
|
* Use to access or provide the registry that stores atom values,
|
|
183
183
|
* dependencies, subscriptions, and disposal state for a reactive lifetime.
|
|
184
184
|
*
|
|
185
|
-
* @category
|
|
185
|
+
* @category services
|
|
186
186
|
* @since 4.0.0
|
|
187
187
|
*/
|
|
188
188
|
export declare const AtomRegistry: Context.Service<AtomRegistry, AtomRegistry>;
|
|
@@ -124,7 +124,7 @@ export const make = options => new RegistryImpl(options?.initialValues, options?
|
|
|
124
124
|
* Use to access or provide the registry that stores atom values,
|
|
125
125
|
* dependencies, subscriptions, and disposal state for a reactive lifetime.
|
|
126
126
|
*
|
|
127
|
-
* @category
|
|
127
|
+
* @category services
|
|
128
128
|
* @since 4.0.0
|
|
129
129
|
*/
|
|
130
130
|
export const AtomRegistry = /*#__PURE__*/Context.Service(TypeId);
|
|
@@ -70,7 +70,7 @@ declare const Reactivity_base: Context.ServiceClass<Reactivity, "effect/reactivi
|
|
|
70
70
|
* mutations so successful effects invalidate keys, and turn query effects into
|
|
71
71
|
* queues or streams that rerun when keys are invalidated.
|
|
72
72
|
*
|
|
73
|
-
* @category
|
|
73
|
+
* @category services
|
|
74
74
|
* @since 4.0.0
|
|
75
75
|
*/
|
|
76
76
|
export declare class Reactivity extends Reactivity_base {
|
|
@@ -63,7 +63,7 @@ import * as Stream from "../../Stream.js";
|
|
|
63
63
|
* mutations so successful effects invalidate keys, and turn query effects into
|
|
64
64
|
* queues or streams that rerun when keys are invalidated.
|
|
65
65
|
*
|
|
66
|
-
* @category
|
|
66
|
+
* @category services
|
|
67
67
|
* @since 4.0.0
|
|
68
68
|
*/
|
|
69
69
|
export class Reactivity extends /*#__PURE__*/Context.Service()("effect/reactivity/Reactivity") {}
|
|
@@ -546,7 +546,7 @@ export declare const make: <const Tag extends string, Payload extends Schema.Top
|
|
|
546
546
|
* })
|
|
547
547
|
* ```
|
|
548
548
|
*
|
|
549
|
-
* @category
|
|
549
|
+
* @category constructors
|
|
550
550
|
* @since 4.0.0
|
|
551
551
|
*/
|
|
552
552
|
export declare const custom: <Def extends Custom>(f: (options: Custom.OutDefault) => (Def & Custom.OutDefault)["out"]) => <const Tag extends string, Payload extends Schema.Top | Schema.Struct.Fields = Schema.Void, Success extends Schema.Top = Schema.Void, Error extends Schema.Top = Schema.Never, const Stream extends boolean = false, Out extends Custom.OutDefault = Custom.Kind<Def, Success, Error>>(tag: Tag, options?: {
|
|
@@ -565,7 +565,7 @@ export declare const custom: <Def extends Custom>(f: (options: Custom.OutDefault
|
|
|
565
565
|
* A custom constructor receives the original success, error, and defect schemas
|
|
566
566
|
* and returns transformed output schemas through `out`.
|
|
567
567
|
*
|
|
568
|
-
* @category
|
|
568
|
+
* @category constructors
|
|
569
569
|
* @since 4.0.0
|
|
570
570
|
*/
|
|
571
571
|
export interface Custom {
|
|
@@ -583,7 +583,7 @@ export declare namespace Custom {
|
|
|
583
583
|
/**
|
|
584
584
|
* The transformed schemas produced by a custom RPC constructor.
|
|
585
585
|
*
|
|
586
|
-
* @category
|
|
586
|
+
* @category constructors
|
|
587
587
|
* @since 4.0.0
|
|
588
588
|
*/
|
|
589
589
|
interface Out<Success extends Schema.Top, Error extends Schema.Top> {
|
|
@@ -595,7 +595,7 @@ export declare namespace Custom {
|
|
|
595
595
|
* The default custom-constructor output shape for arbitrary success and error
|
|
596
596
|
* schemas.
|
|
597
597
|
*
|
|
598
|
-
* @category
|
|
598
|
+
* @category constructors
|
|
599
599
|
* @since 4.0.0
|
|
600
600
|
*/
|
|
601
601
|
type OutDefault = Out<Schema.Top, Schema.Top>;
|
|
@@ -603,7 +603,7 @@ export declare namespace Custom {
|
|
|
603
603
|
* Applies a custom constructor definition to concrete success and error
|
|
604
604
|
* schemas and returns its transformed output schema type.
|
|
605
605
|
*
|
|
606
|
-
* @category
|
|
606
|
+
* @category constructors
|
|
607
607
|
* @since 4.0.0
|
|
608
608
|
*/
|
|
609
609
|
type Kind<Def extends Custom, Success extends Schema.Top, Error extends Schema.Top> = (Def & {
|
package/dist/unstable/rpc/Rpc.js
CHANGED
|
@@ -256,7 +256,7 @@ export interface AnyServiceWithProps extends Context.Key<any, RpcMiddleware<any,
|
|
|
256
256
|
* requirements, provided services, error schema, and client-side requirement
|
|
257
257
|
* metadata.
|
|
258
258
|
*
|
|
259
|
-
* @category
|
|
259
|
+
* @category constructors
|
|
260
260
|
* @since 4.0.0
|
|
261
261
|
*/
|
|
262
262
|
export declare const Service: <Self, Config extends {
|
|
@@ -54,7 +54,7 @@ export const TypeId = "~effect/rpc/RpcMiddleware";
|
|
|
54
54
|
* requirements, provided services, error schema, and client-side requirement
|
|
55
55
|
* metadata.
|
|
56
56
|
*
|
|
57
|
-
* @category
|
|
57
|
+
* @category constructors
|
|
58
58
|
* @since 4.0.0
|
|
59
59
|
*/
|
|
60
60
|
export const Service = () => (id, options) => {
|
|
@@ -43,7 +43,7 @@ declare const StreamSchemaTypeId = "~effect/rpc/RpcSchema/StreamSchema";
|
|
|
43
43
|
* Returns `true` when a schema is an RPC stream schema created by
|
|
44
44
|
* `RpcSchema.Stream`.
|
|
45
45
|
*
|
|
46
|
-
* @category
|
|
46
|
+
* @category streams
|
|
47
47
|
* @since 4.0.0
|
|
48
48
|
*/
|
|
49
49
|
export declare function isStreamSchema(schema: Schema.Top): schema is Stream<Schema.Top, Schema.Top>;
|
|
@@ -51,7 +51,7 @@ export declare function isStreamSchema(schema: Schema.Top): schema is Stream<Sch
|
|
|
51
51
|
* A schema marker for RPC streaming responses, storing the success element
|
|
52
52
|
* schema and stream error schema used for encoding and decoding stream chunks.
|
|
53
53
|
*
|
|
54
|
-
* @category
|
|
54
|
+
* @category streams
|
|
55
55
|
* @since 4.0.0
|
|
56
56
|
*/
|
|
57
57
|
export interface Stream<A extends Schema.Top, E extends Schema.Top> extends Schema.Bottom<Stream_.Stream<A["Type"], E["Type"]>, Stream_.Stream<A["Encoded"], E["Encoded"]>, A["DecodingServices"] | E["DecodingServices"], A["EncodingServices"] | E["EncodingServices"], AST.Declaration, Stream<A, E>> {
|
|
@@ -64,7 +64,7 @@ export interface Stream<A extends Schema.Top, E extends Schema.Top> extends Sche
|
|
|
64
64
|
* Creates an RPC stream schema from a stream element success schema and stream
|
|
65
65
|
* error schema.
|
|
66
66
|
*
|
|
67
|
-
* @category
|
|
67
|
+
* @category streams
|
|
68
68
|
* @since 4.0.0
|
|
69
69
|
*/
|
|
70
70
|
export declare function Stream<A extends Schema.Top, E extends Schema.Top>(success: A, error: E): Stream<A, E>;
|
|
@@ -45,7 +45,7 @@ const StreamSchemaTypeId = "~effect/rpc/RpcSchema/StreamSchema";
|
|
|
45
45
|
* Returns `true` when a schema is an RPC stream schema created by
|
|
46
46
|
* `RpcSchema.Stream`.
|
|
47
47
|
*
|
|
48
|
-
* @category
|
|
48
|
+
* @category streams
|
|
49
49
|
* @since 4.0.0
|
|
50
50
|
*/
|
|
51
51
|
export function isStreamSchema(schema) {
|
|
@@ -63,7 +63,7 @@ const schema = /*#__PURE__*/Schema.declare(Stream_.isStream);
|
|
|
63
63
|
* Creates an RPC stream schema from a stream element success schema and stream
|
|
64
64
|
* error schema.
|
|
65
65
|
*
|
|
66
|
-
* @category
|
|
66
|
+
* @category streams
|
|
67
67
|
* @since 4.0.0
|
|
68
68
|
*/
|
|
69
69
|
export function Stream(success, error) {
|
|
@@ -533,7 +533,7 @@ export declare const DateTimeUpdateFromNumber: DateTimeUpdateFromNumber;
|
|
|
533
533
|
* Variant field type for a JSON value stored as text in database variants and
|
|
534
534
|
* exposed through the supplied schema in JSON variants.
|
|
535
535
|
*
|
|
536
|
-
* @category
|
|
536
|
+
* @category models
|
|
537
537
|
* @since 4.0.0
|
|
538
538
|
*/
|
|
539
539
|
export interface JsonFromString<S extends Schema.Top> extends VariantSchema.Field<{
|
|
@@ -552,7 +552,7 @@ export interface JsonFromString<S extends Schema.Top> extends VariantSchema.Fiel
|
|
|
552
552
|
*
|
|
553
553
|
* The "json" variants will use the object schema directly.
|
|
554
554
|
*
|
|
555
|
-
* @category
|
|
555
|
+
* @category constructors
|
|
556
556
|
* @since 4.0.0
|
|
557
557
|
*/
|
|
558
558
|
export declare const JsonFromString: <S extends Schema.Top>(schema: S) => JsonFromString<S>;
|
|
@@ -393,7 +393,7 @@ export const DateTimeUpdateFromNumber = /*#__PURE__*/Field({
|
|
|
393
393
|
*
|
|
394
394
|
* The "json" variants will use the object schema directly.
|
|
395
395
|
*
|
|
396
|
-
* @category
|
|
396
|
+
* @category constructors
|
|
397
397
|
* @since 4.0.0
|
|
398
398
|
*/
|
|
399
399
|
export const JsonFromString = schema => {
|
|
@@ -55,7 +55,7 @@ export declare const isSocket: (u: unknown) => u is Socket;
|
|
|
55
55
|
* Use to access or provide the socket implementation used by programs that
|
|
56
56
|
* read and write frames through the Effect environment.
|
|
57
57
|
*
|
|
58
|
-
* @category
|
|
58
|
+
* @category services
|
|
59
59
|
* @since 4.0.0
|
|
60
60
|
*/
|
|
61
61
|
export declare const Socket: Context.Service<Socket, Socket>;
|
|
@@ -341,7 +341,7 @@ declare const WebSocket_base: Context.ServiceClass<WebSocket, "~effect/socket/So
|
|
|
341
341
|
* Context service for the active `WebSocket` instance available while a
|
|
342
342
|
* WebSocket-backed socket run is handling events.
|
|
343
343
|
*
|
|
344
|
-
* @category
|
|
344
|
+
* @category services
|
|
345
345
|
* @since 4.0.0
|
|
346
346
|
*/
|
|
347
347
|
export declare class WebSocket extends WebSocket_base {
|
|
@@ -351,7 +351,7 @@ declare const WebSocketConstructor_base: Context.ServiceClass<WebSocketConstruct
|
|
|
351
351
|
* Context service for constructing `WebSocket` instances from a URL and
|
|
352
352
|
* optional protocols.
|
|
353
353
|
*
|
|
354
|
-
* @category
|
|
354
|
+
* @category services
|
|
355
355
|
* @since 4.0.0
|
|
356
356
|
*/
|
|
357
357
|
export declare class WebSocketConstructor extends WebSocketConstructor_base {
|
|
@@ -35,7 +35,7 @@ export const isSocket = u => Predicate.hasProperty(u, TypeId);
|
|
|
35
35
|
* Use to access or provide the socket implementation used by programs that
|
|
36
36
|
* read and write frames through the Effect environment.
|
|
37
37
|
*
|
|
38
|
-
* @category
|
|
38
|
+
* @category services
|
|
39
39
|
* @since 4.0.0
|
|
40
40
|
*/
|
|
41
41
|
export const Socket = /*#__PURE__*/Context.Service("effect/socket/Socket");
|
|
@@ -318,7 +318,7 @@ export const defaultCloseCodeIsError = _code => true;
|
|
|
318
318
|
* Context service for the active `WebSocket` instance available while a
|
|
319
319
|
* WebSocket-backed socket run is handling events.
|
|
320
320
|
*
|
|
321
|
-
* @category
|
|
321
|
+
* @category services
|
|
322
322
|
* @since 4.0.0
|
|
323
323
|
*/
|
|
324
324
|
export class WebSocket extends /*#__PURE__*/Context.Service()("~effect/socket/Socket/WebSocket") {}
|
|
@@ -326,7 +326,7 @@ export class WebSocket extends /*#__PURE__*/Context.Service()("~effect/socket/So
|
|
|
326
326
|
* Context service for constructing `WebSocket` instances from a URL and
|
|
327
327
|
* optional protocols.
|
|
328
328
|
*
|
|
329
|
-
* @category
|
|
329
|
+
* @category services
|
|
330
330
|
* @since 4.0.0
|
|
331
331
|
*/
|
|
332
332
|
export class WebSocketConstructor extends /*#__PURE__*/Context.Service()("@effect/platform/Socket/WebSocketConstructor") {}
|
|
@@ -34,7 +34,7 @@ declare const SocketServer_base: Context.ServiceClass<SocketServer, "@effect/pla
|
|
|
34
34
|
* Context service for a socket server, exposing its bound address and a run
|
|
35
35
|
* loop that handles each accepted `Socket`.
|
|
36
36
|
*
|
|
37
|
-
* @category
|
|
37
|
+
* @category services
|
|
38
38
|
* @since 4.0.0
|
|
39
39
|
*/
|
|
40
40
|
export declare class SocketServer extends SocketServer_base {
|
|
@@ -29,7 +29,7 @@ import * as Data from "../../Data.js";
|
|
|
29
29
|
* Context service for a socket server, exposing its bound address and a run
|
|
30
30
|
* loop that handles each accepted `Socket`.
|
|
31
31
|
*
|
|
32
|
-
* @category
|
|
32
|
+
* @category services
|
|
33
33
|
* @since 4.0.0
|
|
34
34
|
*/
|
|
35
35
|
export class SocketServer extends /*#__PURE__*/Context.Service()("@effect/platform/SocketServer") {}
|
|
@@ -6,7 +6,7 @@ import type { SqlError } from "./SqlError.ts";
|
|
|
6
6
|
* Options for running SQL migrations, including the migration loader, optional
|
|
7
7
|
* schema dump directory, and migrations table name.
|
|
8
8
|
*
|
|
9
|
-
* @category
|
|
9
|
+
* @category options
|
|
10
10
|
* @since 4.0.0
|
|
11
11
|
*/
|
|
12
12
|
export interface MigratorOptions<R = never> {
|