domainkit 0.2.1 → 0.3.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/README.md +31 -26
- package/dist/index.d.mts +639 -187
- package/dist/index.mjs +301 -300
- package/dist/index.mjs.map +1 -1
- package/dist/promise.d.mts +464 -0
- package/dist/promise.mjs +636 -0
- package/dist/promise.mjs.map +1 -0
- package/dist/{resolver-CxE-VDw4.mjs → resolver-CvK7JoJM.mjs} +401 -54
- package/dist/resolver-CvK7JoJM.mjs.map +1 -0
- package/dist/{resolver-BbVzTbCX.d.mts → resolver-uqe1h5Vz.d.mts} +1513 -25
- package/dist/testing.d.mts +4 -5
- package/dist/testing.mjs +17 -3
- package/dist/testing.mjs.map +1 -1
- package/dist/verify-B00c81-n.mjs +2420 -0
- package/dist/verify-B00c81-n.mjs.map +1 -0
- package/dist/{verify-7_EbKbFM.d.mts → verify-CkgVrwyl.d.mts} +318 -21
- package/package.json +6 -30
- package/dist/auth-6-KRy1gN.mjs +0 -671
- package/dist/auth-6-KRy1gN.mjs.map +0 -1
- package/dist/auth-B4jq3yk3.mjs +0 -738
- package/dist/auth-B4jq3yk3.mjs.map +0 -1
- package/dist/authorization-CQSKKMrW.mjs +0 -255
- package/dist/authorization-CQSKKMrW.mjs.map +0 -1
- package/dist/canonical-json-CpvqGMcr.mjs +0 -57
- package/dist/canonical-json-CpvqGMcr.mjs.map +0 -1
- package/dist/cloudflare-Bg_p-M2c.mjs +0 -69
- package/dist/cloudflare-Bg_p-M2c.mjs.map +0 -1
- package/dist/cloudflare-FDl5q7Dm.d.mts +0 -32
- package/dist/cloudflare.d.mts +0 -3
- package/dist/cloudflare.mjs +0 -2
- package/dist/connection-BXoSrhZs.mjs +0 -58
- package/dist/connection-BXoSrhZs.mjs.map +0 -1
- package/dist/connection-CEqadXSm.d.mts +0 -182
- package/dist/connection-X3rZhrBZ.mjs +0 -186
- package/dist/connection-X3rZhrBZ.mjs.map +0 -1
- package/dist/connection-api-DftK7eHo.d.mts +0 -7
- package/dist/dns-record-BLeqo56C.mjs +0 -289
- package/dist/dns-record-BLeqo56C.mjs.map +0 -1
- package/dist/effect-cloudflare.d.mts +0 -2
- package/dist/effect-cloudflare.mjs +0 -2
- package/dist/effect-vercel.d.mts +0 -2
- package/dist/effect-vercel.mjs +0 -2
- package/dist/effect.d.mts +0 -36
- package/dist/effect.mjs +0 -50
- package/dist/effect.mjs.map +0 -1
- package/dist/index-B1opsgls.d.mts +0 -159
- package/dist/index-Ewc__bQu.d.mts +0 -145
- package/dist/resolver-CxE-VDw4.mjs.map +0 -1
- package/dist/vercel-BIFpZRPu.mjs +0 -60
- package/dist/vercel-BIFpZRPu.mjs.map +0 -1
- package/dist/vercel-DgJaUX9D.d.mts +0 -31
- package/dist/vercel.d.mts +0 -3
- package/dist/vercel.mjs +0 -2
- package/dist/verify-Q5RYpnuw.mjs +0 -642
- package/dist/verify-Q5RYpnuw.mjs.map +0 -1
- package/dist/zone-discovery-BA5I24vu.d.mts +0 -1390
- package/dist/zones-DKHTpX9C.mjs +0 -19
- package/dist/zones-DKHTpX9C.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,229 +1,681 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { a as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { i as vercel_d_exports } from "./vercel-DgJaUX9D.mjs";
|
|
7
|
-
import { Data } from "effect";
|
|
8
|
-
declare namespace dns_provider_d_exports {
|
|
9
|
-
export { CreateResult, AsyncInterface as Interface };
|
|
1
|
+
import { $t as manifest_d_exports, B as types_d_exports, Bt as ProviderAuthorization, Ct as Connection, En as secret_d_exports, Ht as authorization_d_exports, Mn as invalid_input_d_exports, N as DnsPlan, Sn as dns_record_d_exports, St as AuthorizationError, U as zone_discovery_d_exports, an as provider_d_exports, b as AuthorizeError, bn as Type, bt as CryptoError, ft as provider_context_d_exports, jn as Error$1, k as plan_d_exports, kn as domain_name_d_exports, l as resolver_d_exports, un as DnsRecord$1, v as deletion_d_exports, xt as canonical_json_d_exports, yt as lifecycle_repository_d_exports } from "./resolver-uqe1h5Vz.mjs";
|
|
2
|
+
import { J as diagnostic_d_exports, K as zones_d_exports, Y as connection_api_d_exports, a as verify_d_exports, d as google_doh_d_exports, g as index_d_exports$1, h as doh_d_exports, j as index_d_exports, l as resolver_pool_d_exports, p as cloudflare_doh_d_exports, q as selection_d_exports } from "./verify-CkgVrwyl.mjs";
|
|
3
|
+
import { Context, Crypto, Data, Effect, Layer, Schema } from "effect";
|
|
4
|
+
declare namespace connection_authorization_d_exports {
|
|
5
|
+
export { Error, Requirements, authorize };
|
|
10
6
|
}
|
|
11
|
-
declare
|
|
12
|
-
export { Answer, AsyncInterface$1 as Interface, Query, AsyncResolution as Resolution };
|
|
13
|
-
}
|
|
14
|
-
declare namespace provider_auth_d_exports {
|
|
15
|
-
export { Manifest, Method, OAuthClientConfiguration, OAuthMethod, AsyncOAuthSubjectResolver as OAuthSubjectResolver, Schema$1 as Schema, TokenValidation, decode$2 as decode };
|
|
16
|
-
}
|
|
17
|
-
declare function decode$2(input: unknown): Promise<Manifest>;
|
|
18
|
-
declare namespace provider_authorization_d_exports {
|
|
19
|
-
export { Capability, CapabilityEvidence, Evidence, EvidenceSchema, ProviderAuthorization, Schema$2 as Schema, decode$1 as decode, encode };
|
|
20
|
-
}
|
|
21
|
-
declare function decode$1(input: unknown): Promise<ProviderAuthorization>;
|
|
22
|
-
declare namespace dns_record_d_exports {
|
|
23
|
-
export { A, Aaaa, Caa, Cname, DnsRecord, Encoded, Mx, Ns, Observed, Opaque, RequirementMetadata, Schema$3 as Schema, Srv, Txt, Type, data, equals, parse };
|
|
24
|
-
}
|
|
25
|
-
declare namespace domain_name_d_exports {
|
|
26
|
-
export { DomainName, Schema$4 as Schema, parse$1 as parse };
|
|
27
|
-
}
|
|
28
|
-
declare namespace dns_plan_d_exports {
|
|
29
|
-
export { ApplyReceipt, Authorization, DnsPlan, Operation, PlanAuthorization, Receipt, Schema$5 as Schema, decode, decodeReceipt, encode$1 as encode, encodeReceipt };
|
|
30
|
-
}
|
|
31
|
-
declare function decode(input: unknown): Promise<DnsPlan>;
|
|
32
|
-
declare function decodeReceipt(input: unknown): Promise<ApplyReceipt>;
|
|
33
|
-
declare namespace deletion_d_exports {
|
|
34
|
-
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 };
|
|
35
|
-
}
|
|
36
|
-
declare function create$1(input: {
|
|
37
|
-
readonly plan: DnsPlan;
|
|
38
|
-
readonly provider: AsyncInterface;
|
|
39
|
-
readonly receipt: ApplyReceipt;
|
|
40
|
-
readonly ttlMs?: number;
|
|
41
|
-
}): Promise<Plan>;
|
|
42
|
-
declare function authorize$1(plan: Plan, operationIds?: ReadonlyArray<string>): Promise<Authorization$1>;
|
|
43
|
-
declare function apply$1(input: {
|
|
44
|
-
readonly authorization: Authorization$1;
|
|
45
|
-
readonly plan: Plan;
|
|
46
|
-
readonly priorReceipt?: Receipt$1;
|
|
47
|
-
readonly provider: AsyncInterface;
|
|
48
|
-
}): Promise<Receipt$1>;
|
|
49
|
-
declare namespace provisioning_d_exports {
|
|
50
|
-
export { CreateResult$1 as CreateResult, DiscoverCreateInput, ExactCreateInput, Target, apply, authorize, authorizeForConnection, create, renderManualInstructions };
|
|
51
|
-
}
|
|
52
|
-
interface ExactCreateInput extends ExactCreateInput$1 {
|
|
53
|
-
readonly provider: AsyncInterface;
|
|
54
|
-
}
|
|
55
|
-
interface DiscoverCreateInput extends DiscoverCreateInput$1 {
|
|
56
|
-
readonly sources: ReadonlyArray<Source>;
|
|
57
|
-
}
|
|
58
|
-
declare function create(input: ExactCreateInput): Promise<ResolvedCreateResult>;
|
|
59
|
-
declare function create(input: DiscoverCreateInput): Promise<CreateResult$1>;
|
|
60
|
-
declare function authorize(plan: DnsPlan, operationIds?: ReadonlyArray<string>, options?: {
|
|
61
|
-
readonly allowPartial?: boolean;
|
|
62
|
-
}): Promise<PlanAuthorization>;
|
|
63
|
-
declare function apply(input: {
|
|
64
|
-
readonly authorization: PlanAuthorization;
|
|
65
|
-
readonly plan: DnsPlan;
|
|
66
|
-
readonly provider: AsyncInterface;
|
|
67
|
-
}): Promise<ApplyReceipt>;
|
|
68
|
-
declare function authorizeForConnection(input: {
|
|
7
|
+
declare const authorize: (input: {
|
|
69
8
|
readonly allowPartial?: boolean;
|
|
70
9
|
readonly authorization: ProviderAuthorization;
|
|
71
10
|
readonly connection: Connection;
|
|
72
11
|
readonly domain: string;
|
|
73
12
|
readonly operationIds?: ReadonlyArray<string>;
|
|
74
13
|
readonly plan: DnsPlan;
|
|
75
|
-
})
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
14
|
+
}) => Effect.Effect<{
|
|
15
|
+
allowPartial: boolean;
|
|
16
|
+
operationIds: string[];
|
|
17
|
+
planDigest: string;
|
|
18
|
+
version: "domainkit.plan-authorization.v1";
|
|
19
|
+
}, AuthorizationError | Error$1 | AuthorizeError, Crypto.Crypto>;
|
|
20
|
+
type Error = AuthorizationError | Error$1 | CryptoError;
|
|
21
|
+
type Requirements = Crypto.Crypto;
|
|
22
|
+
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, ProvisioningApplyInput, ProvisioningPlan, ProvisioningPlanInput, Redirect, RemoveDomainInput, RemoveDomainResult, ReusableConnection, ReuseInput, Service, Unsupported, fromAsync, fromDnsRecord, layerFromAsync, toAsync };
|
|
79
24
|
}
|
|
80
|
-
|
|
81
|
-
readonly
|
|
82
|
-
readonly
|
|
83
|
-
readonly
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
readonly _tag: Tag;
|
|
99
|
-
}> | Extract<{
|
|
100
|
-
readonly _tag: "Enabled";
|
|
101
|
-
readonly policy?: Policy;
|
|
102
|
-
}, {
|
|
103
|
-
readonly _tag: Tag;
|
|
25
|
+
declare const Failure_base: Schema.Class<Failure, Schema.TaggedStruct<"Failure", {
|
|
26
|
+
readonly message: Schema.String;
|
|
27
|
+
readonly operation: Schema.String;
|
|
28
|
+
readonly retry: Schema.Literals<readonly ["never", "after-user-action", "safe", "unknown"]>;
|
|
29
|
+
}>, import("effect/Cause").YieldableError>;
|
|
30
|
+
/** A user-presentable failure at the application transport boundary. */
|
|
31
|
+
declare class Failure extends Failure_base {}
|
|
32
|
+
declare const AuthenticationParameter: Schema.Struct<{
|
|
33
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
34
|
+
readonly key: Schema.String;
|
|
35
|
+
readonly label: Schema.String;
|
|
36
|
+
readonly placeholder: Schema.optionalKey<Schema.String>;
|
|
37
|
+
readonly required: Schema.optionalKey<Schema.Boolean>;
|
|
38
|
+
}>;
|
|
39
|
+
type AuthenticationParameter = typeof AuthenticationParameter.Type;
|
|
40
|
+
declare const AuthenticationMethod: Schema.TaggedUnion<{
|
|
41
|
+
readonly OAuth: Schema.TaggedStruct<"OAuth", {
|
|
42
|
+
readonly label: Schema.String;
|
|
104
43
|
}>;
|
|
105
|
-
readonly
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
readonly
|
|
110
|
-
readonly
|
|
111
|
-
|
|
112
|
-
readonly
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
}, {
|
|
125
|
-
readonly _tag: Tag;
|
|
126
|
-
}>) => any; }>(value: {
|
|
127
|
-
readonly _tag: "Disabled";
|
|
128
|
-
} | {
|
|
129
|
-
readonly _tag: "Enabled";
|
|
130
|
-
readonly policy?: Policy;
|
|
131
|
-
}, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["Disabled" | "Enabled"]>>;
|
|
132
|
-
};
|
|
133
|
-
readonly Disabled: Data.TaggedEnum.ConstructorFrom<{
|
|
134
|
-
readonly _tag: "Disabled";
|
|
135
|
-
}, "_tag">;
|
|
136
|
-
readonly Enabled: Data.TaggedEnum.ConstructorFrom<{
|
|
137
|
-
readonly _tag: "Enabled";
|
|
138
|
-
readonly policy?: Policy;
|
|
139
|
-
}, "_tag">;
|
|
140
|
-
};
|
|
141
|
-
type Provider = Data.TaggedEnum<{
|
|
142
|
-
Disabled: {};
|
|
143
|
-
Enabled: {
|
|
144
|
-
readonly provider: AsyncInterface;
|
|
145
|
-
readonly zone: DomainName;
|
|
44
|
+
readonly Token: Schema.TaggedStruct<"Token", {
|
|
45
|
+
readonly label: Schema.String;
|
|
46
|
+
readonly parameters: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
47
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
48
|
+
readonly key: Schema.String;
|
|
49
|
+
readonly label: Schema.String;
|
|
50
|
+
readonly placeholder: Schema.optionalKey<Schema.String>;
|
|
51
|
+
readonly required: Schema.optionalKey<Schema.Boolean>;
|
|
52
|
+
}>>>;
|
|
53
|
+
readonly placeholder: Schema.optionalKey<Schema.String>;
|
|
54
|
+
}>;
|
|
55
|
+
}>;
|
|
56
|
+
type AuthenticationMethod = typeof AuthenticationMethod.Type;
|
|
57
|
+
/** The authentication choice supplied to a connection request. */
|
|
58
|
+
type Method = Data.TaggedEnum<{
|
|
59
|
+
OAuth: {};
|
|
60
|
+
Token: {
|
|
61
|
+
readonly parameters?: Readonly<Record<string, string>>;
|
|
62
|
+
readonly token: string;
|
|
146
63
|
};
|
|
147
64
|
}>;
|
|
148
|
-
declare const
|
|
149
|
-
readonly $is: <Tag extends "
|
|
150
|
-
readonly _tag: "
|
|
65
|
+
declare const Method: {
|
|
66
|
+
readonly $is: <Tag extends "OAuth" | "Token">(tag: Tag) => (u: unknown) => u is Extract<{
|
|
67
|
+
readonly _tag: "OAuth";
|
|
151
68
|
}, {
|
|
152
69
|
readonly _tag: Tag;
|
|
153
70
|
}> | Extract<{
|
|
154
|
-
readonly _tag: "
|
|
155
|
-
readonly
|
|
156
|
-
readonly
|
|
71
|
+
readonly _tag: "Token";
|
|
72
|
+
readonly parameters?: Readonly<Record<string, string>>;
|
|
73
|
+
readonly token: string;
|
|
157
74
|
}, {
|
|
158
75
|
readonly _tag: Tag;
|
|
159
76
|
}>;
|
|
160
77
|
readonly $match: {
|
|
161
|
-
<Cases extends { readonly [Tag in "
|
|
162
|
-
readonly _tag: "
|
|
78
|
+
<Cases extends { readonly [Tag in "OAuth" | "Token"]: (args: Extract<{
|
|
79
|
+
readonly _tag: "OAuth";
|
|
163
80
|
} | {
|
|
164
|
-
readonly _tag: "
|
|
165
|
-
readonly
|
|
166
|
-
readonly
|
|
81
|
+
readonly _tag: "Token";
|
|
82
|
+
readonly parameters?: Readonly<Record<string, string>>;
|
|
83
|
+
readonly token: string;
|
|
167
84
|
}, {
|
|
168
85
|
readonly _tag: Tag;
|
|
169
86
|
}>) => any; }>(cases: Cases): (value: {
|
|
170
|
-
readonly _tag: "
|
|
87
|
+
readonly _tag: "OAuth";
|
|
171
88
|
} | {
|
|
172
|
-
readonly _tag: "
|
|
173
|
-
readonly
|
|
174
|
-
readonly
|
|
175
|
-
}) => import("effect/Unify").Unify<ReturnType<Cases["
|
|
176
|
-
<Cases extends { readonly [Tag in "
|
|
177
|
-
readonly _tag: "
|
|
89
|
+
readonly _tag: "Token";
|
|
90
|
+
readonly parameters?: Readonly<Record<string, string>>;
|
|
91
|
+
readonly token: string;
|
|
92
|
+
}) => import("effect/Unify").Unify<ReturnType<Cases["OAuth" | "Token"]>>;
|
|
93
|
+
<Cases extends { readonly [Tag in "OAuth" | "Token"]: (args: Extract<{
|
|
94
|
+
readonly _tag: "OAuth";
|
|
178
95
|
} | {
|
|
179
|
-
readonly _tag: "
|
|
180
|
-
readonly
|
|
181
|
-
readonly
|
|
96
|
+
readonly _tag: "Token";
|
|
97
|
+
readonly parameters?: Readonly<Record<string, string>>;
|
|
98
|
+
readonly token: string;
|
|
182
99
|
}, {
|
|
183
100
|
readonly _tag: Tag;
|
|
184
101
|
}>) => any; }>(value: {
|
|
185
|
-
readonly _tag: "
|
|
102
|
+
readonly _tag: "OAuth";
|
|
186
103
|
} | {
|
|
187
|
-
readonly _tag: "
|
|
188
|
-
readonly
|
|
189
|
-
readonly
|
|
190
|
-
}, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["
|
|
104
|
+
readonly _tag: "Token";
|
|
105
|
+
readonly parameters?: Readonly<Record<string, string>>;
|
|
106
|
+
readonly token: string;
|
|
107
|
+
}, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["OAuth" | "Token"]>>;
|
|
191
108
|
};
|
|
192
|
-
readonly
|
|
193
|
-
readonly _tag: "
|
|
109
|
+
readonly OAuth: Data.TaggedEnum.ConstructorFrom<{
|
|
110
|
+
readonly _tag: "OAuth";
|
|
194
111
|
}, "_tag">;
|
|
195
|
-
readonly
|
|
196
|
-
readonly _tag: "
|
|
197
|
-
readonly
|
|
198
|
-
readonly
|
|
112
|
+
readonly Token: Data.TaggedEnum.ConstructorFrom<{
|
|
113
|
+
readonly _tag: "Token";
|
|
114
|
+
readonly parameters?: Readonly<Record<string, string>>;
|
|
115
|
+
readonly token: string;
|
|
199
116
|
}, "_tag">;
|
|
200
117
|
};
|
|
201
|
-
|
|
202
|
-
readonly
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
118
|
+
declare const Provider: Schema.Struct<{
|
|
119
|
+
readonly authentication: Schema.$Array<Schema.TaggedUnion<{
|
|
120
|
+
readonly OAuth: Schema.TaggedStruct<"OAuth", {
|
|
121
|
+
readonly label: Schema.String;
|
|
122
|
+
}>;
|
|
123
|
+
readonly Token: Schema.TaggedStruct<"Token", {
|
|
124
|
+
readonly label: Schema.String;
|
|
125
|
+
readonly parameters: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
126
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
127
|
+
readonly key: Schema.String;
|
|
128
|
+
readonly label: Schema.String;
|
|
129
|
+
readonly placeholder: Schema.optionalKey<Schema.String>;
|
|
130
|
+
readonly required: Schema.optionalKey<Schema.Boolean>;
|
|
131
|
+
}>>>;
|
|
132
|
+
readonly placeholder: Schema.optionalKey<Schema.String>;
|
|
133
|
+
}>;
|
|
134
|
+
}>>;
|
|
135
|
+
readonly id: Schema.String;
|
|
136
|
+
readonly name: Schema.String;
|
|
137
|
+
}>;
|
|
138
|
+
type Provider = typeof Provider.Type;
|
|
139
|
+
declare const Connected: Schema.TaggedStruct<"Connected", {
|
|
140
|
+
readonly connectionId: Schema.String;
|
|
141
|
+
readonly domain: Schema.String;
|
|
142
|
+
readonly provider: Schema.Struct<{
|
|
143
|
+
readonly authentication: Schema.$Array<Schema.TaggedUnion<{
|
|
144
|
+
readonly OAuth: Schema.TaggedStruct<"OAuth", {
|
|
145
|
+
readonly label: Schema.String;
|
|
146
|
+
}>;
|
|
147
|
+
readonly Token: Schema.TaggedStruct<"Token", {
|
|
148
|
+
readonly label: Schema.String;
|
|
149
|
+
readonly parameters: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
150
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
151
|
+
readonly key: Schema.String;
|
|
152
|
+
readonly label: Schema.String;
|
|
153
|
+
readonly placeholder: Schema.optionalKey<Schema.String>;
|
|
154
|
+
readonly required: Schema.optionalKey<Schema.Boolean>;
|
|
155
|
+
}>>>;
|
|
156
|
+
readonly placeholder: Schema.optionalKey<Schema.String>;
|
|
157
|
+
}>;
|
|
158
|
+
}>>;
|
|
159
|
+
readonly id: Schema.String;
|
|
160
|
+
readonly name: Schema.String;
|
|
161
|
+
}>;
|
|
162
|
+
}>;
|
|
163
|
+
type Connected = typeof Connected.Type;
|
|
164
|
+
declare const ReusableConnection: Schema.Struct<{
|
|
165
|
+
readonly connectionId: Schema.String;
|
|
166
|
+
readonly label: Schema.String;
|
|
167
|
+
}>;
|
|
168
|
+
type ReusableConnection = typeof ReusableConnection.Type;
|
|
169
|
+
declare const Disconnected: Schema.TaggedStruct<"Disconnected", {
|
|
170
|
+
readonly domain: Schema.String;
|
|
171
|
+
readonly provider: Schema.Struct<{
|
|
172
|
+
readonly authentication: Schema.$Array<Schema.TaggedUnion<{
|
|
173
|
+
readonly OAuth: Schema.TaggedStruct<"OAuth", {
|
|
174
|
+
readonly label: Schema.String;
|
|
175
|
+
}>;
|
|
176
|
+
readonly Token: Schema.TaggedStruct<"Token", {
|
|
177
|
+
readonly label: Schema.String;
|
|
178
|
+
readonly parameters: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
179
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
180
|
+
readonly key: Schema.String;
|
|
181
|
+
readonly label: Schema.String;
|
|
182
|
+
readonly placeholder: Schema.optionalKey<Schema.String>;
|
|
183
|
+
readonly required: Schema.optionalKey<Schema.Boolean>;
|
|
184
|
+
}>>>;
|
|
185
|
+
readonly placeholder: Schema.optionalKey<Schema.String>;
|
|
186
|
+
}>;
|
|
187
|
+
}>>;
|
|
188
|
+
readonly id: Schema.String;
|
|
189
|
+
readonly name: Schema.String;
|
|
190
|
+
}>;
|
|
191
|
+
readonly reusableConnection: Schema.optionalKey<Schema.Struct<{
|
|
192
|
+
readonly connectionId: Schema.String;
|
|
193
|
+
readonly label: Schema.String;
|
|
194
|
+
}>>;
|
|
195
|
+
}>;
|
|
196
|
+
type Disconnected = typeof Disconnected.Type;
|
|
197
|
+
declare const Unsupported: Schema.TaggedStruct<"Unsupported", {
|
|
198
|
+
readonly domain: Schema.String;
|
|
199
|
+
}>;
|
|
200
|
+
type Unsupported = typeof Unsupported.Type;
|
|
201
|
+
declare const ConnectionSnapshot: Schema.toTaggedUnion<"_tag", readonly [Schema.TaggedStruct<"Connected", {
|
|
202
|
+
readonly connectionId: Schema.String;
|
|
203
|
+
readonly domain: Schema.String;
|
|
204
|
+
readonly provider: Schema.Struct<{
|
|
205
|
+
readonly authentication: Schema.$Array<Schema.TaggedUnion<{
|
|
206
|
+
readonly OAuth: Schema.TaggedStruct<"OAuth", {
|
|
207
|
+
readonly label: Schema.String;
|
|
208
|
+
}>;
|
|
209
|
+
readonly Token: Schema.TaggedStruct<"Token", {
|
|
210
|
+
readonly label: Schema.String;
|
|
211
|
+
readonly parameters: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
212
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
213
|
+
readonly key: Schema.String;
|
|
214
|
+
readonly label: Schema.String;
|
|
215
|
+
readonly placeholder: Schema.optionalKey<Schema.String>;
|
|
216
|
+
readonly required: Schema.optionalKey<Schema.Boolean>;
|
|
217
|
+
}>>>;
|
|
218
|
+
readonly placeholder: Schema.optionalKey<Schema.String>;
|
|
219
|
+
}>;
|
|
220
|
+
}>>;
|
|
221
|
+
readonly id: Schema.String;
|
|
222
|
+
readonly name: Schema.String;
|
|
223
|
+
}>;
|
|
224
|
+
}>, Schema.TaggedStruct<"Disconnected", {
|
|
225
|
+
readonly domain: Schema.String;
|
|
226
|
+
readonly provider: Schema.Struct<{
|
|
227
|
+
readonly authentication: Schema.$Array<Schema.TaggedUnion<{
|
|
228
|
+
readonly OAuth: Schema.TaggedStruct<"OAuth", {
|
|
229
|
+
readonly label: Schema.String;
|
|
230
|
+
}>;
|
|
231
|
+
readonly Token: Schema.TaggedStruct<"Token", {
|
|
232
|
+
readonly label: Schema.String;
|
|
233
|
+
readonly parameters: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
234
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
235
|
+
readonly key: Schema.String;
|
|
236
|
+
readonly label: Schema.String;
|
|
237
|
+
readonly placeholder: Schema.optionalKey<Schema.String>;
|
|
238
|
+
readonly required: Schema.optionalKey<Schema.Boolean>;
|
|
239
|
+
}>>>;
|
|
240
|
+
readonly placeholder: Schema.optionalKey<Schema.String>;
|
|
241
|
+
}>;
|
|
242
|
+
}>>;
|
|
243
|
+
readonly id: Schema.String;
|
|
244
|
+
readonly name: Schema.String;
|
|
245
|
+
}>;
|
|
246
|
+
readonly reusableConnection: Schema.optionalKey<Schema.Struct<{
|
|
247
|
+
readonly connectionId: Schema.String;
|
|
248
|
+
readonly label: Schema.String;
|
|
249
|
+
}>>;
|
|
250
|
+
}>, Schema.TaggedStruct<"Unsupported", {
|
|
251
|
+
readonly domain: Schema.String;
|
|
252
|
+
}>]>;
|
|
253
|
+
type ConnectionSnapshot = typeof ConnectionSnapshot.Type;
|
|
254
|
+
declare const Redirect: Schema.TaggedStruct<"Redirect", {
|
|
255
|
+
readonly authorizationUrl: Schema.String;
|
|
256
|
+
}>;
|
|
257
|
+
type Redirect = typeof Redirect.Type;
|
|
258
|
+
declare const ConnectionResult: Schema.toTaggedUnion<"_tag", readonly [Schema.TaggedStruct<"Connected", {
|
|
259
|
+
readonly connectionId: Schema.String;
|
|
260
|
+
readonly domain: Schema.String;
|
|
261
|
+
readonly provider: Schema.Struct<{
|
|
262
|
+
readonly authentication: Schema.$Array<Schema.TaggedUnion<{
|
|
263
|
+
readonly OAuth: Schema.TaggedStruct<"OAuth", {
|
|
264
|
+
readonly label: Schema.String;
|
|
265
|
+
}>;
|
|
266
|
+
readonly Token: Schema.TaggedStruct<"Token", {
|
|
267
|
+
readonly label: Schema.String;
|
|
268
|
+
readonly parameters: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
269
|
+
readonly description: Schema.optionalKey<Schema.String>;
|
|
270
|
+
readonly key: Schema.String;
|
|
271
|
+
readonly label: Schema.String;
|
|
272
|
+
readonly placeholder: Schema.optionalKey<Schema.String>;
|
|
273
|
+
readonly required: Schema.optionalKey<Schema.Boolean>;
|
|
274
|
+
}>>>;
|
|
275
|
+
readonly placeholder: Schema.optionalKey<Schema.String>;
|
|
276
|
+
}>;
|
|
277
|
+
}>>;
|
|
278
|
+
readonly id: Schema.String;
|
|
279
|
+
readonly name: Schema.String;
|
|
280
|
+
}>;
|
|
281
|
+
}>, Schema.TaggedStruct<"Redirect", {
|
|
282
|
+
readonly authorizationUrl: Schema.String;
|
|
283
|
+
}>]>;
|
|
284
|
+
type ConnectionResult = typeof ConnectionResult.Type;
|
|
285
|
+
declare const RemoveDomainResult: Schema.TaggedStruct<"Removed", {
|
|
286
|
+
readonly connectionId: Schema.String;
|
|
287
|
+
readonly domain: Schema.String;
|
|
288
|
+
readonly remainingDomainCount: Schema.Int;
|
|
289
|
+
}>;
|
|
290
|
+
type RemoveDomainResult = typeof RemoveDomainResult.Type;
|
|
291
|
+
/** A presentation projection of a DNS requirement. */
|
|
292
|
+
declare const DnsRecord: Schema.Struct<{
|
|
293
|
+
readonly id: Schema.String;
|
|
294
|
+
readonly name: Schema.String;
|
|
295
|
+
readonly priority: Schema.optionalKey<Schema.Int>;
|
|
296
|
+
readonly type: Schema.String;
|
|
297
|
+
readonly value: Schema.String;
|
|
298
|
+
}>;
|
|
299
|
+
type DnsRecord = typeof DnsRecord.Type;
|
|
300
|
+
/** Projects DomainKit's operational record into its application transport representation. */
|
|
301
|
+
declare const fromDnsRecord: (id: string, record: DnsRecord$1) => DnsRecord;
|
|
302
|
+
declare const PlanOperation: Schema.TaggedUnion<{
|
|
303
|
+
readonly Conflict: Schema.TaggedStruct<"Conflict", {
|
|
304
|
+
readonly id: Schema.String;
|
|
305
|
+
readonly reason: Schema.String;
|
|
306
|
+
readonly record: Schema.Struct<{
|
|
307
|
+
readonly id: Schema.String;
|
|
308
|
+
readonly name: Schema.String;
|
|
309
|
+
readonly priority: Schema.optionalKey<Schema.Int>;
|
|
310
|
+
readonly type: Schema.String;
|
|
311
|
+
readonly value: Schema.String;
|
|
312
|
+
}>;
|
|
313
|
+
}>;
|
|
314
|
+
readonly Create: Schema.TaggedStruct<"Create", {
|
|
315
|
+
readonly id: Schema.String;
|
|
316
|
+
readonly record: Schema.Struct<{
|
|
317
|
+
readonly id: Schema.String;
|
|
318
|
+
readonly name: Schema.String;
|
|
319
|
+
readonly priority: Schema.optionalKey<Schema.Int>;
|
|
320
|
+
readonly type: Schema.String;
|
|
321
|
+
readonly value: Schema.String;
|
|
322
|
+
}>;
|
|
323
|
+
}>;
|
|
324
|
+
readonly Noop: Schema.TaggedStruct<"Noop", {
|
|
325
|
+
readonly id: Schema.String;
|
|
326
|
+
readonly record: Schema.Struct<{
|
|
327
|
+
readonly id: Schema.String;
|
|
328
|
+
readonly name: Schema.String;
|
|
329
|
+
readonly priority: Schema.optionalKey<Schema.Int>;
|
|
330
|
+
readonly type: Schema.String;
|
|
331
|
+
readonly value: Schema.String;
|
|
332
|
+
}>;
|
|
333
|
+
}>;
|
|
334
|
+
}>;
|
|
335
|
+
type PlanOperation = typeof PlanOperation.Type;
|
|
336
|
+
declare const ProvisioningPlan: Schema.TaggedStruct<"Plan", {
|
|
337
|
+
readonly digest: Schema.String;
|
|
338
|
+
readonly expiresAt: Schema.String;
|
|
339
|
+
readonly operations: Schema.$Array<Schema.TaggedUnion<{
|
|
340
|
+
readonly Conflict: Schema.TaggedStruct<"Conflict", {
|
|
341
|
+
readonly id: Schema.String;
|
|
342
|
+
readonly reason: Schema.String;
|
|
343
|
+
readonly record: Schema.Struct<{
|
|
344
|
+
readonly id: Schema.String;
|
|
345
|
+
readonly name: Schema.String;
|
|
346
|
+
readonly priority: Schema.optionalKey<Schema.Int>;
|
|
347
|
+
readonly type: Schema.String;
|
|
348
|
+
readonly value: Schema.String;
|
|
349
|
+
}>;
|
|
350
|
+
}>;
|
|
351
|
+
readonly Create: Schema.TaggedStruct<"Create", {
|
|
352
|
+
readonly id: Schema.String;
|
|
353
|
+
readonly record: Schema.Struct<{
|
|
354
|
+
readonly id: Schema.String;
|
|
355
|
+
readonly name: Schema.String;
|
|
356
|
+
readonly priority: Schema.optionalKey<Schema.Int>;
|
|
357
|
+
readonly type: Schema.String;
|
|
358
|
+
readonly value: Schema.String;
|
|
359
|
+
}>;
|
|
360
|
+
}>;
|
|
361
|
+
readonly Noop: Schema.TaggedStruct<"Noop", {
|
|
362
|
+
readonly id: Schema.String;
|
|
363
|
+
readonly record: Schema.Struct<{
|
|
364
|
+
readonly id: Schema.String;
|
|
365
|
+
readonly name: Schema.String;
|
|
366
|
+
readonly priority: Schema.optionalKey<Schema.Int>;
|
|
367
|
+
readonly type: Schema.String;
|
|
368
|
+
readonly value: Schema.String;
|
|
369
|
+
}>;
|
|
370
|
+
}>;
|
|
371
|
+
}>>;
|
|
372
|
+
}>;
|
|
373
|
+
type ProvisioningPlan = typeof ProvisioningPlan.Type;
|
|
374
|
+
declare const OperationResult: Schema.TaggedUnion<{
|
|
375
|
+
readonly Applied: Schema.TaggedStruct<"Applied", {
|
|
376
|
+
readonly operationId: Schema.String;
|
|
377
|
+
}>;
|
|
378
|
+
readonly Failed: Schema.TaggedStruct<"Failed", {
|
|
379
|
+
readonly message: Schema.String;
|
|
380
|
+
readonly operationId: Schema.String;
|
|
381
|
+
}>;
|
|
382
|
+
readonly Unchanged: Schema.TaggedStruct<"Unchanged", {
|
|
383
|
+
readonly operationId: Schema.String;
|
|
384
|
+
}>;
|
|
385
|
+
}>;
|
|
386
|
+
type OperationResult = typeof OperationResult.Type;
|
|
387
|
+
declare const ApplyResult: Schema.TaggedUnion<{
|
|
388
|
+
readonly Applied: Schema.TaggedStruct<"Applied", {
|
|
389
|
+
operationId: Schema.String;
|
|
390
|
+
receiptId: Schema.String;
|
|
391
|
+
results: Schema.$Array<Schema.TaggedUnion<{
|
|
392
|
+
readonly Applied: Schema.TaggedStruct<"Applied", {
|
|
393
|
+
readonly operationId: Schema.String;
|
|
394
|
+
}>;
|
|
395
|
+
readonly Failed: Schema.TaggedStruct<"Failed", {
|
|
396
|
+
readonly message: Schema.String;
|
|
397
|
+
readonly operationId: Schema.String;
|
|
398
|
+
}>;
|
|
399
|
+
readonly Unchanged: Schema.TaggedStruct<"Unchanged", {
|
|
400
|
+
readonly operationId: Schema.String;
|
|
401
|
+
}>;
|
|
402
|
+
}>>;
|
|
403
|
+
}>;
|
|
404
|
+
readonly Partial: Schema.TaggedStruct<"Partial", {
|
|
405
|
+
operationId: Schema.String;
|
|
406
|
+
receiptId: Schema.String;
|
|
407
|
+
results: Schema.$Array<Schema.TaggedUnion<{
|
|
408
|
+
readonly Applied: Schema.TaggedStruct<"Applied", {
|
|
409
|
+
readonly operationId: Schema.String;
|
|
410
|
+
}>;
|
|
411
|
+
readonly Failed: Schema.TaggedStruct<"Failed", {
|
|
412
|
+
readonly message: Schema.String;
|
|
413
|
+
readonly operationId: Schema.String;
|
|
414
|
+
}>;
|
|
415
|
+
readonly Unchanged: Schema.TaggedStruct<"Unchanged", {
|
|
416
|
+
readonly operationId: Schema.String;
|
|
417
|
+
}>;
|
|
418
|
+
}>>;
|
|
419
|
+
}>;
|
|
420
|
+
readonly Stale: Schema.TaggedStruct<"Stale", {
|
|
421
|
+
readonly message: Schema.String;
|
|
422
|
+
}>;
|
|
423
|
+
}>;
|
|
424
|
+
type ApplyResult = typeof ApplyResult.Type;
|
|
425
|
+
declare const ObservationEvidence: Schema.TaggedUnion<{
|
|
426
|
+
readonly Found: Schema.TaggedStruct<"Found", {
|
|
427
|
+
readonly recordId: Schema.String;
|
|
428
|
+
}>;
|
|
429
|
+
readonly Mismatch: Schema.TaggedStruct<"Mismatch", {
|
|
430
|
+
readonly message: Schema.String;
|
|
431
|
+
readonly recordId: Schema.String;
|
|
432
|
+
}>;
|
|
433
|
+
readonly Missing: Schema.TaggedStruct<"Missing", {
|
|
434
|
+
readonly recordId: Schema.String;
|
|
435
|
+
}>;
|
|
436
|
+
readonly Unavailable: Schema.TaggedStruct<"Unavailable", {
|
|
437
|
+
readonly message: Schema.String;
|
|
438
|
+
readonly recordId: Schema.String;
|
|
439
|
+
}>;
|
|
440
|
+
}>;
|
|
441
|
+
type ObservationEvidence = typeof ObservationEvidence.Type;
|
|
442
|
+
declare const Observation: Schema.TaggedStruct<"Observation", {
|
|
443
|
+
readonly provider: Schema.$Array<Schema.TaggedUnion<{
|
|
444
|
+
readonly Found: Schema.TaggedStruct<"Found", {
|
|
445
|
+
readonly recordId: Schema.String;
|
|
446
|
+
}>;
|
|
447
|
+
readonly Mismatch: Schema.TaggedStruct<"Mismatch", {
|
|
448
|
+
readonly message: Schema.String;
|
|
449
|
+
readonly recordId: Schema.String;
|
|
450
|
+
}>;
|
|
451
|
+
readonly Missing: Schema.TaggedStruct<"Missing", {
|
|
452
|
+
readonly recordId: Schema.String;
|
|
453
|
+
}>;
|
|
454
|
+
readonly Unavailable: Schema.TaggedStruct<"Unavailable", {
|
|
455
|
+
readonly message: Schema.String;
|
|
456
|
+
readonly recordId: Schema.String;
|
|
457
|
+
}>;
|
|
458
|
+
}>>;
|
|
459
|
+
readonly publicDns: Schema.$Array<Schema.TaggedUnion<{
|
|
460
|
+
readonly Found: Schema.TaggedStruct<"Found", {
|
|
461
|
+
readonly recordId: Schema.String;
|
|
462
|
+
}>;
|
|
463
|
+
readonly Mismatch: Schema.TaggedStruct<"Mismatch", {
|
|
464
|
+
readonly message: Schema.String;
|
|
465
|
+
readonly recordId: Schema.String;
|
|
466
|
+
}>;
|
|
467
|
+
readonly Missing: Schema.TaggedStruct<"Missing", {
|
|
468
|
+
readonly recordId: Schema.String;
|
|
469
|
+
}>;
|
|
470
|
+
readonly Unavailable: Schema.TaggedStruct<"Unavailable", {
|
|
471
|
+
readonly message: Schema.String;
|
|
472
|
+
readonly recordId: Schema.String;
|
|
473
|
+
}>;
|
|
474
|
+
}>>;
|
|
475
|
+
}>;
|
|
476
|
+
type Observation = typeof Observation.Type;
|
|
477
|
+
declare const CleanupOperation: Schema.TaggedUnion<{
|
|
478
|
+
readonly AlreadyAbsent: Schema.TaggedStruct<"AlreadyAbsent", {
|
|
479
|
+
readonly id: Schema.String;
|
|
480
|
+
readonly record: Schema.Struct<{
|
|
481
|
+
readonly id: Schema.String;
|
|
482
|
+
readonly name: Schema.String;
|
|
483
|
+
readonly priority: Schema.optionalKey<Schema.Int>;
|
|
484
|
+
readonly type: Schema.String;
|
|
485
|
+
readonly value: Schema.String;
|
|
486
|
+
}>;
|
|
487
|
+
}>;
|
|
488
|
+
readonly Blocked: Schema.TaggedStruct<"Blocked", {
|
|
489
|
+
readonly id: Schema.String;
|
|
490
|
+
readonly reason: Schema.String;
|
|
491
|
+
readonly record: Schema.Struct<{
|
|
492
|
+
readonly id: Schema.String;
|
|
493
|
+
readonly name: Schema.String;
|
|
494
|
+
readonly priority: Schema.optionalKey<Schema.Int>;
|
|
495
|
+
readonly type: Schema.String;
|
|
496
|
+
readonly value: Schema.String;
|
|
497
|
+
}>;
|
|
498
|
+
}>;
|
|
499
|
+
readonly Delete: Schema.TaggedStruct<"Delete", {
|
|
500
|
+
readonly id: Schema.String;
|
|
501
|
+
readonly record: Schema.Struct<{
|
|
502
|
+
readonly id: Schema.String;
|
|
503
|
+
readonly name: Schema.String;
|
|
504
|
+
readonly priority: Schema.optionalKey<Schema.Int>;
|
|
505
|
+
readonly type: Schema.String;
|
|
506
|
+
readonly value: Schema.String;
|
|
507
|
+
}>;
|
|
508
|
+
}>;
|
|
509
|
+
}>;
|
|
510
|
+
type CleanupOperation = typeof CleanupOperation.Type;
|
|
511
|
+
declare const CleanupPlan: Schema.TaggedStruct<"CleanupPlan", {
|
|
512
|
+
readonly digest: Schema.String;
|
|
513
|
+
readonly expiresAt: Schema.String;
|
|
514
|
+
readonly operations: Schema.$Array<Schema.TaggedUnion<{
|
|
515
|
+
readonly AlreadyAbsent: Schema.TaggedStruct<"AlreadyAbsent", {
|
|
516
|
+
readonly id: Schema.String;
|
|
517
|
+
readonly record: Schema.Struct<{
|
|
518
|
+
readonly id: Schema.String;
|
|
519
|
+
readonly name: Schema.String;
|
|
520
|
+
readonly priority: Schema.optionalKey<Schema.Int>;
|
|
521
|
+
readonly type: Schema.String;
|
|
522
|
+
readonly value: Schema.String;
|
|
523
|
+
}>;
|
|
524
|
+
}>;
|
|
525
|
+
readonly Blocked: Schema.TaggedStruct<"Blocked", {
|
|
526
|
+
readonly id: Schema.String;
|
|
527
|
+
readonly reason: Schema.String;
|
|
528
|
+
readonly record: Schema.Struct<{
|
|
529
|
+
readonly id: Schema.String;
|
|
530
|
+
readonly name: Schema.String;
|
|
531
|
+
readonly priority: Schema.optionalKey<Schema.Int>;
|
|
532
|
+
readonly type: Schema.String;
|
|
533
|
+
readonly value: Schema.String;
|
|
534
|
+
}>;
|
|
535
|
+
}>;
|
|
536
|
+
readonly Delete: Schema.TaggedStruct<"Delete", {
|
|
537
|
+
readonly id: Schema.String;
|
|
538
|
+
readonly record: Schema.Struct<{
|
|
539
|
+
readonly id: Schema.String;
|
|
540
|
+
readonly name: Schema.String;
|
|
541
|
+
readonly priority: Schema.optionalKey<Schema.Int>;
|
|
542
|
+
readonly type: Schema.String;
|
|
543
|
+
readonly value: Schema.String;
|
|
544
|
+
}>;
|
|
545
|
+
}>;
|
|
546
|
+
}>>;
|
|
547
|
+
}>;
|
|
548
|
+
type CleanupPlan = typeof CleanupPlan.Type;
|
|
549
|
+
declare const CleanupResult: Schema.TaggedUnion<{
|
|
550
|
+
readonly Cleaned: Schema.TaggedStruct<"Cleaned", {
|
|
551
|
+
operationId: Schema.String;
|
|
552
|
+
results: Schema.$Array<Schema.TaggedUnion<{
|
|
553
|
+
readonly Applied: Schema.TaggedStruct<"Applied", {
|
|
554
|
+
readonly operationId: Schema.String;
|
|
555
|
+
}>;
|
|
556
|
+
readonly Failed: Schema.TaggedStruct<"Failed", {
|
|
557
|
+
readonly message: Schema.String;
|
|
558
|
+
readonly operationId: Schema.String;
|
|
559
|
+
}>;
|
|
560
|
+
readonly Unchanged: Schema.TaggedStruct<"Unchanged", {
|
|
561
|
+
readonly operationId: Schema.String;
|
|
562
|
+
}>;
|
|
563
|
+
}>>;
|
|
564
|
+
}>;
|
|
565
|
+
readonly Partial: Schema.TaggedStruct<"Partial", {
|
|
566
|
+
operationId: Schema.String;
|
|
567
|
+
results: Schema.$Array<Schema.TaggedUnion<{
|
|
568
|
+
readonly Applied: Schema.TaggedStruct<"Applied", {
|
|
569
|
+
readonly operationId: Schema.String;
|
|
570
|
+
}>;
|
|
571
|
+
readonly Failed: Schema.TaggedStruct<"Failed", {
|
|
572
|
+
readonly message: Schema.String;
|
|
573
|
+
readonly operationId: Schema.String;
|
|
574
|
+
}>;
|
|
575
|
+
readonly Unchanged: Schema.TaggedStruct<"Unchanged", {
|
|
576
|
+
readonly operationId: Schema.String;
|
|
577
|
+
}>;
|
|
578
|
+
}>>;
|
|
579
|
+
}>;
|
|
580
|
+
readonly Stale: Schema.TaggedStruct<"Stale", {
|
|
581
|
+
readonly message: Schema.String;
|
|
582
|
+
}>;
|
|
583
|
+
}>;
|
|
584
|
+
type CleanupResult = typeof CleanupResult.Type;
|
|
585
|
+
interface ConnectInput {
|
|
586
|
+
readonly domain: string;
|
|
587
|
+
readonly method: Method;
|
|
588
|
+
readonly providerId: string;
|
|
589
|
+
}
|
|
590
|
+
interface InspectInput {
|
|
591
|
+
readonly domain: string;
|
|
592
|
+
}
|
|
593
|
+
interface ReuseInput {
|
|
594
|
+
readonly connectionId: string;
|
|
595
|
+
readonly domain: string;
|
|
596
|
+
}
|
|
597
|
+
interface RemoveDomainInput extends ReuseInput {
|
|
598
|
+
readonly preserveDns: true;
|
|
599
|
+
}
|
|
600
|
+
interface ProvisioningPlanInput extends ReuseInput {
|
|
601
|
+
readonly records: ReadonlyArray<DnsRecord>;
|
|
602
|
+
}
|
|
603
|
+
interface ProvisioningApplyInput extends ReuseInput {
|
|
604
|
+
readonly planDigest: string;
|
|
605
|
+
}
|
|
606
|
+
interface ObserveInput {
|
|
607
|
+
readonly connectionId?: string;
|
|
608
|
+
readonly domain: string;
|
|
609
|
+
readonly records: ReadonlyArray<DnsRecord>;
|
|
610
|
+
readonly sources: {
|
|
611
|
+
readonly provider: boolean;
|
|
612
|
+
readonly publicDns: boolean;
|
|
613
|
+
};
|
|
614
|
+
}
|
|
615
|
+
interface CleanupPlanInput extends ReuseInput {
|
|
616
|
+
readonly receiptId: string;
|
|
206
617
|
}
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
618
|
+
interface CleanupApplyInput extends CleanupPlanInput {
|
|
619
|
+
readonly planDigest: string;
|
|
620
|
+
}
|
|
621
|
+
/** Application-facing DNS connection and provisioning capability. */
|
|
622
|
+
interface Interface {
|
|
623
|
+
readonly cleanup: {
|
|
624
|
+
readonly apply: (input: CleanupApplyInput) => Effect.Effect<CleanupResult, Failure>;
|
|
625
|
+
readonly plan: (input: CleanupPlanInput) => Effect.Effect<CleanupPlan, Failure>;
|
|
626
|
+
};
|
|
627
|
+
readonly connection: {
|
|
628
|
+
readonly connect: (input: ConnectInput) => Effect.Effect<ConnectionResult, Failure>;
|
|
629
|
+
readonly inspect: (input: InspectInput) => Effect.Effect<ConnectionSnapshot, Failure>;
|
|
630
|
+
readonly removeDomain: (input: RemoveDomainInput) => Effect.Effect<RemoveDomainResult, Failure>;
|
|
631
|
+
readonly reuse: (input: ReuseInput) => Effect.Effect<Connected, Failure>;
|
|
632
|
+
};
|
|
633
|
+
readonly provisioning: {
|
|
634
|
+
readonly apply: (input: ProvisioningApplyInput) => Effect.Effect<ApplyResult, Failure>;
|
|
635
|
+
readonly plan: (input: ProvisioningPlanInput) => Effect.Effect<ProvisioningPlan, Failure>;
|
|
636
|
+
};
|
|
637
|
+
readonly verification: {
|
|
638
|
+
readonly observe: (input: ObserveInput) => Effect.Effect<Observation, Failure>;
|
|
639
|
+
};
|
|
640
|
+
}
|
|
641
|
+
declare const Service_base: Context.ServiceClass<Service, "@domainkit/Transport", Interface>;
|
|
642
|
+
declare class Service extends Service_base {}
|
|
643
|
+
/** Promise-shaped host seam for foreign runtimes and framework actions. */
|
|
644
|
+
interface AsyncInterface {
|
|
645
|
+
readonly cleanup: {
|
|
646
|
+
readonly apply: (input: CleanupApplyInput) => Promise<CleanupResult>;
|
|
647
|
+
readonly plan: (input: CleanupPlanInput) => Promise<CleanupPlan>;
|
|
648
|
+
};
|
|
649
|
+
readonly connection: {
|
|
650
|
+
readonly connect: (input: ConnectInput) => Promise<ConnectionResult>;
|
|
651
|
+
readonly inspect: (input: InspectInput) => Promise<ConnectionSnapshot>;
|
|
652
|
+
readonly removeDomain: (input: RemoveDomainInput) => Promise<RemoveDomainResult>;
|
|
653
|
+
readonly reuse: (input: ReuseInput) => Promise<Connected>;
|
|
654
|
+
};
|
|
655
|
+
readonly provisioning: {
|
|
656
|
+
readonly apply: (input: ProvisioningApplyInput) => Promise<ApplyResult>;
|
|
657
|
+
readonly plan: (input: ProvisioningPlanInput) => Promise<ProvisioningPlan>;
|
|
658
|
+
};
|
|
659
|
+
readonly verification: {
|
|
660
|
+
readonly observe: (input: ObserveInput) => Promise<Observation>;
|
|
661
|
+
};
|
|
210
662
|
}
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
declare namespace doh_d_exports {
|
|
214
|
-
export { Options$1 as Options, make$1 as make };
|
|
663
|
+
interface AsyncOptions {
|
|
664
|
+
readonly onError?: (operation: string, cause: unknown) => Failure;
|
|
215
665
|
}
|
|
216
|
-
|
|
217
|
-
declare
|
|
218
|
-
declare
|
|
219
|
-
|
|
666
|
+
/** Converts a Promise-shaped host implementation into the canonical Effect service. */
|
|
667
|
+
declare const fromAsync: (transport: AsyncInterface, options?: AsyncOptions) => Interface;
|
|
668
|
+
declare const layerFromAsync: (transport: AsyncInterface, options?: AsyncOptions) => Layer.Layer<Service>;
|
|
669
|
+
/** Converts an environment-free Effect service into its Promise-shaped host seam. */
|
|
670
|
+
declare const toAsync: (transport: Interface) => AsyncInterface;
|
|
671
|
+
declare namespace dns_data_d_exports {
|
|
672
|
+
export { parse };
|
|
220
673
|
}
|
|
221
|
-
type
|
|
222
|
-
declare function make(options?: Options): AsyncInterface$1;
|
|
674
|
+
declare function parse(type: Type, input: unknown): string;
|
|
223
675
|
//#endregion
|
|
224
676
|
//#region src/index.d.ts
|
|
225
677
|
/** The current package version from the package manifest. */
|
|
226
678
|
declare const VERSION: string;
|
|
227
679
|
//#endregion
|
|
228
|
-
export {
|
|
680
|
+
export { lifecycle_repository_d_exports as AuthorizationLifecycle, 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, manifest_d_exports as ProviderAuth, authorization_d_exports as ProviderAuthorization, provider_context_d_exports as ProviderContext, selection_d_exports as ProviderDiscovery, 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 };
|
|
229
681
|
//# sourceMappingURL=index.d.mts.map
|