@openfin/fdc3-api 39.82.13 → 39.83.2

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.
@@ -99,7 +99,7 @@ declare type ApiInjection = DomainApiSettings;
99
99
  * Generated when a new Platform's API becomes responsive.
100
100
  * @interface
101
101
  */
102
- declare type ApiReadyEvent = BaseEvent & {
102
+ declare type ApiReadyEvent = BaseEvents.BaseEvent & {
103
103
  topic: 'application';
104
104
  type: 'platform-api-ready';
105
105
  };
@@ -911,7 +911,7 @@ declare namespace ApplicationEvents {
911
911
  PropagatedApplicationEvent,
912
912
  PropagatedEventType_3 as PropagatedEventType,
913
913
  PropagatedApplicationEventType,
914
- Payload_4 as Payload,
914
+ Payload_5 as Payload,
915
915
  ByType_3 as ByType
916
916
  }
917
917
  }
@@ -1704,7 +1704,7 @@ declare type BaseEvent_10 = Events.BaseEvents.BaseEvent;
1704
1704
  * A base Channel event.
1705
1705
  * @interface
1706
1706
  */
1707
- declare type BaseEvent_2 = NamedEvent & {
1707
+ declare type BaseEvent_2 = BaseEvents.NamedEvent & {
1708
1708
  channelName: string;
1709
1709
  channelId: string;
1710
1710
  };
@@ -1774,6 +1774,7 @@ declare namespace BaseEvents {
1774
1774
  NotCloseRequested,
1775
1775
  PropagatedEventType,
1776
1776
  PropagatedEvent,
1777
+ Payload_2 as Payload,
1777
1778
  EventHandler,
1778
1779
  BaseEvent,
1779
1780
  IdentityEvent,
@@ -1914,7 +1915,7 @@ declare type BrowserContentCreationRule = BaseContentCreationRule & {
1914
1915
  *
1915
1916
  * @typeParam Type String key specifying the event to extract
1916
1917
  */
1917
- declare type ByType<Type extends EventType> = Payload_2<Type>;
1918
+ declare type ByType<Type extends EventType> = Payload_3<Type>;
1918
1919
 
1919
1920
  /**
1920
1921
  * Extracts a single event type matching the given key from the Window {@link Event} union.
@@ -1923,7 +1924,7 @@ declare type ByType<Type extends EventType> = Payload_2<Type>;
1923
1924
  *
1924
1925
  * @typeParam Type String key specifying the event to extract
1925
1926
  */
1926
- declare type ByType_2<Type extends EventType_2> = Payload_3<Type>;
1927
+ declare type ByType_2<Type extends EventType_2> = Payload_4<Type>;
1927
1928
 
1928
1929
  /**
1929
1930
  * Extracts a single event type matching the given key from the Application {@link Event} union.
@@ -1932,7 +1933,7 @@ declare type ByType_2<Type extends EventType_2> = Payload_3<Type>;
1932
1933
  *
1933
1934
  * @typeParam Type String key specifying the event to extract
1934
1935
  */
1935
- declare type ByType_3<Type extends EventType_3> = Payload_4<Type>;
1936
+ declare type ByType_3<Type extends EventType_3> = Payload_5<Type>;
1936
1937
 
1937
1938
  /**
1938
1939
  * Extracts a single event type matching the given key from the ExternalApplication {@link Event} union.
@@ -1941,7 +1942,7 @@ declare type ByType_3<Type extends EventType_3> = Payload_4<Type>;
1941
1942
  *
1942
1943
  * @typeParam Type String key specifying the event to extract
1943
1944
  */
1944
- declare type ByType_4<Type extends EventType_4> = Payload_5<Type>;
1945
+ declare type ByType_4<Type extends EventType_4> = Payload_6<Type>;
1945
1946
 
1946
1947
  /**
1947
1948
  * Extracts a single event type matching the given key from the Frame {@link Event} union.
@@ -1950,7 +1951,7 @@ declare type ByType_4<Type extends EventType_4> = Payload_5<Type>;
1950
1951
  *
1951
1952
  * @typeParam Type String key specifying the event to extract
1952
1953
  */
1953
- declare type ByType_5<Type extends EventType_5> = Payload_6<Type>;
1954
+ declare type ByType_5<Type extends EventType_5> = Payload_7<Type>;
1954
1955
 
1955
1956
  /**
1956
1957
  * Extracts a single event type matching the given key from the GlobalHotkey {@link Event} union.
@@ -1959,7 +1960,7 @@ declare type ByType_5<Type extends EventType_5> = Payload_6<Type>;
1959
1960
  *
1960
1961
  * @typeParam Type String key specifying the event to extract
1961
1962
  */
1962
- declare type ByType_6<Type extends EventType_6> = Payload_7<Type>;
1963
+ declare type ByType_6<Type extends EventType_6> = Payload_8<Type>;
1963
1964
 
1964
1965
  /**
1965
1966
  * Extracts a single event type matching the given key from the Platform {@link Event} union.
@@ -1968,7 +1969,7 @@ declare type ByType_6<Type extends EventType_6> = Payload_7<Type>;
1968
1969
  *
1969
1970
  * @typeParam Type String key specifying the event to extract
1970
1971
  */
1971
- declare type ByType_7<Type extends EventType_7> = Payload_8<Type>;
1972
+ declare type ByType_7<Type extends EventType_7> = Payload_9<Type>;
1972
1973
 
1973
1974
  /**
1974
1975
  * Extracts a single event type matching the given key from the System {@link Event} union.
@@ -1977,7 +1978,7 @@ declare type ByType_7<Type extends EventType_7> = Payload_8<Type>;
1977
1978
  *
1978
1979
  * @typeParam Type String key specifying the event to extract
1979
1980
  */
1980
- declare type ByType_8<Type extends EventType_8> = Payload_9<Type>;
1981
+ declare type ByType_8<Type extends EventType_8> = Payload_10<Type>;
1981
1982
 
1982
1983
  /**
1983
1984
  * Extracts a single event type matching the given key from the Layout DOM {@link Event} union.
@@ -1986,7 +1987,7 @@ declare type ByType_8<Type extends EventType_8> = Payload_9<Type>;
1986
1987
  *
1987
1988
  * @typeParam Type String key specifying the event to extract
1988
1989
  */
1989
- declare type ByType_9<Type extends EventType_9> = Payload_10<Type>;
1990
+ declare type ByType_9<Type extends EventType_9> = Payload_11<Type>;
1990
1991
 
1991
1992
  /**
1992
1993
  * Configuration for page capture.
@@ -3698,6 +3699,7 @@ declare type ContainerCreatedEvent = LayoutDOMEvent & {
3698
3699
 
3699
3700
  /**
3700
3701
  * Generated when content navigation or redirection is blocked by {@link OpenFin.DomainSettings}.
3702
+ * @interface
3701
3703
  */
3702
3704
  declare type ContentBlockedEvent = NamedEvent & {
3703
3705
  type: 'content-blocked';
@@ -4802,9 +4804,7 @@ declare class EventAggregator extends EmitterMap {
4802
4804
  * @remarks Selects the correct type for the event
4803
4805
  * payload from the provided union based on the provided string literal type.
4804
4806
  */
4805
- declare type EventHandler<EmitterEvent extends BaseEvent, EventType extends string> = (payload: Extract<EmitterEvent, {
4806
- type: EventType;
4807
- }>, ...args: any[]) => void;
4807
+ declare type EventHandler<EmitterEvent extends BaseEvent, EventType extends string> = (payload: Payload_2<EmitterEvent, EventType>, ...args: any[]) => void;
4808
4808
 
4809
4809
  declare namespace Events {
4810
4810
  export {
@@ -4940,7 +4940,7 @@ declare namespace ExternalApplicationEvents {
4940
4940
  ExternalApplicationEvent,
4941
4941
  EventType_4 as EventType,
4942
4942
  ExternalApplicationEventType,
4943
- Payload_5 as Payload,
4943
+ Payload_6 as Payload,
4944
4944
  ByType_4 as ByType
4945
4945
  }
4946
4946
  }
@@ -5737,7 +5737,7 @@ declare namespace FrameEvents {
5737
5737
  FrameEvent,
5738
5738
  EventType_5 as EventType,
5739
5739
  FrameEventType,
5740
- Payload_6 as Payload,
5740
+ Payload_7 as Payload,
5741
5741
  ByType_5 as ByType
5742
5742
  }
5743
5743
  }
@@ -5977,7 +5977,7 @@ declare namespace GlobalHotkeyEvents {
5977
5977
  GlobalHotkeyEvent,
5978
5978
  EventType_6 as EventType,
5979
5979
  GlobalHotkeyEventType,
5980
- Payload_7 as Payload,
5980
+ Payload_8 as Payload,
5981
5981
  ByType_6 as ByType
5982
5982
  }
5983
5983
  }
@@ -8057,7 +8057,7 @@ declare namespace LayoutDOMEvents {
8057
8057
  LayoutStateChangedEvent,
8058
8058
  Event_12 as Event,
8059
8059
  EventType_9 as EventType,
8060
- Payload_10 as Payload,
8060
+ Payload_11 as Payload,
8061
8061
  ByType_9 as ByType
8062
8062
  }
8063
8063
  }
@@ -8563,6 +8563,23 @@ declare type LogLevel = OpenFin.LogLevel;
8563
8563
  */
8564
8564
  declare type LogLevel_2 = 'verbose' | 'info' | 'warning' | 'error' | 'fatal';
8565
8565
 
8566
+ declare type LogUploaderUIOptions = {
8567
+ title?: string;
8568
+ icon?: string;
8569
+ header?: string;
8570
+ description?: string;
8571
+ email?: string;
8572
+ website?: string;
8573
+ websiteDescription?: string;
8574
+ };
8575
+
8576
+ declare type LogUploadOptions = {
8577
+ endpoint: string;
8578
+ manifests?: string[];
8579
+ logs?: string[];
8580
+ ui?: LogUploaderUIOptions;
8581
+ };
8582
+
8566
8583
  /**
8567
8584
  * @interface
8568
8585
  */
@@ -8621,6 +8638,7 @@ declare type Manifest = {
8621
8638
  enableErrorReporting?: boolean;
8622
8639
  };
8623
8640
  interopBrokerConfiguration: InteropBrokerOptions;
8641
+ logUpload?: LogUploadOptions;
8624
8642
  };
8625
8643
 
8626
8644
  /**
@@ -9252,6 +9270,34 @@ declare type NavigationRules = {
9252
9270
 
9253
9271
  declare type NewConnectConfig = ConfigWithUuid & ConfigWithRuntime;
9254
9272
 
9273
+ declare interface NodeNetworkInterfaceBase {
9274
+ address: string;
9275
+ netmask: string;
9276
+ mac: string;
9277
+ internal: boolean;
9278
+ cidr: string | null;
9279
+ }
9280
+
9281
+ declare type NodeNetworkInterfaceInfo = NodeNetworkInterfaceInfoIPv4 | NodeNetworkInterfaceInfoIPv6;
9282
+
9283
+ declare interface NodeNetworkInterfaceInfoIPv4 extends NodeNetworkInterfaceBase {
9284
+ family: 'IPv4';
9285
+ scopeid?: undefined;
9286
+ }
9287
+
9288
+ declare interface NodeNetworkInterfaceInfoIPv6 extends NodeNetworkInterfaceBase {
9289
+ family: 'IPv6';
9290
+ scopeid: number;
9291
+ }
9292
+
9293
+ declare interface NodeUserInfo {
9294
+ username: string;
9295
+ uid: number;
9296
+ gid: number;
9297
+ shell: string | null;
9298
+ homedir: string;
9299
+ }
9300
+
9255
9301
  /**
9256
9302
  * @interface
9257
9303
  */
@@ -9454,6 +9500,8 @@ declare namespace OpenFin {
9454
9500
  PlatformViewCreationOptions,
9455
9501
  ProcessAffinityStrategy,
9456
9502
  PlatformOptions,
9503
+ LogUploaderUIOptions,
9504
+ LogUploadOptions,
9457
9505
  Manifest,
9458
9506
  LayoutContent,
9459
9507
  LayoutItemConfig,
@@ -9481,6 +9529,7 @@ declare namespace OpenFin {
9481
9529
  Time,
9482
9530
  CpuInfo,
9483
9531
  GpuInfo,
9532
+ OSInfo,
9484
9533
  HostSpecs,
9485
9534
  PrinterInfo_2 as PrinterInfo,
9486
9535
  Dpi,
@@ -9688,6 +9737,25 @@ declare type OptionsChangedEvent = BaseEvent_5 & {
9688
9737
  diff: OpenFin.WindowOptionDiff;
9689
9738
  };
9690
9739
 
9740
+ /**
9741
+ * @interface
9742
+ * The keys represent the output from calling individual Node `os` APIs.
9743
+ * For example, `userInfo` will have the output of calling `os.userInfo()`. For more information
9744
+ * see [Node `os` API docs](https://nodejs.org/docs/latest-v20.x/api/os.html)
9745
+ */
9746
+ declare type OSInfo = {
9747
+ platform: string;
9748
+ release: string;
9749
+ version: string;
9750
+ /**
9751
+ * Throws if a user has no username or homedir.
9752
+ * See [Node os.userInfo docs for more info](https://nodejs.org/docs/latest-v20.x/api/os.html#osuserinfooptions)
9753
+ */
9754
+ userInfo: NodeUserInfo;
9755
+ hostname: string;
9756
+ networkInterfaces: Record<string, NodeNetworkInterfaceInfo[] | undefined>;
9757
+ };
9758
+
9691
9759
  declare type OverrideCallback<T extends any = PlatformProvider, U extends T = T> = (arg: Constructor<T>) => U | Promise<U>;
9692
9760
 
9693
9761
  /**
@@ -9716,86 +9784,110 @@ declare type Payload<Success extends boolean = boolean, Data = any> = {
9716
9784
  error?: Success extends false ? ErrorPlainObject | undefined : never;
9717
9785
  };
9718
9786
 
9787
+ /**
9788
+ * Extracts a single event type matching the given key from the System {@link Event} union.
9789
+ *
9790
+ * @see {@link ByType}
9791
+ *
9792
+ * @typeParam Type String key specifying the event to extract
9793
+ */
9794
+ declare type Payload_10<Type extends EventType_8> = BaseEvents.Payload<Event_11, Type>;
9795
+
9719
9796
  /**
9720
9797
  * Extracts a single event type matching the given key from the Layout DOM {@link Event} union.
9721
9798
  *
9722
9799
  * @typeParam Type String key specifying the event to extract
9723
9800
  */
9724
- declare type Payload_10<Type extends EventType_9> = Extract<Event_12, {
9801
+ declare type Payload_11<Type extends EventType_9> = Extract<Event_12, {
9725
9802
  type: Type;
9726
9803
  }>;
9727
9804
 
9805
+ /**
9806
+ * Extracts a single event type matching the given type key from the provided EmitterEvent union.
9807
+ *
9808
+ * @remarks Each event emitter namespace defines its own reduction of this type that fixes the Event parameter to
9809
+ * the appropriate payload union for that namespace.
9810
+ *
9811
+ * @typeParam Event Union of payloads for events on the given emitter
9812
+ * @see {@link ByType}
9813
+ *
9814
+ * @typeParam Type String key specifying the event to extract from the union
9815
+ *
9816
+ * @see {@link OpenFin.Events.ApplicationEvents.Payload}
9817
+ * @see {@link OpenFin.Events.ExternalApplicationEvents.Payload}
9818
+ * @see {@link OpenFin.Events.FrameEvents.Payload}
9819
+ * @see {@link OpenFin.Events.GlobalHotkeyEvents.Payload}
9820
+ * @see {@link OpenFin.Events.PlatformEvents.Payload}
9821
+ * @see {@link OpenFin.Events.SystemEvents.Payload}
9822
+ * @see {@link OpenFin.Events.ViewEvents.Payload}
9823
+ * @see {@link OpenFin.Events.WindowEvents.Payload}
9824
+ */
9825
+ declare type Payload_2<Event extends BaseEvent, EventType extends string> = Extract<Event, {
9826
+ type: EventType;
9827
+ }>;
9828
+
9728
9829
  /**
9729
9830
  * Extracts a single event type matching the given key from the View {@link Event} union.
9730
9831
  *
9832
+ * @see {@link ByType}
9833
+ *
9731
9834
  * @typeParam Type String key specifying the event to extract
9732
9835
  */
9733
- declare type Payload_2<Type extends EventType> = Extract<Event_4, {
9734
- type: Type;
9735
- }>;
9836
+ declare type Payload_3<Type extends EventType> = BaseEvents.Payload<Event_4, Type>;
9736
9837
 
9737
9838
  /**
9738
9839
  * Extracts a single event type matching the given key from the Window {@link Event} union.
9739
9840
  *
9841
+ * @see {@link ByType}
9842
+ *
9740
9843
  * @typeParam Type String key specifying the event to extract
9741
9844
  */
9742
- declare type Payload_3<Type extends EventType_2> = Extract<Event_6, {
9743
- type: Type;
9744
- }>;
9845
+ declare type Payload_4<Type extends EventType_2> = BaseEvents.Payload<Event_6, Type>;
9745
9846
 
9746
9847
  /**
9747
9848
  * Extracts a single event type matching the given key from the Application {@link Event} union.
9748
9849
  *
9850
+ * @see {@link ByType}
9851
+ *
9749
9852
  * @typeParam Type String key specifying the event to extract
9750
9853
  */
9751
- declare type Payload_4<Type extends EventType_3> = Extract<Event_3, {
9752
- type: Type;
9753
- }>;
9854
+ declare type Payload_5<Type extends EventType_3> = BaseEvents.Payload<Event_3, Type>;
9754
9855
 
9755
9856
  /**
9756
9857
  * Extracts a single event type matching the given key from the ExternalApplication {@link Event} union.
9757
9858
  *
9859
+ * @see {@link ByType}
9860
+ *
9758
9861
  * @typeParam Type String key specifying the event to extract
9759
9862
  */
9760
- declare type Payload_5<Type extends EventType_4> = Extract<Event_7, {
9761
- type: Type;
9762
- }>;
9863
+ declare type Payload_6<Type extends EventType_4> = BaseEvents.Payload<Event_7, Type>;
9763
9864
 
9764
9865
  /**
9765
9866
  * Extracts a single event type matching the given key from the Frame {@link Event} union.
9766
9867
  *
9868
+ * @see {@link ByType}
9869
+ *
9767
9870
  * @typeParam Type String key specifying the event to extract
9768
9871
  */
9769
- declare type Payload_6<Type extends EventType_5> = Extract<Event_8, {
9770
- type: Type;
9771
- }>;
9872
+ declare type Payload_7<Type extends EventType_5> = BaseEvents.Payload<Event_8, Type>;
9772
9873
 
9773
9874
  /**
9774
9875
  * Extracts a single event type matching the given key from the GlobalHotkey {@link Event} union.
9775
9876
  *
9877
+ * @see {@link ByType}
9878
+ *
9776
9879
  * @typeParam Type String key specifying the event to extract
9777
9880
  */
9778
- declare type Payload_7<Type extends EventType_6> = Extract<Event_9, {
9779
- type: Type;
9780
- }>;
9881
+ declare type Payload_8<Type extends EventType_6> = BaseEvents.Payload<Event_9, Type>;
9781
9882
 
9782
9883
  /**
9783
9884
  * Extracts a single event type matching the given key from the Platform {@link Event} union.
9784
9885
  *
9785
- * @typeParam Type String key specifying the event to extract
9786
- */
9787
- declare type Payload_8<Type extends EventType_7> = Extract<Event_10, {
9788
- type: Type;
9789
- }>;
9790
-
9791
- /**
9792
- * Extracts a single event type matching the given key from the System {@link Event} union.
9886
+ * @see {@link ByType}
9793
9887
  *
9794
9888
  * @typeParam Type String key specifying the event to extract
9795
9889
  */
9796
- declare type Payload_9<Type extends EventType_8> = Extract<Event_11, {
9797
- type: Type;
9798
- }>;
9890
+ declare type Payload_9<Type extends EventType_7> = BaseEvents.Payload<Event_10, Type>;
9799
9891
 
9800
9892
  /**
9801
9893
  * @interface
@@ -10490,7 +10582,7 @@ declare namespace PlatformEvents {
10490
10582
  PlatformEvent,
10491
10583
  EventType_7 as EventType,
10492
10584
  PlatformEventType,
10493
- Payload_8 as Payload,
10585
+ Payload_9 as Payload,
10494
10586
  ByType_7 as ByType
10495
10587
  }
10496
10588
  }
@@ -11925,6 +12017,8 @@ declare interface ProtocolMap extends ProtocolMapBase {
11925
12017
  };
11926
12018
  response: void;
11927
12019
  };
12020
+ 'get-host-specs': GetterCall<OpenFin.HostSpecs>;
12021
+ 'get-os-info': GetterCall<OpenFin.OSInfo>;
11928
12022
  'system-get-printers': GetterCall<OpenFin.PrinterInfo[]>;
11929
12023
  'system-register-shutdown-handler': VoidCall;
11930
12024
  'get-domain-settings': ApiCall<OpenFin.ApplicationIdentity, OpenFin.DefaultDomainSettings>;
@@ -12781,7 +12875,7 @@ declare type Snapshot = {
12781
12875
  * _Note_ - In the case of using a custom provider, if a window has a layout property but does not call _Layout.init_ this event may not fire.
12782
12876
  * @interface
12783
12877
  */
12784
- declare type SnapshotAppliedEvent = BaseEvent & {
12878
+ declare type SnapshotAppliedEvent = BaseEvents.BaseEvent & {
12785
12879
  topic: 'application';
12786
12880
  type: 'platform-snapshot-applied';
12787
12881
  };
@@ -13265,7 +13359,8 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
13265
13359
  */
13266
13360
  getRvmInfo(): Promise<OpenFin.RVMInfo>;
13267
13361
  /**
13268
- * Retrieves system information.
13362
+ * Retrieves general system information. If you need more detailed information about the
13363
+ * OS and the currently logged in user, use `fin.System.getOSInfo()` instead.
13269
13364
  *
13270
13365
  * @example
13271
13366
  * ```js
@@ -13273,6 +13368,15 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
13273
13368
  * ```
13274
13369
  */
13275
13370
  getHostSpecs(): Promise<OpenFin.HostSpecs>;
13371
+ /**
13372
+ * Retrieves information about the OS and the currently logged in user.
13373
+ *
13374
+ * @example
13375
+ * ```js
13376
+ * fin.System.getOSInfo().then(specs => console.log(specs)).catch(err => console.log(err));
13377
+ * ```
13378
+ */
13379
+ getOSInfo(): Promise<OpenFin.OSInfo>;
13276
13380
  /**
13277
13381
  * Runs an executable or batch file. A path to the file must be included in options.
13278
13382
  * <br> A uuid may be optionally provided. If not provided, OpenFin will create a uuid for the new process.
@@ -14386,7 +14490,7 @@ declare namespace SystemEvents {
14386
14490
  SystemEvent,
14387
14491
  EventType_8 as EventType,
14388
14492
  SystemEventType,
14389
- Payload_9 as Payload,
14493
+ Payload_10 as Payload,
14390
14494
  ByType_8 as ByType
14391
14495
  }
14392
14496
  }
@@ -14400,6 +14504,7 @@ declare type SystemEventType = EventType_8;
14400
14504
  * @interface
14401
14505
  */
14402
14506
  declare type SystemPermissions = {
14507
+ getOSInfo: boolean;
14403
14508
  getAllExternalWindows: boolean;
14404
14509
  launchExternalProcess: boolean | {
14405
14510
  enabled: boolean;
@@ -15513,7 +15618,7 @@ declare namespace ViewEvents {
15513
15618
  PropagatedViewEvent,
15514
15619
  PropagatedEventType_2 as PropagatedEventType,
15515
15620
  PropagatedViewEventType,
15516
- Payload_2 as Payload,
15621
+ Payload_3 as Payload,
15517
15622
  ByType
15518
15623
  }
15519
15624
  }
@@ -18034,7 +18139,7 @@ declare namespace WindowEvents {
18034
18139
  PropagatedEvent_3 as PropagatedEvent,
18035
18140
  PropagatedWindowEvent,
18036
18141
  PropagatedWindowEventType,
18037
- Payload_3 as Payload,
18142
+ Payload_4 as Payload,
18038
18143
  ByType_2 as ByType
18039
18144
  }
18040
18145
  }