domainkit 0.1.0 → 0.2.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 +91 -71
- package/dist/{auth-Vi-hhXbV.mjs → auth-CZ1pZHMZ.mjs} +301 -38
- package/dist/auth-CZ1pZHMZ.mjs.map +1 -0
- package/dist/{client-BnD7QLRF.mjs → auth-CzhZ3Cuc.mjs} +235 -131
- package/dist/auth-CzhZ3Cuc.mjs.map +1 -0
- package/dist/authorization-DOg2Re1D.mjs +247 -0
- package/dist/authorization-DOg2Re1D.mjs.map +1 -0
- package/dist/canonical-json-CpvqGMcr.mjs +57 -0
- package/dist/canonical-json-CpvqGMcr.mjs.map +1 -0
- package/dist/{cloudflare-C6ryPlCZ.mjs → cloudflare-BedFw4cX.mjs} +28 -7
- package/dist/cloudflare-BedFw4cX.mjs.map +1 -0
- package/dist/cloudflare-FDl5q7Dm.d.mts +32 -0
- package/dist/cloudflare.d.mts +3 -3
- package/dist/cloudflare.mjs +2 -2
- package/dist/connection-BWrBwqjk.mjs +58 -0
- package/dist/connection-BWrBwqjk.mjs.map +1 -0
- package/dist/connection-CEqadXSm.d.mts +182 -0
- package/dist/connection-CcQokgrd.mjs +186 -0
- package/dist/connection-CcQokgrd.mjs.map +1 -0
- package/dist/connection-api-DftK7eHo.d.mts +7 -0
- package/dist/{dns-record-C_KwGPLf.mjs → dns-record-BLeqo56C.mjs} +23 -3
- package/dist/dns-record-BLeqo56C.mjs.map +1 -0
- package/dist/effect-cloudflare.d.mts +2 -2
- package/dist/effect-cloudflare.mjs +2 -2
- package/dist/effect-vercel.d.mts +2 -2
- package/dist/effect-vercel.mjs +2 -2
- package/dist/effect.d.mts +9 -46
- package/dist/effect.mjs +29 -7
- package/dist/effect.mjs.map +1 -1
- package/dist/index-B1opsgls.d.mts +159 -0
- package/dist/{index-CEzk2gbZ.d.mts → index-Ewc__bQu.d.mts} +58 -7
- package/dist/index.d.mts +169 -113
- package/dist/index.mjs +201 -138
- package/dist/index.mjs.map +1 -1
- package/dist/{resolver-BHPsADzE.d.mts → resolver-CJOR9mQ8.d.mts} +620 -263
- package/dist/resolver-CxE-VDw4.mjs +598 -0
- package/dist/resolver-CxE-VDw4.mjs.map +1 -0
- package/dist/testing.d.mts +53 -44
- package/dist/testing.mjs +379 -107
- package/dist/testing.mjs.map +1 -1
- package/dist/{vercel-DD89DCqH.mjs → vercel-CWZ33NUS.mjs} +23 -3
- package/dist/vercel-CWZ33NUS.mjs.map +1 -0
- package/dist/vercel-DgJaUX9D.d.mts +31 -0
- package/dist/vercel.d.mts +3 -3
- package/dist/vercel.mjs +2 -2
- package/dist/verify-BzpiA0Es.mjs +642 -0
- package/dist/verify-BzpiA0Es.mjs.map +1 -0
- package/dist/verify-DZWLM91T.d.mts +805 -0
- package/dist/zone-discovery-BA5I24vu.d.mts +1390 -0
- package/dist/zones-DKHTpX9C.mjs +19 -0
- package/dist/zones-DKHTpX9C.mjs.map +1 -0
- package/package.json +1 -1
- package/dist/auth-Vi-hhXbV.mjs.map +0 -1
- package/dist/client-BnD7QLRF.mjs.map +0 -1
- package/dist/cloudflare-C6ryPlCZ.mjs.map +0 -1
- package/dist/cloudflare-tdjNS8vE.d.mts +0 -23
- package/dist/dns-record-C_KwGPLf.mjs.map +0 -1
- package/dist/index-CS9Rl5LQ.d.mts +0 -71
- package/dist/manifest-CP85ePFn.d.mts +0 -583
- package/dist/receipt-CGSnfZQ6.mjs +0 -28
- package/dist/receipt-CGSnfZQ6.mjs.map +0 -1
- package/dist/resolver-tEXpKxmH.mjs +0 -200
- package/dist/resolver-tEXpKxmH.mjs.map +0 -1
- package/dist/vercel-D-E2aqb1.d.mts +0 -22
- package/dist/vercel-DD89DCqH.mjs.map +0 -1
- package/dist/verify-B80xCBh2.d.mts +0 -1407
- package/dist/verify-BjrR_4NF.mjs +0 -1401
- package/dist/verify-BjrR_4NF.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,48 +1,37 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { r as
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
declare function updateGrant(input: {
|
|
14
|
-
readonly connection: Parameters<typeof updateGrant$1>[0]["connection"];
|
|
15
|
-
readonly connectionStore: AsyncInterface$1;
|
|
16
|
-
readonly grant: Parameters<typeof updateGrant$1>[0]["grant"];
|
|
17
|
-
}): Promise<Connection>;
|
|
18
|
-
declare function detach(input: {
|
|
19
|
-
readonly authorizationStore: AsyncInterface$2;
|
|
20
|
-
readonly connectionId: string;
|
|
21
|
-
readonly connectionStore: AsyncInterface$1;
|
|
22
|
-
readonly credentialStore: AsyncInterface$3;
|
|
23
|
-
readonly revokeAuthorization: (authorization: ProviderAuthorization) => Promise<void>;
|
|
24
|
-
}): Promise<DetachResult>;
|
|
25
|
-
declare namespace provider_authorization_d_exports {
|
|
26
|
-
export { Capability, ProviderAuthorization, Schema$4 as Schema, decode$2 as decode, encode$1 as encode };
|
|
1
|
+
import { $ as Method, A as Connection, B as Capability, Ct as Opaque, Dt as Txt, Et as Srv, G as Schema$2, H as Evidence, It as parse$1, Mt as parse, Nt as DomainName, Ot as Type, Pt as Schema$4, Q as Manifest, Rt as invalid_input_d_exports, S as provider_context_d_exports, St as Observed, Tt as Schema$3, U as EvidenceSchema, V as CapabilityEvidence, W as ProviderAuthorization, X as AsyncOAuthSubjectResolver, _t as Cname, bt as Mx, ct as AsyncInterface, et as OAuthClientConfiguration, gt as Caa, ht as Aaaa, it as TokenValidation, jt as equals, kt as data, lt as CreateResult, mt as A, q as encode, rt as Schema$1, st as secret_d_exports, tt as OAuthMethod, vt as DnsRecord, wt as RequirementMetadata, xt as Ns, yt as Encoded } from "./zone-discovery-BA5I24vu.mjs";
|
|
2
|
+
import { a as Source, i as authorization_lifecycle_d_exports, o as zone_discovery_d_exports, r as connection_d_exports } from "./connection-CEqadXSm.mjs";
|
|
3
|
+
import { n as cloudflare_d_exports } from "./cloudflare-FDl5q7Dm.mjs";
|
|
4
|
+
import { _ as selection_d_exports, c as Policy, f as Options$3, g as zones_d_exports, i as Result, m as Options$4, n as PublicDns$1, o as DefaultOptions, r as PublicDnsObservation, s as Observation, t as ProviderObservation, u as Options$5, v as diagnostic_d_exports } from "./verify-DZWLM91T.mjs";
|
|
5
|
+
import { A as renderManualInstructions$1, C as DiscoverCreateInput$1, E as ResolvedCreateResult, F as PlanAuthorization, I as Receipt, L as Schema$5, M as Authorization, N as DnsPlan, O as Target, P as Operation, R as encode$1, S as CreateResult$1, _ as Receipt$1, d as Authorization$1, f as CreateError, g as Plan, h as PartialError, j as ApplyReceipt, m as Operation$1, n as AsyncInterface$1, o as Query, p as Error, r as AsyncResolution, t as Answer, u as ApplyError, w as ExactCreateInput$1, z as encodeReceipt } from "./resolver-CJOR9mQ8.mjs";
|
|
6
|
+
import { i as vercel_d_exports } from "./vercel-DgJaUX9D.mjs";
|
|
7
|
+
import { Data } from "effect";
|
|
8
|
+
declare namespace dns_provider_d_exports {
|
|
9
|
+
export { CreateResult, AsyncInterface as Interface };
|
|
10
|
+
}
|
|
11
|
+
declare namespace dns_resolver_d_exports {
|
|
12
|
+
export { Answer, AsyncInterface$1 as Interface, Query, AsyncResolution as Resolution };
|
|
27
13
|
}
|
|
28
|
-
declare function decode$2(input: unknown): Promise<ProviderAuthorization>;
|
|
29
14
|
declare namespace provider_auth_d_exports {
|
|
30
|
-
export { Manifest, Method, OAuthClientConfiguration, OAuthMethod, AsyncOAuthSubjectResolver as OAuthSubjectResolver, Schema, TokenValidation, decode$
|
|
15
|
+
export { Manifest, Method, OAuthClientConfiguration, OAuthMethod, AsyncOAuthSubjectResolver as OAuthSubjectResolver, Schema$1 as Schema, TokenValidation, decode$2 as decode };
|
|
31
16
|
}
|
|
32
|
-
declare function decode$
|
|
17
|
+
declare function decode$2(input: unknown): Promise<Manifest>;
|
|
18
|
+
declare namespace provider_authorization_d_exports {
|
|
19
|
+
export { Capability, CapabilityEvidence, Evidence, EvidenceSchema, ProviderAuthorization, Schema$2 as Schema, decode$1 as decode, encode };
|
|
20
|
+
}
|
|
21
|
+
declare function decode$1(input: unknown): Promise<ProviderAuthorization>;
|
|
33
22
|
declare namespace dns_record_d_exports {
|
|
34
|
-
export { A, Aaaa, Caa, Cname, DnsRecord, Encoded, Mx, Ns, Observed, Opaque, RequirementMetadata, Schema$
|
|
23
|
+
export { A, Aaaa, Caa, Cname, DnsRecord, Encoded, Mx, Ns, Observed, Opaque, RequirementMetadata, Schema$3 as Schema, Srv, Txt, Type, data, equals, parse };
|
|
35
24
|
}
|
|
36
25
|
declare namespace domain_name_d_exports {
|
|
37
|
-
export { DomainName, Schema$
|
|
26
|
+
export { DomainName, Schema$4 as Schema, parse$1 as parse };
|
|
38
27
|
}
|
|
39
28
|
declare namespace dns_plan_d_exports {
|
|
40
|
-
export { ApplyReceipt, Authorization, DnsPlan, Operation, PlanAuthorization, Receipt, Schema$5 as Schema, decode, decodeReceipt, encode$
|
|
29
|
+
export { ApplyReceipt, Authorization, DnsPlan, Operation, PlanAuthorization, Receipt, Schema$5 as Schema, decode, decodeReceipt, encode$1 as encode, encodeReceipt };
|
|
41
30
|
}
|
|
42
31
|
declare function decode(input: unknown): Promise<DnsPlan>;
|
|
43
32
|
declare function decodeReceipt(input: unknown): Promise<ApplyReceipt>;
|
|
44
33
|
declare namespace deletion_d_exports {
|
|
45
|
-
export { ApplyError, Authorization$1 as Authorization, CreateError, Authorization$1 as DeletionAuthorization, Operation$1 as DeletionOperation, Plan as DeletionPlan, Receipt$1 as DeletionReceipt, Error
|
|
34
|
+
export { ApplyError, Authorization$1 as Authorization, CreateError, Authorization$1 as DeletionAuthorization, Operation$1 as DeletionOperation, Plan as DeletionPlan, Receipt$1 as DeletionReceipt, Error, Operation$1 as Operation, PartialError, Plan, Receipt$1 as Receipt, apply$1 as apply, authorize$1 as authorize, create$1 as create };
|
|
46
35
|
}
|
|
47
36
|
declare function create$1(input: {
|
|
48
37
|
readonly plan: DnsPlan;
|
|
@@ -57,57 +46,17 @@ declare function apply$1(input: {
|
|
|
57
46
|
readonly priorReceipt?: Receipt$1;
|
|
58
47
|
readonly provider: AsyncInterface;
|
|
59
48
|
}): Promise<Receipt$1>;
|
|
60
|
-
declare namespace dns_provider_d_exports {
|
|
61
|
-
export { CreateResult, AsyncInterface as Interface };
|
|
62
|
-
}
|
|
63
|
-
declare namespace dns_resolver_d_exports {
|
|
64
|
-
export { Answer, AsyncInterface$4 as Interface, Query, AsyncResolution as Resolution };
|
|
65
|
-
}
|
|
66
|
-
declare namespace oauth_d_exports {
|
|
67
|
-
export { BeginInput, Fetch, begin, complete, refresh, revoke };
|
|
68
|
-
}
|
|
69
|
-
interface BeginInput extends BeginInput$1 {
|
|
70
|
-
readonly stateStore: AsyncInterface$5;
|
|
71
|
-
}
|
|
72
|
-
declare function begin(input: BeginInput): Promise<{
|
|
73
|
-
readonly authorizationUrl: URL;
|
|
74
|
-
}>;
|
|
75
|
-
declare function complete(input: {
|
|
76
|
-
readonly callbackUrl: URL;
|
|
77
|
-
readonly client: OAuthClientConfiguration;
|
|
78
|
-
readonly connectionStore: AsyncInterface$1;
|
|
79
|
-
readonly credentialStore: AsyncInterface$3;
|
|
80
|
-
readonly authorizationStore: AsyncInterface$2;
|
|
81
|
-
readonly fetch?: Fetch$1;
|
|
82
|
-
readonly providerId: string;
|
|
83
|
-
readonly resolveSubject: AsyncOAuthSubjectResolver;
|
|
84
|
-
readonly stateStore: AsyncInterface$5;
|
|
85
|
-
}): Promise<{
|
|
86
|
-
readonly authorization: ProviderAuthorization;
|
|
87
|
-
readonly connection: Connection;
|
|
88
|
-
}>;
|
|
89
|
-
declare function refresh(input: {
|
|
90
|
-
readonly authorization: ProviderAuthorization;
|
|
91
|
-
readonly client: OAuthClientConfiguration;
|
|
92
|
-
readonly credentialStore: AsyncInterface$3;
|
|
93
|
-
readonly fetch?: Fetch$1;
|
|
94
|
-
readonly method: OAuthMethod;
|
|
95
|
-
}): Promise<void>;
|
|
96
|
-
declare function revoke(input: {
|
|
97
|
-
readonly authorization: ProviderAuthorization;
|
|
98
|
-
readonly client: OAuthClientConfiguration;
|
|
99
|
-
readonly credentialStore: AsyncInterface$3;
|
|
100
|
-
readonly fetch?: Fetch$1;
|
|
101
|
-
readonly method: OAuthMethod;
|
|
102
|
-
}): Promise<void>;
|
|
103
|
-
type Fetch = Fetch$1;
|
|
104
49
|
declare namespace provisioning_d_exports {
|
|
105
|
-
export {
|
|
50
|
+
export { CreateResult$1 as CreateResult, DiscoverCreateInput, ExactCreateInput, Target, apply, authorize, authorizeForConnection, create, renderManualInstructions };
|
|
106
51
|
}
|
|
107
|
-
interface
|
|
52
|
+
interface ExactCreateInput extends ExactCreateInput$1 {
|
|
108
53
|
readonly provider: AsyncInterface;
|
|
109
54
|
}
|
|
110
|
-
|
|
55
|
+
interface DiscoverCreateInput extends DiscoverCreateInput$1 {
|
|
56
|
+
readonly sources: ReadonlyArray<Source>;
|
|
57
|
+
}
|
|
58
|
+
declare function create(input: ExactCreateInput): Promise<ResolvedCreateResult>;
|
|
59
|
+
declare function create(input: DiscoverCreateInput): Promise<CreateResult$1>;
|
|
111
60
|
declare function authorize(plan: DnsPlan, operationIds?: ReadonlyArray<string>, options?: {
|
|
112
61
|
readonly allowPartial?: boolean;
|
|
113
62
|
}): Promise<PlanAuthorization>;
|
|
@@ -125,49 +74,156 @@ declare function authorizeForConnection(input: {
|
|
|
125
74
|
readonly plan: DnsPlan;
|
|
126
75
|
}): Promise<PlanAuthorization>;
|
|
127
76
|
declare const renderManualInstructions: typeof renderManualInstructions$1;
|
|
128
|
-
declare namespace
|
|
129
|
-
export {
|
|
130
|
-
}
|
|
131
|
-
declare namespace token_d_exports {
|
|
132
|
-
export { connect };
|
|
133
|
-
}
|
|
134
|
-
declare function connect(input: {
|
|
135
|
-
readonly connectionStore: AsyncInterface$1;
|
|
136
|
-
readonly credentialStore: AsyncInterface$3;
|
|
137
|
-
readonly authorizationStore: AsyncInterface$2;
|
|
138
|
-
readonly grant: Grant;
|
|
139
|
-
readonly ownerId: string;
|
|
140
|
-
readonly providerId: string;
|
|
141
|
-
readonly subjectId: string;
|
|
142
|
-
readonly token: Value;
|
|
143
|
-
readonly validate: (token: Value) => Promise<TokenValidation>;
|
|
144
|
-
}): Promise<{
|
|
145
|
-
readonly authorization: ProviderAuthorization;
|
|
146
|
-
readonly connection: Connection;
|
|
147
|
-
}>;
|
|
148
|
-
declare namespace verification_d_exports {
|
|
149
|
-
export { record };
|
|
77
|
+
declare namespace resolver_pool_d_exports {
|
|
78
|
+
export { Entry, Interface, Observation, Policy, defaultMake, make$3 as make };
|
|
150
79
|
}
|
|
151
|
-
|
|
152
|
-
readonly
|
|
80
|
+
interface Entry {
|
|
81
|
+
readonly id: string;
|
|
82
|
+
readonly resolver: AsyncInterface$1;
|
|
83
|
+
readonly timeoutMs?: number;
|
|
84
|
+
}
|
|
85
|
+
interface Interface {
|
|
86
|
+
readonly observe: (query: Query) => Promise<ReadonlyArray<Observation>>;
|
|
87
|
+
}
|
|
88
|
+
declare function make$3(entries: ReadonlyArray<Entry>): Interface;
|
|
89
|
+
declare function defaultMake(options?: DefaultOptions): Interface;
|
|
90
|
+
declare namespace verification_d_exports {
|
|
91
|
+
export { Config, Provider, ProviderObservation, PublicDns, PublicDnsObservation, Result, observe };
|
|
92
|
+
}
|
|
93
|
+
type PublicDns = PublicDns$1;
|
|
94
|
+
declare const PublicDns: {
|
|
95
|
+
readonly $is: <Tag extends "Disabled" | "Enabled">(tag: Tag) => (u: unknown) => u is Extract<{
|
|
96
|
+
readonly _tag: "Disabled";
|
|
97
|
+
}, {
|
|
98
|
+
readonly _tag: Tag;
|
|
99
|
+
}> | Extract<{
|
|
100
|
+
readonly _tag: "Enabled";
|
|
101
|
+
readonly policy?: Policy;
|
|
102
|
+
}, {
|
|
103
|
+
readonly _tag: Tag;
|
|
104
|
+
}>;
|
|
105
|
+
readonly $match: {
|
|
106
|
+
<Cases extends { readonly [Tag in "Disabled" | "Enabled"]: (args: Extract<{
|
|
107
|
+
readonly _tag: "Disabled";
|
|
108
|
+
} | {
|
|
109
|
+
readonly _tag: "Enabled";
|
|
110
|
+
readonly policy?: Policy;
|
|
111
|
+
}, {
|
|
112
|
+
readonly _tag: Tag;
|
|
113
|
+
}>) => any; }>(cases: Cases): (value: {
|
|
114
|
+
readonly _tag: "Disabled";
|
|
115
|
+
} | {
|
|
116
|
+
readonly _tag: "Enabled";
|
|
117
|
+
readonly policy?: Policy;
|
|
118
|
+
}) => import("effect/Unify").Unify<ReturnType<Cases["Disabled" | "Enabled"]>>;
|
|
119
|
+
<Cases extends { readonly [Tag in "Disabled" | "Enabled"]: (args: Extract<{
|
|
120
|
+
readonly _tag: "Disabled";
|
|
121
|
+
} | {
|
|
122
|
+
readonly _tag: "Enabled";
|
|
123
|
+
readonly policy?: Policy;
|
|
124
|
+
}, {
|
|
125
|
+
readonly _tag: Tag;
|
|
126
|
+
}>) => any; }>(value: {
|
|
127
|
+
readonly _tag: "Disabled";
|
|
128
|
+
} | {
|
|
129
|
+
readonly _tag: "Enabled";
|
|
130
|
+
readonly policy?: Policy;
|
|
131
|
+
}, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["Disabled" | "Enabled"]>>;
|
|
132
|
+
};
|
|
133
|
+
readonly Disabled: Data.TaggedEnum.ConstructorFrom<{
|
|
134
|
+
readonly _tag: "Disabled";
|
|
135
|
+
}, "_tag">;
|
|
136
|
+
readonly Enabled: Data.TaggedEnum.ConstructorFrom<{
|
|
137
|
+
readonly _tag: "Enabled";
|
|
138
|
+
readonly policy?: Policy;
|
|
139
|
+
}, "_tag">;
|
|
140
|
+
};
|
|
141
|
+
type Provider = Data.TaggedEnum<{
|
|
142
|
+
Disabled: {};
|
|
143
|
+
Enabled: {
|
|
144
|
+
readonly provider: AsyncInterface;
|
|
145
|
+
readonly zone: DomainName;
|
|
146
|
+
};
|
|
147
|
+
}>;
|
|
148
|
+
declare const Provider: {
|
|
149
|
+
readonly $is: <Tag extends "Disabled" | "Enabled">(tag: Tag) => (u: unknown) => u is Extract<{
|
|
150
|
+
readonly _tag: "Disabled";
|
|
151
|
+
}, {
|
|
152
|
+
readonly _tag: Tag;
|
|
153
|
+
}> | Extract<{
|
|
154
|
+
readonly _tag: "Enabled";
|
|
155
|
+
readonly provider: AsyncInterface;
|
|
156
|
+
readonly zone: DomainName;
|
|
157
|
+
}, {
|
|
158
|
+
readonly _tag: Tag;
|
|
159
|
+
}>;
|
|
160
|
+
readonly $match: {
|
|
161
|
+
<Cases extends { readonly [Tag in "Disabled" | "Enabled"]: (args: Extract<{
|
|
162
|
+
readonly _tag: "Disabled";
|
|
163
|
+
} | {
|
|
164
|
+
readonly _tag: "Enabled";
|
|
165
|
+
readonly provider: AsyncInterface;
|
|
166
|
+
readonly zone: DomainName;
|
|
167
|
+
}, {
|
|
168
|
+
readonly _tag: Tag;
|
|
169
|
+
}>) => any; }>(cases: Cases): (value: {
|
|
170
|
+
readonly _tag: "Disabled";
|
|
171
|
+
} | {
|
|
172
|
+
readonly _tag: "Enabled";
|
|
173
|
+
readonly provider: AsyncInterface;
|
|
174
|
+
readonly zone: DomainName;
|
|
175
|
+
}) => import("effect/Unify").Unify<ReturnType<Cases["Disabled" | "Enabled"]>>;
|
|
176
|
+
<Cases extends { readonly [Tag in "Disabled" | "Enabled"]: (args: Extract<{
|
|
177
|
+
readonly _tag: "Disabled";
|
|
178
|
+
} | {
|
|
179
|
+
readonly _tag: "Enabled";
|
|
180
|
+
readonly provider: AsyncInterface;
|
|
181
|
+
readonly zone: DomainName;
|
|
182
|
+
}, {
|
|
183
|
+
readonly _tag: Tag;
|
|
184
|
+
}>) => any; }>(value: {
|
|
185
|
+
readonly _tag: "Disabled";
|
|
186
|
+
} | {
|
|
187
|
+
readonly _tag: "Enabled";
|
|
188
|
+
readonly provider: AsyncInterface;
|
|
189
|
+
readonly zone: DomainName;
|
|
190
|
+
}, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["Disabled" | "Enabled"]>>;
|
|
191
|
+
};
|
|
192
|
+
readonly Disabled: Data.TaggedEnum.ConstructorFrom<{
|
|
193
|
+
readonly _tag: "Disabled";
|
|
194
|
+
}, "_tag">;
|
|
195
|
+
readonly Enabled: Data.TaggedEnum.ConstructorFrom<{
|
|
196
|
+
readonly _tag: "Enabled";
|
|
197
|
+
readonly provider: AsyncInterface;
|
|
198
|
+
readonly zone: DomainName;
|
|
199
|
+
}, "_tag">;
|
|
200
|
+
};
|
|
201
|
+
interface Config {
|
|
202
|
+
readonly provider?: Provider;
|
|
203
|
+
readonly publicDns?: PublicDns;
|
|
153
204
|
readonly record: DnsRecord;
|
|
154
|
-
readonly
|
|
155
|
-
|
|
156
|
-
|
|
205
|
+
readonly resolvers?: ReadonlyArray<Entry>;
|
|
206
|
+
}
|
|
207
|
+
declare function observe(input: Config): Promise<Result>;
|
|
157
208
|
declare namespace cloudflare_doh_d_exports {
|
|
158
|
-
export { Options$
|
|
209
|
+
export { Options$2 as Options, make$2 as make };
|
|
159
210
|
}
|
|
160
|
-
type Options$
|
|
161
|
-
declare function make$
|
|
211
|
+
type Options$2 = Options$3;
|
|
212
|
+
declare function make$2(options?: Options$2): AsyncInterface$1;
|
|
162
213
|
declare namespace doh_d_exports {
|
|
214
|
+
export { Options$1 as Options, make$1 as make };
|
|
215
|
+
}
|
|
216
|
+
type Options$1 = Options$4;
|
|
217
|
+
declare function make$1(options: Options$1): AsyncInterface$1;
|
|
218
|
+
declare namespace google_doh_d_exports {
|
|
163
219
|
export { Options, make };
|
|
164
220
|
}
|
|
165
|
-
type Options = Options$
|
|
166
|
-
declare function make(options
|
|
221
|
+
type Options = Options$5;
|
|
222
|
+
declare function make(options?: Options): AsyncInterface$1;
|
|
167
223
|
//#endregion
|
|
168
224
|
//#region src/index.d.ts
|
|
169
225
|
/** The current package version from the package manifest. */
|
|
170
226
|
declare const VERSION: string;
|
|
171
227
|
//#endregion
|
|
172
|
-
export { cloudflare_d_exports as Cloudflare, cloudflare_doh_d_exports as CloudflareDnsOverHttps, connection_d_exports as Connection,
|
|
228
|
+
export { authorization_lifecycle_d_exports as AuthorizationLifecycle, cloudflare_d_exports as Cloudflare, cloudflare_doh_d_exports as CloudflareDnsOverHttps, connection_d_exports as Connection, deletion_d_exports as Deletion, diagnostic_d_exports as Diagnostic, doh_d_exports as DnsOverHttps, dns_plan_d_exports as DnsPlan, type dns_provider_d_exports as DnsProvider, dns_record_d_exports as DnsRecord, type dns_resolver_d_exports as DnsResolver, resolver_pool_d_exports as DnsResolverPool, domain_name_d_exports as DomainName, google_doh_d_exports as GoogleDnsOverHttps, invalid_input_d_exports as InvalidInput, provider_auth_d_exports as ProviderAuth, provider_authorization_d_exports as ProviderAuthorization, provider_context_d_exports as ProviderContext, selection_d_exports as ProviderDiscovery, provisioning_d_exports as Provisioning, secret_d_exports as Secret, VERSION, vercel_d_exports as Vercel, verification_d_exports as Verification, zone_discovery_d_exports as ZoneDiscovery, zones_d_exports as Zones };
|
|
173
229
|
//# sourceMappingURL=index.d.mts.map
|