@orq-ai/node 4.11.0-rc.56 → 4.11.0-rc.57
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/apiKeysGet.js +4 -0
- package/funcs/apiKeysGet.js.map +1 -1
- package/funcs/apiKeysList.js +1 -0
- package/funcs/apiKeysList.js.map +1 -1
- package/funcs/identitiesList.js +1 -0
- package/funcs/identitiesList.js.map +1 -1
- package/funcs/identitiesRetrieve.js +1 -0
- package/funcs/identitiesRetrieve.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/apikey.d.ts +79 -0
- package/models/components/apikey.d.ts.map +1 -1
- package/models/components/apikey.js +36 -1
- package/models/components/apikey.js.map +1 -1
- package/models/components/evaluatorresponsefunction.js +2 -2
- package/models/components/evaluatorresponsehttp.js +2 -2
- package/models/components/evaluatorresponsejsonschema.js +2 -2
- package/models/components/evaluatorresponsellm.js +2 -2
- package/models/components/evaluatorresponsepython.js +2 -2
- package/models/components/evaluatorresponseragas.js +2 -2
- package/models/components/evaluatorresponsetypescript.js +2 -2
- package/models/components/identity.d.ts +79 -0
- package/models/components/identity.d.ts.map +1 -1
- package/models/components/identity.js +36 -1
- package/models/components/identity.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/apikeyget.d.ts +8 -0
- package/models/operations/apikeyget.d.ts.map +1 -1
- package/models/operations/apikeyget.js +2 -0
- package/models/operations/apikeyget.js.map +1 -1
- package/models/operations/apikeylist.d.ts +9 -0
- package/models/operations/apikeylist.d.ts.map +1 -1
- package/models/operations/apikeylist.js +2 -0
- package/models/operations/apikeylist.js.map +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/createtool.js +6 -6
- package/models/operations/getalltools.js +6 -6
- 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/listidentities.d.ts +9 -0
- package/models/operations/listidentities.d.ts.map +1 -1
- package/models/operations/listidentities.js +2 -0
- package/models/operations/listidentities.js.map +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +3 -3
- 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/retrieveidentity.d.ts +8 -0
- package/models/operations/retrieveidentity.d.ts.map +1 -1
- package/models/operations/retrieveidentity.js +2 -0
- package/models/operations/retrieveidentity.js.map +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/updatetool.js +7 -7
- package/package.json +1 -1
- package/sdk/feedback.d.ts +2 -2
- package/sdk/feedback.js +2 -2
- package/src/funcs/apiKeysGet.ts +6 -1
- package/src/funcs/apiKeysList.ts +1 -0
- package/src/funcs/identitiesList.ts +1 -0
- package/src/funcs/identitiesRetrieve.ts +1 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/apikey.ts +118 -0
- package/src/models/components/evaluatorresponsefunction.ts +2 -2
- package/src/models/components/evaluatorresponsehttp.ts +2 -2
- package/src/models/components/evaluatorresponsejsonschema.ts +2 -2
- package/src/models/components/evaluatorresponsellm.ts +2 -2
- package/src/models/components/evaluatorresponsepython.ts +2 -2
- package/src/models/components/evaluatorresponseragas.ts +2 -2
- package/src/models/components/evaluatorresponsetypescript.ts +2 -2
- package/src/models/components/identity.ts +118 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/apikeyget.ts +10 -0
- package/src/models/operations/apikeylist.ts +11 -0
- 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/createtool.ts +6 -6
- package/src/models/operations/getalltools.ts +6 -6
- 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/listidentities.ts +11 -0
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +3 -3
- 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/retrieveidentity.ts +10 -0
- 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/updatetool.ts +7 -7
- package/src/sdk/feedback.ts +2 -2
|
@@ -7,16 +7,83 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import { BudgetLimits, BudgetLimits$inboundSchema } from "./budgetlimits.js";
|
|
11
|
+
import { BudgetMatch, BudgetMatch$inboundSchema } from "./budgetmatch.js";
|
|
12
|
+
import { BudgetScope, BudgetScope$inboundSchema } from "./budgetscope.js";
|
|
13
|
+
import { BudgetUsage, BudgetUsage$inboundSchema } from "./budgetusage.js";
|
|
10
14
|
import {
|
|
11
15
|
IdentityMetrics,
|
|
12
16
|
IdentityMetrics$inboundSchema,
|
|
13
17
|
} from "./identitymetrics.js";
|
|
18
|
+
import { RateLimit, RateLimit$inboundSchema } from "./ratelimit.js";
|
|
14
19
|
|
|
15
20
|
/**
|
|
16
21
|
* Custom JSON metadata stored with the identity.
|
|
17
22
|
*/
|
|
18
23
|
export type IdentityMetadata = {};
|
|
19
24
|
|
|
25
|
+
/**
|
|
26
|
+
* The budget scoped to this identity, if one exists. Read-only here:
|
|
27
|
+
*
|
|
28
|
+
* @remarks
|
|
29
|
+
* budgets are created and managed through the Budgets API
|
|
30
|
+
* (scope.identity). Present only when requested with `include_budget`.
|
|
31
|
+
* Live consumption (`usage`) is not attached on this path — call the
|
|
32
|
+
* Budgets API for current spend.
|
|
33
|
+
*/
|
|
34
|
+
export type IdentityBudget = {
|
|
35
|
+
budgetId?: string | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Denormalized metadata for UI rendering, list filters, and the
|
|
38
|
+
*
|
|
39
|
+
* @remarks
|
|
40
|
+
* resolver's prefilter index. Never consulted for matching — the
|
|
41
|
+
* `match` expression is the single source of matching semantics.
|
|
42
|
+
* Unset for budgets created from a raw CEL expression ("custom").
|
|
43
|
+
*/
|
|
44
|
+
scope?: BudgetScope | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* The matching semantics of the budget. The enforcement resolver
|
|
47
|
+
*
|
|
48
|
+
* @remarks
|
|
49
|
+
* evaluates `match.cel` against the request context; a budget
|
|
50
|
+
* applies to a request if and only if the expression evaluates to
|
|
51
|
+
* true. Scoped creates derive a canonical expression (e.g.
|
|
52
|
+
* `provider == "openai"`); an empty expression always matches
|
|
53
|
+
* (workspace-wide).
|
|
54
|
+
*/
|
|
55
|
+
match?: BudgetMatch | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* BudgetLimits is the per-period spend and token ceiling. At least one
|
|
58
|
+
*
|
|
59
|
+
* @remarks
|
|
60
|
+
* of `amount`, `token_limit`, or RateLimit.requests_per_minute MUST be
|
|
61
|
+
* set on a Budget; that invariant is enforced by the handler.
|
|
62
|
+
*/
|
|
63
|
+
limits?: BudgetLimits | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* RateLimit is the per-minute request ceiling. Enforced via atomic
|
|
66
|
+
*
|
|
67
|
+
* @remarks
|
|
68
|
+
* increment-first semantics in the enforcement middleware.
|
|
69
|
+
*/
|
|
70
|
+
rateLimit?: RateLimit | undefined;
|
|
71
|
+
isActive?: boolean | undefined;
|
|
72
|
+
expiresAt?: Date | undefined;
|
|
73
|
+
createdAt?: Date | undefined;
|
|
74
|
+
updatedAt?: Date | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* Live consumption for the current period, read from the Redis
|
|
77
|
+
*
|
|
78
|
+
* @remarks
|
|
79
|
+
* counters the enforcement gate maintains. Populated by read paths
|
|
80
|
+
* (Get / List); omitted on write responses (Create / Update / Reset)
|
|
81
|
+
* where it carries no signal. Absent or all-zero for a budget that
|
|
82
|
+
* has not been spent against in the current period.
|
|
83
|
+
*/
|
|
84
|
+
usage?: BudgetUsage | undefined;
|
|
85
|
+
};
|
|
86
|
+
|
|
20
87
|
export type Identity = {
|
|
21
88
|
/**
|
|
22
89
|
* Unique identity identifier assigned by ORQ. Returned as `_id` for
|
|
@@ -71,6 +138,16 @@ export type Identity = {
|
|
|
71
138
|
* `include_metrics`.
|
|
72
139
|
*/
|
|
73
140
|
metrics?: IdentityMetrics | undefined;
|
|
141
|
+
/**
|
|
142
|
+
* The budget scoped to this identity, if one exists. Read-only here:
|
|
143
|
+
*
|
|
144
|
+
* @remarks
|
|
145
|
+
* budgets are created and managed through the Budgets API
|
|
146
|
+
* (scope.identity). Present only when requested with `include_budget`.
|
|
147
|
+
* Live consumption (`usage`) is not attached on this path — call the
|
|
148
|
+
* Budgets API for current spend.
|
|
149
|
+
*/
|
|
150
|
+
budget?: IdentityBudget | undefined;
|
|
74
151
|
};
|
|
75
152
|
|
|
76
153
|
/** @internal */
|
|
@@ -90,6 +167,46 @@ export function identityMetadataFromJSON(
|
|
|
90
167
|
);
|
|
91
168
|
}
|
|
92
169
|
|
|
170
|
+
/** @internal */
|
|
171
|
+
export const IdentityBudget$inboundSchema: z.ZodType<
|
|
172
|
+
IdentityBudget,
|
|
173
|
+
z.ZodTypeDef,
|
|
174
|
+
unknown
|
|
175
|
+
> = z.object({
|
|
176
|
+
budget_id: z.string().optional(),
|
|
177
|
+
scope: BudgetScope$inboundSchema.optional(),
|
|
178
|
+
match: BudgetMatch$inboundSchema.optional(),
|
|
179
|
+
limits: BudgetLimits$inboundSchema.optional(),
|
|
180
|
+
rate_limit: RateLimit$inboundSchema.optional(),
|
|
181
|
+
is_active: z.boolean().optional(),
|
|
182
|
+
expires_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
183
|
+
.optional(),
|
|
184
|
+
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
185
|
+
.optional(),
|
|
186
|
+
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
187
|
+
.optional(),
|
|
188
|
+
usage: BudgetUsage$inboundSchema.optional(),
|
|
189
|
+
}).transform((v) => {
|
|
190
|
+
return remap$(v, {
|
|
191
|
+
"budget_id": "budgetId",
|
|
192
|
+
"rate_limit": "rateLimit",
|
|
193
|
+
"is_active": "isActive",
|
|
194
|
+
"expires_at": "expiresAt",
|
|
195
|
+
"created_at": "createdAt",
|
|
196
|
+
"updated_at": "updatedAt",
|
|
197
|
+
});
|
|
198
|
+
});
|
|
199
|
+
|
|
200
|
+
export function identityBudgetFromJSON(
|
|
201
|
+
jsonString: string,
|
|
202
|
+
): SafeParseResult<IdentityBudget, SDKValidationError> {
|
|
203
|
+
return safeParse(
|
|
204
|
+
jsonString,
|
|
205
|
+
(x) => IdentityBudget$inboundSchema.parse(JSON.parse(x)),
|
|
206
|
+
`Failed to parse 'IdentityBudget' from JSON`,
|
|
207
|
+
);
|
|
208
|
+
}
|
|
209
|
+
|
|
93
210
|
/** @internal */
|
|
94
211
|
export const Identity$inboundSchema: z.ZodType<
|
|
95
212
|
Identity,
|
|
@@ -107,6 +224,7 @@ export const Identity$inboundSchema: z.ZodType<
|
|
|
107
224
|
created: z.string(),
|
|
108
225
|
updated: z.string(),
|
|
109
226
|
metrics: IdentityMetrics$inboundSchema.optional(),
|
|
227
|
+
budget: z.lazy(() => IdentityBudget$inboundSchema).optional(),
|
|
110
228
|
}).transform((v) => {
|
|
111
229
|
return remap$(v, {
|
|
112
230
|
"_id": "id",
|
|
@@ -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_01kwb8cfwdm2fhk3b4062n2x7k"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -10,11 +10,19 @@ export type ApiKeyGetRequest = {
|
|
|
10
10
|
* API key id to retrieve (e.g. `01H...`).
|
|
11
11
|
*/
|
|
12
12
|
apiKeyId: string;
|
|
13
|
+
/**
|
|
14
|
+
* When true, embed the api-key-scoped budget (config and limits only,
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
* no live usage) on the returned record.
|
|
18
|
+
*/
|
|
19
|
+
includeBudget?: boolean | undefined;
|
|
13
20
|
};
|
|
14
21
|
|
|
15
22
|
/** @internal */
|
|
16
23
|
export type ApiKeyGetRequest$Outbound = {
|
|
17
24
|
api_key_id: string;
|
|
25
|
+
include_budget?: boolean | undefined;
|
|
18
26
|
};
|
|
19
27
|
|
|
20
28
|
/** @internal */
|
|
@@ -24,9 +32,11 @@ export const ApiKeyGetRequest$outboundSchema: z.ZodType<
|
|
|
24
32
|
ApiKeyGetRequest
|
|
25
33
|
> = z.object({
|
|
26
34
|
apiKeyId: z.string(),
|
|
35
|
+
includeBudget: z.boolean().optional(),
|
|
27
36
|
}).transform((v) => {
|
|
28
37
|
return remap$(v, {
|
|
29
38
|
apiKeyId: "api_key_id",
|
|
39
|
+
includeBudget: "include_budget",
|
|
30
40
|
});
|
|
31
41
|
});
|
|
32
42
|
|
|
@@ -60,6 +60,14 @@ export type ApiKeyListRequest = {
|
|
|
60
60
|
* of the listed presets. Empty means no permission-mode filter.
|
|
61
61
|
*/
|
|
62
62
|
permissionMode?: Array<components.PermissionMode> | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* When true, embed each key's api-key-scoped budget (config and limits
|
|
65
|
+
*
|
|
66
|
+
* @remarks
|
|
67
|
+
* only, no live usage) on the returned records. Adds one budget lookup
|
|
68
|
+
* for the page; omit to skip it.
|
|
69
|
+
*/
|
|
70
|
+
includeBudget?: boolean | undefined;
|
|
63
71
|
};
|
|
64
72
|
|
|
65
73
|
/** @internal */
|
|
@@ -72,6 +80,7 @@ export type ApiKeyListRequest$Outbound = {
|
|
|
72
80
|
search?: string | undefined;
|
|
73
81
|
owner_type?: Array<string> | undefined;
|
|
74
82
|
permission_mode?: Array<string> | undefined;
|
|
83
|
+
include_budget?: boolean | undefined;
|
|
75
84
|
};
|
|
76
85
|
|
|
77
86
|
/** @internal */
|
|
@@ -88,6 +97,7 @@ export const ApiKeyListRequest$outboundSchema: z.ZodType<
|
|
|
88
97
|
search: z.string().optional(),
|
|
89
98
|
ownerType: z.array(components.OwnerType$outboundSchema).optional(),
|
|
90
99
|
permissionMode: z.array(components.PermissionMode$outboundSchema).optional(),
|
|
100
|
+
includeBudget: z.boolean().optional(),
|
|
91
101
|
}).transform((v) => {
|
|
92
102
|
return remap$(v, {
|
|
93
103
|
startingAfter: "starting_after",
|
|
@@ -95,6 +105,7 @@ export const ApiKeyListRequest$outboundSchema: z.ZodType<
|
|
|
95
105
|
projectId: "project_id",
|
|
96
106
|
ownerType: "owner_type",
|
|
97
107
|
permissionMode: "permission_mode",
|
|
108
|
+
includeBudget: "include_budget",
|
|
98
109
|
});
|
|
99
110
|
});
|
|
100
111
|
|
|
@@ -138,7 +138,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
138
138
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
139
139
|
.optional(),
|
|
140
140
|
updated: z.string().datetime({ offset: true }).default(
|
|
141
|
-
"2026-06-
|
|
141
|
+
"2026-06-30T03:15:02.428Z",
|
|
142
142
|
).transform(v => new Date(v)),
|
|
143
143
|
}).transform((v) => {
|
|
144
144
|
return remap$(v, {
|
|
@@ -2607,7 +2607,7 @@ export const Evaluations3$inboundSchema: z.ZodType<
|
|
|
2607
2607
|
explanation: z.string().optional(),
|
|
2608
2608
|
reviewed_by_id: z.string(),
|
|
2609
2609
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2610
|
-
"2026-06-
|
|
2610
|
+
"2026-06-30T03:15:25.282Z",
|
|
2611
2611
|
).transform(v => new Date(v)),
|
|
2612
2612
|
type: z.literal("string_array"),
|
|
2613
2613
|
values: z.array(z.string()),
|
|
@@ -2692,7 +2692,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
|
|
|
2692
2692
|
explanation: z.string().optional(),
|
|
2693
2693
|
reviewed_by_id: z.string(),
|
|
2694
2694
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2695
|
-
"2026-06-
|
|
2695
|
+
"2026-06-30T03:15:25.281Z",
|
|
2696
2696
|
).transform(v => new Date(v)),
|
|
2697
2697
|
type: z.literal("number"),
|
|
2698
2698
|
value: z.number(),
|
|
@@ -2777,7 +2777,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
|
|
|
2777
2777
|
explanation: z.string().optional(),
|
|
2778
2778
|
reviewed_by_id: z.string(),
|
|
2779
2779
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2780
|
-
"2026-06-
|
|
2780
|
+
"2026-06-30T03:15:25.280Z",
|
|
2781
2781
|
).transform(v => new Date(v)),
|
|
2782
2782
|
type: z.literal("string"),
|
|
2783
2783
|
value: z.string(),
|
|
@@ -2862,7 +2862,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
|
|
|
2862
2862
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2863
2863
|
.optional(),
|
|
2864
2864
|
updated: z.string().datetime({ offset: true }).default(
|
|
2865
|
-
"2026-06-
|
|
2865
|
+
"2026-06-30T03:15:02.428Z",
|
|
2866
2866
|
).transform(v => new Date(v)),
|
|
2867
2867
|
}).transform((v) => {
|
|
2868
2868
|
return remap$(v, {
|
|
@@ -412,7 +412,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
412
412
|
z.ZodTypeDef,
|
|
413
413
|
unknown
|
|
414
414
|
> = z.object({
|
|
415
|
-
_id: z.string().default("
|
|
415
|
+
_id: z.string().default("01KWB8CGCAXEH1E8BF53DFHX6B"),
|
|
416
416
|
display_name: z.string(),
|
|
417
417
|
description: z.nullable(z.string()).optional(),
|
|
418
418
|
status: CreateDatasourceStatus$inboundSchema,
|
|
@@ -1896,7 +1896,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1896
1896
|
z.ZodTypeDef,
|
|
1897
1897
|
unknown
|
|
1898
1898
|
> = z.object({
|
|
1899
|
-
_id: z.string().default("
|
|
1899
|
+
_id: z.string().default("tool_01KWB8CG7QDS18XCT73YAPK7QZ"),
|
|
1900
1900
|
path: z.string(),
|
|
1901
1901
|
key: z.string(),
|
|
1902
1902
|
display_name: z.string().optional(),
|
|
@@ -1993,7 +1993,7 @@ export const ResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
1993
1993
|
z.ZodTypeDef,
|
|
1994
1994
|
unknown
|
|
1995
1995
|
> = z.object({
|
|
1996
|
-
id: z.string().default("
|
|
1996
|
+
id: z.string().default("01KWB8CG7PBJTXZSB92WTSKNNJ"),
|
|
1997
1997
|
name: z.string(),
|
|
1998
1998
|
description: z.string().optional(),
|
|
1999
1999
|
schema: z.lazy(() => CreateToolResponseBodySchema$inboundSchema),
|
|
@@ -2049,7 +2049,7 @@ export const ResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
2049
2049
|
z.ZodTypeDef,
|
|
2050
2050
|
unknown
|
|
2051
2051
|
> = z.object({
|
|
2052
|
-
_id: z.string().default("
|
|
2052
|
+
_id: z.string().default("tool_01KWB8CG7MNNZ2Z2F59S2DJ573"),
|
|
2053
2053
|
path: z.string(),
|
|
2054
2054
|
key: z.string(),
|
|
2055
2055
|
display_name: z.string().optional(),
|
|
@@ -2235,7 +2235,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
2235
2235
|
z.ZodTypeDef,
|
|
2236
2236
|
unknown
|
|
2237
2237
|
> = z.object({
|
|
2238
|
-
_id: z.string().default("
|
|
2238
|
+
_id: z.string().default("tool_01KWB8CG7JYBM5TGQSS5X88R24"),
|
|
2239
2239
|
path: z.string(),
|
|
2240
2240
|
key: z.string(),
|
|
2241
2241
|
display_name: z.string().optional(),
|
|
@@ -2328,7 +2328,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
2328
2328
|
z.ZodTypeDef,
|
|
2329
2329
|
unknown
|
|
2330
2330
|
> = z.object({
|
|
2331
|
-
_id: z.string().default("
|
|
2331
|
+
_id: z.string().default("tool_01KWB8CG7F90XRP0E1E4K7DW1D"),
|
|
2332
2332
|
path: z.string(),
|
|
2333
2333
|
key: z.string(),
|
|
2334
2334
|
display_name: z.string().optional(),
|
|
@@ -2429,7 +2429,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
2429
2429
|
z.ZodTypeDef,
|
|
2430
2430
|
unknown
|
|
2431
2431
|
> = z.object({
|
|
2432
|
-
_id: z.string().default("
|
|
2432
|
+
_id: z.string().default("tool_01KWB8CG7DN9C01SZBNG9BSHVJ"),
|
|
2433
2433
|
path: z.string(),
|
|
2434
2434
|
key: z.string(),
|
|
2435
2435
|
display_name: z.string().optional(),
|
|
@@ -766,7 +766,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
766
766
|
z.ZodTypeDef,
|
|
767
767
|
unknown
|
|
768
768
|
> = z.object({
|
|
769
|
-
_id: z.string().default("
|
|
769
|
+
_id: z.string().default("tool_01KWB8CG6MHRFQRDZAKJNNGPXB"),
|
|
770
770
|
path: z.string(),
|
|
771
771
|
key: z.string(),
|
|
772
772
|
display_name: z.string().optional(),
|
|
@@ -863,7 +863,7 @@ export const DataTools$inboundSchema: z.ZodType<
|
|
|
863
863
|
z.ZodTypeDef,
|
|
864
864
|
unknown
|
|
865
865
|
> = z.object({
|
|
866
|
-
id: z.string().default("
|
|
866
|
+
id: z.string().default("01KWB8CG6JM4NN4ZSST3RC1CFX"),
|
|
867
867
|
name: z.string(),
|
|
868
868
|
description: z.string().optional(),
|
|
869
869
|
schema: z.lazy(() => GetAllToolsDataSchema$inboundSchema),
|
|
@@ -916,7 +916,7 @@ export const DataMCPTool$inboundSchema: z.ZodType<
|
|
|
916
916
|
z.ZodTypeDef,
|
|
917
917
|
unknown
|
|
918
918
|
> = z.object({
|
|
919
|
-
_id: z.string().default("
|
|
919
|
+
_id: z.string().default("tool_01KWB8CG6H17KVSVWA6ZN4ZR4Q"),
|
|
920
920
|
path: z.string(),
|
|
921
921
|
key: z.string(),
|
|
922
922
|
display_name: z.string().optional(),
|
|
@@ -1100,7 +1100,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
|
|
|
1100
1100
|
z.ZodTypeDef,
|
|
1101
1101
|
unknown
|
|
1102
1102
|
> = z.object({
|
|
1103
|
-
_id: z.string().default("
|
|
1103
|
+
_id: z.string().default("tool_01KWB8CG6D98KK1FRM25WY9Y1R"),
|
|
1104
1104
|
path: z.string(),
|
|
1105
1105
|
key: z.string(),
|
|
1106
1106
|
display_name: z.string().optional(),
|
|
@@ -1193,7 +1193,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1193
1193
|
z.ZodTypeDef,
|
|
1194
1194
|
unknown
|
|
1195
1195
|
> = z.object({
|
|
1196
|
-
_id: z.string().default("
|
|
1196
|
+
_id: z.string().default("tool_01KWB8CG6AZ1NVK8NFS2REGC0N"),
|
|
1197
1197
|
path: z.string(),
|
|
1198
1198
|
key: z.string(),
|
|
1199
1199
|
display_name: z.string().optional(),
|
|
@@ -1291,7 +1291,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
|
|
|
1291
1291
|
z.ZodTypeDef,
|
|
1292
1292
|
unknown
|
|
1293
1293
|
> = z.object({
|
|
1294
|
-
_id: z.string().default("
|
|
1294
|
+
_id: z.string().default("tool_01KWB8CG68Q0S2DZ59YN9G605C"),
|
|
1295
1295
|
path: z.string(),
|
|
1296
1296
|
key: z.string(),
|
|
1297
1297
|
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-06-
|
|
143
|
+
"2026-06-30T03:15:02.428Z",
|
|
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-06-
|
|
188
|
+
"2026-06-30T03:15:02.428Z",
|
|
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-06-
|
|
144
|
+
"2026-06-30T03:15:02.428Z",
|
|
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-06-
|
|
189
|
+
"2026-06-30T03:15:02.428Z",
|
|
190
190
|
).transform(v => new Date(v)),
|
|
191
191
|
filter_type: z.literal("span_type"),
|
|
192
192
|
filter_values: z.array(z.string()),
|
|
@@ -1522,7 +1522,7 @@ export const ListDatasetDatapointsEvaluations3$inboundSchema: z.ZodType<
|
|
|
1522
1522
|
explanation: z.string().optional(),
|
|
1523
1523
|
reviewed_by_id: z.string(),
|
|
1524
1524
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1525
|
-
"2026-06-
|
|
1525
|
+
"2026-06-30T03:15:25.265Z",
|
|
1526
1526
|
).transform(v => new Date(v)),
|
|
1527
1527
|
type: z.literal("string_array"),
|
|
1528
1528
|
values: z.array(z.string()),
|
|
@@ -1626,7 +1626,7 @@ export const ListDatasetDatapointsEvaluations2$inboundSchema: z.ZodType<
|
|
|
1626
1626
|
explanation: z.string().optional(),
|
|
1627
1627
|
reviewed_by_id: z.string(),
|
|
1628
1628
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1629
|
-
"2026-06-
|
|
1629
|
+
"2026-06-30T03:15:25.264Z",
|
|
1630
1630
|
).transform(v => new Date(v)),
|
|
1631
1631
|
type: z.literal("number"),
|
|
1632
1632
|
value: z.number(),
|
|
@@ -1726,7 +1726,7 @@ export const ListDatasetDatapointsEvaluations1$inboundSchema: z.ZodType<
|
|
|
1726
1726
|
explanation: z.string().optional(),
|
|
1727
1727
|
reviewed_by_id: z.string(),
|
|
1728
1728
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1729
|
-
"2026-06-
|
|
1729
|
+
"2026-06-30T03:15:25.263Z",
|
|
1730
1730
|
).transform(v => new Date(v)),
|
|
1731
1731
|
type: z.literal("string"),
|
|
1732
1732
|
value: z.string(),
|
|
@@ -1807,7 +1807,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
|
|
|
1807
1807
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
1808
1808
|
.optional(),
|
|
1809
1809
|
updated: z.string().datetime({ offset: true }).default(
|
|
1810
|
-
"2026-06-
|
|
1810
|
+
"2026-06-30T03:15:02.428Z",
|
|
1811
1811
|
).transform(v => new Date(v)),
|
|
1812
1812
|
}).transform((v) => {
|
|
1813
1813
|
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-06-
|
|
172
|
+
"2026-06-30T03:15:02.428Z",
|
|
173
173
|
).transform(v => new Date(v)),
|
|
174
174
|
}).transform((v) => {
|
|
175
175
|
return remap$(v, {
|
|
@@ -182,7 +182,7 @@ export const ListDatasourcesData$inboundSchema: z.ZodType<
|
|
|
182
182
|
z.ZodTypeDef,
|
|
183
183
|
unknown
|
|
184
184
|
> = z.object({
|
|
185
|
-
_id: z.string().default("
|
|
185
|
+
_id: z.string().default("01KWB8CGC7BH51GR6SGGT37BMR"),
|
|
186
186
|
display_name: z.string(),
|
|
187
187
|
description: z.nullable(z.string()).optional(),
|
|
188
188
|
status: ListDatasourcesStatus$inboundSchema,
|
|
@@ -38,6 +38,14 @@ export type ListIdentitiesRequest = {
|
|
|
38
38
|
* Field used to order the list.
|
|
39
39
|
*/
|
|
40
40
|
sortBy?: components.IdentitySortField | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* When true, embed each identity's identity-scoped budget (config and
|
|
43
|
+
*
|
|
44
|
+
* @remarks
|
|
45
|
+
* limits only, no live usage) on the returned records. Adds one budget
|
|
46
|
+
* lookup for the page; omit to skip it.
|
|
47
|
+
*/
|
|
48
|
+
includeBudget?: boolean | undefined;
|
|
41
49
|
};
|
|
42
50
|
|
|
43
51
|
/** @internal */
|
|
@@ -49,6 +57,7 @@ export type ListIdentitiesRequest$Outbound = {
|
|
|
49
57
|
"filter_by.tags"?: Array<string> | undefined;
|
|
50
58
|
include_metrics?: boolean | undefined;
|
|
51
59
|
sort_by?: string | undefined;
|
|
60
|
+
include_budget?: boolean | undefined;
|
|
52
61
|
};
|
|
53
62
|
|
|
54
63
|
/** @internal */
|
|
@@ -64,6 +73,7 @@ export const ListIdentitiesRequest$outboundSchema: z.ZodType<
|
|
|
64
73
|
filterByTags: z.array(z.string()).optional(),
|
|
65
74
|
includeMetrics: z.boolean().optional(),
|
|
66
75
|
sortBy: components.IdentitySortField$outboundSchema.optional(),
|
|
76
|
+
includeBudget: z.boolean().optional(),
|
|
67
77
|
}).transform((v) => {
|
|
68
78
|
return remap$(v, {
|
|
69
79
|
startingAfter: "starting_after",
|
|
@@ -71,6 +81,7 @@ export const ListIdentitiesRequest$outboundSchema: z.ZodType<
|
|
|
71
81
|
filterByTags: "filter_by.tags",
|
|
72
82
|
includeMetrics: "include_metrics",
|
|
73
83
|
sortBy: "sort_by",
|
|
84
|
+
includeBudget: "include_budget",
|
|
74
85
|
});
|
|
75
86
|
});
|
|
76
87
|
|
|
@@ -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-06-
|
|
321
|
+
"2026-06-30T03:15:02.428Z",
|
|
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-06-
|
|
367
|
+
"2026-06-30T03:15:02.428Z",
|
|
368
368
|
).transform(v => new Date(v)),
|
|
369
369
|
filter_type: z.literal("span_type"),
|
|
370
370
|
filter_values: z.array(z.string()),
|
|
@@ -193,7 +193,7 @@ export const RequestBody3$outboundSchema: z.ZodType<
|
|
|
193
193
|
source: PostV2FeedbackEvaluationRequestBodyFeedbackSource$outboundSchema
|
|
194
194
|
.default("orq"),
|
|
195
195
|
explanation: z.string().optional(),
|
|
196
|
-
reviewedAt: z.date().default(() => new Date("2026-06-
|
|
196
|
+
reviewedAt: z.date().default(() => new Date("2026-06-30T03:15:25.413Z"))
|
|
197
197
|
.transform(v => v.toISOString()),
|
|
198
198
|
type: z.literal("string_array"),
|
|
199
199
|
values: z.array(z.string()),
|
|
@@ -247,7 +247,7 @@ export const PostV2FeedbackEvaluationRequestBody2$outboundSchema: z.ZodType<
|
|
|
247
247
|
"orq",
|
|
248
248
|
),
|
|
249
249
|
explanation: z.string().optional(),
|
|
250
|
-
reviewedAt: z.date().default(() => new Date("2026-06-
|
|
250
|
+
reviewedAt: z.date().default(() => new Date("2026-06-30T03:15:25.412Z"))
|
|
251
251
|
.transform(v => v.toISOString()),
|
|
252
252
|
type: z.literal("number"),
|
|
253
253
|
value: z.number(),
|
|
@@ -305,7 +305,7 @@ export const PostV2FeedbackEvaluationRequestBody1$outboundSchema: z.ZodType<
|
|
|
305
305
|
humanReviewId: z.string().optional(),
|
|
306
306
|
source: RequestBodySource$outboundSchema.default("orq"),
|
|
307
307
|
explanation: z.string().optional(),
|
|
308
|
-
reviewedAt: z.date().default(() => new Date("2026-06-
|
|
308
|
+
reviewedAt: z.date().default(() => new Date("2026-06-30T03:15:25.412Z"))
|
|
309
309
|
.transform(v => v.toISOString()),
|
|
310
310
|
type: z.literal("string"),
|
|
311
311
|
value: z.string(),
|
|
@@ -271,7 +271,7 @@ export const PostV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
|
|
|
271
271
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
272
272
|
.optional(),
|
|
273
273
|
updated: z.string().datetime({ offset: true }).default(
|
|
274
|
-
"2026-06-
|
|
274
|
+
"2026-06-30T03:15:02.428Z",
|
|
275
275
|
).transform(v => new Date(v)),
|
|
276
276
|
filter_type: z.literal("name"),
|
|
277
277
|
filter_value: z.string(),
|
|
@@ -316,7 +316,7 @@ export const PostV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
|
|
|
316
316
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
317
317
|
.optional(),
|
|
318
318
|
updated: z.string().datetime({ offset: true }).default(
|
|
319
|
-
"2026-06-
|
|
319
|
+
"2026-06-30T03:15:02.428Z",
|
|
320
320
|
).transform(v => new Date(v)),
|
|
321
321
|
filter_type: z.literal("span_type"),
|
|
322
322
|
filter_values: z.array(z.string()),
|
|
@@ -1456,7 +1456,7 @@ export const RetrieveDatapointEvaluations3$inboundSchema: z.ZodType<
|
|
|
1456
1456
|
explanation: z.string().optional(),
|
|
1457
1457
|
reviewed_by_id: z.string(),
|
|
1458
1458
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1459
|
-
"2026-06-
|
|
1459
|
+
"2026-06-30T03:15:25.273Z",
|
|
1460
1460
|
).transform(v => new Date(v)),
|
|
1461
1461
|
type: z.literal("string_array"),
|
|
1462
1462
|
values: z.array(z.string()),
|
|
@@ -1554,7 +1554,7 @@ export const RetrieveDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
|
1554
1554
|
explanation: z.string().optional(),
|
|
1555
1555
|
reviewed_by_id: z.string(),
|
|
1556
1556
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1557
|
-
"2026-06-
|
|
1557
|
+
"2026-06-30T03:15:25.272Z",
|
|
1558
1558
|
).transform(v => new Date(v)),
|
|
1559
1559
|
type: z.literal("number"),
|
|
1560
1560
|
value: z.number(),
|
|
@@ -1642,7 +1642,7 @@ export const RetrieveDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
|
1642
1642
|
explanation: z.string().optional(),
|
|
1643
1643
|
reviewed_by_id: z.string(),
|
|
1644
1644
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1645
|
-
"2026-06-
|
|
1645
|
+
"2026-06-30T03:15:25.271Z",
|
|
1646
1646
|
).transform(v => new Date(v)),
|
|
1647
1647
|
type: z.literal("string"),
|
|
1648
1648
|
value: z.string(),
|
|
@@ -1721,7 +1721,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
1721
1721
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
1722
1722
|
.optional(),
|
|
1723
1723
|
updated: z.string().datetime({ offset: true }).default(
|
|
1724
|
-
"2026-06-
|
|
1724
|
+
"2026-06-30T03:15:02.428Z",
|
|
1725
1725
|
).transform(v => new Date(v)),
|
|
1726
1726
|
}).transform((v) => {
|
|
1727
1727
|
return remap$(v, {
|
|
@@ -126,7 +126,7 @@ export const RetrieveDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
126
126
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
127
127
|
.optional(),
|
|
128
128
|
updated: z.string().datetime({ offset: true }).default(
|
|
129
|
-
"2026-06-
|
|
129
|
+
"2026-06-30T03:15:02.428Z",
|
|
130
130
|
).transform(v => new Date(v)),
|
|
131
131
|
}).transform((v) => {
|
|
132
132
|
return remap$(v, {
|
|
@@ -118,7 +118,7 @@ export const RetrieveDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
118
118
|
z.ZodTypeDef,
|
|
119
119
|
unknown
|
|
120
120
|
> = z.object({
|
|
121
|
-
_id: z.string().default("
|
|
121
|
+
_id: z.string().default("01KWB8CGC9WCBQ9YEPZ4CAQX83"),
|
|
122
122
|
display_name: z.string(),
|
|
123
123
|
description: z.nullable(z.string()).optional(),
|
|
124
124
|
status: RetrieveDatasourceStatus$inboundSchema,
|