@openfin/core 39.83.5 → 39.83.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -2940,6 +2940,18 @@ declare type ChildWindowCreatedEvent = ContentCreationRulesEvent & {
2940
2940
  childOptions: OpenFin_2.WindowOptions;
2941
2941
  };
2942
2942
 
2943
+ /**
2944
+ * Control behavior for Chromium policies
2945
+ *
2946
+ * @interface
2947
+ */
2948
+ declare type ChromiumPolicies = {
2949
+ /**
2950
+ * Disable AutofillAddressEnabled policy for a Window or View.
2951
+ */
2952
+ AutofillAddressEnabled?: PolicyOptions;
2953
+ };
2954
+
2943
2955
  declare interface ClassicProtocolOffer extends ProtocolPacketBase {
2944
2956
  type: 'classic';
2945
2957
  }
@@ -3451,6 +3463,10 @@ declare type ConstViewOptions = {
3451
3463
  */
3452
3464
  enabled: boolean;
3453
3465
  };
3466
+ /**
3467
+ * Control which options to ignore when creating a Platform View.
3468
+ */
3469
+ excludeOptions: ExcludeOptions;
3454
3470
  };
3455
3471
 
3456
3472
  /**
@@ -3695,6 +3711,10 @@ declare type ConstWindowOptions = {
3695
3711
  * Controls whether an option is inherited from the parent application. The option is set as part of the window options for the parent application in either the {@link Manifest.startup_app} or {@link Manifest.platform} properties in the manifest or in {@link ApplicationOptions.mainWindowOptions} when calling {@link Application.ApplicationModule.start Application.start}. Use { [option]: false } to disable a specific [option]. All inheritable properties will be inherited by default if omitted.
3696
3712
  */
3697
3713
  inheritance?: Partial<InheritableOptions>;
3714
+ /**
3715
+ * Control which options to ignore when creating a Platform Window.
3716
+ */
3717
+ excludeOptions: ExcludeOptions;
3698
3718
  };
3699
3719
 
3700
3720
  /**
@@ -4729,7 +4749,7 @@ declare type Event_10 = ApplicationEvents.Event | ApiReadyEvent | SnapshotApplie
4729
4749
  * under the {@link OpenFin.SystemEvents} namespace (payloads inherited from propagated events are defined in the namespace
4730
4750
  * from which they propagate).
4731
4751
  */
4732
- declare type Event_11 = ExcludeRequested<WindowEvents.PropagatedEvent<'system'>> | ExcludeRequested<ViewEvents.PropagatedEvent<'system'>> | ExcludeRequested<ApplicationEvents.PropagatedEvent<'system'>> | ApplicationCreatedEvent | DesktopIconClickedEvent | IdleStateChangedEvent | MonitorInfoChangedEvent | SessionChangedEvent | AppVersionEventWithId | SystemShutdownEvent;
4752
+ declare type Event_11 = ExcludeRequested<WindowEvents.PropagatedEvent<'system'>> | ExcludeRequested<ViewEvents.PropagatedEvent<'system'>> | ExcludeRequested<ApplicationEvents.PropagatedEvent<'system'>> | ApplicationCreatedEvent | DesktopIconClickedEvent | IdleStateChangedEvent | MonitorInfoChangedEvent | SessionChangedEvent | AppVersionEventWithId | SystemShutdownEvent | ExtensionsEnabledEvent | ExtensionsDisabledEvent | ExtensionsExcludedEvent | ExtensionsInstalledEvent | ExtensionInstalledEvent | ExtensionsInstallFailedEvent | ExtensionInstallFailedEvent | ExtensionsInitializationFailedEvent;
4733
4753
 
4734
4754
  /**
4735
4755
  * [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing every possible event that can be emitted by the HTMLElement Layout container.
@@ -4874,6 +4894,18 @@ declare type EventType_9 = Event_12['type'];
4874
4894
 
4875
4895
  /* Excluded from this release type: EventWithId */
4876
4896
 
4897
+ /**
4898
+ * @interface
4899
+ */
4900
+ declare type ExcludeOptions = {
4901
+ /**
4902
+ * @defaultValue false
4903
+ *
4904
+ * When true, will not merge default preload scripts from {@link ApplicationOptions.defaultWindowOptions} or {@link ApplicationOptions.defaultViewOptions}.
4905
+ */
4906
+ preloadScripts: boolean;
4907
+ };
4908
+
4877
4909
  /* Excluded from this release type: ExcludeRequested */
4878
4910
 
4879
4911
  declare type ExistingConnectConfig = ConfigWithUuid & {
@@ -4889,6 +4921,105 @@ declare type ExitCode = {
4889
4921
  exitCode: number;
4890
4922
  };
4891
4923
 
4924
+ declare type ExtensionEvent = SecurityRealmEvent & {
4925
+ /**
4926
+ * Runtime extension whose status has been (possibly) modified
4927
+ */
4928
+ extension: string;
4929
+ };
4930
+
4931
+ /**
4932
+ * @interface
4933
+ */
4934
+ declare type ExtensionInfo = {
4935
+ extensionId: string;
4936
+ name: string;
4937
+ enabled: boolean;
4938
+ };
4939
+
4940
+ /**
4941
+ * An event that fires when an extension is installed in the security realm.
4942
+ *
4943
+ * @interface
4944
+ */
4945
+ declare type ExtensionInstalledEvent = ExtensionEvent & {
4946
+ type: 'extension-installed';
4947
+ };
4948
+
4949
+ /**
4950
+ * An event that fires when an extension fails to install in the security realm.
4951
+ *
4952
+ * @interface
4953
+ */
4954
+ declare type ExtensionInstallFailedEvent = ExtensionEvent & {
4955
+ type: 'extension-install-failed';
4956
+ };
4957
+
4958
+ /**
4959
+ * An event that fires when extensions are disabled in the security realm.
4960
+ *
4961
+ * @interface
4962
+ */
4963
+ declare type ExtensionsDisabledEvent = ExtensionsEvent & {
4964
+ type: 'extensions-disabled';
4965
+ };
4966
+
4967
+ /**
4968
+ * An event that fires when extensions are enabled in the security realm.
4969
+ *
4970
+ * @interface
4971
+ */
4972
+ declare type ExtensionsEnabledEvent = ExtensionsEvent & {
4973
+ type: 'extensions-enabled';
4974
+ };
4975
+
4976
+ declare type ExtensionsEvent = SecurityRealmEvent & {
4977
+ /**
4978
+ * Runtime extensions whose status has been (possibly) modified
4979
+ */
4980
+ extensions: string[];
4981
+ };
4982
+
4983
+ /**
4984
+ * An event that fires when requested extensions are not allowed to be installed in the security realm.
4985
+ *
4986
+ * @interface
4987
+ */
4988
+ declare type ExtensionsExcludedEvent = ExtensionsEvent & {
4989
+ type: 'extensions-excluded';
4990
+ };
4991
+
4992
+ /**
4993
+ * An event that fires when extension initialization fails on initial app launch. Users may attempt to
4994
+ * re-initialize extensions by calling {@link System.refreshExtensions}. This event will not fire in response
4995
+ * to manual extension refreshes (users should catch the error normally).
4996
+ */
4997
+ declare type ExtensionsInitializationFailedEvent = Omit<ExtensionsEvent, 'extensions'> & {
4998
+ type: 'extensions-initialization-failed';
4999
+ /**
5000
+ * The error that caused the extension initialization failure
5001
+ */
5002
+ error: Error;
5003
+ };
5004
+
5005
+ /**
5006
+ * An event that fires when extensions are installed in the security realm.
5007
+ *
5008
+ * @interface
5009
+ */
5010
+ declare type ExtensionsInstalledEvent = ExtensionsEvent & {
5011
+ type: 'extensions-installed';
5012
+ };
5013
+
5014
+ /**
5015
+ * An event that fires when extensions fail to install in the security realm.
5016
+ *
5017
+ * @interface
5018
+ */
5019
+ declare type ExtensionsInstallFailedEvent = ExtensionsEvent & {
5020
+ type: 'extensions-install-failed';
5021
+ };
5022
+
4892
5023
  /**
4893
5024
  * An ExternalApplication object representing native language adapter connections to the runtime. Allows
4894
5025
  * the developer to listen to {@link OpenFin.ExternalApplicationEvents external application events}.
@@ -8669,6 +8800,10 @@ declare type MutableViewOptions = {
8669
8800
  * @defaultValue 'enabled'
8670
8801
  */
8671
8802
  throttling: ViewThrottling;
8803
+ /**
8804
+ * {@inheritDoc ChromiumPolicies}
8805
+ */
8806
+ chromiumPolicies: ChromiumPolicies;
8672
8807
  };
8673
8808
 
8674
8809
  /**
@@ -8926,6 +9061,10 @@ declare type MutableWindowOptions = {
8926
9061
  * @remarks If `throttling` option is present, the `backgroundThrottling` option is completely ignored for windows.
8927
9062
  */
8928
9063
  throttling: WindowThrottling;
9064
+ /**
9065
+ * {@inheritDoc ChromiumPolicies}
9066
+ */
9067
+ chromiumPolicies: ChromiumPolicies;
8929
9068
  };
8930
9069
 
8931
9070
  declare type NackHandler = (payloadOrMessage: RuntimeErrorPayload | string) => void;
@@ -9136,8 +9275,11 @@ declare namespace OpenFin_2 {
9136
9275
  ViewVisibilityOptions,
9137
9276
  WindowState,
9138
9277
  AutoplayPolicyOptions,
9278
+ ExcludeOptions,
9139
9279
  ConstWindowOptions,
9140
9280
  InheritableOptions,
9281
+ PolicyOptions,
9282
+ ChromiumPolicies,
9141
9283
  MutableWindowOptions,
9142
9284
  WorkspacePlatformOptions,
9143
9285
  WebRequestHeader,
@@ -9419,6 +9561,7 @@ declare namespace OpenFin_2 {
9419
9561
  RoutingInfo,
9420
9562
  DownloadShelfOptions,
9421
9563
  ViewShowAtOptions,
9564
+ ExtensionInfo,
9422
9565
  ApplicationEvents,
9423
9566
  BaseEvents,
9424
9567
  ExternalApplicationEvents,
@@ -9622,6 +9765,10 @@ declare type PerDomainSettings = {
9622
9765
  * {@link ContentRedirect} in {@link WindowOptions} and {@link ViewOptions} will be **ignored**.
9623
9766
  */
9624
9767
  content?: ContentPermission;
9768
+ /**
9769
+ * {@inheritdoc ChromiumPolicies}
9770
+ */
9771
+ chromiumPolicies?: ChromiumPolicies;
9625
9772
  };
9626
9773
 
9627
9774
  /**
@@ -11079,6 +11226,12 @@ declare type PointTopLeft = {
11079
11226
  left: number;
11080
11227
  };
11081
11228
 
11229
+ /**
11230
+ * When set to `disable`, disables the policy
11231
+ * When set to `defer-to-group-policy`, respects Group Policy settings
11232
+ */
11233
+ declare type PolicyOptions = 'disable' | 'defer-to-group-policy';
11234
+
11082
11235
  declare type PopupBaseBehavior = 'close' | 'hide';
11083
11236
 
11084
11237
  declare type PopupBlurBehavior = 'modal' | PopupBaseBehavior;
@@ -12094,6 +12247,14 @@ declare interface ProtocolMap extends ProtocolMapBase {
12094
12247
  }, void>;
12095
12248
  'system-register-shutdown-handler': VoidCall;
12096
12249
  'get-permissions': GetterCall<any>;
12250
+ 'refresh-extensions': {
12251
+ request: void;
12252
+ response: string[] | undefined;
12253
+ };
12254
+ 'get-installed-extensions': {
12255
+ request: void;
12256
+ response: OpenFin_2.ExtensionInfo[];
12257
+ };
12097
12258
  'fdc3-add-context-listener': VoidCall;
12098
12259
  'fdc3-add-intent-listener': VoidCall;
12099
12260
  'fdc3-raise-intent': VoidCall;
@@ -12782,6 +12943,21 @@ declare type ScreenshotPrintOptions = {
12782
12943
  content: 'screenshot';
12783
12944
  };
12784
12945
 
12946
+ /**
12947
+ * An event generated when an application modifies the runtime in a way that affects all other applications in the
12948
+ * application runtime/security realm.
12949
+ */
12950
+ declare type SecurityRealmEvent = BaseEvent_9 & {
12951
+ /**
12952
+ * Config URL of the application that modified the security realm's extensions
12953
+ */
12954
+ configUrl: string;
12955
+ /**
12956
+ * Identity of the application that modified the security realm's extensions
12957
+ */
12958
+ applicationIdentity: OpenFin_2.ApplicationIdentity;
12959
+ };
12960
+
12785
12961
  declare type SendActionResponse<T extends keyof ProtocolMap> = Message<{
12786
12962
  data: ProtocolMap[T]['response'];
12787
12963
  } & ProtocolMap[T]['specialResponse']>;
@@ -14673,6 +14849,16 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
14673
14849
  * ```
14674
14850
  */
14675
14851
  setDomainSettings(domainSettings: OpenFin_2.DefaultDomainSettings): Promise<void>;
14852
+ /**
14853
+ * Attempts to install and enable extensions for the security realm. Users may want to call this function in response
14854
+ * to an `extensions-install-failed` event. Only extensions allowed by every application on the current security realm
14855
+ * will be installed/enabled.
14856
+ */
14857
+ refreshExtensions(): Promise<string[] | undefined>;
14858
+ /**
14859
+ * Gets the currently-installed
14860
+ */
14861
+ getInstalledExtensions(): Promise<OpenFin_2.ExtensionInfo[]>;
14676
14862
  }
14677
14863
 
14678
14864
  /**
@@ -14703,6 +14889,14 @@ declare namespace SystemEvents {
14703
14889
  ApplicationCreatedEvent,
14704
14890
  DesktopIconClickedEvent,
14705
14891
  SystemShutdownEvent,
14892
+ ExtensionsEnabledEvent,
14893
+ ExtensionsDisabledEvent,
14894
+ ExtensionsExcludedEvent,
14895
+ ExtensionsInstalledEvent,
14896
+ ExtensionInstalledEvent,
14897
+ ExtensionsInstallFailedEvent,
14898
+ ExtensionInstallFailedEvent,
14899
+ ExtensionsInitializationFailedEvent,
14706
14900
  Event_11 as Event,
14707
14901
  SystemEvent,
14708
14902
  EventType_8 as EventType,
@@ -15884,6 +16078,9 @@ declare class ViewModule extends Base {
15884
16078
  */
15885
16079
  declare type ViewOptions = ConstViewOptions & MutableViewOptions;
15886
16080
 
16081
+ /**
16082
+ * @interface
16083
+ */
15887
16084
  declare type ViewShowAtOptions = {
15888
16085
  /**
15889
16086
  * Sets the view as the top level view. See {@link OpenFin.View.bringToFront} for more information.
@@ -2940,6 +2940,18 @@ declare type ChildWindowCreatedEvent = ContentCreationRulesEvent & {
2940
2940
  childOptions: OpenFin_2.WindowOptions;
2941
2941
  };
2942
2942
 
2943
+ /**
2944
+ * Control behavior for Chromium policies
2945
+ *
2946
+ * @interface
2947
+ */
2948
+ declare type ChromiumPolicies = {
2949
+ /**
2950
+ * Disable AutofillAddressEnabled policy for a Window or View.
2951
+ */
2952
+ AutofillAddressEnabled?: PolicyOptions;
2953
+ };
2954
+
2943
2955
  declare interface ClassicProtocolOffer extends ProtocolPacketBase {
2944
2956
  type: 'classic';
2945
2957
  }
@@ -3451,6 +3463,10 @@ declare type ConstViewOptions = {
3451
3463
  */
3452
3464
  enabled: boolean;
3453
3465
  };
3466
+ /**
3467
+ * Control which options to ignore when creating a Platform View.
3468
+ */
3469
+ excludeOptions: ExcludeOptions;
3454
3470
  };
3455
3471
 
3456
3472
  /**
@@ -3695,6 +3711,10 @@ declare type ConstWindowOptions = {
3695
3711
  * Controls whether an option is inherited from the parent application. The option is set as part of the window options for the parent application in either the {@link Manifest.startup_app} or {@link Manifest.platform} properties in the manifest or in {@link ApplicationOptions.mainWindowOptions} when calling {@link Application.ApplicationModule.start Application.start}. Use { [option]: false } to disable a specific [option]. All inheritable properties will be inherited by default if omitted.
3696
3712
  */
3697
3713
  inheritance?: Partial<InheritableOptions>;
3714
+ /**
3715
+ * Control which options to ignore when creating a Platform Window.
3716
+ */
3717
+ excludeOptions: ExcludeOptions;
3698
3718
  };
3699
3719
 
3700
3720
  /**
@@ -4729,7 +4749,7 @@ declare type Event_10 = ApplicationEvents.Event | ApiReadyEvent | SnapshotApplie
4729
4749
  * under the {@link OpenFin.SystemEvents} namespace (payloads inherited from propagated events are defined in the namespace
4730
4750
  * from which they propagate).
4731
4751
  */
4732
- declare type Event_11 = ExcludeRequested<WindowEvents.PropagatedEvent<'system'>> | ExcludeRequested<ViewEvents.PropagatedEvent<'system'>> | ExcludeRequested<ApplicationEvents.PropagatedEvent<'system'>> | ApplicationCreatedEvent | DesktopIconClickedEvent | IdleStateChangedEvent | MonitorInfoChangedEvent | SessionChangedEvent | AppVersionEventWithId | SystemShutdownEvent;
4752
+ declare type Event_11 = ExcludeRequested<WindowEvents.PropagatedEvent<'system'>> | ExcludeRequested<ViewEvents.PropagatedEvent<'system'>> | ExcludeRequested<ApplicationEvents.PropagatedEvent<'system'>> | ApplicationCreatedEvent | DesktopIconClickedEvent | IdleStateChangedEvent | MonitorInfoChangedEvent | SessionChangedEvent | AppVersionEventWithId | SystemShutdownEvent | ExtensionsEnabledEvent | ExtensionsDisabledEvent | ExtensionsExcludedEvent | ExtensionsInstalledEvent | ExtensionInstalledEvent | ExtensionsInstallFailedEvent | ExtensionInstallFailedEvent | ExtensionsInitializationFailedEvent;
4733
4753
 
4734
4754
  /**
4735
4755
  * [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing every possible event that can be emitted by the HTMLElement Layout container.
@@ -4874,6 +4894,18 @@ declare type EventType_9 = Event_12['type'];
4874
4894
 
4875
4895
  /* Excluded from this release type: EventWithId */
4876
4896
 
4897
+ /**
4898
+ * @interface
4899
+ */
4900
+ declare type ExcludeOptions = {
4901
+ /**
4902
+ * @defaultValue false
4903
+ *
4904
+ * When true, will not merge default preload scripts from {@link ApplicationOptions.defaultWindowOptions} or {@link ApplicationOptions.defaultViewOptions}.
4905
+ */
4906
+ preloadScripts: boolean;
4907
+ };
4908
+
4877
4909
  /* Excluded from this release type: ExcludeRequested */
4878
4910
 
4879
4911
  declare type ExistingConnectConfig = ConfigWithUuid & {
@@ -4889,6 +4921,105 @@ declare type ExitCode = {
4889
4921
  exitCode: number;
4890
4922
  };
4891
4923
 
4924
+ declare type ExtensionEvent = SecurityRealmEvent & {
4925
+ /**
4926
+ * Runtime extension whose status has been (possibly) modified
4927
+ */
4928
+ extension: string;
4929
+ };
4930
+
4931
+ /**
4932
+ * @interface
4933
+ */
4934
+ declare type ExtensionInfo = {
4935
+ extensionId: string;
4936
+ name: string;
4937
+ enabled: boolean;
4938
+ };
4939
+
4940
+ /**
4941
+ * An event that fires when an extension is installed in the security realm.
4942
+ *
4943
+ * @interface
4944
+ */
4945
+ declare type ExtensionInstalledEvent = ExtensionEvent & {
4946
+ type: 'extension-installed';
4947
+ };
4948
+
4949
+ /**
4950
+ * An event that fires when an extension fails to install in the security realm.
4951
+ *
4952
+ * @interface
4953
+ */
4954
+ declare type ExtensionInstallFailedEvent = ExtensionEvent & {
4955
+ type: 'extension-install-failed';
4956
+ };
4957
+
4958
+ /**
4959
+ * An event that fires when extensions are disabled in the security realm.
4960
+ *
4961
+ * @interface
4962
+ */
4963
+ declare type ExtensionsDisabledEvent = ExtensionsEvent & {
4964
+ type: 'extensions-disabled';
4965
+ };
4966
+
4967
+ /**
4968
+ * An event that fires when extensions are enabled in the security realm.
4969
+ *
4970
+ * @interface
4971
+ */
4972
+ declare type ExtensionsEnabledEvent = ExtensionsEvent & {
4973
+ type: 'extensions-enabled';
4974
+ };
4975
+
4976
+ declare type ExtensionsEvent = SecurityRealmEvent & {
4977
+ /**
4978
+ * Runtime extensions whose status has been (possibly) modified
4979
+ */
4980
+ extensions: string[];
4981
+ };
4982
+
4983
+ /**
4984
+ * An event that fires when requested extensions are not allowed to be installed in the security realm.
4985
+ *
4986
+ * @interface
4987
+ */
4988
+ declare type ExtensionsExcludedEvent = ExtensionsEvent & {
4989
+ type: 'extensions-excluded';
4990
+ };
4991
+
4992
+ /**
4993
+ * An event that fires when extension initialization fails on initial app launch. Users may attempt to
4994
+ * re-initialize extensions by calling {@link System.refreshExtensions}. This event will not fire in response
4995
+ * to manual extension refreshes (users should catch the error normally).
4996
+ */
4997
+ declare type ExtensionsInitializationFailedEvent = Omit<ExtensionsEvent, 'extensions'> & {
4998
+ type: 'extensions-initialization-failed';
4999
+ /**
5000
+ * The error that caused the extension initialization failure
5001
+ */
5002
+ error: Error;
5003
+ };
5004
+
5005
+ /**
5006
+ * An event that fires when extensions are installed in the security realm.
5007
+ *
5008
+ * @interface
5009
+ */
5010
+ declare type ExtensionsInstalledEvent = ExtensionsEvent & {
5011
+ type: 'extensions-installed';
5012
+ };
5013
+
5014
+ /**
5015
+ * An event that fires when extensions fail to install in the security realm.
5016
+ *
5017
+ * @interface
5018
+ */
5019
+ declare type ExtensionsInstallFailedEvent = ExtensionsEvent & {
5020
+ type: 'extensions-install-failed';
5021
+ };
5022
+
4892
5023
  /**
4893
5024
  * An ExternalApplication object representing native language adapter connections to the runtime. Allows
4894
5025
  * the developer to listen to {@link OpenFin.ExternalApplicationEvents external application events}.
@@ -8669,6 +8800,10 @@ declare type MutableViewOptions = {
8669
8800
  * @defaultValue 'enabled'
8670
8801
  */
8671
8802
  throttling: ViewThrottling;
8803
+ /**
8804
+ * {@inheritDoc ChromiumPolicies}
8805
+ */
8806
+ chromiumPolicies: ChromiumPolicies;
8672
8807
  };
8673
8808
 
8674
8809
  /**
@@ -8926,6 +9061,10 @@ declare type MutableWindowOptions = {
8926
9061
  * @remarks If `throttling` option is present, the `backgroundThrottling` option is completely ignored for windows.
8927
9062
  */
8928
9063
  throttling: WindowThrottling;
9064
+ /**
9065
+ * {@inheritDoc ChromiumPolicies}
9066
+ */
9067
+ chromiumPolicies: ChromiumPolicies;
8929
9068
  };
8930
9069
 
8931
9070
  declare type NackHandler = (payloadOrMessage: RuntimeErrorPayload | string) => void;
@@ -9136,8 +9275,11 @@ declare namespace OpenFin_2 {
9136
9275
  ViewVisibilityOptions,
9137
9276
  WindowState,
9138
9277
  AutoplayPolicyOptions,
9278
+ ExcludeOptions,
9139
9279
  ConstWindowOptions,
9140
9280
  InheritableOptions,
9281
+ PolicyOptions,
9282
+ ChromiumPolicies,
9141
9283
  MutableWindowOptions,
9142
9284
  WorkspacePlatformOptions,
9143
9285
  WebRequestHeader,
@@ -9419,6 +9561,7 @@ declare namespace OpenFin_2 {
9419
9561
  RoutingInfo,
9420
9562
  DownloadShelfOptions,
9421
9563
  ViewShowAtOptions,
9564
+ ExtensionInfo,
9422
9565
  ApplicationEvents,
9423
9566
  BaseEvents,
9424
9567
  ExternalApplicationEvents,
@@ -9622,6 +9765,10 @@ declare type PerDomainSettings = {
9622
9765
  * {@link ContentRedirect} in {@link WindowOptions} and {@link ViewOptions} will be **ignored**.
9623
9766
  */
9624
9767
  content?: ContentPermission;
9768
+ /**
9769
+ * {@inheritdoc ChromiumPolicies}
9770
+ */
9771
+ chromiumPolicies?: ChromiumPolicies;
9625
9772
  };
9626
9773
 
9627
9774
  /**
@@ -11079,6 +11226,12 @@ declare type PointTopLeft = {
11079
11226
  left: number;
11080
11227
  };
11081
11228
 
11229
+ /**
11230
+ * When set to `disable`, disables the policy
11231
+ * When set to `defer-to-group-policy`, respects Group Policy settings
11232
+ */
11233
+ declare type PolicyOptions = 'disable' | 'defer-to-group-policy';
11234
+
11082
11235
  declare type PopupBaseBehavior = 'close' | 'hide';
11083
11236
 
11084
11237
  declare type PopupBlurBehavior = 'modal' | PopupBaseBehavior;
@@ -12094,6 +12247,14 @@ declare interface ProtocolMap extends ProtocolMapBase {
12094
12247
  }, void>;
12095
12248
  'system-register-shutdown-handler': VoidCall;
12096
12249
  'get-permissions': GetterCall<any>;
12250
+ 'refresh-extensions': {
12251
+ request: void;
12252
+ response: string[] | undefined;
12253
+ };
12254
+ 'get-installed-extensions': {
12255
+ request: void;
12256
+ response: OpenFin_2.ExtensionInfo[];
12257
+ };
12097
12258
  'fdc3-add-context-listener': VoidCall;
12098
12259
  'fdc3-add-intent-listener': VoidCall;
12099
12260
  'fdc3-raise-intent': VoidCall;
@@ -12782,6 +12943,21 @@ declare type ScreenshotPrintOptions = {
12782
12943
  content: 'screenshot';
12783
12944
  };
12784
12945
 
12946
+ /**
12947
+ * An event generated when an application modifies the runtime in a way that affects all other applications in the
12948
+ * application runtime/security realm.
12949
+ */
12950
+ declare type SecurityRealmEvent = BaseEvent_9 & {
12951
+ /**
12952
+ * Config URL of the application that modified the security realm's extensions
12953
+ */
12954
+ configUrl: string;
12955
+ /**
12956
+ * Identity of the application that modified the security realm's extensions
12957
+ */
12958
+ applicationIdentity: OpenFin_2.ApplicationIdentity;
12959
+ };
12960
+
12785
12961
  declare type SendActionResponse<T extends keyof ProtocolMap> = Message<{
12786
12962
  data: ProtocolMap[T]['response'];
12787
12963
  } & ProtocolMap[T]['specialResponse']>;
@@ -14673,6 +14849,16 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
14673
14849
  * ```
14674
14850
  */
14675
14851
  setDomainSettings(domainSettings: OpenFin_2.DefaultDomainSettings): Promise<void>;
14852
+ /**
14853
+ * Attempts to install and enable extensions for the security realm. Users may want to call this function in response
14854
+ * to an `extensions-install-failed` event. Only extensions allowed by every application on the current security realm
14855
+ * will be installed/enabled.
14856
+ */
14857
+ refreshExtensions(): Promise<string[] | undefined>;
14858
+ /**
14859
+ * Gets the currently-installed
14860
+ */
14861
+ getInstalledExtensions(): Promise<OpenFin_2.ExtensionInfo[]>;
14676
14862
  }
14677
14863
 
14678
14864
  /**
@@ -14703,6 +14889,14 @@ declare namespace SystemEvents {
14703
14889
  ApplicationCreatedEvent,
14704
14890
  DesktopIconClickedEvent,
14705
14891
  SystemShutdownEvent,
14892
+ ExtensionsEnabledEvent,
14893
+ ExtensionsDisabledEvent,
14894
+ ExtensionsExcludedEvent,
14895
+ ExtensionsInstalledEvent,
14896
+ ExtensionInstalledEvent,
14897
+ ExtensionsInstallFailedEvent,
14898
+ ExtensionInstallFailedEvent,
14899
+ ExtensionsInitializationFailedEvent,
14706
14900
  Event_11 as Event,
14707
14901
  SystemEvent,
14708
14902
  EventType_8 as EventType,
@@ -15884,6 +16078,9 @@ declare class ViewModule extends Base {
15884
16078
  */
15885
16079
  declare type ViewOptions = ConstViewOptions & MutableViewOptions;
15886
16080
 
16081
+ /**
16082
+ * @interface
16083
+ */
15887
16084
  declare type ViewShowAtOptions = {
15888
16085
  /**
15889
16086
  * Sets the view as the top level view. See {@link OpenFin.View.bringToFront} for more information.
@@ -2940,6 +2940,18 @@ declare type ChildWindowCreatedEvent = ContentCreationRulesEvent & {
2940
2940
  childOptions: OpenFin_2.WindowOptions;
2941
2941
  };
2942
2942
 
2943
+ /**
2944
+ * Control behavior for Chromium policies
2945
+ *
2946
+ * @interface
2947
+ */
2948
+ declare type ChromiumPolicies = {
2949
+ /**
2950
+ * Disable AutofillAddressEnabled policy for a Window or View.
2951
+ */
2952
+ AutofillAddressEnabled?: PolicyOptions;
2953
+ };
2954
+
2943
2955
  declare interface ClassicProtocolOffer extends ProtocolPacketBase {
2944
2956
  type: 'classic';
2945
2957
  }
@@ -3451,6 +3463,10 @@ declare type ConstViewOptions = {
3451
3463
  */
3452
3464
  enabled: boolean;
3453
3465
  };
3466
+ /**
3467
+ * Control which options to ignore when creating a Platform View.
3468
+ */
3469
+ excludeOptions: ExcludeOptions;
3454
3470
  };
3455
3471
 
3456
3472
  /**
@@ -3695,6 +3711,10 @@ declare type ConstWindowOptions = {
3695
3711
  * Controls whether an option is inherited from the parent application. The option is set as part of the window options for the parent application in either the {@link Manifest.startup_app} or {@link Manifest.platform} properties in the manifest or in {@link ApplicationOptions.mainWindowOptions} when calling {@link Application.ApplicationModule.start Application.start}. Use { [option]: false } to disable a specific [option]. All inheritable properties will be inherited by default if omitted.
3696
3712
  */
3697
3713
  inheritance?: Partial<InheritableOptions>;
3714
+ /**
3715
+ * Control which options to ignore when creating a Platform Window.
3716
+ */
3717
+ excludeOptions: ExcludeOptions;
3698
3718
  };
3699
3719
 
3700
3720
  /**
@@ -4729,7 +4749,7 @@ declare type Event_10 = ApplicationEvents.Event | ApiReadyEvent | SnapshotApplie
4729
4749
  * under the {@link OpenFin.SystemEvents} namespace (payloads inherited from propagated events are defined in the namespace
4730
4750
  * from which they propagate).
4731
4751
  */
4732
- declare type Event_11 = ExcludeRequested<WindowEvents.PropagatedEvent<'system'>> | ExcludeRequested<ViewEvents.PropagatedEvent<'system'>> | ExcludeRequested<ApplicationEvents.PropagatedEvent<'system'>> | ApplicationCreatedEvent | DesktopIconClickedEvent | IdleStateChangedEvent | MonitorInfoChangedEvent | SessionChangedEvent | AppVersionEventWithId | SystemShutdownEvent;
4752
+ declare type Event_11 = ExcludeRequested<WindowEvents.PropagatedEvent<'system'>> | ExcludeRequested<ViewEvents.PropagatedEvent<'system'>> | ExcludeRequested<ApplicationEvents.PropagatedEvent<'system'>> | ApplicationCreatedEvent | DesktopIconClickedEvent | IdleStateChangedEvent | MonitorInfoChangedEvent | SessionChangedEvent | AppVersionEventWithId | SystemShutdownEvent | ExtensionsEnabledEvent | ExtensionsDisabledEvent | ExtensionsExcludedEvent | ExtensionsInstalledEvent | ExtensionInstalledEvent | ExtensionsInstallFailedEvent | ExtensionInstallFailedEvent | ExtensionsInitializationFailedEvent;
4733
4753
 
4734
4754
  /**
4735
4755
  * [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing every possible event that can be emitted by the HTMLElement Layout container.
@@ -4874,6 +4894,18 @@ declare type EventType_9 = Event_12['type'];
4874
4894
 
4875
4895
  /* Excluded from this release type: EventWithId */
4876
4896
 
4897
+ /**
4898
+ * @interface
4899
+ */
4900
+ declare type ExcludeOptions = {
4901
+ /**
4902
+ * @defaultValue false
4903
+ *
4904
+ * When true, will not merge default preload scripts from {@link ApplicationOptions.defaultWindowOptions} or {@link ApplicationOptions.defaultViewOptions}.
4905
+ */
4906
+ preloadScripts: boolean;
4907
+ };
4908
+
4877
4909
  /* Excluded from this release type: ExcludeRequested */
4878
4910
 
4879
4911
  declare type ExistingConnectConfig = ConfigWithUuid & {
@@ -4889,6 +4921,105 @@ declare type ExitCode = {
4889
4921
  exitCode: number;
4890
4922
  };
4891
4923
 
4924
+ declare type ExtensionEvent = SecurityRealmEvent & {
4925
+ /**
4926
+ * Runtime extension whose status has been (possibly) modified
4927
+ */
4928
+ extension: string;
4929
+ };
4930
+
4931
+ /**
4932
+ * @interface
4933
+ */
4934
+ declare type ExtensionInfo = {
4935
+ extensionId: string;
4936
+ name: string;
4937
+ enabled: boolean;
4938
+ };
4939
+
4940
+ /**
4941
+ * An event that fires when an extension is installed in the security realm.
4942
+ *
4943
+ * @interface
4944
+ */
4945
+ declare type ExtensionInstalledEvent = ExtensionEvent & {
4946
+ type: 'extension-installed';
4947
+ };
4948
+
4949
+ /**
4950
+ * An event that fires when an extension fails to install in the security realm.
4951
+ *
4952
+ * @interface
4953
+ */
4954
+ declare type ExtensionInstallFailedEvent = ExtensionEvent & {
4955
+ type: 'extension-install-failed';
4956
+ };
4957
+
4958
+ /**
4959
+ * An event that fires when extensions are disabled in the security realm.
4960
+ *
4961
+ * @interface
4962
+ */
4963
+ declare type ExtensionsDisabledEvent = ExtensionsEvent & {
4964
+ type: 'extensions-disabled';
4965
+ };
4966
+
4967
+ /**
4968
+ * An event that fires when extensions are enabled in the security realm.
4969
+ *
4970
+ * @interface
4971
+ */
4972
+ declare type ExtensionsEnabledEvent = ExtensionsEvent & {
4973
+ type: 'extensions-enabled';
4974
+ };
4975
+
4976
+ declare type ExtensionsEvent = SecurityRealmEvent & {
4977
+ /**
4978
+ * Runtime extensions whose status has been (possibly) modified
4979
+ */
4980
+ extensions: string[];
4981
+ };
4982
+
4983
+ /**
4984
+ * An event that fires when requested extensions are not allowed to be installed in the security realm.
4985
+ *
4986
+ * @interface
4987
+ */
4988
+ declare type ExtensionsExcludedEvent = ExtensionsEvent & {
4989
+ type: 'extensions-excluded';
4990
+ };
4991
+
4992
+ /**
4993
+ * An event that fires when extension initialization fails on initial app launch. Users may attempt to
4994
+ * re-initialize extensions by calling {@link System.refreshExtensions}. This event will not fire in response
4995
+ * to manual extension refreshes (users should catch the error normally).
4996
+ */
4997
+ declare type ExtensionsInitializationFailedEvent = Omit<ExtensionsEvent, 'extensions'> & {
4998
+ type: 'extensions-initialization-failed';
4999
+ /**
5000
+ * The error that caused the extension initialization failure
5001
+ */
5002
+ error: Error;
5003
+ };
5004
+
5005
+ /**
5006
+ * An event that fires when extensions are installed in the security realm.
5007
+ *
5008
+ * @interface
5009
+ */
5010
+ declare type ExtensionsInstalledEvent = ExtensionsEvent & {
5011
+ type: 'extensions-installed';
5012
+ };
5013
+
5014
+ /**
5015
+ * An event that fires when extensions fail to install in the security realm.
5016
+ *
5017
+ * @interface
5018
+ */
5019
+ declare type ExtensionsInstallFailedEvent = ExtensionsEvent & {
5020
+ type: 'extensions-install-failed';
5021
+ };
5022
+
4892
5023
  /**
4893
5024
  * An ExternalApplication object representing native language adapter connections to the runtime. Allows
4894
5025
  * the developer to listen to {@link OpenFin.ExternalApplicationEvents external application events}.
@@ -8669,6 +8800,10 @@ declare type MutableViewOptions = {
8669
8800
  * @defaultValue 'enabled'
8670
8801
  */
8671
8802
  throttling: ViewThrottling;
8803
+ /**
8804
+ * {@inheritDoc ChromiumPolicies}
8805
+ */
8806
+ chromiumPolicies: ChromiumPolicies;
8672
8807
  };
8673
8808
 
8674
8809
  /**
@@ -8926,6 +9061,10 @@ declare type MutableWindowOptions = {
8926
9061
  * @remarks If `throttling` option is present, the `backgroundThrottling` option is completely ignored for windows.
8927
9062
  */
8928
9063
  throttling: WindowThrottling;
9064
+ /**
9065
+ * {@inheritDoc ChromiumPolicies}
9066
+ */
9067
+ chromiumPolicies: ChromiumPolicies;
8929
9068
  };
8930
9069
 
8931
9070
  declare type NackHandler = (payloadOrMessage: RuntimeErrorPayload | string) => void;
@@ -9136,8 +9275,11 @@ declare namespace OpenFin_2 {
9136
9275
  ViewVisibilityOptions,
9137
9276
  WindowState,
9138
9277
  AutoplayPolicyOptions,
9278
+ ExcludeOptions,
9139
9279
  ConstWindowOptions,
9140
9280
  InheritableOptions,
9281
+ PolicyOptions,
9282
+ ChromiumPolicies,
9141
9283
  MutableWindowOptions,
9142
9284
  WorkspacePlatformOptions,
9143
9285
  WebRequestHeader,
@@ -9419,6 +9561,7 @@ declare namespace OpenFin_2 {
9419
9561
  RoutingInfo,
9420
9562
  DownloadShelfOptions,
9421
9563
  ViewShowAtOptions,
9564
+ ExtensionInfo,
9422
9565
  ApplicationEvents,
9423
9566
  BaseEvents,
9424
9567
  ExternalApplicationEvents,
@@ -9622,6 +9765,10 @@ declare type PerDomainSettings = {
9622
9765
  * {@link ContentRedirect} in {@link WindowOptions} and {@link ViewOptions} will be **ignored**.
9623
9766
  */
9624
9767
  content?: ContentPermission;
9768
+ /**
9769
+ * {@inheritdoc ChromiumPolicies}
9770
+ */
9771
+ chromiumPolicies?: ChromiumPolicies;
9625
9772
  };
9626
9773
 
9627
9774
  /**
@@ -11079,6 +11226,12 @@ declare type PointTopLeft = {
11079
11226
  left: number;
11080
11227
  };
11081
11228
 
11229
+ /**
11230
+ * When set to `disable`, disables the policy
11231
+ * When set to `defer-to-group-policy`, respects Group Policy settings
11232
+ */
11233
+ declare type PolicyOptions = 'disable' | 'defer-to-group-policy';
11234
+
11082
11235
  declare type PopupBaseBehavior = 'close' | 'hide';
11083
11236
 
11084
11237
  declare type PopupBlurBehavior = 'modal' | PopupBaseBehavior;
@@ -12094,6 +12247,14 @@ declare interface ProtocolMap extends ProtocolMapBase {
12094
12247
  }, void>;
12095
12248
  'system-register-shutdown-handler': VoidCall;
12096
12249
  'get-permissions': GetterCall<any>;
12250
+ 'refresh-extensions': {
12251
+ request: void;
12252
+ response: string[] | undefined;
12253
+ };
12254
+ 'get-installed-extensions': {
12255
+ request: void;
12256
+ response: OpenFin_2.ExtensionInfo[];
12257
+ };
12097
12258
  'fdc3-add-context-listener': VoidCall;
12098
12259
  'fdc3-add-intent-listener': VoidCall;
12099
12260
  'fdc3-raise-intent': VoidCall;
@@ -12782,6 +12943,21 @@ declare type ScreenshotPrintOptions = {
12782
12943
  content: 'screenshot';
12783
12944
  };
12784
12945
 
12946
+ /**
12947
+ * An event generated when an application modifies the runtime in a way that affects all other applications in the
12948
+ * application runtime/security realm.
12949
+ */
12950
+ declare type SecurityRealmEvent = BaseEvent_9 & {
12951
+ /**
12952
+ * Config URL of the application that modified the security realm's extensions
12953
+ */
12954
+ configUrl: string;
12955
+ /**
12956
+ * Identity of the application that modified the security realm's extensions
12957
+ */
12958
+ applicationIdentity: OpenFin_2.ApplicationIdentity;
12959
+ };
12960
+
12785
12961
  declare type SendActionResponse<T extends keyof ProtocolMap> = Message<{
12786
12962
  data: ProtocolMap[T]['response'];
12787
12963
  } & ProtocolMap[T]['specialResponse']>;
@@ -14673,6 +14849,16 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
14673
14849
  * ```
14674
14850
  */
14675
14851
  setDomainSettings(domainSettings: OpenFin_2.DefaultDomainSettings): Promise<void>;
14852
+ /**
14853
+ * Attempts to install and enable extensions for the security realm. Users may want to call this function in response
14854
+ * to an `extensions-install-failed` event. Only extensions allowed by every application on the current security realm
14855
+ * will be installed/enabled.
14856
+ */
14857
+ refreshExtensions(): Promise<string[] | undefined>;
14858
+ /**
14859
+ * Gets the currently-installed
14860
+ */
14861
+ getInstalledExtensions(): Promise<OpenFin_2.ExtensionInfo[]>;
14676
14862
  }
14677
14863
 
14678
14864
  /**
@@ -14703,6 +14889,14 @@ declare namespace SystemEvents {
14703
14889
  ApplicationCreatedEvent,
14704
14890
  DesktopIconClickedEvent,
14705
14891
  SystemShutdownEvent,
14892
+ ExtensionsEnabledEvent,
14893
+ ExtensionsDisabledEvent,
14894
+ ExtensionsExcludedEvent,
14895
+ ExtensionsInstalledEvent,
14896
+ ExtensionInstalledEvent,
14897
+ ExtensionsInstallFailedEvent,
14898
+ ExtensionInstallFailedEvent,
14899
+ ExtensionsInitializationFailedEvent,
14706
14900
  Event_11 as Event,
14707
14901
  SystemEvent,
14708
14902
  EventType_8 as EventType,
@@ -15884,6 +16078,9 @@ declare class ViewModule extends Base {
15884
16078
  */
15885
16079
  declare type ViewOptions = ConstViewOptions & MutableViewOptions;
15886
16080
 
16081
+ /**
16082
+ * @interface
16083
+ */
15887
16084
  declare type ViewShowAtOptions = {
15888
16085
  /**
15889
16086
  * Sets the view as the top level view. See {@link OpenFin.View.bringToFront} for more information.
package/out/mock.d.ts CHANGED
@@ -2996,6 +2996,18 @@ declare type ChildWindowCreatedEvent = ContentCreationRulesEvent & {
2996
2996
  childOptions: OpenFin_2.WindowOptions;
2997
2997
  };
2998
2998
 
2999
+ /**
3000
+ * Control behavior for Chromium policies
3001
+ *
3002
+ * @interface
3003
+ */
3004
+ declare type ChromiumPolicies = {
3005
+ /**
3006
+ * Disable AutofillAddressEnabled policy for a Window or View.
3007
+ */
3008
+ AutofillAddressEnabled?: PolicyOptions;
3009
+ };
3010
+
2999
3011
  declare interface ClassicProtocolOffer extends ProtocolPacketBase {
3000
3012
  type: 'classic';
3001
3013
  }
@@ -3510,6 +3522,10 @@ declare type ConstViewOptions = {
3510
3522
  */
3511
3523
  enabled: boolean;
3512
3524
  };
3525
+ /**
3526
+ * Control which options to ignore when creating a Platform View.
3527
+ */
3528
+ excludeOptions: ExcludeOptions;
3513
3529
  };
3514
3530
 
3515
3531
  /**
@@ -3754,6 +3770,10 @@ declare type ConstWindowOptions = {
3754
3770
  * Controls whether an option is inherited from the parent application. The option is set as part of the window options for the parent application in either the {@link Manifest.startup_app} or {@link Manifest.platform} properties in the manifest or in {@link ApplicationOptions.mainWindowOptions} when calling {@link Application.ApplicationModule.start Application.start}. Use { [option]: false } to disable a specific [option]. All inheritable properties will be inherited by default if omitted.
3755
3771
  */
3756
3772
  inheritance?: Partial<InheritableOptions>;
3773
+ /**
3774
+ * Control which options to ignore when creating a Platform Window.
3775
+ */
3776
+ excludeOptions: ExcludeOptions;
3757
3777
  };
3758
3778
 
3759
3779
  /**
@@ -4793,7 +4813,7 @@ declare type Event_10 = ApplicationEvents.Event | ApiReadyEvent | SnapshotApplie
4793
4813
  * under the {@link OpenFin.SystemEvents} namespace (payloads inherited from propagated events are defined in the namespace
4794
4814
  * from which they propagate).
4795
4815
  */
4796
- declare type Event_11 = ExcludeRequested<WindowEvents.PropagatedEvent<'system'>> | ExcludeRequested<ViewEvents.PropagatedEvent<'system'>> | ExcludeRequested<ApplicationEvents.PropagatedEvent<'system'>> | ApplicationCreatedEvent | DesktopIconClickedEvent | IdleStateChangedEvent | MonitorInfoChangedEvent | SessionChangedEvent | AppVersionEventWithId | SystemShutdownEvent;
4816
+ declare type Event_11 = ExcludeRequested<WindowEvents.PropagatedEvent<'system'>> | ExcludeRequested<ViewEvents.PropagatedEvent<'system'>> | ExcludeRequested<ApplicationEvents.PropagatedEvent<'system'>> | ApplicationCreatedEvent | DesktopIconClickedEvent | IdleStateChangedEvent | MonitorInfoChangedEvent | SessionChangedEvent | AppVersionEventWithId | SystemShutdownEvent | ExtensionsEnabledEvent | ExtensionsDisabledEvent | ExtensionsExcludedEvent | ExtensionsInstalledEvent | ExtensionInstalledEvent | ExtensionsInstallFailedEvent | ExtensionInstallFailedEvent | ExtensionsInitializationFailedEvent;
4797
4817
 
4798
4818
  /**
4799
4819
  * [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing every possible event that can be emitted by the HTMLElement Layout container.
@@ -4947,6 +4967,18 @@ declare type EventWithId<Event extends AppVersionEvent> = Event extends infer E
4947
4967
  appVersionId: string;
4948
4968
  } : never;
4949
4969
 
4970
+ /**
4971
+ * @interface
4972
+ */
4973
+ declare type ExcludeOptions = {
4974
+ /**
4975
+ * @defaultValue false
4976
+ *
4977
+ * When true, will not merge default preload scripts from {@link ApplicationOptions.defaultWindowOptions} or {@link ApplicationOptions.defaultViewOptions}.
4978
+ */
4979
+ preloadScripts: boolean;
4980
+ };
4981
+
4950
4982
  /**
4951
4983
  * @internal
4952
4984
  *
@@ -4971,6 +5003,105 @@ declare type ExitCode = {
4971
5003
  exitCode: number;
4972
5004
  };
4973
5005
 
5006
+ declare type ExtensionEvent = SecurityRealmEvent & {
5007
+ /**
5008
+ * Runtime extension whose status has been (possibly) modified
5009
+ */
5010
+ extension: string;
5011
+ };
5012
+
5013
+ /**
5014
+ * @interface
5015
+ */
5016
+ declare type ExtensionInfo = {
5017
+ extensionId: string;
5018
+ name: string;
5019
+ enabled: boolean;
5020
+ };
5021
+
5022
+ /**
5023
+ * An event that fires when an extension is installed in the security realm.
5024
+ *
5025
+ * @interface
5026
+ */
5027
+ declare type ExtensionInstalledEvent = ExtensionEvent & {
5028
+ type: 'extension-installed';
5029
+ };
5030
+
5031
+ /**
5032
+ * An event that fires when an extension fails to install in the security realm.
5033
+ *
5034
+ * @interface
5035
+ */
5036
+ declare type ExtensionInstallFailedEvent = ExtensionEvent & {
5037
+ type: 'extension-install-failed';
5038
+ };
5039
+
5040
+ /**
5041
+ * An event that fires when extensions are disabled in the security realm.
5042
+ *
5043
+ * @interface
5044
+ */
5045
+ declare type ExtensionsDisabledEvent = ExtensionsEvent & {
5046
+ type: 'extensions-disabled';
5047
+ };
5048
+
5049
+ /**
5050
+ * An event that fires when extensions are enabled in the security realm.
5051
+ *
5052
+ * @interface
5053
+ */
5054
+ declare type ExtensionsEnabledEvent = ExtensionsEvent & {
5055
+ type: 'extensions-enabled';
5056
+ };
5057
+
5058
+ declare type ExtensionsEvent = SecurityRealmEvent & {
5059
+ /**
5060
+ * Runtime extensions whose status has been (possibly) modified
5061
+ */
5062
+ extensions: string[];
5063
+ };
5064
+
5065
+ /**
5066
+ * An event that fires when requested extensions are not allowed to be installed in the security realm.
5067
+ *
5068
+ * @interface
5069
+ */
5070
+ declare type ExtensionsExcludedEvent = ExtensionsEvent & {
5071
+ type: 'extensions-excluded';
5072
+ };
5073
+
5074
+ /**
5075
+ * An event that fires when extension initialization fails on initial app launch. Users may attempt to
5076
+ * re-initialize extensions by calling {@link System.refreshExtensions}. This event will not fire in response
5077
+ * to manual extension refreshes (users should catch the error normally).
5078
+ */
5079
+ declare type ExtensionsInitializationFailedEvent = Omit<ExtensionsEvent, 'extensions'> & {
5080
+ type: 'extensions-initialization-failed';
5081
+ /**
5082
+ * The error that caused the extension initialization failure
5083
+ */
5084
+ error: Error;
5085
+ };
5086
+
5087
+ /**
5088
+ * An event that fires when extensions are installed in the security realm.
5089
+ *
5090
+ * @interface
5091
+ */
5092
+ declare type ExtensionsInstalledEvent = ExtensionsEvent & {
5093
+ type: 'extensions-installed';
5094
+ };
5095
+
5096
+ /**
5097
+ * An event that fires when extensions fail to install in the security realm.
5098
+ *
5099
+ * @interface
5100
+ */
5101
+ declare type ExtensionsInstallFailedEvent = ExtensionsEvent & {
5102
+ type: 'extensions-install-failed';
5103
+ };
5104
+
4974
5105
  /**
4975
5106
  * An ExternalApplication object representing native language adapter connections to the runtime. Allows
4976
5107
  * the developer to listen to {@link OpenFin.ExternalApplicationEvents external application events}.
@@ -8969,6 +9100,10 @@ declare type MutableViewOptions = {
8969
9100
  * @defaultValue 'enabled'
8970
9101
  */
8971
9102
  throttling: ViewThrottling;
9103
+ /**
9104
+ * {@inheritDoc ChromiumPolicies}
9105
+ */
9106
+ chromiumPolicies: ChromiumPolicies;
8972
9107
  };
8973
9108
 
8974
9109
  /**
@@ -9234,6 +9369,10 @@ declare type MutableWindowOptions = {
9234
9369
  * @remarks If `throttling` option is present, the `backgroundThrottling` option is completely ignored for windows.
9235
9370
  */
9236
9371
  throttling: WindowThrottling;
9372
+ /**
9373
+ * {@inheritDoc ChromiumPolicies}
9374
+ */
9375
+ chromiumPolicies: ChromiumPolicies;
9237
9376
  };
9238
9377
 
9239
9378
  declare type NackHandler = (payloadOrMessage: RuntimeErrorPayload | string) => void;
@@ -9454,8 +9593,11 @@ declare namespace OpenFin_2 {
9454
9593
  ViewVisibilityOptions,
9455
9594
  WindowState,
9456
9595
  AutoplayPolicyOptions,
9596
+ ExcludeOptions,
9457
9597
  ConstWindowOptions,
9458
9598
  InheritableOptions,
9599
+ PolicyOptions,
9600
+ ChromiumPolicies,
9459
9601
  MutableWindowOptions,
9460
9602
  WorkspacePlatformOptions,
9461
9603
  WebRequestHeader,
@@ -9737,6 +9879,7 @@ declare namespace OpenFin_2 {
9737
9879
  RoutingInfo,
9738
9880
  DownloadShelfOptions,
9739
9881
  ViewShowAtOptions,
9882
+ ExtensionInfo,
9740
9883
  ApplicationEvents,
9741
9884
  BaseEvents,
9742
9885
  ExternalApplicationEvents,
@@ -9940,6 +10083,10 @@ declare type PerDomainSettings = {
9940
10083
  * {@link ContentRedirect} in {@link WindowOptions} and {@link ViewOptions} will be **ignored**.
9941
10084
  */
9942
10085
  content?: ContentPermission;
10086
+ /**
10087
+ * {@inheritdoc ChromiumPolicies}
10088
+ */
10089
+ chromiumPolicies?: ChromiumPolicies;
9943
10090
  };
9944
10091
 
9945
10092
  /**
@@ -11475,6 +11622,12 @@ declare type PointTopLeft = {
11475
11622
  left: number;
11476
11623
  };
11477
11624
 
11625
+ /**
11626
+ * When set to `disable`, disables the policy
11627
+ * When set to `defer-to-group-policy`, respects Group Policy settings
11628
+ */
11629
+ declare type PolicyOptions = 'disable' | 'defer-to-group-policy';
11630
+
11478
11631
  declare type PopupBaseBehavior = 'close' | 'hide';
11479
11632
 
11480
11633
  declare type PopupBlurBehavior = 'modal' | PopupBaseBehavior;
@@ -12490,6 +12643,14 @@ declare interface ProtocolMap extends ProtocolMapBase {
12490
12643
  }, void>;
12491
12644
  'system-register-shutdown-handler': VoidCall;
12492
12645
  'get-permissions': GetterCall<any>;
12646
+ 'refresh-extensions': {
12647
+ request: void;
12648
+ response: string[] | undefined;
12649
+ };
12650
+ 'get-installed-extensions': {
12651
+ request: void;
12652
+ response: OpenFin_2.ExtensionInfo[];
12653
+ };
12493
12654
  'fdc3-add-context-listener': VoidCall;
12494
12655
  'fdc3-add-intent-listener': VoidCall;
12495
12656
  'fdc3-raise-intent': VoidCall;
@@ -13178,6 +13339,21 @@ declare type ScreenshotPrintOptions = {
13178
13339
  content: 'screenshot';
13179
13340
  };
13180
13341
 
13342
+ /**
13343
+ * An event generated when an application modifies the runtime in a way that affects all other applications in the
13344
+ * application runtime/security realm.
13345
+ */
13346
+ declare type SecurityRealmEvent = BaseEvent_9 & {
13347
+ /**
13348
+ * Config URL of the application that modified the security realm's extensions
13349
+ */
13350
+ configUrl: string;
13351
+ /**
13352
+ * Identity of the application that modified the security realm's extensions
13353
+ */
13354
+ applicationIdentity: OpenFin_2.ApplicationIdentity;
13355
+ };
13356
+
13181
13357
  declare type SendActionResponse<T extends keyof ProtocolMap> = Message<{
13182
13358
  data: ProtocolMap[T]['response'];
13183
13359
  } & ProtocolMap[T]['specialResponse']>;
@@ -15075,6 +15251,16 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
15075
15251
  * ```
15076
15252
  */
15077
15253
  setDomainSettings(domainSettings: OpenFin_2.DefaultDomainSettings): Promise<void>;
15254
+ /**
15255
+ * Attempts to install and enable extensions for the security realm. Users may want to call this function in response
15256
+ * to an `extensions-install-failed` event. Only extensions allowed by every application on the current security realm
15257
+ * will be installed/enabled.
15258
+ */
15259
+ refreshExtensions(): Promise<string[] | undefined>;
15260
+ /**
15261
+ * Gets the currently-installed
15262
+ */
15263
+ getInstalledExtensions(): Promise<OpenFin_2.ExtensionInfo[]>;
15078
15264
  }
15079
15265
 
15080
15266
  /**
@@ -15105,6 +15291,14 @@ declare namespace SystemEvents {
15105
15291
  ApplicationCreatedEvent,
15106
15292
  DesktopIconClickedEvent,
15107
15293
  SystemShutdownEvent,
15294
+ ExtensionsEnabledEvent,
15295
+ ExtensionsDisabledEvent,
15296
+ ExtensionsExcludedEvent,
15297
+ ExtensionsInstalledEvent,
15298
+ ExtensionInstalledEvent,
15299
+ ExtensionsInstallFailedEvent,
15300
+ ExtensionInstallFailedEvent,
15301
+ ExtensionsInitializationFailedEvent,
15108
15302
  Event_11 as Event,
15109
15303
  SystemEvent,
15110
15304
  EventType_8 as EventType,
@@ -16330,6 +16524,9 @@ declare class ViewModule extends Base {
16330
16524
  */
16331
16525
  declare type ViewOptions = ConstViewOptions & MutableViewOptions;
16332
16526
 
16527
+ /**
16528
+ * @interface
16529
+ */
16333
16530
  declare type ViewShowAtOptions = {
16334
16531
  /**
16335
16532
  * Sets the view as the top level view. See {@link OpenFin.View.bringToFront} for more information.
package/out/mock.js CHANGED
@@ -7099,6 +7099,22 @@ class System extends base_1$i.EmitterBase {
7099
7099
  async setDomainSettings(domainSettings) {
7100
7100
  await this.wire.sendAction('set-domain-settings', { domainSettings, ...this.identity });
7101
7101
  }
7102
+ /**
7103
+ * Attempts to install and enable extensions for the security realm. Users may want to call this function in response
7104
+ * to an `extensions-install-failed` event. Only extensions allowed by every application on the current security realm
7105
+ * will be installed/enabled.
7106
+ */
7107
+ async refreshExtensions() {
7108
+ const { payload } = await this.wire.sendAction('refresh-extensions');
7109
+ return payload.data;
7110
+ }
7111
+ /**
7112
+ * Gets the currently-installed
7113
+ */
7114
+ async getInstalledExtensions() {
7115
+ const { payload } = await this.wire.sendAction('get-installed-extensions');
7116
+ return payload.data;
7117
+ }
7102
7118
  }
7103
7119
  system.System = System;
7104
7120
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/core",
3
- "version": "39.83.5",
3
+ "version": "39.83.7",
4
4
  "description": "The core renderer entry point of OpenFin",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "out/mock.js",