@orq-ai/node 4.11.0-rc.1 → 4.11.0-rc.3
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/FUNCTIONS.md +4 -4
- package/README.md +81 -70
- package/examples/{postV2FeedbackEvaluationRemove.example.ts → evalsAll.example.ts} +4 -2
- package/funcs/{agentsPostV2AgentsKeyCardRefresh.d.ts → agentsRefreshKeyCard.d.ts} +2 -2
- package/funcs/agentsRefreshKeyCard.d.ts.map +1 -0
- package/funcs/{agentsPostV2AgentsKeyCardRefresh.js → agentsRefreshKeyCard.js} +3 -3
- package/funcs/agentsRefreshKeyCard.js.map +1 -0
- package/funcs/{evalsGetV2EvaluatorsIdVersions.d.ts → evalsListVersions.d.ts} +2 -2
- package/funcs/evalsListVersions.d.ts.map +1 -0
- package/funcs/{evalsGetV2EvaluatorsIdVersions.js → evalsListVersions.js} +3 -3
- package/funcs/evalsListVersions.js.map +1 -0
- package/funcs/{feedbackPostV2FeedbackRemove.d.ts → feedbackCreate.d.ts} +2 -2
- package/funcs/feedbackCreate.d.ts.map +1 -0
- package/funcs/{feedbackPostV2Feedback.js → feedbackCreate.js} +3 -3
- package/funcs/feedbackCreate.js.map +1 -0
- package/funcs/{postV2FeedbackEvaluation.d.ts → feedbackCreateEvaluation.d.ts} +2 -2
- package/funcs/{postV2FeedbackEvaluation.d.ts.map → feedbackCreateEvaluation.d.ts.map} +1 -1
- package/funcs/{postV2FeedbackEvaluation.js → feedbackCreateEvaluation.js} +3 -3
- package/funcs/{postV2FeedbackEvaluation.js.map → feedbackCreateEvaluation.js.map} +1 -1
- package/funcs/{feedbackPostV2Feedback.d.ts → feedbackRemove.d.ts} +2 -2
- package/funcs/feedbackRemove.d.ts.map +1 -0
- package/funcs/{feedbackPostV2FeedbackRemove.js → feedbackRemove.js} +3 -3
- package/funcs/feedbackRemove.js.map +1 -0
- package/funcs/{humanReviewSetsDeleteV2HumanEvalSetsId.d.ts → feedbackRemoveEvaluation.d.ts} +2 -5
- package/funcs/feedbackRemoveEvaluation.d.ts.map +1 -0
- package/funcs/{postV2FeedbackEvaluationRemove.js → feedbackRemoveEvaluation.js} +3 -3
- package/funcs/feedbackRemoveEvaluation.js.map +1 -0
- package/funcs/guardrailRulesList.js +4 -0
- package/funcs/guardrailRulesList.js.map +1 -1
- package/funcs/guardrailRulesListUsedGuardrails.d.ts +17 -0
- package/funcs/guardrailRulesListUsedGuardrails.d.ts.map +1 -0
- package/funcs/guardrailRulesListUsedGuardrails.js +105 -0
- package/funcs/guardrailRulesListUsedGuardrails.js.map +1 -0
- package/funcs/{humanReviewSetsPostV2HumanEvalSets.d.ts → humanReviewSetsCreate.d.ts} +2 -2
- package/funcs/humanReviewSetsCreate.d.ts.map +1 -0
- package/funcs/{humanReviewSetsPostV2HumanEvalSets.js → humanReviewSetsCreate.js} +3 -3
- package/funcs/humanReviewSetsCreate.js.map +1 -0
- package/funcs/{humanReviewSetsGetV2HumanEvalSets.d.ts → humanReviewSetsDelete.d.ts} +3 -3
- package/funcs/humanReviewSetsDelete.d.ts.map +1 -0
- package/funcs/{humanReviewSetsDeleteV2HumanEvalSetsId.js → humanReviewSetsDelete.js} +3 -3
- package/funcs/humanReviewSetsDelete.js.map +1 -0
- package/funcs/{postV2FeedbackEvaluationRemove.d.ts → humanReviewSetsGet.d.ts} +5 -2
- package/funcs/humanReviewSetsGet.d.ts.map +1 -0
- package/funcs/{humanReviewSetsGetV2HumanEvalSetsId.js → humanReviewSetsGet.js} +3 -3
- package/funcs/humanReviewSetsGet.js.map +1 -0
- package/funcs/{humanReviewSetsGetV2HumanEvalSetsId.d.ts → humanReviewSetsList.d.ts} +3 -3
- package/funcs/humanReviewSetsList.d.ts.map +1 -0
- package/funcs/{humanReviewSetsGetV2HumanEvalSets.js → humanReviewSetsList.js} +3 -3
- package/funcs/humanReviewSetsList.js.map +1 -0
- package/funcs/{humanReviewSetsPatchV2HumanEvalSetsId.d.ts → humanReviewSetsUpdate.d.ts} +2 -2
- package/funcs/humanReviewSetsUpdate.d.ts.map +1 -0
- package/funcs/{humanReviewSetsPatchV2HumanEvalSetsId.js → humanReviewSetsUpdate.js} +3 -3
- package/funcs/humanReviewSetsUpdate.js.map +1 -0
- package/funcs/routingRulesList.js +3 -0
- package/funcs/routingRulesList.js.map +1 -1
- package/funcs/routingRulesListUsedModels.d.ts +17 -0
- package/funcs/routingRulesListUsedModels.d.ts.map +1 -0
- package/funcs/routingRulesListUsedModels.js +105 -0
- package/funcs/routingRulesListUsedModels.js.map +1 -0
- package/funcs/{toolsGetV2ToolsToolIdVersionsVersionId.d.ts → toolsGetVersion.d.ts} +2 -2
- package/funcs/toolsGetVersion.d.ts.map +1 -0
- package/funcs/{toolsGetV2ToolsToolIdVersionsVersionId.js → toolsGetVersion.js} +3 -3
- package/funcs/toolsGetVersion.js.map +1 -0
- package/funcs/{toolsGetV2ToolsToolIdVersions.d.ts → toolsListVersions.d.ts} +2 -2
- package/funcs/toolsListVersions.d.ts.map +1 -0
- package/funcs/{toolsGetV2ToolsToolIdVersions.js → toolsListVersions.js} +3 -3
- package/funcs/toolsListVersions.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/createfilerequest.d.ts +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.d.ts +22 -22
- package/models/operations/createeval.d.ts.map +1 -1
- package/models/operations/createeval.js +32 -32
- package/models/operations/createeval.js.map +1 -1
- package/models/operations/createknowledge.d.ts +10 -10
- package/models/operations/createknowledge.d.ts.map +1 -1
- package/models/operations/createknowledge.js +11 -11
- package/models/operations/createknowledge.js.map +1 -1
- package/models/operations/createtool.d.ts +10 -10
- package/models/operations/createtool.d.ts.map +1 -1
- package/models/operations/createtool.js +16 -16
- package/models/operations/createtool.js.map +1 -1
- package/models/operations/getalltools.d.ts +10 -10
- package/models/operations/getalltools.d.ts.map +1 -1
- package/models/operations/getalltools.js +16 -16
- package/models/operations/getalltools.js.map +1 -1
- package/models/operations/getevals.d.ts +6 -6
- package/models/operations/getevals.d.ts.map +1 -1
- package/models/operations/getevals.js +22 -22
- package/models/operations/getevals.js.map +1 -1
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/guardrailrulelist.d.ts +35 -0
- package/models/operations/guardrailrulelist.d.ts.map +1 -1
- package/models/operations/guardrailrulelist.js +18 -1
- package/models/operations/guardrailrulelist.js.map +1 -1
- package/models/operations/guardrailrulelistusedguardrails.d.ts +14 -0
- package/models/operations/guardrailrulelistusedguardrails.d.ts.map +1 -0
- package/models/operations/guardrailrulelistusedguardrails.js +56 -0
- package/models/operations/guardrailrulelistusedguardrails.js.map +1 -0
- package/models/operations/index.d.ts +2 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listknowledgebases.d.ts +2 -5
- package/models/operations/listknowledgebases.d.ts.map +1 -1
- package/models/operations/listknowledgebases.js +1 -1
- package/models/operations/listknowledgebases.js.map +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.d.ts +14 -14
- package/models/operations/postv2feedbackevaluation.d.ts.map +1 -1
- package/models/operations/postv2feedbackevaluation.js +18 -18
- package/models/operations/postv2feedbackevaluation.js.map +1 -1
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrievetool.d.ts +10 -10
- package/models/operations/retrievetool.d.ts.map +1 -1
- package/models/operations/retrievetool.js +16 -16
- package/models/operations/retrievetool.js.map +1 -1
- package/models/operations/routingrulelist.d.ts +15 -0
- package/models/operations/routingrulelist.d.ts.map +1 -1
- package/models/operations/routingrulelist.js +3 -0
- package/models/operations/routingrulelist.js.map +1 -1
- package/models/operations/routingrulelistusedmodels.d.ts +14 -0
- package/models/operations/routingrulelistusedmodels.d.ts.map +1 -0
- package/models/operations/routingrulelistusedmodels.js +51 -0
- package/models/operations/routingrulelistusedmodels.js.map +1 -0
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.d.ts +6 -6
- package/models/operations/updateeval.d.ts.map +1 -1
- package/models/operations/updateeval.js +22 -22
- package/models/operations/updateeval.js.map +1 -1
- package/models/operations/updatetool.d.ts +10 -10
- package/models/operations/updatetool.d.ts.map +1 -1
- package/models/operations/updatetool.js +17 -17
- package/models/operations/updatetool.js.map +1 -1
- package/package.json +8 -8
- package/sdk/agents.d.ts +1 -1
- package/sdk/agents.d.ts.map +1 -1
- package/sdk/agents.js +3 -3
- package/sdk/agents.js.map +1 -1
- package/sdk/evals.d.ts +1 -1
- package/sdk/evals.d.ts.map +1 -1
- package/sdk/evals.js +3 -3
- package/sdk/evals.js.map +1 -1
- package/sdk/feedback.d.ts +10 -2
- package/sdk/feedback.d.ts.map +1 -1
- package/sdk/feedback.js +20 -6
- package/sdk/feedback.js.map +1 -1
- package/sdk/guardrailrules.d.ts +7 -0
- package/sdk/guardrailrules.d.ts.map +1 -1
- package/sdk/guardrailrules.js +10 -0
- package/sdk/guardrailrules.js.map +1 -1
- package/sdk/humanreviewsets.d.ts +5 -5
- package/sdk/humanreviewsets.d.ts.map +1 -1
- package/sdk/humanreviewsets.js +15 -15
- package/sdk/humanreviewsets.js.map +1 -1
- package/sdk/routingrules.d.ts +7 -0
- package/sdk/routingrules.d.ts.map +1 -1
- package/sdk/routingrules.js +10 -0
- package/sdk/routingrules.js.map +1 -1
- package/sdk/sdk.d.ts +1 -4
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +0 -9
- package/sdk/sdk.js.map +1 -1
- package/sdk/tools.d.ts +2 -2
- package/sdk/tools.d.ts.map +1 -1
- package/sdk/tools.js +6 -6
- package/sdk/tools.js.map +1 -1
- package/src/funcs/{agentsPostV2AgentsKeyCardRefresh.ts → agentsRefreshKeyCard.ts} +1 -1
- package/src/funcs/{evalsGetV2EvaluatorsIdVersions.ts → evalsListVersions.ts} +1 -1
- package/src/funcs/{feedbackPostV2Feedback.ts → feedbackCreate.ts} +1 -1
- package/src/funcs/{postV2FeedbackEvaluation.ts → feedbackCreateEvaluation.ts} +1 -1
- package/src/funcs/{feedbackPostV2FeedbackRemove.ts → feedbackRemove.ts} +1 -1
- package/src/funcs/{postV2FeedbackEvaluationRemove.ts → feedbackRemoveEvaluation.ts} +1 -1
- package/src/funcs/guardrailRulesList.ts +4 -0
- package/src/funcs/guardrailRulesListUsedGuardrails.ts +147 -0
- package/src/funcs/{humanReviewSetsPostV2HumanEvalSets.ts → humanReviewSetsCreate.ts} +1 -1
- package/src/funcs/{humanReviewSetsDeleteV2HumanEvalSetsId.ts → humanReviewSetsDelete.ts} +1 -1
- package/src/funcs/{humanReviewSetsGetV2HumanEvalSetsId.ts → humanReviewSetsGet.ts} +1 -1
- package/src/funcs/{humanReviewSetsGetV2HumanEvalSets.ts → humanReviewSetsList.ts} +1 -1
- package/src/funcs/{humanReviewSetsPatchV2HumanEvalSetsId.ts → humanReviewSetsUpdate.ts} +1 -1
- package/src/funcs/routingRulesList.ts +3 -0
- package/src/funcs/routingRulesListUsedModels.ts +144 -0
- package/src/funcs/{toolsGetV2ToolsToolIdVersionsVersionId.ts → toolsGetVersion.ts} +1 -1
- package/src/funcs/{toolsGetV2ToolsToolIdVersions.ts → toolsListVersions.ts} +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/createfilerequest.ts +1 -1
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createeval.ts +62 -57
- package/src/models/operations/createknowledge.ts +19 -33
- package/src/models/operations/createtool.ts +26 -26
- package/src/models/operations/getalltools.ts +26 -26
- package/src/models/operations/getevals.ts +33 -30
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/guardrailrulelist.ts +44 -0
- package/src/models/operations/guardrailrulelistusedguardrails.ts +48 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listknowledgebases.ts +3 -6
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +43 -31
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrievetool.ts +26 -26
- package/src/models/operations/routingrulelist.ts +18 -0
- package/src/models/operations/routingrulelistusedmodels.ts +37 -0
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +33 -30
- package/src/models/operations/updatetool.ts +27 -27
- package/src/sdk/agents.ts +3 -3
- package/src/sdk/evals.ts +3 -3
- package/src/sdk/feedback.ts +36 -6
- package/src/sdk/guardrailrules.ts +16 -0
- package/src/sdk/humanreviewsets.ts +15 -15
- package/src/sdk/routingrules.ts +16 -0
- package/src/sdk/sdk.ts +1 -27
- package/src/sdk/tools.ts +6 -6
- package/funcs/agentsPostV2AgentsKeyCardRefresh.d.ts.map +0 -1
- package/funcs/agentsPostV2AgentsKeyCardRefresh.js.map +0 -1
- package/funcs/evalsGetV2EvaluatorsIdVersions.d.ts.map +0 -1
- package/funcs/evalsGetV2EvaluatorsIdVersions.js.map +0 -1
- package/funcs/feedbackPostV2Feedback.d.ts.map +0 -1
- package/funcs/feedbackPostV2Feedback.js.map +0 -1
- package/funcs/feedbackPostV2FeedbackRemove.d.ts.map +0 -1
- package/funcs/feedbackPostV2FeedbackRemove.js.map +0 -1
- package/funcs/humanReviewSetsDeleteV2HumanEvalSetsId.d.ts.map +0 -1
- package/funcs/humanReviewSetsDeleteV2HumanEvalSetsId.js.map +0 -1
- package/funcs/humanReviewSetsGetV2HumanEvalSets.d.ts.map +0 -1
- package/funcs/humanReviewSetsGetV2HumanEvalSets.js.map +0 -1
- package/funcs/humanReviewSetsGetV2HumanEvalSetsId.d.ts.map +0 -1
- package/funcs/humanReviewSetsGetV2HumanEvalSetsId.js.map +0 -1
- package/funcs/humanReviewSetsPatchV2HumanEvalSetsId.d.ts.map +0 -1
- package/funcs/humanReviewSetsPatchV2HumanEvalSetsId.js.map +0 -1
- package/funcs/humanReviewSetsPostV2HumanEvalSets.d.ts.map +0 -1
- package/funcs/humanReviewSetsPostV2HumanEvalSets.js.map +0 -1
- package/funcs/postV2FeedbackEvaluationRemove.d.ts.map +0 -1
- package/funcs/postV2FeedbackEvaluationRemove.js.map +0 -1
- package/funcs/toolsGetV2ToolsToolIdVersions.d.ts.map +0 -1
- package/funcs/toolsGetV2ToolsToolIdVersions.js.map +0 -1
- package/funcs/toolsGetV2ToolsToolIdVersionsVersionId.d.ts.map +0 -1
- package/funcs/toolsGetV2ToolsToolIdVersionsVersionId.js.map +0 -1
|
@@ -32,7 +32,7 @@ import { Result } from "../types/fp.js";
|
|
|
32
32
|
* @remarks
|
|
33
33
|
* Returns a specific version of a tool
|
|
34
34
|
*/
|
|
35
|
-
export function
|
|
35
|
+
export function toolsGetVersion(
|
|
36
36
|
client: OrqCore,
|
|
37
37
|
request: operations.GetV2ToolsToolIdVersionsVersionIdRequest,
|
|
38
38
|
options?: RequestOptions,
|
|
@@ -32,7 +32,7 @@ import { Result } from "../types/fp.js";
|
|
|
32
32
|
* @remarks
|
|
33
33
|
* Returns version history for a specific tool
|
|
34
34
|
*/
|
|
35
|
-
export function
|
|
35
|
+
export function toolsListVersions(
|
|
36
36
|
client: OrqCore,
|
|
37
37
|
request: operations.GetV2ToolsToolIdVersionsRequest,
|
|
38
38
|
options?: RequestOptions,
|
package/src/lib/config.ts
CHANGED
|
@@ -58,7 +58,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
58
58
|
export const SDK_METADATA = {
|
|
59
59
|
language: "typescript",
|
|
60
60
|
openapiDocVersion: "2.0",
|
|
61
|
-
sdkVersion: "4.11.0-rc.
|
|
61
|
+
sdkVersion: "4.11.0-rc.3",
|
|
62
62
|
genVersion: "2.893.0",
|
|
63
|
-
userAgent: "speakeasy-sdk/typescript 4.11.0-rc.
|
|
63
|
+
userAgent: "speakeasy-sdk/typescript 4.11.0-rc.3 2.893.0 2.0 @orq-ai/node",
|
|
64
64
|
} as const;
|
|
@@ -21,7 +21,7 @@ export type CreateFileRequest = {
|
|
|
21
21
|
*/
|
|
22
22
|
contentType?: string | undefined;
|
|
23
23
|
/**
|
|
24
|
-
* Project the file is created in. Optional
|
|
24
|
+
* Project the file is created in. Optional: project-scoped API keys default to the key's bound project; workspace-scoped callers default to the workspace's default project.
|
|
25
25
|
*/
|
|
26
26
|
projectId?: string | undefined;
|
|
27
27
|
};
|
|
@@ -40,7 +40,7 @@ export const ReasoningPart$inboundSchema: z.ZodType<
|
|
|
40
40
|
z.ZodTypeDef,
|
|
41
41
|
unknown
|
|
42
42
|
> = z.object({
|
|
43
|
-
_id: z.string().default("
|
|
43
|
+
_id: z.string().default("reasoning_01ktknh3847e3bkxw47qgzhjhd"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -138,7 +138,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
138
138
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
139
139
|
.optional(),
|
|
140
140
|
updated: z.string().datetime({ offset: true }).default(
|
|
141
|
-
"2026-06-
|
|
141
|
+
"2026-06-08T13:07:17.066Z",
|
|
142
142
|
).transform(v => new Date(v)),
|
|
143
143
|
}).transform((v) => {
|
|
144
144
|
return remap$(v, {
|
|
@@ -2355,7 +2355,7 @@ export const Evaluations3$inboundSchema: z.ZodType<
|
|
|
2355
2355
|
),
|
|
2356
2356
|
reviewed_by_id: z.string(),
|
|
2357
2357
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2358
|
-
"2026-06-
|
|
2358
|
+
"2026-06-08T13:07:39.442Z",
|
|
2359
2359
|
).transform(v => new Date(v)),
|
|
2360
2360
|
type: z.literal("string_array"),
|
|
2361
2361
|
values: z.array(z.string()),
|
|
@@ -2400,7 +2400,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
|
|
|
2400
2400
|
source: CreateDatasetItemEvaluationsSource$inboundSchema.default("orq"),
|
|
2401
2401
|
reviewed_by_id: z.string(),
|
|
2402
2402
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2403
|
-
"2026-06-
|
|
2403
|
+
"2026-06-08T13:07:39.442Z",
|
|
2404
2404
|
).transform(v => new Date(v)),
|
|
2405
2405
|
type: z.literal("number"),
|
|
2406
2406
|
value: z.number(),
|
|
@@ -2446,7 +2446,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
|
|
|
2446
2446
|
source: EvaluationsSource$inboundSchema.default("orq"),
|
|
2447
2447
|
reviewed_by_id: z.string(),
|
|
2448
2448
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2449
|
-
"2026-06-
|
|
2449
|
+
"2026-06-08T13:07:39.441Z",
|
|
2450
2450
|
).transform(v => new Date(v)),
|
|
2451
2451
|
type: z.literal("string"),
|
|
2452
2452
|
value: z.string(),
|
|
@@ -2529,7 +2529,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
|
|
|
2529
2529
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2530
2530
|
.optional(),
|
|
2531
2531
|
updated: z.string().datetime({ offset: true }).default(
|
|
2532
|
-
"2026-06-
|
|
2532
|
+
"2026-06-08T13:07:17.066Z",
|
|
2533
2533
|
).transform(v => new Date(v)),
|
|
2534
2534
|
}).transform((v) => {
|
|
2535
2535
|
return remap$(v, {
|
|
@@ -409,7 +409,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
409
409
|
z.ZodTypeDef,
|
|
410
410
|
unknown
|
|
411
411
|
> = z.object({
|
|
412
|
-
_id: z.string().default("
|
|
412
|
+
_id: z.string().default("01KTKNH3QAH5F1F4H58WNN34Q5"),
|
|
413
413
|
display_name: z.string(),
|
|
414
414
|
description: z.nullable(z.string()).optional(),
|
|
415
415
|
status: CreateDatasourceStatus$inboundSchema,
|
|
@@ -54,12 +54,10 @@ export const OutputType = {
|
|
|
54
54
|
} as const;
|
|
55
55
|
export type OutputType = ClosedEnum<typeof OutputType>;
|
|
56
56
|
|
|
57
|
-
export const
|
|
57
|
+
export const RequestBodyType = {
|
|
58
58
|
PythonEval: "python_eval",
|
|
59
59
|
} as const;
|
|
60
|
-
export type
|
|
61
|
-
typeof CreateEvalRequestBodyType
|
|
62
|
-
>;
|
|
60
|
+
export type RequestBodyType = ClosedEnum<typeof RequestBodyType>;
|
|
63
61
|
|
|
64
62
|
export type Python = {
|
|
65
63
|
guardrailConfig?:
|
|
@@ -70,7 +68,7 @@ export type Python = {
|
|
|
70
68
|
| undefined;
|
|
71
69
|
outputType?: OutputType | undefined;
|
|
72
70
|
code: string;
|
|
73
|
-
type:
|
|
71
|
+
type: RequestBodyType;
|
|
74
72
|
/**
|
|
75
73
|
* Entity storage path.
|
|
76
74
|
*
|
|
@@ -202,10 +200,10 @@ export type Llm2 = {
|
|
|
202
200
|
*/
|
|
203
201
|
outputType?: LLMOutputType | undefined;
|
|
204
202
|
type: LLMType;
|
|
205
|
-
repetitions?: number | undefined;
|
|
203
|
+
repetitions?: number | null | undefined;
|
|
206
204
|
prompt: string;
|
|
207
|
-
categories?: Array<string> | undefined;
|
|
208
|
-
categoricalLabels?: Array<LLMCategoricalLabels> | undefined;
|
|
205
|
+
categories?: Array<string> | null | undefined;
|
|
206
|
+
categoricalLabels?: Array<LLMCategoricalLabels> | null | undefined;
|
|
209
207
|
datasetId?: string | undefined;
|
|
210
208
|
/**
|
|
211
209
|
* Entity storage path.
|
|
@@ -300,10 +298,10 @@ export type Llm1 = {
|
|
|
300
298
|
*/
|
|
301
299
|
outputType?: CreateEvalLLMOutputType | undefined;
|
|
302
300
|
type: CreateEvalLLMType;
|
|
303
|
-
repetitions?: number | undefined;
|
|
301
|
+
repetitions?: number | null | undefined;
|
|
304
302
|
prompt: string;
|
|
305
|
-
categories?: Array<string> | undefined;
|
|
306
|
-
categoricalLabels?: Array<CreateEvalLLMCategoricalLabels> | undefined;
|
|
303
|
+
categories?: Array<string> | null | undefined;
|
|
304
|
+
categoricalLabels?: Array<CreateEvalLLMCategoricalLabels> | null | undefined;
|
|
307
305
|
datasetId?: string | undefined;
|
|
308
306
|
/**
|
|
309
307
|
* Entity storage path.
|
|
@@ -1061,10 +1059,13 @@ export type CreateEvalLlm2 = {
|
|
|
1061
1059
|
| null
|
|
1062
1060
|
| undefined;
|
|
1063
1061
|
type: CreateEvalLLMEvalsResponseType;
|
|
1064
|
-
repetitions?: number | undefined;
|
|
1062
|
+
repetitions?: number | null | undefined;
|
|
1065
1063
|
prompt: string;
|
|
1066
|
-
categories?: Array<string> | undefined;
|
|
1067
|
-
categoricalLabels?:
|
|
1064
|
+
categories?: Array<string> | null | undefined;
|
|
1065
|
+
categoricalLabels?:
|
|
1066
|
+
| Array<CreateEvalLLMEvalsCategoricalLabels>
|
|
1067
|
+
| null
|
|
1068
|
+
| undefined;
|
|
1068
1069
|
datasetId?: string | undefined;
|
|
1069
1070
|
key: string;
|
|
1070
1071
|
mode: "jury";
|
|
@@ -1139,11 +1140,12 @@ export type CreateEvalLlm1 = {
|
|
|
1139
1140
|
| null
|
|
1140
1141
|
| undefined;
|
|
1141
1142
|
type: CreateEvalLLMEvalsType;
|
|
1142
|
-
repetitions?: number | undefined;
|
|
1143
|
+
repetitions?: number | null | undefined;
|
|
1143
1144
|
prompt: string;
|
|
1144
|
-
categories?: Array<string> | undefined;
|
|
1145
|
+
categories?: Array<string> | null | undefined;
|
|
1145
1146
|
categoricalLabels?:
|
|
1146
1147
|
| Array<CreateEvalLLMEvalsResponseCategoricalLabels>
|
|
1148
|
+
| null
|
|
1147
1149
|
| undefined;
|
|
1148
1150
|
datasetId?: string | undefined;
|
|
1149
1151
|
key: string;
|
|
@@ -1299,9 +1301,9 @@ export const OutputType$outboundSchema: z.ZodNativeEnum<typeof OutputType> = z
|
|
|
1299
1301
|
.nativeEnum(OutputType);
|
|
1300
1302
|
|
|
1301
1303
|
/** @internal */
|
|
1302
|
-
export const
|
|
1303
|
-
typeof
|
|
1304
|
-
> = z.nativeEnum(
|
|
1304
|
+
export const RequestBodyType$outboundSchema: z.ZodNativeEnum<
|
|
1305
|
+
typeof RequestBodyType
|
|
1306
|
+
> = z.nativeEnum(RequestBodyType);
|
|
1305
1307
|
|
|
1306
1308
|
/** @internal */
|
|
1307
1309
|
export type Python$Outbound = {
|
|
@@ -1334,7 +1336,7 @@ export const Python$outboundSchema: z.ZodType<
|
|
|
1334
1336
|
).optional(),
|
|
1335
1337
|
outputType: OutputType$outboundSchema.optional(),
|
|
1336
1338
|
code: z.string(),
|
|
1337
|
-
type:
|
|
1339
|
+
type: RequestBodyType$outboundSchema,
|
|
1338
1340
|
path: z.string(),
|
|
1339
1341
|
description: z.string().default(""),
|
|
1340
1342
|
key: z.string(),
|
|
@@ -1708,10 +1710,10 @@ export type Llm2$Outbound = {
|
|
|
1708
1710
|
| undefined;
|
|
1709
1711
|
output_type?: string | undefined;
|
|
1710
1712
|
type: string;
|
|
1711
|
-
repetitions?: number | undefined;
|
|
1713
|
+
repetitions?: number | null | undefined;
|
|
1712
1714
|
prompt: string;
|
|
1713
|
-
categories?: Array<string> | undefined;
|
|
1714
|
-
categorical_labels?: Array<LLMCategoricalLabels$Outbound> | undefined;
|
|
1715
|
+
categories?: Array<string> | null | undefined;
|
|
1716
|
+
categorical_labels?: Array<LLMCategoricalLabels$Outbound> | null | undefined;
|
|
1715
1717
|
dataset_id?: string | undefined;
|
|
1716
1718
|
path: string;
|
|
1717
1719
|
description: string;
|
|
@@ -1738,11 +1740,11 @@ export const Llm2$outboundSchema: z.ZodType<Llm2$Outbound, z.ZodTypeDef, Llm2> =
|
|
|
1738
1740
|
).optional(),
|
|
1739
1741
|
outputType: LLMOutputType$outboundSchema.optional(),
|
|
1740
1742
|
type: LLMType$outboundSchema,
|
|
1741
|
-
repetitions: z.number().int().optional(),
|
|
1743
|
+
repetitions: z.nullable(z.number().int()).optional(),
|
|
1742
1744
|
prompt: z.string(),
|
|
1743
|
-
categories: z.array(z.string()).optional(),
|
|
1744
|
-
categoricalLabels: z.
|
|
1745
|
-
z.lazy(() => LLMCategoricalLabels$outboundSchema),
|
|
1745
|
+
categories: z.nullable(z.array(z.string())).optional(),
|
|
1746
|
+
categoricalLabels: z.nullable(
|
|
1747
|
+
z.array(z.lazy(() => LLMCategoricalLabels$outboundSchema)),
|
|
1746
1748
|
).optional(),
|
|
1747
1749
|
datasetId: z.string().optional(),
|
|
1748
1750
|
path: z.string(),
|
|
@@ -1945,11 +1947,12 @@ export type Llm1$Outbound = {
|
|
|
1945
1947
|
| undefined;
|
|
1946
1948
|
output_type?: string | undefined;
|
|
1947
1949
|
type: string;
|
|
1948
|
-
repetitions?: number | undefined;
|
|
1950
|
+
repetitions?: number | null | undefined;
|
|
1949
1951
|
prompt: string;
|
|
1950
|
-
categories?: Array<string> | undefined;
|
|
1952
|
+
categories?: Array<string> | null | undefined;
|
|
1951
1953
|
categorical_labels?:
|
|
1952
1954
|
| Array<CreateEvalLLMCategoricalLabels$Outbound>
|
|
1955
|
+
| null
|
|
1953
1956
|
| undefined;
|
|
1954
1957
|
dataset_id?: string | undefined;
|
|
1955
1958
|
path: string;
|
|
@@ -1971,11 +1974,11 @@ export const Llm1$outboundSchema: z.ZodType<Llm1$Outbound, z.ZodTypeDef, Llm1> =
|
|
|
1971
1974
|
).optional(),
|
|
1972
1975
|
outputType: CreateEvalLLMOutputType$outboundSchema.optional(),
|
|
1973
1976
|
type: CreateEvalLLMType$outboundSchema,
|
|
1974
|
-
repetitions: z.number().int().optional(),
|
|
1977
|
+
repetitions: z.nullable(z.number().int()).optional(),
|
|
1975
1978
|
prompt: z.string(),
|
|
1976
|
-
categories: z.array(z.string()).optional(),
|
|
1977
|
-
categoricalLabels: z.
|
|
1978
|
-
z.lazy(() => CreateEvalLLMCategoricalLabels$outboundSchema),
|
|
1979
|
+
categories: z.nullable(z.array(z.string())).optional(),
|
|
1980
|
+
categoricalLabels: z.nullable(
|
|
1981
|
+
z.array(z.lazy(() => CreateEvalLLMCategoricalLabels$outboundSchema)),
|
|
1979
1982
|
).optional(),
|
|
1980
1983
|
datasetId: z.string().optional(),
|
|
1981
1984
|
path: z.string(),
|
|
@@ -2190,8 +2193,8 @@ export const Typescript$inboundSchema: z.ZodType<
|
|
|
2190
2193
|
> = z.object({
|
|
2191
2194
|
_id: z.string(),
|
|
2192
2195
|
description: z.string(),
|
|
2193
|
-
created: z.string().default("2026-06-
|
|
2194
|
-
updated: z.string().default("2026-06-
|
|
2196
|
+
created: z.string().default("2026-06-08T13:07:18.574Z"),
|
|
2197
|
+
updated: z.string().default("2026-06-08T13:07:18.574Z"),
|
|
2195
2198
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
2196
2199
|
guardrail_config: z.nullable(
|
|
2197
2200
|
z.union([
|
|
@@ -2381,8 +2384,8 @@ export const Ragas$inboundSchema: z.ZodType<Ragas, z.ZodTypeDef, unknown> = z
|
|
|
2381
2384
|
.object({
|
|
2382
2385
|
_id: z.string(),
|
|
2383
2386
|
description: z.string(),
|
|
2384
|
-
created: z.string().default("2026-06-
|
|
2385
|
-
updated: z.string().default("2026-06-
|
|
2387
|
+
created: z.string().default("2026-06-08T13:07:18.574Z"),
|
|
2388
|
+
updated: z.string().default("2026-06-08T13:07:18.574Z"),
|
|
2386
2389
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
2387
2390
|
guardrail_config: z.nullable(
|
|
2388
2391
|
z.union([
|
|
@@ -3207,8 +3210,8 @@ export const CreateEvalResponseBodyFunction$inboundSchema: z.ZodType<
|
|
|
3207
3210
|
> = z.object({
|
|
3208
3211
|
_id: z.string(),
|
|
3209
3212
|
description: z.string(),
|
|
3210
|
-
created: z.string().default("2026-06-
|
|
3211
|
-
updated: z.string().default("2026-06-
|
|
3213
|
+
created: z.string().default("2026-06-08T13:07:18.574Z"),
|
|
3214
|
+
updated: z.string().default("2026-06-08T13:07:18.574Z"),
|
|
3212
3215
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
3213
3216
|
guardrail_config: z.nullable(
|
|
3214
3217
|
z.union([
|
|
@@ -3427,8 +3430,8 @@ export const ResponseBodyPython$inboundSchema: z.ZodType<
|
|
|
3427
3430
|
> = z.object({
|
|
3428
3431
|
_id: z.string(),
|
|
3429
3432
|
description: z.string(),
|
|
3430
|
-
created: z.string().default("2026-06-
|
|
3431
|
-
updated: z.string().default("2026-06-
|
|
3433
|
+
created: z.string().default("2026-06-08T13:07:18.574Z"),
|
|
3434
|
+
updated: z.string().default("2026-06-08T13:07:18.574Z"),
|
|
3432
3435
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
3433
3436
|
guardrail_config: z.nullable(
|
|
3434
3437
|
z.union([
|
|
@@ -3609,8 +3612,8 @@ export const CreateEvalResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
3609
3612
|
> = z.object({
|
|
3610
3613
|
_id: z.string(),
|
|
3611
3614
|
description: z.string(),
|
|
3612
|
-
created: z.string().default("2026-06-
|
|
3613
|
-
updated: z.string().default("2026-06-
|
|
3615
|
+
created: z.string().default("2026-06-08T13:07:18.574Z"),
|
|
3616
|
+
updated: z.string().default("2026-06-08T13:07:18.574Z"),
|
|
3614
3617
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
3615
3618
|
guardrail_config: z.nullable(
|
|
3616
3619
|
z.union([
|
|
@@ -3769,8 +3772,8 @@ export const Json$inboundSchema: z.ZodType<Json, z.ZodTypeDef, unknown> = z
|
|
|
3769
3772
|
.object({
|
|
3770
3773
|
_id: z.string(),
|
|
3771
3774
|
description: z.string(),
|
|
3772
|
-
created: z.string().default("2026-06-
|
|
3773
|
-
updated: z.string().default("2026-06-
|
|
3775
|
+
created: z.string().default("2026-06-08T13:07:18.574Z"),
|
|
3776
|
+
updated: z.string().default("2026-06-08T13:07:18.574Z"),
|
|
3774
3777
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
3775
3778
|
guardrail_config: z.nullable(
|
|
3776
3779
|
z.union([
|
|
@@ -4140,8 +4143,8 @@ export const CreateEvalLlm2$inboundSchema: z.ZodType<
|
|
|
4140
4143
|
> = z.object({
|
|
4141
4144
|
_id: z.string(),
|
|
4142
4145
|
description: z.string(),
|
|
4143
|
-
created: z.string().default("2026-06-
|
|
4144
|
-
updated: z.string().default("2026-06-
|
|
4146
|
+
created: z.string().default("2026-06-08T13:07:18.574Z"),
|
|
4147
|
+
updated: z.string().default("2026-06-08T13:07:18.574Z"),
|
|
4145
4148
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
4146
4149
|
guardrail_config: z.nullable(
|
|
4147
4150
|
z.union([
|
|
@@ -4157,11 +4160,11 @@ export const CreateEvalLlm2$inboundSchema: z.ZodType<
|
|
|
4157
4160
|
]),
|
|
4158
4161
|
).optional(),
|
|
4159
4162
|
type: CreateEvalLLMEvalsResponseType$inboundSchema,
|
|
4160
|
-
repetitions: z.number().int().optional(),
|
|
4163
|
+
repetitions: z.nullable(z.number().int()).optional(),
|
|
4161
4164
|
prompt: z.string(),
|
|
4162
|
-
categories: z.array(z.string()).optional(),
|
|
4163
|
-
categorical_labels: z.
|
|
4164
|
-
z.lazy(() => CreateEvalLLMEvalsCategoricalLabels$inboundSchema),
|
|
4165
|
+
categories: z.nullable(z.array(z.string())).optional(),
|
|
4166
|
+
categorical_labels: z.nullable(
|
|
4167
|
+
z.array(z.lazy(() => CreateEvalLLMEvalsCategoricalLabels$inboundSchema)),
|
|
4165
4168
|
).optional(),
|
|
4166
4169
|
dataset_id: z.string().optional(),
|
|
4167
4170
|
key: z.string(),
|
|
@@ -4360,8 +4363,8 @@ export const CreateEvalLlm1$inboundSchema: z.ZodType<
|
|
|
4360
4363
|
> = z.object({
|
|
4361
4364
|
_id: z.string(),
|
|
4362
4365
|
description: z.string(),
|
|
4363
|
-
created: z.string().default("2026-06-
|
|
4364
|
-
updated: z.string().default("2026-06-
|
|
4366
|
+
created: z.string().default("2026-06-08T13:07:18.574Z"),
|
|
4367
|
+
updated: z.string().default("2026-06-08T13:07:18.574Z"),
|
|
4365
4368
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
4366
4369
|
guardrail_config: z.nullable(
|
|
4367
4370
|
z.union([
|
|
@@ -4377,11 +4380,13 @@ export const CreateEvalLlm1$inboundSchema: z.ZodType<
|
|
|
4377
4380
|
]),
|
|
4378
4381
|
).optional(),
|
|
4379
4382
|
type: CreateEvalLLMEvalsType$inboundSchema,
|
|
4380
|
-
repetitions: z.number().int().optional(),
|
|
4383
|
+
repetitions: z.nullable(z.number().int()).optional(),
|
|
4381
4384
|
prompt: z.string(),
|
|
4382
|
-
categories: z.array(z.string()).optional(),
|
|
4383
|
-
categorical_labels: z.
|
|
4384
|
-
z.lazy(() =>
|
|
4385
|
+
categories: z.nullable(z.array(z.string())).optional(),
|
|
4386
|
+
categorical_labels: z.nullable(
|
|
4387
|
+
z.array(z.lazy(() =>
|
|
4388
|
+
CreateEvalLLMEvalsResponseCategoricalLabels$inboundSchema
|
|
4389
|
+
)),
|
|
4385
4390
|
).optional(),
|
|
4386
4391
|
dataset_id: z.string().optional(),
|
|
4387
4392
|
key: z.string(),
|
|
@@ -31,7 +31,7 @@ export type ExternalConfig = {
|
|
|
31
31
|
apiKey: string;
|
|
32
32
|
};
|
|
33
33
|
|
|
34
|
-
export type
|
|
34
|
+
export type RequestBody2 = {
|
|
35
35
|
type?: CreateKnowledgeRequestBodyKnowledgeType | undefined;
|
|
36
36
|
key: string;
|
|
37
37
|
description?: string | undefined;
|
|
@@ -115,7 +115,7 @@ export type RetrievalSettings = {
|
|
|
115
115
|
| undefined;
|
|
116
116
|
};
|
|
117
117
|
|
|
118
|
-
export type
|
|
118
|
+
export type RequestBody1 = {
|
|
119
119
|
type?: CreateKnowledgeRequestBodyType | undefined;
|
|
120
120
|
key: string;
|
|
121
121
|
description?: string | undefined;
|
|
@@ -139,9 +139,7 @@ export type CreateKnowledgeRequestBody1 = {
|
|
|
139
139
|
path: string;
|
|
140
140
|
};
|
|
141
141
|
|
|
142
|
-
export type CreateKnowledgeRequestBody =
|
|
143
|
-
| CreateKnowledgeRequestBody1
|
|
144
|
-
| CreateKnowledgeRequestBody2;
|
|
142
|
+
export type CreateKnowledgeRequestBody = RequestBody1 | RequestBody2;
|
|
145
143
|
|
|
146
144
|
export const CreateKnowledgeResponseBodyKnowledgeType = {
|
|
147
145
|
External: "external",
|
|
@@ -421,7 +419,7 @@ export function externalConfigToJSON(externalConfig: ExternalConfig): string {
|
|
|
421
419
|
}
|
|
422
420
|
|
|
423
421
|
/** @internal */
|
|
424
|
-
export type
|
|
422
|
+
export type RequestBody2$Outbound = {
|
|
425
423
|
type: string;
|
|
426
424
|
key: string;
|
|
427
425
|
description?: string | undefined;
|
|
@@ -429,10 +427,10 @@ export type CreateKnowledgeRequestBody2$Outbound = {
|
|
|
429
427
|
};
|
|
430
428
|
|
|
431
429
|
/** @internal */
|
|
432
|
-
export const
|
|
433
|
-
|
|
430
|
+
export const RequestBody2$outboundSchema: z.ZodType<
|
|
431
|
+
RequestBody2$Outbound,
|
|
434
432
|
z.ZodTypeDef,
|
|
435
|
-
|
|
433
|
+
RequestBody2
|
|
436
434
|
> = z.object({
|
|
437
435
|
type: CreateKnowledgeRequestBodyKnowledgeType$outboundSchema.default(
|
|
438
436
|
"external",
|
|
@@ -446,14 +444,8 @@ export const CreateKnowledgeRequestBody2$outboundSchema: z.ZodType<
|
|
|
446
444
|
});
|
|
447
445
|
});
|
|
448
446
|
|
|
449
|
-
export function
|
|
450
|
-
|
|
451
|
-
): string {
|
|
452
|
-
return JSON.stringify(
|
|
453
|
-
CreateKnowledgeRequestBody2$outboundSchema.parse(
|
|
454
|
-
createKnowledgeRequestBody2,
|
|
455
|
-
),
|
|
456
|
-
);
|
|
447
|
+
export function requestBody2ToJSON(requestBody2: RequestBody2): string {
|
|
448
|
+
return JSON.stringify(RequestBody2$outboundSchema.parse(requestBody2));
|
|
457
449
|
}
|
|
458
450
|
|
|
459
451
|
/** @internal */
|
|
@@ -575,7 +567,7 @@ export function retrievalSettingsToJSON(
|
|
|
575
567
|
}
|
|
576
568
|
|
|
577
569
|
/** @internal */
|
|
578
|
-
export type
|
|
570
|
+
export type RequestBody1$Outbound = {
|
|
579
571
|
type: string;
|
|
580
572
|
key: string;
|
|
581
573
|
description?: string | undefined;
|
|
@@ -585,10 +577,10 @@ export type CreateKnowledgeRequestBody1$Outbound = {
|
|
|
585
577
|
};
|
|
586
578
|
|
|
587
579
|
/** @internal */
|
|
588
|
-
export const
|
|
589
|
-
|
|
580
|
+
export const RequestBody1$outboundSchema: z.ZodType<
|
|
581
|
+
RequestBody1$Outbound,
|
|
590
582
|
z.ZodTypeDef,
|
|
591
|
-
|
|
583
|
+
RequestBody1
|
|
592
584
|
> = z.object({
|
|
593
585
|
type: CreateKnowledgeRequestBodyType$outboundSchema.default("internal"),
|
|
594
586
|
key: z.string(),
|
|
@@ -603,20 +595,14 @@ export const CreateKnowledgeRequestBody1$outboundSchema: z.ZodType<
|
|
|
603
595
|
});
|
|
604
596
|
});
|
|
605
597
|
|
|
606
|
-
export function
|
|
607
|
-
|
|
608
|
-
): string {
|
|
609
|
-
return JSON.stringify(
|
|
610
|
-
CreateKnowledgeRequestBody1$outboundSchema.parse(
|
|
611
|
-
createKnowledgeRequestBody1,
|
|
612
|
-
),
|
|
613
|
-
);
|
|
598
|
+
export function requestBody1ToJSON(requestBody1: RequestBody1): string {
|
|
599
|
+
return JSON.stringify(RequestBody1$outboundSchema.parse(requestBody1));
|
|
614
600
|
}
|
|
615
601
|
|
|
616
602
|
/** @internal */
|
|
617
603
|
export type CreateKnowledgeRequestBody$Outbound =
|
|
618
|
-
|
|
|
619
|
-
|
|
|
604
|
+
| RequestBody1$Outbound
|
|
605
|
+
| RequestBody2$Outbound;
|
|
620
606
|
|
|
621
607
|
/** @internal */
|
|
622
608
|
export const CreateKnowledgeRequestBody$outboundSchema: z.ZodType<
|
|
@@ -624,8 +610,8 @@ export const CreateKnowledgeRequestBody$outboundSchema: z.ZodType<
|
|
|
624
610
|
z.ZodTypeDef,
|
|
625
611
|
CreateKnowledgeRequestBody
|
|
626
612
|
> = z.union([
|
|
627
|
-
z.lazy(() =>
|
|
628
|
-
z.lazy(() =>
|
|
613
|
+
z.lazy(() => RequestBody1$outboundSchema),
|
|
614
|
+
z.lazy(() => RequestBody2$outboundSchema),
|
|
629
615
|
]);
|
|
630
616
|
|
|
631
617
|
export function createKnowledgeRequestBodyToJSON(
|