@openfin/node-adapter 37.80.21 → 37.80.23
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/out/node-adapter-alpha.d.ts +8 -101
- package/out/node-adapter-beta.d.ts +8 -101
- package/out/node-adapter-public.d.ts +8 -101
- package/out/node-adapter.d.ts +9 -102
- package/out/node-adapter.js +73 -51
- package/package.json +1 -1
| @@ -74,7 +74,7 @@ declare type AlertRequestedEvent = BaseEvent_5 & { | |
| 74 74 |  | 
| 75 75 | 
             
            declare type AnchorType = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
         | 
| 76 76 |  | 
| 77 | 
            -
            declare type AnyStrategy =  | 
| 77 | 
            +
            declare type AnyStrategy = ChannelStrategy<any>;
         | 
| 78 78 |  | 
| 79 79 | 
             
            /**
         | 
| 80 80 | 
             
             * Configurations for API injection.
         | 
| @@ -2383,7 +2383,7 @@ declare type Channel_5 = OpenFin.Fin['InterApplicationBus']['Channel']; | |
| 2383 2383 |  | 
| 2384 2384 | 
             
            declare type ChannelAction = OpenFin.ChannelAction;
         | 
| 2385 2385 |  | 
| 2386 | 
            -
            declare type ChannelAction_2 = (payload: unknown, id:  | 
| 2386 | 
            +
            declare type ChannelAction_2 = (payload: unknown, id: ProviderIdentity_4 | ClientIdentity) => unknown;
         | 
| 2387 2387 |  | 
| 2388 2388 | 
             
            declare class ChannelBase {
         | 
| 2389 2389 | 
             
                protected subscriptions: Map<string, ChannelAction>;
         | 
| @@ -2797,7 +2797,7 @@ declare type ChannelEvent = Event_2; | |
| 2797 2797 |  | 
| 2798 2798 | 
             
            declare type ChannelMiddleware = OpenFin.ChannelMiddleware;
         | 
| 2799 2799 |  | 
| 2800 | 
            -
            declare type ChannelMiddleware_2 = (topic: string, payload: unknown, senderIdentity:  | 
| 2800 | 
            +
            declare type ChannelMiddleware_2 = (topic: string, payload: unknown, senderIdentity: ProviderIdentity_4 | ClientIdentity) => Promise<unknown> | unknown;
         | 
| 2801 2801 |  | 
| 2802 2802 | 
             
            /**
         | 
| 2803 2803 | 
             
             * Instance created to enable use of a channel as a provider. Allows for communication with the {@link ChannelClient ChannelClients} by invoking an action on
         | 
| @@ -2994,7 +2994,7 @@ declare class ChannelProvider extends ChannelBase { | |
| 2994 2994 | 
             
                private static clientIsMultiRuntime;
         | 
| 2995 2995 | 
             
            }
         | 
| 2996 2996 |  | 
| 2997 | 
            -
            declare type ChannelProviderDisconnectionListener = (identity:  | 
| 2997 | 
            +
            declare type ChannelProviderDisconnectionListener = (identity: ProviderIdentity_4) => any;
         | 
| 2998 2998 |  | 
| 2999 2999 | 
             
            declare interface ChannelStrategy<T extends unknown> {
         | 
| 3000 3000 | 
             
                onEndpointDisconnect(endpointId: string, listener: () => void): void;
         | 
| @@ -3056,23 +3056,6 @@ declare interface ClassicProtocolOffer extends ProtocolPacketBase { | |
| 3056 3056 | 
             
                type: 'classic';
         | 
| 3057 3057 | 
             
            }
         | 
| 3058 3058 |  | 
| 3059 | 
            -
            declare class ClassicStrategy implements ChannelStrategy<EndpointPayload> {
         | 
| 3060 | 
            -
                #private;
         | 
| 3061 | 
            -
                private messageReceiver;
         | 
| 3062 | 
            -
                private endpointId;
         | 
| 3063 | 
            -
                private providerIdentity;
         | 
| 3064 | 
            -
                constructor(wire: Transport, messageReceiver: MessageReceiver_2, endpointId: string, // Provider endpointId is channelId
         | 
| 3065 | 
            -
                providerIdentity: ProviderIdentity_4);
         | 
| 3066 | 
            -
                onEndpointDisconnect(endpointId: string, listener: () => void): void;
         | 
| 3067 | 
            -
                receive(listener: (action: string, payload: any, identity: OpenFin.ClientIdentity | OpenFin.ClientIdentityMultiRuntime | ProviderIdentity_4) => Promise<any>): void;
         | 
| 3068 | 
            -
                send: (endpointId: string, action: string, payload: any) => Promise<any>;
         | 
| 3069 | 
            -
                close: () => Promise<void>;
         | 
| 3070 | 
            -
                closeEndpoint(endpointId: string): Promise<void>;
         | 
| 3071 | 
            -
                isEndpointConnected(endpointId: string): boolean;
         | 
| 3072 | 
            -
                addEndpoint(endpointId: string, payload: EndpointPayload): void;
         | 
| 3073 | 
            -
                isValidEndpointPayload(payload: any): payload is EndpointPayload;
         | 
| 3074 | 
            -
            }
         | 
| 3075 | 
            -
             | 
| 3076 3059 | 
             
            /**
         | 
| 3077 3060 | 
             
             * @interface
         | 
| 3078 3061 | 
             
             */
         | 
| @@ -3428,21 +3411,6 @@ declare class ColumnOrRow extends LayoutNode { | |
| 3428 3411 | 
             
                getContent: () => Promise<(ColumnOrRow | TabStack)[]>;
         | 
| 3429 3412 | 
             
            }
         | 
| 3430 3413 |  | 
| 3431 | 
            -
            declare class CombinedStrategy<A, B> implements ChannelStrategy<OnlyIfCompatible<A, B>> {
         | 
| 3432 | 
            -
                private primary;
         | 
| 3433 | 
            -
                private secondary;
         | 
| 3434 | 
            -
                static combine<A, B>(a: ChannelStrategy<A>, b: ChannelStrategy<B>): OnlyIfCompatible<A, B> extends never ? never : CombinedStrategy<A, B>;
         | 
| 3435 | 
            -
                private constructor();
         | 
| 3436 | 
            -
                onEndpointDisconnect(endpointId: string, listener: () => void): void;
         | 
| 3437 | 
            -
                isValidEndpointPayload(payload: unknown): payload is OnlyIfCompatible<A, B>;
         | 
| 3438 | 
            -
                closeEndpoint(endpointId: string): Promise<void>;
         | 
| 3439 | 
            -
                isEndpointConnected(endpoint: string): boolean;
         | 
| 3440 | 
            -
                addEndpoint(endpoint: string, payload: OnlyIfCompatible<A, B>): Promise<void>;
         | 
| 3441 | 
            -
                receive(listener: (action: string, payload: any, identity: any) => Promise<any>): void;
         | 
| 3442 | 
            -
                send(endpointId: string, action: string, payload: any): Promise<any>;
         | 
| 3443 | 
            -
                close(): Promise<void>;
         | 
| 3444 | 
            -
            }
         | 
| 3445 | 
            -
             | 
| 3446 3414 | 
             
            declare interface ComponentConfig extends ItemConfig {
         | 
| 3447 3415 | 
             
                /**
         | 
| 3448 3416 | 
             
                 * The name of the component as specified in layout.registerComponent. Mandatory if type is 'component'.
         | 
| @@ -5126,12 +5094,6 @@ declare type EndLoadEvent = BaseEvent_5 & { | |
| 5126 5094 | 
             
                isMain: boolean;
         | 
| 5127 5095 | 
             
            };
         | 
| 5128 5096 |  | 
| 5129 | 
            -
            declare type EndpointIdentity = OpenFin.ClientIdentity | ProviderIdentity_3;
         | 
| 5130 | 
            -
             | 
| 5131 | 
            -
            declare type EndpointPayload = {
         | 
| 5132 | 
            -
                endpointIdentity: EndpointIdentity;
         | 
| 5133 | 
            -
            };
         | 
| 5134 | 
            -
             | 
| 5135 5097 | 
             
            /**
         | 
| 5136 5098 | 
             
             * Generated at the end of a user-driven change to a window's size or position.
         | 
| 5137 5099 | 
             
             * @interface
         | 
| @@ -5233,7 +5195,7 @@ declare type EnvironmentType = 'node' | 'openfin' | 'other'; | |
| 5233 5195 |  | 
| 5234 5196 | 
             
            declare type ErrorMiddleware = OpenFin.ErrorMiddleware;
         | 
| 5235 5197 |  | 
| 5236 | 
            -
            declare type ErrorMiddleware_2 = (topic: string, error: Error, id:  | 
| 5198 | 
            +
            declare type ErrorMiddleware_2 = (topic: string, error: Error, id: ProviderIdentity_4 | ClientIdentity) => unknown;
         | 
| 5237 5199 |  | 
| 5238 5200 | 
             
            /**
         | 
| 5239 5201 | 
             
             * This function converts JS errors into plain objects
         | 
| @@ -9381,17 +9343,6 @@ declare interface MessageReceiver { | |
| 9381 9343 | 
             
                readyState: FlexReadyState;
         | 
| 9382 9344 | 
             
            }
         | 
| 9383 9345 |  | 
| 9384 | 
            -
            declare class MessageReceiver_2 extends Base {
         | 
| 9385 | 
            -
                private endpointMap;
         | 
| 9386 | 
            -
                private latestEndpointIdByChannelId;
         | 
| 9387 | 
            -
                constructor(wire: Transport);
         | 
| 9388 | 
            -
                private processChannelMessage;
         | 
| 9389 | 
            -
                private onmessage;
         | 
| 9390 | 
            -
                addEndpoint(handler: ChannelBase['processAction'], channelId: string, endpointId: string): void;
         | 
| 9391 | 
            -
                removeEndpoint(channelId: string, endpointId: string): void;
         | 
| 9392 | 
            -
                checkForPreviousClientConnection(channelId: string): void;
         | 
| 9393 | 
            -
            }
         | 
| 9394 | 
            -
             | 
| 9395 9346 | 
             
            /**
         | 
| 9396 9347 | 
             
             * Protocol values for determining channel messaging strategy.
         | 
| 9397 9348 | 
             
             */
         | 
| @@ -9897,8 +9848,6 @@ declare type NotRespondingEvent = BaseEvents.IdentityEvent & { | |
| 9897 9848 | 
             
                type: 'not-responding';
         | 
| 9898 9849 | 
             
            };
         | 
| 9899 9850 |  | 
| 9900 | 
            -
            declare type OnlyIfCompatible<A, B, D = OverlapsOnlyIfMatching<A, B>> = D extends Record<any, never> ? keyof D extends never ? A | B : never : A | B;
         | 
| 9901 | 
            -
             | 
| 9902 9851 | 
             
            /**
         | 
| 9903 9852 | 
             
             * @interface
         | 
| 9904 9853 | 
             
             */
         | 
| @@ -10176,7 +10125,7 @@ declare namespace OpenFin { | |
| 10176 10125 | 
             
                    ContextForIntent,
         | 
| 10177 10126 | 
             
                    InfoForIntentOptions,
         | 
| 10178 10127 | 
             
                    FindIntentsByContextOptions,
         | 
| 10179 | 
            -
                     | 
| 10128 | 
            +
                    ProviderIdentity_4 as ProviderIdentity,
         | 
| 10180 10129 | 
             
                    RegisterUsageData,
         | 
| 10181 10130 | 
             
                    ViewsPreventingUnloadPayload,
         | 
| 10182 10131 | 
             
                    BeforeUnloadUserDecision,
         | 
| @@ -10278,10 +10227,6 @@ declare type OptionsChangedEvent = BaseEvent_5 & { | |
| 10278 10227 | 
             
                diff: OpenFin.WindowOptionDiff;
         | 
| 10279 10228 | 
             
            };
         | 
| 10280 10229 |  | 
| 10281 | 
            -
            declare type OverlapsOnlyIfMatching<T, U> = {
         | 
| 10282 | 
            -
                [K in Extract<keyof T, keyof U>]: U[K] extends T[K] ? U[K] : T[K] extends U[K] ? T[K] : never;
         | 
| 10283 | 
            -
            };
         | 
| 10284 | 
            -
             | 
| 10285 10230 | 
             
            declare type OverrideCallback<T extends any = PlatformProvider, U extends T = T> = (arg: Constructor<T>) => U | Promise<U>;
         | 
| 10286 10231 |  | 
| 10287 10232 | 
             
            /**
         | 
| @@ -10382,8 +10327,6 @@ declare type Payload_9<Type extends EventType_8> = Extract<Event_11, { | |
| 10382 10327 | 
             
                type: Type;
         | 
| 10383 10328 | 
             
            }>;
         | 
| 10384 10329 |  | 
| 10385 | 
            -
            declare type PayloadTypeByStrategy<T extends ChannelStrategy<unknown>> = T extends ChannelStrategy<infer U> ? U : never;
         | 
| 10386 | 
            -
             | 
| 10387 10330 | 
             
            /**
         | 
| 10388 10331 | 
             
             * Generated when window finishes loading. Provides performance and navigation data.
         | 
| 10389 10332 | 
             
             * @interface
         | 
| @@ -12530,17 +12473,11 @@ declare type ProviderIdentity_2 = OpenFin.ProviderIdentity; | |
| 12530 12473 |  | 
| 12531 12474 | 
             
            declare type ProviderIdentity_3 = OpenFin.ProviderIdentity;
         | 
| 12532 12475 |  | 
| 12533 | 
            -
            declare type ProviderIdentity_4 = OpenFin.ProviderIdentity;
         | 
| 12534 | 
            -
             | 
| 12535 | 
            -
            declare type ProviderIdentity_5 = OpenFin.ProviderIdentity;
         | 
| 12536 | 
            -
             | 
| 12537 | 
            -
            declare type ProviderIdentity_6 = OpenFin.ProviderIdentity;
         | 
| 12538 | 
            -
             | 
| 12539 12476 | 
             
            /**
         | 
| 12540 12477 | 
             
             * Identity of a channel provider.
         | 
| 12541 12478 | 
             
             * @interface
         | 
| 12542 12479 | 
             
             */
         | 
| 12543 | 
            -
            declare type  | 
| 12480 | 
            +
            declare type ProviderIdentity_4 = Identity_5 & {
         | 
| 12544 12481 | 
             
                /**
         | 
| 12545 12482 | 
             
                 * Identifier of the channel.
         | 
| 12546 12483 | 
             
                 */
         | 
| @@ -12872,21 +12809,10 @@ declare type RGB = { | |
| 12872 12809 | 
             
            /**
         | 
| 12873 12810 | 
             
             * @interface
         | 
| 12874 12811 | 
             
             */
         | 
| 12875 | 
            -
            declare type RoutingInfo =  | 
| 12812 | 
            +
            declare type RoutingInfo = ProviderIdentity_4 & {
         | 
| 12876 12813 | 
             
                endpointId: string;
         | 
| 12877 12814 | 
             
            };
         | 
| 12878 12815 |  | 
| 12879 | 
            -
            declare interface RTCEndpointChannels {
         | 
| 12880 | 
            -
                request: RTCDataChannel;
         | 
| 12881 | 
            -
                response: RTCDataChannel;
         | 
| 12882 | 
            -
            }
         | 
| 12883 | 
            -
             | 
| 12884 | 
            -
            declare interface RTCPacket {
         | 
| 12885 | 
            -
                rtcClient: RTCPeerConnection;
         | 
| 12886 | 
            -
                channels: RTCEndpointChannels;
         | 
| 12887 | 
            -
                channelsOpened: Promise<void>;
         | 
| 12888 | 
            -
            }
         | 
| 12889 | 
            -
             | 
| 12890 12816 | 
             
            declare interface RTCProtocolOffer extends ProtocolPacketBase {
         | 
| 12891 12817 | 
             
                type: 'rtc';
         | 
| 12892 12818 | 
             
                payload: {
         | 
| @@ -12895,25 +12821,6 @@ declare interface RTCProtocolOffer extends ProtocolPacketBase { | |
| 12895 12821 | 
             
                };
         | 
| 12896 12822 | 
             
            }
         | 
| 12897 12823 |  | 
| 12898 | 
            -
            declare class RTCStrategy implements ChannelStrategy<RTCStrategyEndpointPayload> {
         | 
| 12899 | 
            -
                #private;
         | 
| 12900 | 
            -
                onEndpointDisconnect(endpointId: string, listener: () => void): void;
         | 
| 12901 | 
            -
                receive(listener: (action: string, payload: any, identity: OpenFin.ClientIdentity | OpenFin.ClientIdentityMultiRuntime | ProviderIdentity_5) => Promise<any>): void;
         | 
| 12902 | 
            -
                send: (endpointId: string, action: string, payload: any) => Promise<any>;
         | 
| 12903 | 
            -
                close: () => Promise<void>;
         | 
| 12904 | 
            -
                private getEndpointById;
         | 
| 12905 | 
            -
                get connected(): boolean;
         | 
| 12906 | 
            -
                isEndpointConnected(endpointId: string): boolean;
         | 
| 12907 | 
            -
                addEndpoint(endpointId: string, payload: RTCStrategyEndpointPayload): void;
         | 
| 12908 | 
            -
                closeEndpoint(endpointId: string): Promise<void>;
         | 
| 12909 | 
            -
                isValidEndpointPayload(payload: any): payload is RTCStrategyEndpointPayload;
         | 
| 12910 | 
            -
            }
         | 
| 12911 | 
            -
             | 
| 12912 | 
            -
            declare interface RTCStrategyEndpointPayload {
         | 
| 12913 | 
            -
                endpointIdentity: OpenFin.ClientIdentity | ProviderIdentity_5;
         | 
| 12914 | 
            -
                rtc: RTCPacket;
         | 
| 12915 | 
            -
            }
         | 
| 12916 | 
            -
             | 
| 12917 12824 | 
             
            declare type RunRequestedEvent = OpenFin.ApplicationEvents.RunRequestedEvent;
         | 
| 12918 12825 |  | 
| 12919 12826 | 
             
            /**
         | 
| @@ -74,7 +74,7 @@ declare type AlertRequestedEvent = BaseEvent_5 & { | |
| 74 74 |  | 
| 75 75 | 
             
            declare type AnchorType = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
         | 
| 76 76 |  | 
| 77 | 
            -
            declare type AnyStrategy =  | 
| 77 | 
            +
            declare type AnyStrategy = ChannelStrategy<any>;
         | 
| 78 78 |  | 
| 79 79 | 
             
            /**
         | 
| 80 80 | 
             
             * Configurations for API injection.
         | 
| @@ -2383,7 +2383,7 @@ declare type Channel_5 = OpenFin.Fin['InterApplicationBus']['Channel']; | |
| 2383 2383 |  | 
| 2384 2384 | 
             
            declare type ChannelAction = OpenFin.ChannelAction;
         | 
| 2385 2385 |  | 
| 2386 | 
            -
            declare type ChannelAction_2 = (payload: unknown, id:  | 
| 2386 | 
            +
            declare type ChannelAction_2 = (payload: unknown, id: ProviderIdentity_4 | ClientIdentity) => unknown;
         | 
| 2387 2387 |  | 
| 2388 2388 | 
             
            declare class ChannelBase {
         | 
| 2389 2389 | 
             
                protected subscriptions: Map<string, ChannelAction>;
         | 
| @@ -2797,7 +2797,7 @@ declare type ChannelEvent = Event_2; | |
| 2797 2797 |  | 
| 2798 2798 | 
             
            declare type ChannelMiddleware = OpenFin.ChannelMiddleware;
         | 
| 2799 2799 |  | 
| 2800 | 
            -
            declare type ChannelMiddleware_2 = (topic: string, payload: unknown, senderIdentity:  | 
| 2800 | 
            +
            declare type ChannelMiddleware_2 = (topic: string, payload: unknown, senderIdentity: ProviderIdentity_4 | ClientIdentity) => Promise<unknown> | unknown;
         | 
| 2801 2801 |  | 
| 2802 2802 | 
             
            /**
         | 
| 2803 2803 | 
             
             * Instance created to enable use of a channel as a provider. Allows for communication with the {@link ChannelClient ChannelClients} by invoking an action on
         | 
| @@ -2994,7 +2994,7 @@ declare class ChannelProvider extends ChannelBase { | |
| 2994 2994 | 
             
                private static clientIsMultiRuntime;
         | 
| 2995 2995 | 
             
            }
         | 
| 2996 2996 |  | 
| 2997 | 
            -
            declare type ChannelProviderDisconnectionListener = (identity:  | 
| 2997 | 
            +
            declare type ChannelProviderDisconnectionListener = (identity: ProviderIdentity_4) => any;
         | 
| 2998 2998 |  | 
| 2999 2999 | 
             
            declare interface ChannelStrategy<T extends unknown> {
         | 
| 3000 3000 | 
             
                onEndpointDisconnect(endpointId: string, listener: () => void): void;
         | 
| @@ -3056,23 +3056,6 @@ declare interface ClassicProtocolOffer extends ProtocolPacketBase { | |
| 3056 3056 | 
             
                type: 'classic';
         | 
| 3057 3057 | 
             
            }
         | 
| 3058 3058 |  | 
| 3059 | 
            -
            declare class ClassicStrategy implements ChannelStrategy<EndpointPayload> {
         | 
| 3060 | 
            -
                #private;
         | 
| 3061 | 
            -
                private messageReceiver;
         | 
| 3062 | 
            -
                private endpointId;
         | 
| 3063 | 
            -
                private providerIdentity;
         | 
| 3064 | 
            -
                constructor(wire: Transport, messageReceiver: MessageReceiver_2, endpointId: string, // Provider endpointId is channelId
         | 
| 3065 | 
            -
                providerIdentity: ProviderIdentity_4);
         | 
| 3066 | 
            -
                onEndpointDisconnect(endpointId: string, listener: () => void): void;
         | 
| 3067 | 
            -
                receive(listener: (action: string, payload: any, identity: OpenFin.ClientIdentity | OpenFin.ClientIdentityMultiRuntime | ProviderIdentity_4) => Promise<any>): void;
         | 
| 3068 | 
            -
                send: (endpointId: string, action: string, payload: any) => Promise<any>;
         | 
| 3069 | 
            -
                close: () => Promise<void>;
         | 
| 3070 | 
            -
                closeEndpoint(endpointId: string): Promise<void>;
         | 
| 3071 | 
            -
                isEndpointConnected(endpointId: string): boolean;
         | 
| 3072 | 
            -
                addEndpoint(endpointId: string, payload: EndpointPayload): void;
         | 
| 3073 | 
            -
                isValidEndpointPayload(payload: any): payload is EndpointPayload;
         | 
| 3074 | 
            -
            }
         | 
| 3075 | 
            -
             | 
| 3076 3059 | 
             
            /**
         | 
| 3077 3060 | 
             
             * @interface
         | 
| 3078 3061 | 
             
             */
         | 
| @@ -3428,21 +3411,6 @@ declare class ColumnOrRow extends LayoutNode { | |
| 3428 3411 | 
             
                getContent: () => Promise<(ColumnOrRow | TabStack)[]>;
         | 
| 3429 3412 | 
             
            }
         | 
| 3430 3413 |  | 
| 3431 | 
            -
            declare class CombinedStrategy<A, B> implements ChannelStrategy<OnlyIfCompatible<A, B>> {
         | 
| 3432 | 
            -
                private primary;
         | 
| 3433 | 
            -
                private secondary;
         | 
| 3434 | 
            -
                static combine<A, B>(a: ChannelStrategy<A>, b: ChannelStrategy<B>): OnlyIfCompatible<A, B> extends never ? never : CombinedStrategy<A, B>;
         | 
| 3435 | 
            -
                private constructor();
         | 
| 3436 | 
            -
                onEndpointDisconnect(endpointId: string, listener: () => void): void;
         | 
| 3437 | 
            -
                isValidEndpointPayload(payload: unknown): payload is OnlyIfCompatible<A, B>;
         | 
| 3438 | 
            -
                closeEndpoint(endpointId: string): Promise<void>;
         | 
| 3439 | 
            -
                isEndpointConnected(endpoint: string): boolean;
         | 
| 3440 | 
            -
                addEndpoint(endpoint: string, payload: OnlyIfCompatible<A, B>): Promise<void>;
         | 
| 3441 | 
            -
                receive(listener: (action: string, payload: any, identity: any) => Promise<any>): void;
         | 
| 3442 | 
            -
                send(endpointId: string, action: string, payload: any): Promise<any>;
         | 
| 3443 | 
            -
                close(): Promise<void>;
         | 
| 3444 | 
            -
            }
         | 
| 3445 | 
            -
             | 
| 3446 3414 | 
             
            declare interface ComponentConfig extends ItemConfig {
         | 
| 3447 3415 | 
             
                /**
         | 
| 3448 3416 | 
             
                 * The name of the component as specified in layout.registerComponent. Mandatory if type is 'component'.
         | 
| @@ -5126,12 +5094,6 @@ declare type EndLoadEvent = BaseEvent_5 & { | |
| 5126 5094 | 
             
                isMain: boolean;
         | 
| 5127 5095 | 
             
            };
         | 
| 5128 5096 |  | 
| 5129 | 
            -
            declare type EndpointIdentity = OpenFin.ClientIdentity | ProviderIdentity_3;
         | 
| 5130 | 
            -
             | 
| 5131 | 
            -
            declare type EndpointPayload = {
         | 
| 5132 | 
            -
                endpointIdentity: EndpointIdentity;
         | 
| 5133 | 
            -
            };
         | 
| 5134 | 
            -
             | 
| 5135 5097 | 
             
            /**
         | 
| 5136 5098 | 
             
             * Generated at the end of a user-driven change to a window's size or position.
         | 
| 5137 5099 | 
             
             * @interface
         | 
| @@ -5233,7 +5195,7 @@ declare type EnvironmentType = 'node' | 'openfin' | 'other'; | |
| 5233 5195 |  | 
| 5234 5196 | 
             
            declare type ErrorMiddleware = OpenFin.ErrorMiddleware;
         | 
| 5235 5197 |  | 
| 5236 | 
            -
            declare type ErrorMiddleware_2 = (topic: string, error: Error, id:  | 
| 5198 | 
            +
            declare type ErrorMiddleware_2 = (topic: string, error: Error, id: ProviderIdentity_4 | ClientIdentity) => unknown;
         | 
| 5237 5199 |  | 
| 5238 5200 | 
             
            /**
         | 
| 5239 5201 | 
             
             * This function converts JS errors into plain objects
         | 
| @@ -9381,17 +9343,6 @@ declare interface MessageReceiver { | |
| 9381 9343 | 
             
                readyState: FlexReadyState;
         | 
| 9382 9344 | 
             
            }
         | 
| 9383 9345 |  | 
| 9384 | 
            -
            declare class MessageReceiver_2 extends Base {
         | 
| 9385 | 
            -
                private endpointMap;
         | 
| 9386 | 
            -
                private latestEndpointIdByChannelId;
         | 
| 9387 | 
            -
                constructor(wire: Transport);
         | 
| 9388 | 
            -
                private processChannelMessage;
         | 
| 9389 | 
            -
                private onmessage;
         | 
| 9390 | 
            -
                addEndpoint(handler: ChannelBase['processAction'], channelId: string, endpointId: string): void;
         | 
| 9391 | 
            -
                removeEndpoint(channelId: string, endpointId: string): void;
         | 
| 9392 | 
            -
                checkForPreviousClientConnection(channelId: string): void;
         | 
| 9393 | 
            -
            }
         | 
| 9394 | 
            -
             | 
| 9395 9346 | 
             
            /**
         | 
| 9396 9347 | 
             
             * Protocol values for determining channel messaging strategy.
         | 
| 9397 9348 | 
             
             */
         | 
| @@ -9897,8 +9848,6 @@ declare type NotRespondingEvent = BaseEvents.IdentityEvent & { | |
| 9897 9848 | 
             
                type: 'not-responding';
         | 
| 9898 9849 | 
             
            };
         | 
| 9899 9850 |  | 
| 9900 | 
            -
            declare type OnlyIfCompatible<A, B, D = OverlapsOnlyIfMatching<A, B>> = D extends Record<any, never> ? keyof D extends never ? A | B : never : A | B;
         | 
| 9901 | 
            -
             | 
| 9902 9851 | 
             
            /**
         | 
| 9903 9852 | 
             
             * @interface
         | 
| 9904 9853 | 
             
             */
         | 
| @@ -10176,7 +10125,7 @@ declare namespace OpenFin { | |
| 10176 10125 | 
             
                    ContextForIntent,
         | 
| 10177 10126 | 
             
                    InfoForIntentOptions,
         | 
| 10178 10127 | 
             
                    FindIntentsByContextOptions,
         | 
| 10179 | 
            -
                     | 
| 10128 | 
            +
                    ProviderIdentity_4 as ProviderIdentity,
         | 
| 10180 10129 | 
             
                    RegisterUsageData,
         | 
| 10181 10130 | 
             
                    ViewsPreventingUnloadPayload,
         | 
| 10182 10131 | 
             
                    BeforeUnloadUserDecision,
         | 
| @@ -10278,10 +10227,6 @@ declare type OptionsChangedEvent = BaseEvent_5 & { | |
| 10278 10227 | 
             
                diff: OpenFin.WindowOptionDiff;
         | 
| 10279 10228 | 
             
            };
         | 
| 10280 10229 |  | 
| 10281 | 
            -
            declare type OverlapsOnlyIfMatching<T, U> = {
         | 
| 10282 | 
            -
                [K in Extract<keyof T, keyof U>]: U[K] extends T[K] ? U[K] : T[K] extends U[K] ? T[K] : never;
         | 
| 10283 | 
            -
            };
         | 
| 10284 | 
            -
             | 
| 10285 10230 | 
             
            declare type OverrideCallback<T extends any = PlatformProvider, U extends T = T> = (arg: Constructor<T>) => U | Promise<U>;
         | 
| 10286 10231 |  | 
| 10287 10232 | 
             
            /**
         | 
| @@ -10382,8 +10327,6 @@ declare type Payload_9<Type extends EventType_8> = Extract<Event_11, { | |
| 10382 10327 | 
             
                type: Type;
         | 
| 10383 10328 | 
             
            }>;
         | 
| 10384 10329 |  | 
| 10385 | 
            -
            declare type PayloadTypeByStrategy<T extends ChannelStrategy<unknown>> = T extends ChannelStrategy<infer U> ? U : never;
         | 
| 10386 | 
            -
             | 
| 10387 10330 | 
             
            /**
         | 
| 10388 10331 | 
             
             * Generated when window finishes loading. Provides performance and navigation data.
         | 
| 10389 10332 | 
             
             * @interface
         | 
| @@ -12530,17 +12473,11 @@ declare type ProviderIdentity_2 = OpenFin.ProviderIdentity; | |
| 12530 12473 |  | 
| 12531 12474 | 
             
            declare type ProviderIdentity_3 = OpenFin.ProviderIdentity;
         | 
| 12532 12475 |  | 
| 12533 | 
            -
            declare type ProviderIdentity_4 = OpenFin.ProviderIdentity;
         | 
| 12534 | 
            -
             | 
| 12535 | 
            -
            declare type ProviderIdentity_5 = OpenFin.ProviderIdentity;
         | 
| 12536 | 
            -
             | 
| 12537 | 
            -
            declare type ProviderIdentity_6 = OpenFin.ProviderIdentity;
         | 
| 12538 | 
            -
             | 
| 12539 12476 | 
             
            /**
         | 
| 12540 12477 | 
             
             * Identity of a channel provider.
         | 
| 12541 12478 | 
             
             * @interface
         | 
| 12542 12479 | 
             
             */
         | 
| 12543 | 
            -
            declare type  | 
| 12480 | 
            +
            declare type ProviderIdentity_4 = Identity_5 & {
         | 
| 12544 12481 | 
             
                /**
         | 
| 12545 12482 | 
             
                 * Identifier of the channel.
         | 
| 12546 12483 | 
             
                 */
         | 
| @@ -12872,21 +12809,10 @@ declare type RGB = { | |
| 12872 12809 | 
             
            /**
         | 
| 12873 12810 | 
             
             * @interface
         | 
| 12874 12811 | 
             
             */
         | 
| 12875 | 
            -
            declare type RoutingInfo =  | 
| 12812 | 
            +
            declare type RoutingInfo = ProviderIdentity_4 & {
         | 
| 12876 12813 | 
             
                endpointId: string;
         | 
| 12877 12814 | 
             
            };
         | 
| 12878 12815 |  | 
| 12879 | 
            -
            declare interface RTCEndpointChannels {
         | 
| 12880 | 
            -
                request: RTCDataChannel;
         | 
| 12881 | 
            -
                response: RTCDataChannel;
         | 
| 12882 | 
            -
            }
         | 
| 12883 | 
            -
             | 
| 12884 | 
            -
            declare interface RTCPacket {
         | 
| 12885 | 
            -
                rtcClient: RTCPeerConnection;
         | 
| 12886 | 
            -
                channels: RTCEndpointChannels;
         | 
| 12887 | 
            -
                channelsOpened: Promise<void>;
         | 
| 12888 | 
            -
            }
         | 
| 12889 | 
            -
             | 
| 12890 12816 | 
             
            declare interface RTCProtocolOffer extends ProtocolPacketBase {
         | 
| 12891 12817 | 
             
                type: 'rtc';
         | 
| 12892 12818 | 
             
                payload: {
         | 
| @@ -12895,25 +12821,6 @@ declare interface RTCProtocolOffer extends ProtocolPacketBase { | |
| 12895 12821 | 
             
                };
         | 
| 12896 12822 | 
             
            }
         | 
| 12897 12823 |  | 
| 12898 | 
            -
            declare class RTCStrategy implements ChannelStrategy<RTCStrategyEndpointPayload> {
         | 
| 12899 | 
            -
                #private;
         | 
| 12900 | 
            -
                onEndpointDisconnect(endpointId: string, listener: () => void): void;
         | 
| 12901 | 
            -
                receive(listener: (action: string, payload: any, identity: OpenFin.ClientIdentity | OpenFin.ClientIdentityMultiRuntime | ProviderIdentity_5) => Promise<any>): void;
         | 
| 12902 | 
            -
                send: (endpointId: string, action: string, payload: any) => Promise<any>;
         | 
| 12903 | 
            -
                close: () => Promise<void>;
         | 
| 12904 | 
            -
                private getEndpointById;
         | 
| 12905 | 
            -
                get connected(): boolean;
         | 
| 12906 | 
            -
                isEndpointConnected(endpointId: string): boolean;
         | 
| 12907 | 
            -
                addEndpoint(endpointId: string, payload: RTCStrategyEndpointPayload): void;
         | 
| 12908 | 
            -
                closeEndpoint(endpointId: string): Promise<void>;
         | 
| 12909 | 
            -
                isValidEndpointPayload(payload: any): payload is RTCStrategyEndpointPayload;
         | 
| 12910 | 
            -
            }
         | 
| 12911 | 
            -
             | 
| 12912 | 
            -
            declare interface RTCStrategyEndpointPayload {
         | 
| 12913 | 
            -
                endpointIdentity: OpenFin.ClientIdentity | ProviderIdentity_5;
         | 
| 12914 | 
            -
                rtc: RTCPacket;
         | 
| 12915 | 
            -
            }
         | 
| 12916 | 
            -
             | 
| 12917 12824 | 
             
            declare type RunRequestedEvent = OpenFin.ApplicationEvents.RunRequestedEvent;
         | 
| 12918 12825 |  | 
| 12919 12826 | 
             
            /**
         | 
| @@ -74,7 +74,7 @@ declare type AlertRequestedEvent = BaseEvent_5 & { | |
| 74 74 |  | 
| 75 75 | 
             
            declare type AnchorType = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
         | 
| 76 76 |  | 
| 77 | 
            -
            declare type AnyStrategy =  | 
| 77 | 
            +
            declare type AnyStrategy = ChannelStrategy<any>;
         | 
| 78 78 |  | 
| 79 79 | 
             
            /**
         | 
| 80 80 | 
             
             * Configurations for API injection.
         | 
| @@ -2383,7 +2383,7 @@ declare type Channel_5 = OpenFin.Fin['InterApplicationBus']['Channel']; | |
| 2383 2383 |  | 
| 2384 2384 | 
             
            declare type ChannelAction = OpenFin.ChannelAction;
         | 
| 2385 2385 |  | 
| 2386 | 
            -
            declare type ChannelAction_2 = (payload: unknown, id:  | 
| 2386 | 
            +
            declare type ChannelAction_2 = (payload: unknown, id: ProviderIdentity_4 | ClientIdentity) => unknown;
         | 
| 2387 2387 |  | 
| 2388 2388 | 
             
            declare class ChannelBase {
         | 
| 2389 2389 | 
             
                protected subscriptions: Map<string, ChannelAction>;
         | 
| @@ -2797,7 +2797,7 @@ declare type ChannelEvent = Event_2; | |
| 2797 2797 |  | 
| 2798 2798 | 
             
            declare type ChannelMiddleware = OpenFin.ChannelMiddleware;
         | 
| 2799 2799 |  | 
| 2800 | 
            -
            declare type ChannelMiddleware_2 = (topic: string, payload: unknown, senderIdentity:  | 
| 2800 | 
            +
            declare type ChannelMiddleware_2 = (topic: string, payload: unknown, senderIdentity: ProviderIdentity_4 | ClientIdentity) => Promise<unknown> | unknown;
         | 
| 2801 2801 |  | 
| 2802 2802 | 
             
            /**
         | 
| 2803 2803 | 
             
             * Instance created to enable use of a channel as a provider. Allows for communication with the {@link ChannelClient ChannelClients} by invoking an action on
         | 
| @@ -2994,7 +2994,7 @@ declare class ChannelProvider extends ChannelBase { | |
| 2994 2994 | 
             
                private static clientIsMultiRuntime;
         | 
| 2995 2995 | 
             
            }
         | 
| 2996 2996 |  | 
| 2997 | 
            -
            declare type ChannelProviderDisconnectionListener = (identity:  | 
| 2997 | 
            +
            declare type ChannelProviderDisconnectionListener = (identity: ProviderIdentity_4) => any;
         | 
| 2998 2998 |  | 
| 2999 2999 | 
             
            declare interface ChannelStrategy<T extends unknown> {
         | 
| 3000 3000 | 
             
                onEndpointDisconnect(endpointId: string, listener: () => void): void;
         | 
| @@ -3056,23 +3056,6 @@ declare interface ClassicProtocolOffer extends ProtocolPacketBase { | |
| 3056 3056 | 
             
                type: 'classic';
         | 
| 3057 3057 | 
             
            }
         | 
| 3058 3058 |  | 
| 3059 | 
            -
            declare class ClassicStrategy implements ChannelStrategy<EndpointPayload> {
         | 
| 3060 | 
            -
                #private;
         | 
| 3061 | 
            -
                private messageReceiver;
         | 
| 3062 | 
            -
                private endpointId;
         | 
| 3063 | 
            -
                private providerIdentity;
         | 
| 3064 | 
            -
                constructor(wire: Transport, messageReceiver: MessageReceiver_2, endpointId: string, // Provider endpointId is channelId
         | 
| 3065 | 
            -
                providerIdentity: ProviderIdentity_4);
         | 
| 3066 | 
            -
                onEndpointDisconnect(endpointId: string, listener: () => void): void;
         | 
| 3067 | 
            -
                receive(listener: (action: string, payload: any, identity: OpenFin.ClientIdentity | OpenFin.ClientIdentityMultiRuntime | ProviderIdentity_4) => Promise<any>): void;
         | 
| 3068 | 
            -
                send: (endpointId: string, action: string, payload: any) => Promise<any>;
         | 
| 3069 | 
            -
                close: () => Promise<void>;
         | 
| 3070 | 
            -
                closeEndpoint(endpointId: string): Promise<void>;
         | 
| 3071 | 
            -
                isEndpointConnected(endpointId: string): boolean;
         | 
| 3072 | 
            -
                addEndpoint(endpointId: string, payload: EndpointPayload): void;
         | 
| 3073 | 
            -
                isValidEndpointPayload(payload: any): payload is EndpointPayload;
         | 
| 3074 | 
            -
            }
         | 
| 3075 | 
            -
             | 
| 3076 3059 | 
             
            /**
         | 
| 3077 3060 | 
             
             * @interface
         | 
| 3078 3061 | 
             
             */
         | 
| @@ -3428,21 +3411,6 @@ declare class ColumnOrRow extends LayoutNode { | |
| 3428 3411 | 
             
                getContent: () => Promise<(ColumnOrRow | TabStack)[]>;
         | 
| 3429 3412 | 
             
            }
         | 
| 3430 3413 |  | 
| 3431 | 
            -
            declare class CombinedStrategy<A, B> implements ChannelStrategy<OnlyIfCompatible<A, B>> {
         | 
| 3432 | 
            -
                private primary;
         | 
| 3433 | 
            -
                private secondary;
         | 
| 3434 | 
            -
                static combine<A, B>(a: ChannelStrategy<A>, b: ChannelStrategy<B>): OnlyIfCompatible<A, B> extends never ? never : CombinedStrategy<A, B>;
         | 
| 3435 | 
            -
                private constructor();
         | 
| 3436 | 
            -
                onEndpointDisconnect(endpointId: string, listener: () => void): void;
         | 
| 3437 | 
            -
                isValidEndpointPayload(payload: unknown): payload is OnlyIfCompatible<A, B>;
         | 
| 3438 | 
            -
                closeEndpoint(endpointId: string): Promise<void>;
         | 
| 3439 | 
            -
                isEndpointConnected(endpoint: string): boolean;
         | 
| 3440 | 
            -
                addEndpoint(endpoint: string, payload: OnlyIfCompatible<A, B>): Promise<void>;
         | 
| 3441 | 
            -
                receive(listener: (action: string, payload: any, identity: any) => Promise<any>): void;
         | 
| 3442 | 
            -
                send(endpointId: string, action: string, payload: any): Promise<any>;
         | 
| 3443 | 
            -
                close(): Promise<void>;
         | 
| 3444 | 
            -
            }
         | 
| 3445 | 
            -
             | 
| 3446 3414 | 
             
            declare interface ComponentConfig extends ItemConfig {
         | 
| 3447 3415 | 
             
                /**
         | 
| 3448 3416 | 
             
                 * The name of the component as specified in layout.registerComponent. Mandatory if type is 'component'.
         | 
| @@ -5126,12 +5094,6 @@ declare type EndLoadEvent = BaseEvent_5 & { | |
| 5126 5094 | 
             
                isMain: boolean;
         | 
| 5127 5095 | 
             
            };
         | 
| 5128 5096 |  | 
| 5129 | 
            -
            declare type EndpointIdentity = OpenFin.ClientIdentity | ProviderIdentity_3;
         | 
| 5130 | 
            -
             | 
| 5131 | 
            -
            declare type EndpointPayload = {
         | 
| 5132 | 
            -
                endpointIdentity: EndpointIdentity;
         | 
| 5133 | 
            -
            };
         | 
| 5134 | 
            -
             | 
| 5135 5097 | 
             
            /**
         | 
| 5136 5098 | 
             
             * Generated at the end of a user-driven change to a window's size or position.
         | 
| 5137 5099 | 
             
             * @interface
         | 
| @@ -5233,7 +5195,7 @@ declare type EnvironmentType = 'node' | 'openfin' | 'other'; | |
| 5233 5195 |  | 
| 5234 5196 | 
             
            declare type ErrorMiddleware = OpenFin.ErrorMiddleware;
         | 
| 5235 5197 |  | 
| 5236 | 
            -
            declare type ErrorMiddleware_2 = (topic: string, error: Error, id:  | 
| 5198 | 
            +
            declare type ErrorMiddleware_2 = (topic: string, error: Error, id: ProviderIdentity_4 | ClientIdentity) => unknown;
         | 
| 5237 5199 |  | 
| 5238 5200 | 
             
            /**
         | 
| 5239 5201 | 
             
             * This function converts JS errors into plain objects
         | 
| @@ -9381,17 +9343,6 @@ declare interface MessageReceiver { | |
| 9381 9343 | 
             
                readyState: FlexReadyState;
         | 
| 9382 9344 | 
             
            }
         | 
| 9383 9345 |  | 
| 9384 | 
            -
            declare class MessageReceiver_2 extends Base {
         | 
| 9385 | 
            -
                private endpointMap;
         | 
| 9386 | 
            -
                private latestEndpointIdByChannelId;
         | 
| 9387 | 
            -
                constructor(wire: Transport);
         | 
| 9388 | 
            -
                private processChannelMessage;
         | 
| 9389 | 
            -
                private onmessage;
         | 
| 9390 | 
            -
                addEndpoint(handler: ChannelBase['processAction'], channelId: string, endpointId: string): void;
         | 
| 9391 | 
            -
                removeEndpoint(channelId: string, endpointId: string): void;
         | 
| 9392 | 
            -
                checkForPreviousClientConnection(channelId: string): void;
         | 
| 9393 | 
            -
            }
         | 
| 9394 | 
            -
             | 
| 9395 9346 | 
             
            /**
         | 
| 9396 9347 | 
             
             * Protocol values for determining channel messaging strategy.
         | 
| 9397 9348 | 
             
             */
         | 
| @@ -9897,8 +9848,6 @@ declare type NotRespondingEvent = BaseEvents.IdentityEvent & { | |
| 9897 9848 | 
             
                type: 'not-responding';
         | 
| 9898 9849 | 
             
            };
         | 
| 9899 9850 |  | 
| 9900 | 
            -
            declare type OnlyIfCompatible<A, B, D = OverlapsOnlyIfMatching<A, B>> = D extends Record<any, never> ? keyof D extends never ? A | B : never : A | B;
         | 
| 9901 | 
            -
             | 
| 9902 9851 | 
             
            /**
         | 
| 9903 9852 | 
             
             * @interface
         | 
| 9904 9853 | 
             
             */
         | 
| @@ -10176,7 +10125,7 @@ declare namespace OpenFin { | |
| 10176 10125 | 
             
                    ContextForIntent,
         | 
| 10177 10126 | 
             
                    InfoForIntentOptions,
         | 
| 10178 10127 | 
             
                    FindIntentsByContextOptions,
         | 
| 10179 | 
            -
                     | 
| 10128 | 
            +
                    ProviderIdentity_4 as ProviderIdentity,
         | 
| 10180 10129 | 
             
                    RegisterUsageData,
         | 
| 10181 10130 | 
             
                    ViewsPreventingUnloadPayload,
         | 
| 10182 10131 | 
             
                    BeforeUnloadUserDecision,
         | 
| @@ -10278,10 +10227,6 @@ declare type OptionsChangedEvent = BaseEvent_5 & { | |
| 10278 10227 | 
             
                diff: OpenFin.WindowOptionDiff;
         | 
| 10279 10228 | 
             
            };
         | 
| 10280 10229 |  | 
| 10281 | 
            -
            declare type OverlapsOnlyIfMatching<T, U> = {
         | 
| 10282 | 
            -
                [K in Extract<keyof T, keyof U>]: U[K] extends T[K] ? U[K] : T[K] extends U[K] ? T[K] : never;
         | 
| 10283 | 
            -
            };
         | 
| 10284 | 
            -
             | 
| 10285 10230 | 
             
            declare type OverrideCallback<T extends any = PlatformProvider, U extends T = T> = (arg: Constructor<T>) => U | Promise<U>;
         | 
| 10286 10231 |  | 
| 10287 10232 | 
             
            /**
         | 
| @@ -10382,8 +10327,6 @@ declare type Payload_9<Type extends EventType_8> = Extract<Event_11, { | |
| 10382 10327 | 
             
                type: Type;
         | 
| 10383 10328 | 
             
            }>;
         | 
| 10384 10329 |  | 
| 10385 | 
            -
            declare type PayloadTypeByStrategy<T extends ChannelStrategy<unknown>> = T extends ChannelStrategy<infer U> ? U : never;
         | 
| 10386 | 
            -
             | 
| 10387 10330 | 
             
            /**
         | 
| 10388 10331 | 
             
             * Generated when window finishes loading. Provides performance and navigation data.
         | 
| 10389 10332 | 
             
             * @interface
         | 
| @@ -12530,17 +12473,11 @@ declare type ProviderIdentity_2 = OpenFin.ProviderIdentity; | |
| 12530 12473 |  | 
| 12531 12474 | 
             
            declare type ProviderIdentity_3 = OpenFin.ProviderIdentity;
         | 
| 12532 12475 |  | 
| 12533 | 
            -
            declare type ProviderIdentity_4 = OpenFin.ProviderIdentity;
         | 
| 12534 | 
            -
             | 
| 12535 | 
            -
            declare type ProviderIdentity_5 = OpenFin.ProviderIdentity;
         | 
| 12536 | 
            -
             | 
| 12537 | 
            -
            declare type ProviderIdentity_6 = OpenFin.ProviderIdentity;
         | 
| 12538 | 
            -
             | 
| 12539 12476 | 
             
            /**
         | 
| 12540 12477 | 
             
             * Identity of a channel provider.
         | 
| 12541 12478 | 
             
             * @interface
         | 
| 12542 12479 | 
             
             */
         | 
| 12543 | 
            -
            declare type  | 
| 12480 | 
            +
            declare type ProviderIdentity_4 = Identity_5 & {
         | 
| 12544 12481 | 
             
                /**
         | 
| 12545 12482 | 
             
                 * Identifier of the channel.
         | 
| 12546 12483 | 
             
                 */
         | 
| @@ -12872,21 +12809,10 @@ declare type RGB = { | |
| 12872 12809 | 
             
            /**
         | 
| 12873 12810 | 
             
             * @interface
         | 
| 12874 12811 | 
             
             */
         | 
| 12875 | 
            -
            declare type RoutingInfo =  | 
| 12812 | 
            +
            declare type RoutingInfo = ProviderIdentity_4 & {
         | 
| 12876 12813 | 
             
                endpointId: string;
         | 
| 12877 12814 | 
             
            };
         | 
| 12878 12815 |  | 
| 12879 | 
            -
            declare interface RTCEndpointChannels {
         | 
| 12880 | 
            -
                request: RTCDataChannel;
         | 
| 12881 | 
            -
                response: RTCDataChannel;
         | 
| 12882 | 
            -
            }
         | 
| 12883 | 
            -
             | 
| 12884 | 
            -
            declare interface RTCPacket {
         | 
| 12885 | 
            -
                rtcClient: RTCPeerConnection;
         | 
| 12886 | 
            -
                channels: RTCEndpointChannels;
         | 
| 12887 | 
            -
                channelsOpened: Promise<void>;
         | 
| 12888 | 
            -
            }
         | 
| 12889 | 
            -
             | 
| 12890 12816 | 
             
            declare interface RTCProtocolOffer extends ProtocolPacketBase {
         | 
| 12891 12817 | 
             
                type: 'rtc';
         | 
| 12892 12818 | 
             
                payload: {
         | 
| @@ -12895,25 +12821,6 @@ declare interface RTCProtocolOffer extends ProtocolPacketBase { | |
| 12895 12821 | 
             
                };
         | 
| 12896 12822 | 
             
            }
         | 
| 12897 12823 |  | 
| 12898 | 
            -
            declare class RTCStrategy implements ChannelStrategy<RTCStrategyEndpointPayload> {
         | 
| 12899 | 
            -
                #private;
         | 
| 12900 | 
            -
                onEndpointDisconnect(endpointId: string, listener: () => void): void;
         | 
| 12901 | 
            -
                receive(listener: (action: string, payload: any, identity: OpenFin.ClientIdentity | OpenFin.ClientIdentityMultiRuntime | ProviderIdentity_5) => Promise<any>): void;
         | 
| 12902 | 
            -
                send: (endpointId: string, action: string, payload: any) => Promise<any>;
         | 
| 12903 | 
            -
                close: () => Promise<void>;
         | 
| 12904 | 
            -
                private getEndpointById;
         | 
| 12905 | 
            -
                get connected(): boolean;
         | 
| 12906 | 
            -
                isEndpointConnected(endpointId: string): boolean;
         | 
| 12907 | 
            -
                addEndpoint(endpointId: string, payload: RTCStrategyEndpointPayload): void;
         | 
| 12908 | 
            -
                closeEndpoint(endpointId: string): Promise<void>;
         | 
| 12909 | 
            -
                isValidEndpointPayload(payload: any): payload is RTCStrategyEndpointPayload;
         | 
| 12910 | 
            -
            }
         | 
| 12911 | 
            -
             | 
| 12912 | 
            -
            declare interface RTCStrategyEndpointPayload {
         | 
| 12913 | 
            -
                endpointIdentity: OpenFin.ClientIdentity | ProviderIdentity_5;
         | 
| 12914 | 
            -
                rtc: RTCPacket;
         | 
| 12915 | 
            -
            }
         | 
| 12916 | 
            -
             | 
| 12917 12824 | 
             
            declare type RunRequestedEvent = OpenFin.ApplicationEvents.RunRequestedEvent;
         | 
| 12918 12825 |  | 
| 12919 12826 | 
             
            /**
         | 
    
        package/out/node-adapter.d.ts
    CHANGED
    
    | @@ -74,7 +74,7 @@ declare type AlertRequestedEvent = BaseEvent_5 & { | |
| 74 74 |  | 
| 75 75 | 
             
            declare type AnchorType = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
         | 
| 76 76 |  | 
| 77 | 
            -
            declare type AnyStrategy =  | 
| 77 | 
            +
            declare type AnyStrategy = ChannelStrategy<any>;
         | 
| 78 78 |  | 
| 79 79 | 
             
            /**
         | 
| 80 80 | 
             
             * Configurations for API injection.
         | 
| @@ -2422,7 +2422,7 @@ declare type Channel_5 = OpenFin.Fin['InterApplicationBus']['Channel']; | |
| 2422 2422 |  | 
| 2423 2423 | 
             
            declare type ChannelAction = OpenFin.ChannelAction;
         | 
| 2424 2424 |  | 
| 2425 | 
            -
            declare type ChannelAction_2 = (payload: unknown, id:  | 
| 2425 | 
            +
            declare type ChannelAction_2 = (payload: unknown, id: ProviderIdentity_4 | ClientIdentity) => unknown;
         | 
| 2426 2426 |  | 
| 2427 2427 | 
             
            declare class ChannelBase {
         | 
| 2428 2428 | 
             
                protected subscriptions: Map<string, ChannelAction>;
         | 
| @@ -2846,7 +2846,7 @@ declare type ChannelEvent = Event_2; | |
| 2846 2846 |  | 
| 2847 2847 | 
             
            declare type ChannelMiddleware = OpenFin.ChannelMiddleware;
         | 
| 2848 2848 |  | 
| 2849 | 
            -
            declare type ChannelMiddleware_2 = (topic: string, payload: unknown, senderIdentity:  | 
| 2849 | 
            +
            declare type ChannelMiddleware_2 = (topic: string, payload: unknown, senderIdentity: ProviderIdentity_4 | ClientIdentity) => Promise<unknown> | unknown;
         | 
| 2850 2850 |  | 
| 2851 2851 | 
             
            /**
         | 
| 2852 2852 | 
             
             * Instance created to enable use of a channel as a provider. Allows for communication with the {@link ChannelClient ChannelClients} by invoking an action on
         | 
| @@ -2888,7 +2888,7 @@ declare class ChannelProvider extends ChannelBase { | |
| 2888 2888 | 
             
                /**
         | 
| 2889 2889 | 
             
                 * @internal
         | 
| 2890 2890 | 
             
                 */
         | 
| 2891 | 
            -
                constructor(providerIdentity:  | 
| 2891 | 
            +
                constructor(providerIdentity: ProviderIdentity_3, wire: Transport, strategy: AnyStrategy);
         | 
| 2892 2892 | 
             
                /**
         | 
| 2893 2893 | 
             
                 * Dispatch an action to a specified client. Returns a promise for the result of executing that action on the client side.
         | 
| 2894 2894 | 
             
                 *
         | 
| @@ -3046,7 +3046,7 @@ declare class ChannelProvider extends ChannelBase { | |
| 3046 3046 | 
             
                private static clientIsMultiRuntime;
         | 
| 3047 3047 | 
             
            }
         | 
| 3048 3048 |  | 
| 3049 | 
            -
            declare type ChannelProviderDisconnectionListener = (identity:  | 
| 3049 | 
            +
            declare type ChannelProviderDisconnectionListener = (identity: ProviderIdentity_4) => any;
         | 
| 3050 3050 |  | 
| 3051 3051 | 
             
            declare interface ChannelStrategy<T extends unknown> {
         | 
| 3052 3052 | 
             
                onEndpointDisconnect(endpointId: string, listener: () => void): void;
         | 
| @@ -3108,23 +3108,6 @@ declare interface ClassicProtocolOffer extends ProtocolPacketBase { | |
| 3108 3108 | 
             
                type: 'classic';
         | 
| 3109 3109 | 
             
            }
         | 
| 3110 3110 |  | 
| 3111 | 
            -
            declare class ClassicStrategy implements ChannelStrategy<EndpointPayload> {
         | 
| 3112 | 
            -
                #private;
         | 
| 3113 | 
            -
                private messageReceiver;
         | 
| 3114 | 
            -
                private endpointId;
         | 
| 3115 | 
            -
                private providerIdentity;
         | 
| 3116 | 
            -
                constructor(wire: Transport, messageReceiver: MessageReceiver_2, endpointId: string, // Provider endpointId is channelId
         | 
| 3117 | 
            -
                providerIdentity: ProviderIdentity_4);
         | 
| 3118 | 
            -
                onEndpointDisconnect(endpointId: string, listener: () => void): void;
         | 
| 3119 | 
            -
                receive(listener: (action: string, payload: any, identity: OpenFin.ClientIdentity | OpenFin.ClientIdentityMultiRuntime | ProviderIdentity_4) => Promise<any>): void;
         | 
| 3120 | 
            -
                send: (endpointId: string, action: string, payload: any) => Promise<any>;
         | 
| 3121 | 
            -
                close: () => Promise<void>;
         | 
| 3122 | 
            -
                closeEndpoint(endpointId: string): Promise<void>;
         | 
| 3123 | 
            -
                isEndpointConnected(endpointId: string): boolean;
         | 
| 3124 | 
            -
                addEndpoint(endpointId: string, payload: EndpointPayload): void;
         | 
| 3125 | 
            -
                isValidEndpointPayload(payload: any): payload is EndpointPayload;
         | 
| 3126 | 
            -
            }
         | 
| 3127 | 
            -
             | 
| 3128 3111 | 
             
            /**
         | 
| 3129 3112 | 
             
             * @interface
         | 
| 3130 3113 | 
             
             */
         | 
| @@ -3483,21 +3466,6 @@ declare class ColumnOrRow extends LayoutNode { | |
| 3483 3466 | 
             
                getContent: () => Promise<(ColumnOrRow | TabStack)[]>;
         | 
| 3484 3467 | 
             
            }
         | 
| 3485 3468 |  | 
| 3486 | 
            -
            declare class CombinedStrategy<A, B> implements ChannelStrategy<OnlyIfCompatible<A, B>> {
         | 
| 3487 | 
            -
                private primary;
         | 
| 3488 | 
            -
                private secondary;
         | 
| 3489 | 
            -
                static combine<A, B>(a: ChannelStrategy<A>, b: ChannelStrategy<B>): OnlyIfCompatible<A, B> extends never ? never : CombinedStrategy<A, B>;
         | 
| 3490 | 
            -
                private constructor();
         | 
| 3491 | 
            -
                onEndpointDisconnect(endpointId: string, listener: () => void): void;
         | 
| 3492 | 
            -
                isValidEndpointPayload(payload: unknown): payload is OnlyIfCompatible<A, B>;
         | 
| 3493 | 
            -
                closeEndpoint(endpointId: string): Promise<void>;
         | 
| 3494 | 
            -
                isEndpointConnected(endpoint: string): boolean;
         | 
| 3495 | 
            -
                addEndpoint(endpoint: string, payload: OnlyIfCompatible<A, B>): Promise<void>;
         | 
| 3496 | 
            -
                receive(listener: (action: string, payload: any, identity: any) => Promise<any>): void;
         | 
| 3497 | 
            -
                send(endpointId: string, action: string, payload: any): Promise<any>;
         | 
| 3498 | 
            -
                close(): Promise<void>;
         | 
| 3499 | 
            -
            }
         | 
| 3500 | 
            -
             | 
| 3501 3469 | 
             
            declare interface ComponentConfig extends ItemConfig {
         | 
| 3502 3470 | 
             
                /**
         | 
| 3503 3471 | 
             
                 * The name of the component as specified in layout.registerComponent. Mandatory if type is 'component'.
         | 
| @@ -5186,12 +5154,6 @@ declare type EndLoadEvent = BaseEvent_5 & { | |
| 5186 5154 | 
             
                isMain: boolean;
         | 
| 5187 5155 | 
             
            };
         | 
| 5188 5156 |  | 
| 5189 | 
            -
            declare type EndpointIdentity = OpenFin.ClientIdentity | ProviderIdentity_3;
         | 
| 5190 | 
            -
             | 
| 5191 | 
            -
            declare type EndpointPayload = {
         | 
| 5192 | 
            -
                endpointIdentity: EndpointIdentity;
         | 
| 5193 | 
            -
            };
         | 
| 5194 | 
            -
             | 
| 5195 5157 | 
             
            /**
         | 
| 5196 5158 | 
             
             * Generated at the end of a user-driven change to a window's size or position.
         | 
| 5197 5159 | 
             
             * @interface
         | 
| @@ -5293,7 +5255,7 @@ declare type EnvironmentType = 'node' | 'openfin' | 'other'; | |
| 5293 5255 |  | 
| 5294 5256 | 
             
            declare type ErrorMiddleware = OpenFin.ErrorMiddleware;
         | 
| 5295 5257 |  | 
| 5296 | 
            -
            declare type ErrorMiddleware_2 = (topic: string, error: Error, id:  | 
| 5258 | 
            +
            declare type ErrorMiddleware_2 = (topic: string, error: Error, id: ProviderIdentity_4 | ClientIdentity) => unknown;
         | 
| 5297 5259 |  | 
| 5298 5260 | 
             
            /**
         | 
| 5299 5261 | 
             
             * This function converts JS errors into plain objects
         | 
| @@ -9692,17 +9654,6 @@ declare interface MessageReceiver { | |
| 9692 9654 | 
             
                readyState: FlexReadyState;
         | 
| 9693 9655 | 
             
            }
         | 
| 9694 9656 |  | 
| 9695 | 
            -
            declare class MessageReceiver_2 extends Base {
         | 
| 9696 | 
            -
                private endpointMap;
         | 
| 9697 | 
            -
                private latestEndpointIdByChannelId;
         | 
| 9698 | 
            -
                constructor(wire: Transport);
         | 
| 9699 | 
            -
                private processChannelMessage;
         | 
| 9700 | 
            -
                private onmessage;
         | 
| 9701 | 
            -
                addEndpoint(handler: ChannelBase['processAction'], channelId: string, endpointId: string): void;
         | 
| 9702 | 
            -
                removeEndpoint(channelId: string, endpointId: string): void;
         | 
| 9703 | 
            -
                checkForPreviousClientConnection(channelId: string): void;
         | 
| 9704 | 
            -
            }
         | 
| 9705 | 
            -
             | 
| 9706 9657 | 
             
            /**
         | 
| 9707 9658 | 
             
             * Protocol values for determining channel messaging strategy.
         | 
| 9708 9659 | 
             
             */
         | 
| @@ -10230,8 +10181,6 @@ declare type NotRespondingEvent = BaseEvents.IdentityEvent & { | |
| 10230 10181 | 
             
                type: 'not-responding';
         | 
| 10231 10182 | 
             
            };
         | 
| 10232 10183 |  | 
| 10233 | 
            -
            declare type OnlyIfCompatible<A, B, D = OverlapsOnlyIfMatching<A, B>> = D extends Record<any, never> ? keyof D extends never ? A | B : never : A | B;
         | 
| 10234 | 
            -
             | 
| 10235 10184 | 
             
            /**
         | 
| 10236 10185 | 
             
             * @interface
         | 
| 10237 10186 | 
             
             */
         | 
| @@ -10509,7 +10458,7 @@ declare namespace OpenFin { | |
| 10509 10458 | 
             
                    ContextForIntent,
         | 
| 10510 10459 | 
             
                    InfoForIntentOptions,
         | 
| 10511 10460 | 
             
                    FindIntentsByContextOptions,
         | 
| 10512 | 
            -
                     | 
| 10461 | 
            +
                    ProviderIdentity_4 as ProviderIdentity,
         | 
| 10513 10462 | 
             
                    RegisterUsageData,
         | 
| 10514 10463 | 
             
                    ViewsPreventingUnloadPayload,
         | 
| 10515 10464 | 
             
                    BeforeUnloadUserDecision,
         | 
| @@ -10611,10 +10560,6 @@ declare type OptionsChangedEvent = BaseEvent_5 & { | |
| 10611 10560 | 
             
                diff: OpenFin.WindowOptionDiff;
         | 
| 10612 10561 | 
             
            };
         | 
| 10613 10562 |  | 
| 10614 | 
            -
            declare type OverlapsOnlyIfMatching<T, U> = {
         | 
| 10615 | 
            -
                [K in Extract<keyof T, keyof U>]: U[K] extends T[K] ? U[K] : T[K] extends U[K] ? T[K] : never;
         | 
| 10616 | 
            -
            };
         | 
| 10617 | 
            -
             | 
| 10618 10563 | 
             
            declare type OverrideCallback<T extends any = PlatformProvider, U extends T = T> = (arg: Constructor<T>) => U | Promise<U>;
         | 
| 10619 10564 |  | 
| 10620 10565 | 
             
            /**
         | 
| @@ -10715,8 +10660,6 @@ declare type Payload_9<Type extends EventType_8> = Extract<Event_11, { | |
| 10715 10660 | 
             
                type: Type;
         | 
| 10716 10661 | 
             
            }>;
         | 
| 10717 10662 |  | 
| 10718 | 
            -
            declare type PayloadTypeByStrategy<T extends ChannelStrategy<unknown>> = T extends ChannelStrategy<infer U> ? U : never;
         | 
| 10719 | 
            -
             | 
| 10720 10663 | 
             
            /**
         | 
| 10721 10664 | 
             
             * Generated when window finishes loading. Provides performance and navigation data.
         | 
| 10722 10665 | 
             
             * @interface
         | 
| @@ -12941,17 +12884,11 @@ declare type ProviderIdentity_2 = OpenFin.ProviderIdentity; | |
| 12941 12884 |  | 
| 12942 12885 | 
             
            declare type ProviderIdentity_3 = OpenFin.ProviderIdentity;
         | 
| 12943 12886 |  | 
| 12944 | 
            -
            declare type ProviderIdentity_4 = OpenFin.ProviderIdentity;
         | 
| 12945 | 
            -
             | 
| 12946 | 
            -
            declare type ProviderIdentity_5 = OpenFin.ProviderIdentity;
         | 
| 12947 | 
            -
             | 
| 12948 | 
            -
            declare type ProviderIdentity_6 = OpenFin.ProviderIdentity;
         | 
| 12949 | 
            -
             | 
| 12950 12887 | 
             
            /**
         | 
| 12951 12888 | 
             
             * Identity of a channel provider.
         | 
| 12952 12889 | 
             
             * @interface
         | 
| 12953 12890 | 
             
             */
         | 
| 12954 | 
            -
            declare type  | 
| 12891 | 
            +
            declare type ProviderIdentity_4 = Identity_5 & {
         | 
| 12955 12892 | 
             
                /**
         | 
| 12956 12893 | 
             
                 * Identifier of the channel.
         | 
| 12957 12894 | 
             
                 */
         | 
| @@ -13283,21 +13220,10 @@ declare type RGB = { | |
| 13283 13220 | 
             
            /**
         | 
| 13284 13221 | 
             
             * @interface
         | 
| 13285 13222 | 
             
             */
         | 
| 13286 | 
            -
            declare type RoutingInfo =  | 
| 13223 | 
            +
            declare type RoutingInfo = ProviderIdentity_4 & {
         | 
| 13287 13224 | 
             
                endpointId: string;
         | 
| 13288 13225 | 
             
            };
         | 
| 13289 13226 |  | 
| 13290 | 
            -
            declare interface RTCEndpointChannels {
         | 
| 13291 | 
            -
                request: RTCDataChannel;
         | 
| 13292 | 
            -
                response: RTCDataChannel;
         | 
| 13293 | 
            -
            }
         | 
| 13294 | 
            -
             | 
| 13295 | 
            -
            declare interface RTCPacket {
         | 
| 13296 | 
            -
                rtcClient: RTCPeerConnection;
         | 
| 13297 | 
            -
                channels: RTCEndpointChannels;
         | 
| 13298 | 
            -
                channelsOpened: Promise<void>;
         | 
| 13299 | 
            -
            }
         | 
| 13300 | 
            -
             | 
| 13301 13227 | 
             
            declare interface RTCProtocolOffer extends ProtocolPacketBase {
         | 
| 13302 13228 | 
             
                type: 'rtc';
         | 
| 13303 13229 | 
             
                payload: {
         | 
| @@ -13306,25 +13232,6 @@ declare interface RTCProtocolOffer extends ProtocolPacketBase { | |
| 13306 13232 | 
             
                };
         | 
| 13307 13233 | 
             
            }
         | 
| 13308 13234 |  | 
| 13309 | 
            -
            declare class RTCStrategy implements ChannelStrategy<RTCStrategyEndpointPayload> {
         | 
| 13310 | 
            -
                #private;
         | 
| 13311 | 
            -
                onEndpointDisconnect(endpointId: string, listener: () => void): void;
         | 
| 13312 | 
            -
                receive(listener: (action: string, payload: any, identity: OpenFin.ClientIdentity | OpenFin.ClientIdentityMultiRuntime | ProviderIdentity_5) => Promise<any>): void;
         | 
| 13313 | 
            -
                send: (endpointId: string, action: string, payload: any) => Promise<any>;
         | 
| 13314 | 
            -
                close: () => Promise<void>;
         | 
| 13315 | 
            -
                private getEndpointById;
         | 
| 13316 | 
            -
                get connected(): boolean;
         | 
| 13317 | 
            -
                isEndpointConnected(endpointId: string): boolean;
         | 
| 13318 | 
            -
                addEndpoint(endpointId: string, payload: RTCStrategyEndpointPayload): void;
         | 
| 13319 | 
            -
                closeEndpoint(endpointId: string): Promise<void>;
         | 
| 13320 | 
            -
                isValidEndpointPayload(payload: any): payload is RTCStrategyEndpointPayload;
         | 
| 13321 | 
            -
            }
         | 
| 13322 | 
            -
             | 
| 13323 | 
            -
            declare interface RTCStrategyEndpointPayload {
         | 
| 13324 | 
            -
                endpointIdentity: OpenFin.ClientIdentity | ProviderIdentity_5;
         | 
| 13325 | 
            -
                rtc: RTCPacket;
         | 
| 13326 | 
            -
            }
         | 
| 13327 | 
            -
             | 
| 13328 13235 | 
             
            declare type RunRequestedEvent = OpenFin.ApplicationEvents.RunRequestedEvent;
         | 
| 13329 13236 |  | 
| 13330 13237 | 
             
            /**
         | 
    
        package/out/node-adapter.js
    CHANGED
    
    | @@ -8028,7 +8028,7 @@ function exhaustiveCheck(value, allowed) { | |
| 8028 8028 | 
             
            }
         | 
| 8029 8029 | 
             
            exhaustive.exhaustiveCheck = exhaustiveCheck;
         | 
| 8030 8030 |  | 
| 8031 | 
            -
            var strategy$ | 
| 8031 | 
            +
            var strategy$3 = {};
         | 
| 8032 8032 |  | 
| 8033 8033 | 
             
            var __classPrivateFieldSet$a = (commonjsGlobal && commonjsGlobal.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
         | 
| 8034 8034 | 
             
                if (kind === "m") throw new TypeError("Private method is not writable");
         | 
| @@ -8042,8 +8042,8 @@ var __classPrivateFieldGet$c = (commonjsGlobal && commonjsGlobal.__classPrivateF | |
| 8042 8042 | 
             
                return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
         | 
| 8043 8043 | 
             
            };
         | 
| 8044 8044 | 
             
            var _ClassicStrategy_wire, _ClassicStrategy_endpointIdentityMap, _ClassicStrategy_pendingMessagesByEndpointId;
         | 
| 8045 | 
            -
            Object.defineProperty(strategy$ | 
| 8046 | 
            -
            strategy$ | 
| 8045 | 
            +
            Object.defineProperty(strategy$3, "__esModule", { value: true });
         | 
| 8046 | 
            +
            strategy$3.ClassicInfo = strategy$3.ClassicStrategy = void 0;
         | 
| 8047 8047 | 
             
            /*
         | 
| 8048 8048 | 
             
            This is used to abstract out ipc messaging from the channels implementation. It is only concerned with sending messages and registration with the MessageReceiver
         | 
| 8049 8049 | 
             
            */
         | 
| @@ -8123,12 +8123,12 @@ class ClassicStrategy { | |
| 8123 8123 | 
             
                        typeof payload?.endpointIdentity?.channelId === 'string');
         | 
| 8124 8124 | 
             
                }
         | 
| 8125 8125 | 
             
            }
         | 
| 8126 | 
            -
            strategy$ | 
| 8126 | 
            +
            strategy$3.ClassicStrategy = ClassicStrategy;
         | 
| 8127 8127 | 
             
            _ClassicStrategy_wire = new WeakMap(), _ClassicStrategy_endpointIdentityMap = new WeakMap(), _ClassicStrategy_pendingMessagesByEndpointId = new WeakMap();
         | 
| 8128 8128 | 
             
            // Arbitrarily starting at 5 to leave the door open to backfilling pre endpointId etc.
         | 
| 8129 | 
            -
            strategy$ | 
| 8129 | 
            +
            strategy$3.ClassicInfo = { version: 5, minimumVersion: 0, type: 'classic' };
         | 
| 8130 8130 |  | 
| 8131 | 
            -
            var strategy$ | 
| 8131 | 
            +
            var strategy$2 = {};
         | 
| 8132 8132 |  | 
| 8133 8133 | 
             
            var endpoint = {};
         | 
| 8134 8134 |  | 
| @@ -8167,9 +8167,19 @@ const errors_1$1 = errors; | |
| 8167 8167 | 
             
            This handles sending RTC messages between RTC connections over the request and response data channels.
         | 
| 8168 8168 | 
             
            */
         | 
| 8169 8169 | 
             
            class RTCEndpoint {
         | 
| 8170 | 
            -
                 | 
| 8171 | 
            -
                     | 
| 8172 | 
            -
             | 
| 8170 | 
            +
                static isValidEndpointPayload(payload) {
         | 
| 8171 | 
            +
                    const isObject = (x) => {
         | 
| 8172 | 
            +
                        return typeof x === 'object' && x !== null;
         | 
| 8173 | 
            +
                    };
         | 
| 8174 | 
            +
                    return (
         | 
| 8175 | 
            +
                    // TODO in factory PR:
         | 
| 8176 | 
            +
                    // payload.type === 'rtc' &&
         | 
| 8177 | 
            +
                    isObject(payload) &&
         | 
| 8178 | 
            +
                        isObject(payload.endpointIdentity) &&
         | 
| 8179 | 
            +
                        isObject(payload.rtc) &&
         | 
| 8180 | 
            +
                        typeof payload.endpointIdentity.endpointId === 'string');
         | 
| 8181 | 
            +
                }
         | 
| 8182 | 
            +
                constructor({ rtc, endpointIdentity }) {
         | 
| 8173 8183 | 
             
                    this.responseMap = new Map();
         | 
| 8174 8184 | 
             
                    _RTCEndpoint_processAction.set(this, null);
         | 
| 8175 8185 | 
             
                    _RTCEndpoint_disconnectListener.set(this, void 0);
         | 
| @@ -8197,6 +8207,8 @@ class RTCEndpoint { | |
| 8197 8207 | 
             
                        this.rtc.channels.response.close();
         | 
| 8198 8208 | 
             
                        this.rtc.rtcClient.close();
         | 
| 8199 8209 | 
             
                    };
         | 
| 8210 | 
            +
                    this.rtc = rtc;
         | 
| 8211 | 
            +
                    this.endpointIdentity = endpointIdentity;
         | 
| 8200 8212 | 
             
                    this.rtc.channels.response.addEventListener('message', (e) => {
         | 
| 8201 8213 | 
             
                        let { data } = e;
         | 
| 8202 8214 | 
             
                        if (e.data instanceof ArrayBuffer) {
         | 
| @@ -8287,6 +8299,8 @@ class RTCEndpoint { | |
| 8287 8299 | 
             
            endpoint.RTCEndpoint = RTCEndpoint;
         | 
| 8288 8300 | 
             
            _RTCEndpoint_processAction = new WeakMap(), _RTCEndpoint_disconnectListener = new WeakMap();
         | 
| 8289 8301 |  | 
| 8302 | 
            +
            var strategy$1 = {};
         | 
| 8303 | 
            +
             | 
| 8290 8304 | 
             
            var __classPrivateFieldGet$a = (commonjsGlobal && commonjsGlobal.__classPrivateFieldGet) || function (receiver, state, kind, f) {
         | 
| 8291 8305 | 
             
                if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
         | 
| 8292 8306 | 
             
                if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
         | 
| @@ -8298,79 +8312,87 @@ var __classPrivateFieldSet$8 = (commonjsGlobal && commonjsGlobal.__classPrivateF | |
| 8298 8312 | 
             
                if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
         | 
| 8299 8313 | 
             
                return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
         | 
| 8300 8314 | 
             
            };
         | 
| 8301 | 
            -
            var  | 
| 8315 | 
            +
            var _EndpointStrategy_processAction, _EndpointStrategy_endpointMap, _EndpointStrategy_connected;
         | 
| 8302 8316 | 
             
            Object.defineProperty(strategy$1, "__esModule", { value: true });
         | 
| 8303 | 
            -
            strategy$1. | 
| 8304 | 
            -
             | 
| 8305 | 
            -
             | 
| 8306 | 
            -
             | 
| 8307 | 
            -
             | 
| 8308 | 
            -
             | 
| 8309 | 
            -
             | 
| 8310 | 
            -
                     | 
| 8311 | 
            -
                     | 
| 8312 | 
            -
                    _RTCStrategy_connected.set(this, true);
         | 
| 8317 | 
            +
            strategy$1.EndpointStrategy = void 0;
         | 
| 8318 | 
            +
            class EndpointStrategy {
         | 
| 8319 | 
            +
                // Need to pass in validate endpoint separately from constructor because ts interfaces don't do well with static methods
         | 
| 8320 | 
            +
                constructor(EndpointType, validateEndpoint, StrategyName) {
         | 
| 8321 | 
            +
                    this.EndpointType = EndpointType;
         | 
| 8322 | 
            +
                    this.StrategyName = StrategyName;
         | 
| 8323 | 
            +
                    _EndpointStrategy_processAction.set(this, null);
         | 
| 8324 | 
            +
                    _EndpointStrategy_endpointMap.set(this, new Map());
         | 
| 8325 | 
            +
                    _EndpointStrategy_connected.set(this, true);
         | 
| 8313 8326 | 
             
                    this.send = async (endpointId, action, payload) => {
         | 
| 8314 8327 | 
             
                        return this.getEndpointById(endpointId).send(action, payload);
         | 
| 8315 8328 | 
             
                    };
         | 
| 8316 8329 | 
             
                    this.close = async () => {
         | 
| 8317 | 
            -
                        if (__classPrivateFieldGet$a(this,  | 
| 8318 | 
            -
                            __classPrivateFieldGet$a(this,  | 
| 8319 | 
            -
                            __classPrivateFieldSet$8(this,  | 
| 8330 | 
            +
                        if (__classPrivateFieldGet$a(this, _EndpointStrategy_connected, "f")) {
         | 
| 8331 | 
            +
                            __classPrivateFieldGet$a(this, _EndpointStrategy_endpointMap, "f").forEach((endpoint) => endpoint.close());
         | 
| 8332 | 
            +
                            __classPrivateFieldSet$8(this, _EndpointStrategy_endpointMap, new Map(), "f");
         | 
| 8320 8333 | 
             
                        }
         | 
| 8321 | 
            -
                        __classPrivateFieldSet$8(this,  | 
| 8334 | 
            +
                        __classPrivateFieldSet$8(this, _EndpointStrategy_connected, false, "f");
         | 
| 8322 8335 | 
             
                    };
         | 
| 8336 | 
            +
                    this.isValidEndpointPayload = validateEndpoint;
         | 
| 8323 8337 | 
             
                }
         | 
| 8324 8338 | 
             
                onEndpointDisconnect(endpointId, listener) {
         | 
| 8325 8339 | 
             
                    this.getEndpointById(endpointId).onDisconnect(listener);
         | 
| 8326 8340 | 
             
                }
         | 
| 8327 8341 | 
             
                receive(listener) {
         | 
| 8328 | 
            -
                    if (__classPrivateFieldGet$a(this,  | 
| 8329 | 
            -
                        throw new Error( | 
| 8342 | 
            +
                    if (__classPrivateFieldGet$a(this, _EndpointStrategy_processAction, "f")) {
         | 
| 8343 | 
            +
                        throw new Error(`You have already set a listener for this ${this.StrategyName} Strategy`);
         | 
| 8330 8344 | 
             
                    }
         | 
| 8331 | 
            -
                    __classPrivateFieldSet$8(this,  | 
| 8332 | 
            -
                     | 
| 8345 | 
            +
                    __classPrivateFieldSet$8(this, _EndpointStrategy_processAction, listener, "f");
         | 
| 8346 | 
            +
                    // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
         | 
| 8347 | 
            +
                    __classPrivateFieldGet$a(this, _EndpointStrategy_endpointMap, "f").forEach((endpoint) => endpoint.receive(__classPrivateFieldGet$a(this, _EndpointStrategy_processAction, "f")));
         | 
| 8333 8348 | 
             
                }
         | 
| 8334 8349 | 
             
                getEndpointById(endpointId) {
         | 
| 8335 | 
            -
                    const endpoint = __classPrivateFieldGet$a(this,  | 
| 8350 | 
            +
                    const endpoint = __classPrivateFieldGet$a(this, _EndpointStrategy_endpointMap, "f").get(endpointId);
         | 
| 8336 8351 | 
             
                    if (!endpoint) {
         | 
| 8337 8352 | 
             
                        throw new Error(`Client with endpoint id ${endpointId} is not connected`);
         | 
| 8338 8353 | 
             
                    }
         | 
| 8339 8354 | 
             
                    return endpoint;
         | 
| 8340 8355 | 
             
                }
         | 
| 8341 8356 | 
             
                get connected() {
         | 
| 8342 | 
            -
                    return __classPrivateFieldGet$a(this,  | 
| 8357 | 
            +
                    return __classPrivateFieldGet$a(this, _EndpointStrategy_connected, "f");
         | 
| 8343 8358 | 
             
                }
         | 
| 8344 8359 | 
             
                isEndpointConnected(endpointId) {
         | 
| 8345 | 
            -
                    return __classPrivateFieldGet$a(this,  | 
| 8360 | 
            +
                    return __classPrivateFieldGet$a(this, _EndpointStrategy_endpointMap, "f").has(endpointId);
         | 
| 8346 8361 | 
             
                }
         | 
| 8347 8362 | 
             
                addEndpoint(endpointId, payload) {
         | 
| 8348 | 
            -
                    if (!__classPrivateFieldGet$a(this,  | 
| 8349 | 
            -
                        console.warn( | 
| 8363 | 
            +
                    if (!__classPrivateFieldGet$a(this, _EndpointStrategy_connected, "f")) {
         | 
| 8364 | 
            +
                        console.warn(`Adding endpoint to disconnected ${this.StrategyName} Strategy`);
         | 
| 8350 8365 | 
             
                        return;
         | 
| 8351 8366 | 
             
                    }
         | 
| 8352 | 
            -
                    const clientStrat = new  | 
| 8353 | 
            -
                    if (__classPrivateFieldGet$a(this,  | 
| 8354 | 
            -
                        clientStrat.receive(__classPrivateFieldGet$a(this,  | 
| 8367 | 
            +
                    const clientStrat = new this.EndpointType(payload);
         | 
| 8368 | 
            +
                    if (__classPrivateFieldGet$a(this, _EndpointStrategy_processAction, "f")) {
         | 
| 8369 | 
            +
                        clientStrat.receive(__classPrivateFieldGet$a(this, _EndpointStrategy_processAction, "f"));
         | 
| 8355 8370 | 
             
                    }
         | 
| 8356 | 
            -
                    __classPrivateFieldGet$a(this,  | 
| 8371 | 
            +
                    __classPrivateFieldGet$a(this, _EndpointStrategy_endpointMap, "f").set(endpointId, clientStrat);
         | 
| 8357 8372 | 
             
                }
         | 
| 8358 8373 | 
             
                async closeEndpoint(endpointId) {
         | 
| 8359 | 
            -
                    __classPrivateFieldGet$a(this,  | 
| 8374 | 
            +
                    __classPrivateFieldGet$a(this, _EndpointStrategy_endpointMap, "f").delete(endpointId);
         | 
| 8360 8375 | 
             
                }
         | 
| 8361 | 
            -
             | 
| 8362 | 
            -
             | 
| 8363 | 
            -
             | 
| 8364 | 
            -
             | 
| 8365 | 
            -
             | 
| 8366 | 
            -
             | 
| 8367 | 
            -
             | 
| 8368 | 
            -
             | 
| 8376 | 
            +
            }
         | 
| 8377 | 
            +
            strategy$1.EndpointStrategy = EndpointStrategy;
         | 
| 8378 | 
            +
            _EndpointStrategy_processAction = new WeakMap(), _EndpointStrategy_endpointMap = new WeakMap(), _EndpointStrategy_connected = new WeakMap();
         | 
| 8379 | 
            +
             | 
| 8380 | 
            +
            Object.defineProperty(strategy$2, "__esModule", { value: true });
         | 
| 8381 | 
            +
            strategy$2.RTCInfo = strategy$2.RTCStrategy = void 0;
         | 
| 8382 | 
            +
            /* eslint-disable @typescript-eslint/no-unused-vars */
         | 
| 8383 | 
            +
            /* eslint-disable class-methods-use-this */
         | 
| 8384 | 
            +
            const endpoint_1 = endpoint;
         | 
| 8385 | 
            +
            const strategy_1$1 = strategy$1;
         | 
| 8386 | 
            +
            /*
         | 
| 8387 | 
            +
            This is used to abstract out rtc messaging from the channels implementation using RTCEndpoints.
         | 
| 8388 | 
            +
            */
         | 
| 8389 | 
            +
            class RTCStrategy extends strategy_1$1.EndpointStrategy {
         | 
| 8390 | 
            +
                constructor() {
         | 
| 8391 | 
            +
                    super(endpoint_1.RTCEndpoint, endpoint_1.RTCEndpoint.isValidEndpointPayload, 'RTC');
         | 
| 8369 8392 | 
             
                }
         | 
| 8370 8393 | 
             
            }
         | 
| 8371 | 
            -
            strategy$ | 
| 8372 | 
            -
             | 
| 8373 | 
            -
            strategy$1.RTCInfo = { version: 2, minimumVersion: 0, type: 'rtc' };
         | 
| 8394 | 
            +
            strategy$2.RTCStrategy = RTCStrategy;
         | 
| 8395 | 
            +
            strategy$2.RTCInfo = { version: 2, minimumVersion: 0, type: 'rtc' };
         | 
| 8374 8396 |  | 
| 8375 8397 | 
             
            var iceManager = {};
         | 
| 8376 8398 |  | 
| @@ -9061,8 +9083,8 @@ Object.defineProperty(connectionManager, "__esModule", { value: true }); | |
| 9061 9083 | 
             
            connectionManager.ConnectionManager = void 0;
         | 
| 9062 9084 | 
             
            const exhaustive_1 = exhaustive;
         | 
| 9063 9085 | 
             
            const base_1$g = base$1;
         | 
| 9064 | 
            -
            const strategy_1 = strategy$ | 
| 9065 | 
            -
            const strategy_2 = strategy$ | 
| 9086 | 
            +
            const strategy_1 = strategy$3;
         | 
| 9087 | 
            +
            const strategy_2 = strategy$2;
         | 
| 9066 9088 | 
             
            const ice_manager_1 = iceManager;
         | 
| 9067 9089 | 
             
            const provider_1$1 = provider;
         | 
| 9068 9090 | 
             
            const message_receiver_1 = messageReceiver$1;
         |