@domainkit/react 0.4.0 → 0.6.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 CHANGED
@@ -59,13 +59,13 @@ export const transport = Transport.layerFromAsync({
59
59
 
60
60
  The stylesheet is opt-in. `DomainKit.Root` accepts host messages, provider marks, icons, design
61
61
  tokens, color scheme, and portal container, so product branding remains outside the package.
62
- Cloudflare and Vercel use bundled, theme-aware marks sourced from SVGL; hosts can replace either
63
- through the `marks` prop.
62
+ Recognized provider marks load from `integrations.sh` and fall back to the provider's initial when
63
+ the mark is unavailable; hosts can replace them through the `marks` prop.
64
64
 
65
65
  ## Learn more
66
66
 
67
67
  - [React source and examples](https://github.com/AryaLabsHQ/domainkit/tree/main/packages/react)
68
- - [Vite workshop source](https://github.com/AryaLabsHQ/domainkit/tree/main/packages/react/examples/vite)
68
+ - [React component catalog](https://domain-kit.dev/components)
69
69
  - [Application transport contract](https://github.com/AryaLabsHQ/domainkit/blob/main/packages/domainkit/src/Transport.ts)
70
70
  - [Issues](https://github.com/AryaLabsHQ/domainkit/issues)
71
71
 
package/dist/index.d.mts CHANGED
@@ -356,10 +356,10 @@ interface MarkProps extends PartProps<"span", MarkState> {
356
356
  declare function Mark({ provider, ...props }: MarkProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
357
357
  type MarkElementProps = ComponentPropsWithoutRef<"span">;
358
358
  declare namespace connection_d_exports {
359
- export { ActionState, Card$1 as Card, CardActions, CardActionsProps, CardIdentity, CardIdentityProps, CardProps$1 as CardProps, Command$2 as Command, ConnectTrigger, ConnectTriggerProps, Connected, Controller$2 as Controller, Dialog$2 as Dialog, DialogProps$1 as DialogProps, DisconnectDialog, DisconnectDialogProps, Flow$2 as Flow, FlowProps$2 as FlowProps, Model$2 as Model, OAuthAction, OAuthActionProps, RetryAction$1 as RetryAction, RetryActionProps, ReuseAction, ReuseActionProps, Root$5 as Root, RootProps$5 as RootProps, RootState$1 as RootState, State$2 as State, Status$2 as Status, StatusProps$2 as StatusProps, StatusState, TokenAction, TokenActionProps, Trigger, TriggerProps, useController$2 as useController, useModel$2 as useModel };
359
+ export { ActionState, AttachAction, AttachActionProps, Card$1 as Card, CardActions, CardActionsProps, CardIdentity, CardIdentityProps, CardProps$1 as CardProps, Command$2 as Command, ConnectTrigger, ConnectTriggerProps, Connected, Controller$2 as Controller, Dialog$2 as Dialog, DialogProps$1 as DialogProps, DisconnectDialog, DisconnectDialogProps, Flow$2 as Flow, FlowProps$2 as FlowProps, IntegrationAction, IntegrationActionProps, Model$2 as Model, OAuthAction, OAuthActionProps, RetryAction$1 as RetryAction, RetryActionProps, Root$5 as Root, RootProps$5 as RootProps, RootState$1 as RootState, State$2 as State, Status$2 as Status, StatusProps$2 as StatusProps, StatusState, TokenAction, TokenActionProps, Trigger, TriggerProps, targetLabel, useController$2 as useController, useModel$2 as useModel };
360
360
  }
361
361
  type LocalState$2 = Data.TaggedEnum<{
362
- Disconnecting: {
362
+ Detaching: {
363
363
  readonly snapshot: Transport.Connected;
364
364
  };
365
365
  Loading: {};
@@ -371,8 +371,8 @@ type LocalState$2 = Data.TaggedEnum<{
371
371
  };
372
372
  }>;
373
373
  declare const State$2: {
374
- readonly $is: <Tag extends "Disconnecting" | "Loading" | "Redirecting" | "Submitting">(tag: Tag) => (u: unknown) => u is Extract<{
375
- readonly _tag: "Disconnecting";
374
+ readonly $is: <Tag extends "Detaching" | "Loading" | "Redirecting" | "Submitting">(tag: Tag) => (u: unknown) => u is Extract<{
375
+ readonly _tag: "Detaching";
376
376
  readonly snapshot: Transport.Connected;
377
377
  }, {
378
378
  readonly _tag: Tag;
@@ -392,8 +392,8 @@ declare const State$2: {
392
392
  readonly _tag: Tag;
393
393
  }>;
394
394
  readonly $match: {
395
- <Cases extends { readonly [Tag in "Disconnecting" | "Loading" | "Redirecting" | "Submitting"]: (args: Extract<{
396
- readonly _tag: "Disconnecting";
395
+ <Cases extends { readonly [Tag in "Detaching" | "Loading" | "Redirecting" | "Submitting"]: (args: Extract<{
396
+ readonly _tag: "Detaching";
397
397
  readonly snapshot: Transport.Connected;
398
398
  } | {
399
399
  readonly _tag: "Loading";
@@ -406,7 +406,7 @@ declare const State$2: {
406
406
  }, {
407
407
  readonly _tag: Tag;
408
408
  }>) => any; }>(cases: Cases): (value: {
409
- readonly _tag: "Disconnecting";
409
+ readonly _tag: "Detaching";
410
410
  readonly snapshot: Transport.Connected;
411
411
  } | {
412
412
  readonly _tag: "Loading";
@@ -416,9 +416,9 @@ declare const State$2: {
416
416
  } | {
417
417
  readonly _tag: "Submitting";
418
418
  readonly snapshot: Disconnected;
419
- }) => import("effect/Unify").Unify<ReturnType<Cases["Disconnecting" | "Loading" | "Redirecting" | "Submitting"]>>;
420
- <Cases extends { readonly [Tag in "Disconnecting" | "Loading" | "Redirecting" | "Submitting"]: (args: Extract<{
421
- readonly _tag: "Disconnecting";
419
+ }) => import("effect/Unify").Unify<ReturnType<Cases["Detaching" | "Loading" | "Redirecting" | "Submitting"]>>;
420
+ <Cases extends { readonly [Tag in "Detaching" | "Loading" | "Redirecting" | "Submitting"]: (args: Extract<{
421
+ readonly _tag: "Detaching";
422
422
  readonly snapshot: Transport.Connected;
423
423
  } | {
424
424
  readonly _tag: "Loading";
@@ -431,7 +431,7 @@ declare const State$2: {
431
431
  }, {
432
432
  readonly _tag: Tag;
433
433
  }>) => any; }>(value: {
434
- readonly _tag: "Disconnecting";
434
+ readonly _tag: "Detaching";
435
435
  readonly snapshot: Transport.Connected;
436
436
  } | {
437
437
  readonly _tag: "Loading";
@@ -441,10 +441,10 @@ declare const State$2: {
441
441
  } | {
442
442
  readonly _tag: "Submitting";
443
443
  readonly snapshot: Disconnected;
444
- }, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["Disconnecting" | "Loading" | "Redirecting" | "Submitting"]>>;
444
+ }, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["Detaching" | "Loading" | "Redirecting" | "Submitting"]>>;
445
445
  };
446
- readonly Disconnecting: Data.TaggedEnum.ConstructorFrom<{
447
- readonly _tag: "Disconnecting";
446
+ readonly Detaching: Data.TaggedEnum.ConstructorFrom<{
447
+ readonly _tag: "Detaching";
448
448
  readonly snapshot: Transport.Connected;
449
449
  }, "_tag">;
450
450
  readonly Loading: Data.TaggedEnum.ConstructorFrom<{
@@ -464,96 +464,111 @@ type Disconnected = Extract<Transport.ConnectionSnapshot, {
464
464
  readonly _tag: "Disconnected";
465
465
  }>;
466
466
  interface Controller$2 {
467
+ readonly attach: (connection: Transport.ReusableConnection, target: Transport.ProviderTarget) => void;
467
468
  readonly connect: (method: Transport.Method) => void;
468
- readonly disconnect: () => void;
469
+ readonly detach: () => void;
469
470
  readonly retry: () => void;
470
- readonly reuse: () => void;
471
471
  readonly state: State$2;
472
472
  }
473
473
  type Command$2 = Data.TaggedEnum<{
474
+ Attach: {
475
+ readonly connectionId: string;
476
+ readonly target: Transport.ProviderTarget;
477
+ };
474
478
  Connect: {
475
479
  readonly method: Transport.Method;
476
480
  };
477
- Disconnect: {};
481
+ Detach: {};
478
482
  Retry: {};
479
- Reuse: {};
480
483
  }>;
481
484
  declare const Command$2: {
482
- readonly $is: <Tag extends "Connect" | "Disconnect" | "Retry" | "Reuse">(tag: Tag) => (u: unknown) => u is Extract<{
483
- readonly _tag: "Connect";
484
- readonly method: Transport.Method;
485
+ readonly $is: <Tag extends "Attach" | "Connect" | "Detach" | "Retry">(tag: Tag) => (u: unknown) => u is Extract<{
486
+ readonly _tag: "Attach";
487
+ readonly connectionId: string;
488
+ readonly target: Transport.ProviderTarget;
485
489
  }, {
486
490
  readonly _tag: Tag;
487
491
  }> | Extract<{
488
- readonly _tag: "Disconnect";
492
+ readonly _tag: "Connect";
493
+ readonly method: Transport.Method;
489
494
  }, {
490
495
  readonly _tag: Tag;
491
496
  }> | Extract<{
492
- readonly _tag: "Retry";
497
+ readonly _tag: "Detach";
493
498
  }, {
494
499
  readonly _tag: Tag;
495
500
  }> | Extract<{
496
- readonly _tag: "Reuse";
501
+ readonly _tag: "Retry";
497
502
  }, {
498
503
  readonly _tag: Tag;
499
504
  }>;
500
505
  readonly $match: {
501
- <Cases extends { readonly [Tag in "Connect" | "Disconnect" | "Retry" | "Reuse"]: (args: Extract<{
506
+ <Cases extends { readonly [Tag in "Attach" | "Connect" | "Detach" | "Retry"]: (args: Extract<{
507
+ readonly _tag: "Attach";
508
+ readonly connectionId: string;
509
+ readonly target: Transport.ProviderTarget;
510
+ } | {
502
511
  readonly _tag: "Connect";
503
512
  readonly method: Transport.Method;
504
513
  } | {
505
- readonly _tag: "Disconnect";
514
+ readonly _tag: "Detach";
506
515
  } | {
507
516
  readonly _tag: "Retry";
508
- } | {
509
- readonly _tag: "Reuse";
510
517
  }, {
511
518
  readonly _tag: Tag;
512
519
  }>) => any; }>(cases: Cases): (value: {
520
+ readonly _tag: "Attach";
521
+ readonly connectionId: string;
522
+ readonly target: Transport.ProviderTarget;
523
+ } | {
513
524
  readonly _tag: "Connect";
514
525
  readonly method: Transport.Method;
515
526
  } | {
516
- readonly _tag: "Disconnect";
527
+ readonly _tag: "Detach";
517
528
  } | {
518
529
  readonly _tag: "Retry";
530
+ }) => import("effect/Unify").Unify<ReturnType<Cases["Attach" | "Connect" | "Detach" | "Retry"]>>;
531
+ <Cases extends { readonly [Tag in "Attach" | "Connect" | "Detach" | "Retry"]: (args: Extract<{
532
+ readonly _tag: "Attach";
533
+ readonly connectionId: string;
534
+ readonly target: Transport.ProviderTarget;
519
535
  } | {
520
- readonly _tag: "Reuse";
521
- }) => import("effect/Unify").Unify<ReturnType<Cases["Connect" | "Disconnect" | "Retry" | "Reuse"]>>;
522
- <Cases extends { readonly [Tag in "Connect" | "Disconnect" | "Retry" | "Reuse"]: (args: Extract<{
523
536
  readonly _tag: "Connect";
524
537
  readonly method: Transport.Method;
525
538
  } | {
526
- readonly _tag: "Disconnect";
539
+ readonly _tag: "Detach";
527
540
  } | {
528
541
  readonly _tag: "Retry";
529
- } | {
530
- readonly _tag: "Reuse";
531
542
  }, {
532
543
  readonly _tag: Tag;
533
544
  }>) => any; }>(value: {
545
+ readonly _tag: "Attach";
546
+ readonly connectionId: string;
547
+ readonly target: Transport.ProviderTarget;
548
+ } | {
534
549
  readonly _tag: "Connect";
535
550
  readonly method: Transport.Method;
536
551
  } | {
537
- readonly _tag: "Disconnect";
552
+ readonly _tag: "Detach";
538
553
  } | {
539
554
  readonly _tag: "Retry";
540
- } | {
541
- readonly _tag: "Reuse";
542
- }, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["Connect" | "Disconnect" | "Retry" | "Reuse"]>>;
555
+ }, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["Attach" | "Connect" | "Detach" | "Retry"]>>;
543
556
  };
557
+ readonly Attach: Data.TaggedEnum.ConstructorFrom<{
558
+ readonly _tag: "Attach";
559
+ readonly connectionId: string;
560
+ readonly target: Transport.ProviderTarget;
561
+ }, "_tag">;
544
562
  readonly Connect: Data.TaggedEnum.ConstructorFrom<{
545
563
  readonly _tag: "Connect";
546
564
  readonly method: Transport.Method;
547
565
  }, "_tag">;
548
- readonly Disconnect: Data.TaggedEnum.ConstructorFrom<{
549
- readonly _tag: "Disconnect";
566
+ readonly Detach: Data.TaggedEnum.ConstructorFrom<{
567
+ readonly _tag: "Detach";
550
568
  }, "_tag">;
551
569
  readonly Retry: Data.TaggedEnum.ConstructorFrom<{
552
570
  readonly _tag: "Retry";
553
571
  }, "_tag">;
554
- readonly Reuse: Data.TaggedEnum.ConstructorFrom<{
555
- readonly _tag: "Reuse";
556
- }, "_tag">;
557
572
  };
558
573
  interface Model$2 {
559
574
  readonly command: Atom.AtomResultFn<Command$2, void>;
@@ -585,18 +600,25 @@ interface ConnectTriggerProps extends Omit<TriggerProps, "children"> {
585
600
  declare function Trigger({ children, ...props }: TriggerProps): import("react/jsx-runtime").JSX.Element;
586
601
  declare function ConnectTrigger({ children, provider, ...props }: ConnectTriggerProps): import("react/jsx-runtime").JSX.Element;
587
602
  interface ActionState extends Record<string, unknown> {
588
- readonly authentication: "oauth" | "reuse" | "token";
603
+ readonly authentication: "attach" | "integration" | "oauth" | "token";
589
604
  }
590
605
  interface OAuthActionProps extends PartProps<"button", ActionState> {
591
606
  readonly controller: Controller$2;
592
607
  readonly label: string;
593
608
  }
594
609
  declare function OAuthAction({ controller, label, ...props }: OAuthActionProps): ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
595
- interface ReuseActionProps extends PartProps<"button", ActionState> {
610
+ interface IntegrationActionProps extends PartProps<"button", ActionState> {
611
+ readonly controller: Controller$2;
612
+ readonly label: string;
613
+ }
614
+ declare function IntegrationAction({ controller, label, ...props }: IntegrationActionProps): ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
615
+ interface AttachActionProps extends PartProps<"button", ActionState> {
616
+ readonly connection: Transport.ReusableConnection;
596
617
  readonly controller: Controller$2;
597
618
  readonly label: string;
619
+ readonly target: Transport.ProviderTarget;
598
620
  }
599
- declare function ReuseAction({ controller, label, ...props }: ReuseActionProps): ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
621
+ declare function AttachAction({ connection, controller, label, target, ...props }: AttachActionProps): ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
600
622
  interface TokenActionProps extends Omit<PartProps<"form", ActionState>, "method"> {
601
623
  readonly controller: Controller$2;
602
624
  readonly method: Extract<Transport.AuthenticationMethod, {
@@ -608,6 +630,7 @@ interface DialogProps$1 {
608
630
  readonly controller: Controller$2;
609
631
  readonly snapshot: Disconnected;
610
632
  }
633
+ declare const targetLabel: (target: Transport.ProviderTarget) => string;
611
634
  declare function Dialog$2({ controller, snapshot }: DialogProps$1): import("react/jsx-runtime").JSX.Element;
612
635
  interface FlowProps$2 extends Omit<RootProps$5, "children"> {
613
636
  readonly domain: string;
@@ -670,11 +693,11 @@ declare namespace lifecycle_d_exports {
670
693
  type Event = Data.TaggedEnum<{
671
694
  ConnectionEstablished: {
672
695
  readonly connection: Transport.Connected;
673
- readonly source: "connect" | "reuse";
696
+ readonly source: "attach" | "connect";
674
697
  };
675
- DomainDisconnected: {
698
+ DomainDetached: {
676
699
  readonly connection: Transport.Connected;
677
- readonly result: Transport.RemoveDomainResult;
700
+ readonly result: Transport.DetachResult;
678
701
  };
679
702
  RecordsApplied: {
680
703
  readonly connection: Transport.Connected;
@@ -702,16 +725,16 @@ type Event = Data.TaggedEnum<{
702
725
  };
703
726
  }>;
704
727
  declare const Event: {
705
- readonly $is: <Tag extends "ConnectionEstablished" | "DomainDisconnected" | "RecordsApplied" | "RecordsCleaned" | "RecordsPartiallyApplied" | "RecordsPartiallyCleaned">(tag: Tag) => (u: unknown) => u is Extract<{
728
+ readonly $is: <Tag extends "ConnectionEstablished" | "DomainDetached" | "RecordsApplied" | "RecordsCleaned" | "RecordsPartiallyApplied" | "RecordsPartiallyCleaned">(tag: Tag) => (u: unknown) => u is Extract<{
706
729
  readonly _tag: "ConnectionEstablished";
707
730
  readonly connection: Transport.Connected;
708
- readonly source: "connect" | "reuse";
731
+ readonly source: "attach" | "connect";
709
732
  }, {
710
733
  readonly _tag: Tag;
711
734
  }> | Extract<{
712
- readonly _tag: "DomainDisconnected";
735
+ readonly _tag: "DomainDetached";
713
736
  readonly connection: Transport.Connected;
714
- readonly result: Transport.RemoveDomainResult;
737
+ readonly result: Transport.DetachResult;
715
738
  }, {
716
739
  readonly _tag: Tag;
717
740
  }> | Extract<{
@@ -748,14 +771,14 @@ declare const Event: {
748
771
  readonly _tag: Tag;
749
772
  }>;
750
773
  readonly $match: {
751
- <Cases extends { readonly [Tag in "ConnectionEstablished" | "DomainDisconnected" | "RecordsApplied" | "RecordsCleaned" | "RecordsPartiallyApplied" | "RecordsPartiallyCleaned"]: (args: Extract<{
774
+ <Cases extends { readonly [Tag in "ConnectionEstablished" | "DomainDetached" | "RecordsApplied" | "RecordsCleaned" | "RecordsPartiallyApplied" | "RecordsPartiallyCleaned"]: (args: Extract<{
752
775
  readonly _tag: "ConnectionEstablished";
753
776
  readonly connection: Transport.Connected;
754
- readonly source: "connect" | "reuse";
777
+ readonly source: "attach" | "connect";
755
778
  } | {
756
- readonly _tag: "DomainDisconnected";
779
+ readonly _tag: "DomainDetached";
757
780
  readonly connection: Transport.Connected;
758
- readonly result: Transport.RemoveDomainResult;
781
+ readonly result: Transport.DetachResult;
759
782
  } | {
760
783
  readonly _tag: "RecordsApplied";
761
784
  readonly connection: Transport.Connected;
@@ -785,11 +808,11 @@ declare const Event: {
785
808
  }>) => any; }>(cases: Cases): (value: {
786
809
  readonly _tag: "ConnectionEstablished";
787
810
  readonly connection: Transport.Connected;
788
- readonly source: "connect" | "reuse";
811
+ readonly source: "attach" | "connect";
789
812
  } | {
790
- readonly _tag: "DomainDisconnected";
813
+ readonly _tag: "DomainDetached";
791
814
  readonly connection: Transport.Connected;
792
- readonly result: Transport.RemoveDomainResult;
815
+ readonly result: Transport.DetachResult;
793
816
  } | {
794
817
  readonly _tag: "RecordsApplied";
795
818
  readonly connection: Transport.Connected;
@@ -814,15 +837,15 @@ declare const Event: {
814
837
  readonly result: Extract<Transport.CleanupResult, {
815
838
  readonly _tag: "Partial";
816
839
  }>;
817
- }) => import("effect/Unify").Unify<ReturnType<Cases["ConnectionEstablished" | "DomainDisconnected" | "RecordsApplied" | "RecordsCleaned" | "RecordsPartiallyApplied" | "RecordsPartiallyCleaned"]>>;
818
- <Cases extends { readonly [Tag in "ConnectionEstablished" | "DomainDisconnected" | "RecordsApplied" | "RecordsCleaned" | "RecordsPartiallyApplied" | "RecordsPartiallyCleaned"]: (args: Extract<{
840
+ }) => import("effect/Unify").Unify<ReturnType<Cases["ConnectionEstablished" | "DomainDetached" | "RecordsApplied" | "RecordsCleaned" | "RecordsPartiallyApplied" | "RecordsPartiallyCleaned"]>>;
841
+ <Cases extends { readonly [Tag in "ConnectionEstablished" | "DomainDetached" | "RecordsApplied" | "RecordsCleaned" | "RecordsPartiallyApplied" | "RecordsPartiallyCleaned"]: (args: Extract<{
819
842
  readonly _tag: "ConnectionEstablished";
820
843
  readonly connection: Transport.Connected;
821
- readonly source: "connect" | "reuse";
844
+ readonly source: "attach" | "connect";
822
845
  } | {
823
- readonly _tag: "DomainDisconnected";
846
+ readonly _tag: "DomainDetached";
824
847
  readonly connection: Transport.Connected;
825
- readonly result: Transport.RemoveDomainResult;
848
+ readonly result: Transport.DetachResult;
826
849
  } | {
827
850
  readonly _tag: "RecordsApplied";
828
851
  readonly connection: Transport.Connected;
@@ -852,11 +875,11 @@ declare const Event: {
852
875
  }>) => any; }>(value: {
853
876
  readonly _tag: "ConnectionEstablished";
854
877
  readonly connection: Transport.Connected;
855
- readonly source: "connect" | "reuse";
878
+ readonly source: "attach" | "connect";
856
879
  } | {
857
- readonly _tag: "DomainDisconnected";
880
+ readonly _tag: "DomainDetached";
858
881
  readonly connection: Transport.Connected;
859
- readonly result: Transport.RemoveDomainResult;
882
+ readonly result: Transport.DetachResult;
860
883
  } | {
861
884
  readonly _tag: "RecordsApplied";
862
885
  readonly connection: Transport.Connected;
@@ -881,17 +904,17 @@ declare const Event: {
881
904
  readonly result: Extract<Transport.CleanupResult, {
882
905
  readonly _tag: "Partial";
883
906
  }>;
884
- }, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["ConnectionEstablished" | "DomainDisconnected" | "RecordsApplied" | "RecordsCleaned" | "RecordsPartiallyApplied" | "RecordsPartiallyCleaned"]>>;
907
+ }, cases: Cases): import("effect/Unify").Unify<ReturnType<Cases["ConnectionEstablished" | "DomainDetached" | "RecordsApplied" | "RecordsCleaned" | "RecordsPartiallyApplied" | "RecordsPartiallyCleaned"]>>;
885
908
  };
886
909
  readonly ConnectionEstablished: Data.TaggedEnum.ConstructorFrom<{
887
910
  readonly _tag: "ConnectionEstablished";
888
911
  readonly connection: Transport.Connected;
889
- readonly source: "connect" | "reuse";
912
+ readonly source: "attach" | "connect";
890
913
  }, "_tag">;
891
- readonly DomainDisconnected: Data.TaggedEnum.ConstructorFrom<{
892
- readonly _tag: "DomainDisconnected";
914
+ readonly DomainDetached: Data.TaggedEnum.ConstructorFrom<{
915
+ readonly _tag: "DomainDetached";
893
916
  readonly connection: Transport.Connected;
894
- readonly result: Transport.RemoveDomainResult;
917
+ readonly result: Transport.DetachResult;
895
918
  }, "_tag">;
896
919
  readonly RecordsApplied: Data.TaggedEnum.ConstructorFrom<{
897
920
  readonly _tag: "RecordsApplied";
@@ -948,6 +971,7 @@ interface Catalog {
948
971
  readonly disconnectDomain: string;
949
972
  readonly disconnectConsent: string;
950
973
  readonly disconnecting: string;
974
+ readonly detaching: string;
951
975
  readonly disconnectTitle: (provider: string) => string;
952
976
  readonly domainDisconnected: string;
953
977
  readonly dialogDescription: (domain: string) => string;
@@ -961,7 +985,9 @@ interface Catalog {
961
985
  readonly reviewCleanup: string;
962
986
  readonly reviewDns: string;
963
987
  readonly retry: string;
964
- readonly reuseConnection: (connection: string) => string;
988
+ readonly existingConnection: string;
989
+ readonly targetUnavailable: string;
990
+ readonly attachTarget: (target: string) => string;
965
991
  readonly tokenLabel: string;
966
992
  }
967
993
  declare const english: Catalog;
@@ -1412,13 +1438,13 @@ declare const downloadZoneFile: (domain: string, records: ReadonlyArray<Transpor
1412
1438
  type DnsRecord = Transport.DnsRecord;
1413
1439
  type ObservationEvidence = Transport.ObservationEvidence;
1414
1440
  declare namespace testing_d_exports {
1415
- export { FakeOptions, FakeTransport, makeFakeTransport, provider$1 as provider };
1441
+ export { FakeOptions, FakeTransport, attachment, connected, connection$1 as connection, makeFakeTransport, provider$1 as provider, target$1 as target };
1416
1442
  }
1417
1443
  interface FakeOptions {
1418
1444
  readonly connect?: Transport.ConnectionResult;
1419
1445
  readonly inspect: Transport.ConnectionSnapshot | FakeFailure | ReadonlyArray<Transport.ConnectionSnapshot | FakeFailure>;
1420
- readonly reuse?: Transport.Connected;
1421
- readonly removeDomain?: Transport.RemoveDomainResult;
1446
+ readonly attach?: Transport.Connected;
1447
+ readonly detach?: Transport.DetachResult;
1422
1448
  readonly plan?: Transport.ProvisioningPlan;
1423
1449
  readonly apply?: Transport.ApplyResult;
1424
1450
  readonly observe?: Transport.Observation;
@@ -1433,10 +1459,10 @@ interface FakeFailure {
1433
1459
  }
1434
1460
  interface FakeTransport extends Transport.AsyncInterface, Layer.Layer<Transport.Service> {
1435
1461
  readonly calls: {
1462
+ readonly attach: Array<Transport.AttachInput>;
1436
1463
  readonly connect: Array<Transport.ConnectInput>;
1464
+ readonly detach: Array<Transport.DetachInput>;
1437
1465
  readonly inspect: Array<Transport.InspectInput>;
1438
- readonly reuse: Array<Transport.ReuseInput>;
1439
- readonly removeDomain: Array<Transport.RemoveDomainInput>;
1440
1466
  readonly plan: Array<Transport.ProvisioningPlanInput>;
1441
1467
  readonly apply: Array<Transport.ProvisioningApplyInput>;
1442
1468
  readonly observe: Array<Transport.ObserveInput>;
@@ -1445,6 +1471,10 @@ interface FakeTransport extends Transport.AsyncInterface, Layer.Layer<Transport.
1445
1471
  };
1446
1472
  }
1447
1473
  declare const provider$1: (overrides?: Partial<Transport.Provider>) => Transport.Provider;
1474
+ declare const target$1: (overrides?: Partial<Transport.ProviderTarget>) => Transport.ProviderTarget;
1475
+ declare const connection$1: (overrides?: Partial<Transport.ProviderConnection>) => Transport.ProviderConnection;
1476
+ declare const attachment: (overrides?: Partial<Transport.DomainAttachment>) => Transport.DomainAttachment;
1477
+ declare const connected: (overrides?: Partial<Transport.Connected>) => Transport.Connected;
1448
1478
  declare function makeFakeTransport(options: FakeOptions): FakeTransport;
1449
1479
  declare namespace verification_d_exports {
1450
1480
  export { Command, Controller, Evidence, Model, Observation, ObserveAction, ObserveActionProps, ObserveConfig, Outcome, Root, RootProps, State, Status, StatusProps, useController, useModel };