likec4 1.32.0 → 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.
- package/__app__/src/main.js +255 -263
- package/dist/cli/index.d.mts +1 -0
- package/dist/cli/index.mjs +3 -3
- package/dist/index.d.mts +9 -8
- package/dist/index.mjs +2 -2
- package/dist/model/builder.d.mts +1 -0
- package/dist/model/builder.mjs +1 -0
- package/dist/shared/{likec4.8nZi1RFs.d.mts → likec4.BaQDJZ_m.d.mts} +1993 -256
- package/dist/shared/{likec4.BdLFzcl1.mjs → likec4.D6SCXR05.mjs} +1 -1
- package/dist/shared/likec4.DDbeRd6k.mjs +2383 -0
- package/dist/vite-plugin/index.d.mts +2 -2
- package/dist/vite-plugin/index.mjs +1 -1
- package/package.json +35 -30
- package/react/index.d.mts +16 -4
- package/react/index.mjs +25 -25
- package/dist/shared/likec4.CouFKCvO.mjs +0 -2380
|
@@ -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
|
|
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
|
|
12080
|
-
get
|
|
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:
|
|
12084
|
-
svg<A extends AnyAux>(params:
|
|
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:
|
|
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> =
|
|
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 [
|
|
15606
|
-
readonly contactPerson: OptionalSchema<SchemaWithPipe<readonly [
|
|
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>;
|
|
@@ -15616,8 +15722,9 @@ type ProjectConfig = InferOutput<typeof ProjectConfig>;
|
|
|
15616
15722
|
type ArrowType = 'crow' | 'diamond' | 'dot' | 'none' | 'normal' | 'odiamond' | 'odot' | 'onormal' | 'open' | 'vee';
|
|
15617
15723
|
type Boolean = boolean;
|
|
15618
15724
|
type BorderStyleValue = 'none' | LineOptions;
|
|
15725
|
+
type ColorLiteral = HexColor | RGBAColor;
|
|
15726
|
+
declare const ColorLiteral = "ColorLiteral";
|
|
15619
15727
|
type CustomColorId = 'element' | 'model' | ArrowType | ElementShape | LineOptions | string;
|
|
15620
|
-
type CustomColorValue = string;
|
|
15621
15728
|
type DeploymentElement = DeployedInstance | DeploymentNode;
|
|
15622
15729
|
declare const DeploymentElement = "DeploymentElement";
|
|
15623
15730
|
type DeploymentNodeOrElementKind = DeploymentNodeKind | ElementKind;
|
|
@@ -15777,6 +15884,7 @@ interface DeploymentRelation extends AstNode {
|
|
|
15777
15884
|
readonly $container: DeployedInstanceBody | DeploymentNodeBody | ExtendDeploymentBody | ModelDeployments;
|
|
15778
15885
|
readonly $type: 'DeploymentRelation';
|
|
15779
15886
|
body?: DeploymentRelationBody;
|
|
15887
|
+
description?: string;
|
|
15780
15888
|
dotKind?: RelationKindDotRef;
|
|
15781
15889
|
kind?: Reference<RelationshipKind>;
|
|
15782
15890
|
source?: FqnRef;
|
|
@@ -16076,6 +16184,12 @@ interface GlobalStyleId extends AstNode {
|
|
|
16076
16184
|
name: string;
|
|
16077
16185
|
}
|
|
16078
16186
|
declare const GlobalStyleId = "GlobalStyleId";
|
|
16187
|
+
interface HexColor extends AstNode {
|
|
16188
|
+
readonly $container: SpecificationColor | SpecificationTag;
|
|
16189
|
+
readonly $type: 'HexColor';
|
|
16190
|
+
hex: number | string;
|
|
16191
|
+
}
|
|
16192
|
+
declare const HexColor = "HexColor";
|
|
16079
16193
|
interface IconProperty extends AstNode {
|
|
16080
16194
|
readonly $container: CustomElementProperties | DeployedInstanceBody | DeploymentNodeBody | DeploymentViewRuleStyle | ElementBody | ElementStyleProperty | GlobalStyle | ViewRuleStyle;
|
|
16081
16195
|
readonly $type: 'IconProperty';
|
|
@@ -16238,6 +16352,7 @@ interface Relation extends AstNode {
|
|
|
16238
16352
|
readonly $container: ElementBody | ExtendElementBody | Model;
|
|
16239
16353
|
readonly $type: 'Relation';
|
|
16240
16354
|
body?: RelationBody;
|
|
16355
|
+
description?: string;
|
|
16241
16356
|
dotKind?: RelationKindDotRef;
|
|
16242
16357
|
kind?: Reference<RelationshipKind>;
|
|
16243
16358
|
source?: FqnRef;
|
|
@@ -16301,6 +16416,15 @@ interface RelationStyleProperty extends AstNode {
|
|
|
16301
16416
|
props: Array<RelationshipStyleProperty>;
|
|
16302
16417
|
}
|
|
16303
16418
|
declare const RelationStyleProperty = "RelationStyleProperty";
|
|
16419
|
+
interface RGBAColor extends AstNode {
|
|
16420
|
+
readonly $container: SpecificationColor | SpecificationTag;
|
|
16421
|
+
readonly $type: 'RGBAColor';
|
|
16422
|
+
alpha?: number | string;
|
|
16423
|
+
blue: number;
|
|
16424
|
+
green: number;
|
|
16425
|
+
red: number;
|
|
16426
|
+
}
|
|
16427
|
+
declare const RGBAColor = "RGBAColor";
|
|
16304
16428
|
interface ShapeProperty extends AstNode {
|
|
16305
16429
|
readonly $container: CustomElementProperties | DeploymentViewRuleStyle | ElementStyleProperty | GlobalStyle | ViewRuleStyle;
|
|
16306
16430
|
readonly $type: 'ShapeProperty';
|
|
@@ -16318,7 +16442,7 @@ declare const ShapeSizeProperty = "ShapeSizeProperty";
|
|
|
16318
16442
|
interface SpecificationColor extends AstNode {
|
|
16319
16443
|
readonly $container: SpecificationRule;
|
|
16320
16444
|
readonly $type: 'SpecificationColor';
|
|
16321
|
-
color:
|
|
16445
|
+
color: ColorLiteral;
|
|
16322
16446
|
name: CustomColor;
|
|
16323
16447
|
}
|
|
16324
16448
|
declare const SpecificationColor = "SpecificationColor";
|
|
@@ -16373,7 +16497,7 @@ declare const SpecificationRule = "SpecificationRule";
|
|
|
16373
16497
|
interface SpecificationTag extends AstNode {
|
|
16374
16498
|
readonly $container: SpecificationRule;
|
|
16375
16499
|
readonly $type: 'SpecificationTag';
|
|
16376
|
-
color?:
|
|
16500
|
+
color?: ColorLiteral;
|
|
16377
16501
|
tag: Tag;
|
|
16378
16502
|
}
|
|
16379
16503
|
declare const SpecificationTag = "SpecificationTag";
|
|
@@ -16551,6 +16675,7 @@ declare const WildcardExpression = "WildcardExpression";
|
|
|
16551
16675
|
type LikeC4AstType = {
|
|
16552
16676
|
ArrowProperty: ArrowProperty;
|
|
16553
16677
|
BorderProperty: BorderProperty;
|
|
16678
|
+
ColorLiteral: ColorLiteral;
|
|
16554
16679
|
ColorProperty: ColorProperty;
|
|
16555
16680
|
CustomColor: CustomColor;
|
|
16556
16681
|
CustomElementProperties: CustomElementProperties;
|
|
@@ -16612,6 +16737,7 @@ type LikeC4AstType = {
|
|
|
16612
16737
|
GlobalStyleGroup: GlobalStyleGroup;
|
|
16613
16738
|
GlobalStyleId: GlobalStyleId;
|
|
16614
16739
|
Globals: Globals;
|
|
16740
|
+
HexColor: HexColor;
|
|
16615
16741
|
IconProperty: IconProperty;
|
|
16616
16742
|
Imported: Imported;
|
|
16617
16743
|
ImportsFromPoject: ImportsFromPoject;
|
|
@@ -16637,6 +16763,7 @@ type LikeC4AstType = {
|
|
|
16637
16763
|
OpacityProperty: OpacityProperty;
|
|
16638
16764
|
OutgoingRelationExpr: OutgoingRelationExpr;
|
|
16639
16765
|
PaddingSizeProperty: PaddingSizeProperty;
|
|
16766
|
+
RGBAColor: RGBAColor;
|
|
16640
16767
|
Referenceable: Referenceable;
|
|
16641
16768
|
Relation: Relation;
|
|
16642
16769
|
RelationBody: RelationBody;
|
|
@@ -16703,7 +16830,7 @@ type LikeC4AstType = {
|
|
|
16703
16830
|
|
|
16704
16831
|
type Guard<N extends AstNode> = (n: AstNode) => n is N;
|
|
16705
16832
|
type Guarded<G> = G extends Guard<infer N> ? N : never;
|
|
16706
|
-
declare const isValidatableAstNode: (n: AstNode) => n is DeployedInstance | DeploymentNode | DeploymentViewRulePredicate | DeploymentViewRuleStyle | ViewRuleAutoLayout | DynamicViewGlobalPredicateRef | DynamicViewIncludePredicate | ViewRuleGlobalStyle | ViewRuleStyle | ElementStringProperty | ElementStyleProperty | IconProperty | LinkProperty | MetadataBody | ElementKindExpression | ElementTagExpression | FqnRefExpr | WildcardExpression | FqnExprWhere | FqnExprWith | DirectedRelationExpr | InOutRelationExpr | IncomingRelationExpr | OutgoingRelationExpr | RelationExprWhere | RelationExprWith | Element | ExtendDeployment | ExtendElement | Imported | DeploymentView | DynamicView | ElementView | RelationStringProperty | ArrowProperty | ColorProperty | LineProperty | PaddingSizeProperty | ShapeSizeProperty | TextSizeProperty | MetadataAttribute | NotationProperty | NotesProperty | SpecificationElementStringProperty | SpecificationRelationshipStringProperty | ViewStringProperty | BorderProperty | MultipleProperty | OpacityProperty | ShapeProperty | ViewRuleGlobalPredicateRef | ViewRuleGroup | ViewRulePredicate | SpecificationRelationshipKind | GlobalStyle | SpecificationColor | NavigateToProperty | DynamicViewStep | ElementRef | DeploymentRelation | Tags | SpecificationDeploymentNodeKind | DynamicViewParallelSteps | GlobalDynamicPredicateGroup | Relation | SpecificationElementKind | Globals | GlobalPredicateGroup | GlobalStyleGroup |
|
|
16833
|
+
declare const isValidatableAstNode: (n: AstNode) => n is HexColor | RGBAColor | DeployedInstance | DeploymentNode | DeploymentViewRulePredicate | DeploymentViewRuleStyle | ViewRuleAutoLayout | DynamicViewGlobalPredicateRef | DynamicViewIncludePredicate | ViewRuleGlobalStyle | ViewRuleStyle | ElementStringProperty | ElementStyleProperty | IconProperty | LinkProperty | MetadataBody | ElementKindExpression | ElementTagExpression | FqnRefExpr | WildcardExpression | FqnExprWhere | FqnExprWith | DirectedRelationExpr | InOutRelationExpr | IncomingRelationExpr | OutgoingRelationExpr | RelationExprWhere | RelationExprWith | Element | ExtendDeployment | ExtendElement | Imported | DeploymentView | DynamicView | ElementView | RelationStringProperty | ArrowProperty | ColorProperty | LineProperty | PaddingSizeProperty | ShapeSizeProperty | TextSizeProperty | MetadataAttribute | NotationProperty | NotesProperty | SpecificationElementStringProperty | SpecificationRelationshipStringProperty | ViewStringProperty | BorderProperty | MultipleProperty | OpacityProperty | ShapeProperty | ViewRuleGlobalPredicateRef | ViewRuleGroup | ViewRulePredicate | SpecificationRelationshipKind | GlobalStyle | SpecificationColor | NavigateToProperty | DynamicViewStep | ElementRef | DeploymentRelation | Tags | SpecificationDeploymentNodeKind | DynamicViewParallelSteps | GlobalDynamicPredicateGroup | Relation | SpecificationElementKind | Globals | GlobalPredicateGroup | GlobalStyleGroup | SpecificationTag | ImportsFromPoject | SpecificationRule;
|
|
16707
16834
|
type ValidatableAstNode = Guarded<typeof isValidatableAstNode>;
|
|
16708
16835
|
declare function checksFromDiagnostics(doc: LikeC4LangiumDocument): {
|
|
16709
16836
|
isValid: (n: ValidatableAstNode) => boolean;
|
|
@@ -16974,7 +17101,6 @@ declare class ProjectsManager {
|
|
|
16974
17101
|
* Checks if the provided file system entry is a valid project config file.
|
|
16975
17102
|
*
|
|
16976
17103
|
* @param entry The file system entry to check
|
|
16977
|
-
* @returns {boolean} Returns true if the entry is a valid config file, false otherwise.
|
|
16978
17104
|
*/
|
|
16979
17105
|
loadConfigFile(entry: FileSystemNode): Promise<Project | undefined>;
|
|
16980
17106
|
registerProject(configFile: URI): Promise<Project>;
|
|
@@ -17173,6 +17299,7 @@ declare class BaseParser {
|
|
|
17173
17299
|
convertLinks(source?: LinkProperty['$container']): c4.Link[] | undefined;
|
|
17174
17300
|
parseLinks(source?: LinkProperty['$container']): c4.Link[] | undefined;
|
|
17175
17301
|
parseIconProperty(prop: IconProperty | undefined): c4.IconUrl | undefined;
|
|
17302
|
+
parseColorLiteral(astNode: ColorLiteral): c4.ColorLiteral | undefined;
|
|
17176
17303
|
parseElementStyle(elementProps: Array<ElementProperty> | ElementStyleProperty | undefined): ParsedElementStyle;
|
|
17177
17304
|
parseStyleProps(styleProps: Array<StyleProperty> | undefined): ParsedElementStyle;
|
|
17178
17305
|
}
|
|
@@ -17245,6 +17372,7 @@ declare const DocumentParserFromMixins: {
|
|
|
17245
17372
|
convertLinks(source?: LinkProperty["$container"]): ProjectId[] | undefined;
|
|
17246
17373
|
parseLinks(source?: LinkProperty["$container"]): ProjectId[] | undefined;
|
|
17247
17374
|
parseIconProperty(prop: IconProperty | undefined): ProjectId | undefined;
|
|
17375
|
+
parseColorLiteral(astNode: ColorLiteral): ProjectId | undefined;
|
|
17248
17376
|
parseElementStyle(elementProps: Array<ElementProperty> | ElementStyleProperty | undefined): ParsedElementStyle;
|
|
17249
17377
|
parseStyleProps(styleProps: Array<StyleProperty> | undefined): ParsedElementStyle;
|
|
17250
17378
|
parseDeploymentView(astNode: DeploymentView): ParsedAstDeploymentView;
|
|
@@ -17321,6 +17449,7 @@ declare const DocumentParserFromMixins: {
|
|
|
17321
17449
|
convertLinks(source?: LinkProperty["$container"]): ProjectId[] | undefined;
|
|
17322
17450
|
parseLinks(source?: LinkProperty["$container"]): ProjectId[] | undefined;
|
|
17323
17451
|
parseIconProperty(prop: IconProperty | undefined): ProjectId | undefined;
|
|
17452
|
+
parseColorLiteral(astNode: ColorLiteral): ProjectId | undefined;
|
|
17324
17453
|
parseElementStyle(elementProps: Array<ElementProperty> | ElementStyleProperty | undefined): ParsedElementStyle;
|
|
17325
17454
|
parseStyleProps(styleProps: Array<StyleProperty> | undefined): ParsedElementStyle;
|
|
17326
17455
|
parseDeploymentView(astNode: DeploymentView): ParsedAstDeploymentView;
|
|
@@ -17361,6 +17490,7 @@ declare const DocumentParserFromMixins: {
|
|
|
17361
17490
|
convertLinks(source?: LinkProperty["$container"]): ProjectId[] | undefined;
|
|
17362
17491
|
parseLinks(source?: LinkProperty["$container"]): ProjectId[] | undefined;
|
|
17363
17492
|
parseIconProperty(prop: IconProperty | undefined): ProjectId | undefined;
|
|
17493
|
+
parseColorLiteral(astNode: ColorLiteral): ProjectId | undefined;
|
|
17364
17494
|
parseElementStyle(elementProps: Array<ElementProperty> | ElementStyleProperty | undefined): ParsedElementStyle;
|
|
17365
17495
|
parseStyleProps(styleProps: Array<StyleProperty> | undefined): ParsedElementStyle;
|
|
17366
17496
|
};
|
|
@@ -17413,6 +17543,7 @@ declare const DocumentParserFromMixins: {
|
|
|
17413
17543
|
convertLinks(source?: LinkProperty["$container"]): ProjectId[] | undefined;
|
|
17414
17544
|
parseLinks(source?: LinkProperty["$container"]): ProjectId[] | undefined;
|
|
17415
17545
|
parseIconProperty(prop: IconProperty | undefined): ProjectId | undefined;
|
|
17546
|
+
parseColorLiteral(astNode: ColorLiteral): ProjectId | undefined;
|
|
17416
17547
|
parseElementStyle(elementProps: Array<ElementProperty> | ElementStyleProperty | undefined): ParsedElementStyle;
|
|
17417
17548
|
parseStyleProps(styleProps: Array<StyleProperty> | undefined): ParsedElementStyle;
|
|
17418
17549
|
};
|
|
@@ -17458,6 +17589,7 @@ declare const DocumentParserFromMixins: {
|
|
|
17458
17589
|
convertLinks(source?: LinkProperty["$container"]): ProjectId[] | undefined;
|
|
17459
17590
|
parseLinks(source?: LinkProperty["$container"]): ProjectId[] | undefined;
|
|
17460
17591
|
parseIconProperty(prop: IconProperty | undefined): ProjectId | undefined;
|
|
17592
|
+
parseColorLiteral(astNode: ColorLiteral): ProjectId | undefined;
|
|
17461
17593
|
parseElementStyle(elementProps: Array<ElementProperty> | ElementStyleProperty | undefined): ParsedElementStyle;
|
|
17462
17594
|
parseStyleProps(styleProps: Array<StyleProperty> | undefined): ParsedElementStyle;
|
|
17463
17595
|
parseDeployment(): void;
|
|
@@ -17511,6 +17643,7 @@ declare const DocumentParserFromMixins: {
|
|
|
17511
17643
|
convertLinks(source?: LinkProperty["$container"]): ProjectId[] | undefined;
|
|
17512
17644
|
parseLinks(source?: LinkProperty["$container"]): ProjectId[] | undefined;
|
|
17513
17645
|
parseIconProperty(prop: IconProperty | undefined): ProjectId | undefined;
|
|
17646
|
+
parseColorLiteral(astNode: ColorLiteral): ProjectId | undefined;
|
|
17514
17647
|
parseElementStyle(elementProps: Array<ElementProperty> | ElementStyleProperty | undefined): ParsedElementStyle;
|
|
17515
17648
|
parseStyleProps(styleProps: Array<StyleProperty> | undefined): ParsedElementStyle;
|
|
17516
17649
|
};
|
|
@@ -17557,6 +17690,7 @@ declare const DocumentParserFromMixins: {
|
|
|
17557
17690
|
convertLinks(source?: LinkProperty["$container"]): ProjectId[] | undefined;
|
|
17558
17691
|
parseLinks(source?: LinkProperty["$container"]): ProjectId[] | undefined;
|
|
17559
17692
|
parseIconProperty(prop: IconProperty | undefined): ProjectId | undefined;
|
|
17693
|
+
parseColorLiteral(astNode: ColorLiteral): ProjectId | undefined;
|
|
17560
17694
|
parseElementStyle(elementProps: Array<ElementProperty> | ElementStyleProperty | undefined): ParsedElementStyle;
|
|
17561
17695
|
parseStyleProps(styleProps: Array<StyleProperty> | undefined): ParsedElementStyle;
|
|
17562
17696
|
};
|
|
@@ -17585,6 +17719,7 @@ declare const DocumentParserFromMixins: {
|
|
|
17585
17719
|
convertLinks(source?: LinkProperty["$container"]): ProjectId[] | undefined;
|
|
17586
17720
|
parseLinks(source?: LinkProperty["$container"]): ProjectId[] | undefined;
|
|
17587
17721
|
parseIconProperty(prop: IconProperty | undefined): ProjectId | undefined;
|
|
17722
|
+
parseColorLiteral(astNode: ColorLiteral): ProjectId | undefined;
|
|
17588
17723
|
parseElementStyle(elementProps: Array<ElementProperty> | ElementStyleProperty | undefined): ParsedElementStyle;
|
|
17589
17724
|
parseStyleProps(styleProps: Array<StyleProperty> | undefined): ParsedElementStyle;
|
|
17590
17725
|
};
|
|
@@ -17626,6 +17761,7 @@ declare const DocumentParserFromMixins: {
|
|
|
17626
17761
|
convertLinks(source?: LinkProperty["$container"]): ProjectId[] | undefined;
|
|
17627
17762
|
parseLinks(source?: LinkProperty["$container"]): ProjectId[] | undefined;
|
|
17628
17763
|
parseIconProperty(prop: IconProperty | undefined): ProjectId | undefined;
|
|
17764
|
+
parseColorLiteral(astNode: ColorLiteral): ProjectId | undefined;
|
|
17629
17765
|
parseElementStyle(elementProps: Array<ElementProperty> | ElementStyleProperty | undefined): ParsedElementStyle;
|
|
17630
17766
|
parseStyleProps(styleProps: Array<StyleProperty> | undefined): ParsedElementStyle;
|
|
17631
17767
|
};
|
|
@@ -17798,13 +17934,16 @@ type Primitive$1 = string | number | symbol | bigint | boolean | null | undefine
|
|
|
17798
17934
|
declare namespace util {
|
|
17799
17935
|
type AssertEqual<T, U> = (<V>() => V extends T ? 1 : 2) extends <V>() => V extends U ? 1 : 2 ? true : false;
|
|
17800
17936
|
export type isAny<T> = 0 extends 1 & T ? true : false;
|
|
17801
|
-
export const assertEqual: <A, B>(
|
|
17937
|
+
export const assertEqual: <A, B>(_: AssertEqual<A, B>) => void;
|
|
17802
17938
|
export function assertIs<T>(_arg: T): void;
|
|
17803
17939
|
export function assertNever(_x: never): never;
|
|
17804
17940
|
export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
|
17805
17941
|
export type OmitKeys<T, K extends string> = Pick<T, Exclude<keyof T, K>>;
|
|
17806
17942
|
export type MakePartial<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
17807
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
|
+
};
|
|
17808
17947
|
export const arrayToEnum: <T extends string, U extends [T, ...T[]]>(items: U) => { [k in U[number]]: k; };
|
|
17809
17948
|
export const getValidEnumValues: (obj: any) => any[];
|
|
17810
17949
|
export const objectValues: (obj: any) => any[];
|
|
@@ -17855,24 +17994,24 @@ declare namespace objectUtil {
|
|
|
17855
17994
|
}
|
|
17856
17995
|
declare const ZodParsedType: {
|
|
17857
17996
|
string: "string";
|
|
17858
|
-
number: "number";
|
|
17859
|
-
bigint: "bigint";
|
|
17860
|
-
boolean: "boolean";
|
|
17861
|
-
symbol: "symbol";
|
|
17862
|
-
undefined: "undefined";
|
|
17863
|
-
object: "object";
|
|
17864
|
-
function: "function";
|
|
17865
|
-
map: "map";
|
|
17866
17997
|
nan: "nan";
|
|
17998
|
+
number: "number";
|
|
17867
17999
|
integer: "integer";
|
|
17868
18000
|
float: "float";
|
|
18001
|
+
boolean: "boolean";
|
|
17869
18002
|
date: "date";
|
|
18003
|
+
bigint: "bigint";
|
|
18004
|
+
symbol: "symbol";
|
|
18005
|
+
function: "function";
|
|
18006
|
+
undefined: "undefined";
|
|
17870
18007
|
null: "null";
|
|
17871
18008
|
array: "array";
|
|
18009
|
+
object: "object";
|
|
17872
18010
|
unknown: "unknown";
|
|
17873
18011
|
promise: "promise";
|
|
17874
18012
|
void: "void";
|
|
17875
18013
|
never: "never";
|
|
18014
|
+
map: "map";
|
|
17876
18015
|
set: "set";
|
|
17877
18016
|
};
|
|
17878
18017
|
type ZodParsedType = keyof typeof ZodParsedType;
|
|
@@ -17905,7 +18044,7 @@ declare const ZodIssueCode: {
|
|
|
17905
18044
|
type ZodIssueCode = keyof typeof ZodIssueCode;
|
|
17906
18045
|
type ZodIssueBase = {
|
|
17907
18046
|
path: (string | number)[];
|
|
17908
|
-
message?: string;
|
|
18047
|
+
message?: string | undefined;
|
|
17909
18048
|
};
|
|
17910
18049
|
interface ZodInvalidTypeIssue extends ZodIssueBase {
|
|
17911
18050
|
code: typeof ZodIssueCode.invalid_type;
|
|
@@ -17947,7 +18086,7 @@ interface ZodInvalidDateIssue extends ZodIssueBase {
|
|
|
17947
18086
|
}
|
|
17948
18087
|
type StringValidation = "email" | "url" | "emoji" | "uuid" | "nanoid" | "regex" | "cuid" | "cuid2" | "ulid" | "datetime" | "date" | "time" | "duration" | "ip" | "cidr" | "base64" | "jwt" | "base64url" | {
|
|
17949
18088
|
includes: string;
|
|
17950
|
-
position?: number;
|
|
18089
|
+
position?: number | undefined;
|
|
17951
18090
|
} | {
|
|
17952
18091
|
startsWith: string;
|
|
17953
18092
|
} | {
|
|
@@ -17989,7 +18128,7 @@ interface ZodCustomIssue extends ZodIssueBase {
|
|
|
17989
18128
|
}
|
|
17990
18129
|
type ZodIssueOptionalMessage = ZodInvalidTypeIssue | ZodInvalidLiteralIssue | ZodUnrecognizedKeysIssue | ZodInvalidUnionIssue | ZodInvalidUnionDiscriminatorIssue | ZodInvalidEnumValueIssue | ZodInvalidArgumentsIssue | ZodInvalidReturnTypeIssue | ZodInvalidDateIssue | ZodInvalidStringIssue | ZodTooSmallIssue | ZodTooBigIssue | ZodInvalidIntersectionTypesIssue | ZodNotMultipleOfIssue | ZodNotFiniteIssue | ZodCustomIssue;
|
|
17991
18130
|
type ZodIssue = ZodIssueOptionalMessage & {
|
|
17992
|
-
fatal?: boolean;
|
|
18131
|
+
fatal?: boolean | undefined;
|
|
17993
18132
|
message: string;
|
|
17994
18133
|
};
|
|
17995
18134
|
type recursiveZodFormattedError<T> = T extends [any, ...any[]] ? {
|
|
@@ -18022,7 +18161,7 @@ declare class ZodError<T = any> extends Error {
|
|
|
18022
18161
|
type stripPath<T extends object> = T extends any ? util.OmitKeys<T, "path"> : never;
|
|
18023
18162
|
type IssueData = stripPath<ZodIssueOptionalMessage> & {
|
|
18024
18163
|
path?: (string | number)[];
|
|
18025
|
-
fatal?: boolean;
|
|
18164
|
+
fatal?: boolean | undefined;
|
|
18026
18165
|
};
|
|
18027
18166
|
type ErrorMapCtx = {
|
|
18028
18167
|
defaultError: string;
|
|
@@ -18042,11 +18181,11 @@ type ParsePath = ParsePathComponent[];
|
|
|
18042
18181
|
interface ParseContext {
|
|
18043
18182
|
readonly common: {
|
|
18044
18183
|
readonly issues: ZodIssue[];
|
|
18045
|
-
readonly contextualErrorMap?: ZodErrorMap;
|
|
18184
|
+
readonly contextualErrorMap?: ZodErrorMap | undefined;
|
|
18046
18185
|
readonly async: boolean;
|
|
18047
18186
|
};
|
|
18048
18187
|
readonly path: ParsePath;
|
|
18049
|
-
readonly schemaErrorMap?: ZodErrorMap;
|
|
18188
|
+
readonly schemaErrorMap?: ZodErrorMap | undefined;
|
|
18050
18189
|
readonly parent: ParseContext | null;
|
|
18051
18190
|
readonly data: any;
|
|
18052
18191
|
readonly parsedType: ZodParsedType;
|
|
@@ -18100,7 +18239,7 @@ declare namespace enumUtil {
|
|
|
18100
18239
|
|
|
18101
18240
|
declare namespace errorUtil {
|
|
18102
18241
|
type ErrMessage = string | {
|
|
18103
|
-
message?: string;
|
|
18242
|
+
message?: string | undefined;
|
|
18104
18243
|
};
|
|
18105
18244
|
const errToObj: (message?: ErrMessage) => {
|
|
18106
18245
|
message?: string | undefined;
|
|
@@ -18233,15 +18372,15 @@ type output<T extends ZodType<any, any, any>> = T["_output"];
|
|
|
18233
18372
|
|
|
18234
18373
|
type CustomErrorParams = Partial<util.Omit<ZodCustomIssue, "code">>;
|
|
18235
18374
|
interface ZodTypeDef {
|
|
18236
|
-
errorMap?: ZodErrorMap;
|
|
18237
|
-
description?: string;
|
|
18375
|
+
errorMap?: ZodErrorMap | undefined;
|
|
18376
|
+
description?: string | undefined;
|
|
18238
18377
|
}
|
|
18239
18378
|
type RawCreateParams = {
|
|
18240
|
-
errorMap?: ZodErrorMap;
|
|
18241
|
-
invalid_type_error?: string;
|
|
18242
|
-
required_error?: string;
|
|
18243
|
-
message?: string;
|
|
18244
|
-
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;
|
|
18245
18384
|
} | undefined;
|
|
18246
18385
|
type SafeParseSuccess<Output> = {
|
|
18247
18386
|
success: true;
|
|
@@ -18270,13 +18409,13 @@ declare abstract class ZodType<Output = any, Def extends ZodTypeDef = ZodTypeDef
|
|
|
18270
18409
|
};
|
|
18271
18410
|
_parseSync(input: ParseInput): SyncParseReturnType<Output>;
|
|
18272
18411
|
_parseAsync(input: ParseInput): AsyncParseReturnType<Output>;
|
|
18273
|
-
parse(data: unknown, params?:
|
|
18274
|
-
safeParse(data: unknown, params?:
|
|
18412
|
+
parse(data: unknown, params?: util.InexactPartial<ParseParams>): Output;
|
|
18413
|
+
safeParse(data: unknown, params?: util.InexactPartial<ParseParams>): SafeParseReturnType<Input, Output>;
|
|
18275
18414
|
"~validate"(data: unknown): StandardSchemaV1.Result<Output> | Promise<StandardSchemaV1.Result<Output>>;
|
|
18276
|
-
parseAsync(data: unknown, params?:
|
|
18277
|
-
safeParseAsync(data: unknown, params?:
|
|
18415
|
+
parseAsync(data: unknown, params?: util.InexactPartial<ParseParams>): Promise<Output>;
|
|
18416
|
+
safeParseAsync(data: unknown, params?: util.InexactPartial<ParseParams>): Promise<SafeParseReturnType<Input, Output>>;
|
|
18278
18417
|
/** Alias of safeParseAsync */
|
|
18279
|
-
spa: (data: unknown, params?:
|
|
18418
|
+
spa: (data: unknown, params?: util.InexactPartial<ParseParams>) => Promise<SafeParseReturnType<Input, Output>>;
|
|
18280
18419
|
refine<RefinedOutput extends Output>(check: (arg: Output) => arg is RefinedOutput, message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)): ZodEffects<this, RefinedOutput, Input>;
|
|
18281
18420
|
refine(check: (arg: Output) => unknown | Promise<unknown>, message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)): ZodEffects<this, Output, Input>;
|
|
18282
18421
|
refinement<RefinedOutput extends Output>(check: (arg: Output) => arg is RefinedOutput, refinementData: IssueData | ((arg: Output, ctx: RefinementCtx) => IssueData)): ZodEffects<this, RefinedOutput, Input>;
|
|
@@ -18312,99 +18451,99 @@ type IpVersion = "v4" | "v6";
|
|
|
18312
18451
|
type ZodStringCheck = {
|
|
18313
18452
|
kind: "min";
|
|
18314
18453
|
value: number;
|
|
18315
|
-
message?: string;
|
|
18454
|
+
message?: string | undefined;
|
|
18316
18455
|
} | {
|
|
18317
18456
|
kind: "max";
|
|
18318
18457
|
value: number;
|
|
18319
|
-
message?: string;
|
|
18458
|
+
message?: string | undefined;
|
|
18320
18459
|
} | {
|
|
18321
18460
|
kind: "length";
|
|
18322
18461
|
value: number;
|
|
18323
|
-
message?: string;
|
|
18462
|
+
message?: string | undefined;
|
|
18324
18463
|
} | {
|
|
18325
18464
|
kind: "email";
|
|
18326
|
-
message?: string;
|
|
18465
|
+
message?: string | undefined;
|
|
18327
18466
|
} | {
|
|
18328
18467
|
kind: "url";
|
|
18329
|
-
message?: string;
|
|
18468
|
+
message?: string | undefined;
|
|
18330
18469
|
} | {
|
|
18331
18470
|
kind: "emoji";
|
|
18332
|
-
message?: string;
|
|
18471
|
+
message?: string | undefined;
|
|
18333
18472
|
} | {
|
|
18334
18473
|
kind: "uuid";
|
|
18335
|
-
message?: string;
|
|
18474
|
+
message?: string | undefined;
|
|
18336
18475
|
} | {
|
|
18337
18476
|
kind: "nanoid";
|
|
18338
|
-
message?: string;
|
|
18477
|
+
message?: string | undefined;
|
|
18339
18478
|
} | {
|
|
18340
18479
|
kind: "cuid";
|
|
18341
|
-
message?: string;
|
|
18480
|
+
message?: string | undefined;
|
|
18342
18481
|
} | {
|
|
18343
18482
|
kind: "includes";
|
|
18344
18483
|
value: string;
|
|
18345
|
-
position?: number;
|
|
18346
|
-
message?: string;
|
|
18484
|
+
position?: number | undefined;
|
|
18485
|
+
message?: string | undefined;
|
|
18347
18486
|
} | {
|
|
18348
18487
|
kind: "cuid2";
|
|
18349
|
-
message?: string;
|
|
18488
|
+
message?: string | undefined;
|
|
18350
18489
|
} | {
|
|
18351
18490
|
kind: "ulid";
|
|
18352
|
-
message?: string;
|
|
18491
|
+
message?: string | undefined;
|
|
18353
18492
|
} | {
|
|
18354
18493
|
kind: "startsWith";
|
|
18355
18494
|
value: string;
|
|
18356
|
-
message?: string;
|
|
18495
|
+
message?: string | undefined;
|
|
18357
18496
|
} | {
|
|
18358
18497
|
kind: "endsWith";
|
|
18359
18498
|
value: string;
|
|
18360
|
-
message?: string;
|
|
18499
|
+
message?: string | undefined;
|
|
18361
18500
|
} | {
|
|
18362
18501
|
kind: "regex";
|
|
18363
18502
|
regex: RegExp;
|
|
18364
|
-
message?: string;
|
|
18503
|
+
message?: string | undefined;
|
|
18365
18504
|
} | {
|
|
18366
18505
|
kind: "trim";
|
|
18367
|
-
message?: string;
|
|
18506
|
+
message?: string | undefined;
|
|
18368
18507
|
} | {
|
|
18369
18508
|
kind: "toLowerCase";
|
|
18370
|
-
message?: string;
|
|
18509
|
+
message?: string | undefined;
|
|
18371
18510
|
} | {
|
|
18372
18511
|
kind: "toUpperCase";
|
|
18373
|
-
message?: string;
|
|
18512
|
+
message?: string | undefined;
|
|
18374
18513
|
} | {
|
|
18375
18514
|
kind: "jwt";
|
|
18376
18515
|
alg?: string;
|
|
18377
|
-
message?: string;
|
|
18516
|
+
message?: string | undefined;
|
|
18378
18517
|
} | {
|
|
18379
18518
|
kind: "datetime";
|
|
18380
18519
|
offset: boolean;
|
|
18381
18520
|
local: boolean;
|
|
18382
18521
|
precision: number | null;
|
|
18383
|
-
message?: string;
|
|
18522
|
+
message?: string | undefined;
|
|
18384
18523
|
} | {
|
|
18385
18524
|
kind: "date";
|
|
18386
|
-
message?: string;
|
|
18525
|
+
message?: string | undefined;
|
|
18387
18526
|
} | {
|
|
18388
18527
|
kind: "time";
|
|
18389
18528
|
precision: number | null;
|
|
18390
|
-
message?: string;
|
|
18529
|
+
message?: string | undefined;
|
|
18391
18530
|
} | {
|
|
18392
18531
|
kind: "duration";
|
|
18393
|
-
message?: string;
|
|
18532
|
+
message?: string | undefined;
|
|
18394
18533
|
} | {
|
|
18395
18534
|
kind: "ip";
|
|
18396
|
-
version?: IpVersion;
|
|
18397
|
-
message?: string;
|
|
18535
|
+
version?: IpVersion | undefined;
|
|
18536
|
+
message?: string | undefined;
|
|
18398
18537
|
} | {
|
|
18399
18538
|
kind: "cidr";
|
|
18400
|
-
version?: IpVersion;
|
|
18401
|
-
message?: string;
|
|
18539
|
+
version?: IpVersion | undefined;
|
|
18540
|
+
message?: string | undefined;
|
|
18402
18541
|
} | {
|
|
18403
18542
|
kind: "base64";
|
|
18404
|
-
message?: string;
|
|
18543
|
+
message?: string | undefined;
|
|
18405
18544
|
} | {
|
|
18406
18545
|
kind: "base64url";
|
|
18407
|
-
message?: string;
|
|
18546
|
+
message?: string | undefined;
|
|
18408
18547
|
};
|
|
18409
18548
|
interface ZodStringDef extends ZodTypeDef {
|
|
18410
18549
|
checks: ZodStringCheck[];
|
|
@@ -18427,15 +18566,15 @@ declare class ZodString extends ZodType<string, ZodStringDef, string> {
|
|
|
18427
18566
|
base64url(message?: errorUtil.ErrMessage): ZodString;
|
|
18428
18567
|
jwt(options?: {
|
|
18429
18568
|
alg?: string;
|
|
18430
|
-
message?: string;
|
|
18569
|
+
message?: string | undefined;
|
|
18431
18570
|
}): ZodString;
|
|
18432
18571
|
ip(options?: string | {
|
|
18433
18572
|
version?: IpVersion;
|
|
18434
|
-
message?: string;
|
|
18573
|
+
message?: string | undefined;
|
|
18435
18574
|
}): ZodString;
|
|
18436
18575
|
cidr(options?: string | {
|
|
18437
18576
|
version?: IpVersion;
|
|
18438
|
-
message?: string;
|
|
18577
|
+
message?: string | undefined;
|
|
18439
18578
|
}): ZodString;
|
|
18440
18579
|
datetime(options?: string | {
|
|
18441
18580
|
message?: string | undefined;
|
|
@@ -18492,22 +18631,22 @@ type ZodNumberCheck = {
|
|
|
18492
18631
|
kind: "min";
|
|
18493
18632
|
value: number;
|
|
18494
18633
|
inclusive: boolean;
|
|
18495
|
-
message?: string;
|
|
18634
|
+
message?: string | undefined;
|
|
18496
18635
|
} | {
|
|
18497
18636
|
kind: "max";
|
|
18498
18637
|
value: number;
|
|
18499
18638
|
inclusive: boolean;
|
|
18500
|
-
message?: string;
|
|
18639
|
+
message?: string | undefined;
|
|
18501
18640
|
} | {
|
|
18502
18641
|
kind: "int";
|
|
18503
|
-
message?: string;
|
|
18642
|
+
message?: string | undefined;
|
|
18504
18643
|
} | {
|
|
18505
18644
|
kind: "multipleOf";
|
|
18506
18645
|
value: number;
|
|
18507
|
-
message?: string;
|
|
18646
|
+
message?: string | undefined;
|
|
18508
18647
|
} | {
|
|
18509
18648
|
kind: "finite";
|
|
18510
|
-
message?: string;
|
|
18649
|
+
message?: string | undefined;
|
|
18511
18650
|
};
|
|
18512
18651
|
interface ZodNumberDef extends ZodTypeDef {
|
|
18513
18652
|
checks: ZodNumberCheck[];
|
|
@@ -18564,15 +18703,15 @@ interface ZodArrayDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
|
18564
18703
|
typeName: ZodFirstPartyTypeKind.ZodArray;
|
|
18565
18704
|
exactLength: {
|
|
18566
18705
|
value: number;
|
|
18567
|
-
message?: string;
|
|
18706
|
+
message?: string | undefined;
|
|
18568
18707
|
} | null;
|
|
18569
18708
|
minLength: {
|
|
18570
18709
|
value: number;
|
|
18571
|
-
message?: string;
|
|
18710
|
+
message?: string | undefined;
|
|
18572
18711
|
} | null;
|
|
18573
18712
|
maxLength: {
|
|
18574
18713
|
value: number;
|
|
18575
|
-
message?: string;
|
|
18714
|
+
message?: string | undefined;
|
|
18576
18715
|
} | null;
|
|
18577
18716
|
}
|
|
18578
18717
|
type ArrayCardinality = "many" | "atleastone";
|
|
@@ -18584,7 +18723,7 @@ declare class ZodArray<T extends ZodTypeAny, Cardinality extends ArrayCardinalit
|
|
|
18584
18723
|
max(maxLength: number, message?: errorUtil.ErrMessage): this;
|
|
18585
18724
|
length(len: number, message?: errorUtil.ErrMessage): this;
|
|
18586
18725
|
nonempty(message?: errorUtil.ErrMessage): ZodArray<T, "atleastone">;
|
|
18587
|
-
static create: <
|
|
18726
|
+
static create: <El extends ZodTypeAny>(schema: El, params?: RawCreateParams) => ZodArray<El>;
|
|
18588
18727
|
}
|
|
18589
18728
|
type UnknownKeysParam = "passthrough" | "strict" | "strip";
|
|
18590
18729
|
interface ZodObjectDef<T extends ZodRawShape = ZodRawShape, UnknownKeys extends UnknownKeysParam = UnknownKeysParam, Catchall extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
@@ -18669,24 +18808,20 @@ declare class ZodObject<T extends ZodRawShape, UnknownKeys extends UnknownKeysPa
|
|
|
18669
18808
|
[k in keyof T]: k extends keyof Mask ? deoptional<T[k]> : T[k];
|
|
18670
18809
|
}>, UnknownKeys, Catchall>;
|
|
18671
18810
|
keyof(): ZodEnum<enumUtil.UnionToTupleString<keyof T>>;
|
|
18672
|
-
static create: <
|
|
18673
|
-
static strictCreate: <
|
|
18674
|
-
static lazycreate: <
|
|
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">;
|
|
18675
18814
|
}
|
|
18676
18815
|
type AnyZodObject = ZodObject<any, any, any>;
|
|
18677
18816
|
type ZodUnionOptions = Readonly<[ZodTypeAny, ...ZodTypeAny[]]>;
|
|
18678
|
-
interface ZodUnionDef<T extends ZodUnionOptions = Readonly<[
|
|
18679
|
-
ZodTypeAny,
|
|
18680
|
-
ZodTypeAny,
|
|
18681
|
-
...ZodTypeAny[]
|
|
18682
|
-
]>> extends ZodTypeDef {
|
|
18817
|
+
interface ZodUnionDef<T extends ZodUnionOptions = Readonly<[ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>> extends ZodTypeDef {
|
|
18683
18818
|
options: T;
|
|
18684
18819
|
typeName: ZodFirstPartyTypeKind.ZodUnion;
|
|
18685
18820
|
}
|
|
18686
18821
|
declare class ZodUnion<T extends ZodUnionOptions> extends ZodType<T[number]["_output"], ZodUnionDef<T>, T[number]["_input"]> {
|
|
18687
18822
|
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
18688
18823
|
get options(): T;
|
|
18689
|
-
static create: <
|
|
18824
|
+
static create: <Options extends Readonly<[ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>>(types: Options, params?: RawCreateParams) => ZodUnion<Options>;
|
|
18690
18825
|
}
|
|
18691
18826
|
type ZodDiscriminatedUnionOption<Discriminator extends string> = ZodObject<{
|
|
18692
18827
|
[key in Discriminator]: ZodTypeAny;
|
|
@@ -18722,7 +18857,7 @@ interface ZodIntersectionDef<T extends ZodTypeAny = ZodTypeAny, U extends ZodTyp
|
|
|
18722
18857
|
}
|
|
18723
18858
|
declare class ZodIntersection<T extends ZodTypeAny, U extends ZodTypeAny> extends ZodType<T["_output"] & U["_output"], ZodIntersectionDef<T, U>, T["_input"] & U["_input"]> {
|
|
18724
18859
|
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
18725
|
-
static create: <
|
|
18860
|
+
static create: <TSchema extends ZodTypeAny, USchema extends ZodTypeAny>(left: TSchema, right: USchema, params?: RawCreateParams) => ZodIntersection<TSchema, USchema>;
|
|
18726
18861
|
}
|
|
18727
18862
|
type ZodTupleItems = [ZodTypeAny, ...ZodTypeAny[]];
|
|
18728
18863
|
type AssertArray<T> = T extends any[] ? T : never;
|
|
@@ -18739,11 +18874,11 @@ interface ZodTupleDef<T extends ZodTupleItems | [] = ZodTupleItems, Rest extends
|
|
|
18739
18874
|
rest: Rest;
|
|
18740
18875
|
typeName: ZodFirstPartyTypeKind.ZodTuple;
|
|
18741
18876
|
}
|
|
18742
|
-
declare class ZodTuple<T extends
|
|
18877
|
+
declare class ZodTuple<T extends ZodTupleItems | [] = ZodTupleItems, Rest extends ZodTypeAny | null = null> extends ZodType<OutputTypeOfTupleWithRest<T, Rest>, ZodTupleDef<T, Rest>, InputTypeOfTupleWithRest<T, Rest>> {
|
|
18743
18878
|
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
18744
18879
|
get items(): T;
|
|
18745
|
-
rest<
|
|
18746
|
-
static create: <
|
|
18880
|
+
rest<RestSchema extends ZodTypeAny>(rest: RestSchema): ZodTuple<T, RestSchema>;
|
|
18881
|
+
static create: <Items extends [ZodTypeAny, ...ZodTypeAny[]] | []>(schemas: Items, params?: RawCreateParams) => ZodTuple<Items, null>;
|
|
18747
18882
|
}
|
|
18748
18883
|
interface ZodLiteralDef<T = any> extends ZodTypeDef {
|
|
18749
18884
|
value: T;
|
|
@@ -18752,7 +18887,7 @@ interface ZodLiteralDef<T = any> extends ZodTypeDef {
|
|
|
18752
18887
|
declare class ZodLiteral<T> extends ZodType<T, ZodLiteralDef<T>, T> {
|
|
18753
18888
|
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
18754
18889
|
get value(): T;
|
|
18755
|
-
static create: <
|
|
18890
|
+
static create: <Value extends Primitive$1>(value: Value, params?: RawCreateParams) => ZodLiteral<Value>;
|
|
18756
18891
|
}
|
|
18757
18892
|
type EnumValues<T extends string = string> = readonly [T, ...T[]];
|
|
18758
18893
|
type Values<T extends EnumValues> = {
|
|
@@ -18770,7 +18905,7 @@ type typecast<A, T> = A extends T ? A : never;
|
|
|
18770
18905
|
declare function createZodEnum<U extends string, T extends Readonly<[U, ...U[]]>>(values: T, params?: RawCreateParams): ZodEnum<Writeable<T>>;
|
|
18771
18906
|
declare function createZodEnum<U extends string, T extends [U, ...U[]]>(values: T, params?: RawCreateParams): ZodEnum<T>;
|
|
18772
18907
|
declare class ZodEnum<T extends [string, ...string[]]> extends ZodType<T[number], ZodEnumDef<T>, T[number]> {
|
|
18773
|
-
|
|
18908
|
+
_cache: Set<T[number]> | undefined;
|
|
18774
18909
|
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
18775
18910
|
get options(): T;
|
|
18776
18911
|
get enum(): Values<T>;
|
|
@@ -18787,7 +18922,7 @@ interface ZodPromiseDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
|
18787
18922
|
declare class ZodPromise<T extends ZodTypeAny> extends ZodType<Promise<T["_output"]>, ZodPromiseDef<T>, Promise<T["_input"]>> {
|
|
18788
18923
|
unwrap(): T;
|
|
18789
18924
|
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
18790
|
-
static create: <
|
|
18925
|
+
static create: <Inner extends ZodTypeAny>(schema: Inner, params?: RawCreateParams) => ZodPromise<Inner>;
|
|
18791
18926
|
}
|
|
18792
18927
|
type RefinementEffect<T> = {
|
|
18793
18928
|
type: "refinement";
|
|
@@ -18822,7 +18957,7 @@ interface ZodOptionalDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
|
18822
18957
|
declare class ZodOptional<T extends ZodTypeAny> extends ZodType<T["_output"] | undefined, ZodOptionalDef<T>, T["_input"] | undefined> {
|
|
18823
18958
|
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
18824
18959
|
unwrap(): T;
|
|
18825
|
-
static create: <
|
|
18960
|
+
static create: <Inner extends ZodTypeAny>(type: Inner, params?: RawCreateParams) => ZodOptional<Inner>;
|
|
18826
18961
|
}
|
|
18827
18962
|
interface ZodNullableDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
18828
18963
|
innerType: T;
|
|
@@ -18831,7 +18966,7 @@ interface ZodNullableDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
|
18831
18966
|
declare class ZodNullable<T extends ZodTypeAny> extends ZodType<T["_output"] | null, ZodNullableDef<T>, T["_input"] | null> {
|
|
18832
18967
|
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
18833
18968
|
unwrap(): T;
|
|
18834
|
-
static create: <
|
|
18969
|
+
static create: <Inner extends ZodTypeAny>(type: Inner, params?: RawCreateParams) => ZodNullable<Inner>;
|
|
18835
18970
|
}
|
|
18836
18971
|
interface ZodDefaultDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
18837
18972
|
innerType: T;
|
|
@@ -18841,15 +18976,9 @@ interface ZodDefaultDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
|
18841
18976
|
declare class ZodDefault<T extends ZodTypeAny> extends ZodType<util.noUndefined<T["_output"]>, ZodDefaultDef<T>, T["_input"] | undefined> {
|
|
18842
18977
|
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
18843
18978
|
removeDefault(): T;
|
|
18844
|
-
static create: <
|
|
18845
|
-
|
|
18846
|
-
|
|
18847
|
-
required_error?: string | undefined;
|
|
18848
|
-
message?: string | undefined;
|
|
18849
|
-
description?: string | undefined;
|
|
18850
|
-
} & {
|
|
18851
|
-
default: T_1["_input"] | (() => util.noUndefined<T_1["_input"]>);
|
|
18852
|
-
}) => ZodDefault<T_1>;
|
|
18979
|
+
static create: <Inner extends ZodTypeAny>(type: Inner, params: RawCreateParams & {
|
|
18980
|
+
default: Inner["_input"] | (() => util.noUndefined<Inner["_input"]>);
|
|
18981
|
+
}) => ZodDefault<Inner>;
|
|
18853
18982
|
}
|
|
18854
18983
|
interface ZodCatchDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
18855
18984
|
innerType: T;
|
|
@@ -18862,15 +18991,9 @@ interface ZodCatchDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
|
18862
18991
|
declare class ZodCatch<T extends ZodTypeAny> extends ZodType<T["_output"], ZodCatchDef<T>, unknown> {
|
|
18863
18992
|
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
18864
18993
|
removeCatch(): T;
|
|
18865
|
-
static create: <
|
|
18866
|
-
|
|
18867
|
-
|
|
18868
|
-
required_error?: string | undefined;
|
|
18869
|
-
message?: string | undefined;
|
|
18870
|
-
description?: string | undefined;
|
|
18871
|
-
} & {
|
|
18872
|
-
catch: T_1["_output"] | (() => T_1["_output"]);
|
|
18873
|
-
}) => ZodCatch<T_1>;
|
|
18994
|
+
static create: <Inner extends ZodTypeAny>(type: Inner, params: RawCreateParams & {
|
|
18995
|
+
catch: Inner["_output"] | (() => Inner["_output"]);
|
|
18996
|
+
}) => ZodCatch<Inner>;
|
|
18874
18997
|
}
|
|
18875
18998
|
interface ZodBrandedDef<T extends ZodTypeAny> extends ZodTypeDef {
|
|
18876
18999
|
type: T;
|
|
@@ -18893,7 +19016,7 @@ interface ZodPipelineDef<A extends ZodTypeAny, B extends ZodTypeAny> extends Zod
|
|
|
18893
19016
|
}
|
|
18894
19017
|
declare class ZodPipeline<A extends ZodTypeAny, B extends ZodTypeAny> extends ZodType<B["_output"], ZodPipelineDef<A, B>, A["_input"]> {
|
|
18895
19018
|
_parse(input: ParseInput): ParseReturnType<any>;
|
|
18896
|
-
static create<
|
|
19019
|
+
static create<ASchema extends ZodTypeAny, BSchema extends ZodTypeAny>(a: ASchema, b: BSchema): ZodPipeline<ASchema, BSchema>;
|
|
18897
19020
|
}
|
|
18898
19021
|
type BuiltIn = (((...args: any[]) => any) | (new (...args: any[]) => any)) | {
|
|
18899
19022
|
readonly [Symbol.toStringTag]: string;
|
|
@@ -18905,7 +19028,7 @@ interface ZodReadonlyDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
|
18905
19028
|
}
|
|
18906
19029
|
declare class ZodReadonly<T extends ZodTypeAny> extends ZodType<MakeReadonly<T["_output"]>, ZodReadonlyDef<T>, MakeReadonly<T["_input"]>> {
|
|
18907
19030
|
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
18908
|
-
static create: <
|
|
19031
|
+
static create: <Inner extends ZodTypeAny>(type: Inner, params?: RawCreateParams) => ZodReadonly<Inner>;
|
|
18909
19032
|
unwrap(): T;
|
|
18910
19033
|
}
|
|
18911
19034
|
declare enum ZodFirstPartyTypeKind {
|
|
@@ -18947,6 +19070,22 @@ declare enum ZodFirstPartyTypeKind {
|
|
|
18947
19070
|
ZodReadonly = "ZodReadonly"
|
|
18948
19071
|
}
|
|
18949
19072
|
|
|
19073
|
+
declare const RequestMetaSchema: ZodObject<{
|
|
19074
|
+
/**
|
|
19075
|
+
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
19076
|
+
*/
|
|
19077
|
+
progressToken: ZodOptional<ZodUnion<[ZodString, ZodNumber]>>;
|
|
19078
|
+
}, "passthrough", ZodTypeAny, objectOutputType<{
|
|
19079
|
+
/**
|
|
19080
|
+
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
19081
|
+
*/
|
|
19082
|
+
progressToken: ZodOptional<ZodUnion<[ZodString, ZodNumber]>>;
|
|
19083
|
+
}, ZodTypeAny, "passthrough">, objectInputType<{
|
|
19084
|
+
/**
|
|
19085
|
+
* If specified, the caller is requesting out-of-band progress notifications for this request (as represented by notifications/progress). The value of this parameter is an opaque token that will be attached to any subsequent notifications. The receiver is not obligated to provide these notifications.
|
|
19086
|
+
*/
|
|
19087
|
+
progressToken: ZodOptional<ZodUnion<[ZodString, ZodNumber]>>;
|
|
19088
|
+
}, ZodTypeAny, "passthrough">>;
|
|
18950
19089
|
declare const RequestSchema: ZodObject<{
|
|
18951
19090
|
method: ZodString;
|
|
18952
19091
|
params: ZodOptional<ZodObject<{
|
|
@@ -19673,6 +19812,10 @@ declare const ProgressSchema: ZodObject<{
|
|
|
19673
19812
|
* Total number of items to process (or total progress required), if known.
|
|
19674
19813
|
*/
|
|
19675
19814
|
total: ZodOptional<ZodNumber>;
|
|
19815
|
+
/**
|
|
19816
|
+
* An optional message describing the current progress.
|
|
19817
|
+
*/
|
|
19818
|
+
message: ZodOptional<ZodString>;
|
|
19676
19819
|
}, "passthrough", ZodTypeAny, objectOutputType<{
|
|
19677
19820
|
/**
|
|
19678
19821
|
* The progress thus far. This should increase every time progress is made, even if the total is unknown.
|
|
@@ -19682,6 +19825,10 @@ declare const ProgressSchema: ZodObject<{
|
|
|
19682
19825
|
* Total number of items to process (or total progress required), if known.
|
|
19683
19826
|
*/
|
|
19684
19827
|
total: ZodOptional<ZodNumber>;
|
|
19828
|
+
/**
|
|
19829
|
+
* An optional message describing the current progress.
|
|
19830
|
+
*/
|
|
19831
|
+
message: ZodOptional<ZodString>;
|
|
19685
19832
|
}, ZodTypeAny, "passthrough">, objectInputType<{
|
|
19686
19833
|
/**
|
|
19687
19834
|
* The progress thus far. This should increase every time progress is made, even if the total is unknown.
|
|
@@ -19691,6 +19838,10 @@ declare const ProgressSchema: ZodObject<{
|
|
|
19691
19838
|
* Total number of items to process (or total progress required), if known.
|
|
19692
19839
|
*/
|
|
19693
19840
|
total: ZodOptional<ZodNumber>;
|
|
19841
|
+
/**
|
|
19842
|
+
* An optional message describing the current progress.
|
|
19843
|
+
*/
|
|
19844
|
+
message: ZodOptional<ZodString>;
|
|
19694
19845
|
}, ZodTypeAny, "passthrough">>;
|
|
19695
19846
|
/**
|
|
19696
19847
|
* A known resource that the server is capable of reading.
|
|
@@ -23454,6 +23605,131 @@ declare const GetPromptResultSchema: ZodObject<objectUtil.extendShape<{
|
|
|
23454
23605
|
}, ZodTypeAny, "passthrough">>]>;
|
|
23455
23606
|
}, ZodTypeAny, "passthrough">>, "many">;
|
|
23456
23607
|
}>, ZodTypeAny, "passthrough">>;
|
|
23608
|
+
/**
|
|
23609
|
+
* Additional properties describing a Tool to clients.
|
|
23610
|
+
*
|
|
23611
|
+
* NOTE: all properties in ToolAnnotations are **hints**.
|
|
23612
|
+
* They are not guaranteed to provide a faithful description of
|
|
23613
|
+
* tool behavior (including descriptive properties like `title`).
|
|
23614
|
+
*
|
|
23615
|
+
* Clients should never make tool use decisions based on ToolAnnotations
|
|
23616
|
+
* received from untrusted servers.
|
|
23617
|
+
*/
|
|
23618
|
+
declare const ToolAnnotationsSchema: ZodObject<{
|
|
23619
|
+
/**
|
|
23620
|
+
* A human-readable title for the tool.
|
|
23621
|
+
*/
|
|
23622
|
+
title: ZodOptional<ZodString>;
|
|
23623
|
+
/**
|
|
23624
|
+
* If true, the tool does not modify its environment.
|
|
23625
|
+
*
|
|
23626
|
+
* Default: false
|
|
23627
|
+
*/
|
|
23628
|
+
readOnlyHint: ZodOptional<ZodBoolean>;
|
|
23629
|
+
/**
|
|
23630
|
+
* If true, the tool may perform destructive updates to its environment.
|
|
23631
|
+
* If false, the tool performs only additive updates.
|
|
23632
|
+
*
|
|
23633
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
23634
|
+
*
|
|
23635
|
+
* Default: true
|
|
23636
|
+
*/
|
|
23637
|
+
destructiveHint: ZodOptional<ZodBoolean>;
|
|
23638
|
+
/**
|
|
23639
|
+
* If true, calling the tool repeatedly with the same arguments
|
|
23640
|
+
* will have no additional effect on the its environment.
|
|
23641
|
+
*
|
|
23642
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
23643
|
+
*
|
|
23644
|
+
* Default: false
|
|
23645
|
+
*/
|
|
23646
|
+
idempotentHint: ZodOptional<ZodBoolean>;
|
|
23647
|
+
/**
|
|
23648
|
+
* If true, this tool may interact with an "open world" of external
|
|
23649
|
+
* entities. If false, the tool's domain of interaction is closed.
|
|
23650
|
+
* For example, the world of a web search tool is open, whereas that
|
|
23651
|
+
* of a memory tool is not.
|
|
23652
|
+
*
|
|
23653
|
+
* Default: true
|
|
23654
|
+
*/
|
|
23655
|
+
openWorldHint: ZodOptional<ZodBoolean>;
|
|
23656
|
+
}, "passthrough", ZodTypeAny, objectOutputType<{
|
|
23657
|
+
/**
|
|
23658
|
+
* A human-readable title for the tool.
|
|
23659
|
+
*/
|
|
23660
|
+
title: ZodOptional<ZodString>;
|
|
23661
|
+
/**
|
|
23662
|
+
* If true, the tool does not modify its environment.
|
|
23663
|
+
*
|
|
23664
|
+
* Default: false
|
|
23665
|
+
*/
|
|
23666
|
+
readOnlyHint: ZodOptional<ZodBoolean>;
|
|
23667
|
+
/**
|
|
23668
|
+
* If true, the tool may perform destructive updates to its environment.
|
|
23669
|
+
* If false, the tool performs only additive updates.
|
|
23670
|
+
*
|
|
23671
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
23672
|
+
*
|
|
23673
|
+
* Default: true
|
|
23674
|
+
*/
|
|
23675
|
+
destructiveHint: ZodOptional<ZodBoolean>;
|
|
23676
|
+
/**
|
|
23677
|
+
* If true, calling the tool repeatedly with the same arguments
|
|
23678
|
+
* will have no additional effect on the its environment.
|
|
23679
|
+
*
|
|
23680
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
23681
|
+
*
|
|
23682
|
+
* Default: false
|
|
23683
|
+
*/
|
|
23684
|
+
idempotentHint: ZodOptional<ZodBoolean>;
|
|
23685
|
+
/**
|
|
23686
|
+
* If true, this tool may interact with an "open world" of external
|
|
23687
|
+
* entities. If false, the tool's domain of interaction is closed.
|
|
23688
|
+
* For example, the world of a web search tool is open, whereas that
|
|
23689
|
+
* of a memory tool is not.
|
|
23690
|
+
*
|
|
23691
|
+
* Default: true
|
|
23692
|
+
*/
|
|
23693
|
+
openWorldHint: ZodOptional<ZodBoolean>;
|
|
23694
|
+
}, ZodTypeAny, "passthrough">, objectInputType<{
|
|
23695
|
+
/**
|
|
23696
|
+
* A human-readable title for the tool.
|
|
23697
|
+
*/
|
|
23698
|
+
title: ZodOptional<ZodString>;
|
|
23699
|
+
/**
|
|
23700
|
+
* If true, the tool does not modify its environment.
|
|
23701
|
+
*
|
|
23702
|
+
* Default: false
|
|
23703
|
+
*/
|
|
23704
|
+
readOnlyHint: ZodOptional<ZodBoolean>;
|
|
23705
|
+
/**
|
|
23706
|
+
* If true, the tool may perform destructive updates to its environment.
|
|
23707
|
+
* If false, the tool performs only additive updates.
|
|
23708
|
+
*
|
|
23709
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
23710
|
+
*
|
|
23711
|
+
* Default: true
|
|
23712
|
+
*/
|
|
23713
|
+
destructiveHint: ZodOptional<ZodBoolean>;
|
|
23714
|
+
/**
|
|
23715
|
+
* If true, calling the tool repeatedly with the same arguments
|
|
23716
|
+
* will have no additional effect on the its environment.
|
|
23717
|
+
*
|
|
23718
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
23719
|
+
*
|
|
23720
|
+
* Default: false
|
|
23721
|
+
*/
|
|
23722
|
+
idempotentHint: ZodOptional<ZodBoolean>;
|
|
23723
|
+
/**
|
|
23724
|
+
* If true, this tool may interact with an "open world" of external
|
|
23725
|
+
* entities. If false, the tool's domain of interaction is closed.
|
|
23726
|
+
* For example, the world of a web search tool is open, whereas that
|
|
23727
|
+
* of a memory tool is not.
|
|
23728
|
+
*
|
|
23729
|
+
* Default: true
|
|
23730
|
+
*/
|
|
23731
|
+
openWorldHint: ZodOptional<ZodBoolean>;
|
|
23732
|
+
}, ZodTypeAny, "passthrough">>;
|
|
23457
23733
|
/**
|
|
23458
23734
|
* The server's response to a tool call.
|
|
23459
23735
|
*/
|
|
@@ -23463,7 +23739,13 @@ declare const CallToolResultSchema: ZodObject<objectUtil.extendShape<{
|
|
|
23463
23739
|
*/
|
|
23464
23740
|
_meta: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
23465
23741
|
}, {
|
|
23466
|
-
|
|
23742
|
+
/**
|
|
23743
|
+
* A list of content objects that represent the result of the tool call.
|
|
23744
|
+
*
|
|
23745
|
+
* If the Tool does not define an outputSchema, this field MUST be present in the result.
|
|
23746
|
+
* For backwards compatibility, this field is always present, but it may be empty.
|
|
23747
|
+
*/
|
|
23748
|
+
content: ZodDefault<ZodArray<ZodUnion<[ZodObject<{
|
|
23467
23749
|
type: ZodLiteral<"text">;
|
|
23468
23750
|
/**
|
|
23469
23751
|
* The text content of the message.
|
|
@@ -23802,15 +24084,41 @@ declare const CallToolResultSchema: ZodObject<objectUtil.extendShape<{
|
|
|
23802
24084
|
*/
|
|
23803
24085
|
blob: ZodString;
|
|
23804
24086
|
}>, ZodTypeAny, "passthrough">>]>;
|
|
23805
|
-
}, ZodTypeAny, "passthrough">>]>, "many"
|
|
23806
|
-
|
|
24087
|
+
}, ZodTypeAny, "passthrough">>]>, "many">>;
|
|
24088
|
+
/**
|
|
24089
|
+
* An object containing structured tool output.
|
|
24090
|
+
*
|
|
24091
|
+
* If the Tool defines an outputSchema, this field MUST be present in the result, and contain a JSON object that matches the schema.
|
|
24092
|
+
*/
|
|
24093
|
+
structuredContent: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
24094
|
+
/**
|
|
24095
|
+
* Whether the tool call ended in an error.
|
|
24096
|
+
*
|
|
24097
|
+
* If not set, this is assumed to be false (the call was successful).
|
|
24098
|
+
*
|
|
24099
|
+
* Any errors that originate from the tool SHOULD be reported inside the result
|
|
24100
|
+
* object, with `isError` set to true, _not_ as an MCP protocol-level error
|
|
24101
|
+
* response. Otherwise, the LLM would not be able to see that an error occurred
|
|
24102
|
+
* and self-correct.
|
|
24103
|
+
*
|
|
24104
|
+
* However, any errors in _finding_ the tool, an error indicating that the
|
|
24105
|
+
* server does not support tool calls, or any other exceptional conditions,
|
|
24106
|
+
* should be reported as an MCP error response.
|
|
24107
|
+
*/
|
|
24108
|
+
isError: ZodOptional<ZodBoolean>;
|
|
23807
24109
|
}>, "passthrough", ZodTypeAny, objectOutputType<objectUtil.extendShape<{
|
|
23808
24110
|
/**
|
|
23809
24111
|
* This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses.
|
|
23810
24112
|
*/
|
|
23811
24113
|
_meta: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
23812
24114
|
}, {
|
|
23813
|
-
|
|
24115
|
+
/**
|
|
24116
|
+
* A list of content objects that represent the result of the tool call.
|
|
24117
|
+
*
|
|
24118
|
+
* If the Tool does not define an outputSchema, this field MUST be present in the result.
|
|
24119
|
+
* For backwards compatibility, this field is always present, but it may be empty.
|
|
24120
|
+
*/
|
|
24121
|
+
content: ZodDefault<ZodArray<ZodUnion<[ZodObject<{
|
|
23814
24122
|
type: ZodLiteral<"text">;
|
|
23815
24123
|
/**
|
|
23816
24124
|
* The text content of the message.
|
|
@@ -24149,15 +24457,41 @@ declare const CallToolResultSchema: ZodObject<objectUtil.extendShape<{
|
|
|
24149
24457
|
*/
|
|
24150
24458
|
blob: ZodString;
|
|
24151
24459
|
}>, ZodTypeAny, "passthrough">>]>;
|
|
24152
|
-
}, ZodTypeAny, "passthrough">>]>, "many"
|
|
24153
|
-
|
|
24460
|
+
}, ZodTypeAny, "passthrough">>]>, "many">>;
|
|
24461
|
+
/**
|
|
24462
|
+
* An object containing structured tool output.
|
|
24463
|
+
*
|
|
24464
|
+
* If the Tool defines an outputSchema, this field MUST be present in the result, and contain a JSON object that matches the schema.
|
|
24465
|
+
*/
|
|
24466
|
+
structuredContent: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
24467
|
+
/**
|
|
24468
|
+
* Whether the tool call ended in an error.
|
|
24469
|
+
*
|
|
24470
|
+
* If not set, this is assumed to be false (the call was successful).
|
|
24471
|
+
*
|
|
24472
|
+
* Any errors that originate from the tool SHOULD be reported inside the result
|
|
24473
|
+
* object, with `isError` set to true, _not_ as an MCP protocol-level error
|
|
24474
|
+
* response. Otherwise, the LLM would not be able to see that an error occurred
|
|
24475
|
+
* and self-correct.
|
|
24476
|
+
*
|
|
24477
|
+
* However, any errors in _finding_ the tool, an error indicating that the
|
|
24478
|
+
* server does not support tool calls, or any other exceptional conditions,
|
|
24479
|
+
* should be reported as an MCP error response.
|
|
24480
|
+
*/
|
|
24481
|
+
isError: ZodOptional<ZodBoolean>;
|
|
24154
24482
|
}>, ZodTypeAny, "passthrough">, objectInputType<objectUtil.extendShape<{
|
|
24155
24483
|
/**
|
|
24156
24484
|
* This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses.
|
|
24157
24485
|
*/
|
|
24158
24486
|
_meta: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
24159
24487
|
}, {
|
|
24160
|
-
|
|
24488
|
+
/**
|
|
24489
|
+
* A list of content objects that represent the result of the tool call.
|
|
24490
|
+
*
|
|
24491
|
+
* If the Tool does not define an outputSchema, this field MUST be present in the result.
|
|
24492
|
+
* For backwards compatibility, this field is always present, but it may be empty.
|
|
24493
|
+
*/
|
|
24494
|
+
content: ZodDefault<ZodArray<ZodUnion<[ZodObject<{
|
|
24161
24495
|
type: ZodLiteral<"text">;
|
|
24162
24496
|
/**
|
|
24163
24497
|
* The text content of the message.
|
|
@@ -24496,8 +24830,28 @@ declare const CallToolResultSchema: ZodObject<objectUtil.extendShape<{
|
|
|
24496
24830
|
*/
|
|
24497
24831
|
blob: ZodString;
|
|
24498
24832
|
}>, ZodTypeAny, "passthrough">>]>;
|
|
24499
|
-
}, ZodTypeAny, "passthrough">>]>, "many"
|
|
24500
|
-
|
|
24833
|
+
}, ZodTypeAny, "passthrough">>]>, "many">>;
|
|
24834
|
+
/**
|
|
24835
|
+
* An object containing structured tool output.
|
|
24836
|
+
*
|
|
24837
|
+
* If the Tool defines an outputSchema, this field MUST be present in the result, and contain a JSON object that matches the schema.
|
|
24838
|
+
*/
|
|
24839
|
+
structuredContent: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
24840
|
+
/**
|
|
24841
|
+
* Whether the tool call ended in an error.
|
|
24842
|
+
*
|
|
24843
|
+
* If not set, this is assumed to be false (the call was successful).
|
|
24844
|
+
*
|
|
24845
|
+
* Any errors that originate from the tool SHOULD be reported inside the result
|
|
24846
|
+
* object, with `isError` set to true, _not_ as an MCP protocol-level error
|
|
24847
|
+
* response. Otherwise, the LLM would not be able to see that an error occurred
|
|
24848
|
+
* and self-correct.
|
|
24849
|
+
*
|
|
24850
|
+
* However, any errors in _finding_ the tool, an error indicating that the
|
|
24851
|
+
* server does not support tool calls, or any other exceptional conditions,
|
|
24852
|
+
* should be reported as an MCP error response.
|
|
24853
|
+
*/
|
|
24854
|
+
isError: ZodOptional<ZodBoolean>;
|
|
24501
24855
|
}>, ZodTypeAny, "passthrough">>;
|
|
24502
24856
|
/**
|
|
24503
24857
|
* Notification of a log message passed from server to client. If no logging/setLevel request has been sent from the client, the server MAY decide which messages to send automatically.
|
|
@@ -27942,6 +28296,10 @@ declare const ServerNotificationSchema: ZodUnion<[ZodObject<objectUtil.extendSha
|
|
|
27942
28296
|
* Total number of items to process (or total progress required), if known.
|
|
27943
28297
|
*/
|
|
27944
28298
|
total: ZodOptional<ZodNumber>;
|
|
28299
|
+
/**
|
|
28300
|
+
* An optional message describing the current progress.
|
|
28301
|
+
*/
|
|
28302
|
+
message: ZodOptional<ZodString>;
|
|
27945
28303
|
}>, {
|
|
27946
28304
|
/**
|
|
27947
28305
|
* The progress token which was given in the initial request, used to associate this notification with the request that is proceeding.
|
|
@@ -27961,6 +28319,10 @@ declare const ServerNotificationSchema: ZodUnion<[ZodObject<objectUtil.extendSha
|
|
|
27961
28319
|
* Total number of items to process (or total progress required), if known.
|
|
27962
28320
|
*/
|
|
27963
28321
|
total: ZodOptional<ZodNumber>;
|
|
28322
|
+
/**
|
|
28323
|
+
* An optional message describing the current progress.
|
|
28324
|
+
*/
|
|
28325
|
+
message: ZodOptional<ZodString>;
|
|
27964
28326
|
}>, {
|
|
27965
28327
|
/**
|
|
27966
28328
|
* The progress token which was given in the initial request, used to associate this notification with the request that is proceeding.
|
|
@@ -27980,6 +28342,10 @@ declare const ServerNotificationSchema: ZodUnion<[ZodObject<objectUtil.extendSha
|
|
|
27980
28342
|
* Total number of items to process (or total progress required), if known.
|
|
27981
28343
|
*/
|
|
27982
28344
|
total: ZodOptional<ZodNumber>;
|
|
28345
|
+
/**
|
|
28346
|
+
* An optional message describing the current progress.
|
|
28347
|
+
*/
|
|
28348
|
+
message: ZodOptional<ZodString>;
|
|
27983
28349
|
}>, {
|
|
27984
28350
|
/**
|
|
27985
28351
|
* The progress token which was given in the initial request, used to associate this notification with the request that is proceeding.
|
|
@@ -27990,6 +28356,7 @@ declare const ServerNotificationSchema: ZodUnion<[ZodObject<objectUtil.extendSha
|
|
|
27990
28356
|
params: {
|
|
27991
28357
|
progressToken: string | number;
|
|
27992
28358
|
progress: number;
|
|
28359
|
+
message?: string | undefined;
|
|
27993
28360
|
_meta?: objectOutputType<{}, ZodTypeAny, "passthrough"> | undefined;
|
|
27994
28361
|
total?: number | undefined;
|
|
27995
28362
|
} & {
|
|
@@ -28000,6 +28367,7 @@ declare const ServerNotificationSchema: ZodUnion<[ZodObject<objectUtil.extendSha
|
|
|
28000
28367
|
params: {
|
|
28001
28368
|
progressToken: string | number;
|
|
28002
28369
|
progress: number;
|
|
28370
|
+
message?: string | undefined;
|
|
28003
28371
|
_meta?: objectInputType<{}, ZodTypeAny, "passthrough"> | undefined;
|
|
28004
28372
|
total?: number | undefined;
|
|
28005
28373
|
} & {
|
|
@@ -33596,7 +33964,13 @@ declare const ServerResultSchema: ZodUnion<[ZodObject<{
|
|
|
33596
33964
|
*/
|
|
33597
33965
|
_meta: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
33598
33966
|
}, {
|
|
33599
|
-
|
|
33967
|
+
/**
|
|
33968
|
+
* A list of content objects that represent the result of the tool call.
|
|
33969
|
+
*
|
|
33970
|
+
* If the Tool does not define an outputSchema, this field MUST be present in the result.
|
|
33971
|
+
* For backwards compatibility, this field is always present, but it may be empty.
|
|
33972
|
+
*/
|
|
33973
|
+
content: ZodDefault<ZodArray<ZodUnion<[ZodObject<{
|
|
33600
33974
|
type: ZodLiteral<"text">;
|
|
33601
33975
|
/**
|
|
33602
33976
|
* The text content of the message.
|
|
@@ -33935,15 +34309,41 @@ declare const ServerResultSchema: ZodUnion<[ZodObject<{
|
|
|
33935
34309
|
*/
|
|
33936
34310
|
blob: ZodString;
|
|
33937
34311
|
}>, ZodTypeAny, "passthrough">>]>;
|
|
33938
|
-
}, ZodTypeAny, "passthrough">>]>, "many"
|
|
33939
|
-
|
|
34312
|
+
}, ZodTypeAny, "passthrough">>]>, "many">>;
|
|
34313
|
+
/**
|
|
34314
|
+
* An object containing structured tool output.
|
|
34315
|
+
*
|
|
34316
|
+
* If the Tool defines an outputSchema, this field MUST be present in the result, and contain a JSON object that matches the schema.
|
|
34317
|
+
*/
|
|
34318
|
+
structuredContent: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
34319
|
+
/**
|
|
34320
|
+
* Whether the tool call ended in an error.
|
|
34321
|
+
*
|
|
34322
|
+
* If not set, this is assumed to be false (the call was successful).
|
|
34323
|
+
*
|
|
34324
|
+
* Any errors that originate from the tool SHOULD be reported inside the result
|
|
34325
|
+
* object, with `isError` set to true, _not_ as an MCP protocol-level error
|
|
34326
|
+
* response. Otherwise, the LLM would not be able to see that an error occurred
|
|
34327
|
+
* and self-correct.
|
|
34328
|
+
*
|
|
34329
|
+
* However, any errors in _finding_ the tool, an error indicating that the
|
|
34330
|
+
* server does not support tool calls, or any other exceptional conditions,
|
|
34331
|
+
* should be reported as an MCP error response.
|
|
34332
|
+
*/
|
|
34333
|
+
isError: ZodOptional<ZodBoolean>;
|
|
33940
34334
|
}>, "passthrough", ZodTypeAny, objectOutputType<objectUtil.extendShape<{
|
|
33941
34335
|
/**
|
|
33942
34336
|
* This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses.
|
|
33943
34337
|
*/
|
|
33944
34338
|
_meta: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
33945
34339
|
}, {
|
|
33946
|
-
|
|
34340
|
+
/**
|
|
34341
|
+
* A list of content objects that represent the result of the tool call.
|
|
34342
|
+
*
|
|
34343
|
+
* If the Tool does not define an outputSchema, this field MUST be present in the result.
|
|
34344
|
+
* For backwards compatibility, this field is always present, but it may be empty.
|
|
34345
|
+
*/
|
|
34346
|
+
content: ZodDefault<ZodArray<ZodUnion<[ZodObject<{
|
|
33947
34347
|
type: ZodLiteral<"text">;
|
|
33948
34348
|
/**
|
|
33949
34349
|
* The text content of the message.
|
|
@@ -34282,15 +34682,41 @@ declare const ServerResultSchema: ZodUnion<[ZodObject<{
|
|
|
34282
34682
|
*/
|
|
34283
34683
|
blob: ZodString;
|
|
34284
34684
|
}>, ZodTypeAny, "passthrough">>]>;
|
|
34285
|
-
}, ZodTypeAny, "passthrough">>]>, "many"
|
|
34286
|
-
|
|
34685
|
+
}, ZodTypeAny, "passthrough">>]>, "many">>;
|
|
34686
|
+
/**
|
|
34687
|
+
* An object containing structured tool output.
|
|
34688
|
+
*
|
|
34689
|
+
* If the Tool defines an outputSchema, this field MUST be present in the result, and contain a JSON object that matches the schema.
|
|
34690
|
+
*/
|
|
34691
|
+
structuredContent: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
34692
|
+
/**
|
|
34693
|
+
* Whether the tool call ended in an error.
|
|
34694
|
+
*
|
|
34695
|
+
* If not set, this is assumed to be false (the call was successful).
|
|
34696
|
+
*
|
|
34697
|
+
* Any errors that originate from the tool SHOULD be reported inside the result
|
|
34698
|
+
* object, with `isError` set to true, _not_ as an MCP protocol-level error
|
|
34699
|
+
* response. Otherwise, the LLM would not be able to see that an error occurred
|
|
34700
|
+
* and self-correct.
|
|
34701
|
+
*
|
|
34702
|
+
* However, any errors in _finding_ the tool, an error indicating that the
|
|
34703
|
+
* server does not support tool calls, or any other exceptional conditions,
|
|
34704
|
+
* should be reported as an MCP error response.
|
|
34705
|
+
*/
|
|
34706
|
+
isError: ZodOptional<ZodBoolean>;
|
|
34287
34707
|
}>, ZodTypeAny, "passthrough">, objectInputType<objectUtil.extendShape<{
|
|
34288
34708
|
/**
|
|
34289
34709
|
* This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses.
|
|
34290
34710
|
*/
|
|
34291
34711
|
_meta: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
34292
34712
|
}, {
|
|
34293
|
-
|
|
34713
|
+
/**
|
|
34714
|
+
* A list of content objects that represent the result of the tool call.
|
|
34715
|
+
*
|
|
34716
|
+
* If the Tool does not define an outputSchema, this field MUST be present in the result.
|
|
34717
|
+
* For backwards compatibility, this field is always present, but it may be empty.
|
|
34718
|
+
*/
|
|
34719
|
+
content: ZodDefault<ZodArray<ZodUnion<[ZodObject<{
|
|
34294
34720
|
type: ZodLiteral<"text">;
|
|
34295
34721
|
/**
|
|
34296
34722
|
* The text content of the message.
|
|
@@ -34629,8 +35055,28 @@ declare const ServerResultSchema: ZodUnion<[ZodObject<{
|
|
|
34629
35055
|
*/
|
|
34630
35056
|
blob: ZodString;
|
|
34631
35057
|
}>, ZodTypeAny, "passthrough">>]>;
|
|
34632
|
-
}, ZodTypeAny, "passthrough">>]>, "many"
|
|
34633
|
-
|
|
35058
|
+
}, ZodTypeAny, "passthrough">>]>, "many">>;
|
|
35059
|
+
/**
|
|
35060
|
+
* An object containing structured tool output.
|
|
35061
|
+
*
|
|
35062
|
+
* If the Tool defines an outputSchema, this field MUST be present in the result, and contain a JSON object that matches the schema.
|
|
35063
|
+
*/
|
|
35064
|
+
structuredContent: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
35065
|
+
/**
|
|
35066
|
+
* Whether the tool call ended in an error.
|
|
35067
|
+
*
|
|
35068
|
+
* If not set, this is assumed to be false (the call was successful).
|
|
35069
|
+
*
|
|
35070
|
+
* Any errors that originate from the tool SHOULD be reported inside the result
|
|
35071
|
+
* object, with `isError` set to true, _not_ as an MCP protocol-level error
|
|
35072
|
+
* response. Otherwise, the LLM would not be able to see that an error occurred
|
|
35073
|
+
* and self-correct.
|
|
35074
|
+
*
|
|
35075
|
+
* However, any errors in _finding_ the tool, an error indicating that the
|
|
35076
|
+
* server does not support tool calls, or any other exceptional conditions,
|
|
35077
|
+
* should be reported as an MCP error response.
|
|
35078
|
+
*/
|
|
35079
|
+
isError: ZodOptional<ZodBoolean>;
|
|
34634
35080
|
}>, ZodTypeAny, "passthrough">>, ZodObject<objectUtil.extendShape<objectUtil.extendShape<{
|
|
34635
35081
|
/**
|
|
34636
35082
|
* This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses.
|
|
@@ -34658,13 +35104,644 @@ declare const ServerResultSchema: ZodUnion<[ZodObject<{
|
|
|
34658
35104
|
inputSchema: ZodObject<{
|
|
34659
35105
|
type: ZodLiteral<"object">;
|
|
34660
35106
|
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
35107
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
35108
|
+
}, "passthrough", ZodTypeAny, objectOutputType<{
|
|
35109
|
+
type: ZodLiteral<"object">;
|
|
35110
|
+
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
35111
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
35112
|
+
}, ZodTypeAny, "passthrough">, objectInputType<{
|
|
35113
|
+
type: ZodLiteral<"object">;
|
|
35114
|
+
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
35115
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
35116
|
+
}, ZodTypeAny, "passthrough">>;
|
|
35117
|
+
/**
|
|
35118
|
+
* An optional JSON Schema object defining the structure of the tool's output returned in
|
|
35119
|
+
* the structuredContent field of a CallToolResult.
|
|
35120
|
+
*/
|
|
35121
|
+
outputSchema: ZodOptional<ZodObject<{
|
|
35122
|
+
type: ZodLiteral<"object">;
|
|
35123
|
+
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
35124
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
35125
|
+
}, "passthrough", ZodTypeAny, objectOutputType<{
|
|
35126
|
+
type: ZodLiteral<"object">;
|
|
35127
|
+
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
35128
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
35129
|
+
}, ZodTypeAny, "passthrough">, objectInputType<{
|
|
35130
|
+
type: ZodLiteral<"object">;
|
|
35131
|
+
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
35132
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
35133
|
+
}, ZodTypeAny, "passthrough">>>;
|
|
35134
|
+
/**
|
|
35135
|
+
* Optional additional tool information.
|
|
35136
|
+
*/
|
|
35137
|
+
annotations: ZodOptional<ZodObject<{
|
|
35138
|
+
/**
|
|
35139
|
+
* A human-readable title for the tool.
|
|
35140
|
+
*/
|
|
35141
|
+
title: ZodOptional<ZodString>;
|
|
35142
|
+
/**
|
|
35143
|
+
* If true, the tool does not modify its environment.
|
|
35144
|
+
*
|
|
35145
|
+
* Default: false
|
|
35146
|
+
*/
|
|
35147
|
+
readOnlyHint: ZodOptional<ZodBoolean>;
|
|
35148
|
+
/**
|
|
35149
|
+
* If true, the tool may perform destructive updates to its environment.
|
|
35150
|
+
* If false, the tool performs only additive updates.
|
|
35151
|
+
*
|
|
35152
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
35153
|
+
*
|
|
35154
|
+
* Default: true
|
|
35155
|
+
*/
|
|
35156
|
+
destructiveHint: ZodOptional<ZodBoolean>;
|
|
35157
|
+
/**
|
|
35158
|
+
* If true, calling the tool repeatedly with the same arguments
|
|
35159
|
+
* will have no additional effect on the its environment.
|
|
35160
|
+
*
|
|
35161
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
35162
|
+
*
|
|
35163
|
+
* Default: false
|
|
35164
|
+
*/
|
|
35165
|
+
idempotentHint: ZodOptional<ZodBoolean>;
|
|
35166
|
+
/**
|
|
35167
|
+
* If true, this tool may interact with an "open world" of external
|
|
35168
|
+
* entities. If false, the tool's domain of interaction is closed.
|
|
35169
|
+
* For example, the world of a web search tool is open, whereas that
|
|
35170
|
+
* of a memory tool is not.
|
|
35171
|
+
*
|
|
35172
|
+
* Default: true
|
|
35173
|
+
*/
|
|
35174
|
+
openWorldHint: ZodOptional<ZodBoolean>;
|
|
35175
|
+
}, "passthrough", ZodTypeAny, objectOutputType<{
|
|
35176
|
+
/**
|
|
35177
|
+
* A human-readable title for the tool.
|
|
35178
|
+
*/
|
|
35179
|
+
title: ZodOptional<ZodString>;
|
|
35180
|
+
/**
|
|
35181
|
+
* If true, the tool does not modify its environment.
|
|
35182
|
+
*
|
|
35183
|
+
* Default: false
|
|
35184
|
+
*/
|
|
35185
|
+
readOnlyHint: ZodOptional<ZodBoolean>;
|
|
35186
|
+
/**
|
|
35187
|
+
* If true, the tool may perform destructive updates to its environment.
|
|
35188
|
+
* If false, the tool performs only additive updates.
|
|
35189
|
+
*
|
|
35190
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
35191
|
+
*
|
|
35192
|
+
* Default: true
|
|
35193
|
+
*/
|
|
35194
|
+
destructiveHint: ZodOptional<ZodBoolean>;
|
|
35195
|
+
/**
|
|
35196
|
+
* If true, calling the tool repeatedly with the same arguments
|
|
35197
|
+
* will have no additional effect on the its environment.
|
|
35198
|
+
*
|
|
35199
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
35200
|
+
*
|
|
35201
|
+
* Default: false
|
|
35202
|
+
*/
|
|
35203
|
+
idempotentHint: ZodOptional<ZodBoolean>;
|
|
35204
|
+
/**
|
|
35205
|
+
* If true, this tool may interact with an "open world" of external
|
|
35206
|
+
* entities. If false, the tool's domain of interaction is closed.
|
|
35207
|
+
* For example, the world of a web search tool is open, whereas that
|
|
35208
|
+
* of a memory tool is not.
|
|
35209
|
+
*
|
|
35210
|
+
* Default: true
|
|
35211
|
+
*/
|
|
35212
|
+
openWorldHint: ZodOptional<ZodBoolean>;
|
|
35213
|
+
}, ZodTypeAny, "passthrough">, objectInputType<{
|
|
35214
|
+
/**
|
|
35215
|
+
* A human-readable title for the tool.
|
|
35216
|
+
*/
|
|
35217
|
+
title: ZodOptional<ZodString>;
|
|
35218
|
+
/**
|
|
35219
|
+
* If true, the tool does not modify its environment.
|
|
35220
|
+
*
|
|
35221
|
+
* Default: false
|
|
35222
|
+
*/
|
|
35223
|
+
readOnlyHint: ZodOptional<ZodBoolean>;
|
|
35224
|
+
/**
|
|
35225
|
+
* If true, the tool may perform destructive updates to its environment.
|
|
35226
|
+
* If false, the tool performs only additive updates.
|
|
35227
|
+
*
|
|
35228
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
35229
|
+
*
|
|
35230
|
+
* Default: true
|
|
35231
|
+
*/
|
|
35232
|
+
destructiveHint: ZodOptional<ZodBoolean>;
|
|
35233
|
+
/**
|
|
35234
|
+
* If true, calling the tool repeatedly with the same arguments
|
|
35235
|
+
* will have no additional effect on the its environment.
|
|
35236
|
+
*
|
|
35237
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
35238
|
+
*
|
|
35239
|
+
* Default: false
|
|
35240
|
+
*/
|
|
35241
|
+
idempotentHint: ZodOptional<ZodBoolean>;
|
|
35242
|
+
/**
|
|
35243
|
+
* If true, this tool may interact with an "open world" of external
|
|
35244
|
+
* entities. If false, the tool's domain of interaction is closed.
|
|
35245
|
+
* For example, the world of a web search tool is open, whereas that
|
|
35246
|
+
* of a memory tool is not.
|
|
35247
|
+
*
|
|
35248
|
+
* Default: true
|
|
35249
|
+
*/
|
|
35250
|
+
openWorldHint: ZodOptional<ZodBoolean>;
|
|
35251
|
+
}, ZodTypeAny, "passthrough">>>;
|
|
35252
|
+
}, "passthrough", ZodTypeAny, objectOutputType<{
|
|
35253
|
+
/**
|
|
35254
|
+
* The name of the tool.
|
|
35255
|
+
*/
|
|
35256
|
+
name: ZodString;
|
|
35257
|
+
/**
|
|
35258
|
+
* A human-readable description of the tool.
|
|
35259
|
+
*/
|
|
35260
|
+
description: ZodOptional<ZodString>;
|
|
35261
|
+
/**
|
|
35262
|
+
* A JSON Schema object defining the expected parameters for the tool.
|
|
35263
|
+
*/
|
|
35264
|
+
inputSchema: ZodObject<{
|
|
35265
|
+
type: ZodLiteral<"object">;
|
|
35266
|
+
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
35267
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
35268
|
+
}, "passthrough", ZodTypeAny, objectOutputType<{
|
|
35269
|
+
type: ZodLiteral<"object">;
|
|
35270
|
+
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
35271
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
35272
|
+
}, ZodTypeAny, "passthrough">, objectInputType<{
|
|
35273
|
+
type: ZodLiteral<"object">;
|
|
35274
|
+
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
35275
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
35276
|
+
}, ZodTypeAny, "passthrough">>;
|
|
35277
|
+
/**
|
|
35278
|
+
* An optional JSON Schema object defining the structure of the tool's output returned in
|
|
35279
|
+
* the structuredContent field of a CallToolResult.
|
|
35280
|
+
*/
|
|
35281
|
+
outputSchema: ZodOptional<ZodObject<{
|
|
35282
|
+
type: ZodLiteral<"object">;
|
|
35283
|
+
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
35284
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
35285
|
+
}, "passthrough", ZodTypeAny, objectOutputType<{
|
|
35286
|
+
type: ZodLiteral<"object">;
|
|
35287
|
+
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
35288
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
35289
|
+
}, ZodTypeAny, "passthrough">, objectInputType<{
|
|
35290
|
+
type: ZodLiteral<"object">;
|
|
35291
|
+
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
35292
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
35293
|
+
}, ZodTypeAny, "passthrough">>>;
|
|
35294
|
+
/**
|
|
35295
|
+
* Optional additional tool information.
|
|
35296
|
+
*/
|
|
35297
|
+
annotations: ZodOptional<ZodObject<{
|
|
35298
|
+
/**
|
|
35299
|
+
* A human-readable title for the tool.
|
|
35300
|
+
*/
|
|
35301
|
+
title: ZodOptional<ZodString>;
|
|
35302
|
+
/**
|
|
35303
|
+
* If true, the tool does not modify its environment.
|
|
35304
|
+
*
|
|
35305
|
+
* Default: false
|
|
35306
|
+
*/
|
|
35307
|
+
readOnlyHint: ZodOptional<ZodBoolean>;
|
|
35308
|
+
/**
|
|
35309
|
+
* If true, the tool may perform destructive updates to its environment.
|
|
35310
|
+
* If false, the tool performs only additive updates.
|
|
35311
|
+
*
|
|
35312
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
35313
|
+
*
|
|
35314
|
+
* Default: true
|
|
35315
|
+
*/
|
|
35316
|
+
destructiveHint: ZodOptional<ZodBoolean>;
|
|
35317
|
+
/**
|
|
35318
|
+
* If true, calling the tool repeatedly with the same arguments
|
|
35319
|
+
* will have no additional effect on the its environment.
|
|
35320
|
+
*
|
|
35321
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
35322
|
+
*
|
|
35323
|
+
* Default: false
|
|
35324
|
+
*/
|
|
35325
|
+
idempotentHint: ZodOptional<ZodBoolean>;
|
|
35326
|
+
/**
|
|
35327
|
+
* If true, this tool may interact with an "open world" of external
|
|
35328
|
+
* entities. If false, the tool's domain of interaction is closed.
|
|
35329
|
+
* For example, the world of a web search tool is open, whereas that
|
|
35330
|
+
* of a memory tool is not.
|
|
35331
|
+
*
|
|
35332
|
+
* Default: true
|
|
35333
|
+
*/
|
|
35334
|
+
openWorldHint: ZodOptional<ZodBoolean>;
|
|
35335
|
+
}, "passthrough", ZodTypeAny, objectOutputType<{
|
|
35336
|
+
/**
|
|
35337
|
+
* A human-readable title for the tool.
|
|
35338
|
+
*/
|
|
35339
|
+
title: ZodOptional<ZodString>;
|
|
35340
|
+
/**
|
|
35341
|
+
* If true, the tool does not modify its environment.
|
|
35342
|
+
*
|
|
35343
|
+
* Default: false
|
|
35344
|
+
*/
|
|
35345
|
+
readOnlyHint: ZodOptional<ZodBoolean>;
|
|
35346
|
+
/**
|
|
35347
|
+
* If true, the tool may perform destructive updates to its environment.
|
|
35348
|
+
* If false, the tool performs only additive updates.
|
|
35349
|
+
*
|
|
35350
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
35351
|
+
*
|
|
35352
|
+
* Default: true
|
|
35353
|
+
*/
|
|
35354
|
+
destructiveHint: ZodOptional<ZodBoolean>;
|
|
35355
|
+
/**
|
|
35356
|
+
* If true, calling the tool repeatedly with the same arguments
|
|
35357
|
+
* will have no additional effect on the its environment.
|
|
35358
|
+
*
|
|
35359
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
35360
|
+
*
|
|
35361
|
+
* Default: false
|
|
35362
|
+
*/
|
|
35363
|
+
idempotentHint: ZodOptional<ZodBoolean>;
|
|
35364
|
+
/**
|
|
35365
|
+
* If true, this tool may interact with an "open world" of external
|
|
35366
|
+
* entities. If false, the tool's domain of interaction is closed.
|
|
35367
|
+
* For example, the world of a web search tool is open, whereas that
|
|
35368
|
+
* of a memory tool is not.
|
|
35369
|
+
*
|
|
35370
|
+
* Default: true
|
|
35371
|
+
*/
|
|
35372
|
+
openWorldHint: ZodOptional<ZodBoolean>;
|
|
35373
|
+
}, ZodTypeAny, "passthrough">, objectInputType<{
|
|
35374
|
+
/**
|
|
35375
|
+
* A human-readable title for the tool.
|
|
35376
|
+
*/
|
|
35377
|
+
title: ZodOptional<ZodString>;
|
|
35378
|
+
/**
|
|
35379
|
+
* If true, the tool does not modify its environment.
|
|
35380
|
+
*
|
|
35381
|
+
* Default: false
|
|
35382
|
+
*/
|
|
35383
|
+
readOnlyHint: ZodOptional<ZodBoolean>;
|
|
35384
|
+
/**
|
|
35385
|
+
* If true, the tool may perform destructive updates to its environment.
|
|
35386
|
+
* If false, the tool performs only additive updates.
|
|
35387
|
+
*
|
|
35388
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
35389
|
+
*
|
|
35390
|
+
* Default: true
|
|
35391
|
+
*/
|
|
35392
|
+
destructiveHint: ZodOptional<ZodBoolean>;
|
|
35393
|
+
/**
|
|
35394
|
+
* If true, calling the tool repeatedly with the same arguments
|
|
35395
|
+
* will have no additional effect on the its environment.
|
|
35396
|
+
*
|
|
35397
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
35398
|
+
*
|
|
35399
|
+
* Default: false
|
|
35400
|
+
*/
|
|
35401
|
+
idempotentHint: ZodOptional<ZodBoolean>;
|
|
35402
|
+
/**
|
|
35403
|
+
* If true, this tool may interact with an "open world" of external
|
|
35404
|
+
* entities. If false, the tool's domain of interaction is closed.
|
|
35405
|
+
* For example, the world of a web search tool is open, whereas that
|
|
35406
|
+
* of a memory tool is not.
|
|
35407
|
+
*
|
|
35408
|
+
* Default: true
|
|
35409
|
+
*/
|
|
35410
|
+
openWorldHint: ZodOptional<ZodBoolean>;
|
|
35411
|
+
}, ZodTypeAny, "passthrough">>>;
|
|
35412
|
+
}, ZodTypeAny, "passthrough">, objectInputType<{
|
|
35413
|
+
/**
|
|
35414
|
+
* The name of the tool.
|
|
35415
|
+
*/
|
|
35416
|
+
name: ZodString;
|
|
35417
|
+
/**
|
|
35418
|
+
* A human-readable description of the tool.
|
|
35419
|
+
*/
|
|
35420
|
+
description: ZodOptional<ZodString>;
|
|
35421
|
+
/**
|
|
35422
|
+
* A JSON Schema object defining the expected parameters for the tool.
|
|
35423
|
+
*/
|
|
35424
|
+
inputSchema: ZodObject<{
|
|
35425
|
+
type: ZodLiteral<"object">;
|
|
35426
|
+
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
35427
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
35428
|
+
}, "passthrough", ZodTypeAny, objectOutputType<{
|
|
35429
|
+
type: ZodLiteral<"object">;
|
|
35430
|
+
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
35431
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
35432
|
+
}, ZodTypeAny, "passthrough">, objectInputType<{
|
|
35433
|
+
type: ZodLiteral<"object">;
|
|
35434
|
+
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
35435
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
35436
|
+
}, ZodTypeAny, "passthrough">>;
|
|
35437
|
+
/**
|
|
35438
|
+
* An optional JSON Schema object defining the structure of the tool's output returned in
|
|
35439
|
+
* the structuredContent field of a CallToolResult.
|
|
35440
|
+
*/
|
|
35441
|
+
outputSchema: ZodOptional<ZodObject<{
|
|
35442
|
+
type: ZodLiteral<"object">;
|
|
35443
|
+
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
35444
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
35445
|
+
}, "passthrough", ZodTypeAny, objectOutputType<{
|
|
35446
|
+
type: ZodLiteral<"object">;
|
|
35447
|
+
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
35448
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
35449
|
+
}, ZodTypeAny, "passthrough">, objectInputType<{
|
|
35450
|
+
type: ZodLiteral<"object">;
|
|
35451
|
+
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
35452
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
35453
|
+
}, ZodTypeAny, "passthrough">>>;
|
|
35454
|
+
/**
|
|
35455
|
+
* Optional additional tool information.
|
|
35456
|
+
*/
|
|
35457
|
+
annotations: ZodOptional<ZodObject<{
|
|
35458
|
+
/**
|
|
35459
|
+
* A human-readable title for the tool.
|
|
35460
|
+
*/
|
|
35461
|
+
title: ZodOptional<ZodString>;
|
|
35462
|
+
/**
|
|
35463
|
+
* If true, the tool does not modify its environment.
|
|
35464
|
+
*
|
|
35465
|
+
* Default: false
|
|
35466
|
+
*/
|
|
35467
|
+
readOnlyHint: ZodOptional<ZodBoolean>;
|
|
35468
|
+
/**
|
|
35469
|
+
* If true, the tool may perform destructive updates to its environment.
|
|
35470
|
+
* If false, the tool performs only additive updates.
|
|
35471
|
+
*
|
|
35472
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
35473
|
+
*
|
|
35474
|
+
* Default: true
|
|
35475
|
+
*/
|
|
35476
|
+
destructiveHint: ZodOptional<ZodBoolean>;
|
|
35477
|
+
/**
|
|
35478
|
+
* If true, calling the tool repeatedly with the same arguments
|
|
35479
|
+
* will have no additional effect on the its environment.
|
|
35480
|
+
*
|
|
35481
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
35482
|
+
*
|
|
35483
|
+
* Default: false
|
|
35484
|
+
*/
|
|
35485
|
+
idempotentHint: ZodOptional<ZodBoolean>;
|
|
35486
|
+
/**
|
|
35487
|
+
* If true, this tool may interact with an "open world" of external
|
|
35488
|
+
* entities. If false, the tool's domain of interaction is closed.
|
|
35489
|
+
* For example, the world of a web search tool is open, whereas that
|
|
35490
|
+
* of a memory tool is not.
|
|
35491
|
+
*
|
|
35492
|
+
* Default: true
|
|
35493
|
+
*/
|
|
35494
|
+
openWorldHint: ZodOptional<ZodBoolean>;
|
|
35495
|
+
}, "passthrough", ZodTypeAny, objectOutputType<{
|
|
35496
|
+
/**
|
|
35497
|
+
* A human-readable title for the tool.
|
|
35498
|
+
*/
|
|
35499
|
+
title: ZodOptional<ZodString>;
|
|
35500
|
+
/**
|
|
35501
|
+
* If true, the tool does not modify its environment.
|
|
35502
|
+
*
|
|
35503
|
+
* Default: false
|
|
35504
|
+
*/
|
|
35505
|
+
readOnlyHint: ZodOptional<ZodBoolean>;
|
|
35506
|
+
/**
|
|
35507
|
+
* If true, the tool may perform destructive updates to its environment.
|
|
35508
|
+
* If false, the tool performs only additive updates.
|
|
35509
|
+
*
|
|
35510
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
35511
|
+
*
|
|
35512
|
+
* Default: true
|
|
35513
|
+
*/
|
|
35514
|
+
destructiveHint: ZodOptional<ZodBoolean>;
|
|
35515
|
+
/**
|
|
35516
|
+
* If true, calling the tool repeatedly with the same arguments
|
|
35517
|
+
* will have no additional effect on the its environment.
|
|
35518
|
+
*
|
|
35519
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
35520
|
+
*
|
|
35521
|
+
* Default: false
|
|
35522
|
+
*/
|
|
35523
|
+
idempotentHint: ZodOptional<ZodBoolean>;
|
|
35524
|
+
/**
|
|
35525
|
+
* If true, this tool may interact with an "open world" of external
|
|
35526
|
+
* entities. If false, the tool's domain of interaction is closed.
|
|
35527
|
+
* For example, the world of a web search tool is open, whereas that
|
|
35528
|
+
* of a memory tool is not.
|
|
35529
|
+
*
|
|
35530
|
+
* Default: true
|
|
35531
|
+
*/
|
|
35532
|
+
openWorldHint: ZodOptional<ZodBoolean>;
|
|
35533
|
+
}, ZodTypeAny, "passthrough">, objectInputType<{
|
|
35534
|
+
/**
|
|
35535
|
+
* A human-readable title for the tool.
|
|
35536
|
+
*/
|
|
35537
|
+
title: ZodOptional<ZodString>;
|
|
35538
|
+
/**
|
|
35539
|
+
* If true, the tool does not modify its environment.
|
|
35540
|
+
*
|
|
35541
|
+
* Default: false
|
|
35542
|
+
*/
|
|
35543
|
+
readOnlyHint: ZodOptional<ZodBoolean>;
|
|
35544
|
+
/**
|
|
35545
|
+
* If true, the tool may perform destructive updates to its environment.
|
|
35546
|
+
* If false, the tool performs only additive updates.
|
|
35547
|
+
*
|
|
35548
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
35549
|
+
*
|
|
35550
|
+
* Default: true
|
|
35551
|
+
*/
|
|
35552
|
+
destructiveHint: ZodOptional<ZodBoolean>;
|
|
35553
|
+
/**
|
|
35554
|
+
* If true, calling the tool repeatedly with the same arguments
|
|
35555
|
+
* will have no additional effect on the its environment.
|
|
35556
|
+
*
|
|
35557
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
35558
|
+
*
|
|
35559
|
+
* Default: false
|
|
35560
|
+
*/
|
|
35561
|
+
idempotentHint: ZodOptional<ZodBoolean>;
|
|
35562
|
+
/**
|
|
35563
|
+
* If true, this tool may interact with an "open world" of external
|
|
35564
|
+
* entities. If false, the tool's domain of interaction is closed.
|
|
35565
|
+
* For example, the world of a web search tool is open, whereas that
|
|
35566
|
+
* of a memory tool is not.
|
|
35567
|
+
*
|
|
35568
|
+
* Default: true
|
|
35569
|
+
*/
|
|
35570
|
+
openWorldHint: ZodOptional<ZodBoolean>;
|
|
35571
|
+
}, ZodTypeAny, "passthrough">>>;
|
|
35572
|
+
}, ZodTypeAny, "passthrough">>, "many">;
|
|
35573
|
+
}>, "passthrough", ZodTypeAny, objectOutputType<objectUtil.extendShape<objectUtil.extendShape<{
|
|
35574
|
+
/**
|
|
35575
|
+
* This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses.
|
|
35576
|
+
*/
|
|
35577
|
+
_meta: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
35578
|
+
}, {
|
|
35579
|
+
/**
|
|
35580
|
+
* An opaque token representing the pagination position after the last returned result.
|
|
35581
|
+
* If present, there may be more results available.
|
|
35582
|
+
*/
|
|
35583
|
+
nextCursor: ZodOptional<ZodString>;
|
|
35584
|
+
}>, {
|
|
35585
|
+
tools: ZodArray<ZodObject<{
|
|
35586
|
+
/**
|
|
35587
|
+
* The name of the tool.
|
|
35588
|
+
*/
|
|
35589
|
+
name: ZodString;
|
|
35590
|
+
/**
|
|
35591
|
+
* A human-readable description of the tool.
|
|
35592
|
+
*/
|
|
35593
|
+
description: ZodOptional<ZodString>;
|
|
35594
|
+
/**
|
|
35595
|
+
* A JSON Schema object defining the expected parameters for the tool.
|
|
35596
|
+
*/
|
|
35597
|
+
inputSchema: ZodObject<{
|
|
35598
|
+
type: ZodLiteral<"object">;
|
|
35599
|
+
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
35600
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
34661
35601
|
}, "passthrough", ZodTypeAny, objectOutputType<{
|
|
34662
35602
|
type: ZodLiteral<"object">;
|
|
34663
35603
|
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
35604
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
34664
35605
|
}, ZodTypeAny, "passthrough">, objectInputType<{
|
|
34665
35606
|
type: ZodLiteral<"object">;
|
|
34666
35607
|
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
35608
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
34667
35609
|
}, ZodTypeAny, "passthrough">>;
|
|
35610
|
+
/**
|
|
35611
|
+
* An optional JSON Schema object defining the structure of the tool's output returned in
|
|
35612
|
+
* the structuredContent field of a CallToolResult.
|
|
35613
|
+
*/
|
|
35614
|
+
outputSchema: ZodOptional<ZodObject<{
|
|
35615
|
+
type: ZodLiteral<"object">;
|
|
35616
|
+
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
35617
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
35618
|
+
}, "passthrough", ZodTypeAny, objectOutputType<{
|
|
35619
|
+
type: ZodLiteral<"object">;
|
|
35620
|
+
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
35621
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
35622
|
+
}, ZodTypeAny, "passthrough">, objectInputType<{
|
|
35623
|
+
type: ZodLiteral<"object">;
|
|
35624
|
+
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
35625
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
35626
|
+
}, ZodTypeAny, "passthrough">>>;
|
|
35627
|
+
/**
|
|
35628
|
+
* Optional additional tool information.
|
|
35629
|
+
*/
|
|
35630
|
+
annotations: ZodOptional<ZodObject<{
|
|
35631
|
+
/**
|
|
35632
|
+
* A human-readable title for the tool.
|
|
35633
|
+
*/
|
|
35634
|
+
title: ZodOptional<ZodString>;
|
|
35635
|
+
/**
|
|
35636
|
+
* If true, the tool does not modify its environment.
|
|
35637
|
+
*
|
|
35638
|
+
* Default: false
|
|
35639
|
+
*/
|
|
35640
|
+
readOnlyHint: ZodOptional<ZodBoolean>;
|
|
35641
|
+
/**
|
|
35642
|
+
* If true, the tool may perform destructive updates to its environment.
|
|
35643
|
+
* If false, the tool performs only additive updates.
|
|
35644
|
+
*
|
|
35645
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
35646
|
+
*
|
|
35647
|
+
* Default: true
|
|
35648
|
+
*/
|
|
35649
|
+
destructiveHint: ZodOptional<ZodBoolean>;
|
|
35650
|
+
/**
|
|
35651
|
+
* If true, calling the tool repeatedly with the same arguments
|
|
35652
|
+
* will have no additional effect on the its environment.
|
|
35653
|
+
*
|
|
35654
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
35655
|
+
*
|
|
35656
|
+
* Default: false
|
|
35657
|
+
*/
|
|
35658
|
+
idempotentHint: ZodOptional<ZodBoolean>;
|
|
35659
|
+
/**
|
|
35660
|
+
* If true, this tool may interact with an "open world" of external
|
|
35661
|
+
* entities. If false, the tool's domain of interaction is closed.
|
|
35662
|
+
* For example, the world of a web search tool is open, whereas that
|
|
35663
|
+
* of a memory tool is not.
|
|
35664
|
+
*
|
|
35665
|
+
* Default: true
|
|
35666
|
+
*/
|
|
35667
|
+
openWorldHint: ZodOptional<ZodBoolean>;
|
|
35668
|
+
}, "passthrough", ZodTypeAny, objectOutputType<{
|
|
35669
|
+
/**
|
|
35670
|
+
* A human-readable title for the tool.
|
|
35671
|
+
*/
|
|
35672
|
+
title: ZodOptional<ZodString>;
|
|
35673
|
+
/**
|
|
35674
|
+
* If true, the tool does not modify its environment.
|
|
35675
|
+
*
|
|
35676
|
+
* Default: false
|
|
35677
|
+
*/
|
|
35678
|
+
readOnlyHint: ZodOptional<ZodBoolean>;
|
|
35679
|
+
/**
|
|
35680
|
+
* If true, the tool may perform destructive updates to its environment.
|
|
35681
|
+
* If false, the tool performs only additive updates.
|
|
35682
|
+
*
|
|
35683
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
35684
|
+
*
|
|
35685
|
+
* Default: true
|
|
35686
|
+
*/
|
|
35687
|
+
destructiveHint: ZodOptional<ZodBoolean>;
|
|
35688
|
+
/**
|
|
35689
|
+
* If true, calling the tool repeatedly with the same arguments
|
|
35690
|
+
* will have no additional effect on the its environment.
|
|
35691
|
+
*
|
|
35692
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
35693
|
+
*
|
|
35694
|
+
* Default: false
|
|
35695
|
+
*/
|
|
35696
|
+
idempotentHint: ZodOptional<ZodBoolean>;
|
|
35697
|
+
/**
|
|
35698
|
+
* If true, this tool may interact with an "open world" of external
|
|
35699
|
+
* entities. If false, the tool's domain of interaction is closed.
|
|
35700
|
+
* For example, the world of a web search tool is open, whereas that
|
|
35701
|
+
* of a memory tool is not.
|
|
35702
|
+
*
|
|
35703
|
+
* Default: true
|
|
35704
|
+
*/
|
|
35705
|
+
openWorldHint: ZodOptional<ZodBoolean>;
|
|
35706
|
+
}, ZodTypeAny, "passthrough">, objectInputType<{
|
|
35707
|
+
/**
|
|
35708
|
+
* A human-readable title for the tool.
|
|
35709
|
+
*/
|
|
35710
|
+
title: ZodOptional<ZodString>;
|
|
35711
|
+
/**
|
|
35712
|
+
* If true, the tool does not modify its environment.
|
|
35713
|
+
*
|
|
35714
|
+
* Default: false
|
|
35715
|
+
*/
|
|
35716
|
+
readOnlyHint: ZodOptional<ZodBoolean>;
|
|
35717
|
+
/**
|
|
35718
|
+
* If true, the tool may perform destructive updates to its environment.
|
|
35719
|
+
* If false, the tool performs only additive updates.
|
|
35720
|
+
*
|
|
35721
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
35722
|
+
*
|
|
35723
|
+
* Default: true
|
|
35724
|
+
*/
|
|
35725
|
+
destructiveHint: ZodOptional<ZodBoolean>;
|
|
35726
|
+
/**
|
|
35727
|
+
* If true, calling the tool repeatedly with the same arguments
|
|
35728
|
+
* will have no additional effect on the its environment.
|
|
35729
|
+
*
|
|
35730
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
35731
|
+
*
|
|
35732
|
+
* Default: false
|
|
35733
|
+
*/
|
|
35734
|
+
idempotentHint: ZodOptional<ZodBoolean>;
|
|
35735
|
+
/**
|
|
35736
|
+
* If true, this tool may interact with an "open world" of external
|
|
35737
|
+
* entities. If false, the tool's domain of interaction is closed.
|
|
35738
|
+
* For example, the world of a web search tool is open, whereas that
|
|
35739
|
+
* of a memory tool is not.
|
|
35740
|
+
*
|
|
35741
|
+
* Default: true
|
|
35742
|
+
*/
|
|
35743
|
+
openWorldHint: ZodOptional<ZodBoolean>;
|
|
35744
|
+
}, ZodTypeAny, "passthrough">>>;
|
|
34668
35745
|
}, "passthrough", ZodTypeAny, objectOutputType<{
|
|
34669
35746
|
/**
|
|
34670
35747
|
* The name of the tool.
|
|
@@ -34680,70 +35757,484 @@ declare const ServerResultSchema: ZodUnion<[ZodObject<{
|
|
|
34680
35757
|
inputSchema: ZodObject<{
|
|
34681
35758
|
type: ZodLiteral<"object">;
|
|
34682
35759
|
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
35760
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
35761
|
+
}, "passthrough", ZodTypeAny, objectOutputType<{
|
|
35762
|
+
type: ZodLiteral<"object">;
|
|
35763
|
+
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
35764
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
35765
|
+
}, ZodTypeAny, "passthrough">, objectInputType<{
|
|
35766
|
+
type: ZodLiteral<"object">;
|
|
35767
|
+
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
35768
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
35769
|
+
}, ZodTypeAny, "passthrough">>;
|
|
35770
|
+
/**
|
|
35771
|
+
* An optional JSON Schema object defining the structure of the tool's output returned in
|
|
35772
|
+
* the structuredContent field of a CallToolResult.
|
|
35773
|
+
*/
|
|
35774
|
+
outputSchema: ZodOptional<ZodObject<{
|
|
35775
|
+
type: ZodLiteral<"object">;
|
|
35776
|
+
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
35777
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
35778
|
+
}, "passthrough", ZodTypeAny, objectOutputType<{
|
|
35779
|
+
type: ZodLiteral<"object">;
|
|
35780
|
+
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
35781
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
35782
|
+
}, ZodTypeAny, "passthrough">, objectInputType<{
|
|
35783
|
+
type: ZodLiteral<"object">;
|
|
35784
|
+
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
35785
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
35786
|
+
}, ZodTypeAny, "passthrough">>>;
|
|
35787
|
+
/**
|
|
35788
|
+
* Optional additional tool information.
|
|
35789
|
+
*/
|
|
35790
|
+
annotations: ZodOptional<ZodObject<{
|
|
35791
|
+
/**
|
|
35792
|
+
* A human-readable title for the tool.
|
|
35793
|
+
*/
|
|
35794
|
+
title: ZodOptional<ZodString>;
|
|
35795
|
+
/**
|
|
35796
|
+
* If true, the tool does not modify its environment.
|
|
35797
|
+
*
|
|
35798
|
+
* Default: false
|
|
35799
|
+
*/
|
|
35800
|
+
readOnlyHint: ZodOptional<ZodBoolean>;
|
|
35801
|
+
/**
|
|
35802
|
+
* If true, the tool may perform destructive updates to its environment.
|
|
35803
|
+
* If false, the tool performs only additive updates.
|
|
35804
|
+
*
|
|
35805
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
35806
|
+
*
|
|
35807
|
+
* Default: true
|
|
35808
|
+
*/
|
|
35809
|
+
destructiveHint: ZodOptional<ZodBoolean>;
|
|
35810
|
+
/**
|
|
35811
|
+
* If true, calling the tool repeatedly with the same arguments
|
|
35812
|
+
* will have no additional effect on the its environment.
|
|
35813
|
+
*
|
|
35814
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
35815
|
+
*
|
|
35816
|
+
* Default: false
|
|
35817
|
+
*/
|
|
35818
|
+
idempotentHint: ZodOptional<ZodBoolean>;
|
|
35819
|
+
/**
|
|
35820
|
+
* If true, this tool may interact with an "open world" of external
|
|
35821
|
+
* entities. If false, the tool's domain of interaction is closed.
|
|
35822
|
+
* For example, the world of a web search tool is open, whereas that
|
|
35823
|
+
* of a memory tool is not.
|
|
35824
|
+
*
|
|
35825
|
+
* Default: true
|
|
35826
|
+
*/
|
|
35827
|
+
openWorldHint: ZodOptional<ZodBoolean>;
|
|
35828
|
+
}, "passthrough", ZodTypeAny, objectOutputType<{
|
|
35829
|
+
/**
|
|
35830
|
+
* A human-readable title for the tool.
|
|
35831
|
+
*/
|
|
35832
|
+
title: ZodOptional<ZodString>;
|
|
35833
|
+
/**
|
|
35834
|
+
* If true, the tool does not modify its environment.
|
|
35835
|
+
*
|
|
35836
|
+
* Default: false
|
|
35837
|
+
*/
|
|
35838
|
+
readOnlyHint: ZodOptional<ZodBoolean>;
|
|
35839
|
+
/**
|
|
35840
|
+
* If true, the tool may perform destructive updates to its environment.
|
|
35841
|
+
* If false, the tool performs only additive updates.
|
|
35842
|
+
*
|
|
35843
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
35844
|
+
*
|
|
35845
|
+
* Default: true
|
|
35846
|
+
*/
|
|
35847
|
+
destructiveHint: ZodOptional<ZodBoolean>;
|
|
35848
|
+
/**
|
|
35849
|
+
* If true, calling the tool repeatedly with the same arguments
|
|
35850
|
+
* will have no additional effect on the its environment.
|
|
35851
|
+
*
|
|
35852
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
35853
|
+
*
|
|
35854
|
+
* Default: false
|
|
35855
|
+
*/
|
|
35856
|
+
idempotentHint: ZodOptional<ZodBoolean>;
|
|
35857
|
+
/**
|
|
35858
|
+
* If true, this tool may interact with an "open world" of external
|
|
35859
|
+
* entities. If false, the tool's domain of interaction is closed.
|
|
35860
|
+
* For example, the world of a web search tool is open, whereas that
|
|
35861
|
+
* of a memory tool is not.
|
|
35862
|
+
*
|
|
35863
|
+
* Default: true
|
|
35864
|
+
*/
|
|
35865
|
+
openWorldHint: ZodOptional<ZodBoolean>;
|
|
35866
|
+
}, ZodTypeAny, "passthrough">, objectInputType<{
|
|
35867
|
+
/**
|
|
35868
|
+
* A human-readable title for the tool.
|
|
35869
|
+
*/
|
|
35870
|
+
title: ZodOptional<ZodString>;
|
|
35871
|
+
/**
|
|
35872
|
+
* If true, the tool does not modify its environment.
|
|
35873
|
+
*
|
|
35874
|
+
* Default: false
|
|
35875
|
+
*/
|
|
35876
|
+
readOnlyHint: ZodOptional<ZodBoolean>;
|
|
35877
|
+
/**
|
|
35878
|
+
* If true, the tool may perform destructive updates to its environment.
|
|
35879
|
+
* If false, the tool performs only additive updates.
|
|
35880
|
+
*
|
|
35881
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
35882
|
+
*
|
|
35883
|
+
* Default: true
|
|
35884
|
+
*/
|
|
35885
|
+
destructiveHint: ZodOptional<ZodBoolean>;
|
|
35886
|
+
/**
|
|
35887
|
+
* If true, calling the tool repeatedly with the same arguments
|
|
35888
|
+
* will have no additional effect on the its environment.
|
|
35889
|
+
*
|
|
35890
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
35891
|
+
*
|
|
35892
|
+
* Default: false
|
|
35893
|
+
*/
|
|
35894
|
+
idempotentHint: ZodOptional<ZodBoolean>;
|
|
35895
|
+
/**
|
|
35896
|
+
* If true, this tool may interact with an "open world" of external
|
|
35897
|
+
* entities. If false, the tool's domain of interaction is closed.
|
|
35898
|
+
* For example, the world of a web search tool is open, whereas that
|
|
35899
|
+
* of a memory tool is not.
|
|
35900
|
+
*
|
|
35901
|
+
* Default: true
|
|
35902
|
+
*/
|
|
35903
|
+
openWorldHint: ZodOptional<ZodBoolean>;
|
|
35904
|
+
}, ZodTypeAny, "passthrough">>>;
|
|
35905
|
+
}, ZodTypeAny, "passthrough">, objectInputType<{
|
|
35906
|
+
/**
|
|
35907
|
+
* The name of the tool.
|
|
35908
|
+
*/
|
|
35909
|
+
name: ZodString;
|
|
35910
|
+
/**
|
|
35911
|
+
* A human-readable description of the tool.
|
|
35912
|
+
*/
|
|
35913
|
+
description: ZodOptional<ZodString>;
|
|
35914
|
+
/**
|
|
35915
|
+
* A JSON Schema object defining the expected parameters for the tool.
|
|
35916
|
+
*/
|
|
35917
|
+
inputSchema: ZodObject<{
|
|
35918
|
+
type: ZodLiteral<"object">;
|
|
35919
|
+
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
35920
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
35921
|
+
}, "passthrough", ZodTypeAny, objectOutputType<{
|
|
35922
|
+
type: ZodLiteral<"object">;
|
|
35923
|
+
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
35924
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
35925
|
+
}, ZodTypeAny, "passthrough">, objectInputType<{
|
|
35926
|
+
type: ZodLiteral<"object">;
|
|
35927
|
+
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
35928
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
35929
|
+
}, ZodTypeAny, "passthrough">>;
|
|
35930
|
+
/**
|
|
35931
|
+
* An optional JSON Schema object defining the structure of the tool's output returned in
|
|
35932
|
+
* the structuredContent field of a CallToolResult.
|
|
35933
|
+
*/
|
|
35934
|
+
outputSchema: ZodOptional<ZodObject<{
|
|
35935
|
+
type: ZodLiteral<"object">;
|
|
35936
|
+
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
35937
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
35938
|
+
}, "passthrough", ZodTypeAny, objectOutputType<{
|
|
35939
|
+
type: ZodLiteral<"object">;
|
|
35940
|
+
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
35941
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
35942
|
+
}, ZodTypeAny, "passthrough">, objectInputType<{
|
|
35943
|
+
type: ZodLiteral<"object">;
|
|
35944
|
+
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
35945
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
35946
|
+
}, ZodTypeAny, "passthrough">>>;
|
|
35947
|
+
/**
|
|
35948
|
+
* Optional additional tool information.
|
|
35949
|
+
*/
|
|
35950
|
+
annotations: ZodOptional<ZodObject<{
|
|
35951
|
+
/**
|
|
35952
|
+
* A human-readable title for the tool.
|
|
35953
|
+
*/
|
|
35954
|
+
title: ZodOptional<ZodString>;
|
|
35955
|
+
/**
|
|
35956
|
+
* If true, the tool does not modify its environment.
|
|
35957
|
+
*
|
|
35958
|
+
* Default: false
|
|
35959
|
+
*/
|
|
35960
|
+
readOnlyHint: ZodOptional<ZodBoolean>;
|
|
35961
|
+
/**
|
|
35962
|
+
* If true, the tool may perform destructive updates to its environment.
|
|
35963
|
+
* If false, the tool performs only additive updates.
|
|
35964
|
+
*
|
|
35965
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
35966
|
+
*
|
|
35967
|
+
* Default: true
|
|
35968
|
+
*/
|
|
35969
|
+
destructiveHint: ZodOptional<ZodBoolean>;
|
|
35970
|
+
/**
|
|
35971
|
+
* If true, calling the tool repeatedly with the same arguments
|
|
35972
|
+
* will have no additional effect on the its environment.
|
|
35973
|
+
*
|
|
35974
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
35975
|
+
*
|
|
35976
|
+
* Default: false
|
|
35977
|
+
*/
|
|
35978
|
+
idempotentHint: ZodOptional<ZodBoolean>;
|
|
35979
|
+
/**
|
|
35980
|
+
* If true, this tool may interact with an "open world" of external
|
|
35981
|
+
* entities. If false, the tool's domain of interaction is closed.
|
|
35982
|
+
* For example, the world of a web search tool is open, whereas that
|
|
35983
|
+
* of a memory tool is not.
|
|
35984
|
+
*
|
|
35985
|
+
* Default: true
|
|
35986
|
+
*/
|
|
35987
|
+
openWorldHint: ZodOptional<ZodBoolean>;
|
|
35988
|
+
}, "passthrough", ZodTypeAny, objectOutputType<{
|
|
35989
|
+
/**
|
|
35990
|
+
* A human-readable title for the tool.
|
|
35991
|
+
*/
|
|
35992
|
+
title: ZodOptional<ZodString>;
|
|
35993
|
+
/**
|
|
35994
|
+
* If true, the tool does not modify its environment.
|
|
35995
|
+
*
|
|
35996
|
+
* Default: false
|
|
35997
|
+
*/
|
|
35998
|
+
readOnlyHint: ZodOptional<ZodBoolean>;
|
|
35999
|
+
/**
|
|
36000
|
+
* If true, the tool may perform destructive updates to its environment.
|
|
36001
|
+
* If false, the tool performs only additive updates.
|
|
36002
|
+
*
|
|
36003
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
36004
|
+
*
|
|
36005
|
+
* Default: true
|
|
36006
|
+
*/
|
|
36007
|
+
destructiveHint: ZodOptional<ZodBoolean>;
|
|
36008
|
+
/**
|
|
36009
|
+
* If true, calling the tool repeatedly with the same arguments
|
|
36010
|
+
* will have no additional effect on the its environment.
|
|
36011
|
+
*
|
|
36012
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
36013
|
+
*
|
|
36014
|
+
* Default: false
|
|
36015
|
+
*/
|
|
36016
|
+
idempotentHint: ZodOptional<ZodBoolean>;
|
|
36017
|
+
/**
|
|
36018
|
+
* If true, this tool may interact with an "open world" of external
|
|
36019
|
+
* entities. If false, the tool's domain of interaction is closed.
|
|
36020
|
+
* For example, the world of a web search tool is open, whereas that
|
|
36021
|
+
* of a memory tool is not.
|
|
36022
|
+
*
|
|
36023
|
+
* Default: true
|
|
36024
|
+
*/
|
|
36025
|
+
openWorldHint: ZodOptional<ZodBoolean>;
|
|
36026
|
+
}, ZodTypeAny, "passthrough">, objectInputType<{
|
|
36027
|
+
/**
|
|
36028
|
+
* A human-readable title for the tool.
|
|
36029
|
+
*/
|
|
36030
|
+
title: ZodOptional<ZodString>;
|
|
36031
|
+
/**
|
|
36032
|
+
* If true, the tool does not modify its environment.
|
|
36033
|
+
*
|
|
36034
|
+
* Default: false
|
|
36035
|
+
*/
|
|
36036
|
+
readOnlyHint: ZodOptional<ZodBoolean>;
|
|
36037
|
+
/**
|
|
36038
|
+
* If true, the tool may perform destructive updates to its environment.
|
|
36039
|
+
* If false, the tool performs only additive updates.
|
|
36040
|
+
*
|
|
36041
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
36042
|
+
*
|
|
36043
|
+
* Default: true
|
|
36044
|
+
*/
|
|
36045
|
+
destructiveHint: ZodOptional<ZodBoolean>;
|
|
36046
|
+
/**
|
|
36047
|
+
* If true, calling the tool repeatedly with the same arguments
|
|
36048
|
+
* will have no additional effect on the its environment.
|
|
36049
|
+
*
|
|
36050
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
36051
|
+
*
|
|
36052
|
+
* Default: false
|
|
36053
|
+
*/
|
|
36054
|
+
idempotentHint: ZodOptional<ZodBoolean>;
|
|
36055
|
+
/**
|
|
36056
|
+
* If true, this tool may interact with an "open world" of external
|
|
36057
|
+
* entities. If false, the tool's domain of interaction is closed.
|
|
36058
|
+
* For example, the world of a web search tool is open, whereas that
|
|
36059
|
+
* of a memory tool is not.
|
|
36060
|
+
*
|
|
36061
|
+
* Default: true
|
|
36062
|
+
*/
|
|
36063
|
+
openWorldHint: ZodOptional<ZodBoolean>;
|
|
36064
|
+
}, ZodTypeAny, "passthrough">>>;
|
|
36065
|
+
}, ZodTypeAny, "passthrough">>, "many">;
|
|
36066
|
+
}>, ZodTypeAny, "passthrough">, objectInputType<objectUtil.extendShape<objectUtil.extendShape<{
|
|
36067
|
+
/**
|
|
36068
|
+
* This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses.
|
|
36069
|
+
*/
|
|
36070
|
+
_meta: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
36071
|
+
}, {
|
|
36072
|
+
/**
|
|
36073
|
+
* An opaque token representing the pagination position after the last returned result.
|
|
36074
|
+
* If present, there may be more results available.
|
|
36075
|
+
*/
|
|
36076
|
+
nextCursor: ZodOptional<ZodString>;
|
|
36077
|
+
}>, {
|
|
36078
|
+
tools: ZodArray<ZodObject<{
|
|
36079
|
+
/**
|
|
36080
|
+
* The name of the tool.
|
|
36081
|
+
*/
|
|
36082
|
+
name: ZodString;
|
|
36083
|
+
/**
|
|
36084
|
+
* A human-readable description of the tool.
|
|
36085
|
+
*/
|
|
36086
|
+
description: ZodOptional<ZodString>;
|
|
36087
|
+
/**
|
|
36088
|
+
* A JSON Schema object defining the expected parameters for the tool.
|
|
36089
|
+
*/
|
|
36090
|
+
inputSchema: ZodObject<{
|
|
36091
|
+
type: ZodLiteral<"object">;
|
|
36092
|
+
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
36093
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
34683
36094
|
}, "passthrough", ZodTypeAny, objectOutputType<{
|
|
34684
36095
|
type: ZodLiteral<"object">;
|
|
34685
36096
|
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
36097
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
34686
36098
|
}, ZodTypeAny, "passthrough">, objectInputType<{
|
|
34687
36099
|
type: ZodLiteral<"object">;
|
|
34688
36100
|
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
36101
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
34689
36102
|
}, ZodTypeAny, "passthrough">>;
|
|
34690
|
-
}, ZodTypeAny, "passthrough">, objectInputType<{
|
|
34691
36103
|
/**
|
|
34692
|
-
*
|
|
36104
|
+
* An optional JSON Schema object defining the structure of the tool's output returned in
|
|
36105
|
+
* the structuredContent field of a CallToolResult.
|
|
34693
36106
|
*/
|
|
34694
|
-
|
|
34695
|
-
/**
|
|
34696
|
-
* A human-readable description of the tool.
|
|
34697
|
-
*/
|
|
34698
|
-
description: ZodOptional<ZodString>;
|
|
34699
|
-
/**
|
|
34700
|
-
* A JSON Schema object defining the expected parameters for the tool.
|
|
34701
|
-
*/
|
|
34702
|
-
inputSchema: ZodObject<{
|
|
36107
|
+
outputSchema: ZodOptional<ZodObject<{
|
|
34703
36108
|
type: ZodLiteral<"object">;
|
|
34704
36109
|
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
36110
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
34705
36111
|
}, "passthrough", ZodTypeAny, objectOutputType<{
|
|
34706
36112
|
type: ZodLiteral<"object">;
|
|
34707
36113
|
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
36114
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
34708
36115
|
}, ZodTypeAny, "passthrough">, objectInputType<{
|
|
34709
36116
|
type: ZodLiteral<"object">;
|
|
34710
36117
|
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
34711
|
-
|
|
34712
|
-
|
|
34713
|
-
}>, "passthrough", ZodTypeAny, objectOutputType<objectUtil.extendShape<objectUtil.extendShape<{
|
|
34714
|
-
/**
|
|
34715
|
-
* This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses.
|
|
34716
|
-
*/
|
|
34717
|
-
_meta: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
34718
|
-
}, {
|
|
34719
|
-
/**
|
|
34720
|
-
* An opaque token representing the pagination position after the last returned result.
|
|
34721
|
-
* If present, there may be more results available.
|
|
34722
|
-
*/
|
|
34723
|
-
nextCursor: ZodOptional<ZodString>;
|
|
34724
|
-
}>, {
|
|
34725
|
-
tools: ZodArray<ZodObject<{
|
|
34726
|
-
/**
|
|
34727
|
-
* The name of the tool.
|
|
34728
|
-
*/
|
|
34729
|
-
name: ZodString;
|
|
34730
|
-
/**
|
|
34731
|
-
* A human-readable description of the tool.
|
|
34732
|
-
*/
|
|
34733
|
-
description: ZodOptional<ZodString>;
|
|
36118
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
36119
|
+
}, ZodTypeAny, "passthrough">>>;
|
|
34734
36120
|
/**
|
|
34735
|
-
*
|
|
36121
|
+
* Optional additional tool information.
|
|
34736
36122
|
*/
|
|
34737
|
-
|
|
34738
|
-
|
|
34739
|
-
|
|
36123
|
+
annotations: ZodOptional<ZodObject<{
|
|
36124
|
+
/**
|
|
36125
|
+
* A human-readable title for the tool.
|
|
36126
|
+
*/
|
|
36127
|
+
title: ZodOptional<ZodString>;
|
|
36128
|
+
/**
|
|
36129
|
+
* If true, the tool does not modify its environment.
|
|
36130
|
+
*
|
|
36131
|
+
* Default: false
|
|
36132
|
+
*/
|
|
36133
|
+
readOnlyHint: ZodOptional<ZodBoolean>;
|
|
36134
|
+
/**
|
|
36135
|
+
* If true, the tool may perform destructive updates to its environment.
|
|
36136
|
+
* If false, the tool performs only additive updates.
|
|
36137
|
+
*
|
|
36138
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
36139
|
+
*
|
|
36140
|
+
* Default: true
|
|
36141
|
+
*/
|
|
36142
|
+
destructiveHint: ZodOptional<ZodBoolean>;
|
|
36143
|
+
/**
|
|
36144
|
+
* If true, calling the tool repeatedly with the same arguments
|
|
36145
|
+
* will have no additional effect on the its environment.
|
|
36146
|
+
*
|
|
36147
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
36148
|
+
*
|
|
36149
|
+
* Default: false
|
|
36150
|
+
*/
|
|
36151
|
+
idempotentHint: ZodOptional<ZodBoolean>;
|
|
36152
|
+
/**
|
|
36153
|
+
* If true, this tool may interact with an "open world" of external
|
|
36154
|
+
* entities. If false, the tool's domain of interaction is closed.
|
|
36155
|
+
* For example, the world of a web search tool is open, whereas that
|
|
36156
|
+
* of a memory tool is not.
|
|
36157
|
+
*
|
|
36158
|
+
* Default: true
|
|
36159
|
+
*/
|
|
36160
|
+
openWorldHint: ZodOptional<ZodBoolean>;
|
|
34740
36161
|
}, "passthrough", ZodTypeAny, objectOutputType<{
|
|
34741
|
-
|
|
34742
|
-
|
|
36162
|
+
/**
|
|
36163
|
+
* A human-readable title for the tool.
|
|
36164
|
+
*/
|
|
36165
|
+
title: ZodOptional<ZodString>;
|
|
36166
|
+
/**
|
|
36167
|
+
* If true, the tool does not modify its environment.
|
|
36168
|
+
*
|
|
36169
|
+
* Default: false
|
|
36170
|
+
*/
|
|
36171
|
+
readOnlyHint: ZodOptional<ZodBoolean>;
|
|
36172
|
+
/**
|
|
36173
|
+
* If true, the tool may perform destructive updates to its environment.
|
|
36174
|
+
* If false, the tool performs only additive updates.
|
|
36175
|
+
*
|
|
36176
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
36177
|
+
*
|
|
36178
|
+
* Default: true
|
|
36179
|
+
*/
|
|
36180
|
+
destructiveHint: ZodOptional<ZodBoolean>;
|
|
36181
|
+
/**
|
|
36182
|
+
* If true, calling the tool repeatedly with the same arguments
|
|
36183
|
+
* will have no additional effect on the its environment.
|
|
36184
|
+
*
|
|
36185
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
36186
|
+
*
|
|
36187
|
+
* Default: false
|
|
36188
|
+
*/
|
|
36189
|
+
idempotentHint: ZodOptional<ZodBoolean>;
|
|
36190
|
+
/**
|
|
36191
|
+
* If true, this tool may interact with an "open world" of external
|
|
36192
|
+
* entities. If false, the tool's domain of interaction is closed.
|
|
36193
|
+
* For example, the world of a web search tool is open, whereas that
|
|
36194
|
+
* of a memory tool is not.
|
|
36195
|
+
*
|
|
36196
|
+
* Default: true
|
|
36197
|
+
*/
|
|
36198
|
+
openWorldHint: ZodOptional<ZodBoolean>;
|
|
34743
36199
|
}, ZodTypeAny, "passthrough">, objectInputType<{
|
|
34744
|
-
|
|
34745
|
-
|
|
34746
|
-
|
|
36200
|
+
/**
|
|
36201
|
+
* A human-readable title for the tool.
|
|
36202
|
+
*/
|
|
36203
|
+
title: ZodOptional<ZodString>;
|
|
36204
|
+
/**
|
|
36205
|
+
* If true, the tool does not modify its environment.
|
|
36206
|
+
*
|
|
36207
|
+
* Default: false
|
|
36208
|
+
*/
|
|
36209
|
+
readOnlyHint: ZodOptional<ZodBoolean>;
|
|
36210
|
+
/**
|
|
36211
|
+
* If true, the tool may perform destructive updates to its environment.
|
|
36212
|
+
* If false, the tool performs only additive updates.
|
|
36213
|
+
*
|
|
36214
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
36215
|
+
*
|
|
36216
|
+
* Default: true
|
|
36217
|
+
*/
|
|
36218
|
+
destructiveHint: ZodOptional<ZodBoolean>;
|
|
36219
|
+
/**
|
|
36220
|
+
* If true, calling the tool repeatedly with the same arguments
|
|
36221
|
+
* will have no additional effect on the its environment.
|
|
36222
|
+
*
|
|
36223
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
36224
|
+
*
|
|
36225
|
+
* Default: false
|
|
36226
|
+
*/
|
|
36227
|
+
idempotentHint: ZodOptional<ZodBoolean>;
|
|
36228
|
+
/**
|
|
36229
|
+
* If true, this tool may interact with an "open world" of external
|
|
36230
|
+
* entities. If false, the tool's domain of interaction is closed.
|
|
36231
|
+
* For example, the world of a web search tool is open, whereas that
|
|
36232
|
+
* of a memory tool is not.
|
|
36233
|
+
*
|
|
36234
|
+
* Default: true
|
|
36235
|
+
*/
|
|
36236
|
+
openWorldHint: ZodOptional<ZodBoolean>;
|
|
36237
|
+
}, ZodTypeAny, "passthrough">>>;
|
|
34747
36238
|
}, "passthrough", ZodTypeAny, objectOutputType<{
|
|
34748
36239
|
/**
|
|
34749
36240
|
* The name of the tool.
|
|
@@ -34759,71 +36250,152 @@ declare const ServerResultSchema: ZodUnion<[ZodObject<{
|
|
|
34759
36250
|
inputSchema: ZodObject<{
|
|
34760
36251
|
type: ZodLiteral<"object">;
|
|
34761
36252
|
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
36253
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
34762
36254
|
}, "passthrough", ZodTypeAny, objectOutputType<{
|
|
34763
36255
|
type: ZodLiteral<"object">;
|
|
34764
36256
|
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
36257
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
34765
36258
|
}, ZodTypeAny, "passthrough">, objectInputType<{
|
|
34766
36259
|
type: ZodLiteral<"object">;
|
|
34767
36260
|
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
36261
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
34768
36262
|
}, ZodTypeAny, "passthrough">>;
|
|
34769
|
-
}, ZodTypeAny, "passthrough">, objectInputType<{
|
|
34770
|
-
/**
|
|
34771
|
-
* The name of the tool.
|
|
34772
|
-
*/
|
|
34773
|
-
name: ZodString;
|
|
34774
36263
|
/**
|
|
34775
|
-
*
|
|
36264
|
+
* An optional JSON Schema object defining the structure of the tool's output returned in
|
|
36265
|
+
* the structuredContent field of a CallToolResult.
|
|
34776
36266
|
*/
|
|
34777
|
-
|
|
34778
|
-
/**
|
|
34779
|
-
* A JSON Schema object defining the expected parameters for the tool.
|
|
34780
|
-
*/
|
|
34781
|
-
inputSchema: ZodObject<{
|
|
36267
|
+
outputSchema: ZodOptional<ZodObject<{
|
|
34782
36268
|
type: ZodLiteral<"object">;
|
|
34783
36269
|
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
36270
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
34784
36271
|
}, "passthrough", ZodTypeAny, objectOutputType<{
|
|
34785
36272
|
type: ZodLiteral<"object">;
|
|
34786
36273
|
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
36274
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
34787
36275
|
}, ZodTypeAny, "passthrough">, objectInputType<{
|
|
34788
36276
|
type: ZodLiteral<"object">;
|
|
34789
36277
|
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
34790
|
-
|
|
34791
|
-
|
|
34792
|
-
}>, ZodTypeAny, "passthrough">, objectInputType<objectUtil.extendShape<objectUtil.extendShape<{
|
|
34793
|
-
/**
|
|
34794
|
-
* This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses.
|
|
34795
|
-
*/
|
|
34796
|
-
_meta: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
34797
|
-
}, {
|
|
34798
|
-
/**
|
|
34799
|
-
* An opaque token representing the pagination position after the last returned result.
|
|
34800
|
-
* If present, there may be more results available.
|
|
34801
|
-
*/
|
|
34802
|
-
nextCursor: ZodOptional<ZodString>;
|
|
34803
|
-
}>, {
|
|
34804
|
-
tools: ZodArray<ZodObject<{
|
|
34805
|
-
/**
|
|
34806
|
-
* The name of the tool.
|
|
34807
|
-
*/
|
|
34808
|
-
name: ZodString;
|
|
34809
|
-
/**
|
|
34810
|
-
* A human-readable description of the tool.
|
|
34811
|
-
*/
|
|
34812
|
-
description: ZodOptional<ZodString>;
|
|
36278
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
36279
|
+
}, ZodTypeAny, "passthrough">>>;
|
|
34813
36280
|
/**
|
|
34814
|
-
*
|
|
36281
|
+
* Optional additional tool information.
|
|
34815
36282
|
*/
|
|
34816
|
-
|
|
34817
|
-
|
|
34818
|
-
|
|
36283
|
+
annotations: ZodOptional<ZodObject<{
|
|
36284
|
+
/**
|
|
36285
|
+
* A human-readable title for the tool.
|
|
36286
|
+
*/
|
|
36287
|
+
title: ZodOptional<ZodString>;
|
|
36288
|
+
/**
|
|
36289
|
+
* If true, the tool does not modify its environment.
|
|
36290
|
+
*
|
|
36291
|
+
* Default: false
|
|
36292
|
+
*/
|
|
36293
|
+
readOnlyHint: ZodOptional<ZodBoolean>;
|
|
36294
|
+
/**
|
|
36295
|
+
* If true, the tool may perform destructive updates to its environment.
|
|
36296
|
+
* If false, the tool performs only additive updates.
|
|
36297
|
+
*
|
|
36298
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
36299
|
+
*
|
|
36300
|
+
* Default: true
|
|
36301
|
+
*/
|
|
36302
|
+
destructiveHint: ZodOptional<ZodBoolean>;
|
|
36303
|
+
/**
|
|
36304
|
+
* If true, calling the tool repeatedly with the same arguments
|
|
36305
|
+
* will have no additional effect on the its environment.
|
|
36306
|
+
*
|
|
36307
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
36308
|
+
*
|
|
36309
|
+
* Default: false
|
|
36310
|
+
*/
|
|
36311
|
+
idempotentHint: ZodOptional<ZodBoolean>;
|
|
36312
|
+
/**
|
|
36313
|
+
* If true, this tool may interact with an "open world" of external
|
|
36314
|
+
* entities. If false, the tool's domain of interaction is closed.
|
|
36315
|
+
* For example, the world of a web search tool is open, whereas that
|
|
36316
|
+
* of a memory tool is not.
|
|
36317
|
+
*
|
|
36318
|
+
* Default: true
|
|
36319
|
+
*/
|
|
36320
|
+
openWorldHint: ZodOptional<ZodBoolean>;
|
|
34819
36321
|
}, "passthrough", ZodTypeAny, objectOutputType<{
|
|
34820
|
-
|
|
34821
|
-
|
|
36322
|
+
/**
|
|
36323
|
+
* A human-readable title for the tool.
|
|
36324
|
+
*/
|
|
36325
|
+
title: ZodOptional<ZodString>;
|
|
36326
|
+
/**
|
|
36327
|
+
* If true, the tool does not modify its environment.
|
|
36328
|
+
*
|
|
36329
|
+
* Default: false
|
|
36330
|
+
*/
|
|
36331
|
+
readOnlyHint: ZodOptional<ZodBoolean>;
|
|
36332
|
+
/**
|
|
36333
|
+
* If true, the tool may perform destructive updates to its environment.
|
|
36334
|
+
* If false, the tool performs only additive updates.
|
|
36335
|
+
*
|
|
36336
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
36337
|
+
*
|
|
36338
|
+
* Default: true
|
|
36339
|
+
*/
|
|
36340
|
+
destructiveHint: ZodOptional<ZodBoolean>;
|
|
36341
|
+
/**
|
|
36342
|
+
* If true, calling the tool repeatedly with the same arguments
|
|
36343
|
+
* will have no additional effect on the its environment.
|
|
36344
|
+
*
|
|
36345
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
36346
|
+
*
|
|
36347
|
+
* Default: false
|
|
36348
|
+
*/
|
|
36349
|
+
idempotentHint: ZodOptional<ZodBoolean>;
|
|
36350
|
+
/**
|
|
36351
|
+
* If true, this tool may interact with an "open world" of external
|
|
36352
|
+
* entities. If false, the tool's domain of interaction is closed.
|
|
36353
|
+
* For example, the world of a web search tool is open, whereas that
|
|
36354
|
+
* of a memory tool is not.
|
|
36355
|
+
*
|
|
36356
|
+
* Default: true
|
|
36357
|
+
*/
|
|
36358
|
+
openWorldHint: ZodOptional<ZodBoolean>;
|
|
34822
36359
|
}, ZodTypeAny, "passthrough">, objectInputType<{
|
|
34823
|
-
|
|
34824
|
-
|
|
34825
|
-
|
|
34826
|
-
|
|
36360
|
+
/**
|
|
36361
|
+
* A human-readable title for the tool.
|
|
36362
|
+
*/
|
|
36363
|
+
title: ZodOptional<ZodString>;
|
|
36364
|
+
/**
|
|
36365
|
+
* If true, the tool does not modify its environment.
|
|
36366
|
+
*
|
|
36367
|
+
* Default: false
|
|
36368
|
+
*/
|
|
36369
|
+
readOnlyHint: ZodOptional<ZodBoolean>;
|
|
36370
|
+
/**
|
|
36371
|
+
* If true, the tool may perform destructive updates to its environment.
|
|
36372
|
+
* If false, the tool performs only additive updates.
|
|
36373
|
+
*
|
|
36374
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
36375
|
+
*
|
|
36376
|
+
* Default: true
|
|
36377
|
+
*/
|
|
36378
|
+
destructiveHint: ZodOptional<ZodBoolean>;
|
|
36379
|
+
/**
|
|
36380
|
+
* If true, calling the tool repeatedly with the same arguments
|
|
36381
|
+
* will have no additional effect on the its environment.
|
|
36382
|
+
*
|
|
36383
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
36384
|
+
*
|
|
36385
|
+
* Default: false
|
|
36386
|
+
*/
|
|
36387
|
+
idempotentHint: ZodOptional<ZodBoolean>;
|
|
36388
|
+
/**
|
|
36389
|
+
* If true, this tool may interact with an "open world" of external
|
|
36390
|
+
* entities. If false, the tool's domain of interaction is closed.
|
|
36391
|
+
* For example, the world of a web search tool is open, whereas that
|
|
36392
|
+
* of a memory tool is not.
|
|
36393
|
+
*
|
|
36394
|
+
* Default: true
|
|
36395
|
+
*/
|
|
36396
|
+
openWorldHint: ZodOptional<ZodBoolean>;
|
|
36397
|
+
}, ZodTypeAny, "passthrough">>>;
|
|
36398
|
+
}, ZodTypeAny, "passthrough">, objectInputType<{
|
|
34827
36399
|
/**
|
|
34828
36400
|
* The name of the tool.
|
|
34829
36401
|
*/
|
|
@@ -34838,35 +36410,151 @@ declare const ServerResultSchema: ZodUnion<[ZodObject<{
|
|
|
34838
36410
|
inputSchema: ZodObject<{
|
|
34839
36411
|
type: ZodLiteral<"object">;
|
|
34840
36412
|
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
36413
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
34841
36414
|
}, "passthrough", ZodTypeAny, objectOutputType<{
|
|
34842
36415
|
type: ZodLiteral<"object">;
|
|
34843
36416
|
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
36417
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
34844
36418
|
}, ZodTypeAny, "passthrough">, objectInputType<{
|
|
34845
36419
|
type: ZodLiteral<"object">;
|
|
34846
36420
|
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
36421
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
34847
36422
|
}, ZodTypeAny, "passthrough">>;
|
|
34848
|
-
}, ZodTypeAny, "passthrough">, objectInputType<{
|
|
34849
|
-
/**
|
|
34850
|
-
* The name of the tool.
|
|
34851
|
-
*/
|
|
34852
|
-
name: ZodString;
|
|
34853
36423
|
/**
|
|
34854
|
-
*
|
|
34855
|
-
|
|
34856
|
-
description: ZodOptional<ZodString>;
|
|
34857
|
-
/**
|
|
34858
|
-
* A JSON Schema object defining the expected parameters for the tool.
|
|
36424
|
+
* An optional JSON Schema object defining the structure of the tool's output returned in
|
|
36425
|
+
* the structuredContent field of a CallToolResult.
|
|
34859
36426
|
*/
|
|
34860
|
-
|
|
36427
|
+
outputSchema: ZodOptional<ZodObject<{
|
|
34861
36428
|
type: ZodLiteral<"object">;
|
|
34862
36429
|
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
36430
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
34863
36431
|
}, "passthrough", ZodTypeAny, objectOutputType<{
|
|
34864
36432
|
type: ZodLiteral<"object">;
|
|
34865
36433
|
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
36434
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
34866
36435
|
}, ZodTypeAny, "passthrough">, objectInputType<{
|
|
34867
36436
|
type: ZodLiteral<"object">;
|
|
34868
36437
|
properties: ZodOptional<ZodObject<{}, "passthrough", ZodTypeAny, objectOutputType<{}, ZodTypeAny, "passthrough">, objectInputType<{}, ZodTypeAny, "passthrough">>>;
|
|
34869
|
-
|
|
36438
|
+
required: ZodOptional<ZodArray<ZodString, "many">>;
|
|
36439
|
+
}, ZodTypeAny, "passthrough">>>;
|
|
36440
|
+
/**
|
|
36441
|
+
* Optional additional tool information.
|
|
36442
|
+
*/
|
|
36443
|
+
annotations: ZodOptional<ZodObject<{
|
|
36444
|
+
/**
|
|
36445
|
+
* A human-readable title for the tool.
|
|
36446
|
+
*/
|
|
36447
|
+
title: ZodOptional<ZodString>;
|
|
36448
|
+
/**
|
|
36449
|
+
* If true, the tool does not modify its environment.
|
|
36450
|
+
*
|
|
36451
|
+
* Default: false
|
|
36452
|
+
*/
|
|
36453
|
+
readOnlyHint: ZodOptional<ZodBoolean>;
|
|
36454
|
+
/**
|
|
36455
|
+
* If true, the tool may perform destructive updates to its environment.
|
|
36456
|
+
* If false, the tool performs only additive updates.
|
|
36457
|
+
*
|
|
36458
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
36459
|
+
*
|
|
36460
|
+
* Default: true
|
|
36461
|
+
*/
|
|
36462
|
+
destructiveHint: ZodOptional<ZodBoolean>;
|
|
36463
|
+
/**
|
|
36464
|
+
* If true, calling the tool repeatedly with the same arguments
|
|
36465
|
+
* will have no additional effect on the its environment.
|
|
36466
|
+
*
|
|
36467
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
36468
|
+
*
|
|
36469
|
+
* Default: false
|
|
36470
|
+
*/
|
|
36471
|
+
idempotentHint: ZodOptional<ZodBoolean>;
|
|
36472
|
+
/**
|
|
36473
|
+
* If true, this tool may interact with an "open world" of external
|
|
36474
|
+
* entities. If false, the tool's domain of interaction is closed.
|
|
36475
|
+
* For example, the world of a web search tool is open, whereas that
|
|
36476
|
+
* of a memory tool is not.
|
|
36477
|
+
*
|
|
36478
|
+
* Default: true
|
|
36479
|
+
*/
|
|
36480
|
+
openWorldHint: ZodOptional<ZodBoolean>;
|
|
36481
|
+
}, "passthrough", ZodTypeAny, objectOutputType<{
|
|
36482
|
+
/**
|
|
36483
|
+
* A human-readable title for the tool.
|
|
36484
|
+
*/
|
|
36485
|
+
title: ZodOptional<ZodString>;
|
|
36486
|
+
/**
|
|
36487
|
+
* If true, the tool does not modify its environment.
|
|
36488
|
+
*
|
|
36489
|
+
* Default: false
|
|
36490
|
+
*/
|
|
36491
|
+
readOnlyHint: ZodOptional<ZodBoolean>;
|
|
36492
|
+
/**
|
|
36493
|
+
* If true, the tool may perform destructive updates to its environment.
|
|
36494
|
+
* If false, the tool performs only additive updates.
|
|
36495
|
+
*
|
|
36496
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
36497
|
+
*
|
|
36498
|
+
* Default: true
|
|
36499
|
+
*/
|
|
36500
|
+
destructiveHint: ZodOptional<ZodBoolean>;
|
|
36501
|
+
/**
|
|
36502
|
+
* If true, calling the tool repeatedly with the same arguments
|
|
36503
|
+
* will have no additional effect on the its environment.
|
|
36504
|
+
*
|
|
36505
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
36506
|
+
*
|
|
36507
|
+
* Default: false
|
|
36508
|
+
*/
|
|
36509
|
+
idempotentHint: ZodOptional<ZodBoolean>;
|
|
36510
|
+
/**
|
|
36511
|
+
* If true, this tool may interact with an "open world" of external
|
|
36512
|
+
* entities. If false, the tool's domain of interaction is closed.
|
|
36513
|
+
* For example, the world of a web search tool is open, whereas that
|
|
36514
|
+
* of a memory tool is not.
|
|
36515
|
+
*
|
|
36516
|
+
* Default: true
|
|
36517
|
+
*/
|
|
36518
|
+
openWorldHint: ZodOptional<ZodBoolean>;
|
|
36519
|
+
}, ZodTypeAny, "passthrough">, objectInputType<{
|
|
36520
|
+
/**
|
|
36521
|
+
* A human-readable title for the tool.
|
|
36522
|
+
*/
|
|
36523
|
+
title: ZodOptional<ZodString>;
|
|
36524
|
+
/**
|
|
36525
|
+
* If true, the tool does not modify its environment.
|
|
36526
|
+
*
|
|
36527
|
+
* Default: false
|
|
36528
|
+
*/
|
|
36529
|
+
readOnlyHint: ZodOptional<ZodBoolean>;
|
|
36530
|
+
/**
|
|
36531
|
+
* If true, the tool may perform destructive updates to its environment.
|
|
36532
|
+
* If false, the tool performs only additive updates.
|
|
36533
|
+
*
|
|
36534
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
36535
|
+
*
|
|
36536
|
+
* Default: true
|
|
36537
|
+
*/
|
|
36538
|
+
destructiveHint: ZodOptional<ZodBoolean>;
|
|
36539
|
+
/**
|
|
36540
|
+
* If true, calling the tool repeatedly with the same arguments
|
|
36541
|
+
* will have no additional effect on the its environment.
|
|
36542
|
+
*
|
|
36543
|
+
* (This property is meaningful only when `readOnlyHint == false`)
|
|
36544
|
+
*
|
|
36545
|
+
* Default: false
|
|
36546
|
+
*/
|
|
36547
|
+
idempotentHint: ZodOptional<ZodBoolean>;
|
|
36548
|
+
/**
|
|
36549
|
+
* If true, this tool may interact with an "open world" of external
|
|
36550
|
+
* entities. If false, the tool's domain of interaction is closed.
|
|
36551
|
+
* For example, the world of a web search tool is open, whereas that
|
|
36552
|
+
* of a memory tool is not.
|
|
36553
|
+
*
|
|
36554
|
+
* Default: true
|
|
36555
|
+
*/
|
|
36556
|
+
openWorldHint: ZodOptional<ZodBoolean>;
|
|
36557
|
+
}, ZodTypeAny, "passthrough">>>;
|
|
34870
36558
|
}, ZodTypeAny, "passthrough">>, "many">;
|
|
34871
36559
|
}>, ZodTypeAny, "passthrough">>]>;
|
|
34872
36560
|
type Primitive = string | number | boolean | bigint | null | undefined;
|
|
@@ -34875,6 +36563,7 @@ type Flatten<T> = T extends Primitive ? T : T extends Array<infer U> ? Array<Fla
|
|
|
34875
36563
|
} : T;
|
|
34876
36564
|
type Infer<Schema extends ZodTypeAny> = Flatten<TypeOf<Schema>>;
|
|
34877
36565
|
type Request = Infer<typeof RequestSchema>;
|
|
36566
|
+
type RequestMeta = Infer<typeof RequestMetaSchema>;
|
|
34878
36567
|
type Notification = Infer<typeof NotificationSchema>;
|
|
34879
36568
|
type Result = Infer<typeof ResultSchema>;
|
|
34880
36569
|
type RequestId = Infer<typeof RequestIdSchema>;
|
|
@@ -34888,6 +36577,7 @@ type ListResourcesResult = Infer<typeof ListResourcesResultSchema>;
|
|
|
34888
36577
|
type ReadResourceResult = Infer<typeof ReadResourceResultSchema>;
|
|
34889
36578
|
type ResourceUpdatedNotification = Infer<typeof ResourceUpdatedNotificationSchema>;
|
|
34890
36579
|
type GetPromptResult = Infer<typeof GetPromptResultSchema>;
|
|
36580
|
+
type ToolAnnotations = Infer<typeof ToolAnnotationsSchema>;
|
|
34891
36581
|
type CallToolResult = Infer<typeof CallToolResultSchema>;
|
|
34892
36582
|
type LoggingMessageNotification = Infer<typeof LoggingMessageNotificationSchema>;
|
|
34893
36583
|
type CreateMessageRequest = Infer<typeof CreateMessageRequestSchema>;
|
|
@@ -35066,6 +36756,15 @@ type RequestHandlerExtra<SendRequestT extends Request, SendNotificationT extends
|
|
|
35066
36756
|
* The session ID from the transport, if available.
|
|
35067
36757
|
*/
|
|
35068
36758
|
sessionId?: string;
|
|
36759
|
+
/**
|
|
36760
|
+
* Metadata from the original request.
|
|
36761
|
+
*/
|
|
36762
|
+
_meta?: RequestMeta;
|
|
36763
|
+
/**
|
|
36764
|
+
* The JSON-RPC ID of the request being handled.
|
|
36765
|
+
* This can be useful for tracking or logging purposes.
|
|
36766
|
+
*/
|
|
36767
|
+
requestId: RequestId;
|
|
35069
36768
|
/**
|
|
35070
36769
|
* Sends a notification that relates to the current request being handled.
|
|
35071
36770
|
*
|
|
@@ -35401,6 +37100,7 @@ declare class McpServer {
|
|
|
35401
37100
|
* Registers a resource `name` with a template pattern and metadata, which will use the given callback to respond to read requests.
|
|
35402
37101
|
*/
|
|
35403
37102
|
resource(name: string, template: ResourceTemplate, metadata: ResourceMetadata, readCallback: ReadResourceTemplateCallback): RegisteredResourceTemplate;
|
|
37103
|
+
private _createRegisteredTool;
|
|
35404
37104
|
/**
|
|
35405
37105
|
* Registers a zero-argument tool `name`, which will run the given function when the client calls it.
|
|
35406
37106
|
*/
|
|
@@ -35410,13 +37110,39 @@ declare class McpServer {
|
|
|
35410
37110
|
*/
|
|
35411
37111
|
tool(name: string, description: string, cb: ToolCallback): RegisteredTool;
|
|
35412
37112
|
/**
|
|
35413
|
-
* Registers a tool
|
|
37113
|
+
* Registers a tool taking either a parameter schema for validation or annotations for additional metadata.
|
|
37114
|
+
* This unified overload handles both `tool(name, paramsSchema, cb)` and `tool(name, annotations, cb)` cases.
|
|
37115
|
+
*
|
|
37116
|
+
* Note: We use a union type for the second parameter because TypeScript cannot reliably disambiguate
|
|
37117
|
+
* between ToolAnnotations and ZodRawShape during overload resolution, as both are plain object types.
|
|
37118
|
+
*/
|
|
37119
|
+
tool<Args extends ZodRawShape>(name: string, paramsSchemaOrAnnotations: Args | ToolAnnotations, cb: ToolCallback<Args>): RegisteredTool;
|
|
37120
|
+
/**
|
|
37121
|
+
* Registers a tool `name` (with a description) taking either parameter schema or annotations.
|
|
37122
|
+
* This unified overload handles both `tool(name, description, paramsSchema, cb)` and
|
|
37123
|
+
* `tool(name, description, annotations, cb)` cases.
|
|
37124
|
+
*
|
|
37125
|
+
* Note: We use a union type for the third parameter because TypeScript cannot reliably disambiguate
|
|
37126
|
+
* between ToolAnnotations and ZodRawShape during overload resolution, as both are plain object types.
|
|
37127
|
+
*/
|
|
37128
|
+
tool<Args extends ZodRawShape>(name: string, description: string, paramsSchemaOrAnnotations: Args | ToolAnnotations, cb: ToolCallback<Args>): RegisteredTool;
|
|
37129
|
+
/**
|
|
37130
|
+
* Registers a tool with both parameter schema and annotations.
|
|
35414
37131
|
*/
|
|
35415
|
-
tool<Args extends ZodRawShape>(name: string, paramsSchema: Args, cb: ToolCallback<Args>): RegisteredTool;
|
|
37132
|
+
tool<Args extends ZodRawShape>(name: string, paramsSchema: Args, annotations: ToolAnnotations, cb: ToolCallback<Args>): RegisteredTool;
|
|
35416
37133
|
/**
|
|
35417
|
-
* Registers a tool
|
|
37134
|
+
* Registers a tool with description, parameter schema, and annotations.
|
|
35418
37135
|
*/
|
|
35419
|
-
tool<Args extends ZodRawShape>(name: string, description: string, paramsSchema: Args, cb: ToolCallback<Args>): RegisteredTool;
|
|
37136
|
+
tool<Args extends ZodRawShape>(name: string, description: string, paramsSchema: Args, annotations: ToolAnnotations, cb: ToolCallback<Args>): RegisteredTool;
|
|
37137
|
+
/**
|
|
37138
|
+
* Registers a tool with a config object and callback.
|
|
37139
|
+
*/
|
|
37140
|
+
registerTool<InputArgs extends ZodRawShape, OutputArgs extends ZodRawShape>(name: string, config: {
|
|
37141
|
+
description?: string;
|
|
37142
|
+
inputSchema?: InputArgs;
|
|
37143
|
+
outputSchema?: OutputArgs;
|
|
37144
|
+
annotations?: ToolAnnotations;
|
|
37145
|
+
}, cb: ToolCallback<InputArgs>): RegisteredTool;
|
|
35420
37146
|
/**
|
|
35421
37147
|
* Registers a zero-argument prompt `name`, which will run the given function when the client calls it.
|
|
35422
37148
|
*/
|
|
@@ -35491,20 +37217,29 @@ declare class ResourceTemplate {
|
|
|
35491
37217
|
* Callback for a tool handler registered with Server.tool().
|
|
35492
37218
|
*
|
|
35493
37219
|
* Parameters will include tool arguments, if applicable, as well as other request handler context.
|
|
37220
|
+
*
|
|
37221
|
+
* The callback should return:
|
|
37222
|
+
* - `structuredContent` if the tool has an outputSchema defined
|
|
37223
|
+
* - `content` if the tool does not have an outputSchema
|
|
37224
|
+
* - Both fields are optional but typically one should be provided
|
|
35494
37225
|
*/
|
|
35495
37226
|
type ToolCallback<Args extends undefined | ZodRawShape = undefined> = Args extends ZodRawShape ? (args: objectOutputType<Args, ZodTypeAny>, extra: RequestHandlerExtra<ServerRequest, ServerNotification>) => CallToolResult | Promise<CallToolResult> : (extra: RequestHandlerExtra<ServerRequest, ServerNotification>) => CallToolResult | Promise<CallToolResult>;
|
|
35496
37227
|
type RegisteredTool = {
|
|
35497
37228
|
description?: string;
|
|
35498
37229
|
inputSchema?: AnyZodObject;
|
|
37230
|
+
outputSchema?: AnyZodObject;
|
|
37231
|
+
annotations?: ToolAnnotations;
|
|
35499
37232
|
callback: ToolCallback<undefined | ZodRawShape>;
|
|
35500
37233
|
enabled: boolean;
|
|
35501
37234
|
enable(): void;
|
|
35502
37235
|
disable(): void;
|
|
35503
|
-
update<
|
|
37236
|
+
update<InputArgs extends ZodRawShape, OutputArgs extends ZodRawShape>(updates: {
|
|
35504
37237
|
name?: string | null;
|
|
35505
37238
|
description?: string;
|
|
35506
|
-
paramsSchema?:
|
|
35507
|
-
|
|
37239
|
+
paramsSchema?: InputArgs;
|
|
37240
|
+
outputSchema?: OutputArgs;
|
|
37241
|
+
annotations?: ToolAnnotations;
|
|
37242
|
+
callback?: ToolCallback<InputArgs>;
|
|
35508
37243
|
enabled?: boolean;
|
|
35509
37244
|
}): void;
|
|
35510
37245
|
remove(): void;
|
|
@@ -35579,6 +37314,8 @@ type RegisteredPrompt = {
|
|
|
35579
37314
|
};
|
|
35580
37315
|
|
|
35581
37316
|
interface LikeC4MCPServer {
|
|
37317
|
+
readonly isStarted: boolean;
|
|
37318
|
+
readonly port: number;
|
|
35582
37319
|
start(port: number): Promise<void>;
|
|
35583
37320
|
stop(): Promise<void>;
|
|
35584
37321
|
}
|
|
@@ -35726,7 +37463,7 @@ interface LikeC4AddedServices {
|
|
|
35726
37463
|
likec4: {
|
|
35727
37464
|
LanguageServices: LikeC4LanguageServices;
|
|
35728
37465
|
Views: LikeC4Views;
|
|
35729
|
-
Layouter:
|
|
37466
|
+
Layouter: QueueGraphvizLayoter;
|
|
35730
37467
|
DeploymentsIndex: DeploymentsIndex;
|
|
35731
37468
|
FqnIndex: FqnIndex;
|
|
35732
37469
|
ModelParser: LikeC4ModelParser;
|
|
@@ -35752,4 +37489,4 @@ interface LikeC4AddedServices {
|
|
|
35752
37489
|
}
|
|
35753
37490
|
type LikeC4Services = LangiumServices & LikeC4AddedServices;
|
|
35754
37491
|
|
|
35755
|
-
export {
|
|
37492
|
+
export { type LikeC4LanguageServices as L, Range$1 as R, WorkspaceFolder as W, type LikeC4Services as a, type LikeC4Views as b };
|