domainkit 0.5.0 → 0.6.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.
@@ -1,189 +1,10 @@
1
- import { $ as InteractiveStart, $t as Cname, A as renderManualInstructions$1, At as CapabilityEvidence, Bt as TokenValidation, C as DiscoverCreateInput$1, Ct as StoredConnection, Dt as encode, E as ResolvedCreateResult, F as PlanAuthorization, Ft as Method$2, G as AuthenticationFailure, Gt as CreateResult, H as Source$1, Ht as Value, I as Receipt, It as OAuthClientConfiguration, J as Continuation, K as BaseInput, L as Schema$4, Lt as OAuthMethod, M as Authorization, Mt as AsyncOAuthSubjectResolver, N as DnsPlan, O as Target, Ot as validate, P as Operation, Pt as Manifest, Q as InteractiveFlow$1, Qt as Caa, R as encode$1, S as CreateResult$1, St as ProviderTargetEvidence, Tt as authorizationError, Ut as secret_d_exports, V as Candidate, W as Authentication, Wt as AsyncInterface$1, X as Error$1, Xt as A, Z as Failure, Zt as Aaaa, _ as Receipt$1, _t as AuthorizationError, an as Opaque, bn as invalid_input_d_exports, bt as ProviderConnection, cn as Srv, d as Authorization$1, dn as data, dt as ConnectInput, en as DnsRecord, et as Method$1, f as CreateError, ft as DetachResult, g as Plan, gn as Schema$3, gt as Service, h as PartialError, hn as DomainName, ht as Interface$4, in as Observed, j as ApplyReceipt, jt as ProviderAuthorization, kt as Capability, ln as Txt, lt as Aggregate, m as Operation$1, mn as parse, mt as Error, n as AsyncInterface$2, nn as Mx, o as Query, on as RequirementMetadata, ot as provider_context_d_exports, p as Error$2, pn as equals, pt as DisconnectResult, q as CompleteInput, r as AsyncResolution, rn as Ns, sn as Schema$2, t as Answer, tn as Encoded, tt as StartResult, u as ApplyError, un as Type, ut as AttachmentResult, vn as parse$1, vt as ConnectionStatus, w as ExactCreateInput$1, wt as StoredCredential, xt as ProviderTarget, yt as DomainAttachment, z as encodeReceipt, zt as Schema$1 } from "./resolver-BGBLnPjJ.mjs";
2
- import { $ as zones_d_exports, A as Options$4, B as oauthMethod$1, C as manifest$3, D as Fetch$1, E as AccountContext, F as OAuthMethodOptions, G as ListZonesInput, H as Account, I as SubjectResolverOptions, J as Interface$5, K as Options$3, L as TokenConnectionOptions, N as CredentialTarget, O as Interface$7, P as OAuthFlowOptions, R as TokenValidatorOptions, S as integrationMethod$1, T as Account$1, U as Fetch, V as tokenMethod$2, W as Interface$6, X as Resolution, Y as ListTargetsInput, Z as RestoreInput, _ as ExchangeCodeOptions, b as IntegrationMethodOptions, c as Policy, et as selection_d_exports, f as Options$5, i as Result, j as Zone$1, k as ListZonesInput$1, m as Options$6, n as PublicDns$1, o as DefaultOptions, q as Zone, r as PublicDnsObservation, s as Observation, t as ProviderObservation, tt as diagnostic_d_exports, u as Options$7, v as IntegrationCredential, w as tokenMethod$3, x as TokenConnectionOptions$1, y as IntegrationFlowOptions, z as manifest$2 } from "./verify-6xK05pwL.mjs";
3
- import { Data, Layer } from "effect";
4
- declare namespace managed_dns_connections_d_exports {
5
- export { AsyncInterface, AttachmentResult, DetachResult, DisconnectResult, Error, from, layerFromAsync, toAsync };
6
- }
7
- interface AsyncInterface {
8
- readonly attach: (input: {
9
- readonly attachment: DomainAttachment;
10
- readonly connectionId: string;
11
- readonly ownerId: string;
12
- }) => Promise<AttachmentResult>;
13
- readonly connect: (input: ConnectInput) => Promise<Aggregate>;
14
- readonly detach: (input: {
15
- readonly attachmentId: string;
16
- readonly ownerId: string;
17
- }) => Promise<DetachResult>;
18
- readonly disconnect: (input: {
19
- readonly connectionId: string;
20
- readonly ownerId: string;
21
- readonly revoke: (authorization: ProviderAuthorization) => Promise<void>;
22
- }) => Promise<DisconnectResult>;
23
- readonly findConnection: (ownerId: string, authorizationId: string) => Promise<StoredConnection | null>;
24
- readonly get: (authorizationId: string) => Promise<Aggregate | null>;
25
- readonly getAttachment: (attachmentId: string) => Promise<DomainAttachment | null>;
26
- readonly getByConnectionId: (connectionId: string) => Promise<Aggregate | null>;
27
- readonly listAttachments: (connectionId: string, ownerId: string) => Promise<ReadonlyArray<DomainAttachment>>;
28
- readonly promoteEvidence: (authorizationId: string, evidence: ReadonlyArray<CapabilityEvidence>) => Promise<Aggregate>;
29
- readonly recover: (input: {
30
- readonly authorizationId: string;
31
- readonly revoke: (authorization: ProviderAuthorization) => Promise<void>;
32
- }) => Promise<DisconnectResult>;
33
- readonly rotate: (authorizationId: string, credential: StoredCredential, expiresAt: Date | null) => Promise<Aggregate>;
34
- }
35
- declare const layerFromAsync: (repository: AsyncInterface) => Layer.Layer<Service>;
36
- declare const toAsync: (service: Interface$4) => AsyncInterface;
37
- declare const from: (repository: AsyncInterface) => AsyncInterface;
38
- declare namespace connection_d_exports {
39
- export { Authentication, AuthenticationFailure, AuthorizationError, BaseInput, CompleteInput, ConnectionStatus, Continuation, ContinuationStore, DomainAttachment, Error$1 as Error, Failure, InteractiveFlow, InteractiveStart, Method, ProviderConnection, ProviderTarget, ProviderTargetEvidence, StartResult, attach, authorizationError, complete, decode$2 as decode, detach, disconnect, encode, fromEffectFlow, fromEffectTokenMethod, start, validate };
40
- }
41
- declare function decode$2(input: unknown): Promise<ProviderConnection>;
42
- type Method = Data.TaggedEnum<{
43
- Interactive: {
44
- readonly continuations: ContinuationStore;
45
- readonly flow: InteractiveFlow;
46
- readonly ttlMs?: number;
47
- };
48
- Token: {
49
- readonly authenticate: (token: Value) => Promise<Authentication>;
50
- readonly providerId: string;
51
- readonly requiredCapabilities: ReadonlyArray<Capability>;
52
- readonly token: Value;
53
- };
54
- }>;
55
- declare const Method: {
56
- readonly $is: <Tag extends "Interactive" | "Token">(tag: Tag) => (u: unknown) => u is Extract<{
57
- readonly _tag: "Interactive";
58
- readonly continuations: ContinuationStore;
59
- readonly flow: InteractiveFlow;
60
- readonly ttlMs?: number;
61
- }, {
62
- readonly _tag: Tag;
63
- }> | Extract<{
64
- readonly _tag: "Token";
65
- readonly authenticate: (token: Value) => Promise<Authentication>;
66
- readonly providerId: string;
67
- readonly requiredCapabilities: ReadonlyArray<Capability>;
68
- readonly token: Value;
69
- }, {
70
- readonly _tag: Tag;
71
- }>;
72
- readonly $match: {
73
- <Cases extends { readonly [Tag in "Interactive" | "Token"]: (args: Extract<{
74
- readonly _tag: "Interactive";
75
- readonly continuations: ContinuationStore;
76
- readonly flow: InteractiveFlow;
77
- readonly ttlMs?: number;
78
- } | {
79
- readonly _tag: "Token";
80
- readonly authenticate: (token: Value) => Promise<Authentication>;
81
- readonly providerId: string;
82
- readonly requiredCapabilities: ReadonlyArray<Capability>;
83
- readonly token: Value;
84
- }, {
85
- readonly _tag: Tag;
86
- }>) => any; }>(cases: Cases): (value: {
87
- readonly _tag: "Interactive";
88
- readonly continuations: ContinuationStore;
89
- readonly flow: InteractiveFlow;
90
- readonly ttlMs?: number;
91
- } | {
92
- readonly _tag: "Token";
93
- readonly authenticate: (token: Value) => Promise<Authentication>;
94
- readonly providerId: string;
95
- readonly requiredCapabilities: ReadonlyArray<Capability>;
96
- readonly token: Value;
97
- }) => import("effect/Unify").Unify<ReturnType<Cases["Interactive" | "Token"]>>;
98
- <Cases extends { readonly [Tag in "Interactive" | "Token"]: (args: Extract<{
99
- readonly _tag: "Interactive";
100
- readonly continuations: ContinuationStore;
101
- readonly flow: InteractiveFlow;
102
- readonly ttlMs?: number;
103
- } | {
104
- readonly _tag: "Token";
105
- readonly authenticate: (token: Value) => Promise<Authentication>;
106
- readonly providerId: string;
107
- readonly requiredCapabilities: ReadonlyArray<Capability>;
108
- readonly token: Value;
109
- }, {
110
- readonly _tag: Tag;
111
- }>) => any; }>(value: {
112
- readonly _tag: "Interactive";
113
- readonly continuations: ContinuationStore;
114
- readonly flow: InteractiveFlow;
115
- readonly ttlMs?: number;
116
- } | {
117
- readonly _tag: "Token";
118
- readonly authenticate: (token: Value) => Promise<Authentication>;
119
- readonly providerId: string;
120
- readonly requiredCapabilities: ReadonlyArray<Capability>;
121
- readonly token: Value;
122
- }, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["Interactive" | "Token"]>>;
123
- };
124
- readonly Interactive: Data.TaggedEnum.ConstructorFrom<{
125
- readonly _tag: "Interactive";
126
- readonly continuations: ContinuationStore;
127
- readonly flow: InteractiveFlow;
128
- readonly ttlMs?: number;
129
- }, "_tag">;
130
- readonly Token: Data.TaggedEnum.ConstructorFrom<{
131
- readonly _tag: "Token";
132
- readonly authenticate: (token: Value) => Promise<Authentication>;
133
- readonly providerId: string;
134
- readonly requiredCapabilities: ReadonlyArray<Capability>;
135
- readonly token: Value;
136
- }, "_tag">;
137
- };
138
- interface ContinuationStore {
139
- readonly consume: (id: string, now: Date) => Promise<Continuation | null>;
140
- readonly put: (continuation: Continuation) => Promise<void>;
141
- }
142
- interface InteractiveFlow {
143
- readonly complete: (payload: Value, callbackUrl: URL) => Promise<Authentication>;
144
- readonly method: "integration" | "oauth2";
145
- readonly providerId: string;
146
- readonly requiredCapabilities: ReadonlyArray<Capability>;
147
- readonly start: (continuationId: string) => Promise<InteractiveStart>;
148
- }
149
- /** Adapts an Effect-native provider flow to the Promise facade. */
150
- declare const fromEffectFlow: (flow: InteractiveFlow$1) => InteractiveFlow;
151
- /** Adapts an Effect-native token method to the Promise facade. */
152
- declare function fromEffectTokenMethod(method: Extract<Method$1, {
153
- readonly _tag: "Token";
154
- }>): Extract<Method, {
155
- readonly _tag: "Token";
156
- }>;
157
- declare function start(input: BaseInput & {
158
- readonly method: Method;
159
- readonly repository: AsyncInterface;
160
- }): Promise<StartResult>;
161
- declare function complete(input: {
162
- readonly callbackUrl: URL;
163
- readonly continuationId: string;
164
- readonly continuations: ContinuationStore;
165
- readonly flow: InteractiveFlow;
166
- readonly repository: AsyncInterface;
167
- }): Promise<ProviderConnection>;
168
- declare function attach(input: {
169
- readonly attachment: DomainAttachment;
170
- readonly connectionId: string;
171
- readonly ownerId: string;
172
- readonly repository: AsyncInterface;
173
- }): Promise<AttachmentResult>;
174
- declare function detach(input: {
175
- readonly attachmentId: string;
176
- readonly ownerId: string;
177
- readonly repository: AsyncInterface;
178
- }): Promise<DetachResult>;
179
- declare function disconnect(input: {
180
- readonly connectionId: string;
181
- readonly ownerId: string;
182
- readonly repository: AsyncInterface;
183
- readonly revoke: (authorization: ProviderAuthorization) => Promise<void>;
184
- }): Promise<DisconnectResult>;
1
+ import { $ as Schema$1, At as Schema$3, Ct as Txt, Dt as equals, J as Manifest, K as AsyncOAuthSubjectResolver, M as ProviderConnection, Mt as parse$1, N as ProviderTarget, Ot as parse, Pt as invalid_input_d_exports, St as Srv, Tt as data, W as ProviderAuthorization, X as OAuthClientConfiguration, Y as Method, Z as OAuthMethod, _ as provider_context_d_exports, _t as Ns, at as CreateResult, bt as RequirementMetadata, dt as Aaaa, et as TokenValidation, ft as Caa, gt as Mx, ht as Encoded, it as AsyncInterface, j as DomainAttachment, kt as DomainName, mt as DnsRecord, nt as Value, pt as Cname, rt as secret_d_exports, ut as A, vt as Observed, wt as Type, xt as Schema$2, yt as Opaque } from "./connect-Db830jad.mjs";
2
+ import { $ as RestoreInput, A as Options$4, B as manifest$2, C as manifest$3, D as Fetch$1, E as AccountContext, F as OAuthMethodOptions, G as Interface$5, H as tokenMethod$2, I as RefreshCredentialOptions, J as Zone, K as ListZonesInput, L as SubjectResolverOptions, N as CredentialTarget, O as Interface$6, P as OAuthFlowOptions, Q as Resolution, R as TokenConnectionOptions, S as integrationMethod$1, T as Account$1, U as Account, V as oauthMethod$1, W as Fetch, X as Interface$4, Y as Credential, Z as ListTargetsInput, _ as ExchangeCodeOptions, b as IntegrationMethodOptions, c as Policy, f as Options$5, i as Result, j as Zone$1, k as ListZonesInput$1, m as Options$6, n as PublicDns$1, nt as selection_d_exports, o as DefaultOptions, q as Options$3, r as PublicDnsObservation, rt as diagnostic_d_exports, s as Observation, t as ProviderObservation, tt as zones_d_exports, u as Options$7, v as IntegrationCredential, w as tokenMethod$3, x as TokenConnectionOptions$1, y as IntegrationFlowOptions, z as TokenValidatorOptions } from "./verify-yAy-r9no.mjs";
3
+ import { A as renderManualInstructions$1, C as DiscoverCreateInput$1, E as ResolvedCreateResult, F as PlanAuthorization, H as Source$1, I as Receipt, L as Schema$4, M as Authorization, N as DnsPlan, O as Target, P as Operation, R as encode, S as CreateResult$1, V as Candidate, _ 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-DUAIlm2I.mjs";
4
+ import { a as managed_dns_connections_d_exports, i as AsyncInterface$2, n as Method$1, r as connection_d_exports, t as InteractiveFlow } from "./connection-DuYDgWir.mjs";
5
+ import { Data } from "effect";
185
6
  declare namespace dns_provider_d_exports {
186
- export { CreateResult, AsyncInterface$1 as Interface };
7
+ export { CreateResult, AsyncInterface as Interface };
187
8
  }
188
9
  declare namespace provider_session_d_exports {
189
10
  export { Interface$3 as Interface, ListTargetsInput, Resolution, fromEffect };
@@ -192,14 +13,14 @@ interface Interface$3 {
192
13
  readonly providerId: string;
193
14
  readonly listTargets: (input?: ListTargetsInput) => Promise<ReadonlyArray<ProviderTarget>>;
194
15
  readonly resolveTarget: (domain: DomainName) => Promise<Resolution>;
195
- readonly forTarget: (target: ProviderTarget) => Promise<AsyncInterface$1>;
16
+ readonly forTarget: (target: ProviderTarget) => Promise<AsyncInterface>;
196
17
  }
197
- declare const fromEffect: (session: Interface$5) => Interface$3;
18
+ declare const fromEffect: (session: Interface$4) => Interface$3;
198
19
  declare namespace dns_resolver_d_exports {
199
- export { Answer, AsyncInterface$2 as Interface, Query, AsyncResolution as Resolution };
20
+ export { Answer, AsyncInterface$1 as Interface, Query, AsyncResolution as Resolution };
200
21
  }
201
22
  declare namespace provider_auth_d_exports {
202
- export { Manifest, Method$2 as Method, OAuthClientConfiguration, OAuthMethod, AsyncOAuthSubjectResolver as OAuthSubjectResolver, Schema$1 as Schema, TokenValidation, decode$1 as decode };
23
+ export { Manifest, Method, OAuthClientConfiguration, OAuthMethod, AsyncOAuthSubjectResolver as OAuthSubjectResolver, Schema$1 as Schema, TokenValidation, decode$1 as decode };
203
24
  }
204
25
  declare function decode$1(input: unknown): Promise<Manifest>;
205
26
  declare namespace zone_discovery_d_exports {
@@ -207,7 +28,7 @@ declare namespace zone_discovery_d_exports {
207
28
  }
208
29
  interface Source {
209
30
  readonly listZones: (name: DomainName) => Promise<ReadonlyArray<Omit<Candidate, "providerId">>>;
210
- readonly provider: AsyncInterface$1;
31
+ readonly provider: AsyncInterface;
211
32
  }
212
33
  type Outcome = {
213
34
  readonly _tag: "NotFound";
@@ -231,16 +52,16 @@ declare namespace domain_name_d_exports {
231
52
  export { DomainName, Schema$3 as Schema, parse$1 as parse };
232
53
  }
233
54
  declare namespace dns_plan_d_exports {
234
- export { ApplyReceipt, Authorization, DnsPlan, Operation, PlanAuthorization, Receipt, Schema$4 as Schema, decode, decodeReceipt, encode$1 as encode, encodeReceipt };
55
+ export { ApplyReceipt, Authorization, DnsPlan, Operation, PlanAuthorization, Receipt, Schema$4 as Schema, decode, decodeReceipt, encode, encodeReceipt };
235
56
  }
236
57
  declare function decode(input: unknown): Promise<DnsPlan>;
237
58
  declare function decodeReceipt(input: unknown): Promise<ApplyReceipt>;
238
59
  declare namespace deletion_d_exports {
239
- export { ApplyError, Authorization$1 as Authorization, CreateError, Authorization$1 as DeletionAuthorization, Operation$1 as DeletionOperation, Plan as DeletionPlan, Receipt$1 as DeletionReceipt, Error$2 as Error, Operation$1 as Operation, PartialError, Plan, Receipt$1 as Receipt, apply$1 as apply, authorize$1 as authorize, create$1 as create };
60
+ 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 };
240
61
  }
241
62
  declare function create$1(input: {
242
63
  readonly plan: DnsPlan;
243
- readonly provider: AsyncInterface$1;
64
+ readonly provider: AsyncInterface;
244
65
  readonly receipt: ApplyReceipt;
245
66
  readonly ttlMs?: number;
246
67
  }): Promise<Plan>;
@@ -249,29 +70,30 @@ declare function apply$1(input: {
249
70
  readonly authorization: Authorization$1;
250
71
  readonly plan: Plan;
251
72
  readonly priorReceipt?: Receipt$1;
252
- readonly provider: AsyncInterface$1;
73
+ readonly provider: AsyncInterface;
253
74
  }): Promise<Receipt$1>;
254
75
  declare namespace cloudflare_auth_d_exports {
255
- export { CredentialTarget, OAuthFlowOptions, OAuthMethodOptions, SubjectResolverOptions, TokenValidatorOptions, manifest$1 as manifest, oauthFlow, oauthMethod, restore$1 as restore, subjectResolver, tokenConnectionMethod$1 as tokenConnectionMethod, tokenMethod$1 as tokenMethod, tokenValidator };
76
+ export { CredentialTarget, OAuthFlowOptions, OAuthMethodOptions, RefreshCredentialOptions, SubjectResolverOptions, TokenValidatorOptions, manifest$1 as manifest, oauthFlow, oauthMethod, refreshCredential, restore$1 as restore, subjectResolver, tokenConnectionMethod$1 as tokenConnectionMethod, tokenMethod$1 as tokenMethod, tokenValidator };
256
77
  }
257
78
  declare const manifest$1: typeof manifest$2;
258
79
  declare const oauthMethod: typeof oauthMethod$1;
259
- declare function restore$1(options: RestoreInput & Pick<Options$3, "baseUrl" | "fetch">): Promise<Interface$6>;
80
+ declare function refreshCredential(options: RefreshCredentialOptions): Promise<Credential>;
81
+ declare function restore$1(options: RestoreInput & Pick<Options$3, "baseUrl" | "fetch">): Promise<Interface$5>;
260
82
  declare const tokenMethod$1: typeof tokenMethod$2;
261
83
  declare function subjectResolver(options: SubjectResolverOptions): AsyncOAuthSubjectResolver;
262
84
  /** Creates Cloudflare's OAuth implementation for the Promise connection facade. */
263
85
  declare function oauthFlow(options: OAuthFlowOptions): InteractiveFlow;
264
86
  /** Creates a Cloudflare token method for the Promise connection facade. */
265
- declare function tokenConnectionMethod$1(options: TokenConnectionOptions): Extract<Method, {
87
+ declare function tokenConnectionMethod$1(options: TokenConnectionOptions): Extract<Method$1, {
266
88
  readonly _tag: "Token";
267
89
  }>;
268
90
  declare function tokenValidator(options: TokenValidatorOptions): (token: Value) => Promise<TokenValidation>;
269
91
  declare namespace cloudflare_d_exports {
270
92
  export { Account, cloudflare_auth_d_exports as Auth, Fetch, Interface$2 as Interface, ListZonesInput, Options$3 as Options, Zone, discovery$1 as discovery, make$5 as make };
271
93
  }
272
- interface Interface$2 extends AsyncInterface$1 {
94
+ interface Interface$2 extends AsyncInterface {
273
95
  readonly providerId: "cloudflare";
274
- readonly forTarget: (target: ProviderTarget) => Promise<AsyncInterface$1>;
96
+ readonly forTarget: (target: ProviderTarget) => Promise<AsyncInterface>;
275
97
  readonly listAccounts: () => Promise<ReadonlyArray<Account>>;
276
98
  readonly listZones: (input?: ListZonesInput) => Promise<ReadonlyArray<Zone>>;
277
99
  readonly listTargets: (input?: ListTargetsInput) => Promise<ReadonlyArray<ProviderTarget>>;
@@ -287,21 +109,21 @@ declare namespace vercel_auth_d_exports {
287
109
  }
288
110
  declare const integrationMethod: typeof integrationMethod$1;
289
111
  declare const manifest: typeof manifest$3;
290
- declare function restore(options: RestoreInput & Pick<Options$4, "baseUrl" | "fetch">): Promise<Interface$7>;
112
+ declare function restore(options: RestoreInput & Pick<Options$4, "baseUrl" | "fetch">): Promise<Interface$6>;
291
113
  declare const tokenMethod: typeof tokenMethod$3;
292
114
  declare function exchangeCode(options: ExchangeCodeOptions): Promise<IntegrationCredential>;
293
115
  /** Creates Vercel Integration's implementation for the Promise connection facade. */
294
116
  declare function integrationFlow(options: IntegrationFlowOptions): InteractiveFlow;
295
117
  /** Creates a Vercel token method for the Promise connection facade. */
296
- declare function tokenConnectionMethod(options: TokenConnectionOptions$1): Extract<Method, {
118
+ declare function tokenConnectionMethod(options: TokenConnectionOptions$1): Extract<Method$1, {
297
119
  readonly _tag: "Token";
298
120
  }>;
299
121
  declare namespace vercel_d_exports {
300
122
  export { Account$1 as Account, AccountContext, vercel_auth_d_exports as Auth, Fetch$1 as Fetch, Interface$1 as Interface, ListZonesInput$1 as ListZonesInput, Options$4 as Options, Zone$1 as Zone, discovery, make$4 as make };
301
123
  }
302
- interface Interface$1 extends AsyncInterface$1 {
124
+ interface Interface$1 extends AsyncInterface {
303
125
  readonly providerId: "vercel";
304
- readonly forTarget: (target: ProviderTarget) => Promise<AsyncInterface$1>;
126
+ readonly forTarget: (target: ProviderTarget) => Promise<AsyncInterface>;
305
127
  readonly listAccounts: () => Promise<ReadonlyArray<Account$1>>;
306
128
  readonly listZones: (input?: ListZonesInput$1) => Promise<ReadonlyArray<Zone$1>>;
307
129
  readonly listTargets: (input?: ListTargetsInput) => Promise<ReadonlyArray<ProviderTarget>>;
@@ -316,7 +138,7 @@ declare namespace provisioning_d_exports {
316
138
  export { CreateResult$1 as CreateResult, DiscoverCreateInput, ExactCreateInput, Target, apply, authorize, authorizeForConnection, create, renderManualInstructions };
317
139
  }
318
140
  interface ExactCreateInput extends ExactCreateInput$1 {
319
- readonly provider: AsyncInterface$1;
141
+ readonly provider: AsyncInterface;
320
142
  }
321
143
  interface DiscoverCreateInput extends DiscoverCreateInput$1 {
322
144
  readonly sources: ReadonlyArray<Source>;
@@ -329,7 +151,7 @@ declare function authorize(plan: DnsPlan, operationIds?: ReadonlyArray<string>,
329
151
  declare function apply(input: {
330
152
  readonly authorization: PlanAuthorization;
331
153
  readonly plan: DnsPlan;
332
- readonly provider: AsyncInterface$1;
154
+ readonly provider: AsyncInterface;
333
155
  }): Promise<ApplyReceipt>;
334
156
  declare function authorizeForConnection(input: {
335
157
  readonly allowPartial?: boolean;
@@ -339,7 +161,7 @@ declare function authorizeForConnection(input: {
339
161
  readonly domain: string;
340
162
  readonly operationIds?: ReadonlyArray<string>;
341
163
  readonly plan: DnsPlan;
342
- readonly repository: AsyncInterface;
164
+ readonly repository: AsyncInterface$2;
343
165
  }): Promise<PlanAuthorization>;
344
166
  declare const renderManualInstructions: typeof renderManualInstructions$1;
345
167
  declare namespace resolver_pool_d_exports {
@@ -347,7 +169,7 @@ declare namespace resolver_pool_d_exports {
347
169
  }
348
170
  interface Entry {
349
171
  readonly id: string;
350
- readonly resolver: AsyncInterface$2;
172
+ readonly resolver: AsyncInterface$1;
351
173
  readonly timeoutMs?: number;
352
174
  }
353
175
  interface Interface {
@@ -409,7 +231,7 @@ declare const PublicDns: {
409
231
  type Provider = Data.TaggedEnum<{
410
232
  Disabled: {};
411
233
  Enabled: {
412
- readonly provider: AsyncInterface$1;
234
+ readonly provider: AsyncInterface;
413
235
  readonly zone: DomainName;
414
236
  };
415
237
  }>;
@@ -420,7 +242,7 @@ declare const Provider: {
420
242
  readonly _tag: Tag;
421
243
  }> | Extract<{
422
244
  readonly _tag: "Enabled";
423
- readonly provider: AsyncInterface$1;
245
+ readonly provider: AsyncInterface;
424
246
  readonly zone: DomainName;
425
247
  }, {
426
248
  readonly _tag: Tag;
@@ -430,7 +252,7 @@ declare const Provider: {
430
252
  readonly _tag: "Disabled";
431
253
  } | {
432
254
  readonly _tag: "Enabled";
433
- readonly provider: AsyncInterface$1;
255
+ readonly provider: AsyncInterface;
434
256
  readonly zone: DomainName;
435
257
  }, {
436
258
  readonly _tag: Tag;
@@ -438,14 +260,14 @@ declare const Provider: {
438
260
  readonly _tag: "Disabled";
439
261
  } | {
440
262
  readonly _tag: "Enabled";
441
- readonly provider: AsyncInterface$1;
263
+ readonly provider: AsyncInterface;
442
264
  readonly zone: DomainName;
443
265
  }) => import("effect/Unify").Unify<ReturnType<Cases["Disabled" | "Enabled"]>>;
444
266
  <Cases extends { readonly [Tag in "Disabled" | "Enabled"]: (args: Extract<{
445
267
  readonly _tag: "Disabled";
446
268
  } | {
447
269
  readonly _tag: "Enabled";
448
- readonly provider: AsyncInterface$1;
270
+ readonly provider: AsyncInterface;
449
271
  readonly zone: DomainName;
450
272
  }, {
451
273
  readonly _tag: Tag;
@@ -453,7 +275,7 @@ declare const Provider: {
453
275
  readonly _tag: "Disabled";
454
276
  } | {
455
277
  readonly _tag: "Enabled";
456
- readonly provider: AsyncInterface$1;
278
+ readonly provider: AsyncInterface;
457
279
  readonly zone: DomainName;
458
280
  }, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["Disabled" | "Enabled"]>>;
459
281
  };
@@ -462,7 +284,7 @@ declare const Provider: {
462
284
  }, "_tag">;
463
285
  readonly Enabled: Data.TaggedEnum.ConstructorFrom<{
464
286
  readonly _tag: "Enabled";
465
- readonly provider: AsyncInterface$1;
287
+ readonly provider: AsyncInterface;
466
288
  readonly zone: DomainName;
467
289
  }, "_tag">;
468
290
  };
@@ -477,17 +299,17 @@ declare namespace cloudflare_doh_d_exports {
477
299
  export { Options$2 as Options, make$2 as make };
478
300
  }
479
301
  type Options$2 = Options$5;
480
- declare function make$2(options?: Options$2): AsyncInterface$2;
302
+ declare function make$2(options?: Options$2): AsyncInterface$1;
481
303
  declare namespace doh_d_exports {
482
304
  export { Options$1 as Options, make$1 as make };
483
305
  }
484
306
  type Options$1 = Options$6;
485
- declare function make$1(options: Options$1): AsyncInterface$2;
307
+ declare function make$1(options: Options$1): AsyncInterface$1;
486
308
  declare namespace google_doh_d_exports {
487
309
  export { Options, make };
488
310
  }
489
311
  type Options = Options$7;
490
- declare function make(options?: Options): AsyncInterface$2;
312
+ declare function make(options?: Options): AsyncInterface$1;
491
313
  //#endregion
492
314
  //#region src/promise.d.ts
493
315
  /** The current package version from the package manifest. */