effect 4.0.2 → 4.0.3
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/Context.js +3 -3
- package/dist/Context.js.map +1 -1
- package/dist/Crypto.d.ts +33 -5
- package/dist/Crypto.d.ts.map +1 -1
- package/dist/Crypto.js +8 -2
- package/dist/Crypto.js.map +1 -1
- package/dist/DateTime.d.ts +9 -6
- package/dist/DateTime.d.ts.map +1 -1
- package/dist/DateTime.js +9 -6
- package/dist/DateTime.js.map +1 -1
- package/dist/Duration.d.ts +6 -6
- package/dist/Duration.d.ts.map +1 -1
- package/dist/Duration.js +27 -8
- package/dist/Duration.js.map +1 -1
- package/dist/FileSystem.d.ts +44 -2
- package/dist/FileSystem.d.ts.map +1 -1
- package/dist/FileSystem.js.map +1 -1
- package/dist/Schema.d.ts +473 -1
- package/dist/Schema.d.ts.map +1 -1
- package/dist/Schema.js +355 -4
- package/dist/Schema.js.map +1 -1
- package/dist/Stdio.d.ts +7 -1
- package/dist/Stdio.d.ts.map +1 -1
- package/dist/Stdio.js +1 -0
- package/dist/Stdio.js.map +1 -1
- package/dist/Stream.d.ts +11 -11
- package/dist/Stream.js +5 -5
- package/dist/ai/McpServer.d.ts +6 -0
- package/dist/ai/McpServer.d.ts.map +1 -1
- package/dist/ai/McpServer.js +65 -23
- package/dist/ai/McpServer.js.map +1 -1
- package/dist/ai/internal/mcpProtocol/v2026_07_28.js +5 -0
- package/dist/ai/internal/mcpProtocol/v2026_07_28.js.map +1 -1
- package/dist/ai/internal/mcpProtocol.js.map +1 -1
- package/dist/ai/internal/mcpRuntime.js +1 -0
- package/dist/ai/internal/mcpRuntime.js.map +1 -1
- package/dist/cli/CliOutput.d.ts +27 -0
- package/dist/cli/CliOutput.d.ts.map +1 -1
- package/dist/cli/CliOutput.js +33 -10
- package/dist/cli/CliOutput.js.map +1 -1
- package/dist/cli/Command.d.ts.map +1 -1
- package/dist/cli/Command.js +6 -3
- package/dist/cli/Command.js.map +1 -1
- package/dist/cli/Completions.d.ts +3 -3
- package/dist/cli/Completions.d.ts.map +1 -1
- package/dist/cli/Completions.js +8 -5
- package/dist/cli/Completions.js.map +1 -1
- package/dist/cli/GlobalFlag.d.ts +5 -4
- package/dist/cli/GlobalFlag.d.ts.map +1 -1
- package/dist/cli/GlobalFlag.js +3 -3
- package/dist/cli/GlobalFlag.js.map +1 -1
- package/dist/cli/Prompt.d.ts +17 -1
- package/dist/cli/Prompt.d.ts.map +1 -1
- package/dist/cli/Prompt.js +119 -114
- package/dist/cli/Prompt.js.map +1 -1
- package/dist/cli/internal/ansi.d.ts +0 -1
- package/dist/cli/internal/ansi.d.ts.map +1 -1
- package/dist/cli/internal/ansi.js +20 -3
- package/dist/cli/internal/ansi.js.map +1 -1
- package/dist/cli/internal/completions/powershell.d.ts +2 -0
- package/dist/cli/internal/completions/powershell.d.ts.map +1 -0
- package/dist/cli/internal/completions/powershell.js +273 -0
- package/dist/cli/internal/completions/powershell.js.map +1 -0
- package/dist/cli/internal/completions/zsh.js +3 -2
- package/dist/cli/internal/completions/zsh.js.map +1 -1
- package/dist/cli/internal/wizard.d.ts +3 -3
- package/dist/cli/internal/wizard.d.ts.map +1 -1
- package/dist/cli/internal/wizard.js +21 -18
- package/dist/cli/internal/wizard.js.map +1 -1
- package/dist/cluster/ClusterSchema.d.ts +28 -0
- package/dist/cluster/ClusterSchema.d.ts.map +1 -1
- package/dist/cluster/ClusterSchema.js +30 -0
- package/dist/cluster/ClusterSchema.js.map +1 -1
- package/dist/cluster/ClusterWorkflowEngine.d.ts.map +1 -1
- package/dist/cluster/ClusterWorkflowEngine.js +10 -18
- package/dist/cluster/ClusterWorkflowEngine.js.map +1 -1
- package/dist/cluster/MessageStorage.d.ts +18 -3
- package/dist/cluster/MessageStorage.d.ts.map +1 -1
- package/dist/cluster/MessageStorage.js +31 -11
- package/dist/cluster/MessageStorage.js.map +1 -1
- package/dist/cluster/Runners.d.ts.map +1 -1
- package/dist/cluster/Runners.js +8 -2
- package/dist/cluster/Runners.js.map +1 -1
- package/dist/cluster/Sharding.d.ts.map +1 -1
- package/dist/cluster/Sharding.js +181 -62
- package/dist/cluster/Sharding.js.map +1 -1
- package/dist/cluster/SqlMessageStorage.d.ts +59 -19
- package/dist/cluster/SqlMessageStorage.d.ts.map +1 -1
- package/dist/cluster/SqlMessageStorage.js +84 -55
- package/dist/cluster/SqlMessageStorage.js.map +1 -1
- package/dist/cluster/SqlRunnerStorage.d.ts +68 -19
- package/dist/cluster/SqlRunnerStorage.d.ts.map +1 -1
- package/dist/cluster/SqlRunnerStorage.js +191 -113
- package/dist/cluster/SqlRunnerStorage.js.map +1 -1
- package/dist/cluster/internal/entityManager.js +104 -37
- package/dist/cluster/internal/entityManager.js.map +1 -1
- package/dist/http/FindMyWay/internal/router.js +3 -6
- package/dist/http/FindMyWay/internal/router.js.map +1 -1
- package/dist/http/HttpClient.d.ts +6 -0
- package/dist/http/HttpClient.d.ts.map +1 -1
- package/dist/http/HttpClient.js +39 -2
- package/dist/http/HttpClient.js.map +1 -1
- package/dist/http/HttpTraceContext.d.ts.map +1 -1
- package/dist/http/HttpTraceContext.js +4 -2
- package/dist/http/HttpTraceContext.js.map +1 -1
- package/dist/internal/effect.js +12 -7
- package/dist/internal/effect.js.map +1 -1
- package/dist/internal/version.js +1 -1
- package/dist/net/AddressResolver.d.ts +145 -0
- package/dist/net/AddressResolver.d.ts.map +1 -0
- package/dist/net/AddressResolver.js +114 -0
- package/dist/net/AddressResolver.js.map +1 -0
- package/dist/net/Dns.d.ts +596 -0
- package/dist/net/Dns.d.ts.map +1 -0
- package/dist/net/Dns.js +549 -0
- package/dist/net/Dns.js.map +1 -0
- package/dist/net/Host.d.ts +320 -0
- package/dist/net/Host.d.ts.map +1 -0
- package/dist/net/Host.js +342 -0
- package/dist/net/Host.js.map +1 -0
- package/dist/net/IpInterface.d.ts +76 -3
- package/dist/net/IpInterface.d.ts.map +1 -1
- package/dist/net/IpInterface.js +53 -4
- package/dist/net/IpInterface.js.map +1 -1
- package/dist/net/IpNetwork.d.ts +82 -8
- package/dist/net/IpNetwork.d.ts.map +1 -1
- package/dist/net/IpNetwork.js +60 -4
- package/dist/net/IpNetwork.js.map +1 -1
- package/dist/net/NetAddress.d.ts +388 -35
- package/dist/net/NetAddress.d.ts.map +1 -1
- package/dist/net/NetAddress.js +350 -34
- package/dist/net/NetAddress.js.map +1 -1
- package/dist/net/index.d.ts +15 -0
- package/dist/net/index.d.ts.map +1 -1
- package/dist/net/index.js +15 -0
- package/dist/net/index.js.map +1 -1
- package/dist/observability/OtlpMetrics.d.ts.map +1 -1
- package/dist/observability/OtlpMetrics.js +15 -21
- package/dist/observability/OtlpMetrics.js.map +1 -1
- package/dist/observability/PrometheusMetrics.js +1 -0
- package/dist/observability/PrometheusMetrics.js.map +1 -1
- package/dist/persistence/PersistedQueue.d.ts +32 -3
- package/dist/persistence/PersistedQueue.d.ts.map +1 -1
- package/dist/persistence/PersistedQueue.js +75 -16
- package/dist/persistence/PersistedQueue.js.map +1 -1
- package/dist/rpc/RpcClient.d.ts +22 -6
- package/dist/rpc/RpcClient.d.ts.map +1 -1
- package/dist/rpc/RpcClient.js +12 -5
- package/dist/rpc/RpcClient.js.map +1 -1
- package/dist/rpc/RpcServer.d.ts +6 -0
- package/dist/rpc/RpcServer.d.ts.map +1 -1
- package/dist/rpc/RpcServer.js +42 -20
- package/dist/rpc/RpcServer.js.map +1 -1
- package/dist/socket/DatagramSocket.d.ts +456 -0
- package/dist/socket/DatagramSocket.d.ts.map +1 -0
- package/dist/socket/DatagramSocket.js +535 -0
- package/dist/socket/DatagramSocket.js.map +1 -0
- package/dist/socket/Socket.d.ts +14 -1
- package/dist/socket/Socket.d.ts.map +1 -1
- package/dist/socket/Socket.js +9 -1
- package/dist/socket/Socket.js.map +1 -1
- package/dist/socket/index.d.ts +5 -0
- package/dist/socket/index.d.ts.map +1 -1
- package/dist/socket/index.js +5 -0
- package/dist/socket/index.js.map +1 -1
- package/dist/sql/Migrator.d.ts.map +1 -1
- package/dist/sql/Migrator.js +7 -2
- package/dist/sql/Migrator.js.map +1 -1
- package/dist/sql/SqlClient.d.ts +7 -1
- package/dist/sql/SqlClient.d.ts.map +1 -1
- package/dist/sql/SqlClient.js +31 -6
- package/dist/sql/SqlClient.js.map +1 -1
- package/dist/testing/TestCrypto.d.ts +73 -0
- package/dist/testing/TestCrypto.d.ts.map +1 -0
- package/dist/testing/TestCrypto.js +87 -0
- package/dist/testing/TestCrypto.js.map +1 -0
- package/dist/testing/index.d.ts +5 -0
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +5 -0
- package/dist/testing/index.js.map +1 -1
- package/dist/workflow/DurableDeferred.d.ts +54 -0
- package/dist/workflow/DurableDeferred.d.ts.map +1 -1
- package/dist/workflow/DurableDeferred.js +78 -49
- package/dist/workflow/DurableDeferred.js.map +1 -1
- package/dist/workflow/WorkflowEngine.d.ts.map +1 -1
- package/dist/workflow/WorkflowEngine.js +2 -1
- package/dist/workflow/WorkflowEngine.js.map +1 -1
- package/package.json +1 -1
- package/src/Context.ts +3 -3
- package/src/Crypto.ts +43 -9
- package/src/DateTime.ts +9 -6
- package/src/Duration.ts +36 -16
- package/src/FileSystem.ts +48 -2
- package/src/Schema.ts +669 -5
- package/src/Stdio.ts +9 -2
- package/src/Stream.ts +11 -11
- package/src/ai/McpServer.ts +63 -23
- package/src/ai/internal/mcpProtocol/v2026_07_28.ts +5 -0
- package/src/ai/internal/mcpProtocol.ts +3 -0
- package/src/ai/internal/mcpRuntime.ts +2 -0
- package/src/cli/CliOutput.ts +33 -16
- package/src/cli/Command.ts +4 -3
- package/src/cli/Completions.ts +9 -6
- package/src/cli/GlobalFlag.ts +19 -11
- package/src/cli/Prompt.ts +159 -149
- package/src/cli/internal/ansi.ts +26 -3
- package/src/cli/internal/completions/powershell.ts +322 -0
- package/src/cli/internal/completions/zsh.ts +4 -2
- package/src/cli/internal/wizard.ts +34 -26
- package/src/cluster/ClusterSchema.ts +32 -0
- package/src/cluster/ClusterWorkflowEngine.ts +13 -24
- package/src/cluster/MessageStorage.ts +45 -14
- package/src/cluster/Runners.ts +8 -2
- package/src/cluster/Sharding.ts +207 -49
- package/src/cluster/SqlMessageStorage.ts +118 -84
- package/src/cluster/SqlRunnerStorage.ts +224 -128
- package/src/cluster/internal/entityManager.ts +151 -55
- package/src/http/FindMyWay/internal/router.ts +4 -7
- package/src/http/HttpClient.ts +56 -2
- package/src/http/HttpTraceContext.ts +8 -2
- package/src/internal/effect.ts +15 -13
- package/src/internal/version.ts +1 -1
- package/src/net/AddressResolver.ts +222 -0
- package/src/net/Dns.ts +1035 -0
- package/src/net/Host.ts +472 -0
- package/src/net/IpInterface.ts +117 -7
- package/src/net/IpNetwork.ts +116 -17
- package/src/net/NetAddress.ts +611 -76
- package/src/net/index.ts +18 -0
- package/src/observability/OtlpMetrics.ts +12 -23
- package/src/observability/PrometheusMetrics.ts +1 -0
- package/src/persistence/PersistedQueue.ts +146 -53
- package/src/rpc/RpcClient.ts +41 -19
- package/src/rpc/RpcServer.ts +60 -25
- package/src/socket/DatagramSocket.ts +919 -0
- package/src/socket/Socket.ts +22 -2
- package/src/socket/index.ts +6 -0
- package/src/sql/Migrator.ts +21 -5
- package/src/sql/SqlClient.ts +39 -15
- package/src/testing/TestCrypto.ts +94 -0
- package/src/testing/index.ts +6 -0
- package/src/workflow/DurableDeferred.ts +123 -48
- package/src/workflow/WorkflowEngine.ts +2 -1
package/dist/Schema.d.ts
CHANGED
|
@@ -30,9 +30,12 @@ import * as HashSet_ from "./HashSet.ts";
|
|
|
30
30
|
import * as Cookies_ from "./http/Cookies.ts";
|
|
31
31
|
import * as Headers_ from "./http/Headers.ts";
|
|
32
32
|
import * as UrlParams_ from "./http/UrlParams.ts";
|
|
33
|
+
import { NodeInspectSymbol } from "./Inspectable.ts";
|
|
33
34
|
import { SchemaErrorTypeId } from "./internal/schemaError.ts";
|
|
34
35
|
import type * as JsonPatch from "./JsonPatch.ts";
|
|
35
36
|
import type * as JsonSchema from "./JsonSchema.ts";
|
|
37
|
+
import * as Dns_ from "./net/Dns.ts";
|
|
38
|
+
import * as Host_ from "./net/Host.ts";
|
|
36
39
|
import * as IpInterface_ from "./net/IpInterface.ts";
|
|
37
40
|
import * as IpNetwork_ from "./net/IpNetwork.ts";
|
|
38
41
|
import * as NetAddress_ from "./net/NetAddress.ts";
|
|
@@ -984,6 +987,14 @@ export declare class SchemaError extends SchemaError_base<{
|
|
|
984
987
|
readonly [SchemaErrorTypeId]: typeof SchemaErrorTypeId;
|
|
985
988
|
constructor(issue: SchemaIssue.Issue);
|
|
986
989
|
get message(): string;
|
|
990
|
+
toJSON(): {
|
|
991
|
+
_tag: "SchemaError";
|
|
992
|
+
message: string;
|
|
993
|
+
};
|
|
994
|
+
[NodeInspectSymbol](): {
|
|
995
|
+
_tag: "SchemaError";
|
|
996
|
+
message: string;
|
|
997
|
+
};
|
|
987
998
|
toString(): string;
|
|
988
999
|
}
|
|
989
1000
|
/**
|
|
@@ -6092,7 +6103,8 @@ export declare function isMultipleOf(divisor: number, annotations?: Annotations.
|
|
|
6092
6103
|
*
|
|
6093
6104
|
* JSON Schema:
|
|
6094
6105
|
*
|
|
6095
|
-
* This check corresponds to
|
|
6106
|
+
* This check corresponds to `type: "integer"` with `minimum: Number.MIN_SAFE_INTEGER`
|
|
6107
|
+
* and `maximum: Number.MAX_SAFE_INTEGER` in JSON Schema.
|
|
6096
6108
|
*
|
|
6097
6109
|
* Arbitrary:
|
|
6098
6110
|
*
|
|
@@ -9510,6 +9522,184 @@ export interface SocketAddress extends declare<NetAddress_.SocketAddress> {
|
|
|
9510
9522
|
* @since 4.0.0
|
|
9511
9523
|
*/
|
|
9512
9524
|
export declare const SocketAddress: SocketAddress;
|
|
9525
|
+
/**
|
|
9526
|
+
* Type-level representation of {@link DomainName}.
|
|
9527
|
+
*
|
|
9528
|
+
* @stability experimental
|
|
9529
|
+
* @category models
|
|
9530
|
+
* @since 4.0.0
|
|
9531
|
+
*/
|
|
9532
|
+
export interface DomainName extends brand<String, "~effect/net/Host/DomainName"> {
|
|
9533
|
+
readonly "Rebuild": DomainName;
|
|
9534
|
+
}
|
|
9535
|
+
/**
|
|
9536
|
+
* Schema for normalized DNS domain names.
|
|
9537
|
+
*
|
|
9538
|
+
* **Details**
|
|
9539
|
+
*
|
|
9540
|
+
* Only names already in normalized form (lowercase ASCII, with
|
|
9541
|
+
* internationalized labels in `xn--` form) are accepted. Use
|
|
9542
|
+
* {@link DomainNameFromString} to normalize arbitrary input.
|
|
9543
|
+
*
|
|
9544
|
+
* @stability experimental
|
|
9545
|
+
* @category schemas
|
|
9546
|
+
* @since 4.0.0
|
|
9547
|
+
*/
|
|
9548
|
+
export declare const DomainName: DomainName;
|
|
9549
|
+
/**
|
|
9550
|
+
* Type-level representation of {@link DomainNameFromString}.
|
|
9551
|
+
*
|
|
9552
|
+
* @stability experimental
|
|
9553
|
+
* @category models
|
|
9554
|
+
* @since 4.0.0
|
|
9555
|
+
*/
|
|
9556
|
+
export interface DomainNameFromString extends decodeTo<DomainName, String> {
|
|
9557
|
+
readonly "Rebuild": DomainNameFromString;
|
|
9558
|
+
}
|
|
9559
|
+
/**
|
|
9560
|
+
* Schema for DNS domain names decoded from strings, normalizing case and
|
|
9561
|
+
* converting internationalized names to their ASCII form.
|
|
9562
|
+
*
|
|
9563
|
+
* @stability experimental
|
|
9564
|
+
* @category schemas
|
|
9565
|
+
* @since 4.0.0
|
|
9566
|
+
*/
|
|
9567
|
+
export declare const DomainNameFromString: DomainNameFromString;
|
|
9568
|
+
/**
|
|
9569
|
+
* Type-level representation of {@link ScopedIpv6Literal}.
|
|
9570
|
+
*
|
|
9571
|
+
* @stability experimental
|
|
9572
|
+
* @category models
|
|
9573
|
+
* @since 4.0.0
|
|
9574
|
+
*/
|
|
9575
|
+
export interface ScopedIpv6Literal extends brand<String, "~effect/net/NetAddress/ScopedIpv6Literal"> {
|
|
9576
|
+
readonly "Rebuild": ScopedIpv6Literal;
|
|
9577
|
+
}
|
|
9578
|
+
/**
|
|
9579
|
+
* Schema for canonical scoped IPv6 literals such as `fe80::1%eth0`.
|
|
9580
|
+
*
|
|
9581
|
+
* @stability experimental
|
|
9582
|
+
* @category schemas
|
|
9583
|
+
* @since 4.0.0
|
|
9584
|
+
*/
|
|
9585
|
+
export declare const ScopedIpv6Literal: ScopedIpv6Literal;
|
|
9586
|
+
/**
|
|
9587
|
+
* Type-level representation of {@link ScopedIpv6LiteralFromString}.
|
|
9588
|
+
*
|
|
9589
|
+
* @stability experimental
|
|
9590
|
+
* @category models
|
|
9591
|
+
* @since 4.0.0
|
|
9592
|
+
*/
|
|
9593
|
+
export interface ScopedIpv6LiteralFromString extends decodeTo<ScopedIpv6Literal, String> {
|
|
9594
|
+
readonly "Rebuild": ScopedIpv6LiteralFromString;
|
|
9595
|
+
}
|
|
9596
|
+
/**
|
|
9597
|
+
* Schema for scoped IPv6 literals decoded from strings, normalizing the address
|
|
9598
|
+
* and numeric zones.
|
|
9599
|
+
*
|
|
9600
|
+
* @stability experimental
|
|
9601
|
+
* @category schemas
|
|
9602
|
+
* @since 4.0.0
|
|
9603
|
+
*/
|
|
9604
|
+
export declare const ScopedIpv6LiteralFromString: ScopedIpv6LiteralFromString;
|
|
9605
|
+
/**
|
|
9606
|
+
* Type-level representation of {@link Host}.
|
|
9607
|
+
*
|
|
9608
|
+
* @stability experimental
|
|
9609
|
+
* @category models
|
|
9610
|
+
* @since 4.0.0
|
|
9611
|
+
*/
|
|
9612
|
+
export interface Host extends Union<readonly [IpAddress, ScopedIpv6Literal, DomainName]> {
|
|
9613
|
+
readonly "Rebuild": Host;
|
|
9614
|
+
}
|
|
9615
|
+
/**
|
|
9616
|
+
* Schema for hosts: numeric IP addresses, scoped IPv6 literals, or domain names.
|
|
9617
|
+
*
|
|
9618
|
+
* @stability experimental
|
|
9619
|
+
* @category schemas
|
|
9620
|
+
* @since 4.0.0
|
|
9621
|
+
*/
|
|
9622
|
+
export declare const Host: Host;
|
|
9623
|
+
/**
|
|
9624
|
+
* Type-level representation of {@link HostFromString}.
|
|
9625
|
+
*
|
|
9626
|
+
* @stability experimental
|
|
9627
|
+
* @category models
|
|
9628
|
+
* @since 4.0.0
|
|
9629
|
+
*/
|
|
9630
|
+
export interface HostFromString extends Union<readonly [IpAddressFromString, ScopedIpv6LiteralFromString, DomainNameFromString]> {
|
|
9631
|
+
readonly "Rebuild": HostFromString;
|
|
9632
|
+
}
|
|
9633
|
+
/**
|
|
9634
|
+
* Schema for hosts decoded from strings. Numeric IP strings decode to IP
|
|
9635
|
+
* addresses; other strings decode to scoped IPv6 literals or domain names.
|
|
9636
|
+
*
|
|
9637
|
+
* @stability experimental
|
|
9638
|
+
* @category schemas
|
|
9639
|
+
* @since 4.0.0
|
|
9640
|
+
*/
|
|
9641
|
+
export declare const HostFromString: HostFromString;
|
|
9642
|
+
/**
|
|
9643
|
+
* Type-level representation of {@link HostPort}.
|
|
9644
|
+
*
|
|
9645
|
+
* @stability experimental
|
|
9646
|
+
* @category models
|
|
9647
|
+
* @since 4.0.0
|
|
9648
|
+
*/
|
|
9649
|
+
export interface HostPort extends declare<Host_.HostPort> {
|
|
9650
|
+
readonly "Rebuild": HostPort;
|
|
9651
|
+
}
|
|
9652
|
+
/**
|
|
9653
|
+
* Schema for already-constructed unresolved host and port values.
|
|
9654
|
+
*
|
|
9655
|
+
* @stability experimental
|
|
9656
|
+
* @category schemas
|
|
9657
|
+
* @since 4.0.0
|
|
9658
|
+
*/
|
|
9659
|
+
export declare const HostPort: HostPort;
|
|
9660
|
+
/**
|
|
9661
|
+
* Type-level representation of {@link HostPortFromString}.
|
|
9662
|
+
*
|
|
9663
|
+
* @stability experimental
|
|
9664
|
+
* @category models
|
|
9665
|
+
* @since 4.0.0
|
|
9666
|
+
*/
|
|
9667
|
+
export interface HostPortFromString extends decodeTo<HostPort, String> {
|
|
9668
|
+
readonly "Rebuild": HostPortFromString;
|
|
9669
|
+
}
|
|
9670
|
+
/**
|
|
9671
|
+
* Schema for unresolved endpoints encoded as `host:port` or `[IPv6]:port`
|
|
9672
|
+
* strings.
|
|
9673
|
+
*
|
|
9674
|
+
* @stability experimental
|
|
9675
|
+
* @category schemas
|
|
9676
|
+
* @since 4.0.0
|
|
9677
|
+
*/
|
|
9678
|
+
export declare const HostPortFromString: HostPortFromString;
|
|
9679
|
+
/**
|
|
9680
|
+
* Type-level representation of {@link Port}.
|
|
9681
|
+
*
|
|
9682
|
+
* @stability experimental
|
|
9683
|
+
* @category models
|
|
9684
|
+
* @since 4.0.0
|
|
9685
|
+
*/
|
|
9686
|
+
export interface Port extends Int {
|
|
9687
|
+
readonly "Rebuild": Port;
|
|
9688
|
+
}
|
|
9689
|
+
/**
|
|
9690
|
+
* Schema for TCP and UDP port numbers from 0 through 65535.
|
|
9691
|
+
*
|
|
9692
|
+
* **Details**
|
|
9693
|
+
*
|
|
9694
|
+
* Port 0 is accepted because it asks the operating system to choose a port
|
|
9695
|
+
* when binding, and it matches the port range of `InetAddress` and `HostPort`.
|
|
9696
|
+
* `Config.Port` accepts only 1 through 65535.
|
|
9697
|
+
*
|
|
9698
|
+
* @stability experimental
|
|
9699
|
+
* @category schemas
|
|
9700
|
+
* @since 4.0.0
|
|
9701
|
+
*/
|
|
9702
|
+
export declare const Port: Port;
|
|
9513
9703
|
/**
|
|
9514
9704
|
* Type-level representation of {@link Duration}.
|
|
9515
9705
|
*
|
|
@@ -9629,6 +9819,284 @@ export interface DurationFromMillis extends decodeTo<Duration, Number> {
|
|
|
9629
9819
|
* @since 3.10.0
|
|
9630
9820
|
*/
|
|
9631
9821
|
export declare const DurationFromMillis: DurationFromMillis;
|
|
9822
|
+
/**
|
|
9823
|
+
* Type-level representation of {@link DnsRecordType}.
|
|
9824
|
+
*
|
|
9825
|
+
* @stability experimental
|
|
9826
|
+
* @category models
|
|
9827
|
+
* @since 4.0.0
|
|
9828
|
+
*/
|
|
9829
|
+
export interface DnsRecordType extends Literals<ReadonlyArray<Dns_.RecordType>> {
|
|
9830
|
+
}
|
|
9831
|
+
/**
|
|
9832
|
+
* Schema for supported DNS record types such as `"A"` or `"SRV"`.
|
|
9833
|
+
*
|
|
9834
|
+
* @stability experimental
|
|
9835
|
+
* @category schemas
|
|
9836
|
+
* @since 4.0.0
|
|
9837
|
+
*/
|
|
9838
|
+
export declare const DnsRecordType: DnsRecordType;
|
|
9839
|
+
/**
|
|
9840
|
+
* Type-level representation of {@link DnsARecord}.
|
|
9841
|
+
*
|
|
9842
|
+
* @stability experimental
|
|
9843
|
+
* @category models
|
|
9844
|
+
* @since 4.0.0
|
|
9845
|
+
*/
|
|
9846
|
+
export interface DnsARecord extends declare<Dns_.A> {
|
|
9847
|
+
readonly "Rebuild": DnsARecord;
|
|
9848
|
+
}
|
|
9849
|
+
/**
|
|
9850
|
+
* Schema for already-constructed IPv4 address (`A`) DNS records.
|
|
9851
|
+
*
|
|
9852
|
+
* @stability experimental
|
|
9853
|
+
* @category schemas
|
|
9854
|
+
* @since 4.0.0
|
|
9855
|
+
*/
|
|
9856
|
+
export declare const DnsARecord: DnsARecord;
|
|
9857
|
+
/**
|
|
9858
|
+
* Type-level representation of {@link DnsAaaaRecord}.
|
|
9859
|
+
*
|
|
9860
|
+
* @stability experimental
|
|
9861
|
+
* @category models
|
|
9862
|
+
* @since 4.0.0
|
|
9863
|
+
*/
|
|
9864
|
+
export interface DnsAaaaRecord extends declare<Dns_.Aaaa> {
|
|
9865
|
+
readonly "Rebuild": DnsAaaaRecord;
|
|
9866
|
+
}
|
|
9867
|
+
/**
|
|
9868
|
+
* Schema for already-constructed IPv6 address (`AAAA`) DNS records.
|
|
9869
|
+
*
|
|
9870
|
+
* @stability experimental
|
|
9871
|
+
* @category schemas
|
|
9872
|
+
* @since 4.0.0
|
|
9873
|
+
*/
|
|
9874
|
+
export declare const DnsAaaaRecord: DnsAaaaRecord;
|
|
9875
|
+
/**
|
|
9876
|
+
* Type-level representation of {@link DnsCaaRecord}.
|
|
9877
|
+
*
|
|
9878
|
+
* @stability experimental
|
|
9879
|
+
* @category models
|
|
9880
|
+
* @since 4.0.0
|
|
9881
|
+
*/
|
|
9882
|
+
export interface DnsCaaRecord extends declare<Dns_.Caa> {
|
|
9883
|
+
readonly "Rebuild": DnsCaaRecord;
|
|
9884
|
+
}
|
|
9885
|
+
/**
|
|
9886
|
+
* Schema for already-constructed certification authority authorization (`CAA`) DNS records.
|
|
9887
|
+
*
|
|
9888
|
+
* @stability experimental
|
|
9889
|
+
* @category schemas
|
|
9890
|
+
* @since 4.0.0
|
|
9891
|
+
*/
|
|
9892
|
+
export declare const DnsCaaRecord: DnsCaaRecord;
|
|
9893
|
+
/**
|
|
9894
|
+
* Type-level representation of {@link DnsCnameRecord}.
|
|
9895
|
+
*
|
|
9896
|
+
* @stability experimental
|
|
9897
|
+
* @category models
|
|
9898
|
+
* @since 4.0.0
|
|
9899
|
+
*/
|
|
9900
|
+
export interface DnsCnameRecord extends declare<Dns_.Cname> {
|
|
9901
|
+
readonly "Rebuild": DnsCnameRecord;
|
|
9902
|
+
}
|
|
9903
|
+
/**
|
|
9904
|
+
* Schema for already-constructed canonical name (`CNAME`) DNS records.
|
|
9905
|
+
*
|
|
9906
|
+
* @stability experimental
|
|
9907
|
+
* @category schemas
|
|
9908
|
+
* @since 4.0.0
|
|
9909
|
+
*/
|
|
9910
|
+
export declare const DnsCnameRecord: DnsCnameRecord;
|
|
9911
|
+
/**
|
|
9912
|
+
* Type-level representation of {@link DnsMxRecord}.
|
|
9913
|
+
*
|
|
9914
|
+
* @stability experimental
|
|
9915
|
+
* @category models
|
|
9916
|
+
* @since 4.0.0
|
|
9917
|
+
*/
|
|
9918
|
+
export interface DnsMxRecord extends declare<Dns_.Mx> {
|
|
9919
|
+
readonly "Rebuild": DnsMxRecord;
|
|
9920
|
+
}
|
|
9921
|
+
/**
|
|
9922
|
+
* Schema for already-constructed mail exchange (`MX`) DNS records.
|
|
9923
|
+
*
|
|
9924
|
+
* @stability experimental
|
|
9925
|
+
* @category schemas
|
|
9926
|
+
* @since 4.0.0
|
|
9927
|
+
*/
|
|
9928
|
+
export declare const DnsMxRecord: DnsMxRecord;
|
|
9929
|
+
/**
|
|
9930
|
+
* Type-level representation of {@link DnsNaptrRecord}.
|
|
9931
|
+
*
|
|
9932
|
+
* @stability experimental
|
|
9933
|
+
* @category models
|
|
9934
|
+
* @since 4.0.0
|
|
9935
|
+
*/
|
|
9936
|
+
export interface DnsNaptrRecord extends declare<Dns_.Naptr> {
|
|
9937
|
+
readonly "Rebuild": DnsNaptrRecord;
|
|
9938
|
+
}
|
|
9939
|
+
/**
|
|
9940
|
+
* Schema for already-constructed naming authority pointer (`NAPTR`) DNS records.
|
|
9941
|
+
*
|
|
9942
|
+
* @stability experimental
|
|
9943
|
+
* @category schemas
|
|
9944
|
+
* @since 4.0.0
|
|
9945
|
+
*/
|
|
9946
|
+
export declare const DnsNaptrRecord: DnsNaptrRecord;
|
|
9947
|
+
/**
|
|
9948
|
+
* Type-level representation of {@link DnsNsRecord}.
|
|
9949
|
+
*
|
|
9950
|
+
* @stability experimental
|
|
9951
|
+
* @category models
|
|
9952
|
+
* @since 4.0.0
|
|
9953
|
+
*/
|
|
9954
|
+
export interface DnsNsRecord extends declare<Dns_.Ns> {
|
|
9955
|
+
readonly "Rebuild": DnsNsRecord;
|
|
9956
|
+
}
|
|
9957
|
+
/**
|
|
9958
|
+
* Schema for already-constructed name server (`NS`) DNS records.
|
|
9959
|
+
*
|
|
9960
|
+
* @stability experimental
|
|
9961
|
+
* @category schemas
|
|
9962
|
+
* @since 4.0.0
|
|
9963
|
+
*/
|
|
9964
|
+
export declare const DnsNsRecord: DnsNsRecord;
|
|
9965
|
+
/**
|
|
9966
|
+
* Type-level representation of {@link DnsPtrRecord}.
|
|
9967
|
+
*
|
|
9968
|
+
* @stability experimental
|
|
9969
|
+
* @category models
|
|
9970
|
+
* @since 4.0.0
|
|
9971
|
+
*/
|
|
9972
|
+
export interface DnsPtrRecord extends declare<Dns_.Ptr> {
|
|
9973
|
+
readonly "Rebuild": DnsPtrRecord;
|
|
9974
|
+
}
|
|
9975
|
+
/**
|
|
9976
|
+
* Schema for already-constructed pointer (`PTR`) DNS records.
|
|
9977
|
+
*
|
|
9978
|
+
* @stability experimental
|
|
9979
|
+
* @category schemas
|
|
9980
|
+
* @since 4.0.0
|
|
9981
|
+
*/
|
|
9982
|
+
export declare const DnsPtrRecord: DnsPtrRecord;
|
|
9983
|
+
/**
|
|
9984
|
+
* Type-level representation of {@link DnsSoaRecord}.
|
|
9985
|
+
*
|
|
9986
|
+
* @stability experimental
|
|
9987
|
+
* @category models
|
|
9988
|
+
* @since 4.0.0
|
|
9989
|
+
*/
|
|
9990
|
+
export interface DnsSoaRecord extends declare<Dns_.Soa> {
|
|
9991
|
+
readonly "Rebuild": DnsSoaRecord;
|
|
9992
|
+
}
|
|
9993
|
+
/**
|
|
9994
|
+
* Schema for already-constructed start of authority (`SOA`) DNS records.
|
|
9995
|
+
*
|
|
9996
|
+
* @stability experimental
|
|
9997
|
+
* @category schemas
|
|
9998
|
+
* @since 4.0.0
|
|
9999
|
+
*/
|
|
10000
|
+
export declare const DnsSoaRecord: DnsSoaRecord;
|
|
10001
|
+
/**
|
|
10002
|
+
* Type-level representation of {@link DnsSrvRecord}.
|
|
10003
|
+
*
|
|
10004
|
+
* @stability experimental
|
|
10005
|
+
* @category models
|
|
10006
|
+
* @since 4.0.0
|
|
10007
|
+
*/
|
|
10008
|
+
export interface DnsSrvRecord extends declare<Dns_.Srv> {
|
|
10009
|
+
readonly "Rebuild": DnsSrvRecord;
|
|
10010
|
+
}
|
|
10011
|
+
/**
|
|
10012
|
+
* Schema for already-constructed service locator (`SRV`) DNS records.
|
|
10013
|
+
*
|
|
10014
|
+
* @stability experimental
|
|
10015
|
+
* @category schemas
|
|
10016
|
+
* @since 4.0.0
|
|
10017
|
+
*/
|
|
10018
|
+
export declare const DnsSrvRecord: DnsSrvRecord;
|
|
10019
|
+
/**
|
|
10020
|
+
* Type-level representation of {@link DnsTlsaRecord}.
|
|
10021
|
+
*
|
|
10022
|
+
* @stability experimental
|
|
10023
|
+
* @category models
|
|
10024
|
+
* @since 4.0.0
|
|
10025
|
+
*/
|
|
10026
|
+
export interface DnsTlsaRecord extends declare<Dns_.Tlsa> {
|
|
10027
|
+
readonly "Rebuild": DnsTlsaRecord;
|
|
10028
|
+
}
|
|
10029
|
+
/**
|
|
10030
|
+
* Schema for already-constructed TLS authentication (`TLSA`) DNS records.
|
|
10031
|
+
*
|
|
10032
|
+
* **Details**
|
|
10033
|
+
*
|
|
10034
|
+
* The default JSON serializer encodes the certificate association `data` as a
|
|
10035
|
+
* hex string.
|
|
10036
|
+
*
|
|
10037
|
+
* @stability experimental
|
|
10038
|
+
* @category schemas
|
|
10039
|
+
* @since 4.0.0
|
|
10040
|
+
*/
|
|
10041
|
+
export declare const DnsTlsaRecord: DnsTlsaRecord;
|
|
10042
|
+
/**
|
|
10043
|
+
* Type-level representation of {@link DnsTxtRecord}.
|
|
10044
|
+
*
|
|
10045
|
+
* @stability experimental
|
|
10046
|
+
* @category models
|
|
10047
|
+
* @since 4.0.0
|
|
10048
|
+
*/
|
|
10049
|
+
export interface DnsTxtRecord extends declare<Dns_.Txt> {
|
|
10050
|
+
readonly "Rebuild": DnsTxtRecord;
|
|
10051
|
+
}
|
|
10052
|
+
/**
|
|
10053
|
+
* Schema for already-constructed text (`TXT`) DNS records.
|
|
10054
|
+
*
|
|
10055
|
+
* @stability experimental
|
|
10056
|
+
* @category schemas
|
|
10057
|
+
* @since 4.0.0
|
|
10058
|
+
*/
|
|
10059
|
+
export declare const DnsTxtRecord: DnsTxtRecord;
|
|
10060
|
+
/**
|
|
10061
|
+
* Type-level representation of {@link DnsRecord}.
|
|
10062
|
+
*
|
|
10063
|
+
* @stability experimental
|
|
10064
|
+
* @category models
|
|
10065
|
+
* @since 4.0.0
|
|
10066
|
+
*/
|
|
10067
|
+
export interface DnsRecord extends Union<readonly [
|
|
10068
|
+
DnsARecord,
|
|
10069
|
+
DnsAaaaRecord,
|
|
10070
|
+
DnsCaaRecord,
|
|
10071
|
+
DnsCnameRecord,
|
|
10072
|
+
DnsMxRecord,
|
|
10073
|
+
DnsNaptrRecord,
|
|
10074
|
+
DnsNsRecord,
|
|
10075
|
+
DnsPtrRecord,
|
|
10076
|
+
DnsSoaRecord,
|
|
10077
|
+
DnsSrvRecord,
|
|
10078
|
+
DnsTlsaRecord,
|
|
10079
|
+
DnsTxtRecord
|
|
10080
|
+
]> {
|
|
10081
|
+
readonly "Rebuild": DnsRecord;
|
|
10082
|
+
}
|
|
10083
|
+
/**
|
|
10084
|
+
* Schema for already-constructed DNS records of any supported record type.
|
|
10085
|
+
*
|
|
10086
|
+
* **Details**
|
|
10087
|
+
*
|
|
10088
|
+
* The default JSON serializer encodes records as objects tagged by record type,
|
|
10089
|
+
* with addresses and names as canonical strings, SOA timers as whole seconds,
|
|
10090
|
+
* and TLSA data as hex, such as
|
|
10091
|
+
* `{ "_tag": "SRV", "target": "db.internal", "port": 5432, "priority": 10, "weight": 5 }`.
|
|
10092
|
+
* Decoding accepts only canonical addresses and normalized domain names, and
|
|
10093
|
+
* reports invalid fields with their path.
|
|
10094
|
+
*
|
|
10095
|
+
* @stability experimental
|
|
10096
|
+
* @category schemas
|
|
10097
|
+
* @since 4.0.0
|
|
10098
|
+
*/
|
|
10099
|
+
export declare const DnsRecord: DnsRecord;
|
|
9632
10100
|
/**
|
|
9633
10101
|
* Type-level representation returned by {@link Exit}.
|
|
9634
10102
|
*
|
|
@@ -10334,6 +10802,10 @@ export interface Class<Self, S extends Constraint & {
|
|
|
10334
10802
|
*
|
|
10335
10803
|
* **Gotchas**
|
|
10336
10804
|
*
|
|
10805
|
+
* Fields with the same name replace inherited fields. Use this to refine
|
|
10806
|
+
* validation or change encoding. Effect does not check compatibility; the
|
|
10807
|
+
* caller must ensure the replacement preserves the base class contract.
|
|
10808
|
+
*
|
|
10337
10809
|
* Checks from a `Struct` argument are evaluated against the full subclass
|
|
10338
10810
|
* value after inherited and extension fields are merged. Object-wide checks
|
|
10339
10811
|
* such as `isMaxProperties` count inherited fields too.
|