@openfin/fdc3-api 44.100.109 → 44.101.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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;
@@ -6985,6 +6986,16 @@ declare type IntentMetadata<TargetType = any> = {
6985
6986
  */
6986
6987
  declare class InterApplicationBus extends Base {
6987
6988
  Channel: Channel;
6989
+ /**
6990
+ * Event types for the InterApplicationBus.
6991
+ *
6992
+ * @remarks The `subscriber-added` and `subscriber-removed` events are disabled by default.
6993
+ * To re-enable them, launch the runtime with the `--emit-legacy-iab-events` flag.
6994
+ * These events will be removed in a future version. Use {@link Channel} for connection
6995
+ * lifecycle management instead.
6996
+ *
6997
+ * @deprecated Use {@link Channel} `onConnection` / `onDisconnection` instead.
6998
+ */
6988
6999
  events: {
6989
7000
  subscriberAdded: string;
6990
7001
  subscriberRemoved: string;
@@ -10659,6 +10670,9 @@ declare namespace OpenFin {
10659
10670
  SystemProcessInfo,
10660
10671
  ClearCacheOption,
10661
10672
  ClearDataOptions,
10673
+ TraceConfig,
10674
+ TraceCategoriesAndOptions,
10675
+ TraceBufferUsage,
10662
10676
  CookieInfo,
10663
10677
  CookieOption,
10664
10678
  CrashReporterOptions,
@@ -13249,19 +13263,17 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13249
13263
  response: OpenFin.MenuResult;
13250
13264
  };
13251
13265
  'close-tray-icon-popup-menu': IdentityCall<{}, void>;
13252
- 'wrap-application': VoidCall;
13253
- 'wrap-application-sync': VoidCall;
13254
13266
  'create-application': ApiCall<OpenFin.ApplicationCreationOptions, void>;
13255
- 'application-create': VoidCall;
13256
- 'start-application': VoidCall;
13257
13267
  'run-applications': ApiCall<{
13258
13268
  applications: Array<OpenFin.ManifestInfo>;
13259
13269
  opts?: OpenFin.RvmLaunchOptions;
13260
13270
  }, void>;
13261
- 'get-current-application': VoidCall;
13262
- 'get-current-application-sync': VoidCall;
13263
- 'application-start-from-manifest': VoidCall;
13264
- 'application-create-from-manifest': VoidCall;
13271
+ 'send-analytics-batch': {
13272
+ request: {
13273
+ counts: Record<string, number>;
13274
+ };
13275
+ response: void;
13276
+ };
13265
13277
  'request-external-authorization': {
13266
13278
  request: any;
13267
13279
  response: void;
@@ -13380,10 +13392,6 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13380
13392
  options: OpenFin.UpdatableViewOptions;
13381
13393
  }>;
13382
13394
  'trigger-before-unload': IdentityCall<{}, boolean>;
13383
- 'view-wrap-sync': VoidCall;
13384
- 'view-wrap': VoidCall;
13385
- 'view-get-current': VoidCall;
13386
- 'view-get-current-sync': VoidCall;
13387
13395
  'animate-window': IdentityCall<{
13388
13396
  transitions: OpenFin.Transition;
13389
13397
  options: OpenFin.TransitionOptions;
@@ -13475,11 +13483,6 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13475
13483
  };
13476
13484
  response: void;
13477
13485
  };
13478
- 'window-wrap': VoidCall;
13479
- 'window-wrap-sync': VoidCall;
13480
- 'create-window': VoidCall;
13481
- 'get-current-window': VoidCall;
13482
- 'get-current-window-sync': VoidCall;
13483
13486
  'show-download-bubble': IdentityCall<{
13484
13487
  anchor?: OpenFin.Anchor;
13485
13488
  }, void>;
@@ -13487,14 +13490,8 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13487
13490
  anchor: OpenFin.Anchor;
13488
13491
  }, void>;
13489
13492
  'get-external-application-info': ApiCall<OpenFin.ApplicationIdentity, OpenFin.ExternalApplicationInfo>;
13490
- 'external-application-wrap': VoidCall;
13491
- 'external-application-wrap-sync': VoidCall;
13492
13493
  'get-frame-info': ApiCall<OpenFin.Identity, OpenFin.FrameInfo>;
13493
13494
  'get-parent-window': ApiCall<OpenFin.Identity, OpenFin.FrameInfo>;
13494
- 'frame-wrap': VoidCall;
13495
- 'frame-wrap-sync': VoidCall;
13496
- 'frame-get-current': VoidCall;
13497
- 'frame-get-current-sync': VoidCall;
13498
13495
  'global-hotkey-register': {
13499
13496
  request: {
13500
13497
  hotkey: string;
@@ -13587,6 +13584,12 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13587
13584
  }, OpenFin.NativeTheme>;
13588
13585
  'get-theme-preferences': GetterCall<OpenFin.NativeTheme>;
13589
13586
  'get-version': GetterCall<string>;
13587
+ 'content-tracing-get-categories': GetterCall<string[]>;
13588
+ 'content-tracing-start-recording': ApiCall<{
13589
+ options: OpenFin.TraceConfig | OpenFin.TraceCategoriesAndOptions;
13590
+ }, void>;
13591
+ 'content-tracing-stop-recording': GetterCall<string>;
13592
+ 'content-tracing-get-trace-buffer-usage': GetterCall<OpenFin.TraceBufferUsage>;
13590
13593
  'clear-cache': ApiCall<OpenFin.ClearCacheOption, void>;
13591
13594
  'clear-http-cache': VoidCall;
13592
13595
  'clear-cache-data': ApiCall<OpenFin.ClearDataOptions, void>;
@@ -13831,7 +13834,6 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13831
13834
  apiPath: '.resolveDomainSettings';
13832
13835
  namespace: 'System';
13833
13836
  };
13834
- 'system-register-shutdown-handler': VoidCall;
13835
13837
  'get-permissions': GetterCall<any>;
13836
13838
  'refresh-extensions': {
13837
13839
  request: void;
@@ -13850,24 +13852,6 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13850
13852
  request: void;
13851
13853
  response: Array<OpenFin.ThemePalette>;
13852
13854
  };
13853
- 'fdc3-add-context-listener': VoidCall;
13854
- 'fdc3-add-intent-listener': VoidCall;
13855
- 'fdc3-raise-intent': VoidCall;
13856
- 'fdc3-find-intent': VoidCall;
13857
- 'fdc3-find-intents-by-context': VoidCall;
13858
- 'fdc3-raise-intent-for-context': VoidCall;
13859
- 'fdc3-get-info': VoidCall;
13860
- 'fdc3-find-instances': VoidCall;
13861
- 'fdc3-get-app-metadata': VoidCall;
13862
- 'fdc3-broadcast': VoidCall;
13863
- 'fdc3-open': VoidCall;
13864
- 'fdc3-get-or-create-channel': VoidCall;
13865
- 'fdc3-get-system-channels': VoidCall;
13866
- 'fdc3-join-channel': VoidCall;
13867
- 'fdc3-get-current-channel': VoidCall;
13868
- 'fdc3-leave-current-channel': VoidCall;
13869
- 'interop-init': VoidCall;
13870
- 'interop-connect-sync': VoidCall;
13871
13855
  'interop-client-set-context': VoidCall;
13872
13856
  'interop-client-add-context-handler': VoidCall;
13873
13857
  'interop-client-get-context-groups': VoidCall;
@@ -13898,12 +13882,6 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13898
13882
  'interop-session-context-group-set-context': VoidCall;
13899
13883
  'interop-session-context-group-get-context': VoidCall;
13900
13884
  'interop-session-context-group-add-handler': VoidCall;
13901
- 'platform-wrap': VoidCall;
13902
- 'platform-wrap-sync': VoidCall;
13903
- 'platform-get-current': VoidCall;
13904
- 'platform-get-current-sync': VoidCall;
13905
- 'platform-start': VoidCall;
13906
- 'platform-start-from-manifest': VoidCall;
13907
13885
  'platform-get-client': ApplicationIdentityCall<{}, void>;
13908
13886
  'platform-create-view': ApplicationIdentityCall<{}, void>;
13909
13887
  'platform-create-window': ApplicationIdentityCall<{}, void>;
@@ -13916,11 +13894,6 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13916
13894
  'platform-set-window-context': ApplicationIdentityCall<{}, void>;
13917
13895
  'platform-get-window-context': ApplicationIdentityCall<{}, void>;
13918
13896
  'platform-close-window': ApplicationIdentityCall<{}, void>;
13919
- 'layout-wrap': VoidCall;
13920
- 'layout-wrap-sync': VoidCall;
13921
- 'layout-get-current': VoidCall;
13922
- 'layout-get-current-sync': VoidCall;
13923
- 'layout-init': VoidCall;
13924
13897
  'layout-get-config': VoidCall;
13925
13898
  'layout-get-views': VoidCall;
13926
13899
  'layout-replace': VoidCall;
@@ -13939,12 +13912,6 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13939
13912
  'layout-controller-create-adjacent-stack': VoidCall;
13940
13913
  'layout-controller-get-adjacent-stacks': VoidCall;
13941
13914
  'layout-controller-set-stack-active-view': VoidCall;
13942
- 'snapshot-source-init': VoidCall;
13943
- 'snapshot-source-wrap-sync': VoidCall;
13944
- 'snapshot-source-wrap': VoidCall;
13945
- 'snapshot-source-ready': VoidCall;
13946
- 'snapshot-source-get-snapshot': VoidCall;
13947
- 'snapshot-source-apply-snapshot': VoidCall;
13948
13915
  'capture-page': IdentityCall<{
13949
13916
  options?: OpenFin.CapturePageOptions;
13950
13917
  }, string>;
@@ -15176,6 +15143,10 @@ declare type SubscriptionOptions = {
15176
15143
  *
15177
15144
  */
15178
15145
  declare class System extends EmitterBase<OpenFin.SystemEvent> {
15146
+ /**
15147
+ * Chromium content tracing APIs.
15148
+ */
15149
+ readonly ContentTracing: SystemContentTracing;
15179
15150
  /* Excluded from this release type: __constructor */
15180
15151
  private sendExternalProcessRequest;
15181
15152
  /**
@@ -16809,6 +16780,83 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
16809
16780
  getThemePalette(): Promise<Array<OpenFin.ThemePalette>>;
16810
16781
  }
16811
16782
 
16783
+ /**
16784
+ * Chromium content tracing APIs exposed under `fin.System.ContentTracing`.
16785
+ */
16786
+ declare class SystemContentTracing extends Base {
16787
+ /**
16788
+ * Gets the currently known tracing category groups.
16789
+ *
16790
+ * @example
16791
+ * ```ts
16792
+ * const categories = await fin.System.ContentTracing.getCategories();
16793
+ * const sorted = [...new Set(categories)].sort((a, b) => a.localeCompare(b));
16794
+ * console.log(`Loaded ${sorted.length} tracing categories`);
16795
+ * ```
16796
+ */
16797
+ getCategories(): Promise<string[]>;
16798
+ /**
16799
+ * Starts content tracing across runtime processes.
16800
+ *
16801
+ * Only one content tracing session may be active across the runtime at a time.
16802
+ * This method rejects if another identity already owns the active session.
16803
+ *
16804
+ * @example
16805
+ * ```ts
16806
+ * await fin.System.ContentTracing.startRecording({
16807
+ * recording_mode: 'record-as-much-as-possible',
16808
+ * included_categories: [
16809
+ * '*',
16810
+ * 'disabled-by-default-blink.invalidation',
16811
+ * 'disabled-by-default-cc.debug',
16812
+ * 'disabled-by-default-viz.surface_id_flow'
16813
+ * ]
16814
+ * });
16815
+ *
16816
+ * console.log('Content tracing started. Call stopRecording() when ready to collect the trace.');
16817
+ * ```
16818
+ *
16819
+ * @example
16820
+ * ```ts
16821
+ * await fin.System.ContentTracing.startRecording({
16822
+ * categoryFilter: 'electron,blink,cc',
16823
+ * traceOptions: 'record-until-full,enable-sampling'
16824
+ * });
16825
+ * ```
16826
+ */
16827
+ startRecording(options: OpenFin.TraceConfig | OpenFin.TraceCategoriesAndOptions): Promise<void>;
16828
+ /**
16829
+ * Stops the active content tracing session and writes the trace to the runtime-managed cache folder.
16830
+ *
16831
+ * The calling identity must match the identity that started the active tracing session.
16832
+ * This method rejects if tracing is not active or is owned by another identity.
16833
+ *
16834
+ * @example
16835
+ * ```ts
16836
+ * const tracePath = await fin.System.ContentTracing.stopRecording();
16837
+ * console.log('Trace written to:', tracePath);
16838
+ * // Load the file in chrome://tracing or https://ui.perfetto.dev/
16839
+ * ```
16840
+ */
16841
+ stopRecording(): Promise<string>;
16842
+ /**
16843
+ * Returns the current maximum trace buffer usage across processes.
16844
+ *
16845
+ * This method is not supported on macOS and rejects on that platform.
16846
+ *
16847
+ * @example
16848
+ * ```ts
16849
+ * try {
16850
+ * const usage = await fin.System.ContentTracing.getTraceBufferUsage();
16851
+ * console.log(`Buffer usage: ${usage.percentage}% (${usage.value})`);
16852
+ * } catch (error) {
16853
+ * console.warn('Trace buffer usage is not available on this platform.', error);
16854
+ * }
16855
+ * ```
16856
+ */
16857
+ getTraceBufferUsage(): Promise<OpenFin.TraceBufferUsage>;
16858
+ }
16859
+
16812
16860
  /**
16813
16861
  * @deprecated Renamed to {@link Event}.
16814
16862
  */
@@ -17248,6 +17296,76 @@ declare type Time = {
17248
17296
 
17249
17297
  declare type TimeZones = 'utc' | 'local';
17250
17298
 
17299
+ /**
17300
+ * @interface
17301
+ * Current maximum usage across trace buffers.
17302
+ */
17303
+ declare type TraceBufferUsage = {
17304
+ value: number;
17305
+ percentage: number;
17306
+ };
17307
+
17308
+ /**
17309
+ * @interface
17310
+ * Shorthand tracing configuration based on Electron's contentTracing.startRecording() API.
17311
+ */
17312
+ declare type TraceCategoriesAndOptions = {
17313
+ /**
17314
+ * Filter that controls which category groups should be traced.
17315
+ * 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.
17316
+ */
17317
+ categoryFilter: string;
17318
+ /**
17319
+ * 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.
17320
+ */
17321
+ traceOptions: string;
17322
+ };
17323
+
17324
+ /**
17325
+ * @interface
17326
+ * Structured tracing configuration based on Electron's contentTracing.startRecording() API.
17327
+ */
17328
+ declare type TraceConfig = {
17329
+ /**
17330
+ * Can be `record-until-full`, `record-continuously`, `record-as-much-as-possible` or `trace-to-console`.
17331
+ * Defaults to `record-until-full`, which will record until the trace buffer is full and then stop recording.
17332
+ */
17333
+ recording_mode?: 'record-until-full' | 'record-continuously' | 'record-as-much-as-possible' | 'trace-to-console';
17334
+ /**
17335
+ * Maximum size of the trace recording buffer in kilobytes.
17336
+ */
17337
+ trace_buffer_size_in_kb?: number;
17338
+ /**
17339
+ * Maximum size of the trace recording buffer in events.
17340
+ * Defaults to 100MB
17341
+ */
17342
+ trace_buffer_size_in_events?: number;
17343
+ /**
17344
+ * Filters event data according to Chromium's vetted allowlist.
17345
+ */
17346
+ enable_argument_filter?: boolean;
17347
+ /**
17348
+ * A list of tracing categories to include.
17349
+ */
17350
+ included_categories?: string[];
17351
+ /**
17352
+ * A list of tracing categories to exclude.
17353
+ */
17354
+ excluded_categories?: string[];
17355
+ /**
17356
+ * A list of process IDs to include in the trace.
17357
+ */
17358
+ included_process_ids?: number[];
17359
+ /**
17360
+ * A list of histogram names to report with the trace.
17361
+ */
17362
+ histogram_names?: string[];
17363
+ /**
17364
+ * Additional configuration for memory tracing when memory-infra tracing is enabled.
17365
+ */
17366
+ memory_dump_config?: Record<string, any>;
17367
+ };
17368
+
17251
17369
  /**
17252
17370
  * @interface
17253
17371
  */
@@ -17316,9 +17434,12 @@ declare class Transport<MeType extends EntityType = EntityType> extends EventEmi
17316
17434
  sendRaw: Wire['send'];
17317
17435
  eventAggregator: EventAggregator;
17318
17436
  protected messageHandlers: MessageHandler[];
17319
- constructor(factory: WireFactory, environment: Environment, config: OpenFin.Identity);
17437
+ constructor(factory: WireFactory, environment: Environment, config: OpenFin.Identity & {
17438
+ apiDiagnostics?: boolean;
17439
+ });
17320
17440
  getFin(): OpenFin.Fin<MeType>;
17321
17441
  registerFin(_fin: OpenFin.Fin<MeType>): void;
17442
+ recordAnalytic(action: string): void;
17322
17443
  connectSync: () => void;
17323
17444
  getPort: () => string;
17324
17445
  shutdown(): Promise<void>;