@meetkai/mka1 0.54.7 → 0.54.9
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/bin/mcp-server.js +509 -370
- package/bin/mcp-server.js.map +37 -34
- package/dist/commonjs/hooks/multipartFilename.d.ts +12 -0
- package/dist/commonjs/hooks/multipartFilename.d.ts.map +1 -0
- package/dist/commonjs/hooks/multipartFilename.js +50 -0
- package/dist/commonjs/hooks/multipartFilename.js.map +1 -0
- package/dist/commonjs/hooks/registration.d.ts.map +1 -1
- package/dist/commonjs/hooks/registration.js +2 -1
- package/dist/commonjs/hooks/registration.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/components/agentschedulespec.d.ts +2 -1
- package/dist/commonjs/models/components/agentschedulespec.d.ts.map +1 -1
- package/dist/commonjs/models/components/agentschedulespec.js +6 -5
- package/dist/commonjs/models/components/agentschedulespec.js.map +1 -1
- package/dist/commonjs/models/components/chunkingstrategy.d.ts +2 -1
- package/dist/commonjs/models/components/chunkingstrategy.d.ts.map +1 -1
- package/dist/commonjs/models/components/chunkingstrategy.js +6 -5
- package/dist/commonjs/models/components/chunkingstrategy.js.map +1 -1
- package/dist/commonjs/models/components/codeinterpreteroutput.d.ts +2 -1
- package/dist/commonjs/models/components/codeinterpreteroutput.d.ts.map +1 -1
- package/dist/commonjs/models/components/codeinterpreteroutput.js +5 -4
- package/dist/commonjs/models/components/codeinterpreteroutput.js.map +1 -1
- package/dist/commonjs/models/components/computeraction.d.ts +2 -1
- package/dist/commonjs/models/components/computeraction.d.ts.map +1 -1
- package/dist/commonjs/models/components/computeraction.js +12 -11
- package/dist/commonjs/models/components/computeraction.js.map +1 -1
- package/dist/commonjs/models/components/customtoolformat.d.ts +2 -1
- package/dist/commonjs/models/components/customtoolformat.d.ts.map +1 -1
- package/dist/commonjs/models/components/customtoolformat.js +5 -1
- package/dist/commonjs/models/components/customtoolformat.js.map +1 -1
- package/dist/commonjs/models/components/filesearchcompoundfilter.d.ts +3 -2
- package/dist/commonjs/models/components/filesearchcompoundfilter.d.ts.map +1 -1
- package/dist/commonjs/models/components/filesearchcompoundfilter.js +21 -20
- package/dist/commonjs/models/components/filesearchcompoundfilter.js.map +1 -1
- package/dist/commonjs/models/components/githubpullrequestrequest.d.ts +2 -0
- package/dist/commonjs/models/components/githubpullrequestrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/githubpullrequestrequest.js +11 -0
- package/dist/commonjs/models/components/githubpullrequestrequest.js.map +1 -1
- package/dist/commonjs/models/components/guardrailconfig.d.ts +2 -1
- package/dist/commonjs/models/components/guardrailconfig.d.ts.map +1 -1
- package/dist/commonjs/models/components/guardrailconfig.js +6 -5
- package/dist/commonjs/models/components/guardrailconfig.js.map +1 -1
- package/dist/commonjs/models/components/method.d.ts +6 -5
- package/dist/commonjs/models/components/method.d.ts.map +1 -1
- package/dist/commonjs/models/components/method.js +36 -35
- package/dist/commonjs/models/components/method.js.map +1 -1
- package/dist/commonjs/models/components/openaichatcompletionchoice.d.ts +4 -3
- package/dist/commonjs/models/components/openaichatcompletionchoice.d.ts.map +1 -1
- package/dist/commonjs/models/components/openaichatcompletionchoice.js +19 -18
- package/dist/commonjs/models/components/openaichatcompletionchoice.js.map +1 -1
- package/dist/commonjs/models/components/openaichatcompletionchunk.d.ts +4 -3
- package/dist/commonjs/models/components/openaichatcompletionchunk.d.ts.map +1 -1
- package/dist/commonjs/models/components/openaichatcompletionchunk.js +19 -18
- package/dist/commonjs/models/components/openaichatcompletionchunk.js.map +1 -1
- package/dist/commonjs/models/components/outputmessage.d.ts +3 -2
- package/dist/commonjs/models/components/outputmessage.d.ts.map +1 -1
- package/dist/commonjs/models/components/outputmessage.js +9 -8
- package/dist/commonjs/models/components/outputmessage.js.map +1 -1
- package/dist/commonjs/models/components/outputmessagewithid.d.ts +3 -2
- package/dist/commonjs/models/components/outputmessagewithid.d.ts.map +1 -1
- package/dist/commonjs/models/components/outputmessagewithid.js +9 -8
- package/dist/commonjs/models/components/outputmessagewithid.js.map +1 -1
- package/dist/commonjs/models/components/outputtext.d.ts +3 -2
- package/dist/commonjs/models/components/outputtext.d.ts.map +1 -1
- package/dist/commonjs/models/components/outputtext.js +13 -12
- package/dist/commonjs/models/components/outputtext.js.map +1 -1
- package/dist/commonjs/models/components/responsecontentpartaddedevent.d.ts +3 -2
- package/dist/commonjs/models/components/responsecontentpartaddedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/responsecontentpartaddedevent.js +11 -11
- package/dist/commonjs/models/components/responsecontentpartaddedevent.js.map +1 -1
- package/dist/commonjs/models/components/responsecontentpartdoneevent.d.ts +3 -2
- package/dist/commonjs/models/components/responsecontentpartdoneevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/responsecontentpartdoneevent.js +11 -10
- package/dist/commonjs/models/components/responsecontentpartdoneevent.js.map +1 -1
- package/dist/commonjs/models/components/responseformat.d.ts +2 -1
- package/dist/commonjs/models/components/responseformat.d.ts.map +1 -1
- package/dist/commonjs/models/components/responseformat.js +6 -5
- package/dist/commonjs/models/components/responseformat.js.map +1 -1
- package/dist/commonjs/models/components/responseobject.d.ts +5 -4
- package/dist/commonjs/models/components/responseobject.d.ts.map +1 -1
- package/dist/commonjs/models/components/responseobject.js +41 -40
- package/dist/commonjs/models/components/responseobject.js.map +1 -1
- package/dist/commonjs/models/components/responsestreamingevent.d.ts +2 -1
- package/dist/commonjs/models/components/responsestreamingevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/responsestreamingevent.js +68 -67
- package/dist/commonjs/models/components/responsestreamingevent.js.map +1 -1
- package/dist/commonjs/models/components/sessionrecord.d.ts +2 -0
- package/dist/commonjs/models/components/sessionrecord.d.ts.map +1 -1
- package/dist/commonjs/models/components/sessionrecord.js +4 -0
- package/dist/commonjs/models/components/sessionrecord.js.map +1 -1
- package/dist/commonjs/models/components/shellenvironment.d.ts +2 -1
- package/dist/commonjs/models/components/shellenvironment.d.ts.map +1 -1
- package/dist/commonjs/models/components/shellenvironment.js +5 -4
- package/dist/commonjs/models/components/shellenvironment.js.map +1 -1
- package/dist/commonjs/models/components/skillentry.d.ts +2 -1
- package/dist/commonjs/models/components/skillentry.d.ts.map +1 -1
- package/dist/commonjs/models/components/skillentry.js +5 -4
- package/dist/commonjs/models/components/skillentry.js.map +1 -1
- package/dist/commonjs/models/components/tooldefinition.d.ts +5 -4
- package/dist/commonjs/models/components/tooldefinition.d.ts.map +1 -1
- package/dist/commonjs/models/components/tooldefinition.js +29 -28
- package/dist/commonjs/models/components/tooldefinition.js.map +1 -1
- package/dist/commonjs/models/components/websearchaction.d.ts +2 -1
- package/dist/commonjs/models/components/websearchaction.d.ts.map +1 -1
- package/dist/commonjs/models/components/websearchaction.js +6 -5
- package/dist/commonjs/models/components/websearchaction.js.map +1 -1
- package/dist/commonjs/models/operations/createchatcompletionstream.d.ts +2 -1
- package/dist/commonjs/models/operations/createchatcompletionstream.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createchatcompletionstream.js +6 -5
- package/dist/commonjs/models/operations/createchatcompletionstream.js.map +1 -1
- package/dist/commonjs/models/operations/uploadfile.d.ts +1 -1
- package/dist/commonjs/types/discriminatedUnion.d.ts +25 -0
- package/dist/commonjs/types/discriminatedUnion.d.ts.map +1 -0
- package/dist/commonjs/types/discriminatedUnion.js +94 -0
- package/dist/commonjs/types/discriminatedUnion.js.map +1 -0
- package/dist/esm/hooks/multipartFilename.d.ts +12 -0
- package/dist/esm/hooks/multipartFilename.d.ts.map +1 -0
- package/dist/esm/hooks/multipartFilename.js +46 -0
- package/dist/esm/hooks/multipartFilename.js.map +1 -0
- package/dist/esm/hooks/registration.d.ts.map +1 -1
- package/dist/esm/hooks/registration.js +2 -1
- package/dist/esm/hooks/registration.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/components/agentschedulespec.d.ts +2 -1
- package/dist/esm/models/components/agentschedulespec.d.ts.map +1 -1
- package/dist/esm/models/components/agentschedulespec.js +6 -5
- package/dist/esm/models/components/agentschedulespec.js.map +1 -1
- package/dist/esm/models/components/chunkingstrategy.d.ts +2 -1
- package/dist/esm/models/components/chunkingstrategy.d.ts.map +1 -1
- package/dist/esm/models/components/chunkingstrategy.js +6 -5
- package/dist/esm/models/components/chunkingstrategy.js.map +1 -1
- package/dist/esm/models/components/codeinterpreteroutput.d.ts +2 -1
- package/dist/esm/models/components/codeinterpreteroutput.d.ts.map +1 -1
- package/dist/esm/models/components/codeinterpreteroutput.js +5 -4
- package/dist/esm/models/components/codeinterpreteroutput.js.map +1 -1
- package/dist/esm/models/components/computeraction.d.ts +2 -1
- package/dist/esm/models/components/computeraction.d.ts.map +1 -1
- package/dist/esm/models/components/computeraction.js +12 -11
- package/dist/esm/models/components/computeraction.js.map +1 -1
- package/dist/esm/models/components/customtoolformat.d.ts +2 -1
- package/dist/esm/models/components/customtoolformat.d.ts.map +1 -1
- package/dist/esm/models/components/customtoolformat.js +5 -1
- package/dist/esm/models/components/customtoolformat.js.map +1 -1
- package/dist/esm/models/components/filesearchcompoundfilter.d.ts +3 -2
- package/dist/esm/models/components/filesearchcompoundfilter.d.ts.map +1 -1
- package/dist/esm/models/components/filesearchcompoundfilter.js +21 -20
- package/dist/esm/models/components/filesearchcompoundfilter.js.map +1 -1
- package/dist/esm/models/components/githubpullrequestrequest.d.ts +2 -0
- package/dist/esm/models/components/githubpullrequestrequest.d.ts.map +1 -1
- package/dist/esm/models/components/githubpullrequestrequest.js +11 -0
- package/dist/esm/models/components/githubpullrequestrequest.js.map +1 -1
- package/dist/esm/models/components/guardrailconfig.d.ts +2 -1
- package/dist/esm/models/components/guardrailconfig.d.ts.map +1 -1
- package/dist/esm/models/components/guardrailconfig.js +6 -5
- package/dist/esm/models/components/guardrailconfig.js.map +1 -1
- package/dist/esm/models/components/method.d.ts +6 -5
- package/dist/esm/models/components/method.d.ts.map +1 -1
- package/dist/esm/models/components/method.js +36 -35
- package/dist/esm/models/components/method.js.map +1 -1
- package/dist/esm/models/components/openaichatcompletionchoice.d.ts +4 -3
- package/dist/esm/models/components/openaichatcompletionchoice.d.ts.map +1 -1
- package/dist/esm/models/components/openaichatcompletionchoice.js +19 -18
- package/dist/esm/models/components/openaichatcompletionchoice.js.map +1 -1
- package/dist/esm/models/components/openaichatcompletionchunk.d.ts +4 -3
- package/dist/esm/models/components/openaichatcompletionchunk.d.ts.map +1 -1
- package/dist/esm/models/components/openaichatcompletionchunk.js +19 -18
- package/dist/esm/models/components/openaichatcompletionchunk.js.map +1 -1
- package/dist/esm/models/components/outputmessage.d.ts +3 -2
- package/dist/esm/models/components/outputmessage.d.ts.map +1 -1
- package/dist/esm/models/components/outputmessage.js +9 -8
- package/dist/esm/models/components/outputmessage.js.map +1 -1
- package/dist/esm/models/components/outputmessagewithid.d.ts +3 -2
- package/dist/esm/models/components/outputmessagewithid.d.ts.map +1 -1
- package/dist/esm/models/components/outputmessagewithid.js +9 -8
- package/dist/esm/models/components/outputmessagewithid.js.map +1 -1
- package/dist/esm/models/components/outputtext.d.ts +3 -2
- package/dist/esm/models/components/outputtext.d.ts.map +1 -1
- package/dist/esm/models/components/outputtext.js +13 -12
- package/dist/esm/models/components/outputtext.js.map +1 -1
- package/dist/esm/models/components/responsecontentpartaddedevent.d.ts +3 -2
- package/dist/esm/models/components/responsecontentpartaddedevent.d.ts.map +1 -1
- package/dist/esm/models/components/responsecontentpartaddedevent.js +11 -11
- package/dist/esm/models/components/responsecontentpartaddedevent.js.map +1 -1
- package/dist/esm/models/components/responsecontentpartdoneevent.d.ts +3 -2
- package/dist/esm/models/components/responsecontentpartdoneevent.d.ts.map +1 -1
- package/dist/esm/models/components/responsecontentpartdoneevent.js +11 -10
- package/dist/esm/models/components/responsecontentpartdoneevent.js.map +1 -1
- package/dist/esm/models/components/responseformat.d.ts +2 -1
- package/dist/esm/models/components/responseformat.d.ts.map +1 -1
- package/dist/esm/models/components/responseformat.js +6 -5
- package/dist/esm/models/components/responseformat.js.map +1 -1
- package/dist/esm/models/components/responseobject.d.ts +5 -4
- package/dist/esm/models/components/responseobject.d.ts.map +1 -1
- package/dist/esm/models/components/responseobject.js +41 -40
- package/dist/esm/models/components/responseobject.js.map +1 -1
- package/dist/esm/models/components/responsestreamingevent.d.ts +2 -1
- package/dist/esm/models/components/responsestreamingevent.d.ts.map +1 -1
- package/dist/esm/models/components/responsestreamingevent.js +68 -67
- package/dist/esm/models/components/responsestreamingevent.js.map +1 -1
- package/dist/esm/models/components/sessionrecord.d.ts +2 -0
- package/dist/esm/models/components/sessionrecord.d.ts.map +1 -1
- package/dist/esm/models/components/sessionrecord.js +4 -0
- package/dist/esm/models/components/sessionrecord.js.map +1 -1
- package/dist/esm/models/components/shellenvironment.d.ts +2 -1
- package/dist/esm/models/components/shellenvironment.d.ts.map +1 -1
- package/dist/esm/models/components/shellenvironment.js +5 -4
- package/dist/esm/models/components/shellenvironment.js.map +1 -1
- package/dist/esm/models/components/skillentry.d.ts +2 -1
- package/dist/esm/models/components/skillentry.d.ts.map +1 -1
- package/dist/esm/models/components/skillentry.js +5 -4
- package/dist/esm/models/components/skillentry.js.map +1 -1
- package/dist/esm/models/components/tooldefinition.d.ts +5 -4
- package/dist/esm/models/components/tooldefinition.d.ts.map +1 -1
- package/dist/esm/models/components/tooldefinition.js +29 -28
- package/dist/esm/models/components/tooldefinition.js.map +1 -1
- package/dist/esm/models/components/websearchaction.d.ts +2 -1
- package/dist/esm/models/components/websearchaction.d.ts.map +1 -1
- package/dist/esm/models/components/websearchaction.js +6 -5
- package/dist/esm/models/components/websearchaction.js.map +1 -1
- package/dist/esm/models/operations/createchatcompletionstream.d.ts +2 -1
- package/dist/esm/models/operations/createchatcompletionstream.d.ts.map +1 -1
- package/dist/esm/models/operations/createchatcompletionstream.js +6 -5
- package/dist/esm/models/operations/createchatcompletionstream.js.map +1 -1
- package/dist/esm/models/operations/uploadfile.d.ts +1 -1
- package/dist/esm/types/discriminatedUnion.d.ts +25 -0
- package/dist/esm/types/discriminatedUnion.d.ts.map +1 -0
- package/dist/esm/types/discriminatedUnion.js +57 -0
- package/dist/esm/types/discriminatedUnion.js.map +1 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/hooks/multipartFilename.ts +60 -0
- package/src/hooks/registration.ts +2 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/agentschedulespec.ts +9 -6
- package/src/models/components/chunkingstrategy.ts +9 -6
- package/src/models/components/codeinterpreteroutput.ts +8 -5
- package/src/models/components/computeraction.ts +15 -12
- package/src/models/components/customtoolformat.ts +10 -2
- package/src/models/components/filesearchcompoundfilter.ts +41 -39
- package/src/models/components/githubpullrequestrequest.ts +13 -0
- package/src/models/components/guardrailconfig.ts +9 -6
- package/src/models/components/method.ts +75 -43
- package/src/models/components/openaichatcompletionchoice.ts +24 -21
- package/src/models/components/openaichatcompletionchunk.ts +24 -21
- package/src/models/components/outputmessage.ts +19 -10
- package/src/models/components/outputmessagewithid.ts +19 -10
- package/src/models/components/outputtext.ts +23 -16
- package/src/models/components/responsecontentpartaddedevent.ts +25 -13
- package/src/models/components/responsecontentpartdoneevent.ts +22 -12
- package/src/models/components/responseformat.ts +9 -6
- package/src/models/components/responseobject.ts +62 -48
- package/src/models/components/responsestreamingevent.ts +118 -68
- package/src/models/components/sessionrecord.ts +6 -0
- package/src/models/components/shellenvironment.ts +8 -5
- package/src/models/components/skillentry.ts +10 -5
- package/src/models/components/tooldefinition.ts +42 -31
- package/src/models/components/websearchaction.ts +12 -6
- package/src/models/operations/createchatcompletionstream.ts +12 -6
- package/src/models/operations/uploadfile.ts +1 -1
- package/src/types/discriminatedUnion.ts +96 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RequestInput } from "../lib/http.js";
|
|
2
|
+
import { BeforeCreateRequestContext, BeforeCreateRequestHook } from "./types.js";
|
|
3
|
+
/**
|
|
4
|
+
* Rejects multipart file uploads that carry no usable filename before any
|
|
5
|
+
* network call is made. A raw `Blob` has no name, so runtimes serialize it
|
|
6
|
+
* with the placeholder `filename="blob"`, which the platform rejects with a
|
|
7
|
+
* misleading "Unsupported file type" error.
|
|
8
|
+
*/
|
|
9
|
+
export declare class MultipartFilenameHook implements BeforeCreateRequestHook {
|
|
10
|
+
beforeCreateRequest(hookCtx: BeforeCreateRequestContext, input: RequestInput): RequestInput;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=multipartFilename.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multipartFilename.d.ts","sourceRoot":"","sources":["../../../src/hooks/multipartFilename.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,EACL,0BAA0B,EAC1B,uBAAuB,EACxB,MAAM,YAAY,CAAC;AAapB;;;;;GAKG;AACH,qBAAa,qBAAsB,YAAW,uBAAuB;IACnE,mBAAmB,CACjB,OAAO,EAAE,0BAA0B,EACnC,KAAK,EAAE,YAAY,GAClB,YAAY;CA+BhB"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MultipartFilenameHook = void 0;
|
|
4
|
+
const httpclienterrors_js_1 = require("../models/errors/httpclienterrors.js");
|
|
5
|
+
const FILE_FIELDS = {
|
|
6
|
+
uploadFile: "file",
|
|
7
|
+
extract: "file",
|
|
8
|
+
extractWithSchema: "file",
|
|
9
|
+
transcribe: "file",
|
|
10
|
+
createSkill: "files[]",
|
|
11
|
+
createSkillVersion: "files[]",
|
|
12
|
+
};
|
|
13
|
+
const PLACEHOLDER_NAME = "blob";
|
|
14
|
+
/**
|
|
15
|
+
* Rejects multipart file uploads that carry no usable filename before any
|
|
16
|
+
* network call is made. A raw `Blob` has no name, so runtimes serialize it
|
|
17
|
+
* with the placeholder `filename="blob"`, which the platform rejects with a
|
|
18
|
+
* misleading "Unsupported file type" error.
|
|
19
|
+
*/
|
|
20
|
+
class MultipartFilenameHook {
|
|
21
|
+
beforeCreateRequest(hookCtx, input) {
|
|
22
|
+
const field = FILE_FIELDS[hookCtx.operationID];
|
|
23
|
+
const body = input.options?.body;
|
|
24
|
+
if (field == null || !(body instanceof FormData)) {
|
|
25
|
+
return input;
|
|
26
|
+
}
|
|
27
|
+
for (const entry of body.getAll(field)) {
|
|
28
|
+
if (typeof entry === "string") {
|
|
29
|
+
continue;
|
|
30
|
+
}
|
|
31
|
+
// Bun currently returns a Blob (without File.name) for a nameless part,
|
|
32
|
+
// despite FormData.getAll()'s DOM type declaring File. Other runtimes
|
|
33
|
+
// return a File named "blob". Treat both representations identically.
|
|
34
|
+
const rawName = Reflect.get(entry, "name");
|
|
35
|
+
const normalizedName = typeof rawName === "string" ? rawName.trim() : "";
|
|
36
|
+
if (!normalizedName || normalizedName === PLACEHOLDER_NAME) {
|
|
37
|
+
throw new httpclienterrors_js_1.InvalidRequestError(`The "${field}" part of the ${hookCtx.operationID} request has no `
|
|
38
|
+
+ "filename and the platform requires one to detect the file type. "
|
|
39
|
+
+ 'Pass a File, e.g. new File([bytes], "report.pdf"), or the '
|
|
40
|
+
+ "{ fileName, content } object form instead of a raw Blob. (A "
|
|
41
|
+
+ `file literally named "${PLACEHOLDER_NAME}" is indistinguishable `
|
|
42
|
+
+ "from the runtime placeholder and is also rejected; include an "
|
|
43
|
+
+ "extension in its name.)");
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return input;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.MultipartFilenameHook = MultipartFilenameHook;
|
|
50
|
+
//# sourceMappingURL=multipartFilename.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C/D,kEAAkE;sBAClE,4DAA4D;sBAC5D,8DAA8D;sBAC9D,yBAAyB,gBAAgB,yBAAyB;sBAClE,gEAAgE;sBAChE,yBAAyB,CAC9B,CAAC;YACJ,CAAC;QACH,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC;CACF;AAnCD,sDAmCC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registration.d.ts","sourceRoot":"","sources":["../../../src/hooks/registration.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"registration.d.ts","sourceRoot":"","sources":["../../../src/hooks/registration.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAQnC,wBAAgB,SAAS,CAAC,KAAK,EAAE,KAAK,QAKrC"}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.initHooks = initHooks;
|
|
4
|
+
const multipartFilename_js_1 = require("./multipartFilename.js");
|
|
4
5
|
/*
|
|
5
6
|
* This file is only ever generated once on the first generation and then is free to be modified.
|
|
6
7
|
* Any hooks you wish to add should be registered in the initHooks function. Feel free to define them
|
|
7
8
|
* in this file or in separate files in the hooks folder.
|
|
8
9
|
*/
|
|
9
|
-
// @ts-expect-error remove this line when you add your first hook and hooks is used
|
|
10
10
|
function initHooks(hooks) {
|
|
11
11
|
// Add hooks by calling hooks.register{ClientInit/BeforeCreateRequest/BeforeRequest/AfterSuccess/AfterError}Hook
|
|
12
12
|
// with an instance of a hook that implements that specific Hook interface
|
|
13
13
|
// Hooks are registered per SDK instance, and are valid for the lifetime of the SDK instance
|
|
14
|
+
hooks.registerBeforeCreateRequestHook(new multipartFilename_js_1.MultipartFilenameHook());
|
|
14
15
|
}
|
|
15
16
|
//# sourceMappingURL=registration.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registration.js","sourceRoot":"","sources":["../../../src/hooks/registration.ts"],"names":[],"mappings":";;AASA,
|
|
1
|
+
{"version":3,"file":"registration.js","sourceRoot":"","sources":["../../../src/hooks/registration.ts"],"names":[],"mappings":";;AASA,8BAKC;AAdD,iEAA+D;AAG/D;;;;GAIG;AAEH,SAAgB,SAAS,CAAC,KAAY;IACpC,gHAAgH;IAChH,0EAA0E;IAC1E,4FAA4F;IAC5F,KAAK,CAAC,+BAA+B,CAAC,IAAI,4CAAqB,EAAE,CAAC,CAAC;AACrE,CAAC"}
|
|
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
31
31
|
export declare const SDK_METADATA: {
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "1.1.0";
|
|
34
|
-
readonly sdkVersion: "0.54.
|
|
34
|
+
readonly sdkVersion: "0.54.9";
|
|
35
35
|
readonly genVersion: "2.933.0";
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.54.
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.54.9 2.933.0 1.1.0 @meetkai/mka1";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -35,8 +35,8 @@ function serverURLFromOptions(options) {
|
|
|
35
35
|
exports.SDK_METADATA = {
|
|
36
36
|
language: "typescript",
|
|
37
37
|
openapiDocVersion: "1.1.0",
|
|
38
|
-
sdkVersion: "0.54.
|
|
38
|
+
sdkVersion: "0.54.9",
|
|
39
39
|
genVersion: "2.933.0",
|
|
40
|
-
userAgent: "speakeasy-sdk/typescript 0.54.
|
|
40
|
+
userAgent: "speakeasy-sdk/typescript 0.54.9 2.933.0 1.1.0 @meetkai/mka1",
|
|
41
41
|
};
|
|
42
42
|
//# sourceMappingURL=config.js.map
|
|
@@ -22,7 +22,7 @@ const routes = (0, core_1.buildRouteMap)({
|
|
|
22
22
|
exports.app = (0, core_1.buildApplication)(routes, {
|
|
23
23
|
name: "mcp",
|
|
24
24
|
versionInfo: {
|
|
25
|
-
currentVersion: "0.54.
|
|
25
|
+
currentVersion: "0.54.9",
|
|
26
26
|
},
|
|
27
27
|
});
|
|
28
28
|
(0, core_1.run)(exports.app, node_process_1.default.argv.slice(2), (0, cli_js_1.buildContext)(node_process_1.default));
|
|
@@ -377,7 +377,7 @@ const usageSandbox_js_1 = require("./tools/usageSandbox.js");
|
|
|
377
377
|
function createMCPServer(deps) {
|
|
378
378
|
const server = new mcp_js_1.McpServer({
|
|
379
379
|
name: "SDK",
|
|
380
|
-
version: "0.54.
|
|
380
|
+
version: "0.54.9",
|
|
381
381
|
});
|
|
382
382
|
const client = new core_js_1.SDKCore({
|
|
383
383
|
bearerAuth: deps.bearerAuth,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
|
+
import * as discriminatedUnionTypes from "../../types/discriminatedUnion.js";
|
|
2
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
5
|
export type AgentScheduleSpec3 = {
|
|
@@ -17,7 +18,7 @@ export type AgentScheduleSpec1 = {
|
|
|
17
18
|
runAt: Date;
|
|
18
19
|
timezone?: string | undefined;
|
|
19
20
|
};
|
|
20
|
-
export type AgentScheduleSpec = AgentScheduleSpec1 | AgentScheduleSpec2 | AgentScheduleSpec3
|
|
21
|
+
export type AgentScheduleSpec = AgentScheduleSpec1 | AgentScheduleSpec2 | AgentScheduleSpec3 | discriminatedUnionTypes.Unknown<"type">;
|
|
21
22
|
/** @internal */
|
|
22
23
|
export declare const AgentScheduleSpec3$inboundSchema: z.ZodType<AgentScheduleSpec3, z.ZodTypeDef, unknown>;
|
|
23
24
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentschedulespec.d.ts","sourceRoot":"","sources":["../../../../src/models/components/agentschedulespec.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ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C,EAAE,CAAC,CAAC,OAAO,CACtD,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,iBAAiB,CAKjB,CAAC;AAEH,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR;AACD,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAMxD"}
|
|
@@ -48,6 +48,7 @@ exports.agentScheduleSpecFromJSON = agentScheduleSpecFromJSON;
|
|
|
48
48
|
const z = __importStar(require("zod/v3"));
|
|
49
49
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
50
50
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
51
|
+
const discriminatedUnion_js_1 = require("../../types/discriminatedUnion.js");
|
|
51
52
|
/** @internal */
|
|
52
53
|
exports.AgentScheduleSpec3$inboundSchema = z.object({
|
|
53
54
|
type: z.literal("cron"),
|
|
@@ -132,11 +133,11 @@ function agentScheduleSpec1FromJSON(jsonString) {
|
|
|
132
133
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AgentScheduleSpec1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AgentScheduleSpec1' from JSON`);
|
|
133
134
|
}
|
|
134
135
|
/** @internal */
|
|
135
|
-
exports.AgentScheduleSpec$inboundSchema =
|
|
136
|
-
z.lazy(() => exports.AgentScheduleSpec1$inboundSchema),
|
|
137
|
-
z.lazy(() => exports.AgentScheduleSpec2$inboundSchema),
|
|
138
|
-
z.lazy(() => exports.AgentScheduleSpec3$inboundSchema),
|
|
139
|
-
|
|
136
|
+
exports.AgentScheduleSpec$inboundSchema = (0, discriminatedUnion_js_1.discriminatedUnion)("type", {
|
|
137
|
+
once: z.lazy(() => exports.AgentScheduleSpec1$inboundSchema),
|
|
138
|
+
interval: z.lazy(() => exports.AgentScheduleSpec2$inboundSchema),
|
|
139
|
+
cron: z.lazy(() => exports.AgentScheduleSpec3$inboundSchema),
|
|
140
|
+
});
|
|
140
141
|
/** @internal */
|
|
141
142
|
exports.AgentScheduleSpec$outboundSchema = z.union([
|
|
142
143
|
z.lazy(() => exports.AgentScheduleSpec1$outboundSchema),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentschedulespec.js","sourceRoot":"","sources":["../../../../src/models/components/agentschedulespec.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"agentschedulespec.js","sourceRoot":"","sources":["../../../../src/models/components/agentschedulespec.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuEH,4DAMC;AACD,gEAQC;AA4CD,4DAMC;AACD,gEAQC;AAsCD,4DAMC;AACD,gEAQC;AA6BD,0DAMC;AACD,8DAQC;AAhPD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAEjD,6EAAuE;AA6BvE,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;IACvB,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;IAC3B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;CACpC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,iBAAiB,EAAE,gBAAgB;KACpC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;IACvB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,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,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,wCAAgC,CAAC;CACrD,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,CAAC,CAAC,KAAK,CAAC;IACV,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,yCAAiC,CAAC;IAC/C,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,yCAAiC,CAAC;IAC/C,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,yCAAiC,CAAC;CAChD,CAAC,CAAC;AAEH,SAAgB,uBAAuB,CACrC,iBAAoC;IAEpC,OAAO,IAAI,CAAC,SAAS,CACnB,wCAAgC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAC1D,CAAC;AACJ,CAAC;AACD,SAAgB,yBAAyB,CACvC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uCAA+B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC3D,+CAA+C,CAChD,CAAC;AACJ,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
|
+
import * as discriminatedUnionTypes from "../../types/discriminatedUnion.js";
|
|
2
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
5
|
import { AutoChunkingStrategy, AutoChunkingStrategy$Outbound } from "./autochunkingstrategy.js";
|
|
5
6
|
import { OtherChunkingStrategy, OtherChunkingStrategy$Outbound } from "./otherchunkingstrategy.js";
|
|
6
7
|
import { StaticChunkingStrategy, StaticChunkingStrategy$Outbound } from "./staticchunkingstrategy.js";
|
|
7
|
-
export type ChunkingStrategy = AutoChunkingStrategy | StaticChunkingStrategy | OtherChunkingStrategy
|
|
8
|
+
export type ChunkingStrategy = AutoChunkingStrategy | StaticChunkingStrategy | OtherChunkingStrategy | discriminatedUnionTypes.Unknown<"type">;
|
|
8
9
|
/** @internal */
|
|
9
10
|
export declare const ChunkingStrategy$inboundSchema: z.ZodType<ChunkingStrategy, z.ZodTypeDef, unknown>;
|
|
10
11
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chunkingstrategy.d.ts","sourceRoot":"","sources":["../../../../src/models/components/chunkingstrategy.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,oBAAoB,EAEpB,6BAA6B,EAE9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,qBAAqB,EAErB,8BAA8B,EAE/B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,sBAAsB,EAEtB,+BAA+B,EAEhC,MAAM,6BAA6B,CAAC;AAErC,MAAM,MAAM,gBAAgB,GACxB,oBAAoB,GACpB,sBAAsB,GACtB,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"chunkingstrategy.d.ts","sourceRoot":"","sources":["../../../../src/models/components/chunkingstrategy.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,KAAK,uBAAuB,MAAM,mCAAmC,CAAC;AAE7E,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,oBAAoB,EAEpB,6BAA6B,EAE9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,qBAAqB,EAErB,8BAA8B,EAE/B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,sBAAsB,EAEtB,+BAA+B,EAEhC,MAAM,6BAA6B,CAAC;AAErC,MAAM,MAAM,gBAAgB,GACxB,oBAAoB,GACpB,sBAAsB,GACtB,qBAAqB,GACrB,uBAAuB,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;AAE5C,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,gBAAgB,EAChB,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,yBAAyB,GACjC,6BAA6B,GAC7B,+BAA+B,GAC/B,8BAA8B,CAAC;AAEnC,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,gBAAgB,CAKhB,CAAC;AAEH,wBAAgB,sBAAsB,CACpC,gBAAgB,EAAE,gBAAgB,GACjC,MAAM,CAIR;AACD,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAMvD"}
|
|
@@ -41,15 +41,16 @@ exports.chunkingStrategyToJSON = chunkingStrategyToJSON;
|
|
|
41
41
|
exports.chunkingStrategyFromJSON = chunkingStrategyFromJSON;
|
|
42
42
|
const z = __importStar(require("zod/v3"));
|
|
43
43
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
const discriminatedUnion_js_1 = require("../../types/discriminatedUnion.js");
|
|
44
45
|
const autochunkingstrategy_js_1 = require("./autochunkingstrategy.js");
|
|
45
46
|
const otherchunkingstrategy_js_1 = require("./otherchunkingstrategy.js");
|
|
46
47
|
const staticchunkingstrategy_js_1 = require("./staticchunkingstrategy.js");
|
|
47
48
|
/** @internal */
|
|
48
|
-
exports.ChunkingStrategy$inboundSchema =
|
|
49
|
-
autochunkingstrategy_js_1.AutoChunkingStrategy$inboundSchema,
|
|
50
|
-
staticchunkingstrategy_js_1.StaticChunkingStrategy$inboundSchema,
|
|
51
|
-
otherchunkingstrategy_js_1.OtherChunkingStrategy$inboundSchema,
|
|
52
|
-
|
|
49
|
+
exports.ChunkingStrategy$inboundSchema = (0, discriminatedUnion_js_1.discriminatedUnion)("type", {
|
|
50
|
+
auto: autochunkingstrategy_js_1.AutoChunkingStrategy$inboundSchema,
|
|
51
|
+
static: staticchunkingstrategy_js_1.StaticChunkingStrategy$inboundSchema,
|
|
52
|
+
other: otherchunkingstrategy_js_1.OtherChunkingStrategy$inboundSchema,
|
|
53
|
+
});
|
|
53
54
|
/** @internal */
|
|
54
55
|
exports.ChunkingStrategy$outboundSchema = z.union([
|
|
55
56
|
autochunkingstrategy_js_1.AutoChunkingStrategy$outboundSchema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chunkingstrategy.js","sourceRoot":"","sources":["../../../../src/models/components/chunkingstrategy.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"chunkingstrategy.js","sourceRoot":"","sources":["../../../../src/models/components/chunkingstrategy.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4DH,wDAMC;AACD,4DAQC;AAzED,0CAA4B;AAC5B,qDAAiD;AAEjD,6EAAuE;AAGvE,uEAKmC;AACnC,yEAKoC;AACpC,2EAKqC;AAQrC,gBAAgB;AACH,QAAA,8BAA8B,GAIvC,IAAA,0CAAkB,EAAC,MAAM,EAAE;IAC7B,IAAI,EAAE,4DAAkC;IACxC,MAAM,EAAE,gEAAoC;IAC5C,KAAK,EAAE,8DAAmC;CAC3C,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,+BAA+B,GAIxC,CAAC,CAAC,KAAK,CAAC;IACV,6DAAmC;IACnC,iEAAqC;IACrC,+DAAoC;CACrC,CAAC,CAAC;AAEH,SAAgB,sBAAsB,CACpC,gBAAkC;IAElC,OAAO,IAAI,CAAC,SAAS,CACnB,uCAA+B,CAAC,KAAK,CAAC,gBAAgB,CAAC,CACxD,CAAC;AACJ,CAAC;AACD,SAAgB,wBAAwB,CACtC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,sCAA8B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1D,8CAA8C,CAC/C,CAAC;AACJ,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
|
+
import * as discriminatedUnionTypes from "../../types/discriminatedUnion.js";
|
|
2
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
5
|
import { CodeInterpreterOutputImage, CodeInterpreterOutputImage$Outbound } from "./codeinterpreteroutputimage.js";
|
|
5
6
|
import { CodeInterpreterOutputLogs, CodeInterpreterOutputLogs$Outbound } from "./codeinterpreteroutputlogs.js";
|
|
6
|
-
export type CodeInterpreterOutput = CodeInterpreterOutputLogs | CodeInterpreterOutputImage
|
|
7
|
+
export type CodeInterpreterOutput = CodeInterpreterOutputLogs | CodeInterpreterOutputImage | discriminatedUnionTypes.Unknown<"type">;
|
|
7
8
|
/** @internal */
|
|
8
9
|
export declare const CodeInterpreterOutput$inboundSchema: z.ZodType<CodeInterpreterOutput, z.ZodTypeDef, unknown>;
|
|
9
10
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codeinterpreteroutput.d.ts","sourceRoot":"","sources":["../../../../src/models/components/codeinterpreteroutput.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,0BAA0B,EAE1B,mCAAmC,EAEpC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,yBAAyB,EAEzB,kCAAkC,EAEnC,MAAM,gCAAgC,CAAC;AAExC,MAAM,MAAM,qBAAqB,GAC7B,yBAAyB,GACzB,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"codeinterpreteroutput.d.ts","sourceRoot":"","sources":["../../../../src/models/components/codeinterpreteroutput.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,KAAK,uBAAuB,MAAM,mCAAmC,CAAC;AAE7E,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,0BAA0B,EAE1B,mCAAmC,EAEpC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,yBAAyB,EAEzB,kCAAkC,EAEnC,MAAM,gCAAgC,CAAC;AAExC,MAAM,MAAM,qBAAqB,GAC7B,yBAAyB,GACzB,0BAA0B,GAC1B,uBAAuB,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;AAE5C,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,qBAAqB,EACrB,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,8BAA8B,GACtC,kCAAkC,GAClC,mCAAmC,CAAC;AAExC,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,8BAA8B,EAC9B,CAAC,CAAC,UAAU,EACZ,qBAAqB,CAIrB,CAAC;AAEH,wBAAgB,2BAA2B,CACzC,qBAAqB,EAAE,qBAAqB,GAC3C,MAAM,CAIR;AACD,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAM5D"}
|
|
@@ -41,13 +41,14 @@ exports.codeInterpreterOutputToJSON = codeInterpreterOutputToJSON;
|
|
|
41
41
|
exports.codeInterpreterOutputFromJSON = codeInterpreterOutputFromJSON;
|
|
42
42
|
const z = __importStar(require("zod/v3"));
|
|
43
43
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
const discriminatedUnion_js_1 = require("../../types/discriminatedUnion.js");
|
|
44
45
|
const codeinterpreteroutputimage_js_1 = require("./codeinterpreteroutputimage.js");
|
|
45
46
|
const codeinterpreteroutputlogs_js_1 = require("./codeinterpreteroutputlogs.js");
|
|
46
47
|
/** @internal */
|
|
47
|
-
exports.CodeInterpreterOutput$inboundSchema =
|
|
48
|
-
codeinterpreteroutputlogs_js_1.CodeInterpreterOutputLogs$inboundSchema,
|
|
49
|
-
codeinterpreteroutputimage_js_1.CodeInterpreterOutputImage$inboundSchema,
|
|
50
|
-
|
|
48
|
+
exports.CodeInterpreterOutput$inboundSchema = (0, discriminatedUnion_js_1.discriminatedUnion)("type", {
|
|
49
|
+
logs: codeinterpreteroutputlogs_js_1.CodeInterpreterOutputLogs$inboundSchema,
|
|
50
|
+
image: codeinterpreteroutputimage_js_1.CodeInterpreterOutputImage$inboundSchema,
|
|
51
|
+
});
|
|
51
52
|
/** @internal */
|
|
52
53
|
exports.CodeInterpreterOutput$outboundSchema = z.union([
|
|
53
54
|
codeinterpreteroutputlogs_js_1.CodeInterpreterOutputLogs$outboundSchema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codeinterpreteroutput.js","sourceRoot":"","sources":["../../../../src/models/components/codeinterpreteroutput.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"codeinterpreteroutput.js","sourceRoot":"","sources":["../../../../src/models/components/codeinterpreteroutput.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDH,kEAMC;AACD,sEAQC;AA/DD,0CAA4B;AAC5B,qDAAiD;AAEjD,6EAAuE;AAGvE,mFAKyC;AACzC,iFAKwC;AAOxC,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,IAAA,0CAAkB,EAAC,MAAM,EAAE;IAC7B,IAAI,EAAE,sEAAuC;IAC7C,KAAK,EAAE,wEAAwC;CAChD,CAAC,CAAC;AAMH,gBAAgB;AACH,QAAA,oCAAoC,GAI7C,CAAC,CAAC,KAAK,CAAC;IACV,uEAAwC;IACxC,yEAAyC;CAC1C,CAAC,CAAC;AAEH,SAAgB,2BAA2B,CACzC,qBAA4C;IAE5C,OAAO,IAAI,CAAC,SAAS,CACnB,4CAAoC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAClE,CAAC;AACJ,CAAC;AACD,SAAgB,6BAA6B,CAC3C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,2CAAmC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/D,mDAAmD,CACpD,CAAC;AACJ,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
|
+
import * as discriminatedUnionTypes from "../../types/discriminatedUnion.js";
|
|
2
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
5
|
import { ClickAction, ClickAction$Outbound } from "./clickaction.js";
|
|
@@ -10,7 +11,7 @@ import { ScreenshotAction, ScreenshotAction$Outbound } from "./screenshotaction.
|
|
|
10
11
|
import { ScrollAction, ScrollAction$Outbound } from "./scrollaction.js";
|
|
11
12
|
import { TypeAction, TypeAction$Outbound } from "./typeaction.js";
|
|
12
13
|
import { WaitAction, WaitAction$Outbound } from "./waitaction.js";
|
|
13
|
-
export type ComputerAction = ClickAction | DoubleClickAction | DragAction | KeyPressAction | MoveAction | ScreenshotAction | ScrollAction | TypeAction | WaitAction
|
|
14
|
+
export type ComputerAction = ClickAction | DoubleClickAction | DragAction | KeyPressAction | MoveAction | ScreenshotAction | ScrollAction | TypeAction | WaitAction | discriminatedUnionTypes.Unknown<"type">;
|
|
14
15
|
/** @internal */
|
|
15
16
|
export declare const ComputerAction$inboundSchema: z.ZodType<ComputerAction, z.ZodTypeDef, unknown>;
|
|
16
17
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computeraction.d.ts","sourceRoot":"","sources":["../../../../src/models/components/computeraction.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,WAAW,EAEX,oBAAoB,EAErB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,iBAAiB,EAEjB,0BAA0B,EAE3B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,UAAU,EAEV,mBAAmB,EAEpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,cAAc,EAEd,uBAAuB,EAExB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,UAAU,EAEV,mBAAmB,EAEpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,gBAAgB,EAEhB,yBAAyB,EAE1B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,YAAY,EAEZ,qBAAqB,EAEtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,UAAU,EAEV,mBAAmB,EAEpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,UAAU,EAEV,mBAAmB,EAEpB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,MAAM,cAAc,GACtB,WAAW,GACX,iBAAiB,GACjB,UAAU,GACV,cAAc,GACd,UAAU,GACV,gBAAgB,GAChB,YAAY,GACZ,UAAU,GACV,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"computeraction.d.ts","sourceRoot":"","sources":["../../../../src/models/components/computeraction.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,KAAK,uBAAuB,MAAM,mCAAmC,CAAC;AAE7E,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,WAAW,EAEX,oBAAoB,EAErB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,iBAAiB,EAEjB,0BAA0B,EAE3B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,UAAU,EAEV,mBAAmB,EAEpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,cAAc,EAEd,uBAAuB,EAExB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,UAAU,EAEV,mBAAmB,EAEpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,gBAAgB,EAEhB,yBAAyB,EAE1B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,YAAY,EAEZ,qBAAqB,EAEtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,UAAU,EAEV,mBAAmB,EAEpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,UAAU,EAEV,mBAAmB,EAEpB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,MAAM,cAAc,GACtB,WAAW,GACX,iBAAiB,GACjB,UAAU,GACV,cAAc,GACd,UAAU,GACV,gBAAgB,GAChB,YAAY,GACZ,UAAU,GACV,UAAU,GACV,uBAAuB,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;AAE5C,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAClD,cAAc,EACd,CAAC,CAAC,UAAU,EACZ,OAAO,CAWP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,uBAAuB,GAC/B,oBAAoB,GACpB,0BAA0B,GAC1B,mBAAmB,GACnB,uBAAuB,GACvB,mBAAmB,GACnB,yBAAyB,GACzB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,CAAC;AAExB,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,uBAAuB,EACvB,CAAC,CAAC,UAAU,EACZ,cAAc,CAWd,CAAC;AAEH,wBAAgB,oBAAoB,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM,CAE3E;AACD,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAMrD"}
|
|
@@ -41,6 +41,7 @@ exports.computerActionToJSON = computerActionToJSON;
|
|
|
41
41
|
exports.computerActionFromJSON = computerActionFromJSON;
|
|
42
42
|
const z = __importStar(require("zod/v3"));
|
|
43
43
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
const discriminatedUnion_js_1 = require("../../types/discriminatedUnion.js");
|
|
44
45
|
const clickaction_js_1 = require("./clickaction.js");
|
|
45
46
|
const doubleclickaction_js_1 = require("./doubleclickaction.js");
|
|
46
47
|
const dragaction_js_1 = require("./dragaction.js");
|
|
@@ -51,17 +52,17 @@ const scrollaction_js_1 = require("./scrollaction.js");
|
|
|
51
52
|
const typeaction_js_1 = require("./typeaction.js");
|
|
52
53
|
const waitaction_js_1 = require("./waitaction.js");
|
|
53
54
|
/** @internal */
|
|
54
|
-
exports.ComputerAction$inboundSchema =
|
|
55
|
-
clickaction_js_1.ClickAction$inboundSchema,
|
|
56
|
-
doubleclickaction_js_1.DoubleClickAction$inboundSchema,
|
|
57
|
-
dragaction_js_1.DragAction$inboundSchema,
|
|
58
|
-
keypressaction_js_1.KeyPressAction$inboundSchema,
|
|
59
|
-
moveaction_js_1.MoveAction$inboundSchema,
|
|
60
|
-
screenshotaction_js_1.ScreenshotAction$inboundSchema,
|
|
61
|
-
scrollaction_js_1.ScrollAction$inboundSchema,
|
|
62
|
-
typeaction_js_1.TypeAction$inboundSchema,
|
|
63
|
-
waitaction_js_1.WaitAction$inboundSchema,
|
|
64
|
-
|
|
55
|
+
exports.ComputerAction$inboundSchema = (0, discriminatedUnion_js_1.discriminatedUnion)("type", {
|
|
56
|
+
click: clickaction_js_1.ClickAction$inboundSchema,
|
|
57
|
+
double_click: doubleclickaction_js_1.DoubleClickAction$inboundSchema,
|
|
58
|
+
drag: dragaction_js_1.DragAction$inboundSchema,
|
|
59
|
+
keypress: keypressaction_js_1.KeyPressAction$inboundSchema,
|
|
60
|
+
move: moveaction_js_1.MoveAction$inboundSchema,
|
|
61
|
+
screenshot: screenshotaction_js_1.ScreenshotAction$inboundSchema,
|
|
62
|
+
scroll: scrollaction_js_1.ScrollAction$inboundSchema,
|
|
63
|
+
type: typeaction_js_1.TypeAction$inboundSchema,
|
|
64
|
+
wait: waitaction_js_1.WaitAction$inboundSchema,
|
|
65
|
+
});
|
|
65
66
|
/** @internal */
|
|
66
67
|
exports.ComputerAction$outboundSchema = z.union([
|
|
67
68
|
clickaction_js_1.ClickAction$outboundSchema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computeraction.js","sourceRoot":"","sources":["../../../../src/models/components/computeraction.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"computeraction.js","sourceRoot":"","sources":["../../../../src/models/components/computeraction.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwHH,oDAEC;AACD,wDAQC;AAjID,0CAA4B;AAC5B,qDAAiD;AAEjD,6EAAuE;AAGvE,qDAK0B;AAC1B,iEAKgC;AAChC,mDAKyB;AACzB,2DAK6B;AAC7B,mDAKyB;AACzB,+DAK+B;AAC/B,uDAK2B;AAC3B,mDAKyB;AACzB,mDAKyB;AAczB,gBAAgB;AACH,QAAA,4BAA4B,GAIrC,IAAA,0CAAkB,EAAC,MAAM,EAAE;IAC7B,KAAK,EAAE,0CAAyB;IAChC,YAAY,EAAE,sDAA+B;IAC7C,IAAI,EAAE,wCAAwB;IAC9B,QAAQ,EAAE,gDAA4B;IACtC,IAAI,EAAE,wCAAwB;IAC9B,UAAU,EAAE,oDAA8B;IAC1C,MAAM,EAAE,4CAA0B;IAClC,IAAI,EAAE,wCAAwB;IAC9B,IAAI,EAAE,wCAAwB;CAC/B,CAAC,CAAC;AAaH,gBAAgB;AACH,QAAA,6BAA6B,GAItC,CAAC,CAAC,KAAK,CAAC;IACV,2CAA0B;IAC1B,uDAAgC;IAChC,yCAAyB;IACzB,iDAA6B;IAC7B,yCAAyB;IACzB,qDAA+B;IAC/B,6CAA2B;IAC3B,yCAAyB;IACzB,yCAAyB;CAC1B,CAAC,CAAC;AAEH,SAAgB,oBAAoB,CAAC,cAA8B;IACjE,OAAO,IAAI,CAAC,SAAS,CAAC,qCAA6B,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC;AAC7E,CAAC;AACD,SAAgB,sBAAsB,CACpC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,oCAA4B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxD,4CAA4C,CAC7C,CAAC;AACJ,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
|
+
import * as discriminatedUnionTypes from "../../types/discriminatedUnion.js";
|
|
2
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
5
|
import { GrammarFormat, GrammarFormat$Outbound } from "./grammarformat.js";
|
|
5
6
|
import { TextFormat, TextFormat$Outbound } from "./textformat.js";
|
|
6
|
-
export type CustomToolFormat = TextFormat | GrammarFormat
|
|
7
|
+
export type CustomToolFormat = TextFormat | GrammarFormat | discriminatedUnionTypes.Unknown<"type">;
|
|
7
8
|
/** @internal */
|
|
8
9
|
export declare const CustomToolFormat$inboundSchema: z.ZodType<CustomToolFormat, z.ZodTypeDef, unknown>;
|
|
9
10
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customtoolformat.d.ts","sourceRoot":"","sources":["../../../../src/models/components/customtoolformat.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,aAAa,EAEb,sBAAsB,EAEvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,UAAU,EAEV,mBAAmB,EAEpB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"customtoolformat.d.ts","sourceRoot":"","sources":["../../../../src/models/components/customtoolformat.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,KAAK,uBAAuB,MAAM,mCAAmC,CAAC;AAE7E,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,aAAa,EAEb,sBAAsB,EAEvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,UAAU,EAEV,mBAAmB,EAEpB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,MAAM,gBAAgB,GACxB,UAAU,GACV,aAAa,GACb,uBAAuB,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;AAE5C,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,gBAAgB,EAChB,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,yBAAyB,GACjC,mBAAmB,GACnB,sBAAsB,CAAC;AAE3B,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,gBAAgB,CACoD,CAAC;AAEvE,wBAAgB,sBAAsB,CACpC,gBAAgB,EAAE,gBAAgB,GACjC,MAAM,CAIR;AACD,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAMvD"}
|
|
@@ -41,10 +41,14 @@ exports.customToolFormatToJSON = customToolFormatToJSON;
|
|
|
41
41
|
exports.customToolFormatFromJSON = customToolFormatFromJSON;
|
|
42
42
|
const z = __importStar(require("zod/v3"));
|
|
43
43
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
const discriminatedUnion_js_1 = require("../../types/discriminatedUnion.js");
|
|
44
45
|
const grammarformat_js_1 = require("./grammarformat.js");
|
|
45
46
|
const textformat_js_1 = require("./textformat.js");
|
|
46
47
|
/** @internal */
|
|
47
|
-
exports.CustomToolFormat$inboundSchema =
|
|
48
|
+
exports.CustomToolFormat$inboundSchema = (0, discriminatedUnion_js_1.discriminatedUnion)("type", {
|
|
49
|
+
text: textformat_js_1.TextFormat$inboundSchema,
|
|
50
|
+
grammar: grammarformat_js_1.GrammarFormat$inboundSchema,
|
|
51
|
+
});
|
|
48
52
|
/** @internal */
|
|
49
53
|
exports.CustomToolFormat$outboundSchema = z.union([textformat_js_1.TextFormat$outboundSchema, grammarformat_js_1.GrammarFormat$outboundSchema]);
|
|
50
54
|
function customToolFormatToJSON(customToolFormat) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customtoolformat.js","sourceRoot":"","sources":["../../../../src/models/components/customtoolformat.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"customtoolformat.js","sourceRoot":"","sources":["../../../../src/models/components/customtoolformat.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CH,wDAMC;AACD,4DAQC;AA5DD,0CAA4B;AAC5B,qDAAiD;AAEjD,6EAAuE;AAGvE,yDAK4B;AAC5B,mDAKyB;AAOzB,gBAAgB;AACH,QAAA,8BAA8B,GAIvC,IAAA,0CAAkB,EAAC,MAAM,EAAE;IAC7B,IAAI,EAAE,wCAAwB;IAC9B,OAAO,EAAE,8CAA2B;CACrC,CAAC,CAAC;AAMH,gBAAgB;AACH,QAAA,+BAA+B,GAIxC,CAAC,CAAC,KAAK,CAAC,CAAC,yCAAyB,EAAE,+CAA4B,CAAC,CAAC,CAAC;AAEvE,SAAgB,sBAAsB,CACpC,gBAAkC;IAElC,OAAO,IAAI,CAAC,SAAS,CACnB,uCAA+B,CAAC,KAAK,CAAC,gBAAgB,CAAC,CACxD,CAAC;AACJ,CAAC;AACD,SAAgB,wBAAwB,CACtC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,sCAA8B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1D,8CAA8C,CAC/C,CAAC;AACJ,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
|
+
import * as discriminatedUnionTypes from "../../types/discriminatedUnion.js";
|
|
2
3
|
import { ClosedEnum } from "../../types/enums.js";
|
|
3
4
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
5
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -26,7 +27,7 @@ export type FileSearchCompoundFilter = {
|
|
|
26
27
|
type: "and";
|
|
27
28
|
}) | (FileSearchCompoundFilter & {
|
|
28
29
|
type: "or";
|
|
29
|
-
})
|
|
30
|
+
}) | discriminatedUnionTypes.Unknown<"type">>;
|
|
30
31
|
};
|
|
31
32
|
export type FileSearchCompoundFilterFilters = (FileSearchComparisonFilter & {
|
|
32
33
|
type: "eq";
|
|
@@ -44,7 +45,7 @@ export type FileSearchCompoundFilterFilters = (FileSearchComparisonFilter & {
|
|
|
44
45
|
type: "and";
|
|
45
46
|
}) | (FileSearchCompoundFilter & {
|
|
46
47
|
type: "or";
|
|
47
|
-
})
|
|
48
|
+
}) | discriminatedUnionTypes.Unknown<"type">;
|
|
48
49
|
/** @internal */
|
|
49
50
|
export declare const FileSearchCompoundFilterType$inboundSchema: z.ZodNativeEnum<typeof FileSearchCompoundFilterType>;
|
|
50
51
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filesearchcompoundfilter.d.ts","sourceRoot":"","sources":["../../../../src/models/components/filesearchcompoundfilter.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,0BAA0B,EAE1B,mCAAmC,EAEpC,MAAM,iCAAiC,CAAC;AAEzC,eAAO,MAAM,4BAA4B;;;CAG/B,CAAC;AACX,MAAM,MAAM,4BAA4B,GAAG,UAAU,CACnD,OAAO,4BAA4B,CACpC,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,IAAI,EAAE,4BAA4B,CAAC;IACnC,OAAO,EAAE,KAAK,CACV,CAAC,0BAA0B,GAAG;QAAE,IAAI,EAAE,IAAI,CAAA;KAAE,CAAC,GAC7C,C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B,eAAO,MAAM,6CAA6C,EAAE,CAAC,CAAC,OAAO,CACnE,+BAA+B,EAC/B,CAAC,CAAC,UAAU,EACZ,OAAO,CA0BP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,wCAAwC,GAChD,CAAC,mCAAmC,GAAG;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,CAAC,GACtD,CAAC,mCAAmC,GAAG;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,CAAC,GACtD,CAAC,mCAAmC,GAAG;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,CAAC,GACtD,CAAC,mCAAmC,GAAG;IAAE,IAAI,EAAE,KAAK,CAAA;CAAE,CAAC,GACvD,CAAC,mCAAmC,GAAG;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,CAAC,GACtD,CAAC,mCAAmC,GAAG;IAAE,IAAI,EAAE,KAAK,CAAA;CAAE,CAAC,GACvD,CAAC,iCAAiC,GAAG;IAAE,IAAI,EAAE,KAAK,CAAA;CAAE,CAAC,GACrD,CAAC,iCAAiC,GAAG;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,CAAC,CAAC;AAEzD,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,OAAO,CACpE,wCAAwC,EACxC,CAAC,CAAC,UAAU,EACZ,+BAA+B,CA0B/B,CAAC;AAEH,wBAAgB,qCAAqC,CACnD,+BAA+B,EAAE,+BAA+B,GAC/D,MAAM,CAMR;AACD,wBAAgB,uCAAuC,CACrD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,+BAA+B,EAAE,kBAAkB,CAAC,CAMtE"}
|
|
@@ -43,6 +43,7 @@ exports.fileSearchCompoundFilterFiltersToJSON = fileSearchCompoundFilterFiltersT
|
|
|
43
43
|
exports.fileSearchCompoundFilterFiltersFromJSON = fileSearchCompoundFilterFiltersFromJSON;
|
|
44
44
|
const z = __importStar(require("zod/v3"));
|
|
45
45
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
46
|
+
const discriminatedUnion_js_1 = require("../../types/discriminatedUnion.js");
|
|
46
47
|
const filesearchcomparisonfilter_js_1 = require("./filesearchcomparisonfilter.js");
|
|
47
48
|
exports.FileSearchCompoundFilterType = {
|
|
48
49
|
And: "and",
|
|
@@ -55,16 +56,16 @@ exports.FileSearchCompoundFilterType$outboundSchema = exports.FileSearchCompound
|
|
|
55
56
|
/** @internal */
|
|
56
57
|
exports.FileSearchCompoundFilter$inboundSchema = z.object({
|
|
57
58
|
type: exports.FileSearchCompoundFilterType$inboundSchema,
|
|
58
|
-
filters: z.array(
|
|
59
|
-
filesearchcomparisonfilter_js_1.FileSearchComparisonFilter$inboundSchema.and(z.object({ type: z.literal("eq") })),
|
|
60
|
-
filesearchcomparisonfilter_js_1.FileSearchComparisonFilter$inboundSchema.and(z.object({ type: z.literal("ne") })),
|
|
61
|
-
filesearchcomparisonfilter_js_1.FileSearchComparisonFilter$inboundSchema.and(z.object({ type: z.literal("gt") })),
|
|
62
|
-
filesearchcomparisonfilter_js_1.FileSearchComparisonFilter$inboundSchema.and(z.object({ type: z.literal("gte") })),
|
|
63
|
-
filesearchcomparisonfilter_js_1.FileSearchComparisonFilter$inboundSchema.and(z.object({ type: z.literal("lt") })),
|
|
64
|
-
filesearchcomparisonfilter_js_1.FileSearchComparisonFilter$inboundSchema.and(z.object({ type: z.literal("lte") })),
|
|
65
|
-
z.lazy(() => exports.FileSearchCompoundFilter$inboundSchema).and(z.object({ type: z.literal("and") })),
|
|
66
|
-
z.lazy(() => exports.FileSearchCompoundFilter$inboundSchema).and(z.object({ type: z.literal("or") })),
|
|
67
|
-
|
|
59
|
+
filters: z.array((0, discriminatedUnion_js_1.discriminatedUnion)("type", {
|
|
60
|
+
eq: filesearchcomparisonfilter_js_1.FileSearchComparisonFilter$inboundSchema.and(z.object({ type: z.literal("eq") })),
|
|
61
|
+
ne: filesearchcomparisonfilter_js_1.FileSearchComparisonFilter$inboundSchema.and(z.object({ type: z.literal("ne") })),
|
|
62
|
+
gt: filesearchcomparisonfilter_js_1.FileSearchComparisonFilter$inboundSchema.and(z.object({ type: z.literal("gt") })),
|
|
63
|
+
gte: filesearchcomparisonfilter_js_1.FileSearchComparisonFilter$inboundSchema.and(z.object({ type: z.literal("gte") })),
|
|
64
|
+
lt: filesearchcomparisonfilter_js_1.FileSearchComparisonFilter$inboundSchema.and(z.object({ type: z.literal("lt") })),
|
|
65
|
+
lte: filesearchcomparisonfilter_js_1.FileSearchComparisonFilter$inboundSchema.and(z.object({ type: z.literal("lte") })),
|
|
66
|
+
and: z.lazy(() => exports.FileSearchCompoundFilter$inboundSchema).and(z.object({ type: z.literal("and") })),
|
|
67
|
+
or: z.lazy(() => exports.FileSearchCompoundFilter$inboundSchema).and(z.object({ type: z.literal("or") })),
|
|
68
|
+
})),
|
|
68
69
|
});
|
|
69
70
|
/** @internal */
|
|
70
71
|
exports.FileSearchCompoundFilter$outboundSchema = z.object({
|
|
@@ -87,16 +88,16 @@ function fileSearchCompoundFilterFromJSON(jsonString) {
|
|
|
87
88
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.FileSearchCompoundFilter$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FileSearchCompoundFilter' from JSON`);
|
|
88
89
|
}
|
|
89
90
|
/** @internal */
|
|
90
|
-
exports.FileSearchCompoundFilterFilters$inboundSchema =
|
|
91
|
-
filesearchcomparisonfilter_js_1.FileSearchComparisonFilter$inboundSchema.and(z.object({ type: z.literal("eq") })),
|
|
92
|
-
filesearchcomparisonfilter_js_1.FileSearchComparisonFilter$inboundSchema.and(z.object({ type: z.literal("ne") })),
|
|
93
|
-
filesearchcomparisonfilter_js_1.FileSearchComparisonFilter$inboundSchema.and(z.object({ type: z.literal("gt") })),
|
|
94
|
-
filesearchcomparisonfilter_js_1.FileSearchComparisonFilter$inboundSchema.and(z.object({ type: z.literal("gte") })),
|
|
95
|
-
filesearchcomparisonfilter_js_1.FileSearchComparisonFilter$inboundSchema.and(z.object({ type: z.literal("lt") })),
|
|
96
|
-
filesearchcomparisonfilter_js_1.FileSearchComparisonFilter$inboundSchema.and(z.object({ type: z.literal("lte") })),
|
|
97
|
-
z.lazy(() => exports.FileSearchCompoundFilter$inboundSchema).and(z.object({ type: z.literal("and") })),
|
|
98
|
-
z.lazy(() => exports.FileSearchCompoundFilter$inboundSchema).and(z.object({ type: z.literal("or") })),
|
|
99
|
-
|
|
91
|
+
exports.FileSearchCompoundFilterFilters$inboundSchema = (0, discriminatedUnion_js_1.discriminatedUnion)("type", {
|
|
92
|
+
eq: filesearchcomparisonfilter_js_1.FileSearchComparisonFilter$inboundSchema.and(z.object({ type: z.literal("eq") })),
|
|
93
|
+
ne: filesearchcomparisonfilter_js_1.FileSearchComparisonFilter$inboundSchema.and(z.object({ type: z.literal("ne") })),
|
|
94
|
+
gt: filesearchcomparisonfilter_js_1.FileSearchComparisonFilter$inboundSchema.and(z.object({ type: z.literal("gt") })),
|
|
95
|
+
gte: filesearchcomparisonfilter_js_1.FileSearchComparisonFilter$inboundSchema.and(z.object({ type: z.literal("gte") })),
|
|
96
|
+
lt: filesearchcomparisonfilter_js_1.FileSearchComparisonFilter$inboundSchema.and(z.object({ type: z.literal("lt") })),
|
|
97
|
+
lte: filesearchcomparisonfilter_js_1.FileSearchComparisonFilter$inboundSchema.and(z.object({ type: z.literal("lte") })),
|
|
98
|
+
and: z.lazy(() => exports.FileSearchCompoundFilter$inboundSchema).and(z.object({ type: z.literal("and") })),
|
|
99
|
+
or: z.lazy(() => exports.FileSearchCompoundFilter$inboundSchema).and(z.object({ type: z.literal("or") })),
|
|
100
|
+
});
|
|
100
101
|
/** @internal */
|
|
101
102
|
exports.FileSearchCompoundFilterFilters$outboundSchema = z.union([
|
|
102
103
|
filesearchcomparisonfilter_js_1.FileSearchComparisonFilter$outboundSchema.and(z.object({ type: z.literal("eq") })),
|