@openfin/core 25.68.26

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 (227) hide show
  1. package/LICENSE +13 -0
  2. package/NOTICE +16 -0
  3. package/OpenFin.d.ts +1340 -0
  4. package/README.md +41 -0
  5. package/docs.README(OLD).md +82 -0
  6. package/fin.d.ts +4 -0
  7. package/package.json +33 -0
  8. package/resources/win/OpenFinRVM.exe +0 -0
  9. package/src/api/application/Factory.d.ts +145 -0
  10. package/src/api/application/Factory.js +229 -0
  11. package/src/api/application/Instance.d.ts +302 -0
  12. package/src/api/application/Instance.js +412 -0
  13. package/src/api/application/index.d.ts +3 -0
  14. package/src/api/application/index.js +15 -0
  15. package/src/api/base.d.ts +43 -0
  16. package/src/api/base.js +177 -0
  17. package/src/api/clipboard/index.d.ts +69 -0
  18. package/src/api/clipboard/index.js +88 -0
  19. package/src/api/events/application.d.ts +69 -0
  20. package/src/api/events/application.js +2 -0
  21. package/src/api/events/base.d.ts +17 -0
  22. package/src/api/events/base.js +2 -0
  23. package/src/api/events/channel.d.ts +10 -0
  24. package/src/api/events/channel.js +2 -0
  25. package/src/api/events/emitterMap.d.ts +11 -0
  26. package/src/api/events/emitterMap.js +35 -0
  27. package/src/api/events/eventAggregator.d.ts +5 -0
  28. package/src/api/events/eventAggregator.js +43 -0
  29. package/src/api/events/externalApplication.d.ts +5 -0
  30. package/src/api/events/externalApplication.js +2 -0
  31. package/src/api/events/frame.d.ts +9 -0
  32. package/src/api/events/frame.js +2 -0
  33. package/src/api/events/globalHotkey.d.ts +10 -0
  34. package/src/api/events/globalHotkey.js +2 -0
  35. package/src/api/events/platform.d.ts +18 -0
  36. package/src/api/events/platform.js +2 -0
  37. package/src/api/events/system.d.ts +22 -0
  38. package/src/api/events/system.js +2 -0
  39. package/src/api/events/view.d.ts +56 -0
  40. package/src/api/events/view.js +2 -0
  41. package/src/api/events/webcontents.d.ts +48 -0
  42. package/src/api/events/webcontents.js +2 -0
  43. package/src/api/events/window.d.ts +169 -0
  44. package/src/api/events/window.js +2 -0
  45. package/src/api/external-application/Factory.d.ts +26 -0
  46. package/src/api/external-application/Factory.js +40 -0
  47. package/src/api/external-application/Instance.d.ts +102 -0
  48. package/src/api/external-application/Instance.js +109 -0
  49. package/src/api/external-application/index.d.ts +3 -0
  50. package/src/api/external-application/index.js +15 -0
  51. package/src/api/fin.d.ts +49 -0
  52. package/src/api/fin.js +43 -0
  53. package/src/api/frame/Factory.d.ts +36 -0
  54. package/src/api/frame/Factory.js +69 -0
  55. package/src/api/frame/Instance.d.ts +121 -0
  56. package/src/api/frame/Instance.js +130 -0
  57. package/src/api/frame/index.d.ts +3 -0
  58. package/src/api/frame/index.js +15 -0
  59. package/src/api/global-hotkey/index.d.ts +38 -0
  60. package/src/api/global-hotkey/index.js +58 -0
  61. package/src/api/interappbus/channel/channel.d.ts +26 -0
  62. package/src/api/interappbus/channel/channel.js +77 -0
  63. package/src/api/interappbus/channel/channels-docs.d.ts +318 -0
  64. package/src/api/interappbus/channel/channels-docs.js +376 -0
  65. package/src/api/interappbus/channel/client.d.ts +22 -0
  66. package/src/api/interappbus/channel/client.js +84 -0
  67. package/src/api/interappbus/channel/connection-manager.d.ts +28 -0
  68. package/src/api/interappbus/channel/connection-manager.js +244 -0
  69. package/src/api/interappbus/channel/index.d.ts +22 -0
  70. package/src/api/interappbus/channel/index.js +121 -0
  71. package/src/api/interappbus/channel/protocols/classic/message-receiver.d.ts +13 -0
  72. package/src/api/interappbus/channel/protocols/classic/message-receiver.js +73 -0
  73. package/src/api/interappbus/channel/protocols/classic/strategy.d.ts +22 -0
  74. package/src/api/interappbus/channel/protocols/classic/strategy.js +84 -0
  75. package/src/api/interappbus/channel/protocols/combined/strategy.d.ts +20 -0
  76. package/src/api/interappbus/channel/protocols/combined/strategy.js +58 -0
  77. package/src/api/interappbus/channel/protocols/index.d.ts +44 -0
  78. package/src/api/interappbus/channel/protocols/index.js +2 -0
  79. package/src/api/interappbus/channel/protocols/protocol-manager.d.ts +10 -0
  80. package/src/api/interappbus/channel/protocols/protocol-manager.js +43 -0
  81. package/src/api/interappbus/channel/protocols/rtc/endpoint.d.ts +23 -0
  82. package/src/api/interappbus/channel/protocols/rtc/endpoint.js +135 -0
  83. package/src/api/interappbus/channel/protocols/rtc/ice-manager.d.ts +30 -0
  84. package/src/api/interappbus/channel/protocols/rtc/ice-manager.js +131 -0
  85. package/src/api/interappbus/channel/protocols/rtc/strategy.d.ts +22 -0
  86. package/src/api/interappbus/channel/protocols/rtc/strategy.js +87 -0
  87. package/src/api/interappbus/channel/protocols/strategy-types.d.ts +13 -0
  88. package/src/api/interappbus/channel/protocols/strategy-types.js +2 -0
  89. package/src/api/interappbus/channel/protocols/strategy.d.ts +15 -0
  90. package/src/api/interappbus/channel/protocols/strategy.js +2 -0
  91. package/src/api/interappbus/channel/provider.d.ts +31 -0
  92. package/src/api/interappbus/channel/provider.js +165 -0
  93. package/src/api/interappbus/index.d.ts +85 -0
  94. package/src/api/interappbus/index.js +175 -0
  95. package/src/api/interop/Factory.d.ts +37 -0
  96. package/src/api/interop/Factory.js +54 -0
  97. package/src/api/interop/InteropBroker.d.ts +363 -0
  98. package/src/api/interop/InteropBroker.js +914 -0
  99. package/src/api/interop/InteropClient.d.ts +268 -0
  100. package/src/api/interop/InteropClient.js +450 -0
  101. package/src/api/interop/SessionContextGroupBroker.d.ts +26 -0
  102. package/src/api/interop/SessionContextGroupBroker.js +107 -0
  103. package/src/api/interop/SessionContextGroupClient.d.ts +20 -0
  104. package/src/api/interop/SessionContextGroupClient.js +85 -0
  105. package/src/api/interop/fdc3/fdc3-1.2.d.ts +187 -0
  106. package/src/api/interop/fdc3/fdc3-1.2.js +385 -0
  107. package/src/api/interop/fdc3/fdc3.js +17 -0
  108. package/src/api/interop/fdc3/utils.d.ts +6 -0
  109. package/src/api/interop/fdc3/utils.js +17 -0
  110. package/src/api/interop/index.d.ts +4 -0
  111. package/src/api/interop/index.js +16 -0
  112. package/src/api/interop/utils.d.ts +11 -0
  113. package/src/api/interop/utils.js +36 -0
  114. package/src/api/me.d.ts +35 -0
  115. package/src/api/me.js +60 -0
  116. package/src/api/platform/Factory.d.ts +109 -0
  117. package/src/api/platform/Factory.js +188 -0
  118. package/src/api/platform/Instance.d.ts +122 -0
  119. package/src/api/platform/Instance.js +299 -0
  120. package/src/api/platform/common-utils.d.ts +6 -0
  121. package/src/api/platform/common-utils.js +16 -0
  122. package/src/api/platform/index.d.ts +3 -0
  123. package/src/api/platform/index.js +15 -0
  124. package/src/api/platform/layout/Factory.d.ts +108 -0
  125. package/src/api/platform/layout/Factory.js +189 -0
  126. package/src/api/platform/layout/Instance.d.ts +48 -0
  127. package/src/api/platform/layout/Instance.js +99 -0
  128. package/src/api/platform/layout/index.d.ts +3 -0
  129. package/src/api/platform/layout/index.js +15 -0
  130. package/src/api/platform/layout/shapes.d.ts +11 -0
  131. package/src/api/platform/layout/shapes.js +2 -0
  132. package/src/api/snapshot-source/Factory.d.ts +36 -0
  133. package/src/api/snapshot-source/Factory.js +65 -0
  134. package/src/api/snapshot-source/Instance.d.ts +30 -0
  135. package/src/api/snapshot-source/Instance.js +134 -0
  136. package/src/api/snapshot-source/index.d.ts +3 -0
  137. package/src/api/snapshot-source/index.js +15 -0
  138. package/src/api/snapshot-source/utils.d.ts +1 -0
  139. package/src/api/snapshot-source/utils.js +5 -0
  140. package/src/api/system/application.d.ts +6 -0
  141. package/src/api/system/application.js +2 -0
  142. package/src/api/system/entity.d.ts +11 -0
  143. package/src/api/system/entity.js +2 -0
  144. package/src/api/system/index.d.ts +957 -0
  145. package/src/api/system/index.js +1241 -0
  146. package/src/api/system/installedApps.d.ts +6 -0
  147. package/src/api/system/installedApps.js +2 -0
  148. package/src/api/system/log.d.ts +11 -0
  149. package/src/api/system/log.js +2 -0
  150. package/src/api/system/process.d.ts +15 -0
  151. package/src/api/system/process.js +2 -0
  152. package/src/api/system/proxy.d.ts +15 -0
  153. package/src/api/system/proxy.js +2 -0
  154. package/src/api/system/queryPermissionTypes.d.ts +1 -0
  155. package/src/api/system/queryPermissionTypes.js +2 -0
  156. package/src/api/system/registry-info.d.ts +7 -0
  157. package/src/api/system/registry-info.js +2 -0
  158. package/src/api/system/window.d.ts +16 -0
  159. package/src/api/system/window.js +2 -0
  160. package/src/api/view/Factory.d.ts +49 -0
  161. package/src/api/view/Factory.js +103 -0
  162. package/src/api/view/Instance.d.ts +379 -0
  163. package/src/api/view/Instance.js +415 -0
  164. package/src/api/view/index.d.ts +3 -0
  165. package/src/api/view/index.js +15 -0
  166. package/src/api/webcontents/main.d.ts +36 -0
  167. package/src/api/webcontents/main.js +82 -0
  168. package/src/api/window/Factory.d.ts +44 -0
  169. package/src/api/window/Factory.js +91 -0
  170. package/src/api/window/Instance.d.ts +966 -0
  171. package/src/api/window/Instance.js +1202 -0
  172. package/src/api/window/bounds-changed.d.ts +10 -0
  173. package/src/api/window/bounds-changed.js +6 -0
  174. package/src/api/window/index.d.ts +5 -0
  175. package/src/api/window/index.js +17 -0
  176. package/src/api/window/shapes.d.ts +13 -0
  177. package/src/api/window/shapes.js +2 -0
  178. package/src/environment/environment.d.ts +28 -0
  179. package/src/environment/environment.js +4 -0
  180. package/src/environment/node-env.d.ts +25 -0
  181. package/src/environment/node-env.js +64 -0
  182. package/src/environment/openfin-env.d.ts +29 -0
  183. package/src/environment/openfin-env.js +105 -0
  184. package/src/mock.d.ts +4 -0
  185. package/src/mock.js +91 -0
  186. package/src/shapes/ERROR_BOX_TYPES.d.ts +6 -0
  187. package/src/shapes/ERROR_BOX_TYPES.js +10 -0
  188. package/src/shapes/EntityType.d.ts +1 -0
  189. package/src/shapes/EntityType.js +2 -0
  190. package/src/shapes/LayoutPresetType.d.ts +1 -0
  191. package/src/shapes/LayoutPresetType.js +2 -0
  192. package/src/shapes/Platform.d.ts +112 -0
  193. package/src/shapes/Platform.js +16 -0
  194. package/src/shapes/WebOptions.d.ts +12 -0
  195. package/src/shapes/WebOptions.js +2 -0
  196. package/src/shapes/WindowOptions.d.ts +42 -0
  197. package/src/shapes/WindowOptions.js +2 -0
  198. package/src/shapes/protocol.d.ts +178 -0
  199. package/src/shapes/protocol.js +2 -0
  200. package/src/transport/fin_store.d.ts +4 -0
  201. package/src/transport/fin_store.js +16 -0
  202. package/src/transport/transport-errors.d.ts +17 -0
  203. package/src/transport/transport-errors.js +39 -0
  204. package/src/transport/transport.d.ts +57 -0
  205. package/src/transport/transport.js +195 -0
  206. package/src/transport/wire.d.ts +76 -0
  207. package/src/transport/wire.js +39 -0
  208. package/src/util/asyncFilter.d.ts +1 -0
  209. package/src/util/asyncFilter.js +7 -0
  210. package/src/util/errors.d.ts +9 -0
  211. package/src/util/errors.js +14 -0
  212. package/src/util/exhaustive.d.ts +1 -0
  213. package/src/util/exhaustive.js +7 -0
  214. package/src/util/http.d.ts +11 -0
  215. package/src/util/http.js +83 -0
  216. package/src/util/normalize-config.d.ts +3 -0
  217. package/src/util/normalize-config.js +47 -0
  218. package/src/util/promises.d.ts +5 -0
  219. package/src/util/promises.js +27 -0
  220. package/src/util/ref-counter.d.ts +7 -0
  221. package/src/util/ref-counter.js +51 -0
  222. package/src/util/runtimeVersioning.d.ts +3 -0
  223. package/src/util/runtimeVersioning.js +25 -0
  224. package/src/util/utilTypes.d.ts +8 -0
  225. package/src/util/utilTypes.js +2 -0
  226. package/src/util/validate.d.ts +3 -0
  227. package/src/util/validate.js +11 -0
@@ -0,0 +1,268 @@
1
+ import Transport from '../../transport/transport';
2
+ import { Base } from '../base';
3
+ /**
4
+ * @typedef { object } Intent
5
+ * @summary The combination of an action and a context that is passed to an application for resolution.
6
+ * @property { string } name Name of the intent.
7
+ * @property { Context } context Data associated with the intent
8
+ */
9
+ /**
10
+ * @typedef { object } Subscription
11
+ * @summary Object returned when subscribing a handler.
12
+ * @property { function } unsubscribe Function to unsubscribe the handler.
13
+ */
14
+ /**
15
+ * @typedef { function } ContextHandler
16
+ * @summary Subscription function for addContextHandler.
17
+ */
18
+ /**
19
+ * @typedef { function } IntentHandler
20
+ * @summary Subscription function for registerIntentHandler
21
+ */
22
+ /**
23
+ * @typedef { object } ClientIdentity
24
+ * @summary The Identity for a Channel Client. Includes endpointId to differentiate between different connections for an entity.
25
+ * @property {string} uuid GUID of an application.
26
+ * @property {string} name Name of an entity in an application.
27
+ * @property {string} endpointId Unique differentiator for different Channel connections for an entity.
28
+ */
29
+ /**
30
+ * @typedef { object } ContextGroupInfo
31
+ * @summary Information for a Context Group. Contains metadata for displaying the group properly.
32
+ * @property {string} id Name of the context group
33
+ * @property {DisplayMetadata} displayMetadata Metadata for the Context Group. Contains the group's human-readable name, color, and an image, as defined by the Interop Broker.
34
+ */
35
+ /**
36
+ * @typedef { object } DisplayMetadata
37
+ * @summary The display data for a Context Group.
38
+ * @property {string} name A user-readable name for this context group, e.g: `"Red"`
39
+ * @property {string} [color] The color that should be associated within this context group when displaying this context group in a UI, e.g: `0xFF0000`.
40
+ * @property {string} [glyph] A URL of an image that can be used to display this context group
41
+ */
42
+ /**
43
+ * @typedef { object } Context
44
+ * @summary Data passed between entities and applications.
45
+ * @property {object} [id] An object containing string key-value pairs for the bulk of the data for the context. Differs between context types.
46
+ * @property {string} [name] User-readable name for the incoming context.
47
+ * @property {string} type Conserved type for the context (e.g. `instrument` or `country`)
48
+ */
49
+ /**
50
+ * @typedef { object } ContextForIntent
51
+ * @summary Data passed between entities and applications, including an optional metadata.
52
+ * @property {object} [id] An object containing string key-value pairs for the bulk of the data for the context. Differs between context types.
53
+ * @property {string} [name] User-readable name for the incoming context.
54
+ * @property {string} type Conserved type for the context (e.g. `instrument` or `country`)
55
+ * @property {any} [metadata]
56
+ */
57
+ /**
58
+ * @typedef { object } SessionContextGroup
59
+ * @summary An instance of a SessionContextGroup
60
+ * @property {string} id The SessionContextGroup's id.
61
+ * @property {setContext} setContext Sets a context of a certain type
62
+ * @property {getCurrentContext} getCurrentContext Gets the currently set context of a certain type
63
+ * @property {addContextHandler} addContextHandler Adds a handler for context change.
64
+ */
65
+ /**
66
+ * @typedef {function} setContext
67
+ * @summary A SessionContextGroup instance method for setting a context in the SessionContextGroup.
68
+ * @param {Context} context The Context to be set.
69
+ * @return {Promise<void>}
70
+ */
71
+ /**
72
+ * @typedef {function} getCurrentContext
73
+ * @summary A SessionContextGroup instance method for getting the current context of a certain type.
74
+ * @param {string} [contextType] The Context Type to get. If not specified the last contextType set would get used.
75
+ * @return {Promise<Context>}
76
+ */
77
+ /**
78
+ * @typedef {function} addContextHandler
79
+ * @summary A SessionContextGroup instance method for adding a handler for context change.
80
+ * @param {ContextHandler} contextHandler The callback to be invoked. Is invoked when (a) the context changes or (b) immediately after getting created if the context is already set.
81
+ * @param {string} [contextType] The context type this handler should listen to. If not specified, a global handler for all context types will get created. Only one global handler is allowed per SessionContextGroup.
82
+ * @return {Promise<void>}
83
+ */
84
+ /**
85
+ * {@link https://developers.openfin.co/of-docs/docs/enable-color-linking **THE INTEROP API IS EXPERIMENTAL. IF YOU WOULD LIKE TO USE IT, PLEASE USE OUR DEFAULT IMPLEMENTATION IN BROWSER**}
86
+ *
87
+ * The Interop Client API is broken up into two groups:
88
+ *
89
+ * **Content Facing APIs** - For Application Developers putting Views into a Platform Window, who care about Context. These are APIs that send out and receive the Context data that flows between applications. Think of this as the Water in the Interop Pipes.
90
+ *
91
+ * **Context Grouping APIs** - For Platform Developers, to add and remove Views to and from Context Groups. These APIs are utilized under-the-hood in Platforms, so they don't need to be used to participate in Interop. These are the APIs that decide which entities the context data flows between. Think of these as the valves or pipes that control the flow of Context Data for Interop.
92
+ *
93
+ * ---
94
+ *
95
+ * All APIs are available at the `fin.me.interop` namespace.
96
+ *
97
+ * ---
98
+ *
99
+ * **You only need 2 things to participate in Interop Context Grouping:**
100
+ * * A Context Handler for incoming context: {@link InteropClient#addContextHandler addContextHandler(handler, contextType?)}
101
+ * * Call setContext on your context group when you want to share context with other group members: {@link InteropClient#setContext setContext(context)}
102
+ *
103
+ * ---
104
+ *
105
+ * ##### Constructor
106
+ * Returned by {@link Interop.connectSync Interop.connectSync}.
107
+ *
108
+ * ---
109
+ *
110
+ * ##### Interop methods intended for Views
111
+ *
112
+ *
113
+ * **Context Groups API**
114
+ * * {@link InteropClient#addContextHandler addContextHandler(handler, contextType?)}
115
+ * * {@link InteropClient#setContext setContext(context)}
116
+ * * {@link InteropClient#getCurrentContext getCurrentContext(contextType?)}
117
+ * * {@link InteropClient#joinSessionContextGroup joinSessionContextGroup(sessionContextGroupId)}
118
+ *
119
+ *
120
+ * **Intents API**
121
+ * * {@link InteropClient#fireIntent fireIntent(intent)}
122
+ * * {@link InteropClient#registerIntentHandler registerIntentHandler(intentHandler, intentName)}
123
+ * * {@link InteropClient#getInfoForIntent getInfoForIntent(infoForIntentOptions)}
124
+ * * {@link InteropClient#getInfoForIntentsByContext getInfoForIntentsByContext(context)}
125
+ * * {@link InteropClient#fireIntentForContext fireIntentForContext(contextForIntent)}
126
+ *
127
+ * ##### Interop methods intended for Windows
128
+ * * {@link InteropClient#getContextGroups getContextGroups()}
129
+ * * {@link InteropClient#joinContextGroup joinContextGroup(contextGroupId, target?)}
130
+ * * {@link InteropClient#removeFromContextGroup removeFromContextGroup(target?)}
131
+ * * {@link InteropClient#getInfoForContextGroup getInfoForContextGroup(contextGroupId)}
132
+ * * {@link InteropClient#getAllClientsInContextGroup getAllClientsInContextGroup(contextGroupId)}
133
+ *
134
+
135
+ *
136
+ * @hideconstructor
137
+ * @class
138
+ */
139
+ export declare class InteropClient extends Base {
140
+ #private;
141
+ constructor(wire: Transport, name: string, interopConfig: OpenFin.InteropConfig);
142
+ /**
143
+ * Sets a context for the context group of the current entity.
144
+ * @param { Context } context - New context to set.
145
+ * @return { Promise<void> }
146
+ * @tutorial interop.setContext
147
+ */
148
+ setContext(context: OpenFin.Context): Promise<void>;
149
+ /**
150
+ * Add a context handler for incoming context. If an entity is part of a context group, and then sets its context handler, it will receive all of its declared contexts.
151
+ * @param { ContextHandler } handler - Handler for incoming context.
152
+ * @param { string } [contextType] - The type of context you wish to handle.
153
+ * @return { Promise<Subscription> }
154
+ * @tutorial interop.addContextHandler
155
+ */
156
+ addContextHandler(handler: OpenFin.ContextHandler, contextType?: string): Promise<{
157
+ unsubscribe: () => void;
158
+ }>;
159
+ /**
160
+ * Returns the Interop-Broker-defined context groups available for an entity to join.
161
+ * Used by Platform Windows.
162
+ * @return { Promise<ContextGroupInfo[]>}
163
+ * @tutorial interop.getContextGroups
164
+ */
165
+ getContextGroups(): Promise<OpenFin.ContextGroupInfo[]>;
166
+ /**
167
+ * Join all Interop Clients at the given identity to context group `contextGroupId`.
168
+ * If no target is specified, it adds the sender to the context group.
169
+ * Because multiple Channel connections/Interop Clients can potentially exist at a `uuid`/`name` combo, we currently join all Channel connections/Interop Clients at the given identity to the context group.
170
+ * If an `endpointId` is provided (which is unlikely, unless the call is coming from an external adapter), then we only join that single connection to the context group.
171
+ * For all intents and purposes, there will only be 1 connection present in Platform and Browser implmentations, so this point is more-or-less moot.
172
+ * Used by Platform Windows.
173
+ * @param { string } contextGroupId - Id of the context group.
174
+ * @param { Identity } [target] - Identity of the entity you wish to join to a context group.
175
+ * @return { Promise<void>}
176
+ * @tutorial interop.joinContextGroup
177
+ */
178
+ joinContextGroup(contextGroupId: string, target?: OpenFin.Identity): Promise<void>;
179
+ /**
180
+ * Removes the specified target from a context group.
181
+ * If no target is specified, it removes the sender from their context group.
182
+ * Used by Platform Windows.
183
+ * @param { Identity } [target] - Identity of the entity you wish to join to a context group.
184
+ * @return { Promise<void>}
185
+ * @tutorial interop.removeFromContextGroup
186
+ */
187
+ removeFromContextGroup(target?: OpenFin.Identity): Promise<void>;
188
+ /**
189
+ * Gets all clients for a context group.
190
+ * Used by Platform Windows.
191
+ * @param { string } contextGroupId - The id of context group you wish to get clients for.
192
+ * @return { Promise<ClientIdentity[]>}
193
+ * @tutorial interop.getAllClientsInContextGroup
194
+ */
195
+ getAllClientsInContextGroup(contextGroupId: string): Promise<OpenFin.ClientIdentity[]>;
196
+ /**
197
+ * Gets display info for a context group
198
+ * Used by Platform Windows.
199
+ * @param { string } contextGroupId - The id of context group you wish to get display info for.
200
+ * @return { Promise<ContextGroupInfo>}
201
+ * @tutorial interop.getInfoForContextGroup
202
+ */
203
+ getInfoForContextGroup(contextGroupId: string): Promise<OpenFin.ContextGroupInfo | undefined>;
204
+ /**
205
+ * Sends an intent to the Interop Broker to resolve.
206
+ * @param { Intent } intent - The combination of an action and a context that is passed to an application for resolution.
207
+ * @return { Promise<unknown>}
208
+ * @tutorial interop.fireIntent
209
+ * @experimental
210
+ */
211
+ fireIntent(intent: OpenFin.Intent): Promise<unknown>;
212
+ /**
213
+ * Adds an intent handler for incoming intents. The last intent sent of the name subscribed to will be received.
214
+ * @param { IntentHandler } handler - Registered function meant to handle a specific intent type.
215
+ * @param { string } intentName - The name of an intent.
216
+ * @return { Promise<Subscription> }
217
+ * @tutorial interop.registerIntentHandler
218
+ * @experimental
219
+ */
220
+ registerIntentHandler(handler: OpenFin.IntentHandler, intentName: string): Promise<{
221
+ unsubscribe: () => Promise<void>;
222
+ }>;
223
+ /**
224
+ * Gets the last context of the Context Group currently subscribed to. It takes an optional Context Type and returns the
225
+ * last context of that type.
226
+ * @param { string } [contextType]
227
+ * @return { Promise<Context> }
228
+ * @tutorial interop.getCurrentContext
229
+ * @experimental
230
+ */
231
+ getCurrentContext(contextType?: string): Promise<OpenFin.Context>;
232
+ /**
233
+ * Get information for a particular Intent from the Interop Broker.
234
+ * @param { InfoForIntentOptions } options
235
+ * @return { Promise<unknown> }
236
+ * @tutorial interop.getInfoForIntent
237
+ * @experimental
238
+ */
239
+ getInfoForIntent(options: OpenFin.InfoForIntentOptions): Promise<unknown>;
240
+ /**
241
+ * Get information from the Interop Broker on all Intents that are meant to handle a particular context.
242
+ * @param { Context } context
243
+ * @return { Promise<unknown> }
244
+ * @tutorial interop.getInfoForIntentsByContext
245
+ * @experimental
246
+ */
247
+ getInfoForIntentsByContext(context: OpenFin.Context): Promise<unknown>;
248
+ /**
249
+ * Sends a Context that will be resolved to an Intent by the Interop Broker.
250
+ * This context accepts a metadata property.
251
+ * @param { ContextForIntent } context
252
+ * @return { Promise<unknown> }
253
+ * @tutorial interop.fireIntentForContext
254
+ * @experimental
255
+ */
256
+ fireIntentForContext(context: OpenFin.ContextForIntent): Promise<unknown>;
257
+ /**
258
+ * Join the current entity to session context group `sessionContextGroupId` and return a sessionContextGroup instance.
259
+ * If the sessionContextGroup doesn't exist, one will get created.
260
+ * Session Context Groups do not persist between runs and aren't present on snapshots.
261
+ * @param { string } sessionContextGroupId - Id of the context group.
262
+ * @return { Promise<SessionContextGroup>}
263
+ * @tutorial interop.joinSessionContextGroup
264
+ * @experimental
265
+ */
266
+ joinSessionContextGroup(sessionContextGroupId: string): Promise<OpenFin.SessionContextGroup>;
267
+ private wrapIntentHandler;
268
+ }