@openfin/core 42.103.4 → 42.104.4

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/stub.d.ts CHANGED
@@ -88,7 +88,7 @@ declare type AlertRequestedEvent = BaseEvent_5 & {
88
88
  url: string;
89
89
  };
90
90
 
91
- declare type AnalyticsOnlyCalls = 'window-get-web-window' | 'layout-get-by-view-identity' | 'layout-get-stack-by-view' | 'layout-add-view' | 'layout-close-view' | 'view-get-parent-layout' | 'view-get-current-stack' | 'window-is-main-window' | 'window-get-parent-application' | 'window-get-parent-window' | 'window-create-window' | 'window-get-layout' | 'window-dispatch-popup-result' | `layout-controller-${string}`;
91
+ declare type AnalyticsOnlyCalls = 'layout-get-stack-by-view' | 'layout-add-view' | 'layout-close-view' | `layout-controller-${string}`;
92
92
 
93
93
  declare type AnalyticsProtocolMap = {
94
94
  [k in AnalyticsOnlyCalls]: VoidCall;
@@ -1714,6 +1714,7 @@ declare type BaseConfig = {
1714
1714
  devToolsPort?: number;
1715
1715
  installerUI?: boolean;
1716
1716
  runtime?: RuntimeConfig;
1717
+ apiDiagnostics?: boolean;
1717
1718
  appAssets?: [
1718
1719
  {
1719
1720
  src: string;
@@ -3095,6 +3096,58 @@ declare type ClearCacheOption = {
3095
3096
  * browser data that can be used across sessions
3096
3097
  */
3097
3098
  localStorage?: boolean;
3099
+ /**
3100
+ * Clears saved window-state data written for windows that use `saveWindowState`.
3101
+ * After this data is cleared, previously persisted bounds and state (Maximized/Minimized) will not be restored until new state is written again.
3102
+ */
3103
+ windowState?: boolean;
3104
+ };
3105
+
3106
+ /**
3107
+ * @interface
3108
+ * Options for clearing various types of browsing data. Based on Electron's session.clearData() API.
3109
+ */
3110
+ declare type ClearDataOptions = {
3111
+ /**
3112
+ * The types of data to clear. By default, this will clear all types of data.
3113
+ * This can potentially include data types not explicitly listed here.
3114
+ *
3115
+ * - `backgroundFetch` - Background Fetch
3116
+ * - `cache` - Cache (includes cachestorage and shadercache)
3117
+ * - `cookies` - Cookies
3118
+ * - `downloads` - Downloads
3119
+ * - `fileSystems` - File Systems
3120
+ * - `indexedDB` - IndexedDB
3121
+ * - `localStorage` - Local Storage
3122
+ * - `serviceWorkers` - Service Workers
3123
+ * - `webSQL` - WebSQL
3124
+ */
3125
+ dataTypes?: Array<'backgroundFetch' | 'cache' | 'cookies' | 'downloads' | 'fileSystems' | 'indexedDB' | 'localStorage' | 'serviceWorkers' | 'webSQL'>;
3126
+ /**
3127
+ * Clear data for only these origins. Cannot be used with excludeOrigins.
3128
+ * Example: ['http://localhost:8081', 'https://example.com']
3129
+ */
3130
+ origins?: string[];
3131
+ /**
3132
+ * Clear data for all origins except these ones. Cannot be used with origins.
3133
+ * Example: ['http://workspace.here.io']
3134
+ */
3135
+ excludeOrigins?: string[];
3136
+ /**
3137
+ * Skips deleting session/authentication cookies currently maintaining active connections. (Default: false)
3138
+ */
3139
+ avoidClosingConnections?: boolean;
3140
+ /**
3141
+ * The behavior for matching data to origins.
3142
+ * - `third-parties-included` (default) - Storage is matched on origin in first-party contexts and top-level-site in third-party contexts.
3143
+ * - `origin-in-all-contexts` - Storage is matched on origin only in all contexts.
3144
+ */
3145
+ originMatchingMode?: 'third-parties-included' | 'origin-in-all-contexts';
3146
+ /**
3147
+ * Clears saved window-state data written for windows that use `saveWindowState`.
3148
+ * After this data is cleared, previously persisted bounds and state (Maximized/Minimized) will not be restored until new state is written again.
3149
+ */
3150
+ windowState?: boolean;
3098
3151
  };
3099
3152
 
3100
3153
  /**
@@ -5087,7 +5140,7 @@ declare type Event_3 = ViewEvents.PropagatedEvent<'application'> | WindowEvents.
5087
5140
  */
5088
5141
  declare type Event_4 = (WebContentsEvents.Event<'view'> & {
5089
5142
  target: OpenFin_2.Identity;
5090
- }) | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent | HostContextChangedEvent | AddedToLayoutEvent | RemovedFromLayoutEvent;
5143
+ }) | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent | HostContextChangedEvent | AddedToLayoutEvent | RemovedFromLayoutEvent | ViewOptionsChangedEvent;
5091
5144
 
5092
5145
  /**
5093
5146
  * [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing events shared by all WebContents elements
@@ -6502,6 +6555,16 @@ declare type IntentMetadata<TargetType = any> = {
6502
6555
  */
6503
6556
  declare class InterApplicationBus extends Base {
6504
6557
  Channel: Channel;
6558
+ /**
6559
+ * Event types for the InterApplicationBus.
6560
+ *
6561
+ * @remarks The `subscriber-added` and `subscriber-removed` events are disabled by default.
6562
+ * To re-enable them, launch the runtime with the `--emit-legacy-iab-events` flag.
6563
+ * These events will be removed in a future version. Use {@link Channel} for connection
6564
+ * lifecycle management instead.
6565
+ *
6566
+ * @deprecated Use {@link Channel} `onConnection` / `onDisconnection` instead.
6567
+ */
6505
6568
  events: {
6506
6569
  subscriberAdded: string;
6507
6570
  subscriberRemoved: string;
@@ -10257,6 +10320,10 @@ declare namespace OpenFin_2 {
10257
10320
  NonAppProcessDetails,
10258
10321
  SystemProcessInfo,
10259
10322
  ClearCacheOption,
10323
+ ClearDataOptions,
10324
+ TraceConfig,
10325
+ TraceCategoriesAndOptions,
10326
+ TraceBufferUsage,
10260
10327
  CookieInfo,
10261
10328
  CookieOption,
10262
10329
  CrashReporterOptions,
@@ -12922,19 +12989,17 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
12922
12989
  response: OpenFin_2.MenuResult;
12923
12990
  };
12924
12991
  'close-tray-icon-popup-menu': IdentityCall<{}, void>;
12925
- 'wrap-application': VoidCall;
12926
- 'wrap-application-sync': VoidCall;
12927
12992
  'create-application': ApiCall<OpenFin_2.ApplicationCreationOptions, void>;
12928
- 'application-create': VoidCall;
12929
- 'start-application': VoidCall;
12930
12993
  'run-applications': ApiCall<{
12931
12994
  applications: Array<OpenFin_2.ManifestInfo>;
12932
12995
  opts?: OpenFin_2.RvmLaunchOptions;
12933
12996
  }, void>;
12934
- 'get-current-application': VoidCall;
12935
- 'get-current-application-sync': VoidCall;
12936
- 'application-start-from-manifest': VoidCall;
12937
- 'application-create-from-manifest': VoidCall;
12997
+ 'send-analytics-batch': {
12998
+ request: {
12999
+ counts: Record<string, number>;
13000
+ };
13001
+ response: void;
13002
+ };
12938
13003
  'request-external-authorization': {
12939
13004
  request: any;
12940
13005
  response: void;
@@ -13053,10 +13118,6 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13053
13118
  options: OpenFin_2.UpdatableViewOptions;
13054
13119
  }>;
13055
13120
  'trigger-before-unload': IdentityCall<{}, boolean>;
13056
- 'view-wrap-sync': VoidCall;
13057
- 'view-wrap': VoidCall;
13058
- 'view-get-current': VoidCall;
13059
- 'view-get-current-sync': VoidCall;
13060
13121
  'animate-window': IdentityCall<{
13061
13122
  transitions: OpenFin_2.Transition;
13062
13123
  options: OpenFin_2.TransitionOptions;
@@ -13154,14 +13215,8 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13154
13215
  'get-current-window': VoidCall;
13155
13216
  'get-current-window-sync': VoidCall;
13156
13217
  'get-external-application-info': ApiCall<OpenFin_2.ApplicationIdentity, OpenFin_2.ExternalApplicationInfo>;
13157
- 'external-application-wrap': VoidCall;
13158
- 'external-application-wrap-sync': VoidCall;
13159
13218
  'get-frame-info': ApiCall<OpenFin_2.Identity, OpenFin_2.FrameInfo>;
13160
13219
  'get-parent-window': ApiCall<OpenFin_2.Identity, OpenFin_2.FrameInfo>;
13161
- 'frame-wrap': VoidCall;
13162
- 'frame-wrap-sync': VoidCall;
13163
- 'frame-get-current': VoidCall;
13164
- 'frame-get-current-sync': VoidCall;
13165
13220
  'global-hotkey-register': {
13166
13221
  request: {
13167
13222
  hotkey: string;
@@ -13250,7 +13305,15 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13250
13305
  response: any;
13251
13306
  };
13252
13307
  'get-version': GetterCall<string>;
13308
+ 'content-tracing-get-categories': GetterCall<string[]>;
13309
+ 'content-tracing-start-recording': ApiCall<{
13310
+ options: OpenFin_2.TraceConfig | OpenFin_2.TraceCategoriesAndOptions;
13311
+ }, void>;
13312
+ 'content-tracing-stop-recording': GetterCall<string>;
13313
+ 'content-tracing-get-trace-buffer-usage': GetterCall<OpenFin_2.TraceBufferUsage>;
13253
13314
  'clear-cache': ApiCall<OpenFin_2.ClearCacheOption, void>;
13315
+ 'clear-http-cache': VoidCall;
13316
+ 'clear-cache-data': ApiCall<OpenFin_2.ClearDataOptions, void>;
13254
13317
  'delete-cache-request': VoidCall;
13255
13318
  'exit-desktop': VoidCall;
13256
13319
  'fetch-manifest': ApiCall<{
@@ -13489,7 +13552,6 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13489
13552
  apiPath: '.resolveDomainSettings';
13490
13553
  namespace: 'System';
13491
13554
  };
13492
- 'system-register-shutdown-handler': VoidCall;
13493
13555
  'get-permissions': GetterCall<any>;
13494
13556
  'refresh-extensions': {
13495
13557
  request: void;
@@ -13499,24 +13561,6 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13499
13561
  request: void;
13500
13562
  response: OpenFin_2.ExtensionInfo[];
13501
13563
  };
13502
- 'fdc3-add-context-listener': VoidCall;
13503
- 'fdc3-add-intent-listener': VoidCall;
13504
- 'fdc3-raise-intent': VoidCall;
13505
- 'fdc3-find-intent': VoidCall;
13506
- 'fdc3-find-intents-by-context': VoidCall;
13507
- 'fdc3-raise-intent-for-context': VoidCall;
13508
- 'fdc3-get-info': VoidCall;
13509
- 'fdc3-find-instances': VoidCall;
13510
- 'fdc3-get-app-metadata': VoidCall;
13511
- 'fdc3-broadcast': VoidCall;
13512
- 'fdc3-open': VoidCall;
13513
- 'fdc3-get-or-create-channel': VoidCall;
13514
- 'fdc3-get-system-channels': VoidCall;
13515
- 'fdc3-join-channel': VoidCall;
13516
- 'fdc3-get-current-channel': VoidCall;
13517
- 'fdc3-leave-current-channel': VoidCall;
13518
- 'interop-init': VoidCall;
13519
- 'interop-connect-sync': VoidCall;
13520
13564
  'interop-client-set-context': VoidCall;
13521
13565
  'interop-client-add-context-handler': VoidCall;
13522
13566
  'interop-client-get-context-groups': VoidCall;
@@ -13547,12 +13591,6 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13547
13591
  'interop-session-context-group-set-context': VoidCall;
13548
13592
  'interop-session-context-group-get-context': VoidCall;
13549
13593
  'interop-session-context-group-add-handler': VoidCall;
13550
- 'platform-wrap': VoidCall;
13551
- 'platform-wrap-sync': VoidCall;
13552
- 'platform-get-current': VoidCall;
13553
- 'platform-get-current-sync': VoidCall;
13554
- 'platform-start': VoidCall;
13555
- 'platform-start-from-manifest': VoidCall;
13556
13594
  'platform-get-client': ApplicationIdentityCall<{}, void>;
13557
13595
  'platform-create-view': ApplicationIdentityCall<{}, void>;
13558
13596
  'platform-create-window': ApplicationIdentityCall<{}, void>;
@@ -13565,11 +13603,6 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13565
13603
  'platform-set-window-context': ApplicationIdentityCall<{}, void>;
13566
13604
  'platform-get-window-context': ApplicationIdentityCall<{}, void>;
13567
13605
  'platform-close-window': ApplicationIdentityCall<{}, void>;
13568
- 'layout-wrap': VoidCall;
13569
- 'layout-wrap-sync': VoidCall;
13570
- 'layout-get-current': VoidCall;
13571
- 'layout-get-current-sync': VoidCall;
13572
- 'layout-init': VoidCall;
13573
13606
  'layout-get-config': VoidCall;
13574
13607
  'layout-get-views': VoidCall;
13575
13608
  'layout-replace': VoidCall;
@@ -13588,12 +13621,6 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13588
13621
  'layout-controller-create-adjacent-stack': VoidCall;
13589
13622
  'layout-controller-get-adjacent-stacks': VoidCall;
13590
13623
  'layout-controller-set-stack-active-view': VoidCall;
13591
- 'snapshot-source-init': VoidCall;
13592
- 'snapshot-source-wrap-sync': VoidCall;
13593
- 'snapshot-source-wrap': VoidCall;
13594
- 'snapshot-source-ready': VoidCall;
13595
- 'snapshot-source-get-snapshot': VoidCall;
13596
- 'snapshot-source-apply-snapshot': VoidCall;
13597
13624
  'capture-page': IdentityCall<{
13598
13625
  options?: OpenFin_2.CapturePageOptions;
13599
13626
  }, string>;
@@ -14773,6 +14800,10 @@ declare type SubscriptionOptions = {
14773
14800
  *
14774
14801
  */
14775
14802
  declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
14803
+ /**
14804
+ * Chromium content tracing APIs.
14805
+ */
14806
+ readonly ContentTracing: SystemContentTracing;
14776
14807
  /**
14777
14808
  * @internal
14778
14809
  */
@@ -14799,19 +14830,63 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
14799
14830
  * * cookies: browser [cookies](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies)
14800
14831
  * * localStorage: browser data that can be used across sessions ([local storage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage))
14801
14832
  * * appcache: html5 [application cache](https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache)
14833
+ * * windowState: clears data written for windows using `saveWindowState`; after clearing, previously saved bounds and state will not be restored until new state is written
14802
14834
  * @example
14803
14835
  * ```js
14804
14836
  * const clearCacheOptions = {
14805
14837
  * appcache: true,
14806
14838
  * cache: true,
14807
14839
  * cookies: true,
14808
- * localStorage: true
14840
+ * localStorage: true,
14841
+ * windowState: true
14809
14842
  * };
14810
14843
  * fin.System.clearCache(clearCacheOptions).then(() => console.log('Cache cleared')).catch(err => console.log(err));
14811
14844
  * ```
14812
14845
  *
14813
14846
  */
14814
14847
  clearCache(options: OpenFin_2.ClearCacheOption): Promise<void>;
14848
+ /**
14849
+ * Clears only the HTTP cache (browser cache for HTML, CSS, JS, images).
14850
+ * Service workers and other storage data are preserved.
14851
+ *
14852
+ * This is useful when you need to clear stale content without breaking offline functionality.
14853
+ *
14854
+ * @example
14855
+ * ```js
14856
+ * // Clear HTTP cache without affecting service workers
14857
+ * await fin.System.clearHTTPCache();
14858
+ * ```
14859
+ */
14860
+ clearHTTPCache(): Promise<void>;
14861
+ /**
14862
+ * Clears browsing data with granular control over what to clear and which origins to target.
14863
+ *
14864
+ * @param options - Optional configuration for what data to clear
14865
+ *
14866
+ * @remarks Set `windowState: true` to also clear data written for windows using `saveWindowState`.
14867
+ * After this data is cleared, previously saved bounds and state will not be restored until new state is written again.
14868
+ *
14869
+ * @example
14870
+ * ```js
14871
+ * // Clear only cookies and localStorage for a specific origin
14872
+ * await fin.System.clearCacheData({
14873
+ * dataTypes: ['cookies', 'localStorage'],
14874
+ * origins: ['http://localhost:8081'],
14875
+ * windowState: true
14876
+ * });
14877
+ *
14878
+ * // Clear everything except for a specific origin
14879
+ * await fin.System.clearCacheData({
14880
+ * excludeOrigins: ['http://example.com']
14881
+ * });
14882
+ *
14883
+ * // Clear all service workers across all origins
14884
+ * await fin.System.clearCacheData({
14885
+ * dataTypes: ['serviceWorkers']
14886
+ * });
14887
+ * ```
14888
+ */
14889
+ clearCacheData(options?: OpenFin_2.ClearDataOptions): Promise<void>;
14815
14890
  /**
14816
14891
  * Clears all cached data when OpenFin Runtime exits.
14817
14892
  *
@@ -15018,6 +15093,11 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
15018
15093
  /**
15019
15094
  * Returns a unique identifier (UUID) provided by the machine.
15020
15095
  *
15096
+ * On Windows, the machine ID is the `MachineGuid` value located in the Windows Registry at:
15097
+ * `HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography`.
15098
+ *
15099
+ * On macOS, the machine ID is the hardware UUID of the machine, obtained via native OS APIs.
15100
+ *
15021
15101
  * @example
15022
15102
  * ```js
15023
15103
  * fin.System.getMachineId().then(id => console.log(id)).catch(err => console.log(err));
@@ -16253,6 +16333,36 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
16253
16333
  launchLogUploader(options: OpenFin_2.LogUploaderOptions): Promise<void>;
16254
16334
  }
16255
16335
 
16336
+ /**
16337
+ * Chromium content tracing APIs exposed under `fin.System.ContentTracing`.
16338
+ */
16339
+ declare class SystemContentTracing extends Base {
16340
+ /**
16341
+ * Gets the currently known tracing category groups.
16342
+ */
16343
+ getCategories(): Promise<string[]>;
16344
+ /**
16345
+ * Starts content tracing across runtime processes.
16346
+ *
16347
+ * Only one content tracing session may be active across the runtime at a time.
16348
+ * This method rejects if another identity already owns the active session.
16349
+ */
16350
+ startRecording(options: OpenFin_2.TraceConfig | OpenFin_2.TraceCategoriesAndOptions): Promise<void>;
16351
+ /**
16352
+ * Stops the active content tracing session and writes the trace to the runtime-managed cache folder.
16353
+ *
16354
+ * The calling identity must match the identity that started the active tracing session.
16355
+ * This method rejects if tracing is not active or is owned by another identity.
16356
+ */
16357
+ stopRecording(): Promise<string>;
16358
+ /**
16359
+ * Returns the current maximum trace buffer usage across processes.
16360
+ *
16361
+ * This method is not supported on macOS and rejects on that platform.
16362
+ */
16363
+ getTraceBufferUsage(): Promise<OpenFin_2.TraceBufferUsage>;
16364
+ }
16365
+
16256
16366
  /**
16257
16367
  * @deprecated Renamed to {@link Event}.
16258
16368
  */
@@ -16592,6 +16702,76 @@ declare type Time = {
16592
16702
 
16593
16703
  declare type TimeZones = 'utc' | 'local';
16594
16704
 
16705
+ /**
16706
+ * @interface
16707
+ * Current maximum usage across trace buffers.
16708
+ */
16709
+ declare type TraceBufferUsage = {
16710
+ value: number;
16711
+ percentage: number;
16712
+ };
16713
+
16714
+ /**
16715
+ * @interface
16716
+ * Shorthand tracing configuration based on Electron's contentTracing.startRecording() API.
16717
+ */
16718
+ declare type TraceCategoriesAndOptions = {
16719
+ /**
16720
+ * Filter that controls which category groups should be traced.
16721
+ * A filter can have an optional '-' prefix to exclude category groups that contain a matching category. Having both included and excluded category patterns in the same list is not supported. Examples: test_MyTest*, test_MyTest*,test_OtherStuff, -excluded_category1,-excluded_category2.
16722
+ */
16723
+ categoryFilter: string;
16724
+ /**
16725
+ * Comma-delimited string controlling recording mode and extra trace options. valid strings; record-until-full, record-continuously, trace-to-console, enable-sampling, enable-systrace, e.g. 'record-until-full,enable-sampling'. The first 3 options are trace recording modes and hence mutually exclusive. If more than one trace recording modes appear in the traceOptions string, the last one takes precedence. If none of the trace recording modes are specified, recording mode is record-until-full. The trace option will first be reset to the default option (record_mode set to record-until-full, enable_sampling and enable_systrace set to false) before options parsed from traceOptions are applied on it.
16726
+ */
16727
+ traceOptions: string;
16728
+ };
16729
+
16730
+ /**
16731
+ * @interface
16732
+ * Structured tracing configuration based on Electron's contentTracing.startRecording() API.
16733
+ */
16734
+ declare type TraceConfig = {
16735
+ /**
16736
+ * Can be `record-until-full`, `record-continuously`, `record-as-much-as-possible` or `trace-to-console`.
16737
+ * Defaults to `record-until-full`, which will record until the trace buffer is full and then stop recording.
16738
+ */
16739
+ recording_mode?: 'record-until-full' | 'record-continuously' | 'record-as-much-as-possible' | 'trace-to-console';
16740
+ /**
16741
+ * Maximum size of the trace recording buffer in kilobytes.
16742
+ */
16743
+ trace_buffer_size_in_kb?: number;
16744
+ /**
16745
+ * Maximum size of the trace recording buffer in events.
16746
+ * Defaults to 100MB
16747
+ */
16748
+ trace_buffer_size_in_events?: number;
16749
+ /**
16750
+ * Filters event data according to Chromium's vetted allowlist.
16751
+ */
16752
+ enable_argument_filter?: boolean;
16753
+ /**
16754
+ * A list of tracing categories to include.
16755
+ */
16756
+ included_categories?: string[];
16757
+ /**
16758
+ * A list of tracing categories to exclude.
16759
+ */
16760
+ excluded_categories?: string[];
16761
+ /**
16762
+ * A list of process IDs to include in the trace.
16763
+ */
16764
+ included_process_ids?: number[];
16765
+ /**
16766
+ * A list of histogram names to report with the trace.
16767
+ */
16768
+ histogram_names?: string[];
16769
+ /**
16770
+ * Additional configuration for memory tracing when memory-infra tracing is enabled.
16771
+ */
16772
+ memory_dump_config?: Record<string, any>;
16773
+ };
16774
+
16595
16775
  /**
16596
16776
  * @interface
16597
16777
  */
@@ -16660,9 +16840,12 @@ declare class Transport<MeType extends EntityType = EntityType> extends EventEmi
16660
16840
  sendRaw: Wire['send'];
16661
16841
  eventAggregator: EventAggregator;
16662
16842
  protected messageHandlers: MessageHandler[];
16663
- constructor(factory: WireFactory, environment: Environment, config: OpenFin_2.Identity);
16843
+ constructor(factory: WireFactory, environment: Environment, config: OpenFin_2.Identity & {
16844
+ apiDiagnostics?: boolean;
16845
+ });
16664
16846
  getFin(): OpenFin_2.Fin<MeType>;
16665
16847
  registerFin(_fin: OpenFin_2.Fin<MeType>): void;
16848
+ recordAnalytic(action: string): void;
16666
16849
  connectSync: () => void;
16667
16850
  getPort: () => string;
16668
16851
  shutdown(): Promise<void>;
@@ -17394,6 +17577,7 @@ declare namespace ViewEvents {
17394
17577
  HotkeyEvent,
17395
17578
  ShownEvent,
17396
17579
  HostContextChangedEvent,
17580
+ ViewOptionsChangedEvent,
17397
17581
  Event_4 as Event,
17398
17582
  ViewEvent,
17399
17583
  WillPropagateViewEvent,
@@ -17522,6 +17706,23 @@ declare class ViewModule extends Base {
17522
17706
  */
17523
17707
  declare type ViewOptions = ConstViewOptions & MutableViewOptions;
17524
17708
 
17709
+ /**
17710
+ * Generated whenever a view's options are changed.
17711
+ * @remarks Will not emit if an updateOptions call does not result in a new diff.
17712
+ * @interface
17713
+ */
17714
+ declare type ViewOptionsChangedEvent = BaseEvent_4 & {
17715
+ type: 'options-changed';
17716
+ /**
17717
+ * The new state of the view's options.
17718
+ */
17719
+ options: OpenFin_2.ViewOptions;
17720
+ /**
17721
+ * Diff between the previous value of options and new.
17722
+ */
17723
+ diff: OpenFin_2.ViewOptions;
17724
+ };
17725
+
17525
17726
  /**
17526
17727
  * @interface
17527
17728
  */