@omniviewdev/runtime 0.10.0 → 0.12.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.
- package/dist/api.cjs +1 -1
- package/dist/api.d.ts +7 -6
- package/dist/api.js +205 -133
- package/dist/bindings/events/index.d.ts +20 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/invocation/index.d.ts +1 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/invocation/models.d.ts +19 -0
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/exec/servicewrapper.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/logs/servicewrapper.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/metric/index.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/metric/models.d.ts +0 -20
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/metric/servicewrapper.d.ts +3 -6
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/networker/servicewrapper.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/graph/index.d.ts +2 -2
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/graph/models.d.ts +3 -15
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/graphservice.d.ts +5 -18
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/index.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/models.d.ts +190 -9
- package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/servicewrapper.d.ts +34 -74
- package/dist/bindings/github.com/omniviewdev/omniview/internal/mcprelay/index.d.ts +3 -0
- package/dist/bindings/github.com/omniviewdev/omniview/internal/mcprelay/models.d.ts +178 -0
- package/dist/bindings/github.com/omniviewdev/omniview/internal/mcprelay/servicewrapper.d.ts +30 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/config/models.d.ts +27 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/resource/v2/index.d.ts +2 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/resource/v2/models.d.ts +809 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/types/models.d.ts +94 -0
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/exec/models.d.ts +16 -6
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/logs/index.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/logs/models.d.ts +27 -17
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/metric/index.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/metric/models.d.ts +47 -24
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/networker/index.d.ts +1 -1
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/networker/models.d.ts +41 -20
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/settings/models.d.ts +16 -4
- package/dist/{calls-Bg_uMVc9.cjs → calls-B-HP1Icv.cjs} +1 -1
- package/dist/{calls-BvZkVSse.js → calls-DYGtxNJ6.js} +1 -0
- package/dist/compat/types.d.ts +1 -1
- package/dist/context/drawer/RightDrawerContext.d.ts +8 -4
- package/dist/context/drawer/types.d.ts +11 -21
- package/dist/context/operations/OperationsContext.d.ts +5 -5
- package/dist/exec.d.ts +5 -0
- package/dist/graph-JDqyJC_i.js +10 -0
- package/dist/graph-wHun0Bkz.cjs +1 -0
- package/dist/hooks/connection/index.d.ts +2 -1
- package/dist/hooks/connection/useConnection.d.ts +9 -30
- package/dist/hooks/connection/useConnectionProfiles.d.ts +7 -0
- package/dist/hooks/connection/useConnectionStatus.d.ts +8 -1
- package/dist/hooks/connection/useConnections.d.ts +3 -2
- package/dist/hooks/connection/useScopeValues.d.ts +9 -0
- package/dist/hooks/logs/useLogSession.d.ts +4 -1
- package/dist/hooks/metric/useMetricStream.d.ts +6 -2
- package/dist/hooks/metric/useResourceMetrics.d.ts +6 -2
- package/dist/hooks/networker/types.d.ts +5 -2
- package/dist/hooks/networker/useResourcePortForwarder.d.ts +1 -1
- package/dist/hooks/resource/useConnectionQueryGuard.d.ts +1 -1
- package/dist/hooks/resource/useDependencyTree.d.ts +4 -12
- package/dist/hooks/resource/useEditorSchemas.d.ts +12 -7
- package/dist/hooks/resource/useEventBatcher.d.ts +12 -47
- package/dist/hooks/resource/useRelatedResources.d.ts +6 -14
- package/dist/hooks/resource/useResolvedResourceTarget.d.ts +162 -0
- package/dist/hooks/resource/useResource.d.ts +7 -58
- package/dist/hooks/resource/useResourceActions.d.ts +9 -58
- package/dist/hooks/resource/useResourceGraph.d.ts +4 -12
- package/dist/hooks/resource/useResourceGroups.d.ts +5 -19
- package/dist/hooks/resource/useResourceMutations.d.ts +5 -61
- package/dist/hooks/resource/useResourceSearch.d.ts +5 -34
- package/dist/hooks/resource/useResourceType.d.ts +6 -19
- package/dist/hooks/resource/useResourceTypes.d.ts +5 -20
- package/dist/hooks/resource/useResources.d.ts +34 -60
- package/dist/hooks/resource/useStreamAction.d.ts +4 -8
- package/dist/hooks/resource/useWatchState.d.ts +15 -22
- package/dist/index.cjs +4 -4
- package/dist/index.d.ts +6 -1
- package/dist/index.js +2970 -2878
- package/dist/logs.d.ts +14 -0
- package/dist/metric.d.ts +35 -0
- package/dist/models-Cg1YRHQm.js +583 -0
- package/dist/models-DSGyy8lg.cjs +1 -0
- package/dist/models-UwESEW2B.js +1232 -0
- package/dist/models-dzj-SsFZ.cjs +1 -0
- package/dist/models.cjs +1 -1
- package/dist/models.d.ts +13 -8
- package/dist/models.js +118 -209
- package/dist/networker.d.ts +31 -0
- package/dist/resource/v2/ancillary.d.ts +161 -0
- package/dist/resource/v2/client.d.ts +57 -0
- package/dist/resource/v2/domain.d.ts +204 -0
- package/dist/resource/v2/graph-client.d.ts +7 -0
- package/dist/resource/v2/graph.d.ts +35 -0
- package/dist/resource/v2/host.d.ts +129 -0
- package/dist/resource/v2/requestJSON.d.ts +2 -0
- package/dist/resource/v2/value.d.ts +9 -0
- package/dist/resourceQueryKeys.d.ts +8 -4
- package/dist/runtime.cjs +1 -1
- package/dist/runtime.js +1 -1
- package/dist/search.d.ts +9 -11
- package/dist/servicewrapper-BOM6A8IG.cjs +1 -0
- package/dist/servicewrapper-Bda7yi8z.js +684 -0
- package/dist/types/watch.d.ts +48 -21
- package/dist/utils/activeSyncAggregator.d.ts +2 -2
- package/package.json +1 -1
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/resource/index.d.ts +0 -2
- package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/resource/models.d.ts +0 -1199
- package/dist/compat/resource.d.ts +0 -4
- package/dist/hooks/connection/useConnectionNamespaces.d.ts +0 -21
- package/dist/legacyEnum-CKqyRmbX.js +0 -15
- package/dist/legacyEnum-DkV5yRdA.cjs +0 -1
- package/dist/models-BxypsesT.cjs +0 -1
- package/dist/models-C6jzDokQ.js +0 -347
- package/dist/models-CT4kHj47.js +0 -2444
- package/dist/models-DQl7tqts.cjs +0 -1
- package/dist/servicewrapper-C6SURWw1.js +0 -850
- package/dist/servicewrapper-COMjQHnY.cjs +0 -1
- package/dist/utils/resourceKey.d.ts +0 -12
package/dist/types/watch.d.ts
CHANGED
|
@@ -1,28 +1,55 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export declare
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { AccessRoute, Count, QueryScope, Record as ResourceRecord, ResourceReference } from '../resource/v2/domain';
|
|
2
|
+
import { ResourceOperationError } from '../resource/v2/ancillary';
|
|
3
|
+
export declare enum WatchState {
|
|
4
|
+
WatchStateIdle = 0,
|
|
5
|
+
WatchStateSyncing = 1,
|
|
6
|
+
WatchStateSynced = 2,
|
|
7
|
+
WatchStateError = 3,
|
|
8
|
+
WatchStateStopped = 4,
|
|
9
|
+
WatchStateFailed = 5,
|
|
10
|
+
WatchStateForbidden = 6,
|
|
11
|
+
WatchStateSkipped = 7
|
|
12
|
+
}
|
|
13
|
+
export declare enum SyncPolicy {
|
|
14
|
+
SyncOnConnect = 0,
|
|
15
|
+
SyncOnFirstQuery = 1,
|
|
16
|
+
SyncNever = 2
|
|
17
|
+
}
|
|
9
18
|
export interface WatchStateEvent {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
resourceKey: string;
|
|
19
|
+
route: AccessRoute;
|
|
20
|
+
type: string;
|
|
13
21
|
state: WatchState;
|
|
14
|
-
|
|
22
|
+
count: Count;
|
|
23
|
+
error?: ResourceOperationError;
|
|
15
24
|
message?: string;
|
|
16
|
-
|
|
25
|
+
guarantee: 'bestEffort';
|
|
17
26
|
}
|
|
18
|
-
/**
|
|
19
|
-
* WatchConnectionSummary provides an aggregate view of all watch states for a connection.
|
|
20
|
-
*/
|
|
21
27
|
export interface WatchConnectionSummary {
|
|
22
|
-
|
|
28
|
+
route: AccessRoute;
|
|
23
29
|
resources: Record<string, WatchState>;
|
|
24
|
-
resourceCounts: Record<string,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
30
|
+
resourceCounts: Record<string, Count>;
|
|
31
|
+
scope: QueryScope;
|
|
32
|
+
guarantee: 'bestEffort';
|
|
33
|
+
}
|
|
34
|
+
export interface ResourceMetadata {
|
|
35
|
+
labels?: Record<string, string>;
|
|
36
|
+
createdAt?: string;
|
|
37
|
+
}
|
|
38
|
+
export interface WatchAddPayload {
|
|
39
|
+
route: AccessRoute;
|
|
40
|
+
record: ResourceRecord;
|
|
41
|
+
metadata: ResourceMetadata;
|
|
42
|
+
guarantee: 'bestEffort';
|
|
43
|
+
}
|
|
44
|
+
export interface WatchUpdatePayload {
|
|
45
|
+
route: AccessRoute;
|
|
46
|
+
record: ResourceRecord;
|
|
47
|
+
metadata: ResourceMetadata;
|
|
48
|
+
guarantee: 'bestEffort';
|
|
49
|
+
}
|
|
50
|
+
export interface WatchDeletePayload {
|
|
51
|
+
route: AccessRoute;
|
|
52
|
+
reference: ResourceReference;
|
|
53
|
+
lastKnown?: ResourceRecord;
|
|
54
|
+
guarantee: 'bestEffort';
|
|
28
55
|
}
|
|
@@ -29,6 +29,6 @@ export declare function hasActiveSyncing(syncs: ActiveSync[]): boolean;
|
|
|
29
29
|
/** Compute aggregate progress across multiple syncs (watched resources only) */
|
|
30
30
|
export declare function aggregateProgress(syncs: ActiveSync[]): number;
|
|
31
31
|
/** Build a tracker key from an event */
|
|
32
|
-
export declare function trackerKey(event: WatchStateEvent): string;
|
|
32
|
+
export declare function trackerKey(pluginID: string, event: WatchStateEvent): string;
|
|
33
33
|
/** Update a trackers map with a new event, returning the updated tracker */
|
|
34
|
-
export declare function updateTracker(trackers: Map<string, ResourceTracker>, event: WatchStateEvent): ResourceTracker;
|
|
34
|
+
export declare function updateTracker(trackers: Map<string, ResourceTracker>, pluginID: string, event: WatchStateEvent): ResourceTracker;
|
package/package.json
CHANGED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export { ActionDescriptor, ActionInput, ActionResult, ActionScope, ColumnDefinition, CreateInput, CreateResult, DeleteInput, DeleteResult, EdgeDirection, EditorSchema, EventSeverity, FilterExpression, FilterField, FilterFieldType, FilterLogic, FilterOperator, FilterPredicate, FindInput, FindResult, GetInput, GetResult, HealthCondition, HealthStatus, ListInput, ListResult, OrderField, PaginationParams, RelationshipDescriptor, RelationshipExtractor, RelationshipType, ResolvedRelationship, ResourceCapabilities, ResourceDefinition, ResourceEvent, ResourceGroup, ResourceHealth, ResourceLink, ResourceMeta, ResourceRef, ScaleHint, ScaleLevel, UpdateInput, UpdateResult, WatchConnectionSummary, WatchScope, WatchState, WatchStateEvent } from './models.js';
|
|
2
|
-
export type { Schema } from './models.js';
|