@agentica/core 0.17.0 → 0.18.0
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/lib/context/internal/AgenticaOperationComposer.spec.js +40 -20
- package/lib/context/internal/AgenticaOperationComposer.spec.js.map +1 -1
- package/lib/functional/assertHttpLlmApplication.js +44 -44
- package/lib/functional/assertMcpLlmApplication.d.ts +5 -2
- package/lib/functional/assertMcpLlmApplication.js +37 -22
- package/lib/functional/assertMcpLlmApplication.js.map +1 -1
- package/lib/functional/validateHttpLlmApplication.js +36 -36
- package/lib/index.mjs +87 -133
- package/lib/index.mjs.map +1 -1
- package/lib/orchestrate/call.js +5 -58
- package/lib/orchestrate/call.js.map +1 -1
- package/lib/structures/mcp/IMcpLlmApplication.d.ts +2 -8
- package/lib/utils/ChatGptCompletionMessageUtil.js +2 -2
- package/package.json +1 -1
- package/src/context/internal/AgenticaOperationComposer.spec.ts +28 -13
- package/src/functional/assertMcpLlmApplication.ts +9 -25
- package/src/orchestrate/call.ts +9 -28
- package/src/structures/mcp/IMcpLlmApplication.ts +3 -10
package/lib/index.mjs
CHANGED
|
@@ -10,14 +10,6 @@ import * as __typia_transform__assertGuard from "typia/lib/internal/_assertGuard
|
|
|
10
10
|
|
|
11
11
|
import * as __typia_transform__accessExpressionAsString from "typia/lib/internal/_accessExpressionAsString.js";
|
|
12
12
|
|
|
13
|
-
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
|
|
14
|
-
|
|
15
|
-
import { SSEClientTransport } from "@modelcontextprotocol/sdk/client/sse.js";
|
|
16
|
-
|
|
17
|
-
import { StdioClientTransport } from "@modelcontextprotocol/sdk/client/stdio.js";
|
|
18
|
-
|
|
19
|
-
import { ListToolsResultSchema } from "@modelcontextprotocol/sdk/types.js";
|
|
20
|
-
|
|
21
13
|
class AgenticaTokenUsage {
|
|
22
14
|
constructor(props) {
|
|
23
15
|
if (props === undefined) {
|
|
@@ -695,7 +687,7 @@ function transformCompletionChunk(source) {
|
|
|
695
687
|
const result = JSON.parse(str);
|
|
696
688
|
const valid = (() => {
|
|
697
689
|
const _io0 = input => "string" === typeof input.id && (Array.isArray(input.choices) && input.choices.every((elem => "object" === typeof elem && null !== elem && _io1(elem)))) && "number" === typeof input.created && "string" === typeof input.model && "chat.completion.chunk" === input.object && (null === input.service_tier || undefined === input.service_tier || "scale" === input.service_tier || "default" === input.service_tier) && (undefined === input.system_fingerprint || "string" === typeof input.system_fingerprint) && (null === input.usage || undefined === input.usage || "object" === typeof input.usage && null !== input.usage && _io9(input.usage));
|
|
698
|
-
const _io1 = input => "object" === typeof input.delta && null !== input.delta && false === Array.isArray(input.delta) && _io2(input.delta) && (null === input.finish_reason || "
|
|
690
|
+
const _io1 = input => "object" === typeof input.delta && null !== input.delta && false === Array.isArray(input.delta) && _io2(input.delta) && (null === input.finish_reason || "length" === input.finish_reason || "function_call" === input.finish_reason || "stop" === input.finish_reason || "tool_calls" === input.finish_reason || "content_filter" === input.finish_reason) && "number" === typeof input.index && (null === input.logprobs || undefined === input.logprobs || "object" === typeof input.logprobs && null !== input.logprobs && _io6(input.logprobs));
|
|
699
691
|
const _io2 = input => (null === input.content || undefined === input.content || "string" === typeof input.content) && (undefined === input.function_call || "object" === typeof input.function_call && null !== input.function_call && false === Array.isArray(input.function_call) && _io3(input.function_call)) && (null === input.refusal || undefined === input.refusal || "string" === typeof input.refusal) && (undefined === input.role || "assistant" === input.role || "user" === input.role || "developer" === input.role || "system" === input.role || "tool" === input.role) && (undefined === input.tool_calls || Array.isArray(input.tool_calls) && input.tool_calls.every((elem => "object" === typeof elem && null !== elem && _io4(elem))));
|
|
700
692
|
const _io3 = input => (undefined === input.arguments || "string" === typeof input.arguments) && (undefined === input.name || "string" === typeof input.name);
|
|
701
693
|
const _io4 = input => "number" === typeof input.index && (undefined === input.id || "string" === typeof input.id) && (undefined === input["function"] || "object" === typeof input["function"] && null !== input["function"] && false === Array.isArray(input["function"]) && _io5(input["function"])) && (undefined === input.type || "function" === input.type);
|
|
@@ -763,7 +755,7 @@ function transformCompletionChunk(source) {
|
|
|
763
755
|
path: _path + ".delta",
|
|
764
756
|
expected: "ChatCompletionChunk.Choice.Delta",
|
|
765
757
|
value: input.delta
|
|
766
|
-
}), null === input.finish_reason || "
|
|
758
|
+
}), null === input.finish_reason || "length" === input.finish_reason || "function_call" === input.finish_reason || "stop" === input.finish_reason || "tool_calls" === input.finish_reason || "content_filter" === input.finish_reason || _report(_exceptionable, {
|
|
767
759
|
path: _path + ".finish_reason",
|
|
768
760
|
expected: '("content_filter" | "function_call" | "length" | "stop" | "tool_calls" | null)',
|
|
769
761
|
value: input.finish_reason
|
|
@@ -1522,33 +1514,11 @@ async function executeClassOperation(operation, operationArguments) {
|
|
|
1522
1514
|
}
|
|
1523
1515
|
|
|
1524
1516
|
async function executeMcpOperation(operation, operationArguments) {
|
|
1525
|
-
|
|
1526
|
-
const {SSEClientTransport} = await import("@modelcontextprotocol/sdk/client/sse.js");
|
|
1527
|
-
const {StdioClientTransport} = await import("@modelcontextprotocol/sdk/client/stdio.js");
|
|
1528
|
-
const client = new Client({
|
|
1529
|
-
name: operation.name,
|
|
1530
|
-
version: "1.0.0"
|
|
1531
|
-
});
|
|
1532
|
-
const transport = (() => {
|
|
1533
|
-
switch (operation.controller.application.transport.type) {
|
|
1534
|
-
case "sse":
|
|
1535
|
-
return new SSEClientTransport(operation.controller.application.transport.url);
|
|
1536
|
-
|
|
1537
|
-
case "stdio":
|
|
1538
|
-
return new StdioClientTransport(operation.controller.application.transport);
|
|
1539
|
-
|
|
1540
|
-
default:
|
|
1541
|
-
operation.controller.application.transport;
|
|
1542
|
-
throw new Error("Unsupported transport type");
|
|
1543
|
-
}
|
|
1544
|
-
})();
|
|
1545
|
-
await client.connect(transport);
|
|
1546
|
-
const result = await client.callTool({
|
|
1517
|
+
return operation.controller.application.client.callTool({
|
|
1547
1518
|
method: operation.function.name,
|
|
1548
1519
|
name: operation.function.name,
|
|
1549
1520
|
arguments: operationArguments
|
|
1550
|
-
});
|
|
1551
|
-
return result.content;
|
|
1521
|
+
}).then((v => v.content));
|
|
1552
1522
|
}
|
|
1553
1523
|
|
|
1554
1524
|
async function correct(ctx, call, retry, error) {
|
|
@@ -4577,7 +4547,7 @@ function assertHttpLlmApplication(props) {
|
|
|
4577
4547
|
if (undefined === value) return true;
|
|
4578
4548
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io41(value);
|
|
4579
4549
|
}));
|
|
4580
|
-
const _io41 = input => (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every((elem => "object" === typeof elem && null !== elem && _iu1(elem)))) && (undefined === input.
|
|
4550
|
+
const _io41 = input => (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every((elem => "object" === typeof elem && null !== elem && _iu1(elem)))) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && _io43(input.options)) && (undefined === input.get || "object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) && _io43(input.get)) && (undefined === input.post || "object" === typeof input.post && null !== input.post && false === Array.isArray(input.post) && _io43(input.post)) && (undefined === input.patch || "object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) && _io43(input.patch)) && (undefined === input.put || "object" === typeof input.put && null !== input.put && false === Array.isArray(input.put) && _io43(input.put)) && (undefined === input["delete"] || "object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) && _io43(input["delete"])) && (undefined === input.head || "object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) && _io43(input.head)) && (undefined === input.trace || "object" === typeof input.trace && null !== input.trace && false === Array.isArray(input.trace) && _io43(input.trace));
|
|
4581
4551
|
const _io42 = input => "string" === typeof input.$ref && RegExp(/^#\/parameters\/(.*)/).test(input.$ref) && (undefined === input.examples || Array.isArray(input.examples)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true;
|
|
4582
4552
|
const _io43 = input => (undefined === input.operationId || "string" === typeof input.operationId) && (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every((elem => "object" === typeof elem && null !== elem && _iu2(elem)))) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && _io45(input.responses)) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.security || Array.isArray(input.security) && input.security.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io39(elem)))) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every((elem => "string" === typeof elem))) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
|
4583
4553
|
const _io44 = input => "string" === typeof input.$ref && RegExp(/^#\/definitions\/parameters\/(.*)/).test(input.$ref) && (undefined === input.examples || Array.isArray(input.examples)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true;
|
|
@@ -4690,7 +4660,7 @@ function assertHttpLlmApplication(props) {
|
|
|
4690
4660
|
if (undefined === value) return true;
|
|
4691
4661
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io98(value);
|
|
4692
4662
|
}));
|
|
4693
|
-
const _io98 = input => (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every((elem => "object" === typeof elem && null !== elem && _iu4(elem)))) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every((elem => "object" === typeof elem && null !== elem && _io49(elem)))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.
|
|
4663
|
+
const _io98 = input => (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every((elem => "object" === typeof elem && null !== elem && _iu4(elem)))) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every((elem => "object" === typeof elem && null !== elem && _io49(elem)))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && _io100(input.options)) && (undefined === input.get || "object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) && _io100(input.get)) && (undefined === input.post || "object" === typeof input.post && null !== input.post && false === Array.isArray(input.post) && _io100(input.post)) && (undefined === input.patch || "object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) && _io100(input.patch)) && (undefined === input.put || "object" === typeof input.put && null !== input.put && false === Array.isArray(input.put) && _io100(input.put)) && (undefined === input["delete"] || "object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) && _io100(input["delete"])) && (undefined === input.head || "object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) && _io100(input.head)) && (undefined === input.trace || "object" === typeof input.trace && null !== input.trace && false === Array.isArray(input.trace) && _io100(input.trace));
|
|
4694
4664
|
const _io99 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/parameters\/(.*)/).test(input.$ref) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io58(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true;
|
|
4695
4665
|
const _io100 = input => (undefined === input.operationId || "string" === typeof input.operationId) && (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every((elem => "object" === typeof elem && null !== elem && _iu4(elem)))) && (undefined === input.requestBody || "object" === typeof input.requestBody && null !== input.requestBody && false === Array.isArray(input.requestBody) && _iu15(input.requestBody)) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && _io102(input.responses)) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every((elem => "object" === typeof elem && null !== elem && _io49(elem)))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.security || Array.isArray(input.security) && input.security.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io39(elem)))) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every((elem => "string" === typeof elem))) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
|
4696
4666
|
const _io101 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/requestBodies\/(.*)/).test(input.$ref) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io58(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true;
|
|
@@ -4739,7 +4709,7 @@ function assertHttpLlmApplication(props) {
|
|
|
4739
4709
|
if (undefined === value) return true;
|
|
4740
4710
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io131(value);
|
|
4741
4711
|
}));
|
|
4742
|
-
const _io131 = input => (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every((elem => "object" === typeof elem && null !== elem && _iu6(elem)))) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every((elem => "object" === typeof elem && null !== elem && _io106(elem)))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.
|
|
4712
|
+
const _io131 = input => (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every((elem => "object" === typeof elem && null !== elem && _iu6(elem)))) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every((elem => "object" === typeof elem && null !== elem && _io106(elem)))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && _io138(input.options)) && (undefined === input.get || "object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) && _io138(input.get)) && (undefined === input.post || "object" === typeof input.post && null !== input.post && false === Array.isArray(input.post) && _io138(input.post)) && (undefined === input.patch || "object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) && _io138(input.patch)) && (undefined === input.put || "object" === typeof input.put && null !== input.put && false === Array.isArray(input.put) && _io138(input.put)) && (undefined === input["delete"] || "object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) && _io138(input["delete"])) && (undefined === input.head || "object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) && _io138(input.head)) && (undefined === input.trace || "object" === typeof input.trace && null !== input.trace && false === Array.isArray(input.trace) && _io138(input.trace));
|
|
4743
4713
|
const _io132 = input => (undefined === input.name || "string" === typeof input.name) && ("path" === input["in"] || "query" === input["in"] || "header" === input["in"] || "cookie" === input["in"]) && ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && _iu5(input.schema)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io133(input.examples));
|
|
4744
4714
|
const _io133 = input => Object.keys(input).every((key => {
|
|
4745
4715
|
const value = input[key];
|
|
@@ -4867,7 +4837,7 @@ function assertHttpLlmApplication(props) {
|
|
|
4867
4837
|
if (undefined === value) return true;
|
|
4868
4838
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io199(value);
|
|
4869
4839
|
}));
|
|
4870
|
-
const _io199 = input => (undefined === input.servers || Array.isArray(input.servers) && input.servers.every((elem => "object" === typeof elem && null !== elem && _io167(elem)))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.
|
|
4840
|
+
const _io199 = input => (undefined === input.servers || Array.isArray(input.servers) && input.servers.every((elem => "object" === typeof elem && null !== elem && _io167(elem)))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && _io200(input.options)) && (undefined === input.get || "object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) && _io200(input.get)) && (undefined === input.post || "object" === typeof input.post && null !== input.post && false === Array.isArray(input.post) && _io200(input.post)) && (undefined === input.patch || "object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) && _io200(input.patch)) && (undefined === input.put || "object" === typeof input.put && null !== input.put && false === Array.isArray(input.put) && _io200(input.put)) && (undefined === input["delete"] || "object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) && _io200(input["delete"])) && (undefined === input.head || "object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) && _io200(input.head)) && (undefined === input.trace || "object" === typeof input.trace && null !== input.trace && false === Array.isArray(input.trace) && _io200(input.trace));
|
|
4871
4841
|
const _io200 = input => (undefined === input.operationId || "string" === typeof input.operationId) && (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every((elem => "object" === typeof elem && null !== elem && _io201(elem)))) && (undefined === input.requestBody || "object" === typeof input.requestBody && null !== input.requestBody && false === Array.isArray(input.requestBody) && _io204(input.requestBody)) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && _io207(input.responses)) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every((elem => "object" === typeof elem && null !== elem && _io167(elem)))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.security || Array.isArray(input.security) && input.security.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io39(elem)))) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every((elem => "string" === typeof elem))) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-samchon-human"] || "boolean" === typeof input["x-samchon-human"]) && (undefined === input["x-samchon-accessor"] || Array.isArray(input["x-samchon-accessor"]) && input["x-samchon-accessor"].every((elem => "string" === typeof elem))) && (undefined === input["x-samchon-controller"] || "string" === typeof input["x-samchon-controller"]);
|
|
4872
4842
|
const _io201 = input => (undefined === input.name || "string" === typeof input.name) && ("path" === input["in"] || "query" === input["in"] || "header" === input["in"] || "cookie" === input["in"]) && ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && _iu7(input.schema)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io202(input.examples));
|
|
4873
4843
|
const _io202 = input => Object.keys(input).every((key => {
|
|
@@ -6927,6 +6897,16 @@ function assertHttpLlmApplication(props) {
|
|
|
6927
6897
|
path: _path + ".parameters",
|
|
6928
6898
|
expected: "(Array<IParameter | IReference<`#/parameters/${string}`>> | undefined)",
|
|
6929
6899
|
value: input.parameters
|
|
6900
|
+
}, _errorFactory)) && (undefined === input.options || ("object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
6901
|
+
method: "typia.assert",
|
|
6902
|
+
path: _path + ".options",
|
|
6903
|
+
expected: "(SwaggerV2.IOperation | undefined)",
|
|
6904
|
+
value: input.options
|
|
6905
|
+
}, _errorFactory)) && _ao43(input.options, _path + ".options", _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
6906
|
+
method: "typia.assert",
|
|
6907
|
+
path: _path + ".options",
|
|
6908
|
+
expected: "(SwaggerV2.IOperation | undefined)",
|
|
6909
|
+
value: input.options
|
|
6930
6910
|
}, _errorFactory)) && (undefined === input.get || ("object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
6931
6911
|
method: "typia.assert",
|
|
6932
6912
|
path: _path + ".get",
|
|
@@ -6977,16 +6957,6 @@ function assertHttpLlmApplication(props) {
|
|
|
6977
6957
|
path: _path + '["delete"]',
|
|
6978
6958
|
expected: "(SwaggerV2.IOperation | undefined)",
|
|
6979
6959
|
value: input["delete"]
|
|
6980
|
-
}, _errorFactory)) && (undefined === input.options || ("object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
6981
|
-
method: "typia.assert",
|
|
6982
|
-
path: _path + ".options",
|
|
6983
|
-
expected: "(SwaggerV2.IOperation | undefined)",
|
|
6984
|
-
value: input.options
|
|
6985
|
-
}, _errorFactory)) && _ao43(input.options, _path + ".options", _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
6986
|
-
method: "typia.assert",
|
|
6987
|
-
path: _path + ".options",
|
|
6988
|
-
expected: "(SwaggerV2.IOperation | undefined)",
|
|
6989
|
-
value: input.options
|
|
6990
6960
|
}, _errorFactory)) && (undefined === input.head || ("object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
6991
6961
|
method: "typia.assert",
|
|
6992
6962
|
path: _path + ".head",
|
|
@@ -8980,6 +8950,16 @@ function assertHttpLlmApplication(props) {
|
|
|
8980
8950
|
path: _path + ".description",
|
|
8981
8951
|
expected: "(string | undefined)",
|
|
8982
8952
|
value: input.description
|
|
8953
|
+
}, _errorFactory)) && (undefined === input.options || ("object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
8954
|
+
method: "typia.assert",
|
|
8955
|
+
path: _path + ".options",
|
|
8956
|
+
expected: "(OpenApiV3.IOperation | undefined)",
|
|
8957
|
+
value: input.options
|
|
8958
|
+
}, _errorFactory)) && _ao100(input.options, _path + ".options", _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
8959
|
+
method: "typia.assert",
|
|
8960
|
+
path: _path + ".options",
|
|
8961
|
+
expected: "(OpenApiV3.IOperation | undefined)",
|
|
8962
|
+
value: input.options
|
|
8983
8963
|
}, _errorFactory)) && (undefined === input.get || ("object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
8984
8964
|
method: "typia.assert",
|
|
8985
8965
|
path: _path + ".get",
|
|
@@ -9030,16 +9010,6 @@ function assertHttpLlmApplication(props) {
|
|
|
9030
9010
|
path: _path + '["delete"]',
|
|
9031
9011
|
expected: "(OpenApiV3.IOperation | undefined)",
|
|
9032
9012
|
value: input["delete"]
|
|
9033
|
-
}, _errorFactory)) && (undefined === input.options || ("object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
9034
|
-
method: "typia.assert",
|
|
9035
|
-
path: _path + ".options",
|
|
9036
|
-
expected: "(OpenApiV3.IOperation | undefined)",
|
|
9037
|
-
value: input.options
|
|
9038
|
-
}, _errorFactory)) && _ao100(input.options, _path + ".options", _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
9039
|
-
method: "typia.assert",
|
|
9040
|
-
path: _path + ".options",
|
|
9041
|
-
expected: "(OpenApiV3.IOperation | undefined)",
|
|
9042
|
-
value: input.options
|
|
9043
9013
|
}, _errorFactory)) && (undefined === input.head || ("object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
9044
9014
|
method: "typia.assert",
|
|
9045
9015
|
path: _path + ".head",
|
|
@@ -11024,6 +10994,16 @@ function assertHttpLlmApplication(props) {
|
|
|
11024
10994
|
path: _path + ".description",
|
|
11025
10995
|
expected: "(string | undefined)",
|
|
11026
10996
|
value: input.description
|
|
10997
|
+
}, _errorFactory)) && (undefined === input.options || ("object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
10998
|
+
method: "typia.assert",
|
|
10999
|
+
path: _path + ".options",
|
|
11000
|
+
expected: "(OpenApiV3_1.IOperation | undefined)",
|
|
11001
|
+
value: input.options
|
|
11002
|
+
}, _errorFactory)) && _ao138(input.options, _path + ".options", _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
11003
|
+
method: "typia.assert",
|
|
11004
|
+
path: _path + ".options",
|
|
11005
|
+
expected: "(OpenApiV3_1.IOperation | undefined)",
|
|
11006
|
+
value: input.options
|
|
11027
11007
|
}, _errorFactory)) && (undefined === input.get || ("object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
11028
11008
|
method: "typia.assert",
|
|
11029
11009
|
path: _path + ".get",
|
|
@@ -11074,16 +11054,6 @@ function assertHttpLlmApplication(props) {
|
|
|
11074
11054
|
path: _path + '["delete"]',
|
|
11075
11055
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
|
11076
11056
|
value: input["delete"]
|
|
11077
|
-
}, _errorFactory)) && (undefined === input.options || ("object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
11078
|
-
method: "typia.assert",
|
|
11079
|
-
path: _path + ".options",
|
|
11080
|
-
expected: "(OpenApiV3_1.IOperation | undefined)",
|
|
11081
|
-
value: input.options
|
|
11082
|
-
}, _errorFactory)) && _ao138(input.options, _path + ".options", _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
11083
|
-
method: "typia.assert",
|
|
11084
|
-
path: _path + ".options",
|
|
11085
|
-
expected: "(OpenApiV3_1.IOperation | undefined)",
|
|
11086
|
-
value: input.options
|
|
11087
11057
|
}, _errorFactory)) && (undefined === input.head || ("object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
11088
11058
|
method: "typia.assert",
|
|
11089
11059
|
path: _path + ".head",
|
|
@@ -13227,6 +13197,16 @@ function assertHttpLlmApplication(props) {
|
|
|
13227
13197
|
path: _path + ".description",
|
|
13228
13198
|
expected: "(string | undefined)",
|
|
13229
13199
|
value: input.description
|
|
13200
|
+
}, _errorFactory)) && (undefined === input.options || ("object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
13201
|
+
method: "typia.assert",
|
|
13202
|
+
path: _path + ".options",
|
|
13203
|
+
expected: "(OpenApi.IOperation | undefined)",
|
|
13204
|
+
value: input.options
|
|
13205
|
+
}, _errorFactory)) && _ao200(input.options, _path + ".options", _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
13206
|
+
method: "typia.assert",
|
|
13207
|
+
path: _path + ".options",
|
|
13208
|
+
expected: "(OpenApi.IOperation | undefined)",
|
|
13209
|
+
value: input.options
|
|
13230
13210
|
}, _errorFactory)) && (undefined === input.get || ("object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
13231
13211
|
method: "typia.assert",
|
|
13232
13212
|
path: _path + ".get",
|
|
@@ -13277,16 +13257,6 @@ function assertHttpLlmApplication(props) {
|
|
|
13277
13257
|
path: _path + '["delete"]',
|
|
13278
13258
|
expected: "(OpenApi.IOperation | undefined)",
|
|
13279
13259
|
value: input["delete"]
|
|
13280
|
-
}, _errorFactory)) && (undefined === input.options || ("object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
13281
|
-
method: "typia.assert",
|
|
13282
|
-
path: _path + ".options",
|
|
13283
|
-
expected: "(OpenApi.IOperation | undefined)",
|
|
13284
|
-
value: input.options
|
|
13285
|
-
}, _errorFactory)) && _ao200(input.options, _path + ".options", _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
13286
|
-
method: "typia.assert",
|
|
13287
|
-
path: _path + ".options",
|
|
13288
|
-
expected: "(OpenApi.IOperation | undefined)",
|
|
13289
|
-
value: input.options
|
|
13290
13260
|
}, _errorFactory)) && (undefined === input.head || ("object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
13291
13261
|
method: "typia.assert",
|
|
13292
13262
|
path: _path + ".head",
|
|
@@ -13868,24 +13838,8 @@ function assertHttpLlmApplication(props) {
|
|
|
13868
13838
|
}
|
|
13869
13839
|
|
|
13870
13840
|
async function assertMcpLlmApplication(props) {
|
|
13871
|
-
const
|
|
13872
|
-
|
|
13873
|
-
version: "1.0.0"
|
|
13874
|
-
});
|
|
13875
|
-
const transport = (() => {
|
|
13876
|
-
switch (props.type) {
|
|
13877
|
-
case "sse":
|
|
13878
|
-
return new SSEClientTransport(props.url);
|
|
13879
|
-
|
|
13880
|
-
case "stdio":
|
|
13881
|
-
return new StdioClientTransport(props);
|
|
13882
|
-
|
|
13883
|
-
default:
|
|
13884
|
-
throw new Error("Invalid transport type");
|
|
13885
|
-
}
|
|
13886
|
-
})();
|
|
13887
|
-
await client.connect(transport);
|
|
13888
|
-
const toolList = await client.request({
|
|
13841
|
+
const {ListToolsResultSchema} = await import("@modelcontextprotocol/sdk/types.js");
|
|
13842
|
+
const toolList = await props.client.request({
|
|
13889
13843
|
method: "tools/list"
|
|
13890
13844
|
}, ListToolsResultSchema);
|
|
13891
13845
|
return {
|
|
@@ -13894,7 +13848,7 @@ async function assertMcpLlmApplication(props) {
|
|
|
13894
13848
|
description: tool.description,
|
|
13895
13849
|
parameters: tool.inputSchema
|
|
13896
13850
|
}))),
|
|
13897
|
-
|
|
13851
|
+
client: props.client
|
|
13898
13852
|
};
|
|
13899
13853
|
}
|
|
13900
13854
|
|
|
@@ -13969,7 +13923,7 @@ function validateHttpLlmApplication(props) {
|
|
|
13969
13923
|
if (undefined === value) return true;
|
|
13970
13924
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io41(value);
|
|
13971
13925
|
}));
|
|
13972
|
-
const _io41 = input => (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every((elem => "object" === typeof elem && null !== elem && _iu1(elem)))) && (undefined === input.
|
|
13926
|
+
const _io41 = input => (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every((elem => "object" === typeof elem && null !== elem && _iu1(elem)))) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && _io43(input.options)) && (undefined === input.get || "object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) && _io43(input.get)) && (undefined === input.post || "object" === typeof input.post && null !== input.post && false === Array.isArray(input.post) && _io43(input.post)) && (undefined === input.patch || "object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) && _io43(input.patch)) && (undefined === input.put || "object" === typeof input.put && null !== input.put && false === Array.isArray(input.put) && _io43(input.put)) && (undefined === input["delete"] || "object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) && _io43(input["delete"])) && (undefined === input.head || "object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) && _io43(input.head)) && (undefined === input.trace || "object" === typeof input.trace && null !== input.trace && false === Array.isArray(input.trace) && _io43(input.trace));
|
|
13973
13927
|
const _io42 = input => "string" === typeof input.$ref && RegExp(/^#\/parameters\/(.*)/).test(input.$ref) && (undefined === input.examples || Array.isArray(input.examples)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true;
|
|
13974
13928
|
const _io43 = input => (undefined === input.operationId || "string" === typeof input.operationId) && (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every((elem => "object" === typeof elem && null !== elem && _iu2(elem)))) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && _io45(input.responses)) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.security || Array.isArray(input.security) && input.security.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io39(elem)))) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every((elem => "string" === typeof elem))) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
|
13975
13929
|
const _io44 = input => "string" === typeof input.$ref && RegExp(/^#\/definitions\/parameters\/(.*)/).test(input.$ref) && (undefined === input.examples || Array.isArray(input.examples)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true;
|
|
@@ -14082,7 +14036,7 @@ function validateHttpLlmApplication(props) {
|
|
|
14082
14036
|
if (undefined === value) return true;
|
|
14083
14037
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io98(value);
|
|
14084
14038
|
}));
|
|
14085
|
-
const _io98 = input => (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every((elem => "object" === typeof elem && null !== elem && _iu4(elem)))) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every((elem => "object" === typeof elem && null !== elem && _io49(elem)))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.
|
|
14039
|
+
const _io98 = input => (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every((elem => "object" === typeof elem && null !== elem && _iu4(elem)))) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every((elem => "object" === typeof elem && null !== elem && _io49(elem)))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && _io100(input.options)) && (undefined === input.get || "object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) && _io100(input.get)) && (undefined === input.post || "object" === typeof input.post && null !== input.post && false === Array.isArray(input.post) && _io100(input.post)) && (undefined === input.patch || "object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) && _io100(input.patch)) && (undefined === input.put || "object" === typeof input.put && null !== input.put && false === Array.isArray(input.put) && _io100(input.put)) && (undefined === input["delete"] || "object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) && _io100(input["delete"])) && (undefined === input.head || "object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) && _io100(input.head)) && (undefined === input.trace || "object" === typeof input.trace && null !== input.trace && false === Array.isArray(input.trace) && _io100(input.trace));
|
|
14086
14040
|
const _io99 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/parameters\/(.*)/).test(input.$ref) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io58(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true;
|
|
14087
14041
|
const _io100 = input => (undefined === input.operationId || "string" === typeof input.operationId) && (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every((elem => "object" === typeof elem && null !== elem && _iu4(elem)))) && (undefined === input.requestBody || "object" === typeof input.requestBody && null !== input.requestBody && false === Array.isArray(input.requestBody) && _iu15(input.requestBody)) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && _io102(input.responses)) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every((elem => "object" === typeof elem && null !== elem && _io49(elem)))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.security || Array.isArray(input.security) && input.security.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io39(elem)))) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every((elem => "string" === typeof elem))) && (undefined === input.deprecated || "boolean" === typeof input.deprecated);
|
|
14088
14042
|
const _io101 = input => "string" === typeof input.$ref && RegExp(/^#\/components\/requestBodies\/(.*)/).test(input.$ref) && (null !== input.examples && (undefined === input.examples || (Array.isArray(input.examples) || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io58(input.examples)))) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && true;
|
|
@@ -14131,7 +14085,7 @@ function validateHttpLlmApplication(props) {
|
|
|
14131
14085
|
if (undefined === value) return true;
|
|
14132
14086
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io131(value);
|
|
14133
14087
|
}));
|
|
14134
|
-
const _io131 = input => (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every((elem => "object" === typeof elem && null !== elem && _iu6(elem)))) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every((elem => "object" === typeof elem && null !== elem && _io106(elem)))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.
|
|
14088
|
+
const _io131 = input => (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every((elem => "object" === typeof elem && null !== elem && _iu6(elem)))) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every((elem => "object" === typeof elem && null !== elem && _io106(elem)))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && _io138(input.options)) && (undefined === input.get || "object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) && _io138(input.get)) && (undefined === input.post || "object" === typeof input.post && null !== input.post && false === Array.isArray(input.post) && _io138(input.post)) && (undefined === input.patch || "object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) && _io138(input.patch)) && (undefined === input.put || "object" === typeof input.put && null !== input.put && false === Array.isArray(input.put) && _io138(input.put)) && (undefined === input["delete"] || "object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) && _io138(input["delete"])) && (undefined === input.head || "object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) && _io138(input.head)) && (undefined === input.trace || "object" === typeof input.trace && null !== input.trace && false === Array.isArray(input.trace) && _io138(input.trace));
|
|
14135
14089
|
const _io132 = input => (undefined === input.name || "string" === typeof input.name) && ("path" === input["in"] || "query" === input["in"] || "header" === input["in"] || "cookie" === input["in"]) && ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && _iu5(input.schema)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io133(input.examples));
|
|
14136
14090
|
const _io133 = input => Object.keys(input).every((key => {
|
|
14137
14091
|
const value = input[key];
|
|
@@ -14259,7 +14213,7 @@ function validateHttpLlmApplication(props) {
|
|
|
14259
14213
|
if (undefined === value) return true;
|
|
14260
14214
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io199(value);
|
|
14261
14215
|
}));
|
|
14262
|
-
const _io199 = input => (undefined === input.servers || Array.isArray(input.servers) && input.servers.every((elem => "object" === typeof elem && null !== elem && _io167(elem)))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.
|
|
14216
|
+
const _io199 = input => (undefined === input.servers || Array.isArray(input.servers) && input.servers.every((elem => "object" === typeof elem && null !== elem && _io167(elem)))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && _io200(input.options)) && (undefined === input.get || "object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) && _io200(input.get)) && (undefined === input.post || "object" === typeof input.post && null !== input.post && false === Array.isArray(input.post) && _io200(input.post)) && (undefined === input.patch || "object" === typeof input.patch && null !== input.patch && false === Array.isArray(input.patch) && _io200(input.patch)) && (undefined === input.put || "object" === typeof input.put && null !== input.put && false === Array.isArray(input.put) && _io200(input.put)) && (undefined === input["delete"] || "object" === typeof input["delete"] && null !== input["delete"] && false === Array.isArray(input["delete"]) && _io200(input["delete"])) && (undefined === input.head || "object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) && _io200(input.head)) && (undefined === input.trace || "object" === typeof input.trace && null !== input.trace && false === Array.isArray(input.trace) && _io200(input.trace));
|
|
14263
14217
|
const _io200 = input => (undefined === input.operationId || "string" === typeof input.operationId) && (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every((elem => "object" === typeof elem && null !== elem && _io201(elem)))) && (undefined === input.requestBody || "object" === typeof input.requestBody && null !== input.requestBody && false === Array.isArray(input.requestBody) && _io204(input.requestBody)) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && _io207(input.responses)) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every((elem => "object" === typeof elem && null !== elem && _io167(elem)))) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.security || Array.isArray(input.security) && input.security.every((elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io39(elem)))) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every((elem => "string" === typeof elem))) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-samchon-human"] || "boolean" === typeof input["x-samchon-human"]) && (undefined === input["x-samchon-accessor"] || Array.isArray(input["x-samchon-accessor"]) && input["x-samchon-accessor"].every((elem => "string" === typeof elem))) && (undefined === input["x-samchon-controller"] || "string" === typeof input["x-samchon-controller"]);
|
|
14264
14218
|
const _io201 = input => (undefined === input.name || "string" === typeof input.name) && ("path" === input["in"] || "query" === input["in"] || "header" === input["in"] || "cookie" === input["in"]) && ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && _iu7(input.schema)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && _io202(input.examples));
|
|
14265
14219
|
const _io202 = input => Object.keys(input).every((key => {
|
|
@@ -15944,6 +15898,14 @@ function validateHttpLlmApplication(props) {
|
|
|
15944
15898
|
path: _path + ".parameters",
|
|
15945
15899
|
expected: "(Array<IParameter | IReference<`#/parameters/${string}`>> | undefined)",
|
|
15946
15900
|
value: input.parameters
|
|
15901
|
+
}), undefined === input.options || ("object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) || _report(_exceptionable, {
|
|
15902
|
+
path: _path + ".options",
|
|
15903
|
+
expected: "(SwaggerV2.IOperation | undefined)",
|
|
15904
|
+
value: input.options
|
|
15905
|
+
})) && _vo43(input.options, _path + ".options", _exceptionable) || _report(_exceptionable, {
|
|
15906
|
+
path: _path + ".options",
|
|
15907
|
+
expected: "(SwaggerV2.IOperation | undefined)",
|
|
15908
|
+
value: input.options
|
|
15947
15909
|
}), undefined === input.get || ("object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) || _report(_exceptionable, {
|
|
15948
15910
|
path: _path + ".get",
|
|
15949
15911
|
expected: "(SwaggerV2.IOperation | undefined)",
|
|
@@ -15984,14 +15946,6 @@ function validateHttpLlmApplication(props) {
|
|
|
15984
15946
|
path: _path + '["delete"]',
|
|
15985
15947
|
expected: "(SwaggerV2.IOperation | undefined)",
|
|
15986
15948
|
value: input["delete"]
|
|
15987
|
-
}), undefined === input.options || ("object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) || _report(_exceptionable, {
|
|
15988
|
-
path: _path + ".options",
|
|
15989
|
-
expected: "(SwaggerV2.IOperation | undefined)",
|
|
15990
|
-
value: input.options
|
|
15991
|
-
})) && _vo43(input.options, _path + ".options", _exceptionable) || _report(_exceptionable, {
|
|
15992
|
-
path: _path + ".options",
|
|
15993
|
-
expected: "(SwaggerV2.IOperation | undefined)",
|
|
15994
|
-
value: input.options
|
|
15995
15949
|
}), undefined === input.head || ("object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) || _report(_exceptionable, {
|
|
15996
15950
|
path: _path + ".head",
|
|
15997
15951
|
expected: "(SwaggerV2.IOperation | undefined)",
|
|
@@ -17609,6 +17563,14 @@ function validateHttpLlmApplication(props) {
|
|
|
17609
17563
|
path: _path + ".description",
|
|
17610
17564
|
expected: "(string | undefined)",
|
|
17611
17565
|
value: input.description
|
|
17566
|
+
}), undefined === input.options || ("object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) || _report(_exceptionable, {
|
|
17567
|
+
path: _path + ".options",
|
|
17568
|
+
expected: "(OpenApiV3.IOperation | undefined)",
|
|
17569
|
+
value: input.options
|
|
17570
|
+
})) && _vo100(input.options, _path + ".options", _exceptionable) || _report(_exceptionable, {
|
|
17571
|
+
path: _path + ".options",
|
|
17572
|
+
expected: "(OpenApiV3.IOperation | undefined)",
|
|
17573
|
+
value: input.options
|
|
17612
17574
|
}), undefined === input.get || ("object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) || _report(_exceptionable, {
|
|
17613
17575
|
path: _path + ".get",
|
|
17614
17576
|
expected: "(OpenApiV3.IOperation | undefined)",
|
|
@@ -17649,14 +17611,6 @@ function validateHttpLlmApplication(props) {
|
|
|
17649
17611
|
path: _path + '["delete"]',
|
|
17650
17612
|
expected: "(OpenApiV3.IOperation | undefined)",
|
|
17651
17613
|
value: input["delete"]
|
|
17652
|
-
}), undefined === input.options || ("object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) || _report(_exceptionable, {
|
|
17653
|
-
path: _path + ".options",
|
|
17654
|
-
expected: "(OpenApiV3.IOperation | undefined)",
|
|
17655
|
-
value: input.options
|
|
17656
|
-
})) && _vo100(input.options, _path + ".options", _exceptionable) || _report(_exceptionable, {
|
|
17657
|
-
path: _path + ".options",
|
|
17658
|
-
expected: "(OpenApiV3.IOperation | undefined)",
|
|
17659
|
-
value: input.options
|
|
17660
17614
|
}), undefined === input.head || ("object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) || _report(_exceptionable, {
|
|
17661
17615
|
path: _path + ".head",
|
|
17662
17616
|
expected: "(OpenApiV3.IOperation | undefined)",
|
|
@@ -19254,6 +19208,14 @@ function validateHttpLlmApplication(props) {
|
|
|
19254
19208
|
path: _path + ".description",
|
|
19255
19209
|
expected: "(string | undefined)",
|
|
19256
19210
|
value: input.description
|
|
19211
|
+
}), undefined === input.options || ("object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) || _report(_exceptionable, {
|
|
19212
|
+
path: _path + ".options",
|
|
19213
|
+
expected: "(OpenApiV3_1.IOperation | undefined)",
|
|
19214
|
+
value: input.options
|
|
19215
|
+
})) && _vo138(input.options, _path + ".options", _exceptionable) || _report(_exceptionable, {
|
|
19216
|
+
path: _path + ".options",
|
|
19217
|
+
expected: "(OpenApiV3_1.IOperation | undefined)",
|
|
19218
|
+
value: input.options
|
|
19257
19219
|
}), undefined === input.get || ("object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) || _report(_exceptionable, {
|
|
19258
19220
|
path: _path + ".get",
|
|
19259
19221
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
|
@@ -19294,14 +19256,6 @@ function validateHttpLlmApplication(props) {
|
|
|
19294
19256
|
path: _path + '["delete"]',
|
|
19295
19257
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
|
19296
19258
|
value: input["delete"]
|
|
19297
|
-
}), undefined === input.options || ("object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) || _report(_exceptionable, {
|
|
19298
|
-
path: _path + ".options",
|
|
19299
|
-
expected: "(OpenApiV3_1.IOperation | undefined)",
|
|
19300
|
-
value: input.options
|
|
19301
|
-
})) && _vo138(input.options, _path + ".options", _exceptionable) || _report(_exceptionable, {
|
|
19302
|
-
path: _path + ".options",
|
|
19303
|
-
expected: "(OpenApiV3_1.IOperation | undefined)",
|
|
19304
|
-
value: input.options
|
|
19305
19259
|
}), undefined === input.head || ("object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) || _report(_exceptionable, {
|
|
19306
19260
|
path: _path + ".head",
|
|
19307
19261
|
expected: "(OpenApiV3_1.IOperation | undefined)",
|
|
@@ -21042,6 +20996,14 @@ function validateHttpLlmApplication(props) {
|
|
|
21042
20996
|
path: _path + ".description",
|
|
21043
20997
|
expected: "(string | undefined)",
|
|
21044
20998
|
value: input.description
|
|
20999
|
+
}), undefined === input.options || ("object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) || _report(_exceptionable, {
|
|
21000
|
+
path: _path + ".options",
|
|
21001
|
+
expected: "(OpenApi.IOperation | undefined)",
|
|
21002
|
+
value: input.options
|
|
21003
|
+
})) && _vo200(input.options, _path + ".options", _exceptionable) || _report(_exceptionable, {
|
|
21004
|
+
path: _path + ".options",
|
|
21005
|
+
expected: "(OpenApi.IOperation | undefined)",
|
|
21006
|
+
value: input.options
|
|
21045
21007
|
}), undefined === input.get || ("object" === typeof input.get && null !== input.get && false === Array.isArray(input.get) || _report(_exceptionable, {
|
|
21046
21008
|
path: _path + ".get",
|
|
21047
21009
|
expected: "(OpenApi.IOperation | undefined)",
|
|
@@ -21082,14 +21044,6 @@ function validateHttpLlmApplication(props) {
|
|
|
21082
21044
|
path: _path + '["delete"]',
|
|
21083
21045
|
expected: "(OpenApi.IOperation | undefined)",
|
|
21084
21046
|
value: input["delete"]
|
|
21085
|
-
}), undefined === input.options || ("object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) || _report(_exceptionable, {
|
|
21086
|
-
path: _path + ".options",
|
|
21087
|
-
expected: "(OpenApi.IOperation | undefined)",
|
|
21088
|
-
value: input.options
|
|
21089
|
-
})) && _vo200(input.options, _path + ".options", _exceptionable) || _report(_exceptionable, {
|
|
21090
|
-
path: _path + ".options",
|
|
21091
|
-
expected: "(OpenApi.IOperation | undefined)",
|
|
21092
|
-
value: input.options
|
|
21093
21047
|
}), undefined === input.head || ("object" === typeof input.head && null !== input.head && false === Array.isArray(input.head) || _report(_exceptionable, {
|
|
21094
21048
|
path: _path + ".head",
|
|
21095
21049
|
expected: "(OpenApi.IOperation | undefined)",
|