@orq-ai/node 4.15.0-rc.50 → 4.15.0-rc.52
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/traceusage.d.ts +1 -0
- package/models/components/traceusage.d.ts.map +1 -1
- package/models/components/traceusage.js +2 -0
- package/models/components/traceusage.js.map +1 -1
- package/models/components/updateworkspacesettingsrequest.d.ts +3 -3
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +5 -5
- package/models/operations/createtool.js +4 -4
- package/models/operations/getalltools.js +4 -4
- 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/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.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +5 -5
- package/models/operations/updatedataset.js +1 -1
- 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/traceusage.ts +3 -0
- package/src/models/components/updateworkspacesettingsrequest.ts +3 -3
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +5 -5
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/getalltools.ts +4 -4
- 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/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 +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +5 -5
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatetool.ts +4 -4
- package/src/sdk/workspacesettings.ts +1 -1
|
@@ -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_01M2MM6E7GD8AMAGW00Y0TBS8C"),
|
|
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_01M2MM6E7FNW3A26W9AKP2AGX4"),
|
|
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_01M2MM6E7F93AVBQVBC102T4FS"),
|
|
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_01M2MM6E7E8DEAWM6W4FY3DEQ6"),
|
|
361
361
|
path: z.string(),
|
|
362
362
|
key: z.string(),
|
|
363
363
|
display_name: z.string().optional(),
|
|
@@ -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("01M2MM6E4AYVDDZH7DVWH9DKEP"),
|
|
1102
1102
|
name: z.string(),
|
|
1103
1103
|
description: z.string().optional(),
|
|
1104
1104
|
schema: z.lazy(() => exports.AgentToolInputRunSchema$outboundSchema),
|
|
@@ -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("01M2MM6E51J5Z2HDGRSAB18KKE"),
|
|
1068
1068
|
name: z.string(),
|
|
1069
1069
|
description: z.string().optional(),
|
|
1070
1070
|
schema: z.lazy(() => exports.StreamRunAgentAgentToolInputRunAgentsSchema$outboundSchema),
|
|
@@ -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-16T08:09:10.163Z").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-16T08:09:10.162Z").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-16T08:09:10.162Z").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-16T08:09:10.161Z").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-16T08:09:01.077Z").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-16T08:09:01.077Z").transform(v => new Date(v)),
|
|
99
99
|
}).transform((v) => {
|
|
100
100
|
return (0, primitives_js_1.remap)(v, {
|
|
101
101
|
"_id": "id",
|
|
@@ -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_01M2MM6E77GWBRCD8SE8D5K1D5"),
|
|
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_01M2MM6E76HFK1JGBTZQVM07S0"),
|
|
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_01M2MM6E76XXHDZ3H6WNN2C1VC"),
|
|
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_01M2MM6E75KVWZ0SPDT91998PK"),
|
|
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.52",
|
|
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
|
-
"import": "./langchain/index.mjs",
|
|
14
|
-
"require": "./langchain/index.js",
|
|
15
|
-
"types": "./langchain/index.d.mts"
|
|
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.52",
|
|
62
62
|
genVersion: "2.937.18",
|
|
63
|
-
userAgent: "speakeasy-sdk/typescript 4.15.0-rc.
|
|
63
|
+
userAgent: "speakeasy-sdk/typescript 4.15.0-rc.52 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_01m2mm6e2bs56vcx8twmng9avj"),
|
|
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
|
/**
|
|
@@ -18,6 +18,7 @@ export type TraceUsage = {
|
|
|
18
18
|
completionAudioTokens?: number | undefined;
|
|
19
19
|
completionAcceptedPredictionTokens?: number | undefined;
|
|
20
20
|
completionRejectedPredictionTokens?: number | undefined;
|
|
21
|
+
promptCacheCreationTokens?: number | undefined;
|
|
21
22
|
};
|
|
22
23
|
|
|
23
24
|
/** @internal */
|
|
@@ -35,6 +36,7 @@ export const TraceUsage$inboundSchema: z.ZodType<
|
|
|
35
36
|
completion_audio_tokens: z.number().int().optional(),
|
|
36
37
|
completion_accepted_prediction_tokens: z.number().int().optional(),
|
|
37
38
|
completion_rejected_prediction_tokens: z.number().int().optional(),
|
|
39
|
+
prompt_cache_creation_tokens: z.number().int().optional(),
|
|
38
40
|
}).transform((v) => {
|
|
39
41
|
return remap$(v, {
|
|
40
42
|
"prompt_tokens": "promptTokens",
|
|
@@ -48,6 +50,7 @@ export const TraceUsage$inboundSchema: z.ZodType<
|
|
|
48
50
|
"completionAcceptedPredictionTokens",
|
|
49
51
|
"completion_rejected_prediction_tokens":
|
|
50
52
|
"completionRejectedPredictionTokens",
|
|
53
|
+
"prompt_cache_creation_tokens": "promptCacheCreationTokens",
|
|
51
54
|
});
|
|
52
55
|
});
|
|
53
56
|
|
|
@@ -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
|
};
|
|
@@ -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-16T08:09:01.077Z",
|
|
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-16T08:09:10.151Z",
|
|
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-16T08:09:10.150Z",
|
|
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-16T08:09:10.150Z",
|
|
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-16T08:09:10.150Z",
|
|
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-16T08:09:01.077Z",
|
|
3091
3091
|
).transform(v => new Date(v)),
|
|
3092
3092
|
}).transform((v) => {
|
|
3093
3093
|
return remap$(v, {
|
|
@@ -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_01M2MM6E72C9Q8N3QW74TGMXMY"),
|
|
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_01M2MM6E71SZ1D7X8MGKFE0272"),
|
|
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_01M2MM6E707K2GZGFK0AQNJBVV"),
|
|
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_01M2MM6E6ZMX0HHNWXB9ZXS6T5"),
|
|
1957
1957
|
path: z.string(),
|
|
1958
1958
|
key: z.string(),
|
|
1959
1959
|
display_name: z.string().optional(),
|
|
@@ -639,7 +639,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
639
639
|
z.ZodTypeDef,
|
|
640
640
|
unknown
|
|
641
641
|
> = z.object({
|
|
642
|
-
_id: z.string().default("
|
|
642
|
+
_id: z.string().default("tool_01M2MM6E6SQK9RCPPKCS7KN2HA"),
|
|
643
643
|
path: z.string(),
|
|
644
644
|
key: z.string(),
|
|
645
645
|
display_name: z.string().optional(),
|
|
@@ -821,7 +821,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
|
|
|
821
821
|
z.ZodTypeDef,
|
|
822
822
|
unknown
|
|
823
823
|
> = z.object({
|
|
824
|
-
_id: z.string().default("
|
|
824
|
+
_id: z.string().default("tool_01M2MM6E6RDSZCZJQ9PD1JWSZR"),
|
|
825
825
|
path: z.string(),
|
|
826
826
|
key: z.string(),
|
|
827
827
|
display_name: z.string().optional(),
|
|
@@ -914,7 +914,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
914
914
|
z.ZodTypeDef,
|
|
915
915
|
unknown
|
|
916
916
|
> = z.object({
|
|
917
|
-
_id: z.string().default("
|
|
917
|
+
_id: z.string().default("tool_01M2MM6E6Q7V5HV215F28J7CK0"),
|
|
918
918
|
path: z.string(),
|
|
919
919
|
key: z.string(),
|
|
920
920
|
display_name: z.string().optional(),
|
|
@@ -1012,7 +1012,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
|
|
|
1012
1012
|
z.ZodTypeDef,
|
|
1013
1013
|
unknown
|
|
1014
1014
|
> = z.object({
|
|
1015
|
-
_id: z.string().default("
|
|
1015
|
+
_id: z.string().default("tool_01M2MM6E6Q6WMHVD7WQA8RSDVJ"),
|
|
1016
1016
|
path: z.string(),
|
|
1017
1017
|
key: z.string(),
|
|
1018
1018
|
display_name: z.string().optional(),
|
|
@@ -140,7 +140,7 @@ export const GetV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
|
|
|
140
140
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
141
141
|
.optional(),
|
|
142
142
|
updated: z.string().datetime({ offset: true }).default(
|
|
143
|
-
"2026-09-
|
|
143
|
+
"2026-09-16T08:09:01.077Z",
|
|
144
144
|
).transform(v => new Date(v)),
|
|
145
145
|
filter_type: z.literal("name"),
|
|
146
146
|
filter_value: z.string(),
|
|
@@ -185,7 +185,7 @@ export const GetV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
|
|
|
185
185
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
186
186
|
.optional(),
|
|
187
187
|
updated: z.string().datetime({ offset: true }).default(
|
|
188
|
-
"2026-09-
|
|
188
|
+
"2026-09-16T08:09:01.077Z",
|
|
189
189
|
).transform(v => new Date(v)),
|
|
190
190
|
filter_type: z.literal("span_type"),
|
|
191
191
|
filter_values: z.array(z.string()),
|
|
@@ -141,7 +141,7 @@ export const GetV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
|
|
|
141
141
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
142
142
|
.optional(),
|
|
143
143
|
updated: z.string().datetime({ offset: true }).default(
|
|
144
|
-
"2026-09-
|
|
144
|
+
"2026-09-16T08:09:01.077Z",
|
|
145
145
|
).transform(v => new Date(v)),
|
|
146
146
|
filter_type: z.literal("name"),
|
|
147
147
|
filter_value: z.string(),
|
|
@@ -186,7 +186,7 @@ export const GetV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
|
|
|
186
186
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
187
187
|
.optional(),
|
|
188
188
|
updated: z.string().datetime({ offset: true }).default(
|
|
189
|
-
"2026-09-
|
|
189
|
+
"2026-09-16T08:09:01.077Z",
|
|
190
190
|
).transform(v => new Date(v)),
|
|
191
191
|
filter_type: z.literal("span_type"),
|
|
192
192
|
filter_values: z.array(z.string()),
|
|
@@ -1653,7 +1653,7 @@ export const ListDatasetDatapointsEvaluations4$inboundSchema: z.ZodType<
|
|
|
1653
1653
|
explanation: z.string().optional(),
|
|
1654
1654
|
reviewed_by_id: z.string(),
|
|
1655
1655
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1656
|
-
"2026-09-
|
|
1656
|
+
"2026-09-16T08:09:10.143Z",
|
|
1657
1657
|
).transform(v => new Date(v)),
|
|
1658
1658
|
type: z.literal("string_array"),
|
|
1659
1659
|
values: z.array(z.string()),
|
|
@@ -1749,7 +1749,7 @@ export const ListDatasetDatapointsEvaluations3$inboundSchema: z.ZodType<
|
|
|
1749
1749
|
explanation: z.string().optional(),
|
|
1750
1750
|
reviewed_by_id: z.string(),
|
|
1751
1751
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1752
|
-
"2026-09-
|
|
1752
|
+
"2026-09-16T08:09:10.143Z",
|
|
1753
1753
|
).transform(v => new Date(v)),
|
|
1754
1754
|
type: z.literal("boolean"),
|
|
1755
1755
|
value: z.boolean(),
|
|
@@ -1853,7 +1853,7 @@ export const ListDatasetDatapointsEvaluations2$inboundSchema: z.ZodType<
|
|
|
1853
1853
|
explanation: z.string().optional(),
|
|
1854
1854
|
reviewed_by_id: z.string(),
|
|
1855
1855
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1856
|
-
"2026-09-
|
|
1856
|
+
"2026-09-16T08:09:10.143Z",
|
|
1857
1857
|
).transform(v => new Date(v)),
|
|
1858
1858
|
type: z.literal("number"),
|
|
1859
1859
|
value: z.number(),
|
|
@@ -1959,7 +1959,7 @@ export const ListDatasetDatapointsEvaluations1$inboundSchema: z.ZodType<
|
|
|
1959
1959
|
explanation: z.string().optional(),
|
|
1960
1960
|
reviewed_by_id: z.string(),
|
|
1961
1961
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1962
|
-
"2026-09-
|
|
1962
|
+
"2026-09-16T08:09:10.142Z",
|
|
1963
1963
|
).transform(v => new Date(v)),
|
|
1964
1964
|
type: z.literal("string"),
|
|
1965
1965
|
value: z.string(),
|
|
@@ -2042,7 +2042,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
|
|
|
2042
2042
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2043
2043
|
.optional(),
|
|
2044
2044
|
updated: z.string().datetime({ offset: true }).default(
|
|
2045
|
-
"2026-09-
|
|
2045
|
+
"2026-09-16T08:09:01.077Z",
|
|
2046
2046
|
).transform(v => new Date(v)),
|
|
2047
2047
|
}).transform((v) => {
|
|
2048
2048
|
return remap$(v, {
|
|
@@ -169,7 +169,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
|
|
|
169
169
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
170
170
|
.optional(),
|
|
171
171
|
updated: z.string().datetime({ offset: true }).default(
|
|
172
|
-
"2026-09-
|
|
172
|
+
"2026-09-16T08:09:01.077Z",
|
|
173
173
|
).transform(v => new Date(v)),
|
|
174
174
|
}).transform((v) => {
|
|
175
175
|
return remap$(v, {
|
|
@@ -318,7 +318,7 @@ export const PatchV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
|
|
|
318
318
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
319
319
|
.optional(),
|
|
320
320
|
updated: z.string().datetime({ offset: true }).default(
|
|
321
|
-
"2026-09-
|
|
321
|
+
"2026-09-16T08:09:01.077Z",
|
|
322
322
|
).transform(v => new Date(v)),
|
|
323
323
|
filter_type: z.literal("name"),
|
|
324
324
|
filter_value: z.string(),
|
|
@@ -364,7 +364,7 @@ export const PatchV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
|
|
|
364
364
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
365
365
|
.optional(),
|
|
366
366
|
updated: z.string().datetime({ offset: true }).default(
|
|
367
|
-
"2026-09-
|
|
367
|
+
"2026-09-16T08:09:01.077Z",
|
|
368
368
|
).transform(v => new Date(v)),
|
|
369
369
|
filter_type: z.literal("span_type"),
|
|
370
370
|
filter_values: z.array(z.string()),
|