@roarkanalytics/sdk 7.9.0 → 8.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/client.d.mts +20 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +20 -5
- package/client.d.ts.map +1 -1
- package/client.js +21 -3
- package/client.js.map +1 -1
- package/client.mjs +21 -3
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agent-connection.d.mts +1952 -0
- package/resources/agent-connection.d.mts.map +1 -0
- package/resources/agent-connection.d.ts +1952 -0
- package/resources/agent-connection.d.ts.map +1 -0
- package/resources/agent-connection.js +173 -0
- package/resources/agent-connection.js.map +1 -0
- package/resources/agent-connection.mjs +169 -0
- package/resources/agent-connection.mjs.map +1 -0
- package/resources/agent-conversation.d.mts +110 -0
- package/resources/agent-conversation.d.mts.map +1 -0
- package/resources/agent-conversation.d.ts +110 -0
- package/resources/agent-conversation.d.ts.map +1 -0
- package/resources/agent-conversation.js +41 -0
- package/resources/agent-conversation.js.map +1 -0
- package/resources/agent-conversation.mjs +37 -0
- package/resources/agent-conversation.mjs.map +1 -0
- package/resources/agent-draft.d.mts +101 -35
- package/resources/agent-draft.d.mts.map +1 -1
- package/resources/agent-draft.d.ts +101 -35
- package/resources/agent-draft.d.ts.map +1 -1
- package/resources/agent-endpoint.d.mts +4 -4
- package/resources/agent-endpoint.d.mts.map +1 -1
- package/resources/agent-endpoint.d.ts +4 -4
- package/resources/agent-endpoint.d.ts.map +1 -1
- package/resources/agent-setup.d.mts +1057 -0
- package/resources/agent-setup.d.mts.map +1 -0
- package/resources/agent-setup.d.ts +1057 -0
- package/resources/agent-setup.d.ts.map +1 -0
- package/resources/agent-setup.js +113 -0
- package/resources/agent-setup.js.map +1 -0
- package/resources/agent-setup.mjs +109 -0
- package/resources/agent-setup.mjs.map +1 -0
- package/resources/agent-version.d.mts +57 -18
- package/resources/agent-version.d.mts.map +1 -1
- package/resources/agent-version.d.ts +57 -18
- package/resources/agent-version.d.ts.map +1 -1
- package/resources/agent.d.mts +263 -4
- package/resources/agent.d.mts.map +1 -1
- package/resources/agent.d.ts +263 -4
- package/resources/agent.d.ts.map +1 -1
- package/resources/calendar-connection.d.mts +834 -56
- package/resources/calendar-connection.d.mts.map +1 -1
- package/resources/calendar-connection.d.ts +834 -56
- package/resources/calendar-connection.d.ts.map +1 -1
- package/resources/calendar-connection.js +127 -8
- package/resources/calendar-connection.js.map +1 -1
- package/resources/calendar-connection.mjs +127 -8
- package/resources/calendar-connection.mjs.map +1 -1
- package/resources/call.d.mts +2 -2
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +2 -2
- package/resources/call.d.ts.map +1 -1
- package/resources/config.d.mts +78 -36
- package/resources/config.d.mts.map +1 -1
- package/resources/config.d.ts +78 -36
- package/resources/config.d.ts.map +1 -1
- package/resources/conversation.d.mts +156 -0
- package/resources/conversation.d.mts.map +1 -0
- package/resources/conversation.d.ts +156 -0
- package/resources/conversation.d.ts.map +1 -0
- package/resources/conversation.js +40 -0
- package/resources/conversation.js.map +1 -0
- package/resources/conversation.mjs +36 -0
- package/resources/conversation.mjs.map +1 -0
- package/resources/customer-flow-edge-case.d.mts +637 -40
- package/resources/customer-flow-edge-case.d.mts.map +1 -1
- package/resources/customer-flow-edge-case.d.ts +637 -40
- package/resources/customer-flow-edge-case.d.ts.map +1 -1
- package/resources/customer-flow.d.mts +2583 -156
- package/resources/customer-flow.d.mts.map +1 -1
- package/resources/customer-flow.d.ts +2583 -156
- package/resources/customer-flow.d.ts.map +1 -1
- package/resources/{customer-profile.d.mts → customer.d.mts} +287 -92
- package/resources/customer.d.mts.map +1 -0
- package/resources/{customer-profile.d.ts → customer.d.ts} +287 -92
- package/resources/customer.d.ts.map +1 -0
- package/resources/customer.js +180 -0
- package/resources/customer.js.map +1 -0
- package/resources/customer.mjs +176 -0
- package/resources/customer.mjs.map +1 -0
- package/resources/index.d.mts +7 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +7 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +13 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +6 -1
- package/resources/index.mjs.map +1 -1
- package/resources/mcp-server.d.mts +588 -0
- package/resources/mcp-server.d.mts.map +1 -0
- package/resources/mcp-server.d.ts +588 -0
- package/resources/mcp-server.d.ts.map +1 -0
- package/resources/mcp-server.js +109 -0
- package/resources/mcp-server.js.map +1 -0
- package/resources/mcp-server.mjs +105 -0
- package/resources/mcp-server.mjs.map +1 -0
- package/resources/metric-policy.d.mts +5 -4
- package/resources/metric-policy.d.mts.map +1 -1
- package/resources/metric-policy.d.ts +5 -4
- package/resources/metric-policy.d.ts.map +1 -1
- package/resources/metric-policy.js +1 -1
- package/resources/metric-policy.mjs +1 -1
- package/resources/metric-variant.d.mts +4 -1
- package/resources/metric-variant.d.mts.map +1 -1
- package/resources/metric-variant.d.ts +4 -1
- package/resources/metric-variant.d.ts.map +1 -1
- package/resources/metric.d.mts +7 -2
- package/resources/metric.d.mts.map +1 -1
- package/resources/metric.d.ts +7 -2
- package/resources/metric.d.ts.map +1 -1
- package/resources/simulation-environment.d.mts +366 -0
- package/resources/simulation-environment.d.mts.map +1 -1
- package/resources/simulation-environment.d.ts +366 -0
- package/resources/simulation-environment.d.ts.map +1 -1
- package/resources/simulation-job.d.mts +12 -8
- package/resources/simulation-job.d.mts.map +1 -1
- package/resources/simulation-job.d.ts +12 -8
- package/resources/simulation-job.d.ts.map +1 -1
- package/resources/simulation-persona.d.mts +25 -15
- package/resources/simulation-persona.d.mts.map +1 -1
- package/resources/simulation-persona.d.ts +25 -15
- package/resources/simulation-persona.d.ts.map +1 -1
- package/resources/simulation-run-plan-job.d.mts +32 -6
- package/resources/simulation-run-plan-job.d.mts.map +1 -1
- package/resources/simulation-run-plan-job.d.ts +32 -6
- package/resources/simulation-run-plan-job.d.ts.map +1 -1
- package/resources/simulation-run-plan.d.mts +126 -13
- package/resources/simulation-run-plan.d.mts.map +1 -1
- package/resources/simulation-run-plan.d.ts +126 -13
- package/resources/simulation-run-plan.d.ts.map +1 -1
- package/resources/simulation-template.d.mts +1 -1
- package/resources/simulation-template.d.mts.map +1 -1
- package/resources/simulation-template.d.ts +1 -1
- package/resources/simulation-template.d.ts.map +1 -1
- package/resources/simulation.d.mts +35 -3
- package/resources/simulation.d.mts.map +1 -1
- package/resources/simulation.d.ts +35 -3
- package/resources/simulation.d.ts.map +1 -1
- package/resources/tool.d.mts +565 -6
- package/resources/tool.d.mts.map +1 -1
- package/resources/tool.d.ts +565 -6
- package/resources/tool.d.ts.map +1 -1
- package/resources/tool.js +9 -6
- package/resources/tool.js.map +1 -1
- package/resources/tool.mjs +9 -6
- package/resources/tool.mjs.map +1 -1
- package/resources/usage.d.mts +1 -1
- package/resources/usage.d.mts.map +1 -1
- package/resources/usage.d.ts +1 -1
- package/resources/usage.d.ts.map +1 -1
- package/resources/webhook.d.mts +4 -4
- package/resources/webhook.d.mts.map +1 -1
- package/resources/webhook.d.ts +4 -4
- package/resources/webhook.d.ts.map +1 -1
- package/src/client.ts +200 -34
- package/src/resources/agent-connection.ts +2523 -0
- package/src/resources/agent-conversation.ts +139 -0
- package/src/resources/agent-draft.ts +239 -35
- package/src/resources/agent-endpoint.ts +8 -4
- package/src/resources/agent-setup.ts +1685 -0
- package/src/resources/agent-version.ts +126 -18
- package/src/resources/agent.ts +506 -4
- package/src/resources/calendar-connection.ts +1035 -63
- package/src/resources/call.ts +12 -2
- package/src/resources/config.ts +198 -36
- package/src/resources/conversation.ts +205 -0
- package/src/resources/customer-flow-edge-case.ts +709 -40
- package/src/resources/customer-flow.ts +3141 -156
- package/src/resources/{customer-profile.ts → customer.ts} +406 -294
- package/src/resources/index.ts +91 -17
- package/src/resources/mcp-server.ts +786 -0
- package/src/resources/metric-policy.ts +5 -4
- package/src/resources/metric-variant.ts +4 -1
- package/src/resources/metric.ts +7 -2
- package/src/resources/simulation-environment.ts +414 -0
- package/src/resources/simulation-job.ts +14 -8
- package/src/resources/simulation-persona.ts +25 -15
- package/src/resources/simulation-run-plan-job.ts +47 -6
- package/src/resources/simulation-run-plan.ts +140 -0
- package/src/resources/simulation-template.ts +1 -0
- package/src/resources/simulation.ts +39 -0
- package/src/resources/tool.ts +697 -6
- package/src/resources/usage.ts +6 -1
- package/src/resources/webhook.ts +8 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/customer-profile.d.mts.map +0 -1
- package/resources/customer-profile.d.ts.map +0 -1
- package/resources/customer-profile.js +0 -141
- package/resources/customer-profile.js.map +0 -1
- package/resources/customer-profile.mjs +0 -137
- package/resources/customer-profile.mjs.map +0 -1
package/resources/index.js
CHANGED
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Webhook = exports.Usage = exports.Tool = exports.SimulationToolFixture = exports.SimulationTemplate = exports.SimulationRunPlanJob = exports.SimulationRunPlan = exports.SimulationRunGroup = exports.SimulationPersona = exports.SimulationJobToolMock = exports.SimulationJob = exports.SimulationGroup = exports.SimulationEnvironment = exports.SimulationAudioClip = exports.Simulation = exports.Project = exports.PhoneNumber = exports.MetricVariant = exports.MetricPolicy = exports.MetricCollectionJob = exports.Metric = exports.Me = exports.LiveReport = exports.Health = exports.HTTPRequestDefinition = exports.Dashboard = exports.
|
|
4
|
+
exports.Webhook = exports.Usage = exports.Tool = exports.SimulationToolFixture = exports.SimulationTemplate = exports.SimulationRunPlanJob = exports.SimulationRunPlan = exports.SimulationRunGroup = exports.SimulationPersona = exports.SimulationJobToolMock = exports.SimulationJob = exports.SimulationGroup = exports.SimulationEnvironment = exports.SimulationAudioClip = exports.Simulation = exports.Project = exports.PhoneNumber = exports.MetricVariant = exports.MetricPolicy = exports.MetricCollectionJob = exports.Metric = exports.Me = exports.McpServer = exports.LiveReport = exports.Health = exports.HTTPRequestDefinition = exports.Dashboard = exports.CustomerFlowEdgeCase = exports.CustomerFlow = exports.Customer = exports.Conversation = exports.Config = exports.Call = exports.CalendarConnection = exports.Benchmark = exports.AutoimproveJob = exports.Analytics = exports.AgentVersion = exports.AgentSetup = exports.AgentPrompt = exports.AgentEndpoint = exports.AgentDraft = exports.AgentConversation = exports.AgentConnection = exports.AgentConfig = exports.Agent = void 0;
|
|
5
5
|
var agent_1 = require("./agent.js");
|
|
6
6
|
Object.defineProperty(exports, "Agent", { enumerable: true, get: function () { return agent_1.Agent; } });
|
|
7
7
|
var agent_config_1 = require("./agent-config.js");
|
|
8
8
|
Object.defineProperty(exports, "AgentConfig", { enumerable: true, get: function () { return agent_config_1.AgentConfig; } });
|
|
9
|
+
var agent_connection_1 = require("./agent-connection.js");
|
|
10
|
+
Object.defineProperty(exports, "AgentConnection", { enumerable: true, get: function () { return agent_connection_1.AgentConnection; } });
|
|
11
|
+
var agent_conversation_1 = require("./agent-conversation.js");
|
|
12
|
+
Object.defineProperty(exports, "AgentConversation", { enumerable: true, get: function () { return agent_conversation_1.AgentConversation; } });
|
|
9
13
|
var agent_draft_1 = require("./agent-draft.js");
|
|
10
14
|
Object.defineProperty(exports, "AgentDraft", { enumerable: true, get: function () { return agent_draft_1.AgentDraft; } });
|
|
11
15
|
var agent_endpoint_1 = require("./agent-endpoint.js");
|
|
12
16
|
Object.defineProperty(exports, "AgentEndpoint", { enumerable: true, get: function () { return agent_endpoint_1.AgentEndpoint; } });
|
|
13
17
|
var agent_prompt_1 = require("./agent-prompt.js");
|
|
14
18
|
Object.defineProperty(exports, "AgentPrompt", { enumerable: true, get: function () { return agent_prompt_1.AgentPrompt; } });
|
|
19
|
+
var agent_setup_1 = require("./agent-setup.js");
|
|
20
|
+
Object.defineProperty(exports, "AgentSetup", { enumerable: true, get: function () { return agent_setup_1.AgentSetup; } });
|
|
15
21
|
var agent_version_1 = require("./agent-version.js");
|
|
16
22
|
Object.defineProperty(exports, "AgentVersion", { enumerable: true, get: function () { return agent_version_1.AgentVersion; } });
|
|
17
23
|
var analytics_1 = require("./analytics.js");
|
|
@@ -26,12 +32,14 @@ var call_1 = require("./call.js");
|
|
|
26
32
|
Object.defineProperty(exports, "Call", { enumerable: true, get: function () { return call_1.Call; } });
|
|
27
33
|
var config_1 = require("./config.js");
|
|
28
34
|
Object.defineProperty(exports, "Config", { enumerable: true, get: function () { return config_1.Config; } });
|
|
35
|
+
var conversation_1 = require("./conversation.js");
|
|
36
|
+
Object.defineProperty(exports, "Conversation", { enumerable: true, get: function () { return conversation_1.Conversation; } });
|
|
37
|
+
var customer_1 = require("./customer.js");
|
|
38
|
+
Object.defineProperty(exports, "Customer", { enumerable: true, get: function () { return customer_1.Customer; } });
|
|
29
39
|
var customer_flow_1 = require("./customer-flow.js");
|
|
30
40
|
Object.defineProperty(exports, "CustomerFlow", { enumerable: true, get: function () { return customer_flow_1.CustomerFlow; } });
|
|
31
41
|
var customer_flow_edge_case_1 = require("./customer-flow-edge-case.js");
|
|
32
42
|
Object.defineProperty(exports, "CustomerFlowEdgeCase", { enumerable: true, get: function () { return customer_flow_edge_case_1.CustomerFlowEdgeCase; } });
|
|
33
|
-
var customer_profile_1 = require("./customer-profile.js");
|
|
34
|
-
Object.defineProperty(exports, "CustomerProfile", { enumerable: true, get: function () { return customer_profile_1.CustomerProfile; } });
|
|
35
43
|
var dashboard_1 = require("./dashboard.js");
|
|
36
44
|
Object.defineProperty(exports, "Dashboard", { enumerable: true, get: function () { return dashboard_1.Dashboard; } });
|
|
37
45
|
var http_request_definition_1 = require("./http-request-definition.js");
|
|
@@ -40,6 +48,8 @@ var health_1 = require("./health.js");
|
|
|
40
48
|
Object.defineProperty(exports, "Health", { enumerable: true, get: function () { return health_1.Health; } });
|
|
41
49
|
var live_report_1 = require("./live-report.js");
|
|
42
50
|
Object.defineProperty(exports, "LiveReport", { enumerable: true, get: function () { return live_report_1.LiveReport; } });
|
|
51
|
+
var mcp_server_1 = require("./mcp-server.js");
|
|
52
|
+
Object.defineProperty(exports, "McpServer", { enumerable: true, get: function () { return mcp_server_1.McpServer; } });
|
|
43
53
|
var me_1 = require("./me.js");
|
|
44
54
|
Object.defineProperty(exports, "Me", { enumerable: true, get: function () { return me_1.Me; } });
|
|
45
55
|
var metric_1 = require("./metric.js");
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAWiB;AAVf,8FAAA,KAAK,OAAA;AAWP,kDAWwB;AAVtB,2GAAA,WAAW,OAAA;AAWb,gDAUuB;AATrB,yGAAA,UAAU,OAAA;AAUZ,sDAS0B;AARxB,+GAAA,aAAa,OAAA;AASf,kDAOwB;AANtB,2GAAA,WAAW,OAAA;AAOb,oDAQyB;AAPvB,6GAAA,YAAY,OAAA;AAQd,4CAKqB;AAJnB,sGAAA,SAAS,OAAA;AAKX,wDAc2B;AAbzB,iHAAA,cAAc,OAAA;AAchB,4CAaqB;AAZnB,sGAAA,SAAS,OAAA;AAaX,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAWiB;AAVf,8FAAA,KAAK,OAAA;AAWP,kDAWwB;AAVtB,2GAAA,WAAW,OAAA;AAWb,0DAkB4B;AAjB1B,mHAAA,eAAe,OAAA;AAkBjB,8DAI8B;AAH5B,uHAAA,iBAAiB,OAAA;AAInB,gDAUuB;AATrB,yGAAA,UAAU,OAAA;AAUZ,sDAS0B;AARxB,+GAAA,aAAa,OAAA;AASf,kDAOwB;AANtB,2GAAA,WAAW,OAAA;AAOb,gDAauB;AAZrB,yGAAA,UAAU,OAAA;AAaZ,oDAQyB;AAPvB,6GAAA,YAAY,OAAA;AAQd,4CAKqB;AAJnB,sGAAA,SAAS,OAAA;AAKX,wDAc2B;AAbzB,iHAAA,cAAc,OAAA;AAchB,4CAaqB;AAZnB,sGAAA,SAAS,OAAA;AAaX,gEAyB+B;AAxB7B,yHAAA,kBAAkB,OAAA;AAyBpB,kCAoBgB;AAnBd,4FAAA,IAAI,OAAA;AAoBN,sCAQkB;AAPhB,gGAAA,MAAM,OAAA;AAQR,kDAKwB;AAJtB,4GAAA,YAAY,OAAA;AAKd,0CAsBoB;AArBlB,oGAAA,QAAQ,OAAA;AAsBV,oDAiByB;AAhBvB,6GAAA,YAAY,OAAA;AAiBd,wEAUmC;AATjC,+HAAA,oBAAoB,OAAA;AAUtB,4CAmBqB;AAlBnB,sGAAA,SAAS,OAAA;AAmBX,wEASmC;AARjC,gIAAA,qBAAqB,OAAA;AASvB,sCAA0D;AAAjD,gGAAA,MAAM,OAAA;AACf,gDAgBuB;AAfrB,yGAAA,UAAU,OAAA;AAgBZ,8CAYsB;AAXpB,uGAAA,SAAS,OAAA;AAYX,8BAQc;AAPZ,wFAAA,EAAE,OAAA;AAQJ,sCAQkB;AAPhB,gGAAA,MAAM,OAAA;AAQR,oEAQiC;AAP/B,4HAAA,mBAAmB,OAAA;AAQrB,oDAUyB;AATvB,6GAAA,YAAY,OAAA;AAUd,sDAW0B;AAVxB,+GAAA,aAAa,OAAA;AAWf,kDAYwB;AAXtB,2GAAA,WAAW,OAAA;AAYb,wCAA8D;AAArD,kGAAA,OAAO,OAAA;AAChB,8CAMsB;AALpB,wGAAA,UAAU,OAAA;AAMZ,oEAAoG;AAA3F,4HAAA,mBAAmB,OAAA;AAC5B,sEAUkC;AAThC,+HAAA,qBAAqB,OAAA;AAUvB,0DAW4B;AAV1B,mHAAA,eAAe,OAAA;AAWjB,sDAK0B;AAJxB,+GAAA,aAAa,OAAA;AAKf,0EAA2G;AAAlG,iIAAA,qBAAqB,OAAA;AAC9B,8DAS8B;AAR5B,uHAAA,iBAAiB,OAAA;AASnB,kEASgC;AAR9B,0HAAA,kBAAkB,OAAA;AASpB,gEAU+B;AAT7B,wHAAA,iBAAiB,OAAA;AAUnB,wEAcmC;AAbjC,+HAAA,oBAAoB,OAAA;AActB,gEAAgG;AAAvF,yHAAA,kBAAkB,OAAA;AAC3B,wEASmC;AARjC,gIAAA,qBAAqB,OAAA;AASvB,kCAUgB;AATd,4FAAA,IAAI,OAAA;AAUN,oCAA4E;AAAnE,8FAAA,KAAK,OAAA;AACd,wCAQmB;AAPjB,kGAAA,OAAO,OAAA"}
|
package/resources/index.mjs
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
export { Agent, } from "./agent.mjs";
|
|
3
3
|
export { AgentConfig, } from "./agent-config.mjs";
|
|
4
|
+
export { AgentConnection, } from "./agent-connection.mjs";
|
|
5
|
+
export { AgentConversation, } from "./agent-conversation.mjs";
|
|
4
6
|
export { AgentDraft, } from "./agent-draft.mjs";
|
|
5
7
|
export { AgentEndpoint, } from "./agent-endpoint.mjs";
|
|
6
8
|
export { AgentPrompt, } from "./agent-prompt.mjs";
|
|
9
|
+
export { AgentSetup, } from "./agent-setup.mjs";
|
|
7
10
|
export { AgentVersion, } from "./agent-version.mjs";
|
|
8
11
|
export { Analytics, } from "./analytics.mjs";
|
|
9
12
|
export { AutoimproveJob, } from "./autoimprove-job.mjs";
|
|
@@ -11,13 +14,15 @@ export { Benchmark, } from "./benchmark.mjs";
|
|
|
11
14
|
export { CalendarConnection, } from "./calendar-connection.mjs";
|
|
12
15
|
export { Call, } from "./call.mjs";
|
|
13
16
|
export { Config, } from "./config.mjs";
|
|
17
|
+
export { Conversation, } from "./conversation.mjs";
|
|
18
|
+
export { Customer, } from "./customer.mjs";
|
|
14
19
|
export { CustomerFlow, } from "./customer-flow.mjs";
|
|
15
20
|
export { CustomerFlowEdgeCase, } from "./customer-flow-edge-case.mjs";
|
|
16
|
-
export { CustomerProfile, } from "./customer-profile.mjs";
|
|
17
21
|
export { Dashboard, } from "./dashboard.mjs";
|
|
18
22
|
export { HTTPRequestDefinition, } from "./http-request-definition.mjs";
|
|
19
23
|
export { Health } from "./health.mjs";
|
|
20
24
|
export { LiveReport, } from "./live-report.mjs";
|
|
25
|
+
export { McpServer, } from "./mcp-server.mjs";
|
|
21
26
|
export { Me, } from "./me.mjs";
|
|
22
27
|
export { Metric, } from "./metric.mjs";
|
|
23
28
|
export { MetricCollectionJob, } from "./metric-collection-job.mjs";
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,KAAK,GAUN,oBAAgB;AACjB,OAAO,EACL,WAAW,GAUZ,2BAAuB;AACxB,OAAO,EACL,UAAU,GASX,0BAAsB;AACvB,OAAO,EACL,aAAa,GAQd,6BAAyB;AAC1B,OAAO,EACL,WAAW,GAMZ,2BAAuB;AACxB,OAAO,EACL,YAAY,GAOb,4BAAwB;AACzB,OAAO,EACL,SAAS,GAIV,wBAAoB;AACrB,OAAO,EACL,cAAc,GAaf,8BAA0B;AAC3B,OAAO,EACL,SAAS,GAYV,wBAAoB;AACrB,OAAO,EACL,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,KAAK,GAUN,oBAAgB;AACjB,OAAO,EACL,WAAW,GAUZ,2BAAuB;AACxB,OAAO,EACL,eAAe,GAiBhB,+BAA2B;AAC5B,OAAO,EACL,iBAAiB,GAGlB,iCAA6B;AAC9B,OAAO,EACL,UAAU,GASX,0BAAsB;AACvB,OAAO,EACL,aAAa,GAQd,6BAAyB;AAC1B,OAAO,EACL,WAAW,GAMZ,2BAAuB;AACxB,OAAO,EACL,UAAU,GAYX,0BAAsB;AACvB,OAAO,EACL,YAAY,GAOb,4BAAwB;AACzB,OAAO,EACL,SAAS,GAIV,wBAAoB;AACrB,OAAO,EACL,cAAc,GAaf,8BAA0B;AAC3B,OAAO,EACL,SAAS,GAYV,wBAAoB;AACrB,OAAO,EACL,kBAAkB,GAwBnB,kCAA8B;AAC/B,OAAO,EACL,IAAI,GAmBL,mBAAe;AAChB,OAAO,EACL,MAAM,GAOP,qBAAiB;AAClB,OAAO,EACL,YAAY,GAIb,2BAAuB;AACxB,OAAO,EACL,QAAQ,GAqBT,uBAAmB;AACpB,OAAO,EACL,YAAY,GAgBb,4BAAwB;AACzB,OAAO,EACL,oBAAoB,GASrB,sCAAkC;AACnC,OAAO,EACL,SAAS,GAkBV,wBAAoB;AACrB,OAAO,EACL,qBAAqB,GAQtB,sCAAkC;AACnC,OAAO,EAAE,MAAM,EAA0B,qBAAiB;AAC1D,OAAO,EACL,UAAU,GAeX,0BAAsB;AACvB,OAAO,EACL,SAAS,GAWV,yBAAqB;AACtB,OAAO,EACL,EAAE,GAOH,iBAAa;AACd,OAAO,EACL,MAAM,GAOP,qBAAiB;AAClB,OAAO,EACL,mBAAmB,GAOpB,oCAAgC;AACjC,OAAO,EACL,YAAY,GASb,4BAAwB;AACzB,OAAO,EACL,aAAa,GAUd,6BAAyB;AAC1B,OAAO,EACL,WAAW,GAWZ,2BAAuB;AACxB,OAAO,EAAE,OAAO,EAA4B,sBAAkB;AAC9D,OAAO,EACL,UAAU,GAKX,yBAAqB;AACtB,OAAO,EAAE,mBAAmB,EAAwC,oCAAgC;AACpG,OAAO,EACL,qBAAqB,GAStB,qCAAiC;AAClC,OAAO,EACL,eAAe,GAUhB,+BAA2B;AAC5B,OAAO,EACL,aAAa,GAId,6BAAyB;AAC1B,OAAO,EAAE,qBAAqB,EAA0C,uCAAmC;AAC3G,OAAO,EACL,iBAAiB,GAQlB,iCAA6B;AAC9B,OAAO,EACL,kBAAkB,GAQnB,mCAA+B;AAChC,OAAO,EACL,iBAAiB,GASlB,kCAA8B;AAC/B,OAAO,EACL,oBAAoB,GAarB,sCAAkC;AACnC,OAAO,EAAE,kBAAkB,EAAuC,kCAA8B;AAChG,OAAO,EACL,qBAAqB,GAQtB,sCAAkC;AACnC,OAAO,EACL,IAAI,GASL,mBAAe;AAChB,OAAO,EAAE,KAAK,EAA8C,oBAAgB;AAC5E,OAAO,EACL,OAAO,GAOR,sBAAkB"}
|
|
@@ -0,0 +1,588 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
export declare class McpServer extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Connects to the server, reads its tools, then stores it for the project. A
|
|
7
|
+
* server that does not answer, or refuses the credential, returns 400 and nothing
|
|
8
|
+
* is stored. The credential is encrypted and never returned.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const mcpServer = await client.mcpServer.create({
|
|
13
|
+
* label: 'CRM',
|
|
14
|
+
* url: 'https://mcp.example.com/mcp',
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
create(body: McpServerCreateParams, options?: RequestOptions): APIPromise<McpServerCreateResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Renames the server or replaces its credential. A new credential is checked by
|
|
21
|
+
* connecting with it first; one the server refuses returns 400 and changes
|
|
22
|
+
* nothing.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const mcpServer = await client.mcpServer.update(
|
|
27
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
28
|
+
* );
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
update(serverID: string, body?: McpServerUpdateParams | null | undefined, options?: RequestOptions): APIPromise<McpServerUpdateResponse>;
|
|
32
|
+
/**
|
|
33
|
+
* The project's MCP servers, by label, each with the tools it offered when last
|
|
34
|
+
* checked. Credentials are never returned.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const mcpServers = await client.mcpServer.list();
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
list(options?: RequestOptions): APIPromise<McpServerListResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* Deletes the server and its stored credential. A server a tool still uses returns
|
|
44
|
+
* 409, naming the tools.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```ts
|
|
48
|
+
* const mcpServer = await client.mcpServer.delete(
|
|
49
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
50
|
+
* );
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
delete(serverID: string, options?: RequestOptions): APIPromise<McpServerDeleteResponse>;
|
|
54
|
+
/**
|
|
55
|
+
* Connects to a server and returns the tools it offers, without storing anything.
|
|
56
|
+
* Use it to check a url and credential before connecting.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```ts
|
|
60
|
+
* const response = await client.mcpServer.discover({
|
|
61
|
+
* url: 'https://mcp.example.com/mcp',
|
|
62
|
+
* });
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
discover(body: McpServerDiscoverParams, options?: RequestOptions): APIPromise<McpServerDiscoverResponse>;
|
|
66
|
+
/**
|
|
67
|
+
* One MCP server. The credential is never returned.
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* ```ts
|
|
71
|
+
* const response = await client.mcpServer.getByID(
|
|
72
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
73
|
+
* );
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
getByID(serverID: string, options?: RequestOptions): APIPromise<McpServerGetByIDResponse>;
|
|
77
|
+
/**
|
|
78
|
+
* Connects to the server again and records the tools it offers now. Agents keep
|
|
79
|
+
* calling the tools they were given; a new tool reaches an agent only once you add
|
|
80
|
+
* it.
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* ```ts
|
|
84
|
+
* const response = await client.mcpServer.refresh(
|
|
85
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
86
|
+
* );
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
refresh(serverID: string, options?: RequestOptions): APIPromise<McpServerRefreshResponse>;
|
|
90
|
+
}
|
|
91
|
+
export interface McpServerCreateResponse {
|
|
92
|
+
data: McpServerCreateResponse.Data;
|
|
93
|
+
}
|
|
94
|
+
export declare namespace McpServerCreateResponse {
|
|
95
|
+
interface Data {
|
|
96
|
+
/**
|
|
97
|
+
* The id a tool names the server by
|
|
98
|
+
*/
|
|
99
|
+
id: string;
|
|
100
|
+
/**
|
|
101
|
+
* The header a HEADER credential is sent in
|
|
102
|
+
*/
|
|
103
|
+
authHeaderName: string | null;
|
|
104
|
+
/**
|
|
105
|
+
* How the server authenticates. The credential is never returned.
|
|
106
|
+
*/
|
|
107
|
+
authType: 'NONE' | 'BEARER' | 'HEADER';
|
|
108
|
+
/**
|
|
109
|
+
* The tools calling on this server, and whether it still offers each
|
|
110
|
+
*/
|
|
111
|
+
boundTools: Array<Data.BoundTool>;
|
|
112
|
+
/**
|
|
113
|
+
* Changes when the server changes the tools it offers
|
|
114
|
+
*/
|
|
115
|
+
catalogHash: string;
|
|
116
|
+
createdAt: string;
|
|
117
|
+
/**
|
|
118
|
+
* The MCP registry entry it was connected from
|
|
119
|
+
*/
|
|
120
|
+
directoryKey: string | null;
|
|
121
|
+
/**
|
|
122
|
+
* The server's own advice on using it, for you to read. Never shown to the agent.
|
|
123
|
+
*/
|
|
124
|
+
instructions: string | null;
|
|
125
|
+
label: string;
|
|
126
|
+
lastDiscoveredAt: string;
|
|
127
|
+
/**
|
|
128
|
+
* The name the server gives itself
|
|
129
|
+
*/
|
|
130
|
+
serverName: string | null;
|
|
131
|
+
serverVersion: string | null;
|
|
132
|
+
tools: Array<Data.Tool>;
|
|
133
|
+
transport: 'STREAMABLE_HTTP' | 'SSE';
|
|
134
|
+
updatedAt: string;
|
|
135
|
+
url: string;
|
|
136
|
+
}
|
|
137
|
+
namespace Data {
|
|
138
|
+
interface BoundTool {
|
|
139
|
+
name: string;
|
|
140
|
+
/**
|
|
141
|
+
* False when the server stopped offering it: agents lose the tool
|
|
142
|
+
*/
|
|
143
|
+
offered: boolean;
|
|
144
|
+
/**
|
|
145
|
+
* The tool it calls, as the server names it
|
|
146
|
+
*/
|
|
147
|
+
remoteToolName: string;
|
|
148
|
+
toolDefinitionId: string;
|
|
149
|
+
}
|
|
150
|
+
interface Tool {
|
|
151
|
+
description: string | null;
|
|
152
|
+
/**
|
|
153
|
+
* The tool as the server names it
|
|
154
|
+
*/
|
|
155
|
+
name: string;
|
|
156
|
+
/**
|
|
157
|
+
* The server's hint that the tool only reads
|
|
158
|
+
*/
|
|
159
|
+
readOnly: boolean | null;
|
|
160
|
+
/**
|
|
161
|
+
* What a tool for it is called by default: the name with unusable characters
|
|
162
|
+
* replaced
|
|
163
|
+
*/
|
|
164
|
+
suggestedName: string | null;
|
|
165
|
+
/**
|
|
166
|
+
* Why an agent could not use this tool, such as a name a built-in tool already has
|
|
167
|
+
*/
|
|
168
|
+
unavailableReason: string | null;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
export interface McpServerUpdateResponse {
|
|
173
|
+
data: McpServerUpdateResponse.Data;
|
|
174
|
+
}
|
|
175
|
+
export declare namespace McpServerUpdateResponse {
|
|
176
|
+
interface Data {
|
|
177
|
+
/**
|
|
178
|
+
* The id a tool names the server by
|
|
179
|
+
*/
|
|
180
|
+
id: string;
|
|
181
|
+
/**
|
|
182
|
+
* The header a HEADER credential is sent in
|
|
183
|
+
*/
|
|
184
|
+
authHeaderName: string | null;
|
|
185
|
+
/**
|
|
186
|
+
* How the server authenticates. The credential is never returned.
|
|
187
|
+
*/
|
|
188
|
+
authType: 'NONE' | 'BEARER' | 'HEADER';
|
|
189
|
+
/**
|
|
190
|
+
* The tools calling on this server, and whether it still offers each
|
|
191
|
+
*/
|
|
192
|
+
boundTools: Array<Data.BoundTool>;
|
|
193
|
+
/**
|
|
194
|
+
* Changes when the server changes the tools it offers
|
|
195
|
+
*/
|
|
196
|
+
catalogHash: string;
|
|
197
|
+
createdAt: string;
|
|
198
|
+
/**
|
|
199
|
+
* The MCP registry entry it was connected from
|
|
200
|
+
*/
|
|
201
|
+
directoryKey: string | null;
|
|
202
|
+
/**
|
|
203
|
+
* The server's own advice on using it, for you to read. Never shown to the agent.
|
|
204
|
+
*/
|
|
205
|
+
instructions: string | null;
|
|
206
|
+
label: string;
|
|
207
|
+
lastDiscoveredAt: string;
|
|
208
|
+
/**
|
|
209
|
+
* The name the server gives itself
|
|
210
|
+
*/
|
|
211
|
+
serverName: string | null;
|
|
212
|
+
serverVersion: string | null;
|
|
213
|
+
tools: Array<Data.Tool>;
|
|
214
|
+
transport: 'STREAMABLE_HTTP' | 'SSE';
|
|
215
|
+
updatedAt: string;
|
|
216
|
+
url: string;
|
|
217
|
+
}
|
|
218
|
+
namespace Data {
|
|
219
|
+
interface BoundTool {
|
|
220
|
+
name: string;
|
|
221
|
+
/**
|
|
222
|
+
* False when the server stopped offering it: agents lose the tool
|
|
223
|
+
*/
|
|
224
|
+
offered: boolean;
|
|
225
|
+
/**
|
|
226
|
+
* The tool it calls, as the server names it
|
|
227
|
+
*/
|
|
228
|
+
remoteToolName: string;
|
|
229
|
+
toolDefinitionId: string;
|
|
230
|
+
}
|
|
231
|
+
interface Tool {
|
|
232
|
+
description: string | null;
|
|
233
|
+
/**
|
|
234
|
+
* The tool as the server names it
|
|
235
|
+
*/
|
|
236
|
+
name: string;
|
|
237
|
+
/**
|
|
238
|
+
* The server's hint that the tool only reads
|
|
239
|
+
*/
|
|
240
|
+
readOnly: boolean | null;
|
|
241
|
+
/**
|
|
242
|
+
* What a tool for it is called by default: the name with unusable characters
|
|
243
|
+
* replaced
|
|
244
|
+
*/
|
|
245
|
+
suggestedName: string | null;
|
|
246
|
+
/**
|
|
247
|
+
* Why an agent could not use this tool, such as a name a built-in tool already has
|
|
248
|
+
*/
|
|
249
|
+
unavailableReason: string | null;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
export interface McpServerListResponse {
|
|
254
|
+
data: Array<McpServerListResponse.Data>;
|
|
255
|
+
}
|
|
256
|
+
export declare namespace McpServerListResponse {
|
|
257
|
+
interface Data {
|
|
258
|
+
/**
|
|
259
|
+
* The id a tool names the server by
|
|
260
|
+
*/
|
|
261
|
+
id: string;
|
|
262
|
+
/**
|
|
263
|
+
* The header a HEADER credential is sent in
|
|
264
|
+
*/
|
|
265
|
+
authHeaderName: string | null;
|
|
266
|
+
/**
|
|
267
|
+
* How the server authenticates. The credential is never returned.
|
|
268
|
+
*/
|
|
269
|
+
authType: 'NONE' | 'BEARER' | 'HEADER';
|
|
270
|
+
/**
|
|
271
|
+
* The tools calling on this server, and whether it still offers each
|
|
272
|
+
*/
|
|
273
|
+
boundTools: Array<Data.BoundTool>;
|
|
274
|
+
/**
|
|
275
|
+
* Changes when the server changes the tools it offers
|
|
276
|
+
*/
|
|
277
|
+
catalogHash: string;
|
|
278
|
+
createdAt: string;
|
|
279
|
+
/**
|
|
280
|
+
* The MCP registry entry it was connected from
|
|
281
|
+
*/
|
|
282
|
+
directoryKey: string | null;
|
|
283
|
+
/**
|
|
284
|
+
* The server's own advice on using it, for you to read. Never shown to the agent.
|
|
285
|
+
*/
|
|
286
|
+
instructions: string | null;
|
|
287
|
+
label: string;
|
|
288
|
+
lastDiscoveredAt: string;
|
|
289
|
+
/**
|
|
290
|
+
* The name the server gives itself
|
|
291
|
+
*/
|
|
292
|
+
serverName: string | null;
|
|
293
|
+
serverVersion: string | null;
|
|
294
|
+
tools: Array<Data.Tool>;
|
|
295
|
+
transport: 'STREAMABLE_HTTP' | 'SSE';
|
|
296
|
+
updatedAt: string;
|
|
297
|
+
url: string;
|
|
298
|
+
}
|
|
299
|
+
namespace Data {
|
|
300
|
+
interface BoundTool {
|
|
301
|
+
name: string;
|
|
302
|
+
/**
|
|
303
|
+
* False when the server stopped offering it: agents lose the tool
|
|
304
|
+
*/
|
|
305
|
+
offered: boolean;
|
|
306
|
+
/**
|
|
307
|
+
* The tool it calls, as the server names it
|
|
308
|
+
*/
|
|
309
|
+
remoteToolName: string;
|
|
310
|
+
toolDefinitionId: string;
|
|
311
|
+
}
|
|
312
|
+
interface Tool {
|
|
313
|
+
description: string | null;
|
|
314
|
+
/**
|
|
315
|
+
* The tool as the server names it
|
|
316
|
+
*/
|
|
317
|
+
name: string;
|
|
318
|
+
/**
|
|
319
|
+
* The server's hint that the tool only reads
|
|
320
|
+
*/
|
|
321
|
+
readOnly: boolean | null;
|
|
322
|
+
/**
|
|
323
|
+
* What a tool for it is called by default: the name with unusable characters
|
|
324
|
+
* replaced
|
|
325
|
+
*/
|
|
326
|
+
suggestedName: string | null;
|
|
327
|
+
/**
|
|
328
|
+
* Why an agent could not use this tool, such as a name a built-in tool already has
|
|
329
|
+
*/
|
|
330
|
+
unavailableReason: string | null;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
export interface McpServerDeleteResponse {
|
|
335
|
+
data: McpServerDeleteResponse.Data;
|
|
336
|
+
}
|
|
337
|
+
export declare namespace McpServerDeleteResponse {
|
|
338
|
+
interface Data {
|
|
339
|
+
id: string;
|
|
340
|
+
deleted: true;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
export interface McpServerDiscoverResponse {
|
|
344
|
+
data: McpServerDiscoverResponse.Data;
|
|
345
|
+
}
|
|
346
|
+
export declare namespace McpServerDiscoverResponse {
|
|
347
|
+
interface Data {
|
|
348
|
+
/**
|
|
349
|
+
* Changes when the server changes the tools it offers
|
|
350
|
+
*/
|
|
351
|
+
catalogHash: string;
|
|
352
|
+
/**
|
|
353
|
+
* The server's own advice on using it, for you to read. Never shown to the agent.
|
|
354
|
+
*/
|
|
355
|
+
instructions: string | null;
|
|
356
|
+
/**
|
|
357
|
+
* The name the server gives itself
|
|
358
|
+
*/
|
|
359
|
+
serverName: string | null;
|
|
360
|
+
serverVersion: string | null;
|
|
361
|
+
tools: Array<Data.Tool>;
|
|
362
|
+
}
|
|
363
|
+
namespace Data {
|
|
364
|
+
interface Tool {
|
|
365
|
+
description: string | null;
|
|
366
|
+
/**
|
|
367
|
+
* The tool as the server names it
|
|
368
|
+
*/
|
|
369
|
+
name: string;
|
|
370
|
+
/**
|
|
371
|
+
* The server's hint that the tool only reads
|
|
372
|
+
*/
|
|
373
|
+
readOnly: boolean | null;
|
|
374
|
+
/**
|
|
375
|
+
* What a tool for it is called by default: the name with unusable characters
|
|
376
|
+
* replaced
|
|
377
|
+
*/
|
|
378
|
+
suggestedName: string | null;
|
|
379
|
+
/**
|
|
380
|
+
* Why an agent could not use this tool, such as a name a built-in tool already has
|
|
381
|
+
*/
|
|
382
|
+
unavailableReason: string | null;
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
export interface McpServerGetByIDResponse {
|
|
387
|
+
data: McpServerGetByIDResponse.Data;
|
|
388
|
+
}
|
|
389
|
+
export declare namespace McpServerGetByIDResponse {
|
|
390
|
+
interface Data {
|
|
391
|
+
/**
|
|
392
|
+
* The id a tool names the server by
|
|
393
|
+
*/
|
|
394
|
+
id: string;
|
|
395
|
+
/**
|
|
396
|
+
* The header a HEADER credential is sent in
|
|
397
|
+
*/
|
|
398
|
+
authHeaderName: string | null;
|
|
399
|
+
/**
|
|
400
|
+
* How the server authenticates. The credential is never returned.
|
|
401
|
+
*/
|
|
402
|
+
authType: 'NONE' | 'BEARER' | 'HEADER';
|
|
403
|
+
/**
|
|
404
|
+
* The tools calling on this server, and whether it still offers each
|
|
405
|
+
*/
|
|
406
|
+
boundTools: Array<Data.BoundTool>;
|
|
407
|
+
/**
|
|
408
|
+
* Changes when the server changes the tools it offers
|
|
409
|
+
*/
|
|
410
|
+
catalogHash: string;
|
|
411
|
+
createdAt: string;
|
|
412
|
+
/**
|
|
413
|
+
* The MCP registry entry it was connected from
|
|
414
|
+
*/
|
|
415
|
+
directoryKey: string | null;
|
|
416
|
+
/**
|
|
417
|
+
* The server's own advice on using it, for you to read. Never shown to the agent.
|
|
418
|
+
*/
|
|
419
|
+
instructions: string | null;
|
|
420
|
+
label: string;
|
|
421
|
+
lastDiscoveredAt: string;
|
|
422
|
+
/**
|
|
423
|
+
* The name the server gives itself
|
|
424
|
+
*/
|
|
425
|
+
serverName: string | null;
|
|
426
|
+
serverVersion: string | null;
|
|
427
|
+
tools: Array<Data.Tool>;
|
|
428
|
+
transport: 'STREAMABLE_HTTP' | 'SSE';
|
|
429
|
+
updatedAt: string;
|
|
430
|
+
url: string;
|
|
431
|
+
}
|
|
432
|
+
namespace Data {
|
|
433
|
+
interface BoundTool {
|
|
434
|
+
name: string;
|
|
435
|
+
/**
|
|
436
|
+
* False when the server stopped offering it: agents lose the tool
|
|
437
|
+
*/
|
|
438
|
+
offered: boolean;
|
|
439
|
+
/**
|
|
440
|
+
* The tool it calls, as the server names it
|
|
441
|
+
*/
|
|
442
|
+
remoteToolName: string;
|
|
443
|
+
toolDefinitionId: string;
|
|
444
|
+
}
|
|
445
|
+
interface Tool {
|
|
446
|
+
description: string | null;
|
|
447
|
+
/**
|
|
448
|
+
* The tool as the server names it
|
|
449
|
+
*/
|
|
450
|
+
name: string;
|
|
451
|
+
/**
|
|
452
|
+
* The server's hint that the tool only reads
|
|
453
|
+
*/
|
|
454
|
+
readOnly: boolean | null;
|
|
455
|
+
/**
|
|
456
|
+
* What a tool for it is called by default: the name with unusable characters
|
|
457
|
+
* replaced
|
|
458
|
+
*/
|
|
459
|
+
suggestedName: string | null;
|
|
460
|
+
/**
|
|
461
|
+
* Why an agent could not use this tool, such as a name a built-in tool already has
|
|
462
|
+
*/
|
|
463
|
+
unavailableReason: string | null;
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
export interface McpServerRefreshResponse {
|
|
468
|
+
data: McpServerRefreshResponse.Data;
|
|
469
|
+
}
|
|
470
|
+
export declare namespace McpServerRefreshResponse {
|
|
471
|
+
interface Data {
|
|
472
|
+
/**
|
|
473
|
+
* The id a tool names the server by
|
|
474
|
+
*/
|
|
475
|
+
id: string;
|
|
476
|
+
/**
|
|
477
|
+
* The header a HEADER credential is sent in
|
|
478
|
+
*/
|
|
479
|
+
authHeaderName: string | null;
|
|
480
|
+
/**
|
|
481
|
+
* How the server authenticates. The credential is never returned.
|
|
482
|
+
*/
|
|
483
|
+
authType: 'NONE' | 'BEARER' | 'HEADER';
|
|
484
|
+
/**
|
|
485
|
+
* The tools calling on this server, and whether it still offers each
|
|
486
|
+
*/
|
|
487
|
+
boundTools: Array<Data.BoundTool>;
|
|
488
|
+
/**
|
|
489
|
+
* Changes when the server changes the tools it offers
|
|
490
|
+
*/
|
|
491
|
+
catalogHash: string;
|
|
492
|
+
createdAt: string;
|
|
493
|
+
/**
|
|
494
|
+
* The MCP registry entry it was connected from
|
|
495
|
+
*/
|
|
496
|
+
directoryKey: string | null;
|
|
497
|
+
/**
|
|
498
|
+
* The server's own advice on using it, for you to read. Never shown to the agent.
|
|
499
|
+
*/
|
|
500
|
+
instructions: string | null;
|
|
501
|
+
label: string;
|
|
502
|
+
lastDiscoveredAt: string;
|
|
503
|
+
/**
|
|
504
|
+
* The name the server gives itself
|
|
505
|
+
*/
|
|
506
|
+
serverName: string | null;
|
|
507
|
+
serverVersion: string | null;
|
|
508
|
+
tools: Array<Data.Tool>;
|
|
509
|
+
transport: 'STREAMABLE_HTTP' | 'SSE';
|
|
510
|
+
updatedAt: string;
|
|
511
|
+
url: string;
|
|
512
|
+
}
|
|
513
|
+
namespace Data {
|
|
514
|
+
interface BoundTool {
|
|
515
|
+
name: string;
|
|
516
|
+
/**
|
|
517
|
+
* False when the server stopped offering it: agents lose the tool
|
|
518
|
+
*/
|
|
519
|
+
offered: boolean;
|
|
520
|
+
/**
|
|
521
|
+
* The tool it calls, as the server names it
|
|
522
|
+
*/
|
|
523
|
+
remoteToolName: string;
|
|
524
|
+
toolDefinitionId: string;
|
|
525
|
+
}
|
|
526
|
+
interface Tool {
|
|
527
|
+
description: string | null;
|
|
528
|
+
/**
|
|
529
|
+
* The tool as the server names it
|
|
530
|
+
*/
|
|
531
|
+
name: string;
|
|
532
|
+
/**
|
|
533
|
+
* The server's hint that the tool only reads
|
|
534
|
+
*/
|
|
535
|
+
readOnly: boolean | null;
|
|
536
|
+
/**
|
|
537
|
+
* What a tool for it is called by default: the name with unusable characters
|
|
538
|
+
* replaced
|
|
539
|
+
*/
|
|
540
|
+
suggestedName: string | null;
|
|
541
|
+
/**
|
|
542
|
+
* Why an agent could not use this tool, such as a name a built-in tool already has
|
|
543
|
+
*/
|
|
544
|
+
unavailableReason: string | null;
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
export interface McpServerCreateParams {
|
|
549
|
+
label: string;
|
|
550
|
+
url: string;
|
|
551
|
+
auth?: {
|
|
552
|
+
[key: string]: unknown;
|
|
553
|
+
};
|
|
554
|
+
directoryKey?: string | null;
|
|
555
|
+
transport?: 'STREAMABLE_HTTP' | 'SSE';
|
|
556
|
+
}
|
|
557
|
+
export interface McpServerUpdateParams {
|
|
558
|
+
/**
|
|
559
|
+
* How the server authenticates. Stored encrypted; never returned.
|
|
560
|
+
*/
|
|
561
|
+
auth?: McpServerUpdateParams.UnionMember0 | McpServerUpdateParams.UnionMember1 | McpServerUpdateParams.UnionMember2;
|
|
562
|
+
label?: string;
|
|
563
|
+
}
|
|
564
|
+
export declare namespace McpServerUpdateParams {
|
|
565
|
+
interface UnionMember0 {
|
|
566
|
+
type: 'NONE';
|
|
567
|
+
}
|
|
568
|
+
interface UnionMember1 {
|
|
569
|
+
token: string;
|
|
570
|
+
type: 'BEARER';
|
|
571
|
+
}
|
|
572
|
+
interface UnionMember2 {
|
|
573
|
+
name: string;
|
|
574
|
+
type: 'HEADER';
|
|
575
|
+
value: string;
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
export interface McpServerDiscoverParams {
|
|
579
|
+
url: string;
|
|
580
|
+
auth?: {
|
|
581
|
+
[key: string]: unknown;
|
|
582
|
+
};
|
|
583
|
+
transport?: 'STREAMABLE_HTTP' | 'SSE';
|
|
584
|
+
}
|
|
585
|
+
export declare namespace McpServer {
|
|
586
|
+
export { type McpServerCreateResponse as McpServerCreateResponse, type McpServerUpdateResponse as McpServerUpdateResponse, type McpServerListResponse as McpServerListResponse, type McpServerDeleteResponse as McpServerDeleteResponse, type McpServerDiscoverResponse as McpServerDiscoverResponse, type McpServerGetByIDResponse as McpServerGetByIDResponse, type McpServerRefreshResponse as McpServerRefreshResponse, type McpServerCreateParams as McpServerCreateParams, type McpServerUpdateParams as McpServerUpdateParams, type McpServerDiscoverParams as McpServerDiscoverParams, };
|
|
587
|
+
}
|
|
588
|
+
//# sourceMappingURL=mcp-server.d.mts.map
|