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
|
@@ -211,21 +211,21 @@ export declare const mutate: {
|
|
|
211
211
|
/**
|
|
212
212
|
* Updates the hash fragment of the URL.
|
|
213
213
|
*
|
|
214
|
-
* @category
|
|
214
|
+
* @category setters
|
|
215
215
|
* @since 4.0.0
|
|
216
216
|
*/
|
|
217
217
|
export declare const setHash: {
|
|
218
218
|
/**
|
|
219
219
|
* Updates the hash fragment of the URL.
|
|
220
220
|
*
|
|
221
|
-
* @category
|
|
221
|
+
* @category setters
|
|
222
222
|
* @since 4.0.0
|
|
223
223
|
*/
|
|
224
224
|
(hash: string): (url: URL) => URL;
|
|
225
225
|
/**
|
|
226
226
|
* Updates the hash fragment of the URL.
|
|
227
227
|
*
|
|
228
|
-
* @category
|
|
228
|
+
* @category setters
|
|
229
229
|
* @since 4.0.0
|
|
230
230
|
*/
|
|
231
231
|
(url: URL, hash: string): URL;
|
|
@@ -233,21 +233,21 @@ export declare const setHash: {
|
|
|
233
233
|
/**
|
|
234
234
|
* Updates the host (domain and port) of the URL.
|
|
235
235
|
*
|
|
236
|
-
* @category
|
|
236
|
+
* @category setters
|
|
237
237
|
* @since 4.0.0
|
|
238
238
|
*/
|
|
239
239
|
export declare const setHost: {
|
|
240
240
|
/**
|
|
241
241
|
* Updates the host (domain and port) of the URL.
|
|
242
242
|
*
|
|
243
|
-
* @category
|
|
243
|
+
* @category setters
|
|
244
244
|
* @since 4.0.0
|
|
245
245
|
*/
|
|
246
246
|
(host: string): (url: URL) => URL;
|
|
247
247
|
/**
|
|
248
248
|
* Updates the host (domain and port) of the URL.
|
|
249
249
|
*
|
|
250
|
-
* @category
|
|
250
|
+
* @category setters
|
|
251
251
|
* @since 4.0.0
|
|
252
252
|
*/
|
|
253
253
|
(url: URL, host: string): URL;
|
|
@@ -255,21 +255,21 @@ export declare const setHost: {
|
|
|
255
255
|
/**
|
|
256
256
|
* Updates the domain of the URL without modifying the port.
|
|
257
257
|
*
|
|
258
|
-
* @category
|
|
258
|
+
* @category setters
|
|
259
259
|
* @since 4.0.0
|
|
260
260
|
*/
|
|
261
261
|
export declare const setHostname: {
|
|
262
262
|
/**
|
|
263
263
|
* Updates the domain of the URL without modifying the port.
|
|
264
264
|
*
|
|
265
|
-
* @category
|
|
265
|
+
* @category setters
|
|
266
266
|
* @since 4.0.0
|
|
267
267
|
*/
|
|
268
268
|
(hostname: string): (url: URL) => URL;
|
|
269
269
|
/**
|
|
270
270
|
* Updates the domain of the URL without modifying the port.
|
|
271
271
|
*
|
|
272
|
-
* @category
|
|
272
|
+
* @category setters
|
|
273
273
|
* @since 4.0.0
|
|
274
274
|
*/
|
|
275
275
|
(url: URL, hostname: string): URL;
|
|
@@ -277,21 +277,21 @@ export declare const setHostname: {
|
|
|
277
277
|
/**
|
|
278
278
|
* Replaces the entire URL string.
|
|
279
279
|
*
|
|
280
|
-
* @category
|
|
280
|
+
* @category setters
|
|
281
281
|
* @since 4.0.0
|
|
282
282
|
*/
|
|
283
283
|
export declare const setHref: {
|
|
284
284
|
/**
|
|
285
285
|
* Replaces the entire URL string.
|
|
286
286
|
*
|
|
287
|
-
* @category
|
|
287
|
+
* @category setters
|
|
288
288
|
* @since 4.0.0
|
|
289
289
|
*/
|
|
290
290
|
(href: string): (url: URL) => URL;
|
|
291
291
|
/**
|
|
292
292
|
* Replaces the entire URL string.
|
|
293
293
|
*
|
|
294
|
-
* @category
|
|
294
|
+
* @category setters
|
|
295
295
|
* @since 4.0.0
|
|
296
296
|
*/
|
|
297
297
|
(url: URL, href: string): URL;
|
|
@@ -299,21 +299,21 @@ export declare const setHref: {
|
|
|
299
299
|
/**
|
|
300
300
|
* Updates the password used for authentication.
|
|
301
301
|
*
|
|
302
|
-
* @category
|
|
302
|
+
* @category setters
|
|
303
303
|
* @since 4.0.0
|
|
304
304
|
*/
|
|
305
305
|
export declare const setPassword: {
|
|
306
306
|
/**
|
|
307
307
|
* Updates the password used for authentication.
|
|
308
308
|
*
|
|
309
|
-
* @category
|
|
309
|
+
* @category setters
|
|
310
310
|
* @since 4.0.0
|
|
311
311
|
*/
|
|
312
312
|
(password: string | Redacted.Redacted): (url: URL) => URL;
|
|
313
313
|
/**
|
|
314
314
|
* Updates the password used for authentication.
|
|
315
315
|
*
|
|
316
|
-
* @category
|
|
316
|
+
* @category setters
|
|
317
317
|
* @since 4.0.0
|
|
318
318
|
*/
|
|
319
319
|
(url: URL, password: string | Redacted.Redacted): URL;
|
|
@@ -321,21 +321,21 @@ export declare const setPassword: {
|
|
|
321
321
|
/**
|
|
322
322
|
* Updates the path of the URL.
|
|
323
323
|
*
|
|
324
|
-
* @category
|
|
324
|
+
* @category setters
|
|
325
325
|
* @since 4.0.0
|
|
326
326
|
*/
|
|
327
327
|
export declare const setPathname: {
|
|
328
328
|
/**
|
|
329
329
|
* Updates the path of the URL.
|
|
330
330
|
*
|
|
331
|
-
* @category
|
|
331
|
+
* @category setters
|
|
332
332
|
* @since 4.0.0
|
|
333
333
|
*/
|
|
334
334
|
(pathname: string): (url: URL) => URL;
|
|
335
335
|
/**
|
|
336
336
|
* Updates the path of the URL.
|
|
337
337
|
*
|
|
338
|
-
* @category
|
|
338
|
+
* @category setters
|
|
339
339
|
* @since 4.0.0
|
|
340
340
|
*/
|
|
341
341
|
(url: URL, pathname: string): URL;
|
|
@@ -343,21 +343,21 @@ export declare const setPathname: {
|
|
|
343
343
|
/**
|
|
344
344
|
* Updates the port of the URL.
|
|
345
345
|
*
|
|
346
|
-
* @category
|
|
346
|
+
* @category setters
|
|
347
347
|
* @since 4.0.0
|
|
348
348
|
*/
|
|
349
349
|
export declare const setPort: {
|
|
350
350
|
/**
|
|
351
351
|
* Updates the port of the URL.
|
|
352
352
|
*
|
|
353
|
-
* @category
|
|
353
|
+
* @category setters
|
|
354
354
|
* @since 4.0.0
|
|
355
355
|
*/
|
|
356
356
|
(port: string | number): (url: URL) => URL;
|
|
357
357
|
/**
|
|
358
358
|
* Updates the port of the URL.
|
|
359
359
|
*
|
|
360
|
-
* @category
|
|
360
|
+
* @category setters
|
|
361
361
|
* @since 4.0.0
|
|
362
362
|
*/
|
|
363
363
|
(url: URL, port: string | number): URL;
|
|
@@ -365,21 +365,21 @@ export declare const setPort: {
|
|
|
365
365
|
/**
|
|
366
366
|
* Updates the protocol (e.g., `http`, `https`).
|
|
367
367
|
*
|
|
368
|
-
* @category
|
|
368
|
+
* @category setters
|
|
369
369
|
* @since 4.0.0
|
|
370
370
|
*/
|
|
371
371
|
export declare const setProtocol: {
|
|
372
372
|
/**
|
|
373
373
|
* Updates the protocol (e.g., `http`, `https`).
|
|
374
374
|
*
|
|
375
|
-
* @category
|
|
375
|
+
* @category setters
|
|
376
376
|
* @since 4.0.0
|
|
377
377
|
*/
|
|
378
378
|
(protocol: string): (url: URL) => URL;
|
|
379
379
|
/**
|
|
380
380
|
* Updates the protocol (e.g., `http`, `https`).
|
|
381
381
|
*
|
|
382
|
-
* @category
|
|
382
|
+
* @category setters
|
|
383
383
|
* @since 4.0.0
|
|
384
384
|
*/
|
|
385
385
|
(url: URL, protocol: string): URL;
|
|
@@ -387,21 +387,21 @@ export declare const setProtocol: {
|
|
|
387
387
|
/**
|
|
388
388
|
* Updates the query string of the URL.
|
|
389
389
|
*
|
|
390
|
-
* @category
|
|
390
|
+
* @category setters
|
|
391
391
|
* @since 4.0.0
|
|
392
392
|
*/
|
|
393
393
|
export declare const setSearch: {
|
|
394
394
|
/**
|
|
395
395
|
* Updates the query string of the URL.
|
|
396
396
|
*
|
|
397
|
-
* @category
|
|
397
|
+
* @category setters
|
|
398
398
|
* @since 4.0.0
|
|
399
399
|
*/
|
|
400
400
|
(search: string): (url: URL) => URL;
|
|
401
401
|
/**
|
|
402
402
|
* Updates the query string of the URL.
|
|
403
403
|
*
|
|
404
|
-
* @category
|
|
404
|
+
* @category setters
|
|
405
405
|
* @since 4.0.0
|
|
406
406
|
*/
|
|
407
407
|
(url: URL, search: string): URL;
|
|
@@ -409,21 +409,21 @@ export declare const setSearch: {
|
|
|
409
409
|
/**
|
|
410
410
|
* Updates the username used for authentication.
|
|
411
411
|
*
|
|
412
|
-
* @category
|
|
412
|
+
* @category setters
|
|
413
413
|
* @since 4.0.0
|
|
414
414
|
*/
|
|
415
415
|
export declare const setUsername: {
|
|
416
416
|
/**
|
|
417
417
|
* Updates the username used for authentication.
|
|
418
418
|
*
|
|
419
|
-
* @category
|
|
419
|
+
* @category setters
|
|
420
420
|
* @since 4.0.0
|
|
421
421
|
*/
|
|
422
422
|
(username: string): (url: URL) => URL;
|
|
423
423
|
/**
|
|
424
424
|
* Updates the username used for authentication.
|
|
425
425
|
*
|
|
426
|
-
* @category
|
|
426
|
+
* @category setters
|
|
427
427
|
* @since 4.0.0
|
|
428
428
|
*/
|
|
429
429
|
(url: URL, username: string): URL;
|
|
@@ -454,7 +454,7 @@ export declare const setUsername: {
|
|
|
454
454
|
* // Output: https://example.com/?key=value
|
|
455
455
|
* ```
|
|
456
456
|
*
|
|
457
|
-
* @category
|
|
457
|
+
* @category setters
|
|
458
458
|
* @since 4.0.0
|
|
459
459
|
*/
|
|
460
460
|
export declare const setUrlParams: {
|
|
@@ -484,7 +484,7 @@ export declare const setUrlParams: {
|
|
|
484
484
|
* // Output: https://example.com/?key=value
|
|
485
485
|
* ```
|
|
486
486
|
*
|
|
487
|
-
* @category
|
|
487
|
+
* @category setters
|
|
488
488
|
* @since 4.0.0
|
|
489
489
|
*/
|
|
490
490
|
(urlParams: UrlParams.UrlParams): (url: URL) => URL;
|
|
@@ -514,7 +514,7 @@ export declare const setUrlParams: {
|
|
|
514
514
|
* // Output: https://example.com/?key=value
|
|
515
515
|
* ```
|
|
516
516
|
*
|
|
517
|
-
* @category
|
|
517
|
+
* @category setters
|
|
518
518
|
* @since 4.0.0
|
|
519
519
|
*/
|
|
520
520
|
(url: URL, urlParams: UrlParams.UrlParams): URL;
|
|
@@ -124,35 +124,35 @@ const immutableURLSetter = property => dual(2, (url, value) => mutate(url, url =
|
|
|
124
124
|
/**
|
|
125
125
|
* Updates the hash fragment of the URL.
|
|
126
126
|
*
|
|
127
|
-
* @category
|
|
127
|
+
* @category setters
|
|
128
128
|
* @since 4.0.0
|
|
129
129
|
*/
|
|
130
130
|
export const setHash = /*#__PURE__*/immutableURLSetter("hash");
|
|
131
131
|
/**
|
|
132
132
|
* Updates the host (domain and port) of the URL.
|
|
133
133
|
*
|
|
134
|
-
* @category
|
|
134
|
+
* @category setters
|
|
135
135
|
* @since 4.0.0
|
|
136
136
|
*/
|
|
137
137
|
export const setHost = /*#__PURE__*/immutableURLSetter("host");
|
|
138
138
|
/**
|
|
139
139
|
* Updates the domain of the URL without modifying the port.
|
|
140
140
|
*
|
|
141
|
-
* @category
|
|
141
|
+
* @category setters
|
|
142
142
|
* @since 4.0.0
|
|
143
143
|
*/
|
|
144
144
|
export const setHostname = /*#__PURE__*/immutableURLSetter("hostname");
|
|
145
145
|
/**
|
|
146
146
|
* Replaces the entire URL string.
|
|
147
147
|
*
|
|
148
|
-
* @category
|
|
148
|
+
* @category setters
|
|
149
149
|
* @since 4.0.0
|
|
150
150
|
*/
|
|
151
151
|
export const setHref = /*#__PURE__*/immutableURLSetter("href");
|
|
152
152
|
/**
|
|
153
153
|
* Updates the password used for authentication.
|
|
154
154
|
*
|
|
155
|
-
* @category
|
|
155
|
+
* @category setters
|
|
156
156
|
* @since 4.0.0
|
|
157
157
|
*/
|
|
158
158
|
export const setPassword = /*#__PURE__*/dual(2, (url, password) => mutate(url, url => {
|
|
@@ -161,35 +161,35 @@ export const setPassword = /*#__PURE__*/dual(2, (url, password) => mutate(url, u
|
|
|
161
161
|
/**
|
|
162
162
|
* Updates the path of the URL.
|
|
163
163
|
*
|
|
164
|
-
* @category
|
|
164
|
+
* @category setters
|
|
165
165
|
* @since 4.0.0
|
|
166
166
|
*/
|
|
167
167
|
export const setPathname = /*#__PURE__*/immutableURLSetter("pathname");
|
|
168
168
|
/**
|
|
169
169
|
* Updates the port of the URL.
|
|
170
170
|
*
|
|
171
|
-
* @category
|
|
171
|
+
* @category setters
|
|
172
172
|
* @since 4.0.0
|
|
173
173
|
*/
|
|
174
174
|
export const setPort = /*#__PURE__*/immutableURLSetter("port");
|
|
175
175
|
/**
|
|
176
176
|
* Updates the protocol (e.g., `http`, `https`).
|
|
177
177
|
*
|
|
178
|
-
* @category
|
|
178
|
+
* @category setters
|
|
179
179
|
* @since 4.0.0
|
|
180
180
|
*/
|
|
181
181
|
export const setProtocol = /*#__PURE__*/immutableURLSetter("protocol");
|
|
182
182
|
/**
|
|
183
183
|
* Updates the query string of the URL.
|
|
184
184
|
*
|
|
185
|
-
* @category
|
|
185
|
+
* @category setters
|
|
186
186
|
* @since 4.0.0
|
|
187
187
|
*/
|
|
188
188
|
export const setSearch = /*#__PURE__*/immutableURLSetter("search");
|
|
189
189
|
/**
|
|
190
190
|
* Updates the username used for authentication.
|
|
191
191
|
*
|
|
192
|
-
* @category
|
|
192
|
+
* @category setters
|
|
193
193
|
* @since 4.0.0
|
|
194
194
|
*/
|
|
195
195
|
export const setUsername = /*#__PURE__*/immutableURLSetter("username");
|
|
@@ -219,7 +219,7 @@ export const setUsername = /*#__PURE__*/immutableURLSetter("username");
|
|
|
219
219
|
* // Output: https://example.com/?key=value
|
|
220
220
|
* ```
|
|
221
221
|
*
|
|
222
|
-
* @category
|
|
222
|
+
* @category setters
|
|
223
223
|
* @since 4.0.0
|
|
224
224
|
*/
|
|
225
225
|
export const setUrlParams = /*#__PURE__*/dual(2, (url, searchParams) => mutate(url, url => {
|
|
@@ -176,7 +176,7 @@ declare const AdditionalSchemas_base: Context.ServiceClass<AdditionalSchemas, "e
|
|
|
176
176
|
* Adds additional schemas to components/schemas.
|
|
177
177
|
* The provided schemas must have a `identifier` annotation.
|
|
178
178
|
*
|
|
179
|
-
* @category
|
|
179
|
+
* @category services
|
|
180
180
|
* @since 4.0.0
|
|
181
181
|
*/
|
|
182
182
|
export declare class AdditionalSchemas extends AdditionalSchemas_base {
|
|
@@ -153,7 +153,7 @@ const extractResponseContent = (schemas, getStatus) => {
|
|
|
153
153
|
* Adds additional schemas to components/schemas.
|
|
154
154
|
* The provided schemas must have a `identifier` annotation.
|
|
155
155
|
*
|
|
156
|
-
* @category
|
|
156
|
+
* @category services
|
|
157
157
|
* @since 4.0.0
|
|
158
158
|
*/
|
|
159
159
|
export class AdditionalSchemas extends /*#__PURE__*/Context.Service()("effect/httpapi/HttpApi/AdditionalSchemas") {}
|
|
@@ -11,7 +11,7 @@ declare const BadRequest_base: Schema.Class<BadRequest, Schema.Struct<{
|
|
|
11
11
|
* Built-in HTTP API error for a `400 Bad Request` response. When used directly as
|
|
12
12
|
* a server response, it renders as an empty response with status 400.
|
|
13
13
|
*
|
|
14
|
-
* @category
|
|
14
|
+
* @category errors
|
|
15
15
|
* @since 4.0.0
|
|
16
16
|
*/
|
|
17
17
|
export declare class BadRequest extends BadRequest_base {
|
|
@@ -34,7 +34,7 @@ declare const Unauthorized_base: Schema.Class<Unauthorized, Schema.Struct<{
|
|
|
34
34
|
* Built-in HTTP API error for a `401 Unauthorized` response. When used directly as
|
|
35
35
|
* a server response, it renders as an empty response with status 401.
|
|
36
36
|
*
|
|
37
|
-
* @category
|
|
37
|
+
* @category errors
|
|
38
38
|
* @since 4.0.0
|
|
39
39
|
*/
|
|
40
40
|
export declare class Unauthorized extends Unauthorized_base {
|
|
@@ -56,7 +56,7 @@ declare const Forbidden_base: Schema.Class<Forbidden, Schema.Struct<{
|
|
|
56
56
|
* Built-in HTTP API error for a `403 Forbidden` response. When used directly as a
|
|
57
57
|
* server response, it renders as an empty response with status 403.
|
|
58
58
|
*
|
|
59
|
-
* @category
|
|
59
|
+
* @category errors
|
|
60
60
|
* @since 4.0.0
|
|
61
61
|
*/
|
|
62
62
|
export declare class Forbidden extends Forbidden_base {
|
|
@@ -78,7 +78,7 @@ declare const NotFound_base: Schema.Class<NotFound, Schema.Struct<{
|
|
|
78
78
|
* Built-in HTTP API error for a `404 Not Found` response. When used directly as a
|
|
79
79
|
* server response, it renders as an empty response with status 404.
|
|
80
80
|
*
|
|
81
|
-
* @category
|
|
81
|
+
* @category errors
|
|
82
82
|
* @since 4.0.0
|
|
83
83
|
*/
|
|
84
84
|
export declare class NotFound extends NotFound_base {
|
|
@@ -100,7 +100,7 @@ declare const MethodNotAllowed_base: Schema.Class<MethodNotAllowed, Schema.Struc
|
|
|
100
100
|
* Built-in HTTP API error for a `405 Method Not Allowed` response. When used
|
|
101
101
|
* directly as a server response, it renders as an empty response with status 405.
|
|
102
102
|
*
|
|
103
|
-
* @category
|
|
103
|
+
* @category errors
|
|
104
104
|
* @since 4.0.0
|
|
105
105
|
*/
|
|
106
106
|
export declare class MethodNotAllowed extends MethodNotAllowed_base {
|
|
@@ -122,7 +122,7 @@ declare const NotAcceptable_base: Schema.Class<NotAcceptable, Schema.Struct<{
|
|
|
122
122
|
* Built-in HTTP API error for a `406 Not Acceptable` response. When used directly
|
|
123
123
|
* as a server response, it renders as an empty response with status 406.
|
|
124
124
|
*
|
|
125
|
-
* @category
|
|
125
|
+
* @category errors
|
|
126
126
|
* @since 4.0.0
|
|
127
127
|
*/
|
|
128
128
|
export declare class NotAcceptable extends NotAcceptable_base {
|
|
@@ -144,7 +144,7 @@ declare const RequestTimeout_base: Schema.Class<RequestTimeout, Schema.Struct<{
|
|
|
144
144
|
* Built-in HTTP API error for a `408 Request Timeout` response. When used directly
|
|
145
145
|
* as a server response, it renders as an empty response with status 408.
|
|
146
146
|
*
|
|
147
|
-
* @category
|
|
147
|
+
* @category errors
|
|
148
148
|
* @since 4.0.0
|
|
149
149
|
*/
|
|
150
150
|
export declare class RequestTimeout extends RequestTimeout_base {
|
|
@@ -166,7 +166,7 @@ declare const Conflict_base: Schema.Class<Conflict, Schema.Struct<{
|
|
|
166
166
|
* Built-in HTTP API error for a `409 Conflict` response. When used directly as a
|
|
167
167
|
* server response, it renders as an empty response with status 409.
|
|
168
168
|
*
|
|
169
|
-
* @category
|
|
169
|
+
* @category errors
|
|
170
170
|
* @since 4.0.0
|
|
171
171
|
*/
|
|
172
172
|
export declare class Conflict extends Conflict_base {
|
|
@@ -188,7 +188,7 @@ declare const Gone_base: Schema.Class<Gone, Schema.Struct<{
|
|
|
188
188
|
* Built-in HTTP API error for a `410 Gone` response. When used directly as a
|
|
189
189
|
* server response, it renders as an empty response with status 410.
|
|
190
190
|
*
|
|
191
|
-
* @category
|
|
191
|
+
* @category errors
|
|
192
192
|
* @since 4.0.0
|
|
193
193
|
*/
|
|
194
194
|
export declare class Gone extends Gone_base {
|
|
@@ -210,7 +210,7 @@ declare const InternalServerError_base: Schema.Class<InternalServerError, Schema
|
|
|
210
210
|
* Built-in HTTP API error for a `500 Internal Server Error` response. When used
|
|
211
211
|
* directly as a server response, it renders as an empty response with status 500.
|
|
212
212
|
*
|
|
213
|
-
* @category
|
|
213
|
+
* @category errors
|
|
214
214
|
* @since 4.0.0
|
|
215
215
|
*/
|
|
216
216
|
export declare class InternalServerError extends InternalServerError_base {
|
|
@@ -231,7 +231,7 @@ declare const NotImplemented_base: Schema.Class<NotImplemented, Schema.Struct<{
|
|
|
231
231
|
* Built-in HTTP API error for a `501 Not Implemented` response. When used directly
|
|
232
232
|
* as a server response, it renders as an empty response with status 501.
|
|
233
233
|
*
|
|
234
|
-
* @category
|
|
234
|
+
* @category errors
|
|
235
235
|
* @since 4.0.0
|
|
236
236
|
*/
|
|
237
237
|
export declare class NotImplemented extends NotImplemented_base {
|
|
@@ -252,7 +252,7 @@ declare const ServiceUnavailable_base: Schema.Class<ServiceUnavailable, Schema.S
|
|
|
252
252
|
* Built-in HTTP API error for a `503 Service Unavailable` response. When used
|
|
253
253
|
* directly as a server response, it renders as an empty response with status 503.
|
|
254
254
|
*
|
|
255
|
-
* @category
|
|
255
|
+
* @category errors
|
|
256
256
|
* @since 4.0.0
|
|
257
257
|
*/
|
|
258
258
|
export declare class ServiceUnavailable extends ServiceUnavailable_base {
|
|
@@ -288,7 +288,7 @@ declare const HttpApiSchemaError_base: new <A extends Record<string, any> = {}>(
|
|
|
288
288
|
* which component failed and responds as an empty `400 Bad Request` when rendered
|
|
289
289
|
* as a server response.
|
|
290
290
|
*
|
|
291
|
-
* @category
|
|
291
|
+
* @category errors
|
|
292
292
|
* @since 4.0.0
|
|
293
293
|
*/
|
|
294
294
|
export declare class HttpApiSchemaError extends HttpApiSchemaError_base<{
|
|
@@ -88,7 +88,7 @@ const serviceUnavailableResponse = /*#__PURE__*/HttpServerResponse.empty({
|
|
|
88
88
|
* Built-in HTTP API error for a `400 Bad Request` response. When used directly as
|
|
89
89
|
* a server response, it renders as an empty response with status 400.
|
|
90
90
|
*
|
|
91
|
-
* @category
|
|
91
|
+
* @category errors
|
|
92
92
|
* @since 4.0.0
|
|
93
93
|
*/
|
|
94
94
|
export class BadRequest extends /*#__PURE__*/Schema.ErrorClass("effect/HttpApiError/BadRequest")({
|
|
@@ -117,7 +117,7 @@ export const BadRequestNoContent = /*#__PURE__*/BadRequest.pipe(/*#__PURE__*/Htt
|
|
|
117
117
|
* Built-in HTTP API error for a `401 Unauthorized` response. When used directly as
|
|
118
118
|
* a server response, it renders as an empty response with status 401.
|
|
119
119
|
*
|
|
120
|
-
* @category
|
|
120
|
+
* @category errors
|
|
121
121
|
* @since 4.0.0
|
|
122
122
|
*/
|
|
123
123
|
export class Unauthorized extends /*#__PURE__*/Schema.ErrorClass("effect/HttpApiError/Unauthorized")({
|
|
@@ -145,7 +145,7 @@ export const UnauthorizedNoContent = /*#__PURE__*/Unauthorized.pipe(/*#__PURE__*
|
|
|
145
145
|
* Built-in HTTP API error for a `403 Forbidden` response. When used directly as a
|
|
146
146
|
* server response, it renders as an empty response with status 403.
|
|
147
147
|
*
|
|
148
|
-
* @category
|
|
148
|
+
* @category errors
|
|
149
149
|
* @since 4.0.0
|
|
150
150
|
*/
|
|
151
151
|
export class Forbidden extends /*#__PURE__*/Schema.ErrorClass("effect/HttpApiError/Forbidden")({
|
|
@@ -173,7 +173,7 @@ export const ForbiddenNoContent = /*#__PURE__*/Forbidden.pipe(/*#__PURE__*/HttpA
|
|
|
173
173
|
* Built-in HTTP API error for a `404 Not Found` response. When used directly as a
|
|
174
174
|
* server response, it renders as an empty response with status 404.
|
|
175
175
|
*
|
|
176
|
-
* @category
|
|
176
|
+
* @category errors
|
|
177
177
|
* @since 4.0.0
|
|
178
178
|
*/
|
|
179
179
|
export class NotFound extends /*#__PURE__*/Schema.ErrorClass("effect/HttpApiError/NotFound")({
|
|
@@ -201,7 +201,7 @@ export const NotFoundNoContent = /*#__PURE__*/NotFound.pipe(/*#__PURE__*/HttpApi
|
|
|
201
201
|
* Built-in HTTP API error for a `405 Method Not Allowed` response. When used
|
|
202
202
|
* directly as a server response, it renders as an empty response with status 405.
|
|
203
203
|
*
|
|
204
|
-
* @category
|
|
204
|
+
* @category errors
|
|
205
205
|
* @since 4.0.0
|
|
206
206
|
*/
|
|
207
207
|
export class MethodNotAllowed extends /*#__PURE__*/Schema.ErrorClass("effect/HttpApiError/MethodNotAllowed")({
|
|
@@ -229,7 +229,7 @@ export const MethodNotAllowedNoContent = /*#__PURE__*/MethodNotAllowed.pipe(/*#_
|
|
|
229
229
|
* Built-in HTTP API error for a `406 Not Acceptable` response. When used directly
|
|
230
230
|
* as a server response, it renders as an empty response with status 406.
|
|
231
231
|
*
|
|
232
|
-
* @category
|
|
232
|
+
* @category errors
|
|
233
233
|
* @since 4.0.0
|
|
234
234
|
*/
|
|
235
235
|
export class NotAcceptable extends /*#__PURE__*/Schema.ErrorClass("effect/HttpApiError/NotAcceptable")({
|
|
@@ -257,7 +257,7 @@ export const NotAcceptableNoContent = /*#__PURE__*/NotAcceptable.pipe(/*#__PURE_
|
|
|
257
257
|
* Built-in HTTP API error for a `408 Request Timeout` response. When used directly
|
|
258
258
|
* as a server response, it renders as an empty response with status 408.
|
|
259
259
|
*
|
|
260
|
-
* @category
|
|
260
|
+
* @category errors
|
|
261
261
|
* @since 4.0.0
|
|
262
262
|
*/
|
|
263
263
|
export class RequestTimeout extends /*#__PURE__*/Schema.ErrorClass("effect/HttpApiError/RequestTimeout")({
|
|
@@ -285,7 +285,7 @@ export const RequestTimeoutNoContent = /*#__PURE__*/RequestTimeout.pipe(/*#__PUR
|
|
|
285
285
|
* Built-in HTTP API error for a `409 Conflict` response. When used directly as a
|
|
286
286
|
* server response, it renders as an empty response with status 409.
|
|
287
287
|
*
|
|
288
|
-
* @category
|
|
288
|
+
* @category errors
|
|
289
289
|
* @since 4.0.0
|
|
290
290
|
*/
|
|
291
291
|
export class Conflict extends /*#__PURE__*/Schema.ErrorClass("effect/HttpApiError/Conflict")({
|
|
@@ -313,7 +313,7 @@ export const ConflictNoContent = /*#__PURE__*/Conflict.pipe(/*#__PURE__*/HttpApi
|
|
|
313
313
|
* Built-in HTTP API error for a `410 Gone` response. When used directly as a
|
|
314
314
|
* server response, it renders as an empty response with status 410.
|
|
315
315
|
*
|
|
316
|
-
* @category
|
|
316
|
+
* @category errors
|
|
317
317
|
* @since 4.0.0
|
|
318
318
|
*/
|
|
319
319
|
export class Gone extends /*#__PURE__*/Schema.ErrorClass("effect/HttpApiError/Gone")({
|
|
@@ -341,7 +341,7 @@ export const GoneNoContent = /*#__PURE__*/Gone.pipe(/*#__PURE__*/HttpApiSchema.a
|
|
|
341
341
|
* Built-in HTTP API error for a `500 Internal Server Error` response. When used
|
|
342
342
|
* directly as a server response, it renders as an empty response with status 500.
|
|
343
343
|
*
|
|
344
|
-
* @category
|
|
344
|
+
* @category errors
|
|
345
345
|
* @since 4.0.0
|
|
346
346
|
*/
|
|
347
347
|
export class InternalServerError extends /*#__PURE__*/Schema.ErrorClass("effect/HttpApiError/InternalServerError")({
|
|
@@ -368,7 +368,7 @@ export const InternalServerErrorNoContent = /*#__PURE__*/InternalServerError.pip
|
|
|
368
368
|
* Built-in HTTP API error for a `501 Not Implemented` response. When used directly
|
|
369
369
|
* as a server response, it renders as an empty response with status 501.
|
|
370
370
|
*
|
|
371
|
-
* @category
|
|
371
|
+
* @category errors
|
|
372
372
|
* @since 4.0.0
|
|
373
373
|
*/
|
|
374
374
|
export class NotImplemented extends /*#__PURE__*/Schema.ErrorClass("effect/HttpApiError/NotImplemented")({
|
|
@@ -395,7 +395,7 @@ export const NotImplementedNoContent = /*#__PURE__*/NotImplemented.pipe(/*#__PUR
|
|
|
395
395
|
* Built-in HTTP API error for a `503 Service Unavailable` response. When used
|
|
396
396
|
* directly as a server response, it renders as an empty response with status 503.
|
|
397
397
|
*
|
|
398
|
-
* @category
|
|
398
|
+
* @category errors
|
|
399
399
|
* @since 4.0.0
|
|
400
400
|
*/
|
|
401
401
|
export class ServiceUnavailable extends /*#__PURE__*/Schema.ErrorClass("effect/HttpApiError/ServiceUnavailable")({
|
|
@@ -430,7 +430,7 @@ export const HttpApiSchemaErrorTypeId = "~effect/httpapi/HttpApiError/HttpApiSch
|
|
|
430
430
|
* which component failed and responds as an empty `400 Bad Request` when rendered
|
|
431
431
|
* as a server response.
|
|
432
432
|
*
|
|
433
|
-
* @category
|
|
433
|
+
* @category errors
|
|
434
434
|
* @since 4.0.0
|
|
435
435
|
*/
|
|
436
436
|
export class HttpApiSchemaError extends /*#__PURE__*/Data.TaggedClass("HttpApiSchemaError") {
|
|
@@ -68,7 +68,7 @@ export type MetricNameMapper = (name: string) => string;
|
|
|
68
68
|
/**
|
|
69
69
|
* Options for formatting metrics.
|
|
70
70
|
*
|
|
71
|
-
* @category
|
|
71
|
+
* @category options
|
|
72
72
|
* @since 4.0.0
|
|
73
73
|
*/
|
|
74
74
|
export interface FormatOptions {
|
|
@@ -85,7 +85,7 @@ export interface FormatOptions {
|
|
|
85
85
|
/**
|
|
86
86
|
* Options for exporting Prometheus metrics over HTTP.
|
|
87
87
|
*
|
|
88
|
-
* @category
|
|
88
|
+
* @category options
|
|
89
89
|
* @since 4.0.0
|
|
90
90
|
*/
|
|
91
91
|
export interface HttpOptions extends FormatOptions {
|
|
@@ -122,7 +122,7 @@ export interface HttpOptions extends FormatOptions {
|
|
|
122
122
|
* })
|
|
123
123
|
* ```
|
|
124
124
|
*
|
|
125
|
-
* @category
|
|
125
|
+
* @category formatting
|
|
126
126
|
* @since 4.0.0
|
|
127
127
|
*/
|
|
128
128
|
export declare const format: (options?: FormatOptions | undefined) => Effect.Effect<string>;
|
|
@@ -134,7 +134,7 @@ export declare const format: (options?: FormatOptions | undefined) => Effect.Eff
|
|
|
134
134
|
* Use when you use this low-level function when you already have access to the context. Most
|
|
135
135
|
* users should use `format` instead.
|
|
136
136
|
*
|
|
137
|
-
* @category
|
|
137
|
+
* @category formatting
|
|
138
138
|
* @since 4.0.0
|
|
139
139
|
*/
|
|
140
140
|
export declare const formatUnsafe: (context: Context.Context<never>, options?: FormatOptions | undefined) => string;
|
|
@@ -31,7 +31,7 @@ import * as HttpServerResponse from "../http/HttpServerResponse.js";
|
|
|
31
31
|
* })
|
|
32
32
|
* ```
|
|
33
33
|
*
|
|
34
|
-
* @category
|
|
34
|
+
* @category formatting
|
|
35
35
|
* @since 4.0.0
|
|
36
36
|
*/
|
|
37
37
|
export const format = /*#__PURE__*/Effect.fnUntraced(function* (options) {
|
|
@@ -46,7 +46,7 @@ export const format = /*#__PURE__*/Effect.fnUntraced(function* (options) {
|
|
|
46
46
|
* Use when you use this low-level function when you already have access to the context. Most
|
|
47
47
|
* users should use `format` instead.
|
|
48
48
|
*
|
|
49
|
-
* @category
|
|
49
|
+
* @category formatting
|
|
50
50
|
* @since 4.0.0
|
|
51
51
|
*/
|
|
52
52
|
export const formatUnsafe = (context, options) => {
|