domainkit 0.6.0 → 0.8.0
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/README.md +20 -18
- package/dist/{canonical-json-9x7gHIoS.mjs → canonical-json-CQYKsZw7.mjs} +10 -4
- package/dist/canonical-json-CQYKsZw7.mjs.map +1 -0
- package/dist/{connect-Db830jad.d.mts → connect-D-X8T9W8.d.mts} +305 -95
- package/dist/{connect-ks3cpqBD.mjs → connect-oI8hcMxc.mjs} +4 -4
- package/dist/connect-oI8hcMxc.mjs.map +1 -0
- package/dist/{connection-DuYDgWir.d.mts → connection-Dp6ZdSo8.d.mts} +2 -2
- package/dist/{connection-api-B__0M3PA.d.mts → connection-api-lqG1nBtD.d.mts} +2 -2
- package/dist/index.d.mts +703 -34
- package/dist/index.mjs +137 -30
- package/dist/index.mjs.map +1 -1
- package/dist/{managed-dns-connections-CaXts84E.mjs → managed-dns-connections-C3A_GBaz.mjs} +2 -2
- package/dist/{managed-dns-connections-CaXts84E.mjs.map → managed-dns-connections-C3A_GBaz.mjs.map} +1 -1
- package/dist/promise.d.mts +72 -13
- package/dist/promise.mjs +13 -8
- package/dist/promise.mjs.map +1 -1
- package/dist/{resolver-DxJPsq6l.mjs → resolver-BeGz1ukw.mjs} +132 -50
- package/dist/resolver-BeGz1ukw.mjs.map +1 -0
- package/dist/{resolver-DUAIlm2I.d.mts → resolver-xoSwyXDJ.d.mts} +889 -15
- package/dist/server.d.mts +3 -3
- package/dist/server.mjs +3 -3
- package/dist/testing.d.mts +2 -2
- package/dist/testing.mjs +5 -7
- package/dist/testing.mjs.map +1 -1
- package/dist/{verify-DAtUAEeg.mjs → verify-DvGPb5C9.mjs} +51 -45
- package/dist/verify-DvGPb5C9.mjs.map +1 -0
- package/dist/{verify-yAy-r9no.d.mts → verify-FpunAcM7.d.mts} +83 -6
- package/package.json +4 -2
- package/dist/canonical-json-9x7gHIoS.mjs.map +0 -1
- package/dist/connect-ks3cpqBD.mjs.map +0 -1
- package/dist/resolver-DxJPsq6l.mjs.map +0 -1
- package/dist/verify-DAtUAEeg.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Nt as Error$3, ct as Service$2, ht as Encoded, kt as DomainName, mt as DnsRecord, ot as Error$2, st as Interface$2, v as CryptoError, wt as Type } from "./connect-
|
|
1
|
+
import { Nt as Error$3, ct as Service$2, ht as Encoded, kt as DomainName, mt as DnsRecord, ot as Error$2, st as Interface$2, v as CryptoError, wt as Type } from "./connect-D-X8T9W8.mjs";
|
|
2
2
|
import { Cause, Context, Crypto, Data, Effect, Layer, Schema } from "effect";
|
|
3
3
|
declare namespace zone_discovery_d_exports {
|
|
4
4
|
export { Candidate, Interface$1 as Interface, Outcome, Service$1 as Service, Source, make };
|
|
@@ -119,7 +119,7 @@ declare function make(sources: ReadonlyArray<Source>): Interface$1;
|
|
|
119
119
|
declare namespace types_d_exports {
|
|
120
120
|
export { ApplyReceipt, Authorization$1 as Authorization, DnsPlan, Operation$1 as Operation, PlanAuthorization, Receipt$1 as Receipt, Schema$1 as Schema, decode, decodeReceipt, encode, encodeReceipt };
|
|
121
121
|
}
|
|
122
|
-
declare const
|
|
122
|
+
declare const OperationSchema: Schema.TaggedUnion<{
|
|
123
123
|
readonly conflict: Schema.TaggedStruct<"conflict", {
|
|
124
124
|
readonly existing: Schema.$Array<Schema.Union<readonly [Schema.TaggedUnion<{
|
|
125
125
|
readonly A: Schema.TaggedStruct<"A", {
|
|
@@ -216,8 +216,7 @@ declare const Operation$1: Schema.TaggedUnion<{
|
|
|
216
216
|
readonly ttl: Schema.NullOr<Schema.Int>;
|
|
217
217
|
readonly value: Schema.String;
|
|
218
218
|
}>;
|
|
219
|
-
}>, Schema.
|
|
220
|
-
readonly _tag: Schema.Literal<"Opaque">;
|
|
219
|
+
}>, Schema.TaggedStruct<"Opaque", {
|
|
221
220
|
readonly name: Schema.String;
|
|
222
221
|
readonly providerRecordId: Schema.NullOr<Schema.String>;
|
|
223
222
|
readonly providerType: Schema.String;
|
|
@@ -521,7 +520,810 @@ declare const Operation$1: Schema.TaggedUnion<{
|
|
|
521
520
|
readonly ttlDrift: Schema.Boolean;
|
|
522
521
|
}>;
|
|
523
522
|
}>;
|
|
524
|
-
|
|
523
|
+
/** DNS plan operation schema and callable constructors for trusted plan values. */
|
|
524
|
+
declare const Operation$1: {
|
|
525
|
+
Schema: Schema.TaggedUnion<{
|
|
526
|
+
readonly conflict: Schema.TaggedStruct<"conflict", {
|
|
527
|
+
readonly existing: Schema.$Array<Schema.Union<readonly [Schema.TaggedUnion<{
|
|
528
|
+
readonly A: Schema.TaggedStruct<"A", {
|
|
529
|
+
readonly metadata: Schema.Struct<{
|
|
530
|
+
readonly ownership: Schema.String;
|
|
531
|
+
readonly provenance: Schema.String;
|
|
532
|
+
readonly purpose: Schema.String;
|
|
533
|
+
}>;
|
|
534
|
+
readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
535
|
+
readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
|
|
536
|
+
readonly ttl: Schema.NullOr<Schema.Int>;
|
|
537
|
+
readonly address: Schema.String;
|
|
538
|
+
}>;
|
|
539
|
+
readonly AAAA: Schema.TaggedStruct<"AAAA", {
|
|
540
|
+
readonly metadata: Schema.Struct<{
|
|
541
|
+
readonly ownership: Schema.String;
|
|
542
|
+
readonly provenance: Schema.String;
|
|
543
|
+
readonly purpose: Schema.String;
|
|
544
|
+
}>;
|
|
545
|
+
readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
546
|
+
readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
|
|
547
|
+
readonly ttl: Schema.NullOr<Schema.Int>;
|
|
548
|
+
readonly address: Schema.String;
|
|
549
|
+
}>;
|
|
550
|
+
readonly CAA: Schema.TaggedStruct<"CAA", {
|
|
551
|
+
readonly metadata: Schema.Struct<{
|
|
552
|
+
readonly ownership: Schema.String;
|
|
553
|
+
readonly provenance: Schema.String;
|
|
554
|
+
readonly purpose: Schema.String;
|
|
555
|
+
}>;
|
|
556
|
+
readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
557
|
+
readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
|
|
558
|
+
readonly ttl: Schema.NullOr<Schema.Int>;
|
|
559
|
+
readonly flags: Schema.Int;
|
|
560
|
+
readonly tag: Schema.Literals<readonly ["issue", "issuewild", "iodef"]>;
|
|
561
|
+
readonly value: Schema.String;
|
|
562
|
+
}>;
|
|
563
|
+
readonly CNAME: Schema.TaggedStruct<"CNAME", {
|
|
564
|
+
readonly metadata: Schema.Struct<{
|
|
565
|
+
readonly ownership: Schema.String;
|
|
566
|
+
readonly provenance: Schema.String;
|
|
567
|
+
readonly purpose: Schema.String;
|
|
568
|
+
}>;
|
|
569
|
+
readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
570
|
+
readonly ttl: Schema.NullOr<Schema.Int>;
|
|
571
|
+
readonly policy: Schema.Literal<"exclusive">;
|
|
572
|
+
readonly target: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
573
|
+
}>;
|
|
574
|
+
readonly MX: Schema.TaggedStruct<"MX", {
|
|
575
|
+
readonly metadata: Schema.Struct<{
|
|
576
|
+
readonly ownership: Schema.String;
|
|
577
|
+
readonly provenance: Schema.String;
|
|
578
|
+
readonly purpose: Schema.String;
|
|
579
|
+
}>;
|
|
580
|
+
readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
581
|
+
readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
|
|
582
|
+
readonly ttl: Schema.NullOr<Schema.Int>;
|
|
583
|
+
readonly exchange: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
584
|
+
readonly priority: Schema.Int;
|
|
585
|
+
}>;
|
|
586
|
+
readonly NS: Schema.TaggedStruct<"NS", {
|
|
587
|
+
readonly metadata: Schema.Struct<{
|
|
588
|
+
readonly ownership: Schema.String;
|
|
589
|
+
readonly provenance: Schema.String;
|
|
590
|
+
readonly purpose: Schema.String;
|
|
591
|
+
}>;
|
|
592
|
+
readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
593
|
+
readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
|
|
594
|
+
readonly ttl: Schema.NullOr<Schema.Int>;
|
|
595
|
+
readonly target: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
596
|
+
}>;
|
|
597
|
+
readonly SRV: Schema.TaggedStruct<"SRV", {
|
|
598
|
+
readonly metadata: Schema.Struct<{
|
|
599
|
+
readonly ownership: Schema.String;
|
|
600
|
+
readonly provenance: Schema.String;
|
|
601
|
+
readonly purpose: Schema.String;
|
|
602
|
+
}>;
|
|
603
|
+
readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
604
|
+
readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
|
|
605
|
+
readonly ttl: Schema.NullOr<Schema.Int>;
|
|
606
|
+
readonly port: Schema.Int;
|
|
607
|
+
readonly priority: Schema.Int;
|
|
608
|
+
readonly target: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
609
|
+
readonly weight: Schema.Int;
|
|
610
|
+
}>;
|
|
611
|
+
readonly TXT: Schema.TaggedStruct<"TXT", {
|
|
612
|
+
readonly metadata: Schema.Struct<{
|
|
613
|
+
readonly ownership: Schema.String;
|
|
614
|
+
readonly provenance: Schema.String;
|
|
615
|
+
readonly purpose: Schema.String;
|
|
616
|
+
}>;
|
|
617
|
+
readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
618
|
+
readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
|
|
619
|
+
readonly ttl: Schema.NullOr<Schema.Int>;
|
|
620
|
+
readonly value: Schema.String;
|
|
621
|
+
}>;
|
|
622
|
+
}>, Schema.TaggedStruct<"Opaque", {
|
|
623
|
+
readonly name: Schema.String;
|
|
624
|
+
readonly providerRecordId: Schema.NullOr<Schema.String>;
|
|
625
|
+
readonly providerType: Schema.String;
|
|
626
|
+
}>]>>;
|
|
627
|
+
readonly id: Schema.String;
|
|
628
|
+
readonly reason: Schema.String;
|
|
629
|
+
readonly requirement: Schema.TaggedUnion<{
|
|
630
|
+
readonly A: Schema.TaggedStruct<"A", {
|
|
631
|
+
readonly metadata: Schema.Struct<{
|
|
632
|
+
readonly ownership: Schema.String;
|
|
633
|
+
readonly provenance: Schema.String;
|
|
634
|
+
readonly purpose: Schema.String;
|
|
635
|
+
}>;
|
|
636
|
+
readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
637
|
+
readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
|
|
638
|
+
readonly ttl: Schema.NullOr<Schema.Int>;
|
|
639
|
+
readonly address: Schema.String;
|
|
640
|
+
}>;
|
|
641
|
+
readonly AAAA: Schema.TaggedStruct<"AAAA", {
|
|
642
|
+
readonly metadata: Schema.Struct<{
|
|
643
|
+
readonly ownership: Schema.String;
|
|
644
|
+
readonly provenance: Schema.String;
|
|
645
|
+
readonly purpose: Schema.String;
|
|
646
|
+
}>;
|
|
647
|
+
readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
648
|
+
readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
|
|
649
|
+
readonly ttl: Schema.NullOr<Schema.Int>;
|
|
650
|
+
readonly address: Schema.String;
|
|
651
|
+
}>;
|
|
652
|
+
readonly CAA: Schema.TaggedStruct<"CAA", {
|
|
653
|
+
readonly metadata: Schema.Struct<{
|
|
654
|
+
readonly ownership: Schema.String;
|
|
655
|
+
readonly provenance: Schema.String;
|
|
656
|
+
readonly purpose: Schema.String;
|
|
657
|
+
}>;
|
|
658
|
+
readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
659
|
+
readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
|
|
660
|
+
readonly ttl: Schema.NullOr<Schema.Int>;
|
|
661
|
+
readonly flags: Schema.Int;
|
|
662
|
+
readonly tag: Schema.Literals<readonly ["issue", "issuewild", "iodef"]>;
|
|
663
|
+
readonly value: Schema.String;
|
|
664
|
+
}>;
|
|
665
|
+
readonly CNAME: Schema.TaggedStruct<"CNAME", {
|
|
666
|
+
readonly metadata: Schema.Struct<{
|
|
667
|
+
readonly ownership: Schema.String;
|
|
668
|
+
readonly provenance: Schema.String;
|
|
669
|
+
readonly purpose: Schema.String;
|
|
670
|
+
}>;
|
|
671
|
+
readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
672
|
+
readonly ttl: Schema.NullOr<Schema.Int>;
|
|
673
|
+
readonly policy: Schema.Literal<"exclusive">;
|
|
674
|
+
readonly target: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
675
|
+
}>;
|
|
676
|
+
readonly MX: Schema.TaggedStruct<"MX", {
|
|
677
|
+
readonly metadata: Schema.Struct<{
|
|
678
|
+
readonly ownership: Schema.String;
|
|
679
|
+
readonly provenance: Schema.String;
|
|
680
|
+
readonly purpose: Schema.String;
|
|
681
|
+
}>;
|
|
682
|
+
readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
683
|
+
readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
|
|
684
|
+
readonly ttl: Schema.NullOr<Schema.Int>;
|
|
685
|
+
readonly exchange: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
686
|
+
readonly priority: Schema.Int;
|
|
687
|
+
}>;
|
|
688
|
+
readonly NS: Schema.TaggedStruct<"NS", {
|
|
689
|
+
readonly metadata: Schema.Struct<{
|
|
690
|
+
readonly ownership: Schema.String;
|
|
691
|
+
readonly provenance: Schema.String;
|
|
692
|
+
readonly purpose: Schema.String;
|
|
693
|
+
}>;
|
|
694
|
+
readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
695
|
+
readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
|
|
696
|
+
readonly ttl: Schema.NullOr<Schema.Int>;
|
|
697
|
+
readonly target: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
698
|
+
}>;
|
|
699
|
+
readonly SRV: Schema.TaggedStruct<"SRV", {
|
|
700
|
+
readonly metadata: Schema.Struct<{
|
|
701
|
+
readonly ownership: Schema.String;
|
|
702
|
+
readonly provenance: Schema.String;
|
|
703
|
+
readonly purpose: Schema.String;
|
|
704
|
+
}>;
|
|
705
|
+
readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
706
|
+
readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
|
|
707
|
+
readonly ttl: Schema.NullOr<Schema.Int>;
|
|
708
|
+
readonly port: Schema.Int;
|
|
709
|
+
readonly priority: Schema.Int;
|
|
710
|
+
readonly target: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
711
|
+
readonly weight: Schema.Int;
|
|
712
|
+
}>;
|
|
713
|
+
readonly TXT: Schema.TaggedStruct<"TXT", {
|
|
714
|
+
readonly metadata: Schema.Struct<{
|
|
715
|
+
readonly ownership: Schema.String;
|
|
716
|
+
readonly provenance: Schema.String;
|
|
717
|
+
readonly purpose: Schema.String;
|
|
718
|
+
}>;
|
|
719
|
+
readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
720
|
+
readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
|
|
721
|
+
readonly ttl: Schema.NullOr<Schema.Int>;
|
|
722
|
+
readonly value: Schema.String;
|
|
723
|
+
}>;
|
|
724
|
+
}>;
|
|
725
|
+
}>;
|
|
726
|
+
readonly create: Schema.TaggedStruct<"create", {
|
|
727
|
+
readonly id: Schema.String;
|
|
728
|
+
readonly requirement: Schema.TaggedUnion<{
|
|
729
|
+
readonly A: Schema.TaggedStruct<"A", {
|
|
730
|
+
readonly metadata: Schema.Struct<{
|
|
731
|
+
readonly ownership: Schema.String;
|
|
732
|
+
readonly provenance: Schema.String;
|
|
733
|
+
readonly purpose: Schema.String;
|
|
734
|
+
}>;
|
|
735
|
+
readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
736
|
+
readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
|
|
737
|
+
readonly ttl: Schema.NullOr<Schema.Int>;
|
|
738
|
+
readonly address: Schema.String;
|
|
739
|
+
}>;
|
|
740
|
+
readonly AAAA: Schema.TaggedStruct<"AAAA", {
|
|
741
|
+
readonly metadata: Schema.Struct<{
|
|
742
|
+
readonly ownership: Schema.String;
|
|
743
|
+
readonly provenance: Schema.String;
|
|
744
|
+
readonly purpose: Schema.String;
|
|
745
|
+
}>;
|
|
746
|
+
readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
747
|
+
readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
|
|
748
|
+
readonly ttl: Schema.NullOr<Schema.Int>;
|
|
749
|
+
readonly address: Schema.String;
|
|
750
|
+
}>;
|
|
751
|
+
readonly CAA: Schema.TaggedStruct<"CAA", {
|
|
752
|
+
readonly metadata: Schema.Struct<{
|
|
753
|
+
readonly ownership: Schema.String;
|
|
754
|
+
readonly provenance: Schema.String;
|
|
755
|
+
readonly purpose: Schema.String;
|
|
756
|
+
}>;
|
|
757
|
+
readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
758
|
+
readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
|
|
759
|
+
readonly ttl: Schema.NullOr<Schema.Int>;
|
|
760
|
+
readonly flags: Schema.Int;
|
|
761
|
+
readonly tag: Schema.Literals<readonly ["issue", "issuewild", "iodef"]>;
|
|
762
|
+
readonly value: Schema.String;
|
|
763
|
+
}>;
|
|
764
|
+
readonly CNAME: Schema.TaggedStruct<"CNAME", {
|
|
765
|
+
readonly metadata: Schema.Struct<{
|
|
766
|
+
readonly ownership: Schema.String;
|
|
767
|
+
readonly provenance: Schema.String;
|
|
768
|
+
readonly purpose: Schema.String;
|
|
769
|
+
}>;
|
|
770
|
+
readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
771
|
+
readonly ttl: Schema.NullOr<Schema.Int>;
|
|
772
|
+
readonly policy: Schema.Literal<"exclusive">;
|
|
773
|
+
readonly target: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
774
|
+
}>;
|
|
775
|
+
readonly MX: Schema.TaggedStruct<"MX", {
|
|
776
|
+
readonly metadata: Schema.Struct<{
|
|
777
|
+
readonly ownership: Schema.String;
|
|
778
|
+
readonly provenance: Schema.String;
|
|
779
|
+
readonly purpose: Schema.String;
|
|
780
|
+
}>;
|
|
781
|
+
readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
782
|
+
readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
|
|
783
|
+
readonly ttl: Schema.NullOr<Schema.Int>;
|
|
784
|
+
readonly exchange: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
785
|
+
readonly priority: Schema.Int;
|
|
786
|
+
}>;
|
|
787
|
+
readonly NS: Schema.TaggedStruct<"NS", {
|
|
788
|
+
readonly metadata: Schema.Struct<{
|
|
789
|
+
readonly ownership: Schema.String;
|
|
790
|
+
readonly provenance: Schema.String;
|
|
791
|
+
readonly purpose: Schema.String;
|
|
792
|
+
}>;
|
|
793
|
+
readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
794
|
+
readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
|
|
795
|
+
readonly ttl: Schema.NullOr<Schema.Int>;
|
|
796
|
+
readonly target: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
797
|
+
}>;
|
|
798
|
+
readonly SRV: Schema.TaggedStruct<"SRV", {
|
|
799
|
+
readonly metadata: Schema.Struct<{
|
|
800
|
+
readonly ownership: Schema.String;
|
|
801
|
+
readonly provenance: Schema.String;
|
|
802
|
+
readonly purpose: Schema.String;
|
|
803
|
+
}>;
|
|
804
|
+
readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
805
|
+
readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
|
|
806
|
+
readonly ttl: Schema.NullOr<Schema.Int>;
|
|
807
|
+
readonly port: Schema.Int;
|
|
808
|
+
readonly priority: Schema.Int;
|
|
809
|
+
readonly target: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
810
|
+
readonly weight: Schema.Int;
|
|
811
|
+
}>;
|
|
812
|
+
readonly TXT: Schema.TaggedStruct<"TXT", {
|
|
813
|
+
readonly metadata: Schema.Struct<{
|
|
814
|
+
readonly ownership: Schema.String;
|
|
815
|
+
readonly provenance: Schema.String;
|
|
816
|
+
readonly purpose: Schema.String;
|
|
817
|
+
}>;
|
|
818
|
+
readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
819
|
+
readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
|
|
820
|
+
readonly ttl: Schema.NullOr<Schema.Int>;
|
|
821
|
+
readonly value: Schema.String;
|
|
822
|
+
}>;
|
|
823
|
+
}>;
|
|
824
|
+
}>;
|
|
825
|
+
readonly noop: Schema.TaggedStruct<"noop", {
|
|
826
|
+
readonly id: Schema.String;
|
|
827
|
+
readonly requirement: Schema.TaggedUnion<{
|
|
828
|
+
readonly A: Schema.TaggedStruct<"A", {
|
|
829
|
+
readonly metadata: Schema.Struct<{
|
|
830
|
+
readonly ownership: Schema.String;
|
|
831
|
+
readonly provenance: Schema.String;
|
|
832
|
+
readonly purpose: Schema.String;
|
|
833
|
+
}>;
|
|
834
|
+
readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
835
|
+
readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
|
|
836
|
+
readonly ttl: Schema.NullOr<Schema.Int>;
|
|
837
|
+
readonly address: Schema.String;
|
|
838
|
+
}>;
|
|
839
|
+
readonly AAAA: Schema.TaggedStruct<"AAAA", {
|
|
840
|
+
readonly metadata: Schema.Struct<{
|
|
841
|
+
readonly ownership: Schema.String;
|
|
842
|
+
readonly provenance: Schema.String;
|
|
843
|
+
readonly purpose: Schema.String;
|
|
844
|
+
}>;
|
|
845
|
+
readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
846
|
+
readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
|
|
847
|
+
readonly ttl: Schema.NullOr<Schema.Int>;
|
|
848
|
+
readonly address: Schema.String;
|
|
849
|
+
}>;
|
|
850
|
+
readonly CAA: Schema.TaggedStruct<"CAA", {
|
|
851
|
+
readonly metadata: Schema.Struct<{
|
|
852
|
+
readonly ownership: Schema.String;
|
|
853
|
+
readonly provenance: Schema.String;
|
|
854
|
+
readonly purpose: Schema.String;
|
|
855
|
+
}>;
|
|
856
|
+
readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
857
|
+
readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
|
|
858
|
+
readonly ttl: Schema.NullOr<Schema.Int>;
|
|
859
|
+
readonly flags: Schema.Int;
|
|
860
|
+
readonly tag: Schema.Literals<readonly ["issue", "issuewild", "iodef"]>;
|
|
861
|
+
readonly value: Schema.String;
|
|
862
|
+
}>;
|
|
863
|
+
readonly CNAME: Schema.TaggedStruct<"CNAME", {
|
|
864
|
+
readonly metadata: Schema.Struct<{
|
|
865
|
+
readonly ownership: Schema.String;
|
|
866
|
+
readonly provenance: Schema.String;
|
|
867
|
+
readonly purpose: Schema.String;
|
|
868
|
+
}>;
|
|
869
|
+
readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
870
|
+
readonly ttl: Schema.NullOr<Schema.Int>;
|
|
871
|
+
readonly policy: Schema.Literal<"exclusive">;
|
|
872
|
+
readonly target: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
873
|
+
}>;
|
|
874
|
+
readonly MX: Schema.TaggedStruct<"MX", {
|
|
875
|
+
readonly metadata: Schema.Struct<{
|
|
876
|
+
readonly ownership: Schema.String;
|
|
877
|
+
readonly provenance: Schema.String;
|
|
878
|
+
readonly purpose: Schema.String;
|
|
879
|
+
}>;
|
|
880
|
+
readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
881
|
+
readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
|
|
882
|
+
readonly ttl: Schema.NullOr<Schema.Int>;
|
|
883
|
+
readonly exchange: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
884
|
+
readonly priority: Schema.Int;
|
|
885
|
+
}>;
|
|
886
|
+
readonly NS: Schema.TaggedStruct<"NS", {
|
|
887
|
+
readonly metadata: Schema.Struct<{
|
|
888
|
+
readonly ownership: Schema.String;
|
|
889
|
+
readonly provenance: Schema.String;
|
|
890
|
+
readonly purpose: Schema.String;
|
|
891
|
+
}>;
|
|
892
|
+
readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
893
|
+
readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
|
|
894
|
+
readonly ttl: Schema.NullOr<Schema.Int>;
|
|
895
|
+
readonly target: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
896
|
+
}>;
|
|
897
|
+
readonly SRV: Schema.TaggedStruct<"SRV", {
|
|
898
|
+
readonly metadata: Schema.Struct<{
|
|
899
|
+
readonly ownership: Schema.String;
|
|
900
|
+
readonly provenance: Schema.String;
|
|
901
|
+
readonly purpose: Schema.String;
|
|
902
|
+
}>;
|
|
903
|
+
readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
904
|
+
readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
|
|
905
|
+
readonly ttl: Schema.NullOr<Schema.Int>;
|
|
906
|
+
readonly port: Schema.Int;
|
|
907
|
+
readonly priority: Schema.Int;
|
|
908
|
+
readonly target: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
909
|
+
readonly weight: Schema.Int;
|
|
910
|
+
}>;
|
|
911
|
+
readonly TXT: Schema.TaggedStruct<"TXT", {
|
|
912
|
+
readonly metadata: Schema.Struct<{
|
|
913
|
+
readonly ownership: Schema.String;
|
|
914
|
+
readonly provenance: Schema.String;
|
|
915
|
+
readonly purpose: Schema.String;
|
|
916
|
+
}>;
|
|
917
|
+
readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
918
|
+
readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
|
|
919
|
+
readonly ttl: Schema.NullOr<Schema.Int>;
|
|
920
|
+
readonly value: Schema.String;
|
|
921
|
+
}>;
|
|
922
|
+
}>;
|
|
923
|
+
readonly ttlDrift: Schema.Boolean;
|
|
924
|
+
}>;
|
|
925
|
+
}>;
|
|
926
|
+
conflict: (input: Parameters<typeof OperationSchema.cases.conflict.make>[0]) => {
|
|
927
|
+
readonly _tag: "conflict";
|
|
928
|
+
readonly existing: readonly ({
|
|
929
|
+
readonly _tag: "A";
|
|
930
|
+
readonly metadata: {
|
|
931
|
+
readonly ownership: string;
|
|
932
|
+
readonly provenance: string;
|
|
933
|
+
readonly purpose: string;
|
|
934
|
+
};
|
|
935
|
+
readonly name: string & import("effect/Brand").Brand<"DomainName">;
|
|
936
|
+
readonly policy: "append" | "exclusive";
|
|
937
|
+
readonly ttl: number | null;
|
|
938
|
+
readonly address: string;
|
|
939
|
+
} | {
|
|
940
|
+
readonly _tag: "AAAA";
|
|
941
|
+
readonly metadata: {
|
|
942
|
+
readonly ownership: string;
|
|
943
|
+
readonly provenance: string;
|
|
944
|
+
readonly purpose: string;
|
|
945
|
+
};
|
|
946
|
+
readonly name: string & import("effect/Brand").Brand<"DomainName">;
|
|
947
|
+
readonly policy: "append" | "exclusive";
|
|
948
|
+
readonly ttl: number | null;
|
|
949
|
+
readonly address: string;
|
|
950
|
+
} | {
|
|
951
|
+
readonly _tag: "CAA";
|
|
952
|
+
readonly metadata: {
|
|
953
|
+
readonly ownership: string;
|
|
954
|
+
readonly provenance: string;
|
|
955
|
+
readonly purpose: string;
|
|
956
|
+
};
|
|
957
|
+
readonly name: string & import("effect/Brand").Brand<"DomainName">;
|
|
958
|
+
readonly policy: "append" | "exclusive";
|
|
959
|
+
readonly ttl: number | null;
|
|
960
|
+
readonly flags: number;
|
|
961
|
+
readonly tag: "iodef" | "issue" | "issuewild";
|
|
962
|
+
readonly value: string;
|
|
963
|
+
} | {
|
|
964
|
+
readonly _tag: "CNAME";
|
|
965
|
+
readonly metadata: {
|
|
966
|
+
readonly ownership: string;
|
|
967
|
+
readonly provenance: string;
|
|
968
|
+
readonly purpose: string;
|
|
969
|
+
};
|
|
970
|
+
readonly name: string & import("effect/Brand").Brand<"DomainName">;
|
|
971
|
+
readonly ttl: number | null;
|
|
972
|
+
readonly policy: "exclusive";
|
|
973
|
+
readonly target: string & import("effect/Brand").Brand<"DomainName">;
|
|
974
|
+
} | {
|
|
975
|
+
readonly _tag: "MX";
|
|
976
|
+
readonly metadata: {
|
|
977
|
+
readonly ownership: string;
|
|
978
|
+
readonly provenance: string;
|
|
979
|
+
readonly purpose: string;
|
|
980
|
+
};
|
|
981
|
+
readonly name: string & import("effect/Brand").Brand<"DomainName">;
|
|
982
|
+
readonly policy: "append" | "exclusive";
|
|
983
|
+
readonly ttl: number | null;
|
|
984
|
+
readonly exchange: string & import("effect/Brand").Brand<"DomainName">;
|
|
985
|
+
readonly priority: number;
|
|
986
|
+
} | {
|
|
987
|
+
readonly _tag: "NS";
|
|
988
|
+
readonly metadata: {
|
|
989
|
+
readonly ownership: string;
|
|
990
|
+
readonly provenance: string;
|
|
991
|
+
readonly purpose: string;
|
|
992
|
+
};
|
|
993
|
+
readonly name: string & import("effect/Brand").Brand<"DomainName">;
|
|
994
|
+
readonly policy: "append" | "exclusive";
|
|
995
|
+
readonly ttl: number | null;
|
|
996
|
+
readonly target: string & import("effect/Brand").Brand<"DomainName">;
|
|
997
|
+
} | {
|
|
998
|
+
readonly _tag: "SRV";
|
|
999
|
+
readonly metadata: {
|
|
1000
|
+
readonly ownership: string;
|
|
1001
|
+
readonly provenance: string;
|
|
1002
|
+
readonly purpose: string;
|
|
1003
|
+
};
|
|
1004
|
+
readonly name: string & import("effect/Brand").Brand<"DomainName">;
|
|
1005
|
+
readonly policy: "append" | "exclusive";
|
|
1006
|
+
readonly ttl: number | null;
|
|
1007
|
+
readonly port: number;
|
|
1008
|
+
readonly priority: number;
|
|
1009
|
+
readonly target: string & import("effect/Brand").Brand<"DomainName">;
|
|
1010
|
+
readonly weight: number;
|
|
1011
|
+
} | {
|
|
1012
|
+
readonly _tag: "TXT";
|
|
1013
|
+
readonly metadata: {
|
|
1014
|
+
readonly ownership: string;
|
|
1015
|
+
readonly provenance: string;
|
|
1016
|
+
readonly purpose: string;
|
|
1017
|
+
};
|
|
1018
|
+
readonly name: string & import("effect/Brand").Brand<"DomainName">;
|
|
1019
|
+
readonly policy: "append" | "exclusive";
|
|
1020
|
+
readonly ttl: number | null;
|
|
1021
|
+
readonly value: string;
|
|
1022
|
+
} | {
|
|
1023
|
+
readonly _tag: "Opaque";
|
|
1024
|
+
readonly name: string;
|
|
1025
|
+
readonly providerRecordId: string | null;
|
|
1026
|
+
readonly providerType: string;
|
|
1027
|
+
})[];
|
|
1028
|
+
readonly id: string;
|
|
1029
|
+
readonly reason: string;
|
|
1030
|
+
readonly requirement: {
|
|
1031
|
+
readonly _tag: "A";
|
|
1032
|
+
readonly metadata: {
|
|
1033
|
+
readonly ownership: string;
|
|
1034
|
+
readonly provenance: string;
|
|
1035
|
+
readonly purpose: string;
|
|
1036
|
+
};
|
|
1037
|
+
readonly name: string & import("effect/Brand").Brand<"DomainName">;
|
|
1038
|
+
readonly policy: "append" | "exclusive";
|
|
1039
|
+
readonly ttl: number | null;
|
|
1040
|
+
readonly address: string;
|
|
1041
|
+
} | {
|
|
1042
|
+
readonly _tag: "AAAA";
|
|
1043
|
+
readonly metadata: {
|
|
1044
|
+
readonly ownership: string;
|
|
1045
|
+
readonly provenance: string;
|
|
1046
|
+
readonly purpose: string;
|
|
1047
|
+
};
|
|
1048
|
+
readonly name: string & import("effect/Brand").Brand<"DomainName">;
|
|
1049
|
+
readonly policy: "append" | "exclusive";
|
|
1050
|
+
readonly ttl: number | null;
|
|
1051
|
+
readonly address: string;
|
|
1052
|
+
} | {
|
|
1053
|
+
readonly _tag: "CAA";
|
|
1054
|
+
readonly metadata: {
|
|
1055
|
+
readonly ownership: string;
|
|
1056
|
+
readonly provenance: string;
|
|
1057
|
+
readonly purpose: string;
|
|
1058
|
+
};
|
|
1059
|
+
readonly name: string & import("effect/Brand").Brand<"DomainName">;
|
|
1060
|
+
readonly policy: "append" | "exclusive";
|
|
1061
|
+
readonly ttl: number | null;
|
|
1062
|
+
readonly flags: number;
|
|
1063
|
+
readonly tag: "iodef" | "issue" | "issuewild";
|
|
1064
|
+
readonly value: string;
|
|
1065
|
+
} | {
|
|
1066
|
+
readonly _tag: "CNAME";
|
|
1067
|
+
readonly metadata: {
|
|
1068
|
+
readonly ownership: string;
|
|
1069
|
+
readonly provenance: string;
|
|
1070
|
+
readonly purpose: string;
|
|
1071
|
+
};
|
|
1072
|
+
readonly name: string & import("effect/Brand").Brand<"DomainName">;
|
|
1073
|
+
readonly ttl: number | null;
|
|
1074
|
+
readonly policy: "exclusive";
|
|
1075
|
+
readonly target: string & import("effect/Brand").Brand<"DomainName">;
|
|
1076
|
+
} | {
|
|
1077
|
+
readonly _tag: "MX";
|
|
1078
|
+
readonly metadata: {
|
|
1079
|
+
readonly ownership: string;
|
|
1080
|
+
readonly provenance: string;
|
|
1081
|
+
readonly purpose: string;
|
|
1082
|
+
};
|
|
1083
|
+
readonly name: string & import("effect/Brand").Brand<"DomainName">;
|
|
1084
|
+
readonly policy: "append" | "exclusive";
|
|
1085
|
+
readonly ttl: number | null;
|
|
1086
|
+
readonly exchange: string & import("effect/Brand").Brand<"DomainName">;
|
|
1087
|
+
readonly priority: number;
|
|
1088
|
+
} | {
|
|
1089
|
+
readonly _tag: "NS";
|
|
1090
|
+
readonly metadata: {
|
|
1091
|
+
readonly ownership: string;
|
|
1092
|
+
readonly provenance: string;
|
|
1093
|
+
readonly purpose: string;
|
|
1094
|
+
};
|
|
1095
|
+
readonly name: string & import("effect/Brand").Brand<"DomainName">;
|
|
1096
|
+
readonly policy: "append" | "exclusive";
|
|
1097
|
+
readonly ttl: number | null;
|
|
1098
|
+
readonly target: string & import("effect/Brand").Brand<"DomainName">;
|
|
1099
|
+
} | {
|
|
1100
|
+
readonly _tag: "SRV";
|
|
1101
|
+
readonly metadata: {
|
|
1102
|
+
readonly ownership: string;
|
|
1103
|
+
readonly provenance: string;
|
|
1104
|
+
readonly purpose: string;
|
|
1105
|
+
};
|
|
1106
|
+
readonly name: string & import("effect/Brand").Brand<"DomainName">;
|
|
1107
|
+
readonly policy: "append" | "exclusive";
|
|
1108
|
+
readonly ttl: number | null;
|
|
1109
|
+
readonly port: number;
|
|
1110
|
+
readonly priority: number;
|
|
1111
|
+
readonly target: string & import("effect/Brand").Brand<"DomainName">;
|
|
1112
|
+
readonly weight: number;
|
|
1113
|
+
} | {
|
|
1114
|
+
readonly _tag: "TXT";
|
|
1115
|
+
readonly metadata: {
|
|
1116
|
+
readonly ownership: string;
|
|
1117
|
+
readonly provenance: string;
|
|
1118
|
+
readonly purpose: string;
|
|
1119
|
+
};
|
|
1120
|
+
readonly name: string & import("effect/Brand").Brand<"DomainName">;
|
|
1121
|
+
readonly policy: "append" | "exclusive";
|
|
1122
|
+
readonly ttl: number | null;
|
|
1123
|
+
readonly value: string;
|
|
1124
|
+
};
|
|
1125
|
+
};
|
|
1126
|
+
create: (input: Parameters<typeof OperationSchema.cases.create.make>[0]) => {
|
|
1127
|
+
readonly _tag: "create";
|
|
1128
|
+
readonly id: string;
|
|
1129
|
+
readonly requirement: {
|
|
1130
|
+
readonly _tag: "A";
|
|
1131
|
+
readonly metadata: {
|
|
1132
|
+
readonly ownership: string;
|
|
1133
|
+
readonly provenance: string;
|
|
1134
|
+
readonly purpose: string;
|
|
1135
|
+
};
|
|
1136
|
+
readonly name: string & import("effect/Brand").Brand<"DomainName">;
|
|
1137
|
+
readonly policy: "append" | "exclusive";
|
|
1138
|
+
readonly ttl: number | null;
|
|
1139
|
+
readonly address: string;
|
|
1140
|
+
} | {
|
|
1141
|
+
readonly _tag: "AAAA";
|
|
1142
|
+
readonly metadata: {
|
|
1143
|
+
readonly ownership: string;
|
|
1144
|
+
readonly provenance: string;
|
|
1145
|
+
readonly purpose: string;
|
|
1146
|
+
};
|
|
1147
|
+
readonly name: string & import("effect/Brand").Brand<"DomainName">;
|
|
1148
|
+
readonly policy: "append" | "exclusive";
|
|
1149
|
+
readonly ttl: number | null;
|
|
1150
|
+
readonly address: string;
|
|
1151
|
+
} | {
|
|
1152
|
+
readonly _tag: "CAA";
|
|
1153
|
+
readonly metadata: {
|
|
1154
|
+
readonly ownership: string;
|
|
1155
|
+
readonly provenance: string;
|
|
1156
|
+
readonly purpose: string;
|
|
1157
|
+
};
|
|
1158
|
+
readonly name: string & import("effect/Brand").Brand<"DomainName">;
|
|
1159
|
+
readonly policy: "append" | "exclusive";
|
|
1160
|
+
readonly ttl: number | null;
|
|
1161
|
+
readonly flags: number;
|
|
1162
|
+
readonly tag: "iodef" | "issue" | "issuewild";
|
|
1163
|
+
readonly value: string;
|
|
1164
|
+
} | {
|
|
1165
|
+
readonly _tag: "CNAME";
|
|
1166
|
+
readonly metadata: {
|
|
1167
|
+
readonly ownership: string;
|
|
1168
|
+
readonly provenance: string;
|
|
1169
|
+
readonly purpose: string;
|
|
1170
|
+
};
|
|
1171
|
+
readonly name: string & import("effect/Brand").Brand<"DomainName">;
|
|
1172
|
+
readonly ttl: number | null;
|
|
1173
|
+
readonly policy: "exclusive";
|
|
1174
|
+
readonly target: string & import("effect/Brand").Brand<"DomainName">;
|
|
1175
|
+
} | {
|
|
1176
|
+
readonly _tag: "MX";
|
|
1177
|
+
readonly metadata: {
|
|
1178
|
+
readonly ownership: string;
|
|
1179
|
+
readonly provenance: string;
|
|
1180
|
+
readonly purpose: string;
|
|
1181
|
+
};
|
|
1182
|
+
readonly name: string & import("effect/Brand").Brand<"DomainName">;
|
|
1183
|
+
readonly policy: "append" | "exclusive";
|
|
1184
|
+
readonly ttl: number | null;
|
|
1185
|
+
readonly exchange: string & import("effect/Brand").Brand<"DomainName">;
|
|
1186
|
+
readonly priority: number;
|
|
1187
|
+
} | {
|
|
1188
|
+
readonly _tag: "NS";
|
|
1189
|
+
readonly metadata: {
|
|
1190
|
+
readonly ownership: string;
|
|
1191
|
+
readonly provenance: string;
|
|
1192
|
+
readonly purpose: string;
|
|
1193
|
+
};
|
|
1194
|
+
readonly name: string & import("effect/Brand").Brand<"DomainName">;
|
|
1195
|
+
readonly policy: "append" | "exclusive";
|
|
1196
|
+
readonly ttl: number | null;
|
|
1197
|
+
readonly target: string & import("effect/Brand").Brand<"DomainName">;
|
|
1198
|
+
} | {
|
|
1199
|
+
readonly _tag: "SRV";
|
|
1200
|
+
readonly metadata: {
|
|
1201
|
+
readonly ownership: string;
|
|
1202
|
+
readonly provenance: string;
|
|
1203
|
+
readonly purpose: string;
|
|
1204
|
+
};
|
|
1205
|
+
readonly name: string & import("effect/Brand").Brand<"DomainName">;
|
|
1206
|
+
readonly policy: "append" | "exclusive";
|
|
1207
|
+
readonly ttl: number | null;
|
|
1208
|
+
readonly port: number;
|
|
1209
|
+
readonly priority: number;
|
|
1210
|
+
readonly target: string & import("effect/Brand").Brand<"DomainName">;
|
|
1211
|
+
readonly weight: number;
|
|
1212
|
+
} | {
|
|
1213
|
+
readonly _tag: "TXT";
|
|
1214
|
+
readonly metadata: {
|
|
1215
|
+
readonly ownership: string;
|
|
1216
|
+
readonly provenance: string;
|
|
1217
|
+
readonly purpose: string;
|
|
1218
|
+
};
|
|
1219
|
+
readonly name: string & import("effect/Brand").Brand<"DomainName">;
|
|
1220
|
+
readonly policy: "append" | "exclusive";
|
|
1221
|
+
readonly ttl: number | null;
|
|
1222
|
+
readonly value: string;
|
|
1223
|
+
};
|
|
1224
|
+
};
|
|
1225
|
+
noop: (input: Parameters<typeof OperationSchema.cases.noop.make>[0]) => {
|
|
1226
|
+
readonly _tag: "noop";
|
|
1227
|
+
readonly id: string;
|
|
1228
|
+
readonly requirement: {
|
|
1229
|
+
readonly _tag: "A";
|
|
1230
|
+
readonly metadata: {
|
|
1231
|
+
readonly ownership: string;
|
|
1232
|
+
readonly provenance: string;
|
|
1233
|
+
readonly purpose: string;
|
|
1234
|
+
};
|
|
1235
|
+
readonly name: string & import("effect/Brand").Brand<"DomainName">;
|
|
1236
|
+
readonly policy: "append" | "exclusive";
|
|
1237
|
+
readonly ttl: number | null;
|
|
1238
|
+
readonly address: string;
|
|
1239
|
+
} | {
|
|
1240
|
+
readonly _tag: "AAAA";
|
|
1241
|
+
readonly metadata: {
|
|
1242
|
+
readonly ownership: string;
|
|
1243
|
+
readonly provenance: string;
|
|
1244
|
+
readonly purpose: string;
|
|
1245
|
+
};
|
|
1246
|
+
readonly name: string & import("effect/Brand").Brand<"DomainName">;
|
|
1247
|
+
readonly policy: "append" | "exclusive";
|
|
1248
|
+
readonly ttl: number | null;
|
|
1249
|
+
readonly address: string;
|
|
1250
|
+
} | {
|
|
1251
|
+
readonly _tag: "CAA";
|
|
1252
|
+
readonly metadata: {
|
|
1253
|
+
readonly ownership: string;
|
|
1254
|
+
readonly provenance: string;
|
|
1255
|
+
readonly purpose: string;
|
|
1256
|
+
};
|
|
1257
|
+
readonly name: string & import("effect/Brand").Brand<"DomainName">;
|
|
1258
|
+
readonly policy: "append" | "exclusive";
|
|
1259
|
+
readonly ttl: number | null;
|
|
1260
|
+
readonly flags: number;
|
|
1261
|
+
readonly tag: "iodef" | "issue" | "issuewild";
|
|
1262
|
+
readonly value: string;
|
|
1263
|
+
} | {
|
|
1264
|
+
readonly _tag: "CNAME";
|
|
1265
|
+
readonly metadata: {
|
|
1266
|
+
readonly ownership: string;
|
|
1267
|
+
readonly provenance: string;
|
|
1268
|
+
readonly purpose: string;
|
|
1269
|
+
};
|
|
1270
|
+
readonly name: string & import("effect/Brand").Brand<"DomainName">;
|
|
1271
|
+
readonly ttl: number | null;
|
|
1272
|
+
readonly policy: "exclusive";
|
|
1273
|
+
readonly target: string & import("effect/Brand").Brand<"DomainName">;
|
|
1274
|
+
} | {
|
|
1275
|
+
readonly _tag: "MX";
|
|
1276
|
+
readonly metadata: {
|
|
1277
|
+
readonly ownership: string;
|
|
1278
|
+
readonly provenance: string;
|
|
1279
|
+
readonly purpose: string;
|
|
1280
|
+
};
|
|
1281
|
+
readonly name: string & import("effect/Brand").Brand<"DomainName">;
|
|
1282
|
+
readonly policy: "append" | "exclusive";
|
|
1283
|
+
readonly ttl: number | null;
|
|
1284
|
+
readonly exchange: string & import("effect/Brand").Brand<"DomainName">;
|
|
1285
|
+
readonly priority: number;
|
|
1286
|
+
} | {
|
|
1287
|
+
readonly _tag: "NS";
|
|
1288
|
+
readonly metadata: {
|
|
1289
|
+
readonly ownership: string;
|
|
1290
|
+
readonly provenance: string;
|
|
1291
|
+
readonly purpose: string;
|
|
1292
|
+
};
|
|
1293
|
+
readonly name: string & import("effect/Brand").Brand<"DomainName">;
|
|
1294
|
+
readonly policy: "append" | "exclusive";
|
|
1295
|
+
readonly ttl: number | null;
|
|
1296
|
+
readonly target: string & import("effect/Brand").Brand<"DomainName">;
|
|
1297
|
+
} | {
|
|
1298
|
+
readonly _tag: "SRV";
|
|
1299
|
+
readonly metadata: {
|
|
1300
|
+
readonly ownership: string;
|
|
1301
|
+
readonly provenance: string;
|
|
1302
|
+
readonly purpose: string;
|
|
1303
|
+
};
|
|
1304
|
+
readonly name: string & import("effect/Brand").Brand<"DomainName">;
|
|
1305
|
+
readonly policy: "append" | "exclusive";
|
|
1306
|
+
readonly ttl: number | null;
|
|
1307
|
+
readonly port: number;
|
|
1308
|
+
readonly priority: number;
|
|
1309
|
+
readonly target: string & import("effect/Brand").Brand<"DomainName">;
|
|
1310
|
+
readonly weight: number;
|
|
1311
|
+
} | {
|
|
1312
|
+
readonly _tag: "TXT";
|
|
1313
|
+
readonly metadata: {
|
|
1314
|
+
readonly ownership: string;
|
|
1315
|
+
readonly provenance: string;
|
|
1316
|
+
readonly purpose: string;
|
|
1317
|
+
};
|
|
1318
|
+
readonly name: string & import("effect/Brand").Brand<"DomainName">;
|
|
1319
|
+
readonly policy: "append" | "exclusive";
|
|
1320
|
+
readonly ttl: number | null;
|
|
1321
|
+
readonly value: string;
|
|
1322
|
+
};
|
|
1323
|
+
readonly ttlDrift: boolean;
|
|
1324
|
+
};
|
|
1325
|
+
};
|
|
1326
|
+
type Operation$1 = typeof OperationSchema.Type;
|
|
525
1327
|
declare const Schema$1: Schema.Struct<{
|
|
526
1328
|
readonly digest: Schema.String;
|
|
527
1329
|
readonly operations: Schema.$Array<Schema.TaggedUnion<{
|
|
@@ -621,8 +1423,7 @@ declare const Schema$1: Schema.Struct<{
|
|
|
621
1423
|
readonly ttl: Schema.NullOr<Schema.Int>;
|
|
622
1424
|
readonly value: Schema.String;
|
|
623
1425
|
}>;
|
|
624
|
-
}>, Schema.
|
|
625
|
-
readonly _tag: Schema.Literal<"Opaque">;
|
|
1426
|
+
}>, Schema.TaggedStruct<"Opaque", {
|
|
626
1427
|
readonly name: Schema.String;
|
|
627
1428
|
readonly providerRecordId: Schema.NullOr<Schema.String>;
|
|
628
1429
|
readonly providerType: Schema.String;
|
|
@@ -2821,7 +3622,7 @@ declare const Answer: Schema.Struct<{
|
|
|
2821
3622
|
readonly type: Schema.Literals<readonly ["A", "AAAA", "CNAME", "TXT", "MX", "CAA", "NS", "SRV"]>;
|
|
2822
3623
|
}>;
|
|
2823
3624
|
interface Answer extends Schema.Schema.Type<typeof Answer> {}
|
|
2824
|
-
declare const
|
|
3625
|
+
declare const ResolutionSchema: Schema.TaggedUnion<{
|
|
2825
3626
|
readonly answer: Schema.TaggedStruct<"answer", {
|
|
2826
3627
|
readonly answers: Schema.$Array<Schema.Struct<{
|
|
2827
3628
|
readonly data: Schema.String;
|
|
@@ -2832,7 +3633,33 @@ declare const Resolution: Schema.TaggedUnion<{
|
|
|
2832
3633
|
}>;
|
|
2833
3634
|
readonly nodata: Schema.TaggedStruct<"nodata", {}>;
|
|
2834
3635
|
}>;
|
|
2835
|
-
|
|
3636
|
+
/** DNS answer schema and callable constructors for trusted resolver values. */
|
|
3637
|
+
declare const Resolution: {
|
|
3638
|
+
Schema: Schema.TaggedUnion<{
|
|
3639
|
+
readonly answer: Schema.TaggedStruct<"answer", {
|
|
3640
|
+
readonly answers: Schema.$Array<Schema.Struct<{
|
|
3641
|
+
readonly data: Schema.String;
|
|
3642
|
+
readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
3643
|
+
readonly ttl: Schema.Int;
|
|
3644
|
+
readonly type: Schema.Literals<readonly ["A", "AAAA", "CNAME", "TXT", "MX", "CAA", "NS", "SRV"]>;
|
|
3645
|
+
}>>;
|
|
3646
|
+
}>;
|
|
3647
|
+
readonly nodata: Schema.TaggedStruct<"nodata", {}>;
|
|
3648
|
+
}>;
|
|
3649
|
+
answer: (input: Parameters<typeof ResolutionSchema.cases.answer.make>[0]) => {
|
|
3650
|
+
readonly _tag: "answer";
|
|
3651
|
+
readonly answers: readonly {
|
|
3652
|
+
readonly data: string;
|
|
3653
|
+
readonly name: string & import("effect/Brand").Brand<"DomainName">;
|
|
3654
|
+
readonly ttl: number;
|
|
3655
|
+
readonly type: "A" | "AAAA" | "CAA" | "CNAME" | "MX" | "NS" | "SRV" | "TXT";
|
|
3656
|
+
}[];
|
|
3657
|
+
};
|
|
3658
|
+
nodata: () => {
|
|
3659
|
+
readonly _tag: "nodata";
|
|
3660
|
+
};
|
|
3661
|
+
};
|
|
3662
|
+
type Resolution = typeof ResolutionSchema.Type;
|
|
2836
3663
|
declare const Error_base: Schema.Class<Error, Schema.TaggedStruct<"ResolverError", {
|
|
2837
3664
|
readonly cause: Schema.optionalKey<Schema.Unknown>;
|
|
2838
3665
|
readonly message: Schema.String;
|
|
@@ -2844,12 +3671,59 @@ interface Interface {
|
|
|
2844
3671
|
}
|
|
2845
3672
|
declare const Service_base: Context.ServiceClass<Service, "@domainkit/DnsResolver", Interface>;
|
|
2846
3673
|
declare class Service extends Service_base {}
|
|
2847
|
-
|
|
2848
|
-
readonly
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
3674
|
+
declare const AsyncResolutionSchema: Schema.TaggedUnion<{
|
|
3675
|
+
readonly answer: Schema.TaggedStruct<"answer", {
|
|
3676
|
+
readonly answers: Schema.$Array<Schema.Struct<{
|
|
3677
|
+
readonly data: Schema.String;
|
|
3678
|
+
readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
3679
|
+
readonly ttl: Schema.Int;
|
|
3680
|
+
readonly type: Schema.Literals<readonly ["A", "AAAA", "CNAME", "TXT", "MX", "CAA", "NS", "SRV"]>;
|
|
3681
|
+
}>>;
|
|
3682
|
+
}>;
|
|
3683
|
+
readonly failure: Schema.TaggedStruct<"failure", {
|
|
3684
|
+
readonly message: Schema.String;
|
|
3685
|
+
}>;
|
|
3686
|
+
readonly nodata: Schema.TaggedStruct<"nodata", {}>;
|
|
3687
|
+
readonly timeout: Schema.TaggedStruct<"timeout", {}>;
|
|
3688
|
+
}>;
|
|
3689
|
+
/** Promise bridge result schema and callable constructors, including typed failures. */
|
|
3690
|
+
declare const AsyncResolution: {
|
|
3691
|
+
Schema: Schema.TaggedUnion<{
|
|
3692
|
+
readonly answer: Schema.TaggedStruct<"answer", {
|
|
3693
|
+
readonly answers: Schema.$Array<Schema.Struct<{
|
|
3694
|
+
readonly data: Schema.String;
|
|
3695
|
+
readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
3696
|
+
readonly ttl: Schema.Int;
|
|
3697
|
+
readonly type: Schema.Literals<readonly ["A", "AAAA", "CNAME", "TXT", "MX", "CAA", "NS", "SRV"]>;
|
|
3698
|
+
}>>;
|
|
3699
|
+
}>;
|
|
3700
|
+
readonly failure: Schema.TaggedStruct<"failure", {
|
|
3701
|
+
readonly message: Schema.String;
|
|
3702
|
+
}>;
|
|
3703
|
+
readonly nodata: Schema.TaggedStruct<"nodata", {}>;
|
|
3704
|
+
readonly timeout: Schema.TaggedStruct<"timeout", {}>;
|
|
3705
|
+
}>;
|
|
3706
|
+
answer: (input: Parameters<typeof AsyncResolutionSchema.cases.answer.make>[0]) => {
|
|
3707
|
+
readonly _tag: "answer";
|
|
3708
|
+
readonly answers: readonly {
|
|
3709
|
+
readonly data: string;
|
|
3710
|
+
readonly name: string & import("effect/Brand").Brand<"DomainName">;
|
|
3711
|
+
readonly ttl: number;
|
|
3712
|
+
readonly type: "A" | "AAAA" | "CAA" | "CNAME" | "MX" | "NS" | "SRV" | "TXT";
|
|
3713
|
+
}[];
|
|
3714
|
+
};
|
|
3715
|
+
failure: (input: Parameters<typeof AsyncResolutionSchema.cases.failure.make>[0]) => {
|
|
3716
|
+
readonly _tag: "failure";
|
|
3717
|
+
readonly message: string;
|
|
3718
|
+
};
|
|
3719
|
+
nodata: () => {
|
|
3720
|
+
readonly _tag: "nodata";
|
|
3721
|
+
};
|
|
3722
|
+
timeout: () => {
|
|
3723
|
+
readonly _tag: "timeout";
|
|
3724
|
+
};
|
|
2852
3725
|
};
|
|
3726
|
+
type AsyncResolution = typeof AsyncResolutionSchema.Type;
|
|
2853
3727
|
interface AsyncInterface {
|
|
2854
3728
|
readonly resolve: (query: Query) => Promise<AsyncResolution>;
|
|
2855
3729
|
}
|
|
@@ -2857,4 +3731,4 @@ declare const layerFromAsync: (resolver: AsyncInterface) => Layer.Layer<Service>
|
|
|
2857
3731
|
declare const toAsync: (resolver: Interface) => AsyncInterface;
|
|
2858
3732
|
//#endregion
|
|
2859
3733
|
export { renderManualInstructions as A, types_d_exports as B, DiscoverCreateInput as C, StaleError as D, ResolvedCreateResult as E, PlanAuthorization as F, Source as H, Receipt$1 as I, Schema$1 as L, Authorization$1 as M, DnsPlan as N, Target as O, Operation$1 as P, encode as R, CreateResult as S, PartialApplyError as T, zone_discovery_d_exports as U, Candidate as V, Receipt as _, Interface as a, AuthorizeError as b, Service as c, Authorization as d, CreateError as f, Plan as g, PartialError as h, Error as i, ApplyReceipt as j, plan_d_exports as k, resolver_d_exports as l, Operation as m, AsyncInterface as n, Query as o, Error$1 as p, AsyncResolution as r, Resolution as s, Answer as t, ApplyError as u, deletion_d_exports as v, ExactCreateInput as w, ConflictError as x, AuthorizationError as y, encodeReceipt as z };
|
|
2860
|
-
//# sourceMappingURL=resolver-
|
|
3734
|
+
//# sourceMappingURL=resolver-xoSwyXDJ.d.mts.map
|