domainkit 0.22.1 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/package.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  //#region package.json
2
- var version = "0.22.1";
2
+ var version = "0.23.0";
3
3
  //#endregion
4
4
  export { version };
5
5
 
@@ -141,98 +141,19 @@ export type Started = Data.TaggedEnum<{
141
141
  readonly candidates: ReadonlyArray<Provider.Target>;
142
142
  };
143
143
  }>;
144
- export declare const Started: {
145
- readonly $is: <Tag extends "Connected" | "Redirect" | "SelectionRequired">(tag: Tag) => (u: unknown) => u is Extract<{
146
- readonly _tag: "Connected";
147
- readonly connection: Storage.Connection;
148
- readonly attachment: Storage.Attachment | null;
149
- }, {
150
- readonly _tag: Tag;
151
- }> | Extract<{
152
- readonly _tag: "Redirect";
153
- readonly authorizationUrl: string;
154
- readonly continuationId: string;
155
- }, {
156
- readonly _tag: Tag;
157
- }> | Extract<{
158
- readonly _tag: "SelectionRequired";
159
- readonly connection: Storage.Connection;
160
- readonly candidates: ReadonlyArray<Provider.Target>;
161
- }, {
162
- readonly _tag: Tag;
163
- }>;
164
- readonly $match: {
165
- <Cases extends { readonly [Tag in "Connected" | "Redirect" | "SelectionRequired"]: (args: Extract<{
166
- readonly _tag: "Connected";
167
- readonly connection: Storage.Connection;
168
- readonly attachment: Storage.Attachment | null;
169
- } | {
170
- readonly _tag: "Redirect";
171
- readonly authorizationUrl: string;
172
- readonly continuationId: string;
173
- } | {
174
- readonly _tag: "SelectionRequired";
175
- readonly connection: Storage.Connection;
176
- readonly candidates: ReadonlyArray<Provider.Target>;
177
- }, {
178
- readonly _tag: Tag;
179
- }>) => any; }>(cases: Cases): (value: {
180
- readonly _tag: "Connected";
181
- readonly connection: Storage.Connection;
182
- readonly attachment: Storage.Attachment | null;
183
- } | {
184
- readonly _tag: "Redirect";
185
- readonly authorizationUrl: string;
186
- readonly continuationId: string;
187
- } | {
188
- readonly _tag: "SelectionRequired";
189
- readonly connection: Storage.Connection;
190
- readonly candidates: ReadonlyArray<Provider.Target>;
191
- }) => import("effect/Unify").Unify<ReturnType<Cases["Connected" | "Redirect" | "SelectionRequired"]>>;
192
- <Cases extends { readonly [Tag in "Connected" | "Redirect" | "SelectionRequired"]: (args: Extract<{
193
- readonly _tag: "Connected";
194
- readonly connection: Storage.Connection;
195
- readonly attachment: Storage.Attachment | null;
196
- } | {
197
- readonly _tag: "Redirect";
198
- readonly authorizationUrl: string;
199
- readonly continuationId: string;
200
- } | {
201
- readonly _tag: "SelectionRequired";
202
- readonly connection: Storage.Connection;
203
- readonly candidates: ReadonlyArray<Provider.Target>;
204
- }, {
205
- readonly _tag: Tag;
206
- }>) => any; }>(value: {
207
- readonly _tag: "Connected";
208
- readonly connection: Storage.Connection;
209
- readonly attachment: Storage.Attachment | null;
210
- } | {
211
- readonly _tag: "Redirect";
212
- readonly authorizationUrl: string;
213
- readonly continuationId: string;
214
- } | {
215
- readonly _tag: "SelectionRequired";
216
- readonly connection: Storage.Connection;
217
- readonly candidates: ReadonlyArray<Provider.Target>;
218
- }, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["Connected" | "Redirect" | "SelectionRequired"]>>;
219
- };
220
- readonly Connected: Data.TaggedEnum.ConstructorFrom<{
221
- readonly _tag: "Connected";
222
- readonly connection: Storage.Connection;
223
- readonly attachment: Storage.Attachment | null;
224
- }, "_tag">;
225
- readonly Redirect: Data.TaggedEnum.ConstructorFrom<{
226
- readonly _tag: "Redirect";
227
- readonly authorizationUrl: string;
228
- readonly continuationId: string;
229
- }, "_tag">;
230
- readonly SelectionRequired: Data.TaggedEnum.ConstructorFrom<{
231
- readonly _tag: "SelectionRequired";
232
- readonly connection: Storage.Connection;
233
- readonly candidates: ReadonlyArray<Provider.Target>;
234
- }, "_tag">;
235
- };
144
+ export declare const Started: Data.TaggedEnum.Constructor<{
145
+ readonly _tag: "Connected";
146
+ readonly connection: Storage.Connection;
147
+ readonly attachment: Storage.Attachment | null;
148
+ } | {
149
+ readonly _tag: "Redirect";
150
+ readonly authorizationUrl: string;
151
+ readonly continuationId: string;
152
+ } | {
153
+ readonly _tag: "SelectionRequired";
154
+ readonly connection: Storage.Connection;
155
+ readonly candidates: ReadonlyArray<Provider.Target>;
156
+ }>;
236
157
  /** A verified completion result. Errors stay on the server; do not serialize them to a browser. */
237
158
  export type Completion = Data.TaggedEnum<{
238
159
  Connected: {
@@ -250,148 +171,31 @@ export type Completion = Data.TaggedEnum<{
250
171
  readonly connectionId?: string;
251
172
  };
252
173
  }>;
253
- export declare const Completion: {
254
- readonly $is: <Tag extends "Cancelled" | "Connected" | "Failed">(tag: Tag) => (u: unknown) => u is Extract<{
255
- readonly _tag: "Cancelled";
256
- readonly error: Errors.DomainKitError;
257
- readonly connectionId?: string;
258
- }, {
259
- readonly _tag: Tag;
260
- }> | Extract<{
261
- readonly _tag: "Connected";
262
- readonly started: Exclude<Started, {
263
- readonly _tag: "Redirect";
264
- }>;
265
- }, {
266
- readonly _tag: Tag;
267
- }> | Extract<{
268
- readonly _tag: "Failed";
269
- readonly error: Errors.DomainKitError;
270
- readonly recovery: "restart" | "inspect";
271
- readonly connectionId?: string;
272
- }, {
273
- readonly _tag: Tag;
174
+ export declare const Completion: Data.TaggedEnum.Constructor<{
175
+ readonly _tag: "Cancelled";
176
+ readonly error: Errors.DomainKitError;
177
+ readonly connectionId?: string;
178
+ } | {
179
+ readonly _tag: "Connected";
180
+ readonly started: Exclude<Started, {
181
+ readonly _tag: "Redirect";
274
182
  }>;
275
- readonly $match: {
276
- <Cases extends { readonly [Tag in "Cancelled" | "Connected" | "Failed"]: (args: Extract<{
277
- readonly _tag: "Cancelled";
278
- readonly error: Errors.DomainKitError;
279
- readonly connectionId?: string;
280
- } | {
281
- readonly _tag: "Connected";
282
- readonly started: Exclude<Started, {
283
- readonly _tag: "Redirect";
284
- }>;
285
- } | {
286
- readonly _tag: "Failed";
287
- readonly error: Errors.DomainKitError;
288
- readonly recovery: "restart" | "inspect";
289
- readonly connectionId?: string;
290
- }, {
291
- readonly _tag: Tag;
292
- }>) => any; }>(cases: Cases): (value: {
293
- readonly _tag: "Cancelled";
294
- readonly error: Errors.DomainKitError;
295
- readonly connectionId?: string;
296
- } | {
297
- readonly _tag: "Connected";
298
- readonly started: Exclude<Started, {
299
- readonly _tag: "Redirect";
300
- }>;
301
- } | {
302
- readonly _tag: "Failed";
303
- readonly error: Errors.DomainKitError;
304
- readonly recovery: "restart" | "inspect";
305
- readonly connectionId?: string;
306
- }) => import("effect/Unify").Unify<ReturnType<Cases["Cancelled" | "Connected" | "Failed"]>>;
307
- <Cases extends { readonly [Tag in "Cancelled" | "Connected" | "Failed"]: (args: Extract<{
308
- readonly _tag: "Cancelled";
309
- readonly error: Errors.DomainKitError;
310
- readonly connectionId?: string;
311
- } | {
312
- readonly _tag: "Connected";
313
- readonly started: Exclude<Started, {
314
- readonly _tag: "Redirect";
315
- }>;
316
- } | {
317
- readonly _tag: "Failed";
318
- readonly error: Errors.DomainKitError;
319
- readonly recovery: "restart" | "inspect";
320
- readonly connectionId?: string;
321
- }, {
322
- readonly _tag: Tag;
323
- }>) => any; }>(value: {
324
- readonly _tag: "Cancelled";
325
- readonly error: Errors.DomainKitError;
326
- readonly connectionId?: string;
327
- } | {
328
- readonly _tag: "Connected";
329
- readonly started: Exclude<Started, {
330
- readonly _tag: "Redirect";
331
- }>;
332
- } | {
333
- readonly _tag: "Failed";
334
- readonly error: Errors.DomainKitError;
335
- readonly recovery: "restart" | "inspect";
336
- readonly connectionId?: string;
337
- }, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["Cancelled" | "Connected" | "Failed"]>>;
338
- };
339
- readonly Cancelled: Data.TaggedEnum.ConstructorFrom<{
340
- readonly _tag: "Cancelled";
341
- readonly error: Errors.DomainKitError;
342
- readonly connectionId?: string;
343
- }, "_tag">;
344
- readonly Connected: Data.TaggedEnum.ConstructorFrom<{
345
- readonly _tag: "Connected";
346
- readonly started: Exclude<Started, {
347
- readonly _tag: "Redirect";
348
- }>;
349
- }, "_tag">;
350
- readonly Failed: Data.TaggedEnum.ConstructorFrom<{
351
- readonly _tag: "Failed";
352
- readonly error: Errors.DomainKitError;
353
- readonly recovery: "restart" | "inspect";
354
- readonly connectionId?: string;
355
- }, "_tag">;
356
- };
183
+ } | {
184
+ readonly _tag: "Failed";
185
+ readonly error: Errors.DomainKitError;
186
+ readonly recovery: "restart" | "inspect";
187
+ readonly connectionId?: string;
188
+ }>;
357
189
  /** `attach` either attached the domain or needs the caller to pick a zone. */
358
190
  export type Selection = Data.TaggedEnum<{
359
191
  SelectionRequired: {
360
192
  readonly candidates: ReadonlyArray<Provider.Target>;
361
193
  };
362
194
  }>;
363
- export declare const Selection: {
364
- readonly $is: <Tag extends "SelectionRequired">(tag: Tag) => (u: unknown) => u is Extract<{
365
- readonly _tag: "SelectionRequired";
366
- readonly candidates: ReadonlyArray<Provider.Target>;
367
- }, {
368
- readonly _tag: Tag;
369
- }>;
370
- readonly $match: {
371
- <Cases extends { readonly [Tag in "SelectionRequired"]: (args: Extract<{
372
- readonly _tag: "SelectionRequired";
373
- readonly candidates: ReadonlyArray<Provider.Target>;
374
- }, {
375
- readonly _tag: Tag;
376
- }>) => any; }>(cases: Cases): (value: {
377
- readonly _tag: "SelectionRequired";
378
- readonly candidates: ReadonlyArray<Provider.Target>;
379
- }) => import("effect/Unify").Unify<ReturnType<Cases["SelectionRequired"]>>;
380
- <Cases extends { readonly [Tag in "SelectionRequired"]: (args: Extract<{
381
- readonly _tag: "SelectionRequired";
382
- readonly candidates: ReadonlyArray<Provider.Target>;
383
- }, {
384
- readonly _tag: Tag;
385
- }>) => any; }>(value: {
386
- readonly _tag: "SelectionRequired";
387
- readonly candidates: ReadonlyArray<Provider.Target>;
388
- }, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["SelectionRequired"]>>;
389
- };
390
- readonly SelectionRequired: Data.TaggedEnum.ConstructorFrom<{
391
- readonly _tag: "SelectionRequired";
392
- readonly candidates: ReadonlyArray<Provider.Target>;
393
- }, "_tag">;
394
- };
195
+ export declare const Selection: Data.TaggedEnum.Constructor<{
196
+ readonly _tag: "SelectionRequired";
197
+ readonly candidates: ReadonlyArray<Provider.Target>;
198
+ }>;
395
199
  export type Attached = Storage.Attachment | Selection;
396
200
  export type Refreshed = "current" | "refreshed" | "reconnect";
397
201
  /** Which of the principal's connections serves a domain, from nameserver evidence and zone lists. */
@@ -417,122 +221,23 @@ export type Discovery = Data.TaggedEnum<{
417
221
  } | null;
418
222
  };
419
223
  }>;
420
- export declare const Discovery: {
421
- readonly $is: <Tag extends "NotFound" | "Resolved" | "SelectionRequired">(tag: Tag) => (u: unknown) => u is Extract<{
422
- readonly _tag: "NotFound";
423
- readonly nameservers: ReadonlyArray<string>;
424
- readonly host: {
425
- readonly provider: string;
426
- } | null;
427
- }, {
428
- readonly _tag: Tag;
429
- }> | Extract<{
430
- readonly _tag: "Resolved";
224
+ export declare const Discovery: Data.TaggedEnum.Constructor<{
225
+ readonly _tag: "NotFound";
226
+ readonly nameservers: ReadonlyArray<string>;
227
+ readonly host: {
228
+ readonly provider: string;
229
+ } | null;
230
+ } | {
231
+ readonly _tag: "Resolved";
232
+ readonly connectionId: string;
233
+ readonly target: Provider.Target;
234
+ } | {
235
+ readonly _tag: "SelectionRequired";
236
+ readonly candidates: ReadonlyArray<{
431
237
  readonly connectionId: string;
432
238
  readonly target: Provider.Target;
433
- }, {
434
- readonly _tag: Tag;
435
- }> | Extract<{
436
- readonly _tag: "SelectionRequired";
437
- readonly candidates: ReadonlyArray<{
438
- readonly connectionId: string;
439
- readonly target: Provider.Target;
440
- }>;
441
- }, {
442
- readonly _tag: Tag;
443
239
  }>;
444
- readonly $match: {
445
- <Cases extends { readonly [Tag in "NotFound" | "Resolved" | "SelectionRequired"]: (args: Extract<{
446
- readonly _tag: "NotFound";
447
- readonly nameservers: ReadonlyArray<string>;
448
- readonly host: {
449
- readonly provider: string;
450
- } | null;
451
- } | {
452
- readonly _tag: "Resolved";
453
- readonly connectionId: string;
454
- readonly target: Provider.Target;
455
- } | {
456
- readonly _tag: "SelectionRequired";
457
- readonly candidates: ReadonlyArray<{
458
- readonly connectionId: string;
459
- readonly target: Provider.Target;
460
- }>;
461
- }, {
462
- readonly _tag: Tag;
463
- }>) => any; }>(cases: Cases): (value: {
464
- readonly _tag: "NotFound";
465
- readonly nameservers: ReadonlyArray<string>;
466
- readonly host: {
467
- readonly provider: string;
468
- } | null;
469
- } | {
470
- readonly _tag: "Resolved";
471
- readonly connectionId: string;
472
- readonly target: Provider.Target;
473
- } | {
474
- readonly _tag: "SelectionRequired";
475
- readonly candidates: ReadonlyArray<{
476
- readonly connectionId: string;
477
- readonly target: Provider.Target;
478
- }>;
479
- }) => import("effect/Unify").Unify<ReturnType<Cases["NotFound" | "Resolved" | "SelectionRequired"]>>;
480
- <Cases extends { readonly [Tag in "NotFound" | "Resolved" | "SelectionRequired"]: (args: Extract<{
481
- readonly _tag: "NotFound";
482
- readonly nameservers: ReadonlyArray<string>;
483
- readonly host: {
484
- readonly provider: string;
485
- } | null;
486
- } | {
487
- readonly _tag: "Resolved";
488
- readonly connectionId: string;
489
- readonly target: Provider.Target;
490
- } | {
491
- readonly _tag: "SelectionRequired";
492
- readonly candidates: ReadonlyArray<{
493
- readonly connectionId: string;
494
- readonly target: Provider.Target;
495
- }>;
496
- }, {
497
- readonly _tag: Tag;
498
- }>) => any; }>(value: {
499
- readonly _tag: "NotFound";
500
- readonly nameservers: ReadonlyArray<string>;
501
- readonly host: {
502
- readonly provider: string;
503
- } | null;
504
- } | {
505
- readonly _tag: "Resolved";
506
- readonly connectionId: string;
507
- readonly target: Provider.Target;
508
- } | {
509
- readonly _tag: "SelectionRequired";
510
- readonly candidates: ReadonlyArray<{
511
- readonly connectionId: string;
512
- readonly target: Provider.Target;
513
- }>;
514
- }, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["NotFound" | "Resolved" | "SelectionRequired"]>>;
515
- };
516
- readonly NotFound: Data.TaggedEnum.ConstructorFrom<{
517
- readonly _tag: "NotFound";
518
- readonly nameservers: ReadonlyArray<string>;
519
- readonly host: {
520
- readonly provider: string;
521
- } | null;
522
- }, "_tag">;
523
- readonly Resolved: Data.TaggedEnum.ConstructorFrom<{
524
- readonly _tag: "Resolved";
525
- readonly connectionId: string;
526
- readonly target: Provider.Target;
527
- }, "_tag">;
528
- readonly SelectionRequired: Data.TaggedEnum.ConstructorFrom<{
529
- readonly _tag: "SelectionRequired";
530
- readonly candidates: ReadonlyArray<{
531
- readonly connectionId: string;
532
- readonly target: Provider.Target;
533
- }>;
534
- }, "_tag">;
535
- };
240
+ }>;
536
241
  /** One zone a connection reaches, with the connection that reaches it. */
537
242
  export interface Zone {
538
243
  readonly connectionId: string;
@@ -41,74 +41,15 @@ export type Resolution = Data.TaggedEnum<{
41
41
  };
42
42
  NotFound: {};
43
43
  }>;
44
- export declare const Resolution: {
45
- readonly $is: <Tag extends "NotFound" | "Resolved" | "SelectionRequired">(tag: Tag) => (u: unknown) => u is Extract<{
46
- readonly _tag: "NotFound";
47
- }, {
48
- readonly _tag: Tag;
49
- }> | Extract<{
50
- readonly _tag: "Resolved";
51
- readonly target: Target;
52
- }, {
53
- readonly _tag: Tag;
54
- }> | Extract<{
55
- readonly _tag: "SelectionRequired";
56
- readonly candidates: ReadonlyArray<Target>;
57
- }, {
58
- readonly _tag: Tag;
59
- }>;
60
- readonly $match: {
61
- <Cases extends { readonly [Tag in "NotFound" | "Resolved" | "SelectionRequired"]: (args: Extract<{
62
- readonly _tag: "NotFound";
63
- } | {
64
- readonly _tag: "Resolved";
65
- readonly target: Target;
66
- } | {
67
- readonly _tag: "SelectionRequired";
68
- readonly candidates: ReadonlyArray<Target>;
69
- }, {
70
- readonly _tag: Tag;
71
- }>) => any; }>(cases: Cases): (value: {
72
- readonly _tag: "NotFound";
73
- } | {
74
- readonly _tag: "Resolved";
75
- readonly target: Target;
76
- } | {
77
- readonly _tag: "SelectionRequired";
78
- readonly candidates: ReadonlyArray<Target>;
79
- }) => import("effect/Unify").Unify<ReturnType<Cases["NotFound" | "Resolved" | "SelectionRequired"]>>;
80
- <Cases extends { readonly [Tag in "NotFound" | "Resolved" | "SelectionRequired"]: (args: Extract<{
81
- readonly _tag: "NotFound";
82
- } | {
83
- readonly _tag: "Resolved";
84
- readonly target: Target;
85
- } | {
86
- readonly _tag: "SelectionRequired";
87
- readonly candidates: ReadonlyArray<Target>;
88
- }, {
89
- readonly _tag: Tag;
90
- }>) => any; }>(value: {
91
- readonly _tag: "NotFound";
92
- } | {
93
- readonly _tag: "Resolved";
94
- readonly target: Target;
95
- } | {
96
- readonly _tag: "SelectionRequired";
97
- readonly candidates: ReadonlyArray<Target>;
98
- }, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["NotFound" | "Resolved" | "SelectionRequired"]>>;
99
- };
100
- readonly NotFound: Data.TaggedEnum.ConstructorFrom<{
101
- readonly _tag: "NotFound";
102
- }, "_tag">;
103
- readonly Resolved: Data.TaggedEnum.ConstructorFrom<{
104
- readonly _tag: "Resolved";
105
- readonly target: Target;
106
- }, "_tag">;
107
- readonly SelectionRequired: Data.TaggedEnum.ConstructorFrom<{
108
- readonly _tag: "SelectionRequired";
109
- readonly candidates: ReadonlyArray<Target>;
110
- }, "_tag">;
111
- };
44
+ export declare const Resolution: Data.TaggedEnum.Constructor<{
45
+ readonly _tag: "NotFound";
46
+ } | {
47
+ readonly _tag: "Resolved";
48
+ readonly target: Target;
49
+ } | {
50
+ readonly _tag: "SelectionRequired";
51
+ readonly candidates: ReadonlyArray<Target>;
52
+ }>;
112
53
  /** A credential bound to provider account context. */
113
54
  export interface Session {
114
55
  readonly listTargets: () => Fx<ReadonlyArray<Target>>;
@@ -24,86 +24,17 @@ export type Outcome = Data.TaggedEnum<{
24
24
  readonly resolver: string;
25
25
  };
26
26
  }>;
27
- export declare const Outcome: {
28
- readonly $is: <Tag extends "Answered" | "Failed" | "TimedOut">(tag: Tag) => (u: unknown) => u is Extract<{
29
- readonly _tag: "Answered";
30
- readonly answer: Answer;
31
- }, {
32
- readonly _tag: Tag;
33
- }> | Extract<{
34
- readonly _tag: "Failed";
35
- readonly resolver: string;
36
- readonly message: string;
37
- }, {
38
- readonly _tag: Tag;
39
- }> | Extract<{
40
- readonly _tag: "TimedOut";
41
- readonly resolver: string;
42
- }, {
43
- readonly _tag: Tag;
44
- }>;
45
- readonly $match: {
46
- <Cases extends { readonly [Tag in "Answered" | "Failed" | "TimedOut"]: (args: Extract<{
47
- readonly _tag: "Answered";
48
- readonly answer: Answer;
49
- } | {
50
- readonly _tag: "Failed";
51
- readonly resolver: string;
52
- readonly message: string;
53
- } | {
54
- readonly _tag: "TimedOut";
55
- readonly resolver: string;
56
- }, {
57
- readonly _tag: Tag;
58
- }>) => any; }>(cases: Cases): (value: {
59
- readonly _tag: "Answered";
60
- readonly answer: Answer;
61
- } | {
62
- readonly _tag: "Failed";
63
- readonly resolver: string;
64
- readonly message: string;
65
- } | {
66
- readonly _tag: "TimedOut";
67
- readonly resolver: string;
68
- }) => import("effect/Unify").Unify<ReturnType<Cases["Answered" | "Failed" | "TimedOut"]>>;
69
- <Cases extends { readonly [Tag in "Answered" | "Failed" | "TimedOut"]: (args: Extract<{
70
- readonly _tag: "Answered";
71
- readonly answer: Answer;
72
- } | {
73
- readonly _tag: "Failed";
74
- readonly resolver: string;
75
- readonly message: string;
76
- } | {
77
- readonly _tag: "TimedOut";
78
- readonly resolver: string;
79
- }, {
80
- readonly _tag: Tag;
81
- }>) => any; }>(value: {
82
- readonly _tag: "Answered";
83
- readonly answer: Answer;
84
- } | {
85
- readonly _tag: "Failed";
86
- readonly resolver: string;
87
- readonly message: string;
88
- } | {
89
- readonly _tag: "TimedOut";
90
- readonly resolver: string;
91
- }, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["Answered" | "Failed" | "TimedOut"]>>;
92
- };
93
- readonly Answered: Data.TaggedEnum.ConstructorFrom<{
94
- readonly _tag: "Answered";
95
- readonly answer: Answer;
96
- }, "_tag">;
97
- readonly Failed: Data.TaggedEnum.ConstructorFrom<{
98
- readonly _tag: "Failed";
99
- readonly resolver: string;
100
- readonly message: string;
101
- }, "_tag">;
102
- readonly TimedOut: Data.TaggedEnum.ConstructorFrom<{
103
- readonly _tag: "TimedOut";
104
- readonly resolver: string;
105
- }, "_tag">;
106
- };
27
+ export declare const Outcome: Data.TaggedEnum.Constructor<{
28
+ readonly _tag: "Answered";
29
+ readonly answer: Answer;
30
+ } | {
31
+ readonly _tag: "Failed";
32
+ readonly resolver: string;
33
+ readonly message: string;
34
+ } | {
35
+ readonly _tag: "TimedOut";
36
+ readonly resolver: string;
37
+ }>;
107
38
  export interface Interface {
108
39
  /** Never fails: each resolver's outcome is preserved. */
109
40
  readonly resolve: (name: string, type: DnsRecord.Type, options?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "domainkit",
3
- "version": "0.22.1",
3
+ "version": "0.23.0",
4
4
  "description": "Build reviewable DNS plans for custom domains in TypeScript",
5
5
  "keywords": [
6
6
  "custom-domains",
@@ -147,9 +147,9 @@
147
147
  "tldts": "^7.4.18"
148
148
  },
149
149
  "devDependencies": {
150
- "@effect/vitest": "4.0.2",
150
+ "@effect/vitest": "4.1.2",
151
151
  "@types/bun": "1.4.2",
152
- "effect": "4.0.2",
152
+ "effect": "4.1.2",
153
153
  "miniflare": "3.20250718.3",
154
154
  "tsdown": "0.23.0",
155
155
  "typescript": "7.0.2",
@@ -157,7 +157,7 @@
157
157
  "vitest": "5.0.3"
158
158
  },
159
159
  "peerDependencies": {
160
- "effect": ">=4.0.0 <5.0.0"
160
+ "effect": ">=4.1.2 <5.0.0"
161
161
  },
162
162
  "engines": {
163
163
  "node": ">=24.10.0"