likec4 1.32.1 → 1.32.2

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.
@@ -1,6 +1,6 @@
1
- import * as c4 from '@likec4/core';
2
- import { Fqn, EdgeId, AnyAux, ComputedView, Specification, DiagramView, MultiMap as MultiMap$1, ProjectId, NonEmptyArray, NonEmptyReadonlyArray, ViewId, RelationId, DeploymentFqn, ViewChange } from '@likec4/core';
3
1
  import { Tagged, ValueOf, ConditionalPick, Writable, Simplify, MergeExclusive } from 'type-fest';
2
+ import * as c4 from '@likec4/core';
3
+ import { Fqn, EdgeId, AnyAux, aux, ComputedView, Specification, DiagramView, MultiMap as MultiMap$1, ProjectId, NonEmptyArray, NonEmptyReadonlyArray, ViewId, RelationId, DeploymentFqn, ViewChange } from '@likec4/core';
4
4
  import { LikeC4Model } from '@likec4/core/model';
5
5
  import picomatch from '/home/runner/work/likec4/likec4/node_modules/.pnpm/@types+picomatch@4.0.0/node_modules/@types/picomatch/posix.d.ts';
6
6
  import { ProjectId as ProjectId$1, Fqn as Fqn$1 } from '@likec4/core/types';
@@ -12066,26 +12066,60 @@ interface GraphvizPort {
12066
12066
  layoutJson(dot: DotSource): Promise<string>;
12067
12067
  svg(dot: DotSource): Promise<string>;
12068
12068
  }
12069
- type Params<A extends AnyAux = AnyAux> = {
12069
+ type LayoutTaskParams<A extends aux.Any = aux.Any> = {
12070
12070
  view: ComputedView<A>;
12071
12071
  specification: Specification<A>;
12072
12072
  };
12073
- type LayoutResult = {
12073
+ type LayoutResult<A extends aux.Any = aux.Any> = {
12074
12074
  dot: DotSource;
12075
- diagram: DiagramView;
12075
+ diagram: DiagramView<A>;
12076
12076
  };
12077
12077
  declare class GraphvizLayouter {
12078
12078
  private graphviz;
12079
- constructor(graphviz: GraphvizPort);
12080
- get port(): GraphvizPort;
12079
+ constructor(graphviz?: GraphvizPort);
12080
+ get graphvizPort(): GraphvizPort;
12081
12081
  changePort(graphviz: GraphvizPort): void;
12082
12082
  dotToJson(dot: DotSource): Promise<GraphvizJson>;
12083
- layout<A extends AnyAux>(params: Params<A>): Promise<LayoutResult>;
12084
- svg<A extends AnyAux>(params: Params<A>): Promise<{
12083
+ layout<A extends AnyAux>(params: LayoutTaskParams<A>): Promise<LayoutResult<A>>;
12084
+ svg<A extends AnyAux>(params: LayoutTaskParams<A>): Promise<{
12085
12085
  svg: string;
12086
12086
  dot: DotSource;
12087
12087
  }>;
12088
- dot<A extends AnyAux>(params: Params<A>): Promise<DotSource>;
12088
+ dot<A extends AnyAux>(params: LayoutTaskParams<A>): Promise<DotSource>;
12089
+ }
12090
+
12091
+ declare class QueueGraphvizLayoter extends GraphvizLayouter {
12092
+ private queue;
12093
+ private isProcessingBatch;
12094
+ constructor(options?: {
12095
+ graphviz?: GraphvizPort;
12096
+ /**
12097
+ Concurrency limit.
12098
+
12099
+ Minimum: `1`.
12100
+
12101
+ @default 2
12102
+ */
12103
+ concurrency?: number;
12104
+ /**
12105
+ Per-operation timeout in milliseconds. Operations fulfill once `timeout` elapses if they haven't already.
12106
+ @default 20_000
12107
+ */
12108
+ timeout?: number;
12109
+ /**
12110
+ Whether or not a timeout is considered an exception.
12111
+ @default true
12112
+ */
12113
+ throwOnTimeout?: boolean;
12114
+ });
12115
+ private runInQueue;
12116
+ changePort(graphvizPort: GraphvizPort): void;
12117
+ layout<A extends AnyAux>(params: LayoutTaskParams<A>): Promise<LayoutResult<A>>;
12118
+ batchLayout<A extends AnyAux>(params: {
12119
+ batch: LayoutTaskParams<A>[];
12120
+ onSuccess?: (task: LayoutTaskParams<A>, result: LayoutResult<A>) => void;
12121
+ onError?: (task: LayoutTaskParams<A>, error: unknown) => void;
12122
+ }): Promise<LayoutResult<A>[]>;
12089
12123
  }
12090
12124
 
12091
12125
  interface WorkDoneProgressReporter {
@@ -14214,7 +14248,7 @@ type SchemaWithFallbackAsync<TSchema extends BaseSchema<unknown, unknown, BaseIs
14214
14248
  type SchemaWithPipe<TPipe extends readonly [
14215
14249
  BaseSchema<unknown, unknown, BaseIssue<unknown>>,
14216
14250
  ...PipeItem<any, unknown, BaseIssue<unknown>>[]
14217
- ]> = Omit<FirstTupleItem<TPipe>, '~standard' | '~run' | '~types'> & {
14251
+ ]> = Omit<FirstTupleItem<TPipe>, 'pipe' | '~standard' | '~run' | '~types'> & {
14218
14252
  /**
14219
14253
  * The pipe items.
14220
14254
  */
@@ -14254,7 +14288,7 @@ type SchemaWithPipe<TPipe extends readonly [
14254
14288
  type SchemaWithPipeAsync<TPipe extends readonly [
14255
14289
  (BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>),
14256
14290
  ...(PipeItem<any, unknown, BaseIssue<unknown>> | PipeItemAsync<any, unknown, BaseIssue<unknown>>)[]
14257
- ]> = Omit<FirstTupleItem<TPipe>, 'async' | '~standard' | '~run' | '~types'> & {
14291
+ ]> = Omit<FirstTupleItem<TPipe>, 'async' | 'pipe' | '~standard' | '~run' | '~types'> & {
14258
14292
  /**
14259
14293
  * The pipe items.
14260
14294
  */
@@ -14723,15 +14757,15 @@ type Prettify<TObject> = {
14723
14757
  /**
14724
14758
  * Marks specific keys as optional.
14725
14759
  */
14726
- type MarkOptional<TObject, TKeys extends keyof TObject> = Partial<TObject> & Required<Omit<TObject, TKeys>>;
14760
+ type MarkOptional<TObject, TKeys extends keyof TObject> = {
14761
+ [TKey in keyof TObject]?: unknown;
14762
+ } & Omit<TObject, TKeys> & Partial<Pick<TObject, TKeys>>;
14727
14763
  /**
14728
14764
  * Extracts first tuple item.
14729
- *
14730
14765
  */
14731
14766
  type FirstTupleItem<TTuple extends readonly [unknown, ...unknown[]]> = TTuple[0];
14732
14767
  /**
14733
14768
  * Extracts last tuple item.
14734
- *
14735
14769
  */
14736
14770
  type LastTupleItem<TTuple extends readonly [unknown, ...unknown[]]> = TTuple[TTuple extends readonly [unknown, ...infer TRest] ? TRest['length'] : never];
14737
14771
 
@@ -15489,6 +15523,14 @@ declare function string(): StringSchema<undefined>;
15489
15523
  * @returns A string schema.
15490
15524
  */
15491
15525
  declare function string<const TMessage extends ErrorMessage<StringIssue> | undefined>(message: TMessage): StringSchema<TMessage>;
15526
+ /**
15527
+ * Content input type.
15528
+ */
15529
+ type ContentInput = string | MaybeReadonly<unknown[]>;
15530
+ /**
15531
+ * Content requirement type.
15532
+ */
15533
+ type ContentRequirement<TInput extends ContentInput> = TInput extends readonly unknown[] ? TInput[number] : TInput;
15492
15534
  /**
15493
15535
  * Length input type.
15494
15536
  */
@@ -15520,6 +15562,70 @@ interface DescriptionAction<TInput, TDescription extends string> extends BaseMet
15520
15562
  */
15521
15563
  declare function description<TInput, TDescription extends string>(description_: TDescription): DescriptionAction<TInput, TDescription>;
15522
15564
 
15565
+ /**
15566
+ * Excludes issue interface.
15567
+ */
15568
+ interface ExcludesIssue<TInput extends ContentInput, TRequirement extends ContentRequirement<TInput>> extends BaseIssue<TInput> {
15569
+ /**
15570
+ * The issue kind.
15571
+ */
15572
+ readonly kind: 'validation';
15573
+ /**
15574
+ * The issue type.
15575
+ */
15576
+ readonly type: 'excludes';
15577
+ /**
15578
+ * The expected property.
15579
+ */
15580
+ readonly expected: string;
15581
+ /**
15582
+ * The content to be excluded.
15583
+ */
15584
+ readonly requirement: TRequirement;
15585
+ }
15586
+ /**
15587
+ * Excludes action interface.
15588
+ */
15589
+ interface ExcludesAction<TInput extends ContentInput, TRequirement extends ContentRequirement<TInput>, TMessage extends ErrorMessage<ExcludesIssue<TInput, TRequirement>> | undefined> extends BaseValidation<TInput, TInput, ExcludesIssue<TInput, TRequirement>> {
15590
+ /**
15591
+ * The action type.
15592
+ */
15593
+ readonly type: 'excludes';
15594
+ /**
15595
+ * The action reference.
15596
+ */
15597
+ readonly reference: typeof excludes;
15598
+ /**
15599
+ * The expected property.
15600
+ */
15601
+ readonly expects: string;
15602
+ /**
15603
+ * The content to be excluded.
15604
+ */
15605
+ readonly requirement: TRequirement;
15606
+ /**
15607
+ * The error message.
15608
+ */
15609
+ readonly message: TMessage;
15610
+ }
15611
+ /**
15612
+ * Creates an excludes validation action.
15613
+ *
15614
+ * @param requirement The content to be excluded.
15615
+ *
15616
+ * @returns An excludes action.
15617
+ */
15618
+ declare function excludes<TInput extends ContentInput, const TRequirement extends ContentRequirement<TInput>>(requirement: TRequirement): ExcludesAction<TInput, TRequirement, undefined>;
15619
+ /**
15620
+ * Creates an excludes validation action.
15621
+ *
15622
+ * @param requirement The content to be excluded.
15623
+ * @param message The error message.
15624
+ *
15625
+ * @returns An excludes action.
15626
+ */
15627
+ declare function excludes<TInput extends ContentInput, const TRequirement extends ContentRequirement<TInput>, const TMessage extends ErrorMessage<ExcludesIssue<TInput, TRequirement>> | undefined>(requirement: TRequirement, message: TMessage): ExcludesAction<TInput, TRequirement, TMessage>;
15628
+
15523
15629
  /**
15524
15630
  * Non empty issue interface.
15525
15631
  */
@@ -15602,8 +15708,8 @@ interface ReadonlyAction<TInput> extends BaseTransformation<TInput, ReadonlyOutp
15602
15708
  declare function readonly<TInput>(): ReadonlyAction<TInput>;
15603
15709
 
15604
15710
  declare const ProjectConfig: ObjectSchema<{
15605
- readonly name: SchemaWithPipe<readonly [SchemaWithPipe<readonly [StringSchema<undefined>, NonEmptyAction<string, undefined>]>, DescriptionAction<string, "Project name, must be unique in the workspace">]>;
15606
- readonly contactPerson: OptionalSchema<SchemaWithPipe<readonly [SchemaWithPipe<readonly [StringSchema<undefined>, NonEmptyAction<string, undefined>]>, DescriptionAction<string, "A person who has been involved in creating or maintaining this project">]>, undefined>;
15711
+ readonly name: SchemaWithPipe<readonly [StringSchema<undefined>, NonEmptyAction<string, "Project name cannot be empty">, ExcludesAction<string, "default", "Project name cannot be \"default\"">, ExcludesAction<string, ".", "Project name cannot contain \".\", try to use A-z, 0-9, _ and -">, ExcludesAction<string, "@", "Project name cannot contain \"@\", try to use A-z, 0-9, _ and -">, ExcludesAction<string, "#", "Project name cannot contain \"#\", try to use A-z, 0-9, _ and -">, DescriptionAction<string, "Project name, must be unique in the workspace">]>;
15712
+ readonly contactPerson: OptionalSchema<SchemaWithPipe<readonly [StringSchema<undefined>, NonEmptyAction<string, "Contact person cannot be empty if specified">, DescriptionAction<string, "A person who has been involved in creating or maintaining this project">]>, undefined>;
15607
15713
  readonly exclude: OptionalSchema<SchemaWithPipe<readonly [ArraySchema<StringSchema<undefined>, undefined>, DescriptionAction<string[], "List of file patterns to exclude from the project, default is [\"**/node_modules/**/*\"]">]>, undefined>;
15608
15714
  }, undefined>;
15609
15715
  type ProjectConfig = InferOutput<typeof ProjectConfig>;
@@ -15778,6 +15884,7 @@ interface DeploymentRelation extends AstNode {
15778
15884
  readonly $container: DeployedInstanceBody | DeploymentNodeBody | ExtendDeploymentBody | ModelDeployments;
15779
15885
  readonly $type: 'DeploymentRelation';
15780
15886
  body?: DeploymentRelationBody;
15887
+ description?: string;
15781
15888
  dotKind?: RelationKindDotRef;
15782
15889
  kind?: Reference<RelationshipKind>;
15783
15890
  source?: FqnRef;
@@ -16245,6 +16352,7 @@ interface Relation extends AstNode {
16245
16352
  readonly $container: ElementBody | ExtendElementBody | Model;
16246
16353
  readonly $type: 'Relation';
16247
16354
  body?: RelationBody;
16355
+ description?: string;
16248
16356
  dotKind?: RelationKindDotRef;
16249
16357
  kind?: Reference<RelationshipKind>;
16250
16358
  source?: FqnRef;
@@ -16993,7 +17101,6 @@ declare class ProjectsManager {
16993
17101
  * Checks if the provided file system entry is a valid project config file.
16994
17102
  *
16995
17103
  * @param entry The file system entry to check
16996
- * @returns {boolean} Returns true if the entry is a valid config file, false otherwise.
16997
17104
  */
16998
17105
  loadConfigFile(entry: FileSystemNode): Promise<Project | undefined>;
16999
17106
  registerProject(configFile: URI): Promise<Project>;
@@ -17827,13 +17934,16 @@ type Primitive$1 = string | number | symbol | bigint | boolean | null | undefine
17827
17934
  declare namespace util {
17828
17935
  type AssertEqual<T, U> = (<V>() => V extends T ? 1 : 2) extends <V>() => V extends U ? 1 : 2 ? true : false;
17829
17936
  export type isAny<T> = 0 extends 1 & T ? true : false;
17830
- export const assertEqual: <A, B>(val: AssertEqual<A, B>) => AssertEqual<A, B>;
17937
+ export const assertEqual: <A, B>(_: AssertEqual<A, B>) => void;
17831
17938
  export function assertIs<T>(_arg: T): void;
17832
17939
  export function assertNever(_x: never): never;
17833
17940
  export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
17834
17941
  export type OmitKeys<T, K extends string> = Pick<T, Exclude<keyof T, K>>;
17835
17942
  export type MakePartial<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
17836
17943
  export type Exactly<T, X> = T & Record<Exclude<keyof X, keyof T>, never>;
17944
+ export type InexactPartial<T> = {
17945
+ [k in keyof T]?: T[k] | undefined;
17946
+ };
17837
17947
  export const arrayToEnum: <T extends string, U extends [T, ...T[]]>(items: U) => { [k in U[number]]: k; };
17838
17948
  export const getValidEnumValues: (obj: any) => any[];
17839
17949
  export const objectValues: (obj: any) => any[];
@@ -17884,24 +17994,24 @@ declare namespace objectUtil {
17884
17994
  }
17885
17995
  declare const ZodParsedType: {
17886
17996
  string: "string";
17887
- number: "number";
17888
- bigint: "bigint";
17889
- boolean: "boolean";
17890
- symbol: "symbol";
17891
- undefined: "undefined";
17892
- object: "object";
17893
- function: "function";
17894
- map: "map";
17895
17997
  nan: "nan";
17998
+ number: "number";
17896
17999
  integer: "integer";
17897
18000
  float: "float";
18001
+ boolean: "boolean";
17898
18002
  date: "date";
18003
+ bigint: "bigint";
18004
+ symbol: "symbol";
18005
+ function: "function";
18006
+ undefined: "undefined";
17899
18007
  null: "null";
17900
18008
  array: "array";
18009
+ object: "object";
17901
18010
  unknown: "unknown";
17902
18011
  promise: "promise";
17903
18012
  void: "void";
17904
18013
  never: "never";
18014
+ map: "map";
17905
18015
  set: "set";
17906
18016
  };
17907
18017
  type ZodParsedType = keyof typeof ZodParsedType;
@@ -17934,7 +18044,7 @@ declare const ZodIssueCode: {
17934
18044
  type ZodIssueCode = keyof typeof ZodIssueCode;
17935
18045
  type ZodIssueBase = {
17936
18046
  path: (string | number)[];
17937
- message?: string;
18047
+ message?: string | undefined;
17938
18048
  };
17939
18049
  interface ZodInvalidTypeIssue extends ZodIssueBase {
17940
18050
  code: typeof ZodIssueCode.invalid_type;
@@ -17976,7 +18086,7 @@ interface ZodInvalidDateIssue extends ZodIssueBase {
17976
18086
  }
17977
18087
  type StringValidation = "email" | "url" | "emoji" | "uuid" | "nanoid" | "regex" | "cuid" | "cuid2" | "ulid" | "datetime" | "date" | "time" | "duration" | "ip" | "cidr" | "base64" | "jwt" | "base64url" | {
17978
18088
  includes: string;
17979
- position?: number;
18089
+ position?: number | undefined;
17980
18090
  } | {
17981
18091
  startsWith: string;
17982
18092
  } | {
@@ -18018,7 +18128,7 @@ interface ZodCustomIssue extends ZodIssueBase {
18018
18128
  }
18019
18129
  type ZodIssueOptionalMessage = ZodInvalidTypeIssue | ZodInvalidLiteralIssue | ZodUnrecognizedKeysIssue | ZodInvalidUnionIssue | ZodInvalidUnionDiscriminatorIssue | ZodInvalidEnumValueIssue | ZodInvalidArgumentsIssue | ZodInvalidReturnTypeIssue | ZodInvalidDateIssue | ZodInvalidStringIssue | ZodTooSmallIssue | ZodTooBigIssue | ZodInvalidIntersectionTypesIssue | ZodNotMultipleOfIssue | ZodNotFiniteIssue | ZodCustomIssue;
18020
18130
  type ZodIssue = ZodIssueOptionalMessage & {
18021
- fatal?: boolean;
18131
+ fatal?: boolean | undefined;
18022
18132
  message: string;
18023
18133
  };
18024
18134
  type recursiveZodFormattedError<T> = T extends [any, ...any[]] ? {
@@ -18051,7 +18161,7 @@ declare class ZodError<T = any> extends Error {
18051
18161
  type stripPath<T extends object> = T extends any ? util.OmitKeys<T, "path"> : never;
18052
18162
  type IssueData = stripPath<ZodIssueOptionalMessage> & {
18053
18163
  path?: (string | number)[];
18054
- fatal?: boolean;
18164
+ fatal?: boolean | undefined;
18055
18165
  };
18056
18166
  type ErrorMapCtx = {
18057
18167
  defaultError: string;
@@ -18071,11 +18181,11 @@ type ParsePath = ParsePathComponent[];
18071
18181
  interface ParseContext {
18072
18182
  readonly common: {
18073
18183
  readonly issues: ZodIssue[];
18074
- readonly contextualErrorMap?: ZodErrorMap;
18184
+ readonly contextualErrorMap?: ZodErrorMap | undefined;
18075
18185
  readonly async: boolean;
18076
18186
  };
18077
18187
  readonly path: ParsePath;
18078
- readonly schemaErrorMap?: ZodErrorMap;
18188
+ readonly schemaErrorMap?: ZodErrorMap | undefined;
18079
18189
  readonly parent: ParseContext | null;
18080
18190
  readonly data: any;
18081
18191
  readonly parsedType: ZodParsedType;
@@ -18129,7 +18239,7 @@ declare namespace enumUtil {
18129
18239
 
18130
18240
  declare namespace errorUtil {
18131
18241
  type ErrMessage = string | {
18132
- message?: string;
18242
+ message?: string | undefined;
18133
18243
  };
18134
18244
  const errToObj: (message?: ErrMessage) => {
18135
18245
  message?: string | undefined;
@@ -18262,15 +18372,15 @@ type output<T extends ZodType<any, any, any>> = T["_output"];
18262
18372
 
18263
18373
  type CustomErrorParams = Partial<util.Omit<ZodCustomIssue, "code">>;
18264
18374
  interface ZodTypeDef {
18265
- errorMap?: ZodErrorMap;
18266
- description?: string;
18375
+ errorMap?: ZodErrorMap | undefined;
18376
+ description?: string | undefined;
18267
18377
  }
18268
18378
  type RawCreateParams = {
18269
- errorMap?: ZodErrorMap;
18270
- invalid_type_error?: string;
18271
- required_error?: string;
18272
- message?: string;
18273
- description?: string;
18379
+ errorMap?: ZodErrorMap | undefined;
18380
+ invalid_type_error?: string | undefined;
18381
+ required_error?: string | undefined;
18382
+ message?: string | undefined;
18383
+ description?: string | undefined;
18274
18384
  } | undefined;
18275
18385
  type SafeParseSuccess<Output> = {
18276
18386
  success: true;
@@ -18299,13 +18409,13 @@ declare abstract class ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef
18299
18409
  };
18300
18410
  _parseSync(input: ParseInput): SyncParseReturnType<Output>;
18301
18411
  _parseAsync(input: ParseInput): AsyncParseReturnType<Output>;
18302
- parse(data: unknown, params?: Partial<ParseParams>): Output;
18303
- safeParse(data: unknown, params?: Partial<ParseParams>): SafeParseReturnType<Input, Output>;
18412
+ parse(data: unknown, params?: util.InexactPartial<ParseParams>): Output;
18413
+ safeParse(data: unknown, params?: util.InexactPartial<ParseParams>): SafeParseReturnType<Input, Output>;
18304
18414
  "~validate"(data: unknown): StandardSchemaV1.Result<Output> | Promise<StandardSchemaV1.Result<Output>>;
18305
- parseAsync(data: unknown, params?: Partial<ParseParams>): Promise<Output>;
18306
- safeParseAsync(data: unknown, params?: Partial<ParseParams>): Promise<SafeParseReturnType<Input, Output>>;
18415
+ parseAsync(data: unknown, params?: util.InexactPartial<ParseParams>): Promise<Output>;
18416
+ safeParseAsync(data: unknown, params?: util.InexactPartial<ParseParams>): Promise<SafeParseReturnType<Input, Output>>;
18307
18417
  /** Alias of safeParseAsync */
18308
- spa: (data: unknown, params?: Partial<ParseParams>) => Promise<SafeParseReturnType<Input, Output>>;
18418
+ spa: (data: unknown, params?: util.InexactPartial<ParseParams>) => Promise<SafeParseReturnType<Input, Output>>;
18309
18419
  refine<RefinedOutput extends Output>(check: (arg: Output) => arg is RefinedOutput, message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)): ZodEffects<this, RefinedOutput, Input>;
18310
18420
  refine(check: (arg: Output) => unknown | Promise<unknown>, message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)): ZodEffects<this, Output, Input>;
18311
18421
  refinement<RefinedOutput extends Output>(check: (arg: Output) => arg is RefinedOutput, refinementData: IssueData | ((arg: Output, ctx: RefinementCtx) => IssueData)): ZodEffects<this, RefinedOutput, Input>;
@@ -18341,99 +18451,99 @@ type IpVersion = "v4" | "v6";
18341
18451
  type ZodStringCheck = {
18342
18452
  kind: "min";
18343
18453
  value: number;
18344
- message?: string;
18454
+ message?: string | undefined;
18345
18455
  } | {
18346
18456
  kind: "max";
18347
18457
  value: number;
18348
- message?: string;
18458
+ message?: string | undefined;
18349
18459
  } | {
18350
18460
  kind: "length";
18351
18461
  value: number;
18352
- message?: string;
18462
+ message?: string | undefined;
18353
18463
  } | {
18354
18464
  kind: "email";
18355
- message?: string;
18465
+ message?: string | undefined;
18356
18466
  } | {
18357
18467
  kind: "url";
18358
- message?: string;
18468
+ message?: string | undefined;
18359
18469
  } | {
18360
18470
  kind: "emoji";
18361
- message?: string;
18471
+ message?: string | undefined;
18362
18472
  } | {
18363
18473
  kind: "uuid";
18364
- message?: string;
18474
+ message?: string | undefined;
18365
18475
  } | {
18366
18476
  kind: "nanoid";
18367
- message?: string;
18477
+ message?: string | undefined;
18368
18478
  } | {
18369
18479
  kind: "cuid";
18370
- message?: string;
18480
+ message?: string | undefined;
18371
18481
  } | {
18372
18482
  kind: "includes";
18373
18483
  value: string;
18374
- position?: number;
18375
- message?: string;
18484
+ position?: number | undefined;
18485
+ message?: string | undefined;
18376
18486
  } | {
18377
18487
  kind: "cuid2";
18378
- message?: string;
18488
+ message?: string | undefined;
18379
18489
  } | {
18380
18490
  kind: "ulid";
18381
- message?: string;
18491
+ message?: string | undefined;
18382
18492
  } | {
18383
18493
  kind: "startsWith";
18384
18494
  value: string;
18385
- message?: string;
18495
+ message?: string | undefined;
18386
18496
  } | {
18387
18497
  kind: "endsWith";
18388
18498
  value: string;
18389
- message?: string;
18499
+ message?: string | undefined;
18390
18500
  } | {
18391
18501
  kind: "regex";
18392
18502
  regex: RegExp;
18393
- message?: string;
18503
+ message?: string | undefined;
18394
18504
  } | {
18395
18505
  kind: "trim";
18396
- message?: string;
18506
+ message?: string | undefined;
18397
18507
  } | {
18398
18508
  kind: "toLowerCase";
18399
- message?: string;
18509
+ message?: string | undefined;
18400
18510
  } | {
18401
18511
  kind: "toUpperCase";
18402
- message?: string;
18512
+ message?: string | undefined;
18403
18513
  } | {
18404
18514
  kind: "jwt";
18405
18515
  alg?: string;
18406
- message?: string;
18516
+ message?: string | undefined;
18407
18517
  } | {
18408
18518
  kind: "datetime";
18409
18519
  offset: boolean;
18410
18520
  local: boolean;
18411
18521
  precision: number | null;
18412
- message?: string;
18522
+ message?: string | undefined;
18413
18523
  } | {
18414
18524
  kind: "date";
18415
- message?: string;
18525
+ message?: string | undefined;
18416
18526
  } | {
18417
18527
  kind: "time";
18418
18528
  precision: number | null;
18419
- message?: string;
18529
+ message?: string | undefined;
18420
18530
  } | {
18421
18531
  kind: "duration";
18422
- message?: string;
18532
+ message?: string | undefined;
18423
18533
  } | {
18424
18534
  kind: "ip";
18425
- version?: IpVersion;
18426
- message?: string;
18535
+ version?: IpVersion | undefined;
18536
+ message?: string | undefined;
18427
18537
  } | {
18428
18538
  kind: "cidr";
18429
- version?: IpVersion;
18430
- message?: string;
18539
+ version?: IpVersion | undefined;
18540
+ message?: string | undefined;
18431
18541
  } | {
18432
18542
  kind: "base64";
18433
- message?: string;
18543
+ message?: string | undefined;
18434
18544
  } | {
18435
18545
  kind: "base64url";
18436
- message?: string;
18546
+ message?: string | undefined;
18437
18547
  };
18438
18548
  interface ZodStringDef extends ZodTypeDef {
18439
18549
  checks: ZodStringCheck[];
@@ -18456,15 +18566,15 @@ declare class ZodString extends ZodType<string, ZodStringDef, string> {
18456
18566
  base64url(message?: errorUtil.ErrMessage): ZodString;
18457
18567
  jwt(options?: {
18458
18568
  alg?: string;
18459
- message?: string;
18569
+ message?: string | undefined;
18460
18570
  }): ZodString;
18461
18571
  ip(options?: string | {
18462
18572
  version?: IpVersion;
18463
- message?: string;
18573
+ message?: string | undefined;
18464
18574
  }): ZodString;
18465
18575
  cidr(options?: string | {
18466
18576
  version?: IpVersion;
18467
- message?: string;
18577
+ message?: string | undefined;
18468
18578
  }): ZodString;
18469
18579
  datetime(options?: string | {
18470
18580
  message?: string | undefined;
@@ -18521,22 +18631,22 @@ type ZodNumberCheck = {
18521
18631
  kind: "min";
18522
18632
  value: number;
18523
18633
  inclusive: boolean;
18524
- message?: string;
18634
+ message?: string | undefined;
18525
18635
  } | {
18526
18636
  kind: "max";
18527
18637
  value: number;
18528
18638
  inclusive: boolean;
18529
- message?: string;
18639
+ message?: string | undefined;
18530
18640
  } | {
18531
18641
  kind: "int";
18532
- message?: string;
18642
+ message?: string | undefined;
18533
18643
  } | {
18534
18644
  kind: "multipleOf";
18535
18645
  value: number;
18536
- message?: string;
18646
+ message?: string | undefined;
18537
18647
  } | {
18538
18648
  kind: "finite";
18539
- message?: string;
18649
+ message?: string | undefined;
18540
18650
  };
18541
18651
  interface ZodNumberDef extends ZodTypeDef {
18542
18652
  checks: ZodNumberCheck[];
@@ -18593,15 +18703,15 @@ interface ZodArrayDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
18593
18703
  typeName: ZodFirstPartyTypeKind.ZodArray;
18594
18704
  exactLength: {
18595
18705
  value: number;
18596
- message?: string;
18706
+ message?: string | undefined;
18597
18707
  } | null;
18598
18708
  minLength: {
18599
18709
  value: number;
18600
- message?: string;
18710
+ message?: string | undefined;
18601
18711
  } | null;
18602
18712
  maxLength: {
18603
18713
  value: number;
18604
- message?: string;
18714
+ message?: string | undefined;
18605
18715
  } | null;
18606
18716
  }
18607
18717
  type ArrayCardinality = "many" | "atleastone";
@@ -18613,7 +18723,7 @@ declare class ZodArray<T extends ZodTypeAny, Cardinality extends ArrayCardinalit
18613
18723
  max(maxLength: number, message?: errorUtil.ErrMessage): this;
18614
18724
  length(len: number, message?: errorUtil.ErrMessage): this;
18615
18725
  nonempty(message?: errorUtil.ErrMessage): ZodArray<T, "atleastone">;
18616
- static create: <T_1 extends ZodTypeAny>(schema: T_1, params?: RawCreateParams) => ZodArray<T_1, "many">;
18726
+ static create: <El extends ZodTypeAny>(schema: El, params?: RawCreateParams) => ZodArray<El>;
18617
18727
  }
18618
18728
  type UnknownKeysParam = "passthrough" | "strict" | "strip";
18619
18729
  interface ZodObjectDef<T extends ZodRawShape = ZodRawShape, UnknownKeys extends UnknownKeysParam = UnknownKeysParam, Catchall extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
@@ -18698,24 +18808,20 @@ declare class ZodObject<T extends ZodRawShape, UnknownKeys extends UnknownKeysPa
18698
18808
  [k in keyof T]: k extends keyof Mask ? deoptional<T[k]> : T[k];
18699
18809
  }>, UnknownKeys, Catchall>;
18700
18810
  keyof(): ZodEnum<enumUtil.UnionToTupleString<keyof T>>;
18701
- static create: <T_1 extends ZodRawShape>(shape: T_1, params?: RawCreateParams) => ZodObject<T_1, "strip", ZodTypeAny, objectUtil.addQuestionMarks<baseObjectOutputType<T_1>, any> extends infer T_2 ? { [k in keyof T_2]: objectUtil.addQuestionMarks<baseObjectOutputType<T_1>, any>[k]; } : never, baseObjectInputType<T_1> extends infer T_3 ? { [k_1 in keyof T_3]: baseObjectInputType<T_1>[k_1]; } : never>;
18702
- static strictCreate: <T_1 extends ZodRawShape>(shape: T_1, params?: RawCreateParams) => ZodObject<T_1, "strict", ZodTypeAny, objectUtil.addQuestionMarks<baseObjectOutputType<T_1>, any> extends infer T_2 ? { [k in keyof T_2]: objectUtil.addQuestionMarks<baseObjectOutputType<T_1>, any>[k]; } : never, baseObjectInputType<T_1> extends infer T_3 ? { [k_1 in keyof T_3]: baseObjectInputType<T_1>[k_1]; } : never>;
18703
- static lazycreate: <T_1 extends ZodRawShape>(shape: () => T_1, params?: RawCreateParams) => ZodObject<T_1, "strip", ZodTypeAny, objectUtil.addQuestionMarks<baseObjectOutputType<T_1>, any> extends infer T_2 ? { [k in keyof T_2]: objectUtil.addQuestionMarks<baseObjectOutputType<T_1>, any>[k]; } : never, baseObjectInputType<T_1> extends infer T_3 ? { [k_1 in keyof T_3]: baseObjectInputType<T_1>[k_1]; } : never>;
18811
+ static create: <Shape extends ZodRawShape>(shape: Shape, params?: RawCreateParams) => ZodObject<Shape, "strip", ZodTypeAny, objectOutputType<Shape, ZodTypeAny, "strip">, objectInputType<Shape, ZodTypeAny, "strip">>;
18812
+ static strictCreate: <Shape extends ZodRawShape>(shape: Shape, params?: RawCreateParams) => ZodObject<Shape, "strict">;
18813
+ static lazycreate: <Shape extends ZodRawShape>(shape: () => Shape, params?: RawCreateParams) => ZodObject<Shape, "strip">;
18704
18814
  }
18705
18815
  type AnyZodObject = ZodObject<any, any, any>;
18706
18816
  type ZodUnionOptions = Readonly<[ZodTypeAny, ...ZodTypeAny[]]>;
18707
- interface ZodUnionDef<T extends ZodUnionOptions = Readonly<[
18708
- ZodTypeAny,
18709
- ZodTypeAny,
18710
- ...ZodTypeAny[]
18711
- ]>> extends ZodTypeDef {
18817
+ interface ZodUnionDef<T extends ZodUnionOptions = Readonly<[ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>> extends ZodTypeDef {
18712
18818
  options: T;
18713
18819
  typeName: ZodFirstPartyTypeKind.ZodUnion;
18714
18820
  }
18715
18821
  declare class ZodUnion<T extends ZodUnionOptions> extends ZodType<T[number]["_output"], ZodUnionDef<T>, T[number]["_input"]> {
18716
18822
  _parse(input: ParseInput): ParseReturnType<this["_output"]>;
18717
18823
  get options(): T;
18718
- static create: <T_1 extends readonly [ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>(types: T_1, params?: RawCreateParams) => ZodUnion<T_1>;
18824
+ static create: <Options extends Readonly<[ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>>(types: Options, params?: RawCreateParams) => ZodUnion<Options>;
18719
18825
  }
18720
18826
  type ZodDiscriminatedUnionOption<Discriminator extends string> = ZodObject<{
18721
18827
  [key in Discriminator]: ZodTypeAny;
@@ -18751,7 +18857,7 @@ interface ZodIntersectionDef<T extends ZodTypeAny = ZodTypeAny, U extends ZodTyp
18751
18857
  }
18752
18858
  declare class ZodIntersection<T extends ZodTypeAny, U extends ZodTypeAny> extends ZodType<T["_output"] & U["_output"], ZodIntersectionDef<T, U>, T["_input"] & U["_input"]> {
18753
18859
  _parse(input: ParseInput): ParseReturnType<this["_output"]>;
18754
- static create: <T_1 extends ZodTypeAny, U_1 extends ZodTypeAny>(left: T_1, right: U_1, params?: RawCreateParams) => ZodIntersection<T_1, U_1>;
18860
+ static create: <TSchema extends ZodTypeAny, USchema extends ZodTypeAny>(left: TSchema, right: USchema, params?: RawCreateParams) => ZodIntersection<TSchema, USchema>;
18755
18861
  }
18756
18862
  type ZodTupleItems = [ZodTypeAny, ...ZodTypeAny[]];
18757
18863
  type AssertArray<T> = T extends any[] ? T : never;
@@ -18768,11 +18874,11 @@ interface ZodTupleDef<T extends ZodTupleItems | [] = ZodTupleItems, Rest extends
18768
18874
  rest: Rest;
18769
18875
  typeName: ZodFirstPartyTypeKind.ZodTuple;
18770
18876
  }
18771
- declare class ZodTuple<T extends [ZodTypeAny, ...ZodTypeAny[]] | [] = [ZodTypeAny, ...ZodTypeAny[]], Rest extends ZodTypeAny | null = null> extends ZodType<OutputTypeOfTupleWithRest<T, Rest>, ZodTupleDef<T, Rest>, InputTypeOfTupleWithRest<T, Rest>> {
18877
+ declare class ZodTuple<T extends ZodTupleItems | [] = ZodTupleItems, Rest extends ZodTypeAny | null = null> extends ZodType<OutputTypeOfTupleWithRest<T, Rest>, ZodTupleDef<T, Rest>, InputTypeOfTupleWithRest<T, Rest>> {
18772
18878
  _parse(input: ParseInput): ParseReturnType<this["_output"]>;
18773
18879
  get items(): T;
18774
- rest<Rest extends ZodTypeAny>(rest: Rest): ZodTuple<T, Rest>;
18775
- static create: <T_1 extends [] | [ZodTypeAny, ...ZodTypeAny[]]>(schemas: T_1, params?: RawCreateParams) => ZodTuple<T_1, null>;
18880
+ rest<RestSchema extends ZodTypeAny>(rest: RestSchema): ZodTuple<T, RestSchema>;
18881
+ static create: <Items extends [ZodTypeAny, ...ZodTypeAny[]] | []>(schemas: Items, params?: RawCreateParams) => ZodTuple<Items, null>;
18776
18882
  }
18777
18883
  interface ZodLiteralDef<T = any> extends ZodTypeDef {
18778
18884
  value: T;
@@ -18781,7 +18887,7 @@ interface ZodLiteralDef<T = any> extends ZodTypeDef {
18781
18887
  declare class ZodLiteral<T> extends ZodType<T, ZodLiteralDef<T>, T> {
18782
18888
  _parse(input: ParseInput): ParseReturnType<this["_output"]>;
18783
18889
  get value(): T;
18784
- static create: <T_1 extends Primitive$1>(value: T_1, params?: RawCreateParams) => ZodLiteral<T_1>;
18890
+ static create: <Value extends Primitive$1>(value: Value, params?: RawCreateParams) => ZodLiteral<Value>;
18785
18891
  }
18786
18892
  type EnumValues<T extends string = string> = readonly [T, ...T[]];
18787
18893
  type Values<T extends EnumValues> = {
@@ -18799,7 +18905,7 @@ type typecast<A, T> = A extends T ? A : never;
18799
18905
  declare function createZodEnum<U extends string, T extends Readonly<[U, ...U[]]>>(values: T, params?: RawCreateParams): ZodEnum<Writeable<T>>;
18800
18906
  declare function createZodEnum<U extends string, T extends [U, ...U[]]>(values: T, params?: RawCreateParams): ZodEnum<T>;
18801
18907
  declare class ZodEnum<T extends [string, ...string[]]> extends ZodType<T[number], ZodEnumDef<T>, T[number]> {
18802
- #private;
18908
+ _cache: Set<T[number]> | undefined;
18803
18909
  _parse(input: ParseInput): ParseReturnType<this["_output"]>;
18804
18910
  get options(): T;
18805
18911
  get enum(): Values<T>;
@@ -18816,7 +18922,7 @@ interface ZodPromiseDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
18816
18922
  declare class ZodPromise<T extends ZodTypeAny> extends ZodType<Promise<T["_output"]>, ZodPromiseDef<T>, Promise<T["_input"]>> {
18817
18923
  unwrap(): T;
18818
18924
  _parse(input: ParseInput): ParseReturnType<this["_output"]>;
18819
- static create: <T_1 extends ZodTypeAny>(schema: T_1, params?: RawCreateParams) => ZodPromise<T_1>;
18925
+ static create: <Inner extends ZodTypeAny>(schema: Inner, params?: RawCreateParams) => ZodPromise<Inner>;
18820
18926
  }
18821
18927
  type RefinementEffect<T> = {
18822
18928
  type: "refinement";
@@ -18851,7 +18957,7 @@ interface ZodOptionalDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
18851
18957
  declare class ZodOptional<T extends ZodTypeAny> extends ZodType<T["_output"] | undefined, ZodOptionalDef<T>, T["_input"] | undefined> {
18852
18958
  _parse(input: ParseInput): ParseReturnType<this["_output"]>;
18853
18959
  unwrap(): T;
18854
- static create: <T_1 extends ZodTypeAny>(type: T_1, params?: RawCreateParams) => ZodOptional<T_1>;
18960
+ static create: <Inner extends ZodTypeAny>(type: Inner, params?: RawCreateParams) => ZodOptional<Inner>;
18855
18961
  }
18856
18962
  interface ZodNullableDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
18857
18963
  innerType: T;
@@ -18860,7 +18966,7 @@ interface ZodNullableDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
18860
18966
  declare class ZodNullable<T extends ZodTypeAny> extends ZodType<T["_output"] | null, ZodNullableDef<T>, T["_input"] | null> {
18861
18967
  _parse(input: ParseInput): ParseReturnType<this["_output"]>;
18862
18968
  unwrap(): T;
18863
- static create: <T_1 extends ZodTypeAny>(type: T_1, params?: RawCreateParams) => ZodNullable<T_1>;
18969
+ static create: <Inner extends ZodTypeAny>(type: Inner, params?: RawCreateParams) => ZodNullable<Inner>;
18864
18970
  }
18865
18971
  interface ZodDefaultDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
18866
18972
  innerType: T;
@@ -18870,15 +18976,9 @@ interface ZodDefaultDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
18870
18976
  declare class ZodDefault<T extends ZodTypeAny> extends ZodType<util.noUndefined<T["_output"]>, ZodDefaultDef<T>, T["_input"] | undefined> {
18871
18977
  _parse(input: ParseInput): ParseReturnType<this["_output"]>;
18872
18978
  removeDefault(): T;
18873
- static create: <T_1 extends ZodTypeAny>(type: T_1, params: {
18874
- errorMap?: ZodErrorMap | undefined;
18875
- invalid_type_error?: string | undefined;
18876
- required_error?: string | undefined;
18877
- message?: string | undefined;
18878
- description?: string | undefined;
18879
- } & {
18880
- default: T_1["_input"] | (() => util.noUndefined<T_1["_input"]>);
18881
- }) => ZodDefault<T_1>;
18979
+ static create: <Inner extends ZodTypeAny>(type: Inner, params: RawCreateParams & {
18980
+ default: Inner["_input"] | (() => util.noUndefined<Inner["_input"]>);
18981
+ }) => ZodDefault<Inner>;
18882
18982
  }
18883
18983
  interface ZodCatchDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
18884
18984
  innerType: T;
@@ -18891,15 +18991,9 @@ interface ZodCatchDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
18891
18991
  declare class ZodCatch<T extends ZodTypeAny> extends ZodType<T["_output"], ZodCatchDef<T>, unknown> {
18892
18992
  _parse(input: ParseInput): ParseReturnType<this["_output"]>;
18893
18993
  removeCatch(): T;
18894
- static create: <T_1 extends ZodTypeAny>(type: T_1, params: {
18895
- errorMap?: ZodErrorMap | undefined;
18896
- invalid_type_error?: string | undefined;
18897
- required_error?: string | undefined;
18898
- message?: string | undefined;
18899
- description?: string | undefined;
18900
- } & {
18901
- catch: T_1["_output"] | (() => T_1["_output"]);
18902
- }) => ZodCatch<T_1>;
18994
+ static create: <Inner extends ZodTypeAny>(type: Inner, params: RawCreateParams & {
18995
+ catch: Inner["_output"] | (() => Inner["_output"]);
18996
+ }) => ZodCatch<Inner>;
18903
18997
  }
18904
18998
  interface ZodBrandedDef<T extends ZodTypeAny> extends ZodTypeDef {
18905
18999
  type: T;
@@ -18922,7 +19016,7 @@ interface ZodPipelineDef<A extends ZodTypeAny, B extends ZodTypeAny> extends Zod
18922
19016
  }
18923
19017
  declare class ZodPipeline<A extends ZodTypeAny, B extends ZodTypeAny> extends ZodType<B["_output"], ZodPipelineDef<A, B>, A["_input"]> {
18924
19018
  _parse(input: ParseInput): ParseReturnType<any>;
18925
- static create<A extends ZodTypeAny, B extends ZodTypeAny>(a: A, b: B): ZodPipeline<A, B>;
19019
+ static create<ASchema extends ZodTypeAny, BSchema extends ZodTypeAny>(a: ASchema, b: BSchema): ZodPipeline<ASchema, BSchema>;
18926
19020
  }
18927
19021
  type BuiltIn = (((...args: any[]) => any) | (new (...args: any[]) => any)) | {
18928
19022
  readonly [Symbol.toStringTag]: string;
@@ -18934,7 +19028,7 @@ interface ZodReadonlyDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
18934
19028
  }
18935
19029
  declare class ZodReadonly<T extends ZodTypeAny> extends ZodType<MakeReadonly<T["_output"]>, ZodReadonlyDef<T>, MakeReadonly<T["_input"]>> {
18936
19030
  _parse(input: ParseInput): ParseReturnType<this["_output"]>;
18937
- static create: <T_1 extends ZodTypeAny>(type: T_1, params?: RawCreateParams) => ZodReadonly<T_1>;
19031
+ static create: <Inner extends ZodTypeAny>(type: Inner, params?: RawCreateParams) => ZodReadonly<Inner>;
18938
19032
  unwrap(): T;
18939
19033
  }
18940
19034
  declare enum ZodFirstPartyTypeKind {
@@ -37220,6 +37314,8 @@ type RegisteredPrompt = {
37220
37314
  };
37221
37315
 
37222
37316
  interface LikeC4MCPServer {
37317
+ readonly isStarted: boolean;
37318
+ readonly port: number;
37223
37319
  start(port: number): Promise<void>;
37224
37320
  stop(): Promise<void>;
37225
37321
  }
@@ -37367,7 +37463,7 @@ interface LikeC4AddedServices {
37367
37463
  likec4: {
37368
37464
  LanguageServices: LikeC4LanguageServices;
37369
37465
  Views: LikeC4Views;
37370
- Layouter: GraphvizLayouter;
37466
+ Layouter: QueueGraphvizLayoter;
37371
37467
  DeploymentsIndex: DeploymentsIndex;
37372
37468
  FqnIndex: FqnIndex;
37373
37469
  ModelParser: LikeC4ModelParser;
@@ -37393,4 +37489,4 @@ interface LikeC4AddedServices {
37393
37489
  }
37394
37490
  type LikeC4Services = LangiumServices & LikeC4AddedServices;
37395
37491
 
37396
- export { GraphvizLayouter as G, type LikeC4LanguageServices as L, Range$1 as R, WorkspaceFolder as W, type LikeC4Services as a, type LikeC4Views as b };
37492
+ export { type LikeC4LanguageServices as L, Range$1 as R, WorkspaceFolder as W, type LikeC4Services as a, type LikeC4Views as b };