domainkit 0.2.2 → 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.
Files changed (58) hide show
  1. package/README.md +26 -26
  2. package/dist/index.d.mts +639 -187
  3. package/dist/index.mjs +301 -300
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/promise.d.mts +464 -0
  6. package/dist/promise.mjs +636 -0
  7. package/dist/promise.mjs.map +1 -0
  8. package/dist/{resolver-CxE-VDw4.mjs → resolver-CvK7JoJM.mjs} +401 -54
  9. package/dist/resolver-CvK7JoJM.mjs.map +1 -0
  10. package/dist/{resolver-Dc0hwV-J.d.mts → resolver-uqe1h5Vz.d.mts} +1513 -25
  11. package/dist/testing.d.mts +4 -5
  12. package/dist/testing.mjs +17 -3
  13. package/dist/testing.mjs.map +1 -1
  14. package/dist/verify-B00c81-n.mjs +2420 -0
  15. package/dist/verify-B00c81-n.mjs.map +1 -0
  16. package/dist/{verify-Dls29YC-.d.mts → verify-CkgVrwyl.d.mts} +318 -21
  17. package/package.json +6 -30
  18. package/dist/auth-BR-19zj-.mjs +0 -738
  19. package/dist/auth-BR-19zj-.mjs.map +0 -1
  20. package/dist/auth-g-waCHcz.mjs +0 -671
  21. package/dist/auth-g-waCHcz.mjs.map +0 -1
  22. package/dist/authorization-OeaSR47S.mjs +0 -284
  23. package/dist/authorization-OeaSR47S.mjs.map +0 -1
  24. package/dist/canonical-json-CpvqGMcr.mjs +0 -57
  25. package/dist/canonical-json-CpvqGMcr.mjs.map +0 -1
  26. package/dist/cloudflare-BrZPU9li.d.mts +0 -32
  27. package/dist/cloudflare-CGmasR8A.mjs +0 -69
  28. package/dist/cloudflare-CGmasR8A.mjs.map +0 -1
  29. package/dist/cloudflare.d.mts +0 -3
  30. package/dist/cloudflare.mjs +0 -2
  31. package/dist/connection-BfkloPZy.d.mts +0 -186
  32. package/dist/connection-BwtOwpH6.mjs +0 -195
  33. package/dist/connection-BwtOwpH6.mjs.map +0 -1
  34. package/dist/connection-CjNQe_E-.mjs +0 -58
  35. package/dist/connection-CjNQe_E-.mjs.map +0 -1
  36. package/dist/connection-api-DNuEZ_jR.d.mts +0 -7
  37. package/dist/dns-record-BLeqo56C.mjs +0 -289
  38. package/dist/dns-record-BLeqo56C.mjs.map +0 -1
  39. package/dist/effect-cloudflare.d.mts +0 -2
  40. package/dist/effect-cloudflare.mjs +0 -2
  41. package/dist/effect-vercel.d.mts +0 -2
  42. package/dist/effect-vercel.mjs +0 -2
  43. package/dist/effect.d.mts +0 -36
  44. package/dist/effect.mjs +0 -51
  45. package/dist/effect.mjs.map +0 -1
  46. package/dist/index-BHWRTThN.d.mts +0 -159
  47. package/dist/index-D3PVknwE.d.mts +0 -145
  48. package/dist/resolver-CxE-VDw4.mjs.map +0 -1
  49. package/dist/vercel-BsNDu4Np.d.mts +0 -31
  50. package/dist/vercel-CfoJaaCu.mjs +0 -60
  51. package/dist/vercel-CfoJaaCu.mjs.map +0 -1
  52. package/dist/vercel.d.mts +0 -3
  53. package/dist/vercel.mjs +0 -2
  54. package/dist/verify-BKbvq7IN.mjs +0 -642
  55. package/dist/verify-BKbvq7IN.mjs.map +0 -1
  56. package/dist/zone-discovery-BPnH3sLU.d.mts +0 -1397
  57. package/dist/zones-DKHTpX9C.mjs +0 -19
  58. package/dist/zones-DKHTpX9C.mjs.map +0 -1
@@ -1,1397 +0,0 @@
1
- import { Context, Crypto, Data, Effect, Layer, Schema } from "effect";
2
- import * as oauth from "oauth4webapi";
3
- declare namespace invalid_input_d_exports {
4
- export { Error$3 as Error };
5
- }
6
- declare const Error_base$3: Schema.Class<Error$3, Schema.TaggedStruct<"InvalidInputError", {
7
- readonly message: Schema.String;
8
- }>, import("effect/Cause").YieldableError>;
9
- declare class Error$3 extends Error_base$3 {}
10
- declare namespace domain_name_d_exports {
11
- export { DomainName, Schema$5 as Schema, decode$5 as decode, parse$1 as parse };
12
- }
13
- declare const Type$1: Schema.brand<Schema.String, "DomainName">;
14
- /** A lower-case, fully qualified DNS name without a trailing dot. */
15
- type DomainName = typeof Type$1.Type;
16
- /** Decodes user and wire strings into canonical domain names. */
17
- declare const Schema$5: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
18
- declare const decode$5: (input: unknown) => Effect.Effect<string & import("effect/Brand").Brand<"DomainName">, Error$3, never>;
19
- declare function parse$1(input: unknown): DomainName;
20
- declare namespace dns_record_d_exports {
21
- export { A, Aaaa, Caa, Cname, DnsRecord, Encoded, Mx, Ns, Observed, Opaque, RequirementMetadata, Schema$4 as Schema, Srv, Txt, Type, data, decode$4 as decode, equals, parse };
22
- }
23
- declare const Type: Schema.Literals<readonly ["A", "AAAA", "CNAME", "TXT", "MX", "CAA", "NS", "SRV"]>;
24
- type Type = typeof Type.Type;
25
- declare const RequirementMetadata: Schema.Struct<{
26
- readonly ownership: Schema.String;
27
- readonly provenance: Schema.String;
28
- readonly purpose: Schema.String;
29
- }>;
30
- interface RequirementMetadata extends Schema.Schema.Type<typeof RequirementMetadata> {}
31
- declare const Schema$4: Schema.TaggedUnion<{
32
- readonly A: Schema.TaggedStruct<"A", {
33
- readonly metadata: Schema.Struct<{
34
- readonly ownership: Schema.String;
35
- readonly provenance: Schema.String;
36
- readonly purpose: Schema.String;
37
- }>;
38
- readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
39
- readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
40
- readonly ttl: Schema.NullOr<Schema.Int>;
41
- readonly address: Schema.String;
42
- }>;
43
- readonly AAAA: Schema.TaggedStruct<"AAAA", {
44
- readonly metadata: Schema.Struct<{
45
- readonly ownership: Schema.String;
46
- readonly provenance: Schema.String;
47
- readonly purpose: Schema.String;
48
- }>;
49
- readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
50
- readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
51
- readonly ttl: Schema.NullOr<Schema.Int>;
52
- readonly address: Schema.String;
53
- }>;
54
- readonly CAA: Schema.TaggedStruct<"CAA", {
55
- readonly metadata: Schema.Struct<{
56
- readonly ownership: Schema.String;
57
- readonly provenance: Schema.String;
58
- readonly purpose: Schema.String;
59
- }>;
60
- readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
61
- readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
62
- readonly ttl: Schema.NullOr<Schema.Int>;
63
- readonly flags: Schema.Int;
64
- readonly tag: Schema.Literals<readonly ["issue", "issuewild", "iodef"]>;
65
- readonly value: Schema.String;
66
- }>;
67
- readonly CNAME: Schema.TaggedStruct<"CNAME", {
68
- readonly metadata: Schema.Struct<{
69
- readonly ownership: Schema.String;
70
- readonly provenance: Schema.String;
71
- readonly purpose: Schema.String;
72
- }>;
73
- readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
74
- readonly ttl: Schema.NullOr<Schema.Int>;
75
- readonly policy: Schema.Literal<"exclusive">;
76
- readonly target: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
77
- }>;
78
- readonly MX: Schema.TaggedStruct<"MX", {
79
- readonly metadata: Schema.Struct<{
80
- readonly ownership: Schema.String;
81
- readonly provenance: Schema.String;
82
- readonly purpose: Schema.String;
83
- }>;
84
- readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
85
- readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
86
- readonly ttl: Schema.NullOr<Schema.Int>;
87
- readonly exchange: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
88
- readonly priority: Schema.Int;
89
- }>;
90
- readonly NS: Schema.TaggedStruct<"NS", {
91
- readonly metadata: Schema.Struct<{
92
- readonly ownership: Schema.String;
93
- readonly provenance: Schema.String;
94
- readonly purpose: Schema.String;
95
- }>;
96
- readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
97
- readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
98
- readonly ttl: Schema.NullOr<Schema.Int>;
99
- readonly target: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
100
- }>;
101
- readonly SRV: Schema.TaggedStruct<"SRV", {
102
- readonly metadata: Schema.Struct<{
103
- readonly ownership: Schema.String;
104
- readonly provenance: Schema.String;
105
- readonly purpose: Schema.String;
106
- }>;
107
- readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
108
- readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
109
- readonly ttl: Schema.NullOr<Schema.Int>;
110
- readonly port: Schema.Int;
111
- readonly priority: Schema.Int;
112
- readonly target: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
113
- readonly weight: Schema.Int;
114
- }>;
115
- readonly TXT: Schema.TaggedStruct<"TXT", {
116
- readonly metadata: Schema.Struct<{
117
- readonly ownership: Schema.String;
118
- readonly provenance: Schema.String;
119
- readonly purpose: Schema.String;
120
- }>;
121
- readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
122
- readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
123
- readonly ttl: Schema.NullOr<Schema.Int>;
124
- readonly value: Schema.String;
125
- }>;
126
- }>;
127
- declare const A: Schema.TaggedStruct<"A", {
128
- readonly metadata: Schema.Struct<{
129
- readonly ownership: Schema.String;
130
- readonly provenance: Schema.String;
131
- readonly purpose: Schema.String;
132
- }>;
133
- readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
134
- readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
135
- readonly ttl: Schema.NullOr<Schema.Int>;
136
- readonly address: Schema.String;
137
- }>, Aaaa: Schema.TaggedStruct<"AAAA", {
138
- readonly metadata: Schema.Struct<{
139
- readonly ownership: Schema.String;
140
- readonly provenance: Schema.String;
141
- readonly purpose: Schema.String;
142
- }>;
143
- readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
144
- readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
145
- readonly ttl: Schema.NullOr<Schema.Int>;
146
- readonly address: Schema.String;
147
- }>, Caa: Schema.TaggedStruct<"CAA", {
148
- readonly metadata: Schema.Struct<{
149
- readonly ownership: Schema.String;
150
- readonly provenance: Schema.String;
151
- readonly purpose: Schema.String;
152
- }>;
153
- readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
154
- readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
155
- readonly ttl: Schema.NullOr<Schema.Int>;
156
- readonly flags: Schema.Int;
157
- readonly tag: Schema.Literals<readonly ["issue", "issuewild", "iodef"]>;
158
- readonly value: Schema.String;
159
- }>, Cname: Schema.TaggedStruct<"CNAME", {
160
- readonly metadata: Schema.Struct<{
161
- readonly ownership: Schema.String;
162
- readonly provenance: Schema.String;
163
- readonly purpose: Schema.String;
164
- }>;
165
- readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
166
- readonly ttl: Schema.NullOr<Schema.Int>;
167
- readonly policy: Schema.Literal<"exclusive">;
168
- readonly target: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
169
- }>, Mx: Schema.TaggedStruct<"MX", {
170
- readonly metadata: Schema.Struct<{
171
- readonly ownership: Schema.String;
172
- readonly provenance: Schema.String;
173
- readonly purpose: Schema.String;
174
- }>;
175
- readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
176
- readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
177
- readonly ttl: Schema.NullOr<Schema.Int>;
178
- readonly exchange: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
179
- readonly priority: Schema.Int;
180
- }>, Ns: Schema.TaggedStruct<"NS", {
181
- readonly metadata: Schema.Struct<{
182
- readonly ownership: Schema.String;
183
- readonly provenance: Schema.String;
184
- readonly purpose: Schema.String;
185
- }>;
186
- readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
187
- readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
188
- readonly ttl: Schema.NullOr<Schema.Int>;
189
- readonly target: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
190
- }>, Srv: Schema.TaggedStruct<"SRV", {
191
- readonly metadata: Schema.Struct<{
192
- readonly ownership: Schema.String;
193
- readonly provenance: Schema.String;
194
- readonly purpose: Schema.String;
195
- }>;
196
- readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
197
- readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
198
- readonly ttl: Schema.NullOr<Schema.Int>;
199
- readonly port: Schema.Int;
200
- readonly priority: Schema.Int;
201
- readonly target: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
202
- readonly weight: Schema.Int;
203
- }>, Txt: Schema.TaggedStruct<"TXT", {
204
- readonly metadata: Schema.Struct<{
205
- readonly ownership: Schema.String;
206
- readonly provenance: Schema.String;
207
- readonly purpose: Schema.String;
208
- }>;
209
- readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
210
- readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
211
- readonly ttl: Schema.NullOr<Schema.Int>;
212
- readonly value: Schema.String;
213
- }>;
214
- type DnsRecord = typeof Schema$4.Type;
215
- type Encoded = typeof Schema$4.Encoded;
216
- /** Provider state that DomainKit cannot create but must retain for safe reconciliation. */
217
- declare const Opaque: Schema.Struct<{
218
- readonly _tag: Schema.Literal<"Opaque">;
219
- readonly name: Schema.String;
220
- readonly providerRecordId: Schema.NullOr<Schema.String>;
221
- readonly providerType: Schema.String;
222
- }>;
223
- interface Opaque extends Schema.Schema.Type<typeof Opaque> {}
224
- /** Any DNS record observed through a provider, including non-portable record types. */
225
- declare const Observed: Schema.Union<readonly [Schema.TaggedUnion<{
226
- readonly A: Schema.TaggedStruct<"A", {
227
- readonly metadata: Schema.Struct<{
228
- readonly ownership: Schema.String;
229
- readonly provenance: Schema.String;
230
- readonly purpose: Schema.String;
231
- }>;
232
- readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
233
- readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
234
- readonly ttl: Schema.NullOr<Schema.Int>;
235
- readonly address: Schema.String;
236
- }>;
237
- readonly AAAA: Schema.TaggedStruct<"AAAA", {
238
- readonly metadata: Schema.Struct<{
239
- readonly ownership: Schema.String;
240
- readonly provenance: Schema.String;
241
- readonly purpose: Schema.String;
242
- }>;
243
- readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
244
- readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
245
- readonly ttl: Schema.NullOr<Schema.Int>;
246
- readonly address: Schema.String;
247
- }>;
248
- readonly CAA: Schema.TaggedStruct<"CAA", {
249
- readonly metadata: Schema.Struct<{
250
- readonly ownership: Schema.String;
251
- readonly provenance: Schema.String;
252
- readonly purpose: Schema.String;
253
- }>;
254
- readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
255
- readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
256
- readonly ttl: Schema.NullOr<Schema.Int>;
257
- readonly flags: Schema.Int;
258
- readonly tag: Schema.Literals<readonly ["issue", "issuewild", "iodef"]>;
259
- readonly value: Schema.String;
260
- }>;
261
- readonly CNAME: Schema.TaggedStruct<"CNAME", {
262
- readonly metadata: Schema.Struct<{
263
- readonly ownership: Schema.String;
264
- readonly provenance: Schema.String;
265
- readonly purpose: Schema.String;
266
- }>;
267
- readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
268
- readonly ttl: Schema.NullOr<Schema.Int>;
269
- readonly policy: Schema.Literal<"exclusive">;
270
- readonly target: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
271
- }>;
272
- readonly MX: Schema.TaggedStruct<"MX", {
273
- readonly metadata: Schema.Struct<{
274
- readonly ownership: Schema.String;
275
- readonly provenance: Schema.String;
276
- readonly purpose: Schema.String;
277
- }>;
278
- readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
279
- readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
280
- readonly ttl: Schema.NullOr<Schema.Int>;
281
- readonly exchange: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
282
- readonly priority: Schema.Int;
283
- }>;
284
- readonly NS: Schema.TaggedStruct<"NS", {
285
- readonly metadata: Schema.Struct<{
286
- readonly ownership: Schema.String;
287
- readonly provenance: Schema.String;
288
- readonly purpose: Schema.String;
289
- }>;
290
- readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
291
- readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
292
- readonly ttl: Schema.NullOr<Schema.Int>;
293
- readonly target: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
294
- }>;
295
- readonly SRV: Schema.TaggedStruct<"SRV", {
296
- readonly metadata: Schema.Struct<{
297
- readonly ownership: Schema.String;
298
- readonly provenance: Schema.String;
299
- readonly purpose: Schema.String;
300
- }>;
301
- readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
302
- readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
303
- readonly ttl: Schema.NullOr<Schema.Int>;
304
- readonly port: Schema.Int;
305
- readonly priority: Schema.Int;
306
- readonly target: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
307
- readonly weight: Schema.Int;
308
- }>;
309
- readonly TXT: Schema.TaggedStruct<"TXT", {
310
- readonly metadata: Schema.Struct<{
311
- readonly ownership: Schema.String;
312
- readonly provenance: Schema.String;
313
- readonly purpose: Schema.String;
314
- }>;
315
- readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
316
- readonly policy: Schema.Literals<readonly ["exclusive", "append"]>;
317
- readonly ttl: Schema.NullOr<Schema.Int>;
318
- readonly value: Schema.String;
319
- }>;
320
- }>, Schema.Struct<{
321
- readonly _tag: Schema.Literal<"Opaque">;
322
- readonly name: Schema.String;
323
- readonly providerRecordId: Schema.NullOr<Schema.String>;
324
- readonly providerType: Schema.String;
325
- }>]>;
326
- type Observed = typeof Observed.Type;
327
- declare const decode$4: (input: unknown) => Effect.Effect<{
328
- readonly _tag: "A";
329
- readonly metadata: {
330
- readonly ownership: string;
331
- readonly provenance: string;
332
- readonly purpose: string;
333
- };
334
- readonly name: string & import("effect/Brand").Brand<"DomainName">;
335
- readonly policy: "append" | "exclusive";
336
- readonly ttl: number | null;
337
- readonly address: string;
338
- } | {
339
- readonly _tag: "AAAA";
340
- readonly metadata: {
341
- readonly ownership: string;
342
- readonly provenance: string;
343
- readonly purpose: string;
344
- };
345
- readonly name: string & import("effect/Brand").Brand<"DomainName">;
346
- readonly policy: "append" | "exclusive";
347
- readonly ttl: number | null;
348
- readonly address: string;
349
- } | {
350
- readonly _tag: "CAA";
351
- readonly metadata: {
352
- readonly ownership: string;
353
- readonly provenance: string;
354
- readonly purpose: string;
355
- };
356
- readonly name: string & import("effect/Brand").Brand<"DomainName">;
357
- readonly policy: "append" | "exclusive";
358
- readonly ttl: number | null;
359
- readonly flags: number;
360
- readonly tag: "iodef" | "issue" | "issuewild";
361
- readonly value: string;
362
- } | {
363
- readonly _tag: "CNAME";
364
- readonly metadata: {
365
- readonly ownership: string;
366
- readonly provenance: string;
367
- readonly purpose: string;
368
- };
369
- readonly name: string & import("effect/Brand").Brand<"DomainName">;
370
- readonly ttl: number | null;
371
- readonly policy: "exclusive";
372
- readonly target: string & import("effect/Brand").Brand<"DomainName">;
373
- } | {
374
- readonly _tag: "MX";
375
- readonly metadata: {
376
- readonly ownership: string;
377
- readonly provenance: string;
378
- readonly purpose: string;
379
- };
380
- readonly name: string & import("effect/Brand").Brand<"DomainName">;
381
- readonly policy: "append" | "exclusive";
382
- readonly ttl: number | null;
383
- readonly exchange: string & import("effect/Brand").Brand<"DomainName">;
384
- readonly priority: number;
385
- } | {
386
- readonly _tag: "NS";
387
- readonly metadata: {
388
- readonly ownership: string;
389
- readonly provenance: string;
390
- readonly purpose: string;
391
- };
392
- readonly name: string & import("effect/Brand").Brand<"DomainName">;
393
- readonly policy: "append" | "exclusive";
394
- readonly ttl: number | null;
395
- readonly target: string & import("effect/Brand").Brand<"DomainName">;
396
- } | {
397
- readonly _tag: "SRV";
398
- readonly metadata: {
399
- readonly ownership: string;
400
- readonly provenance: string;
401
- readonly purpose: string;
402
- };
403
- readonly name: string & import("effect/Brand").Brand<"DomainName">;
404
- readonly policy: "append" | "exclusive";
405
- readonly ttl: number | null;
406
- readonly port: number;
407
- readonly priority: number;
408
- readonly target: string & import("effect/Brand").Brand<"DomainName">;
409
- readonly weight: number;
410
- } | {
411
- readonly _tag: "TXT";
412
- readonly metadata: {
413
- readonly ownership: string;
414
- readonly provenance: string;
415
- readonly purpose: string;
416
- };
417
- readonly name: string & import("effect/Brand").Brand<"DomainName">;
418
- readonly policy: "append" | "exclusive";
419
- readonly ttl: number | null;
420
- readonly value: string;
421
- }, Error$3, never>;
422
- declare function parse(input: unknown): DnsRecord;
423
- declare function data(record: DnsRecord): Readonly<Record<string, number | string>>;
424
- declare function equals(left: DnsRecord, right: DnsRecord): boolean;
425
- declare namespace provider_d_exports {
426
- export { AsyncInterface, CreateResult, Error$2 as Error, ErrorReason, Interface$2 as Interface, Service$2 as Service, fromAsync, layerFromAsync, toAsync };
427
- }
428
- interface CreateResult {
429
- readonly providerRecordId: string | null;
430
- }
431
- declare const ErrorReason: Schema.Literals<readonly ["authentication", "authorization", "conflict", "not_found", "rate_limit", "request", "response", "transport", "unsupported"]>;
432
- type ErrorReason = typeof ErrorReason.Type;
433
- declare const Error_base$2: Schema.Class<Error$2, Schema.TaggedStruct<"ProviderError", {
434
- readonly cause: Schema.optionalKey<Schema.Unknown>;
435
- readonly code: Schema.optionalKey<Schema.Union<readonly [Schema.Number, Schema.String]>>;
436
- readonly message: Schema.String;
437
- readonly operation: Schema.String;
438
- readonly providerId: Schema.String;
439
- readonly reason: Schema.optionalKey<Schema.Literals<readonly ["authentication", "authorization", "conflict", "not_found", "rate_limit", "request", "response", "transport", "unsupported"]>>;
440
- readonly retryAfterMs: Schema.optionalKey<Schema.Number>;
441
- readonly status: Schema.optionalKey<Schema.Number>;
442
- }>, import("effect/Cause").YieldableError>;
443
- declare class Error$2 extends Error_base$2 {}
444
- /** The provider capability used by DNS planning, application, and verification. */
445
- interface Interface$2 {
446
- readonly id: string;
447
- readonly createRecord: (zone: DomainName, record: DnsRecord) => Effect.Effect<CreateResult, Error$2>;
448
- readonly deleteRecord: (zone: DomainName, providerRecordId: string) => Effect.Effect<void, Error$2>;
449
- readonly getRecord: (zone: DomainName, providerRecordId: string) => Effect.Effect<Observed | null, Error$2>;
450
- readonly listRecords: (zone: DomainName) => Effect.Effect<ReadonlyArray<Observed>, Error$2>;
451
- }
452
- declare const Service_base$2: Context.ServiceClass<Service$2, "@domainkit/DnsProvider", Interface$2>;
453
- declare class Service$2 extends Service_base$2 {}
454
- /** Minimal Promise-shaped provider contract for hosts that do not use Effect directly. */
455
- interface AsyncInterface {
456
- readonly id: string;
457
- readonly createRecord: (zone: DomainName, record: DnsRecord) => Promise<CreateResult>;
458
- readonly deleteRecord: (zone: DomainName, providerRecordId: string) => Promise<void>;
459
- readonly getRecord: (zone: DomainName, providerRecordId: string) => Promise<Observed | null>;
460
- readonly listRecords: (zone: DomainName) => Promise<ReadonlyArray<Observed>>;
461
- }
462
- declare const fromAsync: (provider: AsyncInterface) => Interface$2;
463
- declare const layerFromAsync: (provider: AsyncInterface) => Layer.Layer<Service$2>;
464
- declare const toAsync: (provider: Interface$2) => AsyncInterface;
465
- declare namespace secret_d_exports {
466
- export { Value, make$1 as make };
467
- }
468
- /** A deliberately non-serializable credential value. */
469
- declare class Value {
470
- #private;
471
- private constructor();
472
- static from(value: string): Value;
473
- expose(): string;
474
- toJSON(): string;
475
- toString(): string;
476
- }
477
- declare const make$1: typeof Value.from;
478
- declare namespace manifest_d_exports {
479
- export { AsyncOAuthSubjectResolver, IntegrationMethod, Manifest, Method$1 as Method, OAuthClientConfiguration, OAuthMethod, OAuthSubjectResolver, Schema$3 as Schema, TokenValidation, decode$3 as decode };
480
- }
481
- declare const Method$1: Schema.TaggedUnion<{
482
- readonly integration: Schema.TaggedStruct<"integration", {
483
- readonly capabilities: Schema.$Array<Schema.Literals<readonly ["dns:read", "dns:write"]>>;
484
- readonly installUrl: Schema.String;
485
- readonly tokenEndpoint: Schema.String;
486
- }>;
487
- readonly oauth2: Schema.TaggedStruct<"oauth2", {
488
- readonly authorizationServer: Schema.Struct<{
489
- readonly authorization_endpoint: Schema.String;
490
- readonly issuer: Schema.String;
491
- readonly revocation_endpoint: Schema.optionalKey<Schema.String>;
492
- readonly token_endpoint: Schema.String;
493
- }>;
494
- readonly capabilities: Schema.$Array<Schema.Literals<readonly ["dns:read", "dns:write"]>>;
495
- readonly clientAuth: Schema.Literals<readonly ["none", "client_secret_basic", "client_secret_post"]>;
496
- readonly scopes: Schema.$Array<Schema.String>;
497
- }>;
498
- readonly token: Schema.TaggedStruct<"token", {
499
- readonly capabilities: Schema.$Array<Schema.Literals<readonly ["dns:read", "dns:write"]>>;
500
- readonly instructionsUrl: Schema.String;
501
- }>;
502
- }>;
503
- declare const Schema$3: Schema.Struct<{
504
- readonly methods: Schema.$Array<Schema.TaggedUnion<{
505
- readonly integration: Schema.TaggedStruct<"integration", {
506
- readonly capabilities: Schema.$Array<Schema.Literals<readonly ["dns:read", "dns:write"]>>;
507
- readonly installUrl: Schema.String;
508
- readonly tokenEndpoint: Schema.String;
509
- }>;
510
- readonly oauth2: Schema.TaggedStruct<"oauth2", {
511
- readonly authorizationServer: Schema.Struct<{
512
- readonly authorization_endpoint: Schema.String;
513
- readonly issuer: Schema.String;
514
- readonly revocation_endpoint: Schema.optionalKey<Schema.String>;
515
- readonly token_endpoint: Schema.String;
516
- }>;
517
- readonly capabilities: Schema.$Array<Schema.Literals<readonly ["dns:read", "dns:write"]>>;
518
- readonly clientAuth: Schema.Literals<readonly ["none", "client_secret_basic", "client_secret_post"]>;
519
- readonly scopes: Schema.$Array<Schema.String>;
520
- }>;
521
- readonly token: Schema.TaggedStruct<"token", {
522
- readonly capabilities: Schema.$Array<Schema.Literals<readonly ["dns:read", "dns:write"]>>;
523
- readonly instructionsUrl: Schema.String;
524
- }>;
525
- }>>;
526
- readonly providerId: Schema.String;
527
- }>;
528
- interface Manifest extends Schema.Schema.Type<typeof Schema$3> {}
529
- type OAuthMethod = Extract<Manifest["methods"][number], {
530
- readonly _tag: "oauth2";
531
- }>;
532
- /** A provider-owned installation flow that returns a credential from a one-time code. */
533
- type IntegrationMethod = Extract<Manifest["methods"][number], {
534
- readonly _tag: "integration";
535
- }>;
536
- declare const decode$3: (input: unknown) => Effect.Effect<{
537
- readonly methods: readonly ({
538
- readonly _tag: "integration";
539
- readonly capabilities: readonly ("dns:read" | "dns:write")[];
540
- readonly installUrl: string;
541
- readonly tokenEndpoint: string;
542
- } | {
543
- readonly _tag: "oauth2";
544
- readonly authorizationServer: {
545
- readonly authorization_endpoint: string;
546
- readonly issuer: string;
547
- readonly revocation_endpoint?: string;
548
- readonly token_endpoint: string;
549
- };
550
- readonly capabilities: readonly ("dns:read" | "dns:write")[];
551
- readonly clientAuth: "client_secret_basic" | "client_secret_post" | "none";
552
- readonly scopes: readonly string[];
553
- } | {
554
- readonly _tag: "token";
555
- readonly capabilities: readonly ("dns:read" | "dns:write")[];
556
- readonly instructionsUrl: string;
557
- })[];
558
- readonly providerId: string;
559
- }, Error$3, never>;
560
- interface OAuthClientConfiguration {
561
- readonly clientId: string;
562
- readonly clientSecret?: Value;
563
- }
564
- interface TokenValidation {
565
- readonly accountId: string;
566
- readonly capabilities: ReadonlyArray<"dns:read" | "dns:write">;
567
- readonly expiresAt: Date | null;
568
- readonly scopes: ReadonlyArray<string>;
569
- }
570
- interface OAuthSubjectResolver {
571
- (tokens: oauth.TokenEndpointResponse, accessToken: Value): Effect.Effect<{
572
- readonly accountId: string;
573
- readonly expiresAt: Date | null;
574
- }, Error$2>;
575
- }
576
- interface AsyncOAuthSubjectResolver {
577
- (tokens: oauth.TokenEndpointResponse, accessToken: Value): Promise<{
578
- readonly accountId: string;
579
- readonly expiresAt: Date | null;
580
- }>;
581
- }
582
- declare namespace canonical_json_d_exports {
583
- export { CryptoError, Json, sha256Encoded, sha256Json, sha256Text, stringify, webCryptoLayer };
584
- }
585
- declare const CryptoError_base: Schema.Class<CryptoError, Schema.TaggedStruct<"CryptoError", {
586
- readonly message: Schema.String;
587
- }>, import("effect/Cause").YieldableError>;
588
- declare class CryptoError extends CryptoError_base {}
589
- type Json = null | boolean | number | string | ReadonlyArray<Json> | {
590
- readonly [key: string]: Json;
591
- };
592
- /** Deterministic JSON serialization for already schema-encoded protocol values. */
593
- declare function stringify(value: Json): string;
594
- declare const sha256Text: (value: string) => Effect.Effect<string, CryptoError, Crypto.Crypto>;
595
- declare const sha256Json: (value: Json) => Effect.Effect<string, CryptoError, Crypto.Crypto>;
596
- declare const sha256Encoded: <S extends Schema.Constraint>(schema: S, value: S["Type"]) => Effect.Effect<string, CryptoError, Crypto.Crypto | S["EncodingServices"]>;
597
- /** Portable Web Crypto implementation for hosts that want a ready-made Layer. */
598
- declare const webCryptoLayer: Layer.Layer<Crypto.Crypto>;
599
- declare namespace authorization_d_exports {
600
- export { Capability, CapabilityEvidence, Evidence, EvidenceSchema, ProviderAuthorization, Revocation, Schema$2 as Schema, decode$2 as decode, encode$2 as encode, evidenceFor, validate$1 as validate };
601
- }
602
- declare const Capability: Schema.Literals<readonly ["dns:read", "dns:write"]>;
603
- type Capability = typeof Capability.Type;
604
- type Evidence = Data.TaggedEnum<{
605
- Declared: {};
606
- Exercised: {
607
- readonly observedAt: Date;
608
- };
609
- Introspected: {
610
- readonly observedAt: Date;
611
- };
612
- }>;
613
- declare const Evidence: {
614
- readonly $is: <Tag extends "Declared" | "Exercised" | "Introspected">(tag: Tag) => (u: unknown) => u is Extract<{
615
- readonly _tag: "Declared";
616
- }, {
617
- readonly _tag: Tag;
618
- }> | Extract<{
619
- readonly _tag: "Exercised";
620
- readonly observedAt: Date;
621
- }, {
622
- readonly _tag: Tag;
623
- }> | Extract<{
624
- readonly _tag: "Introspected";
625
- readonly observedAt: Date;
626
- }, {
627
- readonly _tag: Tag;
628
- }>;
629
- readonly $match: {
630
- <Cases extends { readonly [Tag in "Declared" | "Exercised" | "Introspected"]: (args: Extract<{
631
- readonly _tag: "Declared";
632
- } | {
633
- readonly _tag: "Exercised";
634
- readonly observedAt: Date;
635
- } | {
636
- readonly _tag: "Introspected";
637
- readonly observedAt: Date;
638
- }, {
639
- readonly _tag: Tag;
640
- }>) => any; }>(cases: Cases): (value: {
641
- readonly _tag: "Declared";
642
- } | {
643
- readonly _tag: "Exercised";
644
- readonly observedAt: Date;
645
- } | {
646
- readonly _tag: "Introspected";
647
- readonly observedAt: Date;
648
- }) => import("effect/Unify").Unify<ReturnType<Cases["Declared" | "Exercised" | "Introspected"]>>;
649
- <Cases extends { readonly [Tag in "Declared" | "Exercised" | "Introspected"]: (args: Extract<{
650
- readonly _tag: "Declared";
651
- } | {
652
- readonly _tag: "Exercised";
653
- readonly observedAt: Date;
654
- } | {
655
- readonly _tag: "Introspected";
656
- readonly observedAt: Date;
657
- }, {
658
- readonly _tag: Tag;
659
- }>) => any; }>(value: {
660
- readonly _tag: "Declared";
661
- } | {
662
- readonly _tag: "Exercised";
663
- readonly observedAt: Date;
664
- } | {
665
- readonly _tag: "Introspected";
666
- readonly observedAt: Date;
667
- }, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["Declared" | "Exercised" | "Introspected"]>>;
668
- };
669
- readonly Declared: Data.TaggedEnum.ConstructorFrom<{
670
- readonly _tag: "Declared";
671
- }, "_tag">;
672
- readonly Exercised: Data.TaggedEnum.ConstructorFrom<{
673
- readonly _tag: "Exercised";
674
- readonly observedAt: Date;
675
- }, "_tag">;
676
- readonly Introspected: Data.TaggedEnum.ConstructorFrom<{
677
- readonly _tag: "Introspected";
678
- readonly observedAt: Date;
679
- }, "_tag">;
680
- };
681
- declare const EvidenceSchema: Schema.TaggedUnion<{
682
- readonly Declared: Schema.TaggedStruct<"Declared", {}>;
683
- readonly Exercised: Schema.TaggedStruct<"Exercised", {
684
- readonly observedAt: Schema.DateFromString;
685
- }>;
686
- readonly Introspected: Schema.TaggedStruct<"Introspected", {
687
- readonly observedAt: Schema.DateFromString;
688
- }>;
689
- }>;
690
- declare const CapabilityEvidence: Schema.Struct<{
691
- readonly capability: Schema.Literals<readonly ["dns:read", "dns:write"]>;
692
- readonly evidence: Schema.TaggedUnion<{
693
- readonly Declared: Schema.TaggedStruct<"Declared", {}>;
694
- readonly Exercised: Schema.TaggedStruct<"Exercised", {
695
- readonly observedAt: Schema.DateFromString;
696
- }>;
697
- readonly Introspected: Schema.TaggedStruct<"Introspected", {
698
- readonly observedAt: Schema.DateFromString;
699
- }>;
700
- }>;
701
- }>;
702
- interface CapabilityEvidence extends Schema.Schema.Type<typeof CapabilityEvidence> {}
703
- declare const Revocation: Schema.TaggedUnion<{
704
- readonly Active: Schema.TaggedStruct<"Active", {}>;
705
- readonly Pending: Schema.TaggedStruct<"Pending", {
706
- readonly requestedAt: Schema.DateFromString;
707
- }>;
708
- }>;
709
- type Revocation = typeof Revocation.Type;
710
- /** A provider credential authorization shared by one or more owner connections. */
711
- declare const Schema$2: Schema.Struct<{
712
- readonly authorizedById: Schema.String;
713
- readonly capabilityEvidence: Schema.$Array<Schema.Struct<{
714
- readonly capability: Schema.Literals<readonly ["dns:read", "dns:write"]>;
715
- readonly evidence: Schema.TaggedUnion<{
716
- readonly Declared: Schema.TaggedStruct<"Declared", {}>;
717
- readonly Exercised: Schema.TaggedStruct<"Exercised", {
718
- readonly observedAt: Schema.DateFromString;
719
- }>;
720
- readonly Introspected: Schema.TaggedStruct<"Introspected", {
721
- readonly observedAt: Schema.DateFromString;
722
- }>;
723
- }>;
724
- }>>;
725
- readonly createdAt: Schema.DateFromString;
726
- readonly expiresAt: Schema.NullOr<Schema.DateFromString>;
727
- readonly id: Schema.String;
728
- readonly method: Schema.Literals<readonly ["integration", "oauth2", "token"]>;
729
- readonly providerAccountId: Schema.String;
730
- readonly providerContext: Schema.Struct<{
731
- readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
732
- readonly version: Schema.String;
733
- }>;
734
- readonly providerId: Schema.String;
735
- readonly requiredCapabilities: Schema.$Array<Schema.Literals<readonly ["dns:read", "dns:write"]>>;
736
- readonly revocation: Schema.TaggedUnion<{
737
- readonly Active: Schema.TaggedStruct<"Active", {}>;
738
- readonly Pending: Schema.TaggedStruct<"Pending", {
739
- readonly requestedAt: Schema.DateFromString;
740
- }>;
741
- }>;
742
- readonly scopes: Schema.$Array<Schema.String>;
743
- }>;
744
- interface ProviderAuthorization extends Schema.Schema.Type<typeof Schema$2> {}
745
- declare const decode$2: (input: unknown) => Effect.Effect<{
746
- readonly authorizedById: string;
747
- readonly capabilityEvidence: readonly {
748
- readonly capability: "dns:read" | "dns:write";
749
- readonly evidence: {
750
- readonly _tag: "Declared";
751
- } | {
752
- readonly _tag: "Exercised";
753
- readonly observedAt: Date;
754
- } | {
755
- readonly _tag: "Introspected";
756
- readonly observedAt: Date;
757
- };
758
- }[];
759
- readonly createdAt: Date;
760
- readonly expiresAt: Date | null;
761
- readonly id: string;
762
- readonly method: "integration" | "oauth2" | "token";
763
- readonly providerAccountId: string;
764
- readonly providerContext: {
765
- readonly value: Schema.Json;
766
- readonly version: string;
767
- };
768
- readonly providerId: string;
769
- readonly requiredCapabilities: readonly ("dns:read" | "dns:write")[];
770
- readonly revocation: {
771
- readonly _tag: "Active";
772
- } | {
773
- readonly _tag: "Pending";
774
- readonly requestedAt: Date;
775
- };
776
- readonly scopes: readonly string[];
777
- }, Error$3, never>;
778
- declare const validate$1: (input: unknown) => Effect.Effect<{
779
- readonly authorizedById: string;
780
- readonly capabilityEvidence: readonly {
781
- readonly capability: "dns:read" | "dns:write";
782
- readonly evidence: {
783
- readonly _tag: "Declared";
784
- } | {
785
- readonly _tag: "Exercised";
786
- readonly observedAt: Date;
787
- } | {
788
- readonly _tag: "Introspected";
789
- readonly observedAt: Date;
790
- };
791
- }[];
792
- readonly createdAt: Date;
793
- readonly expiresAt: Date | null;
794
- readonly id: string;
795
- readonly method: "integration" | "oauth2" | "token";
796
- readonly providerAccountId: string;
797
- readonly providerContext: {
798
- readonly value: Schema.Json;
799
- readonly version: string;
800
- };
801
- readonly providerId: string;
802
- readonly requiredCapabilities: readonly ("dns:read" | "dns:write")[];
803
- readonly revocation: {
804
- readonly _tag: "Active";
805
- } | {
806
- readonly _tag: "Pending";
807
- readonly requestedAt: Date;
808
- };
809
- readonly scopes: readonly string[];
810
- }, Error$3, never>;
811
- declare const encode$2: (input: {
812
- readonly authorizedById: string;
813
- readonly capabilityEvidence: readonly {
814
- readonly capability: "dns:read" | "dns:write";
815
- readonly evidence: {
816
- readonly _tag: "Declared";
817
- } | {
818
- readonly _tag: "Exercised";
819
- readonly observedAt: Date;
820
- } | {
821
- readonly _tag: "Introspected";
822
- readonly observedAt: Date;
823
- };
824
- }[];
825
- readonly createdAt: Date;
826
- readonly expiresAt: Date | null;
827
- readonly id: string;
828
- readonly method: "integration" | "oauth2" | "token";
829
- readonly providerAccountId: string;
830
- readonly providerContext: {
831
- readonly value: Schema.Json;
832
- readonly version: string;
833
- };
834
- readonly providerId: string;
835
- readonly requiredCapabilities: readonly ("dns:read" | "dns:write")[];
836
- readonly revocation: {
837
- readonly _tag: "Active";
838
- } | {
839
- readonly _tag: "Pending";
840
- readonly requestedAt: Date;
841
- };
842
- readonly scopes: readonly string[];
843
- }, options?: import("effect/SchemaAST").ParseOptions) => {
844
- readonly authorizedById: string;
845
- readonly capabilityEvidence: readonly {
846
- readonly capability: "dns:read" | "dns:write";
847
- readonly evidence: {
848
- readonly _tag: "Declared";
849
- } | {
850
- readonly _tag: "Exercised";
851
- readonly observedAt: string;
852
- } | {
853
- readonly _tag: "Introspected";
854
- readonly observedAt: string;
855
- };
856
- }[];
857
- readonly createdAt: string;
858
- readonly expiresAt: string | null;
859
- readonly id: string;
860
- readonly method: "integration" | "oauth2" | "token";
861
- readonly providerAccountId: string;
862
- readonly providerContext: {
863
- readonly value: Schema.Json;
864
- readonly version: string;
865
- };
866
- readonly providerId: string;
867
- readonly requiredCapabilities: readonly ("dns:read" | "dns:write")[];
868
- readonly revocation: {
869
- readonly _tag: "Active";
870
- } | {
871
- readonly _tag: "Pending";
872
- readonly requestedAt: string;
873
- };
874
- readonly scopes: readonly string[];
875
- };
876
- declare function evidenceFor(authorization: ProviderAuthorization, capability: Capability): Evidence | undefined;
877
- //#endregion
878
- //#region src/auth/connection.d.ts
879
- declare const Grant: Schema.TaggedUnion<{
880
- readonly account: Schema.TaggedStruct<"account", {}>;
881
- readonly domains: Schema.TaggedStruct<"domains", {
882
- readonly domains: Schema.$Array<Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>>;
883
- }>;
884
- }>;
885
- type Grant = typeof Grant.Type;
886
- /** An owner-scoped grant bound to one provider authorization. */
887
- declare const Schema$1: Schema.Struct<{
888
- readonly authorizationId: Schema.String;
889
- readonly createdAt: Schema.DateFromString;
890
- readonly grant: Schema.TaggedUnion<{
891
- readonly account: Schema.TaggedStruct<"account", {}>;
892
- readonly domains: Schema.TaggedStruct<"domains", {
893
- readonly domains: Schema.$Array<Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>>;
894
- }>;
895
- }>;
896
- readonly id: Schema.String;
897
- readonly ownerId: Schema.String;
898
- }>;
899
- interface Connection extends Schema.Schema.Type<typeof Schema$1> {}
900
- declare const decode$1: (input: unknown) => Effect.Effect<{
901
- readonly authorizationId: string;
902
- readonly createdAt: Date;
903
- readonly grant: {
904
- readonly _tag: "account";
905
- } | {
906
- readonly _tag: "domains";
907
- readonly domains: readonly (string & import("effect/Brand").Brand<"DomainName">)[];
908
- };
909
- readonly id: string;
910
- readonly ownerId: string;
911
- }, Error$3, never>;
912
- declare const validate: (input: unknown) => Effect.Effect<{
913
- readonly authorizationId: string;
914
- readonly createdAt: Date;
915
- readonly grant: {
916
- readonly _tag: "account";
917
- } | {
918
- readonly _tag: "domains";
919
- readonly domains: readonly (string & import("effect/Brand").Brand<"DomainName">)[];
920
- };
921
- readonly id: string;
922
- readonly ownerId: string;
923
- }, Error$3, never>;
924
- declare const encode$1: (input: {
925
- readonly authorizationId: string;
926
- readonly createdAt: Date;
927
- readonly grant: {
928
- readonly _tag: "account";
929
- } | {
930
- readonly _tag: "domains";
931
- readonly domains: readonly (string & import("effect/Brand").Brand<"DomainName">)[];
932
- };
933
- readonly id: string;
934
- readonly ownerId: string;
935
- }, options?: import("effect/SchemaAST").ParseOptions) => {
936
- readonly authorizationId: string;
937
- readonly createdAt: string;
938
- readonly grant: {
939
- readonly _tag: "account";
940
- } | {
941
- readonly _tag: "domains";
942
- readonly domains: readonly string[];
943
- };
944
- readonly id: string;
945
- readonly ownerId: string;
946
- };
947
- interface OAuthContinuation {
948
- readonly clientId: string;
949
- readonly codeVerifier: Value;
950
- readonly expiresAt: Date;
951
- readonly grant: Grant;
952
- readonly method: OAuthMethod;
953
- readonly ownerId: string;
954
- readonly redirectUri: string;
955
- readonly stateHash: string;
956
- readonly authorizedById: string;
957
- }
958
- interface StoredCredential {
959
- readonly accessToken: Value;
960
- readonly refreshToken: Value | null;
961
- readonly tokenType: string;
962
- }
963
- declare const AuthorizationError_base: Schema.Class<AuthorizationError, Schema.TaggedStruct<"AuthorizationError", {
964
- readonly category: Schema.Literal<"authorization">;
965
- readonly message: Schema.String;
966
- readonly operation: Schema.String;
967
- readonly retry: Schema.Literals<readonly ["never", "after-user-action", "safe", "unknown"]>;
968
- }>, import("effect/Cause").YieldableError>;
969
- declare class AuthorizationError extends AuthorizationError_base {}
970
- declare const authorizationError: (message: string, operation: string) => AuthorizationError;
971
- declare function assertGrant(connection: Connection, authorization: ProviderAuthorization, request: {
972
- readonly capability: Capability;
973
- readonly domain: string;
974
- readonly now?: Date;
975
- readonly providerId: string;
976
- }): DomainName;
977
- declare namespace lifecycle_repository_d_exports {
978
- export { Aggregate, DetachResult, Error$1 as Error, Interface$1 as Interface, Service$1 as Service };
979
- }
980
- interface Aggregate {
981
- readonly authorization: ProviderAuthorization;
982
- readonly bindings: ReadonlyArray<Connection>;
983
- readonly credential: StoredCredential;
984
- }
985
- interface DetachResult {
986
- readonly authorizationId: string;
987
- readonly remainingBindings: number;
988
- readonly revokedAuthorization: boolean;
989
- }
990
- declare const Error_base$1: Schema.Class<Error$1, Schema.TaggedStruct<"LifecycleRepositoryError", {
991
- readonly category: Schema.Literal<"storage">;
992
- readonly message: Schema.String;
993
- readonly operation: Schema.String;
994
- readonly retry: Schema.Literals<readonly ["never", "after-user-action", "safe", "unknown"]>;
995
- }>, import("effect/Cause").YieldableError>;
996
- declare class Error$1 extends Error_base$1 {}
997
- interface Interface$1 {
998
- readonly bind: (authorizationId: string, binding: Connection) => Effect.Effect<Aggregate, Error$1>;
999
- readonly connect: (aggregate: Aggregate) => Effect.Effect<Aggregate, Error$1>;
1000
- readonly detach: <E>(input: {
1001
- readonly connectionId: string;
1002
- readonly revoke: (aggregate: Aggregate) => Effect.Effect<void, E>;
1003
- }) => Effect.Effect<DetachResult, Error$1 | E>;
1004
- readonly findByProviderAccount: (providerId: string, providerAccountId: string) => Effect.Effect<Aggregate | null, Error$1>;
1005
- readonly get: (authorizationId: string) => Effect.Effect<Aggregate | null, Error$1>;
1006
- readonly getByConnectionId: (connectionId: string) => Effect.Effect<Aggregate | null, Error$1>;
1007
- readonly promoteEvidence: (authorizationId: string, evidence: ReadonlyArray<CapabilityEvidence>) => Effect.Effect<Aggregate, Error$1>;
1008
- readonly recover: <E>(input: {
1009
- readonly authorizationId: string;
1010
- readonly revoke: (aggregate: Aggregate) => Effect.Effect<void, E>;
1011
- }) => Effect.Effect<DetachResult, Error$1 | E>;
1012
- readonly rotate: (authorizationId: string, credential: StoredCredential, expiresAt: Date | null) => Effect.Effect<Aggregate, Error$1>;
1013
- }
1014
- declare const Service_base$1: Context.ServiceClass<Service$1, "@domainkit/AuthorizationLifecycleRepository", Interface$1>;
1015
- declare class Service$1 extends Service_base$1 {}
1016
- declare namespace provider_context_d_exports {
1017
- export { Codec, Envelope, codec, decode, encode };
1018
- }
1019
- /** A provider-owned, versioned, non-secret context value persisted by the host. */
1020
- declare const Envelope: Schema.Struct<{
1021
- readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
1022
- readonly version: Schema.String;
1023
- }>;
1024
- interface Envelope extends Schema.Schema.Type<typeof Envelope> {}
1025
- interface Codec<A> {
1026
- readonly decode: (envelope: Envelope) => Effect.Effect<A, Error$3>;
1027
- readonly encode: (value: A) => Effect.Effect<Envelope, Error$3>;
1028
- readonly version: string;
1029
- }
1030
- /** Build an adapter-owned context codec from a schema and stable version identifier. */
1031
- declare function codec<A, I>(version: string, schema: Schema.Codec<A, I>): Codec<A>;
1032
- declare const decode: (input: unknown) => Effect.Effect<{
1033
- readonly value: Schema.Json;
1034
- readonly version: string;
1035
- }, Error$3, never>;
1036
- declare const encode: (input: {
1037
- readonly value: Schema.Json;
1038
- readonly version: string;
1039
- }, options?: import("effect/SchemaAST").ParseOptions) => {
1040
- readonly value: Schema.Json;
1041
- readonly version: string;
1042
- };
1043
- //#endregion
1044
- //#region src/auth/connect.d.ts
1045
- interface Authentication {
1046
- readonly capabilityEvidence: ReadonlyArray<CapabilityEvidence>;
1047
- readonly credential: StoredCredential;
1048
- readonly expiresAt: Date | null;
1049
- readonly providerAccountId: string;
1050
- readonly providerContext: Envelope;
1051
- readonly scopes: ReadonlyArray<string>;
1052
- }
1053
- type AuthenticationFailure = Error | Error$3 | Error$2;
1054
- interface InteractiveStart {
1055
- readonly authorizationUrl: URL;
1056
- readonly payload: Value;
1057
- }
1058
- interface Continuation extends BaseInput {
1059
- readonly expiresAt: Date;
1060
- readonly id: string;
1061
- readonly method: "integration" | "oauth2";
1062
- readonly payload: Value;
1063
- readonly providerId: string;
1064
- readonly requiredCapabilities: ReadonlyArray<Capability>;
1065
- }
1066
- interface ContinuationStore {
1067
- readonly consume: (id: string, now: Date) => Effect.Effect<Continuation | null, Error>;
1068
- readonly put: (continuation: Continuation) => Effect.Effect<void, Error>;
1069
- }
1070
- interface InteractiveFlow {
1071
- readonly complete: (payload: Value, callbackUrl: URL) => Effect.Effect<Authentication, AuthenticationFailure>;
1072
- readonly method: "integration" | "oauth2";
1073
- readonly providerId: string;
1074
- readonly requiredCapabilities: ReadonlyArray<Capability>;
1075
- readonly start: (continuationId: string) => Effect.Effect<InteractiveStart, AuthenticationFailure, Crypto.Crypto>;
1076
- }
1077
- type Method = Data.TaggedEnum<{
1078
- Interactive: {
1079
- readonly continuations: ContinuationStore;
1080
- readonly flow: InteractiveFlow;
1081
- readonly ttlMs?: number;
1082
- };
1083
- Token: {
1084
- readonly authenticate: (token: Value) => Effect.Effect<Authentication, AuthenticationFailure>;
1085
- readonly providerId: string;
1086
- readonly requiredCapabilities: ReadonlyArray<Capability>;
1087
- readonly token: Value;
1088
- };
1089
- }>;
1090
- declare const Method: {
1091
- readonly $is: <Tag extends "Interactive" | "Token">(tag: Tag) => (u: unknown) => u is Extract<{
1092
- readonly _tag: "Interactive";
1093
- readonly continuations: ContinuationStore;
1094
- readonly flow: InteractiveFlow;
1095
- readonly ttlMs?: number;
1096
- }, {
1097
- readonly _tag: Tag;
1098
- }> | Extract<{
1099
- readonly _tag: "Token";
1100
- readonly authenticate: (token: Value) => Effect.Effect<Authentication, AuthenticationFailure>;
1101
- readonly providerId: string;
1102
- readonly requiredCapabilities: ReadonlyArray<Capability>;
1103
- readonly token: Value;
1104
- }, {
1105
- readonly _tag: Tag;
1106
- }>;
1107
- readonly $match: {
1108
- <Cases extends { readonly [Tag in "Interactive" | "Token"]: (args: Extract<{
1109
- readonly _tag: "Interactive";
1110
- readonly continuations: ContinuationStore;
1111
- readonly flow: InteractiveFlow;
1112
- readonly ttlMs?: number;
1113
- } | {
1114
- readonly _tag: "Token";
1115
- readonly authenticate: (token: Value) => Effect.Effect<Authentication, AuthenticationFailure>;
1116
- readonly providerId: string;
1117
- readonly requiredCapabilities: ReadonlyArray<Capability>;
1118
- readonly token: Value;
1119
- }, {
1120
- readonly _tag: Tag;
1121
- }>) => any; }>(cases: Cases): (value: {
1122
- readonly _tag: "Interactive";
1123
- readonly continuations: ContinuationStore;
1124
- readonly flow: InteractiveFlow;
1125
- readonly ttlMs?: number;
1126
- } | {
1127
- readonly _tag: "Token";
1128
- readonly authenticate: (token: Value) => Effect.Effect<Authentication, AuthenticationFailure>;
1129
- readonly providerId: string;
1130
- readonly requiredCapabilities: ReadonlyArray<Capability>;
1131
- readonly token: Value;
1132
- }) => import("effect/Unify").Unify<ReturnType<Cases["Interactive" | "Token"]>>;
1133
- <Cases extends { readonly [Tag in "Interactive" | "Token"]: (args: Extract<{
1134
- readonly _tag: "Interactive";
1135
- readonly continuations: ContinuationStore;
1136
- readonly flow: InteractiveFlow;
1137
- readonly ttlMs?: number;
1138
- } | {
1139
- readonly _tag: "Token";
1140
- readonly authenticate: (token: Value) => Effect.Effect<Authentication, AuthenticationFailure>;
1141
- readonly providerId: string;
1142
- readonly requiredCapabilities: ReadonlyArray<Capability>;
1143
- readonly token: Value;
1144
- }, {
1145
- readonly _tag: Tag;
1146
- }>) => any; }>(value: {
1147
- readonly _tag: "Interactive";
1148
- readonly continuations: ContinuationStore;
1149
- readonly flow: InteractiveFlow;
1150
- readonly ttlMs?: number;
1151
- } | {
1152
- readonly _tag: "Token";
1153
- readonly authenticate: (token: Value) => Effect.Effect<Authentication, AuthenticationFailure>;
1154
- readonly providerId: string;
1155
- readonly requiredCapabilities: ReadonlyArray<Capability>;
1156
- readonly token: Value;
1157
- }, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["Interactive" | "Token"]>>;
1158
- };
1159
- readonly Interactive: Data.TaggedEnum.ConstructorFrom<{
1160
- readonly _tag: "Interactive";
1161
- readonly continuations: ContinuationStore;
1162
- readonly flow: InteractiveFlow;
1163
- readonly ttlMs?: number;
1164
- }, "_tag">;
1165
- readonly Token: Data.TaggedEnum.ConstructorFrom<{
1166
- readonly _tag: "Token";
1167
- readonly authenticate: (token: Value) => Effect.Effect<Authentication, AuthenticationFailure>;
1168
- readonly providerId: string;
1169
- readonly requiredCapabilities: ReadonlyArray<Capability>;
1170
- readonly token: Value;
1171
- }, "_tag">;
1172
- };
1173
- type StartResult = Data.TaggedEnum<{
1174
- Connected: {
1175
- readonly aggregate: Aggregate;
1176
- };
1177
- Redirect: {
1178
- readonly authorizationUrl: URL;
1179
- readonly continuationId: string;
1180
- };
1181
- }>;
1182
- declare const StartResult: {
1183
- readonly $is: <Tag extends "Connected" | "Redirect">(tag: Tag) => (u: unknown) => u is Extract<{
1184
- readonly _tag: "Connected";
1185
- readonly aggregate: Aggregate;
1186
- }, {
1187
- readonly _tag: Tag;
1188
- }> | Extract<{
1189
- readonly _tag: "Redirect";
1190
- readonly authorizationUrl: URL;
1191
- readonly continuationId: string;
1192
- }, {
1193
- readonly _tag: Tag;
1194
- }>;
1195
- readonly $match: {
1196
- <Cases extends { readonly [Tag in "Connected" | "Redirect"]: (args: Extract<{
1197
- readonly _tag: "Connected";
1198
- readonly aggregate: Aggregate;
1199
- } | {
1200
- readonly _tag: "Redirect";
1201
- readonly authorizationUrl: URL;
1202
- readonly continuationId: string;
1203
- }, {
1204
- readonly _tag: Tag;
1205
- }>) => any; }>(cases: Cases): (value: {
1206
- readonly _tag: "Connected";
1207
- readonly aggregate: Aggregate;
1208
- } | {
1209
- readonly _tag: "Redirect";
1210
- readonly authorizationUrl: URL;
1211
- readonly continuationId: string;
1212
- }) => import("effect/Unify").Unify<ReturnType<Cases["Connected" | "Redirect"]>>;
1213
- <Cases extends { readonly [Tag in "Connected" | "Redirect"]: (args: Extract<{
1214
- readonly _tag: "Connected";
1215
- readonly aggregate: Aggregate;
1216
- } | {
1217
- readonly _tag: "Redirect";
1218
- readonly authorizationUrl: URL;
1219
- readonly continuationId: string;
1220
- }, {
1221
- readonly _tag: Tag;
1222
- }>) => any; }>(value: {
1223
- readonly _tag: "Connected";
1224
- readonly aggregate: Aggregate;
1225
- } | {
1226
- readonly _tag: "Redirect";
1227
- readonly authorizationUrl: URL;
1228
- readonly continuationId: string;
1229
- }, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["Connected" | "Redirect"]>>;
1230
- };
1231
- readonly Connected: Data.TaggedEnum.ConstructorFrom<{
1232
- readonly _tag: "Connected";
1233
- readonly aggregate: Aggregate;
1234
- }, "_tag">;
1235
- readonly Redirect: Data.TaggedEnum.ConstructorFrom<{
1236
- readonly _tag: "Redirect";
1237
- readonly authorizationUrl: URL;
1238
- readonly continuationId: string;
1239
- }, "_tag">;
1240
- };
1241
- declare const Error_base: Schema.Class<Error, Schema.TaggedStruct<"ConnectionError", {
1242
- readonly category: Schema.Literals<readonly ["authorization", "provider", "validation"]>;
1243
- readonly message: Schema.String;
1244
- readonly operation: Schema.String;
1245
- readonly retry: Schema.Literals<readonly ["never", "after-user-action", "safe", "unknown"]>;
1246
- }>, import("effect/Cause").YieldableError>;
1247
- declare class Error extends Error_base {}
1248
- interface BaseInput {
1249
- readonly authorizedById: string;
1250
- readonly grant: Grant;
1251
- readonly ownerId: string;
1252
- }
1253
- interface CompleteInput {
1254
- readonly callbackUrl: URL;
1255
- readonly continuationId: string;
1256
- readonly continuations: ContinuationStore;
1257
- readonly flow: InteractiveFlow;
1258
- }
1259
- interface ExtendInput {
1260
- readonly connectionId: string;
1261
- readonly grant: Grant;
1262
- readonly ownerId: string;
1263
- }
1264
- declare const start: (input: BaseInput & {
1265
- readonly method: Method;
1266
- }) => Effect.Effect<{
1267
- readonly _tag: "Connected";
1268
- readonly aggregate: Aggregate;
1269
- } | {
1270
- readonly _tag: "Redirect";
1271
- readonly authorizationUrl: URL;
1272
- readonly continuationId: string;
1273
- }, Error$1 | AuthenticationFailure, Crypto.Crypto | Service$1>;
1274
- declare const complete: (input: CompleteInput) => Effect.Effect<Aggregate, Error$1 | AuthenticationFailure, Crypto.Crypto | Service$1>;
1275
- /** Extends one owner binding without repeating provider authentication. */
1276
- declare const extend: (input: ExtendInput) => Effect.Effect<Aggregate, Error$1 | Error, Service$1>;
1277
- type Requirements = Service$1 | Crypto.Crypto;
1278
- type Failure = AuthenticationFailure | Error$1 | CryptoError;
1279
- declare namespace zone_discovery_d_exports {
1280
- export { Candidate, Interface, Outcome, Service, Source, make };
1281
- }
1282
- /** Display-safe identity and nameserver evidence for one provider-owned zone. */
1283
- declare const Candidate: Schema.Struct<{
1284
- readonly accountId: Schema.String;
1285
- readonly id: Schema.String;
1286
- readonly name: Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>;
1287
- readonly nameservers: Schema.$Array<Schema.decodeTo<Schema.brand<Schema.String, "DomainName">, Schema.String, never, never>>;
1288
- readonly providerId: Schema.String;
1289
- readonly status: Schema.Literals<readonly ["active", "pending", "unknown"]>;
1290
- }>;
1291
- interface Candidate extends Schema.Schema.Type<typeof Candidate> {}
1292
- interface Source {
1293
- readonly listZones: (name: DomainName) => Effect.Effect<ReadonlyArray<Omit<Candidate, "providerId">>, Error$2>;
1294
- readonly provider: Interface$2;
1295
- }
1296
- type Outcome = Data.TaggedEnum<{
1297
- NotFound: {
1298
- readonly domain: DomainName;
1299
- };
1300
- Resolved: {
1301
- readonly candidate: Candidate;
1302
- readonly provider: Interface$2;
1303
- };
1304
- SelectionRequired: {
1305
- readonly candidates: ReadonlyArray<Candidate>;
1306
- };
1307
- }>;
1308
- declare const Outcome: {
1309
- readonly $is: <Tag extends "NotFound" | "Resolved" | "SelectionRequired">(tag: Tag) => (u: unknown) => u is Extract<{
1310
- readonly _tag: "NotFound";
1311
- readonly domain: DomainName;
1312
- }, {
1313
- readonly _tag: Tag;
1314
- }> | Extract<{
1315
- readonly _tag: "Resolved";
1316
- readonly candidate: Candidate;
1317
- readonly provider: Interface$2;
1318
- }, {
1319
- readonly _tag: Tag;
1320
- }> | Extract<{
1321
- readonly _tag: "SelectionRequired";
1322
- readonly candidates: ReadonlyArray<Candidate>;
1323
- }, {
1324
- readonly _tag: Tag;
1325
- }>;
1326
- readonly $match: {
1327
- <Cases extends { readonly [Tag in "NotFound" | "Resolved" | "SelectionRequired"]: (args: Extract<{
1328
- readonly _tag: "NotFound";
1329
- readonly domain: DomainName;
1330
- } | {
1331
- readonly _tag: "Resolved";
1332
- readonly candidate: Candidate;
1333
- readonly provider: Interface$2;
1334
- } | {
1335
- readonly _tag: "SelectionRequired";
1336
- readonly candidates: ReadonlyArray<Candidate>;
1337
- }, {
1338
- readonly _tag: Tag;
1339
- }>) => any; }>(cases: Cases): (value: {
1340
- readonly _tag: "NotFound";
1341
- readonly domain: DomainName;
1342
- } | {
1343
- readonly _tag: "Resolved";
1344
- readonly candidate: Candidate;
1345
- readonly provider: Interface$2;
1346
- } | {
1347
- readonly _tag: "SelectionRequired";
1348
- readonly candidates: ReadonlyArray<Candidate>;
1349
- }) => import("effect/Unify").Unify<ReturnType<Cases["NotFound" | "Resolved" | "SelectionRequired"]>>;
1350
- <Cases extends { readonly [Tag in "NotFound" | "Resolved" | "SelectionRequired"]: (args: Extract<{
1351
- readonly _tag: "NotFound";
1352
- readonly domain: DomainName;
1353
- } | {
1354
- readonly _tag: "Resolved";
1355
- readonly candidate: Candidate;
1356
- readonly provider: Interface$2;
1357
- } | {
1358
- readonly _tag: "SelectionRequired";
1359
- readonly candidates: ReadonlyArray<Candidate>;
1360
- }, {
1361
- readonly _tag: Tag;
1362
- }>) => any; }>(value: {
1363
- readonly _tag: "NotFound";
1364
- readonly domain: DomainName;
1365
- } | {
1366
- readonly _tag: "Resolved";
1367
- readonly candidate: Candidate;
1368
- readonly provider: Interface$2;
1369
- } | {
1370
- readonly _tag: "SelectionRequired";
1371
- readonly candidates: ReadonlyArray<Candidate>;
1372
- }, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["NotFound" | "Resolved" | "SelectionRequired"]>>;
1373
- };
1374
- readonly NotFound: Data.TaggedEnum.ConstructorFrom<{
1375
- readonly _tag: "NotFound";
1376
- readonly domain: DomainName;
1377
- }, "_tag">;
1378
- readonly Resolved: Data.TaggedEnum.ConstructorFrom<{
1379
- readonly _tag: "Resolved";
1380
- readonly candidate: Candidate;
1381
- readonly provider: Interface$2;
1382
- }, "_tag">;
1383
- readonly SelectionRequired: Data.TaggedEnum.ConstructorFrom<{
1384
- readonly _tag: "SelectionRequired";
1385
- readonly candidates: ReadonlyArray<Candidate>;
1386
- }, "_tag">;
1387
- };
1388
- interface Interface {
1389
- readonly discover: (domain: DomainName) => Effect.Effect<Outcome, Error$2>;
1390
- }
1391
- declare const Service_base: Context.ServiceClass<Service, "@domainkit/ZoneDiscovery", Interface>;
1392
- declare class Service extends Service_base {}
1393
- /** Compose provider-account discovery sources without expanding the record-provider contract. */
1394
- declare function make(sources: ReadonlyArray<Source>): Interface;
1395
- //#endregion
1396
- export { IntegrationMethod as $, lifecycle_repository_d_exports as A, Type as At, encode$1 as B, invalid_input_d_exports as Bt, Envelope as C, Ns as Ct, Error$1 as D, Schema$4 as Dt, DetachResult as E, RequirementMetadata as Et, Schema$1 as F, DomainName as Ft, EvidenceSchema as G, Capability as H, StoredCredential as I, Schema$5 as It, authorization_d_exports as J, ProviderAuthorization as K, assertGrant as L, domain_name_d_exports as Lt, Connection as M, dns_record_d_exports as Mt, Grant as N, equals as Nt, Interface$1 as O, Srv as Ot, OAuthContinuation as P, parse as Pt, AsyncOAuthSubjectResolver as Q, authorizationError as R, parse$1 as Rt, Codec as S, Mx as St, Aggregate as T, Opaque as Tt, CapabilityEvidence as U, validate as V, Evidence as W, CryptoError as X, encode$2 as Y, canonical_json_d_exports as Z, Requirements as _, Aaaa as _t, Authentication as a, Schema$3 as at, extend as b, DnsRecord as bt, CompleteInput as c, Value as ct, Error as d, CreateResult as dt, Manifest as et, ExtendInput as f, Error$2 as ft, Method as g, A as gt, InteractiveStart as h, provider_d_exports as ht, zone_discovery_d_exports as i, OAuthSubjectResolver as it, AuthorizationError as j, data as jt, Service$1 as k, Txt as kt, Continuation as l, secret_d_exports as lt, InteractiveFlow as m, Service$2 as mt, Service as n, OAuthClientConfiguration as nt, AuthenticationFailure as o, TokenValidation as ot, Failure as p, Interface$2 as pt, Schema$2 as q, Source as r, OAuthMethod as rt, BaseInput as s, manifest_d_exports as st, Candidate as t, Method$1 as tt, ContinuationStore as u, AsyncInterface as ut, StartResult as v, Caa as vt, provider_context_d_exports as w, Observed as wt, start as x, Encoded as xt, complete as y, Cname as yt, decode$1 as z, Error$3 as zt };
1397
- //# sourceMappingURL=zone-discovery-BPnH3sLU.d.mts.map