aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/frontend/src/xtext/xtextMessages.ts
diff options
context:
space:
mode:
Diffstat (limited to 'subprojects/frontend/src/xtext/xtextMessages.ts')
-rw-r--r--subprojects/frontend/src/xtext/xtextMessages.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/subprojects/frontend/src/xtext/xtextMessages.ts b/subprojects/frontend/src/xtext/xtextMessages.ts
index c4305fcf..4bf49c17 100644
--- a/subprojects/frontend/src/xtext/xtextMessages.ts
+++ b/subprojects/frontend/src/xtext/xtextMessages.ts
@@ -1,14 +1,14 @@
1import { z } from 'zod'; 1import { z } from 'zod';
2 2
3export const xtextWebRequest = z.object({ 3export const xtextWebRequest = z.object({
4 id: z.string().nonempty(), 4 id: z.string().min(1),
5 request: z.unknown(), 5 request: z.unknown(),
6}); 6});
7 7
8export type XtextWebRequest = z.infer<typeof xtextWebRequest>; 8export type XtextWebRequest = z.infer<typeof xtextWebRequest>;
9 9
10export const xtextWebOkResponse = z.object({ 10export const xtextWebOkResponse = z.object({
11 id: z.string().nonempty(), 11 id: z.string().min(1),
12 response: z.unknown(), 12 response: z.unknown(),
13}); 13});
14 14
@@ -19,7 +19,7 @@ export const xtextWebErrorKind = z.enum(['request', 'server']);
19export type XtextWebErrorKind = z.infer<typeof xtextWebErrorKind>; 19export type XtextWebErrorKind = z.infer<typeof xtextWebErrorKind>;
20 20
21export const xtextWebErrorResponse = z.object({ 21export const xtextWebErrorResponse = z.object({
22 id: z.string().nonempty(), 22 id: z.string().min(1),
23 error: xtextWebErrorKind, 23 error: xtextWebErrorKind,
24 message: z.string(), 24 message: z.string(),
25}); 25});
@@ -31,8 +31,8 @@ export const xtextWebPushService = z.enum(['highlight', 'validate']);
31export type XtextWebPushService = z.infer<typeof xtextWebPushService>; 31export type XtextWebPushService = z.infer<typeof xtextWebPushService>;
32 32
33export const xtextWebPushMessage = z.object({ 33export const xtextWebPushMessage = z.object({
34 resource: z.string().nonempty(), 34 resource: z.string().min(1),
35 stateId: z.string().nonempty(), 35 stateId: z.string().min(1),
36 service: xtextWebPushService, 36 service: xtextWebPushService,
37 push: z.unknown(), 37 push: z.unknown(),
38}); 38});