@orq-ai/node 4.15.0-rc.51 → 4.15.0-rc.53
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/funcs/workspaceSettingsUpdate.d.ts +1 -1
- package/funcs/workspaceSettingsUpdate.js +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/guardrailruleplugin.d.ts +2 -2
- package/models/components/piiredactionconfig.d.ts +20 -0
- package/models/components/piiredactionconfig.d.ts.map +1 -1
- package/models/components/piiredactionconfig.js +6 -0
- package/models/components/piiredactionconfig.js.map +1 -1
- package/models/components/publicplugin.d.ts +2 -2
- package/models/components/reasoningpart.js +1 -1
- package/models/components/routingruleplugin.d.ts +2 -2
- package/models/components/updateworkspacesettingsrequest.d.ts +3 -3
- package/models/operations/createagentrequest.d.ts +1 -1
- package/models/operations/createchatcompletion.d.ts +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +5 -5
- package/models/operations/createprompt.d.ts +2 -2
- package/models/operations/createtool.js +4 -4
- package/models/operations/getallprompts.d.ts +1 -1
- package/models/operations/getalltools.js +4 -4
- package/models/operations/getoneprompt.d.ts +1 -1
- package/models/operations/getpromptversion.d.ts +1 -1
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listdatasetdatapoints.js +5 -5
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listpromptversions.d.ts +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievedatapoint.js +5 -5
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.d.ts +1 -1
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.d.ts +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updateagent.d.ts +1 -1
- package/models/operations/updatedatapoint.js +5 -5
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updateprompt.d.ts +2 -2
- package/models/operations/updatetool.js +4 -4
- package/package.json +7 -7
- package/sdk/workspacesettings.d.ts +1 -1
- package/sdk/workspacesettings.js +1 -1
- package/src/funcs/workspaceSettingsUpdate.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/guardrailruleplugin.ts +2 -2
- package/src/models/components/piiredactionconfig.ts +22 -0
- package/src/models/components/publicplugin.ts +2 -2
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/routingruleplugin.ts +2 -2
- package/src/models/components/updateworkspacesettingsrequest.ts +3 -3
- package/src/models/operations/createagentrequest.ts +1 -1
- package/src/models/operations/createchatcompletion.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +5 -5
- package/src/models/operations/createprompt.ts +2 -2
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/getallprompts.ts +1 -1
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/getoneprompt.ts +1 -1
- package/src/models/operations/getpromptversion.ts +1 -1
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listpromptversions.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +5 -5
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +2 -2
- package/src/models/operations/streamrunagent.ts +2 -2
- package/src/models/operations/updateagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +5 -5
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updateprompt.ts +2 -2
- package/src/models/operations/updatetool.ts +4 -4
- package/src/sdk/workspacesettings.ts +1 -1
|
@@ -520,7 +520,7 @@ exports.RetrieveDatapointEvaluations4$inboundSchema = z.object({
|
|
|
520
520
|
parent_annotation_id: z.string().optional(),
|
|
521
521
|
explanation: z.string().optional(),
|
|
522
522
|
reviewed_by_id: z.string(),
|
|
523
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2026-09-
|
|
523
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2026-09-16T12:54:35.934Z").transform(v => new Date(v)),
|
|
524
524
|
type: z.literal("string_array"),
|
|
525
525
|
values: z.array(z.string()),
|
|
526
526
|
}).transform((v) => {
|
|
@@ -571,7 +571,7 @@ exports.Evaluations3$inboundSchema = z.object({
|
|
|
571
571
|
parent_annotation_id: z.string().optional(),
|
|
572
572
|
explanation: z.string().optional(),
|
|
573
573
|
reviewed_by_id: z.string(),
|
|
574
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2026-09-
|
|
574
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2026-09-16T12:54:35.934Z").transform(v => new Date(v)),
|
|
575
575
|
type: z.literal("boolean"),
|
|
576
576
|
value: z.boolean(),
|
|
577
577
|
}).transform((v) => {
|
|
@@ -623,7 +623,7 @@ exports.RetrieveDatapointEvaluations2$inboundSchema = z.object({
|
|
|
623
623
|
parent_annotation_id: z.string().optional(),
|
|
624
624
|
explanation: z.string().optional(),
|
|
625
625
|
reviewed_by_id: z.string(),
|
|
626
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2026-09-
|
|
626
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2026-09-16T12:54:35.934Z").transform(v => new Date(v)),
|
|
627
627
|
type: z.literal("number"),
|
|
628
628
|
value: z.number(),
|
|
629
629
|
}).transform((v) => {
|
|
@@ -674,7 +674,7 @@ exports.RetrieveDatapointEvaluations1$inboundSchema = z.object({
|
|
|
674
674
|
parent_annotation_id: z.string().optional(),
|
|
675
675
|
explanation: z.string().optional(),
|
|
676
676
|
reviewed_by_id: z.string(),
|
|
677
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2026-09-
|
|
677
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2026-09-16T12:54:35.934Z").transform(v => new Date(v)),
|
|
678
678
|
type: z.literal("string"),
|
|
679
679
|
value: z.string(),
|
|
680
680
|
}).transform((v) => {
|
|
@@ -725,7 +725,7 @@ exports.RetrieveDatapointResponseBody$inboundSchema = z.object({
|
|
|
725
725
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
726
726
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
727
727
|
.optional(),
|
|
728
|
-
updated: z.string().datetime({ offset: true }).default("2026-09-
|
|
728
|
+
updated: z.string().datetime({ offset: true }).default("2026-09-16T12:54:27.109Z").transform(v => new Date(v)),
|
|
729
729
|
}).transform((v) => {
|
|
730
730
|
return (0, primitives_js_1.remap)(v, {
|
|
731
731
|
"_id": "id",
|
|
@@ -78,7 +78,7 @@ exports.RetrieveDatasetResponseBody$inboundSchema = z.object({
|
|
|
78
78
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
79
79
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
80
80
|
.optional(),
|
|
81
|
-
updated: z.string().datetime({ offset: true }).default("2026-09-
|
|
81
|
+
updated: z.string().datetime({ offset: true }).default("2026-09-16T12:54:27.109Z").transform(v => new Date(v)),
|
|
82
82
|
}).transform((v) => {
|
|
83
83
|
return (0, primitives_js_1.remap)(v, {
|
|
84
84
|
"_id": "id",
|
|
@@ -164,7 +164,7 @@ function retrieveToolResponseBodyCodeToolFromJSON(jsonString) {
|
|
|
164
164
|
}
|
|
165
165
|
/** @internal */
|
|
166
166
|
exports.RetrieveToolResponseBodyCodeExecutionTool$inboundSchema = z.object({
|
|
167
|
-
_id: z.string().default("
|
|
167
|
+
_id: z.string().default("tool_01M2N4H2MESKZE19SCZJ5R96G9"),
|
|
168
168
|
path: z.string(),
|
|
169
169
|
key: z.string(),
|
|
170
170
|
display_name: z.string().optional(),
|
|
@@ -253,7 +253,7 @@ function retrieveToolResponseBodyHttpFromJSON(jsonString) {
|
|
|
253
253
|
}
|
|
254
254
|
/** @internal */
|
|
255
255
|
exports.RetrieveToolResponseBodyHTTPTool$inboundSchema = z.object({
|
|
256
|
-
_id: z.string().default("
|
|
256
|
+
_id: z.string().default("tool_01M2N4H2MDZ7MWCX5QTMQVKEQE"),
|
|
257
257
|
path: z.string(),
|
|
258
258
|
key: z.string(),
|
|
259
259
|
display_name: z.string().optional(),
|
|
@@ -303,7 +303,7 @@ function retrieveToolResponseBodyJsonSchemaFromJSON(jsonString) {
|
|
|
303
303
|
}
|
|
304
304
|
/** @internal */
|
|
305
305
|
exports.RetrieveToolResponseBodyJSONSchemaTool$inboundSchema = z.object({
|
|
306
|
-
_id: z.string().default("
|
|
306
|
+
_id: z.string().default("tool_01M2N4H2MCTT8QZGQSN4D8E84D"),
|
|
307
307
|
path: z.string(),
|
|
308
308
|
key: z.string(),
|
|
309
309
|
display_name: z.string().optional(),
|
|
@@ -357,7 +357,7 @@ function retrieveToolResponseBodyFunctionFromJSON(jsonString) {
|
|
|
357
357
|
}
|
|
358
358
|
/** @internal */
|
|
359
359
|
exports.RetrieveToolResponseBodyFunctionTool$inboundSchema = z.object({
|
|
360
|
-
_id: z.string().default("
|
|
360
|
+
_id: z.string().default("tool_01M2N4H2MCMQNYJECJTBAEEKBP"),
|
|
361
361
|
path: z.string(),
|
|
362
362
|
key: z.string(),
|
|
363
363
|
display_name: z.string().optional(),
|
|
@@ -405,7 +405,7 @@ export type RunAgentModelConfigurationRetry = {
|
|
|
405
405
|
*/
|
|
406
406
|
export type RunAgentModelConfiguration2 = {
|
|
407
407
|
/**
|
|
408
|
-
* A model ID string (e.g., `openai/gpt-
|
|
408
|
+
* A model ID string (e.g., `openai/gpt-5.6-sol` or `anthropic/claude-sonnet-5`). Only models that support tool calling can be used with agents.
|
|
409
409
|
*/
|
|
410
410
|
id: string;
|
|
411
411
|
/**
|
|
@@ -1098,7 +1098,7 @@ function agentToolInputRunSchemaToJSON(agentToolInputRunSchema) {
|
|
|
1098
1098
|
}
|
|
1099
1099
|
/** @internal */
|
|
1100
1100
|
exports.Tools$outboundSchema = z.object({
|
|
1101
|
-
id: z.string().default("
|
|
1101
|
+
id: z.string().default("01M2N4H2HJ7F67BWTMVFE5VV87"),
|
|
1102
1102
|
name: z.string(),
|
|
1103
1103
|
description: z.string().optional(),
|
|
1104
1104
|
schema: z.lazy(() => exports.AgentToolInputRunSchema$outboundSchema),
|
|
@@ -405,7 +405,7 @@ export type StreamRunAgentModelConfigurationRetry = {
|
|
|
405
405
|
*/
|
|
406
406
|
export type StreamRunAgentModelConfiguration2 = {
|
|
407
407
|
/**
|
|
408
|
-
* A model ID string (e.g., `openai/gpt-
|
|
408
|
+
* A model ID string (e.g., `openai/gpt-5.6-sol` or `anthropic/claude-sonnet-5`). Only models that support tool calling can be used with agents.
|
|
409
409
|
*/
|
|
410
410
|
id: string;
|
|
411
411
|
/**
|
|
@@ -1064,7 +1064,7 @@ function streamRunAgentAgentToolInputRunAgentsSchemaToJSON(streamRunAgentAgentTo
|
|
|
1064
1064
|
}
|
|
1065
1065
|
/** @internal */
|
|
1066
1066
|
exports.AgentToolInputRunTools$outboundSchema = z.object({
|
|
1067
|
-
id: z.string().default("
|
|
1067
|
+
id: z.string().default("01M2N4H2J576TZH5CGJ409FE0A"),
|
|
1068
1068
|
name: z.string(),
|
|
1069
1069
|
description: z.string().optional(),
|
|
1070
1070
|
schema: z.lazy(() => exports.StreamRunAgentAgentToolInputRunAgentsSchema$outboundSchema),
|
|
@@ -405,7 +405,7 @@ export type ModelConfigurationRetry = {
|
|
|
405
405
|
*/
|
|
406
406
|
export type UpdateAgentModelConfiguration2 = {
|
|
407
407
|
/**
|
|
408
|
-
* A model ID string (e.g., `openai/gpt-
|
|
408
|
+
* A model ID string (e.g., `openai/gpt-5.6-sol` or `anthropic/claude-sonnet-5`). Only models that support tool calling can be used with agents.
|
|
409
409
|
*/
|
|
410
410
|
id: string;
|
|
411
411
|
/**
|
|
@@ -866,7 +866,7 @@ exports.UpdateDatapointEvaluations4$inboundSchema = z.object({
|
|
|
866
866
|
parent_annotation_id: z.string().optional(),
|
|
867
867
|
explanation: z.string().optional(),
|
|
868
868
|
reviewed_by_id: z.string(),
|
|
869
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2026-09-
|
|
869
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2026-09-16T12:54:35.948Z").transform(v => new Date(v)),
|
|
870
870
|
type: z.literal("string_array"),
|
|
871
871
|
values: z.array(z.string()),
|
|
872
872
|
}).transform((v) => {
|
|
@@ -917,7 +917,7 @@ exports.UpdateDatapointEvaluations3$inboundSchema = z.object({
|
|
|
917
917
|
parent_annotation_id: z.string().optional(),
|
|
918
918
|
explanation: z.string().optional(),
|
|
919
919
|
reviewed_by_id: z.string(),
|
|
920
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2026-09-
|
|
920
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2026-09-16T12:54:35.947Z").transform(v => new Date(v)),
|
|
921
921
|
type: z.literal("boolean"),
|
|
922
922
|
value: z.boolean(),
|
|
923
923
|
}).transform((v) => {
|
|
@@ -968,7 +968,7 @@ exports.UpdateDatapointEvaluations2$inboundSchema = z.object({
|
|
|
968
968
|
parent_annotation_id: z.string().optional(),
|
|
969
969
|
explanation: z.string().optional(),
|
|
970
970
|
reviewed_by_id: z.string(),
|
|
971
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2026-09-
|
|
971
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2026-09-16T12:54:35.947Z").transform(v => new Date(v)),
|
|
972
972
|
type: z.literal("number"),
|
|
973
973
|
value: z.number(),
|
|
974
974
|
}).transform((v) => {
|
|
@@ -1018,7 +1018,7 @@ exports.UpdateDatapointEvaluations1$inboundSchema = z.object({
|
|
|
1018
1018
|
parent_annotation_id: z.string().optional(),
|
|
1019
1019
|
explanation: z.string().optional(),
|
|
1020
1020
|
reviewed_by_id: z.string(),
|
|
1021
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2026-09-
|
|
1021
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2026-09-16T12:54:35.947Z").transform(v => new Date(v)),
|
|
1022
1022
|
type: z.literal("string"),
|
|
1023
1023
|
value: z.string(),
|
|
1024
1024
|
}).transform((v) => {
|
|
@@ -1069,7 +1069,7 @@ exports.UpdateDatapointResponseBody$inboundSchema = z.object({
|
|
|
1069
1069
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
1070
1070
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
1071
1071
|
.optional(),
|
|
1072
|
-
updated: z.string().datetime({ offset: true }).default("2026-09-
|
|
1072
|
+
updated: z.string().datetime({ offset: true }).default("2026-09-16T12:54:27.109Z").transform(v => new Date(v)),
|
|
1073
1073
|
}).transform((v) => {
|
|
1074
1074
|
return (0, primitives_js_1.remap)(v, {
|
|
1075
1075
|
"_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-09-
|
|
98
|
+
updated: z.string().datetime({ offset: true }).default("2026-09-16T12:54:27.109Z").transform(v => new Date(v)),
|
|
99
99
|
}).transform((v) => {
|
|
100
100
|
return (0, primitives_js_1.remap)(v, {
|
|
101
101
|
"_id": "id",
|
|
@@ -608,7 +608,7 @@ export type UpdatePromptPromptInput = {
|
|
|
608
608
|
*/
|
|
609
609
|
messages?: Array<UpdatePromptMessagesSystemMessage | UpdatePromptMessagesUserMessage | UpdatePromptMessagesAssistantMessage | UpdatePromptMessagesToolMessage> | undefined;
|
|
610
610
|
/**
|
|
611
|
-
* Model ID used to generate the response, like `openai/gpt-
|
|
611
|
+
* Model ID used to generate the response, like `openai/gpt-5.6-sol` or `anthropic/claude-sonnet-5`. For private models, use format: `{workspaceKey}@{provider}/{model}`. The full list of models can be found at https://docs.orq.ai/docs/ai-gateway/supported-models. Only chat models are supported.
|
|
612
612
|
*/
|
|
613
613
|
model?: string | null | undefined;
|
|
614
614
|
/**
|
|
@@ -2067,7 +2067,7 @@ export type UpdatePromptPromptField = {
|
|
|
2067
2067
|
*/
|
|
2068
2068
|
messages?: Array<UpdatePromptMessagesPromptsSystemMessage | UpdatePromptMessagesPromptsUserMessage | UpdatePromptMessagesPromptsAssistantMessage | UpdatePromptMessagesPromptsToolMessage> | undefined;
|
|
2069
2069
|
/**
|
|
2070
|
-
* Model ID used to generate the response, like `openai/gpt-
|
|
2070
|
+
* Model ID used to generate the response, like `openai/gpt-5.6-sol` or `anthropic/claude-sonnet-5`. For private models, use format: `{workspaceKey}@{provider}/{model}`.
|
|
2071
2071
|
*/
|
|
2072
2072
|
model?: string | null | undefined;
|
|
2073
2073
|
version?: string | undefined;
|
|
@@ -536,7 +536,7 @@ function updateToolResponseBodyCodeToolFromJSON(jsonString) {
|
|
|
536
536
|
}
|
|
537
537
|
/** @internal */
|
|
538
538
|
exports.UpdateToolResponseBodyCodeExecutionTool$inboundSchema = z.object({
|
|
539
|
-
_id: z.string().default("
|
|
539
|
+
_id: z.string().default("tool_01M2N4H2M6S30B1A2B3W7XZB45"),
|
|
540
540
|
path: z.string(),
|
|
541
541
|
key: z.string(),
|
|
542
542
|
display_name: z.string().optional(),
|
|
@@ -625,7 +625,7 @@ function updateToolResponseBodyHttpFromJSON(jsonString) {
|
|
|
625
625
|
}
|
|
626
626
|
/** @internal */
|
|
627
627
|
exports.UpdateToolResponseBodyHTTPTool$inboundSchema = z.object({
|
|
628
|
-
_id: z.string().default("
|
|
628
|
+
_id: z.string().default("tool_01M2N4H2M5VBJYJ6KG9GKYEE63"),
|
|
629
629
|
path: z.string(),
|
|
630
630
|
key: z.string(),
|
|
631
631
|
display_name: z.string().optional(),
|
|
@@ -675,7 +675,7 @@ function updateToolResponseBodyJsonSchemaFromJSON(jsonString) {
|
|
|
675
675
|
}
|
|
676
676
|
/** @internal */
|
|
677
677
|
exports.UpdateToolResponseBodyJSONSchemaTool$inboundSchema = z.object({
|
|
678
|
-
_id: z.string().default("
|
|
678
|
+
_id: z.string().default("tool_01M2N4H2M4SR635YPKPJM8W5R7"),
|
|
679
679
|
path: z.string(),
|
|
680
680
|
key: z.string(),
|
|
681
681
|
display_name: z.string().optional(),
|
|
@@ -729,7 +729,7 @@ function updateToolResponseBodyFunctionFromJSON(jsonString) {
|
|
|
729
729
|
}
|
|
730
730
|
/** @internal */
|
|
731
731
|
exports.UpdateToolResponseBodyFunctionTool$inboundSchema = z.object({
|
|
732
|
-
_id: z.string().default("
|
|
732
|
+
_id: z.string().default("tool_01M2N4H2M3C6VG37TEQY9JCZS7"),
|
|
733
733
|
path: z.string(),
|
|
734
734
|
key: z.string(),
|
|
735
735
|
display_name: z.string().optional(),
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orq-ai/node",
|
|
3
|
-
"version": "4.15.0-rc.
|
|
3
|
+
"version": "4.15.0-rc.53",
|
|
4
4
|
"author": "Orq",
|
|
5
5
|
"exports": {
|
|
6
|
+
"./langchain": {
|
|
7
|
+
"import": "./langchain/index.mjs",
|
|
8
|
+
"require": "./langchain/index.js",
|
|
9
|
+
"types": "./langchain/index.d.mts"
|
|
10
|
+
},
|
|
6
11
|
".": {
|
|
7
12
|
"import": "./index.js",
|
|
8
13
|
"require": "./index.js",
|
|
9
14
|
"types": "./index.d.ts"
|
|
10
15
|
},
|
|
11
|
-
"./*": "./*"
|
|
12
|
-
"./langchain": {
|
|
13
|
-
"require": "./langchain/index.js",
|
|
14
|
-
"types": "./langchain/index.d.mts",
|
|
15
|
-
"import": "./langchain/index.mjs"
|
|
16
|
-
}
|
|
16
|
+
"./*": "./*"
|
|
17
17
|
},
|
|
18
18
|
"main": "./index.js",
|
|
19
19
|
"sideEffects": false,
|
|
@@ -12,7 +12,7 @@ export declare class WorkspaceSettings extends ClientSDK {
|
|
|
12
12
|
* Update workspace settings
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* Partially updates workspace settings. Every field is optional; an omitted field is left unchanged. Provide `display_name` to rename the workspace, `enforce_enabled_models` to toggle model enforcement, or `pii_redaction` to
|
|
15
|
+
* Partially updates workspace settings. Every field is optional; an omitted field is left unchanged. Provide `display_name` to rename the workspace, `enforce_enabled_models` to toggle model enforcement, or `pii_redaction` to update the workspace-default PII redaction plugin: `enabled` is always applied, and `config` replaces the stored config only when present.
|
|
16
16
|
*/
|
|
17
17
|
update(request: components.UpdateWorkspaceSettingsRequest, options?: RequestOptions): Promise<components.UpdateWorkspaceSettingsResponse>;
|
|
18
18
|
}
|
package/sdk/workspacesettings.js
CHANGED
|
@@ -22,7 +22,7 @@ class WorkspaceSettings extends sdks_js_1.ClientSDK {
|
|
|
22
22
|
* Update workspace settings
|
|
23
23
|
*
|
|
24
24
|
* @remarks
|
|
25
|
-
* Partially updates workspace settings. Every field is optional; an omitted field is left unchanged. Provide `display_name` to rename the workspace, `enforce_enabled_models` to toggle model enforcement, or `pii_redaction` to
|
|
25
|
+
* Partially updates workspace settings. Every field is optional; an omitted field is left unchanged. Provide `display_name` to rename the workspace, `enforce_enabled_models` to toggle model enforcement, or `pii_redaction` to update the workspace-default PII redaction plugin: `enabled` is always applied, and `config` replaces the stored config only when present.
|
|
26
26
|
*/
|
|
27
27
|
async update(request, options) {
|
|
28
28
|
return (0, fp_js_1.unwrapAsync)((0, workspaceSettingsUpdate_js_1.workspaceSettingsUpdate)(this, request, options));
|
|
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* Update workspace settings
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Partially updates workspace settings. Every field is optional; an omitted field is left unchanged. Provide `display_name` to rename the workspace, `enforce_enabled_models` to toggle model enforcement, or `pii_redaction` to
|
|
32
|
+
* Partially updates workspace settings. Every field is optional; an omitted field is left unchanged. Provide `display_name` to rename the workspace, `enforce_enabled_models` to toggle model enforcement, or `pii_redaction` to update the workspace-default PII redaction plugin: `enabled` is always applied, and `config` replaces the stored config only when present.
|
|
33
33
|
*/
|
|
34
34
|
export function workspaceSettingsUpdate(
|
|
35
35
|
client: OrqCore,
|
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.15.0-rc.
|
|
61
|
+
sdkVersion: "4.15.0-rc.53",
|
|
62
62
|
genVersion: "2.937.18",
|
|
63
|
-
userAgent: "speakeasy-sdk/typescript 4.15.0-rc.
|
|
63
|
+
userAgent: "speakeasy-sdk/typescript 4.15.0-rc.53 2.937.18 2.0 @orq-ai/node",
|
|
64
64
|
} as const;
|
|
@@ -23,13 +23,13 @@ export type GuardrailRulePlugin = {
|
|
|
23
23
|
*/
|
|
24
24
|
language?: string | undefined;
|
|
25
25
|
/**
|
|
26
|
-
* Entity types to redact.
|
|
26
|
+
* Entity types to redact. On their own a strict allowlist; alongside regions they add to the region coverage.
|
|
27
27
|
*/
|
|
28
28
|
entities?: Array<string> | undefined;
|
|
29
29
|
onFailure?: string | undefined;
|
|
30
30
|
threshold?: number | undefined;
|
|
31
31
|
/**
|
|
32
|
-
* Regions of coverage by ISO 3166-1 alpha-2 code, or ["all"].
|
|
32
|
+
* Regions of coverage by ISO 3166-1 alpha-2 code, or ["all"]. Combines with entities: the two selections are unioned.
|
|
33
33
|
*/
|
|
34
34
|
regions?: Array<string> | undefined;
|
|
35
35
|
/**
|
|
@@ -47,6 +47,20 @@ export type PiiRedactionConfig = {
|
|
|
47
47
|
* Detection confidence threshold in the [0, 1] range.
|
|
48
48
|
*/
|
|
49
49
|
threshold?: number | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Regions of coverage by lowercase ISO 3166-1 alpha-2 code, or ["all"].
|
|
52
|
+
*
|
|
53
|
+
* @remarks
|
|
54
|
+
* Adds every entity type the regions cover on top of `entities`.
|
|
55
|
+
*/
|
|
56
|
+
regions?: Array<string> | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Per-entity-type confidence cutoff in [0, 1]. Every key must also appear in
|
|
59
|
+
*
|
|
60
|
+
* @remarks
|
|
61
|
+
* `entities`.
|
|
62
|
+
*/
|
|
63
|
+
entityThresholds?: { [k: string]: number } | undefined;
|
|
50
64
|
};
|
|
51
65
|
|
|
52
66
|
/** @internal */
|
|
@@ -59,9 +73,12 @@ export const PiiRedactionConfig$inboundSchema: z.ZodType<
|
|
|
59
73
|
entities: z.array(z.string()).optional(),
|
|
60
74
|
on_failure: z.string().optional(),
|
|
61
75
|
threshold: z.number().optional(),
|
|
76
|
+
regions: z.array(z.string()).optional(),
|
|
77
|
+
entity_thresholds: z.record(z.number()).optional(),
|
|
62
78
|
}).transform((v) => {
|
|
63
79
|
return remap$(v, {
|
|
64
80
|
"on_failure": "onFailure",
|
|
81
|
+
"entity_thresholds": "entityThresholds",
|
|
65
82
|
});
|
|
66
83
|
});
|
|
67
84
|
/** @internal */
|
|
@@ -70,6 +87,8 @@ export type PiiRedactionConfig$Outbound = {
|
|
|
70
87
|
entities?: Array<string> | undefined;
|
|
71
88
|
on_failure?: string | undefined;
|
|
72
89
|
threshold?: number | undefined;
|
|
90
|
+
regions?: Array<string> | undefined;
|
|
91
|
+
entity_thresholds?: { [k: string]: number } | undefined;
|
|
73
92
|
};
|
|
74
93
|
|
|
75
94
|
/** @internal */
|
|
@@ -82,9 +101,12 @@ export const PiiRedactionConfig$outboundSchema: z.ZodType<
|
|
|
82
101
|
entities: z.array(z.string()).optional(),
|
|
83
102
|
onFailure: z.string().optional(),
|
|
84
103
|
threshold: z.number().optional(),
|
|
104
|
+
regions: z.array(z.string()).optional(),
|
|
105
|
+
entityThresholds: z.record(z.number()).optional(),
|
|
85
106
|
}).transform((v) => {
|
|
86
107
|
return remap$(v, {
|
|
87
108
|
onFailure: "on_failure",
|
|
109
|
+
entityThresholds: "entity_thresholds",
|
|
88
110
|
});
|
|
89
111
|
});
|
|
90
112
|
|
|
@@ -43,7 +43,7 @@ export type PublicPluginOnFailure = ClosedEnum<typeof PublicPluginOnFailure>;
|
|
|
43
43
|
|
|
44
44
|
export type PublicPlugin = {
|
|
45
45
|
/**
|
|
46
|
-
* pii_redaction only. Entity types to redact (e.g. EMAIL_ADDRESS, BSN). Omit to redact every type detected for the language and regions.
|
|
46
|
+
* pii_redaction only. Entity types to redact (e.g. EMAIL_ADDRESS, BSN). On its own this is a strict allowlist; alongside regions it adds to the region coverage. Omit to redact every type detected for the language and regions. See GET /v2/pii/capabilities for valid types.
|
|
47
47
|
*/
|
|
48
48
|
entities?: Array<string> | null | undefined;
|
|
49
49
|
/**
|
|
@@ -67,7 +67,7 @@ export type PublicPlugin = {
|
|
|
67
67
|
*/
|
|
68
68
|
onFailure?: PublicPluginOnFailure | undefined;
|
|
69
69
|
/**
|
|
70
|
-
* pii_redaction only. Region codes
|
|
70
|
+
* pii_redaction only. Region codes selecting whole regions of coverage (e.g. nl, gb). Every entity type those regions cover is redacted, alongside the base catalog. ["all"] cannot be combined with other region codes, and leaving both this and entities empty also runs every region, so selecting nothing is the widest request rather than the narrowest. Combines with entities: the two selections are unioned.
|
|
71
71
|
*/
|
|
72
72
|
regions?: Array<string> | null | undefined;
|
|
73
73
|
/**
|
|
@@ -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_01m2n4h2fwx0vf1s493cqs5yt8"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -23,14 +23,14 @@ export type RoutingRulePlugin = {
|
|
|
23
23
|
*/
|
|
24
24
|
language?: string | undefined;
|
|
25
25
|
/**
|
|
26
|
-
* Entity types to redact.
|
|
26
|
+
* Entity types to redact. On their own a strict allowlist; alongside regions they add to the region coverage.
|
|
27
27
|
*/
|
|
28
28
|
entities?: Array<string> | undefined;
|
|
29
29
|
onFailure?: string | undefined;
|
|
30
30
|
threshold?: number | undefined;
|
|
31
31
|
mask?: Array<string> | undefined;
|
|
32
32
|
/**
|
|
33
|
-
* Regions of coverage by ISO 3166-1 alpha-2 code, or ["all"].
|
|
33
|
+
* Regions of coverage by ISO 3166-1 alpha-2 code, or ["all"]. Combines with entities: the two selections are unioned.
|
|
34
34
|
*/
|
|
35
35
|
regions?: Array<string> | undefined;
|
|
36
36
|
/**
|
|
@@ -34,11 +34,11 @@ export type UpdateWorkspaceSettingsRequest = {
|
|
|
34
34
|
*/
|
|
35
35
|
enforceEnabledModels?: boolean | undefined;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Workspace-default PII redaction update. Omit to leave it unchanged. When
|
|
38
38
|
*
|
|
39
39
|
* @remarks
|
|
40
|
-
*
|
|
41
|
-
* replaces
|
|
40
|
+
* present, `enabled` is always applied; `config` omitted keeps the stored
|
|
41
|
+
* config, `config` present replaces it wholesale, and `config: {}` clears it.
|
|
42
42
|
*/
|
|
43
43
|
piiRedaction?: PiiRedaction | undefined;
|
|
44
44
|
};
|
|
@@ -458,7 +458,7 @@ export type Retry = {
|
|
|
458
458
|
*/
|
|
459
459
|
export type ModelConfiguration2 = {
|
|
460
460
|
/**
|
|
461
|
-
* A model ID string (e.g., `openai/gpt-
|
|
461
|
+
* A model ID string (e.g., `openai/gpt-5.6-sol` or `anthropic/claude-sonnet-5`). Only models that support tool calling can be used with agents.
|
|
462
462
|
*/
|
|
463
463
|
id: string;
|
|
464
464
|
/**
|
|
@@ -1449,7 +1449,7 @@ export type CreateChatCompletionRequestBody = {
|
|
|
1449
1449
|
| CreateChatCompletionMessagesToolMessage
|
|
1450
1450
|
>;
|
|
1451
1451
|
/**
|
|
1452
|
-
* Model ID used to generate the response, like `openai/gpt-
|
|
1452
|
+
* Model ID used to generate the response, like `openai/gpt-5.6-sol` or `anthropic/claude-sonnet-5`. The AI Gateway offers a wide range of models with different capabilities, performance characteristics, and price points. Refer to the [Supported models](/docs/ai-gateway/supported-models) to browse available models.
|
|
1453
1453
|
*/
|
|
1454
1454
|
model: string;
|
|
1455
1455
|
/**
|
|
@@ -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-09-
|
|
141
|
+
"2026-09-16T12:54:27.109Z",
|
|
142
142
|
).transform(v => new Date(v)),
|
|
143
143
|
}).transform((v) => {
|
|
144
144
|
return remap$(v, {
|
|
@@ -2739,7 +2739,7 @@ export const Evaluations4$inboundSchema: z.ZodType<
|
|
|
2739
2739
|
explanation: z.string().optional(),
|
|
2740
2740
|
reviewed_by_id: z.string(),
|
|
2741
2741
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2742
|
-
"2026-09-
|
|
2742
|
+
"2026-09-16T12:54:35.937Z",
|
|
2743
2743
|
).transform(v => new Date(v)),
|
|
2744
2744
|
type: z.literal("string_array"),
|
|
2745
2745
|
values: z.array(z.string()),
|
|
@@ -2829,7 +2829,7 @@ export const CreateDatasetItemEvaluations3$inboundSchema: z.ZodType<
|
|
|
2829
2829
|
explanation: z.string().optional(),
|
|
2830
2830
|
reviewed_by_id: z.string(),
|
|
2831
2831
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2832
|
-
"2026-09-
|
|
2832
|
+
"2026-09-16T12:54:35.937Z",
|
|
2833
2833
|
).transform(v => new Date(v)),
|
|
2834
2834
|
type: z.literal("boolean"),
|
|
2835
2835
|
value: z.boolean(),
|
|
@@ -2914,7 +2914,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
|
|
|
2914
2914
|
explanation: z.string().optional(),
|
|
2915
2915
|
reviewed_by_id: z.string(),
|
|
2916
2916
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2917
|
-
"2026-09-
|
|
2917
|
+
"2026-09-16T12:54:35.937Z",
|
|
2918
2918
|
).transform(v => new Date(v)),
|
|
2919
2919
|
type: z.literal("number"),
|
|
2920
2920
|
value: z.number(),
|
|
@@ -3000,7 +3000,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
|
|
|
3000
3000
|
explanation: z.string().optional(),
|
|
3001
3001
|
reviewed_by_id: z.string(),
|
|
3002
3002
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
3003
|
-
"2026-09-
|
|
3003
|
+
"2026-09-16T12:54:35.937Z",
|
|
3004
3004
|
).transform(v => new Date(v)),
|
|
3005
3005
|
type: z.literal("string"),
|
|
3006
3006
|
value: z.string(),
|
|
@@ -3087,7 +3087,7 @@ export const ResponseBody$inboundSchema: z.ZodType<
|
|
|
3087
3087
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
3088
3088
|
.optional(),
|
|
3089
3089
|
updated: z.string().datetime({ offset: true }).default(
|
|
3090
|
-
"2026-09-
|
|
3090
|
+
"2026-09-16T12:54:27.109Z",
|
|
3091
3091
|
).transform(v => new Date(v)),
|
|
3092
3092
|
}).transform((v) => {
|
|
3093
3093
|
return remap$(v, {
|
|
@@ -792,7 +792,7 @@ export type PromptInput = {
|
|
|
792
792
|
| CreatePromptMessagesToolMessage
|
|
793
793
|
>;
|
|
794
794
|
/**
|
|
795
|
-
* Model ID used to generate the response, like `openai/gpt-
|
|
795
|
+
* Model ID used to generate the response, like `openai/gpt-5.6-sol` or `anthropic/claude-sonnet-5`. For private models, use format: `{workspaceKey}@{provider}/{model}`. The full list of models can be found at https://docs.orq.ai/docs/ai-gateway/supported-models. Only chat models are supported.
|
|
796
796
|
*/
|
|
797
797
|
model?: string | undefined;
|
|
798
798
|
/**
|
|
@@ -2453,7 +2453,7 @@ export type PromptField = {
|
|
|
2453
2453
|
>
|
|
2454
2454
|
| undefined;
|
|
2455
2455
|
/**
|
|
2456
|
-
* Model ID used to generate the response, like `openai/gpt-
|
|
2456
|
+
* Model ID used to generate the response, like `openai/gpt-5.6-sol` or `anthropic/claude-sonnet-5`. For private models, use format: `{workspaceKey}@{provider}/{model}`.
|
|
2457
2457
|
*/
|
|
2458
2458
|
model?: string | null | undefined;
|
|
2459
2459
|
version?: string | undefined;
|
|
@@ -1573,7 +1573,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1573
1573
|
z.ZodTypeDef,
|
|
1574
1574
|
unknown
|
|
1575
1575
|
> = z.object({
|
|
1576
|
-
_id: z.string().default("
|
|
1576
|
+
_id: z.string().default("tool_01M2N4H2M1S9Y2SAXH4HNHR2ST"),
|
|
1577
1577
|
path: z.string(),
|
|
1578
1578
|
key: z.string(),
|
|
1579
1579
|
display_name: z.string().optional(),
|
|
@@ -1759,7 +1759,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1759
1759
|
z.ZodTypeDef,
|
|
1760
1760
|
unknown
|
|
1761
1761
|
> = z.object({
|
|
1762
|
-
_id: z.string().default("
|
|
1762
|
+
_id: z.string().default("tool_01M2N4H2M019VHHC97KJBVJEQW"),
|
|
1763
1763
|
path: z.string(),
|
|
1764
1764
|
key: z.string(),
|
|
1765
1765
|
display_name: z.string().optional(),
|
|
@@ -1852,7 +1852,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1852
1852
|
z.ZodTypeDef,
|
|
1853
1853
|
unknown
|
|
1854
1854
|
> = z.object({
|
|
1855
|
-
_id: z.string().default("
|
|
1855
|
+
_id: z.string().default("tool_01M2N4H2KZ9YV0VGPE3G5RHW1V"),
|
|
1856
1856
|
path: z.string(),
|
|
1857
1857
|
key: z.string(),
|
|
1858
1858
|
display_name: z.string().optional(),
|
|
@@ -1953,7 +1953,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1953
1953
|
z.ZodTypeDef,
|
|
1954
1954
|
unknown
|
|
1955
1955
|
> = z.object({
|
|
1956
|
-
_id: z.string().default("
|
|
1956
|
+
_id: z.string().default("tool_01M2N4H2KY1ZDN9NSYWA3MRXGM"),
|
|
1957
1957
|
path: z.string(),
|
|
1958
1958
|
key: z.string(),
|
|
1959
1959
|
display_name: z.string().optional(),
|
|
@@ -1492,7 +1492,7 @@ export type GetAllPromptsPromptField = {
|
|
|
1492
1492
|
>
|
|
1493
1493
|
| undefined;
|
|
1494
1494
|
/**
|
|
1495
|
-
* Model ID used to generate the response, like `openai/gpt-
|
|
1495
|
+
* Model ID used to generate the response, like `openai/gpt-5.6-sol` or `anthropic/claude-sonnet-5`. For private models, use format: `{workspaceKey}@{provider}/{model}`.
|
|
1496
1496
|
*/
|
|
1497
1497
|
model?: string | null | undefined;
|
|
1498
1498
|
version?: string | undefined;
|