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.
@@ -1,37 +1,44 @@
1
- import { $ as InteractiveFlow$1, A as renderManualInstructions$1, An as parse$1, At as coversDomain, Bt as ProviderAuthorization, C as DiscoverCreateInput$1, Cn as equals, Ct as Connection, Dn as DomainName, Dt as StoredCredential, E as ResolvedCreateResult, En as secret_d_exports, Et as Schema$1, F as PlanAuthorization, H as Source$1, I as Receipt, It as Capability, J as Continuation, Jt as OAuthClientConfiguration, K as BaseInput, Kt as Manifest, L as Schema$6, Lt as CapabilityEvidence, M as Authorization, Mn as invalid_input_d_exports, Mt as encode, N as DnsPlan, Nt as includeDomains, O as Target, On as Schema$5, Ot as assertGrant, P as Operation, Pt as removeDomain$1, Qt as TokenValidation, R as encode$2, Rt as Evidence, S as CreateResult$1, St as AuthorizationError, Tn as Value, Tt as OAuthContinuation, Ut as encode$1, V as Candidate, Vt as Schema$3, W as Authentication, Wt as AsyncOAuthSubjectResolver, X as Error$1, Y as ContinuationStore$1, Yt as OAuthMethod, Z as ExtendInput, Zt as Schema$2, _ as Receipt$1, _n as Schema$4, _t as Interface$3, at as StartResult, bn as Type, cn as Caa, d as Authorization$1, dn as Encoded, en as AsyncInterface, et as InteractiveStart, f as CreateError, fn as Mx, ft as provider_context_d_exports, g as Plan, gn as RequirementMetadata, gt as Error, h as PartialError, hn as Opaque, ht as DetachResult, j as ApplyReceipt, ln as Cname, m as Operation$1, mn as Observed, mt as BindingModification, n as AsyncInterface$1, nt as RemoveDomainInput, o as Query, on as A, p as Error$2, pn as Ns, pt as Aggregate, qt as Method$2, r as AsyncResolution, rt as RemoveDomainResult, sn as Aaaa, t as Answer, tn as CreateResult, tt as Method$1, u as ApplyError, un as DnsRecord, vn as Srv, vt as Service, w as ExactCreateInput$1, wn as parse, wt as Grant, xn as data, yn as Txt, z as encodeReceipt, zt as EvidenceSchema } from "./resolver-uqe1h5Vz.mjs";
2
- import { A as Zone$1, B as tokenMethod$2, C as manifest$3, D as Fetch$1, E as AccountContext, F as SubjectResolverOptions, G as Zone, H as Fetch, I as TokenConnectionOptions, J as diagnostic_d_exports, K as zones_d_exports, L as TokenValidatorOptions, M as CredentialTarget, N as OAuthFlowOptions, O as ListZonesInput$1, P as OAuthMethodOptions, R as manifest$2, S as integrationMethod$1, T as Account$1, U as ListZonesInput, V as Account, W as Options$3, _ as ExchangeCodeOptions, b as IntegrationMethodOptions, c as Policy, f as Options$5, i as Result, k as Options$4, m as Options$6, n as PublicDns$1, o as DefaultOptions, q as selection_d_exports, r as PublicDnsObservation, s as Observation, t as ProviderObservation, u as Options$7, v as IntegrationCredential, w as tokenMethod$3, x as TokenConnectionOptions$1, y as IntegrationFlowOptions, z as oauthMethod$1 } from "./verify-CkgVrwyl.mjs";
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
3
  import { Data, Layer } from "effect";
4
- declare namespace authorization_lifecycle_d_exports {
5
- export { Aggregate, BindingModification, DetachResult, Error, Repository, from, layerFrom, toAsync };
4
+ declare namespace managed_dns_connections_d_exports {
5
+ export { AsyncInterface, AttachmentResult, DetachResult, DisconnectResult, Error, from, layerFromAsync, toAsync };
6
6
  }
7
- interface Repository {
8
- readonly bind: (authorizationId: string, binding: Connection) => Promise<Aggregate>;
9
- readonly connect: (aggregate: Aggregate) => Promise<Aggregate>;
10
- readonly detach: (input: {
7
+ interface AsyncInterface {
8
+ readonly attach: (input: {
9
+ readonly attachment: DomainAttachment;
11
10
  readonly connectionId: string;
12
- readonly revoke: (aggregate: Aggregate) => Promise<void>;
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;
13
17
  }) => Promise<DetachResult>;
14
- readonly findByProviderAccount: (providerId: string, providerAccountId: string) => Promise<Aggregate | null>;
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>;
15
24
  readonly get: (authorizationId: string) => Promise<Aggregate | null>;
25
+ readonly getAttachment: (attachmentId: string) => Promise<DomainAttachment | null>;
16
26
  readonly getByConnectionId: (connectionId: string) => Promise<Aggregate | null>;
17
- readonly modifyBinding: <A>(connectionId: string, modify: (binding: Connection) => {
18
- readonly binding: Connection;
19
- readonly value: A;
20
- }) => Promise<BindingModification<A>>;
27
+ readonly listAttachments: (connectionId: string, ownerId: string) => Promise<ReadonlyArray<DomainAttachment>>;
21
28
  readonly promoteEvidence: (authorizationId: string, evidence: ReadonlyArray<CapabilityEvidence>) => Promise<Aggregate>;
22
29
  readonly recover: (input: {
23
30
  readonly authorizationId: string;
24
- readonly revoke: (aggregate: Aggregate) => Promise<void>;
25
- }) => Promise<DetachResult>;
31
+ readonly revoke: (authorization: ProviderAuthorization) => Promise<void>;
32
+ }) => Promise<DisconnectResult>;
26
33
  readonly rotate: (authorizationId: string, credential: StoredCredential, expiresAt: Date | null) => Promise<Aggregate>;
27
34
  }
28
- declare const layerFrom: (repository: Repository) => Layer.Layer<Service>;
29
- declare const toAsync: (repository: Interface$3) => Repository;
30
- declare const from: (repository: Repository) => Repository;
35
+ declare const layerFromAsync: (repository: AsyncInterface) => Layer.Layer<Service>;
36
+ declare const toAsync: (service: Interface$4) => AsyncInterface;
37
+ declare const from: (repository: AsyncInterface) => AsyncInterface;
31
38
  declare namespace connection_d_exports {
32
- export { Authentication, AuthorizationError, Connection, StartResult as ConnectionStartResult, ContinuationStore, Error$1 as Error, ExtendInput, Grant, InteractiveFlow, Method, OAuthContinuation, RemoveDomainInput, RemoveDomainResult, Schema$1 as Schema, StartResult, StoredCredential, assertGrant, complete, coversDomain, decode$3 as decode, encode, extend, fromEffectFlow, fromEffectTokenMethod, includeDomains, removeDomain, removeDomain$1 as removeDomainFromGrant, start, toAsyncContinuations };
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 };
33
40
  }
34
- declare function decode$3(input: unknown): Promise<Connection>;
41
+ declare function decode$2(input: unknown): Promise<ProviderConnection>;
35
42
  type Method = Data.TaggedEnum<{
36
43
  Interactive: {
37
44
  readonly continuations: ContinuationStore;
@@ -139,7 +146,6 @@ interface InteractiveFlow {
139
146
  readonly requiredCapabilities: ReadonlyArray<Capability>;
140
147
  readonly start: (continuationId: string) => Promise<InteractiveStart>;
141
148
  }
142
- declare const toAsyncContinuations: (store: ContinuationStore$1) => ContinuationStore;
143
149
  /** Adapts an Effect-native provider flow to the Promise facade. */
144
150
  declare const fromEffectFlow: (flow: InteractiveFlow$1) => InteractiveFlow;
145
151
  /** Adapts an Effect-native token method to the Promise facade. */
@@ -150,43 +156,58 @@ declare function fromEffectTokenMethod(method: Extract<Method$1, {
150
156
  }>;
151
157
  declare function start(input: BaseInput & {
152
158
  readonly method: Method;
153
- readonly repository: Repository;
159
+ readonly repository: AsyncInterface;
154
160
  }): Promise<StartResult>;
155
161
  declare function complete(input: {
156
162
  readonly callbackUrl: URL;
157
163
  readonly continuationId: string;
158
164
  readonly continuations: ContinuationStore;
159
165
  readonly flow: InteractiveFlow;
160
- readonly repository: Repository;
161
- }): Promise<Aggregate>;
162
- /** Extends one owner binding without repeating provider authentication. */
163
- declare function extend(input: ExtendInput & {
164
- readonly repository: Repository;
165
- }): Promise<Aggregate>;
166
- /** Removes one domain from an owner binding without revoking provider authorization. */
167
- declare function removeDomain(input: RemoveDomainInput & {
168
- readonly repository: Repository;
169
- }): Promise<RemoveDomainResult>;
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>;
170
185
  declare namespace dns_provider_d_exports {
171
- export { CreateResult, AsyncInterface as Interface };
186
+ export { CreateResult, AsyncInterface$1 as Interface };
172
187
  }
188
+ declare namespace provider_session_d_exports {
189
+ export { Interface$3 as Interface, ListTargetsInput, Resolution, fromEffect };
190
+ }
191
+ interface Interface$3 {
192
+ readonly providerId: string;
193
+ readonly listTargets: (input?: ListTargetsInput) => Promise<ReadonlyArray<ProviderTarget>>;
194
+ readonly resolveTarget: (domain: DomainName) => Promise<Resolution>;
195
+ readonly forTarget: (target: ProviderTarget) => Promise<AsyncInterface$1>;
196
+ }
197
+ declare const fromEffect: (session: Interface$5) => Interface$3;
173
198
  declare namespace dns_resolver_d_exports {
174
- export { Answer, AsyncInterface$1 as Interface, Query, AsyncResolution as Resolution };
199
+ export { Answer, AsyncInterface$2 as Interface, Query, AsyncResolution as Resolution };
175
200
  }
176
201
  declare namespace provider_auth_d_exports {
177
- export { Manifest, Method$2 as Method, OAuthClientConfiguration, OAuthMethod, AsyncOAuthSubjectResolver as OAuthSubjectResolver, Schema$2 as Schema, TokenValidation, decode$2 as decode };
178
- }
179
- declare function decode$2(input: unknown): Promise<Manifest>;
180
- declare namespace provider_authorization_d_exports {
181
- export { Capability, CapabilityEvidence, Evidence, EvidenceSchema, ProviderAuthorization, Schema$3 as Schema, decode$1 as decode, encode$1 as encode };
202
+ export { Manifest, Method$2 as Method, OAuthClientConfiguration, OAuthMethod, AsyncOAuthSubjectResolver as OAuthSubjectResolver, Schema$1 as Schema, TokenValidation, decode$1 as decode };
182
203
  }
183
- declare function decode$1(input: unknown): Promise<ProviderAuthorization>;
204
+ declare function decode$1(input: unknown): Promise<Manifest>;
184
205
  declare namespace zone_discovery_d_exports {
185
206
  export { Candidate, Outcome, Source, discover, toEffectSource };
186
207
  }
187
208
  interface Source {
188
209
  readonly listZones: (name: DomainName) => Promise<ReadonlyArray<Omit<Candidate, "providerId">>>;
189
- readonly provider: AsyncInterface;
210
+ readonly provider: AsyncInterface$1;
190
211
  }
191
212
  type Outcome = {
192
213
  readonly _tag: "NotFound";
@@ -204,13 +225,13 @@ declare function discover(input: {
204
225
  }): Promise<Outcome>;
205
226
  declare function toEffectSource(source: Source): Source$1;
206
227
  declare namespace dns_record_d_exports {
207
- export { A, Aaaa, Caa, Cname, DnsRecord, Encoded, Mx, Ns, Observed, Opaque, RequirementMetadata, Schema$4 as Schema, Srv, Txt, Type, data, equals, parse };
228
+ export { A, Aaaa, Caa, Cname, DnsRecord, Encoded, Mx, Ns, Observed, Opaque, RequirementMetadata, Schema$2 as Schema, Srv, Txt, Type, data, equals, parse };
208
229
  }
209
230
  declare namespace domain_name_d_exports {
210
- export { DomainName, Schema$5 as Schema, parse$1 as parse };
231
+ export { DomainName, Schema$3 as Schema, parse$1 as parse };
211
232
  }
212
233
  declare namespace dns_plan_d_exports {
213
- export { ApplyReceipt, Authorization, DnsPlan, Operation, PlanAuthorization, Receipt, Schema$6 as Schema, decode, decodeReceipt, encode$2 as encode, encodeReceipt };
234
+ export { ApplyReceipt, Authorization, DnsPlan, Operation, PlanAuthorization, Receipt, Schema$4 as Schema, decode, decodeReceipt, encode$1 as encode, encodeReceipt };
214
235
  }
215
236
  declare function decode(input: unknown): Promise<DnsPlan>;
216
237
  declare function decodeReceipt(input: unknown): Promise<ApplyReceipt>;
@@ -219,7 +240,7 @@ declare namespace deletion_d_exports {
219
240
  }
220
241
  declare function create$1(input: {
221
242
  readonly plan: DnsPlan;
222
- readonly provider: AsyncInterface;
243
+ readonly provider: AsyncInterface$1;
223
244
  readonly receipt: ApplyReceipt;
224
245
  readonly ttlMs?: number;
225
246
  }): Promise<Plan>;
@@ -228,13 +249,14 @@ declare function apply$1(input: {
228
249
  readonly authorization: Authorization$1;
229
250
  readonly plan: Plan;
230
251
  readonly priorReceipt?: Receipt$1;
231
- readonly provider: AsyncInterface;
252
+ readonly provider: AsyncInterface$1;
232
253
  }): Promise<Receipt$1>;
233
254
  declare namespace cloudflare_auth_d_exports {
234
- export { CredentialTarget, OAuthFlowOptions, OAuthMethodOptions, SubjectResolverOptions, TokenValidatorOptions, manifest$1 as manifest, oauthFlow, oauthMethod, subjectResolver, tokenConnectionMethod$1 as tokenConnectionMethod, tokenMethod$1 as tokenMethod, tokenValidator };
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 };
235
256
  }
236
257
  declare const manifest$1: typeof manifest$2;
237
258
  declare const oauthMethod: typeof oauthMethod$1;
259
+ declare function restore$1(options: RestoreInput & Pick<Options$3, "baseUrl" | "fetch">): Promise<Interface$6>;
238
260
  declare const tokenMethod$1: typeof tokenMethod$2;
239
261
  declare function subjectResolver(options: SubjectResolverOptions): AsyncOAuthSubjectResolver;
240
262
  /** Creates Cloudflare's OAuth implementation for the Promise connection facade. */
@@ -247,9 +269,13 @@ declare function tokenValidator(options: TokenValidatorOptions): (token: Value)
247
269
  declare namespace cloudflare_d_exports {
248
270
  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 };
249
271
  }
250
- interface Interface$2 extends AsyncInterface {
272
+ interface Interface$2 extends AsyncInterface$1 {
273
+ readonly providerId: "cloudflare";
274
+ readonly forTarget: (target: ProviderTarget) => Promise<AsyncInterface$1>;
251
275
  readonly listAccounts: () => Promise<ReadonlyArray<Account>>;
252
276
  readonly listZones: (input?: ListZonesInput) => Promise<ReadonlyArray<Zone>>;
277
+ readonly listTargets: (input?: ListTargetsInput) => Promise<ReadonlyArray<ProviderTarget>>;
278
+ readonly resolveTarget: (domain: DomainName) => Promise<Resolution>;
253
279
  readonly validateToken: () => Promise<TokenValidation>;
254
280
  }
255
281
  /** Creates a Promise-compatible facade over the Effect-native Cloudflare client. */
@@ -257,10 +283,11 @@ declare function make$5(options: Options$3): Interface$2;
257
283
  /** Creates the optional Cloudflare discovery source for Promise consumers. */
258
284
  declare function discovery$1(options: Options$3): Source;
259
285
  declare namespace vercel_auth_d_exports {
260
- export { ExchangeCodeOptions, IntegrationCredential, IntegrationFlowOptions, IntegrationMethodOptions, exchangeCode, integrationFlow, integrationMethod, manifest, tokenConnectionMethod, tokenMethod };
286
+ export { ExchangeCodeOptions, IntegrationCredential, IntegrationFlowOptions, IntegrationMethodOptions, exchangeCode, integrationFlow, integrationMethod, manifest, restore, tokenConnectionMethod, tokenMethod };
261
287
  }
262
288
  declare const integrationMethod: typeof integrationMethod$1;
263
289
  declare const manifest: typeof manifest$3;
290
+ declare function restore(options: RestoreInput & Pick<Options$4, "baseUrl" | "fetch">): Promise<Interface$7>;
264
291
  declare const tokenMethod: typeof tokenMethod$3;
265
292
  declare function exchangeCode(options: ExchangeCodeOptions): Promise<IntegrationCredential>;
266
293
  /** Creates Vercel Integration's implementation for the Promise connection facade. */
@@ -272,9 +299,13 @@ declare function tokenConnectionMethod(options: TokenConnectionOptions$1): Extra
272
299
  declare namespace vercel_d_exports {
273
300
  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 };
274
301
  }
275
- interface Interface$1 extends AsyncInterface {
302
+ interface Interface$1 extends AsyncInterface$1 {
303
+ readonly providerId: "vercel";
304
+ readonly forTarget: (target: ProviderTarget) => Promise<AsyncInterface$1>;
276
305
  readonly listAccounts: () => Promise<ReadonlyArray<Account$1>>;
277
306
  readonly listZones: (input?: ListZonesInput$1) => Promise<ReadonlyArray<Zone$1>>;
307
+ readonly listTargets: (input?: ListTargetsInput) => Promise<ReadonlyArray<ProviderTarget>>;
308
+ readonly resolveTarget: (domain: DomainName) => Promise<Resolution>;
278
309
  readonly validateToken: () => Promise<TokenValidation>;
279
310
  }
280
311
  /** Creates a Promise-compatible facade over the Effect-native Vercel client. */
@@ -285,7 +316,7 @@ declare namespace provisioning_d_exports {
285
316
  export { CreateResult$1 as CreateResult, DiscoverCreateInput, ExactCreateInput, Target, apply, authorize, authorizeForConnection, create, renderManualInstructions };
286
317
  }
287
318
  interface ExactCreateInput extends ExactCreateInput$1 {
288
- readonly provider: AsyncInterface;
319
+ readonly provider: AsyncInterface$1;
289
320
  }
290
321
  interface DiscoverCreateInput extends DiscoverCreateInput$1 {
291
322
  readonly sources: ReadonlyArray<Source>;
@@ -298,15 +329,17 @@ declare function authorize(plan: DnsPlan, operationIds?: ReadonlyArray<string>,
298
329
  declare function apply(input: {
299
330
  readonly authorization: PlanAuthorization;
300
331
  readonly plan: DnsPlan;
301
- readonly provider: AsyncInterface;
332
+ readonly provider: AsyncInterface$1;
302
333
  }): Promise<ApplyReceipt>;
303
334
  declare function authorizeForConnection(input: {
304
335
  readonly allowPartial?: boolean;
305
336
  readonly authorization: ProviderAuthorization;
306
- readonly connection: Connection;
337
+ readonly attachment: DomainAttachment;
338
+ readonly connection: ProviderConnection;
307
339
  readonly domain: string;
308
340
  readonly operationIds?: ReadonlyArray<string>;
309
341
  readonly plan: DnsPlan;
342
+ readonly repository: AsyncInterface;
310
343
  }): Promise<PlanAuthorization>;
311
344
  declare const renderManualInstructions: typeof renderManualInstructions$1;
312
345
  declare namespace resolver_pool_d_exports {
@@ -314,7 +347,7 @@ declare namespace resolver_pool_d_exports {
314
347
  }
315
348
  interface Entry {
316
349
  readonly id: string;
317
- readonly resolver: AsyncInterface$1;
350
+ readonly resolver: AsyncInterface$2;
318
351
  readonly timeoutMs?: number;
319
352
  }
320
353
  interface Interface {
@@ -376,7 +409,7 @@ declare const PublicDns: {
376
409
  type Provider = Data.TaggedEnum<{
377
410
  Disabled: {};
378
411
  Enabled: {
379
- readonly provider: AsyncInterface;
412
+ readonly provider: AsyncInterface$1;
380
413
  readonly zone: DomainName;
381
414
  };
382
415
  }>;
@@ -387,7 +420,7 @@ declare const Provider: {
387
420
  readonly _tag: Tag;
388
421
  }> | Extract<{
389
422
  readonly _tag: "Enabled";
390
- readonly provider: AsyncInterface;
423
+ readonly provider: AsyncInterface$1;
391
424
  readonly zone: DomainName;
392
425
  }, {
393
426
  readonly _tag: Tag;
@@ -397,7 +430,7 @@ declare const Provider: {
397
430
  readonly _tag: "Disabled";
398
431
  } | {
399
432
  readonly _tag: "Enabled";
400
- readonly provider: AsyncInterface;
433
+ readonly provider: AsyncInterface$1;
401
434
  readonly zone: DomainName;
402
435
  }, {
403
436
  readonly _tag: Tag;
@@ -405,14 +438,14 @@ declare const Provider: {
405
438
  readonly _tag: "Disabled";
406
439
  } | {
407
440
  readonly _tag: "Enabled";
408
- readonly provider: AsyncInterface;
441
+ readonly provider: AsyncInterface$1;
409
442
  readonly zone: DomainName;
410
443
  }) => import("effect/Unify").Unify<ReturnType<Cases["Disabled" | "Enabled"]>>;
411
444
  <Cases extends { readonly [Tag in "Disabled" | "Enabled"]: (args: Extract<{
412
445
  readonly _tag: "Disabled";
413
446
  } | {
414
447
  readonly _tag: "Enabled";
415
- readonly provider: AsyncInterface;
448
+ readonly provider: AsyncInterface$1;
416
449
  readonly zone: DomainName;
417
450
  }, {
418
451
  readonly _tag: Tag;
@@ -420,7 +453,7 @@ declare const Provider: {
420
453
  readonly _tag: "Disabled";
421
454
  } | {
422
455
  readonly _tag: "Enabled";
423
- readonly provider: AsyncInterface;
456
+ readonly provider: AsyncInterface$1;
424
457
  readonly zone: DomainName;
425
458
  }, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["Disabled" | "Enabled"]>>;
426
459
  };
@@ -429,7 +462,7 @@ declare const Provider: {
429
462
  }, "_tag">;
430
463
  readonly Enabled: Data.TaggedEnum.ConstructorFrom<{
431
464
  readonly _tag: "Enabled";
432
- readonly provider: AsyncInterface;
465
+ readonly provider: AsyncInterface$1;
433
466
  readonly zone: DomainName;
434
467
  }, "_tag">;
435
468
  };
@@ -444,21 +477,21 @@ declare namespace cloudflare_doh_d_exports {
444
477
  export { Options$2 as Options, make$2 as make };
445
478
  }
446
479
  type Options$2 = Options$5;
447
- declare function make$2(options?: Options$2): AsyncInterface$1;
480
+ declare function make$2(options?: Options$2): AsyncInterface$2;
448
481
  declare namespace doh_d_exports {
449
482
  export { Options$1 as Options, make$1 as make };
450
483
  }
451
484
  type Options$1 = Options$6;
452
- declare function make$1(options: Options$1): AsyncInterface$1;
485
+ declare function make$1(options: Options$1): AsyncInterface$2;
453
486
  declare namespace google_doh_d_exports {
454
487
  export { Options, make };
455
488
  }
456
489
  type Options = Options$7;
457
- declare function make(options?: Options): AsyncInterface$1;
490
+ declare function make(options?: Options): AsyncInterface$2;
458
491
  //#endregion
459
492
  //#region src/promise.d.ts
460
493
  /** The current package version from the package manifest. */
461
494
  declare const VERSION: string;
462
495
  //#endregion
463
- 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 };
496
+ export { 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, managed_dns_connections_d_exports as ManagedDnsConnections, provider_auth_d_exports as ProviderAuth, provider_context_d_exports as ProviderContext, selection_d_exports as ProviderDiscovery, provider_session_d_exports as ProviderSession, 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 };
464
497
  //# sourceMappingURL=promise.d.mts.map