@lensmcp/protocol-types 1.24.2 → 1.24.4
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/lib/context.d.ts +4 -0
- package/lib/context.js +1 -1
- package/lib/dashboard.d.ts +2 -0
- package/lib/event.d.ts +4 -2
- package/lib/node.d.ts +2 -0
- package/lib/resources.d.ts +29 -29
- package/package.json +1 -1
package/lib/context.d.ts
CHANGED
|
@@ -25,6 +25,8 @@ export declare const FlowOriginTypeSchema: z.ZodEnum<{
|
|
|
25
25
|
"page-load": "page-load";
|
|
26
26
|
"form-submit": "form-submit";
|
|
27
27
|
"input-change": "input-change";
|
|
28
|
+
request: "request";
|
|
29
|
+
job: "job";
|
|
28
30
|
}>;
|
|
29
31
|
export type FlowOriginType = z.infer<typeof FlowOriginTypeSchema>;
|
|
30
32
|
export declare const TraceContextSchema: z.ZodObject<{
|
|
@@ -61,6 +63,8 @@ export declare const TraceContextSchema: z.ZodObject<{
|
|
|
61
63
|
"page-load": "page-load";
|
|
62
64
|
"form-submit": "form-submit";
|
|
63
65
|
"input-change": "input-change";
|
|
66
|
+
request: "request";
|
|
67
|
+
job: "job";
|
|
64
68
|
}>>;
|
|
65
69
|
originNodeId: z.ZodOptional<z.ZodString>;
|
|
66
70
|
causedByNodeId: z.ZodOptional<z.ZodString>;
|
package/lib/context.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{z as e}from"zod";export const FlowOriginTypeSchema=e.enum(["user-click","user-input","keyboard","route-load","effect","memo-recompute","timer","raf","idle-callback","websocket-message","broadcast-channel","post-message","storage-event","service-worker-message","media-query-change","visibility-change","resize","intersection-observer","mutation-observer","backend-response","hmr-update","ai-turn","page-load","form-submit","input-change"]),TraceContextSchema=e.object({sessionId:e.string(),browserContextId:e.string().optional(),tabId:e.string().optional(),frameId:e.string().optional(),route:e.string().optional(),url:e.string().optional(),flowId:e.string().optional(),originType:FlowOriginTypeSchema.optional(),originNodeId:e.string().optional(),causedByNodeId:e.string().optional(),requestId:e.string().optional(),parentRequestId:e.string().optional(),traceparent:e.string().optional(),projectName:e.string().optional(),userActionId:e.string().optional(),userIdHash:e.string().optional(),tenantIdHash:e.string().optional()});
|
|
1
|
+
"use strict";import{z as e}from"zod";export const FlowOriginTypeSchema=e.enum(["user-click","user-input","keyboard","route-load","effect","memo-recompute","timer","raf","idle-callback","websocket-message","broadcast-channel","post-message","storage-event","service-worker-message","media-query-change","visibility-change","resize","intersection-observer","mutation-observer","backend-response","hmr-update","ai-turn","page-load","form-submit","input-change","request","job"]),TraceContextSchema=e.object({sessionId:e.string(),browserContextId:e.string().optional(),tabId:e.string().optional(),frameId:e.string().optional(),route:e.string().optional(),url:e.string().optional(),flowId:e.string().optional(),originType:FlowOriginTypeSchema.optional(),originNodeId:e.string().optional(),causedByNodeId:e.string().optional(),requestId:e.string().optional(),parentRequestId:e.string().optional(),traceparent:e.string().optional(),projectName:e.string().optional(),userActionId:e.string().optional(),userIdHash:e.string().optional(),tenantIdHash:e.string().optional()});
|
package/lib/dashboard.d.ts
CHANGED
|
@@ -474,6 +474,8 @@ export interface DashLogLine {
|
|
|
474
474
|
severity: string;
|
|
475
475
|
title: string;
|
|
476
476
|
message?: string;
|
|
477
|
+
/** The whole record a pod printed across lines — a message and its metadata, or its stack (shown expanded). */
|
|
478
|
+
detail?: string;
|
|
477
479
|
flowId?: string;
|
|
478
480
|
}
|
|
479
481
|
export interface DashLogsFrame {
|
package/lib/event.d.ts
CHANGED
|
@@ -46,10 +46,10 @@ export declare const EventCategorySchema: z.ZodEnum<{
|
|
|
46
46
|
}>;
|
|
47
47
|
export type EventCategory = z.infer<typeof EventCategorySchema>;
|
|
48
48
|
export declare const SeveritySchema: z.ZodEnum<{
|
|
49
|
-
error: "error";
|
|
50
49
|
debug: "debug";
|
|
51
50
|
info: "info";
|
|
52
51
|
warning: "warning";
|
|
52
|
+
error: "error";
|
|
53
53
|
fatal: "fatal";
|
|
54
54
|
}>;
|
|
55
55
|
export type Severity = z.infer<typeof SeveritySchema>;
|
|
@@ -102,10 +102,10 @@ export declare const BaseEventSchema: z.ZodObject<{
|
|
|
102
102
|
cluster: "cluster";
|
|
103
103
|
}>;
|
|
104
104
|
severity: z.ZodEnum<{
|
|
105
|
-
error: "error";
|
|
106
105
|
debug: "debug";
|
|
107
106
|
info: "info";
|
|
108
107
|
warning: "warning";
|
|
108
|
+
error: "error";
|
|
109
109
|
fatal: "fatal";
|
|
110
110
|
}>;
|
|
111
111
|
context: z.ZodObject<{
|
|
@@ -142,6 +142,8 @@ export declare const BaseEventSchema: z.ZodObject<{
|
|
|
142
142
|
"page-load": "page-load";
|
|
143
143
|
"form-submit": "form-submit";
|
|
144
144
|
"input-change": "input-change";
|
|
145
|
+
request: "request";
|
|
146
|
+
job: "job";
|
|
145
147
|
}>>;
|
|
146
148
|
originNodeId: z.ZodOptional<z.ZodString>;
|
|
147
149
|
causedByNodeId: z.ZodOptional<z.ZodString>;
|
package/lib/node.d.ts
CHANGED
|
@@ -181,6 +181,8 @@ export declare const TraceNodeSchema: z.ZodObject<{
|
|
|
181
181
|
"page-load": "page-load";
|
|
182
182
|
"form-submit": "form-submit";
|
|
183
183
|
"input-change": "input-change";
|
|
184
|
+
request: "request";
|
|
185
|
+
job: "job";
|
|
184
186
|
}>>;
|
|
185
187
|
originNodeId: z.ZodOptional<z.ZodString>;
|
|
186
188
|
causedByNodeId: z.ZodOptional<z.ZodString>;
|
package/lib/resources.d.ts
CHANGED
|
@@ -13,19 +13,19 @@ export declare const ResourceEnvelopeSchema: z.ZodObject<{
|
|
|
13
13
|
}, z.core.$strip>;
|
|
14
14
|
export type ResourceEnvelope = z.infer<typeof ResourceEnvelopeSchema>;
|
|
15
15
|
export declare const AgentStatusKindSchema: z.ZodEnum<{
|
|
16
|
+
warning: "warning";
|
|
16
17
|
starting: "starting";
|
|
17
18
|
clean: "clean";
|
|
18
|
-
warning: "warning";
|
|
19
19
|
failing: "failing";
|
|
20
20
|
}>;
|
|
21
21
|
export type AgentStatusKind = z.infer<typeof AgentStatusKindSchema>;
|
|
22
22
|
export declare const AgentBlockingItemSchema: z.ZodObject<{
|
|
23
23
|
source: z.ZodString;
|
|
24
24
|
severity: z.ZodEnum<{
|
|
25
|
-
error: "error";
|
|
26
|
-
warning: "warning";
|
|
27
25
|
debug: "debug";
|
|
28
26
|
info: "info";
|
|
27
|
+
warning: "warning";
|
|
28
|
+
error: "error";
|
|
29
29
|
fatal: "fatal";
|
|
30
30
|
}>;
|
|
31
31
|
title: z.ZodString;
|
|
@@ -49,37 +49,37 @@ export declare const AgentBlockingItemSchema: z.ZodObject<{
|
|
|
49
49
|
export type AgentBlockingItem = z.infer<typeof AgentBlockingItemSchema>;
|
|
50
50
|
export declare const AgentChecksSchema: z.ZodObject<{
|
|
51
51
|
typecheck: z.ZodOptional<z.ZodEnum<{
|
|
52
|
+
unknown: "unknown";
|
|
52
53
|
passed: "passed";
|
|
53
54
|
failed: "failed";
|
|
54
|
-
unknown: "unknown";
|
|
55
55
|
}>>;
|
|
56
56
|
lint: z.ZodOptional<z.ZodEnum<{
|
|
57
|
+
unknown: "unknown";
|
|
57
58
|
passed: "passed";
|
|
58
59
|
failed: "failed";
|
|
59
|
-
unknown: "unknown";
|
|
60
60
|
}>>;
|
|
61
61
|
build: z.ZodOptional<z.ZodEnum<{
|
|
62
|
+
unknown: "unknown";
|
|
62
63
|
passed: "passed";
|
|
63
64
|
failed: "failed";
|
|
64
|
-
unknown: "unknown";
|
|
65
65
|
}>>;
|
|
66
66
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
67
67
|
warning: "warning";
|
|
68
|
+
unknown: "unknown";
|
|
68
69
|
passed: "passed";
|
|
69
70
|
failed: "failed";
|
|
70
|
-
unknown: "unknown";
|
|
71
71
|
}>>;
|
|
72
72
|
visual: z.ZodOptional<z.ZodEnum<{
|
|
73
73
|
warning: "warning";
|
|
74
|
+
unknown: "unknown";
|
|
74
75
|
passed: "passed";
|
|
75
76
|
failed: "failed";
|
|
76
|
-
unknown: "unknown";
|
|
77
77
|
}>>;
|
|
78
78
|
memory: z.ZodOptional<z.ZodEnum<{
|
|
79
79
|
warning: "warning";
|
|
80
|
+
unknown: "unknown";
|
|
80
81
|
passed: "passed";
|
|
81
82
|
failed: "failed";
|
|
82
|
-
unknown: "unknown";
|
|
83
83
|
}>>;
|
|
84
84
|
}, z.core.$strip>;
|
|
85
85
|
/**
|
|
@@ -113,9 +113,9 @@ export declare const AgentCurrentStatusSchema: z.ZodObject<{
|
|
|
113
113
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
114
114
|
sessionId: z.ZodString;
|
|
115
115
|
status: z.ZodEnum<{
|
|
116
|
+
warning: "warning";
|
|
116
117
|
starting: "starting";
|
|
117
118
|
clean: "clean";
|
|
118
|
-
warning: "warning";
|
|
119
119
|
failing: "failing";
|
|
120
120
|
}>;
|
|
121
121
|
activeTab: z.ZodOptional<z.ZodString>;
|
|
@@ -123,10 +123,10 @@ export declare const AgentCurrentStatusSchema: z.ZodObject<{
|
|
|
123
123
|
blocking: z.ZodArray<z.ZodObject<{
|
|
124
124
|
source: z.ZodString;
|
|
125
125
|
severity: z.ZodEnum<{
|
|
126
|
-
error: "error";
|
|
127
|
-
warning: "warning";
|
|
128
126
|
debug: "debug";
|
|
129
127
|
info: "info";
|
|
128
|
+
warning: "warning";
|
|
129
|
+
error: "error";
|
|
130
130
|
fatal: "fatal";
|
|
131
131
|
}>;
|
|
132
132
|
title: z.ZodString;
|
|
@@ -150,10 +150,10 @@ export declare const AgentCurrentStatusSchema: z.ZodObject<{
|
|
|
150
150
|
warnings: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
151
151
|
source: z.ZodString;
|
|
152
152
|
severity: z.ZodEnum<{
|
|
153
|
-
error: "error";
|
|
154
|
-
warning: "warning";
|
|
155
153
|
debug: "debug";
|
|
156
154
|
info: "info";
|
|
155
|
+
warning: "warning";
|
|
156
|
+
error: "error";
|
|
157
157
|
fatal: "fatal";
|
|
158
158
|
}>;
|
|
159
159
|
title: z.ZodString;
|
|
@@ -177,37 +177,37 @@ export declare const AgentCurrentStatusSchema: z.ZodObject<{
|
|
|
177
177
|
suggestedReads: z.ZodArray<z.ZodString>;
|
|
178
178
|
checks: z.ZodOptional<z.ZodObject<{
|
|
179
179
|
typecheck: z.ZodOptional<z.ZodEnum<{
|
|
180
|
+
unknown: "unknown";
|
|
180
181
|
passed: "passed";
|
|
181
182
|
failed: "failed";
|
|
182
|
-
unknown: "unknown";
|
|
183
183
|
}>>;
|
|
184
184
|
lint: z.ZodOptional<z.ZodEnum<{
|
|
185
|
+
unknown: "unknown";
|
|
185
186
|
passed: "passed";
|
|
186
187
|
failed: "failed";
|
|
187
|
-
unknown: "unknown";
|
|
188
188
|
}>>;
|
|
189
189
|
build: z.ZodOptional<z.ZodEnum<{
|
|
190
|
+
unknown: "unknown";
|
|
190
191
|
passed: "passed";
|
|
191
192
|
failed: "failed";
|
|
192
|
-
unknown: "unknown";
|
|
193
193
|
}>>;
|
|
194
194
|
runtime: z.ZodOptional<z.ZodEnum<{
|
|
195
195
|
warning: "warning";
|
|
196
|
+
unknown: "unknown";
|
|
196
197
|
passed: "passed";
|
|
197
198
|
failed: "failed";
|
|
198
|
-
unknown: "unknown";
|
|
199
199
|
}>>;
|
|
200
200
|
visual: z.ZodOptional<z.ZodEnum<{
|
|
201
201
|
warning: "warning";
|
|
202
|
+
unknown: "unknown";
|
|
202
203
|
passed: "passed";
|
|
203
204
|
failed: "failed";
|
|
204
|
-
unknown: "unknown";
|
|
205
205
|
}>>;
|
|
206
206
|
memory: z.ZodOptional<z.ZodEnum<{
|
|
207
207
|
warning: "warning";
|
|
208
|
+
unknown: "unknown";
|
|
208
209
|
passed: "passed";
|
|
209
210
|
failed: "failed";
|
|
210
|
-
unknown: "unknown";
|
|
211
211
|
}>>;
|
|
212
212
|
}, z.core.$strip>>;
|
|
213
213
|
server: z.ZodOptional<z.ZodObject<{
|
|
@@ -327,10 +327,10 @@ declare const CheckEntrySchema: z.ZodObject<{
|
|
|
327
327
|
code: z.ZodOptional<z.ZodString>;
|
|
328
328
|
rule: z.ZodOptional<z.ZodString>;
|
|
329
329
|
severity: z.ZodOptional<z.ZodEnum<{
|
|
330
|
-
error: "error";
|
|
331
|
-
warning: "warning";
|
|
332
330
|
debug: "debug";
|
|
333
331
|
info: "info";
|
|
332
|
+
warning: "warning";
|
|
333
|
+
error: "error";
|
|
334
334
|
fatal: "fatal";
|
|
335
335
|
}>>;
|
|
336
336
|
file: z.ZodOptional<z.ZodString>;
|
|
@@ -370,9 +370,9 @@ export declare const TypecheckCurrentSchema: z.ZodObject<{
|
|
|
370
370
|
stale: z.ZodBoolean;
|
|
371
371
|
detail: z.ZodString;
|
|
372
372
|
status: z.ZodEnum<{
|
|
373
|
+
unknown: "unknown";
|
|
373
374
|
clean: "clean";
|
|
374
375
|
failing: "failing";
|
|
375
|
-
unknown: "unknown";
|
|
376
376
|
}>;
|
|
377
377
|
errorCount: z.ZodNumber;
|
|
378
378
|
lastRunAt: z.ZodOptional<z.ZodNumber>;
|
|
@@ -416,10 +416,10 @@ export declare const TypecheckErrorsSchema: z.ZodObject<{
|
|
|
416
416
|
code: z.ZodOptional<z.ZodString>;
|
|
417
417
|
rule: z.ZodOptional<z.ZodString>;
|
|
418
418
|
severity: z.ZodOptional<z.ZodEnum<{
|
|
419
|
-
error: "error";
|
|
420
|
-
warning: "warning";
|
|
421
419
|
debug: "debug";
|
|
422
420
|
info: "info";
|
|
421
|
+
warning: "warning";
|
|
422
|
+
error: "error";
|
|
423
423
|
fatal: "fatal";
|
|
424
424
|
}>>;
|
|
425
425
|
file: z.ZodOptional<z.ZodString>;
|
|
@@ -460,10 +460,10 @@ export declare const LintCurrentSchema: z.ZodObject<{
|
|
|
460
460
|
stale: z.ZodBoolean;
|
|
461
461
|
detail: z.ZodString;
|
|
462
462
|
status: z.ZodEnum<{
|
|
463
|
-
clean: "clean";
|
|
464
463
|
warning: "warning";
|
|
465
|
-
failing: "failing";
|
|
466
464
|
unknown: "unknown";
|
|
465
|
+
clean: "clean";
|
|
466
|
+
failing: "failing";
|
|
467
467
|
}>;
|
|
468
468
|
errorCount: z.ZodNumber;
|
|
469
469
|
warningCount: z.ZodNumber;
|
|
@@ -501,10 +501,10 @@ export declare const BuildCurrentSchema: z.ZodObject<{
|
|
|
501
501
|
stale: z.ZodBoolean;
|
|
502
502
|
detail: z.ZodString;
|
|
503
503
|
status: z.ZodEnum<{
|
|
504
|
-
clean: "clean";
|
|
505
504
|
warning: "warning";
|
|
506
|
-
failing: "failing";
|
|
507
505
|
unknown: "unknown";
|
|
506
|
+
clean: "clean";
|
|
507
|
+
failing: "failing";
|
|
508
508
|
}>;
|
|
509
509
|
hmrUpdates: z.ZodNumber;
|
|
510
510
|
lastRunAt: z.ZodOptional<z.ZodNumber>;
|