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
package/dist/index.d.mts
CHANGED
|
@@ -1,14 +1,39 @@
|
|
|
1
|
-
import { $
|
|
2
|
-
import {
|
|
1
|
+
import { $ as InteractiveStart, B as types_d_exports, Ct as StoredConnection, Dt as encode, Et as decode, G as AuthenticationFailure, J as Continuation, K as BaseInput, N as DnsPlan, Ot as validate, Q as InteractiveFlow, St as ProviderTargetEvidence, Tt as authorizationError, U as zone_discovery_d_exports, Ut as secret_d_exports, Vt as manifest_d_exports, W as Authentication, X as Error$2, Y as ContinuationStore, Yt as provider_d_exports, Z as Failure$1, _n as domain_name_d_exports, _t as AuthorizationError, b as AuthorizeError, bn as invalid_input_d_exports, bt as ProviderConnection, ct as canonical_json_d_exports, en as DnsRecord$1, et as Method$1, fn as dns_record_d_exports, ft as DetachResult$1, gt as Service$1, ht as Interface$1, jt as ProviderAuthorization, k as plan_d_exports, l as resolver_d_exports, mt as Error$1, nt as complete, ot as provider_context_d_exports, pt as DisconnectResult, q as CompleteInput, rt as start, st as CryptoError, tt as StartResult, un as Type, ut as AttachmentResult, v as deletion_d_exports, vt as ConnectionStatus, xt as ProviderTarget, yn as Error$3, yt as DomainAttachment } from "./resolver-BGBLnPjJ.mjs";
|
|
2
|
+
import { $ as zones_d_exports, M as index_d_exports, Q as session_d_exports, a as verify_d_exports, d as google_doh_d_exports, et as selection_d_exports, g as index_d_exports$1, h as doh_d_exports, l as resolver_pool_d_exports, p as cloudflare_doh_d_exports, tt as diagnostic_d_exports } from "./verify-6xK05pwL.mjs";
|
|
3
3
|
import { Context, Crypto, Data, Effect, Layer, Schema } from "effect";
|
|
4
|
+
//#region src/auth/connection-lifecycle.d.ts
|
|
5
|
+
/** Attach one exact provider target to one organization domain. */
|
|
6
|
+
declare const attach: (input: {
|
|
7
|
+
readonly attachment: DomainAttachment;
|
|
8
|
+
readonly connectionId: string;
|
|
9
|
+
readonly ownerId: string;
|
|
10
|
+
}) => Effect.Effect<AttachmentResult, Error$1, Service$1>;
|
|
11
|
+
/** Remove one domain attachment while retaining the organization connection. */
|
|
12
|
+
declare const detach: (input: {
|
|
13
|
+
readonly attachmentId: string;
|
|
14
|
+
readonly ownerId: string;
|
|
15
|
+
}) => Effect.Effect<DetachResult$1, Error$1, Service$1>;
|
|
16
|
+
/** Disconnect one organization connection, revoking the shared authorization only when final. */
|
|
17
|
+
declare function disconnect<E>(input: {
|
|
18
|
+
readonly connectionId: string;
|
|
19
|
+
readonly ownerId: string;
|
|
20
|
+
readonly revokeAuthorization: (authorization: ProviderAuthorization) => Effect.Effect<void, E>;
|
|
21
|
+
}): Effect.Effect<DisconnectResult, Error$1 | E, Service$1>;
|
|
22
|
+
declare namespace connection_api_d_exports {
|
|
23
|
+
export { AttachmentResult, Authentication, AuthenticationFailure, AuthorizationError, BaseInput, CompleteInput, Method$1 as ConnectionMethod, StartResult as ConnectionStartResult, ConnectionStatus, Continuation, ContinuationStore, DetachResult$1 as DetachResult, DisconnectResult, DomainAttachment, Error$2 as Error, Failure$1 as Failure, InteractiveFlow, InteractiveStart, Method$1 as Method, ProviderConnection, ProviderTarget, ProviderTargetEvidence, StartResult, attach, authorizationError, complete, decode, detach, disconnect, encode, start, validate };
|
|
24
|
+
}
|
|
25
|
+
declare namespace lifecycle_api_d_exports {
|
|
26
|
+
export { AttachmentResult, DetachResult$1 as DetachResult, DisconnectResult, Error$1 as Error, Interface$1 as Interface, Service$1 as Service };
|
|
27
|
+
}
|
|
4
28
|
declare namespace connection_authorization_d_exports {
|
|
5
29
|
export { Error, Requirements, authorize };
|
|
6
30
|
}
|
|
7
31
|
declare const authorize: (input: {
|
|
8
32
|
readonly allowPartial?: boolean;
|
|
9
33
|
readonly authorization: ProviderAuthorization;
|
|
10
|
-
readonly connection:
|
|
34
|
+
readonly connection: ProviderConnection | StoredConnection;
|
|
11
35
|
readonly domain: string;
|
|
36
|
+
readonly attachment: DomainAttachment;
|
|
12
37
|
readonly operationIds?: ReadonlyArray<string>;
|
|
13
38
|
readonly plan: DnsPlan;
|
|
14
39
|
}) => Effect.Effect<{
|
|
@@ -16,11 +41,11 @@ declare const authorize: (input: {
|
|
|
16
41
|
operationIds: string[];
|
|
17
42
|
planDigest: string;
|
|
18
43
|
version: "domainkit.plan-authorization.v1";
|
|
19
|
-
}, AuthorizationError | Error$1 | AuthorizeError, Crypto.Crypto>;
|
|
20
|
-
type Error = AuthorizationError | Error$
|
|
21
|
-
type Requirements = Crypto.Crypto;
|
|
44
|
+
}, AuthorizationError | Error$3 | Error$1 | AuthorizeError, Crypto.Crypto | Service$1>;
|
|
45
|
+
type Error = AuthorizationError | Error$3 | CryptoError | Error$1;
|
|
46
|
+
type Requirements = Crypto.Crypto | Service$1;
|
|
22
47
|
declare namespace transport_d_exports {
|
|
23
|
-
export { ApplyResult, AsyncInterface, AsyncOptions, AuthenticationMethod, AuthenticationParameter, CleanupApplyInput, CleanupOperation, CleanupPlan, CleanupPlanInput, CleanupResult, ConnectInput, Connected, ConnectionResult, ConnectionSnapshot, Disconnected, DnsRecord, Failure, InspectInput, Interface, Method, Observation, ObservationEvidence, ObserveInput, OperationResult, PlanOperation, Provider,
|
|
48
|
+
export { ApplyResult, AsyncInterface, AsyncOptions, AttachInput, AuthenticationMethod, AuthenticationParameter, CleanupApplyInput, CleanupOperation, CleanupPlan, CleanupPlanInput, CleanupResult, ConnectInput, Connected, ConnectionResult, ConnectionSnapshot, DetachInput, DetachResult, Disconnected, DnsRecord, DomainAttachment, Failure, InspectInput, Interface, Method, Observation, ObservationEvidence, ObserveInput, OperationResult, PlanOperation, Provider, ProviderConnection, ProviderTarget, ProviderTargetEvidence, ProvisioningApplyInput, ProvisioningPlan, ProvisioningPlanInput, Redirect, ReusableConnection, Service, Unsupported, fromAsync, fromDnsRecord, layerFromAsync, toAsync };
|
|
24
49
|
}
|
|
25
50
|
declare const Failure_base: Schema.Class<Failure, Schema.TaggedStruct<"Failure", {
|
|
26
51
|
readonly message: Schema.String;
|
|
@@ -38,6 +63,9 @@ declare const AuthenticationParameter: Schema.Struct<{
|
|
|
38
63
|
}>;
|
|
39
64
|
type AuthenticationParameter = typeof AuthenticationParameter.Type;
|
|
40
65
|
declare const AuthenticationMethod: Schema.TaggedUnion<{
|
|
66
|
+
readonly Integration: Schema.TaggedStruct<"Integration", {
|
|
67
|
+
readonly label: Schema.String;
|
|
68
|
+
}>;
|
|
41
69
|
readonly OAuth: Schema.TaggedStruct<"OAuth", {
|
|
42
70
|
readonly label: Schema.String;
|
|
43
71
|
}>;
|
|
@@ -56,6 +84,7 @@ declare const AuthenticationMethod: Schema.TaggedUnion<{
|
|
|
56
84
|
type AuthenticationMethod = typeof AuthenticationMethod.Type;
|
|
57
85
|
/** The authentication choice supplied to a connection request. */
|
|
58
86
|
type Method = Data.TaggedEnum<{
|
|
87
|
+
Integration: {};
|
|
59
88
|
OAuth: {};
|
|
60
89
|
Token: {
|
|
61
90
|
readonly parameters?: Readonly<Record<string, string>>;
|
|
@@ -63,7 +92,11 @@ type Method = Data.TaggedEnum<{
|
|
|
63
92
|
};
|
|
64
93
|
}>;
|
|
65
94
|
declare const Method: {
|
|
66
|
-
readonly $is: <Tag extends "OAuth" | "Token">(tag: Tag) => (u: unknown) => u is Extract<{
|
|
95
|
+
readonly $is: <Tag extends "Integration" | "OAuth" | "Token">(tag: Tag) => (u: unknown) => u is Extract<{
|
|
96
|
+
readonly _tag: "Integration";
|
|
97
|
+
}, {
|
|
98
|
+
readonly _tag: Tag;
|
|
99
|
+
}> | Extract<{
|
|
67
100
|
readonly _tag: "OAuth";
|
|
68
101
|
}, {
|
|
69
102
|
readonly _tag: Tag;
|
|
@@ -75,7 +108,9 @@ declare const Method: {
|
|
|
75
108
|
readonly _tag: Tag;
|
|
76
109
|
}>;
|
|
77
110
|
readonly $match: {
|
|
78
|
-
<Cases extends { readonly [Tag in "OAuth" | "Token"]: (args: Extract<{
|
|
111
|
+
<Cases extends { readonly [Tag in "Integration" | "OAuth" | "Token"]: (args: Extract<{
|
|
112
|
+
readonly _tag: "Integration";
|
|
113
|
+
} | {
|
|
79
114
|
readonly _tag: "OAuth";
|
|
80
115
|
} | {
|
|
81
116
|
readonly _tag: "Token";
|
|
@@ -84,13 +119,17 @@ declare const Method: {
|
|
|
84
119
|
}, {
|
|
85
120
|
readonly _tag: Tag;
|
|
86
121
|
}>) => any; }>(cases: Cases): (value: {
|
|
122
|
+
readonly _tag: "Integration";
|
|
123
|
+
} | {
|
|
87
124
|
readonly _tag: "OAuth";
|
|
88
125
|
} | {
|
|
89
126
|
readonly _tag: "Token";
|
|
90
127
|
readonly parameters?: Readonly<Record<string, string>>;
|
|
91
128
|
readonly token: string;
|
|
92
|
-
}) => import("effect/Unify").Unify<ReturnType<Cases["OAuth" | "Token"]>>;
|
|
93
|
-
<Cases extends { readonly [Tag in "OAuth" | "Token"]: (args: Extract<{
|
|
129
|
+
}) => import("effect/Unify").Unify<ReturnType<Cases["Integration" | "OAuth" | "Token"]>>;
|
|
130
|
+
<Cases extends { readonly [Tag in "Integration" | "OAuth" | "Token"]: (args: Extract<{
|
|
131
|
+
readonly _tag: "Integration";
|
|
132
|
+
} | {
|
|
94
133
|
readonly _tag: "OAuth";
|
|
95
134
|
} | {
|
|
96
135
|
readonly _tag: "Token";
|
|
@@ -99,13 +138,18 @@ declare const Method: {
|
|
|
99
138
|
}, {
|
|
100
139
|
readonly _tag: Tag;
|
|
101
140
|
}>) => any; }>(value: {
|
|
141
|
+
readonly _tag: "Integration";
|
|
142
|
+
} | {
|
|
102
143
|
readonly _tag: "OAuth";
|
|
103
144
|
} | {
|
|
104
145
|
readonly _tag: "Token";
|
|
105
146
|
readonly parameters?: Readonly<Record<string, string>>;
|
|
106
147
|
readonly token: string;
|
|
107
|
-
}, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["OAuth" | "Token"]>>;
|
|
148
|
+
}, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["Integration" | "OAuth" | "Token"]>>;
|
|
108
149
|
};
|
|
150
|
+
readonly Integration: Data.TaggedEnum.ConstructorFrom<{
|
|
151
|
+
readonly _tag: "Integration";
|
|
152
|
+
}, "_tag">;
|
|
109
153
|
readonly OAuth: Data.TaggedEnum.ConstructorFrom<{
|
|
110
154
|
readonly _tag: "OAuth";
|
|
111
155
|
}, "_tag">;
|
|
@@ -117,6 +161,9 @@ declare const Method: {
|
|
|
117
161
|
};
|
|
118
162
|
declare const Provider: Schema.Struct<{
|
|
119
163
|
readonly authentication: Schema.$Array<Schema.TaggedUnion<{
|
|
164
|
+
readonly Integration: Schema.TaggedStruct<"Integration", {
|
|
165
|
+
readonly label: Schema.String;
|
|
166
|
+
}>;
|
|
120
167
|
readonly OAuth: Schema.TaggedStruct<"OAuth", {
|
|
121
168
|
readonly label: Schema.String;
|
|
122
169
|
}>;
|
|
@@ -137,10 +184,37 @@ declare const Provider: Schema.Struct<{
|
|
|
137
184
|
}>;
|
|
138
185
|
type Provider = typeof Provider.Type;
|
|
139
186
|
declare const Connected: Schema.TaggedStruct<"Connected", {
|
|
140
|
-
readonly
|
|
141
|
-
|
|
187
|
+
readonly attachment: Schema.Struct<{
|
|
188
|
+
readonly connectionId: Schema.String;
|
|
189
|
+
readonly createdAt: Schema.DateFromString;
|
|
190
|
+
readonly domain: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
191
|
+
readonly id: Schema.String;
|
|
192
|
+
readonly target: Schema.Struct<{
|
|
193
|
+
readonly accountId: Schema.String;
|
|
194
|
+
readonly accountKind: Schema.NullOr<Schema.Literals<readonly ["account", "personal", "team"]>>;
|
|
195
|
+
readonly evidence: Schema.optionalKey<Schema.Struct<{
|
|
196
|
+
readonly accountName: Schema.optionalKey<Schema.String>;
|
|
197
|
+
readonly nameservers: Schema.$Array<Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>>;
|
|
198
|
+
readonly status: Schema.String;
|
|
199
|
+
readonly zoneType: Schema.String;
|
|
200
|
+
}>>;
|
|
201
|
+
readonly zoneId: Schema.String;
|
|
202
|
+
readonly zoneName: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
203
|
+
}>;
|
|
204
|
+
}>;
|
|
205
|
+
readonly connection: Schema.Struct<{
|
|
206
|
+
readonly createdAt: Schema.DateFromString;
|
|
207
|
+
readonly id: Schema.String;
|
|
208
|
+
readonly method: Schema.Literals<readonly ["integration", "oauth2", "token"]>;
|
|
209
|
+
readonly ownerId: Schema.String;
|
|
210
|
+
readonly providerId: Schema.String;
|
|
211
|
+
readonly status: Schema.Literals<readonly ["active", "expired", "revocation-pending"]>;
|
|
212
|
+
}>;
|
|
142
213
|
readonly provider: Schema.Struct<{
|
|
143
214
|
readonly authentication: Schema.$Array<Schema.TaggedUnion<{
|
|
215
|
+
readonly Integration: Schema.TaggedStruct<"Integration", {
|
|
216
|
+
readonly label: Schema.String;
|
|
217
|
+
}>;
|
|
144
218
|
readonly OAuth: Schema.TaggedStruct<"OAuth", {
|
|
145
219
|
readonly label: Schema.String;
|
|
146
220
|
}>;
|
|
@@ -162,14 +236,35 @@ declare const Connected: Schema.TaggedStruct<"Connected", {
|
|
|
162
236
|
}>;
|
|
163
237
|
type Connected = typeof Connected.Type;
|
|
164
238
|
declare const ReusableConnection: Schema.Struct<{
|
|
165
|
-
readonly
|
|
166
|
-
|
|
239
|
+
readonly connection: Schema.Struct<{
|
|
240
|
+
readonly createdAt: Schema.DateFromString;
|
|
241
|
+
readonly id: Schema.String;
|
|
242
|
+
readonly method: Schema.Literals<readonly ["integration", "oauth2", "token"]>;
|
|
243
|
+
readonly ownerId: Schema.String;
|
|
244
|
+
readonly providerId: Schema.String;
|
|
245
|
+
readonly status: Schema.Literals<readonly ["active", "expired", "revocation-pending"]>;
|
|
246
|
+
}>;
|
|
247
|
+
readonly targets: Schema.$Array<Schema.Struct<{
|
|
248
|
+
readonly accountId: Schema.String;
|
|
249
|
+
readonly accountKind: Schema.NullOr<Schema.Literals<readonly ["account", "personal", "team"]>>;
|
|
250
|
+
readonly evidence: Schema.optionalKey<Schema.Struct<{
|
|
251
|
+
readonly accountName: Schema.optionalKey<Schema.String>;
|
|
252
|
+
readonly nameservers: Schema.$Array<Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>>;
|
|
253
|
+
readonly status: Schema.String;
|
|
254
|
+
readonly zoneType: Schema.String;
|
|
255
|
+
}>>;
|
|
256
|
+
readonly zoneId: Schema.String;
|
|
257
|
+
readonly zoneName: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
258
|
+
}>>;
|
|
167
259
|
}>;
|
|
168
260
|
type ReusableConnection = typeof ReusableConnection.Type;
|
|
169
261
|
declare const Disconnected: Schema.TaggedStruct<"Disconnected", {
|
|
170
262
|
readonly domain: Schema.String;
|
|
171
263
|
readonly provider: Schema.Struct<{
|
|
172
264
|
readonly authentication: Schema.$Array<Schema.TaggedUnion<{
|
|
265
|
+
readonly Integration: Schema.TaggedStruct<"Integration", {
|
|
266
|
+
readonly label: Schema.String;
|
|
267
|
+
}>;
|
|
173
268
|
readonly OAuth: Schema.TaggedStruct<"OAuth", {
|
|
174
269
|
readonly label: Schema.String;
|
|
175
270
|
}>;
|
|
@@ -188,9 +283,27 @@ declare const Disconnected: Schema.TaggedStruct<"Disconnected", {
|
|
|
188
283
|
readonly id: Schema.String;
|
|
189
284
|
readonly name: Schema.String;
|
|
190
285
|
}>;
|
|
191
|
-
readonly
|
|
192
|
-
readonly
|
|
193
|
-
|
|
286
|
+
readonly reusableConnections: Schema.$Array<Schema.Struct<{
|
|
287
|
+
readonly connection: Schema.Struct<{
|
|
288
|
+
readonly createdAt: Schema.DateFromString;
|
|
289
|
+
readonly id: Schema.String;
|
|
290
|
+
readonly method: Schema.Literals<readonly ["integration", "oauth2", "token"]>;
|
|
291
|
+
readonly ownerId: Schema.String;
|
|
292
|
+
readonly providerId: Schema.String;
|
|
293
|
+
readonly status: Schema.Literals<readonly ["active", "expired", "revocation-pending"]>;
|
|
294
|
+
}>;
|
|
295
|
+
readonly targets: Schema.$Array<Schema.Struct<{
|
|
296
|
+
readonly accountId: Schema.String;
|
|
297
|
+
readonly accountKind: Schema.NullOr<Schema.Literals<readonly ["account", "personal", "team"]>>;
|
|
298
|
+
readonly evidence: Schema.optionalKey<Schema.Struct<{
|
|
299
|
+
readonly accountName: Schema.optionalKey<Schema.String>;
|
|
300
|
+
readonly nameservers: Schema.$Array<Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>>;
|
|
301
|
+
readonly status: Schema.String;
|
|
302
|
+
readonly zoneType: Schema.String;
|
|
303
|
+
}>>;
|
|
304
|
+
readonly zoneId: Schema.String;
|
|
305
|
+
readonly zoneName: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
306
|
+
}>>;
|
|
194
307
|
}>>;
|
|
195
308
|
}>;
|
|
196
309
|
type Disconnected = typeof Disconnected.Type;
|
|
@@ -199,10 +312,37 @@ declare const Unsupported: Schema.TaggedStruct<"Unsupported", {
|
|
|
199
312
|
}>;
|
|
200
313
|
type Unsupported = typeof Unsupported.Type;
|
|
201
314
|
declare const ConnectionSnapshot: Schema.toTaggedUnion<"_tag", readonly [Schema.TaggedStruct<"Connected", {
|
|
202
|
-
readonly
|
|
203
|
-
|
|
315
|
+
readonly attachment: Schema.Struct<{
|
|
316
|
+
readonly connectionId: Schema.String;
|
|
317
|
+
readonly createdAt: Schema.DateFromString;
|
|
318
|
+
readonly domain: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
319
|
+
readonly id: Schema.String;
|
|
320
|
+
readonly target: Schema.Struct<{
|
|
321
|
+
readonly accountId: Schema.String;
|
|
322
|
+
readonly accountKind: Schema.NullOr<Schema.Literals<readonly ["account", "personal", "team"]>>;
|
|
323
|
+
readonly evidence: Schema.optionalKey<Schema.Struct<{
|
|
324
|
+
readonly accountName: Schema.optionalKey<Schema.String>;
|
|
325
|
+
readonly nameservers: Schema.$Array<Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>>;
|
|
326
|
+
readonly status: Schema.String;
|
|
327
|
+
readonly zoneType: Schema.String;
|
|
328
|
+
}>>;
|
|
329
|
+
readonly zoneId: Schema.String;
|
|
330
|
+
readonly zoneName: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
331
|
+
}>;
|
|
332
|
+
}>;
|
|
333
|
+
readonly connection: Schema.Struct<{
|
|
334
|
+
readonly createdAt: Schema.DateFromString;
|
|
335
|
+
readonly id: Schema.String;
|
|
336
|
+
readonly method: Schema.Literals<readonly ["integration", "oauth2", "token"]>;
|
|
337
|
+
readonly ownerId: Schema.String;
|
|
338
|
+
readonly providerId: Schema.String;
|
|
339
|
+
readonly status: Schema.Literals<readonly ["active", "expired", "revocation-pending"]>;
|
|
340
|
+
}>;
|
|
204
341
|
readonly provider: Schema.Struct<{
|
|
205
342
|
readonly authentication: Schema.$Array<Schema.TaggedUnion<{
|
|
343
|
+
readonly Integration: Schema.TaggedStruct<"Integration", {
|
|
344
|
+
readonly label: Schema.String;
|
|
345
|
+
}>;
|
|
206
346
|
readonly OAuth: Schema.TaggedStruct<"OAuth", {
|
|
207
347
|
readonly label: Schema.String;
|
|
208
348
|
}>;
|
|
@@ -225,6 +365,9 @@ declare const ConnectionSnapshot: Schema.toTaggedUnion<"_tag", readonly [Schema.
|
|
|
225
365
|
readonly domain: Schema.String;
|
|
226
366
|
readonly provider: Schema.Struct<{
|
|
227
367
|
readonly authentication: Schema.$Array<Schema.TaggedUnion<{
|
|
368
|
+
readonly Integration: Schema.TaggedStruct<"Integration", {
|
|
369
|
+
readonly label: Schema.String;
|
|
370
|
+
}>;
|
|
228
371
|
readonly OAuth: Schema.TaggedStruct<"OAuth", {
|
|
229
372
|
readonly label: Schema.String;
|
|
230
373
|
}>;
|
|
@@ -243,9 +386,27 @@ declare const ConnectionSnapshot: Schema.toTaggedUnion<"_tag", readonly [Schema.
|
|
|
243
386
|
readonly id: Schema.String;
|
|
244
387
|
readonly name: Schema.String;
|
|
245
388
|
}>;
|
|
246
|
-
readonly
|
|
247
|
-
readonly
|
|
248
|
-
|
|
389
|
+
readonly reusableConnections: Schema.$Array<Schema.Struct<{
|
|
390
|
+
readonly connection: Schema.Struct<{
|
|
391
|
+
readonly createdAt: Schema.DateFromString;
|
|
392
|
+
readonly id: Schema.String;
|
|
393
|
+
readonly method: Schema.Literals<readonly ["integration", "oauth2", "token"]>;
|
|
394
|
+
readonly ownerId: Schema.String;
|
|
395
|
+
readonly providerId: Schema.String;
|
|
396
|
+
readonly status: Schema.Literals<readonly ["active", "expired", "revocation-pending"]>;
|
|
397
|
+
}>;
|
|
398
|
+
readonly targets: Schema.$Array<Schema.Struct<{
|
|
399
|
+
readonly accountId: Schema.String;
|
|
400
|
+
readonly accountKind: Schema.NullOr<Schema.Literals<readonly ["account", "personal", "team"]>>;
|
|
401
|
+
readonly evidence: Schema.optionalKey<Schema.Struct<{
|
|
402
|
+
readonly accountName: Schema.optionalKey<Schema.String>;
|
|
403
|
+
readonly nameservers: Schema.$Array<Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>>;
|
|
404
|
+
readonly status: Schema.String;
|
|
405
|
+
readonly zoneType: Schema.String;
|
|
406
|
+
}>>;
|
|
407
|
+
readonly zoneId: Schema.String;
|
|
408
|
+
readonly zoneName: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
409
|
+
}>>;
|
|
249
410
|
}>>;
|
|
250
411
|
}>, Schema.TaggedStruct<"Unsupported", {
|
|
251
412
|
readonly domain: Schema.String;
|
|
@@ -256,10 +417,37 @@ declare const Redirect: Schema.TaggedStruct<"Redirect", {
|
|
|
256
417
|
}>;
|
|
257
418
|
type Redirect = typeof Redirect.Type;
|
|
258
419
|
declare const ConnectionResult: Schema.toTaggedUnion<"_tag", readonly [Schema.TaggedStruct<"Connected", {
|
|
259
|
-
readonly
|
|
260
|
-
|
|
420
|
+
readonly attachment: Schema.Struct<{
|
|
421
|
+
readonly connectionId: Schema.String;
|
|
422
|
+
readonly createdAt: Schema.DateFromString;
|
|
423
|
+
readonly domain: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
424
|
+
readonly id: Schema.String;
|
|
425
|
+
readonly target: Schema.Struct<{
|
|
426
|
+
readonly accountId: Schema.String;
|
|
427
|
+
readonly accountKind: Schema.NullOr<Schema.Literals<readonly ["account", "personal", "team"]>>;
|
|
428
|
+
readonly evidence: Schema.optionalKey<Schema.Struct<{
|
|
429
|
+
readonly accountName: Schema.optionalKey<Schema.String>;
|
|
430
|
+
readonly nameservers: Schema.$Array<Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>>;
|
|
431
|
+
readonly status: Schema.String;
|
|
432
|
+
readonly zoneType: Schema.String;
|
|
433
|
+
}>>;
|
|
434
|
+
readonly zoneId: Schema.String;
|
|
435
|
+
readonly zoneName: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
436
|
+
}>;
|
|
437
|
+
}>;
|
|
438
|
+
readonly connection: Schema.Struct<{
|
|
439
|
+
readonly createdAt: Schema.DateFromString;
|
|
440
|
+
readonly id: Schema.String;
|
|
441
|
+
readonly method: Schema.Literals<readonly ["integration", "oauth2", "token"]>;
|
|
442
|
+
readonly ownerId: Schema.String;
|
|
443
|
+
readonly providerId: Schema.String;
|
|
444
|
+
readonly status: Schema.Literals<readonly ["active", "expired", "revocation-pending"]>;
|
|
445
|
+
}>;
|
|
261
446
|
readonly provider: Schema.Struct<{
|
|
262
447
|
readonly authentication: Schema.$Array<Schema.TaggedUnion<{
|
|
448
|
+
readonly Integration: Schema.TaggedStruct<"Integration", {
|
|
449
|
+
readonly label: Schema.String;
|
|
450
|
+
}>;
|
|
263
451
|
readonly OAuth: Schema.TaggedStruct<"OAuth", {
|
|
264
452
|
readonly label: Schema.String;
|
|
265
453
|
}>;
|
|
@@ -282,12 +470,36 @@ declare const ConnectionResult: Schema.toTaggedUnion<"_tag", readonly [Schema.Ta
|
|
|
282
470
|
readonly authorizationUrl: Schema.String;
|
|
283
471
|
}>]>;
|
|
284
472
|
type ConnectionResult = typeof ConnectionResult.Type;
|
|
285
|
-
declare const
|
|
286
|
-
readonly
|
|
287
|
-
|
|
288
|
-
|
|
473
|
+
declare const DetachResult: Schema.TaggedStruct<"Detached", {
|
|
474
|
+
readonly attachment: Schema.Struct<{
|
|
475
|
+
readonly connectionId: Schema.String;
|
|
476
|
+
readonly createdAt: Schema.DateFromString;
|
|
477
|
+
readonly domain: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
478
|
+
readonly id: Schema.String;
|
|
479
|
+
readonly target: Schema.Struct<{
|
|
480
|
+
readonly accountId: Schema.String;
|
|
481
|
+
readonly accountKind: Schema.NullOr<Schema.Literals<readonly ["account", "personal", "team"]>>;
|
|
482
|
+
readonly evidence: Schema.optionalKey<Schema.Struct<{
|
|
483
|
+
readonly accountName: Schema.optionalKey<Schema.String>;
|
|
484
|
+
readonly nameservers: Schema.$Array<Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>>;
|
|
485
|
+
readonly status: Schema.String;
|
|
486
|
+
readonly zoneType: Schema.String;
|
|
487
|
+
}>>;
|
|
488
|
+
readonly zoneId: Schema.String;
|
|
489
|
+
readonly zoneName: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
|
|
490
|
+
}>;
|
|
491
|
+
}>;
|
|
492
|
+
readonly connection: Schema.Struct<{
|
|
493
|
+
readonly createdAt: Schema.DateFromString;
|
|
494
|
+
readonly id: Schema.String;
|
|
495
|
+
readonly method: Schema.Literals<readonly ["integration", "oauth2", "token"]>;
|
|
496
|
+
readonly ownerId: Schema.String;
|
|
497
|
+
readonly providerId: Schema.String;
|
|
498
|
+
readonly status: Schema.Literals<readonly ["active", "expired", "revocation-pending"]>;
|
|
499
|
+
}>;
|
|
500
|
+
readonly remainingAttachments: Schema.Int;
|
|
289
501
|
}>;
|
|
290
|
-
type
|
|
502
|
+
type DetachResult = typeof DetachResult.Type;
|
|
291
503
|
/** A presentation projection of a DNS requirement. */
|
|
292
504
|
declare const DnsRecord: Schema.Struct<{
|
|
293
505
|
readonly id: Schema.String;
|
|
@@ -590,21 +802,27 @@ interface ConnectInput {
|
|
|
590
802
|
interface InspectInput {
|
|
591
803
|
readonly domain: string;
|
|
592
804
|
}
|
|
593
|
-
interface
|
|
805
|
+
interface AttachInput {
|
|
594
806
|
readonly connectionId: string;
|
|
595
807
|
readonly domain: string;
|
|
808
|
+
readonly target: ProviderTarget;
|
|
596
809
|
}
|
|
597
|
-
interface
|
|
810
|
+
interface DetachInput {
|
|
811
|
+
readonly attachmentId: string;
|
|
598
812
|
readonly preserveDns: true;
|
|
599
813
|
}
|
|
600
|
-
interface ProvisioningPlanInput
|
|
814
|
+
interface ProvisioningPlanInput {
|
|
815
|
+
readonly attachmentId: string;
|
|
816
|
+
readonly domain: string;
|
|
601
817
|
readonly records: ReadonlyArray<DnsRecord>;
|
|
602
818
|
}
|
|
603
|
-
interface ProvisioningApplyInput
|
|
819
|
+
interface ProvisioningApplyInput {
|
|
820
|
+
readonly attachmentId: string;
|
|
821
|
+
readonly domain: string;
|
|
604
822
|
readonly planDigest: string;
|
|
605
823
|
}
|
|
606
824
|
interface ObserveInput {
|
|
607
|
-
readonly
|
|
825
|
+
readonly attachmentId?: string;
|
|
608
826
|
readonly domain: string;
|
|
609
827
|
readonly records: ReadonlyArray<DnsRecord>;
|
|
610
828
|
readonly sources: {
|
|
@@ -612,7 +830,9 @@ interface ObserveInput {
|
|
|
612
830
|
readonly publicDns: boolean;
|
|
613
831
|
};
|
|
614
832
|
}
|
|
615
|
-
interface CleanupPlanInput
|
|
833
|
+
interface CleanupPlanInput {
|
|
834
|
+
readonly attachmentId: string;
|
|
835
|
+
readonly domain: string;
|
|
616
836
|
readonly receiptId: string;
|
|
617
837
|
}
|
|
618
838
|
interface CleanupApplyInput extends CleanupPlanInput {
|
|
@@ -625,10 +845,10 @@ interface Interface {
|
|
|
625
845
|
readonly plan: (input: CleanupPlanInput) => Effect.Effect<CleanupPlan, Failure>;
|
|
626
846
|
};
|
|
627
847
|
readonly connection: {
|
|
848
|
+
readonly attach: (input: AttachInput) => Effect.Effect<Connected, Failure>;
|
|
628
849
|
readonly connect: (input: ConnectInput) => Effect.Effect<ConnectionResult, Failure>;
|
|
629
850
|
readonly inspect: (input: InspectInput) => Effect.Effect<ConnectionSnapshot, Failure>;
|
|
630
|
-
readonly
|
|
631
|
-
readonly reuse: (input: ReuseInput) => Effect.Effect<Connected, Failure>;
|
|
851
|
+
readonly detach: (input: DetachInput) => Effect.Effect<DetachResult, Failure>;
|
|
632
852
|
};
|
|
633
853
|
readonly provisioning: {
|
|
634
854
|
readonly apply: (input: ProvisioningApplyInput) => Effect.Effect<ApplyResult, Failure>;
|
|
@@ -647,10 +867,10 @@ interface AsyncInterface {
|
|
|
647
867
|
readonly plan: (input: CleanupPlanInput) => Promise<CleanupPlan>;
|
|
648
868
|
};
|
|
649
869
|
readonly connection: {
|
|
870
|
+
readonly attach: (input: AttachInput) => Promise<Connected>;
|
|
650
871
|
readonly connect: (input: ConnectInput) => Promise<ConnectionResult>;
|
|
651
872
|
readonly inspect: (input: InspectInput) => Promise<ConnectionSnapshot>;
|
|
652
|
-
readonly
|
|
653
|
-
readonly reuse: (input: ReuseInput) => Promise<Connected>;
|
|
873
|
+
readonly detach: (input: DetachInput) => Promise<DetachResult>;
|
|
654
874
|
};
|
|
655
875
|
readonly provisioning: {
|
|
656
876
|
readonly apply: (input: ProvisioningApplyInput) => Promise<ApplyResult>;
|
|
@@ -677,5 +897,5 @@ declare function parse(type: Type, input: unknown): string;
|
|
|
677
897
|
/** The current package version from the package manifest. */
|
|
678
898
|
declare const VERSION: string;
|
|
679
899
|
//#endregion
|
|
680
|
-
export {
|
|
900
|
+
export { index_d_exports as Cloudflare, cloudflare_doh_d_exports as CloudflareDnsOverHttps, connection_api_d_exports as Connection, connection_authorization_d_exports as ConnectionAuthorization, deletion_d_exports as Deletion, diagnostic_d_exports as Diagnostic, canonical_json_d_exports as Digest, dns_data_d_exports as DnsData, doh_d_exports as DnsOverHttps, types_d_exports as DnsPlan, provider_d_exports as DnsProvider, dns_record_d_exports as DnsRecord, 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, lifecycle_api_d_exports as ManagedDnsConnections, manifest_d_exports as ProviderAuth, provider_context_d_exports as ProviderContext, selection_d_exports as ProviderDiscovery, session_d_exports as ProviderSession, plan_d_exports as Provisioning, secret_d_exports as Secret, transport_d_exports as Transport, VERSION, index_d_exports$1 as Vercel, verify_d_exports as Verification, zone_discovery_d_exports as ZoneDiscovery, zones_d_exports as Zones };
|
|
681
901
|
//# sourceMappingURL=index.d.mts.map
|