amf-client-js 5.8.0-SNAPSHOT.61 → 5.8.0-SNAPSHOT.63
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/amf.js +1 -1
- package/package.json +1 -1
- package/typings/amf-client-js.d.ts +4 -0
package/amf.js
CHANGED
|
@@ -2055,7 +2055,7 @@ function Hsb(a,b,c){if(b.startsWith("."))var e=K();else e=c.Qza.qa(1),e=b.starts
|
|
|
2055
2055
|
function Jsb(a,b,c,e,f){Kj(a,b,c).D(new u(g=>{if(g instanceof Jj){g=new QL(g,f);g.iO();e.u(g.lM);Ksb(g);var h=g.lM,k=Pj(g.E0);k=new rd(new G,k);ud(h,xd().Kj,k);return g.lM}throw new w(g);}),B().f)}function Bx(a,b){this.hGd=a;this.gGd=b}Bx.prototype=new n;Bx.prototype.constructor=Bx;Bx.prototype.za=function(){return this.gGd};Bx.prototype.Qh=function(){return z(B(),C(new D,[zp(new Ap,!0),new MI])).B((this.hGd?new M(new II):K()).I(),B().f).ic(GG(),B().f)};
|
|
2056
2056
|
p(Bx,"amf.grpc.internal.transformation.GrpcEditingPipeline",{qKe:1,Ij:1});function VHa(a){this.iGd=a}VHa.prototype=new n;VHa.prototype.constructor=VHa;VHa.prototype.za=function(){return this.iGd};VHa.prototype.Qh=function(){return z(B(),C(new D,[zp(new Ap,!1),new MI])).ic(GG(),B().f)};p(VHa,"amf.grpc.internal.transformation.GrpcTransformationPipeline",{rKe:1,Ij:1});function Lsb(a){this.jGd=a}Lsb.prototype=new n;Lsb.prototype.constructor=Lsb;Lsb.prototype.sg=function(){return(0,this.jGd)()};
|
|
2057
2057
|
p(Lsb,"amf.mcp.client.platform.MCPConfiguration$$Lambda$1",{wKe:1,tU:1});function Msb(){}Msb.prototype=new n;Msb.prototype.constructor=Msb;Msb.prototype.Gpd=function(){Nsb||(Nsb=new Osb);return Nsb};p(Msb,"amf.mcp.internal.plugins.parse.entry.MCPProtocolEntry$",{IKe:1,IHd:1});var Psb;function Qsb(){}Qsb.prototype=new QMa;Qsb.prototype.constructor=Qsb;function Rsb(){}Rsb.prototype=Qsb.prototype;function Osb(){}Osb.prototype=new n;Osb.prototype.constructor=Osb;Osb.prototype.Cjd=function(){return"protocolVersion"};
|
|
2058
|
-
Osb.prototype.tjd=function(a){"2024-11-05"===a?(Ssb||(Ssb=new Tsb),a=new M(Ssb)):"2025-03-26"===a?(Usb||(Usb=new Vsb),a=new M(Usb)):a=K();return a};p(Osb,"amf.mcp.internal.plugins.parse.entry.MCPProtocolVersion$",{JKe:1,JHd:1});var Nsb;function Wsb(){}Wsb.prototype=new SMa;Wsb.prototype.constructor=Wsb;Wsb.prototype.Dnd=function(){return Al(new Xc('{\n | "$schema": "http://json-schema.org/draft-07/schema#",\n | "@context": {\n | "mcp": "https://modelcontextprotocol.io/vocab#",\n | "@type": "mcp:Server"\n | },\n | "title": "MCP Asset Schema",\n | "definitions": {\n | "tool": {\n | "@context": {\n | "mcp": "https://modelcontextprotocol.io/vocab#",\n | "@type": "mcp:Tool"\n | },\n | "description": "Definition for a tool the client can call.",\n | "properties": {\n | "description": {\n | "description": "A human-readable description of the tool.",\n | "type": "string"\n | },\n | "inputSchema": {\n | "@context": {\n | "mcp": "https://modelcontextprotocol.io/vocab#",\n | "@type": "mcp:ToolInputSchema"\n | },\n | "description": "A JSON Schema object defining the expected parameters for the tool.",\n | "properties": {\n | "properties": {\n | "additionalProperties": {\n | "additionalProperties": true,\n | "properties": {},\n | "type": "object"\n | },\n | "type": "object"\n | },\n | "required": {\n | "items": {\n | "type": "string"\n | },\n | "type": "array"\n | },\n | "type": {\n | "const": "object",\n | "type": "string"\n | }\n | },\n | "required": [\n | "type"\n | ],\n | "type": "object"\n | },\n | "name": {\n | "description": "The name of the tool.",\n | "type": "string"\n | }\n | },\n | "required": [\n | "inputSchema",\n | "name"\n | ],\n | "type": "object"\n | },\n | "resource": {\n | "@context": {\n | "mcp": "https://modelcontextprotocol.io/vocab#",\n | "@type": "mcp:Resource"\n | },\n | "description": "A known resource that the server is capable of reading.",\n | "properties": {\n | "annotations": {\n | "description": "Optional annotations for the client. The client can use annotations to inform how objects are used or displayed",\n | "properties": {\n | "audience": {\n | "description": "Describes who the intended customer of this object or data is.\\n\\nIt can include multiple entries to indicate content useful for multiple audiences (e.g., `[\\"user\\", \\"assistant\\"]`).",\n | "items": {\n | "description": "Describes who the intended customer of this object or data is.",\n | "enum": [\n | "assistant",\n | "user"\n | ],\n | "type": "string"\n | },\n | "type": "array"\n | },\n | "priority": {\n | "description": "Describes how important this data is for operating the server.\\n\\nA value of 1 means \\"most important,\\" and indicates that the data is\\neffectively required, while 0 means \\"least important,\\" and indicates that\\nthe data is entirely optional.",\n | "maximum": 1,\n | "minimum": 0,\n | "type": "number"\n | }\n | },\n | "type": "object"\n | },\n | "description": {\n | "description": "A description of what this resource represents.",\n | "type": "string"\n | },\n | "mimeType": {\n | "description": "The MIME type of this resource, if known.",\n | "type": "string"\n | },\n | "name": {\n | "description": "A human-readable name for this resource.",\n | "type": "string"\n | },\n | "uri": {\n | "description": "The URI of this resource.",\n | "format": "uri",\n | "type": "string"\n | }\n | },\n | "required": [\n | "name",\n | "uri"\n | ],\n | "type": "object"\n | },\n | "prompt": {\n | "@context": {\n | "mcp": "https://modelcontextprotocol.io/vocab#",\n | "@type": "mcp:Prompt"\n | },\n | "description": "A prompt or prompt template that the server offers.",\n | "properties": {\n | "arguments": {\n | "description": "A list of arguments to use for templating the prompt.",\n | "items": {\n | "@context": {\n | "mcp": "https://modelcontextprotocol.io/vocab#",\n | "@type": "mcp:PromptArgument"\n | },\n | "description": "Describes an argument that a prompt can accept.",\n | "properties": {\n | "description": {\n | "description": "A human-readable description of the argument.",\n | "type": "string"\n | },\n | "name": {\n | "description": "The name of the argument.",\n | "type": "string"\n | },\n | "required": {\n | "description": "Whether this argument must be provided.",\n | "type": "boolean"\n | }\n | },\n | "required": [\n | "description",\n | "name"\n | ],\n | "type": "object"\n | },\n | "type": "array"\n | },\n | "description": {\n | "description": "A description of what this prompt provides",\n | "type": "string"\n | },\n | "name": {\n | "description": "The name of the prompt.",\n | "type": "string"\n | }\n | },\n | "required": [\n | "name"\n | ],\n | "type": "object"\n | }\n | },\n | "type": "object",\n | "required": [\n | "protocolVersion",\n | "name",\n | "introspectedAt",\n | "connectionStatus",\n | "capabilities"\n | ],\n | "properties": {\n | "protocolVersion": {\n | "type": "string",\n | "enum": [\n | "2024-11-05",\n | "2025-03-26"\n | ],\n | "description": "The version of the protocol being used. This is used to determine the structure and capabilities of the data."\n | },\n | "name": {\n | "type": "string",\n | "description": "The name of the MCP server"\n | },\n | "introspectedAt": {\n | "type": "string",\n | "description": "Timestamp when the introspection was performed"\n | },\n | "connectionStatus": {\n | "type": "string",\n | "description": "Status of the connection to the MCP server",\n | "enum": [\n | "success",\n | "failed",\n | "error"\n | ]\n | },\n | "transport": {\n | "type": "string",\n | "enum": [\n | "sse",\n | "stdio",\n | "Streamable HTTP"\n | ],\n | "description": "The transport protocol used for communication. This defines how the data is transmitted between the client and server."\n | },\n | "capabilities": {\n | "type": "object",\n | "description": "Boolean flags indicating which capabilities the server supports",\n | "required": [\n | "tools",\n | "resources",\n | "prompts",\n | "logging"\n | ],\n | "properties": {\n | "tools": {\n | "type": "boolean",\n | "description": "Whether the server supports tools"\n | },\n | "resources": {\n | "type": "boolean",\n | "description": "Whether the server supports resources"\n | },\n | "prompts": {\n | "type": "boolean",\n | "description": "Whether the server supports prompts"\n | },\n | "logging": {\n | "type": "boolean",\n | "description": "Whether the server supports logging"\n | }\n | },\n | "additionalProperties": false\n | },\n | "logging": {\n | "type": "object",\n | "properties": {},\n | "description": "Present if the server supports sending log messages to the client.",\n | "additionalProperties": true\n | },\n | "tools": {\n | "type": "array",\n | "items": {\n | "$ref": "#/definitions/tool"\n | },\n | "description": "A list of tools available in the mcp api. Each tool has a name, description, and input schema that defines the expected input format."\n | },\n | "resources": {\n | "type": "array",\n | "items": {\n | "$ref": "#/definitions/resource"\n | },\n | "description": "A list of resources available in the mcp api. Each resource has a URI, name, description, MIME type, and annotations that provide additional metadata."\n | },\n | "prompts": {\n | "type": "array",\n | "items": {\n | "$ref": "#/definitions/prompt"\n | },\n | "description": "A list of prompts available in the mcp api. Each prompt has a name, description, and arguments that define the expected input format for the prompt."\n | },\n | "additionalProperties": false\n | }\n |}\n |'))};
|
|
2058
|
+
Osb.prototype.tjd=function(a){"2024-11-05"===a?(Ssb||(Ssb=new Tsb),a=new M(Ssb)):"2025-03-26"===a?(Usb||(Usb=new Vsb),a=new M(Usb)):a=K();return a};p(Osb,"amf.mcp.internal.plugins.parse.entry.MCPProtocolVersion$",{JKe:1,JHd:1});var Nsb;function Wsb(){}Wsb.prototype=new SMa;Wsb.prototype.constructor=Wsb;Wsb.prototype.Dnd=function(){return Al(new Xc('{\n | "$schema": "http://json-schema.org/draft-07/schema#",\n | "@context": {\n | "mcp": "https://modelcontextprotocol.io/vocab#",\n | "@type": "mcp:Server"\n | },\n | "title": "MCP Asset Schema",\n | "definitions": {\n | "Tool": {\n | "@context": {\n | "mcp": "https://modelcontextprotocol.io/vocab#",\n | "@type": "mcp:Tool"\n | },\n | "description": "Definition for a tool the client can call.",\n | "properties": {\n | "annotations": {\n | "$ref": "#/definitions/ToolAnnotations",\n | "description": "Optional additional tool information."\n | },\n | "description": {\n | "description": "A human-readable description of the tool.\\n\\nThis can be used by clients to improve the LLM\'s understanding of available tools. It can be thought of like a \\"hint\\" to the model.",\n | "type": "string"\n | },\n | "inputSchema": {\n | "@context": {\n | "mcp": "https://modelcontextprotocol.io/vocab#",\n | "@type": "mcp:ToolInputSchema"\n | },\n | "description": "A JSON Schema object defining the expected parameters for the tool.",\n | "properties": {\n | "properties": {\n | "additionalProperties": {\n | "additionalProperties": true,\n | "properties": {},\n | "type": "object"\n | },\n | "type": "object"\n | },\n | "required": {\n | "items": {\n | "type": "string"\n | },\n | "type": "array"\n | },\n | "type": {\n | "const": "object",\n | "type": "string"\n | }\n | },\n | "required": [\n | "type"\n | ],\n | "type": "object"\n | },\n | "name": {\n | "description": "The name of the tool.",\n | "type": "string"\n | }\n | },\n | "required": [\n | "inputSchema",\n | "name"\n | ],\n | "type": "object"\n | },\n | "ToolAnnotations": {\n | "description": "Additional properties describing a Tool to clients.\\n\\nNOTE: all properties in ToolAnnotations are **hints**.\\nThey are not guaranteed to provide a faithful description of\\ntool behavior (including descriptive properties like `title`).\\n\\nClients should never make tool use decisions based on ToolAnnotations\\nreceived from untrusted servers.",\n | "properties": {\n | "destructiveHint": {\n | "description": "If true, the tool may perform destructive updates to its environment.\\nIf false, the tool performs only additive updates.\\n\\n(This property is meaningful only when `readOnlyHint \x3d\x3d false`)\\n\\nDefault: true",\n | "type": "boolean"\n | },\n | "idempotentHint": {\n | "description": "If true, calling the tool repeatedly with the same arguments\\nwill have no additional effect on the its environment.\\n\\n(This property is meaningful only when `readOnlyHint \x3d\x3d false`)\\n\\nDefault: false",\n | "type": "boolean"\n | },\n | "openWorldHint": {\n | "description": "If true, this tool may interact with an \\"open world\\" of external\\nentities. If false, the tool\'s domain of interaction is closed.\\nFor example, the world of a web search tool is open, whereas that\\nof a memory tool is not.\\n\\nDefault: true",\n | "type": "boolean"\n | },\n | "readOnlyHint": {\n | "description": "If true, the tool does not modify its environment.\\n\\nDefault: false",\n | "type": "boolean"\n | },\n | "title": {\n | "description": "A human-readable title for the tool.",\n | "type": "string"\n | }\n | },\n | "type": "object"\n | },\n | "Prompt": {\n | "@context": {\n | "mcp": "https://modelcontextprotocol.io/vocab#",\n | "@type": "mcp:Prompt"\n | },\n | "description": "A prompt or prompt template that the server offers.",\n | "properties": {\n | "arguments": {\n | "description": "A list of arguments to use for templating the prompt.",\n | "items": {\n | "$ref": "#/definitions/PromptArgument"\n | },\n | "type": "array"\n | },\n | "description": {\n | "description": "An optional description of what this prompt provides",\n | "type": "string"\n | },\n | "name": {\n | "description": "The name of the prompt or prompt template.",\n | "type": "string"\n | }\n | },\n | "required": [\n | "name"\n | ],\n | "type": "object"\n | },\n | "PromptArgument": {\n | "@context": {\n | "mcp": "https://modelcontextprotocol.io/vocab#",\n | "@type": "mcp:PromptArgument"\n | },\n | "description": "Describes an argument that a prompt can accept.",\n | "properties": {\n | "description": {\n | "description": "A human-readable description of the argument.",\n | "type": "string"\n | },\n | "name": {\n | "description": "The name of the argument.",\n | "type": "string"\n | },\n | "required": {\n | "description": "Whether this argument must be provided.",\n | "type": "boolean"\n | }\n | },\n | "required": [\n | "name"\n | ],\n | "type": "object"\n | },\n | "Resource": {\n | "@context": {\n | "mcp": "https://modelcontextprotocol.io/vocab#",\n | "@type": "mcp:Resource"\n | },\n | "description": "A known resource that the server is capable of reading.",\n | "properties": {\n | "annotations": {\n | "$ref": "#/definitions/Annotations",\n | "description": "Optional annotations for the client."\n | },\n | "description": {\n | "description": "A description of what this resource represents.\\n\\nThis can be used by clients to improve the LLM\'s understanding of available resources. It can be thought of like a \\"hint\\" to the model.",\n | "type": "string"\n | },\n | "mimeType": {\n | "description": "The MIME type of this resource, if known.",\n | "type": "string"\n | },\n | "name": {\n | "description": "A human-readable name for this resource.\\n\\nThis can be used by clients to populate UI elements.",\n | "type": "string"\n | },\n | "size": {\n | "description": "The size of the raw resource content, in bytes (i.e., before base64 encoding or any tokenization), if known.\\n\\nThis can be used by Hosts to display file sizes and estimate context window usage.",\n | "type": "integer"\n | },\n | "uri": {\n | "description": "The URI of this resource.",\n | "format": "uri",\n | "type": "string"\n | }\n | },\n | "required": [\n | "name",\n | "uri"\n | ],\n | "type": "object"\n | },\n | "Annotations": {\n | "description": "Optional annotations for the client. The client can use annotations to inform how objects are used or displayed",\n | "properties": {\n | "audience": {\n | "description": "Describes who the intended customer of this object or data is.\\n\\nIt can include multiple entries to indicate content useful for multiple audiences (e.g., `[\\"user\\", \\"assistant\\"]`).",\n | "items": {\n | "$ref": "#/definitions/Role"\n | },\n | "type": "array"\n | },\n | "priority": {\n | "description": "Describes how important this data is for operating the server.\\n\\nA value of 1 means \\"most important,\\" and indicates that the data is\\neffectively required, while 0 means \\"least important,\\" and indicates that\\nthe data is entirely optional.",\n | "maximum": 1,\n | "minimum": 0,\n | "type": "number"\n | }\n | },\n | "type": "object"\n | },\n | "Role": {\n | "description": "The sender or recipient of messages and data in a conversation.",\n | "enum": [\n | "assistant",\n | "user"\n | ],\n | "type": "string"\n | }\n | },\n | "type": "object",\n | "required": [\n | "protocolVersion",\n | "name",\n | "capabilities"\n | ],\n | "properties": {\n | "protocolVersion": {\n | "type": "string",\n | "enum": [\n | "2024-11-05",\n | "2025-03-26"\n | ],\n | "description": "The version of the protocol being used. This is used to determine the structure and capabilities of the data."\n | },\n | "name": {\n | "type": "string",\n | "description": "The name of the MCP server"\n | },\n | "introspectedAt": {\n | "type": "string",\n | "description": "Timestamp when the introspection was performed"\n | },\n | "connectionStatus": {\n | "type": "string",\n | "description": "Status of the connection to the MCP server",\n | "enum": [\n | "success",\n | "failed",\n | "error"\n | ]\n | },\n | "transport": {\n | "type": "string",\n | "enum": [\n | "sse",\n | "stdio",\n | "Streamable HTTP"\n | ],\n | "description": "The transport protocol used for communication. This defines how the data is transmitted between the client and server."\n | },\n | "capabilities": {\n | "type": "object",\n | "description": "Boolean flags indicating which capabilities the server supports",\n | "required": [\n | "tools",\n | "resources",\n | "prompts",\n | "logging"\n | ],\n | "properties": {\n | "tools": {\n | "type": "boolean",\n | "description": "Whether the server supports tools"\n | },\n | "resources": {\n | "type": "boolean",\n | "description": "Whether the server supports resources"\n | },\n | "prompts": {\n | "type": "boolean",\n | "description": "Whether the server supports prompts"\n | },\n | "logging": {\n | "type": "boolean",\n | "description": "Whether the server supports logging"\n | }\n | },\n | "additionalProperties": false\n | },\n | "logging": {\n | "type": "object",\n | "properties": {},\n | "description": "Present if the server supports sending log messages to the client.",\n | "additionalProperties": true\n | },\n | "tools": {\n | "type": "array",\n | "items": {\n | "$ref": "#/definitions/Tool"\n | },\n | "description": "A list of tools available in the mcp api. Each tool has a name, description, and input schema that defines the expected input format."\n | },\n | "resources": {\n | "type": "array",\n | "items": {\n | "$ref": "#/definitions/Resource"\n | },\n | "description": "A list of resources available in the mcp api. Each resource has a URI, name, description, MIME type, and annotations that provide additional metadata."\n | },\n | "prompts": {\n | "type": "array",\n | "items": {\n | "$ref": "#/definitions/Prompt"\n | },\n | "description": "A list of prompts available in the mcp api. Each prompt has a name, description, and arguments that define the expected input format for the prompt."\n | },\n | "additionalProperties": false\n | }\n |}\n |'))};
|
|
2059
2059
|
p(Wsb,"amf.mcp.internal.plugins.parse.schema.MCPSchema$",{KKe:1,KHd:1});var Xsb;function Ysb(){this.jtb=this.ktb=null;this.IV=0}Ysb.prototype=new UMa;Ysb.prototype.constructor=Ysb;Ysb.prototype.Bnd=function(){Xsb||(Xsb=new Wsb);return Xsb};p(Ysb,"amf.mcp.internal.plugins.parse.schema.MCPSchemaLoader$",{LKe:1,LHd:1});var Zsb;function $sb(){Zsb||(Zsb=new Ysb);return Zsb}function atb(a){this.lGd=a}atb.prototype=new n;atb.prototype.constructor=atb;atb.prototype.sg=function(){return(0,this.lGd)()};
|
|
2060
2060
|
p(atb,"amf.shapes.client.platform.BaseShapesConfiguration$$Lambda$1",{OKe:1,tU:1});function btb(a){this.nGd=a}btb.prototype=new n;btb.prototype.constructor=btb;btb.prototype.sg=function(){return(0,this.nGd)()};p(btb,"amf.shapes.client.platform.ShapesConfiguration$$Lambda$1",{UKe:1,tU:1});function ctb(a){this.pGd=a}ctb.prototype=new n;ctb.prototype.constructor=ctb;ctb.prototype.sg=function(){return(0,this.pGd)()};
|
|
2061
2061
|
p(ctb,"amf.shapes.client.platform.config.JsonLDSchemaConfiguration$$Lambda$1",{ZKe:1,tU:1});function dtb(a){this.rGd=a}dtb.prototype=new n;dtb.prototype.constructor=dtb;dtb.prototype.sg=function(){return(0,this.rGd)()};p(dtb,"amf.shapes.client.platform.config.SemanticJsonSchemaConfiguration$$Lambda$1",{eLe:1,tU:1});function etb(a){V();a=a.QDa().z();V().ES();return lK(new mK,a)}function ftb(a){return!!(a&&a.$classData&&a.$classData.ed.hrb)}function gtb(){}gtb.prototype=new n;
|
package/package.json
CHANGED
|
@@ -6811,6 +6811,8 @@ declare module "amf-client-js" {
|
|
|
6811
6811
|
static readonly PAYLOAD: ProfileName;
|
|
6812
6812
|
static readonly RAML08: ProfileName;
|
|
6813
6813
|
static readonly RAML10: ProfileName;
|
|
6814
|
+
static readonly MCP: ProfileName;
|
|
6815
|
+
static readonly AGENT_FABRIC: ProfileName;
|
|
6814
6816
|
}
|
|
6815
6817
|
export class PropertyDependencies implements DomainElement {
|
|
6816
6818
|
customDomainProperties: Array<DomainExtension>;
|
|
@@ -8897,6 +8899,8 @@ declare module "amf-client-js" {
|
|
|
8897
8899
|
static readonly PAYLOAD: Spec;
|
|
8898
8900
|
static readonly RAML08: Spec;
|
|
8899
8901
|
static readonly RAML10: Spec;
|
|
8902
|
+
static readonly MCP: Spec;
|
|
8903
|
+
static readonly AGENT_FABRIC: Spec;
|
|
8900
8904
|
|
|
8901
8905
|
static apply(name: string): Spec;
|
|
8902
8906
|
}
|