@omniviewdev/runtime 0.1.11 → 0.2.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.
- package/dist/Client-BRYjLBXY.cjs +1 -0
- package/dist/{Client-DRRyPmcf.js → Client-RGYOEzh2.js} +312 -275
- package/dist/api.cjs +1 -1
- package/dist/api.d.ts +1 -0
- package/dist/api.js +95 -51
- package/dist/context/drawer/types.d.ts +1 -1
- package/dist/errors/types.d.ts +2 -0
- package/dist/hooks/connection/useConnectionStatus.d.ts +3 -3
- package/dist/hooks/connection/useConnections.d.ts +2 -2
- package/dist/hooks/resource/index.d.ts +2 -1
- package/dist/hooks/resource/useActiveSyncs.d.ts +2 -2
- package/dist/hooks/resource/useEditorSchemas.d.ts +2 -2
- package/dist/hooks/resource/useEventBatcher.d.ts +55 -0
- package/dist/hooks/resource/useResource.d.ts +9 -21
- package/dist/hooks/resource/useResourceActions.d.ts +3 -3
- package/dist/hooks/resource/useResourceGroups.d.ts +1 -1
- package/dist/hooks/resource/useResourceMutations.d.ts +14 -7
- package/dist/hooks/resource/useResourceType.d.ts +1 -1
- package/dist/hooks/resource/useResourceTypes.d.ts +1 -1
- package/dist/hooks/resource/useResources.d.ts +14 -22
- package/dist/hooks/resource/useWatchState.d.ts +28 -0
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1405 -1294
- package/dist/models.cjs +1 -1
- package/dist/models.js +1319 -994
- package/dist/types/index.d.ts +1 -1
- package/dist/types/watch.d.ts +29 -0
- package/dist/utils/activeSyncAggregator.d.ts +13 -8
- package/dist/utils/resourceKey.d.ts +12 -0
- package/dist/wailsjs/go/devserver/DevServerManager.d.ts +2 -0
- package/dist/wailsjs/go/models.d.ts +400 -240
- package/dist/wailsjs/go/plugin/pluginManager.d.ts +3 -1
- package/dist/wailsjs/go/pluginlog/Manager.d.ts +18 -0
- package/dist/wailsjs/go/resource/Client.d.ts +39 -23
- package/package.json +1 -1
- package/dist/Client-BtQwAB3N.cjs +0 -1
- package/dist/errors/parseAppError.test.d.ts +0 -1
- package/dist/hooks/resource/useInformerState.d.ts +0 -24
- package/dist/types/informer.d.ts +0 -49
- 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:
|
|
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:
|
|
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:
|
|
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:
|
|
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,9 +500,355 @@ export declare namespace registry {
|
|
|
467
500
|
constructor(source?: any);
|
|
468
501
|
}
|
|
469
502
|
}
|
|
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;
|
|
529
|
+
constructor(source?: any);
|
|
530
|
+
convertValues(a: any, classs: any, asMap?: boolean): any;
|
|
531
|
+
}
|
|
532
|
+
class Schema {
|
|
533
|
+
properties?: Record<string, SchemaProperty>;
|
|
534
|
+
required?: string[];
|
|
535
|
+
static createFrom(source?: any): Schema;
|
|
536
|
+
constructor(source?: any);
|
|
537
|
+
convertValues(a: any, classs: any, asMap?: boolean): any;
|
|
538
|
+
}
|
|
539
|
+
class ActionDescriptor {
|
|
540
|
+
id: string;
|
|
541
|
+
label: string;
|
|
542
|
+
description: string;
|
|
543
|
+
icon: string;
|
|
544
|
+
scope: string;
|
|
545
|
+
streaming: boolean;
|
|
546
|
+
paramsSchema?: Schema;
|
|
547
|
+
outputSchema?: Schema;
|
|
548
|
+
dangerous?: boolean;
|
|
549
|
+
static createFrom(source?: any): ActionDescriptor;
|
|
550
|
+
constructor(source?: any);
|
|
551
|
+
convertValues(a: any, classs: any, asMap?: boolean): any;
|
|
552
|
+
}
|
|
553
|
+
class ActionInput {
|
|
554
|
+
id: string;
|
|
555
|
+
namespace: string;
|
|
556
|
+
params: Record<string, any>;
|
|
557
|
+
static createFrom(source?: any): ActionInput;
|
|
558
|
+
constructor(source?: any);
|
|
559
|
+
}
|
|
560
|
+
class ActionResult {
|
|
561
|
+
success: boolean;
|
|
562
|
+
data: Record<string, any>;
|
|
563
|
+
message: string;
|
|
564
|
+
static createFrom(source?: any): ActionResult;
|
|
565
|
+
constructor(source?: any);
|
|
566
|
+
}
|
|
567
|
+
class ClientCreateInput {
|
|
568
|
+
input: any;
|
|
569
|
+
namespace: string;
|
|
570
|
+
static createFrom(source?: any): ClientCreateInput;
|
|
571
|
+
constructor(source?: any);
|
|
572
|
+
}
|
|
573
|
+
class ClientListResult {
|
|
574
|
+
result: any[];
|
|
575
|
+
success: boolean;
|
|
576
|
+
totalCount: number;
|
|
577
|
+
nextCursor?: string;
|
|
578
|
+
static createFrom(source?: any): ClientListResult;
|
|
579
|
+
constructor(source?: any);
|
|
580
|
+
}
|
|
581
|
+
class ClientResult {
|
|
582
|
+
result: any;
|
|
583
|
+
success: boolean;
|
|
584
|
+
static createFrom(source?: any): ClientResult;
|
|
585
|
+
constructor(source?: any);
|
|
586
|
+
}
|
|
587
|
+
class ClientUpdateInput {
|
|
588
|
+
input: any;
|
|
589
|
+
id: string;
|
|
590
|
+
namespace: string;
|
|
591
|
+
static createFrom(source?: any): ClientUpdateInput;
|
|
592
|
+
constructor(source?: any);
|
|
593
|
+
}
|
|
594
|
+
class ResourceLink {
|
|
595
|
+
idAccessor: string;
|
|
596
|
+
namespaceAccessor: string;
|
|
597
|
+
namespaced: boolean;
|
|
598
|
+
resourceKey: string;
|
|
599
|
+
keyAccessor: string;
|
|
600
|
+
keyMap: Record<string, string>;
|
|
601
|
+
detailExtractors: Record<string, string>;
|
|
602
|
+
displayId: boolean;
|
|
603
|
+
static createFrom(source?: any): ResourceLink;
|
|
604
|
+
constructor(source?: any);
|
|
605
|
+
}
|
|
606
|
+
class ColumnDefinition {
|
|
607
|
+
id: string;
|
|
608
|
+
header: string;
|
|
609
|
+
accessor: string;
|
|
610
|
+
accessorPriority?: string;
|
|
611
|
+
colorMap?: Record<string, string>;
|
|
612
|
+
color?: string;
|
|
613
|
+
align?: string;
|
|
614
|
+
hidden?: boolean;
|
|
615
|
+
width?: number;
|
|
616
|
+
formatter?: string;
|
|
617
|
+
component?: string;
|
|
618
|
+
componentParams?: any;
|
|
619
|
+
resourceLink?: ResourceLink;
|
|
620
|
+
valueMap?: Record<string, string>;
|
|
621
|
+
static createFrom(source?: any): ColumnDefinition;
|
|
622
|
+
constructor(source?: any);
|
|
623
|
+
convertValues(a: any, classs: any, asMap?: boolean): any;
|
|
624
|
+
}
|
|
625
|
+
class DeleteInput {
|
|
626
|
+
id: string;
|
|
627
|
+
namespace: string;
|
|
628
|
+
gracePeriodSeconds?: number;
|
|
629
|
+
static createFrom(source?: any): DeleteInput;
|
|
630
|
+
constructor(source?: any);
|
|
631
|
+
}
|
|
632
|
+
class EditorSchema {
|
|
633
|
+
resourceKey: string;
|
|
634
|
+
fileMatch: string;
|
|
635
|
+
uri: string;
|
|
636
|
+
url?: string;
|
|
637
|
+
content?: number[];
|
|
638
|
+
language: string;
|
|
639
|
+
static createFrom(source?: any): EditorSchema;
|
|
640
|
+
constructor(source?: any);
|
|
641
|
+
}
|
|
642
|
+
class FilterPredicate {
|
|
643
|
+
field: string;
|
|
644
|
+
operator: string;
|
|
645
|
+
value?: any;
|
|
646
|
+
static createFrom(source?: any): FilterPredicate;
|
|
647
|
+
constructor(source?: any);
|
|
648
|
+
}
|
|
649
|
+
class FilterExpression {
|
|
650
|
+
logic?: string;
|
|
651
|
+
predicates?: FilterPredicate[];
|
|
652
|
+
groups?: FilterExpression[];
|
|
653
|
+
static createFrom(source?: any): FilterExpression;
|
|
654
|
+
constructor(source?: any);
|
|
655
|
+
convertValues(a: any, classs: any, asMap?: boolean): any;
|
|
656
|
+
}
|
|
657
|
+
class FilterField {
|
|
658
|
+
path: string;
|
|
659
|
+
displayName: string;
|
|
660
|
+
description: string;
|
|
661
|
+
type: string;
|
|
662
|
+
operators: string[];
|
|
663
|
+
allowedValues?: string[];
|
|
664
|
+
required?: boolean;
|
|
665
|
+
static createFrom(source?: any): FilterField;
|
|
666
|
+
constructor(source?: any);
|
|
667
|
+
}
|
|
668
|
+
class PaginationParams {
|
|
669
|
+
page: number;
|
|
670
|
+
pageSize: number;
|
|
671
|
+
cursor?: string;
|
|
672
|
+
static createFrom(source?: any): PaginationParams;
|
|
673
|
+
constructor(source?: any);
|
|
674
|
+
}
|
|
675
|
+
class OrderField {
|
|
676
|
+
field: string;
|
|
677
|
+
descending: boolean;
|
|
678
|
+
static createFrom(source?: any): OrderField;
|
|
679
|
+
constructor(source?: any);
|
|
680
|
+
}
|
|
681
|
+
class FindInput {
|
|
682
|
+
filters?: FilterExpression;
|
|
683
|
+
textQuery?: string;
|
|
684
|
+
namespaces: string[];
|
|
685
|
+
order: OrderField[];
|
|
686
|
+
pagination: PaginationParams;
|
|
687
|
+
static createFrom(source?: any): FindInput;
|
|
688
|
+
constructor(source?: any);
|
|
689
|
+
convertValues(a: any, classs: any, asMap?: boolean): any;
|
|
690
|
+
}
|
|
691
|
+
class GetInput {
|
|
692
|
+
id: string;
|
|
693
|
+
namespace: string;
|
|
694
|
+
static createFrom(source?: any): GetInput;
|
|
695
|
+
constructor(source?: any);
|
|
696
|
+
}
|
|
697
|
+
class HealthCondition {
|
|
698
|
+
type: string;
|
|
699
|
+
status: string;
|
|
700
|
+
reason?: string;
|
|
701
|
+
message?: string;
|
|
702
|
+
lastProbeTime?: time.Time;
|
|
703
|
+
lastTransitionTime?: time.Time;
|
|
704
|
+
static createFrom(source?: any): HealthCondition;
|
|
705
|
+
constructor(source?: any);
|
|
706
|
+
convertValues(a: any, classs: any, asMap?: boolean): any;
|
|
707
|
+
}
|
|
708
|
+
class ListInput {
|
|
709
|
+
namespaces: string[];
|
|
710
|
+
order: OrderField[];
|
|
711
|
+
pagination: PaginationParams;
|
|
712
|
+
static createFrom(source?: any): ListInput;
|
|
713
|
+
constructor(source?: any);
|
|
714
|
+
convertValues(a: any, classs: any, asMap?: boolean): any;
|
|
715
|
+
}
|
|
716
|
+
class RelationshipExtractor {
|
|
717
|
+
method: string;
|
|
718
|
+
fieldPath?: string;
|
|
719
|
+
ownerRefKind?: string;
|
|
720
|
+
labelSelector?: Record<string, string>;
|
|
721
|
+
static createFrom(source?: any): RelationshipExtractor;
|
|
722
|
+
constructor(source?: any);
|
|
723
|
+
}
|
|
724
|
+
class RelationshipDescriptor {
|
|
725
|
+
type: string;
|
|
726
|
+
targetResourceKey: string;
|
|
727
|
+
label: string;
|
|
728
|
+
inverseLabel?: string;
|
|
729
|
+
cardinality?: string;
|
|
730
|
+
extractor?: RelationshipExtractor;
|
|
731
|
+
static createFrom(source?: any): RelationshipDescriptor;
|
|
732
|
+
constructor(source?: any);
|
|
733
|
+
convertValues(a: any, classs: any, asMap?: boolean): any;
|
|
734
|
+
}
|
|
735
|
+
class ResourceRef {
|
|
736
|
+
pluginId?: string;
|
|
737
|
+
connectionId: string;
|
|
738
|
+
resourceKey: string;
|
|
739
|
+
id: string;
|
|
740
|
+
namespace?: string;
|
|
741
|
+
displayName?: string;
|
|
742
|
+
static createFrom(source?: any): ResourceRef;
|
|
743
|
+
constructor(source?: any);
|
|
744
|
+
}
|
|
745
|
+
class ResolvedRelationship {
|
|
746
|
+
descriptor: RelationshipDescriptor;
|
|
747
|
+
targets: ResourceRef[];
|
|
748
|
+
static createFrom(source?: any): ResolvedRelationship;
|
|
749
|
+
constructor(source?: any);
|
|
750
|
+
convertValues(a: any, classs: any, asMap?: boolean): any;
|
|
751
|
+
}
|
|
752
|
+
class ScaleHint {
|
|
753
|
+
level: string;
|
|
754
|
+
expectedCount?: number;
|
|
755
|
+
defaultPageSize?: number;
|
|
756
|
+
static createFrom(source?: any): ScaleHint;
|
|
757
|
+
constructor(source?: any);
|
|
758
|
+
}
|
|
759
|
+
class ResourceCapabilities {
|
|
760
|
+
canGet: boolean;
|
|
761
|
+
canList: boolean;
|
|
762
|
+
canFind: boolean;
|
|
763
|
+
canCreate: boolean;
|
|
764
|
+
canUpdate: boolean;
|
|
765
|
+
canDelete: boolean;
|
|
766
|
+
watchable: boolean;
|
|
767
|
+
filterable: boolean;
|
|
768
|
+
searchable: boolean;
|
|
769
|
+
hasActions: boolean;
|
|
770
|
+
hasSchema: boolean;
|
|
771
|
+
namespaceScoped: boolean;
|
|
772
|
+
hasRelationships: boolean;
|
|
773
|
+
hasHealth: boolean;
|
|
774
|
+
hasEvents: boolean;
|
|
775
|
+
scaleHint?: ScaleHint;
|
|
776
|
+
static createFrom(source?: any): ResourceCapabilities;
|
|
777
|
+
constructor(source?: any);
|
|
778
|
+
convertValues(a: any, classs: any, asMap?: boolean): any;
|
|
779
|
+
}
|
|
780
|
+
class ResourceDefinition {
|
|
781
|
+
id_accessor: string;
|
|
782
|
+
namespace_accessor: string;
|
|
783
|
+
memoizer_accessor: string;
|
|
784
|
+
columnDefs: ColumnDefinition[];
|
|
785
|
+
static createFrom(source?: any): ResourceDefinition;
|
|
786
|
+
constructor(source?: any);
|
|
787
|
+
convertValues(a: any, classs: any, asMap?: boolean): any;
|
|
788
|
+
}
|
|
789
|
+
class ResourceEvent {
|
|
790
|
+
type: string;
|
|
791
|
+
reason: string;
|
|
792
|
+
message: string;
|
|
793
|
+
source?: string;
|
|
794
|
+
count?: number;
|
|
795
|
+
firstSeen: time.Time;
|
|
796
|
+
lastSeen: time.Time;
|
|
797
|
+
static createFrom(source?: any): ResourceEvent;
|
|
798
|
+
constructor(source?: any);
|
|
799
|
+
convertValues(a: any, classs: any, asMap?: boolean): any;
|
|
800
|
+
}
|
|
801
|
+
class ResourceGroup {
|
|
802
|
+
id: string;
|
|
803
|
+
name: string;
|
|
804
|
+
description: string;
|
|
805
|
+
icon: string;
|
|
806
|
+
resources: Record<string, Array<ResourceMeta>>;
|
|
807
|
+
static createFrom(source?: any): ResourceGroup;
|
|
808
|
+
constructor(source?: any);
|
|
809
|
+
convertValues(a: any, classs: any, asMap?: boolean): any;
|
|
810
|
+
}
|
|
811
|
+
class ResourceHealth {
|
|
812
|
+
status: string;
|
|
813
|
+
reason?: string;
|
|
814
|
+
message?: string;
|
|
815
|
+
since?: time.Time;
|
|
816
|
+
conditions?: HealthCondition[];
|
|
817
|
+
static createFrom(source?: any): ResourceHealth;
|
|
818
|
+
constructor(source?: any);
|
|
819
|
+
convertValues(a: any, classs: any, asMap?: boolean): any;
|
|
820
|
+
}
|
|
821
|
+
class ResourceMeta {
|
|
822
|
+
group: string;
|
|
823
|
+
version: string;
|
|
824
|
+
kind: string;
|
|
825
|
+
label: string;
|
|
826
|
+
icon: string;
|
|
827
|
+
description: string;
|
|
828
|
+
category: string;
|
|
829
|
+
static createFrom(source?: any): ResourceMeta;
|
|
830
|
+
constructor(source?: any);
|
|
831
|
+
}
|
|
832
|
+
class WatchScope {
|
|
833
|
+
partitions?: string[];
|
|
834
|
+
static createFrom(source?: any): WatchScope;
|
|
835
|
+
constructor(source?: any);
|
|
836
|
+
}
|
|
837
|
+
class WatchConnectionSummary {
|
|
838
|
+
connectionId: string;
|
|
839
|
+
resources: Record<string, number>;
|
|
840
|
+
resourceCounts: Record<string, number>;
|
|
841
|
+
scope?: WatchScope;
|
|
842
|
+
static createFrom(source?: any): WatchConnectionSummary;
|
|
843
|
+
constructor(source?: any);
|
|
844
|
+
convertValues(a: any, classs: any, asMap?: boolean): any;
|
|
845
|
+
}
|
|
846
|
+
}
|
|
470
847
|
export declare namespace settings {
|
|
471
848
|
enum SettingType {
|
|
472
849
|
TEXT = "text",
|
|
850
|
+
SELECT = "select",
|
|
851
|
+
MULTISELECT = "multiselect",
|
|
473
852
|
INTEGER = "integer",
|
|
474
853
|
FLOAT = "float",
|
|
475
854
|
TOGGLE = "toggle",
|
|
@@ -526,6 +905,12 @@ export declare namespace time {
|
|
|
526
905
|
}
|
|
527
906
|
}
|
|
528
907
|
export declare namespace trivy {
|
|
908
|
+
enum Scanner {
|
|
909
|
+
VULN = "vuln",
|
|
910
|
+
MISCONFIG = "misconfig",
|
|
911
|
+
SECRET = "secret",
|
|
912
|
+
LICENSE = "license"
|
|
913
|
+
}
|
|
529
914
|
enum Command {
|
|
530
915
|
CONFIG = "config",
|
|
531
916
|
FILESYSTEM = "fs",
|
|
@@ -535,12 +920,6 @@ export declare namespace trivy {
|
|
|
535
920
|
ROOTFS = "rootfs",
|
|
536
921
|
SBOM = "sbom"
|
|
537
922
|
}
|
|
538
|
-
enum Scanner {
|
|
539
|
-
VULN = "vuln",
|
|
540
|
-
MISCONFIG = "misconfig",
|
|
541
|
-
SECRET = "secret",
|
|
542
|
-
LICENSE = "license"
|
|
543
|
-
}
|
|
544
923
|
class ScanOptions {
|
|
545
924
|
filePatterns: string[];
|
|
546
925
|
skipDirs: string[];
|
|
@@ -575,66 +954,16 @@ export declare namespace types {
|
|
|
575
954
|
UNAVAILABLE = "UNAVAILABLE",
|
|
576
955
|
REQUEST_ENTITY_TOO_LARGE = "REQUEST_ENTITY_TOO_LARGE"
|
|
577
956
|
}
|
|
578
|
-
class
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
scope: string;
|
|
584
|
-
streaming: boolean;
|
|
585
|
-
static createFrom(source?: any): ActionDescriptor;
|
|
586
|
-
constructor(source?: any);
|
|
587
|
-
}
|
|
588
|
-
class ActionInput {
|
|
589
|
-
id: string;
|
|
590
|
-
namespace: string;
|
|
591
|
-
params: Record<string, any>;
|
|
592
|
-
static createFrom(source?: any): ActionInput;
|
|
593
|
-
constructor(source?: any);
|
|
594
|
-
}
|
|
595
|
-
class ActionResult {
|
|
596
|
-
success: boolean;
|
|
597
|
-
data: Record<string, any>;
|
|
598
|
-
message: string;
|
|
599
|
-
static createFrom(source?: any): ActionResult;
|
|
600
|
-
constructor(source?: any);
|
|
601
|
-
}
|
|
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
|
-
class ResourceLink {
|
|
611
|
-
idAccessor: string;
|
|
612
|
-
namespaceAccessor: string;
|
|
613
|
-
namespaced: boolean;
|
|
614
|
-
resourceKey: string;
|
|
615
|
-
keyAccessor: string;
|
|
616
|
-
keyMap: Record<string, string>;
|
|
617
|
-
detailExtractors: Record<string, string>;
|
|
618
|
-
displayId: boolean;
|
|
619
|
-
static createFrom(source?: any): ResourceLink;
|
|
957
|
+
class ConnectionAutoConnect {
|
|
958
|
+
enabled: boolean;
|
|
959
|
+
triggers: string[];
|
|
960
|
+
retry: string;
|
|
961
|
+
static createFrom(source?: any): ConnectionAutoConnect;
|
|
620
962
|
constructor(source?: any);
|
|
621
963
|
}
|
|
622
|
-
class
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
accessor: string;
|
|
626
|
-
accessorPriority?: string;
|
|
627
|
-
colorMap?: Record<string, string>;
|
|
628
|
-
color?: string;
|
|
629
|
-
align?: string;
|
|
630
|
-
hidden?: boolean;
|
|
631
|
-
width?: number;
|
|
632
|
-
formatter?: string;
|
|
633
|
-
component?: string;
|
|
634
|
-
componentParams?: any;
|
|
635
|
-
resourceLink?: ResourceLink;
|
|
636
|
-
valueMap?: Record<string, string>;
|
|
637
|
-
static createFrom(source?: any): ColumnDef;
|
|
964
|
+
class ConnectionLifecycle {
|
|
965
|
+
auto_connect?: ConnectionAutoConnect;
|
|
966
|
+
static createFrom(source?: any): ConnectionLifecycle;
|
|
638
967
|
constructor(source?: any);
|
|
639
968
|
convertValues(a: any, classs: any, asMap?: boolean): any;
|
|
640
969
|
}
|
|
@@ -642,6 +971,7 @@ export declare namespace types {
|
|
|
642
971
|
last_refresh: time.Time;
|
|
643
972
|
data: Record<string, any>;
|
|
644
973
|
labels: Record<string, any>;
|
|
974
|
+
lifecycle: ConnectionLifecycle;
|
|
645
975
|
id: string;
|
|
646
976
|
uid: string;
|
|
647
977
|
name: string;
|
|
@@ -662,131 +992,6 @@ export declare namespace types {
|
|
|
662
992
|
constructor(source?: any);
|
|
663
993
|
convertValues(a: any, classs: any, asMap?: boolean): any;
|
|
664
994
|
}
|
|
665
|
-
class CreateInput {
|
|
666
|
-
params: any;
|
|
667
|
-
input: Record<string, any>;
|
|
668
|
-
namespace: string;
|
|
669
|
-
static createFrom(source?: any): CreateInput;
|
|
670
|
-
constructor(source?: any);
|
|
671
|
-
}
|
|
672
|
-
class CreateResult {
|
|
673
|
-
result: Record<string, any>;
|
|
674
|
-
success: boolean;
|
|
675
|
-
static createFrom(source?: any): CreateResult;
|
|
676
|
-
constructor(source?: any);
|
|
677
|
-
}
|
|
678
|
-
class DeleteInput {
|
|
679
|
-
input: Record<string, any>;
|
|
680
|
-
params: Record<string, any>;
|
|
681
|
-
id: string;
|
|
682
|
-
namespace: string;
|
|
683
|
-
static createFrom(source?: any): DeleteInput;
|
|
684
|
-
constructor(source?: any);
|
|
685
|
-
}
|
|
686
|
-
class DeleteResult {
|
|
687
|
-
result: Record<string, any>;
|
|
688
|
-
success: boolean;
|
|
689
|
-
static createFrom(source?: any): DeleteResult;
|
|
690
|
-
constructor(source?: any);
|
|
691
|
-
}
|
|
692
|
-
class EditorSchema {
|
|
693
|
-
resourceKey: string;
|
|
694
|
-
fileMatch: string;
|
|
695
|
-
uri: string;
|
|
696
|
-
url?: string;
|
|
697
|
-
content?: number[];
|
|
698
|
-
language: string;
|
|
699
|
-
static createFrom(source?: any): EditorSchema;
|
|
700
|
-
constructor(source?: any);
|
|
701
|
-
}
|
|
702
|
-
class PaginationParams {
|
|
703
|
-
page: number;
|
|
704
|
-
pageSize: number;
|
|
705
|
-
static createFrom(source?: any): PaginationParams;
|
|
706
|
-
constructor(source?: any);
|
|
707
|
-
}
|
|
708
|
-
class OrderParams {
|
|
709
|
-
by: string;
|
|
710
|
-
direction: boolean;
|
|
711
|
-
static createFrom(source?: any): OrderParams;
|
|
712
|
-
constructor(source?: any);
|
|
713
|
-
}
|
|
714
|
-
class FindInput {
|
|
715
|
-
params: Record<string, any>;
|
|
716
|
-
conditions: Record<string, any>;
|
|
717
|
-
namespaces: string[];
|
|
718
|
-
order: OrderParams;
|
|
719
|
-
pagination: PaginationParams;
|
|
720
|
-
static createFrom(source?: any): FindInput;
|
|
721
|
-
constructor(source?: any);
|
|
722
|
-
convertValues(a: any, classs: any, asMap?: boolean): any;
|
|
723
|
-
}
|
|
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
|
-
class FindResult {
|
|
733
|
-
result: any[];
|
|
734
|
-
success: boolean;
|
|
735
|
-
pagination: PaginationResult;
|
|
736
|
-
static createFrom(source?: any): FindResult;
|
|
737
|
-
constructor(source?: any);
|
|
738
|
-
convertValues(a: any, classs: any, asMap?: boolean): any;
|
|
739
|
-
}
|
|
740
|
-
class GetInput {
|
|
741
|
-
params: Record<string, any>;
|
|
742
|
-
id: string;
|
|
743
|
-
namespace: string;
|
|
744
|
-
static createFrom(source?: any): GetInput;
|
|
745
|
-
constructor(source?: any);
|
|
746
|
-
}
|
|
747
|
-
class GetResult {
|
|
748
|
-
result: Record<string, any>;
|
|
749
|
-
success: boolean;
|
|
750
|
-
static createFrom(source?: any): GetResult;
|
|
751
|
-
constructor(source?: any);
|
|
752
|
-
}
|
|
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;
|
|
770
|
-
constructor(source?: any);
|
|
771
|
-
convertValues(a: any, classs: any, asMap?: boolean): any;
|
|
772
|
-
}
|
|
773
|
-
class ListInput {
|
|
774
|
-
params: Record<string, any>;
|
|
775
|
-
namespaces: string[];
|
|
776
|
-
order: OrderParams;
|
|
777
|
-
pagination: PaginationParams;
|
|
778
|
-
static createFrom(source?: any): ListInput;
|
|
779
|
-
constructor(source?: any);
|
|
780
|
-
convertValues(a: any, classs: any, asMap?: boolean): any;
|
|
781
|
-
}
|
|
782
|
-
class ListResult {
|
|
783
|
-
result: any[];
|
|
784
|
-
success: boolean;
|
|
785
|
-
pagination: PaginationResult;
|
|
786
|
-
static createFrom(source?: any): ListResult;
|
|
787
|
-
constructor(source?: any);
|
|
788
|
-
convertValues(a: any, classs: any, asMap?: boolean): any;
|
|
789
|
-
}
|
|
790
995
|
class PluginInfo {
|
|
791
996
|
id: string;
|
|
792
997
|
metadata: config.PluginMeta;
|
|
@@ -814,51 +1019,6 @@ export declare namespace types {
|
|
|
814
1019
|
constructor(source?: any);
|
|
815
1020
|
convertValues(a: any, classs: any, asMap?: boolean): any;
|
|
816
1021
|
}
|
|
817
|
-
class ResourceDefinition {
|
|
818
|
-
id_accessor: string;
|
|
819
|
-
namespace_accessor: string;
|
|
820
|
-
memoizer_accessor: string;
|
|
821
|
-
columnDefs: ColumnDef[];
|
|
822
|
-
supportedOperations?: number[];
|
|
823
|
-
static createFrom(source?: any): ResourceDefinition;
|
|
824
|
-
constructor(source?: any);
|
|
825
|
-
convertValues(a: any, classs: any, asMap?: boolean): any;
|
|
826
|
-
}
|
|
827
|
-
class ResourceGroup {
|
|
828
|
-
id: string;
|
|
829
|
-
name: string;
|
|
830
|
-
description: string;
|
|
831
|
-
icon: string;
|
|
832
|
-
resources: Record<string, Array<ResourceMeta>>;
|
|
833
|
-
static createFrom(source?: any): ResourceGroup;
|
|
834
|
-
constructor(source?: any);
|
|
835
|
-
convertValues(a: any, classs: any, asMap?: boolean): any;
|
|
836
|
-
}
|
|
837
|
-
class ResourceMeta {
|
|
838
|
-
group: string;
|
|
839
|
-
version: string;
|
|
840
|
-
kind: string;
|
|
841
|
-
label: string;
|
|
842
|
-
icon: string;
|
|
843
|
-
description: string;
|
|
844
|
-
category: string;
|
|
845
|
-
static createFrom(source?: any): ResourceMeta;
|
|
846
|
-
constructor(source?: any);
|
|
847
|
-
}
|
|
848
|
-
class UpdateInput {
|
|
849
|
-
input: Record<string, any>;
|
|
850
|
-
params: Record<string, any>;
|
|
851
|
-
id: string;
|
|
852
|
-
namespace: string;
|
|
853
|
-
static createFrom(source?: any): UpdateInput;
|
|
854
|
-
constructor(source?: any);
|
|
855
|
-
}
|
|
856
|
-
class UpdateResult {
|
|
857
|
-
result: Record<string, any>;
|
|
858
|
-
success: boolean;
|
|
859
|
-
static createFrom(source?: any): UpdateResult;
|
|
860
|
-
constructor(source?: any);
|
|
861
|
-
}
|
|
862
1022
|
}
|
|
863
1023
|
export declare namespace ui {
|
|
864
1024
|
class GetPluginComponentsInput {
|