@openfin/fdc3-api 42.100.80 → 42.100.82

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,6 +85,12 @@ 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}`;
89
+
90
+ declare type AnalyticsProtocolMap = {
91
+ [k in AnalyticsOnlyCalls]: VoidCall;
92
+ };
93
+
88
94
  declare type AnchorType = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
89
95
 
90
96
  declare type AnyStrategy = ChannelStrategy<any>;
@@ -3250,6 +3256,7 @@ declare type ClipboardApiPermissions = {
3250
3256
  writeRtf: boolean;
3251
3257
  readRtf: boolean;
3252
3258
  write: boolean;
3259
+ setClipboard: boolean;
3253
3260
  };
3254
3261
 
3255
3262
  /**
@@ -5212,6 +5219,19 @@ declare type ExtensionsInstallFailedEvent = ExtensionsEvent & {
5212
5219
  type: 'extensions-install-failed';
5213
5220
  };
5214
5221
 
5222
+ /**
5223
+ * these api calls are not implemented in the javscript api, only in the external adapter
5224
+ * If they don't exist in the external adapter they should be removed.
5225
+ */
5226
+ declare type ExternalAdapterOnlyCalls = 'subscriber-added' | 'subscriber-removed' | 'clipboard-clear' | 'create-proxy-socket' | 'authenticate-proxy-socket' | 'convert-options' | 'generate-guid' | 'get-config' | 'get-remote-config' | 'get-nearest-display-root' | 'get-preload-scripts' | 'raise-event' | 'set-window-preload-state' | 'dock-window' | 'get-current-window-options' | 'redirect-window-to-url' | 'request-new-content' | 'raise-many-events' | 'show-menu' | 'resolve-proxy' | 'undock-window' | 'window-embedded' | 'window-get-cached-bounds' | 'resource-fetch-authenticate' | 'set-cookie';
5227
+
5228
+ declare type ExternalAdapterOnlyCallsMap = {
5229
+ [k in ExternalAdapterOnlyCalls]: {
5230
+ request: any;
5231
+ response: any;
5232
+ };
5233
+ };
5234
+
5215
5235
  /**
5216
5236
  * An ExternalApplication object representing native language adapter connections to the runtime. Allows
5217
5237
  * the developer to listen to {@link OpenFin.ExternalApplicationEvents external application events}.
@@ -9829,6 +9849,8 @@ declare namespace OpenFin {
9829
9849
  TabStack,
9830
9850
  _Window as Window,
9831
9851
  _WindowModule,
9852
+ Clipboard_2 as Clipboard,
9853
+ InterApplicationBus,
9832
9854
  InteropClient,
9833
9855
  InteropBroker,
9834
9856
  InteropModule,
@@ -11855,6 +11877,10 @@ declare interface PlatformProvider {
11855
11877
  * @returns A promise resolving to `true` if the window should prevent the app from quitting, otherwise `false`.
11856
11878
  */
11857
11879
  shouldWindowPreventQuit(windowIdentity: OpenFin.Identity): Promise<boolean>;
11880
+ /**
11881
+ * Method that is called every time an error occurs when processing an action in the Platform Provider. It is meant to be overriden, as a means to debug Platform applications
11882
+ */
11883
+ onError(action: string, error: Error, callerIdentity: OpenFin.Identity): void;
11858
11884
  }
11859
11885
 
11860
11886
  /**
@@ -12421,7 +12447,7 @@ declare type PropagatedWindowEvent<TargetTopic extends string> = PropagatedEvent
12421
12447
  */
12422
12448
  declare type PropagatedWindowEventType = PropagatedEvent_3<string>['type'];
12423
12449
 
12424
- declare interface ProtocolMap extends ProtocolMapBase {
12450
+ declare type ProtocolMap = ExternalAdapterOnlyCallsMap & AnalyticsProtocolMap & {
12425
12451
  'is-application-running': ApplicationIdentityCall<{}, boolean>;
12426
12452
  'destroy-application': ApplicationIdentityCall<{
12427
12453
  force: boolean;
@@ -12488,8 +12514,15 @@ declare interface ProtocolMap extends ProtocolMapBase {
12488
12514
  downloadLocation: string;
12489
12515
  };
12490
12516
  response: void;
12517
+ secure: true;
12518
+ namespace: 'Application';
12519
+ apiPath: '.setFileDownloadLocation';
12520
+ };
12521
+ 'get-file-download-location': ApplicationIdentityCall<{}, string> & {
12522
+ secure: true;
12523
+ namespace: 'Application';
12524
+ apiPath: '.getFileDownloadLocation';
12491
12525
  };
12492
- 'get-file-download-location': ApplicationIdentityCall<{}, string>;
12493
12526
  'show-tray-icon-popup-menu': {
12494
12527
  request: OpenFin.Identity & {
12495
12528
  options: OpenFin.ShowTrayIconPopupMenuOptions;
@@ -12529,44 +12562,79 @@ declare interface ProtocolMap extends ProtocolMapBase {
12529
12562
  'clipboard-read-image': {
12530
12563
  request: OpenFin.ReadImageClipboardRequest;
12531
12564
  response: string;
12565
+ secure: true;
12566
+ apiPath: '.readImage';
12567
+ namespace: 'Clipboard';
12532
12568
  };
12533
12569
  'clipboard-read-text': {
12534
12570
  request: {
12535
12571
  type?: OpenFin.ClipboardSelectionType;
12536
12572
  };
12537
12573
  response: string;
12574
+ secure: true;
12575
+ apiPath: '.readText';
12576
+ namespace: 'Clipboard';
12538
12577
  };
12539
12578
  'clipboard-read-html': {
12540
12579
  request: {
12541
12580
  type?: OpenFin.ClipboardSelectionType;
12542
12581
  };
12543
12582
  response: string;
12583
+ secure: true;
12584
+ apiPath: '.readHtml';
12585
+ namespace: 'Clipboard';
12544
12586
  };
12545
12587
  'clipboard-read-rtf': {
12546
12588
  request: {
12547
12589
  type?: OpenFin.ClipboardSelectionType;
12548
12590
  };
12549
12591
  response: string;
12592
+ secure: true;
12593
+ apiPath: '.readRtf';
12594
+ namespace: 'Clipboard';
12550
12595
  };
12551
12596
  'clipboard-write-image': {
12552
12597
  request: OpenFin.WriteImageClipboardRequest;
12553
12598
  response: void;
12599
+ secure: true;
12600
+ apiPath: '.writeImage';
12601
+ namespace: 'Clipboard';
12554
12602
  };
12555
12603
  'clipboard-write': {
12556
12604
  request: OpenFin.WriteAnyRequestType;
12557
12605
  response: void;
12606
+ secure: true;
12607
+ apiPath: '.write';
12608
+ namespace: 'Clipboard';
12558
12609
  };
12559
12610
  'clipboard-write-text': {
12560
12611
  request: OpenFin.WriteClipboardRequest;
12561
12612
  response: void;
12613
+ secure: true;
12614
+ apiPath: '.writeText';
12615
+ namespace: 'Clipboard';
12616
+ foo: '';
12617
+ };
12618
+ 'set-clipboard': {
12619
+ request: OpenFin.WriteClipboardRequest;
12620
+ response: void;
12621
+ secure: true;
12622
+ apiPath: '.setClipboard';
12623
+ namespace: 'Clipboard';
12562
12624
  };
12563
12625
  'clipboard-write-html': {
12564
12626
  request: OpenFin.WriteClipboardRequest;
12565
12627
  response: void;
12628
+ secure: true;
12629
+ apiPath: '.writeHtml';
12630
+ namespace: 'Clipboard';
12566
12631
  };
12567
12632
  'clipboard-write-rtf': {
12568
12633
  request: OpenFin.WriteClipboardRequest;
12569
12634
  response: void;
12635
+ secure: true;
12636
+ apiPath: '.writeRtf';
12637
+ namespace: 'Clipboard';
12570
12638
  };
12571
12639
  'get-view-window': IdentityCall<{}, OpenFin.Identity>;
12572
12640
  'create-view': IdentityCall<OpenFin.ViewCreationOptions & {
@@ -12781,6 +12849,10 @@ declare interface ProtocolMap extends ProtocolMapBase {
12781
12849
  request: any;
12782
12850
  response: any;
12783
12851
  };
12852
+ 'send-channel-result': {
12853
+ request: any;
12854
+ response: any;
12855
+ };
12784
12856
  'get-version': GetterCall<string>;
12785
12857
  'clear-cache': ApiCall<OpenFin.ClearCacheOption, void>;
12786
12858
  'delete-cache-request': VoidCall;
@@ -12830,7 +12902,11 @@ declare interface ProtocolMap extends ProtocolMapBase {
12830
12902
  action: string;
12831
12903
  runtimes: string[];
12832
12904
  }>;
12833
- 'get-installed-apps': GetterCall<OpenFin.InstalledApps>;
12905
+ 'get-installed-apps': GetterCall<OpenFin.InstalledApps> & {
12906
+ secure: true;
12907
+ apiPath: '.getInstalledApps';
12908
+ namespace: 'System';
12909
+ };
12834
12910
  'view-log': ApiCall<OpenFin.GetLogRequestType, string>;
12835
12911
  'get-machine-id': GetterCall<string>;
12836
12912
  'get-min-log-level': GetterCall<OpenFin.LogLevel>;
@@ -12843,8 +12919,16 @@ declare interface ProtocolMap extends ProtocolMapBase {
12843
12919
  'get-runtime-info': GetterCall<OpenFin.RuntimeInfo>;
12844
12920
  'get-rvm-info': GetterCall<OpenFin.RVMInfo>;
12845
12921
  'get-host-specs': GetterCall<OpenFin.HostSpecs>;
12846
- 'get-os-info': GetterCall<OpenFin.OSInfo>;
12847
- 'launch-external-process': ApiCall<OpenFin.ExternalProcessRequestType, OpenFin.Identity>;
12922
+ 'get-os-info': GetterCall<OpenFin.OSInfo> & {
12923
+ secure: true;
12924
+ apiPath: '.getOSInfo';
12925
+ namespace: 'System';
12926
+ };
12927
+ 'launch-external-process': ApiCall<OpenFin.ExternalProcessRequestType, OpenFin.Identity> & {
12928
+ secure: true;
12929
+ apiPath: '.launchExternalProcess';
12930
+ namespace: 'System';
12931
+ };
12848
12932
  'monitor-external-process': ApiCall<OpenFin.ExternalProcessInfo, OpenFin.Identity>;
12849
12933
  'write-to-log': ApiCall<{
12850
12934
  level: string;
@@ -12852,25 +12936,48 @@ declare interface ProtocolMap extends ProtocolMapBase {
12852
12936
  }, void>;
12853
12937
  'open-url-with-browser': ApiCall<{
12854
12938
  url: string;
12855
- }, void>;
12856
- 'register-custom-protocol': ApiCall<OpenFin.CustomProtocolOptions, void>;
12939
+ }, void> & {
12940
+ secure: true;
12941
+ apiPath: '.openUrlWithBrowser';
12942
+ namespace: 'System';
12943
+ };
12944
+ 'register-custom-protocol': ApiCall<OpenFin.CustomProtocolOptions, void> & {
12945
+ secure: true;
12946
+ apiPath: '.registerCustomProtocol';
12947
+ namespace: 'System';
12948
+ };
12857
12949
  'unregister-custom-protocol': ApiCall<{
12858
12950
  protocolName: string;
12859
- }, void>;
12951
+ }, void> & {
12952
+ secure: true;
12953
+ apiPath: '.unregisterCustomProtocol';
12954
+ namespace: 'System';
12955
+ };
12860
12956
  'get-custom-protocol-state': ApiCall<{
12861
12957
  protocolName: string;
12862
- }, OpenFin.CustomProtocolState>;
12958
+ }, OpenFin.CustomProtocolState> & {
12959
+ secure: true;
12960
+ apiPath: '.getCustomProtocolState';
12961
+ namespace: 'System';
12962
+ };
12863
12963
  'release-external-process': ApiCall<{
12864
12964
  uuid: string;
12865
12965
  }, void>;
12866
12966
  'show-developer-tools': ApiCall<OpenFin.Identity, void>;
12867
- 'terminate-external-process': ApiCall<OpenFin.TerminateExternalRequestType, void>;
12967
+ 'terminate-external-process': ApiCall<OpenFin.TerminateExternalRequestType, void> & {
12968
+ secure: true;
12969
+ apiPath: '.terminateExternalProcess';
12970
+ namespace: 'System';
12971
+ };
12868
12972
  'update-proxy': ApiCall<OpenFin.ProxyConfig, void>;
12869
12973
  'download-asset': {
12870
12974
  request: OpenFin.AppAssetInfo & {
12871
12975
  downloadId: string;
12872
12976
  };
12873
12977
  response: void;
12978
+ secure: true;
12979
+ apiPath: '.downloadAsset';
12980
+ namespace: 'System';
12874
12981
  };
12875
12982
  'download-runtime': {
12876
12983
  request: OpenFin.RuntimeDownloadOptions & {
@@ -12899,7 +13006,11 @@ declare interface ProtocolMap extends ProtocolMapBase {
12899
13006
  rootKey: string;
12900
13007
  subkey: string;
12901
13008
  value: string;
12902
- }, OpenFin.RegistryInfo>;
13009
+ }, OpenFin.RegistryInfo> & {
13010
+ secure: true;
13011
+ apiPath: '.readRegistryValue';
13012
+ namespace: 'System';
13013
+ };
12903
13014
  'register-external-connection': ApiCall<{
12904
13015
  uuid: string;
12905
13016
  }, OpenFin.ExternalConnection>;
@@ -12933,25 +13044,48 @@ declare interface ProtocolMap extends ProtocolMapBase {
12933
13044
  permissions: any;
12934
13045
  };
12935
13046
  response: OpenFin.NativeWindowIntegrationProviderAuthorization;
13047
+ secure: true;
13048
+ apiPath: '.enableNativeWindowIntegrationProvider';
13049
+ namespace: 'System';
12936
13050
  };
12937
13051
  'register-usage': ApiCall<OpenFin.RegisterUsageData, void>;
12938
13052
  'system-get-printers': GetterCall<OpenFin.PrinterInfo[]>;
12939
13053
  'system-update-process-logging-options': ApiCall<{
12940
13054
  options: OpenFin.ProcessLoggingOptions;
12941
13055
  }, void>;
12942
- 'get-domain-settings': ApiCall<void, OpenFin.DomainSettings>;
13056
+ 'get-domain-settings': ApiCall<void, OpenFin.DomainSettings> & {
13057
+ secure: true;
13058
+ apiPath: '.getDomainSettings';
13059
+ namespace: 'System';
13060
+ };
12943
13061
  'serve-asset': ApiCall<{
12944
13062
  options: OpenFin.ServeAssetOptions;
12945
- }, OpenFin.ServedAssetInfo>;
13063
+ }, OpenFin.ServedAssetInfo> & {
13064
+ secure: true;
13065
+ apiPath: '.serveAsset';
13066
+ namespace: 'System';
13067
+ };
12946
13068
  'set-domain-settings': ApiCall<{
12947
13069
  domainSettings: OpenFin.DomainSettings;
12948
- }, void>;
13070
+ }, void> & {
13071
+ secure: true;
13072
+ apiPath: '.setDomainSettings';
13073
+ namespace: 'System';
13074
+ };
12949
13075
  'get-current-domain-settings': ApiCall<{
12950
13076
  identity: OpenFin.Identity;
12951
- }, OpenFin.ResolvedDomainSettings>;
13077
+ }, OpenFin.ResolvedDomainSettings> & {
13078
+ secure: true;
13079
+ apiPath: '.getCurrentDomainSettings';
13080
+ namespace: 'System';
13081
+ };
12952
13082
  'resolve-domain-settings': ApiCall<{
12953
13083
  url: string;
12954
- }, OpenFin.ResolvedDomainSettings>;
13084
+ }, OpenFin.ResolvedDomainSettings> & {
13085
+ secure: true;
13086
+ apiPath: '.resolveDomainSettings';
13087
+ namespace: 'System';
13088
+ };
12955
13089
  'system-register-shutdown-handler': VoidCall;
12956
13090
  'get-permissions': GetterCall<any>;
12957
13091
  'refresh-extensions': {
@@ -13137,15 +13271,27 @@ declare interface ProtocolMap extends ProtocolMapBase {
13137
13271
  };
13138
13272
  response: void;
13139
13273
  };
13140
- }
13141
-
13142
- declare interface ProtocolMapBase {
13143
- [action: string]: {
13144
- request: any;
13145
- response: any;
13146
- specialResponse?: any;
13274
+ 'subscribe-to-desktop-event': {
13275
+ request: {
13276
+ topic: string;
13277
+ type: string;
13278
+ uuid?: string;
13279
+ name?: string;
13280
+ timestamp?: number;
13281
+ };
13282
+ response: void;
13147
13283
  };
13148
- }
13284
+ 'unsubscribe-to-desktop-event': {
13285
+ request: {
13286
+ topic: string;
13287
+ type: string;
13288
+ uuid?: string;
13289
+ name?: string;
13290
+ timestamp?: number;
13291
+ };
13292
+ response: void;
13293
+ };
13294
+ };
13149
13295
 
13150
13296
  declare type ProtocolOffer = ClassicProtocolOffer | RTCProtocolOffer;
13151
13297
 
@@ -13711,7 +13857,9 @@ declare type SecurityRealmEvent = BaseEvent_9 & {
13711
13857
 
13712
13858
  declare type SendActionResponse<T extends keyof ProtocolMap> = Message<{
13713
13859
  data: ProtocolMap[T]['response'];
13714
- } & ProtocolMap[T]['specialResponse']>;
13860
+ } & (ProtocolMap[T] extends {
13861
+ specialResponse: infer U;
13862
+ } ? U : {})>;
13715
13863
 
13716
13864
  /**
13717
13865
  * @interface
@@ -15724,7 +15872,6 @@ declare type SystemEventType = EventType_8;
15724
15872
  */
15725
15873
  declare type SystemPermissions = {
15726
15874
  getOSInfo: boolean;
15727
- getAllExternalWindows: boolean;
15728
15875
  setDomainSettings: boolean;
15729
15876
  getDomainSettings: boolean;
15730
15877
  getCurrentDomainSettings: boolean;
@@ -15764,6 +15911,10 @@ declare type SystemPermissions = {
15764
15911
  enabled: boolean;
15765
15912
  protocols: string[];
15766
15913
  };
15914
+ getInstalledApps: boolean;
15915
+ downloadAsset: boolean;
15916
+ serveAsset: boolean;
15917
+ enableNativeWindowIntegrationProvider: boolean;
15767
15918
  };
15768
15919
 
15769
15920
  /**
@@ -16075,7 +16226,7 @@ declare class Transport<MeType extends EntityType = EntityType> extends EventEmi
16075
16226
  private connectRemote;
16076
16227
  connectByPort(config: ExistingConnectConfig): Promise<void>;
16077
16228
  private authorize;
16078
- sendAction<T extends keyof ProtocolMap = string>(action: T, payload?: ProtocolMap[T]['request'], uncorrelated?: boolean): SentMessage<SendActionResponse<T>>;
16229
+ sendAction<T extends keyof ProtocolMap>(action: T, payload?: ProtocolMap[T]['request'], uncorrelated?: boolean): SentMessage<SendActionResponse<T>>;
16079
16230
  protected nackHandler(payloadOrMessage: RuntimeErrorPayload | string, reject: Function, callSites?: NodeJS.CallSite[]): void;
16080
16231
  ferryAction(origData: any): Promise<Message<any>>;
16081
16232
  registerMessageHandler(handler: MessageHandler): void;