@openfin/core 33.76.31 → 33.76.38

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.
Files changed (269) hide show
  1. package/OpenFin.d.ts +1 -1
  2. package/README.md +29 -4
  3. package/fin.d.ts +2 -2
  4. package/{src → out}/GlobalOpenFin.d.ts +1 -1
  5. package/out/mock-alpha.d.ts +16112 -0
  6. package/out/mock-beta.d.ts +16112 -0
  7. package/out/mock-public.d.ts +16112 -0
  8. package/out/mock.d.ts +16797 -0
  9. package/out/mock.js +17104 -0
  10. package/package.json +30 -23
  11. package/LICENSE +0 -13
  12. package/NOTICE +0 -16
  13. package/openfin-core-33.76.31.tgz +0 -0
  14. package/src/OpenFin.d.ts +0 -3080
  15. package/src/OpenFin.js +0 -2
  16. package/src/api/api-exposer/api-consumer.d.ts +0 -28
  17. package/src/api/api-exposer/api-consumer.js +0 -28
  18. package/src/api/api-exposer/api-exposer.d.ts +0 -35
  19. package/src/api/api-exposer/api-exposer.js +0 -38
  20. package/src/api/api-exposer/decorators.d.ts +0 -10
  21. package/src/api/api-exposer/decorators.js +0 -18
  22. package/src/api/api-exposer/index.d.ts +0 -4
  23. package/src/api/api-exposer/index.js +0 -20
  24. package/src/api/api-exposer/strategies/index.d.ts +0 -1
  25. package/src/api/api-exposer/strategies/index.js +0 -17
  26. package/src/api/api-exposer/strategies/openfin-channels/channels-consumer.d.ts +0 -14
  27. package/src/api/api-exposer/strategies/openfin-channels/channels-consumer.js +0 -20
  28. package/src/api/api-exposer/strategies/openfin-channels/channels-exposer.d.ts +0 -20
  29. package/src/api/api-exposer/strategies/openfin-channels/channels-exposer.js +0 -23
  30. package/src/api/api-exposer/strategies/openfin-channels/index.d.ts +0 -2
  31. package/src/api/api-exposer/strategies/openfin-channels/index.js +0 -18
  32. package/src/api/application/Factory.d.ts +0 -148
  33. package/src/api/application/Factory.js +0 -230
  34. package/src/api/application/Instance.d.ts +0 -321
  35. package/src/api/application/Instance.js +0 -453
  36. package/src/api/application/index.d.ts +0 -3
  37. package/src/api/application/index.js +0 -19
  38. package/src/api/base.d.ts +0 -48
  39. package/src/api/base.js +0 -177
  40. package/src/api/clipboard/index.d.ts +0 -92
  41. package/src/api/clipboard/index.js +0 -120
  42. package/src/api/events/application.d.ts +0 -146
  43. package/src/api/events/application.js +0 -2
  44. package/src/api/events/base.d.ts +0 -42
  45. package/src/api/events/base.js +0 -2
  46. package/src/api/events/channel.d.ts +0 -30
  47. package/src/api/events/channel.js +0 -2
  48. package/src/api/events/emitterMap.d.ts +0 -11
  49. package/src/api/events/emitterMap.js +0 -35
  50. package/src/api/events/eventAggregator.d.ts +0 -5
  51. package/src/api/events/eventAggregator.js +0 -35
  52. package/src/api/events/externalApplication.d.ts +0 -19
  53. package/src/api/events/externalApplication.js +0 -2
  54. package/src/api/events/frame.d.ts +0 -30
  55. package/src/api/events/frame.js +0 -2
  56. package/src/api/events/globalHotkey.d.ts +0 -20
  57. package/src/api/events/globalHotkey.js +0 -2
  58. package/src/api/events/platform.d.ts +0 -26
  59. package/src/api/events/platform.js +0 -2
  60. package/src/api/events/system.d.ts +0 -113
  61. package/src/api/events/system.js +0 -2
  62. package/src/api/events/typedEventEmitter.d.ts +0 -20
  63. package/src/api/events/typedEventEmitter.js +0 -2
  64. package/src/api/events/view.d.ts +0 -82
  65. package/src/api/events/view.js +0 -2
  66. package/src/api/events/webcontents.d.ts +0 -266
  67. package/src/api/events/webcontents.js +0 -2
  68. package/src/api/events/window.d.ts +0 -352
  69. package/src/api/events/window.js +0 -2
  70. package/src/api/external-application/Factory.d.ts +0 -27
  71. package/src/api/external-application/Factory.js +0 -40
  72. package/src/api/external-application/Instance.d.ts +0 -102
  73. package/src/api/external-application/Instance.js +0 -109
  74. package/src/api/external-application/index.d.ts +0 -3
  75. package/src/api/external-application/index.js +0 -19
  76. package/src/api/fin.d.ts +0 -51
  77. package/src/api/fin.js +0 -42
  78. package/src/api/frame/Factory.d.ts +0 -37
  79. package/src/api/frame/Factory.js +0 -69
  80. package/src/api/frame/Instance.d.ts +0 -123
  81. package/src/api/frame/Instance.js +0 -130
  82. package/src/api/frame/index.d.ts +0 -3
  83. package/src/api/frame/index.js +0 -19
  84. package/src/api/global-hotkey/index.d.ts +0 -38
  85. package/src/api/global-hotkey/index.js +0 -64
  86. package/src/api/interappbus/channel/channel.d.ts +0 -28
  87. package/src/api/interappbus/channel/channel.js +0 -77
  88. package/src/api/interappbus/channel/channels-docs.d.ts +0 -340
  89. package/src/api/interappbus/channel/channels-docs.js +0 -398
  90. package/src/api/interappbus/channel/client.d.ts +0 -24
  91. package/src/api/interappbus/channel/client.js +0 -89
  92. package/src/api/interappbus/channel/connection-manager.d.ts +0 -29
  93. package/src/api/interappbus/channel/connection-manager.js +0 -246
  94. package/src/api/interappbus/channel/index.d.ts +0 -25
  95. package/src/api/interappbus/channel/index.js +0 -169
  96. package/src/api/interappbus/channel/protocols/classic/message-receiver.d.ts +0 -13
  97. package/src/api/interappbus/channel/protocols/classic/message-receiver.js +0 -73
  98. package/src/api/interappbus/channel/protocols/classic/strategy.d.ts +0 -24
  99. package/src/api/interappbus/channel/protocols/classic/strategy.js +0 -101
  100. package/src/api/interappbus/channel/protocols/combined/strategy.d.ts +0 -20
  101. package/src/api/interappbus/channel/protocols/combined/strategy.js +0 -58
  102. package/src/api/interappbus/channel/protocols/index.d.ts +0 -47
  103. package/src/api/interappbus/channel/protocols/index.js +0 -2
  104. package/src/api/interappbus/channel/protocols/protocol-manager.d.ts +0 -10
  105. package/src/api/interappbus/channel/protocols/protocol-manager.js +0 -43
  106. package/src/api/interappbus/channel/protocols/rtc/endpoint.d.ts +0 -25
  107. package/src/api/interappbus/channel/protocols/rtc/endpoint.js +0 -141
  108. package/src/api/interappbus/channel/protocols/rtc/ice-manager.d.ts +0 -30
  109. package/src/api/interappbus/channel/protocols/rtc/ice-manager.js +0 -130
  110. package/src/api/interappbus/channel/protocols/rtc/strategy.d.ts +0 -24
  111. package/src/api/interappbus/channel/protocols/rtc/strategy.js +0 -85
  112. package/src/api/interappbus/channel/protocols/strategy-types.d.ts +0 -13
  113. package/src/api/interappbus/channel/protocols/strategy-types.js +0 -2
  114. package/src/api/interappbus/channel/protocols/strategy.d.ts +0 -17
  115. package/src/api/interappbus/channel/protocols/strategy.js +0 -2
  116. package/src/api/interappbus/channel/provider.d.ts +0 -34
  117. package/src/api/interappbus/channel/provider.js +0 -166
  118. package/src/api/interappbus/index.d.ts +0 -85
  119. package/src/api/interappbus/index.js +0 -175
  120. package/src/api/interop/Factory.d.ts +0 -37
  121. package/src/api/interop/Factory.js +0 -76
  122. package/src/api/interop/InteropBroker.d.ts +0 -437
  123. package/src/api/interop/InteropBroker.js +0 -1085
  124. package/src/api/interop/InteropClient.d.ts +0 -278
  125. package/src/api/interop/InteropClient.js +0 -459
  126. package/src/api/interop/SessionContextGroupBroker.d.ts +0 -27
  127. package/src/api/interop/SessionContextGroupBroker.js +0 -108
  128. package/src/api/interop/SessionContextGroupClient.d.ts +0 -21
  129. package/src/api/interop/SessionContextGroupClient.js +0 -86
  130. package/src/api/interop/fdc3/PrivateChannelClient.d.ts +0 -20
  131. package/src/api/interop/fdc3/PrivateChannelClient.js +0 -90
  132. package/src/api/interop/fdc3/PrivateChannelProvider.d.ts +0 -55
  133. package/src/api/interop/fdc3/PrivateChannelProvider.js +0 -276
  134. package/src/api/interop/fdc3/fdc3-1.2.d.ts +0 -208
  135. package/src/api/interop/fdc3/fdc3-1.2.js +0 -438
  136. package/src/api/interop/fdc3/fdc3-2.0.d.ts +0 -301
  137. package/src/api/interop/fdc3/fdc3-2.0.js +0 -482
  138. package/src/api/interop/fdc3/fdc3.d.ts +0 -12
  139. package/src/api/interop/fdc3/fdc3.js +0 -35
  140. package/src/api/interop/fdc3/overrideCheck.d.ts +0 -4
  141. package/src/api/interop/fdc3/overrideCheck.js +0 -32
  142. package/src/api/interop/fdc3/shapes/fdc3v1.d.ts +0 -53
  143. package/src/api/interop/fdc3/shapes/fdc3v1.js +0 -4
  144. package/src/api/interop/fdc3/shapes/fdc3v2.d.ts +0 -75
  145. package/src/api/interop/fdc3/shapes/fdc3v2.js +0 -2
  146. package/src/api/interop/fdc3/utils.d.ts +0 -45
  147. package/src/api/interop/fdc3/utils.js +0 -239
  148. package/src/api/interop/fdc3/versions.d.ts +0 -1
  149. package/src/api/interop/fdc3/versions.js +0 -2
  150. package/src/api/interop/index.d.ts +0 -4
  151. package/src/api/interop/index.js +0 -20
  152. package/src/api/interop/utils.d.ts +0 -18
  153. package/src/api/interop/utils.js +0 -61
  154. package/src/api/me.d.ts +0 -40
  155. package/src/api/me.js +0 -134
  156. package/src/api/platform/Factory.d.ts +0 -115
  157. package/src/api/platform/Factory.js +0 -184
  158. package/src/api/platform/Instance.d.ts +0 -150
  159. package/src/api/platform/Instance.js +0 -332
  160. package/src/api/platform/common-utils.d.ts +0 -7
  161. package/src/api/platform/common-utils.js +0 -16
  162. package/src/api/platform/index.d.ts +0 -3
  163. package/src/api/platform/index.js +0 -19
  164. package/src/api/platform/layout/Factory.d.ts +0 -114
  165. package/src/api/platform/layout/Factory.js +0 -174
  166. package/src/api/platform/layout/Instance.d.ts +0 -57
  167. package/src/api/platform/layout/Instance.js +0 -126
  168. package/src/api/platform/layout/controllers/layout-content-cache.d.ts +0 -9
  169. package/src/api/platform/layout/controllers/layout-content-cache.js +0 -54
  170. package/src/api/platform/layout/controllers/layout-entities-controller.d.ts +0 -119
  171. package/src/api/platform/layout/controllers/layout-entities-controller.js +0 -287
  172. package/src/api/platform/layout/entities/layout-entities.d.ts +0 -235
  173. package/src/api/platform/layout/entities/layout-entities.js +0 -312
  174. package/src/api/platform/layout/entities/shapes.d.ts +0 -6
  175. package/src/api/platform/layout/entities/shapes.js +0 -2
  176. package/src/api/platform/layout/index.d.ts +0 -2
  177. package/src/api/platform/layout/index.js +0 -18
  178. package/src/api/platform/layout/layout.constants.d.ts +0 -1
  179. package/src/api/platform/layout/layout.constants.js +0 -4
  180. package/src/api/platform/layout/shapes.d.ts +0 -16
  181. package/src/api/platform/layout/shapes.js +0 -2
  182. package/src/api/platform/layout/utils/layout-traversal.d.ts +0 -4
  183. package/src/api/platform/layout/utils/layout-traversal.js +0 -65
  184. package/src/api/platform/provider.d.ts +0 -163
  185. package/src/api/platform/provider.js +0 -2
  186. package/src/api/snapshot-source/Factory.d.ts +0 -38
  187. package/src/api/snapshot-source/Factory.js +0 -66
  188. package/src/api/snapshot-source/Instance.d.ts +0 -31
  189. package/src/api/snapshot-source/Instance.js +0 -132
  190. package/src/api/snapshot-source/index.d.ts +0 -3
  191. package/src/api/snapshot-source/index.js +0 -19
  192. package/src/api/snapshot-source/utils.d.ts +0 -2
  193. package/src/api/snapshot-source/utils.js +0 -6
  194. package/src/api/system/index.d.ts +0 -517
  195. package/src/api/system/index.js +0 -895
  196. package/src/api/view/Factory.d.ts +0 -50
  197. package/src/api/view/Factory.js +0 -103
  198. package/src/api/view/Instance.d.ts +0 -487
  199. package/src/api/view/Instance.js +0 -557
  200. package/src/api/view/index.d.ts +0 -3
  201. package/src/api/view/index.js +0 -19
  202. package/src/api/webcontents/main.d.ts +0 -32
  203. package/src/api/webcontents/main.js +0 -156
  204. package/src/api/window/Factory.d.ts +0 -45
  205. package/src/api/window/Factory.js +0 -91
  206. package/src/api/window/Instance.d.ts +0 -1090
  207. package/src/api/window/Instance.js +0 -1349
  208. package/src/api/window/index.d.ts +0 -3
  209. package/src/api/window/index.js +0 -19
  210. package/src/browser.d.ts +0 -10
  211. package/src/browser.js +0 -36
  212. package/src/environment/browser.d.ts +0 -29
  213. package/src/environment/browser.js +0 -60
  214. package/src/environment/environment.d.ts +0 -33
  215. package/src/environment/environment.js +0 -4
  216. package/src/environment/mockEnvironment.d.ts +0 -27
  217. package/src/environment/mockEnvironment.js +0 -61
  218. package/src/environment/node-env.d.ts +0 -29
  219. package/src/environment/node-env.js +0 -72
  220. package/src/fdc3.d.ts +0 -3
  221. package/src/fdc3.js +0 -9
  222. package/src/mock.d.ts +0 -3
  223. package/src/mock.js +0 -18
  224. package/src/namespaces.d.ts +0 -21
  225. package/src/namespaces.js +0 -24
  226. package/src/shapes/ERROR_BOX_TYPES.d.ts +0 -1
  227. package/src/shapes/ERROR_BOX_TYPES.js +0 -2
  228. package/src/shapes/WebOptions.d.ts +0 -13
  229. package/src/shapes/WebOptions.js +0 -2
  230. package/src/shapes/WindowOptions.d.ts +0 -43
  231. package/src/shapes/WindowOptions.js +0 -2
  232. package/src/shapes/protocol.d.ts +0 -200
  233. package/src/shapes/protocol.js +0 -2
  234. package/src/transport/mockWire.d.ts +0 -11
  235. package/src/transport/mockWire.js +0 -26
  236. package/src/transport/transport-errors.d.ts +0 -31
  237. package/src/transport/transport-errors.js +0 -79
  238. package/src/transport/transport.d.ts +0 -73
  239. package/src/transport/transport.js +0 -219
  240. package/src/transport/wire.d.ts +0 -77
  241. package/src/transport/wire.js +0 -36
  242. package/src/util/asyncFilter.d.ts +0 -1
  243. package/src/util/asyncFilter.js +0 -7
  244. package/src/util/channel-api-relay.d.ts +0 -13
  245. package/src/util/channel-api-relay.js +0 -47
  246. package/src/util/errors.d.ts +0 -10
  247. package/src/util/errors.js +0 -12
  248. package/src/util/exhaustive.d.ts +0 -1
  249. package/src/util/exhaustive.js +0 -7
  250. package/src/util/http.d.ts +0 -11
  251. package/src/util/http.js +0 -90
  252. package/src/util/inaccessibleObject.d.ts +0 -2
  253. package/src/util/inaccessibleObject.js +0 -49
  254. package/src/util/lazy.d.ts +0 -34
  255. package/src/util/lazy.js +0 -54
  256. package/src/util/normalize-config.d.ts +0 -3
  257. package/src/util/normalize-config.js +0 -52
  258. package/src/util/promises.d.ts +0 -5
  259. package/src/util/promises.js +0 -27
  260. package/src/util/ref-counter.d.ts +0 -7
  261. package/src/util/ref-counter.js +0 -52
  262. package/src/util/reversible-map.d.ts +0 -11
  263. package/src/util/reversible-map.js +0 -49
  264. package/src/util/runtimeVersioning.d.ts +0 -3
  265. package/src/util/runtimeVersioning.js +0 -25
  266. package/src/util/utilTypes.d.ts +0 -8
  267. package/src/util/utilTypes.js +0 -2
  268. package/src/util/validate.d.ts +0 -3
  269. package/src/util/validate.js +0 -11
@@ -1,437 +0,0 @@
1
- import { TargetApp } from './fdc3/shapes/fdc3v1';
2
- import { AppIdentifier } from './fdc3/shapes/fdc3v2';
3
- import type * as OpenFin from '../../OpenFin';
4
- import { Base } from '../base';
5
- import type { Transport } from '../../transport/transport';
6
- type Identity = OpenFin.Identity;
7
- /**
8
- * {@link https://developers.openfin.co/of-docs/docs/enable-color-linking}
9
- *
10
- * The Interop Broker is responsible for keeping track of the Interop state of the Platform, and for directing messages to the proper locations.
11
- *
12
- * ---
13
- *
14
- * There are 2 ways to inject custom functionality into the Interop Broker:
15
- *
16
- * **1. Configuration**
17
- *
18
- * At the moment, you can configure the default context groups for the Interop Broker without having to override it. To do so, include the `interopBrokerConfiguration` `contextGroups` option in your `platform` options in your manifest. This is the preferred method.
19
- * ```js
20
- * {
21
- * "runtime": {
22
- * "arguments": "--v=1 --inspect",
23
- * "version": "alpha-v19"
24
- * },
25
- * "platform": {
26
- * "uuid": "platform_customization_local",
27
- * "applicationIcon": "https://openfin.github.io/golden-prototype/favicon.ico",
28
- * "autoShow": false,
29
- * "providerUrl": "http://localhost:5555/provider.html",
30
- * "interopBrokerConfiguration": {
31
- * "contextGroups": [
32
- * {
33
- * "id": "green",
34
- * "displayMetadata": {
35
- * "color": "#00CC88",
36
- * "name": "green"
37
- * }
38
- * },
39
- * {
40
- * "id": "purple",
41
- * "displayMetadata": {
42
- * "color": "#8C61FF",
43
- * "name": "purple"
44
- * }
45
- * },
46
- * ]
47
- * }
48
- * }
49
- * }
50
- * ```
51
- *
52
- * By default the Interop Broker logs all actions to the console. You can disable this by using the logging option in `interopBrokerConfiguration`:
53
- * ```js
54
- * {
55
- * "runtime": {
56
- * "arguments": "--v=1 --inspect",
57
- * "version": "alpha-v19"
58
- * },
59
- * "platform": {
60
- * "uuid": "platform_customization_local",
61
- * "applicationIcon": "https://openfin.github.io/golden-prototype/favicon.ico",
62
- * "autoShow": false,
63
- * "providerUrl": "http://localhost:5555/provider.html",
64
- * "interopBrokerConfiguration": {
65
- * "logging": {
66
- * "beforeAction": {
67
- * "enabled": false
68
- * },
69
- * "afterAction": {
70
- * "enabled": false
71
- * }
72
- * }
73
- * }
74
- * }
75
- * }
76
- * ```
77
- *
78
- * ---
79
- * **2. Overriding**
80
- *
81
- * Similarly to how [Platform Overriding]{@link https://developers.openfin.co/docs/platform-customization#section-customizing-platform-behavior} works, you can override functions in the Interop Broker in `fin.Platform.init`. An example of that is shown below. Overriding `isConnectionAuthorized` and `isActionAuthorized` will allow you to control allowed connections and allowed actions.
82
- *
83
- * However, if there is custom functionality you wish to include in the Interop Broker, please let us know. We would like to provide better configuration options so that you don't have to continually maintain your own override code.
84
- *
85
- * ```js
86
- * fin.Platform.init({
87
- * overrideCallback: async (Provider) => {
88
- * class Override extends Provider {
89
- * async getSnapshot() {
90
- * console.log('before getSnapshot')
91
- * const snapshot = await super.getSnapshot();
92
- * console.log('after getSnapshot')
93
- * return snapshot;
94
- * }
95
- *
96
- * async applySnapshot({ snapshot, options }) {
97
- * console.log('before applySnapshot')
98
- * const originalPromise = super.applySnapshot({ snapshot, options });
99
- * console.log('after applySnapshot')
100
- *
101
- * return originalPromise;
102
- * }
103
- * };
104
- * return new Override();
105
- * },
106
- * interopOverride: async (InteropBroker) => {
107
- * class Override extends InteropBroker {
108
- * async joinContextGroup(channelName = 'default', target) {
109
- * console.log('before super joinContextGroup')
110
- * super.joinContextGroup(channelName, target);
111
- * console.log('after super joinContextGroup')
112
- * }
113
- * }
114
- *
115
- * return new Override();
116
- * }
117
- * });
118
- * ```
119
- *
120
- * ---
121
- *
122
- * @hideconstructor
123
- * @class
124
- */
125
- export declare class InteropBroker extends Base {
126
- private getProvider;
127
- private interopClients;
128
- private contextGroupsById;
129
- private intentClientMap;
130
- private lastContextMap;
131
- private sessionContextGroupMap;
132
- private channel;
133
- private logging;
134
- constructor(wire: Transport, getProvider: () => Promise<OpenFin.ChannelProvider>, options?: any);
135
- static createClosedConstructor(...args: ConstructorParameters<typeof InteropBroker>): {
136
- new (): InteropBroker;
137
- };
138
- /**
139
- * @REMOVED
140
- * SetContextOptions interface
141
- * @typedef { object } SetContextOptions
142
- * @property { Context } {context} - New context to set.
143
- */
144
- /**
145
- * @REMOVED
146
- * GetContextOptions interface
147
- * @typedef { object } GetContextOptions
148
- * @property { string } [contextType] - Context Type
149
- */
150
- /**
151
- * @REMOVED
152
- * JoinContextGroupOptions interface
153
- * @typedef { object } JoinContextGroupOptions
154
- * @property { string } contextGroupId - Id of the context group.
155
- * @property { Identity | ClientIdentity } [target] - Identity of the entity you wish to join to a context group.
156
- */
157
- /**
158
- * @REMOVED
159
- * AddClientToContextGroupOptions interface
160
- * @typedef { object } AddClientToContextGroupOptions
161
- * @property { string } contextGroupId - Name of the context group.
162
- */
163
- /**
164
- * @REMOVED
165
- * RemoveFromContextGroupOptions interface
166
- * @typedef { object } RemoveFromContextGroupOptions
167
- * @property { Identity | ClientIdentity } target - Identity of the entity you wish to join to a context group.
168
- */
169
- /**
170
- * @REMOVED
171
- * GetInfoForContextGroupOptions interface
172
- * @typedef { object } GetInfoForContextGroupOptions
173
- * @property { string } contextGroupId - Name of the context group to get info for.
174
- */
175
- /**
176
- * @REMOVED
177
- * GetAllClientsInContextGroupOptions interface
178
- * @typedef { object } GetAllClientsInContextGroupOptions
179
- * @property { string } contextGroupId - Name of the context group to get info for.
180
- */
181
- /**
182
- * @PORTED
183
- * InfoForIntentOptions interface
184
- * @typedef { object } InfoForIntentOptions
185
- * @property { string } name Name of the intent to get info for.
186
- * @property { Context } [context] Optional context.
187
- */
188
- /**
189
- * Sets a context for the context group of the incoming current entity.
190
- * @param { SetContextOptions } setContextOptions - New context to set.
191
- * @param { ClientIdentity } clientIdentity - Identity of the client sender.
192
- * @return { void }
193
- */
194
- setContext({ context }: {
195
- context: OpenFin.Context;
196
- }, clientIdentity: OpenFin.ClientIdentity): void;
197
- /**
198
- * Get current context for a client subscribed to a Context Group.
199
- * @param { GetContextOptions } getContextOptions - Options for getting context
200
- * @param { ClientIdentity } clientIdentity - Identity of the client sender.
201
- * @return { Context }
202
- */
203
- getCurrentContext(getCurrentContextOptions: {
204
- contextType: string;
205
- }, clientIdentity: OpenFin.ClientIdentity): OpenFin.Context | undefined;
206
- /**
207
- * Join all connections at the given identity (or just one if endpointId provided) to context group `contextGroupId`.
208
- * If no target is specified, it adds the sender to the context group.
209
- * joinContextGroup is responsible for checking connections at the incoming identity. It calls {@link InteropBroker#addClientToContextGroup InteropBroker.addClientToContextGroup} to actually group the client.
210
- * Used by Platform Windows.
211
- * @return { Promise<void> }
212
- * @param { JoinContextGroupOptions } joinContextGroupOptions - Id of the Context Group and identity of the entity to join to the group.
213
- * @param { ClientIdentity } senderIdentity - Identity of the client sender.
214
- */
215
- joinContextGroup({ contextGroupId, target }: {
216
- contextGroupId: string;
217
- target?: OpenFin.ClientIdentity | OpenFin.Identity;
218
- }, senderIdentity: OpenFin.ClientIdentity): Promise<void>;
219
- /**
220
- * Helper function for {@link InteropBroker#joinContextGroup InteropBroker.joinContextGroup}. Does the work of actually adding the client to the Context Group.
221
- * Used by Platform Windows.
222
- * @return { Promise<void> }
223
- * @param { AddClientToContextGroupOptions } addClientToContextGroupOptions - Contains the contextGroupId
224
- * @param { ClientIdentity } clientIdentity - Identity of the client sender.
225
- */
226
- addClientToContextGroup({ contextGroupId }: {
227
- contextGroupId: string;
228
- }, clientIdentity: OpenFin.ClientIdentity): Promise<void>;
229
- /**
230
- * Removes the specified target from a context group.
231
- * If no target is specified, it removes the sender from their context group.
232
- * removeFromContextGroup is responsible for checking connections at the incoming identity. It calls {@link InteropBroker#removeClientFromContextGroup InteropBroker.removeClientFromContextGroup} to actually ungroup the client.
233
- * Used by Platform Windows.
234
- * @return { Promise<void> }
235
- * @param { RemoveFromContextGroupOptions } removeFromContextGroupOptions - Contains the target identity to remove.
236
- * @param { ClientIdentity } senderIdentity - Identity of the client sender.
237
- */
238
- removeFromContextGroup({ target }: {
239
- target: OpenFin.Identity;
240
- }, senderIdentity: OpenFin.ClientIdentity): Promise<void>;
241
- /**
242
- * Helper function for {@link InteropBroker#removeFromContextGroup InteropBroker.removeFromContextGroup}. Does the work of actually removing the client from the Context Group.
243
- * Used by Platform Windows.
244
- * @return { Promise<void> }
245
- * @property { ClientIdentity } clientIdentity - Identity of the client sender.
246
- */
247
- removeClientFromContextGroup(clientIdentity: OpenFin.ClientIdentity): Promise<void>;
248
- /**
249
- * Returns the Interop-Broker-defined context groups available for an entity to join. Because this function is used in the rest of the Interop Broker to fetch the Context Groups, overriding this allows you to customize the Context Groups for the Interop Broker. However, we recommend customizing the context groups through configuration instead.
250
- * Used by Platform Windows.
251
- * @return { Promise<ContextGroupInfo[]>}
252
- */
253
- getContextGroups(): Readonly<OpenFin.ContextGroupInfo[]>;
254
- /**
255
- * Gets display info for a context group
256
- * Used by Platform Windows.
257
- * @param { GetInfoForContextGroupOptions } getInfoForContextGroupOptions - Contains contextGroupId, the context group you wish to get display info for.
258
- * @return { Promise<ContextGroupInfo>}
259
- */
260
- getInfoForContextGroup({ contextGroupId }: {
261
- contextGroupId: string;
262
- }): OpenFin.ContextGroupInfo | undefined;
263
- /**
264
- * Gets all clients for a context group.
265
- * Used by Platform Windows.
266
- * @param { GetAllClientsInContextGroupOptions } getAllClientsInContextGroupOptions - Contains contextGroupId, the context group you wish to get clients for.
267
- * @return { Promise<ClientIdentity[]>}
268
- */
269
- getAllClientsInContextGroup({ contextGroupId }: {
270
- contextGroupId: string;
271
- }): OpenFin.ClientIdentity[];
272
- /**
273
- * Responsible for launching of applications that can handle a given intent, and delegation of intents to those applications.
274
- * Must be overridden.
275
- * @param { Intent } intent The combination of an action and a context that is passed to an application for resolution.
276
- * @param { ClientIdentity } clientIdentity Identity of the Client making the request.
277
- * @return { Promise<unknown> }
278
- * @tutorial interop.handleFiredIntent
279
- */
280
- handleFiredIntent(intent: OpenFin.Intent, clientIdentity: OpenFin.ClientIdentity): Promise<unknown>;
281
- /**
282
- * Should be called in {@link InteropBroker#handleFiredIntent InteropBroker.handleFiredIntent}.
283
- * While handleFiredIntent is responsible for launching applications, setIntentTarget is used to tell the InteropBroker which application should receive the intent when it is ready.
284
- * @param { Intent } intent The combination of an action and a context that is passed to an application for resolution.
285
- * @param { Identity } target - Identity of the target that will handle the intent.
286
- * @return { Promise<void> }
287
- */
288
- setIntentTarget(intent: OpenFin.Intent, target: OpenFin.Identity): Promise<void>;
289
- /**
290
- * Responsible for returning information on a particular Intent.
291
- * Must be overridden.
292
- * @param { InfoForIntentOptions } options
293
- * @param { ClientIdentity } clientIdentity Identity of the Client making the request.
294
- * @return { Promise<unknown> }
295
- * @tutorial interop.handleInfoForIntent
296
- */
297
- handleInfoForIntent(options: OpenFin.InfoForIntentOptions, clientIdentity: OpenFin.ClientIdentity): Promise<unknown>;
298
- /**
299
- * Responsible for returning information on which Intents are meant to handle a specific Context.
300
- * Must be overridden.
301
- * @param { Context } context Data passed between entities and applications.
302
- * @param { ClientIdentity } clientIdentity Identity of the Client making the request.
303
- * @return { Promise<unknown> }
304
- * @tutorial interop.handleInfoForIntentsByContext
305
- */
306
- handleInfoForIntentsByContext(context: OpenFin.Context | OpenFin.FindIntentsByContextOptions, clientIdentity: OpenFin.ClientIdentity): Promise<unknown>;
307
- /**
308
- * Responsible for resolving an Intent based on a specific Context.
309
- * Must be overridden.
310
- * @param { ContextForIntent } contextForIntent Data passed between entities and applications.
311
- * @param { ClientIdentity } clientIdentity Identity of the Client making the request.
312
- * @return { Promise<unknown> }
313
- * @tutorial interop.handleFiredIntentForContext
314
- */
315
- handleFiredIntentForContext(contextForIntent: OpenFin.ContextForIntent, clientIdentity: OpenFin.ClientIdentity): Promise<unknown>;
316
- /**
317
- * Provides the identity of any Interop Client that disconnects from the Interop Broker. It is meant to be overriden.
318
- * @param clientIdentity
319
- * @return { Promise<void> }
320
- * @tutorial interop.clientDisconnected
321
- */
322
- clientDisconnected(clientIdentity: OpenFin.ClientIdentity): Promise<void>;
323
- /**
324
- * Responsible for resolving an fdc3.open call.
325
- * Must be overridden.
326
- * @param { Fdc3OpenOptions } fdc3OpenOptions fdc3.open options
327
- * @param { ClientIdentity } clientIdentity Identity of the Client making the request.
328
- */
329
- fdc3HandleOpen({ app, context }: {
330
- app: TargetApp | AppIdentifier;
331
- context: OpenFin.Context;
332
- }, clientIdentity: OpenFin.ClientIdentity): Promise<void | AppIdentifier>;
333
- /**
334
- * Responsible for resolving the fdc3.findInstances call.
335
- * Must be overridden
336
- * @param { AppIdentifier(2) } app AppIdentifier that was passed to fdc3.findInstances
337
- * @param { ClientIdentity } clientIdentity Identity of the Client making the request.
338
- */
339
- fdc3HandleFindInstances(app: AppIdentifier, clientIdentity: OpenFin.ClientIdentity): Promise<unknown>;
340
- /**
341
- * Responsible for resolving the fdc3.getAppMetadata call.
342
- * Must be overridden
343
- * @param { AppIdentifier(2) } app AppIdentifier that was passed to fdc3.getAppMetadata
344
- * @param { ClientIdentity } clientIdentity Identity of the Client making the request.
345
- */
346
- fdc3HandleGetAppMetadata(app: AppIdentifier, clientIdentity: OpenFin.ClientIdentity): Promise<unknown>;
347
- /**
348
- * This function is called by the Interop Broker whenever a Context handler would fire.
349
- * For FDC3 2.0 you would need to override this function and add the contextMetadata as
350
- * part of the Context object. Then would you need to call
351
- * super.invokeContextHandler passing it this new Context object along with the clientIdentity and handlerId
352
- * @param { ClientIdentity } clientIdentity
353
- * @param { string } handlerId
354
- * @param { Context } context
355
- * @returns { Promise<void> }
356
- * @tutorial interopBroker.invokeContextHandler
357
- */
358
- invokeContextHandler(clientIdentity: OpenFin.ClientIdentity, handlerId: string, context: OpenFin.Context): Promise<void>;
359
- /**
360
- * This function is called by the Interop Broker whenever an Intent handler would fire.
361
- * For FDC3 2.0 you would need to override this function and add the contextMetadata as
362
- * part of the Context object inside the Intent object. Then would you need to call
363
- * super.invokeIntentHandler passing it this new Intent object along with the clientIdentity and handlerId
364
- * @param { ClientIdentity } ClientIdentity
365
- * @param { string } handlerId
366
- * @param { Context } context
367
- * @returns { Promise<void> }
368
- * @tutorial interopBroker.invokeIntentHandler
369
- */
370
- invokeIntentHandler(clientIdentity: OpenFin.ClientIdentity, handlerId: string, intent: OpenFin.Intent): Promise<void>;
371
- /**
372
- * Responsible for resolving fdc3.getInfo for FDC3 2.0
373
- * Would need to return the optionalFeatures and appMetadata for the {@link ImplementationMetadata ImplementationMetadata}.
374
- * Must be overridden.
375
- * @param clientIdentity
376
- * @returns { Promise<ImplementationMetadata(2)> }
377
- */
378
- fdc3HandleGetInfo(payload: {
379
- fdc3Version: string;
380
- }, clientIdentity: OpenFin.ClientIdentity): Promise<unknown>;
381
- /**
382
- * Returns an array of info for each Interop Client connected to the Interop Broker.
383
- *
384
- * FDC3 2.0: Use the endpointId in the ClientInfo as the instanceId when generating
385
- * an AppIdentifier.
386
- * @return { Promise<Array<ClientInfo>> }
387
- * @tutorial interop.getAllClientInfo
388
- */
389
- getAllClientInfo(): Promise<Array<OpenFin.ClientInfo>>;
390
- decorateSnapshot(snapshot: OpenFin.Snapshot): OpenFin.Snapshot;
391
- applySnapshot(snapshot: OpenFin.Snapshot, options: OpenFin.ApplySnapshotOptions): void;
392
- updateExistingClients(contextGroupStates: OpenFin.ContextGroupStates): void;
393
- getContextGroupStates(): OpenFin.ContextGroupStates;
394
- rehydrateContextGroupStates(incomingContextGroupStates: OpenFin.ContextGroupStates): void;
395
- contextHandlerRegistered({ contextType, handlerId }: {
396
- contextType: string | undefined;
397
- handlerId: string;
398
- }, clientIdentity: OpenFin.ClientIdentity): void;
399
- intentHandlerRegistered(payload: any, clientIdentity: OpenFin.ClientIdentity): Promise<void>;
400
- removeContextHandler({ handlerId }: {
401
- handlerId: string;
402
- }, clientIdentity: OpenFin.ClientIdentity): void;
403
- handleJoinSessionContextGroup({ sessionContextGroupId }: {
404
- sessionContextGroupId: string;
405
- }, clientIdentity: OpenFin.ClientIdentity): {
406
- hasConflict: boolean;
407
- };
408
- private getClientState;
409
- private static toObject;
410
- static checkContextIntegrity(context: OpenFin.Context): {
411
- isValid: true;
412
- } | {
413
- isValid: false;
414
- reason: string;
415
- };
416
- private static hasEndpointId;
417
- static isContextTypeCompatible(contextType: string, registeredContextType: string | undefined): boolean;
418
- private setContextGroupMap;
419
- private setCurrentContextGroupInClientOptions;
420
- private setupChannelProvider;
421
- private wireChannel;
422
- /**
423
- * Can be used to completely prevent a connection. Return false to prevent connections. Allows all connections by default.
424
- * @param _id the identity tryinc to connect
425
- * @param _connectionPayload optional payload to use in custom implementations, will be undefined by default
426
- */
427
- isConnectionAuthorized(_id: Identity, _connectionPayload?: any): Promise<boolean> | boolean;
428
- /**
429
- * Called before every action to check if this entity should be allowed to take the action.
430
- * Return false to prevent the action
431
- * @param _action the string action to authorize in camel case
432
- * @param _payload the data being sent for this action
433
- * @param _identity the connection attempting to dispatch this action
434
- */
435
- isActionAuthorized(_action: string, _payload: any, _identity: OpenFin.ClientIdentity): Promise<boolean> | boolean;
436
- }
437
- export {};