@openfin/core 40.82.2 → 40.82.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -3702,6 +3702,7 @@ declare type ContainerCreatedEvent = LayoutDOMEvent & {
3702
3702
 
3703
3703
  /**
3704
3704
  * Generated when content navigation or redirection is blocked by {@link OpenFin.DomainSettings}.
3705
+ * @interface
3705
3706
  */
3706
3707
  declare type ContentBlockedEvent = NamedEvent & {
3707
3708
  type: 'content-blocked';
@@ -8220,6 +8221,23 @@ declare type LogLevel = OpenFin_2.LogLevel;
8220
8221
  */
8221
8222
  declare type LogLevel_2 = 'verbose' | 'info' | 'warning' | 'error' | 'fatal';
8222
8223
 
8224
+ declare type LogUploaderUIOptions = {
8225
+ title?: string;
8226
+ icon?: string;
8227
+ header?: string;
8228
+ description?: string;
8229
+ email?: string;
8230
+ website?: string;
8231
+ websiteDescription?: string;
8232
+ };
8233
+
8234
+ declare type LogUploadOptions = {
8235
+ endpoint: string;
8236
+ manifests?: string[];
8237
+ logs?: string[];
8238
+ ui?: LogUploaderUIOptions;
8239
+ };
8240
+
8223
8241
  /**
8224
8242
  * @interface
8225
8243
  */
@@ -8278,6 +8296,7 @@ declare type Manifest = {
8278
8296
  enableErrorReporting?: boolean;
8279
8297
  };
8280
8298
  interopBrokerConfiguration: InteropBrokerOptions;
8299
+ logUpload?: LogUploadOptions;
8281
8300
  };
8282
8301
 
8283
8302
  /**
@@ -8909,6 +8928,34 @@ declare type NavigationRules = {
8909
8928
 
8910
8929
  declare type NewConnectConfig = ConfigWithUuid & ConfigWithRuntime;
8911
8930
 
8931
+ declare interface NodeNetworkInterfaceBase {
8932
+ address: string;
8933
+ netmask: string;
8934
+ mac: string;
8935
+ internal: boolean;
8936
+ cidr: string | null;
8937
+ }
8938
+
8939
+ declare type NodeNetworkInterfaceInfo = NodeNetworkInterfaceInfoIPv4 | NodeNetworkInterfaceInfoIPv6;
8940
+
8941
+ declare interface NodeNetworkInterfaceInfoIPv4 extends NodeNetworkInterfaceBase {
8942
+ family: 'IPv4';
8943
+ scopeid?: undefined;
8944
+ }
8945
+
8946
+ declare interface NodeNetworkInterfaceInfoIPv6 extends NodeNetworkInterfaceBase {
8947
+ family: 'IPv6';
8948
+ scopeid: number;
8949
+ }
8950
+
8951
+ declare interface NodeUserInfo {
8952
+ username: string;
8953
+ uid: number;
8954
+ gid: number;
8955
+ shell: string | null;
8956
+ homedir: string;
8957
+ }
8958
+
8912
8959
  /**
8913
8960
  * @interface
8914
8961
  */
@@ -9111,6 +9158,8 @@ declare namespace OpenFin_2 {
9111
9158
  PlatformViewCreationOptions,
9112
9159
  ProcessAffinityStrategy,
9113
9160
  PlatformOptions,
9161
+ LogUploaderUIOptions,
9162
+ LogUploadOptions,
9114
9163
  Manifest,
9115
9164
  LayoutContent,
9116
9165
  LayoutItemConfig,
@@ -9138,6 +9187,7 @@ declare namespace OpenFin_2 {
9138
9187
  Time,
9139
9188
  CpuInfo,
9140
9189
  GpuInfo,
9190
+ OSInfo,
9141
9191
  HostSpecs,
9142
9192
  PrinterInfo_2 as PrinterInfo,
9143
9193
  Dpi,
@@ -9347,6 +9397,25 @@ declare type OptionsChangedEvent = BaseEvent_5 & {
9347
9397
  diff: OpenFin_2.WindowOptionDiff;
9348
9398
  };
9349
9399
 
9400
+ /**
9401
+ * @interface
9402
+ * The keys represent the output from calling individual Node `os` APIs.
9403
+ * For example, `userInfo` will have the output of calling `os.userInfo()`. For more information
9404
+ * see [Node `os` API docs](https://nodejs.org/docs/latest-v20.x/api/os.html)
9405
+ */
9406
+ declare type OSInfo = {
9407
+ platform: string;
9408
+ release: string;
9409
+ version: string;
9410
+ /**
9411
+ * Throws if a user has no username or homedir.
9412
+ * See [Node os.userInfo docs for more info](https://nodejs.org/docs/latest-v20.x/api/os.html#osuserinfooptions)
9413
+ */
9414
+ userInfo: NodeUserInfo;
9415
+ hostname: string;
9416
+ networkInterfaces: Record<string, NodeNetworkInterfaceInfo[] | undefined>;
9417
+ };
9418
+
9350
9419
  declare type OverrideCallback<T extends any = PlatformProvider, U extends T = T> = (arg: Constructor<T>) => U | Promise<U>;
9351
9420
 
9352
9421
  /**
@@ -11608,6 +11677,8 @@ declare interface ProtocolMap extends ProtocolMapBase {
11608
11677
  };
11609
11678
  response: void;
11610
11679
  };
11680
+ 'get-host-specs': GetterCall<OpenFin_2.HostSpecs>;
11681
+ 'get-os-info': GetterCall<OpenFin_2.OSInfo>;
11611
11682
  'system-get-printers': GetterCall<OpenFin_2.PrinterInfo[]>;
11612
11683
  'system-register-shutdown-handler': VoidCall;
11613
11684
  'get-domain-settings': ApiCall<OpenFin_2.ApplicationIdentity, OpenFin_2.DefaultDomainSettings>;
@@ -12948,7 +13019,8 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
12948
13019
  */
12949
13020
  getRvmInfo(): Promise<OpenFin_2.RVMInfo>;
12950
13021
  /**
12951
- * Retrieves system information.
13022
+ * Retrieves general system information. If you need more detailed information about the
13023
+ * OS and the currently logged in user, use `fin.System.getOSInfo()` instead.
12952
13024
  *
12953
13025
  * @example
12954
13026
  * ```js
@@ -12956,6 +13028,15 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
12956
13028
  * ```
12957
13029
  */
12958
13030
  getHostSpecs(): Promise<OpenFin_2.HostSpecs>;
13031
+ /**
13032
+ * Retrieves information about the OS and the currently logged in user.
13033
+ *
13034
+ * @example
13035
+ * ```js
13036
+ * fin.System.getOSInfo().then(specs => console.log(specs)).catch(err => console.log(err));
13037
+ * ```
13038
+ */
13039
+ getOSInfo(): Promise<OpenFin_2.OSInfo>;
12959
13040
  /**
12960
13041
  * Runs an executable or batch file. A path to the file must be included in options.
12961
13042
  * <br> A uuid may be optionally provided. If not provided, OpenFin will create a uuid for the new process.
@@ -14083,6 +14164,7 @@ declare type SystemEventType = EventType_8;
14083
14164
  * @interface
14084
14165
  */
14085
14166
  declare type SystemPermissions = {
14167
+ getOSInfo: boolean;
14086
14168
  getAllExternalWindows: boolean;
14087
14169
  launchExternalProcess: boolean | {
14088
14170
  enabled: boolean;
@@ -3702,6 +3702,7 @@ declare type ContainerCreatedEvent = LayoutDOMEvent & {
3702
3702
 
3703
3703
  /**
3704
3704
  * Generated when content navigation or redirection is blocked by {@link OpenFin.DomainSettings}.
3705
+ * @interface
3705
3706
  */
3706
3707
  declare type ContentBlockedEvent = NamedEvent & {
3707
3708
  type: 'content-blocked';
@@ -8220,6 +8221,23 @@ declare type LogLevel = OpenFin_2.LogLevel;
8220
8221
  */
8221
8222
  declare type LogLevel_2 = 'verbose' | 'info' | 'warning' | 'error' | 'fatal';
8222
8223
 
8224
+ declare type LogUploaderUIOptions = {
8225
+ title?: string;
8226
+ icon?: string;
8227
+ header?: string;
8228
+ description?: string;
8229
+ email?: string;
8230
+ website?: string;
8231
+ websiteDescription?: string;
8232
+ };
8233
+
8234
+ declare type LogUploadOptions = {
8235
+ endpoint: string;
8236
+ manifests?: string[];
8237
+ logs?: string[];
8238
+ ui?: LogUploaderUIOptions;
8239
+ };
8240
+
8223
8241
  /**
8224
8242
  * @interface
8225
8243
  */
@@ -8278,6 +8296,7 @@ declare type Manifest = {
8278
8296
  enableErrorReporting?: boolean;
8279
8297
  };
8280
8298
  interopBrokerConfiguration: InteropBrokerOptions;
8299
+ logUpload?: LogUploadOptions;
8281
8300
  };
8282
8301
 
8283
8302
  /**
@@ -8909,6 +8928,34 @@ declare type NavigationRules = {
8909
8928
 
8910
8929
  declare type NewConnectConfig = ConfigWithUuid & ConfigWithRuntime;
8911
8930
 
8931
+ declare interface NodeNetworkInterfaceBase {
8932
+ address: string;
8933
+ netmask: string;
8934
+ mac: string;
8935
+ internal: boolean;
8936
+ cidr: string | null;
8937
+ }
8938
+
8939
+ declare type NodeNetworkInterfaceInfo = NodeNetworkInterfaceInfoIPv4 | NodeNetworkInterfaceInfoIPv6;
8940
+
8941
+ declare interface NodeNetworkInterfaceInfoIPv4 extends NodeNetworkInterfaceBase {
8942
+ family: 'IPv4';
8943
+ scopeid?: undefined;
8944
+ }
8945
+
8946
+ declare interface NodeNetworkInterfaceInfoIPv6 extends NodeNetworkInterfaceBase {
8947
+ family: 'IPv6';
8948
+ scopeid: number;
8949
+ }
8950
+
8951
+ declare interface NodeUserInfo {
8952
+ username: string;
8953
+ uid: number;
8954
+ gid: number;
8955
+ shell: string | null;
8956
+ homedir: string;
8957
+ }
8958
+
8912
8959
  /**
8913
8960
  * @interface
8914
8961
  */
@@ -9111,6 +9158,8 @@ declare namespace OpenFin_2 {
9111
9158
  PlatformViewCreationOptions,
9112
9159
  ProcessAffinityStrategy,
9113
9160
  PlatformOptions,
9161
+ LogUploaderUIOptions,
9162
+ LogUploadOptions,
9114
9163
  Manifest,
9115
9164
  LayoutContent,
9116
9165
  LayoutItemConfig,
@@ -9138,6 +9187,7 @@ declare namespace OpenFin_2 {
9138
9187
  Time,
9139
9188
  CpuInfo,
9140
9189
  GpuInfo,
9190
+ OSInfo,
9141
9191
  HostSpecs,
9142
9192
  PrinterInfo_2 as PrinterInfo,
9143
9193
  Dpi,
@@ -9347,6 +9397,25 @@ declare type OptionsChangedEvent = BaseEvent_5 & {
9347
9397
  diff: OpenFin_2.WindowOptionDiff;
9348
9398
  };
9349
9399
 
9400
+ /**
9401
+ * @interface
9402
+ * The keys represent the output from calling individual Node `os` APIs.
9403
+ * For example, `userInfo` will have the output of calling `os.userInfo()`. For more information
9404
+ * see [Node `os` API docs](https://nodejs.org/docs/latest-v20.x/api/os.html)
9405
+ */
9406
+ declare type OSInfo = {
9407
+ platform: string;
9408
+ release: string;
9409
+ version: string;
9410
+ /**
9411
+ * Throws if a user has no username or homedir.
9412
+ * See [Node os.userInfo docs for more info](https://nodejs.org/docs/latest-v20.x/api/os.html#osuserinfooptions)
9413
+ */
9414
+ userInfo: NodeUserInfo;
9415
+ hostname: string;
9416
+ networkInterfaces: Record<string, NodeNetworkInterfaceInfo[] | undefined>;
9417
+ };
9418
+
9350
9419
  declare type OverrideCallback<T extends any = PlatformProvider, U extends T = T> = (arg: Constructor<T>) => U | Promise<U>;
9351
9420
 
9352
9421
  /**
@@ -11608,6 +11677,8 @@ declare interface ProtocolMap extends ProtocolMapBase {
11608
11677
  };
11609
11678
  response: void;
11610
11679
  };
11680
+ 'get-host-specs': GetterCall<OpenFin_2.HostSpecs>;
11681
+ 'get-os-info': GetterCall<OpenFin_2.OSInfo>;
11611
11682
  'system-get-printers': GetterCall<OpenFin_2.PrinterInfo[]>;
11612
11683
  'system-register-shutdown-handler': VoidCall;
11613
11684
  'get-domain-settings': ApiCall<OpenFin_2.ApplicationIdentity, OpenFin_2.DefaultDomainSettings>;
@@ -12948,7 +13019,8 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
12948
13019
  */
12949
13020
  getRvmInfo(): Promise<OpenFin_2.RVMInfo>;
12950
13021
  /**
12951
- * Retrieves system information.
13022
+ * Retrieves general system information. If you need more detailed information about the
13023
+ * OS and the currently logged in user, use `fin.System.getOSInfo()` instead.
12952
13024
  *
12953
13025
  * @example
12954
13026
  * ```js
@@ -12956,6 +13028,15 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
12956
13028
  * ```
12957
13029
  */
12958
13030
  getHostSpecs(): Promise<OpenFin_2.HostSpecs>;
13031
+ /**
13032
+ * Retrieves information about the OS and the currently logged in user.
13033
+ *
13034
+ * @example
13035
+ * ```js
13036
+ * fin.System.getOSInfo().then(specs => console.log(specs)).catch(err => console.log(err));
13037
+ * ```
13038
+ */
13039
+ getOSInfo(): Promise<OpenFin_2.OSInfo>;
12959
13040
  /**
12960
13041
  * Runs an executable or batch file. A path to the file must be included in options.
12961
13042
  * <br> A uuid may be optionally provided. If not provided, OpenFin will create a uuid for the new process.
@@ -14083,6 +14164,7 @@ declare type SystemEventType = EventType_8;
14083
14164
  * @interface
14084
14165
  */
14085
14166
  declare type SystemPermissions = {
14167
+ getOSInfo: boolean;
14086
14168
  getAllExternalWindows: boolean;
14087
14169
  launchExternalProcess: boolean | {
14088
14170
  enabled: boolean;
@@ -3702,6 +3702,7 @@ declare type ContainerCreatedEvent = LayoutDOMEvent & {
3702
3702
 
3703
3703
  /**
3704
3704
  * Generated when content navigation or redirection is blocked by {@link OpenFin.DomainSettings}.
3705
+ * @interface
3705
3706
  */
3706
3707
  declare type ContentBlockedEvent = NamedEvent & {
3707
3708
  type: 'content-blocked';
@@ -8220,6 +8221,23 @@ declare type LogLevel = OpenFin_2.LogLevel;
8220
8221
  */
8221
8222
  declare type LogLevel_2 = 'verbose' | 'info' | 'warning' | 'error' | 'fatal';
8222
8223
 
8224
+ declare type LogUploaderUIOptions = {
8225
+ title?: string;
8226
+ icon?: string;
8227
+ header?: string;
8228
+ description?: string;
8229
+ email?: string;
8230
+ website?: string;
8231
+ websiteDescription?: string;
8232
+ };
8233
+
8234
+ declare type LogUploadOptions = {
8235
+ endpoint: string;
8236
+ manifests?: string[];
8237
+ logs?: string[];
8238
+ ui?: LogUploaderUIOptions;
8239
+ };
8240
+
8223
8241
  /**
8224
8242
  * @interface
8225
8243
  */
@@ -8278,6 +8296,7 @@ declare type Manifest = {
8278
8296
  enableErrorReporting?: boolean;
8279
8297
  };
8280
8298
  interopBrokerConfiguration: InteropBrokerOptions;
8299
+ logUpload?: LogUploadOptions;
8281
8300
  };
8282
8301
 
8283
8302
  /**
@@ -8909,6 +8928,34 @@ declare type NavigationRules = {
8909
8928
 
8910
8929
  declare type NewConnectConfig = ConfigWithUuid & ConfigWithRuntime;
8911
8930
 
8931
+ declare interface NodeNetworkInterfaceBase {
8932
+ address: string;
8933
+ netmask: string;
8934
+ mac: string;
8935
+ internal: boolean;
8936
+ cidr: string | null;
8937
+ }
8938
+
8939
+ declare type NodeNetworkInterfaceInfo = NodeNetworkInterfaceInfoIPv4 | NodeNetworkInterfaceInfoIPv6;
8940
+
8941
+ declare interface NodeNetworkInterfaceInfoIPv4 extends NodeNetworkInterfaceBase {
8942
+ family: 'IPv4';
8943
+ scopeid?: undefined;
8944
+ }
8945
+
8946
+ declare interface NodeNetworkInterfaceInfoIPv6 extends NodeNetworkInterfaceBase {
8947
+ family: 'IPv6';
8948
+ scopeid: number;
8949
+ }
8950
+
8951
+ declare interface NodeUserInfo {
8952
+ username: string;
8953
+ uid: number;
8954
+ gid: number;
8955
+ shell: string | null;
8956
+ homedir: string;
8957
+ }
8958
+
8912
8959
  /**
8913
8960
  * @interface
8914
8961
  */
@@ -9111,6 +9158,8 @@ declare namespace OpenFin_2 {
9111
9158
  PlatformViewCreationOptions,
9112
9159
  ProcessAffinityStrategy,
9113
9160
  PlatformOptions,
9161
+ LogUploaderUIOptions,
9162
+ LogUploadOptions,
9114
9163
  Manifest,
9115
9164
  LayoutContent,
9116
9165
  LayoutItemConfig,
@@ -9138,6 +9187,7 @@ declare namespace OpenFin_2 {
9138
9187
  Time,
9139
9188
  CpuInfo,
9140
9189
  GpuInfo,
9190
+ OSInfo,
9141
9191
  HostSpecs,
9142
9192
  PrinterInfo_2 as PrinterInfo,
9143
9193
  Dpi,
@@ -9347,6 +9397,25 @@ declare type OptionsChangedEvent = BaseEvent_5 & {
9347
9397
  diff: OpenFin_2.WindowOptionDiff;
9348
9398
  };
9349
9399
 
9400
+ /**
9401
+ * @interface
9402
+ * The keys represent the output from calling individual Node `os` APIs.
9403
+ * For example, `userInfo` will have the output of calling `os.userInfo()`. For more information
9404
+ * see [Node `os` API docs](https://nodejs.org/docs/latest-v20.x/api/os.html)
9405
+ */
9406
+ declare type OSInfo = {
9407
+ platform: string;
9408
+ release: string;
9409
+ version: string;
9410
+ /**
9411
+ * Throws if a user has no username or homedir.
9412
+ * See [Node os.userInfo docs for more info](https://nodejs.org/docs/latest-v20.x/api/os.html#osuserinfooptions)
9413
+ */
9414
+ userInfo: NodeUserInfo;
9415
+ hostname: string;
9416
+ networkInterfaces: Record<string, NodeNetworkInterfaceInfo[] | undefined>;
9417
+ };
9418
+
9350
9419
  declare type OverrideCallback<T extends any = PlatformProvider, U extends T = T> = (arg: Constructor<T>) => U | Promise<U>;
9351
9420
 
9352
9421
  /**
@@ -11608,6 +11677,8 @@ declare interface ProtocolMap extends ProtocolMapBase {
11608
11677
  };
11609
11678
  response: void;
11610
11679
  };
11680
+ 'get-host-specs': GetterCall<OpenFin_2.HostSpecs>;
11681
+ 'get-os-info': GetterCall<OpenFin_2.OSInfo>;
11611
11682
  'system-get-printers': GetterCall<OpenFin_2.PrinterInfo[]>;
11612
11683
  'system-register-shutdown-handler': VoidCall;
11613
11684
  'get-domain-settings': ApiCall<OpenFin_2.ApplicationIdentity, OpenFin_2.DefaultDomainSettings>;
@@ -12948,7 +13019,8 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
12948
13019
  */
12949
13020
  getRvmInfo(): Promise<OpenFin_2.RVMInfo>;
12950
13021
  /**
12951
- * Retrieves system information.
13022
+ * Retrieves general system information. If you need more detailed information about the
13023
+ * OS and the currently logged in user, use `fin.System.getOSInfo()` instead.
12952
13024
  *
12953
13025
  * @example
12954
13026
  * ```js
@@ -12956,6 +13028,15 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
12956
13028
  * ```
12957
13029
  */
12958
13030
  getHostSpecs(): Promise<OpenFin_2.HostSpecs>;
13031
+ /**
13032
+ * Retrieves information about the OS and the currently logged in user.
13033
+ *
13034
+ * @example
13035
+ * ```js
13036
+ * fin.System.getOSInfo().then(specs => console.log(specs)).catch(err => console.log(err));
13037
+ * ```
13038
+ */
13039
+ getOSInfo(): Promise<OpenFin_2.OSInfo>;
12959
13040
  /**
12960
13041
  * Runs an executable or batch file. A path to the file must be included in options.
12961
13042
  * <br> A uuid may be optionally provided. If not provided, OpenFin will create a uuid for the new process.
@@ -14083,6 +14164,7 @@ declare type SystemEventType = EventType_8;
14083
14164
  * @interface
14084
14165
  */
14085
14166
  declare type SystemPermissions = {
14167
+ getOSInfo: boolean;
14086
14168
  getAllExternalWindows: boolean;
14087
14169
  launchExternalProcess: boolean | {
14088
14170
  enabled: boolean;
package/out/mock.d.ts CHANGED
@@ -3761,6 +3761,7 @@ declare type ContainerCreatedEvent = LayoutDOMEvent & {
3761
3761
 
3762
3762
  /**
3763
3763
  * Generated when content navigation or redirection is blocked by {@link OpenFin.DomainSettings}.
3764
+ * @interface
3764
3765
  */
3765
3766
  declare type ContentBlockedEvent = NamedEvent & {
3766
3767
  type: 'content-blocked';
@@ -8513,6 +8514,23 @@ declare type LogLevel = OpenFin_2.LogLevel;
8513
8514
  */
8514
8515
  declare type LogLevel_2 = 'verbose' | 'info' | 'warning' | 'error' | 'fatal';
8515
8516
 
8517
+ declare type LogUploaderUIOptions = {
8518
+ title?: string;
8519
+ icon?: string;
8520
+ header?: string;
8521
+ description?: string;
8522
+ email?: string;
8523
+ website?: string;
8524
+ websiteDescription?: string;
8525
+ };
8526
+
8527
+ declare type LogUploadOptions = {
8528
+ endpoint: string;
8529
+ manifests?: string[];
8530
+ logs?: string[];
8531
+ ui?: LogUploaderUIOptions;
8532
+ };
8533
+
8516
8534
  /**
8517
8535
  * @interface
8518
8536
  */
@@ -8571,6 +8589,7 @@ declare type Manifest = {
8571
8589
  enableErrorReporting?: boolean;
8572
8590
  };
8573
8591
  interopBrokerConfiguration: InteropBrokerOptions;
8592
+ logUpload?: LogUploadOptions;
8574
8593
  };
8575
8594
 
8576
8595
  /**
@@ -9214,6 +9233,34 @@ declare type NavigationRules = {
9214
9233
 
9215
9234
  declare type NewConnectConfig = ConfigWithUuid & ConfigWithRuntime;
9216
9235
 
9236
+ declare interface NodeNetworkInterfaceBase {
9237
+ address: string;
9238
+ netmask: string;
9239
+ mac: string;
9240
+ internal: boolean;
9241
+ cidr: string | null;
9242
+ }
9243
+
9244
+ declare type NodeNetworkInterfaceInfo = NodeNetworkInterfaceInfoIPv4 | NodeNetworkInterfaceInfoIPv6;
9245
+
9246
+ declare interface NodeNetworkInterfaceInfoIPv4 extends NodeNetworkInterfaceBase {
9247
+ family: 'IPv4';
9248
+ scopeid?: undefined;
9249
+ }
9250
+
9251
+ declare interface NodeNetworkInterfaceInfoIPv6 extends NodeNetworkInterfaceBase {
9252
+ family: 'IPv6';
9253
+ scopeid: number;
9254
+ }
9255
+
9256
+ declare interface NodeUserInfo {
9257
+ username: string;
9258
+ uid: number;
9259
+ gid: number;
9260
+ shell: string | null;
9261
+ homedir: string;
9262
+ }
9263
+
9217
9264
  /**
9218
9265
  * @interface
9219
9266
  */
@@ -9426,6 +9473,8 @@ declare namespace OpenFin_2 {
9426
9473
  PlatformViewCreationOptions,
9427
9474
  ProcessAffinityStrategy,
9428
9475
  PlatformOptions,
9476
+ LogUploaderUIOptions,
9477
+ LogUploadOptions,
9429
9478
  Manifest,
9430
9479
  LayoutContent,
9431
9480
  LayoutItemConfig,
@@ -9453,6 +9502,7 @@ declare namespace OpenFin_2 {
9453
9502
  Time,
9454
9503
  CpuInfo,
9455
9504
  GpuInfo,
9505
+ OSInfo,
9456
9506
  HostSpecs,
9457
9507
  PrinterInfo_2 as PrinterInfo,
9458
9508
  Dpi,
@@ -9662,6 +9712,25 @@ declare type OptionsChangedEvent = BaseEvent_5 & {
9662
9712
  diff: OpenFin_2.WindowOptionDiff;
9663
9713
  };
9664
9714
 
9715
+ /**
9716
+ * @interface
9717
+ * The keys represent the output from calling individual Node `os` APIs.
9718
+ * For example, `userInfo` will have the output of calling `os.userInfo()`. For more information
9719
+ * see [Node `os` API docs](https://nodejs.org/docs/latest-v20.x/api/os.html)
9720
+ */
9721
+ declare type OSInfo = {
9722
+ platform: string;
9723
+ release: string;
9724
+ version: string;
9725
+ /**
9726
+ * Throws if a user has no username or homedir.
9727
+ * See [Node os.userInfo docs for more info](https://nodejs.org/docs/latest-v20.x/api/os.html#osuserinfooptions)
9728
+ */
9729
+ userInfo: NodeUserInfo;
9730
+ hostname: string;
9731
+ networkInterfaces: Record<string, NodeNetworkInterfaceInfo[] | undefined>;
9732
+ };
9733
+
9665
9734
  declare type OverrideCallback<T extends any = PlatformProvider, U extends T = T> = (arg: Constructor<T>) => U | Promise<U>;
9666
9735
 
9667
9736
  /**
@@ -12001,6 +12070,8 @@ declare interface ProtocolMap extends ProtocolMapBase {
12001
12070
  };
12002
12071
  response: void;
12003
12072
  };
12073
+ 'get-host-specs': GetterCall<OpenFin_2.HostSpecs>;
12074
+ 'get-os-info': GetterCall<OpenFin_2.OSInfo>;
12004
12075
  'system-get-printers': GetterCall<OpenFin_2.PrinterInfo[]>;
12005
12076
  'system-register-shutdown-handler': VoidCall;
12006
12077
  'get-domain-settings': ApiCall<OpenFin_2.ApplicationIdentity, OpenFin_2.DefaultDomainSettings>;
@@ -13347,7 +13418,8 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
13347
13418
  */
13348
13419
  getRvmInfo(): Promise<OpenFin_2.RVMInfo>;
13349
13420
  /**
13350
- * Retrieves system information.
13421
+ * Retrieves general system information. If you need more detailed information about the
13422
+ * OS and the currently logged in user, use `fin.System.getOSInfo()` instead.
13351
13423
  *
13352
13424
  * @example
13353
13425
  * ```js
@@ -13355,6 +13427,15 @@ declare class System extends EmitterBase<OpenFin_2.SystemEvent> {
13355
13427
  * ```
13356
13428
  */
13357
13429
  getHostSpecs(): Promise<OpenFin_2.HostSpecs>;
13430
+ /**
13431
+ * Retrieves information about the OS and the currently logged in user.
13432
+ *
13433
+ * @example
13434
+ * ```js
13435
+ * fin.System.getOSInfo().then(specs => console.log(specs)).catch(err => console.log(err));
13436
+ * ```
13437
+ */
13438
+ getOSInfo(): Promise<OpenFin_2.OSInfo>;
13358
13439
  /**
13359
13440
  * Runs an executable or batch file. A path to the file must be included in options.
13360
13441
  * <br> A uuid may be optionally provided. If not provided, OpenFin will create a uuid for the new process.
@@ -14482,6 +14563,7 @@ declare type SystemEventType = EventType_8;
14482
14563
  * @interface
14483
14564
  */
14484
14565
  declare type SystemPermissions = {
14566
+ getOSInfo: boolean;
14485
14567
  getAllExternalWindows: boolean;
14486
14568
  launchExternalProcess: boolean | {
14487
14569
  enabled: boolean;
package/out/mock.js CHANGED
@@ -6393,7 +6393,8 @@ class System extends base_1$i.EmitterBase {
6393
6393
  return this.wire.sendAction('get-rvm-info').then(({ payload }) => payload.data);
6394
6394
  }
6395
6395
  /**
6396
- * Retrieves system information.
6396
+ * Retrieves general system information. If you need more detailed information about the
6397
+ * OS and the currently logged in user, use `fin.System.getOSInfo()` instead.
6397
6398
  *
6398
6399
  * @example
6399
6400
  * ```js
@@ -6403,6 +6404,17 @@ class System extends base_1$i.EmitterBase {
6403
6404
  getHostSpecs() {
6404
6405
  return this.wire.sendAction('get-host-specs').then(({ payload }) => payload.data);
6405
6406
  }
6407
+ /**
6408
+ * Retrieves information about the OS and the currently logged in user.
6409
+ *
6410
+ * @example
6411
+ * ```js
6412
+ * fin.System.getOSInfo().then(specs => console.log(specs)).catch(err => console.log(err));
6413
+ * ```
6414
+ */
6415
+ getOSInfo() {
6416
+ return this.wire.sendAction('get-os-info').then(({ payload }) => payload.data);
6417
+ }
6406
6418
  /**
6407
6419
  * Runs an executable or batch file. A path to the file must be included in options.
6408
6420
  * <br> A uuid may be optionally provided. If not provided, OpenFin will create a uuid for the new process.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfin/core",
3
- "version": "40.82.2",
3
+ "version": "40.82.3",
4
4
  "description": "The core renderer entry point of OpenFin",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "main": "out/mock.js",