@openfin/fdc3-api 43.103.3 → 43.104.1

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.
@@ -85,7 +85,7 @@ declare type AlertRequestedEvent = BaseEvent_5 & {
85
85
  url: string;
86
86
  };
87
87
 
88
- 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}`;
88
+ declare type AnalyticsOnlyCalls = 'layout-get-stack-by-view' | 'layout-add-view' | 'layout-close-view' | `layout-controller-${string}`;
89
89
 
90
90
  declare type AnalyticsProtocolMap = {
91
91
  [k in AnalyticsOnlyCalls]: VoidCall;
@@ -1754,6 +1754,7 @@ declare type BaseConfig = {
1754
1754
  devToolsPort?: number;
1755
1755
  installerUI?: boolean;
1756
1756
  runtime?: RuntimeConfig;
1757
+ apiDiagnostics?: boolean;
1757
1758
  appAssets?: [
1758
1759
  {
1759
1760
  src: string;
@@ -3111,6 +3112,11 @@ declare type ClearCacheOption = {
3111
3112
  * browser data that can be used across sessions
3112
3113
  */
3113
3114
  localStorage?: boolean;
3115
+ /**
3116
+ * Clears saved window-state data written for windows that use `saveWindowState`.
3117
+ * After this data is cleared, previously persisted bounds and state (Maximized/Minimized) will not be restored until new state is written again.
3118
+ */
3119
+ windowState?: boolean;
3114
3120
  };
3115
3121
 
3116
3122
  /**
@@ -3153,6 +3159,11 @@ declare type ClearDataOptions = {
3153
3159
  * - `origin-in-all-contexts` - Storage is matched on origin only in all contexts.
3154
3160
  */
3155
3161
  originMatchingMode?: 'third-parties-included' | 'origin-in-all-contexts';
3162
+ /**
3163
+ * Clears saved window-state data written for windows that use `saveWindowState`.
3164
+ * After this data is cleared, previously persisted bounds and state (Maximized/Minimized) will not be restored until new state is written again.
3165
+ */
3166
+ windowState?: boolean;
3156
3167
  };
3157
3168
 
3158
3169
  /**
@@ -6957,6 +6968,16 @@ declare type IntentMetadata<TargetType = any> = {
6957
6968
  */
6958
6969
  declare class InterApplicationBus extends Base {
6959
6970
  Channel: Channel;
6971
+ /**
6972
+ * Event types for the InterApplicationBus.
6973
+ *
6974
+ * @remarks The `subscriber-added` and `subscriber-removed` events are disabled by default.
6975
+ * To re-enable them, launch the runtime with the `--emit-legacy-iab-events` flag.
6976
+ * These events will be removed in a future version. Use {@link Channel} for connection
6977
+ * lifecycle management instead.
6978
+ *
6979
+ * @deprecated Use {@link Channel} `onConnection` / `onDisconnection` instead.
6980
+ */
6960
6981
  events: {
6961
6982
  subscriberAdded: string;
6962
6983
  subscriberRemoved: string;
@@ -10631,6 +10652,9 @@ declare namespace OpenFin {
10631
10652
  SystemProcessInfo,
10632
10653
  ClearCacheOption,
10633
10654
  ClearDataOptions,
10655
+ TraceConfig,
10656
+ TraceCategoriesAndOptions,
10657
+ TraceBufferUsage,
10634
10658
  CookieInfo,
10635
10659
  CookieOption,
10636
10660
  CrashReporterOptions,
@@ -13220,19 +13244,17 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13220
13244
  response: OpenFin.MenuResult;
13221
13245
  };
13222
13246
  'close-tray-icon-popup-menu': IdentityCall<{}, void>;
13223
- 'wrap-application': VoidCall;
13224
- 'wrap-application-sync': VoidCall;
13225
13247
  'create-application': ApiCall<OpenFin.ApplicationCreationOptions, void>;
13226
- 'application-create': VoidCall;
13227
- 'start-application': VoidCall;
13228
13248
  'run-applications': ApiCall<{
13229
13249
  applications: Array<OpenFin.ManifestInfo>;
13230
13250
  opts?: OpenFin.RvmLaunchOptions;
13231
13251
  }, void>;
13232
- 'get-current-application': VoidCall;
13233
- 'get-current-application-sync': VoidCall;
13234
- 'application-start-from-manifest': VoidCall;
13235
- 'application-create-from-manifest': VoidCall;
13252
+ 'send-analytics-batch': {
13253
+ request: {
13254
+ counts: Record<string, number>;
13255
+ };
13256
+ response: void;
13257
+ };
13236
13258
  'request-external-authorization': {
13237
13259
  request: any;
13238
13260
  response: void;
@@ -13351,10 +13373,6 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13351
13373
  options: OpenFin.UpdatableViewOptions;
13352
13374
  }>;
13353
13375
  'trigger-before-unload': IdentityCall<{}, boolean>;
13354
- 'view-wrap-sync': VoidCall;
13355
- 'view-wrap': VoidCall;
13356
- 'view-get-current': VoidCall;
13357
- 'view-get-current-sync': VoidCall;
13358
13376
  'animate-window': IdentityCall<{
13359
13377
  transitions: OpenFin.Transition;
13360
13378
  options: OpenFin.TransitionOptions;
@@ -13446,11 +13464,6 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13446
13464
  };
13447
13465
  response: void;
13448
13466
  };
13449
- 'window-wrap': VoidCall;
13450
- 'window-wrap-sync': VoidCall;
13451
- 'create-window': VoidCall;
13452
- 'get-current-window': VoidCall;
13453
- 'get-current-window-sync': VoidCall;
13454
13467
  'show-download-bubble': IdentityCall<{
13455
13468
  anchor?: OpenFin.Anchor;
13456
13469
  }, void>;
@@ -13458,14 +13471,8 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13458
13471
  anchor: OpenFin.Anchor;
13459
13472
  }, void>;
13460
13473
  'get-external-application-info': ApiCall<OpenFin.ApplicationIdentity, OpenFin.ExternalApplicationInfo>;
13461
- 'external-application-wrap': VoidCall;
13462
- 'external-application-wrap-sync': VoidCall;
13463
13474
  'get-frame-info': ApiCall<OpenFin.Identity, OpenFin.FrameInfo>;
13464
13475
  'get-parent-window': ApiCall<OpenFin.Identity, OpenFin.FrameInfo>;
13465
- 'frame-wrap': VoidCall;
13466
- 'frame-wrap-sync': VoidCall;
13467
- 'frame-get-current': VoidCall;
13468
- 'frame-get-current-sync': VoidCall;
13469
13476
  'global-hotkey-register': {
13470
13477
  request: {
13471
13478
  hotkey: string;
@@ -13558,6 +13565,12 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13558
13565
  }, OpenFin.NativeTheme>;
13559
13566
  'get-theme-preferences': GetterCall<OpenFin.NativeTheme>;
13560
13567
  'get-version': GetterCall<string>;
13568
+ 'content-tracing-get-categories': GetterCall<string[]>;
13569
+ 'content-tracing-start-recording': ApiCall<{
13570
+ options: OpenFin.TraceConfig | OpenFin.TraceCategoriesAndOptions;
13571
+ }, void>;
13572
+ 'content-tracing-stop-recording': GetterCall<string>;
13573
+ 'content-tracing-get-trace-buffer-usage': GetterCall<OpenFin.TraceBufferUsage>;
13561
13574
  'clear-cache': ApiCall<OpenFin.ClearCacheOption, void>;
13562
13575
  'clear-http-cache': VoidCall;
13563
13576
  'clear-cache-data': ApiCall<OpenFin.ClearDataOptions, void>;
@@ -13802,7 +13815,6 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13802
13815
  apiPath: '.resolveDomainSettings';
13803
13816
  namespace: 'System';
13804
13817
  };
13805
- 'system-register-shutdown-handler': VoidCall;
13806
13818
  'get-permissions': GetterCall<any>;
13807
13819
  'refresh-extensions': {
13808
13820
  request: void;
@@ -13821,24 +13833,6 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13821
13833
  request: void;
13822
13834
  response: Array<OpenFin.ThemePalette>;
13823
13835
  };
13824
- 'fdc3-add-context-listener': VoidCall;
13825
- 'fdc3-add-intent-listener': VoidCall;
13826
- 'fdc3-raise-intent': VoidCall;
13827
- 'fdc3-find-intent': VoidCall;
13828
- 'fdc3-find-intents-by-context': VoidCall;
13829
- 'fdc3-raise-intent-for-context': VoidCall;
13830
- 'fdc3-get-info': VoidCall;
13831
- 'fdc3-find-instances': VoidCall;
13832
- 'fdc3-get-app-metadata': VoidCall;
13833
- 'fdc3-broadcast': VoidCall;
13834
- 'fdc3-open': VoidCall;
13835
- 'fdc3-get-or-create-channel': VoidCall;
13836
- 'fdc3-get-system-channels': VoidCall;
13837
- 'fdc3-join-channel': VoidCall;
13838
- 'fdc3-get-current-channel': VoidCall;
13839
- 'fdc3-leave-current-channel': VoidCall;
13840
- 'interop-init': VoidCall;
13841
- 'interop-connect-sync': VoidCall;
13842
13836
  'interop-client-set-context': VoidCall;
13843
13837
  'interop-client-add-context-handler': VoidCall;
13844
13838
  'interop-client-get-context-groups': VoidCall;
@@ -13869,12 +13863,6 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13869
13863
  'interop-session-context-group-set-context': VoidCall;
13870
13864
  'interop-session-context-group-get-context': VoidCall;
13871
13865
  'interop-session-context-group-add-handler': VoidCall;
13872
- 'platform-wrap': VoidCall;
13873
- 'platform-wrap-sync': VoidCall;
13874
- 'platform-get-current': VoidCall;
13875
- 'platform-get-current-sync': VoidCall;
13876
- 'platform-start': VoidCall;
13877
- 'platform-start-from-manifest': VoidCall;
13878
13866
  'platform-get-client': ApplicationIdentityCall<{}, void>;
13879
13867
  'platform-create-view': ApplicationIdentityCall<{}, void>;
13880
13868
  'platform-create-window': ApplicationIdentityCall<{}, void>;
@@ -13887,11 +13875,6 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13887
13875
  'platform-set-window-context': ApplicationIdentityCall<{}, void>;
13888
13876
  'platform-get-window-context': ApplicationIdentityCall<{}, void>;
13889
13877
  'platform-close-window': ApplicationIdentityCall<{}, void>;
13890
- 'layout-wrap': VoidCall;
13891
- 'layout-wrap-sync': VoidCall;
13892
- 'layout-get-current': VoidCall;
13893
- 'layout-get-current-sync': VoidCall;
13894
- 'layout-init': VoidCall;
13895
13878
  'layout-get-config': VoidCall;
13896
13879
  'layout-get-views': VoidCall;
13897
13880
  'layout-replace': VoidCall;
@@ -13910,12 +13893,6 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13910
13893
  'layout-controller-create-adjacent-stack': VoidCall;
13911
13894
  'layout-controller-get-adjacent-stacks': VoidCall;
13912
13895
  'layout-controller-set-stack-active-view': VoidCall;
13913
- 'snapshot-source-init': VoidCall;
13914
- 'snapshot-source-wrap-sync': VoidCall;
13915
- 'snapshot-source-wrap': VoidCall;
13916
- 'snapshot-source-ready': VoidCall;
13917
- 'snapshot-source-get-snapshot': VoidCall;
13918
- 'snapshot-source-apply-snapshot': VoidCall;
13919
13896
  'capture-page': IdentityCall<{
13920
13897
  options?: OpenFin.CapturePageOptions;
13921
13898
  }, string>;
@@ -15147,6 +15124,10 @@ declare type SubscriptionOptions = {
15147
15124
  *
15148
15125
  */
15149
15126
  declare class System extends EmitterBase<OpenFin.SystemEvent> {
15127
+ /**
15128
+ * Chromium content tracing APIs.
15129
+ */
15130
+ readonly ContentTracing: SystemContentTracing;
15150
15131
  /* Excluded from this release type: __constructor */
15151
15132
  private sendExternalProcessRequest;
15152
15133
  /**
@@ -15170,13 +15151,15 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
15170
15151
  * * cookies: browser [cookies](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies)
15171
15152
  * * localStorage: browser data that can be used across sessions ([local storage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage))
15172
15153
  * * appcache: html5 [application cache](https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_application_cache)
15154
+ * * windowState: clears data written for windows using `saveWindowState`; after clearing, previously saved bounds and state will not be restored until new state is written
15173
15155
  * @example
15174
15156
  * ```js
15175
15157
  * const clearCacheOptions = {
15176
15158
  * appcache: true,
15177
15159
  * cache: true,
15178
15160
  * cookies: true,
15179
- * localStorage: true
15161
+ * localStorage: true,
15162
+ * windowState: true
15180
15163
  * };
15181
15164
  * fin.System.clearCache(clearCacheOptions).then(() => console.log('Cache cleared')).catch(err => console.log(err));
15182
15165
  * ```
@@ -15201,12 +15184,16 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
15201
15184
  *
15202
15185
  * @param options - Optional configuration for what data to clear
15203
15186
  *
15187
+ * @remarks Set `windowState: true` to also clear data written for windows using `saveWindowState`.
15188
+ * After this data is cleared, previously saved bounds and state will not be restored until new state is written again.
15189
+ *
15204
15190
  * @example
15205
15191
  * ```js
15206
15192
  * // Clear only cookies and localStorage for a specific origin
15207
15193
  * await fin.System.clearCacheData({
15208
15194
  * dataTypes: ['cookies', 'localStorage'],
15209
- * origins: ['http://localhost:8081']
15195
+ * origins: ['http://localhost:8081'],
15196
+ * windowState: true
15210
15197
  * });
15211
15198
  *
15212
15199
  * // Clear everything except for a specific origin
@@ -16780,6 +16767,36 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
16780
16767
  getThemePalette(): Promise<Array<OpenFin.ThemePalette>>;
16781
16768
  }
16782
16769
 
16770
+ /**
16771
+ * Chromium content tracing APIs exposed under `fin.System.ContentTracing`.
16772
+ */
16773
+ declare class SystemContentTracing extends Base {
16774
+ /**
16775
+ * Gets the currently known tracing category groups.
16776
+ */
16777
+ getCategories(): Promise<string[]>;
16778
+ /**
16779
+ * Starts content tracing across runtime processes.
16780
+ *
16781
+ * Only one content tracing session may be active across the runtime at a time.
16782
+ * This method rejects if another identity already owns the active session.
16783
+ */
16784
+ startRecording(options: OpenFin.TraceConfig | OpenFin.TraceCategoriesAndOptions): Promise<void>;
16785
+ /**
16786
+ * Stops the active content tracing session and writes the trace to the runtime-managed cache folder.
16787
+ *
16788
+ * The calling identity must match the identity that started the active tracing session.
16789
+ * This method rejects if tracing is not active or is owned by another identity.
16790
+ */
16791
+ stopRecording(): Promise<string>;
16792
+ /**
16793
+ * Returns the current maximum trace buffer usage across processes.
16794
+ *
16795
+ * This method is not supported on macOS and rejects on that platform.
16796
+ */
16797
+ getTraceBufferUsage(): Promise<OpenFin.TraceBufferUsage>;
16798
+ }
16799
+
16783
16800
  /**
16784
16801
  * @deprecated Renamed to {@link Event}.
16785
16802
  */
@@ -17219,6 +17236,76 @@ declare type Time = {
17219
17236
 
17220
17237
  declare type TimeZones = 'utc' | 'local';
17221
17238
 
17239
+ /**
17240
+ * @interface
17241
+ * Current maximum usage across trace buffers.
17242
+ */
17243
+ declare type TraceBufferUsage = {
17244
+ value: number;
17245
+ percentage: number;
17246
+ };
17247
+
17248
+ /**
17249
+ * @interface
17250
+ * Shorthand tracing configuration based on Electron's contentTracing.startRecording() API.
17251
+ */
17252
+ declare type TraceCategoriesAndOptions = {
17253
+ /**
17254
+ * Filter that controls which category groups should be traced.
17255
+ * 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.
17256
+ */
17257
+ categoryFilter: string;
17258
+ /**
17259
+ * 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.
17260
+ */
17261
+ traceOptions: string;
17262
+ };
17263
+
17264
+ /**
17265
+ * @interface
17266
+ * Structured tracing configuration based on Electron's contentTracing.startRecording() API.
17267
+ */
17268
+ declare type TraceConfig = {
17269
+ /**
17270
+ * Can be `record-until-full`, `record-continuously`, `record-as-much-as-possible` or `trace-to-console`.
17271
+ * Defaults to `record-until-full`, which will record until the trace buffer is full and then stop recording.
17272
+ */
17273
+ recording_mode?: 'record-until-full' | 'record-continuously' | 'record-as-much-as-possible' | 'trace-to-console';
17274
+ /**
17275
+ * Maximum size of the trace recording buffer in kilobytes.
17276
+ */
17277
+ trace_buffer_size_in_kb?: number;
17278
+ /**
17279
+ * Maximum size of the trace recording buffer in events.
17280
+ * Defaults to 100MB
17281
+ */
17282
+ trace_buffer_size_in_events?: number;
17283
+ /**
17284
+ * Filters event data according to Chromium's vetted allowlist.
17285
+ */
17286
+ enable_argument_filter?: boolean;
17287
+ /**
17288
+ * A list of tracing categories to include.
17289
+ */
17290
+ included_categories?: string[];
17291
+ /**
17292
+ * A list of tracing categories to exclude.
17293
+ */
17294
+ excluded_categories?: string[];
17295
+ /**
17296
+ * A list of process IDs to include in the trace.
17297
+ */
17298
+ included_process_ids?: number[];
17299
+ /**
17300
+ * A list of histogram names to report with the trace.
17301
+ */
17302
+ histogram_names?: string[];
17303
+ /**
17304
+ * Additional configuration for memory tracing when memory-infra tracing is enabled.
17305
+ */
17306
+ memory_dump_config?: Record<string, any>;
17307
+ };
17308
+
17222
17309
  /**
17223
17310
  * @interface
17224
17311
  */
@@ -17287,9 +17374,12 @@ declare class Transport<MeType extends EntityType = EntityType> extends EventEmi
17287
17374
  sendRaw: Wire['send'];
17288
17375
  eventAggregator: EventAggregator;
17289
17376
  protected messageHandlers: MessageHandler[];
17290
- constructor(factory: WireFactory, environment: Environment, config: OpenFin.Identity);
17377
+ constructor(factory: WireFactory, environment: Environment, config: OpenFin.Identity & {
17378
+ apiDiagnostics?: boolean;
17379
+ });
17291
17380
  getFin(): OpenFin.Fin<MeType>;
17292
17381
  registerFin(_fin: OpenFin.Fin<MeType>): void;
17382
+ recordAnalytic(action: string): void;
17293
17383
  connectSync: () => void;
17294
17384
  getPort: () => string;
17295
17385
  shutdown(): Promise<void>;