@omniviewdev/runtime 0.9.2 → 0.11.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 (121) hide show
  1. package/dist/api.cjs +1 -1
  2. package/dist/api.d.ts +8 -6
  3. package/dist/api.js +249 -117
  4. package/dist/bindings/events/index.d.ts +48 -0
  5. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/invocation/index.d.ts +1 -0
  6. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/invocation/models.d.ts +19 -0
  7. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/exec/servicewrapper.d.ts +1 -1
  8. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/logs/servicewrapper.d.ts +1 -1
  9. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/metric/index.d.ts +1 -1
  10. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/metric/models.d.ts +0 -20
  11. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/metric/servicewrapper.d.ts +3 -6
  12. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/networker/servicewrapper.d.ts +1 -1
  13. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/graph/index.d.ts +2 -2
  14. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/graph/models.d.ts +3 -15
  15. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/graphservice.d.ts +5 -18
  16. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/index.d.ts +1 -1
  17. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/models.d.ts +190 -9
  18. package/dist/bindings/github.com/omniviewdev/omniview/backend/pkg/plugin/resource/servicewrapper.d.ts +34 -74
  19. package/dist/bindings/github.com/omniviewdev/omniview/backend/window/index.d.ts +3 -0
  20. package/dist/bindings/github.com/omniviewdev/omniview/backend/window/models.d.ts +190 -0
  21. package/dist/bindings/github.com/omniviewdev/omniview/backend/window/service.d.ts +83 -0
  22. package/dist/bindings/github.com/omniviewdev/omniview/internal/mcprelay/index.d.ts +3 -0
  23. package/dist/bindings/github.com/omniviewdev/omniview/internal/mcprelay/models.d.ts +178 -0
  24. package/dist/bindings/github.com/omniviewdev/omniview/internal/mcprelay/servicewrapper.d.ts +30 -0
  25. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/config/models.d.ts +27 -0
  26. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/resource/v2/index.d.ts +2 -0
  27. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/resource/v2/models.d.ts +809 -0
  28. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/types/models.d.ts +94 -0
  29. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/exec/models.d.ts +16 -6
  30. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/logs/index.d.ts +1 -1
  31. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/logs/models.d.ts +27 -17
  32. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/metric/index.d.ts +1 -1
  33. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/metric/models.d.ts +47 -24
  34. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/networker/index.d.ts +1 -1
  35. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/networker/models.d.ts +41 -20
  36. package/dist/bindings/github.com/omniviewdev/plugin-sdk/settings/models.d.ts +16 -4
  37. package/dist/{calls-Bg_uMVc9.cjs → calls-B-HP1Icv.cjs} +1 -1
  38. package/dist/{calls-BvZkVSse.js → calls-DYGtxNJ6.js} +1 -0
  39. package/dist/compat/types.d.ts +1 -1
  40. package/dist/context/drawer/RightDrawerContext.d.ts +8 -4
  41. package/dist/context/drawer/types.d.ts +11 -21
  42. package/dist/context/index.d.ts +1 -0
  43. package/dist/context/operations/OperationsContext.d.ts +5 -5
  44. package/dist/context/windows/WindowActionsContext.d.ts +31 -0
  45. package/dist/context/windows/activePageNavigator.d.ts +13 -0
  46. package/dist/context/windows/index.d.ts +2 -0
  47. package/dist/exec.d.ts +5 -0
  48. package/dist/graph-JDqyJC_i.js +10 -0
  49. package/dist/graph-wHun0Bkz.cjs +1 -0
  50. package/dist/hooks/connection/index.d.ts +2 -1
  51. package/dist/hooks/connection/useConnection.d.ts +9 -30
  52. package/dist/hooks/connection/useConnectionProfiles.d.ts +7 -0
  53. package/dist/hooks/connection/useConnectionStatus.d.ts +8 -1
  54. package/dist/hooks/connection/useConnections.d.ts +3 -2
  55. package/dist/hooks/connection/useScopeValues.d.ts +9 -0
  56. package/dist/hooks/logs/useLogSession.d.ts +4 -1
  57. package/dist/hooks/metric/useMetricStream.d.ts +6 -2
  58. package/dist/hooks/metric/useResourceMetrics.d.ts +6 -2
  59. package/dist/hooks/networker/types.d.ts +5 -2
  60. package/dist/hooks/networker/useResourcePortForwarder.d.ts +1 -1
  61. package/dist/hooks/resource/useConnectionQueryGuard.d.ts +1 -1
  62. package/dist/hooks/resource/useDependencyTree.d.ts +4 -12
  63. package/dist/hooks/resource/useEditorSchemas.d.ts +12 -7
  64. package/dist/hooks/resource/useEventBatcher.d.ts +11 -47
  65. package/dist/hooks/resource/useRelatedResources.d.ts +6 -14
  66. package/dist/hooks/resource/useResolvedResourceTarget.d.ts +162 -0
  67. package/dist/hooks/resource/useResource.d.ts +7 -58
  68. package/dist/hooks/resource/useResourceActions.d.ts +9 -58
  69. package/dist/hooks/resource/useResourceGraph.d.ts +4 -12
  70. package/dist/hooks/resource/useResourceGroups.d.ts +5 -19
  71. package/dist/hooks/resource/useResourceMutations.d.ts +5 -61
  72. package/dist/hooks/resource/useResourceSearch.d.ts +5 -34
  73. package/dist/hooks/resource/useResourceType.d.ts +6 -19
  74. package/dist/hooks/resource/useResourceTypes.d.ts +5 -20
  75. package/dist/hooks/resource/useResources.d.ts +32 -60
  76. package/dist/hooks/resource/useStreamAction.d.ts +4 -8
  77. package/dist/hooks/resource/useWatchState.d.ts +15 -22
  78. package/dist/index.cjs +4 -4
  79. package/dist/index.d.ts +6 -1
  80. package/dist/index.js +3007 -2881
  81. package/dist/logs.d.ts +14 -0
  82. package/dist/metric.d.ts +35 -0
  83. package/dist/models-Cg1YRHQm.js +583 -0
  84. package/dist/models-DSGyy8lg.cjs +1 -0
  85. package/dist/models-UwESEW2B.js +1232 -0
  86. package/dist/models-dzj-SsFZ.cjs +1 -0
  87. package/dist/models.cjs +1 -1
  88. package/dist/models.d.ts +14 -8
  89. package/dist/models.js +118 -208
  90. package/dist/networker.d.ts +31 -0
  91. package/dist/resource/v2/ancillary.d.ts +161 -0
  92. package/dist/resource/v2/client.d.ts +57 -0
  93. package/dist/resource/v2/domain.d.ts +204 -0
  94. package/dist/resource/v2/graph-client.d.ts +7 -0
  95. package/dist/resource/v2/graph.d.ts +35 -0
  96. package/dist/resource/v2/host.d.ts +129 -0
  97. package/dist/resource/v2/requestJSON.d.ts +2 -0
  98. package/dist/resource/v2/value.d.ts +9 -0
  99. package/dist/resourceQueryKeys.d.ts +8 -4
  100. package/dist/router/Link.d.ts +3 -0
  101. package/dist/runtime.cjs +1 -1
  102. package/dist/runtime.js +1 -1
  103. package/dist/search.d.ts +9 -11
  104. package/dist/servicewrapper-BOM6A8IG.cjs +1 -0
  105. package/dist/servicewrapper-Bda7yi8z.js +684 -0
  106. package/dist/types/watch.d.ts +48 -21
  107. package/dist/utils/activeSyncAggregator.d.ts +2 -2
  108. package/package.json +3 -3
  109. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/resource/index.d.ts +0 -2
  110. package/dist/bindings/github.com/omniviewdev/plugin-sdk/pkg/v1/resource/models.d.ts +0 -1199
  111. package/dist/compat/resource.d.ts +0 -4
  112. package/dist/hooks/connection/useConnectionNamespaces.d.ts +0 -21
  113. package/dist/legacyEnum-CKqyRmbX.js +0 -15
  114. package/dist/legacyEnum-DkV5yRdA.cjs +0 -1
  115. package/dist/models-CT4kHj47.js +0 -2444
  116. package/dist/models-DQl7tqts.cjs +0 -1
  117. package/dist/models-DU8pTcoZ.js +0 -142
  118. package/dist/models-KV9f8Ceh.cjs +0 -1
  119. package/dist/servicewrapper-C6SURWw1.js +0 -850
  120. package/dist/servicewrapper-COMjQHnY.cjs +0 -1
  121. package/dist/utils/resourceKey.d.ts +0 -12
@@ -1,1199 +0,0 @@
1
- import * as json$0 from "../../../../../../encoding/json/models.js";
2
- /**
3
- * ActionDescriptor describes an available action on a resource type.
4
- */
5
- export declare class ActionDescriptor {
6
- "id": string;
7
- "label": string;
8
- "description": string;
9
- "icon": string;
10
- "scope": ActionScope;
11
- "streaming": boolean;
12
- /**
13
- * ParamsSchema describes the action's input parameters as a typed JSON Schema.
14
- * Serialized to JSON Schema bytes for gRPC and MCP tool generators.
15
- */
16
- "paramsSchema"?: Schema | null;
17
- /**
18
- * OutputSchema describes the action's result structure as a typed JSON Schema.
19
- * Serialized to JSON Schema bytes for gRPC and MCP tool generators.
20
- */
21
- "outputSchema"?: Schema | null;
22
- /**
23
- * Dangerous indicates this action has destructive side effects.
24
- * AI agents should confirm before executing.
25
- */
26
- "dangerous"?: boolean;
27
- /** Creates a new ActionDescriptor instance. */
28
- constructor($$source?: Partial<ActionDescriptor>);
29
- /**
30
- * Creates a new ActionDescriptor instance from a string or object.
31
- */
32
- static createFrom($$source?: any): ActionDescriptor;
33
- }
34
- /**
35
- * ActionInput contains the parameters for executing an action.
36
- */
37
- export declare class ActionInput {
38
- "id": string;
39
- "namespace": string;
40
- "params": {
41
- [_ in string]?: any;
42
- };
43
- /** Creates a new ActionInput instance. */
44
- constructor($$source?: Partial<ActionInput>);
45
- /**
46
- * Creates a new ActionInput instance from a string or object.
47
- */
48
- static createFrom($$source?: any): ActionInput;
49
- }
50
- /**
51
- * ActionResult contains the result of executing an action.
52
- */
53
- export declare class ActionResult {
54
- "success": boolean;
55
- "data": {
56
- [_ in string]?: any;
57
- };
58
- "message": string;
59
- /** Creates a new ActionResult instance. */
60
- constructor($$source?: Partial<ActionResult>);
61
- /**
62
- * Creates a new ActionResult instance from a string or object.
63
- */
64
- static createFrom($$source?: any): ActionResult;
65
- }
66
- /**
67
- * ActionScope defines whether an action operates on a specific resource
68
- * instance or on the resource type as a whole.
69
- */
70
- export declare enum ActionScope {
71
- /**
72
- * The Go zero value for the underlying type of the enum.
73
- */
74
- $zero = "",
75
- ActionScopeInstance = "instance",
76
- ActionScopeType = "type"
77
- }
78
- /**
79
- * ColumnDefinition describes a single table column for resource display.
80
- */
81
- export declare class ColumnDefinition {
82
- /**
83
- * ID is the unique identifier for this column.
84
- */
85
- "id": string;
86
- /**
87
- * Header is the display header text.
88
- */
89
- "header": string;
90
- /**
91
- * Accessors is a comma-separated list of JSON path accessors.
92
- */
93
- "accessor": string;
94
- /**
95
- * AccessorPriority controls which value to return when multiple
96
- * accessors match. Values: "ALL", "FIRST", "LAST".
97
- */
98
- "accessorPriority"?: string;
99
- /**
100
- * ColorMap maps cell values to color variants.
101
- */
102
- "colorMap"?: {
103
- [_ in string]?: string;
104
- };
105
- /**
106
- * Color is the default color variant for the cell.
107
- */
108
- "color"?: string;
109
- /**
110
- * Alignment is the column alignment: "LEFT", "CENTER", "RIGHT".
111
- */
112
- "align"?: string;
113
- /**
114
- * Hidden controls whether the column is visible by default.
115
- */
116
- "hidden"?: boolean;
117
- /**
118
- * Width is the column width in pixels. 0 means auto-size.
119
- */
120
- "width"?: number;
121
- /**
122
- * Formatter is the value formatter: "NONE", "BYTES", "DURATION", "AGE", etc.
123
- */
124
- "formatter"?: string;
125
- /**
126
- * Component is the cell renderer component name.
127
- */
128
- "component"?: string;
129
- /**
130
- * ComponentParams are parameters passed to the cell component.
131
- */
132
- "componentParams"?: any;
133
- /**
134
- * ResourceLink creates a link to another resource.
135
- */
136
- "resourceLink"?: ResourceLink | null;
137
- /**
138
- * ValueMap maps values via regex replacement.
139
- */
140
- "valueMap"?: {
141
- [_ in string]?: string;
142
- };
143
- /** Creates a new ColumnDefinition instance. */
144
- constructor($$source?: Partial<ColumnDefinition>);
145
- /**
146
- * Creates a new ColumnDefinition instance from a string or object.
147
- */
148
- static createFrom($$source?: any): ColumnDefinition;
149
- }
150
- /**
151
- * CreateInput is the input to the Create operation.
152
- */
153
- export declare class CreateInput {
154
- /**
155
- * Input is the resource data to create.
156
- */
157
- "input": json$0.RawMessage;
158
- /**
159
- * Namespace is an optional namespace for the new resource.
160
- */
161
- "namespace": string;
162
- /** Creates a new CreateInput instance. */
163
- constructor($$source?: Partial<CreateInput>);
164
- /**
165
- * Creates a new CreateInput instance from a string or object.
166
- */
167
- static createFrom($$source?: any): CreateInput;
168
- }
169
- /**
170
- * CreateResult is the result of a Create operation.
171
- */
172
- export declare class CreateResult {
173
- /**
174
- * Result is the created resource as pre-serialized JSON.
175
- */
176
- "result": json$0.RawMessage;
177
- /**
178
- * Success indicates whether the operation succeeded.
179
- */
180
- "success": boolean;
181
- /** Creates a new CreateResult instance. */
182
- constructor($$source?: Partial<CreateResult>);
183
- /**
184
- * Creates a new CreateResult instance from a string or object.
185
- */
186
- static createFrom($$source?: any): CreateResult;
187
- }
188
- /**
189
- * DeleteInput is the input to the Delete operation.
190
- */
191
- export declare class DeleteInput {
192
- /**
193
- * ID is the unique identifier of the resource to delete.
194
- */
195
- "id": string;
196
- /**
197
- * Namespace is an optional namespace identifier.
198
- */
199
- "namespace": string;
200
- /**
201
- * GracePeriodSeconds is an optional grace period before deletion.
202
- * nil means use the default.
203
- */
204
- "gracePeriodSeconds"?: number | null;
205
- /** Creates a new DeleteInput instance. */
206
- constructor($$source?: Partial<DeleteInput>);
207
- /**
208
- * Creates a new DeleteInput instance from a string or object.
209
- */
210
- static createFrom($$source?: any): DeleteInput;
211
- }
212
- /**
213
- * DeleteResult is the result of a Delete operation.
214
- */
215
- export declare class DeleteResult {
216
- /**
217
- * Result is the deleted resource as pre-serialized JSON (if available).
218
- */
219
- "result": json$0.RawMessage;
220
- /**
221
- * Success indicates whether the operation succeeded.
222
- */
223
- "success": boolean;
224
- /** Creates a new DeleteResult instance. */
225
- constructor($$source?: Partial<DeleteResult>);
226
- /**
227
- * Creates a new DeleteResult instance from a string or object.
228
- */
229
- static createFrom($$source?: any): DeleteResult;
230
- }
231
- /**
232
- * EdgeDirection controls whether an extracted edge points from the declaring
233
- * resource to the target (outgoing) or from the target back to the declaring
234
- * resource (incoming). Incoming is used for ownership edges where the child
235
- * declares its parent (e.g., Pod ownerRef → ReplicaSet).
236
- */
237
- export declare enum EdgeDirection {
238
- /**
239
- * The Go zero value for the underlying type of the enum.
240
- */
241
- $zero = "",
242
- /**
243
- * EdgeOutgoing is the default: declaring resource → extracted target.
244
- */
245
- EdgeOutgoing = "",
246
- /**
247
- * EdgeIncoming reverses the edge: extracted target → declaring resource.
248
- */
249
- EdgeIncoming = "incoming"
250
- }
251
- /**
252
- * EditorSchema provides schema information for Monaco editor validation.
253
- */
254
- export declare class EditorSchema {
255
- "resourceKey": string;
256
- "fileMatch": string;
257
- "uri": string;
258
- "url"?: string;
259
- "content"?: string;
260
- "language": string;
261
- /** Creates a new EditorSchema instance. */
262
- constructor($$source?: Partial<EditorSchema>);
263
- /**
264
- * Creates a new EditorSchema instance from a string or object.
265
- */
266
- static createFrom($$source?: any): EditorSchema;
267
- }
268
- /**
269
- * EventSeverity classifies diagnostic events.
270
- */
271
- export declare enum EventSeverity {
272
- /**
273
- * The Go zero value for the underlying type of the enum.
274
- */
275
- $zero = "",
276
- SeverityNormal = "normal",
277
- SeverityWarning = "warning",
278
- SeverityError = "error"
279
- }
280
- /**
281
- * FilterExpression combines predicates with a logical operator.
282
- * Supports one level of nesting (AND of ORs, or OR of ANDs).
283
- */
284
- export declare class FilterExpression {
285
- "logic"?: FilterLogic;
286
- "predicates"?: FilterPredicate[];
287
- "groups"?: FilterExpression[];
288
- /** Creates a new FilterExpression instance. */
289
- constructor($$source?: Partial<FilterExpression>);
290
- /**
291
- * Creates a new FilterExpression instance from a string or object.
292
- */
293
- static createFrom($$source?: any): FilterExpression;
294
- }
295
- /**
296
- * FilterField declares a field that can be used in filter predicates.
297
- * This is the introspection/discovery type for AI agents and MCP tool generators.
298
- */
299
- export declare class FilterField {
300
- /**
301
- * Path is the dot-separated field path (e.g., "metadata.name", "status.phase").
302
- */
303
- "path": string;
304
- /**
305
- * DisplayName is the human-readable name for UI and MCP tool descriptions.
306
- */
307
- "displayName": string;
308
- /**
309
- * Description explains what this field represents.
310
- */
311
- "description": string;
312
- /**
313
- * Type declares the value type.
314
- */
315
- "type": FilterFieldType;
316
- /**
317
- * Operators lists valid comparison operators for this field.
318
- * If empty, defaults to [OpEqual, OpNotEqual].
319
- */
320
- "operators": FilterOperator[];
321
- /**
322
- * AllowedValues is the fixed set of valid values (only for FilterFieldEnum).
323
- */
324
- "allowedValues"?: string[];
325
- /**
326
- * Required indicates this field must be provided in filter queries.
327
- */
328
- "required"?: boolean;
329
- /** Creates a new FilterField instance. */
330
- constructor($$source?: Partial<FilterField>);
331
- /**
332
- * Creates a new FilterField instance from a string or object.
333
- */
334
- static createFrom($$source?: any): FilterField;
335
- }
336
- /**
337
- * FilterFieldType declares the value type for a filterable field.
338
- */
339
- export declare enum FilterFieldType {
340
- /**
341
- * The Go zero value for the underlying type of the enum.
342
- */
343
- $zero = "",
344
- FilterFieldString = "string",
345
- FilterFieldInt = "integer",
346
- FilterFieldFloat = "number",
347
- FilterFieldBool = "boolean",
348
- FilterFieldTime = "datetime",
349
- FilterFieldEnum = "enum",
350
- FilterFieldMap = "map"
351
- }
352
- /**
353
- * FilterLogic is the logical operator for combining predicates.
354
- */
355
- export declare enum FilterLogic {
356
- /**
357
- * The Go zero value for the underlying type of the enum.
358
- */
359
- $zero = "",
360
- FilterAnd = "and",
361
- FilterOr = "or"
362
- }
363
- /**
364
- * FilterOperator is a comparison operator for filter predicates.
365
- */
366
- export declare enum FilterOperator {
367
- /**
368
- * The Go zero value for the underlying type of the enum.
369
- */
370
- $zero = "",
371
- /**
372
- * Equality.
373
- */
374
- OpEqual = "eq",
375
- OpNotEqual = "neq",
376
- /**
377
- * Comparison (numeric, time).
378
- */
379
- OpGreaterThan = "gt",
380
- OpGreaterOrEqual = "gte",
381
- OpLessThan = "lt",
382
- OpLessOrEqual = "lte",
383
- /**
384
- * String matching.
385
- */
386
- OpContains = "contains",
387
- OpPrefix = "prefix",
388
- OpSuffix = "suffix",
389
- OpRegex = "regex",
390
- /**
391
- * Set membership.
392
- */
393
- OpIn = "in",
394
- OpNotIn = "notin",
395
- /**
396
- * Existence.
397
- */
398
- OpExists = "exists",
399
- OpNotExists = "notexists",
400
- /**
401
- * Map/label-specific.
402
- */
403
- OpHasKey = "haskey"
404
- }
405
- /**
406
- * FilterPredicate is a single condition in a query.
407
- */
408
- export declare class FilterPredicate {
409
- /**
410
- * Field is the filter field path (must match a FilterField.Path).
411
- */
412
- "field": string;
413
- /**
414
- * Operator is the comparison operator.
415
- */
416
- "operator": FilterOperator;
417
- /**
418
- * Value is the comparison value. Type depends on field and operator:
419
- * - OpIn/OpNotIn: []string
420
- * - OpExists/OpNotExists: ignored (nil)
421
- * - All others: scalar matching the field's FilterFieldType
422
- */
423
- "value"?: any;
424
- /** Creates a new FilterPredicate instance. */
425
- constructor($$source?: Partial<FilterPredicate>);
426
- /**
427
- * Creates a new FilterPredicate instance from a string or object.
428
- */
429
- static createFrom($$source?: any): FilterPredicate;
430
- }
431
- /**
432
- * FindInput is the input to the Find operation.
433
- */
434
- export declare class FindInput {
435
- /**
436
- * Filters is a typed filter expression replacing the old untyped Conditions.
437
- */
438
- "filters"?: FilterExpression | null;
439
- /**
440
- * TextQuery is a free-text search string.
441
- */
442
- "textQuery"?: string;
443
- /**
444
- * Namespaces limits the search scope.
445
- */
446
- "namespaces": string[];
447
- /**
448
- * Order specifies multi-field ordering.
449
- */
450
- "order": OrderField[];
451
- /**
452
- * Pagination controls pagination.
453
- */
454
- "pagination": PaginationParams;
455
- /** Creates a new FindInput instance. */
456
- constructor($$source?: Partial<FindInput>);
457
- /**
458
- * Creates a new FindInput instance from a string or object.
459
- */
460
- static createFrom($$source?: any): FindInput;
461
- }
462
- /**
463
- * FindResult is the result of a Find operation.
464
- */
465
- export declare class FindResult {
466
- /**
467
- * Result is the list of matching resources as pre-serialized JSON.
468
- */
469
- "result": json$0.RawMessage[];
470
- /**
471
- * Success indicates whether the operation succeeded.
472
- */
473
- "success": boolean;
474
- /**
475
- * TotalCount is the total number of matching resources.
476
- * -1 if unknown.
477
- */
478
- "totalCount": number;
479
- /**
480
- * NextCursor is the continuation token for cursor-based pagination.
481
- */
482
- "nextCursor"?: string;
483
- /** Creates a new FindResult instance. */
484
- constructor($$source?: Partial<FindResult>);
485
- /**
486
- * Creates a new FindResult instance from a string or object.
487
- */
488
- static createFrom($$source?: any): FindResult;
489
- }
490
- /**
491
- * GetInput is the input to the Get operation.
492
- */
493
- export declare class GetInput {
494
- /**
495
- * ID is the unique identifier of the resource.
496
- */
497
- "id": string;
498
- /**
499
- * Namespace is an optional namespace identifier.
500
- */
501
- "namespace": string;
502
- /** Creates a new GetInput instance. */
503
- constructor($$source?: Partial<GetInput>);
504
- /**
505
- * Creates a new GetInput instance from a string or object.
506
- */
507
- static createFrom($$source?: any): GetInput;
508
- }
509
- /**
510
- * GetResult is the result of a Get operation.
511
- */
512
- export declare class GetResult {
513
- /**
514
- * Result is the resource data as pre-serialized JSON.
515
- */
516
- "result": json$0.RawMessage;
517
- /**
518
- * Success indicates whether the operation succeeded.
519
- */
520
- "success": boolean;
521
- /** Creates a new GetResult instance. */
522
- constructor($$source?: Partial<GetResult>);
523
- /**
524
- * Creates a new GetResult instance from a string or object.
525
- */
526
- static createFrom($$source?: any): GetResult;
527
- }
528
- /**
529
- * HealthCondition represents a single condition (Ready, Scheduled, etc.).
530
- */
531
- export declare class HealthCondition {
532
- "type": string;
533
- "status": string;
534
- "reason"?: string;
535
- "message"?: string;
536
- "lastProbeTime"?: string | null;
537
- "lastTransitionTime"?: string | null;
538
- /** Creates a new HealthCondition instance. */
539
- constructor($$source?: Partial<HealthCondition>);
540
- /**
541
- * Creates a new HealthCondition instance from a string or object.
542
- */
543
- static createFrom($$source?: any): HealthCondition;
544
- }
545
- /**
546
- * HealthStatus represents the normalized health of a resource.
547
- */
548
- export declare enum HealthStatus {
549
- /**
550
- * The Go zero value for the underlying type of the enum.
551
- */
552
- $zero = "",
553
- HealthHealthy = "healthy",
554
- HealthDegraded = "degraded",
555
- HealthUnhealthy = "unhealthy",
556
- HealthPending = "pending",
557
- HealthUnknown = "unknown"
558
- }
559
- /**
560
- * ListInput is the input to the List operation.
561
- */
562
- export declare class ListInput {
563
- /**
564
- * Namespaces limits listing to these namespaces.
565
- * Empty means all namespaces.
566
- */
567
- "namespaces": string[];
568
- /**
569
- * Order specifies multi-field ordering.
570
- */
571
- "order": OrderField[];
572
- /**
573
- * Pagination controls pagination.
574
- */
575
- "pagination": PaginationParams;
576
- /** Creates a new ListInput instance. */
577
- constructor($$source?: Partial<ListInput>);
578
- /**
579
- * Creates a new ListInput instance from a string or object.
580
- */
581
- static createFrom($$source?: any): ListInput;
582
- }
583
- /**
584
- * ListResult is the result of a List operation.
585
- */
586
- export declare class ListResult {
587
- /**
588
- * Result is the list of resources as pre-serialized JSON.
589
- */
590
- "result": json$0.RawMessage[];
591
- /**
592
- * Success indicates whether the operation succeeded.
593
- */
594
- "success": boolean;
595
- /**
596
- * TotalCount is the total number of resources (for pagination).
597
- * -1 if unknown.
598
- */
599
- "totalCount": number;
600
- /**
601
- * NextCursor is the continuation token for cursor-based pagination.
602
- */
603
- "nextCursor"?: string;
604
- /** Creates a new ListResult instance. */
605
- constructor($$source?: Partial<ListResult>);
606
- /**
607
- * Creates a new ListResult instance from a string or object.
608
- */
609
- static createFrom($$source?: any): ListResult;
610
- }
611
- /**
612
- * OrderField specifies a single field in a multi-field ordering clause.
613
- */
614
- export declare class OrderField {
615
- /**
616
- * Field is the dot-separated path to the field to order by.
617
- */
618
- "field": string;
619
- /**
620
- * Descending controls sort direction. false = ascending (default).
621
- */
622
- "descending": boolean;
623
- /** Creates a new OrderField instance. */
624
- constructor($$source?: Partial<OrderField>);
625
- /**
626
- * Creates a new OrderField instance from a string or object.
627
- */
628
- static createFrom($$source?: any): OrderField;
629
- }
630
- /**
631
- * PaginationParams controls pagination for List and Find operations.
632
- */
633
- export declare class PaginationParams {
634
- /**
635
- * Page is the 1-based page number (for page-based pagination).
636
- */
637
- "page": number;
638
- /**
639
- * PageSize is the maximum number of results per page.
640
- * 0 means return all results.
641
- */
642
- "pageSize": number;
643
- /**
644
- * Cursor is the continuation token from a previous response
645
- * (for cursor-based pagination). Mutually exclusive with Page.
646
- */
647
- "cursor"?: string;
648
- /** Creates a new PaginationParams instance. */
649
- constructor($$source?: Partial<PaginationParams>);
650
- /**
651
- * Creates a new PaginationParams instance from a string or object.
652
- */
653
- static createFrom($$source?: any): PaginationParams;
654
- }
655
- /**
656
- * RelationshipDescriptor declares a relationship from one resource type to another.
657
- */
658
- export declare class RelationshipDescriptor {
659
- "type": RelationshipType;
660
- "targetResourceKey": string;
661
- "label": string;
662
- "inverseLabel"?: string;
663
- "cardinality"?: string;
664
- "direction"?: EdgeDirection;
665
- "extractor"?: RelationshipExtractor | null;
666
- /**
667
- * TargetNamespaced is a tri-state flag: nil = default to namespaced (common case),
668
- * true = explicitly namespaced, false = cluster-scoped target (e.g., Node, PV,
669
- * StorageClass). Pointer type distinguishes "unspecified" from explicit values;
670
- * callers must check for nil before dereferencing.
671
- */
672
- "targetNamespaced"?: boolean | null;
673
- /** Creates a new RelationshipDescriptor instance. */
674
- constructor($$source?: Partial<RelationshipDescriptor>);
675
- /**
676
- * Creates a new RelationshipDescriptor instance from a string or object.
677
- */
678
- static createFrom($$source?: any): RelationshipDescriptor;
679
- }
680
- /**
681
- * RelationshipExtractor defines how to find related resource IDs from source data.
682
- */
683
- export declare class RelationshipExtractor {
684
- "method": string;
685
- "fieldPath"?: string;
686
- "labelSelector"?: {
687
- [_ in string]?: string;
688
- };
689
- /** Creates a new RelationshipExtractor instance. */
690
- constructor($$source?: Partial<RelationshipExtractor>);
691
- /**
692
- * Creates a new RelationshipExtractor instance from a string or object.
693
- */
694
- static createFrom($$source?: any): RelationshipExtractor;
695
- }
696
- /**
697
- * RelationshipType classifies the kind of relationship between resources.
698
- */
699
- export declare enum RelationshipType {
700
- /**
701
- * The Go zero value for the underlying type of the enum.
702
- */
703
- $zero = "",
704
- RelOwns = "owns",
705
- RelRunsOn = "runs_on",
706
- RelUses = "uses",
707
- RelExposes = "exposes",
708
- RelManages = "manages",
709
- RelMemberOf = "member_of",
710
- RelSelects = "selects"
711
- }
712
- /**
713
- * ResolvedRelationship holds actual relationship instances for a resource.
714
- */
715
- export declare class ResolvedRelationship {
716
- "descriptor": RelationshipDescriptor;
717
- "targets": ResourceRef[];
718
- /** Creates a new ResolvedRelationship instance. */
719
- constructor($$source?: Partial<ResolvedRelationship>);
720
- /**
721
- * Creates a new ResolvedRelationship instance from a string or object.
722
- */
723
- static createFrom($$source?: any): ResolvedRelationship;
724
- }
725
- /**
726
- * ResourceCapabilities describes what operations and features a resource
727
- * type supports. Auto-derived by the SDK from type assertions on registered
728
- * Resourcers at registration time.
729
- */
730
- export declare class ResourceCapabilities {
731
- /**
732
- * CRUD flags.
733
- */
734
- "canGet": boolean;
735
- "canList": boolean;
736
- "canFind": boolean;
737
- "canCreate": boolean;
738
- "canUpdate": boolean;
739
- "canDelete": boolean;
740
- /**
741
- * Extended capabilities.
742
- */
743
- "watchable": boolean;
744
- "filterable": boolean;
745
- "searchable": boolean;
746
- "hasActions": boolean;
747
- "hasSchema": boolean;
748
- "namespaceScoped": boolean;
749
- "hasRelationships": boolean;
750
- "hasHealth": boolean;
751
- "hasEvents": boolean;
752
- /**
753
- * ScaleHint indicates expected cardinality.
754
- */
755
- "scaleHint"?: ScaleHint | null;
756
- /** Creates a new ResourceCapabilities instance. */
757
- constructor($$source?: Partial<ResourceCapabilities>);
758
- /**
759
- * Creates a new ResourceCapabilities instance from a string or object.
760
- */
761
- static createFrom($$source?: any): ResourceCapabilities;
762
- }
763
- /**
764
- * ResourceDefinition describes the table rendering configuration for a resource type.
765
- */
766
- export declare class ResourceDefinition {
767
- /**
768
- * IDAccessor is the JSON path to extract the resource ID.
769
- */
770
- "id_accessor": string;
771
- /**
772
- * NamespaceAccessor is the JSON path to extract the namespace.
773
- */
774
- "namespace_accessor": string;
775
- /**
776
- * MemoizerAccessor is the JSON path to extract a memoization key.
777
- */
778
- "memoizer_accessor": string;
779
- /**
780
- * ColumnDefs defines the table columns for this resource type.
781
- */
782
- "columnDefs": ColumnDefinition[];
783
- /** Creates a new ResourceDefinition instance. */
784
- constructor($$source?: Partial<ResourceDefinition>);
785
- /**
786
- * Creates a new ResourceDefinition instance from a string or object.
787
- */
788
- static createFrom($$source?: any): ResourceDefinition;
789
- }
790
- /**
791
- * ResourceEvent is a diagnostic event associated with a resource.
792
- */
793
- export declare class ResourceEvent {
794
- "type": EventSeverity;
795
- "reason": string;
796
- "message": string;
797
- "source"?: string;
798
- "count"?: number;
799
- "firstSeen": string;
800
- "lastSeen": string;
801
- /** Creates a new ResourceEvent instance. */
802
- constructor($$source?: Partial<ResourceEvent>);
803
- /**
804
- * Creates a new ResourceEvent instance from a string or object.
805
- */
806
- static createFrom($$source?: any): ResourceEvent;
807
- }
808
- /**
809
- * ResourceGroup is a categorization of resources within a plugin.
810
- */
811
- export declare class ResourceGroup {
812
- /**
813
- * ID is the unique identifier of the resource group.
814
- */
815
- "id": string;
816
- /**
817
- * Name is the display name of the resource group.
818
- */
819
- "name": string;
820
- /**
821
- * Description is a human-readable description.
822
- */
823
- "description": string;
824
- /**
825
- * Icon is an optional icon for the resource group.
826
- */
827
- "icon": string;
828
- /**
829
- * Resources is a map of resource versions to the resources in that version.
830
- */
831
- "resources": {
832
- [_ in string]?: ResourceMeta[];
833
- };
834
- /** Creates a new ResourceGroup instance. */
835
- constructor($$source?: Partial<ResourceGroup>);
836
- /**
837
- * Creates a new ResourceGroup instance from a string or object.
838
- */
839
- static createFrom($$source?: any): ResourceGroup;
840
- }
841
- /**
842
- * ResourceHealth is a normalized health assessment for a resource.
843
- */
844
- export declare class ResourceHealth {
845
- "status": HealthStatus;
846
- "reason"?: string;
847
- "message"?: string;
848
- "since"?: string | null;
849
- "conditions"?: HealthCondition[];
850
- /** Creates a new ResourceHealth instance. */
851
- constructor($$source?: Partial<ResourceHealth>);
852
- /**
853
- * Creates a new ResourceHealth instance from a string or object.
854
- */
855
- static createFrom($$source?: any): ResourceHealth;
856
- }
857
- /**
858
- * ResourceLink creates links to other resources from table cells.
859
- */
860
- export declare class ResourceLink {
861
- "idAccessor": string;
862
- "namespaceAccessor": string;
863
- "namespaced": boolean;
864
- "resourceKey": string;
865
- "keyAccessor": string;
866
- "keyMap": {
867
- [_ in string]?: string;
868
- };
869
- "detailExtractors": {
870
- [_ in string]?: string;
871
- };
872
- "displayId": boolean;
873
- /** Creates a new ResourceLink instance. */
874
- constructor($$source?: Partial<ResourceLink>);
875
- /**
876
- * Creates a new ResourceLink instance from a string or object.
877
- */
878
- static createFrom($$source?: any): ResourceLink;
879
- }
880
- /**
881
- * ResourceMeta contains information about the categorization of a resource.
882
- * Used to identify resource types across plugins and route operations to the
883
- * correct Resourcer implementation.
884
- */
885
- export declare class ResourceMeta {
886
- /**
887
- * Group is the group of the resource (e.g., "core", "apps", "ec2").
888
- */
889
- "group": string;
890
- /**
891
- * Version is the version of the resource (e.g., "v1", "v1beta1").
892
- */
893
- "version": string;
894
- /**
895
- * Kind is the kind of the resource (e.g., "Pod", "Deployment", "EC2Instance").
896
- */
897
- "kind": string;
898
- /**
899
- * Label is a human-readable label. Defaults to Kind if not provided.
900
- */
901
- "label": string;
902
- /**
903
- * Icon is an optional icon (icon name, data URI, or URL).
904
- */
905
- "icon": string;
906
- /**
907
- * Description is a human-readable description of the resource.
908
- */
909
- "description": string;
910
- /**
911
- * Category is the category for grouping (e.g., "Workloads", "Networking").
912
- * Defaults to "Uncategorized" if empty.
913
- */
914
- "category": string;
915
- /** Creates a new ResourceMeta instance. */
916
- constructor($$source?: Partial<ResourceMeta>);
917
- /**
918
- * Creates a new ResourceMeta instance from a string or object.
919
- */
920
- static createFrom($$source?: any): ResourceMeta;
921
- }
922
- /**
923
- * ResourceRef is a reference to a specific resource instance.
924
- */
925
- export declare class ResourceRef {
926
- "pluginId"?: string;
927
- "connectionId": string;
928
- "resourceKey": string;
929
- "id": string;
930
- "namespace"?: string;
931
- "displayName"?: string;
932
- /** Creates a new ResourceRef instance. */
933
- constructor($$source?: Partial<ResourceRef>);
934
- /**
935
- * Creates a new ResourceRef instance from a string or object.
936
- */
937
- static createFrom($$source?: any): ResourceRef;
938
- }
939
- /**
940
- * ScaleHint indicates the expected cardinality of a resource type.
941
- */
942
- export declare class ScaleHint {
943
- /**
944
- * Level is the expected scale: "few", "moderate", "many".
945
- */
946
- "level": ScaleLevel;
947
- /**
948
- * ExpectedCount is the approximate expected count (optional).
949
- */
950
- "expectedCount"?: number;
951
- /**
952
- * DefaultPageSize is the recommended page size for this resource.
953
- */
954
- "defaultPageSize"?: number;
955
- /** Creates a new ScaleHint instance. */
956
- constructor($$source?: Partial<ScaleHint>);
957
- /**
958
- * Creates a new ScaleHint instance from a string or object.
959
- */
960
- static createFrom($$source?: any): ScaleHint;
961
- }
962
- /**
963
- * ScaleLevel represents expected resource cardinality.
964
- */
965
- export declare enum ScaleLevel {
966
- /**
967
- * The Go zero value for the underlying type of the enum.
968
- */
969
- $zero = "",
970
- /**
971
- * ScaleFew means <100 resources (list-all is fine).
972
- */
973
- ScaleFew = "few",
974
- /**
975
- * ScaleModerate means 100-10K resources (pagination recommended).
976
- */
977
- ScaleModerate = "moderate",
978
- /**
979
- * ScaleMany means 10K+ resources (filter-first approach required).
980
- */
981
- ScaleMany = "many"
982
- }
983
- /**
984
- * Schema describes the shape of an action's parameters or output.
985
- * Always serializes as a JSON Schema object with "type":"object".
986
- */
987
- export type Schema = any;
988
- /**
989
- * UpdateInput is the input to the Update operation.
990
- */
991
- export declare class UpdateInput {
992
- /**
993
- * Input is the updated resource data.
994
- */
995
- "input": json$0.RawMessage;
996
- /**
997
- * ID is the unique identifier of the resource to update.
998
- */
999
- "id": string;
1000
- /**
1001
- * Namespace is an optional namespace identifier.
1002
- */
1003
- "namespace": string;
1004
- /** Creates a new UpdateInput instance. */
1005
- constructor($$source?: Partial<UpdateInput>);
1006
- /**
1007
- * Creates a new UpdateInput instance from a string or object.
1008
- */
1009
- static createFrom($$source?: any): UpdateInput;
1010
- }
1011
- /**
1012
- * UpdateResult is the result of an Update operation.
1013
- */
1014
- export declare class UpdateResult {
1015
- /**
1016
- * Result is the updated resource as pre-serialized JSON.
1017
- */
1018
- "result": json$0.RawMessage;
1019
- /**
1020
- * Success indicates whether the operation succeeded.
1021
- */
1022
- "success": boolean;
1023
- /** Creates a new UpdateResult instance. */
1024
- constructor($$source?: Partial<UpdateResult>);
1025
- /**
1026
- * Creates a new UpdateResult instance from a string or object.
1027
- */
1028
- static createFrom($$source?: any): UpdateResult;
1029
- }
1030
- /**
1031
- * WatchConnectionSummary provides a snapshot of all watch states for a connection.
1032
- */
1033
- export declare class WatchConnectionSummary {
1034
- "connectionId": string;
1035
- "resources": {
1036
- [_ in string]?: WatchState;
1037
- };
1038
- "resourceCounts": {
1039
- [_ in string]?: number;
1040
- };
1041
- "scope"?: WatchScope | null;
1042
- /** Creates a new WatchConnectionSummary instance. */
1043
- constructor($$source?: Partial<WatchConnectionSummary>);
1044
- /**
1045
- * Creates a new WatchConnectionSummary instance from a string or object.
1046
- */
1047
- static createFrom($$source?: any): WatchConnectionSummary;
1048
- }
1049
- /**
1050
- * WatchScope configures the scope/partitioning of a Watch invocation.
1051
- * Passed via context so the Watcher[ClientT] interface doesn't change.
1052
- *
1053
- * "Partitions" are backend-defined divisions of the resource space.
1054
- * K8s: partitions = namespaces. AWS: partitions = regions. GCP: partitions = projects.
1055
- */
1056
- export declare class WatchScope {
1057
- /**
1058
- * empty = unscoped
1059
- */
1060
- "partitions"?: string[];
1061
- /** Creates a new WatchScope instance. */
1062
- constructor($$source?: Partial<WatchScope>);
1063
- /**
1064
- * Creates a new WatchScope instance from a string or object.
1065
- */
1066
- static createFrom($$source?: any): WatchScope;
1067
- }
1068
- /**
1069
- * WatchState represents the current state of a watch.
1070
- *
1071
- * State Machine:
1072
- *
1073
- * ┌─────────────────────────────┐
1074
- * │ │
1075
- * Idle ──► Syncing ──► Synced ──► Error ──► Syncing │ (retry)
1076
- * │ │ │
1077
- * │ ▼ │
1078
- * │ Failed │ (terminal: max retries)
1079
- * │ │
1080
- * ▼ │
1081
- * Error ──────────────────────────────────►│
1082
- * │
1083
- * ▼
1084
- * Stopped (terminal: context cancelled)
1085
- *
1086
- * Transition rules:
1087
- * - Idle → Syncing: StartConnectionWatch or EnsureResourceWatch is called.
1088
- * - Syncing → Synced: Initial list completed and cache populated. ResourceCount is set.
1089
- * - Syncing → Error: Initial list or informer setup failed. Error and Message are set.
1090
- * - Synced → Error: Watch stream returned an error during live operation.
1091
- * - Error → Syncing: Automatic retry after backoff (if retries remain).
1092
- * - Error → Failed: Max retry attempts exhausted. Terminal state.
1093
- * - Error → Stopped: Context cancelled during backoff. Terminal state.
1094
- * - Any → Stopped: Context cancelled (explicit StopConnectionWatch or shutdown).
1095
- * - Idle → Forbidden: Backend detects 401/403 on initial sync. Terminal — no retry.
1096
- * - Idle → Skipped: Resource excluded by scope configuration. Terminal.
1097
- */
1098
- export declare enum WatchState {
1099
- /**
1100
- * The Go zero value for the underlying type of the enum.
1101
- */
1102
- $zero = 0,
1103
- /**
1104
- * WatchStateIdle means the watch is registered but not started.
1105
- * Entered: on registration. Exited: when watch startup begins (→ Syncing).
1106
- * Not terminal.
1107
- */
1108
- WatchStateIdle = 0,
1109
- /**
1110
- * WatchStateSyncing means the watch is running but initial sync is in progress.
1111
- * Entered: on first startup or retry. Exited: cache sync completes (→ Synced)
1112
- * or fails (→ Error).
1113
- * WatchStateEvent.ResourceCount is not yet meaningful in this state.
1114
- * Not terminal.
1115
- */
1116
- WatchStateSyncing = 1,
1117
- /**
1118
- * WatchStateSynced means the watch is running and the cache is fully populated.
1119
- * Entered: when cache sync completes successfully.
1120
- * Exited: watch stream error (→ Error) or context cancelled (→ Stopped).
1121
- * WatchStateEvent.ResourceCount is set to the number of resources observed.
1122
- * Not terminal.
1123
- */
1124
- WatchStateSynced = 2,
1125
- /**
1126
- * WatchStateError means an error occurred during watching.
1127
- * Entered: when the watch stream or initial list returns an error.
1128
- * Exited: automatic retry (→ Syncing), max retries (→ Failed), or
1129
- * context cancelled (→ Stopped).
1130
- * WatchStateEvent.Error and Message are set.
1131
- * Not terminal.
1132
- */
1133
- WatchStateError = 3,
1134
- /**
1135
- * WatchStateStopped means the watch was explicitly stopped.
1136
- * Entered: when context is cancelled (user-initiated stop or shutdown).
1137
- * Terminal — no further transitions occur.
1138
- */
1139
- WatchStateStopped = 4,
1140
- /**
1141
- * WatchStateFailed means the watch failed after exhausting retry attempts.
1142
- * Entered: when max retries are exhausted after repeated errors.
1143
- * WatchStateEvent.Error and Message are set.
1144
- * Terminal — requires explicit restart via RestartResourceWatch.
1145
- */
1146
- WatchStateFailed = 5,
1147
- /**
1148
- * WatchStateForbidden means the watch was denied due to 401/403 permissions.
1149
- * Entered: when the backend detects a permission error (e.g., K8s 403 on List/Watch).
1150
- * Terminal — stable, no auto-retry. User must fix permissions and reconnect.
1151
- */
1152
- WatchStateForbidden = 6,
1153
- /**
1154
- * WatchStateSkipped means the watch was intentionally not started.
1155
- * Entered: when the resource is excluded by scope configuration or other policy.
1156
- * Terminal — no further transitions occur unless scope changes.
1157
- */
1158
- WatchStateSkipped = 7
1159
- }
1160
- /**
1161
- * WatchStateEvent represents a state change in a watch.
1162
- */
1163
- export declare class WatchStateEvent {
1164
- /**
1165
- * PluginID identifies the source plugin.
1166
- */
1167
- "pluginId": string;
1168
- /**
1169
- * Connection is the connection ID that produced this event.
1170
- */
1171
- "connection": string;
1172
- /**
1173
- * ResourceKey is the resource type key (e.g., "core::v1::Pod").
1174
- */
1175
- "resourceKey": string;
1176
- /**
1177
- * State is the new watch state.
1178
- */
1179
- "state": WatchState;
1180
- /**
1181
- * Message is a human-readable description of the state change.
1182
- */
1183
- "message"?: string;
1184
- /**
1185
- * ResourceCount is the number of resources observed (if known).
1186
- */
1187
- "resourceCount"?: number;
1188
- /**
1189
- * ErrorCode is a machine-readable error classification (e.g., "FORBIDDEN", "TIMEOUT").
1190
- * Only set when State is WatchStateError, WatchStateFailed, or WatchStateForbidden.
1191
- */
1192
- "errorCode"?: string;
1193
- /** Creates a new WatchStateEvent instance. */
1194
- constructor($$source?: Partial<WatchStateEvent>);
1195
- /**
1196
- * Creates a new WatchStateEvent instance from a string or object.
1197
- */
1198
- static createFrom($$source?: any): WatchStateEvent;
1199
- }