domainkit 0.5.0 → 0.7.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,205 +1,85 @@
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-10vHuShV.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$1, 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-C3V_GtzL.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-DRrLm_hB.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-C0xsU41C.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
- export { Interface$3 as Interface, ListTargetsInput, Resolution, fromEffect };
10
+ export { Interface$3 as Interface, ListTargetsInput, Resolution$1 as Resolution, fromEffect };
190
11
  }
191
12
  interface Interface$3 {
192
13
  readonly providerId: string;
193
14
  readonly listTargets: (input?: ListTargetsInput) => Promise<ReadonlyArray<ProviderTarget>>;
194
- readonly resolveTarget: (domain: DomainName) => Promise<Resolution>;
195
- readonly forTarget: (target: ProviderTarget) => Promise<AsyncInterface$1>;
15
+ readonly resolveTarget: (domain: DomainName) => Promise<Resolution$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 };
200
- }
20
+ export { Answer, AsyncInterface$1 as Interface, Query, Resolution };
21
+ }
22
+ declare const Resolution: {
23
+ Schema: import("effect/Schema").TaggedUnion<{
24
+ readonly answer: import("effect/Schema").TaggedStruct<"answer", {
25
+ readonly answers: import("effect/Schema").$Array<import("effect/Schema").Struct<{
26
+ readonly data: import("effect/Schema").String;
27
+ readonly name: import("effect/Schema").decodeTo<import("effect/Schema").brand<import("effect/Schema").String, "DomainName">, import("effect/Schema").String, never, never>;
28
+ readonly ttl: import("effect/Schema").Int;
29
+ readonly type: import("effect/Schema").Literals<readonly ["A", "AAAA", "CNAME", "TXT", "MX", "CAA", "NS", "SRV"]>;
30
+ }>>;
31
+ }>;
32
+ readonly failure: import("effect/Schema").TaggedStruct<"failure", {
33
+ readonly message: import("effect/Schema").String;
34
+ }>;
35
+ readonly nodata: import("effect/Schema").TaggedStruct<"nodata", {}>;
36
+ readonly timeout: import("effect/Schema").TaggedStruct<"timeout", {}>;
37
+ }>;
38
+ answer: (input: Parameters<(input: {
39
+ readonly _tag?: "answer";
40
+ readonly answers: readonly {
41
+ readonly data: string;
42
+ readonly name: string & import("effect/Brand").Brand<"DomainName">;
43
+ readonly ttl: number;
44
+ readonly type: "A" | "AAAA" | "CAA" | "CNAME" | "MX" | "NS" | "SRV" | "TXT";
45
+ }[];
46
+ }, options?: import("effect/Schema").MakeOptions) => {
47
+ readonly _tag: "answer";
48
+ readonly answers: readonly {
49
+ readonly data: string;
50
+ readonly name: string & import("effect/Brand").Brand<"DomainName">;
51
+ readonly ttl: number;
52
+ readonly type: "A" | "AAAA" | "CAA" | "CNAME" | "MX" | "NS" | "SRV" | "TXT";
53
+ }[];
54
+ }>[0]) => {
55
+ readonly _tag: "answer";
56
+ readonly answers: readonly {
57
+ readonly data: string;
58
+ readonly name: string & import("effect/Brand").Brand<"DomainName">;
59
+ readonly ttl: number;
60
+ readonly type: "A" | "AAAA" | "CAA" | "CNAME" | "MX" | "NS" | "SRV" | "TXT";
61
+ }[];
62
+ };
63
+ failure: (input: Parameters<(input: {
64
+ readonly _tag?: "failure";
65
+ readonly message: string;
66
+ }, options?: import("effect/Schema").MakeOptions) => {
67
+ readonly _tag: "failure";
68
+ readonly message: string;
69
+ }>[0]) => {
70
+ readonly _tag: "failure";
71
+ readonly message: string;
72
+ };
73
+ nodata: () => {
74
+ readonly _tag: "nodata";
75
+ };
76
+ timeout: () => {
77
+ readonly _tag: "timeout";
78
+ };
79
+ };
80
+ type Resolution = AsyncResolution;
201
81
  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 };
82
+ export { Manifest, Method, OAuthClientConfiguration, OAuthMethod, AsyncOAuthSubjectResolver as OAuthSubjectResolver, Schema$1 as Schema, TokenValidation, decode$1 as decode };
203
83
  }
204
84
  declare function decode$1(input: unknown): Promise<Manifest>;
205
85
  declare namespace zone_discovery_d_exports {
@@ -207,7 +87,7 @@ declare namespace zone_discovery_d_exports {
207
87
  }
208
88
  interface Source {
209
89
  readonly listZones: (name: DomainName) => Promise<ReadonlyArray<Omit<Candidate, "providerId">>>;
210
- readonly provider: AsyncInterface$1;
90
+ readonly provider: AsyncInterface;
211
91
  }
212
92
  type Outcome = {
213
93
  readonly _tag: "NotFound";
@@ -231,16 +111,16 @@ declare namespace domain_name_d_exports {
231
111
  export { DomainName, Schema$3 as Schema, parse$1 as parse };
232
112
  }
233
113
  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 };
114
+ export { ApplyReceipt, Authorization, DnsPlan, Operation, PlanAuthorization, Receipt, Schema$4 as Schema, decode, decodeReceipt, encode, encodeReceipt };
235
115
  }
236
116
  declare function decode(input: unknown): Promise<DnsPlan>;
237
117
  declare function decodeReceipt(input: unknown): Promise<ApplyReceipt>;
238
118
  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 };
119
+ 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
120
  }
241
121
  declare function create$1(input: {
242
122
  readonly plan: DnsPlan;
243
- readonly provider: AsyncInterface$1;
123
+ readonly provider: AsyncInterface;
244
124
  readonly receipt: ApplyReceipt;
245
125
  readonly ttlMs?: number;
246
126
  }): Promise<Plan>;
@@ -249,33 +129,34 @@ declare function apply$1(input: {
249
129
  readonly authorization: Authorization$1;
250
130
  readonly plan: Plan;
251
131
  readonly priorReceipt?: Receipt$1;
252
- readonly provider: AsyncInterface$1;
132
+ readonly provider: AsyncInterface;
253
133
  }): Promise<Receipt$1>;
254
134
  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 };
135
+ 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
136
  }
257
137
  declare const manifest$1: typeof manifest$2;
258
138
  declare const oauthMethod: typeof oauthMethod$1;
259
- declare function restore$1(options: RestoreInput & Pick<Options$3, "baseUrl" | "fetch">): Promise<Interface$6>;
139
+ declare function refreshCredential(options: RefreshCredentialOptions): Promise<Credential>;
140
+ declare function restore$1(options: RestoreInput & Pick<Options$3, "baseUrl" | "fetch">): Promise<Interface$5>;
260
141
  declare const tokenMethod$1: typeof tokenMethod$2;
261
142
  declare function subjectResolver(options: SubjectResolverOptions): AsyncOAuthSubjectResolver;
262
143
  /** Creates Cloudflare's OAuth implementation for the Promise connection facade. */
263
144
  declare function oauthFlow(options: OAuthFlowOptions): InteractiveFlow;
264
145
  /** Creates a Cloudflare token method for the Promise connection facade. */
265
- declare function tokenConnectionMethod$1(options: TokenConnectionOptions): Extract<Method, {
146
+ declare function tokenConnectionMethod$1(options: TokenConnectionOptions): Extract<Method$1, {
266
147
  readonly _tag: "Token";
267
148
  }>;
268
149
  declare function tokenValidator(options: TokenValidatorOptions): (token: Value) => Promise<TokenValidation>;
269
150
  declare namespace cloudflare_d_exports {
270
151
  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
152
  }
272
- interface Interface$2 extends AsyncInterface$1 {
153
+ interface Interface$2 extends AsyncInterface {
273
154
  readonly providerId: "cloudflare";
274
- readonly forTarget: (target: ProviderTarget) => Promise<AsyncInterface$1>;
155
+ readonly forTarget: (target: ProviderTarget) => Promise<AsyncInterface>;
275
156
  readonly listAccounts: () => Promise<ReadonlyArray<Account>>;
276
157
  readonly listZones: (input?: ListZonesInput) => Promise<ReadonlyArray<Zone>>;
277
158
  readonly listTargets: (input?: ListTargetsInput) => Promise<ReadonlyArray<ProviderTarget>>;
278
- readonly resolveTarget: (domain: DomainName) => Promise<Resolution>;
159
+ readonly resolveTarget: (domain: DomainName) => Promise<Resolution$1>;
279
160
  readonly validateToken: () => Promise<TokenValidation>;
280
161
  }
281
162
  /** Creates a Promise-compatible facade over the Effect-native Cloudflare client. */
@@ -287,25 +168,25 @@ declare namespace vercel_auth_d_exports {
287
168
  }
288
169
  declare const integrationMethod: typeof integrationMethod$1;
289
170
  declare const manifest: typeof manifest$3;
290
- declare function restore(options: RestoreInput & Pick<Options$4, "baseUrl" | "fetch">): Promise<Interface$7>;
171
+ declare function restore(options: RestoreInput & Pick<Options$4, "baseUrl" | "fetch">): Promise<Interface$6>;
291
172
  declare const tokenMethod: typeof tokenMethod$3;
292
173
  declare function exchangeCode(options: ExchangeCodeOptions): Promise<IntegrationCredential>;
293
174
  /** Creates Vercel Integration's implementation for the Promise connection facade. */
294
175
  declare function integrationFlow(options: IntegrationFlowOptions): InteractiveFlow;
295
176
  /** Creates a Vercel token method for the Promise connection facade. */
296
- declare function tokenConnectionMethod(options: TokenConnectionOptions$1): Extract<Method, {
177
+ declare function tokenConnectionMethod(options: TokenConnectionOptions$1): Extract<Method$1, {
297
178
  readonly _tag: "Token";
298
179
  }>;
299
180
  declare namespace vercel_d_exports {
300
181
  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
182
  }
302
- interface Interface$1 extends AsyncInterface$1 {
183
+ interface Interface$1 extends AsyncInterface {
303
184
  readonly providerId: "vercel";
304
- readonly forTarget: (target: ProviderTarget) => Promise<AsyncInterface$1>;
185
+ readonly forTarget: (target: ProviderTarget) => Promise<AsyncInterface>;
305
186
  readonly listAccounts: () => Promise<ReadonlyArray<Account$1>>;
306
187
  readonly listZones: (input?: ListZonesInput$1) => Promise<ReadonlyArray<Zone$1>>;
307
188
  readonly listTargets: (input?: ListTargetsInput) => Promise<ReadonlyArray<ProviderTarget>>;
308
- readonly resolveTarget: (domain: DomainName) => Promise<Resolution>;
189
+ readonly resolveTarget: (domain: DomainName) => Promise<Resolution$1>;
309
190
  readonly validateToken: () => Promise<TokenValidation>;
310
191
  }
311
192
  /** Creates a Promise-compatible facade over the Effect-native Vercel client. */
@@ -316,7 +197,7 @@ declare namespace provisioning_d_exports {
316
197
  export { CreateResult$1 as CreateResult, DiscoverCreateInput, ExactCreateInput, Target, apply, authorize, authorizeForConnection, create, renderManualInstructions };
317
198
  }
318
199
  interface ExactCreateInput extends ExactCreateInput$1 {
319
- readonly provider: AsyncInterface$1;
200
+ readonly provider: AsyncInterface;
320
201
  }
321
202
  interface DiscoverCreateInput extends DiscoverCreateInput$1 {
322
203
  readonly sources: ReadonlyArray<Source>;
@@ -329,7 +210,7 @@ declare function authorize(plan: DnsPlan, operationIds?: ReadonlyArray<string>,
329
210
  declare function apply(input: {
330
211
  readonly authorization: PlanAuthorization;
331
212
  readonly plan: DnsPlan;
332
- readonly provider: AsyncInterface$1;
213
+ readonly provider: AsyncInterface;
333
214
  }): Promise<ApplyReceipt>;
334
215
  declare function authorizeForConnection(input: {
335
216
  readonly allowPartial?: boolean;
@@ -339,7 +220,7 @@ declare function authorizeForConnection(input: {
339
220
  readonly domain: string;
340
221
  readonly operationIds?: ReadonlyArray<string>;
341
222
  readonly plan: DnsPlan;
342
- readonly repository: AsyncInterface;
223
+ readonly repository: AsyncInterface$2;
343
224
  }): Promise<PlanAuthorization>;
344
225
  declare const renderManualInstructions: typeof renderManualInstructions$1;
345
226
  declare namespace resolver_pool_d_exports {
@@ -347,7 +228,7 @@ declare namespace resolver_pool_d_exports {
347
228
  }
348
229
  interface Entry {
349
230
  readonly id: string;
350
- readonly resolver: AsyncInterface$2;
231
+ readonly resolver: AsyncInterface$1;
351
232
  readonly timeoutMs?: number;
352
233
  }
353
234
  interface Interface {
@@ -409,7 +290,7 @@ declare const PublicDns: {
409
290
  type Provider = Data.TaggedEnum<{
410
291
  Disabled: {};
411
292
  Enabled: {
412
- readonly provider: AsyncInterface$1;
293
+ readonly provider: AsyncInterface;
413
294
  readonly zone: DomainName;
414
295
  };
415
296
  }>;
@@ -420,7 +301,7 @@ declare const Provider: {
420
301
  readonly _tag: Tag;
421
302
  }> | Extract<{
422
303
  readonly _tag: "Enabled";
423
- readonly provider: AsyncInterface$1;
304
+ readonly provider: AsyncInterface;
424
305
  readonly zone: DomainName;
425
306
  }, {
426
307
  readonly _tag: Tag;
@@ -430,7 +311,7 @@ declare const Provider: {
430
311
  readonly _tag: "Disabled";
431
312
  } | {
432
313
  readonly _tag: "Enabled";
433
- readonly provider: AsyncInterface$1;
314
+ readonly provider: AsyncInterface;
434
315
  readonly zone: DomainName;
435
316
  }, {
436
317
  readonly _tag: Tag;
@@ -438,14 +319,14 @@ declare const Provider: {
438
319
  readonly _tag: "Disabled";
439
320
  } | {
440
321
  readonly _tag: "Enabled";
441
- readonly provider: AsyncInterface$1;
322
+ readonly provider: AsyncInterface;
442
323
  readonly zone: DomainName;
443
324
  }) => import("effect/Unify").Unify<ReturnType<Cases["Disabled" | "Enabled"]>>;
444
325
  <Cases extends { readonly [Tag in "Disabled" | "Enabled"]: (args: Extract<{
445
326
  readonly _tag: "Disabled";
446
327
  } | {
447
328
  readonly _tag: "Enabled";
448
- readonly provider: AsyncInterface$1;
329
+ readonly provider: AsyncInterface;
449
330
  readonly zone: DomainName;
450
331
  }, {
451
332
  readonly _tag: Tag;
@@ -453,7 +334,7 @@ declare const Provider: {
453
334
  readonly _tag: "Disabled";
454
335
  } | {
455
336
  readonly _tag: "Enabled";
456
- readonly provider: AsyncInterface$1;
337
+ readonly provider: AsyncInterface;
457
338
  readonly zone: DomainName;
458
339
  }, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["Disabled" | "Enabled"]>>;
459
340
  };
@@ -462,7 +343,7 @@ declare const Provider: {
462
343
  }, "_tag">;
463
344
  readonly Enabled: Data.TaggedEnum.ConstructorFrom<{
464
345
  readonly _tag: "Enabled";
465
- readonly provider: AsyncInterface$1;
346
+ readonly provider: AsyncInterface;
466
347
  readonly zone: DomainName;
467
348
  }, "_tag">;
468
349
  };
@@ -477,21 +358,21 @@ declare namespace cloudflare_doh_d_exports {
477
358
  export { Options$2 as Options, make$2 as make };
478
359
  }
479
360
  type Options$2 = Options$5;
480
- declare function make$2(options?: Options$2): AsyncInterface$2;
361
+ declare function make$2(options?: Options$2): AsyncInterface$1;
481
362
  declare namespace doh_d_exports {
482
363
  export { Options$1 as Options, make$1 as make };
483
364
  }
484
365
  type Options$1 = Options$6;
485
- declare function make$1(options: Options$1): AsyncInterface$2;
366
+ declare function make$1(options: Options$1): AsyncInterface$1;
486
367
  declare namespace google_doh_d_exports {
487
368
  export { Options, make };
488
369
  }
489
370
  type Options = Options$7;
490
- declare function make(options?: Options): AsyncInterface$2;
371
+ declare function make(options?: Options): AsyncInterface$1;
491
372
  //#endregion
492
373
  //#region src/promise.d.ts
493
374
  /** The current package version from the package manifest. */
494
375
  declare const VERSION: string;
495
376
  //#endregion
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 };
377
+ 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, 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 };
497
378
  //# sourceMappingURL=promise.d.mts.map