@openfin/node-adapter 34.78.11 → 34.78.13

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.
@@ -7,6 +7,8 @@ import { EventEmitter } from 'events';
7
7
 
8
8
  /**
9
9
  * Enable keyboard shortcuts for devtools, zoom, reload, and reload ignoring cache.
10
+ *
11
+ * @interface
10
12
  */
11
13
  declare type Accelerator = {
12
14
  /**
@@ -43,6 +45,9 @@ declare type Accelerator = {
43
45
  zoom: boolean;
44
46
  };
45
47
 
48
+ /**
49
+ * @interface
50
+ */
46
51
  declare type AddViewToStackOptions = {
47
52
  /**
48
53
  * Optional index within the stack to insert the view. Defaults to 0
@@ -66,6 +71,8 @@ declare type AnyStrategy = ClassicStrategy | RTCStrategy | CombinedStrategy<Payl
66
71
 
67
72
  /**
68
73
  * Configurations for API injection.
74
+ *
75
+ * @interface
69
76
  */
70
77
  declare type Api = {
71
78
  /**
@@ -93,6 +100,9 @@ declare type ApiClient<T extends Record<any, any>> = {
93
100
  [key in keyof PickOfType<T, Function>]: (...args: Parameters<T[key]>) => ReturnType<T[key]> extends Promise<any> ? ReturnType<T[key]> : Promise<ReturnType<T[key]>>;
94
101
  };
95
102
 
103
+ /**
104
+ * @interface
105
+ */
96
106
  declare type AppAssetInfo = {
97
107
  /**
98
108
  * The URL to a zip file containing the package files (executables, dlls, etc…)
@@ -121,6 +131,9 @@ declare type AppAssetInfo = {
121
131
  mandatory?: boolean;
122
132
  };
123
133
 
134
+ /**
135
+ * @interface
136
+ */
124
137
  declare type AppAssetRequest = {
125
138
  alias: string;
126
139
  };
@@ -891,10 +904,16 @@ declare type ApplicationEventType = ApplicationEvent['type'];
891
904
 
892
905
  declare type ApplicationIdentity = OpenFin.ApplicationIdentity;
893
906
 
907
+ /**
908
+ * @interface
909
+ */
894
910
  declare type ApplicationIdentity_2 = {
895
911
  uuid: string;
896
912
  };
897
913
 
914
+ /**
915
+ * @interface
916
+ */
898
917
  declare type ApplicationInfo = {
899
918
  initialOptions: ApplicationCreationOptions;
900
919
  launchMode: string;
@@ -1156,17 +1175,30 @@ declare type ApplicationOptions = LegacyWinOptionsInAppOptions & {
1156
1175
  * When set to `false` it will disable the same-origin policy for the app.
1157
1176
  */
1158
1177
  webSecurity: boolean;
1178
+ /**
1179
+ * Configuration for keyboard commands.
1180
+ * For details and usage, see {@link https://developers.openfin.co/docs/platform-api#section-5-3-using-keyboard-commands Using Keyboard Commands}.
1181
+ */
1159
1182
  commands: ShortcutOverride[];
1160
1183
  isPlatformController: boolean;
1161
1184
  /**
1162
1185
  * @defaultValue 1000
1163
1186
  *
1164
- * Platforms Only. The maximum number of "detached" or "pooled" Views that can exist in the Platform before being closed.
1187
+ * Platforms Only. The maximum number of "detached" or "pooled" Views that can exist in the Platform before being closed.
1165
1188
  * If you do not wish for views to be pooled on your platform, set this property to zero.
1166
1189
  */
1167
1190
  maxViewPoolSize: number;
1191
+ /**
1192
+ * Platforms Only. Default window options apply to all platform windows.
1193
+ */
1168
1194
  defaultWindowOptions: Partial<WindowOptions>;
1195
+ /**
1196
+ * Platforms Only. Default view options apply to all platform views.
1197
+ */
1169
1198
  defaultViewOptions: Partial<ViewOptions>;
1199
+ /**
1200
+ * Platforms Only. The snapshot to be applied.
1201
+ */
1170
1202
  snapshot: Snapshot;
1171
1203
  /**
1172
1204
  * @defaultValue false
@@ -1176,18 +1208,39 @@ declare type ApplicationOptions = LegacyWinOptionsInAppOptions & {
1176
1208
  * If you want a hidden Platform Provider to remain open after the last Platform Window has been closed, set this property to true.
1177
1209
  */
1178
1210
  preventQuitOnLastWindowClosed: boolean;
1211
+ /**
1212
+ * Configuration for interop broker.
1213
+ */
1179
1214
  interopBrokerConfiguration: InteropBrokerOptions;
1215
+ /**
1216
+ * @defaultValue true
1217
+ *
1218
+ * When set to `false` it will disable OpenFin Diagnostics for the app.
1219
+ */
1180
1220
  apiDiagnostics: boolean;
1221
+ /**
1222
+ * Define the file download rules.
1223
+ * See [here](https://developers.openfin.co/of-docs/docs/file-download#manifest-properties-for-file-downloads) for more details.
1224
+ */
1181
1225
  defaultDomainSettings: DefaultDomainSettings;
1182
1226
  /**
1183
1227
  * @defaultValue false
1228
+ *
1184
1229
  * Enables the use of the Jumplists API and the 'pin to taskbar' functionality.
1185
1230
  * Only relevant in Windows.
1186
1231
  */
1187
1232
  enableJumpList: boolean;
1233
+ /**
1234
+ * @defaultValue false
1235
+ *
1236
+ * When set to `true`, any `beforeunload` handler set on the app will fire.
1237
+ */
1188
1238
  enableBeforeUnload: boolean;
1189
1239
  };
1190
1240
 
1241
+ /**
1242
+ * @interface
1243
+ */
1191
1244
  declare type ApplicationPermissions = {
1192
1245
  setFileDownloadLocation: boolean;
1193
1246
  getFileDownloadLocation: boolean;
@@ -1195,6 +1248,9 @@ declare type ApplicationPermissions = {
1195
1248
 
1196
1249
  declare type ApplicationState = OpenFin.ApplicationState;
1197
1250
 
1251
+ /**
1252
+ * @interface
1253
+ */
1198
1254
  declare type ApplicationState_2 = {
1199
1255
  /**
1200
1256
  * True when the application is a Platform controller
@@ -1214,6 +1270,9 @@ declare type ApplicationState_2 = {
1214
1270
  parentUuid?: string;
1215
1271
  };
1216
1272
 
1273
+ /**
1274
+ * @interface
1275
+ */
1217
1276
  declare type ApplicationType = {
1218
1277
  type: 'application' | 'external-app';
1219
1278
  uuid: string;
@@ -1226,6 +1285,9 @@ declare type ApplicationWindowEvent = WindowAlertRequestedEvent | WindowCreatedE
1226
1285
 
1227
1286
  declare type ApplicationWindowInfo = OpenFin.ApplicationWindowInfo;
1228
1287
 
1288
+ /**
1289
+ * @interface
1290
+ */
1229
1291
  declare type ApplicationWindowInfo_2 = {
1230
1292
  childWindows: Array<WindowDetail>;
1231
1293
  mainWindow: WindowDetail;
@@ -1235,6 +1297,9 @@ declare type ApplicationWindowInfo_2 = {
1235
1297
  uuid: string;
1236
1298
  };
1237
1299
 
1300
+ /**
1301
+ * @interface
1302
+ */
1238
1303
  declare type ApplySnapshotOptions = {
1239
1304
  /**
1240
1305
  * @defaultValue false
@@ -1262,10 +1327,12 @@ declare type ApplySnapshotOptions = {
1262
1327
 
1263
1328
  /**
1264
1329
  * Payload sent to Platform Provider when {@link Platform#applySnapshot Platform.applySnapshot} is called.
1330
+ *
1331
+ * @interface
1265
1332
  */
1266
1333
  declare type ApplySnapshotPayload = {
1267
1334
  /**
1268
- * TThe snapshot to be applied.
1335
+ * The snapshot to be applied.
1269
1336
  */
1270
1337
  snapshot: Snapshot;
1271
1338
  /**
@@ -1274,6 +1341,9 @@ declare type ApplySnapshotPayload = {
1274
1341
  options?: ApplySnapshotOptions;
1275
1342
  };
1276
1343
 
1344
+ /**
1345
+ * @interface
1346
+ */
1277
1347
  declare type AppProcessInfo = {
1278
1348
  /**
1279
1349
  * The uuid of the application.
@@ -1293,6 +1363,9 @@ declare type AppVersionCompleteEvent = {
1293
1363
  type: 'app-version-complete';
1294
1364
  } & AppVersionProgress;
1295
1365
 
1366
+ /**
1367
+ * @interface
1368
+ */
1296
1369
  declare type AppVersionError = {
1297
1370
  error: string;
1298
1371
  srcManifest: string;
@@ -1318,6 +1391,9 @@ declare type AppVersionEventType = AppVersionEvent['type'];
1318
1391
 
1319
1392
  /* Excluded from this release type: AppVersionEventWithId */
1320
1393
 
1394
+ /**
1395
+ * @interface
1396
+ */
1321
1397
  declare type AppVersionProgress = {
1322
1398
  manifest: string | null;
1323
1399
  srcManifest: string;
@@ -1331,6 +1407,9 @@ declare type AppVersionProgressEvent = {
1331
1407
  type: 'app-version-progress';
1332
1408
  } & AppVersionProgress;
1333
1409
 
1410
+ /**
1411
+ * @interface
1412
+ */
1334
1413
  declare type AppVersionRuntimeInfo = {
1335
1414
  version: string | null;
1336
1415
  exists: boolean | null;
@@ -1445,6 +1524,9 @@ declare type AuthRequestedEvent = NamedEvent & {
1445
1524
  */
1446
1525
  declare type AutoplayPolicyOptions = 'no-user-gesture-required' | 'user-gesture-required' | 'document-user-activation-required';
1447
1526
 
1527
+ /**
1528
+ * @interface
1529
+ */
1448
1530
  declare type AutoResizeOptions = {
1449
1531
  /**
1450
1532
  * If true, the view's width will grow and shrink together with the window. false
@@ -1472,6 +1554,13 @@ declare class Base {
1472
1554
  /* Excluded from this release type: wire */
1473
1555
  /* Excluded from this release type: __constructor */
1474
1556
  protected get fin(): OpenFin.Fin<OpenFin.EntityType>;
1557
+ /**
1558
+ * Provides access to the OpenFin representation of the current code context (usually a document
1559
+ * such as a {@link OpenFin.View} or {@link OpenFin.Window}), as well as to the current `Interop` context.
1560
+ *
1561
+ * Useful for debugging in the devtools console, where this will intelligently type itself based
1562
+ * on the context in which the devtools panel was opened.
1563
+ */
1475
1564
  get me(): Identity;
1476
1565
  protected isNodeEnvironment: () => boolean;
1477
1566
  protected isOpenFinEnvironment: () => boolean;
@@ -1487,6 +1576,9 @@ declare type BaseChannelEvent = NamedEvent & {
1487
1576
  channelId: string;
1488
1577
  };
1489
1578
 
1579
+ /**
1580
+ * @interface
1581
+ */
1490
1582
  declare type BaseClipboardRequest = {
1491
1583
  /**
1492
1584
  * The type of clipboard to write to, can be 'clipboard' or 'selection'.
@@ -1577,8 +1669,9 @@ declare type BaseViewEvent = NamedEvent & {
1577
1669
 
1578
1670
  /**
1579
1671
  * User decision of whether a Window or specific View should close when trying to prevent an unload.
1672
+ * @interface
1580
1673
  */
1581
- declare interface BeforeUnloadUserDecision {
1674
+ declare type BeforeUnloadUserDecision = {
1582
1675
  /**
1583
1676
  * Specifies if the Window should close.
1584
1677
  */
@@ -1587,7 +1680,7 @@ declare interface BeforeUnloadUserDecision {
1587
1680
  * Array of views that will close.
1588
1681
  */
1589
1682
  viewsToClose: Identity_5[];
1590
- }
1683
+ };
1591
1684
 
1592
1685
  /**
1593
1686
  * Generated at the beginning of a user-driven change to a window's size or position.
@@ -1605,6 +1698,9 @@ declare type BlurredEvent = NamedEvent & {
1605
1698
  type: 'blurred';
1606
1699
  };
1607
1700
 
1701
+ /**
1702
+ * @interface
1703
+ */
1608
1704
  declare type Bounds = {
1609
1705
  top: number;
1610
1706
  left: number;
@@ -1643,8 +1739,10 @@ declare type BoundsChangingEvent = BoundsChangeEvent & {
1643
1739
 
1644
1740
  /**
1645
1741
  * Configuration for page capture.
1742
+ *
1743
+ * @interface
1646
1744
  */
1647
- declare interface CapturePageOptions {
1745
+ declare type CapturePageOptions = {
1648
1746
  /**
1649
1747
  * The area of the window to be captured.
1650
1748
  */
@@ -1661,8 +1759,11 @@ declare interface CapturePageOptions {
1661
1759
  * Quality of JPEG image. Between 0 - 100.
1662
1760
  */
1663
1761
  quality?: number;
1664
- }
1762
+ };
1665
1763
 
1764
+ /**
1765
+ * @interface
1766
+ */
1666
1767
  declare type Certificate = {
1667
1768
  data: string;
1668
1769
  fingerprint: string;
@@ -1687,6 +1788,9 @@ declare type CertificateErrorEvent = NamedEvent & {
1687
1788
  certificate: OpenFin.Certificate;
1688
1789
  };
1689
1790
 
1791
+ /**
1792
+ * @interface
1793
+ */
1690
1794
  declare type CertificatePrincipal = {
1691
1795
  commonName: string;
1692
1796
  country: string;
@@ -1706,6 +1810,9 @@ declare type CertificateSelectionShownEvent = NamedEvent & {
1706
1810
  certificates: OpenFin.Certificate[];
1707
1811
  };
1708
1812
 
1813
+ /**
1814
+ * @interface
1815
+ */
1709
1816
  declare type CertificationInfo = {
1710
1817
  serial?: string;
1711
1818
  subject?: string;
@@ -1714,6 +1821,9 @@ declare type CertificationInfo = {
1714
1821
  trusted?: boolean;
1715
1822
  };
1716
1823
 
1824
+ /**
1825
+ * @interface
1826
+ */
1717
1827
  declare type CertifiedAppInfo = {
1718
1828
  isRunning: boolean;
1719
1829
  isOptedIntoCertfiedApp?: boolean;
@@ -2301,6 +2411,8 @@ declare type ChannelConnectOptions = ChannelCreateOptions & {
2301
2411
 
2302
2412
  /**
2303
2413
  * Channel provider creation options.
2414
+ *
2415
+ * @interface
2304
2416
  */
2305
2417
  declare type ChannelCreateOptions = {
2306
2418
  /**
@@ -2607,6 +2719,9 @@ declare class ClassicStrategy implements ChannelStrategy<EndpointPayload> {
2607
2719
  isValidEndpointPayload(payload: any): payload is EndpointPayload;
2608
2720
  }
2609
2721
 
2722
+ /**
2723
+ * @interface
2724
+ */
2610
2725
  declare type ClearCacheOption = {
2611
2726
  /**
2612
2727
  * html5 application cache
@@ -2626,9 +2741,17 @@ declare type ClearCacheOption = {
2626
2741
  localStorage?: boolean;
2627
2742
  };
2628
2743
 
2629
- declare type ClickedMenuResult<T extends unknown = unknown> = {
2744
+ /**
2745
+ * @typeParam Data User-defined shape for data returned upon menu item click. Should be a
2746
+ * [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
2747
+ * of all possible data shapes for the entire menu, and the click handler should process
2748
+ * these with a "reducer" pattern.
2749
+ *
2750
+ * @interface
2751
+ */
2752
+ declare type ClickedMenuResult<Data extends unknown = unknown> = {
2630
2753
  result: 'clicked';
2631
- data: T;
2754
+ data: Data;
2632
2755
  };
2633
2756
 
2634
2757
  /**
@@ -2637,7 +2760,7 @@ declare type ClickedMenuResult<T extends unknown = unknown> = {
2637
2760
  declare type ClientConnectionPayload = ClientIdentity & ClientInfo;
2638
2761
 
2639
2762
  /**
2640
- * Identity of a channel client
2763
+ * Identity of a channel client. Includes endpointId to differentiate between different connections for an entity.
2641
2764
  * @interface
2642
2765
  */
2643
2766
  declare type ClientIdentity = Identity_5 & {
@@ -2855,10 +2978,16 @@ declare type ClosedEvent = IdentityEvent & {
2855
2978
  type: 'closed';
2856
2979
  };
2857
2980
 
2981
+ /**
2982
+ * @interface
2983
+ */
2858
2984
  declare type ClosedMenuResult = {
2859
2985
  result: 'closed';
2860
2986
  };
2861
2987
 
2988
+ /**
2989
+ * @interface
2990
+ */
2862
2991
  declare type CloseViewPayload = {
2863
2992
  /**
2864
2993
  *View to be closed.
@@ -2867,6 +2996,8 @@ declare type CloseViewPayload = {
2867
2996
  };
2868
2997
 
2869
2998
  /**
2999
+ * @interface
3000
+ *
2870
3001
  * Represents the shape of payload that contains the Window Identity and related options.
2871
3002
  */
2872
3003
  declare interface CloseWindowPayload {
@@ -2949,6 +3080,8 @@ declare type ConstructorOverride<T> = (Base: Constructor<T>) => Constructor<T>;
2949
3080
 
2950
3081
  /**
2951
3082
  * View options that cannot be updated after creation.
3083
+ *
3084
+ * @interface
2952
3085
  */
2953
3086
  declare type ConstViewOptions = {
2954
3087
  /**
@@ -3001,6 +3134,11 @@ declare type ConstViewOptions = {
3001
3134
  zoomLevel: number;
3002
3135
  experimental: any;
3003
3136
  fdc3InteropApi?: string;
3137
+ /**
3138
+ * @defaultValue false
3139
+ *
3140
+ * When set to `true`, any `beforeunload` handler set on Views will fire.
3141
+ */
3004
3142
  enableBeforeUnload: boolean;
3005
3143
  /**
3006
3144
  * Enable keyboard shortcuts for devtools, zoom, reload, and reload ignoring cache.
@@ -3016,6 +3154,8 @@ declare type ConstViewOptions = {
3016
3154
 
3017
3155
  /**
3018
3156
  * Window options that cannot be changed after creation.
3157
+ *
3158
+ * @interface
3019
3159
  */
3020
3160
  declare type ConstWindowOptions = {
3021
3161
  /**
@@ -3217,6 +3357,8 @@ declare type ContentCreationBehaviorNames = 'window' | 'view' | 'block' | 'brows
3217
3357
 
3218
3358
  /**
3219
3359
  * Configures how new content (e,g, from `window.open` or a link) is opened.
3360
+ *
3361
+ * @interface
3220
3362
  */
3221
3363
  declare type ContentCreationOptions = {
3222
3364
  /**
@@ -3229,13 +3371,12 @@ declare type ContentCreationOptions = {
3229
3371
  * A rule for creating content in OpenFin; maps a content type to the way in which
3230
3372
  * newly-opened content of that type will be handled.
3231
3373
  *
3232
- * @property { string } behavior 'view' | 'window' | 'browser' | 'block'
3233
- * @property { string[] } match List of [match patterns](https://developer.chrome.com/extensions/match_patterns).
3234
- * @property { object } options Window creation options or View creation options.
3374
+ *
3375
+ * @interface
3235
3376
  */
3236
3377
  declare type ContentCreationRule<T = ContentCreationBehaviorNames> = {
3237
3378
  /**
3238
- * Behavior to use when opening matched content.
3379
+ * Behavior to use when opening matched content. The value could be 'view' | 'window' | 'browser' | 'block'.
3239
3380
  */
3240
3381
  behavior: T;
3241
3382
  /**
@@ -3284,6 +3425,8 @@ declare type ContentCreationRulesEvent = NamedEvent & {
3284
3425
  * Restrict navigation to URLs that match an allowed pattern.
3285
3426
  * In the lack of an allowlist, navigation to URLs that match a denied pattern would be prohibited.
3286
3427
  * See [here](https://developer.chrome.com/extensions/match_patterns) for more details.
3428
+ *
3429
+ * @interface
3287
3430
  */
3288
3431
  declare type ContentNavigation = NavigationRules;
3289
3432
 
@@ -3291,11 +3434,15 @@ declare type ContentNavigation = NavigationRules;
3291
3434
  * Restrict redirects to URLs that match an allowed pattern.
3292
3435
  * In the lack of an allowlist, redirects to URLs that match a denied pattern would be prohibited.
3293
3436
  * See [here](https://developer.chrome.com/extensions/match_patterns) for more details.
3437
+ *
3438
+ * @interface
3294
3439
  */
3295
3440
  declare type ContentRedirect = NavigationRules;
3296
3441
 
3297
3442
  /**
3298
3443
  * Data passed between entities and applications.
3444
+ *
3445
+ * @interface
3299
3446
  */
3300
3447
  declare type Context = {
3301
3448
  /**
@@ -3321,6 +3468,12 @@ declare type ContextForIntent<MetadataType = any> = Context & {
3321
3468
  metadata?: MetadataType;
3322
3469
  };
3323
3470
 
3471
+ /**
3472
+ * Information for a Context Group. Contains metadata for displaying the group properly.
3473
+ */
3474
+ /**
3475
+ * @interface
3476
+ */
3324
3477
  declare type ContextGroupInfo = {
3325
3478
  /**
3326
3479
  * Unique identifier of the context group.
@@ -3338,10 +3491,15 @@ declare type ContextGroupStates = {
3338
3491
  };
3339
3492
  };
3340
3493
 
3494
+ /**
3495
+ * Subscription function for addContextHandler.
3496
+ */
3341
3497
  declare type ContextHandler = (context: Context) => void;
3342
3498
 
3343
3499
  /**
3344
3500
  * Configure the context menu when right-clicking on a window.
3501
+ *
3502
+ * @interface
3345
3503
  */
3346
3504
  declare type ContextMenuOptions = {
3347
3505
  /**
@@ -3357,6 +3515,8 @@ declare type ContextMenuOptions = {
3357
3515
  /**
3358
3516
  * @deprecated Superseded by {@link contextMenuOptions}, which offers a larger feature-set and cleaner syntax.
3359
3517
  * Configure the context menu when right-clicking on a window.
3518
+ *
3519
+ * @interface
3360
3520
  */
3361
3521
  declare type ContextMenuSettings = {
3362
3522
  /**
@@ -3373,12 +3533,18 @@ declare type ContextMenuSettings = {
3373
3533
  reload?: boolean;
3374
3534
  };
3375
3535
 
3536
+ /**
3537
+ * @interface
3538
+ */
3376
3539
  declare type CookieInfo = {
3377
3540
  name: string;
3378
3541
  domain: string;
3379
3542
  path: string;
3380
3543
  };
3381
3544
 
3545
+ /**
3546
+ * @interface
3547
+ */
3382
3548
  declare type CookieOption = {
3383
3549
  name: string;
3384
3550
  };
@@ -3386,6 +3552,8 @@ declare type CookieOption = {
3386
3552
  /**
3387
3553
  * Defines and applies rounded corners for a frameless window. **NOTE:** On macOS corner is not ellipse but circle rounded by the
3388
3554
  * average of _height_ and _width_.
3555
+ *
3556
+ * @interface
3389
3557
  */
3390
3558
  declare type CornerRounding = {
3391
3559
  /**
@@ -3402,6 +3570,9 @@ declare type CornerRounding = {
3402
3570
  width: number;
3403
3571
  };
3404
3572
 
3573
+ /**
3574
+ * @interface
3575
+ */
3405
3576
  declare type CpuInfo = {
3406
3577
  /**
3407
3578
  * The model of the cpu
@@ -3431,6 +3602,9 @@ declare type CrashedEvent = NamedEvent & {
3431
3602
  };
3432
3603
  };
3433
3604
 
3605
+ /**
3606
+ * @interface
3607
+ */
3434
3608
  declare type CrashReporterOptions = {
3435
3609
  /**
3436
3610
  * In diagnostics mode the crash reporter will send diagnostic logs to
@@ -3458,6 +3632,9 @@ declare type CreatedEvent = BaseViewEvent & {
3458
3632
  type: 'created';
3459
3633
  };
3460
3634
 
3635
+ /**
3636
+ * @interface
3637
+ */
3461
3638
  declare type CreateViewPayload = {
3462
3639
  /**
3463
3640
  * Options for the view to be added.
@@ -3486,6 +3663,8 @@ declare type CreateViewTarget = Identity_5 & {
3486
3663
 
3487
3664
  /**
3488
3665
  * Custom headers for requests sent by the window.
3666
+ *
3667
+ * @interface
3489
3668
  */
3490
3669
  declare type CustomRequestHeaders = {
3491
3670
  /**
@@ -3499,10 +3678,16 @@ declare type CustomRequestHeaders = {
3499
3678
  headers: WebRequestHeader[];
3500
3679
  };
3501
3680
 
3681
+ /**
3682
+ * @interface
3683
+ */
3502
3684
  declare type DefaultDomainSettings = {
3503
3685
  rules: DefaultDomainSettingsRule[];
3504
3686
  };
3505
3687
 
3688
+ /**
3689
+ * @interface
3690
+ */
3506
3691
  declare type DefaultDomainSettingsRule = {
3507
3692
  match: string[];
3508
3693
  options: {
@@ -3558,6 +3743,9 @@ declare type DipRect = RectangleByEdgePositions & {
3558
3743
  scaledRect: RectangleByEdgePositions;
3559
3744
  };
3560
3745
 
3746
+ /**
3747
+ * @interface
3748
+ */
3561
3749
  declare type DipScaleRects = {
3562
3750
  dipRect: RectangleByEdgePositions;
3563
3751
  scaledRect: RectangleByEdgePositions;
@@ -3581,6 +3769,8 @@ declare type DisabledMovementBoundsChangingEvent = BoundsChangeEvent & {
3581
3769
 
3582
3770
  /**
3583
3771
  * The display data for a context group.
3772
+ *
3773
+ * @interface
3584
3774
  */
3585
3775
  declare type DisplayMetadata = {
3586
3776
  /**
@@ -3599,6 +3789,8 @@ declare type DisplayMetadata = {
3599
3789
 
3600
3790
  /**
3601
3791
  * Metadata returned from a preload script download request.
3792
+ *
3793
+ * @interface
3602
3794
  */
3603
3795
  declare type DownloadPreloadInfo = {
3604
3796
  /**
@@ -3617,6 +3809,8 @@ declare type DownloadPreloadInfo = {
3617
3809
 
3618
3810
  /**
3619
3811
  * Options for downloading a preload script.
3812
+ *
3813
+ * @interface
3620
3814
  */
3621
3815
  declare type DownloadPreloadOption = {
3622
3816
  /**
@@ -3625,6 +3819,9 @@ declare type DownloadPreloadOption = {
3625
3819
  url: string;
3626
3820
  };
3627
3821
 
3822
+ /**
3823
+ * @interface
3824
+ */
3628
3825
  declare type DownloadRule = {
3629
3826
  behavior: FileDownloadBehaviorNames;
3630
3827
  match: string[];
@@ -3632,6 +3829,8 @@ declare type DownloadRule = {
3632
3829
 
3633
3830
  /**
3634
3831
  * DPI (dots per inch) configuration for printing.
3832
+ *
3833
+ * @interface
3635
3834
  */
3636
3835
  declare type Dpi = {
3637
3836
  /**
@@ -3694,53 +3893,35 @@ declare class EmitterBase<EmitterEvent extends BaseEvent, EmitterEventType exten
3694
3893
  protected deregisterEventListener: (eventType: EmitterEventType, options?: OpenFin.SubscriptionOptions) => Promise<void | EventEmitter>;
3695
3894
  /**
3696
3895
  * Adds a listener to the end of the listeners array for the specified event.
3697
- *
3698
- * @param eventType
3699
- * @param listener
3700
- * @param options
3701
3896
  */
3702
3897
  on<EventType extends EmitterEventType>(eventType: EventType, listener: EventHandler<EmitterEvent, EventType>, options?: OpenFin.SubscriptionOptions): Promise<this>;
3703
- addListener: <EventType extends EmitterEventType>(eventType: EventType, listener: OpenFin.BaseEvents.EventHandler<EmitterEvent, EventType>, options?: OpenFin.SubscriptionOptions) => Promise<this>;
3898
+ /**
3899
+ * Adds a listener to the end of the listeners array for the specified event.
3900
+ */
3901
+ addListener<EventType extends EmitterEventType>(eventType: EventType, listener: EventHandler<EmitterEvent, EventType>, options?: OpenFin.SubscriptionOptions): Promise<this>;
3704
3902
  /**
3705
3903
  * Adds a one time listener for the event. The listener is invoked only the first time the event is fired, after which it is removed.
3706
- *
3707
- * @param eventType
3708
- * @param listener
3709
- * @param options
3710
3904
  */
3711
3905
  once<EventType extends EmitterEventType>(eventType: EventType, listener: EventHandler<EmitterEvent, EventType>, options?: OpenFin.SubscriptionOptions): Promise<this>;
3712
3906
  /**
3713
3907
  * Adds a listener to the beginning of the listeners array for the specified event.
3714
- *
3715
- * @param eventType
3716
- * @param listener
3717
- * @param options
3718
3908
  */
3719
3909
  prependListener<EventType extends EmitterEventType>(eventType: EventType, listener: EventHandler<EmitterEvent, EventType>, options?: OpenFin.SubscriptionOptions): Promise<this>;
3720
3910
  /**
3721
3911
  * Adds a one time listener for the event. The listener is invoked only the first time the event is fired,
3722
3912
  * after which it is removed. The listener is added to the beginning of the listeners array.
3723
- *
3724
- * @param eventType
3725
- * @param listener
3726
- * @param options
3727
3913
  */
3728
3914
  prependOnceListener<EventType extends EmitterEventType>(eventType: EventType, listener: EventHandler<EmitterEvent, EventType>, options?: OpenFin.SubscriptionOptions): Promise<this>;
3729
3915
  /**
3730
3916
  * Remove a listener from the listener array for the specified event.
3731
3917
  *
3732
3918
  * @remarks Caution: Calling this method changes the array indices in the listener array behind the listener.
3733
- *
3734
- * @param eventType
3735
- * @param listener
3736
- * @param options
3737
3919
  */
3738
3920
  removeListener<EventType extends EmitterEventType>(eventType: EventType, listener: EventHandler<EmitterEvent, EventType>, options?: OpenFin.SubscriptionOptions): Promise<this>;
3739
3921
  protected deregisterAllListeners(eventType: EmitterEventType): Promise<EventEmitter | void>;
3740
3922
  /**
3741
3923
  * Removes all listeners, or those of the specified event.
3742
3924
  *
3743
- * @param eventType
3744
3925
  */
3745
3926
  removeAllListeners(eventType?: EmitterEventType): Promise<this>;
3746
3927
  private deleteEmitterIfNothingRegistered;
@@ -3783,6 +3964,9 @@ declare type Entity = OpenFin.ApplicationType;
3783
3964
 
3784
3965
  declare type EntityInfo = OpenFin.EntityInfo;
3785
3966
 
3967
+ /**
3968
+ * @interface
3969
+ */
3786
3970
  declare type EntityInfo_2 = {
3787
3971
  uuid: string;
3788
3972
  name: string;
@@ -3894,6 +4078,9 @@ declare type ExistingConnectConfig = ConfigWithUuid & {
3894
4078
  address: string;
3895
4079
  };
3896
4080
 
4081
+ /**
4082
+ * @interface
4083
+ */
3897
4084
  declare type ExitCode = {
3898
4085
  topic: string;
3899
4086
  uuid: string;
@@ -4040,6 +4227,9 @@ declare namespace ExternalApplicationEvents {
4040
4227
  }
4041
4228
  }
4042
4229
 
4230
+ /**
4231
+ * @interface
4232
+ */
4043
4233
  declare type ExternalApplicationInfo = {
4044
4234
  parent: Identity_5;
4045
4235
  };
@@ -4082,6 +4272,9 @@ declare type ExternalConfig = BaseConfig & {
4082
4272
  manifestUrl: string;
4083
4273
  };
4084
4274
 
4275
+ /**
4276
+ * @interface
4277
+ */
4085
4278
  declare type ExternalConnection = {
4086
4279
  /**
4087
4280
  * The token to broker an external connection.
@@ -4103,11 +4296,17 @@ declare type ExternalProcessExitedEvent = NamedEvent & {
4103
4296
  exitCode: number;
4104
4297
  };
4105
4298
 
4299
+ /**
4300
+ * @interface
4301
+ */
4106
4302
  declare type ExternalProcessInfo = {
4107
4303
  pid: number;
4108
4304
  listener?: LaunchExternalProcessListener;
4109
4305
  };
4110
4306
 
4307
+ /**
4308
+ * @interface
4309
+ */
4111
4310
  declare type ExternalProcessRequestType = {
4112
4311
  /**
4113
4312
  * The file path to where the running application resides.
@@ -4150,6 +4349,9 @@ declare type FaviconUpdatedEvent = NamedEvent & {
4150
4349
  favicons: string[];
4151
4350
  };
4152
4351
 
4352
+ /**
4353
+ * @interface
4354
+ */
4153
4355
  declare type FetchManifestPayload = {
4154
4356
  /**
4155
4357
  * The URL of the manifest to fetch.
@@ -4238,6 +4440,9 @@ declare type FileDownloadProgressEvent = FileDownloadEvent & {
4238
4440
  state: 'progressing' | 'interrupted';
4239
4441
  };
4240
4442
 
4443
+ /**
4444
+ * @interface
4445
+ */
4241
4446
  declare type FileDownloadSettings = {
4242
4447
  rules: DownloadRule[];
4243
4448
  };
@@ -4276,6 +4481,8 @@ declare interface FinApi<MeType extends EntityType> {
4276
4481
 
4277
4482
  /**
4278
4483
  * Configuration for find-in-page requests.
4484
+ *
4485
+ * @interface
4279
4486
  */
4280
4487
  declare type FindInPageOptions = {
4281
4488
  /**
@@ -4311,6 +4518,9 @@ declare type FindInPageOptions = {
4311
4518
  medialCapitalAsWordStart?: boolean;
4312
4519
  };
4313
4520
 
4521
+ /**
4522
+ * @interface
4523
+ */
4314
4524
  declare type FindInPageResult = {
4315
4525
  requestId: number;
4316
4526
  /**
@@ -4328,6 +4538,9 @@ declare type FindInPageResult = {
4328
4538
  finalUpdate: boolean;
4329
4539
  };
4330
4540
 
4541
+ /**
4542
+ * @interface
4543
+ */
4331
4544
  declare type FindIntentsByContextOptions<MetadataType = IntentMetadata> = {
4332
4545
  context: Context;
4333
4546
  metadata?: MetadataType;
@@ -4522,6 +4735,9 @@ declare namespace FrameEvents {
4522
4735
  */
4523
4736
  declare type FrameEventType = FrameEvent['type'];
4524
4737
 
4738
+ /**
4739
+ * @interface
4740
+ */
4525
4741
  declare type FrameInfo = {
4526
4742
  name: string;
4527
4743
  uuid: string;
@@ -4598,6 +4814,9 @@ declare type FrameProcessDetails = ProcessDetails & {
4598
4814
 
4599
4815
  declare type GetLogRequestType = OpenFin.GetLogRequestType;
4600
4816
 
4817
+ /**
4818
+ * @interface
4819
+ */
4601
4820
  declare type GetLogRequestType_2 = {
4602
4821
  /**
4603
4822
  * The name of the running application
@@ -4615,6 +4834,9 @@ declare type GetLogRequestType_2 = {
4615
4834
 
4616
4835
  declare type GetterCall<T> = ApiCall<void, T>;
4617
4836
 
4837
+ /**
4838
+ * @interface
4839
+ */
4618
4840
  declare type GetWindowContextPayload = {
4619
4841
  /**
4620
4842
  * Entity type of the target of the context update ('view' or 'window').
@@ -4747,6 +4969,9 @@ declare namespace GlobalHotkeyEvents {
4747
4969
  }
4748
4970
  }
4749
4971
 
4972
+ /**
4973
+ * @interface
4974
+ */
4750
4975
  declare type GpuInfo = {
4751
4976
  name: string;
4752
4977
  };
@@ -4759,6 +4984,9 @@ declare type HiddenEvent = BaseViewEvent & {
4759
4984
  type: 'hidden';
4760
4985
  };
4761
4986
 
4987
+ /**
4988
+ * @interface
4989
+ */
4762
4990
  declare type HostContextChangedPayload = {
4763
4991
  /**
4764
4992
  * The new context object
@@ -4772,6 +5000,9 @@ declare type HostContextChangedPayload = {
4772
5000
 
4773
5001
  declare type HostContextChangedReasons = 'updated' | 'reparented';
4774
5002
 
5003
+ /**
5004
+ * @interface
5005
+ */
4775
5006
  declare type HostSpecs = {
4776
5007
  /**
4777
5008
  * True if Aero Glass theme is supported on Windows platforms
@@ -4805,6 +5036,8 @@ declare type HostSpecs = {
4805
5036
 
4806
5037
  /**
4807
5038
  * A hotkey binding.
5039
+ *
5040
+ * @interface
4808
5041
  */
4809
5042
  declare type Hotkey = {
4810
5043
  /**
@@ -4841,6 +5074,8 @@ declare type Identity_4 = OpenFin.Identity;
4841
5074
  *
4842
5075
  * @remarks The `uuid` property refers the application that owns the entity, not to the entity itself.
4843
5076
  * The `name` property identifies the entity itself, and must be unique within the application.
5077
+ *
5078
+ * @interface
4844
5079
  */
4845
5080
  declare type Identity_5 = {
4846
5081
  /**
@@ -4888,6 +5123,9 @@ declare type ImageFormatOptions = {
4888
5123
  quality?: number;
4889
5124
  };
4890
5125
 
5126
+ /**
5127
+ * @interface
5128
+ */
4891
5129
  declare type InfoForIntentOptions<MetadataType = IntentMetadata> = {
4892
5130
  /**
4893
5131
  * Name of the intent to get info for.
@@ -4909,6 +5147,9 @@ declare type InitLayoutOptions = OpenFin.InitLayoutOptions;
4909
5147
 
4910
5148
  declare type InitLayoutOptions_2 = OpenFin.InitLayoutOptions;
4911
5149
 
5150
+ /**
5151
+ * @interface
5152
+ */
4912
5153
  declare type InitLayoutOptions_3 = {
4913
5154
  /**
4914
5155
  * The id attribute of the container where the window's Layout should be initialized. If not provided
@@ -4917,6 +5158,9 @@ declare type InitLayoutOptions_3 = {
4917
5158
  containerId?: string;
4918
5159
  };
4919
5160
 
5161
+ /**
5162
+ * @interface
5163
+ */
4920
5164
  declare type InitPlatformOptions = {
4921
5165
  /**
4922
5166
  * A callback function or an array of constructor callbacks that can be used to extend or replace default Provider behavior.
@@ -4944,12 +5188,18 @@ declare type InputEvent_2 = {
4944
5188
  command?: string;
4945
5189
  };
4946
5190
 
5191
+ /**
5192
+ * @interface
5193
+ */
4947
5194
  declare type InstallationInfo = {
4948
5195
  cachedManifest: any;
4949
5196
  };
4950
5197
 
4951
5198
  declare type InstalledApps = OpenFin.InstalledApps;
4952
5199
 
5200
+ /**
5201
+ * @interface
5202
+ */
4953
5203
  declare type InstalledApps_2 = {
4954
5204
  [key: string]: InstallationInfo;
4955
5205
  };
@@ -4969,8 +5219,17 @@ declare type Intent<MetadataType = IntentMetadata> = {
4969
5219
  metadata?: MetadataType;
4970
5220
  };
4971
5221
 
5222
+ /**
5223
+ * Subscription function for registerIntentHandler.
5224
+ */
4972
5225
  declare type IntentHandler = (intent: Intent) => void;
4973
5226
 
5227
+ /**
5228
+ * The type used to describe an intent within the platform.
5229
+ */
5230
+ /**
5231
+ * @interface
5232
+ */
4974
5233
  declare type IntentMetadata<TargetType = any> = {
4975
5234
  target?: TargetType;
4976
5235
  resultType?: string;
@@ -5086,10 +5345,11 @@ declare type InternalConnectConfig = ExistingConnectConfig | NewConnectConfig;
5086
5345
 
5087
5346
  /**
5088
5347
  * Define whether to enable interop action logging.
5348
+ *
5089
5349
  */
5090
- declare interface InteropActionLoggingOption {
5350
+ declare type InteropActionLoggingOption = {
5091
5351
  enabled: boolean;
5092
- }
5352
+ };
5093
5353
 
5094
5354
  /**
5095
5355
  * {@link https://developers.openfin.co/of-docs/docs/enable-color-linking}
@@ -5755,12 +6015,18 @@ declare class InteropBroker extends Base {
5755
6015
  isActionAuthorized(_action: string, _payload: any, _identity: OpenFin.ClientIdentity): Promise<boolean> | boolean;
5756
6016
  }
5757
6017
 
6018
+ /**
6019
+ * @interface
6020
+ */
5758
6021
  declare type InteropBrokerDisconnectionEvent = {
5759
6022
  type: string;
5760
6023
  topic: string;
5761
6024
  brokerName: string;
5762
6025
  };
5763
6026
 
6027
+ /**
6028
+ * @interface
6029
+ */
5764
6030
  declare type InteropBrokerOptions = {
5765
6031
  contextGroups?: ContextGroupInfo;
5766
6032
  logging?: InteropLoggingOptions;
@@ -6263,8 +6529,17 @@ declare class InteropClient extends Base {
6263
6529
  static ferryFdc3Call(interopClient: OpenFin.InteropClient, action: string, payload?: any): Promise<any>;
6264
6530
  }
6265
6531
 
6532
+ /**
6533
+ * @interface
6534
+ */
6266
6535
  declare type InteropClientOnDisconnectionListener = (InteropBrokerDisconnectionEvent: InteropBrokerDisconnectionEvent) => any;
6267
6536
 
6537
+ /**
6538
+ * Information relevant to the Interop Broker.
6539
+ */
6540
+ /**
6541
+ * @interface
6542
+ */
6268
6543
  declare type InteropConfig = {
6269
6544
  /**
6270
6545
  * Context Group for the client. (green, yellow, red, etc.).
@@ -6278,6 +6553,9 @@ declare type InteropConfig = {
6278
6553
 
6279
6554
  declare type InteropLoggingActions = 'beforeAction' | 'afterAction';
6280
6555
 
6556
+ /**
6557
+ * @interface
6558
+ */
6281
6559
  declare type InteropLoggingOptions = Record<InteropLoggingActions, InteropActionLoggingOption>;
6282
6560
 
6283
6561
  /**
@@ -6332,6 +6610,9 @@ declare class InteropModule extends Base {
6332
6610
  connectSync(name: string, interopConfig?: OpenFin.InteropConfig): InteropClient;
6333
6611
  }
6334
6612
 
6613
+ /**
6614
+ * @interface
6615
+ */
6335
6616
  declare type JumpListCategory = {
6336
6617
  /**
6337
6618
  * The display title for the category.
@@ -6348,10 +6629,16 @@ declare type JumpListCategory = {
6348
6629
 
6349
6630
  declare type JumpListItem = JumpListTask | JumpListSeparator;
6350
6631
 
6632
+ /**
6633
+ * @interface
6634
+ */
6351
6635
  declare type JumpListSeparator = {
6352
6636
  type: 'separator';
6353
6637
  };
6354
6638
 
6639
+ /**
6640
+ * @interface
6641
+ */
6355
6642
  declare type JumpListTask = {
6356
6643
  type: 'task';
6357
6644
  /**
@@ -6445,15 +6732,19 @@ export declare function launch(config: ConnectConfig): Promise<number>;
6445
6732
  */
6446
6733
  declare type LaunchEmitter = TypedEventEmitter<AppVersionEvent>;
6447
6734
 
6448
- declare type LaunchExternalProcessListener = {
6449
- (code: ExitCode): void;
6450
- };
6735
+ declare type LaunchExternalProcessListener = (code: ExitCode) => void;
6451
6736
 
6737
+ /**
6738
+ * @interface
6739
+ */
6452
6740
  declare type LaunchExternalProcessRule = {
6453
6741
  behavior: 'allow' | 'block';
6454
6742
  match: string[];
6455
6743
  };
6456
6744
 
6745
+ /**
6746
+ * @interface
6747
+ */
6457
6748
  declare type LaunchIntoPlatformPayload = {
6458
6749
  manifest: any;
6459
6750
  };
@@ -6736,14 +7027,26 @@ declare class Layout extends Base {
6736
7027
  applyPreset: (options: PresetLayoutOptions) => Promise<void>;
6737
7028
  }
6738
7029
 
6739
- declare interface LayoutColumn extends LayoutItemConfig {
7030
+ /**
7031
+ * @interface
7032
+ */
7033
+ declare type LayoutColumn = LayoutItemConfig & {
6740
7034
  type: 'column';
6741
- }
7035
+ };
6742
7036
 
6743
- declare interface LayoutComponent extends LayoutItemConfig {
7037
+ /**
7038
+ * @interface
7039
+ */
7040
+ declare type LayoutComponent = LayoutItemConfig & {
7041
+ /**
7042
+ * Only a component type will have this property and it should be set to view.
7043
+ */
6744
7044
  componentName: 'view';
7045
+ /**
7046
+ * Only a component type will have this property and it represents the view options of a given component.
7047
+ */
6745
7048
  componentState?: Partial<ViewCreationOptions>;
6746
- }
7049
+ };
6747
7050
 
6748
7051
  declare type LayoutContent = Array<LayoutItemConfig | LayoutRow | LayoutColumn | LayoutComponent>;
6749
7052
 
@@ -6761,6 +7064,9 @@ declare type LayoutEntitiesClient = ApiClient<LayoutEntitiesController>;
6761
7064
 
6762
7065
  /* Excluded from this release type: LayoutEntitiesController */
6763
7066
 
7067
+ /**
7068
+ * @interface
7069
+ */
6764
7070
  declare type LayoutEntityDefinition<TLayoutEntityType extends LayoutEntityTypes = LayoutEntityTypes> = {
6765
7071
  type: TLayoutEntityType;
6766
7072
  entityId: string;
@@ -6780,9 +7086,11 @@ declare type LayoutInitializedEvent = NamedEvent & {
6780
7086
  };
6781
7087
 
6782
7088
  /**
6783
- * Represents the arrangement of Views within a Platform window's Layout. We do not recommend trying
7089
+ * Represents the arrangement of Views within a Platform window's Layout. We do not recommend trying
6784
7090
  * to build Layouts or LayoutItems by hand and instead use calls such as {@link Platform#getSnapshot getSnapshot} or our
6785
7091
  * {@link https://openfin.github.io/golden-prototype/config-gen Layout Config Generation Tool }.
7092
+ *
7093
+ * @interface
6786
7094
  */
6787
7095
  declare type LayoutItemConfig = {
6788
7096
  /**
@@ -7003,6 +7311,9 @@ declare type LayoutModule_2 = OpenFin.Fin['Platform']['Layout'];
7003
7311
 
7004
7312
  /* Excluded from this release type: LayoutNode */
7005
7313
 
7314
+ /**
7315
+ * @interface
7316
+ */
7006
7317
  declare type LayoutOptions = {
7007
7318
  /**
7008
7319
  * Represents a potential ways to customize behavior of your Layout
@@ -7044,6 +7355,11 @@ declare type LayoutOptions = {
7044
7355
  * (not to be confused with close button on every tab).
7045
7356
  */
7046
7357
  showCloseIcon?: boolean;
7358
+ /**
7359
+ * @defaultValue false
7360
+ *
7361
+ * Limits the area to which tabs can be dragged. If true, stack headers are the only areas where tabs can be dropped.
7362
+ */
7047
7363
  constrainDragToHeaders?: boolean;
7048
7364
  /**
7049
7365
  * @defaultValue true
@@ -7072,6 +7388,11 @@ declare type LayoutOptions = {
7072
7388
  */
7073
7389
  preventDragIn?: boolean;
7074
7390
  };
7391
+ /**
7392
+ * Content of the layout. There can only be one top-level LayoutItem in the content array.
7393
+ * We do not recommend trying to build Layouts or LayoutItems by hand and instead use calls such as {@link Platform#getSnapshot getSnapshot} or our
7394
+ * {@link https://openfin.github.io/golden-prototype/config-gen Layout Config Generation Tool }.
7395
+ */
7075
7396
  content?: LayoutContent;
7076
7397
  dimensions?: {
7077
7398
  borderWidth?: number;
@@ -7083,6 +7404,9 @@ declare type LayoutOptions = {
7083
7404
 
7084
7405
  declare type LayoutPosition = 'top' | 'bottom' | 'left' | 'right';
7085
7406
 
7407
+ /**
7408
+ * @interface
7409
+ */
7086
7410
  declare type LayoutPresetType = 'columns' | 'grid' | 'rows' | 'tabs';
7087
7411
 
7088
7412
  /**
@@ -7096,10 +7420,16 @@ declare type LayoutReadyEvent = NamedEvent & {
7096
7420
  })[];
7097
7421
  };
7098
7422
 
7099
- declare interface LayoutRow extends LayoutItemConfig {
7423
+ /**
7424
+ * @interface
7425
+ */
7426
+ declare type LayoutRow = LayoutItemConfig & {
7100
7427
  type: 'row';
7101
- }
7428
+ };
7102
7429
 
7430
+ /**
7431
+ * @interface
7432
+ */
7103
7433
  declare type LegacyWinOptionsInAppOptions = Pick<WindowCreationOptions, 'accelerator' | 'alwaysOnTop' | 'api' | 'aspectRatio' | 'autoplayPolicy' | 'autoShow' | 'backgroundColor' | 'contentNavigation' | 'contextMenu' | 'cornerRounding' | 'customData' | 'customRequestHeaders' | 'defaultCentered' | 'defaultHeight' | 'defaultLeft' | 'defaultTop' | 'defaultWidth' | 'frame' | 'hideOnClose' | 'icon' | 'maxHeight' | 'maximizable' | 'maxWidth' | 'minHeight' | 'minimizable' | 'minWidth' | 'opacity' | 'preloadScripts' | 'resizable' | 'resizeRegion' | 'saveWindowState' | 'ignoreSavedWindowState' | 'shadow' | 'showTaskbarIcon' | 'smallWindow' | 'state' | 'taskbarIconGroup' | 'waitForPageLoad' | '_internalWorkspaceData'>;
7104
7434
 
7105
7435
  declare type Listener<T extends {
@@ -7108,6 +7438,9 @@ declare type Listener<T extends {
7108
7438
 
7109
7439
  declare type LogInfo = OpenFin.LogInfo;
7110
7440
 
7441
+ /**
7442
+ * @interface
7443
+ */
7111
7444
  declare type LogInfo_2 = {
7112
7445
  /**
7113
7446
  * The filename of the log
@@ -7136,6 +7469,9 @@ declare type LogLevel = OpenFin.LogLevel;
7136
7469
  */
7137
7470
  declare type LogLevel_2 = 'verbose' | 'info' | 'warning' | 'error' | 'fatal';
7138
7471
 
7472
+ /**
7473
+ * @interface
7474
+ */
7139
7475
  declare type Manifest = {
7140
7476
  appAssets?: {
7141
7477
  alias: string;
@@ -7201,6 +7537,9 @@ declare type ManifestChangedEvent = IdentityEvent & {
7201
7537
  type: 'manifest-changed';
7202
7538
  };
7203
7539
 
7540
+ /**
7541
+ * @interface
7542
+ */
7204
7543
  declare type ManifestInfo = {
7205
7544
  /**
7206
7545
  * The uuid of the application.
@@ -7214,8 +7553,13 @@ declare type ManifestInfo = {
7214
7553
 
7215
7554
  /**
7216
7555
  * Margins configuration for printing.
7556
+ *
7557
+ * @interface
7217
7558
  */
7218
7559
  declare type Margins = {
7560
+ /**
7561
+ * The margin type. If `custom` is chosen, you will also need to specify top, bottom, left, and right.
7562
+ */
7219
7563
  marginType?: 'default' | 'none' | 'printableArea' | 'custom';
7220
7564
  /**
7221
7565
  * The top margin of the printed webpage, in pixels.
@@ -7245,17 +7589,36 @@ declare type MaximizedEvent = NamedEvent & {
7245
7589
  type: 'maximized';
7246
7590
  };
7247
7591
 
7592
+ /**
7593
+ * Type of the OpenFin `me` API handle, which provides access to the OpenFin representation of the current
7594
+ * code context (usually a document such as a {@link OpenFin.View} or {@link OpenFin.Window}), as well as
7595
+ * to the current `Interop` context.
7596
+ *
7597
+ * Useful for debugging in the devtools console, where this will intelligently type itself based
7598
+ * on the context in which the devtools panel was opened.
7599
+ */
7248
7600
  declare type Me<MeType extends EntityType_3> = OpenFin.EntityInfo & (MeType extends 'view' ? EntityTypeHelpers<'view'> & OpenFin.View & WithInterop : MeType extends 'window' ? EntityTypeHelpers<'window'> & OpenFin.Window & WithInterop : MeType extends 'iframe' ? EntityTypeHelpers<'iframe'> & OpenFin.Frame & WithInterop : MeType extends 'external connection' ? EntityTypeHelpers<'external connection'> & OpenFin.ExternalApplication & WithInterop : EntityTypeHelpers<MeType> & WithInterop) & {
7249
7601
  isOpenFin: boolean;
7250
7602
  };
7251
7603
 
7252
- declare type MenuItemTemplate<T extends unknown = unknown> = {
7604
+ /**
7605
+ * @interface
7606
+ *
7607
+ * @typeParam Data User-defined shape for data returned upon menu item click. Should be a
7608
+ * [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
7609
+ * of all possible data shapes for the entire menu, and the click handler should process
7610
+ * these with a "reducer" pattern.
7611
+ */
7612
+ declare type MenuItemTemplate<Data extends unknown = unknown> = {
7253
7613
  /**
7254
7614
  * Can be `normal`, `separator`, `submenu`, or `checkbox`.
7255
7615
  * Defaults to 'normal' unless a 'submenu' key exists
7256
7616
  */
7257
7617
  type?: 'normal' | 'separator' | 'submenu' | 'checkbox';
7258
7618
  role?: 'cut' | 'copy' | 'paste' | 'toggleDevTools' | 'reload';
7619
+ /**
7620
+ * The text to show on the menu item. Should be left undefined for type: 'separator'
7621
+ */
7259
7622
  label?: string;
7260
7623
  /**
7261
7624
  * If false, the menu item will be greyed out and unclickable.
@@ -7273,18 +7636,26 @@ declare type MenuItemTemplate<T extends unknown = unknown> = {
7273
7636
  * Should be specified for `submenu` type menu items. If `submenu` is specified,
7274
7637
  * the `type: 'submenu'` can be omitted.
7275
7638
  */
7276
- submenu?: MenuItemTemplate<T>[];
7639
+ submenu?: MenuItemTemplate<Data>[];
7277
7640
  /**
7278
7641
  * Data to be returned if the user selects the element. Must be serializable
7279
7642
  */
7280
- data?: T;
7643
+ data?: Data;
7281
7644
  /**
7282
7645
  * Image Data URI with image dimensions inferred from the encoded string
7283
7646
  */
7284
7647
  icon?: string;
7285
7648
  };
7286
7649
 
7287
- declare type MenuResult<T extends unknown = unknown> = ClickedMenuResult<T> | ClosedMenuResult;
7650
+ /**
7651
+ * Whether the user clicked on a menu item or the menu was closed (user clicked elsewhere).
7652
+ *
7653
+ * @typeParam Data User-defined shape for data returned upon menu item click. Should be a
7654
+ * [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
7655
+ * of all possible data shapes for the entire menu, and the click handler should process
7656
+ * these with a "reducer" pattern.
7657
+ */
7658
+ declare type MenuResult<Data extends unknown = unknown> = ClickedMenuResult<Data> | ClosedMenuResult;
7288
7659
 
7289
7660
  declare interface Message<T> {
7290
7661
  action: string;
@@ -7318,6 +7689,9 @@ declare type MinimizedEvent = NamedEvent & {
7318
7689
  type: 'minimized';
7319
7690
  };
7320
7691
 
7692
+ /**
7693
+ * @interface
7694
+ */
7321
7695
  declare type MonitorDetails = {
7322
7696
  /**
7323
7697
  * The available DIP scale coordinates.
@@ -7364,6 +7738,9 @@ declare type MonitorEvent = OpenFin.MonitorInfo & {
7364
7738
  type: 'monitor-info-changed';
7365
7739
  };
7366
7740
 
7741
+ /**
7742
+ * @interface
7743
+ */
7367
7744
  declare type MonitorInfo = {
7368
7745
  /**
7369
7746
  * The device scale factor.
@@ -7383,6 +7760,9 @@ declare type MonitorInfo = {
7383
7760
  virtualScreen: DipRect;
7384
7761
  };
7385
7762
 
7763
+ /**
7764
+ * @interface
7765
+ */
7386
7766
  declare type MutableViewOptions = {
7387
7767
  autoResize: AutoResizeOptions;
7388
7768
  /**
@@ -7464,6 +7844,8 @@ declare type MutableViewOptions = {
7464
7844
 
7465
7845
  /**
7466
7846
  * Window options that can be changed after window creation.
7847
+ *
7848
+ * @interface
7467
7849
  */
7468
7850
  declare type MutableWindowOptions = {
7469
7851
  /**
@@ -7712,6 +8094,9 @@ declare type NamedEvent = IdentityEvent & {
7712
8094
  name: string;
7713
8095
  };
7714
8096
 
8097
+ /**
8098
+ * @interface
8099
+ */
7715
8100
  declare type NativeWindowIntegrationProviderAuthorization = {
7716
8101
  authorizedUuid: string;
7717
8102
  };
@@ -7726,6 +8111,9 @@ declare type NavigationRejectedEvent = NamedEvent & {
7726
8111
  url: string;
7727
8112
  };
7728
8113
 
8114
+ /**
8115
+ * @interface
8116
+ */
7729
8117
  declare type NavigationRules = {
7730
8118
  /** @deprecated Use allowlist property instead. */
7731
8119
  whitelist?: string[];
@@ -8136,6 +8524,9 @@ declare type PerformanceReportEvent = Performance & NamedEvent & {
8136
8524
  type: 'performance-report';
8137
8525
  };
8138
8526
 
8527
+ /**
8528
+ * @interface
8529
+ */
8139
8530
  declare type Permissions_2 = {
8140
8531
  Application?: Partial<ApplicationPermissions>;
8141
8532
  System?: Partial<SystemPermissions>;
@@ -8965,9 +9356,17 @@ declare type PlatformOptions = ApplicationCreationOptions & {
8965
9356
  disableDefaultCommands?: boolean;
8966
9357
  /**
8967
9358
  * Strategy to assign views to process affinity by domain.
9359
+ * * `same` - The views in the same domain will have same renderer processes.
9360
+ * * `different` - The views in the same domain will have their own renderer processes.
8968
9361
  */
8969
9362
  viewProcessAffinityStrategy?: ProcessAffinityStrategy;
9363
+ /**
9364
+ * The provider url.
9365
+ */
8970
9366
  providerUrl?: string;
9367
+ /**
9368
+ * The permissions for secured APIs.
9369
+ */
8971
9370
  permissions?: Partial<Permissions_2>;
8972
9371
  };
8973
9372
 
@@ -9467,6 +9866,9 @@ declare type PlatformSnapshotAppliedEvent = BaseEvent & {
9467
9866
  type: 'platform-snapshot-applied';
9468
9867
  };
9469
9868
 
9869
+ /**
9870
+ * @interface
9871
+ */
9470
9872
  declare type PlatformViewCreationOptions = Partial<ViewOptions>;
9471
9873
 
9472
9874
  /**
@@ -9493,6 +9895,9 @@ declare type PlatformWindowOptions = WindowCreationOptions & {
9493
9895
  stylesheetUrl: string;
9494
9896
  };
9495
9897
 
9898
+ /**
9899
+ * @interface
9900
+ */
9496
9901
  declare type Point = {
9497
9902
  /**
9498
9903
  * The mouse x position
@@ -9504,6 +9909,9 @@ declare type Point = {
9504
9909
  y: number;
9505
9910
  };
9506
9911
 
9912
+ /**
9913
+ * @interface
9914
+ */
9507
9915
  declare type PointTopLeft = {
9508
9916
  /**
9509
9917
  * The mouse top position in virtual screen coordinates
@@ -9523,8 +9931,10 @@ declare type PopupInteraction = 'clicked' | 'dismissed';
9523
9931
 
9524
9932
  /**
9525
9933
  * Popup window options.
9934
+ *
9935
+ * @interface
9526
9936
  */
9527
- declare interface PopupOptions {
9937
+ declare type PopupOptions = {
9528
9938
  /**
9529
9939
  * Window creation options when using `showPopupWindow` to create a new window.
9530
9940
  */
@@ -9598,14 +10008,15 @@ declare interface PopupOptions {
9598
10008
  * <br>Note: If this is defined, `showPopupWindow` will not return a `PopupResult`.
9599
10009
  */
9600
10010
  onPopupResult?: (payload: PopupResult) => any;
9601
- }
10011
+ };
9602
10012
 
9603
10013
  /**
9604
10014
  * The Popup result.
9605
10015
  *
9606
10016
  * @typeParam T - Type of data the Popup result contains
10017
+ * @interface
9607
10018
  */
9608
- declare interface PopupResult<T = any> {
10019
+ declare type PopupResult<T = any> = {
9609
10020
  /**
9610
10021
  * `name` and `uuid` of the popup window that called dispatched this result.
9611
10022
  */
@@ -9625,7 +10036,7 @@ declare interface PopupResult<T = any> {
9625
10036
  * The last dispatch result.
9626
10037
  */
9627
10038
  lastDispatchResult?: PopupResult;
9628
- }
10039
+ };
9629
10040
 
9630
10041
  declare type PopupResultBehavior = 'none' | PopupBaseBehavior;
9631
10042
 
@@ -9654,14 +10065,17 @@ declare type Position = TransitionBase & {
9654
10065
  fin.me.setBounds({top: 50, left: 50, width: 200, height: 200}, {skipRestore: true})
9655
10066
  ```
9656
10067
  */
9657
- declare interface PositioningOptions {
10068
+ /**
10069
+ * @interface
10070
+ */
10071
+ declare type PositioningOptions = {
9658
10072
  /**
9659
10073
  * Windows Only.
9660
10074
  * If set to true, will not restore a maximized window before setting the bounds.
9661
10075
  * This will have the effect of the maximized window staying maximized and not immediately taking this new position.
9662
10076
  */
9663
10077
  skipRestore?: boolean;
9664
- }
10078
+ };
9665
10079
 
9666
10080
  /**
9667
10081
  * Context menu item with an implementation provided by OpenFin.
@@ -9670,6 +10084,8 @@ declare type PrebuiltContextMenuItem = 'separator' | 'undo' | 'redo' | 'cut' | '
9670
10084
 
9671
10085
  /**
9672
10086
  * A script that is run before page load.
10087
+ *
10088
+ * @interface
9673
10089
  */
9674
10090
  declare type PreloadScript = {
9675
10091
  /**
@@ -9730,6 +10146,9 @@ declare type PreloadScriptsStateChangingEvent = PreloadScriptsStateChangeEvent &
9730
10146
 
9731
10147
  declare type PresetLayoutOptions = OpenFin.PresetLayoutOptions;
9732
10148
 
10149
+ /**
10150
+ * @interface
10151
+ */
9733
10152
  declare type PresetLayoutOptions_2 = {
9734
10153
  /**
9735
10154
  * Which preset layout arrangement to use.
@@ -9740,23 +10159,44 @@ declare type PresetLayoutOptions_2 = {
9740
10159
 
9741
10160
  declare type PrinterInfo = OpenFin.PrinterInfo;
9742
10161
 
10162
+ /**
10163
+ * @interface
10164
+ */
9743
10165
  declare type PrinterInfo_2 = {
10166
+ /**
10167
+ * Printer Name
10168
+ */
9744
10169
  name: string;
10170
+ /**
10171
+ * Printer Description
10172
+ */
9745
10173
  description: string;
10174
+ /**
10175
+ * Printer Status
10176
+ */
9746
10177
  status: number;
10178
+ /**
10179
+ * Indicates that system's default printer.
10180
+ */
9747
10181
  isDefault: boolean;
9748
10182
  };
9749
10183
 
9750
10184
  /**
9751
10185
  * Options for printing a webpage in OpenFin.
10186
+ *
10187
+ * @interface
9752
10188
  */
9753
10189
  declare type PrintOptions = {
9754
10190
  content?: 'self';
9755
10191
  /**
10192
+ * @defaultValue false
10193
+ *
9756
10194
  * Disables prompting the user for print settings.
9757
10195
  */
9758
10196
  silent?: boolean;
9759
10197
  /**
10198
+ * @defaultValue false
10199
+ *
9760
10200
  * Includes the webpage background color and image when printing.
9761
10201
  */
9762
10202
  printBackground?: boolean;
@@ -9765,6 +10205,8 @@ declare type PrintOptions = {
9765
10205
  */
9766
10206
  deviceName?: string;
9767
10207
  /**
10208
+ * @defaultValue true
10209
+ *
9768
10210
  * Prints in full color (greyscale otherwise).
9769
10211
  */
9770
10212
  color?: boolean;
@@ -9773,6 +10215,8 @@ declare type PrintOptions = {
9773
10215
  */
9774
10216
  margins?: Margins;
9775
10217
  /**
10218
+ * @defaultValue true
10219
+ *
9776
10220
  * Prints in landscape mode (portrait otherwise).
9777
10221
  */
9778
10222
  landscape?: boolean;
@@ -9814,6 +10258,9 @@ declare type PrintOptions = {
9814
10258
  */
9815
10259
  declare type ProcessAffinityStrategy = 'same' | 'different';
9816
10260
 
10261
+ /**
10262
+ * @interface
10263
+ */
9817
10264
  declare type ProcessDetails = {
9818
10265
  /**
9819
10266
  * The percentage of total CPU usage.
@@ -9861,8 +10308,10 @@ declare type ProcessDetails = {
9861
10308
 
9862
10309
  /**
9863
10310
  * Process logging options
10311
+ *
10312
+ * @interface
9864
10313
  */
9865
- declare interface ProcessLoggingOptions {
10314
+ declare type ProcessLoggingOptions = {
9866
10315
  /**
9867
10316
  * Periodic Logging Interval (in seconds)
9868
10317
  */
@@ -9880,7 +10329,7 @@ declare interface ProcessLoggingOptions {
9880
10329
  */
9881
10330
  entries?: number;
9882
10331
  };
9883
- }
10332
+ };
9884
10333
 
9885
10334
  /**
9886
10335
  * A propagated Application event.
@@ -10187,6 +10636,9 @@ declare type ProviderIdentity_7 = Identity_5 & {
10187
10636
 
10188
10637
  declare type ProxyConfig = OpenFin.ProxyConfig;
10189
10638
 
10639
+ /**
10640
+ * @interface
10641
+ */
10190
10642
  declare type ProxyConfig_2 = {
10191
10643
  /**
10192
10644
  * The configured proxy address.
@@ -10201,11 +10653,17 @@ declare type ProxyConfig_2 = {
10201
10653
 
10202
10654
  declare type ProxyInfo = OpenFin.ProxyInfo;
10203
10655
 
10656
+ /**
10657
+ * @interface
10658
+ */
10204
10659
  declare type ProxyInfo_2 = {
10205
10660
  config: ProxyConfig_2;
10206
10661
  system: ProxySystemInfo;
10207
10662
  };
10208
10663
 
10664
+ /**
10665
+ * @interface
10666
+ */
10209
10667
  declare type ProxySystemInfo = {
10210
10668
  /**
10211
10669
  * The auto configuration url.
@@ -10225,6 +10683,9 @@ declare type ProxySystemInfo = {
10225
10683
  proxy: string;
10226
10684
  };
10227
10685
 
10686
+ /**
10687
+ * @interface
10688
+ */
10228
10689
  declare type QueryPermissionResult = {
10229
10690
  /**
10230
10691
  * The full name of a secured API.
@@ -10250,6 +10711,8 @@ declare type ReadImageClipboardRequest = BaseClipboardRequest & ImageFormatOptio
10250
10711
  * A rectangular area on the screen.
10251
10712
  *
10252
10713
  * @remarks Origin is top-left. All numbers are in pixels.
10714
+ *
10715
+ * @interface
10253
10716
  */
10254
10717
  declare type Rectangle = {
10255
10718
  /**
@@ -10270,6 +10733,9 @@ declare type Rectangle = {
10270
10733
  height: number;
10271
10734
  };
10272
10735
 
10736
+ /**
10737
+ * @interface
10738
+ */
10273
10739
  declare type RectangleByEdgePositions = {
10274
10740
  top: number;
10275
10741
  left: number;
@@ -10285,6 +10751,9 @@ declare type RegisteredEvent = BaseEvent & {
10285
10751
  type: 'registered';
10286
10752
  };
10287
10753
 
10754
+ /**
10755
+ * @interface
10756
+ */
10288
10757
  declare type RegisterUsageData = {
10289
10758
  data: unknown;
10290
10759
  type: string;
@@ -10292,6 +10761,9 @@ declare type RegisterUsageData = {
10292
10761
 
10293
10762
  declare type RegistryInfo = OpenFin.RegistryInfo;
10294
10763
 
10764
+ /**
10765
+ * @interface
10766
+ */
10295
10767
  declare type RegistryInfo_2 = {
10296
10768
  data: any;
10297
10769
  rootKey: string;
@@ -10313,6 +10785,9 @@ declare interface RemoteConfig extends ExistingConnectConfig {
10313
10785
  token: string;
10314
10786
  }
10315
10787
 
10788
+ /**
10789
+ * @interface
10790
+ */
10316
10791
  declare type ReplaceLayoutOpts = {
10317
10792
  /**
10318
10793
  * Layout config to be applied.
@@ -10320,6 +10795,9 @@ declare type ReplaceLayoutOpts = {
10320
10795
  layout: LayoutOptions;
10321
10796
  };
10322
10797
 
10798
+ /**
10799
+ * @interface
10800
+ */
10323
10801
  declare type ReplaceLayoutPayload = {
10324
10802
  /**
10325
10803
  * Object containing the layout to be applied.
@@ -10331,6 +10809,9 @@ declare type ReplaceLayoutPayload = {
10331
10809
  target: Identity_5;
10332
10810
  };
10333
10811
 
10812
+ /**
10813
+ * @interface
10814
+ */
10334
10815
  declare type ReplaceViewPayload = {
10335
10816
  opts: {
10336
10817
  viewToReplace: Identity_5;
@@ -10341,6 +10822,8 @@ declare type ReplaceViewPayload = {
10341
10822
 
10342
10823
  /**
10343
10824
  * Defines a region in pixels that will respond to user mouse interaction for resizing a frameless window.
10825
+ *
10826
+ * @interface
10344
10827
  */
10345
10828
  declare type ResizeRegion = {
10346
10829
  /**
@@ -10420,6 +10903,9 @@ declare type RespondingEvent = IdentityEvent & {
10420
10903
 
10421
10904
  declare type ResultBehavior = 'close' | 'hide' | 'none';
10422
10905
 
10906
+ /**
10907
+ * @interface
10908
+ */
10423
10909
  declare type RGB = {
10424
10910
  red: number;
10425
10911
  blue: number;
@@ -10494,6 +10980,8 @@ declare type RuntimeConfig = {
10494
10980
 
10495
10981
  /**
10496
10982
  * The options object required by the downloadRuntime function.
10983
+ *
10984
+ * @interface
10497
10985
  */
10498
10986
  declare type RuntimeDownloadOptions = {
10499
10987
  /**
@@ -10502,6 +10990,9 @@ declare type RuntimeDownloadOptions = {
10502
10990
  version: string;
10503
10991
  };
10504
10992
 
10993
+ /**
10994
+ * @interface
10995
+ */
10505
10996
  declare type RuntimeDownloadProgress = {
10506
10997
  /**
10507
10998
  * @property { string } alias The name of the asset
@@ -10515,6 +11006,9 @@ declare type RuntimeErrorPayload = {
10515
11006
  error?: ErrorPlainObject;
10516
11007
  };
10517
11008
 
11009
+ /**
11010
+ * @interface
11011
+ */
10518
11012
  declare type RuntimeInfo = {
10519
11013
  /**
10520
11014
  * The runtime build architecture.
@@ -10545,6 +11039,9 @@ declare type RuntimeInfo = {
10545
11039
  devtoolsPort?: number;
10546
11040
  };
10547
11041
 
11042
+ /**
11043
+ * @interface
11044
+ */
10548
11045
  declare type RVMInfo = {
10549
11046
  /**
10550
11047
  * The name of action: "get-rvm-info".
@@ -10572,6 +11069,9 @@ declare type RVMInfo = {
10572
11069
  'working-dir': string;
10573
11070
  };
10574
11071
 
11072
+ /**
11073
+ * @interface
11074
+ */
10575
11075
  declare type RvmLaunchOptions = {
10576
11076
  /**
10577
11077
  * True if no UI when launching
@@ -10588,6 +11088,9 @@ declare type RvmLaunchOptions = {
10588
11088
  subscribe?: (launch: LaunchEmitter) => void;
10589
11089
  };
10590
11090
 
11091
+ /**
11092
+ * @interface
11093
+ */
10591
11094
  declare type ScreenshotPrintOptions = {
10592
11095
  content: 'screenshot';
10593
11096
  };
@@ -10596,6 +11099,9 @@ declare type SendActionResponse<T extends keyof ProtocolMap> = Message<{
10596
11099
  data: ProtocolMap[T]['response'];
10597
11100
  } & ProtocolMap[T]['specialResponse']>;
10598
11101
 
11102
+ /**
11103
+ * @interface
11104
+ */
10599
11105
  declare type SendApplicationLogResponse = {
10600
11106
  logId: string;
10601
11107
  };
@@ -10610,6 +11116,9 @@ declare type ServiceConfig = {
10610
11116
  manifestUrl: string;
10611
11117
  };
10612
11118
 
11119
+ /**
11120
+ * @interface
11121
+ */
10613
11122
  declare type ServiceConfiguration = {
10614
11123
  config: object;
10615
11124
  /**
@@ -10618,6 +11127,9 @@ declare type ServiceConfiguration = {
10618
11127
  name: string;
10619
11128
  };
10620
11129
 
11130
+ /**
11131
+ * @interface
11132
+ */
10621
11133
  declare type ServiceIdentifier = {
10622
11134
  /**
10623
11135
  * The name of the service.
@@ -10634,15 +11146,41 @@ declare type SessionChangedEvent = {
10634
11146
  reason: 'lock' | 'unlock' | 'remote-connect' | 'remote-disconnect' | 'unknown';
10635
11147
  };
10636
11148
 
11149
+ /**
11150
+ * An instance of a SessionContextGroup
11151
+ */
11152
+ /**
11153
+ * @interface
11154
+ */
10637
11155
  declare type SessionContextGroup = {
11156
+ /**
11157
+ * The SessionContextGroup's id.
11158
+ */
10638
11159
  id: string;
11160
+ /**
11161
+ * A SessionContextGroup instance method for setting a context in the SessionContextGroup.
11162
+ * @param context The Context to be set.
11163
+ */
10639
11164
  setContext: (context: Context) => Promise<void>;
11165
+ /**
11166
+ * A SessionContextGroup instance method for getting the current context of a certain type.
11167
+ * @param type The Context Type to get. If not specified the last contextType set would get used.
11168
+ */
10640
11169
  getCurrentContext: (type?: string) => Promise<Context>;
11170
+ /**
11171
+ * A SessionContextGroup instance method for adding a handler for context change.
11172
+ * @param handler The callback to be invoked. Is invoked when (a) the context changes or (b) immediately after getting created if the context is already set.
11173
+ * @param 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.
11174
+ *
11175
+ */
10641
11176
  addContextHandler: (handler: ContextHandler, contextType?: string) => Promise<{
10642
11177
  unsubscribe: () => void;
10643
11178
  }>;
10644
11179
  };
10645
11180
 
11181
+ /**
11182
+ * @interface
11183
+ */
10646
11184
  declare type SetWindowContextPayload = {
10647
11185
  /**
10648
11186
  * The requested context update.
@@ -10658,11 +11196,23 @@ declare type SetWindowContextPayload = {
10658
11196
  target: Identity_5;
10659
11197
  };
10660
11198
 
11199
+ /**
11200
+ * @interface
11201
+ */
10661
11202
  declare type SharedWorkerInfo = {
11203
+ /**
11204
+ * The unique id of the shared worker.
11205
+ */
10662
11206
  id: string;
11207
+ /**
11208
+ * The url of the shared worker.
11209
+ */
10663
11210
  url: string;
10664
11211
  };
10665
11212
 
11213
+ /**
11214
+ * @interface
11215
+ */
10666
11216
  declare type ShortCutConfig = {
10667
11217
  /**
10668
11218
  * True if application has a shortcut on the desktop.
@@ -10693,14 +11243,34 @@ declare type ShownEvent = BaseViewEvent & {
10693
11243
  type: 'shown';
10694
11244
  };
10695
11245
 
10696
- declare type ShowPopupMenuOptions<T extends unknown = unknown> = {
10697
- template: MenuItemTemplate<T>[];
11246
+ /**
11247
+ * Options for showing a popup menu
11248
+ *
11249
+ * @typeParam Data User-defined shape for data returned upon menu item click. Should be a
11250
+ * [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
11251
+ * of all possible data shapes for the entire menu, and the click handler should process
11252
+ * these with a "reducer" pattern.
11253
+ *
11254
+ * @interface
11255
+ */
11256
+ declare type ShowPopupMenuOptions<Data extends unknown = unknown> = {
11257
+ /**
11258
+ * An array describing the menu to show.
11259
+ */
11260
+ template: MenuItemTemplate<Data>[];
11261
+ /**
11262
+ * The window x coordinate where to show the menu. Defaults to mouse position. If using must also use y.
11263
+ */
10698
11264
  x?: number;
11265
+ /**
11266
+ * The window y coordinate where to show the menu. Defaults to mouse position. If using must also use x
11267
+ */
10699
11268
  y?: number;
10700
11269
  };
10701
11270
 
10702
11271
  /**
10703
11272
  * _Platform Windows Only_. Enables views to be shown when a Platform Window is being resized by the user.
11273
+ *
10704
11274
  * @interface
10705
11275
  */
10706
11276
  declare type ShowViewOnWindowResizeOptions = ViewVisibilityOption & {
@@ -10732,7 +11302,13 @@ declare type Size = TransitionBase & {
10732
11302
  height: number;
10733
11303
  };
10734
11304
 
11305
+ /**
11306
+ * @interface
11307
+ */
10735
11308
  declare type Snapshot = {
11309
+ /**
11310
+ * The array of window options objects
11311
+ */
10736
11312
  windows: WindowCreationOptions[];
10737
11313
  snapshotDetails?: {
10738
11314
  monitorInfo: MonitorInfo;
@@ -10744,6 +11320,9 @@ declare type Snapshot = {
10744
11320
  };
10745
11321
  };
10746
11322
 
11323
+ /**
11324
+ * @interface
11325
+ */
10747
11326
  declare type SnapshotProvider<Snapshot = unknown> = {
10748
11327
  getSnapshot: () => Promise<Snapshot>;
10749
11328
  applySnapshot: (snapshot: Snapshot) => Promise<void>;
@@ -10890,6 +11469,9 @@ declare type StartedEvent = IdentityEvent & {
10890
11469
  type: 'started';
10891
11470
  };
10892
11471
 
11472
+ /**
11473
+ * @interface
11474
+ */
10893
11475
  declare type SubscriptionOptions = {
10894
11476
  /**
10895
11477
  * The event timestamp.
@@ -12382,6 +12964,9 @@ declare namespace SystemEvents {
12382
12964
  */
12383
12965
  declare type SystemEventType = SystemEvent['type'];
12384
12966
 
12967
+ /**
12968
+ * @interface
12969
+ */
12385
12970
  declare type SystemPermissions = {
12386
12971
  getAllExternalWindows: boolean;
12387
12972
  launchExternalProcess: boolean | {
@@ -12409,6 +12994,9 @@ declare type SystemPermissions = {
12409
12994
  };
12410
12995
  };
12411
12996
 
12997
+ /**
12998
+ * @interface
12999
+ */
12412
13000
  declare type SystemProcessInfo = {
12413
13001
  apps: AppProcessInfo[];
12414
13002
  browserProcess: NonAppProcessDetails;
@@ -12637,6 +13225,9 @@ declare type TaskBar = DipScaleRects & {
12637
13225
  rect: RectangleByEdgePositions;
12638
13226
  };
12639
13227
 
13228
+ /**
13229
+ * @interface
13230
+ */
12640
13231
  declare type TerminateExternalRequestType = {
12641
13232
  /**
12642
13233
  * The uuid of the running application.
@@ -12652,6 +13243,9 @@ declare type TerminateExternalRequestType = {
12652
13243
  killTree: boolean;
12653
13244
  };
12654
13245
 
13246
+ /**
13247
+ * @interface
13248
+ */
12655
13249
  declare type Time = {
12656
13250
  /**
12657
13251
  * The number of milliseconds the CPU has spent in user mode.
@@ -12675,14 +13269,28 @@ declare type Time = {
12675
13269
  irq: number;
12676
13270
  };
12677
13271
 
13272
+ /**
13273
+ * @interface
13274
+ */
12678
13275
  declare type Transition = {
13276
+ /**
13277
+ * The Opacity transition
13278
+ */
12679
13279
  opacity?: Opacity;
13280
+ /**
13281
+ * The Position transition
13282
+ */
12680
13283
  position?: Position;
13284
+ /**
13285
+ * The Size transition
13286
+ */
12681
13287
  size?: Size;
12682
13288
  };
12683
13289
 
12684
13290
  /**
12685
13291
  * Base configuration options needed for all types of transitions.
13292
+ *
13293
+ * @interface
12686
13294
  */
12687
13295
  declare type TransitionBase = {
12688
13296
  /**
@@ -12699,6 +13307,8 @@ declare type TransitionBase = {
12699
13307
 
12700
13308
  /**
12701
13309
  * Configuration for transition between windows.
13310
+ *
13311
+ * @interface
12702
13312
  */
12703
13313
  declare type TransitionOptions = {
12704
13314
  /**
@@ -12759,6 +13369,9 @@ declare type TrayIconClickedEvent = IdentityEvent & {
12759
13369
  monitorInfo: any;
12760
13370
  };
12761
13371
 
13372
+ /**
13373
+ * @interface
13374
+ */
12762
13375
  declare type TrayInfo = {
12763
13376
  /**
12764
13377
  * The bound of tray icon in virtual screen pixels.
@@ -12808,9 +13421,14 @@ declare type UnregisteredEvent = BaseEvent & {
12808
13421
 
12809
13422
  /**
12810
13423
  * View options that can be updated after creation.
13424
+ *
13425
+ * @interface
12811
13426
  */
12812
13427
  declare type UpdatableViewOptions = Partial<MutableViewOptions>;
12813
13428
 
13429
+ /**
13430
+ * @interface
13431
+ */
12814
13432
  declare type UpdatableWindowOptions = Partial<MutableWindowOptions>;
12815
13433
 
12816
13434
  /**
@@ -13477,6 +14095,9 @@ declare namespace ViewEvents {
13477
14095
  */
13478
14096
  declare type ViewEventType = ViewEvent['type'];
13479
14097
 
14098
+ /**
14099
+ * @interface
14100
+ */
13480
14101
  declare type ViewInfo = {
13481
14102
  canNavigateBack: boolean;
13482
14103
  canNavigateForward: boolean;
@@ -13611,6 +14232,7 @@ declare class ViewOverlay {
13611
14232
 
13612
14233
  /**
13613
14234
  * Represents the payload shape for Views that are trying to prevent an unload.
14235
+ * @interface
13614
14236
  */
13615
14237
  declare interface ViewsPreventingUnloadPayload {
13616
14238
  /**
@@ -13646,6 +14268,8 @@ declare type ViewState = ViewCreationOptions & {
13646
14268
  };
13647
14269
 
13648
14270
  /**
14271
+ * @interface
14272
+ *
13649
14273
  * The statuses of views specifying which of them are trying to prevent an unload and which are not.
13650
14274
  */
13651
14275
  declare interface ViewStatuses {
@@ -13661,13 +14285,22 @@ declare interface ViewStatuses {
13661
14285
 
13662
14286
  /**
13663
14287
  * Configuration for view visibility settings
14288
+ *
14289
+ * @interface
13664
14290
  */
13665
14291
  declare type ViewVisibilityOption = {
14292
+ /**
14293
+ * @defaultValue false
14294
+ *
14295
+ * Enables or disables showing views when the layout splitter or a tab is being dragged.
14296
+ */
13666
14297
  enabled?: boolean;
13667
14298
  };
13668
14299
 
13669
14300
  /**
13670
14301
  * _Platform Windows Only_. Controls behavior for showing views when they are being resized by the user.
14302
+ *
14303
+ * @interface
13671
14304
  */
13672
14305
  declare type ViewVisibilityOptions = {
13673
14306
  /**
@@ -13690,8 +14323,12 @@ declare type WebContent = View_2 | _Window;
13690
14323
 
13691
14324
  declare class WebContents<T extends BaseEvent> extends EmitterBase<T> {
13692
14325
  identity: OpenFin.Identity;
13693
- entityType: string;
13694
- constructor(wire: Transport, identity: OpenFin.Identity, entityType: string);
14326
+ entityType: 'window' | 'view';
14327
+ /**
14328
+ * @param identity The identity of the {@link OpenFin.WebContentsEvents WebContents}.
14329
+ * @param entityType The type of the {@link OpenFin.WebContentsEvents WebContents}.
14330
+ */
14331
+ constructor(wire: Transport, identity: OpenFin.Identity, entityType: 'window' | 'view');
13695
14332
  /**
13696
14333
  * Gets a base64 encoded image of all or part of the WebContents.
13697
14334
  * @param options Options for the capturePage call.
@@ -16020,7 +16657,10 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
16020
16657
  * Calling this method will close previously opened menus.
16021
16658
  * @experimental
16022
16659
  * @param options
16023
- *
16660
+ * @typeParam Data User-defined shape for data returned upon menu item click. Should be a
16661
+ * [union](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#union-types)
16662
+ * of all possible data shapes for the entire menu, and the click handler should process
16663
+ * these with a "reducer" pattern.
16024
16664
  * @example
16025
16665
  * This could be used to show a drop down menu over views in a platform window:
16026
16666
  * ```js
@@ -16087,7 +16727,7 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
16087
16727
  * })
16088
16728
  * ```
16089
16729
  */
16090
- showPopupMenu<T>(options: OpenFin.ShowPopupMenuOptions<T>): Promise<OpenFin.MenuResult<T>>;
16730
+ showPopupMenu<Data>(options: OpenFin.ShowPopupMenuOptions<Data>): Promise<OpenFin.MenuResult<Data>>;
16091
16731
  /**
16092
16732
  * Closes the window's popup menu, if one exists.
16093
16733
  * @experimental
@@ -16250,6 +16890,9 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
16250
16890
 
16251
16891
  declare type WindowCreationReason = 'tearout' | 'create-view-without-target' | 'api-call' | 'app-creation' | 'restore' | 'apply-snapshot';
16252
16892
 
16893
+ /**
16894
+ * @interface
16895
+ */
16253
16896
  declare type WindowDetail = {
16254
16897
  /**
16255
16898
  * The bottom-most coordinate of the window.
@@ -16380,6 +17023,9 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
16380
17023
  type: 'hotkey';
16381
17024
  };
16382
17025
 
17026
+ /**
17027
+ * @interface
17028
+ */
16383
17029
  declare type WindowInfo = {
16384
17030
  canNavigateBack: boolean;
16385
17031
  canNavigateForward: boolean;
@@ -16495,6 +17141,9 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
16495
17141
  type: 'window-not-responding';
16496
17142
  };
16497
17143
 
17144
+ /**
17145
+ * @interface
17146
+ */
16498
17147
  declare type WindowOptionDiff = {
16499
17148
  [key in keyof WindowOptions]: {
16500
17149
  oldVal: WindowOptions[key];
@@ -16568,6 +17217,9 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
16568
17217
  */
16569
17218
  declare type WindowState = 'maximized' | 'minimized' | 'normal';
16570
17219
 
17220
+ /**
17221
+ * @interface
17222
+ */
16571
17223
  declare type WindowViewsPrintOptions = {
16572
17224
  content: 'views';
16573
17225
  includeSelf?: boolean;
@@ -16597,16 +17249,16 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
16597
17249
  positioningOptions?: OpenFin.PositioningOptions;
16598
17250
  };
16599
17251
 
16600
- declare type WorkspacePlatformOptions = {
16601
- /** Leaving this as any for now until we figure out what the shape should look like in Workspace */
16602
- [key: string]: any;
16603
- };
17252
+ /* Excluded from this release type: WorkspacePlatformOptions */
16604
17253
 
16605
17254
  /**
16606
17255
  * A generic request to write any supported data to the clipboard.
16607
17256
  * @interface
16608
17257
  */
16609
17258
  declare type WriteAnyClipboardRequest = BaseClipboardRequest & {
17259
+ /**
17260
+ * Data to be written
17261
+ */
16610
17262
  data: {
16611
17263
  text?: string;
16612
17264
  html?: string;
@@ -16618,6 +17270,8 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
16618
17270
  * @deprecated - instead use WriteAnyClipboardRequest
16619
17271
  *
16620
17272
  * A generic request to write any supported data to the clipboard.
17273
+ *
17274
+ * @interface
16621
17275
  */
16622
17276
  declare type WriteAnyRequestType = WriteAnyClipboardRequest;
16623
17277
 
@@ -16648,6 +17302,8 @@ declare class _Window extends WebContents<OpenFin.WindowEvent> {
16648
17302
  * @deprecated - instead use OpenFin.WriteClipboardRequest
16649
17303
  *
16650
17304
  * A request to write data to the clipboard.
17305
+ *
17306
+ * @interface
16651
17307
  */
16652
17308
  declare type WriteRequestType = WriteClipboardRequest;
16653
17309