@eventcatalog/linter 0.1.1 → 1.0.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.
Files changed (90) hide show
  1. package/README.md +50 -18
  2. package/package.json +14 -17
  3. package/dist/cli/index.d.ts +0 -3
  4. package/dist/cli/index.d.ts.map +0 -1
  5. package/dist/cli/index.js +0 -73
  6. package/dist/cli/index.js.map +0 -1
  7. package/dist/config/index.d.ts +0 -29
  8. package/dist/config/index.d.ts.map +0 -1
  9. package/dist/config/index.js +0 -196
  10. package/dist/config/index.js.map +0 -1
  11. package/dist/index.d.ts +0 -8
  12. package/dist/index.d.ts.map +0 -1
  13. package/dist/index.js +0 -24
  14. package/dist/index.js.map +0 -1
  15. package/dist/parser/index.d.ts +0 -17
  16. package/dist/parser/index.d.ts.map +0 -1
  17. package/dist/parser/index.js +0 -43
  18. package/dist/parser/index.js.map +0 -1
  19. package/dist/reporters/index.d.ts +0 -16
  20. package/dist/reporters/index.d.ts.map +0 -1
  21. package/dist/reporters/index.js +0 -155
  22. package/dist/reporters/index.js.map +0 -1
  23. package/dist/scanner/index.d.ts +0 -14
  24. package/dist/scanner/index.d.ts.map +0 -1
  25. package/dist/scanner/index.js +0 -102
  26. package/dist/scanner/index.js.map +0 -1
  27. package/dist/schemas/channel.d.ts +0 -389
  28. package/dist/schemas/channel.d.ts.map +0 -1
  29. package/dist/schemas/channel.js +0 -20
  30. package/dist/schemas/channel.js.map +0 -1
  31. package/dist/schemas/common.d.ts +0 -550
  32. package/dist/schemas/common.d.ts.map +0 -1
  33. package/dist/schemas/common.js +0 -144
  34. package/dist/schemas/common.js.map +0 -1
  35. package/dist/schemas/data-store.d.ts +0 -348
  36. package/dist/schemas/data-store.d.ts.map +0 -1
  37. package/dist/schemas/data-store.js +0 -17
  38. package/dist/schemas/data-store.js.map +0 -1
  39. package/dist/schemas/domain.d.ts +0 -381
  40. package/dist/schemas/domain.d.ts.map +0 -1
  41. package/dist/schemas/domain.js +0 -13
  42. package/dist/schemas/domain.js.map +0 -1
  43. package/dist/schemas/entity.d.ts +0 -382
  44. package/dist/schemas/entity.d.ts.map +0 -1
  45. package/dist/schemas/entity.js +0 -24
  46. package/dist/schemas/entity.js.map +0 -1
  47. package/dist/schemas/flow.d.ts +0 -733
  48. package/dist/schemas/flow.d.ts.map +0 -1
  49. package/dist/schemas/flow.js +0 -70
  50. package/dist/schemas/flow.js.map +0 -1
  51. package/dist/schemas/index.d.ts +0 -3815
  52. package/dist/schemas/index.d.ts.map +0 -1
  53. package/dist/schemas/index.js +0 -50
  54. package/dist/schemas/index.js.map +0 -1
  55. package/dist/schemas/message.d.ts +0 -1076
  56. package/dist/schemas/message.d.ts.map +0 -1
  57. package/dist/schemas/message.js +0 -17
  58. package/dist/schemas/message.js.map +0 -1
  59. package/dist/schemas/service.d.ts +0 -417
  60. package/dist/schemas/service.d.ts.map +0 -1
  61. package/dist/schemas/service.js +0 -15
  62. package/dist/schemas/service.js.map +0 -1
  63. package/dist/schemas/team.d.ts +0 -45
  64. package/dist/schemas/team.d.ts.map +0 -1
  65. package/dist/schemas/team.js +0 -20
  66. package/dist/schemas/team.js.map +0 -1
  67. package/dist/schemas/user.d.ts +0 -48
  68. package/dist/schemas/user.d.ts.map +0 -1
  69. package/dist/schemas/user.js +0 -21
  70. package/dist/schemas/user.js.map +0 -1
  71. package/dist/types/index.d.ts +0 -82
  72. package/dist/types/index.d.ts.map +0 -1
  73. package/dist/types/index.js +0 -3
  74. package/dist/types/index.js.map +0 -1
  75. package/dist/validators/best-practices-validator.d.ts +0 -4
  76. package/dist/validators/best-practices-validator.d.ts.map +0 -1
  77. package/dist/validators/best-practices-validator.js +0 -38
  78. package/dist/validators/best-practices-validator.js.map +0 -1
  79. package/dist/validators/index.d.ts +0 -8
  80. package/dist/validators/index.d.ts.map +0 -1
  81. package/dist/validators/index.js +0 -31
  82. package/dist/validators/index.js.map +0 -1
  83. package/dist/validators/reference-validator.d.ts +0 -12
  84. package/dist/validators/reference-validator.d.ts.map +0 -1
  85. package/dist/validators/reference-validator.js +0 -201
  86. package/dist/validators/reference-validator.js.map +0 -1
  87. package/dist/validators/schema-validator.d.ts +0 -5
  88. package/dist/validators/schema-validator.d.ts.map +0 -1
  89. package/dist/validators/schema-validator.js +0 -62
  90. package/dist/validators/schema-validator.js.map +0 -1
@@ -1,1076 +0,0 @@
1
- import { z } from 'zod';
2
- export declare const eventSchema: z.ZodObject<{
3
- producers: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
4
- consumers: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
5
- channels: z.ZodOptional<z.ZodArray<z.ZodObject<{
6
- parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7
- } & {
8
- id: z.ZodString;
9
- version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
10
- }, "strip", z.ZodTypeAny, {
11
- id: string;
12
- version: string;
13
- parameters?: Record<string, string> | undefined;
14
- }, {
15
- id: string;
16
- version?: string | undefined;
17
- parameters?: Record<string, string> | undefined;
18
- }>, "many">>;
19
- messageChannels: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
20
- } & {
21
- id: z.ZodString;
22
- name: z.ZodString;
23
- summary: z.ZodOptional<z.ZodString>;
24
- version: z.ZodEffects<z.ZodString, string, string>;
25
- draft: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
26
- title: z.ZodOptional<z.ZodString>;
27
- message: z.ZodString;
28
- }, "strip", z.ZodTypeAny, {
29
- message: string;
30
- title?: string | undefined;
31
- }, {
32
- message: string;
33
- title?: string | undefined;
34
- }>]>>;
35
- badges: z.ZodOptional<z.ZodArray<z.ZodObject<{
36
- content: z.ZodString;
37
- backgroundColor: z.ZodString;
38
- textColor: z.ZodString;
39
- icon: z.ZodOptional<z.ZodString>;
40
- }, "strip", z.ZodTypeAny, {
41
- content: string;
42
- backgroundColor: string;
43
- textColor: string;
44
- icon?: string | undefined;
45
- }, {
46
- content: string;
47
- backgroundColor: string;
48
- textColor: string;
49
- icon?: string | undefined;
50
- }>, "many">>;
51
- owners: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodObject<{
52
- id: z.ZodString;
53
- collection: z.ZodEnum<["users", "teams"]>;
54
- }, "strip", z.ZodTypeAny, {
55
- id: string;
56
- collection: "users" | "teams";
57
- }, {
58
- id: string;
59
- collection: "users" | "teams";
60
- }>]>, {
61
- id: string;
62
- }, string | {
63
- id: string;
64
- collection: "users" | "teams";
65
- }>, "many">>;
66
- schemaPath: z.ZodOptional<z.ZodString>;
67
- sidebar: z.ZodOptional<z.ZodObject<{
68
- label: z.ZodOptional<z.ZodString>;
69
- badge: z.ZodOptional<z.ZodString>;
70
- }, "strip", z.ZodTypeAny, {
71
- label?: string | undefined;
72
- badge?: string | undefined;
73
- }, {
74
- label?: string | undefined;
75
- badge?: string | undefined;
76
- }>>;
77
- repository: z.ZodOptional<z.ZodObject<{
78
- language: z.ZodOptional<z.ZodString>;
79
- url: z.ZodOptional<z.ZodString>;
80
- }, "strip", z.ZodTypeAny, {
81
- language?: string | undefined;
82
- url?: string | undefined;
83
- }, {
84
- language?: string | undefined;
85
- url?: string | undefined;
86
- }>>;
87
- specifications: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
88
- openapiPath: z.ZodOptional<z.ZodString>;
89
- asyncapiPath: z.ZodOptional<z.ZodString>;
90
- }, "strip", z.ZodTypeAny, {
91
- openapiPath?: string | undefined;
92
- asyncapiPath?: string | undefined;
93
- }, {
94
- openapiPath?: string | undefined;
95
- asyncapiPath?: string | undefined;
96
- }>, z.ZodArray<z.ZodObject<{
97
- type: z.ZodEnum<["openapi", "asyncapi"]>;
98
- path: z.ZodString;
99
- name: z.ZodOptional<z.ZodString>;
100
- }, "strip", z.ZodTypeAny, {
101
- path: string;
102
- type: "asyncapi" | "openapi";
103
- name?: string | undefined;
104
- }, {
105
- path: string;
106
- type: "asyncapi" | "openapi";
107
- name?: string | undefined;
108
- }>, "many">]>>;
109
- hidden: z.ZodOptional<z.ZodBoolean>;
110
- resourceGroups: z.ZodOptional<z.ZodArray<z.ZodObject<{
111
- id: z.ZodOptional<z.ZodString>;
112
- title: z.ZodOptional<z.ZodString>;
113
- items: z.ZodArray<z.ZodObject<{
114
- id: z.ZodString;
115
- version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
116
- type: z.ZodEnum<["service", "event", "command", "query", "flow", "channel", "domain", "user", "team"]>;
117
- }, "strip", z.ZodTypeAny, {
118
- type: "service" | "event" | "command" | "query" | "flow" | "channel" | "domain" | "user" | "team";
119
- id: string;
120
- version: string;
121
- }, {
122
- type: "service" | "event" | "command" | "query" | "flow" | "channel" | "domain" | "user" | "team";
123
- id: string;
124
- version?: string | undefined;
125
- }>, "many">;
126
- limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
127
- sidebar: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
128
- }, "strip", z.ZodTypeAny, {
129
- items: {
130
- type: "service" | "event" | "command" | "query" | "flow" | "channel" | "domain" | "user" | "team";
131
- id: string;
132
- version: string;
133
- }[];
134
- limit: number;
135
- sidebar: boolean;
136
- id?: string | undefined;
137
- title?: string | undefined;
138
- }, {
139
- items: {
140
- type: "service" | "event" | "command" | "query" | "flow" | "channel" | "domain" | "user" | "team";
141
- id: string;
142
- version?: string | undefined;
143
- }[];
144
- id?: string | undefined;
145
- title?: string | undefined;
146
- limit?: number | undefined;
147
- sidebar?: boolean | undefined;
148
- }>, "many">>;
149
- styles: z.ZodOptional<z.ZodObject<{
150
- icon: z.ZodOptional<z.ZodString>;
151
- node: z.ZodOptional<z.ZodObject<{
152
- color: z.ZodOptional<z.ZodString>;
153
- label: z.ZodOptional<z.ZodString>;
154
- }, "strip", z.ZodTypeAny, {
155
- label?: string | undefined;
156
- color?: string | undefined;
157
- }, {
158
- label?: string | undefined;
159
- color?: string | undefined;
160
- }>>;
161
- }, "strip", z.ZodTypeAny, {
162
- icon?: string | undefined;
163
- node?: {
164
- label?: string | undefined;
165
- color?: string | undefined;
166
- } | undefined;
167
- }, {
168
- icon?: string | undefined;
169
- node?: {
170
- label?: string | undefined;
171
- color?: string | undefined;
172
- } | undefined;
173
- }>>;
174
- deprecated: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
175
- message: z.ZodOptional<z.ZodString>;
176
- date: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
177
- }, "strip", z.ZodTypeAny, {
178
- message?: string | undefined;
179
- date?: string | Date | undefined;
180
- }, {
181
- message?: string | undefined;
182
- date?: string | Date | undefined;
183
- }>, z.ZodOptional<z.ZodBoolean>]>>;
184
- visualiser: z.ZodOptional<z.ZodBoolean>;
185
- versions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
186
- latestVersion: z.ZodOptional<z.ZodString>;
187
- catalog: z.ZodOptional<z.ZodObject<{
188
- path: z.ZodString;
189
- filePath: z.ZodString;
190
- astroContentFilePath: z.ZodString;
191
- publicPath: z.ZodString;
192
- type: z.ZodString;
193
- }, "strip", z.ZodTypeAny, {
194
- path: string;
195
- type: string;
196
- filePath: string;
197
- astroContentFilePath: string;
198
- publicPath: string;
199
- }, {
200
- path: string;
201
- type: string;
202
- filePath: string;
203
- astroContentFilePath: string;
204
- publicPath: string;
205
- }>>;
206
- }, "strip", z.ZodTypeAny, {
207
- id: string;
208
- name: string;
209
- version: string;
210
- sidebar?: {
211
- label?: string | undefined;
212
- badge?: string | undefined;
213
- } | undefined;
214
- summary?: string | undefined;
215
- draft?: boolean | {
216
- message: string;
217
- title?: string | undefined;
218
- } | undefined;
219
- badges?: {
220
- content: string;
221
- backgroundColor: string;
222
- textColor: string;
223
- icon?: string | undefined;
224
- }[] | undefined;
225
- owners?: {
226
- id: string;
227
- }[] | undefined;
228
- schemaPath?: string | undefined;
229
- repository?: {
230
- language?: string | undefined;
231
- url?: string | undefined;
232
- } | undefined;
233
- specifications?: {
234
- openapiPath?: string | undefined;
235
- asyncapiPath?: string | undefined;
236
- } | {
237
- path: string;
238
- type: "asyncapi" | "openapi";
239
- name?: string | undefined;
240
- }[] | undefined;
241
- hidden?: boolean | undefined;
242
- resourceGroups?: {
243
- items: {
244
- type: "service" | "event" | "command" | "query" | "flow" | "channel" | "domain" | "user" | "team";
245
- id: string;
246
- version: string;
247
- }[];
248
- limit: number;
249
- sidebar: boolean;
250
- id?: string | undefined;
251
- title?: string | undefined;
252
- }[] | undefined;
253
- styles?: {
254
- icon?: string | undefined;
255
- node?: {
256
- label?: string | undefined;
257
- color?: string | undefined;
258
- } | undefined;
259
- } | undefined;
260
- deprecated?: boolean | {
261
- message?: string | undefined;
262
- date?: string | Date | undefined;
263
- } | undefined;
264
- visualiser?: boolean | undefined;
265
- versions?: string[] | undefined;
266
- latestVersion?: string | undefined;
267
- catalog?: {
268
- path: string;
269
- type: string;
270
- filePath: string;
271
- astroContentFilePath: string;
272
- publicPath: string;
273
- } | undefined;
274
- producers?: any[] | undefined;
275
- consumers?: any[] | undefined;
276
- channels?: {
277
- id: string;
278
- version: string;
279
- parameters?: Record<string, string> | undefined;
280
- }[] | undefined;
281
- messageChannels?: any[] | undefined;
282
- }, {
283
- id: string;
284
- name: string;
285
- version: string;
286
- sidebar?: {
287
- label?: string | undefined;
288
- badge?: string | undefined;
289
- } | undefined;
290
- summary?: string | undefined;
291
- draft?: boolean | {
292
- message: string;
293
- title?: string | undefined;
294
- } | undefined;
295
- badges?: {
296
- content: string;
297
- backgroundColor: string;
298
- textColor: string;
299
- icon?: string | undefined;
300
- }[] | undefined;
301
- owners?: (string | {
302
- id: string;
303
- collection: "users" | "teams";
304
- })[] | undefined;
305
- schemaPath?: string | undefined;
306
- repository?: {
307
- language?: string | undefined;
308
- url?: string | undefined;
309
- } | undefined;
310
- specifications?: {
311
- openapiPath?: string | undefined;
312
- asyncapiPath?: string | undefined;
313
- } | {
314
- path: string;
315
- type: "asyncapi" | "openapi";
316
- name?: string | undefined;
317
- }[] | undefined;
318
- hidden?: boolean | undefined;
319
- resourceGroups?: {
320
- items: {
321
- type: "service" | "event" | "command" | "query" | "flow" | "channel" | "domain" | "user" | "team";
322
- id: string;
323
- version?: string | undefined;
324
- }[];
325
- id?: string | undefined;
326
- title?: string | undefined;
327
- limit?: number | undefined;
328
- sidebar?: boolean | undefined;
329
- }[] | undefined;
330
- styles?: {
331
- icon?: string | undefined;
332
- node?: {
333
- label?: string | undefined;
334
- color?: string | undefined;
335
- } | undefined;
336
- } | undefined;
337
- deprecated?: boolean | {
338
- message?: string | undefined;
339
- date?: string | Date | undefined;
340
- } | undefined;
341
- visualiser?: boolean | undefined;
342
- versions?: string[] | undefined;
343
- latestVersion?: string | undefined;
344
- catalog?: {
345
- path: string;
346
- type: string;
347
- filePath: string;
348
- astroContentFilePath: string;
349
- publicPath: string;
350
- } | undefined;
351
- producers?: any[] | undefined;
352
- consumers?: any[] | undefined;
353
- channels?: {
354
- id: string;
355
- version?: string | undefined;
356
- parameters?: Record<string, string> | undefined;
357
- }[] | undefined;
358
- messageChannels?: any[] | undefined;
359
- }>;
360
- export declare const commandSchema: z.ZodObject<{
361
- producers: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
362
- consumers: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
363
- channels: z.ZodOptional<z.ZodArray<z.ZodObject<{
364
- parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
365
- } & {
366
- id: z.ZodString;
367
- version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
368
- }, "strip", z.ZodTypeAny, {
369
- id: string;
370
- version: string;
371
- parameters?: Record<string, string> | undefined;
372
- }, {
373
- id: string;
374
- version?: string | undefined;
375
- parameters?: Record<string, string> | undefined;
376
- }>, "many">>;
377
- messageChannels: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
378
- } & {
379
- id: z.ZodString;
380
- name: z.ZodString;
381
- summary: z.ZodOptional<z.ZodString>;
382
- version: z.ZodEffects<z.ZodString, string, string>;
383
- draft: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
384
- title: z.ZodOptional<z.ZodString>;
385
- message: z.ZodString;
386
- }, "strip", z.ZodTypeAny, {
387
- message: string;
388
- title?: string | undefined;
389
- }, {
390
- message: string;
391
- title?: string | undefined;
392
- }>]>>;
393
- badges: z.ZodOptional<z.ZodArray<z.ZodObject<{
394
- content: z.ZodString;
395
- backgroundColor: z.ZodString;
396
- textColor: z.ZodString;
397
- icon: z.ZodOptional<z.ZodString>;
398
- }, "strip", z.ZodTypeAny, {
399
- content: string;
400
- backgroundColor: string;
401
- textColor: string;
402
- icon?: string | undefined;
403
- }, {
404
- content: string;
405
- backgroundColor: string;
406
- textColor: string;
407
- icon?: string | undefined;
408
- }>, "many">>;
409
- owners: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodObject<{
410
- id: z.ZodString;
411
- collection: z.ZodEnum<["users", "teams"]>;
412
- }, "strip", z.ZodTypeAny, {
413
- id: string;
414
- collection: "users" | "teams";
415
- }, {
416
- id: string;
417
- collection: "users" | "teams";
418
- }>]>, {
419
- id: string;
420
- }, string | {
421
- id: string;
422
- collection: "users" | "teams";
423
- }>, "many">>;
424
- schemaPath: z.ZodOptional<z.ZodString>;
425
- sidebar: z.ZodOptional<z.ZodObject<{
426
- label: z.ZodOptional<z.ZodString>;
427
- badge: z.ZodOptional<z.ZodString>;
428
- }, "strip", z.ZodTypeAny, {
429
- label?: string | undefined;
430
- badge?: string | undefined;
431
- }, {
432
- label?: string | undefined;
433
- badge?: string | undefined;
434
- }>>;
435
- repository: z.ZodOptional<z.ZodObject<{
436
- language: z.ZodOptional<z.ZodString>;
437
- url: z.ZodOptional<z.ZodString>;
438
- }, "strip", z.ZodTypeAny, {
439
- language?: string | undefined;
440
- url?: string | undefined;
441
- }, {
442
- language?: string | undefined;
443
- url?: string | undefined;
444
- }>>;
445
- specifications: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
446
- openapiPath: z.ZodOptional<z.ZodString>;
447
- asyncapiPath: z.ZodOptional<z.ZodString>;
448
- }, "strip", z.ZodTypeAny, {
449
- openapiPath?: string | undefined;
450
- asyncapiPath?: string | undefined;
451
- }, {
452
- openapiPath?: string | undefined;
453
- asyncapiPath?: string | undefined;
454
- }>, z.ZodArray<z.ZodObject<{
455
- type: z.ZodEnum<["openapi", "asyncapi"]>;
456
- path: z.ZodString;
457
- name: z.ZodOptional<z.ZodString>;
458
- }, "strip", z.ZodTypeAny, {
459
- path: string;
460
- type: "asyncapi" | "openapi";
461
- name?: string | undefined;
462
- }, {
463
- path: string;
464
- type: "asyncapi" | "openapi";
465
- name?: string | undefined;
466
- }>, "many">]>>;
467
- hidden: z.ZodOptional<z.ZodBoolean>;
468
- resourceGroups: z.ZodOptional<z.ZodArray<z.ZodObject<{
469
- id: z.ZodOptional<z.ZodString>;
470
- title: z.ZodOptional<z.ZodString>;
471
- items: z.ZodArray<z.ZodObject<{
472
- id: z.ZodString;
473
- version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
474
- type: z.ZodEnum<["service", "event", "command", "query", "flow", "channel", "domain", "user", "team"]>;
475
- }, "strip", z.ZodTypeAny, {
476
- type: "service" | "event" | "command" | "query" | "flow" | "channel" | "domain" | "user" | "team";
477
- id: string;
478
- version: string;
479
- }, {
480
- type: "service" | "event" | "command" | "query" | "flow" | "channel" | "domain" | "user" | "team";
481
- id: string;
482
- version?: string | undefined;
483
- }>, "many">;
484
- limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
485
- sidebar: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
486
- }, "strip", z.ZodTypeAny, {
487
- items: {
488
- type: "service" | "event" | "command" | "query" | "flow" | "channel" | "domain" | "user" | "team";
489
- id: string;
490
- version: string;
491
- }[];
492
- limit: number;
493
- sidebar: boolean;
494
- id?: string | undefined;
495
- title?: string | undefined;
496
- }, {
497
- items: {
498
- type: "service" | "event" | "command" | "query" | "flow" | "channel" | "domain" | "user" | "team";
499
- id: string;
500
- version?: string | undefined;
501
- }[];
502
- id?: string | undefined;
503
- title?: string | undefined;
504
- limit?: number | undefined;
505
- sidebar?: boolean | undefined;
506
- }>, "many">>;
507
- styles: z.ZodOptional<z.ZodObject<{
508
- icon: z.ZodOptional<z.ZodString>;
509
- node: z.ZodOptional<z.ZodObject<{
510
- color: z.ZodOptional<z.ZodString>;
511
- label: z.ZodOptional<z.ZodString>;
512
- }, "strip", z.ZodTypeAny, {
513
- label?: string | undefined;
514
- color?: string | undefined;
515
- }, {
516
- label?: string | undefined;
517
- color?: string | undefined;
518
- }>>;
519
- }, "strip", z.ZodTypeAny, {
520
- icon?: string | undefined;
521
- node?: {
522
- label?: string | undefined;
523
- color?: string | undefined;
524
- } | undefined;
525
- }, {
526
- icon?: string | undefined;
527
- node?: {
528
- label?: string | undefined;
529
- color?: string | undefined;
530
- } | undefined;
531
- }>>;
532
- deprecated: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
533
- message: z.ZodOptional<z.ZodString>;
534
- date: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
535
- }, "strip", z.ZodTypeAny, {
536
- message?: string | undefined;
537
- date?: string | Date | undefined;
538
- }, {
539
- message?: string | undefined;
540
- date?: string | Date | undefined;
541
- }>, z.ZodOptional<z.ZodBoolean>]>>;
542
- visualiser: z.ZodOptional<z.ZodBoolean>;
543
- versions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
544
- latestVersion: z.ZodOptional<z.ZodString>;
545
- catalog: z.ZodOptional<z.ZodObject<{
546
- path: z.ZodString;
547
- filePath: z.ZodString;
548
- astroContentFilePath: z.ZodString;
549
- publicPath: z.ZodString;
550
- type: z.ZodString;
551
- }, "strip", z.ZodTypeAny, {
552
- path: string;
553
- type: string;
554
- filePath: string;
555
- astroContentFilePath: string;
556
- publicPath: string;
557
- }, {
558
- path: string;
559
- type: string;
560
- filePath: string;
561
- astroContentFilePath: string;
562
- publicPath: string;
563
- }>>;
564
- }, "strip", z.ZodTypeAny, {
565
- id: string;
566
- name: string;
567
- version: string;
568
- sidebar?: {
569
- label?: string | undefined;
570
- badge?: string | undefined;
571
- } | undefined;
572
- summary?: string | undefined;
573
- draft?: boolean | {
574
- message: string;
575
- title?: string | undefined;
576
- } | undefined;
577
- badges?: {
578
- content: string;
579
- backgroundColor: string;
580
- textColor: string;
581
- icon?: string | undefined;
582
- }[] | undefined;
583
- owners?: {
584
- id: string;
585
- }[] | undefined;
586
- schemaPath?: string | undefined;
587
- repository?: {
588
- language?: string | undefined;
589
- url?: string | undefined;
590
- } | undefined;
591
- specifications?: {
592
- openapiPath?: string | undefined;
593
- asyncapiPath?: string | undefined;
594
- } | {
595
- path: string;
596
- type: "asyncapi" | "openapi";
597
- name?: string | undefined;
598
- }[] | undefined;
599
- hidden?: boolean | undefined;
600
- resourceGroups?: {
601
- items: {
602
- type: "service" | "event" | "command" | "query" | "flow" | "channel" | "domain" | "user" | "team";
603
- id: string;
604
- version: string;
605
- }[];
606
- limit: number;
607
- sidebar: boolean;
608
- id?: string | undefined;
609
- title?: string | undefined;
610
- }[] | undefined;
611
- styles?: {
612
- icon?: string | undefined;
613
- node?: {
614
- label?: string | undefined;
615
- color?: string | undefined;
616
- } | undefined;
617
- } | undefined;
618
- deprecated?: boolean | {
619
- message?: string | undefined;
620
- date?: string | Date | undefined;
621
- } | undefined;
622
- visualiser?: boolean | undefined;
623
- versions?: string[] | undefined;
624
- latestVersion?: string | undefined;
625
- catalog?: {
626
- path: string;
627
- type: string;
628
- filePath: string;
629
- astroContentFilePath: string;
630
- publicPath: string;
631
- } | undefined;
632
- producers?: any[] | undefined;
633
- consumers?: any[] | undefined;
634
- channels?: {
635
- id: string;
636
- version: string;
637
- parameters?: Record<string, string> | undefined;
638
- }[] | undefined;
639
- messageChannels?: any[] | undefined;
640
- }, {
641
- id: string;
642
- name: string;
643
- version: string;
644
- sidebar?: {
645
- label?: string | undefined;
646
- badge?: string | undefined;
647
- } | undefined;
648
- summary?: string | undefined;
649
- draft?: boolean | {
650
- message: string;
651
- title?: string | undefined;
652
- } | undefined;
653
- badges?: {
654
- content: string;
655
- backgroundColor: string;
656
- textColor: string;
657
- icon?: string | undefined;
658
- }[] | undefined;
659
- owners?: (string | {
660
- id: string;
661
- collection: "users" | "teams";
662
- })[] | undefined;
663
- schemaPath?: string | undefined;
664
- repository?: {
665
- language?: string | undefined;
666
- url?: string | undefined;
667
- } | undefined;
668
- specifications?: {
669
- openapiPath?: string | undefined;
670
- asyncapiPath?: string | undefined;
671
- } | {
672
- path: string;
673
- type: "asyncapi" | "openapi";
674
- name?: string | undefined;
675
- }[] | undefined;
676
- hidden?: boolean | undefined;
677
- resourceGroups?: {
678
- items: {
679
- type: "service" | "event" | "command" | "query" | "flow" | "channel" | "domain" | "user" | "team";
680
- id: string;
681
- version?: string | undefined;
682
- }[];
683
- id?: string | undefined;
684
- title?: string | undefined;
685
- limit?: number | undefined;
686
- sidebar?: boolean | undefined;
687
- }[] | undefined;
688
- styles?: {
689
- icon?: string | undefined;
690
- node?: {
691
- label?: string | undefined;
692
- color?: string | undefined;
693
- } | undefined;
694
- } | undefined;
695
- deprecated?: boolean | {
696
- message?: string | undefined;
697
- date?: string | Date | undefined;
698
- } | undefined;
699
- visualiser?: boolean | undefined;
700
- versions?: string[] | undefined;
701
- latestVersion?: string | undefined;
702
- catalog?: {
703
- path: string;
704
- type: string;
705
- filePath: string;
706
- astroContentFilePath: string;
707
- publicPath: string;
708
- } | undefined;
709
- producers?: any[] | undefined;
710
- consumers?: any[] | undefined;
711
- channels?: {
712
- id: string;
713
- version?: string | undefined;
714
- parameters?: Record<string, string> | undefined;
715
- }[] | undefined;
716
- messageChannels?: any[] | undefined;
717
- }>;
718
- export declare const querySchema: z.ZodObject<{
719
- producers: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
720
- consumers: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
721
- channels: z.ZodOptional<z.ZodArray<z.ZodObject<{
722
- parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
723
- } & {
724
- id: z.ZodString;
725
- version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
726
- }, "strip", z.ZodTypeAny, {
727
- id: string;
728
- version: string;
729
- parameters?: Record<string, string> | undefined;
730
- }, {
731
- id: string;
732
- version?: string | undefined;
733
- parameters?: Record<string, string> | undefined;
734
- }>, "many">>;
735
- messageChannels: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
736
- } & {
737
- id: z.ZodString;
738
- name: z.ZodString;
739
- summary: z.ZodOptional<z.ZodString>;
740
- version: z.ZodEffects<z.ZodString, string, string>;
741
- draft: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
742
- title: z.ZodOptional<z.ZodString>;
743
- message: z.ZodString;
744
- }, "strip", z.ZodTypeAny, {
745
- message: string;
746
- title?: string | undefined;
747
- }, {
748
- message: string;
749
- title?: string | undefined;
750
- }>]>>;
751
- badges: z.ZodOptional<z.ZodArray<z.ZodObject<{
752
- content: z.ZodString;
753
- backgroundColor: z.ZodString;
754
- textColor: z.ZodString;
755
- icon: z.ZodOptional<z.ZodString>;
756
- }, "strip", z.ZodTypeAny, {
757
- content: string;
758
- backgroundColor: string;
759
- textColor: string;
760
- icon?: string | undefined;
761
- }, {
762
- content: string;
763
- backgroundColor: string;
764
- textColor: string;
765
- icon?: string | undefined;
766
- }>, "many">>;
767
- owners: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodObject<{
768
- id: z.ZodString;
769
- collection: z.ZodEnum<["users", "teams"]>;
770
- }, "strip", z.ZodTypeAny, {
771
- id: string;
772
- collection: "users" | "teams";
773
- }, {
774
- id: string;
775
- collection: "users" | "teams";
776
- }>]>, {
777
- id: string;
778
- }, string | {
779
- id: string;
780
- collection: "users" | "teams";
781
- }>, "many">>;
782
- schemaPath: z.ZodOptional<z.ZodString>;
783
- sidebar: z.ZodOptional<z.ZodObject<{
784
- label: z.ZodOptional<z.ZodString>;
785
- badge: z.ZodOptional<z.ZodString>;
786
- }, "strip", z.ZodTypeAny, {
787
- label?: string | undefined;
788
- badge?: string | undefined;
789
- }, {
790
- label?: string | undefined;
791
- badge?: string | undefined;
792
- }>>;
793
- repository: z.ZodOptional<z.ZodObject<{
794
- language: z.ZodOptional<z.ZodString>;
795
- url: z.ZodOptional<z.ZodString>;
796
- }, "strip", z.ZodTypeAny, {
797
- language?: string | undefined;
798
- url?: string | undefined;
799
- }, {
800
- language?: string | undefined;
801
- url?: string | undefined;
802
- }>>;
803
- specifications: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
804
- openapiPath: z.ZodOptional<z.ZodString>;
805
- asyncapiPath: z.ZodOptional<z.ZodString>;
806
- }, "strip", z.ZodTypeAny, {
807
- openapiPath?: string | undefined;
808
- asyncapiPath?: string | undefined;
809
- }, {
810
- openapiPath?: string | undefined;
811
- asyncapiPath?: string | undefined;
812
- }>, z.ZodArray<z.ZodObject<{
813
- type: z.ZodEnum<["openapi", "asyncapi"]>;
814
- path: z.ZodString;
815
- name: z.ZodOptional<z.ZodString>;
816
- }, "strip", z.ZodTypeAny, {
817
- path: string;
818
- type: "asyncapi" | "openapi";
819
- name?: string | undefined;
820
- }, {
821
- path: string;
822
- type: "asyncapi" | "openapi";
823
- name?: string | undefined;
824
- }>, "many">]>>;
825
- hidden: z.ZodOptional<z.ZodBoolean>;
826
- resourceGroups: z.ZodOptional<z.ZodArray<z.ZodObject<{
827
- id: z.ZodOptional<z.ZodString>;
828
- title: z.ZodOptional<z.ZodString>;
829
- items: z.ZodArray<z.ZodObject<{
830
- id: z.ZodString;
831
- version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
832
- type: z.ZodEnum<["service", "event", "command", "query", "flow", "channel", "domain", "user", "team"]>;
833
- }, "strip", z.ZodTypeAny, {
834
- type: "service" | "event" | "command" | "query" | "flow" | "channel" | "domain" | "user" | "team";
835
- id: string;
836
- version: string;
837
- }, {
838
- type: "service" | "event" | "command" | "query" | "flow" | "channel" | "domain" | "user" | "team";
839
- id: string;
840
- version?: string | undefined;
841
- }>, "many">;
842
- limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
843
- sidebar: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
844
- }, "strip", z.ZodTypeAny, {
845
- items: {
846
- type: "service" | "event" | "command" | "query" | "flow" | "channel" | "domain" | "user" | "team";
847
- id: string;
848
- version: string;
849
- }[];
850
- limit: number;
851
- sidebar: boolean;
852
- id?: string | undefined;
853
- title?: string | undefined;
854
- }, {
855
- items: {
856
- type: "service" | "event" | "command" | "query" | "flow" | "channel" | "domain" | "user" | "team";
857
- id: string;
858
- version?: string | undefined;
859
- }[];
860
- id?: string | undefined;
861
- title?: string | undefined;
862
- limit?: number | undefined;
863
- sidebar?: boolean | undefined;
864
- }>, "many">>;
865
- styles: z.ZodOptional<z.ZodObject<{
866
- icon: z.ZodOptional<z.ZodString>;
867
- node: z.ZodOptional<z.ZodObject<{
868
- color: z.ZodOptional<z.ZodString>;
869
- label: z.ZodOptional<z.ZodString>;
870
- }, "strip", z.ZodTypeAny, {
871
- label?: string | undefined;
872
- color?: string | undefined;
873
- }, {
874
- label?: string | undefined;
875
- color?: string | undefined;
876
- }>>;
877
- }, "strip", z.ZodTypeAny, {
878
- icon?: string | undefined;
879
- node?: {
880
- label?: string | undefined;
881
- color?: string | undefined;
882
- } | undefined;
883
- }, {
884
- icon?: string | undefined;
885
- node?: {
886
- label?: string | undefined;
887
- color?: string | undefined;
888
- } | undefined;
889
- }>>;
890
- deprecated: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
891
- message: z.ZodOptional<z.ZodString>;
892
- date: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
893
- }, "strip", z.ZodTypeAny, {
894
- message?: string | undefined;
895
- date?: string | Date | undefined;
896
- }, {
897
- message?: string | undefined;
898
- date?: string | Date | undefined;
899
- }>, z.ZodOptional<z.ZodBoolean>]>>;
900
- visualiser: z.ZodOptional<z.ZodBoolean>;
901
- versions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
902
- latestVersion: z.ZodOptional<z.ZodString>;
903
- catalog: z.ZodOptional<z.ZodObject<{
904
- path: z.ZodString;
905
- filePath: z.ZodString;
906
- astroContentFilePath: z.ZodString;
907
- publicPath: z.ZodString;
908
- type: z.ZodString;
909
- }, "strip", z.ZodTypeAny, {
910
- path: string;
911
- type: string;
912
- filePath: string;
913
- astroContentFilePath: string;
914
- publicPath: string;
915
- }, {
916
- path: string;
917
- type: string;
918
- filePath: string;
919
- astroContentFilePath: string;
920
- publicPath: string;
921
- }>>;
922
- }, "strip", z.ZodTypeAny, {
923
- id: string;
924
- name: string;
925
- version: string;
926
- sidebar?: {
927
- label?: string | undefined;
928
- badge?: string | undefined;
929
- } | undefined;
930
- summary?: string | undefined;
931
- draft?: boolean | {
932
- message: string;
933
- title?: string | undefined;
934
- } | undefined;
935
- badges?: {
936
- content: string;
937
- backgroundColor: string;
938
- textColor: string;
939
- icon?: string | undefined;
940
- }[] | undefined;
941
- owners?: {
942
- id: string;
943
- }[] | undefined;
944
- schemaPath?: string | undefined;
945
- repository?: {
946
- language?: string | undefined;
947
- url?: string | undefined;
948
- } | undefined;
949
- specifications?: {
950
- openapiPath?: string | undefined;
951
- asyncapiPath?: string | undefined;
952
- } | {
953
- path: string;
954
- type: "asyncapi" | "openapi";
955
- name?: string | undefined;
956
- }[] | undefined;
957
- hidden?: boolean | undefined;
958
- resourceGroups?: {
959
- items: {
960
- type: "service" | "event" | "command" | "query" | "flow" | "channel" | "domain" | "user" | "team";
961
- id: string;
962
- version: string;
963
- }[];
964
- limit: number;
965
- sidebar: boolean;
966
- id?: string | undefined;
967
- title?: string | undefined;
968
- }[] | undefined;
969
- styles?: {
970
- icon?: string | undefined;
971
- node?: {
972
- label?: string | undefined;
973
- color?: string | undefined;
974
- } | undefined;
975
- } | undefined;
976
- deprecated?: boolean | {
977
- message?: string | undefined;
978
- date?: string | Date | undefined;
979
- } | undefined;
980
- visualiser?: boolean | undefined;
981
- versions?: string[] | undefined;
982
- latestVersion?: string | undefined;
983
- catalog?: {
984
- path: string;
985
- type: string;
986
- filePath: string;
987
- astroContentFilePath: string;
988
- publicPath: string;
989
- } | undefined;
990
- producers?: any[] | undefined;
991
- consumers?: any[] | undefined;
992
- channels?: {
993
- id: string;
994
- version: string;
995
- parameters?: Record<string, string> | undefined;
996
- }[] | undefined;
997
- messageChannels?: any[] | undefined;
998
- }, {
999
- id: string;
1000
- name: string;
1001
- version: string;
1002
- sidebar?: {
1003
- label?: string | undefined;
1004
- badge?: string | undefined;
1005
- } | undefined;
1006
- summary?: string | undefined;
1007
- draft?: boolean | {
1008
- message: string;
1009
- title?: string | undefined;
1010
- } | undefined;
1011
- badges?: {
1012
- content: string;
1013
- backgroundColor: string;
1014
- textColor: string;
1015
- icon?: string | undefined;
1016
- }[] | undefined;
1017
- owners?: (string | {
1018
- id: string;
1019
- collection: "users" | "teams";
1020
- })[] | undefined;
1021
- schemaPath?: string | undefined;
1022
- repository?: {
1023
- language?: string | undefined;
1024
- url?: string | undefined;
1025
- } | undefined;
1026
- specifications?: {
1027
- openapiPath?: string | undefined;
1028
- asyncapiPath?: string | undefined;
1029
- } | {
1030
- path: string;
1031
- type: "asyncapi" | "openapi";
1032
- name?: string | undefined;
1033
- }[] | undefined;
1034
- hidden?: boolean | undefined;
1035
- resourceGroups?: {
1036
- items: {
1037
- type: "service" | "event" | "command" | "query" | "flow" | "channel" | "domain" | "user" | "team";
1038
- id: string;
1039
- version?: string | undefined;
1040
- }[];
1041
- id?: string | undefined;
1042
- title?: string | undefined;
1043
- limit?: number | undefined;
1044
- sidebar?: boolean | undefined;
1045
- }[] | undefined;
1046
- styles?: {
1047
- icon?: string | undefined;
1048
- node?: {
1049
- label?: string | undefined;
1050
- color?: string | undefined;
1051
- } | undefined;
1052
- } | undefined;
1053
- deprecated?: boolean | {
1054
- message?: string | undefined;
1055
- date?: string | Date | undefined;
1056
- } | undefined;
1057
- visualiser?: boolean | undefined;
1058
- versions?: string[] | undefined;
1059
- latestVersion?: string | undefined;
1060
- catalog?: {
1061
- path: string;
1062
- type: string;
1063
- filePath: string;
1064
- astroContentFilePath: string;
1065
- publicPath: string;
1066
- } | undefined;
1067
- producers?: any[] | undefined;
1068
- consumers?: any[] | undefined;
1069
- channels?: {
1070
- id: string;
1071
- version?: string | undefined;
1072
- parameters?: Record<string, string> | undefined;
1073
- }[] | undefined;
1074
- messageChannels?: any[] | undefined;
1075
- }>;
1076
- //# sourceMappingURL=message.d.ts.map