@orq-ai/node 3.14.4 → 3.14.5
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 +209 -209
- package/bin/mcp-server.js.map +35 -35
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createtool.js +10 -10
- package/models/operations/duplicatetool.js +10 -10
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getalltools.js +10 -10
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +8 -8
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +10 -10
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +8 -8
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updatetool.js +10 -10
- package/package.json +1 -1
- package/packages/orq-rc/README.md +21 -173
- package/packages/orq-rc/docs/sdks/evals/README.md +1 -2767
- package/packages/orq-rc/examples/package-lock.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +1 -77
- package/packages/orq-rc/src/models/errors/index.ts +0 -38
- package/packages/orq-rc/src/models/operations/createagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +8 -8
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +48 -57
- package/packages/orq-rc/src/models/operations/createknowledge.ts +47 -61
- package/packages/orq-rc/src/models/operations/createprompt.ts +4 -4
- package/packages/orq-rc/src/models/operations/createtool.ts +172 -144
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +920 -1129
- package/packages/orq-rc/src/models/operations/deployments.ts +53 -53
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +52 -73
- package/packages/orq-rc/src/models/operations/duplicatetool.ts +10 -10
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getalltools.ts +10 -10
- package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/index.ts +0 -38
- package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +8 -8
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievetool.ts +10 -10
- package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +8 -8
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
- package/packages/orq-rc/src/models/operations/updateprompt.ts +4 -4
- package/packages/orq-rc/src/models/operations/updatetool.ts +168 -161
- package/packages/orq-rc/src/sdk/evals.ts +0 -570
- 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/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +8 -8
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createtool.ts +10 -10
- package/src/models/operations/duplicatetool.ts +10 -10
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getalltools.ts +10 -10
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +8 -8
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +10 -10
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +8 -8
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updatetool.ts +10 -10
- package/packages/orq-rc/src/funcs/evalsAgeAppropriate.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsBertScore.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsBleuScore.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsBotDetection.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsContains.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsContainsAll.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsContainsAny.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsContainsEmail.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsContainsNone.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsContainsUrl.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsContainsValidLink.ts +0 -177
- package/packages/orq-rc/src/funcs/evalsEndsWith.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsExactMatch.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsFactCheckingKnowledgeBase.ts +0 -183
- package/packages/orq-rc/src/funcs/evalsGrammar.ts +0 -173
- package/packages/orq-rc/src/funcs/evalsInvoke.ts +0 -177
- package/packages/orq-rc/src/funcs/evalsLengthBetween.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsLengthGreaterThan.ts +0 -177
- package/packages/orq-rc/src/funcs/evalsLengthLessThan.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsLocalization.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsPii.ts +0 -173
- package/packages/orq-rc/src/funcs/evalsRagasCoherence.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsRagasConciseness.ts +0 -174
- package/packages/orq-rc/src/funcs/evalsRagasContextEntitiesRecall.ts +0 -183
- package/packages/orq-rc/src/funcs/evalsRagasContextPrecision.ts +0 -180
- package/packages/orq-rc/src/funcs/evalsRagasContextRecall.ts +0 -177
- package/packages/orq-rc/src/funcs/evalsRagasCorrectness.ts +0 -174
- package/packages/orq-rc/src/funcs/evalsRagasFaithfulness.ts +0 -177
- package/packages/orq-rc/src/funcs/evalsRagasHarmfulness.ts +0 -174
- package/packages/orq-rc/src/funcs/evalsRagasMaliciousness.ts +0 -177
- package/packages/orq-rc/src/funcs/evalsRagasNoiseSensitivity.ts +0 -180
- package/packages/orq-rc/src/funcs/evalsRagasResponseRelevancy.ts +0 -183
- package/packages/orq-rc/src/funcs/evalsRagasSummarization.ts +0 -177
- package/packages/orq-rc/src/funcs/evalsSentimentClassification.ts +0 -183
- package/packages/orq-rc/src/funcs/evalsSummarization.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsToneOfVoice.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsTranslation.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsValidJson.ts +0 -175
- package/packages/orq-rc/src/mcp-server/tools/evalsAgeAppropriate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsBertScore.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsBleuScore.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsBotDetection.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsContains.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsContainsAll.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsContainsAny.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsContainsEmail.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsContainsNone.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsContainsUrl.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsContainsValidLink.ts +0 -36
- package/packages/orq-rc/src/mcp-server/tools/evalsEndsWith.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsExactMatch.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsFactCheckingKnowledgeBase.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/evalsGrammar.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsInvoke.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsLengthBetween.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsLengthGreaterThan.ts +0 -36
- package/packages/orq-rc/src/mcp-server/tools/evalsLengthLessThan.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsLocalization.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsPii.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsRagasCoherence.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsRagasConciseness.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsRagasContextEntitiesRecall.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/evalsRagasContextPrecision.ts +0 -36
- package/packages/orq-rc/src/mcp-server/tools/evalsRagasContextRecall.ts +0 -36
- package/packages/orq-rc/src/mcp-server/tools/evalsRagasCorrectness.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsRagasFaithfulness.ts +0 -36
- package/packages/orq-rc/src/mcp-server/tools/evalsRagasHarmfulness.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsRagasMaliciousness.ts +0 -36
- package/packages/orq-rc/src/mcp-server/tools/evalsRagasNoiseSensitivity.ts +0 -36
- package/packages/orq-rc/src/mcp-server/tools/evalsRagasResponseRelevancy.ts +0 -36
- package/packages/orq-rc/src/mcp-server/tools/evalsRagasSummarization.ts +0 -36
- package/packages/orq-rc/src/mcp-server/tools/evalsSentimentClassification.ts +0 -36
- package/packages/orq-rc/src/mcp-server/tools/evalsSummarization.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsToneOfVoice.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsTranslation.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsValidJson.ts +0 -35
- package/packages/orq-rc/src/models/errors/evalsageappropriate.ts +0 -156
- package/packages/orq-rc/src/models/errors/evalsbertscore.ts +0 -154
- package/packages/orq-rc/src/models/errors/evalsbleuscore.ts +0 -154
- package/packages/orq-rc/src/models/errors/evalsbotdetection.ts +0 -155
- package/packages/orq-rc/src/models/errors/evalscontains.ts +0 -154
- package/packages/orq-rc/src/models/errors/evalscontainsall.ts +0 -155
- package/packages/orq-rc/src/models/errors/evalscontainsany.ts +0 -155
- package/packages/orq-rc/src/models/errors/evalscontainsemail.ts +0 -156
- package/packages/orq-rc/src/models/errors/evalscontainsnone.ts +0 -155
- package/packages/orq-rc/src/models/errors/evalscontainsurl.ts +0 -155
- package/packages/orq-rc/src/models/errors/evalscontainsvalidlink.ts +0 -157
- package/packages/orq-rc/src/models/errors/evalsendswith.ts +0 -154
- package/packages/orq-rc/src/models/errors/evalsexactmatch.ts +0 -154
- package/packages/orq-rc/src/models/errors/evalsfactcheckingknowledgebase.ts +0 -160
- package/packages/orq-rc/src/models/errors/evalsgrammar.ts +0 -154
- package/packages/orq-rc/src/models/errors/evalslengthbetween.ts +0 -156
- package/packages/orq-rc/src/models/errors/evalslengthgreaterthan.ts +0 -157
- package/packages/orq-rc/src/models/errors/evalslengthlessthan.ts +0 -156
- package/packages/orq-rc/src/models/errors/evalslocalization.ts +0 -155
- package/packages/orq-rc/src/models/errors/evalspii.ts +0 -154
- package/packages/orq-rc/src/models/errors/evalsragascoherence.ts +0 -156
- package/packages/orq-rc/src/models/errors/evalsragasconciseness.ts +0 -157
- package/packages/orq-rc/src/models/errors/evalsragascontextentitiesrecall.ts +0 -163
- package/packages/orq-rc/src/models/errors/evalsragascontextprecision.ts +0 -160
- package/packages/orq-rc/src/models/errors/evalsragascontextrecall.ts +0 -158
- package/packages/orq-rc/src/models/errors/evalsragascorrectness.ts +0 -157
- package/packages/orq-rc/src/models/errors/evalsragasfaithfulness.ts +0 -157
- package/packages/orq-rc/src/models/errors/evalsragasharmfulness.ts +0 -157
- package/packages/orq-rc/src/models/errors/evalsragasmaliciousness.ts +0 -158
- package/packages/orq-rc/src/models/errors/evalsragasnoisesensitivity.ts +0 -160
- package/packages/orq-rc/src/models/errors/evalsragasresponserelevancy.ts +0 -160
- package/packages/orq-rc/src/models/errors/evalsragassummarization.ts +0 -158
- package/packages/orq-rc/src/models/errors/evalssentimentclassification.ts +0 -160
- package/packages/orq-rc/src/models/errors/evalssummarization.ts +0 -156
- package/packages/orq-rc/src/models/errors/evalstoneofvoice.ts +0 -155
- package/packages/orq-rc/src/models/errors/evalstranslation.ts +0 -155
- package/packages/orq-rc/src/models/errors/evalsvalidjson.ts +0 -154
- package/packages/orq-rc/src/models/errors/invokeeval.ts +0 -154
- package/packages/orq-rc/src/models/operations/evalsageappropriate.ts +0 -320
- package/packages/orq-rc/src/models/operations/evalsbertscore.ts +0 -197
- package/packages/orq-rc/src/models/operations/evalsbleuscore.ts +0 -131
- package/packages/orq-rc/src/models/operations/evalsbotdetection.ts +0 -322
- package/packages/orq-rc/src/models/operations/evalscontains.ts +0 -250
- package/packages/orq-rc/src/models/operations/evalscontainsall.ts +0 -248
- package/packages/orq-rc/src/models/operations/evalscontainsany.ts +0 -254
- package/packages/orq-rc/src/models/operations/evalscontainsemail.ts +0 -181
- package/packages/orq-rc/src/models/operations/evalscontainsnone.ts +0 -254
- package/packages/orq-rc/src/models/operations/evalscontainsurl.ts +0 -181
- package/packages/orq-rc/src/models/operations/evalscontainsvalidlink.ts +0 -186
- package/packages/orq-rc/src/models/operations/evalsendswith.ts +0 -250
- package/packages/orq-rc/src/models/operations/evalsexactmatch.ts +0 -183
- package/packages/orq-rc/src/models/operations/evalsfactcheckingknowledgebase.ts +0 -389
- package/packages/orq-rc/src/models/operations/evalsgrammar.ts +0 -314
- package/packages/orq-rc/src/models/operations/evalslengthbetween.ts +0 -268
- package/packages/orq-rc/src/models/operations/evalslengthgreaterthan.ts +0 -266
- package/packages/orq-rc/src/models/operations/evalslengthlessthan.ts +0 -259
- package/packages/orq-rc/src/models/operations/evalslocalization.ts +0 -326
- package/packages/orq-rc/src/models/operations/evalspii.ts +0 -314
- package/packages/orq-rc/src/models/operations/evalsragascoherence.ts +0 -152
- package/packages/orq-rc/src/models/operations/evalsragasconciseness.ts +0 -153
- package/packages/orq-rc/src/models/operations/evalsragascontextentitiesrecall.ts +0 -164
- package/packages/orq-rc/src/models/operations/evalsragascontextprecision.ts +0 -166
- package/packages/orq-rc/src/models/operations/evalsragascontextrecall.ts +0 -164
- package/packages/orq-rc/src/models/operations/evalsragascorrectness.ts +0 -153
- package/packages/orq-rc/src/models/operations/evalsragasfaithfulness.ts +0 -155
- package/packages/orq-rc/src/models/operations/evalsragasharmfulness.ts +0 -146
- package/packages/orq-rc/src/models/operations/evalsragasmaliciousness.ts +0 -157
- package/packages/orq-rc/src/models/operations/evalsragasnoisesensitivity.ts +0 -166
- package/packages/orq-rc/src/models/operations/evalsragasresponserelevancy.ts +0 -165
- package/packages/orq-rc/src/models/operations/evalsragassummarization.ts +0 -150
- package/packages/orq-rc/src/models/operations/evalssentimentclassification.ts +0 -374
- package/packages/orq-rc/src/models/operations/evalssummarization.ts +0 -329
- package/packages/orq-rc/src/models/operations/evalstoneofvoice.ts +0 -324
- package/packages/orq-rc/src/models/operations/evalstranslation.ts +0 -324
- package/packages/orq-rc/src/models/operations/evalsvalidjson.ts +0 -177
- package/packages/orq-rc/src/models/operations/invokeeval.ts +0 -2551
|
@@ -1,389 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
|
|
11
|
-
export type EvalsFactCheckingKnowledgeBaseRequestBody = {
|
|
12
|
-
query: string;
|
|
13
|
-
output: string;
|
|
14
|
-
model: string;
|
|
15
|
-
reference: string;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export type EvalsFactCheckingKnowledgeBaseEvalsValue =
|
|
19
|
-
| number
|
|
20
|
-
| boolean
|
|
21
|
-
| string;
|
|
22
|
-
|
|
23
|
-
export type EvalsFactCheckingKnowledgeBaseOriginalValue =
|
|
24
|
-
| number
|
|
25
|
-
| boolean
|
|
26
|
-
| string;
|
|
27
|
-
|
|
28
|
-
export type EvalsFactCheckingKnowledgeBaseValue = {
|
|
29
|
-
value: number | boolean | string;
|
|
30
|
-
explanation?: string | null | undefined;
|
|
31
|
-
originalValue?: number | boolean | string | null | undefined;
|
|
32
|
-
originalExplanation?: string | null | undefined;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Returns the result of the evaluator run
|
|
37
|
-
*/
|
|
38
|
-
export type EvalsFactCheckingKnowledgeBaseResponseBody = {
|
|
39
|
-
value: EvalsFactCheckingKnowledgeBaseValue | null;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
/** @internal */
|
|
43
|
-
export const EvalsFactCheckingKnowledgeBaseRequestBody$inboundSchema: z.ZodType<
|
|
44
|
-
EvalsFactCheckingKnowledgeBaseRequestBody,
|
|
45
|
-
z.ZodTypeDef,
|
|
46
|
-
unknown
|
|
47
|
-
> = z.object({
|
|
48
|
-
query: z.string(),
|
|
49
|
-
output: z.string(),
|
|
50
|
-
model: z.string(),
|
|
51
|
-
reference: z.string(),
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
/** @internal */
|
|
55
|
-
export type EvalsFactCheckingKnowledgeBaseRequestBody$Outbound = {
|
|
56
|
-
query: string;
|
|
57
|
-
output: string;
|
|
58
|
-
model: string;
|
|
59
|
-
reference: string;
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
/** @internal */
|
|
63
|
-
export const EvalsFactCheckingKnowledgeBaseRequestBody$outboundSchema:
|
|
64
|
-
z.ZodType<
|
|
65
|
-
EvalsFactCheckingKnowledgeBaseRequestBody$Outbound,
|
|
66
|
-
z.ZodTypeDef,
|
|
67
|
-
EvalsFactCheckingKnowledgeBaseRequestBody
|
|
68
|
-
> = z.object({
|
|
69
|
-
query: z.string(),
|
|
70
|
-
output: z.string(),
|
|
71
|
-
model: z.string(),
|
|
72
|
-
reference: z.string(),
|
|
73
|
-
});
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* @internal
|
|
77
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
78
|
-
*/
|
|
79
|
-
export namespace EvalsFactCheckingKnowledgeBaseRequestBody$ {
|
|
80
|
-
/** @deprecated use `EvalsFactCheckingKnowledgeBaseRequestBody$inboundSchema` instead. */
|
|
81
|
-
export const inboundSchema =
|
|
82
|
-
EvalsFactCheckingKnowledgeBaseRequestBody$inboundSchema;
|
|
83
|
-
/** @deprecated use `EvalsFactCheckingKnowledgeBaseRequestBody$outboundSchema` instead. */
|
|
84
|
-
export const outboundSchema =
|
|
85
|
-
EvalsFactCheckingKnowledgeBaseRequestBody$outboundSchema;
|
|
86
|
-
/** @deprecated use `EvalsFactCheckingKnowledgeBaseRequestBody$Outbound` instead. */
|
|
87
|
-
export type Outbound = EvalsFactCheckingKnowledgeBaseRequestBody$Outbound;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export function evalsFactCheckingKnowledgeBaseRequestBodyToJSON(
|
|
91
|
-
evalsFactCheckingKnowledgeBaseRequestBody:
|
|
92
|
-
EvalsFactCheckingKnowledgeBaseRequestBody,
|
|
93
|
-
): string {
|
|
94
|
-
return JSON.stringify(
|
|
95
|
-
EvalsFactCheckingKnowledgeBaseRequestBody$outboundSchema.parse(
|
|
96
|
-
evalsFactCheckingKnowledgeBaseRequestBody,
|
|
97
|
-
),
|
|
98
|
-
);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export function evalsFactCheckingKnowledgeBaseRequestBodyFromJSON(
|
|
102
|
-
jsonString: string,
|
|
103
|
-
): SafeParseResult<
|
|
104
|
-
EvalsFactCheckingKnowledgeBaseRequestBody,
|
|
105
|
-
SDKValidationError
|
|
106
|
-
> {
|
|
107
|
-
return safeParse(
|
|
108
|
-
jsonString,
|
|
109
|
-
(x) =>
|
|
110
|
-
EvalsFactCheckingKnowledgeBaseRequestBody$inboundSchema.parse(
|
|
111
|
-
JSON.parse(x),
|
|
112
|
-
),
|
|
113
|
-
`Failed to parse 'EvalsFactCheckingKnowledgeBaseRequestBody' from JSON`,
|
|
114
|
-
);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
/** @internal */
|
|
118
|
-
export const EvalsFactCheckingKnowledgeBaseEvalsValue$inboundSchema: z.ZodType<
|
|
119
|
-
EvalsFactCheckingKnowledgeBaseEvalsValue,
|
|
120
|
-
z.ZodTypeDef,
|
|
121
|
-
unknown
|
|
122
|
-
> = z.union([z.number(), z.boolean(), z.string()]);
|
|
123
|
-
|
|
124
|
-
/** @internal */
|
|
125
|
-
export type EvalsFactCheckingKnowledgeBaseEvalsValue$Outbound =
|
|
126
|
-
| number
|
|
127
|
-
| boolean
|
|
128
|
-
| string;
|
|
129
|
-
|
|
130
|
-
/** @internal */
|
|
131
|
-
export const EvalsFactCheckingKnowledgeBaseEvalsValue$outboundSchema: z.ZodType<
|
|
132
|
-
EvalsFactCheckingKnowledgeBaseEvalsValue$Outbound,
|
|
133
|
-
z.ZodTypeDef,
|
|
134
|
-
EvalsFactCheckingKnowledgeBaseEvalsValue
|
|
135
|
-
> = z.union([z.number(), z.boolean(), z.string()]);
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* @internal
|
|
139
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
140
|
-
*/
|
|
141
|
-
export namespace EvalsFactCheckingKnowledgeBaseEvalsValue$ {
|
|
142
|
-
/** @deprecated use `EvalsFactCheckingKnowledgeBaseEvalsValue$inboundSchema` instead. */
|
|
143
|
-
export const inboundSchema =
|
|
144
|
-
EvalsFactCheckingKnowledgeBaseEvalsValue$inboundSchema;
|
|
145
|
-
/** @deprecated use `EvalsFactCheckingKnowledgeBaseEvalsValue$outboundSchema` instead. */
|
|
146
|
-
export const outboundSchema =
|
|
147
|
-
EvalsFactCheckingKnowledgeBaseEvalsValue$outboundSchema;
|
|
148
|
-
/** @deprecated use `EvalsFactCheckingKnowledgeBaseEvalsValue$Outbound` instead. */
|
|
149
|
-
export type Outbound = EvalsFactCheckingKnowledgeBaseEvalsValue$Outbound;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
export function evalsFactCheckingKnowledgeBaseEvalsValueToJSON(
|
|
153
|
-
evalsFactCheckingKnowledgeBaseEvalsValue:
|
|
154
|
-
EvalsFactCheckingKnowledgeBaseEvalsValue,
|
|
155
|
-
): string {
|
|
156
|
-
return JSON.stringify(
|
|
157
|
-
EvalsFactCheckingKnowledgeBaseEvalsValue$outboundSchema.parse(
|
|
158
|
-
evalsFactCheckingKnowledgeBaseEvalsValue,
|
|
159
|
-
),
|
|
160
|
-
);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
export function evalsFactCheckingKnowledgeBaseEvalsValueFromJSON(
|
|
164
|
-
jsonString: string,
|
|
165
|
-
): SafeParseResult<
|
|
166
|
-
EvalsFactCheckingKnowledgeBaseEvalsValue,
|
|
167
|
-
SDKValidationError
|
|
168
|
-
> {
|
|
169
|
-
return safeParse(
|
|
170
|
-
jsonString,
|
|
171
|
-
(x) =>
|
|
172
|
-
EvalsFactCheckingKnowledgeBaseEvalsValue$inboundSchema.parse(
|
|
173
|
-
JSON.parse(x),
|
|
174
|
-
),
|
|
175
|
-
`Failed to parse 'EvalsFactCheckingKnowledgeBaseEvalsValue' from JSON`,
|
|
176
|
-
);
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
/** @internal */
|
|
180
|
-
export const EvalsFactCheckingKnowledgeBaseOriginalValue$inboundSchema:
|
|
181
|
-
z.ZodType<
|
|
182
|
-
EvalsFactCheckingKnowledgeBaseOriginalValue,
|
|
183
|
-
z.ZodTypeDef,
|
|
184
|
-
unknown
|
|
185
|
-
> = z.union([z.number(), z.boolean(), z.string()]);
|
|
186
|
-
|
|
187
|
-
/** @internal */
|
|
188
|
-
export type EvalsFactCheckingKnowledgeBaseOriginalValue$Outbound =
|
|
189
|
-
| number
|
|
190
|
-
| boolean
|
|
191
|
-
| string;
|
|
192
|
-
|
|
193
|
-
/** @internal */
|
|
194
|
-
export const EvalsFactCheckingKnowledgeBaseOriginalValue$outboundSchema:
|
|
195
|
-
z.ZodType<
|
|
196
|
-
EvalsFactCheckingKnowledgeBaseOriginalValue$Outbound,
|
|
197
|
-
z.ZodTypeDef,
|
|
198
|
-
EvalsFactCheckingKnowledgeBaseOriginalValue
|
|
199
|
-
> = z.union([z.number(), z.boolean(), z.string()]);
|
|
200
|
-
|
|
201
|
-
/**
|
|
202
|
-
* @internal
|
|
203
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
204
|
-
*/
|
|
205
|
-
export namespace EvalsFactCheckingKnowledgeBaseOriginalValue$ {
|
|
206
|
-
/** @deprecated use `EvalsFactCheckingKnowledgeBaseOriginalValue$inboundSchema` instead. */
|
|
207
|
-
export const inboundSchema =
|
|
208
|
-
EvalsFactCheckingKnowledgeBaseOriginalValue$inboundSchema;
|
|
209
|
-
/** @deprecated use `EvalsFactCheckingKnowledgeBaseOriginalValue$outboundSchema` instead. */
|
|
210
|
-
export const outboundSchema =
|
|
211
|
-
EvalsFactCheckingKnowledgeBaseOriginalValue$outboundSchema;
|
|
212
|
-
/** @deprecated use `EvalsFactCheckingKnowledgeBaseOriginalValue$Outbound` instead. */
|
|
213
|
-
export type Outbound = EvalsFactCheckingKnowledgeBaseOriginalValue$Outbound;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
export function evalsFactCheckingKnowledgeBaseOriginalValueToJSON(
|
|
217
|
-
evalsFactCheckingKnowledgeBaseOriginalValue:
|
|
218
|
-
EvalsFactCheckingKnowledgeBaseOriginalValue,
|
|
219
|
-
): string {
|
|
220
|
-
return JSON.stringify(
|
|
221
|
-
EvalsFactCheckingKnowledgeBaseOriginalValue$outboundSchema.parse(
|
|
222
|
-
evalsFactCheckingKnowledgeBaseOriginalValue,
|
|
223
|
-
),
|
|
224
|
-
);
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
export function evalsFactCheckingKnowledgeBaseOriginalValueFromJSON(
|
|
228
|
-
jsonString: string,
|
|
229
|
-
): SafeParseResult<
|
|
230
|
-
EvalsFactCheckingKnowledgeBaseOriginalValue,
|
|
231
|
-
SDKValidationError
|
|
232
|
-
> {
|
|
233
|
-
return safeParse(
|
|
234
|
-
jsonString,
|
|
235
|
-
(x) =>
|
|
236
|
-
EvalsFactCheckingKnowledgeBaseOriginalValue$inboundSchema.parse(
|
|
237
|
-
JSON.parse(x),
|
|
238
|
-
),
|
|
239
|
-
`Failed to parse 'EvalsFactCheckingKnowledgeBaseOriginalValue' from JSON`,
|
|
240
|
-
);
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
/** @internal */
|
|
244
|
-
export const EvalsFactCheckingKnowledgeBaseValue$inboundSchema: z.ZodType<
|
|
245
|
-
EvalsFactCheckingKnowledgeBaseValue,
|
|
246
|
-
z.ZodTypeDef,
|
|
247
|
-
unknown
|
|
248
|
-
> = z.object({
|
|
249
|
-
value: z.union([z.number(), z.boolean(), z.string()]),
|
|
250
|
-
explanation: z.nullable(z.string()).optional(),
|
|
251
|
-
original_value: z.nullable(z.union([z.number(), z.boolean(), z.string()]))
|
|
252
|
-
.optional(),
|
|
253
|
-
original_explanation: z.nullable(z.string()).optional(),
|
|
254
|
-
}).transform((v) => {
|
|
255
|
-
return remap$(v, {
|
|
256
|
-
"original_value": "originalValue",
|
|
257
|
-
"original_explanation": "originalExplanation",
|
|
258
|
-
});
|
|
259
|
-
});
|
|
260
|
-
|
|
261
|
-
/** @internal */
|
|
262
|
-
export type EvalsFactCheckingKnowledgeBaseValue$Outbound = {
|
|
263
|
-
value: number | boolean | string;
|
|
264
|
-
explanation?: string | null | undefined;
|
|
265
|
-
original_value?: number | boolean | string | null | undefined;
|
|
266
|
-
original_explanation?: string | null | undefined;
|
|
267
|
-
};
|
|
268
|
-
|
|
269
|
-
/** @internal */
|
|
270
|
-
export const EvalsFactCheckingKnowledgeBaseValue$outboundSchema: z.ZodType<
|
|
271
|
-
EvalsFactCheckingKnowledgeBaseValue$Outbound,
|
|
272
|
-
z.ZodTypeDef,
|
|
273
|
-
EvalsFactCheckingKnowledgeBaseValue
|
|
274
|
-
> = z.object({
|
|
275
|
-
value: z.union([z.number(), z.boolean(), z.string()]),
|
|
276
|
-
explanation: z.nullable(z.string()).optional(),
|
|
277
|
-
originalValue: z.nullable(z.union([z.number(), z.boolean(), z.string()]))
|
|
278
|
-
.optional(),
|
|
279
|
-
originalExplanation: z.nullable(z.string()).optional(),
|
|
280
|
-
}).transform((v) => {
|
|
281
|
-
return remap$(v, {
|
|
282
|
-
originalValue: "original_value",
|
|
283
|
-
originalExplanation: "original_explanation",
|
|
284
|
-
});
|
|
285
|
-
});
|
|
286
|
-
|
|
287
|
-
/**
|
|
288
|
-
* @internal
|
|
289
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
290
|
-
*/
|
|
291
|
-
export namespace EvalsFactCheckingKnowledgeBaseValue$ {
|
|
292
|
-
/** @deprecated use `EvalsFactCheckingKnowledgeBaseValue$inboundSchema` instead. */
|
|
293
|
-
export const inboundSchema =
|
|
294
|
-
EvalsFactCheckingKnowledgeBaseValue$inboundSchema;
|
|
295
|
-
/** @deprecated use `EvalsFactCheckingKnowledgeBaseValue$outboundSchema` instead. */
|
|
296
|
-
export const outboundSchema =
|
|
297
|
-
EvalsFactCheckingKnowledgeBaseValue$outboundSchema;
|
|
298
|
-
/** @deprecated use `EvalsFactCheckingKnowledgeBaseValue$Outbound` instead. */
|
|
299
|
-
export type Outbound = EvalsFactCheckingKnowledgeBaseValue$Outbound;
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
export function evalsFactCheckingKnowledgeBaseValueToJSON(
|
|
303
|
-
evalsFactCheckingKnowledgeBaseValue: EvalsFactCheckingKnowledgeBaseValue,
|
|
304
|
-
): string {
|
|
305
|
-
return JSON.stringify(
|
|
306
|
-
EvalsFactCheckingKnowledgeBaseValue$outboundSchema.parse(
|
|
307
|
-
evalsFactCheckingKnowledgeBaseValue,
|
|
308
|
-
),
|
|
309
|
-
);
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
export function evalsFactCheckingKnowledgeBaseValueFromJSON(
|
|
313
|
-
jsonString: string,
|
|
314
|
-
): SafeParseResult<EvalsFactCheckingKnowledgeBaseValue, SDKValidationError> {
|
|
315
|
-
return safeParse(
|
|
316
|
-
jsonString,
|
|
317
|
-
(x) =>
|
|
318
|
-
EvalsFactCheckingKnowledgeBaseValue$inboundSchema.parse(JSON.parse(x)),
|
|
319
|
-
`Failed to parse 'EvalsFactCheckingKnowledgeBaseValue' from JSON`,
|
|
320
|
-
);
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
/** @internal */
|
|
324
|
-
export const EvalsFactCheckingKnowledgeBaseResponseBody$inboundSchema:
|
|
325
|
-
z.ZodType<EvalsFactCheckingKnowledgeBaseResponseBody, z.ZodTypeDef, unknown> =
|
|
326
|
-
z.object({
|
|
327
|
-
value: z.nullable(
|
|
328
|
-
z.lazy(() => EvalsFactCheckingKnowledgeBaseValue$inboundSchema),
|
|
329
|
-
),
|
|
330
|
-
});
|
|
331
|
-
|
|
332
|
-
/** @internal */
|
|
333
|
-
export type EvalsFactCheckingKnowledgeBaseResponseBody$Outbound = {
|
|
334
|
-
value: EvalsFactCheckingKnowledgeBaseValue$Outbound | null;
|
|
335
|
-
};
|
|
336
|
-
|
|
337
|
-
/** @internal */
|
|
338
|
-
export const EvalsFactCheckingKnowledgeBaseResponseBody$outboundSchema:
|
|
339
|
-
z.ZodType<
|
|
340
|
-
EvalsFactCheckingKnowledgeBaseResponseBody$Outbound,
|
|
341
|
-
z.ZodTypeDef,
|
|
342
|
-
EvalsFactCheckingKnowledgeBaseResponseBody
|
|
343
|
-
> = z.object({
|
|
344
|
-
value: z.nullable(
|
|
345
|
-
z.lazy(() => EvalsFactCheckingKnowledgeBaseValue$outboundSchema),
|
|
346
|
-
),
|
|
347
|
-
});
|
|
348
|
-
|
|
349
|
-
/**
|
|
350
|
-
* @internal
|
|
351
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
352
|
-
*/
|
|
353
|
-
export namespace EvalsFactCheckingKnowledgeBaseResponseBody$ {
|
|
354
|
-
/** @deprecated use `EvalsFactCheckingKnowledgeBaseResponseBody$inboundSchema` instead. */
|
|
355
|
-
export const inboundSchema =
|
|
356
|
-
EvalsFactCheckingKnowledgeBaseResponseBody$inboundSchema;
|
|
357
|
-
/** @deprecated use `EvalsFactCheckingKnowledgeBaseResponseBody$outboundSchema` instead. */
|
|
358
|
-
export const outboundSchema =
|
|
359
|
-
EvalsFactCheckingKnowledgeBaseResponseBody$outboundSchema;
|
|
360
|
-
/** @deprecated use `EvalsFactCheckingKnowledgeBaseResponseBody$Outbound` instead. */
|
|
361
|
-
export type Outbound = EvalsFactCheckingKnowledgeBaseResponseBody$Outbound;
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
export function evalsFactCheckingKnowledgeBaseResponseBodyToJSON(
|
|
365
|
-
evalsFactCheckingKnowledgeBaseResponseBody:
|
|
366
|
-
EvalsFactCheckingKnowledgeBaseResponseBody,
|
|
367
|
-
): string {
|
|
368
|
-
return JSON.stringify(
|
|
369
|
-
EvalsFactCheckingKnowledgeBaseResponseBody$outboundSchema.parse(
|
|
370
|
-
evalsFactCheckingKnowledgeBaseResponseBody,
|
|
371
|
-
),
|
|
372
|
-
);
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
export function evalsFactCheckingKnowledgeBaseResponseBodyFromJSON(
|
|
376
|
-
jsonString: string,
|
|
377
|
-
): SafeParseResult<
|
|
378
|
-
EvalsFactCheckingKnowledgeBaseResponseBody,
|
|
379
|
-
SDKValidationError
|
|
380
|
-
> {
|
|
381
|
-
return safeParse(
|
|
382
|
-
jsonString,
|
|
383
|
-
(x) =>
|
|
384
|
-
EvalsFactCheckingKnowledgeBaseResponseBody$inboundSchema.parse(
|
|
385
|
-
JSON.parse(x),
|
|
386
|
-
),
|
|
387
|
-
`Failed to parse 'EvalsFactCheckingKnowledgeBaseResponseBody' from JSON`,
|
|
388
|
-
);
|
|
389
|
-
}
|
|
@@ -1,314 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
|
|
11
|
-
export type EvalsGrammarRequestBody = {
|
|
12
|
-
query: string;
|
|
13
|
-
model: string;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export type EvalsGrammarEvalsValue = number | boolean | string;
|
|
17
|
-
|
|
18
|
-
export type EvalsGrammarOriginalValue = number | boolean | string;
|
|
19
|
-
|
|
20
|
-
export type EvalsGrammarValue = {
|
|
21
|
-
value: number | boolean | string;
|
|
22
|
-
explanation?: string | null | undefined;
|
|
23
|
-
originalValue?: number | boolean | string | null | undefined;
|
|
24
|
-
originalExplanation?: string | null | undefined;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Returns the result of the evaluator run
|
|
29
|
-
*/
|
|
30
|
-
export type EvalsGrammarResponseBody = {
|
|
31
|
-
value: EvalsGrammarValue | null;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
/** @internal */
|
|
35
|
-
export const EvalsGrammarRequestBody$inboundSchema: z.ZodType<
|
|
36
|
-
EvalsGrammarRequestBody,
|
|
37
|
-
z.ZodTypeDef,
|
|
38
|
-
unknown
|
|
39
|
-
> = z.object({
|
|
40
|
-
query: z.string(),
|
|
41
|
-
model: z.string(),
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
/** @internal */
|
|
45
|
-
export type EvalsGrammarRequestBody$Outbound = {
|
|
46
|
-
query: string;
|
|
47
|
-
model: string;
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
/** @internal */
|
|
51
|
-
export const EvalsGrammarRequestBody$outboundSchema: z.ZodType<
|
|
52
|
-
EvalsGrammarRequestBody$Outbound,
|
|
53
|
-
z.ZodTypeDef,
|
|
54
|
-
EvalsGrammarRequestBody
|
|
55
|
-
> = z.object({
|
|
56
|
-
query: z.string(),
|
|
57
|
-
model: z.string(),
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* @internal
|
|
62
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
63
|
-
*/
|
|
64
|
-
export namespace EvalsGrammarRequestBody$ {
|
|
65
|
-
/** @deprecated use `EvalsGrammarRequestBody$inboundSchema` instead. */
|
|
66
|
-
export const inboundSchema = EvalsGrammarRequestBody$inboundSchema;
|
|
67
|
-
/** @deprecated use `EvalsGrammarRequestBody$outboundSchema` instead. */
|
|
68
|
-
export const outboundSchema = EvalsGrammarRequestBody$outboundSchema;
|
|
69
|
-
/** @deprecated use `EvalsGrammarRequestBody$Outbound` instead. */
|
|
70
|
-
export type Outbound = EvalsGrammarRequestBody$Outbound;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export function evalsGrammarRequestBodyToJSON(
|
|
74
|
-
evalsGrammarRequestBody: EvalsGrammarRequestBody,
|
|
75
|
-
): string {
|
|
76
|
-
return JSON.stringify(
|
|
77
|
-
EvalsGrammarRequestBody$outboundSchema.parse(evalsGrammarRequestBody),
|
|
78
|
-
);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export function evalsGrammarRequestBodyFromJSON(
|
|
82
|
-
jsonString: string,
|
|
83
|
-
): SafeParseResult<EvalsGrammarRequestBody, SDKValidationError> {
|
|
84
|
-
return safeParse(
|
|
85
|
-
jsonString,
|
|
86
|
-
(x) => EvalsGrammarRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
87
|
-
`Failed to parse 'EvalsGrammarRequestBody' from JSON`,
|
|
88
|
-
);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/** @internal */
|
|
92
|
-
export const EvalsGrammarEvalsValue$inboundSchema: z.ZodType<
|
|
93
|
-
EvalsGrammarEvalsValue,
|
|
94
|
-
z.ZodTypeDef,
|
|
95
|
-
unknown
|
|
96
|
-
> = z.union([z.number(), z.boolean(), z.string()]);
|
|
97
|
-
|
|
98
|
-
/** @internal */
|
|
99
|
-
export type EvalsGrammarEvalsValue$Outbound = number | boolean | string;
|
|
100
|
-
|
|
101
|
-
/** @internal */
|
|
102
|
-
export const EvalsGrammarEvalsValue$outboundSchema: z.ZodType<
|
|
103
|
-
EvalsGrammarEvalsValue$Outbound,
|
|
104
|
-
z.ZodTypeDef,
|
|
105
|
-
EvalsGrammarEvalsValue
|
|
106
|
-
> = z.union([z.number(), z.boolean(), z.string()]);
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* @internal
|
|
110
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
111
|
-
*/
|
|
112
|
-
export namespace EvalsGrammarEvalsValue$ {
|
|
113
|
-
/** @deprecated use `EvalsGrammarEvalsValue$inboundSchema` instead. */
|
|
114
|
-
export const inboundSchema = EvalsGrammarEvalsValue$inboundSchema;
|
|
115
|
-
/** @deprecated use `EvalsGrammarEvalsValue$outboundSchema` instead. */
|
|
116
|
-
export const outboundSchema = EvalsGrammarEvalsValue$outboundSchema;
|
|
117
|
-
/** @deprecated use `EvalsGrammarEvalsValue$Outbound` instead. */
|
|
118
|
-
export type Outbound = EvalsGrammarEvalsValue$Outbound;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
export function evalsGrammarEvalsValueToJSON(
|
|
122
|
-
evalsGrammarEvalsValue: EvalsGrammarEvalsValue,
|
|
123
|
-
): string {
|
|
124
|
-
return JSON.stringify(
|
|
125
|
-
EvalsGrammarEvalsValue$outboundSchema.parse(evalsGrammarEvalsValue),
|
|
126
|
-
);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
export function evalsGrammarEvalsValueFromJSON(
|
|
130
|
-
jsonString: string,
|
|
131
|
-
): SafeParseResult<EvalsGrammarEvalsValue, SDKValidationError> {
|
|
132
|
-
return safeParse(
|
|
133
|
-
jsonString,
|
|
134
|
-
(x) => EvalsGrammarEvalsValue$inboundSchema.parse(JSON.parse(x)),
|
|
135
|
-
`Failed to parse 'EvalsGrammarEvalsValue' from JSON`,
|
|
136
|
-
);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
/** @internal */
|
|
140
|
-
export const EvalsGrammarOriginalValue$inboundSchema: z.ZodType<
|
|
141
|
-
EvalsGrammarOriginalValue,
|
|
142
|
-
z.ZodTypeDef,
|
|
143
|
-
unknown
|
|
144
|
-
> = z.union([z.number(), z.boolean(), z.string()]);
|
|
145
|
-
|
|
146
|
-
/** @internal */
|
|
147
|
-
export type EvalsGrammarOriginalValue$Outbound = number | boolean | string;
|
|
148
|
-
|
|
149
|
-
/** @internal */
|
|
150
|
-
export const EvalsGrammarOriginalValue$outboundSchema: z.ZodType<
|
|
151
|
-
EvalsGrammarOriginalValue$Outbound,
|
|
152
|
-
z.ZodTypeDef,
|
|
153
|
-
EvalsGrammarOriginalValue
|
|
154
|
-
> = z.union([z.number(), z.boolean(), z.string()]);
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* @internal
|
|
158
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
159
|
-
*/
|
|
160
|
-
export namespace EvalsGrammarOriginalValue$ {
|
|
161
|
-
/** @deprecated use `EvalsGrammarOriginalValue$inboundSchema` instead. */
|
|
162
|
-
export const inboundSchema = EvalsGrammarOriginalValue$inboundSchema;
|
|
163
|
-
/** @deprecated use `EvalsGrammarOriginalValue$outboundSchema` instead. */
|
|
164
|
-
export const outboundSchema = EvalsGrammarOriginalValue$outboundSchema;
|
|
165
|
-
/** @deprecated use `EvalsGrammarOriginalValue$Outbound` instead. */
|
|
166
|
-
export type Outbound = EvalsGrammarOriginalValue$Outbound;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
export function evalsGrammarOriginalValueToJSON(
|
|
170
|
-
evalsGrammarOriginalValue: EvalsGrammarOriginalValue,
|
|
171
|
-
): string {
|
|
172
|
-
return JSON.stringify(
|
|
173
|
-
EvalsGrammarOriginalValue$outboundSchema.parse(evalsGrammarOriginalValue),
|
|
174
|
-
);
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
export function evalsGrammarOriginalValueFromJSON(
|
|
178
|
-
jsonString: string,
|
|
179
|
-
): SafeParseResult<EvalsGrammarOriginalValue, SDKValidationError> {
|
|
180
|
-
return safeParse(
|
|
181
|
-
jsonString,
|
|
182
|
-
(x) => EvalsGrammarOriginalValue$inboundSchema.parse(JSON.parse(x)),
|
|
183
|
-
`Failed to parse 'EvalsGrammarOriginalValue' from JSON`,
|
|
184
|
-
);
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
/** @internal */
|
|
188
|
-
export const EvalsGrammarValue$inboundSchema: z.ZodType<
|
|
189
|
-
EvalsGrammarValue,
|
|
190
|
-
z.ZodTypeDef,
|
|
191
|
-
unknown
|
|
192
|
-
> = z.object({
|
|
193
|
-
value: z.union([z.number(), z.boolean(), z.string()]),
|
|
194
|
-
explanation: z.nullable(z.string()).optional(),
|
|
195
|
-
original_value: z.nullable(z.union([z.number(), z.boolean(), z.string()]))
|
|
196
|
-
.optional(),
|
|
197
|
-
original_explanation: z.nullable(z.string()).optional(),
|
|
198
|
-
}).transform((v) => {
|
|
199
|
-
return remap$(v, {
|
|
200
|
-
"original_value": "originalValue",
|
|
201
|
-
"original_explanation": "originalExplanation",
|
|
202
|
-
});
|
|
203
|
-
});
|
|
204
|
-
|
|
205
|
-
/** @internal */
|
|
206
|
-
export type EvalsGrammarValue$Outbound = {
|
|
207
|
-
value: number | boolean | string;
|
|
208
|
-
explanation?: string | null | undefined;
|
|
209
|
-
original_value?: number | boolean | string | null | undefined;
|
|
210
|
-
original_explanation?: string | null | undefined;
|
|
211
|
-
};
|
|
212
|
-
|
|
213
|
-
/** @internal */
|
|
214
|
-
export const EvalsGrammarValue$outboundSchema: z.ZodType<
|
|
215
|
-
EvalsGrammarValue$Outbound,
|
|
216
|
-
z.ZodTypeDef,
|
|
217
|
-
EvalsGrammarValue
|
|
218
|
-
> = z.object({
|
|
219
|
-
value: z.union([z.number(), z.boolean(), z.string()]),
|
|
220
|
-
explanation: z.nullable(z.string()).optional(),
|
|
221
|
-
originalValue: z.nullable(z.union([z.number(), z.boolean(), z.string()]))
|
|
222
|
-
.optional(),
|
|
223
|
-
originalExplanation: z.nullable(z.string()).optional(),
|
|
224
|
-
}).transform((v) => {
|
|
225
|
-
return remap$(v, {
|
|
226
|
-
originalValue: "original_value",
|
|
227
|
-
originalExplanation: "original_explanation",
|
|
228
|
-
});
|
|
229
|
-
});
|
|
230
|
-
|
|
231
|
-
/**
|
|
232
|
-
* @internal
|
|
233
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
234
|
-
*/
|
|
235
|
-
export namespace EvalsGrammarValue$ {
|
|
236
|
-
/** @deprecated use `EvalsGrammarValue$inboundSchema` instead. */
|
|
237
|
-
export const inboundSchema = EvalsGrammarValue$inboundSchema;
|
|
238
|
-
/** @deprecated use `EvalsGrammarValue$outboundSchema` instead. */
|
|
239
|
-
export const outboundSchema = EvalsGrammarValue$outboundSchema;
|
|
240
|
-
/** @deprecated use `EvalsGrammarValue$Outbound` instead. */
|
|
241
|
-
export type Outbound = EvalsGrammarValue$Outbound;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
export function evalsGrammarValueToJSON(
|
|
245
|
-
evalsGrammarValue: EvalsGrammarValue,
|
|
246
|
-
): string {
|
|
247
|
-
return JSON.stringify(
|
|
248
|
-
EvalsGrammarValue$outboundSchema.parse(evalsGrammarValue),
|
|
249
|
-
);
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
export function evalsGrammarValueFromJSON(
|
|
253
|
-
jsonString: string,
|
|
254
|
-
): SafeParseResult<EvalsGrammarValue, SDKValidationError> {
|
|
255
|
-
return safeParse(
|
|
256
|
-
jsonString,
|
|
257
|
-
(x) => EvalsGrammarValue$inboundSchema.parse(JSON.parse(x)),
|
|
258
|
-
`Failed to parse 'EvalsGrammarValue' from JSON`,
|
|
259
|
-
);
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
/** @internal */
|
|
263
|
-
export const EvalsGrammarResponseBody$inboundSchema: z.ZodType<
|
|
264
|
-
EvalsGrammarResponseBody,
|
|
265
|
-
z.ZodTypeDef,
|
|
266
|
-
unknown
|
|
267
|
-
> = z.object({
|
|
268
|
-
value: z.nullable(z.lazy(() => EvalsGrammarValue$inboundSchema)),
|
|
269
|
-
});
|
|
270
|
-
|
|
271
|
-
/** @internal */
|
|
272
|
-
export type EvalsGrammarResponseBody$Outbound = {
|
|
273
|
-
value: EvalsGrammarValue$Outbound | null;
|
|
274
|
-
};
|
|
275
|
-
|
|
276
|
-
/** @internal */
|
|
277
|
-
export const EvalsGrammarResponseBody$outboundSchema: z.ZodType<
|
|
278
|
-
EvalsGrammarResponseBody$Outbound,
|
|
279
|
-
z.ZodTypeDef,
|
|
280
|
-
EvalsGrammarResponseBody
|
|
281
|
-
> = z.object({
|
|
282
|
-
value: z.nullable(z.lazy(() => EvalsGrammarValue$outboundSchema)),
|
|
283
|
-
});
|
|
284
|
-
|
|
285
|
-
/**
|
|
286
|
-
* @internal
|
|
287
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
288
|
-
*/
|
|
289
|
-
export namespace EvalsGrammarResponseBody$ {
|
|
290
|
-
/** @deprecated use `EvalsGrammarResponseBody$inboundSchema` instead. */
|
|
291
|
-
export const inboundSchema = EvalsGrammarResponseBody$inboundSchema;
|
|
292
|
-
/** @deprecated use `EvalsGrammarResponseBody$outboundSchema` instead. */
|
|
293
|
-
export const outboundSchema = EvalsGrammarResponseBody$outboundSchema;
|
|
294
|
-
/** @deprecated use `EvalsGrammarResponseBody$Outbound` instead. */
|
|
295
|
-
export type Outbound = EvalsGrammarResponseBody$Outbound;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
export function evalsGrammarResponseBodyToJSON(
|
|
299
|
-
evalsGrammarResponseBody: EvalsGrammarResponseBody,
|
|
300
|
-
): string {
|
|
301
|
-
return JSON.stringify(
|
|
302
|
-
EvalsGrammarResponseBody$outboundSchema.parse(evalsGrammarResponseBody),
|
|
303
|
-
);
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
export function evalsGrammarResponseBodyFromJSON(
|
|
307
|
-
jsonString: string,
|
|
308
|
-
): SafeParseResult<EvalsGrammarResponseBody, SDKValidationError> {
|
|
309
|
-
return safeParse(
|
|
310
|
-
jsonString,
|
|
311
|
-
(x) => EvalsGrammarResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
312
|
-
`Failed to parse 'EvalsGrammarResponseBody' from JSON`,
|
|
313
|
-
);
|
|
314
|
-
}
|