@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.
package/out/fdc3-api.d.ts CHANGED
@@ -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;
@@ -1786,6 +1786,7 @@ declare type BaseConfig = {
1786
1786
  devToolsPort?: number;
1787
1787
  installerUI?: boolean;
1788
1788
  runtime?: RuntimeConfig;
1789
+ apiDiagnostics?: boolean;
1789
1790
  appAssets?: [
1790
1791
  {
1791
1792
  src: string;
@@ -7079,6 +7080,16 @@ declare type IntentMetadata<TargetType = any> = {
7079
7080
  */
7080
7081
  declare class InterApplicationBus extends Base {
7081
7082
  Channel: Channel;
7083
+ /**
7084
+ * Event types for the InterApplicationBus.
7085
+ *
7086
+ * @remarks The `subscriber-added` and `subscriber-removed` events are disabled by default.
7087
+ * To re-enable them, launch the runtime with the `--emit-legacy-iab-events` flag.
7088
+ * These events will be removed in a future version. Use {@link Channel} for connection
7089
+ * lifecycle management instead.
7090
+ *
7091
+ * @deprecated Use {@link Channel} `onConnection` / `onDisconnection` instead.
7092
+ */
7082
7093
  events: {
7083
7094
  subscriberAdded: string;
7084
7095
  subscriberRemoved: string;
@@ -10993,6 +11004,9 @@ declare namespace OpenFin {
10993
11004
  SystemProcessInfo,
10994
11005
  ClearCacheOption,
10995
11006
  ClearDataOptions,
11007
+ TraceConfig,
11008
+ TraceCategoriesAndOptions,
11009
+ TraceBufferUsage,
10996
11010
  CookieInfo,
10997
11011
  CookieOption,
10998
11012
  CrashReporterOptions,
@@ -13666,19 +13680,17 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13666
13680
  response: OpenFin.MenuResult;
13667
13681
  };
13668
13682
  'close-tray-icon-popup-menu': IdentityCall<{}, void>;
13669
- 'wrap-application': VoidCall;
13670
- 'wrap-application-sync': VoidCall;
13671
13683
  'create-application': ApiCall<OpenFin.ApplicationCreationOptions, void>;
13672
- 'application-create': VoidCall;
13673
- 'start-application': VoidCall;
13674
13684
  'run-applications': ApiCall<{
13675
13685
  applications: Array<OpenFin.ManifestInfo>;
13676
13686
  opts?: OpenFin.RvmLaunchOptions;
13677
13687
  }, void>;
13678
- 'get-current-application': VoidCall;
13679
- 'get-current-application-sync': VoidCall;
13680
- 'application-start-from-manifest': VoidCall;
13681
- 'application-create-from-manifest': VoidCall;
13688
+ 'send-analytics-batch': {
13689
+ request: {
13690
+ counts: Record<string, number>;
13691
+ };
13692
+ response: void;
13693
+ };
13682
13694
  'request-external-authorization': {
13683
13695
  request: any;
13684
13696
  response: void;
@@ -13797,10 +13809,6 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13797
13809
  options: OpenFin.UpdatableViewOptions;
13798
13810
  }>;
13799
13811
  'trigger-before-unload': IdentityCall<{}, boolean>;
13800
- 'view-wrap-sync': VoidCall;
13801
- 'view-wrap': VoidCall;
13802
- 'view-get-current': VoidCall;
13803
- 'view-get-current-sync': VoidCall;
13804
13812
  'animate-window': IdentityCall<{
13805
13813
  transitions: OpenFin.Transition;
13806
13814
  options: OpenFin.TransitionOptions;
@@ -13892,11 +13900,6 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13892
13900
  };
13893
13901
  response: void;
13894
13902
  };
13895
- 'window-wrap': VoidCall;
13896
- 'window-wrap-sync': VoidCall;
13897
- 'create-window': VoidCall;
13898
- 'get-current-window': VoidCall;
13899
- 'get-current-window-sync': VoidCall;
13900
13903
  'show-download-bubble': IdentityCall<{
13901
13904
  anchor?: OpenFin.Anchor;
13902
13905
  }, void>;
@@ -13904,14 +13907,8 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
13904
13907
  anchor: OpenFin.Anchor;
13905
13908
  }, void>;
13906
13909
  'get-external-application-info': ApiCall<OpenFin.ApplicationIdentity, OpenFin.ExternalApplicationInfo>;
13907
- 'external-application-wrap': VoidCall;
13908
- 'external-application-wrap-sync': VoidCall;
13909
13910
  'get-frame-info': ApiCall<OpenFin.Identity, OpenFin.FrameInfo>;
13910
13911
  'get-parent-window': ApiCall<OpenFin.Identity, OpenFin.FrameInfo>;
13911
- 'frame-wrap': VoidCall;
13912
- 'frame-wrap-sync': VoidCall;
13913
- 'frame-get-current': VoidCall;
13914
- 'frame-get-current-sync': VoidCall;
13915
13912
  'global-hotkey-register': {
13916
13913
  request: {
13917
13914
  hotkey: string;
@@ -14004,6 +14001,12 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
14004
14001
  }, OpenFin.NativeTheme>;
14005
14002
  'get-theme-preferences': GetterCall<OpenFin.NativeTheme>;
14006
14003
  'get-version': GetterCall<string>;
14004
+ 'content-tracing-get-categories': GetterCall<string[]>;
14005
+ 'content-tracing-start-recording': ApiCall<{
14006
+ options: OpenFin.TraceConfig | OpenFin.TraceCategoriesAndOptions;
14007
+ }, void>;
14008
+ 'content-tracing-stop-recording': GetterCall<string>;
14009
+ 'content-tracing-get-trace-buffer-usage': GetterCall<OpenFin.TraceBufferUsage>;
14007
14010
  'clear-cache': ApiCall<OpenFin.ClearCacheOption, void>;
14008
14011
  'clear-http-cache': VoidCall;
14009
14012
  'clear-cache-data': ApiCall<OpenFin.ClearDataOptions, void>;
@@ -14248,7 +14251,6 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
14248
14251
  apiPath: '.resolveDomainSettings';
14249
14252
  namespace: 'System';
14250
14253
  };
14251
- 'system-register-shutdown-handler': VoidCall;
14252
14254
  'get-permissions': GetterCall<any>;
14253
14255
  'refresh-extensions': {
14254
14256
  request: void;
@@ -14267,24 +14269,6 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
14267
14269
  request: void;
14268
14270
  response: Array<OpenFin.ThemePalette>;
14269
14271
  };
14270
- 'fdc3-add-context-listener': VoidCall;
14271
- 'fdc3-add-intent-listener': VoidCall;
14272
- 'fdc3-raise-intent': VoidCall;
14273
- 'fdc3-find-intent': VoidCall;
14274
- 'fdc3-find-intents-by-context': VoidCall;
14275
- 'fdc3-raise-intent-for-context': VoidCall;
14276
- 'fdc3-get-info': VoidCall;
14277
- 'fdc3-find-instances': VoidCall;
14278
- 'fdc3-get-app-metadata': VoidCall;
14279
- 'fdc3-broadcast': VoidCall;
14280
- 'fdc3-open': VoidCall;
14281
- 'fdc3-get-or-create-channel': VoidCall;
14282
- 'fdc3-get-system-channels': VoidCall;
14283
- 'fdc3-join-channel': VoidCall;
14284
- 'fdc3-get-current-channel': VoidCall;
14285
- 'fdc3-leave-current-channel': VoidCall;
14286
- 'interop-init': VoidCall;
14287
- 'interop-connect-sync': VoidCall;
14288
14272
  'interop-client-set-context': VoidCall;
14289
14273
  'interop-client-add-context-handler': VoidCall;
14290
14274
  'interop-client-get-context-groups': VoidCall;
@@ -14315,12 +14299,6 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
14315
14299
  'interop-session-context-group-set-context': VoidCall;
14316
14300
  'interop-session-context-group-get-context': VoidCall;
14317
14301
  'interop-session-context-group-add-handler': VoidCall;
14318
- 'platform-wrap': VoidCall;
14319
- 'platform-wrap-sync': VoidCall;
14320
- 'platform-get-current': VoidCall;
14321
- 'platform-get-current-sync': VoidCall;
14322
- 'platform-start': VoidCall;
14323
- 'platform-start-from-manifest': VoidCall;
14324
14302
  'platform-get-client': ApplicationIdentityCall<{}, void>;
14325
14303
  'platform-create-view': ApplicationIdentityCall<{}, void>;
14326
14304
  'platform-create-window': ApplicationIdentityCall<{}, void>;
@@ -14333,11 +14311,6 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
14333
14311
  'platform-set-window-context': ApplicationIdentityCall<{}, void>;
14334
14312
  'platform-get-window-context': ApplicationIdentityCall<{}, void>;
14335
14313
  'platform-close-window': ApplicationIdentityCall<{}, void>;
14336
- 'layout-wrap': VoidCall;
14337
- 'layout-wrap-sync': VoidCall;
14338
- 'layout-get-current': VoidCall;
14339
- 'layout-get-current-sync': VoidCall;
14340
- 'layout-init': VoidCall;
14341
14314
  'layout-get-config': VoidCall;
14342
14315
  'layout-get-views': VoidCall;
14343
14316
  'layout-replace': VoidCall;
@@ -14356,12 +14329,6 @@ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap &
14356
14329
  'layout-controller-create-adjacent-stack': VoidCall;
14357
14330
  'layout-controller-get-adjacent-stacks': VoidCall;
14358
14331
  'layout-controller-set-stack-active-view': VoidCall;
14359
- 'snapshot-source-init': VoidCall;
14360
- 'snapshot-source-wrap-sync': VoidCall;
14361
- 'snapshot-source-wrap': VoidCall;
14362
- 'snapshot-source-ready': VoidCall;
14363
- 'snapshot-source-get-snapshot': VoidCall;
14364
- 'snapshot-source-apply-snapshot': VoidCall;
14365
14332
  'capture-page': IdentityCall<{
14366
14333
  options?: OpenFin.CapturePageOptions;
14367
14334
  }, string>;
@@ -15596,6 +15563,10 @@ declare type SubscriptionOptions = {
15596
15563
  *
15597
15564
  */
15598
15565
  declare class System extends EmitterBase<OpenFin.SystemEvent> {
15566
+ /**
15567
+ * Chromium content tracing APIs.
15568
+ */
15569
+ readonly ContentTracing: SystemContentTracing;
15599
15570
  /**
15600
15571
  * @internal
15601
15572
  */
@@ -17232,6 +17203,83 @@ declare class System extends EmitterBase<OpenFin.SystemEvent> {
17232
17203
  getThemePalette(): Promise<Array<OpenFin.ThemePalette>>;
17233
17204
  }
17234
17205
 
17206
+ /**
17207
+ * Chromium content tracing APIs exposed under `fin.System.ContentTracing`.
17208
+ */
17209
+ declare class SystemContentTracing extends Base {
17210
+ /**
17211
+ * Gets the currently known tracing category groups.
17212
+ *
17213
+ * @example
17214
+ * ```ts
17215
+ * const categories = await fin.System.ContentTracing.getCategories();
17216
+ * const sorted = [...new Set(categories)].sort((a, b) => a.localeCompare(b));
17217
+ * console.log(`Loaded ${sorted.length} tracing categories`);
17218
+ * ```
17219
+ */
17220
+ getCategories(): Promise<string[]>;
17221
+ /**
17222
+ * Starts content tracing across runtime processes.
17223
+ *
17224
+ * Only one content tracing session may be active across the runtime at a time.
17225
+ * This method rejects if another identity already owns the active session.
17226
+ *
17227
+ * @example
17228
+ * ```ts
17229
+ * await fin.System.ContentTracing.startRecording({
17230
+ * recording_mode: 'record-as-much-as-possible',
17231
+ * included_categories: [
17232
+ * '*',
17233
+ * 'disabled-by-default-blink.invalidation',
17234
+ * 'disabled-by-default-cc.debug',
17235
+ * 'disabled-by-default-viz.surface_id_flow'
17236
+ * ]
17237
+ * });
17238
+ *
17239
+ * console.log('Content tracing started. Call stopRecording() when ready to collect the trace.');
17240
+ * ```
17241
+ *
17242
+ * @example
17243
+ * ```ts
17244
+ * await fin.System.ContentTracing.startRecording({
17245
+ * categoryFilter: 'electron,blink,cc',
17246
+ * traceOptions: 'record-until-full,enable-sampling'
17247
+ * });
17248
+ * ```
17249
+ */
17250
+ startRecording(options: OpenFin.TraceConfig | OpenFin.TraceCategoriesAndOptions): Promise<void>;
17251
+ /**
17252
+ * Stops the active content tracing session and writes the trace to the runtime-managed cache folder.
17253
+ *
17254
+ * The calling identity must match the identity that started the active tracing session.
17255
+ * This method rejects if tracing is not active or is owned by another identity.
17256
+ *
17257
+ * @example
17258
+ * ```ts
17259
+ * const tracePath = await fin.System.ContentTracing.stopRecording();
17260
+ * console.log('Trace written to:', tracePath);
17261
+ * // Load the file in chrome://tracing or https://ui.perfetto.dev/
17262
+ * ```
17263
+ */
17264
+ stopRecording(): Promise<string>;
17265
+ /**
17266
+ * Returns the current maximum trace buffer usage across processes.
17267
+ *
17268
+ * This method is not supported on macOS and rejects on that platform.
17269
+ *
17270
+ * @example
17271
+ * ```ts
17272
+ * try {
17273
+ * const usage = await fin.System.ContentTracing.getTraceBufferUsage();
17274
+ * console.log(`Buffer usage: ${usage.percentage}% (${usage.value})`);
17275
+ * } catch (error) {
17276
+ * console.warn('Trace buffer usage is not available on this platform.', error);
17277
+ * }
17278
+ * ```
17279
+ */
17280
+ getTraceBufferUsage(): Promise<OpenFin.TraceBufferUsage>;
17281
+ }
17282
+
17235
17283
  /**
17236
17284
  * @deprecated Renamed to {@link Event}.
17237
17285
  */
@@ -17678,6 +17726,76 @@ declare type Time = {
17678
17726
 
17679
17727
  declare type TimeZones = 'utc' | 'local';
17680
17728
 
17729
+ /**
17730
+ * @interface
17731
+ * Current maximum usage across trace buffers.
17732
+ */
17733
+ declare type TraceBufferUsage = {
17734
+ value: number;
17735
+ percentage: number;
17736
+ };
17737
+
17738
+ /**
17739
+ * @interface
17740
+ * Shorthand tracing configuration based on Electron's contentTracing.startRecording() API.
17741
+ */
17742
+ declare type TraceCategoriesAndOptions = {
17743
+ /**
17744
+ * Filter that controls which category groups should be traced.
17745
+ * 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.
17746
+ */
17747
+ categoryFilter: string;
17748
+ /**
17749
+ * 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.
17750
+ */
17751
+ traceOptions: string;
17752
+ };
17753
+
17754
+ /**
17755
+ * @interface
17756
+ * Structured tracing configuration based on Electron's contentTracing.startRecording() API.
17757
+ */
17758
+ declare type TraceConfig = {
17759
+ /**
17760
+ * Can be `record-until-full`, `record-continuously`, `record-as-much-as-possible` or `trace-to-console`.
17761
+ * Defaults to `record-until-full`, which will record until the trace buffer is full and then stop recording.
17762
+ */
17763
+ recording_mode?: 'record-until-full' | 'record-continuously' | 'record-as-much-as-possible' | 'trace-to-console';
17764
+ /**
17765
+ * Maximum size of the trace recording buffer in kilobytes.
17766
+ */
17767
+ trace_buffer_size_in_kb?: number;
17768
+ /**
17769
+ * Maximum size of the trace recording buffer in events.
17770
+ * Defaults to 100MB
17771
+ */
17772
+ trace_buffer_size_in_events?: number;
17773
+ /**
17774
+ * Filters event data according to Chromium's vetted allowlist.
17775
+ */
17776
+ enable_argument_filter?: boolean;
17777
+ /**
17778
+ * A list of tracing categories to include.
17779
+ */
17780
+ included_categories?: string[];
17781
+ /**
17782
+ * A list of tracing categories to exclude.
17783
+ */
17784
+ excluded_categories?: string[];
17785
+ /**
17786
+ * A list of process IDs to include in the trace.
17787
+ */
17788
+ included_process_ids?: number[];
17789
+ /**
17790
+ * A list of histogram names to report with the trace.
17791
+ */
17792
+ histogram_names?: string[];
17793
+ /**
17794
+ * Additional configuration for memory tracing when memory-infra tracing is enabled.
17795
+ */
17796
+ memory_dump_config?: Record<string, any>;
17797
+ };
17798
+
17681
17799
  /**
17682
17800
  * @interface
17683
17801
  */
@@ -17746,9 +17864,12 @@ declare class Transport<MeType extends EntityType = EntityType> extends EventEmi
17746
17864
  sendRaw: Wire['send'];
17747
17865
  eventAggregator: EventAggregator;
17748
17866
  protected messageHandlers: MessageHandler[];
17749
- constructor(factory: WireFactory, environment: Environment, config: OpenFin.Identity);
17867
+ constructor(factory: WireFactory, environment: Environment, config: OpenFin.Identity & {
17868
+ apiDiagnostics?: boolean;
17869
+ });
17750
17870
  getFin(): OpenFin.Fin<MeType>;
17751
17871
  registerFin(_fin: OpenFin.Fin<MeType>): void;
17872
+ recordAnalytic(action: string): void;
17752
17873
  connectSync: () => void;
17753
17874
  getPort: () => string;
17754
17875
  shutdown(): Promise<void>;