domainkit 0.4.0 → 0.5.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/dist/index.d.mts +262 -42
- package/dist/index.mjs +56 -26
- package/dist/index.mjs.map +1 -1
- package/dist/promise.d.mts +99 -66
- package/dist/promise.mjs +154 -111
- package/dist/promise.mjs.map +1 -1
- package/dist/{resolver-uqe1h5Vz.d.mts → resolver-BGBLnPjJ.d.mts} +208 -477
- package/dist/{resolver-CvK7JoJM.mjs → resolver-tZU6gEVq.mjs} +122 -12
- package/dist/resolver-tZU6gEVq.mjs.map +1 -0
- package/dist/testing.d.mts +2 -2
- package/dist/testing.mjs +121 -60
- package/dist/testing.mjs.map +1 -1
- package/dist/{verify-CkgVrwyl.d.mts → verify-6xK05pwL.d.mts} +185 -44
- package/dist/{verify-BUB4N5zs.mjs → verify-B2fPyjde.mjs} +555 -394
- package/dist/verify-B2fPyjde.mjs.map +1 -0
- package/package.json +1 -1
- package/dist/resolver-CvK7JoJM.mjs.map +0 -1
- package/dist/verify-BUB4N5zs.mjs.map +0 -1
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Bt as TokenValidation, H as Source, Ht as Value, It as OAuthClientConfiguration, Jt as Service$2, Kt as Error, Lt as OAuthMethod, Nt as IntegrationMethod, Pt as Manifest, Q as InteractiveFlow, Rt as OAuthSubjectResolver, Wt as AsyncInterface$1, a as Interface$5, at as Envelope, bt as ProviderConnection, c as Service$1, en as DnsRecord, et as Method, hn as DomainName, i as Error$2, it as Codec, jt as ProviderAuthorization, kt as Capability, n as AsyncInterface$2, o as Query, qt as Interface$4, t as Answer, xt as ProviderTarget, yn as Error$1, yt as DomainAttachment } from "./resolver-BGBLnPjJ.mjs";
|
|
2
2
|
import { Context, Data, Effect, Layer, Schema } from "effect";
|
|
3
3
|
import * as oauth from "oauth4webapi";
|
|
4
|
-
declare namespace connection_api_d_exports {
|
|
5
|
-
export { Authentication, AuthenticationFailure, AuthorizationError, BaseInput, CompleteInput, Connection, Method as ConnectionMethod, RemoveDomainResult as ConnectionRemoveDomainResult, StartResult as ConnectionStartResult, Continuation, ContinuationStore, Error, ExtendInput, Failure, Grant, InteractiveFlow, InteractiveStart, Method, RemoveDomainInput, RemoveDomainResult, Requirements, Schema$1 as Schema, StartResult, StoredCredential, assertGrant, authorizationError, complete, coversDomain, decode, encode, extend, includeDomains, removeDomain, removeDomain$1 as removeDomainFromGrant, start, validate };
|
|
6
|
-
}
|
|
7
4
|
declare namespace diagnostic_d_exports {
|
|
8
5
|
export { Category, Diagnostic, Fields, RetryAdvice, from };
|
|
9
6
|
}
|
|
@@ -36,10 +33,9 @@ declare namespace selection_d_exports {
|
|
|
36
33
|
}
|
|
37
34
|
interface ConnectedZone {
|
|
38
35
|
readonly authorization: ProviderAuthorization;
|
|
39
|
-
readonly
|
|
36
|
+
readonly attachment: DomainAttachment;
|
|
37
|
+
readonly connection: ProviderConnection;
|
|
40
38
|
readonly nameservers: ReadonlyArray<string>;
|
|
41
|
-
readonly providerId: string;
|
|
42
|
-
readonly zone: string;
|
|
43
39
|
}
|
|
44
40
|
declare const Evidence$1: Schema.Struct<{
|
|
45
41
|
readonly accountId: Schema.String;
|
|
@@ -98,6 +94,134 @@ declare namespace zones_d_exports {
|
|
|
98
94
|
export { candidates };
|
|
99
95
|
}
|
|
100
96
|
declare function candidates(input: string): ReadonlyArray<DomainName>;
|
|
97
|
+
declare namespace session_d_exports {
|
|
98
|
+
export { AsyncInterface, Authorization, Credential, Interface$3 as Interface, ListTargetsInput, Resolution, RestoreInput, fromAsync, toAsync$3 as toAsync };
|
|
99
|
+
}
|
|
100
|
+
/** A credential-scoped provider session that discovers safe targets before DNS access. */
|
|
101
|
+
interface Interface$3 {
|
|
102
|
+
/** The provider represented by this credential. */
|
|
103
|
+
readonly providerId: string;
|
|
104
|
+
/** Lists provider account and authoritative-zone targets visible to this credential. */
|
|
105
|
+
readonly listTargets: (input?: ListTargetsInput) => Effect.Effect<ReadonlyArray<ProviderTarget>, Error>;
|
|
106
|
+
/** Resolves a domain without guessing when more than one account owns a matching zone. */
|
|
107
|
+
readonly resolveTarget: (domain: DomainName) => Effect.Effect<Resolution, Error>;
|
|
108
|
+
/** Creates the focused DNS-record capability bound to one exact discovered target. */
|
|
109
|
+
readonly forTarget: (target: ProviderTarget) => Effect.Effect<Interface$4, Error>;
|
|
110
|
+
}
|
|
111
|
+
interface ListTargetsInput {
|
|
112
|
+
/** Restrict results to the authoritative zone candidates for this domain. */
|
|
113
|
+
readonly domain?: DomainName;
|
|
114
|
+
/** Provider-specific account filter, when supported by the adapter. */
|
|
115
|
+
readonly accountId?: string;
|
|
116
|
+
}
|
|
117
|
+
type Resolution = Data.TaggedEnum<{
|
|
118
|
+
NotFound: {
|
|
119
|
+
readonly domain: DomainName;
|
|
120
|
+
};
|
|
121
|
+
Resolved: {
|
|
122
|
+
readonly target: ProviderTarget;
|
|
123
|
+
};
|
|
124
|
+
SelectionRequired: {
|
|
125
|
+
readonly candidates: ReadonlyArray<ProviderTarget>;
|
|
126
|
+
};
|
|
127
|
+
}>;
|
|
128
|
+
declare const Resolution: {
|
|
129
|
+
readonly $is: <Tag extends "NotFound" | "Resolved" | "SelectionRequired">(tag: Tag) => (u: unknown) => u is Extract<{
|
|
130
|
+
readonly _tag: "NotFound";
|
|
131
|
+
readonly domain: DomainName;
|
|
132
|
+
}, {
|
|
133
|
+
readonly _tag: Tag;
|
|
134
|
+
}> | Extract<{
|
|
135
|
+
readonly _tag: "Resolved";
|
|
136
|
+
readonly target: ProviderTarget;
|
|
137
|
+
}, {
|
|
138
|
+
readonly _tag: Tag;
|
|
139
|
+
}> | Extract<{
|
|
140
|
+
readonly _tag: "SelectionRequired";
|
|
141
|
+
readonly candidates: ReadonlyArray<ProviderTarget>;
|
|
142
|
+
}, {
|
|
143
|
+
readonly _tag: Tag;
|
|
144
|
+
}>;
|
|
145
|
+
readonly $match: {
|
|
146
|
+
<Cases extends { readonly [Tag in "NotFound" | "Resolved" | "SelectionRequired"]: (args: Extract<{
|
|
147
|
+
readonly _tag: "NotFound";
|
|
148
|
+
readonly domain: DomainName;
|
|
149
|
+
} | {
|
|
150
|
+
readonly _tag: "Resolved";
|
|
151
|
+
readonly target: ProviderTarget;
|
|
152
|
+
} | {
|
|
153
|
+
readonly _tag: "SelectionRequired";
|
|
154
|
+
readonly candidates: ReadonlyArray<ProviderTarget>;
|
|
155
|
+
}, {
|
|
156
|
+
readonly _tag: Tag;
|
|
157
|
+
}>) => any; }>(cases: Cases): (value: {
|
|
158
|
+
readonly _tag: "NotFound";
|
|
159
|
+
readonly domain: DomainName;
|
|
160
|
+
} | {
|
|
161
|
+
readonly _tag: "Resolved";
|
|
162
|
+
readonly target: ProviderTarget;
|
|
163
|
+
} | {
|
|
164
|
+
readonly _tag: "SelectionRequired";
|
|
165
|
+
readonly candidates: ReadonlyArray<ProviderTarget>;
|
|
166
|
+
}) => import("effect/Unify").Unify<ReturnType<Cases["NotFound" | "Resolved" | "SelectionRequired"]>>;
|
|
167
|
+
<Cases extends { readonly [Tag in "NotFound" | "Resolved" | "SelectionRequired"]: (args: Extract<{
|
|
168
|
+
readonly _tag: "NotFound";
|
|
169
|
+
readonly domain: DomainName;
|
|
170
|
+
} | {
|
|
171
|
+
readonly _tag: "Resolved";
|
|
172
|
+
readonly target: ProviderTarget;
|
|
173
|
+
} | {
|
|
174
|
+
readonly _tag: "SelectionRequired";
|
|
175
|
+
readonly candidates: ReadonlyArray<ProviderTarget>;
|
|
176
|
+
}, {
|
|
177
|
+
readonly _tag: Tag;
|
|
178
|
+
}>) => any; }>(value: {
|
|
179
|
+
readonly _tag: "NotFound";
|
|
180
|
+
readonly domain: DomainName;
|
|
181
|
+
} | {
|
|
182
|
+
readonly _tag: "Resolved";
|
|
183
|
+
readonly target: ProviderTarget;
|
|
184
|
+
} | {
|
|
185
|
+
readonly _tag: "SelectionRequired";
|
|
186
|
+
readonly candidates: ReadonlyArray<ProviderTarget>;
|
|
187
|
+
}, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["NotFound" | "Resolved" | "SelectionRequired"]>>;
|
|
188
|
+
};
|
|
189
|
+
readonly NotFound: Data.TaggedEnum.ConstructorFrom<{
|
|
190
|
+
readonly _tag: "NotFound";
|
|
191
|
+
readonly domain: DomainName;
|
|
192
|
+
}, "_tag">;
|
|
193
|
+
readonly Resolved: Data.TaggedEnum.ConstructorFrom<{
|
|
194
|
+
readonly _tag: "Resolved";
|
|
195
|
+
readonly target: ProviderTarget;
|
|
196
|
+
}, "_tag">;
|
|
197
|
+
readonly SelectionRequired: Data.TaggedEnum.ConstructorFrom<{
|
|
198
|
+
readonly _tag: "SelectionRequired";
|
|
199
|
+
readonly candidates: ReadonlyArray<ProviderTarget>;
|
|
200
|
+
}, "_tag">;
|
|
201
|
+
};
|
|
202
|
+
/** The credential material a provider adapter needs to restore a session. */
|
|
203
|
+
interface Credential {
|
|
204
|
+
readonly accessToken: Value;
|
|
205
|
+
readonly refreshToken: Value | null;
|
|
206
|
+
readonly tokenType: string;
|
|
207
|
+
}
|
|
208
|
+
/** The non-secret authorization projection required when restoring a provider session. */
|
|
209
|
+
type Authorization = Pick<ProviderAuthorization, "capabilityEvidence" | "expiresAt" | "method" | "providerContext" | "providerId" | "requiredCapabilities" | "revocation">;
|
|
210
|
+
interface RestoreInput {
|
|
211
|
+
readonly authorization: Authorization;
|
|
212
|
+
readonly credential: Credential;
|
|
213
|
+
}
|
|
214
|
+
/** Minimal Promise-shaped provider-session contract for hosts that do not use Effect directly. */
|
|
215
|
+
interface AsyncInterface {
|
|
216
|
+
readonly providerId: string;
|
|
217
|
+
readonly listTargets: (input?: ListTargetsInput) => Promise<ReadonlyArray<ProviderTarget>>;
|
|
218
|
+
readonly resolveTarget: (domain: DomainName) => Promise<Resolution>;
|
|
219
|
+
readonly forTarget: (target: ProviderTarget) => Promise<AsyncInterface$1>;
|
|
220
|
+
}
|
|
221
|
+
/** Adapts a Promise-shaped session to the Effect-native session boundary. */
|
|
222
|
+
declare const fromAsync: (session: AsyncInterface) => Interface$3;
|
|
223
|
+
/** Adapts an Effect-native session to the Promise facade. */
|
|
224
|
+
declare const toAsync$3: (session: Interface$3) => AsyncInterface;
|
|
101
225
|
//#endregion
|
|
102
226
|
//#region src/providers/cloudflare/protocol.d.ts
|
|
103
227
|
declare const Account$2: Schema.Struct<{
|
|
@@ -111,7 +235,8 @@ declare namespace client_d_exports$1 {
|
|
|
111
235
|
type Fetch$2 = (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
|
|
112
236
|
/** Configuration for an Effect-native Cloudflare authoritative-DNS client. */
|
|
113
237
|
interface Options$4 {
|
|
114
|
-
|
|
238
|
+
/** Account scope for account tokens; omit for user or OAuth credentials. */
|
|
239
|
+
readonly accountId?: string;
|
|
115
240
|
readonly baseUrl?: string;
|
|
116
241
|
/** Capabilities the host required when issuing or authorizing this credential. */
|
|
117
242
|
readonly capabilities: TokenValidation["capabilities"];
|
|
@@ -132,10 +257,14 @@ interface Zone$1 {
|
|
|
132
257
|
readonly nameservers: ReadonlyArray<DomainName>;
|
|
133
258
|
readonly status: string | null;
|
|
134
259
|
}
|
|
135
|
-
interface Interface$2 extends Interface$
|
|
136
|
-
readonly
|
|
137
|
-
readonly
|
|
138
|
-
readonly
|
|
260
|
+
interface Interface$2 extends Interface$4 {
|
|
261
|
+
readonly providerId: "cloudflare";
|
|
262
|
+
readonly forTarget: (target: ProviderTarget) => Effect.Effect<Interface$4, Error>;
|
|
263
|
+
readonly listAccounts: () => Effect.Effect<ReadonlyArray<Account$1>, Error>;
|
|
264
|
+
readonly listZones: (input?: ListZonesInput$1) => Effect.Effect<ReadonlyArray<Zone$1>, Error>;
|
|
265
|
+
readonly listTargets: (input?: ListTargetsInput) => Effect.Effect<ReadonlyArray<ProviderTarget>, Error>;
|
|
266
|
+
readonly resolveTarget: (domain: DomainName) => Effect.Effect<Resolution, Error>;
|
|
267
|
+
readonly validateToken: () => Effect.Effect<TokenValidation, Error>;
|
|
139
268
|
}
|
|
140
269
|
/** Exposes Cloudflare zone lookup as the optional provider discovery capability. */
|
|
141
270
|
declare function discovery$1(client: Interface$2): Source;
|
|
@@ -154,23 +283,25 @@ declare const discoverAuthorizationAccount: (options: CredentialOptions$1 & {
|
|
|
154
283
|
}) => Effect.Effect<{
|
|
155
284
|
readonly id: string;
|
|
156
285
|
readonly name: string;
|
|
157
|
-
}, Error
|
|
286
|
+
}, Error, never>;
|
|
158
287
|
declare const validateDomainToken: (options: DomainCredentialOptions) => Effect.Effect<{
|
|
159
288
|
accountId: string;
|
|
160
289
|
capabilities: readonly ("dns:read" | "dns:write")[];
|
|
161
290
|
expiresAt: Date | null;
|
|
162
291
|
scopes: never[];
|
|
163
|
-
}, Error
|
|
292
|
+
}, Error, never>;
|
|
164
293
|
/** Creates an Effect-native Cloudflare client without owning the credential lifecycle. */
|
|
165
294
|
declare function make$5(options: Options$4): Interface$2;
|
|
166
295
|
declare namespace auth_d_exports$1 {
|
|
167
|
-
export { Context$2 as Context, CredentialTarget, OAuthFlowOptions, OAuthMethodOptions, SubjectResolverOptions, TokenConnectionOptions$1 as TokenConnectionOptions, TokenValidatorOptions, contextCodec$1 as contextCodec, manifest$1 as manifest, oauthAuthentication, oauthFlow, oauthMethod, subjectResolver, tokenConnectionMethod$1 as tokenConnectionMethod, tokenMethod$1 as tokenMethod, tokenValidator };
|
|
296
|
+
export { Context$2 as Context, CredentialTarget, OAuthFlowOptions, OAuthMethodOptions, SubjectResolverOptions, TokenConnectionOptions$1 as TokenConnectionOptions, TokenValidatorOptions, contextCodec$1 as contextCodec, manifest$1 as manifest, oauthAuthentication, oauthFlow, oauthMethod, restore$1 as restore, subjectResolver, tokenConnectionMethod$1 as tokenConnectionMethod, tokenMethod$1 as tokenMethod, tokenValidator };
|
|
168
297
|
}
|
|
169
298
|
declare const Context$2: Schema.Struct<{
|
|
299
|
+
readonly accountId: Schema.optionalKey<Schema.String>;
|
|
170
300
|
readonly tokenKind: Schema.Literals<readonly ["account", "user"]>;
|
|
171
301
|
}>;
|
|
172
302
|
type Context$2 = typeof Context$2.Type;
|
|
173
303
|
declare const contextCodec$1: Codec<{
|
|
304
|
+
readonly accountId?: string;
|
|
174
305
|
readonly tokenKind: "account" | "user";
|
|
175
306
|
}>;
|
|
176
307
|
/** Describes Cloudflare's caller-created API-token authorization method. */
|
|
@@ -208,7 +339,7 @@ type TokenValidatorOptions = CredentialOptions & ({
|
|
|
208
339
|
readonly domain: DomainName;
|
|
209
340
|
readonly tokenKind?: "account" | "user";
|
|
210
341
|
});
|
|
211
|
-
/** Resolves the Cloudflare account selected by a completed OAuth
|
|
342
|
+
/** Resolves the Cloudflare account selected by a completed OAuth authorization. */
|
|
212
343
|
declare function subjectResolver(options: SubjectResolverOptions): OAuthSubjectResolver;
|
|
213
344
|
/** Creates a host callback that validates a Cloudflare API token. */
|
|
214
345
|
declare function tokenValidator(options: TokenValidatorOptions): (token: Value) => ReturnType<Interface$2["validateToken"]>;
|
|
@@ -219,7 +350,7 @@ type TokenConnectionOptions$1 = TokenValidatorOptions & {
|
|
|
219
350
|
declare function tokenConnectionMethod$1(options: TokenConnectionOptions$1): Extract<Method, {
|
|
220
351
|
readonly _tag: "Token";
|
|
221
352
|
}>;
|
|
222
|
-
/** Converts a completed Cloudflare OAuth
|
|
353
|
+
/** Converts a completed Cloudflare OAuth authorization into canonical connection authentication. */
|
|
223
354
|
declare const oauthAuthentication: (options: SubjectResolverOptions & {
|
|
224
355
|
readonly accessToken: Value;
|
|
225
356
|
readonly tokens: oauth.TokenEndpointResponse;
|
|
@@ -240,7 +371,9 @@ declare const oauthAuthentication: (options: SubjectResolverOptions & {
|
|
|
240
371
|
providerAccountId: string;
|
|
241
372
|
providerContext: Envelope;
|
|
242
373
|
scopes: string[];
|
|
243
|
-
}, Error$
|
|
374
|
+
}, Error$1 | Error, never>;
|
|
375
|
+
/** Restore a credential-scoped Cloudflare session from persisted authorization state. */
|
|
376
|
+
declare function restore$1(options: RestoreInput & Pick<Options$4, "baseUrl" | "fetch">): Effect.Effect<Interface$2, Error>;
|
|
244
377
|
type OAuthFlowOptions = SubjectResolverOptions & {
|
|
245
378
|
readonly client: OAuthClientConfiguration;
|
|
246
379
|
readonly clientAuth: OAuthMethod["clientAuth"];
|
|
@@ -289,17 +422,21 @@ interface Zone {
|
|
|
289
422
|
readonly nameservers: ReadonlyArray<DomainName>;
|
|
290
423
|
readonly status: "active" | "pending";
|
|
291
424
|
}
|
|
292
|
-
interface Interface$1 extends Interface$
|
|
293
|
-
readonly
|
|
294
|
-
readonly
|
|
295
|
-
readonly
|
|
425
|
+
interface Interface$1 extends Interface$4 {
|
|
426
|
+
readonly providerId: "vercel";
|
|
427
|
+
readonly forTarget: (target: ProviderTarget) => Effect.Effect<Interface$4, Error>;
|
|
428
|
+
readonly listAccounts: () => Effect.Effect<ReadonlyArray<Account>, Error>;
|
|
429
|
+
readonly listZones: (input?: ListZonesInput) => Effect.Effect<ReadonlyArray<Zone>, Error>;
|
|
430
|
+
readonly listTargets: (input?: ListTargetsInput) => Effect.Effect<ReadonlyArray<ProviderTarget>, Error>;
|
|
431
|
+
readonly resolveTarget: (domain: DomainName) => Effect.Effect<Resolution, Error>;
|
|
432
|
+
readonly validateToken: () => Effect.Effect<TokenValidation, Error>;
|
|
296
433
|
}
|
|
297
434
|
/** Exposes Vercel zone lookup as the optional provider discovery capability. */
|
|
298
435
|
declare function discovery(client: Interface$1): Source;
|
|
299
436
|
/** Creates an Effect-native Vercel client without owning the credential lifecycle. */
|
|
300
437
|
declare function make$4(options: Options$3): Interface$1;
|
|
301
438
|
declare namespace auth_d_exports {
|
|
302
|
-
export { Context$1 as Context, ExchangeCodeOptions, IntegrationCredential, IntegrationFlowOptions, IntegrationMethodOptions, TokenConnectionOptions, contextCodec, exchangeCode, integrationAuthentication, integrationFlow, integrationMethod, manifest, tokenConnectionMethod, tokenMethod };
|
|
439
|
+
export { Context$1 as Context, ExchangeCodeOptions, IntegrationCredential, IntegrationFlowOptions, IntegrationMethodOptions, TokenConnectionOptions, contextCodec, exchangeCode, integrationAuthentication, integrationFlow, integrationMethod, manifest, restore, tokenConnectionMethod, tokenMethod };
|
|
303
440
|
}
|
|
304
441
|
declare const Context$1: Schema.TaggedUnion<{
|
|
305
442
|
readonly personal: Schema.TaggedStruct<"personal", {
|
|
@@ -336,6 +473,8 @@ interface ExchangeCodeOptions {
|
|
|
336
473
|
readonly clientId: string;
|
|
337
474
|
readonly clientSecret: Value;
|
|
338
475
|
readonly code: Value;
|
|
476
|
+
/** Configuration ID returned by Vercel's integration callback, when available. */
|
|
477
|
+
readonly configurationId?: string;
|
|
339
478
|
readonly fetch?: Fetch$1;
|
|
340
479
|
readonly redirectUri: string;
|
|
341
480
|
}
|
|
@@ -357,7 +496,7 @@ declare const exchangeCode: (options: ExchangeCodeOptions) => Effect.Effect<{
|
|
|
357
496
|
};
|
|
358
497
|
installationId: string | null;
|
|
359
498
|
userId: string;
|
|
360
|
-
}, Error
|
|
499
|
+
}, Error, never>;
|
|
361
500
|
interface TokenConnectionOptions extends Omit<Options$3, "token"> {
|
|
362
501
|
readonly token: Value;
|
|
363
502
|
}
|
|
@@ -385,7 +524,9 @@ declare const integrationAuthentication: (options: ExchangeCodeOptions & {
|
|
|
385
524
|
providerAccountId: string;
|
|
386
525
|
providerContext: Envelope;
|
|
387
526
|
scopes: never[];
|
|
388
|
-
}, Error$
|
|
527
|
+
}, Error$1 | Error, never>;
|
|
528
|
+
/** Restore a credential-scoped Vercel session from persisted authorization state. */
|
|
529
|
+
declare function restore(options: RestoreInput & Pick<Options$3, "baseUrl" | "fetch">): Effect.Effect<Interface$1, Error>;
|
|
389
530
|
interface IntegrationFlowOptions extends Omit<ExchangeCodeOptions, "code">, IntegrationMethodOptions {}
|
|
390
531
|
/** Creates Vercel Integration's implementation of the common interactive connection capability. */
|
|
391
532
|
declare function integrationFlow(options: IntegrationFlowOptions): InteractiveFlow;
|
|
@@ -401,33 +542,33 @@ interface Options$2 {
|
|
|
401
542
|
readonly fetch?: Fetch;
|
|
402
543
|
readonly timeoutMs?: number;
|
|
403
544
|
}
|
|
404
|
-
declare function make$3(options: Options$2): Interface$
|
|
545
|
+
declare function make$3(options: Options$2): Interface$5;
|
|
405
546
|
declare const layer$2: (options: Options$2) => Layer.Layer<Service$1>;
|
|
406
|
-
declare const toAsync$2: (options: Options$2) => AsyncInterface;
|
|
547
|
+
declare const toAsync$2: (options: Options$2) => AsyncInterface$2;
|
|
407
548
|
declare namespace cloudflare_doh_d_exports {
|
|
408
549
|
export { Options$1 as Options, layer$1 as layer, make$2 as make, toAsync$1 as toAsync };
|
|
409
550
|
}
|
|
410
551
|
interface Options$1 extends Omit<Options$2, "endpoint"> {
|
|
411
552
|
readonly endpoint?: string;
|
|
412
553
|
}
|
|
413
|
-
declare function make$2(options?: Options$1): Interface$
|
|
554
|
+
declare function make$2(options?: Options$1): Interface$5;
|
|
414
555
|
declare const layer$1: (options?: Options$1) => Layer.Layer<Service$1>;
|
|
415
|
-
declare const toAsync$1: (options?: Options$1) => AsyncInterface;
|
|
556
|
+
declare const toAsync$1: (options?: Options$1) => AsyncInterface$2;
|
|
416
557
|
declare namespace google_doh_d_exports {
|
|
417
558
|
export { Options, layer, make$1 as make, toAsync };
|
|
418
559
|
}
|
|
419
560
|
interface Options extends Omit<Options$2, "endpoint"> {
|
|
420
561
|
readonly endpoint?: string;
|
|
421
562
|
}
|
|
422
|
-
declare function make$1(options?: Options): Interface$
|
|
563
|
+
declare function make$1(options?: Options): Interface$5;
|
|
423
564
|
declare const layer: (options?: Options) => Layer.Layer<Service$1>;
|
|
424
|
-
declare const toAsync: (options?: Options) => AsyncInterface;
|
|
565
|
+
declare const toAsync: (options?: Options) => AsyncInterface$2;
|
|
425
566
|
declare namespace resolver_pool_d_exports {
|
|
426
567
|
export { DefaultOptions, Entry, Interface, Observation, Policy, Service, defaultLayer, defaultMake, make };
|
|
427
568
|
}
|
|
428
569
|
interface Entry {
|
|
429
570
|
readonly id: string;
|
|
430
|
-
readonly resolver: Interface$
|
|
571
|
+
readonly resolver: Interface$5;
|
|
431
572
|
readonly timeoutMs?: number;
|
|
432
573
|
}
|
|
433
574
|
type Observation = Data.TaggedEnum<{
|
|
@@ -437,7 +578,7 @@ type Observation = Data.TaggedEnum<{
|
|
|
437
578
|
};
|
|
438
579
|
Failed: {
|
|
439
580
|
readonly message: string;
|
|
440
|
-
readonly reason: Exclude<Error$
|
|
581
|
+
readonly reason: Exclude<Error$2["reason"], "timeout">;
|
|
441
582
|
readonly resolverId: string;
|
|
442
583
|
};
|
|
443
584
|
NoData: {
|
|
@@ -458,7 +599,7 @@ declare const Observation: {
|
|
|
458
599
|
}> | Extract<{
|
|
459
600
|
readonly _tag: "Failed";
|
|
460
601
|
readonly message: string;
|
|
461
|
-
readonly reason: Exclude<Error$
|
|
602
|
+
readonly reason: Exclude<Error$2["reason"], "timeout">;
|
|
462
603
|
readonly resolverId: string;
|
|
463
604
|
}, {
|
|
464
605
|
readonly _tag: Tag;
|
|
@@ -482,7 +623,7 @@ declare const Observation: {
|
|
|
482
623
|
} | {
|
|
483
624
|
readonly _tag: "Failed";
|
|
484
625
|
readonly message: string;
|
|
485
|
-
readonly reason: Exclude<Error$
|
|
626
|
+
readonly reason: Exclude<Error$2["reason"], "timeout">;
|
|
486
627
|
readonly resolverId: string;
|
|
487
628
|
} | {
|
|
488
629
|
readonly _tag: "NoData";
|
|
@@ -500,7 +641,7 @@ declare const Observation: {
|
|
|
500
641
|
} | {
|
|
501
642
|
readonly _tag: "Failed";
|
|
502
643
|
readonly message: string;
|
|
503
|
-
readonly reason: Exclude<Error$
|
|
644
|
+
readonly reason: Exclude<Error$2["reason"], "timeout">;
|
|
504
645
|
readonly resolverId: string;
|
|
505
646
|
} | {
|
|
506
647
|
readonly _tag: "NoData";
|
|
@@ -517,7 +658,7 @@ declare const Observation: {
|
|
|
517
658
|
} | {
|
|
518
659
|
readonly _tag: "Failed";
|
|
519
660
|
readonly message: string;
|
|
520
|
-
readonly reason: Exclude<Error$
|
|
661
|
+
readonly reason: Exclude<Error$2["reason"], "timeout">;
|
|
521
662
|
readonly resolverId: string;
|
|
522
663
|
} | {
|
|
523
664
|
readonly _tag: "NoData";
|
|
@@ -535,7 +676,7 @@ declare const Observation: {
|
|
|
535
676
|
} | {
|
|
536
677
|
readonly _tag: "Failed";
|
|
537
678
|
readonly message: string;
|
|
538
|
-
readonly reason: Exclude<Error$
|
|
679
|
+
readonly reason: Exclude<Error$2["reason"], "timeout">;
|
|
539
680
|
readonly resolverId: string;
|
|
540
681
|
} | {
|
|
541
682
|
readonly _tag: "NoData";
|
|
@@ -554,7 +695,7 @@ declare const Observation: {
|
|
|
554
695
|
readonly Failed: Data.TaggedEnum.ConstructorFrom<{
|
|
555
696
|
readonly _tag: "Failed";
|
|
556
697
|
readonly message: string;
|
|
557
|
-
readonly reason: Exclude<Error$
|
|
698
|
+
readonly reason: Exclude<Error$2["reason"], "timeout">;
|
|
558
699
|
readonly resolverId: string;
|
|
559
700
|
}, "_tag">;
|
|
560
701
|
readonly NoData: Data.TaggedEnum.ConstructorFrom<{
|
|
@@ -1094,9 +1235,9 @@ declare const Result: {
|
|
|
1094
1235
|
readonly publicDns: PublicDnsObservation | null;
|
|
1095
1236
|
}, "_tag">;
|
|
1096
1237
|
};
|
|
1097
|
-
declare function observe(input: PublicOnlyConfig): Effect.Effect<Result, Error$
|
|
1098
|
-
declare function observe(input: ProviderConfig): Effect.Effect<Result, Error$
|
|
1099
|
-
declare function observe(input: Config): Effect.Effect<Result, Error$
|
|
1238
|
+
declare function observe(input: PublicOnlyConfig): Effect.Effect<Result, Error$1>;
|
|
1239
|
+
declare function observe(input: ProviderConfig): Effect.Effect<Result, Error$1, Service$2>;
|
|
1240
|
+
declare function observe(input: Config): Effect.Effect<Result, Error$1, Service$2>;
|
|
1100
1241
|
//#endregion
|
|
1101
|
-
export {
|
|
1102
|
-
//# sourceMappingURL=verify-
|
|
1242
|
+
export { zones_d_exports as $, Options$3 as A, oauthMethod as B, manifest as C, Fetch$1 as D, AccountContext as E, OAuthMethodOptions as F, ListZonesInput$1 as G, Account$1 as H, SubjectResolverOptions as I, Interface$3 as J, Options$4 as K, TokenConnectionOptions$1 as L, index_d_exports$1 as M, CredentialTarget as N, Interface$1 as O, OAuthFlowOptions as P, session_d_exports as Q, TokenValidatorOptions as R, integrationMethod as S, Account as T, Fetch$2 as U, tokenMethod$1 as V, Interface$2 as W, Resolution as X, ListTargetsInput as Y, RestoreInput as Z, ExchangeCodeOptions as _, verify_d_exports as a, IntegrationMethodOptions as b, Policy as c, google_doh_d_exports as d, selection_d_exports as et, Options$1 as f, index_d_exports as g, doh_d_exports as h, Result as i, Zone as j, ListZonesInput as k, resolver_pool_d_exports as l, Options$2 as m, PublicDns as n, DefaultOptions as o, cloudflare_doh_d_exports as p, Zone$1 as q, PublicDnsObservation as r, Observation as s, ProviderObservation as t, diagnostic_d_exports as tt, Options as u, IntegrationCredential as v, tokenMethod as w, TokenConnectionOptions as x, IntegrationFlowOptions as y, manifest$1 as z };
|
|
1243
|
+
//# sourceMappingURL=verify-6xK05pwL.d.mts.map
|