@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.
@@ -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;
@@ -1682,6 +1682,7 @@ declare type BaseConfig = {
1682
1682
  devToolsPort?: number;
1683
1683
  installerUI?: boolean;
1684
1684
  runtime?: RuntimeConfig;
1685
+ apiDiagnostics?: boolean;
1685
1686
  appAssets?: [
1686
1687
  {
1687
1688
  src: string;
@@ -3039,6 +3040,58 @@ declare type ClearCacheOption = {
3039
3040
  * browser data that can be used across sessions
3040
3041
  */
3041
3042
  localStorage?: boolean;
3043
+ /**
3044
+ * Clears saved window-state data written for windows that use `saveWindowState`.
3045
+ * After this data is cleared, previously persisted bounds and state (Maximized/Minimized) will not be restored until new state is written again.
3046
+ */
3047
+ windowState?: boolean;
3048
+ };
3049
+
3050
+ /**
3051
+ * @interface
3052
+ * Options for clearing various types of browsing data. Based on Electron's session.clearData() API.
3053
+ */
3054
+ declare type ClearDataOptions = {
3055
+ /**
3056
+ * The types of data to clear. By default, this will clear all types of data.
3057
+ * This can potentially include data types not explicitly listed here.
3058
+ *
3059
+ * - `backgroundFetch` - Background Fetch
3060
+ * - `cache` - Cache (includes cachestorage and shadercache)
3061
+ * - `cookies` - Cookies
3062
+ * - `downloads` - Downloads
3063
+ * - `fileSystems` - File Systems
3064
+ * - `indexedDB` - IndexedDB
3065
+ * - `localStorage` - Local Storage
3066
+ * - `serviceWorkers` - Service Workers
3067
+ * - `webSQL` - WebSQL
3068
+ */
3069
+ dataTypes?: Array<'backgroundFetch' | 'cache' | 'cookies' | 'downloads' | 'fileSystems' | 'indexedDB' | 'localStorage' | 'serviceWorkers' | 'webSQL'>;
3070
+ /**
3071
+ * Clear data for only these origins. Cannot be used with excludeOrigins.
3072
+ * Example: ['http://localhost:8081', 'https://example.com']
3073
+ */
3074
+ origins?: string[];
3075
+ /**
3076
+ * Clear data for all origins except these ones. Cannot be used with origins.
3077
+ * Example: ['http://workspace.here.io']
3078
+ */
3079
+ excludeOrigins?: string[];
3080
+ /**
3081
+ * Skips deleting session/authentication cookies currently maintaining active connections. (Default: false)
3082
+ */
3083
+ avoidClosingConnections?: boolean;
3084
+ /**
3085
+ * The behavior for matching data to origins.
3086
+ * - `third-parties-included` (default) - Storage is matched on origin in first-party contexts and top-level-site in third-party contexts.
3087
+ * - `origin-in-all-contexts` - Storage is matched on origin only in all contexts.
3088
+ */
3089
+ originMatchingMode?: 'third-parties-included' | 'origin-in-all-contexts';
3090
+ /**
3091
+ * Clears saved window-state data written for windows that use `saveWindowState`.
3092
+ * After this data is cleared, previously persisted bounds and state (Maximized/Minimized) will not be restored until new state is written again.
3093
+ */
3094
+ windowState?: boolean;
3042
3095
  };
3043
3096
 
3044
3097
  /**
@@ -5023,7 +5076,7 @@ declare type Event_3 = ViewEvents.PropagatedEvent<'application'> | WindowEvents.
5023
5076
  */
5024
5077
  declare type Event_4 = (WebContentsEvents.Event<'view'> & {
5025
5078
  target: OpenFin_2.Identity;
5026
- }) | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent | HostContextChangedEvent | AddedToLayoutEvent | RemovedFromLayoutEvent;
5079
+ }) | CreatedEvent | DestroyedEvent | HiddenEvent | HotkeyEvent | ShownEvent | TargetChangedEvent | HostContextChangedEvent | AddedToLayoutEvent | RemovedFromLayoutEvent | ViewOptionsChangedEvent;
5027
5080
 
5028
5081
  /**
5029
5082
  * [Union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types) containing events shared by all WebContents elements
@@ -6408,6 +6461,16 @@ declare type IntentMetadata<TargetType = any> = {
6408
6461
  */
6409
6462
  declare class InterApplicationBus extends Base {
6410
6463
  Channel: Channel;
6464
+ /**
6465
+ * Event types for the InterApplicationBus.
6466
+ *
6467
+ * @remarks The `subscriber-added` and `subscriber-removed` events are disabled by default.
6468
+ * To re-enable them, launch the runtime with the `--emit-legacy-iab-events` flag.
6469
+ * These events will be removed in a future version. Use {@link Channel} for connection
6470
+ * lifecycle management instead.
6471
+ *
6472
+ * @deprecated Use {@link Channel} `onConnection` / `onDisconnection` instead.
6473
+ */
6411
6474
  events: {
6412
6475
  subscriberAdded: string;
6413
6476
  subscriberRemoved: string;
@@ -9923,6 +9986,10 @@ declare namespace OpenFin_2 {
9923
9986
  NonAppProcessDetails,
9924
9987
  SystemProcessInfo,
9925
9988
  ClearCacheOption,
9989
+ ClearDataOptions,
9990
+ TraceConfig,
9991
+ TraceCategoriesAndOptions,
9992
+ TraceBufferUsage,
9926
9993
  CookieInfo,
9927
9994
  CookieOption,
9928
9995
  CrashReporterOptions,
@@ -12505,19 +12572,17 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
12505
12572
  response: OpenFin_2.MenuResult;
12506
12573
  };
12507
12574
  'close-tray-icon-popup-menu': IdentityCall<{}, void>;
12508
- 'wrap-application': VoidCall;
12509
- 'wrap-application-sync': VoidCall;
12510
12575
  'create-application': ApiCall<OpenFin_2.ApplicationCreationOptions, void>;
12511
- 'application-create': VoidCall;
12512
- 'start-application': VoidCall;
12513
12576
  'run-applications': ApiCall<{
12514
12577
  applications: Array<OpenFin_2.ManifestInfo>;
12515
12578
  opts?: OpenFin_2.RvmLaunchOptions;
12516
12579
  }, void>;
12517
- 'get-current-application': VoidCall;
12518
- 'get-current-application-sync': VoidCall;
12519
- 'application-start-from-manifest': VoidCall;
12520
- 'application-create-from-manifest': VoidCall;
12580
+ 'send-analytics-batch': {
12581
+ request: {
12582
+ counts: Record<string, number>;
12583
+ };
12584
+ response: void;
12585
+ };
12521
12586
  'request-external-authorization': {
12522
12587
  request: any;
12523
12588
  response: void;
@@ -12636,10 +12701,6 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
12636
12701
  options: OpenFin_2.UpdatableViewOptions;
12637
12702
  }>;
12638
12703
  'trigger-before-unload': IdentityCall<{}, boolean>;
12639
- 'view-wrap-sync': VoidCall;
12640
- 'view-wrap': VoidCall;
12641
- 'view-get-current': VoidCall;
12642
- 'view-get-current-sync': VoidCall;
12643
12704
  'animate-window': IdentityCall<{
12644
12705
  transitions: OpenFin_2.Transition;
12645
12706
  options: OpenFin_2.TransitionOptions;
@@ -12737,14 +12798,8 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
12737
12798
  'get-current-window': VoidCall;
12738
12799
  'get-current-window-sync': VoidCall;
12739
12800
  'get-external-application-info': ApiCall<OpenFin_2.ApplicationIdentity, OpenFin_2.ExternalApplicationInfo>;
12740
- 'external-application-wrap': VoidCall;
12741
- 'external-application-wrap-sync': VoidCall;
12742
12801
  'get-frame-info': ApiCall<OpenFin_2.Identity, OpenFin_2.FrameInfo>;
12743
12802
  'get-parent-window': ApiCall<OpenFin_2.Identity, OpenFin_2.FrameInfo>;
12744
- 'frame-wrap': VoidCall;
12745
- 'frame-wrap-sync': VoidCall;
12746
- 'frame-get-current': VoidCall;
12747
- 'frame-get-current-sync': VoidCall;
12748
12803
  'global-hotkey-register': {
12749
12804
  request: {
12750
12805
  hotkey: string;
@@ -12833,7 +12888,15 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
12833
12888
  response: any;
12834
12889
  };
12835
12890
  'get-version': GetterCall<string>;
12891
+ 'content-tracing-get-categories': GetterCall<string[]>;
12892
+ 'content-tracing-start-recording': ApiCall<{
12893
+ options: OpenFin_2.TraceConfig | OpenFin_2.TraceCategoriesAndOptions;
12894
+ }, void>;
12895
+ 'content-tracing-stop-recording': GetterCall<string>;
12896
+ 'content-tracing-get-trace-buffer-usage': GetterCall<OpenFin_2.TraceBufferUsage>;
12836
12897
  'clear-cache': ApiCall<OpenFin_2.ClearCacheOption, void>;
12898
+ 'clear-http-cache': VoidCall;
12899
+ 'clear-cache-data': ApiCall<OpenFin_2.ClearDataOptions, void>;
12837
12900
  'delete-cache-request': VoidCall;
12838
12901
  'exit-desktop': VoidCall;
12839
12902
  'fetch-manifest': ApiCall<{
@@ -13072,7 +13135,6 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13072
13135
  apiPath: '.resolveDomainSettings';
13073
13136
  namespace: 'System';
13074
13137
  };
13075
- 'system-register-shutdown-handler': VoidCall;
13076
13138
  'get-permissions': GetterCall<any>;
13077
13139
  'refresh-extensions': {
13078
13140
  request: void;
@@ -13082,24 +13144,6 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13082
13144
  request: void;
13083
13145
  response: OpenFin_2.ExtensionInfo[];
13084
13146
  };
13085
- 'fdc3-add-context-listener': VoidCall;
13086
- 'fdc3-add-intent-listener': VoidCall;
13087
- 'fdc3-raise-intent': VoidCall;
13088
- 'fdc3-find-intent': VoidCall;
13089
- 'fdc3-find-intents-by-context': VoidCall;
13090
- 'fdc3-raise-intent-for-context': VoidCall;
13091
- 'fdc3-get-info': VoidCall;
13092
- 'fdc3-find-instances': VoidCall;
13093
- 'fdc3-get-app-metadata': VoidCall;
13094
- 'fdc3-broadcast': VoidCall;
13095
- 'fdc3-open': VoidCall;
13096
- 'fdc3-get-or-create-channel': VoidCall;
13097
- 'fdc3-get-system-channels': VoidCall;
13098
- 'fdc3-join-channel': VoidCall;
13099
- 'fdc3-get-current-channel': VoidCall;
13100
- 'fdc3-leave-current-channel': VoidCall;
13101
- 'interop-init': VoidCall;
13102
- 'interop-connect-sync': VoidCall;
13103
13147
  'interop-client-set-context': VoidCall;
13104
13148
  'interop-client-add-context-handler': VoidCall;
13105
13149
  'interop-client-get-context-groups': VoidCall;
@@ -13130,12 +13174,6 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13130
13174
  'interop-session-context-group-set-context': VoidCall;
13131
13175
  'interop-session-context-group-get-context': VoidCall;
13132
13176
  'interop-session-context-group-add-handler': VoidCall;
13133
- 'platform-wrap': VoidCall;
13134
- 'platform-wrap-sync': VoidCall;
13135
- 'platform-get-current': VoidCall;
13136
- 'platform-get-current-sync': VoidCall;
13137
- 'platform-start': VoidCall;
13138
- 'platform-start-from-manifest': VoidCall;
13139
13177
  'platform-get-client': ApplicationIdentityCall<{}, void>;
13140
13178
  'platform-create-view': ApplicationIdentityCall<{}, void>;
13141
13179
  'platform-create-window': ApplicationIdentityCall<{}, void>;
@@ -13148,11 +13186,6 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13148
13186
  'platform-set-window-context': ApplicationIdentityCall<{}, void>;
13149
13187
  'platform-get-window-context': ApplicationIdentityCall<{}, void>;
13150
13188
  'platform-close-window': ApplicationIdentityCall<{}, void>;
13151
- 'layout-wrap': VoidCall;
13152
- 'layout-wrap-sync': VoidCall;
13153
- 'layout-get-current': VoidCall;
13154
- 'layout-get-current-sync': VoidCall;
13155
- 'layout-init': VoidCall;
13156
13189
  'layout-get-config': VoidCall;
13157
13190
  'layout-get-views': VoidCall;
13158
13191
  'layout-replace': VoidCall;
@@ -13171,12 +13204,6 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13171
13204
  'layout-controller-create-adjacent-stack': VoidCall;
13172
13205
  'layout-controller-get-adjacent-stacks': VoidCall;
13173
13206
  'layout-controller-set-stack-active-view': VoidCall;
13174
- 'snapshot-source-init': VoidCall;
13175
- 'snapshot-source-wrap-sync': VoidCall;
13176
- 'snapshot-source-wrap': VoidCall;
13177
- 'snapshot-source-ready': VoidCall;
13178
- 'snapshot-source-get-snapshot': VoidCall;
13179
- 'snapshot-source-apply-snapshot': VoidCall;
13180
13207
  'capture-page': IdentityCall<{
13181
13208
  options?: OpenFin_2.CapturePageOptions;
13182
13209
  }, string>;
@@ -14353,6 +14380,10 @@ declare type SubscriptionOptions = {
14353
14380
  *
14354
14381
  */
14355
14382
  declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
14383
+ /**
14384
+ * Chromium content tracing APIs.
14385
+ */
14386
+ readonly ContentTracing: SystemContentTracing;
14356
14387
  /* Excluded from this release type: __constructor */
14357
14388
  private sendExternalProcessRequest;
14358
14389
  /**
@@ -14376,19 +14407,63 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
14376
14407
  * * cookies: browser [cookies](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies)
14377
14408
  * * localStorage: browser data that can be used across sessions ([local storage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage))
14378
14409
  * * appcache: html5 [application cache](https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache)
14410
+ * * windowState: clears data written for windows using `saveWindowState`; after clearing, previously saved bounds and state will not be restored until new state is written
14379
14411
  * @example
14380
14412
  * ```js
14381
14413
  * const clearCacheOptions = {
14382
14414
  * appcache: true,
14383
14415
  * cache: true,
14384
14416
  * cookies: true,
14385
- * localStorage: true
14417
+ * localStorage: true,
14418
+ * windowState: true
14386
14419
  * };
14387
14420
  * fin.System.clearCache(clearCacheOptions).then(() => console.log('Cache cleared')).catch(err => console.log(err));
14388
14421
  * ```
14389
14422
  *
14390
14423
  */
14391
14424
  clearCache(options: OpenFin_2.ClearCacheOption): Promise<void>;
14425
+ /**
14426
+ * Clears only the HTTP cache (browser cache for HTML, CSS, JS, images).
14427
+ * Service workers and other storage data are preserved.
14428
+ *
14429
+ * This is useful when you need to clear stale content without breaking offline functionality.
14430
+ *
14431
+ * @example
14432
+ * ```js
14433
+ * // Clear HTTP cache without affecting service workers
14434
+ * await fin.System.clearHTTPCache();
14435
+ * ```
14436
+ */
14437
+ clearHTTPCache(): Promise<void>;
14438
+ /**
14439
+ * Clears browsing data with granular control over what to clear and which origins to target.
14440
+ *
14441
+ * @param options - Optional configuration for what data to clear
14442
+ *
14443
+ * @remarks Set `windowState: true` to also clear data written for windows using `saveWindowState`.
14444
+ * After this data is cleared, previously saved bounds and state will not be restored until new state is written again.
14445
+ *
14446
+ * @example
14447
+ * ```js
14448
+ * // Clear only cookies and localStorage for a specific origin
14449
+ * await fin.System.clearCacheData({
14450
+ * dataTypes: ['cookies', 'localStorage'],
14451
+ * origins: ['http://localhost:8081'],
14452
+ * windowState: true
14453
+ * });
14454
+ *
14455
+ * // Clear everything except for a specific origin
14456
+ * await fin.System.clearCacheData({
14457
+ * excludeOrigins: ['http://example.com']
14458
+ * });
14459
+ *
14460
+ * // Clear all service workers across all origins
14461
+ * await fin.System.clearCacheData({
14462
+ * dataTypes: ['serviceWorkers']
14463
+ * });
14464
+ * ```
14465
+ */
14466
+ clearCacheData(options?: OpenFin_2.ClearDataOptions): Promise<void>;
14392
14467
  /**
14393
14468
  * Clears all cached data when OpenFin Runtime exits.
14394
14469
  *
@@ -14595,6 +14670,11 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
14595
14670
  /**
14596
14671
  * Returns a unique identifier (UUID) provided by the machine.
14597
14672
  *
14673
+ * On Windows, the machine ID is the `MachineGuid` value located in the Windows Registry at:
14674
+ * `HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography`.
14675
+ *
14676
+ * On macOS, the machine ID is the hardware UUID of the machine, obtained via native OS APIs.
14677
+ *
14598
14678
  * @example
14599
14679
  * ```js
14600
14680
  * fin.System.getMachineId().then(id => console.log(id)).catch(err => console.log(err));
@@ -15830,6 +15910,36 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
15830
15910
  launchLogUploader(options: OpenFin_2.LogUploaderOptions): Promise<void>;
15831
15911
  }
15832
15912
 
15913
+ /**
15914
+ * Chromium content tracing APIs exposed under `fin.System.ContentTracing`.
15915
+ */
15916
+ declare class SystemContentTracing extends Base {
15917
+ /**
15918
+ * Gets the currently known tracing category groups.
15919
+ */
15920
+ getCategories(): Promise<string[]>;
15921
+ /**
15922
+ * Starts content tracing across runtime processes.
15923
+ *
15924
+ * Only one content tracing session may be active across the runtime at a time.
15925
+ * This method rejects if another identity already owns the active session.
15926
+ */
15927
+ startRecording(options: OpenFin_2.TraceConfig | OpenFin_2.TraceCategoriesAndOptions): Promise<void>;
15928
+ /**
15929
+ * Stops the active content tracing session and writes the trace to the runtime-managed cache folder.
15930
+ *
15931
+ * The calling identity must match the identity that started the active tracing session.
15932
+ * This method rejects if tracing is not active or is owned by another identity.
15933
+ */
15934
+ stopRecording(): Promise<string>;
15935
+ /**
15936
+ * Returns the current maximum trace buffer usage across processes.
15937
+ *
15938
+ * This method is not supported on macOS and rejects on that platform.
15939
+ */
15940
+ getTraceBufferUsage(): Promise<OpenFin_2.TraceBufferUsage>;
15941
+ }
15942
+
15833
15943
  /**
15834
15944
  * @deprecated Renamed to {@link Event}.
15835
15945
  */
@@ -16162,6 +16272,76 @@ declare type Time = {
16162
16272
 
16163
16273
  declare type TimeZones = 'utc' | 'local';
16164
16274
 
16275
+ /**
16276
+ * @interface
16277
+ * Current maximum usage across trace buffers.
16278
+ */
16279
+ declare type TraceBufferUsage = {
16280
+ value: number;
16281
+ percentage: number;
16282
+ };
16283
+
16284
+ /**
16285
+ * @interface
16286
+ * Shorthand tracing configuration based on Electron's contentTracing.startRecording() API.
16287
+ */
16288
+ declare type TraceCategoriesAndOptions = {
16289
+ /**
16290
+ * Filter that controls which category groups should be traced.
16291
+ * 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.
16292
+ */
16293
+ categoryFilter: string;
16294
+ /**
16295
+ * 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.
16296
+ */
16297
+ traceOptions: string;
16298
+ };
16299
+
16300
+ /**
16301
+ * @interface
16302
+ * Structured tracing configuration based on Electron's contentTracing.startRecording() API.
16303
+ */
16304
+ declare type TraceConfig = {
16305
+ /**
16306
+ * Can be `record-until-full`, `record-continuously`, `record-as-much-as-possible` or `trace-to-console`.
16307
+ * Defaults to `record-until-full`, which will record until the trace buffer is full and then stop recording.
16308
+ */
16309
+ recording_mode?: 'record-until-full' | 'record-continuously' | 'record-as-much-as-possible' | 'trace-to-console';
16310
+ /**
16311
+ * Maximum size of the trace recording buffer in kilobytes.
16312
+ */
16313
+ trace_buffer_size_in_kb?: number;
16314
+ /**
16315
+ * Maximum size of the trace recording buffer in events.
16316
+ * Defaults to 100MB
16317
+ */
16318
+ trace_buffer_size_in_events?: number;
16319
+ /**
16320
+ * Filters event data according to Chromium's vetted allowlist.
16321
+ */
16322
+ enable_argument_filter?: boolean;
16323
+ /**
16324
+ * A list of tracing categories to include.
16325
+ */
16326
+ included_categories?: string[];
16327
+ /**
16328
+ * A list of tracing categories to exclude.
16329
+ */
16330
+ excluded_categories?: string[];
16331
+ /**
16332
+ * A list of process IDs to include in the trace.
16333
+ */
16334
+ included_process_ids?: number[];
16335
+ /**
16336
+ * A list of histogram names to report with the trace.
16337
+ */
16338
+ histogram_names?: string[];
16339
+ /**
16340
+ * Additional configuration for memory tracing when memory-infra tracing is enabled.
16341
+ */
16342
+ memory_dump_config?: Record<string, any>;
16343
+ };
16344
+
16165
16345
  /**
16166
16346
  * @interface
16167
16347
  */
@@ -16230,9 +16410,12 @@ declare class Transport<MeType extends EntityType = EntityType> extends EventEmi
16230
16410
  sendRaw: Wire['send'];
16231
16411
  eventAggregator: EventAggregator;
16232
16412
  protected messageHandlers: MessageHandler[];
16233
- constructor(factory: WireFactory, environment: Environment, config: OpenFin_2.Identity);
16413
+ constructor(factory: WireFactory, environment: Environment, config: OpenFin_2.Identity & {
16414
+ apiDiagnostics?: boolean;
16415
+ });
16234
16416
  getFin(): OpenFin_2.Fin<MeType>;
16235
16417
  registerFin(_fin: OpenFin_2.Fin<MeType>): void;
16418
+ recordAnalytic(action: string): void;
16236
16419
  connectSync: () => void;
16237
16420
  getPort: () => string;
16238
16421
  shutdown(): Promise<void>;
@@ -16927,6 +17110,7 @@ declare namespace ViewEvents {
16927
17110
  HotkeyEvent,
16928
17111
  ShownEvent,
16929
17112
  HostContextChangedEvent,
17113
+ ViewOptionsChangedEvent,
16930
17114
  Event_4 as Event,
16931
17115
  ViewEvent,
16932
17116
  WillPropagateViewEvent,
@@ -17055,6 +17239,23 @@ declare class ViewModule extends Base {
17055
17239
  */
17056
17240
  declare type ViewOptions = ConstViewOptions & MutableViewOptions;
17057
17241
 
17242
+ /**
17243
+ * Generated whenever a view's options are changed.
17244
+ * @remarks Will not emit if an updateOptions call does not result in a new diff.
17245
+ * @interface
17246
+ */
17247
+ declare type ViewOptionsChangedEvent = BaseEvent_4 & {
17248
+ type: 'options-changed';
17249
+ /**
17250
+ * The new state of the view's options.
17251
+ */
17252
+ options: OpenFin_2.ViewOptions;
17253
+ /**
17254
+ * Diff between the previous value of options and new.
17255
+ */
17256
+ diff: OpenFin_2.ViewOptions;
17257
+ };
17258
+
17058
17259
  /**
17059
17260
  * @interface
17060
17261
  */