@simeonradivoev/gameflow-sdk 1.5.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +102 -8
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  import Conf from 'conf';
4
4
  import EventEmitter from 'node:events';
5
+ import { EventEmitter } from 'node:events';
5
6
  import { AsyncSeriesBailHook, AsyncSeriesHook, AsyncSeriesWaterfallHook, SyncBailHook } from 'tapable';
6
7
  import z from 'zod';
7
8
 
@@ -399,7 +400,7 @@ export declare const EmulatorPackageSchema: z.ZodObject<{
399
400
  }, z.core.$strip>
400
401
  ], "type">>>>;
401
402
  systems: z.ZodArray<z.ZodString>;
402
- bios: z.ZodOptional<z.ZodLiteral<"optional" | "required">>;
403
+ bios: z.ZodOptional<z.ZodLiteral<"required" | "optional">>;
403
404
  }, z.core.$strip>;
404
405
  export declare const GameListFilterSchema: z.ZodObject<{
405
406
  platform_source: z.ZodOptional<z.ZodString>;
@@ -477,14 +478,35 @@ export declare const OAUTH_REDIRECT_PORT = 5194;
477
478
  export declare const PlatformSchema: z.ZodObject<{
478
479
  slug: z.ZodString;
479
480
  }, z.core.$strip>;
481
+ export declare const PluginBunDetailsSchema: z.ZodObject<{
482
+ name: z.ZodString;
483
+ keywords: z.ZodArray<z.ZodString>;
484
+ version: z.ZodString;
485
+ author: z.ZodOptional<z.ZodObject<{
486
+ name: z.ZodOptional<z.ZodString>;
487
+ }, z.core.$strip>>;
488
+ license: z.ZodOptional<z.ZodString>;
489
+ devDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
490
+ dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
491
+ maintainers: z.ZodOptional<z.ZodArray<z.ZodObject<{
492
+ name: z.ZodString;
493
+ }, z.core.$strip>>>;
494
+ dist: z.ZodObject<{
495
+ unpackedSize: z.ZodNumber;
496
+ }, z.core.$strip>;
497
+ description: z.ZodOptional<z.ZodString>;
498
+ _npmUser: z.ZodOptional<z.ZodObject<{
499
+ name: z.ZodString;
500
+ }, z.core.$strip>>;
501
+ }, z.core.$strip>;
480
502
  export declare const PluginContextSchema: z.ZodObject<{
481
503
  hooks: z.ZodCustom<GameflowHooks, GameflowHooks>;
482
504
  }, z.core.$strip>;
483
505
  export declare const PluginDescriptionSchema: z.ZodObject<{
484
506
  name: z.ZodString;
485
- displayName: z.ZodString;
507
+ displayName: z.ZodOptional<z.ZodString>;
486
508
  version: z.ZodString;
487
- description: z.ZodString;
509
+ description: z.ZodOptional<z.ZodString>;
488
510
  icon: z.ZodOptional<z.ZodURL>;
489
511
  keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
490
512
  category: z.ZodDefault<z.ZodString>;
@@ -529,6 +551,43 @@ export declare const PluginLoadingContextSchema: z.ZodObject<{
529
551
  ], z.core.$ZodFunctionOut>, z.ZodVoid>;
530
552
  config: z.ZodCustom<Conf<Record<string, any>>, Conf<Record<string, any>>>;
531
553
  zodRegistry: z.ZodCustom<z.core.$ZodRegistry<object | undefined, z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.core.$ZodRegistry<object | undefined, z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
554
+ app: z.ZodObject<{
555
+ config: z.ZodCustom<Conf<{
556
+ downloadPath: string;
557
+ launchInFullscreen: boolean;
558
+ disabledPlugins: string[];
559
+ emulatorResolution: "720p" | "1080p" | "1440p" | "4k";
560
+ emulatorWidescreen: boolean;
561
+ rommAddress?: string | undefined;
562
+ rommUser?: string | undefined;
563
+ windowSize?: {
564
+ width: number;
565
+ height: number;
566
+ } | undefined;
567
+ windowPosition?: {
568
+ x: number;
569
+ y: number;
570
+ } | undefined;
571
+ }>, Conf<{
572
+ downloadPath: string;
573
+ launchInFullscreen: boolean;
574
+ disabledPlugins: string[];
575
+ emulatorResolution: "720p" | "1080p" | "1440p" | "4k";
576
+ emulatorWidescreen: boolean;
577
+ rommAddress?: string | undefined;
578
+ rommUser?: string | undefined;
579
+ windowSize?: {
580
+ width: number;
581
+ height: number;
582
+ } | undefined;
583
+ windowPosition?: {
584
+ x: number;
585
+ y: number;
586
+ } | undefined;
587
+ }>>;
588
+ events: z.ZodCustom<EventEmitter<AppEventMap>, EventEmitter<AppEventMap>>;
589
+ taskQueue: z.ZodCustom<TaskQueue, TaskQueue>;
590
+ }, z.core.$strip>;
532
591
  hooks: z.ZodCustom<GameflowHooks, GameflowHooks>;
533
592
  }, z.core.$strip>;
534
593
  export declare const PluginRegistry: string;
@@ -541,6 +600,43 @@ export declare const PluginSchema: z.ZodObject<{
541
600
  ], z.core.$ZodFunctionOut>, z.ZodVoid>;
542
601
  config: z.ZodCustom<Conf<Record<string, any>>, Conf<Record<string, any>>>;
543
602
  zodRegistry: z.ZodCustom<z.core.$ZodRegistry<object | undefined, z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>, z.core.$ZodRegistry<object | undefined, z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
603
+ app: z.ZodObject<{
604
+ config: z.ZodCustom<Conf<{
605
+ downloadPath: string;
606
+ launchInFullscreen: boolean;
607
+ disabledPlugins: string[];
608
+ emulatorResolution: "720p" | "1080p" | "1440p" | "4k";
609
+ emulatorWidescreen: boolean;
610
+ rommAddress?: string | undefined;
611
+ rommUser?: string | undefined;
612
+ windowSize?: {
613
+ width: number;
614
+ height: number;
615
+ } | undefined;
616
+ windowPosition?: {
617
+ x: number;
618
+ y: number;
619
+ } | undefined;
620
+ }>, Conf<{
621
+ downloadPath: string;
622
+ launchInFullscreen: boolean;
623
+ disabledPlugins: string[];
624
+ emulatorResolution: "720p" | "1080p" | "1440p" | "4k";
625
+ emulatorWidescreen: boolean;
626
+ rommAddress?: string | undefined;
627
+ rommUser?: string | undefined;
628
+ windowSize?: {
629
+ width: number;
630
+ height: number;
631
+ } | undefined;
632
+ windowPosition?: {
633
+ x: number;
634
+ y: number;
635
+ } | undefined;
636
+ }>>;
637
+ events: z.ZodCustom<EventEmitter<AppEventMap>, EventEmitter<AppEventMap>>;
638
+ taskQueue: z.ZodCustom<TaskQueue, TaskQueue>;
639
+ }, z.core.$strip>;
544
640
  hooks: z.ZodCustom<GameflowHooks, GameflowHooks>;
545
641
  }, z.core.$strip>
546
642
  ], z.core.$ZodFunctionOut>, z.ZodPromise<z.ZodVoid>>;
@@ -696,13 +792,10 @@ export declare const SystemInfoSchema: z.ZodObject<{
696
792
  }, z.core.$strip>>;
697
793
  }, z.core.$strip>;
698
794
  export declare const WINDOW_PORT = 4656;
699
- export declare const config: Conf<SettingsType>;
700
795
  export declare const settingRegistry: z.core.$ZodRegistry<{
701
796
  dev?: boolean;
702
797
  }, z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
703
798
  export declare function delay(delay: number | Date, signal?: AbortSignal): Promise<unknown>;
704
- export declare let events: EventEmitter<AppEventMap>;
705
- export declare let taskQueue: TaskQueue;
706
799
  export interface AbortEvent extends BaseEvent {
707
800
  reason?: any;
708
801
  }
@@ -1008,8 +1101,8 @@ export interface FrontendNotification {
1008
1101
  }
1009
1102
  export interface FrontendPlugin {
1010
1103
  name: string;
1011
- displayName: string;
1012
- description: string;
1104
+ displayName?: string;
1105
+ description?: string;
1013
1106
  category: string;
1014
1107
  enabled: boolean;
1015
1108
  canDisable: boolean;
@@ -1103,6 +1196,7 @@ export type KeysWithValueAssignableTo<T, Value> = {
1103
1196
  [K in keyof T]: Exclude<T[K], undefined> extends Value ? K : never;
1104
1197
  }[keyof T];
1105
1198
  export type LocalSettingsType = z.infer<typeof LocalSettingsSchema>;
1199
+ export type PluginBunDetailsType = z.infer<typeof PluginBunDetailsSchema>;
1106
1200
  export type PluginContextType = z.infer<typeof PluginContextSchema>;
1107
1201
  export type PluginDescriptionType = z.infer<typeof PluginDescriptionSchema>;
1108
1202
  export type PluginEntryType = z.infer<typeof PluginEntrySchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simeonradivoev/gameflow-sdk",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "types": "index.d.ts",
5
5
  "description": "plugin SDK for the Gameflow Deck Launcher",
6
6
  "keywords": [