@orq-ai/node 4.10.7 → 4.10.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/FUNCTIONS.md +4 -4
- package/README.md +41 -34
- 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/{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/{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/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 +4 -4
- package/models/operations/createeval.d.ts.map +1 -1
- package/models/operations/createeval.js +20 -20
- 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.js +6 -6
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +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.js +6 -6
- 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.js +16 -16
- package/models/operations/updatetool.js +7 -7
- package/package.json +3 -3
- package/packages/orq-rc/examples/{postV2FeedbackEvaluationRemove.example.ts → evalsAll.example.ts} +4 -2
- package/packages/orq-rc/src/funcs/{agentsPostV2AgentsKeyCardRefresh.ts → agentsRefreshKeyCard.ts} +1 -1
- package/{src/funcs/evalsGetV2EvaluatorsIdVersions.ts → packages/orq-rc/src/funcs/evalsListVersions.ts} +1 -1
- package/packages/orq-rc/src/funcs/{feedbackPostV2Feedback.ts → feedbackCreate.ts} +1 -1
- package/{src/funcs/postV2FeedbackEvaluation.ts → packages/orq-rc/src/funcs/feedbackCreateEvaluation.ts} +1 -1
- package/{src/funcs/feedbackPostV2FeedbackRemove.ts → packages/orq-rc/src/funcs/feedbackRemove.ts} +1 -1
- package/packages/orq-rc/src/funcs/{postV2FeedbackEvaluationRemove.ts → feedbackRemoveEvaluation.ts} +1 -1
- package/packages/orq-rc/src/funcs/guardrailRulesList.ts +4 -0
- package/packages/orq-rc/src/funcs/guardrailRulesListUsedGuardrails.ts +147 -0
- package/{src/funcs/humanReviewSetsPostV2HumanEvalSets.ts → packages/orq-rc/src/funcs/humanReviewSetsCreate.ts} +1 -1
- package/packages/orq-rc/src/funcs/{humanReviewSetsDeleteV2HumanEvalSetsId.ts → humanReviewSetsDelete.ts} +1 -1
- package/{src/funcs/humanReviewSetsGetV2HumanEvalSetsId.ts → packages/orq-rc/src/funcs/humanReviewSetsGet.ts} +1 -1
- package/{src/funcs/humanReviewSetsGetV2HumanEvalSets.ts → packages/orq-rc/src/funcs/humanReviewSetsList.ts} +1 -1
- package/packages/orq-rc/src/funcs/{humanReviewSetsPatchV2HumanEvalSetsId.ts → humanReviewSetsUpdate.ts} +1 -1
- package/packages/orq-rc/src/funcs/routingRulesList.ts +3 -0
- package/packages/orq-rc/src/funcs/routingRulesListUsedModels.ts +144 -0
- package/{src/funcs/toolsGetV2ToolsToolIdVersionsVersionId.ts → packages/orq-rc/src/funcs/toolsGetVersion.ts} +1 -1
- package/{src/funcs/toolsGetV2ToolsToolIdVersions.ts → packages/orq-rc/src/funcs/toolsListVersions.ts} +1 -1
- package/packages/orq-rc/src/lib/config.ts +2 -2
- package/packages/orq-rc/src/models/components/createfilerequest.ts +1 -1
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
- package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/createeval.ts +23 -25
- package/packages/orq-rc/src/models/operations/createknowledge.ts +19 -33
- package/packages/orq-rc/src/models/operations/createtool.ts +6 -6
- package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
- package/packages/orq-rc/src/models/operations/getevals.ts +16 -16
- package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/guardrailrulelist.ts +44 -0
- package/packages/orq-rc/src/models/operations/guardrailrulelistusedguardrails.ts +48 -0
- package/packages/orq-rc/src/models/operations/index.ts +2 -0
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
- package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +43 -31
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
- package/packages/orq-rc/src/models/operations/routingrulelist.ts +18 -0
- package/packages/orq-rc/src/models/operations/routingrulelistusedmodels.ts +37 -0
- 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/updatedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
- package/packages/orq-rc/src/sdk/agents.ts +3 -3
- package/packages/orq-rc/src/sdk/evals.ts +3 -3
- package/packages/orq-rc/src/sdk/feedback.ts +36 -6
- package/packages/orq-rc/src/sdk/guardrailrules.ts +16 -0
- package/packages/orq-rc/src/sdk/humanreviewsets.ts +15 -15
- package/packages/orq-rc/src/sdk/routingrules.ts +16 -0
- package/packages/orq-rc/src/sdk/sdk.ts +1 -27
- package/packages/orq-rc/src/sdk/tools.ts +6 -6
- 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/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/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/{packages/orq-rc/src/funcs/evalsGetV2EvaluatorsIdVersions.ts → src/funcs/evalsListVersions.ts} +1 -1
- package/src/funcs/{feedbackPostV2Feedback.ts → feedbackCreate.ts} +1 -1
- package/{packages/orq-rc/src/funcs/postV2FeedbackEvaluation.ts → src/funcs/feedbackCreateEvaluation.ts} +1 -1
- package/{packages/orq-rc/src/funcs/feedbackPostV2FeedbackRemove.ts → src/funcs/feedbackRemove.ts} +1 -1
- package/src/funcs/{postV2FeedbackEvaluationRemove.ts → feedbackRemoveEvaluation.ts} +1 -1
- package/{packages/orq-rc/src/funcs/humanReviewSetsPostV2HumanEvalSets.ts → src/funcs/humanReviewSetsCreate.ts} +1 -1
- package/src/funcs/{humanReviewSetsDeleteV2HumanEvalSetsId.ts → humanReviewSetsDelete.ts} +1 -1
- package/{packages/orq-rc/src/funcs/humanReviewSetsGetV2HumanEvalSetsId.ts → src/funcs/humanReviewSetsGet.ts} +1 -1
- package/{packages/orq-rc/src/funcs/humanReviewSetsGetV2HumanEvalSets.ts → src/funcs/humanReviewSetsList.ts} +1 -1
- package/src/funcs/{humanReviewSetsPatchV2HumanEvalSetsId.ts → humanReviewSetsUpdate.ts} +1 -1
- package/{packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersionsVersionId.ts → src/funcs/toolsGetVersion.ts} +1 -1
- package/{packages/orq-rc/src/funcs/toolsGetV2ToolsToolIdVersions.ts → src/funcs/toolsListVersions.ts} +1 -1
- package/src/lib/config.ts +2 -2
- 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 +23 -25
- package/src/models/operations/createknowledge.ts +19 -33
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- 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/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 +6 -6
- 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 +16 -16
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/agents.ts +3 -3
- package/src/sdk/evals.ts +3 -3
- package/src/sdk/feedback.ts +36 -6
- package/src/sdk/humanreviewsets.ts +15 -15
- 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
|
@@ -1000,7 +1000,7 @@ function agentToolInputRunSchemaToJSON(agentToolInputRunSchema) {
|
|
|
1000
1000
|
}
|
|
1001
1001
|
/** @internal */
|
|
1002
1002
|
exports.Tools$outboundSchema = z.object({
|
|
1003
|
-
id: z.string().default("
|
|
1003
|
+
id: z.string().default("01KTKAKRX4A861MCPYYCAMWZY5"),
|
|
1004
1004
|
name: z.string(),
|
|
1005
1005
|
description: z.string().optional(),
|
|
1006
1006
|
schema: z.lazy(() => exports.AgentToolInputRunSchema$outboundSchema),
|
|
@@ -963,7 +963,7 @@ function streamRunAgentAgentToolInputRunAgentsSchemaToJSON(streamRunAgentAgentTo
|
|
|
963
963
|
}
|
|
964
964
|
/** @internal */
|
|
965
965
|
exports.AgentToolInputRunTools$outboundSchema = z.object({
|
|
966
|
-
id: z.string().default("
|
|
966
|
+
id: z.string().default("01KTKAKRYPKVRZRM1Z334DXRBJ"),
|
|
967
967
|
name: z.string(),
|
|
968
968
|
description: z.string().optional(),
|
|
969
969
|
schema: z.lazy(() => exports.StreamRunAgentAgentToolInputRunAgentsSchema$outboundSchema),
|
|
@@ -745,7 +745,7 @@ exports.UpdateDatapointEvaluations3$inboundSchema = z.object({
|
|
|
745
745
|
source: exports.UpdateDatapointEvaluationsDatasetsResponseSource$inboundSchema
|
|
746
746
|
.default("orq"),
|
|
747
747
|
reviewed_by_id: z.string(),
|
|
748
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2026-06-
|
|
748
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2026-06-08T09:56:52.740Z").transform(v => new Date(v)),
|
|
749
749
|
type: z.literal("string_array"),
|
|
750
750
|
values: z.array(z.string()),
|
|
751
751
|
}).transform((v) => {
|
|
@@ -772,7 +772,7 @@ exports.UpdateDatapointEvaluations2$inboundSchema = z.object({
|
|
|
772
772
|
human_review_id: z.string(),
|
|
773
773
|
source: exports.UpdateDatapointEvaluationsDatasetsSource$inboundSchema.default("orq"),
|
|
774
774
|
reviewed_by_id: z.string(),
|
|
775
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2026-06-
|
|
775
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2026-06-08T09:56:52.739Z").transform(v => new Date(v)),
|
|
776
776
|
type: z.literal("number"),
|
|
777
777
|
value: z.number(),
|
|
778
778
|
}).transform((v) => {
|
|
@@ -798,7 +798,7 @@ exports.UpdateDatapointEvaluations1$inboundSchema = z.object({
|
|
|
798
798
|
human_review_id: z.string(),
|
|
799
799
|
source: exports.UpdateDatapointEvaluationsSource$inboundSchema.default("orq"),
|
|
800
800
|
reviewed_by_id: z.string(),
|
|
801
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2026-06-
|
|
801
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2026-06-08T09:56:52.738Z").transform(v => new Date(v)),
|
|
802
802
|
type: z.literal("string"),
|
|
803
803
|
value: z.string(),
|
|
804
804
|
}).transform((v) => {
|
|
@@ -845,7 +845,7 @@ exports.UpdateDatapointResponseBody$inboundSchema = z.object({
|
|
|
845
845
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
846
846
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
847
847
|
.optional(),
|
|
848
|
-
updated: z.string().datetime({ offset: true }).default("2026-06-
|
|
848
|
+
updated: z.string().datetime({ offset: true }).default("2026-06-08T09:56:37.181Z").transform(v => new Date(v)),
|
|
849
849
|
}).transform((v) => {
|
|
850
850
|
return (0, primitives_js_1.remap)(v, {
|
|
851
851
|
"_id": "id",
|
|
@@ -95,7 +95,7 @@ exports.UpdateDatasetResponseBody$inboundSchema = z.object({
|
|
|
95
95
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
96
96
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
97
97
|
.optional(),
|
|
98
|
-
updated: z.string().datetime({ offset: true }).default("2026-06-
|
|
98
|
+
updated: z.string().datetime({ offset: true }).default("2026-06-08T09:56:37.181Z").transform(v => new Date(v)),
|
|
99
99
|
}).transform((v) => {
|
|
100
100
|
return (0, primitives_js_1.remap)(v, {
|
|
101
101
|
"_id": "id",
|
|
@@ -80,7 +80,7 @@ function updateDatasourceRequestToJSON(updateDatasourceRequest) {
|
|
|
80
80
|
exports.UpdateDatasourceStatus$inboundSchema = z.nativeEnum(exports.UpdateDatasourceStatus);
|
|
81
81
|
/** @internal */
|
|
82
82
|
exports.UpdateDatasourceResponseBody$inboundSchema = z.object({
|
|
83
|
-
_id: z.string().default("
|
|
83
|
+
_id: z.string().default("01KTKAKS93N4ZRNFK8X1090Z8T"),
|
|
84
84
|
display_name: z.string(),
|
|
85
85
|
description: z.nullable(z.string()).optional(),
|
|
86
86
|
status: exports.UpdateDatasourceStatus$inboundSchema,
|
|
@@ -526,8 +526,8 @@ exports.UpdateEvalResponseBodyEvalsResponse200ApplicationJson7Type$inboundSchema
|
|
|
526
526
|
exports.ResponseBodyTypescript$inboundSchema = z.object({
|
|
527
527
|
_id: z.string(),
|
|
528
528
|
description: z.string(),
|
|
529
|
-
created: z.string().default("2026-06-
|
|
530
|
-
updated: z.string().default("2026-06-
|
|
529
|
+
created: z.string().default("2026-06-08T09:56:38.251Z"),
|
|
530
|
+
updated: z.string().default("2026-06-08T09:56:38.251Z"),
|
|
531
531
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
532
532
|
guardrail_config: z.nullable(z.union([
|
|
533
533
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema),
|
|
@@ -613,8 +613,8 @@ exports.ResponseBodyRagasMetric$inboundSchema = z.nativeEnum(exports.ResponseBod
|
|
|
613
613
|
exports.ResponseBodyRagas$inboundSchema = z.object({
|
|
614
614
|
_id: z.string(),
|
|
615
615
|
description: z.string(),
|
|
616
|
-
created: z.string().default("2026-06-
|
|
617
|
-
updated: z.string().default("2026-06-
|
|
616
|
+
created: z.string().default("2026-06-08T09:56:38.251Z"),
|
|
617
|
+
updated: z.string().default("2026-06-08T09:56:38.251Z"),
|
|
618
618
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
619
619
|
guardrail_config: z.nullable(z.union([
|
|
620
620
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema),
|
|
@@ -972,8 +972,8 @@ function responseBodyFunctionParamsFromJSON(jsonString) {
|
|
|
972
972
|
exports.ResponseBodyFunction$inboundSchema = z.object({
|
|
973
973
|
_id: z.string(),
|
|
974
974
|
description: z.string(),
|
|
975
|
-
created: z.string().default("2026-06-
|
|
976
|
-
updated: z.string().default("2026-06-
|
|
975
|
+
created: z.string().default("2026-06-08T09:56:38.251Z"),
|
|
976
|
+
updated: z.string().default("2026-06-08T09:56:38.251Z"),
|
|
977
977
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
978
978
|
guardrail_config: z.nullable(z.union([
|
|
979
979
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema),
|
|
@@ -1089,8 +1089,8 @@ exports.UpdateEvalResponseBodyEvalsResponseType$inboundSchema = z
|
|
|
1089
1089
|
exports.UpdateEvalResponseBodyPython$inboundSchema = z.object({
|
|
1090
1090
|
_id: z.string(),
|
|
1091
1091
|
description: z.string(),
|
|
1092
|
-
created: z.string().default("2026-06-
|
|
1093
|
-
updated: z.string().default("2026-06-
|
|
1092
|
+
created: z.string().default("2026-06-08T09:56:38.251Z"),
|
|
1093
|
+
updated: z.string().default("2026-06-08T09:56:38.251Z"),
|
|
1094
1094
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
1095
1095
|
guardrail_config: z.nullable(z.union([
|
|
1096
1096
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
@@ -1172,8 +1172,8 @@ exports.ResponseBodyMethod$inboundSchema = z.nativeEnum(exports.ResponseBodyMeth
|
|
|
1172
1172
|
exports.ResponseBodyHTTP$inboundSchema = z.object({
|
|
1173
1173
|
_id: z.string(),
|
|
1174
1174
|
description: z.string(),
|
|
1175
|
-
created: z.string().default("2026-06-
|
|
1176
|
-
updated: z.string().default("2026-06-
|
|
1175
|
+
created: z.string().default("2026-06-08T09:56:38.251Z"),
|
|
1176
|
+
updated: z.string().default("2026-06-08T09:56:38.251Z"),
|
|
1177
1177
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
1178
1178
|
guardrail_config: z.nullable(z.union([
|
|
1179
1179
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsBoolean$inboundSchema),
|
|
@@ -1256,8 +1256,8 @@ exports.UpdateEvalResponseBodyType$inboundSchema = z.nativeEnum(exports.UpdateEv
|
|
|
1256
1256
|
exports.ResponseBodyJSON$inboundSchema = z.object({
|
|
1257
1257
|
_id: z.string(),
|
|
1258
1258
|
description: z.string(),
|
|
1259
|
-
created: z.string().default("2026-06-
|
|
1260
|
-
updated: z.string().default("2026-06-
|
|
1259
|
+
created: z.string().default("2026-06-08T09:56:38.251Z"),
|
|
1260
|
+
updated: z.string().default("2026-06-08T09:56:38.251Z"),
|
|
1261
1261
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
1262
1262
|
guardrail_config: z.nullable(z.union([
|
|
1263
1263
|
z.lazy(() => exports.UpdateEvalGuardrailConfigBoolean$inboundSchema),
|
|
@@ -1424,8 +1424,8 @@ function updateEvalLLMJuryFromJSON(jsonString) {
|
|
|
1424
1424
|
exports.UpdateEvalLlm2$inboundSchema = z.object({
|
|
1425
1425
|
_id: z.string(),
|
|
1426
1426
|
description: z.string(),
|
|
1427
|
-
created: z.string().default("2026-06-
|
|
1428
|
-
updated: z.string().default("2026-06-
|
|
1427
|
+
created: z.string().default("2026-06-08T09:56:38.251Z"),
|
|
1428
|
+
updated: z.string().default("2026-06-08T09:56:38.251Z"),
|
|
1429
1429
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
1430
1430
|
guardrail_config: z.nullable(z.union([
|
|
1431
1431
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBoolean$inboundSchema),
|
|
@@ -1524,8 +1524,8 @@ function updateEvalLLMCategoricalLabelsFromJSON(jsonString) {
|
|
|
1524
1524
|
exports.UpdateEvalLlm1$inboundSchema = z.object({
|
|
1525
1525
|
_id: z.string(),
|
|
1526
1526
|
description: z.string(),
|
|
1527
|
-
created: z.string().default("2026-06-
|
|
1528
|
-
updated: z.string().default("2026-06-
|
|
1527
|
+
created: z.string().default("2026-06-08T09:56:38.251Z"),
|
|
1528
|
+
updated: z.string().default("2026-06-08T09:56:38.251Z"),
|
|
1529
1529
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
1530
1530
|
guardrail_config: z.nullable(z.union([
|
|
1531
1531
|
z.lazy(() => exports.UpdateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Boolean$inboundSchema),
|
|
@@ -371,7 +371,7 @@ function updateToolRequestBodyToolsSchemaToJSON(updateToolRequestBodyToolsSchema
|
|
|
371
371
|
}
|
|
372
372
|
/** @internal */
|
|
373
373
|
exports.RequestBodyTools$outboundSchema = z.object({
|
|
374
|
-
id: z.string().default("
|
|
374
|
+
id: z.string().default("01KTKAKS4KS68WXX14Y2NQC5H1"),
|
|
375
375
|
name: z.string(),
|
|
376
376
|
description: z.string().optional(),
|
|
377
377
|
schema: z.lazy(() => exports.UpdateToolRequestBodyToolsSchema$outboundSchema),
|
|
@@ -666,7 +666,7 @@ function updateToolResponseBodyCodeToolFromJSON(jsonString) {
|
|
|
666
666
|
}
|
|
667
667
|
/** @internal */
|
|
668
668
|
exports.UpdateToolResponseBodyCodeExecutionTool$inboundSchema = z.object({
|
|
669
|
-
_id: z.string().default("
|
|
669
|
+
_id: z.string().default("tool_01KTKAKS4C8KA3B0ACVAC94T0G"),
|
|
670
670
|
path: z.string(),
|
|
671
671
|
key: z.string(),
|
|
672
672
|
display_name: z.string().optional(),
|
|
@@ -719,7 +719,7 @@ function updateToolResponseBodyToolsSchemaFromJSON(jsonString) {
|
|
|
719
719
|
}
|
|
720
720
|
/** @internal */
|
|
721
721
|
exports.UpdateToolResponseBodyTools$inboundSchema = z.object({
|
|
722
|
-
id: z.string().default("
|
|
722
|
+
id: z.string().default("01KTKAKS4B9WR6ZC4Q2SGAJKX8"),
|
|
723
723
|
name: z.string(),
|
|
724
724
|
description: z.string().optional(),
|
|
725
725
|
schema: z.lazy(() => exports.UpdateToolResponseBodyToolsSchema$inboundSchema),
|
|
@@ -749,7 +749,7 @@ function updateToolResponseBodyMcpFromJSON(jsonString) {
|
|
|
749
749
|
}
|
|
750
750
|
/** @internal */
|
|
751
751
|
exports.UpdateToolResponseBodyMCPTool$inboundSchema = z.object({
|
|
752
|
-
_id: z.string().default("
|
|
752
|
+
_id: z.string().default("tool_01KTKAKS49PKXP2RVATEPC9HXV"),
|
|
753
753
|
path: z.string(),
|
|
754
754
|
key: z.string(),
|
|
755
755
|
display_name: z.string().optional(),
|
|
@@ -836,7 +836,7 @@ function updateToolResponseBodyHttpFromJSON(jsonString) {
|
|
|
836
836
|
}
|
|
837
837
|
/** @internal */
|
|
838
838
|
exports.UpdateToolResponseBodyHTTPTool$inboundSchema = z.object({
|
|
839
|
-
_id: z.string().default("
|
|
839
|
+
_id: z.string().default("tool_01KTKAKS4692FDQY697NKBGAPZ"),
|
|
840
840
|
path: z.string(),
|
|
841
841
|
key: z.string(),
|
|
842
842
|
display_name: z.string().optional(),
|
|
@@ -886,7 +886,7 @@ function updateToolResponseBodyJsonSchemaFromJSON(jsonString) {
|
|
|
886
886
|
}
|
|
887
887
|
/** @internal */
|
|
888
888
|
exports.UpdateToolResponseBodyJSONSchemaTool$inboundSchema = z.object({
|
|
889
|
-
_id: z.string().default("
|
|
889
|
+
_id: z.string().default("tool_01KTKAKS44Z6DMHN21BAKSBNPP"),
|
|
890
890
|
path: z.string(),
|
|
891
891
|
key: z.string(),
|
|
892
892
|
display_name: z.string().optional(),
|
|
@@ -940,7 +940,7 @@ function updateToolResponseBodyFunctionFromJSON(jsonString) {
|
|
|
940
940
|
}
|
|
941
941
|
/** @internal */
|
|
942
942
|
exports.UpdateToolResponseBodyFunctionTool$inboundSchema = z.object({
|
|
943
|
-
_id: z.string().default("
|
|
943
|
+
_id: z.string().default("tool_01KTKAKS42SJKZ3ZEBWK1YAMHS"),
|
|
944
944
|
path: z.string(),
|
|
945
945
|
key: z.string(),
|
|
946
946
|
display_name: z.string().optional(),
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orq-ai/node",
|
|
3
|
-
"version": "4.10.
|
|
3
|
+
"version": "4.10.9",
|
|
4
4
|
"author": "Orq",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
|
-
"types": "./index.d.ts",
|
|
8
7
|
"import": "./index.js",
|
|
9
|
-
"require": "./index.js"
|
|
8
|
+
"require": "./index.js",
|
|
9
|
+
"types": "./index.d.ts"
|
|
10
10
|
},
|
|
11
11
|
"./*": "./*",
|
|
12
12
|
"./langchain": {
|
package/packages/orq-rc/examples/{postV2FeedbackEvaluationRemove.example.ts → evalsAll.example.ts}
RENAMED
|
@@ -8,7 +8,7 @@ dotenv.config();
|
|
|
8
8
|
* Example usage of the @orq-ai/node SDK
|
|
9
9
|
*
|
|
10
10
|
* To run this example from the examples directory:
|
|
11
|
-
* npm run build && npx tsx
|
|
11
|
+
* npm run build && npx tsx evalsAll.example.ts
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
14
|
import { Orq } from "@orq-ai/node";
|
|
@@ -18,7 +18,9 @@ const orq = new Orq({
|
|
|
18
18
|
});
|
|
19
19
|
|
|
20
20
|
async function main() {
|
|
21
|
-
await orq.
|
|
21
|
+
const result = await orq.evals.all({});
|
|
22
|
+
|
|
23
|
+
console.log(result);
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
main().catch(console.error);
|
package/packages/orq-rc/src/funcs/{agentsPostV2AgentsKeyCardRefresh.ts → agentsRefreshKeyCard.ts}
RENAMED
|
@@ -32,7 +32,7 @@ import { Result } from "../types/fp.js";
|
|
|
32
32
|
* @remarks
|
|
33
33
|
* Fetches the latest agent card from the external A2A agent and updates the cached card in the database. Similar to MCP server refresh functionality.
|
|
34
34
|
*/
|
|
35
|
-
export function
|
|
35
|
+
export function agentsRefreshKeyCard(
|
|
36
36
|
client: OrqCore,
|
|
37
37
|
request: operations.PostV2AgentsKeyCardRefreshRequest,
|
|
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 evaluator
|
|
34
34
|
*/
|
|
35
|
-
export function
|
|
35
|
+
export function evalsListVersions(
|
|
36
36
|
client: OrqCore,
|
|
37
37
|
request: operations.GetV2EvaluatorsIdVersionsRequest,
|
|
38
38
|
options?: RequestOptions,
|
|
@@ -26,7 +26,7 @@ import * as operations from "../models/operations/index.js";
|
|
|
26
26
|
import { APICall, APIPromise } from "../types/async.js";
|
|
27
27
|
import { Result } from "../types/fp.js";
|
|
28
28
|
|
|
29
|
-
export function
|
|
29
|
+
export function feedbackCreate(
|
|
30
30
|
client: OrqCore,
|
|
31
31
|
request?: operations.PostV2FeedbackRequestBody | undefined,
|
|
32
32
|
options?: RequestOptions,
|
|
@@ -26,7 +26,7 @@ import * as operations from "../models/operations/index.js";
|
|
|
26
26
|
import { APICall, APIPromise } from "../types/async.js";
|
|
27
27
|
import { Result } from "../types/fp.js";
|
|
28
28
|
|
|
29
|
-
export function
|
|
29
|
+
export function feedbackCreateEvaluation(
|
|
30
30
|
client: OrqCore,
|
|
31
31
|
request?: operations.PostV2FeedbackEvaluationRequestBody | undefined,
|
|
32
32
|
options?: RequestOptions,
|
package/{src/funcs/feedbackPostV2FeedbackRemove.ts → packages/orq-rc/src/funcs/feedbackRemove.ts}
RENAMED
|
@@ -26,7 +26,7 @@ import * as operations from "../models/operations/index.js";
|
|
|
26
26
|
import { APICall, APIPromise } from "../types/async.js";
|
|
27
27
|
import { Result } from "../types/fp.js";
|
|
28
28
|
|
|
29
|
-
export function
|
|
29
|
+
export function feedbackRemove(
|
|
30
30
|
client: OrqCore,
|
|
31
31
|
request?: operations.PostV2FeedbackRemoveRequestBody | undefined,
|
|
32
32
|
options?: RequestOptions,
|
package/packages/orq-rc/src/funcs/{postV2FeedbackEvaluationRemove.ts → feedbackRemoveEvaluation.ts}
RENAMED
|
@@ -26,7 +26,7 @@ import * as operations from "../models/operations/index.js";
|
|
|
26
26
|
import { APICall, APIPromise } from "../types/async.js";
|
|
27
27
|
import { Result } from "../types/fp.js";
|
|
28
28
|
|
|
29
|
-
export function
|
|
29
|
+
export function feedbackRemoveEvaluation(
|
|
30
30
|
client: OrqCore,
|
|
31
31
|
request?: operations.PostV2FeedbackEvaluationRemoveRequestBody | undefined,
|
|
32
32
|
options?: RequestOptions,
|
|
@@ -92,9 +92,13 @@ async function $do(
|
|
|
92
92
|
const path = pathToFunc("/v2/guardrail-rules")();
|
|
93
93
|
|
|
94
94
|
const query = encodeFormQuery({
|
|
95
|
+
"enabled": payload?.enabled,
|
|
95
96
|
"ending_before": payload?.ending_before,
|
|
97
|
+
"guardrail_id": payload?.guardrail_id,
|
|
96
98
|
"limit": payload?.limit,
|
|
97
99
|
"project_id": payload?.project_id,
|
|
100
|
+
"search": payload?.search,
|
|
101
|
+
"sort_by": payload?.sort_by,
|
|
98
102
|
"starting_after": payload?.starting_after,
|
|
99
103
|
}, { explode: false });
|
|
100
104
|
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { OrqCore } from "../core.js";
|
|
6
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
10
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
11
|
+
import { pathToFunc } from "../lib/url.js";
|
|
12
|
+
import {
|
|
13
|
+
ConnectionError,
|
|
14
|
+
InvalidRequestError,
|
|
15
|
+
RequestAbortedError,
|
|
16
|
+
RequestTimeoutError,
|
|
17
|
+
UnexpectedClientError,
|
|
18
|
+
} from "../models/errors/httpclienterrors.js";
|
|
19
|
+
import { OrqError } from "../models/errors/orqerror.js";
|
|
20
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
21
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
22
|
+
import * as operations from "../models/operations/index.js";
|
|
23
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
24
|
+
import { Result } from "../types/fp.js";
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* List used guardrails
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* Returns the distinct guardrail ids referenced across all guardrail rules in scope.
|
|
31
|
+
*/
|
|
32
|
+
export function guardrailRulesListUsedGuardrails(
|
|
33
|
+
client: OrqCore,
|
|
34
|
+
options?: RequestOptions,
|
|
35
|
+
): APIPromise<
|
|
36
|
+
Result<
|
|
37
|
+
operations.GuardrailRuleListUsedGuardrailsResponseBody,
|
|
38
|
+
| OrqError
|
|
39
|
+
| ResponseValidationError
|
|
40
|
+
| ConnectionError
|
|
41
|
+
| RequestAbortedError
|
|
42
|
+
| RequestTimeoutError
|
|
43
|
+
| InvalidRequestError
|
|
44
|
+
| UnexpectedClientError
|
|
45
|
+
| SDKValidationError
|
|
46
|
+
>
|
|
47
|
+
> {
|
|
48
|
+
return new APIPromise($do(
|
|
49
|
+
client,
|
|
50
|
+
options,
|
|
51
|
+
));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
async function $do(
|
|
55
|
+
client: OrqCore,
|
|
56
|
+
options?: RequestOptions,
|
|
57
|
+
): Promise<
|
|
58
|
+
[
|
|
59
|
+
Result<
|
|
60
|
+
operations.GuardrailRuleListUsedGuardrailsResponseBody,
|
|
61
|
+
| OrqError
|
|
62
|
+
| ResponseValidationError
|
|
63
|
+
| ConnectionError
|
|
64
|
+
| RequestAbortedError
|
|
65
|
+
| RequestTimeoutError
|
|
66
|
+
| InvalidRequestError
|
|
67
|
+
| UnexpectedClientError
|
|
68
|
+
| SDKValidationError
|
|
69
|
+
>,
|
|
70
|
+
APICall,
|
|
71
|
+
]
|
|
72
|
+
> {
|
|
73
|
+
const path = pathToFunc("/v2/guardrail-rules/used-guardrails")();
|
|
74
|
+
|
|
75
|
+
const headers = new Headers(compactMap({
|
|
76
|
+
Accept: "application/json",
|
|
77
|
+
}));
|
|
78
|
+
|
|
79
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
80
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
81
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
82
|
+
|
|
83
|
+
const context = {
|
|
84
|
+
options: client._options,
|
|
85
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
86
|
+
operationID: "GuardrailRuleListUsedGuardrails",
|
|
87
|
+
oAuth2Scopes: null,
|
|
88
|
+
|
|
89
|
+
resolvedSecurity: requestSecurity,
|
|
90
|
+
|
|
91
|
+
securitySource: client._options.apiKey,
|
|
92
|
+
retryConfig: options?.retries
|
|
93
|
+
|| client._options.retryConfig
|
|
94
|
+
|| { strategy: "none" },
|
|
95
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
const requestRes = client._createRequest(context, {
|
|
99
|
+
security: requestSecurity,
|
|
100
|
+
method: "GET",
|
|
101
|
+
baseURL: options?.serverURL,
|
|
102
|
+
path: path,
|
|
103
|
+
headers: headers,
|
|
104
|
+
userAgent: client._options.userAgent,
|
|
105
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
|
|
106
|
+
}, options);
|
|
107
|
+
if (!requestRes.ok) {
|
|
108
|
+
return [requestRes, { status: "invalid" }];
|
|
109
|
+
}
|
|
110
|
+
const req = requestRes.value;
|
|
111
|
+
|
|
112
|
+
const doResult = await client._do(req, {
|
|
113
|
+
context,
|
|
114
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
115
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
116
|
+
retryConfig: context.retryConfig,
|
|
117
|
+
retryCodes: context.retryCodes,
|
|
118
|
+
});
|
|
119
|
+
if (!doResult.ok) {
|
|
120
|
+
return [doResult, { status: "request-error", request: req }];
|
|
121
|
+
}
|
|
122
|
+
const response = doResult.value;
|
|
123
|
+
|
|
124
|
+
const [result] = await M.match<
|
|
125
|
+
operations.GuardrailRuleListUsedGuardrailsResponseBody,
|
|
126
|
+
| OrqError
|
|
127
|
+
| ResponseValidationError
|
|
128
|
+
| ConnectionError
|
|
129
|
+
| RequestAbortedError
|
|
130
|
+
| RequestTimeoutError
|
|
131
|
+
| InvalidRequestError
|
|
132
|
+
| UnexpectedClientError
|
|
133
|
+
| SDKValidationError
|
|
134
|
+
>(
|
|
135
|
+
M.json(
|
|
136
|
+
200,
|
|
137
|
+
operations.GuardrailRuleListUsedGuardrailsResponseBody$inboundSchema,
|
|
138
|
+
),
|
|
139
|
+
M.fail("4XX"),
|
|
140
|
+
M.fail("5XX"),
|
|
141
|
+
)(response, req);
|
|
142
|
+
if (!result.ok) {
|
|
143
|
+
return [result, { status: "complete", request: req, response }];
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
return [result, { status: "complete", request: req, response }];
|
|
147
|
+
}
|
|
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
|
|
|
28
28
|
/**
|
|
29
29
|
* Create a human review set
|
|
30
30
|
*/
|
|
31
|
-
export function
|
|
31
|
+
export function humanReviewSetsCreate(
|
|
32
32
|
client: OrqCore,
|
|
33
33
|
request?: operations.PostV2HumanEvalSetsRequestBody | undefined,
|
|
34
34
|
options?: RequestOptions,
|
|
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
/**
|
|
30
30
|
* Delete a human review set
|
|
31
31
|
*/
|
|
32
|
-
export function
|
|
32
|
+
export function humanReviewSetsDelete(
|
|
33
33
|
client: OrqCore,
|
|
34
34
|
request: operations.DeleteV2HumanEvalSetsIdRequest,
|
|
35
35
|
options?: RequestOptions,
|
|
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
|
|
|
28
28
|
/**
|
|
29
29
|
* Get a human review set by ID
|
|
30
30
|
*/
|
|
31
|
-
export function
|
|
31
|
+
export function humanReviewSetsGet(
|
|
32
32
|
client: OrqCore,
|
|
33
33
|
request: operations.GetV2HumanEvalSetsIdRequest,
|
|
34
34
|
options?: RequestOptions,
|
|
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
/**
|
|
30
30
|
* Get all human review sets
|
|
31
31
|
*/
|
|
32
|
-
export function
|
|
32
|
+
export function humanReviewSetsList(
|
|
33
33
|
client: OrqCore,
|
|
34
34
|
request?: operations.GetV2HumanEvalSetsRequest | undefined,
|
|
35
35
|
options?: RequestOptions,
|
|
@@ -28,7 +28,7 @@ import { Result } from "../types/fp.js";
|
|
|
28
28
|
/**
|
|
29
29
|
* Update a human review set
|
|
30
30
|
*/
|
|
31
|
-
export function
|
|
31
|
+
export function humanReviewSetsUpdate(
|
|
32
32
|
client: OrqCore,
|
|
33
33
|
request: operations.PatchV2HumanEvalSetsIdRequest,
|
|
34
34
|
options?: RequestOptions,
|
|
@@ -90,9 +90,12 @@ async function $do(
|
|
|
90
90
|
const path = pathToFunc("/v2/routing-rules")();
|
|
91
91
|
|
|
92
92
|
const query = encodeFormQuery({
|
|
93
|
+
"enabled": payload?.enabled,
|
|
93
94
|
"ending_before": payload?.ending_before,
|
|
94
95
|
"limit": payload?.limit,
|
|
96
|
+
"model": payload?.model,
|
|
95
97
|
"project_id": payload?.project_id,
|
|
98
|
+
"search": payload?.search,
|
|
96
99
|
"starting_after": payload?.starting_after,
|
|
97
100
|
}, { explode: false });
|
|
98
101
|
|