@omniviewdev/runtime 0.1.11 → 0.2.0

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 (42) hide show
  1. package/dist/Client-BRYjLBXY.cjs +1 -0
  2. package/dist/{Client-DRRyPmcf.js → Client-RGYOEzh2.js} +312 -275
  3. package/dist/api.cjs +1 -1
  4. package/dist/api.d.ts +1 -0
  5. package/dist/api.js +95 -51
  6. package/dist/context/drawer/types.d.ts +1 -1
  7. package/dist/errors/types.d.ts +2 -0
  8. package/dist/hooks/connection/useConnectionStatus.d.ts +3 -3
  9. package/dist/hooks/connection/useConnections.d.ts +2 -2
  10. package/dist/hooks/resource/index.d.ts +2 -1
  11. package/dist/hooks/resource/useActiveSyncs.d.ts +2 -2
  12. package/dist/hooks/resource/useEditorSchemas.d.ts +2 -2
  13. package/dist/hooks/resource/useEventBatcher.d.ts +55 -0
  14. package/dist/hooks/resource/useResource.d.ts +9 -21
  15. package/dist/hooks/resource/useResourceActions.d.ts +3 -3
  16. package/dist/hooks/resource/useResourceGroups.d.ts +1 -1
  17. package/dist/hooks/resource/useResourceMutations.d.ts +14 -7
  18. package/dist/hooks/resource/useResourceSearch.d.ts +1 -1
  19. package/dist/hooks/resource/useResourceType.d.ts +1 -1
  20. package/dist/hooks/resource/useResourceTypes.d.ts +1 -1
  21. package/dist/hooks/resource/useResources.d.ts +14 -22
  22. package/dist/hooks/resource/useWatchState.d.ts +28 -0
  23. package/dist/index.cjs +2 -2
  24. package/dist/index.d.ts +1 -0
  25. package/dist/index.js +1406 -1295
  26. package/dist/models.cjs +1 -1
  27. package/dist/models.js +1343 -972
  28. package/dist/types/index.d.ts +1 -1
  29. package/dist/types/watch.d.ts +29 -0
  30. package/dist/utils/activeSyncAggregator.d.ts +13 -8
  31. package/dist/utils/resourceKey.d.ts +12 -0
  32. package/dist/wailsjs/go/devserver/DevServerManager.d.ts +2 -0
  33. package/dist/wailsjs/go/models.d.ts +400 -214
  34. package/dist/wailsjs/go/plugin/pluginManager.d.ts +3 -1
  35. package/dist/wailsjs/go/pluginlog/Manager.d.ts +18 -0
  36. package/dist/wailsjs/go/resource/Client.d.ts +39 -23
  37. package/package.json +1 -1
  38. package/dist/Client-BtQwAB3N.cjs +0 -1
  39. package/dist/errors/parseAppError.test.d.ts +0 -1
  40. package/dist/hooks/resource/useInformerState.d.ts +0 -24
  41. package/dist/types/informer.d.ts +0 -49
  42. package/dist/utils/activeSyncAggregator.test.d.ts +0 -1
@@ -91,25 +91,31 @@ export declare namespace devserver {
91
91
  viteStatus: string;
92
92
  goStatus: string;
93
93
  lastBuildDuration: number;
94
- lastBuildTime: time.Time;
94
+ lastBuildTime: string;
95
95
  lastError: string;
96
96
  grpcConnected: boolean;
97
97
  static createFrom(source?: any): DevServerState;
98
98
  constructor(source?: any);
99
- convertValues(a: any, classs: any, asMap?: boolean): any;
100
99
  }
101
100
  class LogEntry {
102
- timestamp: time.Time;
101
+ timestamp: string;
103
102
  source: string;
104
103
  level: string;
105
104
  message: string;
106
105
  pluginID: string;
107
106
  static createFrom(source?: any): LogEntry;
108
107
  constructor(source?: any);
109
- convertValues(a: any, classs: any, asMap?: boolean): any;
110
108
  }
111
109
  }
112
110
  export declare namespace exec {
111
+ class ActionTargetBuilder {
112
+ label: string;
113
+ label_selector: string;
114
+ paths: string[];
115
+ selectors: Record<string, string>;
116
+ static createFrom(source?: any): ActionTargetBuilder;
117
+ constructor(source?: any);
118
+ }
113
119
  class Session {
114
120
  created_at: time.Time;
115
121
  labels: Record<string, string>;
@@ -137,7 +143,7 @@ export declare namespace exec {
137
143
  class Handler {
138
144
  plugin: string;
139
145
  resource: string;
140
- target_builder: types.ActionTargetBuilder;
146
+ target_builder: ActionTargetBuilder;
141
147
  default_command: string[];
142
148
  static createFrom(source?: any): Handler;
143
149
  constructor(source?: any);
@@ -157,6 +163,14 @@ export declare namespace exec {
157
163
  }
158
164
  }
159
165
  export declare namespace logs {
166
+ class ActionTargetBuilder {
167
+ label: string;
168
+ label_selector: string;
169
+ paths: string[];
170
+ selectors: Record<string, string>;
171
+ static createFrom(source?: any): ActionTargetBuilder;
172
+ constructor(source?: any);
173
+ }
160
174
  class LogSessionOptions {
161
175
  target: string;
162
176
  follow: boolean;
@@ -184,7 +198,7 @@ export declare namespace logs {
184
198
  class Handler {
185
199
  plugin: string;
186
200
  resource: string;
187
- target_builder: types.ActionTargetBuilder;
201
+ target_builder: ActionTargetBuilder;
188
202
  static createFrom(source?: any): Handler;
189
203
  constructor(source?: any);
190
204
  convertValues(a: any, classs: any, asMap?: boolean): any;
@@ -406,6 +420,25 @@ export declare namespace plugin {
406
420
  convertValues(a: any, classs: any, asMap?: boolean): any;
407
421
  }
408
422
  }
423
+ export declare namespace pluginlog {
424
+ class LogEntry {
425
+ timestamp: string;
426
+ pluginID: string;
427
+ source: string;
428
+ level: string;
429
+ message: string;
430
+ static createFrom(source?: any): LogEntry;
431
+ constructor(source?: any);
432
+ }
433
+ class Manager {
434
+ static createFrom(source?: any): Manager;
435
+ constructor(source?: any);
436
+ }
437
+ class PluginLogStream {
438
+ static createFrom(source?: any): PluginLogStream;
439
+ constructor(source?: any);
440
+ }
441
+ }
409
442
  export declare namespace registry {
410
443
  class AvailablePlugin {
411
444
  id: string;
@@ -467,114 +500,42 @@ export declare namespace registry {
467
500
  constructor(source?: any);
468
501
  }
469
502
  }
470
- export declare namespace settings {
471
- enum SettingType {
472
- TEXT = "text",
473
- INTEGER = "integer",
474
- FLOAT = "float",
475
- TOGGLE = "toggle",
476
- COLOR = "color",
477
- DATETIME = "datetime",
478
- PASSWORD = "password"
479
- }
480
- class SettingFileSelection {
481
- enabled: boolean;
482
- allowFolders: boolean;
483
- extensions: string[];
484
- multiple: boolean;
485
- relative: boolean;
486
- defaultPath: string;
487
- static createFrom(source?: any): SettingFileSelection;
488
- constructor(source?: any);
489
- }
490
- class SettingOption {
491
- label: string;
492
- description: string;
493
- value: any;
494
- static createFrom(source?: any): SettingOption;
495
- constructor(source?: any);
496
- }
497
- class Setting {
498
- id: string;
499
- label: string;
500
- description: string;
501
- type: SettingType;
502
- value: any;
503
- default: any;
504
- options: SettingOption[];
505
- fileSelection?: SettingFileSelection;
506
- sensitive: boolean;
507
- static createFrom(source?: any): Setting;
503
+ export declare namespace resource {
504
+ enum WatchState {
505
+ IDLE = 0,
506
+ SYNCING = 1,
507
+ SYNCED = 2,
508
+ ERROR = 3,
509
+ STOPPED = 4,
510
+ FAILED = 5,
511
+ FORBIDDEN = 6,
512
+ SKIPPED = 7
513
+ }
514
+ enum SyncPolicy {
515
+ ON_CONNECT = 0,
516
+ ON_FIRST_QUERY = 1,
517
+ NEVER = 2
518
+ }
519
+ class SchemaProperty {
520
+ type: string;
521
+ description?: string;
522
+ enum?: string[];
523
+ default?: any;
524
+ minimum?: number;
525
+ maximum?: number;
526
+ properties?: Record<string, SchemaProperty>;
527
+ required?: string[];
528
+ static createFrom(source?: any): SchemaProperty;
508
529
  constructor(source?: any);
509
530
  convertValues(a: any, classs: any, asMap?: boolean): any;
510
531
  }
511
- class Category {
512
- settings: Record<string, Setting>;
513
- id: string;
514
- label: string;
515
- description: string;
516
- icon: string;
517
- static createFrom(source?: any): Category;
532
+ class Schema {
533
+ properties?: Record<string, SchemaProperty>;
534
+ required?: string[];
535
+ static createFrom(source?: any): Schema;
518
536
  constructor(source?: any);
519
537
  convertValues(a: any, classs: any, asMap?: boolean): any;
520
538
  }
521
- }
522
- export declare namespace time {
523
- class Time {
524
- static createFrom(source?: any): Time;
525
- constructor(source?: any);
526
- }
527
- }
528
- export declare namespace trivy {
529
- enum Command {
530
- CONFIG = "config",
531
- FILESYSTEM = "fs",
532
- IMAGE = "image",
533
- KUBERNETES = "kubernetes",
534
- REPOSITORY = "repository",
535
- ROOTFS = "rootfs",
536
- SBOM = "sbom"
537
- }
538
- enum Scanner {
539
- VULN = "vuln",
540
- MISCONFIG = "misconfig",
541
- SECRET = "secret",
542
- LICENSE = "license"
543
- }
544
- class ScanOptions {
545
- filePatterns: string[];
546
- skipDirs: string[];
547
- skipFiles: string[];
548
- scanners: string[];
549
- static createFrom(source?: any): ScanOptions;
550
- constructor(source?: any);
551
- }
552
- class ScanResult {
553
- timestamp: time.Time;
554
- result: Record<string, any>;
555
- id: string;
556
- command: Command;
557
- static createFrom(source?: any): ScanResult;
558
- constructor(source?: any);
559
- convertValues(a: any, classs: any, asMap?: boolean): any;
560
- }
561
- }
562
- export declare namespace types {
563
- enum ConnectionStatusCode {
564
- UNKNOWN = "UNKNOWN",
565
- CONNECTED = "CONNECTED",
566
- DISCONNECTED = "DISCONNECTED",
567
- PENDING = "PENDING",
568
- FAILED = "FAILED",
569
- ERROR = "ERROR",
570
- UNAUTHORIZED = "UNAUTHORIZED",
571
- FORBIDDEN = "FORBIDDEN",
572
- BAD_REQUEST = "BAD_REQUEST",
573
- NOT_FOUND = "NOT_FOUND",
574
- TIMEOUT = "TIMEOUT",
575
- UNAVAILABLE = "UNAVAILABLE",
576
- REQUEST_ENTITY_TOO_LARGE = "REQUEST_ENTITY_TOO_LARGE"
577
- }
578
539
  class ActionDescriptor {
579
540
  id: string;
580
541
  label: string;
@@ -582,8 +543,12 @@ export declare namespace types {
582
543
  icon: string;
583
544
  scope: string;
584
545
  streaming: boolean;
546
+ paramsSchema?: Schema;
547
+ outputSchema?: Schema;
548
+ dangerous?: boolean;
585
549
  static createFrom(source?: any): ActionDescriptor;
586
550
  constructor(source?: any);
551
+ convertValues(a: any, classs: any, asMap?: boolean): any;
587
552
  }
588
553
  class ActionInput {
589
554
  id: string;
@@ -599,14 +564,6 @@ export declare namespace types {
599
564
  static createFrom(source?: any): ActionResult;
600
565
  constructor(source?: any);
601
566
  }
602
- class ActionTargetBuilder {
603
- selectors: Record<string, string>;
604
- label_selector: string;
605
- label: string;
606
- paths: string[];
607
- static createFrom(source?: any): ActionTargetBuilder;
608
- constructor(source?: any);
609
- }
610
567
  class ResourceLink {
611
568
  idAccessor: string;
612
569
  namespaceAccessor: string;
@@ -619,7 +576,7 @@ export declare namespace types {
619
576
  static createFrom(source?: any): ResourceLink;
620
577
  constructor(source?: any);
621
578
  }
622
- class ColumnDef {
579
+ class ColumnDefinition {
623
580
  id: string;
624
581
  header: string;
625
582
  accessor: string;
@@ -634,57 +591,31 @@ export declare namespace types {
634
591
  componentParams?: any;
635
592
  resourceLink?: ResourceLink;
636
593
  valueMap?: Record<string, string>;
637
- static createFrom(source?: any): ColumnDef;
638
- constructor(source?: any);
639
- convertValues(a: any, classs: any, asMap?: boolean): any;
640
- }
641
- class Connection {
642
- last_refresh: time.Time;
643
- data: Record<string, any>;
644
- labels: Record<string, any>;
645
- id: string;
646
- uid: string;
647
- name: string;
648
- description: string;
649
- avatar: string;
650
- expiry_time: number;
651
- Client: any;
652
- static createFrom(source?: any): Connection;
653
- constructor(source?: any);
654
- convertValues(a: any, classs: any, asMap?: boolean): any;
655
- }
656
- class ConnectionStatus {
657
- connection?: Connection;
658
- status: ConnectionStatusCode;
659
- error: string;
660
- details: string;
661
- static createFrom(source?: any): ConnectionStatus;
594
+ static createFrom(source?: any): ColumnDefinition;
662
595
  constructor(source?: any);
663
596
  convertValues(a: any, classs: any, asMap?: boolean): any;
664
597
  }
665
598
  class CreateInput {
666
- params: any;
667
- input: Record<string, any>;
599
+ input: number[];
668
600
  namespace: string;
669
601
  static createFrom(source?: any): CreateInput;
670
602
  constructor(source?: any);
671
603
  }
672
604
  class CreateResult {
673
- result: Record<string, any>;
605
+ result: number[];
674
606
  success: boolean;
675
607
  static createFrom(source?: any): CreateResult;
676
608
  constructor(source?: any);
677
609
  }
678
610
  class DeleteInput {
679
- input: Record<string, any>;
680
- params: Record<string, any>;
681
611
  id: string;
682
612
  namespace: string;
613
+ gracePeriodSeconds?: number;
683
614
  static createFrom(source?: any): DeleteInput;
684
615
  constructor(source?: any);
685
616
  }
686
617
  class DeleteResult {
687
- result: Record<string, any>;
618
+ result: number[];
688
619
  success: boolean;
689
620
  static createFrom(source?: any): DeleteResult;
690
621
  constructor(source?: any);
@@ -699,118 +630,163 @@ export declare namespace types {
699
630
  static createFrom(source?: any): EditorSchema;
700
631
  constructor(source?: any);
701
632
  }
633
+ class FilterPredicate {
634
+ field: string;
635
+ operator: string;
636
+ value?: any;
637
+ static createFrom(source?: any): FilterPredicate;
638
+ constructor(source?: any);
639
+ }
640
+ class FilterExpression {
641
+ logic?: string;
642
+ predicates?: FilterPredicate[];
643
+ groups?: FilterExpression[];
644
+ static createFrom(source?: any): FilterExpression;
645
+ constructor(source?: any);
646
+ convertValues(a: any, classs: any, asMap?: boolean): any;
647
+ }
648
+ class FilterField {
649
+ path: string;
650
+ displayName: string;
651
+ description: string;
652
+ type: string;
653
+ operators: string[];
654
+ allowedValues?: string[];
655
+ required?: boolean;
656
+ static createFrom(source?: any): FilterField;
657
+ constructor(source?: any);
658
+ }
702
659
  class PaginationParams {
703
660
  page: number;
704
661
  pageSize: number;
662
+ cursor?: string;
705
663
  static createFrom(source?: any): PaginationParams;
706
664
  constructor(source?: any);
707
665
  }
708
- class OrderParams {
709
- by: string;
710
- direction: boolean;
711
- static createFrom(source?: any): OrderParams;
666
+ class OrderField {
667
+ field: string;
668
+ descending: boolean;
669
+ static createFrom(source?: any): OrderField;
712
670
  constructor(source?: any);
713
671
  }
714
672
  class FindInput {
715
- params: Record<string, any>;
716
- conditions: Record<string, any>;
673
+ filters?: FilterExpression;
674
+ textQuery?: string;
717
675
  namespaces: string[];
718
- order: OrderParams;
676
+ order: OrderField[];
719
677
  pagination: PaginationParams;
720
678
  static createFrom(source?: any): FindInput;
721
679
  constructor(source?: any);
722
680
  convertValues(a: any, classs: any, asMap?: boolean): any;
723
681
  }
724
- class PaginationResult {
725
- page: number;
726
- pageSize: number;
727
- total: number;
728
- pages: number;
729
- static createFrom(source?: any): PaginationResult;
730
- constructor(source?: any);
731
- }
732
682
  class FindResult {
733
- result: any[];
683
+ result: number[][];
734
684
  success: boolean;
735
- pagination: PaginationResult;
685
+ totalCount: number;
686
+ nextCursor?: string;
736
687
  static createFrom(source?: any): FindResult;
737
688
  constructor(source?: any);
738
- convertValues(a: any, classs: any, asMap?: boolean): any;
739
689
  }
740
690
  class GetInput {
741
- params: Record<string, any>;
742
691
  id: string;
743
692
  namespace: string;
744
693
  static createFrom(source?: any): GetInput;
745
694
  constructor(source?: any);
746
695
  }
747
696
  class GetResult {
748
- result: Record<string, any>;
697
+ result: number[];
749
698
  success: boolean;
750
699
  static createFrom(source?: any): GetResult;
751
700
  constructor(source?: any);
752
701
  }
753
- class InformerConnectionSummary {
754
- connection: string;
755
- resources: Record<string, number>;
756
- resourceCounts: Record<string, number>;
757
- totalResources: number;
758
- syncedCount: number;
759
- errorCount: number;
760
- static createFrom(source?: any): InformerConnectionSummary;
761
- constructor(source?: any);
762
- }
763
- class LayoutItem {
764
- id: string;
765
- title: string;
766
- icon: string;
767
- description: string;
768
- items: LayoutItem[];
769
- static createFrom(source?: any): LayoutItem;
702
+ class HealthCondition {
703
+ type: string;
704
+ status: string;
705
+ reason?: string;
706
+ message?: string;
707
+ lastProbeTime?: time.Time;
708
+ lastTransitionTime?: time.Time;
709
+ static createFrom(source?: any): HealthCondition;
770
710
  constructor(source?: any);
771
711
  convertValues(a: any, classs: any, asMap?: boolean): any;
772
712
  }
773
713
  class ListInput {
774
- params: Record<string, any>;
775
714
  namespaces: string[];
776
- order: OrderParams;
715
+ order: OrderField[];
777
716
  pagination: PaginationParams;
778
717
  static createFrom(source?: any): ListInput;
779
718
  constructor(source?: any);
780
719
  convertValues(a: any, classs: any, asMap?: boolean): any;
781
720
  }
782
721
  class ListResult {
783
- result: any[];
722
+ result: number[][];
784
723
  success: boolean;
785
- pagination: PaginationResult;
724
+ totalCount: number;
725
+ nextCursor?: string;
786
726
  static createFrom(source?: any): ListResult;
787
727
  constructor(source?: any);
728
+ }
729
+ class RelationshipExtractor {
730
+ method: string;
731
+ fieldPath?: string;
732
+ ownerRefKind?: string;
733
+ labelSelector?: Record<string, string>;
734
+ static createFrom(source?: any): RelationshipExtractor;
735
+ constructor(source?: any);
736
+ }
737
+ class RelationshipDescriptor {
738
+ type: string;
739
+ targetResourceKey: string;
740
+ label: string;
741
+ inverseLabel?: string;
742
+ cardinality?: string;
743
+ extractor?: RelationshipExtractor;
744
+ static createFrom(source?: any): RelationshipDescriptor;
745
+ constructor(source?: any);
788
746
  convertValues(a: any, classs: any, asMap?: boolean): any;
789
747
  }
790
- class PluginInfo {
748
+ class ResourceRef {
749
+ pluginId?: string;
750
+ connectionId: string;
751
+ resourceKey: string;
791
752
  id: string;
792
- metadata: config.PluginMeta;
793
- phase: string;
794
- enabled: boolean;
795
- devMode: boolean;
796
- devPath?: string;
797
- capabilities: string[];
798
- lastError?: string;
799
- static createFrom(source?: any): PluginInfo;
753
+ namespace?: string;
754
+ displayName?: string;
755
+ static createFrom(source?: any): ResourceRef;
756
+ constructor(source?: any);
757
+ }
758
+ class ResolvedRelationship {
759
+ descriptor: RelationshipDescriptor;
760
+ targets: ResourceRef[];
761
+ static createFrom(source?: any): ResolvedRelationship;
800
762
  constructor(source?: any);
801
763
  convertValues(a: any, classs: any, asMap?: boolean): any;
802
764
  }
803
- class PluginStateRecord {
804
- id: string;
805
- phase: string;
806
- metadata: config.PluginMeta;
807
- enabled: boolean;
808
- devMode: boolean;
809
- devPath?: string;
810
- lastError?: string;
811
- errorCount: number;
812
- installedAt: time.Time;
813
- static createFrom(source?: any): PluginStateRecord;
765
+ class ScaleHint {
766
+ level: string;
767
+ expectedCount?: number;
768
+ defaultPageSize?: number;
769
+ static createFrom(source?: any): ScaleHint;
770
+ constructor(source?: any);
771
+ }
772
+ class ResourceCapabilities {
773
+ canGet: boolean;
774
+ canList: boolean;
775
+ canFind: boolean;
776
+ canCreate: boolean;
777
+ canUpdate: boolean;
778
+ canDelete: boolean;
779
+ watchable: boolean;
780
+ filterable: boolean;
781
+ searchable: boolean;
782
+ hasActions: boolean;
783
+ hasSchema: boolean;
784
+ namespaceScoped: boolean;
785
+ hasRelationships: boolean;
786
+ hasHealth: boolean;
787
+ hasEvents: boolean;
788
+ scaleHint?: ScaleHint;
789
+ static createFrom(source?: any): ResourceCapabilities;
814
790
  constructor(source?: any);
815
791
  convertValues(a: any, classs: any, asMap?: boolean): any;
816
792
  }
@@ -818,12 +794,23 @@ export declare namespace types {
818
794
  id_accessor: string;
819
795
  namespace_accessor: string;
820
796
  memoizer_accessor: string;
821
- columnDefs: ColumnDef[];
822
- supportedOperations?: number[];
797
+ columnDefs: ColumnDefinition[];
823
798
  static createFrom(source?: any): ResourceDefinition;
824
799
  constructor(source?: any);
825
800
  convertValues(a: any, classs: any, asMap?: boolean): any;
826
801
  }
802
+ class ResourceEvent {
803
+ type: string;
804
+ reason: string;
805
+ message: string;
806
+ source?: string;
807
+ count?: number;
808
+ firstSeen: time.Time;
809
+ lastSeen: time.Time;
810
+ static createFrom(source?: any): ResourceEvent;
811
+ constructor(source?: any);
812
+ convertValues(a: any, classs: any, asMap?: boolean): any;
813
+ }
827
814
  class ResourceGroup {
828
815
  id: string;
829
816
  name: string;
@@ -834,6 +821,16 @@ export declare namespace types {
834
821
  constructor(source?: any);
835
822
  convertValues(a: any, classs: any, asMap?: boolean): any;
836
823
  }
824
+ class ResourceHealth {
825
+ status: string;
826
+ reason?: string;
827
+ message?: string;
828
+ since?: time.Time;
829
+ conditions?: HealthCondition[];
830
+ static createFrom(source?: any): ResourceHealth;
831
+ constructor(source?: any);
832
+ convertValues(a: any, classs: any, asMap?: boolean): any;
833
+ }
837
834
  class ResourceMeta {
838
835
  group: string;
839
836
  version: string;
@@ -846,19 +843,208 @@ export declare namespace types {
846
843
  constructor(source?: any);
847
844
  }
848
845
  class UpdateInput {
849
- input: Record<string, any>;
850
- params: Record<string, any>;
846
+ input: number[];
851
847
  id: string;
852
848
  namespace: string;
853
849
  static createFrom(source?: any): UpdateInput;
854
850
  constructor(source?: any);
855
851
  }
856
852
  class UpdateResult {
857
- result: Record<string, any>;
853
+ result: number[];
858
854
  success: boolean;
859
855
  static createFrom(source?: any): UpdateResult;
860
856
  constructor(source?: any);
861
857
  }
858
+ class WatchScope {
859
+ partitions?: string[];
860
+ static createFrom(source?: any): WatchScope;
861
+ constructor(source?: any);
862
+ }
863
+ class WatchConnectionSummary {
864
+ connectionId: string;
865
+ resources: Record<string, number>;
866
+ resourceCounts: Record<string, number>;
867
+ scope?: WatchScope;
868
+ static createFrom(source?: any): WatchConnectionSummary;
869
+ constructor(source?: any);
870
+ convertValues(a: any, classs: any, asMap?: boolean): any;
871
+ }
872
+ }
873
+ export declare namespace settings {
874
+ enum SettingType {
875
+ TEXT = "text",
876
+ SELECT = "select",
877
+ MULTISELECT = "multiselect",
878
+ INTEGER = "integer",
879
+ FLOAT = "float",
880
+ TOGGLE = "toggle",
881
+ COLOR = "color",
882
+ DATETIME = "datetime",
883
+ PASSWORD = "password"
884
+ }
885
+ class SettingFileSelection {
886
+ enabled: boolean;
887
+ allowFolders: boolean;
888
+ extensions: string[];
889
+ multiple: boolean;
890
+ relative: boolean;
891
+ defaultPath: string;
892
+ static createFrom(source?: any): SettingFileSelection;
893
+ constructor(source?: any);
894
+ }
895
+ class SettingOption {
896
+ label: string;
897
+ description: string;
898
+ value: any;
899
+ static createFrom(source?: any): SettingOption;
900
+ constructor(source?: any);
901
+ }
902
+ class Setting {
903
+ id: string;
904
+ label: string;
905
+ description: string;
906
+ type: SettingType;
907
+ value: any;
908
+ default: any;
909
+ options: SettingOption[];
910
+ fileSelection?: SettingFileSelection;
911
+ sensitive: boolean;
912
+ static createFrom(source?: any): Setting;
913
+ constructor(source?: any);
914
+ convertValues(a: any, classs: any, asMap?: boolean): any;
915
+ }
916
+ class Category {
917
+ settings: Record<string, Setting>;
918
+ id: string;
919
+ label: string;
920
+ description: string;
921
+ icon: string;
922
+ static createFrom(source?: any): Category;
923
+ constructor(source?: any);
924
+ convertValues(a: any, classs: any, asMap?: boolean): any;
925
+ }
926
+ }
927
+ export declare namespace time {
928
+ class Time {
929
+ static createFrom(source?: any): Time;
930
+ constructor(source?: any);
931
+ }
932
+ }
933
+ export declare namespace trivy {
934
+ enum Command {
935
+ CONFIG = "config",
936
+ FILESYSTEM = "fs",
937
+ IMAGE = "image",
938
+ KUBERNETES = "kubernetes",
939
+ REPOSITORY = "repository",
940
+ ROOTFS = "rootfs",
941
+ SBOM = "sbom"
942
+ }
943
+ enum Scanner {
944
+ VULN = "vuln",
945
+ MISCONFIG = "misconfig",
946
+ SECRET = "secret",
947
+ LICENSE = "license"
948
+ }
949
+ class ScanOptions {
950
+ filePatterns: string[];
951
+ skipDirs: string[];
952
+ skipFiles: string[];
953
+ scanners: string[];
954
+ static createFrom(source?: any): ScanOptions;
955
+ constructor(source?: any);
956
+ }
957
+ class ScanResult {
958
+ timestamp: time.Time;
959
+ result: Record<string, any>;
960
+ id: string;
961
+ command: Command;
962
+ static createFrom(source?: any): ScanResult;
963
+ constructor(source?: any);
964
+ convertValues(a: any, classs: any, asMap?: boolean): any;
965
+ }
966
+ }
967
+ export declare namespace types {
968
+ enum ConnectionStatusCode {
969
+ UNKNOWN = "UNKNOWN",
970
+ CONNECTED = "CONNECTED",
971
+ DISCONNECTED = "DISCONNECTED",
972
+ PENDING = "PENDING",
973
+ FAILED = "FAILED",
974
+ ERROR = "ERROR",
975
+ UNAUTHORIZED = "UNAUTHORIZED",
976
+ FORBIDDEN = "FORBIDDEN",
977
+ BAD_REQUEST = "BAD_REQUEST",
978
+ NOT_FOUND = "NOT_FOUND",
979
+ TIMEOUT = "TIMEOUT",
980
+ UNAVAILABLE = "UNAVAILABLE",
981
+ REQUEST_ENTITY_TOO_LARGE = "REQUEST_ENTITY_TOO_LARGE"
982
+ }
983
+ class ConnectionAutoConnect {
984
+ enabled: boolean;
985
+ triggers: string[];
986
+ retry: string;
987
+ static createFrom(source?: any): ConnectionAutoConnect;
988
+ constructor(source?: any);
989
+ }
990
+ class ConnectionLifecycle {
991
+ auto_connect?: ConnectionAutoConnect;
992
+ static createFrom(source?: any): ConnectionLifecycle;
993
+ constructor(source?: any);
994
+ convertValues(a: any, classs: any, asMap?: boolean): any;
995
+ }
996
+ class Connection {
997
+ last_refresh: time.Time;
998
+ data: Record<string, any>;
999
+ labels: Record<string, any>;
1000
+ lifecycle: ConnectionLifecycle;
1001
+ id: string;
1002
+ uid: string;
1003
+ name: string;
1004
+ description: string;
1005
+ avatar: string;
1006
+ expiry_time: number;
1007
+ Client: any;
1008
+ static createFrom(source?: any): Connection;
1009
+ constructor(source?: any);
1010
+ convertValues(a: any, classs: any, asMap?: boolean): any;
1011
+ }
1012
+ class ConnectionStatus {
1013
+ connection?: Connection;
1014
+ status: ConnectionStatusCode;
1015
+ error: string;
1016
+ details: string;
1017
+ static createFrom(source?: any): ConnectionStatus;
1018
+ constructor(source?: any);
1019
+ convertValues(a: any, classs: any, asMap?: boolean): any;
1020
+ }
1021
+ class PluginInfo {
1022
+ id: string;
1023
+ metadata: config.PluginMeta;
1024
+ phase: string;
1025
+ enabled: boolean;
1026
+ devMode: boolean;
1027
+ devPath?: string;
1028
+ capabilities: string[];
1029
+ lastError?: string;
1030
+ static createFrom(source?: any): PluginInfo;
1031
+ constructor(source?: any);
1032
+ convertValues(a: any, classs: any, asMap?: boolean): any;
1033
+ }
1034
+ class PluginStateRecord {
1035
+ id: string;
1036
+ phase: string;
1037
+ metadata: config.PluginMeta;
1038
+ enabled: boolean;
1039
+ devMode: boolean;
1040
+ devPath?: string;
1041
+ lastError?: string;
1042
+ errorCount: number;
1043
+ installedAt: time.Time;
1044
+ static createFrom(source?: any): PluginStateRecord;
1045
+ constructor(source?: any);
1046
+ convertValues(a: any, classs: any, asMap?: boolean): any;
1047
+ }
862
1048
  }
863
1049
  export declare namespace ui {
864
1050
  class GetPluginComponentsInput {