@orq-ai/node 4.1.0-rc.36 → 4.1.0-rc.38
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/bin/mcp-server.js +297 -310
- package/bin/mcp-server.js.map +61 -61
- package/examples/package-lock.json +1 -1
- package/funcs/budgetsCreate.d.ts +1 -1
- package/funcs/budgetsCreate.js +1 -1
- package/funcs/budgetsList.d.ts +1 -1
- package/funcs/budgetsList.js +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/mcp-server/tools/budgetsCreate.js +1 -1
- package/mcp-server/tools/budgetsCreate.js.map +1 -1
- package/mcp-server/tools/budgetsList.js +1 -1
- package/mcp-server/tools/budgetsList.js.map +1 -1
- package/models/components/conversationresponse.js +2 -2
- package/models/components/invokedeploymentrequest.d.ts +4 -4
- package/models/components/invokedeploymentrequest.d.ts.map +1 -1
- package/models/components/invokedeploymentrequest.js +4 -4
- package/models/components/invokedeploymentrequest.js.map +1 -1
- package/models/components/partdoneevent.js +2 -2
- package/models/components/reasoningpart.js +2 -2
- package/models/operations/createbudget.d.ts +8 -55
- package/models/operations/createbudget.d.ts.map +1 -1
- package/models/operations/createbudget.js +8 -44
- package/models/operations/createbudget.js.map +1 -1
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createconversation.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.d.ts +4 -4
- package/models/operations/createdatasetitem.d.ts.map +1 -1
- package/models/operations/createdatasetitem.js +12 -12
- package/models/operations/createdatasetitem.js.map +1 -1
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createprompt.d.ts +3 -2
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +3 -2
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.js +12 -12
- package/models/operations/deploymentcreatemetric.d.ts +4 -4
- package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
- package/models/operations/deploymentcreatemetric.js +4 -4
- package/models/operations/deploymentcreatemetric.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +4 -4
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +4 -4
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +1 -0
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +1 -0
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deployments.d.ts +1 -0
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +1 -0
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +5 -4
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +5 -4
- package/models/operations/deploymentstream.js.map +1 -1
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/generateconversationname.js +2 -2
- package/models/operations/getallprompts.d.ts +1 -0
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +1 -0
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +12 -12
- package/models/operations/getbudget.d.ts +0 -1
- package/models/operations/getbudget.d.ts.map +1 -1
- package/models/operations/getbudget.js +2 -3
- package/models/operations/getbudget.js.map +1 -1
- package/models/operations/getevals.js +28 -28
- package/models/operations/getoneprompt.d.ts +1 -0
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +1 -0
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +1 -0
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +1 -0
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/listbudgets.d.ts +4 -5
- package/models/operations/listbudgets.d.ts.map +1 -1
- package/models/operations/listbudgets.js +4 -5
- package/models/operations/listbudgets.js.map +1 -1
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.d.ts +2 -2
- package/models/operations/listdatasetdatapoints.d.ts.map +1 -1
- package/models/operations/listdatasetdatapoints.js +10 -10
- package/models/operations/listdatasetdatapoints.js.map +1 -1
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/listpromptversions.d.ts +1 -0
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +1 -0
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrieveconversation.js +2 -2
- package/models/operations/retrievedatapoint.d.ts +2 -2
- package/models/operations/retrievedatapoint.d.ts.map +1 -1
- package/models/operations/retrievedatapoint.js +10 -10
- package/models/operations/retrievedatapoint.js.map +1 -1
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +12 -12
- package/models/operations/runagent.js +2 -2
- package/models/operations/streamrunagent.js +2 -2
- package/models/operations/updatebudget.d.ts +0 -1
- package/models/operations/updatebudget.d.ts.map +1 -1
- package/models/operations/updatebudget.js +2 -3
- package/models/operations/updatebudget.js.map +1 -1
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updateconversation.js +2 -2
- package/models/operations/updatedatapoint.d.ts +4 -4
- package/models/operations/updatedatapoint.d.ts.map +1 -1
- package/models/operations/updatedatapoint.js +12 -12
- package/models/operations/updatedatapoint.js.map +1 -1
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updatememorystore.d.ts +1 -0
- package/models/operations/updatememorystore.d.ts.map +1 -1
- package/models/operations/updatememorystore.js +1 -0
- package/models/operations/updatememorystore.js.map +1 -1
- package/models/operations/updateprompt.d.ts +4 -2
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +4 -2
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +14 -14
- package/package.json +1 -1
- package/sdk/budgets.d.ts +2 -2
- package/sdk/budgets.js +2 -2
- package/src/funcs/budgetsCreate.ts +1 -1
- package/src/funcs/budgetsList.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/budgetsCreate.ts +1 -1
- package/src/mcp-server/tools/budgetsList.ts +1 -1
- package/src/models/components/conversationresponse.ts +2 -2
- package/src/models/components/invokedeploymentrequest.ts +8 -8
- package/src/models/components/partdoneevent.ts +2 -2
- package/src/models/components/reasoningpart.ts +2 -2
- package/src/models/operations/createbudget.ts +17 -111
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createconversation.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +16 -16
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createprompt.ts +5 -4
- package/src/models/operations/createtool.ts +12 -12
- package/src/models/operations/deploymentcreatemetric.ts +8 -8
- package/src/models/operations/deploymentgetconfig.ts +8 -8
- package/src/models/operations/deploymentinvoke.ts +1 -0
- package/src/models/operations/deployments.ts +1 -0
- package/src/models/operations/deploymentstream.ts +9 -8
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/generateconversationname.ts +2 -2
- package/src/models/operations/getallprompts.ts +1 -0
- package/src/models/operations/getalltools.ts +12 -12
- package/src/models/operations/getbudget.ts +2 -3
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/getoneprompt.ts +1 -0
- package/src/models/operations/getpromptversion.ts +1 -0
- package/src/models/operations/listbudgets.ts +6 -7
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +12 -12
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/listpromptversions.ts +1 -0
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrieveconversation.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +12 -12
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +12 -12
- package/src/models/operations/runagent.ts +2 -2
- package/src/models/operations/streamrunagent.ts +2 -2
- package/src/models/operations/updatebudget.ts +2 -3
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updateconversation.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +16 -16
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updatememorystore.ts +1 -0
- package/src/models/operations/updateprompt.ts +6 -4
- package/src/models/operations/updatetool.ts +14 -14
- package/src/sdk/budgets.ts +2 -2
|
@@ -138,7 +138,7 @@ export const ConversationResponse$inboundSchema: z.ZodType<
|
|
|
138
138
|
z.ZodTypeDef,
|
|
139
139
|
unknown
|
|
140
140
|
> = z.object({
|
|
141
|
-
_id: z.string().default("
|
|
141
|
+
_id: z.string().default("conv_01kc6jyp2725phas59s4hr495e"),
|
|
142
142
|
entity_id: z.string(),
|
|
143
143
|
kind: ConversationResponseKind$inboundSchema,
|
|
144
144
|
display_name: z.string(),
|
|
@@ -177,7 +177,7 @@ export const ConversationResponse$outboundSchema: z.ZodType<
|
|
|
177
177
|
z.ZodTypeDef,
|
|
178
178
|
ConversationResponse
|
|
179
179
|
> = z.object({
|
|
180
|
-
id: z.string().default("
|
|
180
|
+
id: z.string().default("conv_01kc6jyp2725phas59s4hr495e"),
|
|
181
181
|
entityId: z.string(),
|
|
182
182
|
kind: ConversationResponseKind$outboundSchema,
|
|
183
183
|
displayName: z.string(),
|
|
@@ -129,7 +129,7 @@ export type ToolMessage = {
|
|
|
129
129
|
/**
|
|
130
130
|
* Tool call that this message is responding to.
|
|
131
131
|
*/
|
|
132
|
-
toolCallId: string;
|
|
132
|
+
toolCallId: string | null;
|
|
133
133
|
cacheControl?: PrefixMessagesCacheControl | undefined;
|
|
134
134
|
};
|
|
135
135
|
|
|
@@ -472,7 +472,7 @@ export type MessagesToolMessage = {
|
|
|
472
472
|
/**
|
|
473
473
|
* Tool call that this message is responding to.
|
|
474
474
|
*/
|
|
475
|
-
toolCallId: string;
|
|
475
|
+
toolCallId: string | null;
|
|
476
476
|
cacheControl?: MessagesCacheControl | undefined;
|
|
477
477
|
};
|
|
478
478
|
|
|
@@ -1300,7 +1300,7 @@ export const ToolMessage$inboundSchema: z.ZodType<
|
|
|
1300
1300
|
> = z.object({
|
|
1301
1301
|
role: z.literal("tool"),
|
|
1302
1302
|
content: z.union([z.string(), z.array(TextContentPartSchema$inboundSchema)]),
|
|
1303
|
-
tool_call_id: z.string(),
|
|
1303
|
+
tool_call_id: z.nullable(z.string()),
|
|
1304
1304
|
cache_control: z.lazy(() => PrefixMessagesCacheControl$inboundSchema)
|
|
1305
1305
|
.optional(),
|
|
1306
1306
|
}).transform((v) => {
|
|
@@ -1313,7 +1313,7 @@ export const ToolMessage$inboundSchema: z.ZodType<
|
|
|
1313
1313
|
export type ToolMessage$Outbound = {
|
|
1314
1314
|
role: "tool";
|
|
1315
1315
|
content: string | Array<TextContentPartSchema$Outbound>;
|
|
1316
|
-
tool_call_id: string;
|
|
1316
|
+
tool_call_id: string | null;
|
|
1317
1317
|
cache_control?: PrefixMessagesCacheControl$Outbound | undefined;
|
|
1318
1318
|
};
|
|
1319
1319
|
|
|
@@ -1325,7 +1325,7 @@ export const ToolMessage$outboundSchema: z.ZodType<
|
|
|
1325
1325
|
> = z.object({
|
|
1326
1326
|
role: z.literal("tool"),
|
|
1327
1327
|
content: z.union([z.string(), z.array(TextContentPartSchema$outboundSchema)]),
|
|
1328
|
-
toolCallId: z.string(),
|
|
1328
|
+
toolCallId: z.nullable(z.string()),
|
|
1329
1329
|
cacheControl: z.lazy(() => PrefixMessagesCacheControl$outboundSchema)
|
|
1330
1330
|
.optional(),
|
|
1331
1331
|
}).transform((v) => {
|
|
@@ -2338,7 +2338,7 @@ export const MessagesToolMessage$inboundSchema: z.ZodType<
|
|
|
2338
2338
|
> = z.object({
|
|
2339
2339
|
role: z.literal("tool"),
|
|
2340
2340
|
content: z.union([z.string(), z.array(TextContentPartSchema$inboundSchema)]),
|
|
2341
|
-
tool_call_id: z.string(),
|
|
2341
|
+
tool_call_id: z.nullable(z.string()),
|
|
2342
2342
|
cache_control: z.lazy(() => MessagesCacheControl$inboundSchema).optional(),
|
|
2343
2343
|
}).transform((v) => {
|
|
2344
2344
|
return remap$(v, {
|
|
@@ -2350,7 +2350,7 @@ export const MessagesToolMessage$inboundSchema: z.ZodType<
|
|
|
2350
2350
|
export type MessagesToolMessage$Outbound = {
|
|
2351
2351
|
role: "tool";
|
|
2352
2352
|
content: string | Array<TextContentPartSchema$Outbound>;
|
|
2353
|
-
tool_call_id: string;
|
|
2353
|
+
tool_call_id: string | null;
|
|
2354
2354
|
cache_control?: MessagesCacheControl$Outbound | undefined;
|
|
2355
2355
|
};
|
|
2356
2356
|
|
|
@@ -2362,7 +2362,7 @@ export const MessagesToolMessage$outboundSchema: z.ZodType<
|
|
|
2362
2362
|
> = z.object({
|
|
2363
2363
|
role: z.literal("tool"),
|
|
2364
2364
|
content: z.union([z.string(), z.array(TextContentPartSchema$outboundSchema)]),
|
|
2365
|
-
toolCallId: z.string(),
|
|
2365
|
+
toolCallId: z.nullable(z.string()),
|
|
2366
2366
|
cacheControl: z.lazy(() => MessagesCacheControl$outboundSchema).optional(),
|
|
2367
2367
|
}).transform((v) => {
|
|
2368
2368
|
return remap$(v, {
|
|
@@ -79,7 +79,7 @@ export const PartReasoningPart$inboundSchema: z.ZodType<
|
|
|
79
79
|
z.ZodTypeDef,
|
|
80
80
|
unknown
|
|
81
81
|
> = z.object({
|
|
82
|
-
_id: z.string().default("
|
|
82
|
+
_id: z.string().default("reasoning_01kc6jyntg5evzzqxjf9m1vh4t"),
|
|
83
83
|
metadata: z.record(z.any()).optional(),
|
|
84
84
|
kind: PartKind$inboundSchema,
|
|
85
85
|
reasoning: z.string(),
|
|
@@ -104,7 +104,7 @@ export const PartReasoningPart$outboundSchema: z.ZodType<
|
|
|
104
104
|
z.ZodTypeDef,
|
|
105
105
|
PartReasoningPart
|
|
106
106
|
> = z.object({
|
|
107
|
-
id: z.string().default("
|
|
107
|
+
id: z.string().default("reasoning_01kc6jyntg5evzzqxjf9m1vh4t"),
|
|
108
108
|
metadata: z.record(z.any()).optional(),
|
|
109
109
|
kind: PartKind$outboundSchema,
|
|
110
110
|
reasoning: z.string(),
|
|
@@ -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_01kc6jynt9ts4szb85drearx3j"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -65,7 +65,7 @@ export const ReasoningPart$outboundSchema: z.ZodType<
|
|
|
65
65
|
z.ZodTypeDef,
|
|
66
66
|
ReasoningPart
|
|
67
67
|
> = z.object({
|
|
68
|
-
id: z.string().default("
|
|
68
|
+
id: z.string().default("reasoning_01kc6jynt9ts4szb85drearx3j"),
|
|
69
69
|
metadata: z.record(z.any()).optional(),
|
|
70
70
|
kind: z.literal("reasoning"),
|
|
71
71
|
reasoning: z.string(),
|
|
@@ -10,40 +10,6 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
10
10
|
import { RFCDate } from "../../types/rfcdate.js";
|
|
11
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
12
|
|
|
13
|
-
/**
|
|
14
|
-
* Budget period type
|
|
15
|
-
*/
|
|
16
|
-
export const CreateBudgetRequestBodyPeriod = {
|
|
17
|
-
Daily: "daily",
|
|
18
|
-
Weekly: "weekly",
|
|
19
|
-
Monthly: "monthly",
|
|
20
|
-
Yearly: "yearly",
|
|
21
|
-
} as const;
|
|
22
|
-
/**
|
|
23
|
-
* Budget period type
|
|
24
|
-
*/
|
|
25
|
-
export type CreateBudgetRequestBodyPeriod = ClosedEnum<
|
|
26
|
-
typeof CreateBudgetRequestBodyPeriod
|
|
27
|
-
>;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Budget configuration for the entire workspace
|
|
31
|
-
*/
|
|
32
|
-
export type WorkspaceBudget = {
|
|
33
|
-
/**
|
|
34
|
-
* Workspace budget type
|
|
35
|
-
*/
|
|
36
|
-
type: "workspace";
|
|
37
|
-
/**
|
|
38
|
-
* Budget period type
|
|
39
|
-
*/
|
|
40
|
-
period: CreateBudgetRequestBodyPeriod;
|
|
41
|
-
/**
|
|
42
|
-
* Budget amount in USD for the specified period
|
|
43
|
-
*/
|
|
44
|
-
amount: number;
|
|
45
|
-
};
|
|
46
|
-
|
|
47
13
|
/**
|
|
48
14
|
* Budget period type
|
|
49
15
|
*/
|
|
@@ -83,7 +49,7 @@ export type ContactBudget = {
|
|
|
83
49
|
/**
|
|
84
50
|
* Budget period type
|
|
85
51
|
*/
|
|
86
|
-
export const
|
|
52
|
+
export const CreateBudgetRequestBodyPeriod = {
|
|
87
53
|
Daily: "daily",
|
|
88
54
|
Weekly: "weekly",
|
|
89
55
|
Monthly: "monthly",
|
|
@@ -92,8 +58,8 @@ export const CreateBudgetRequestBodyBudgetsPeriod = {
|
|
|
92
58
|
/**
|
|
93
59
|
* Budget period type
|
|
94
60
|
*/
|
|
95
|
-
export type
|
|
96
|
-
typeof
|
|
61
|
+
export type CreateBudgetRequestBodyPeriod = ClosedEnum<
|
|
62
|
+
typeof CreateBudgetRequestBodyPeriod
|
|
97
63
|
>;
|
|
98
64
|
|
|
99
65
|
/**
|
|
@@ -111,7 +77,7 @@ export type APIKeyBudget = {
|
|
|
111
77
|
/**
|
|
112
78
|
* Budget period type
|
|
113
79
|
*/
|
|
114
|
-
period:
|
|
80
|
+
period: CreateBudgetRequestBodyPeriod;
|
|
115
81
|
/**
|
|
116
82
|
* Budget amount in USD for the specified period
|
|
117
83
|
*/
|
|
@@ -119,12 +85,9 @@ export type APIKeyBudget = {
|
|
|
119
85
|
};
|
|
120
86
|
|
|
121
87
|
/**
|
|
122
|
-
* Create budget configuration for API key
|
|
88
|
+
* Create budget configuration for API key or contact
|
|
123
89
|
*/
|
|
124
|
-
export type CreateBudgetRequestBody =
|
|
125
|
-
| APIKeyBudget
|
|
126
|
-
| ContactBudget
|
|
127
|
-
| WorkspaceBudget;
|
|
90
|
+
export type CreateBudgetRequestBody = APIKeyBudget | ContactBudget;
|
|
128
91
|
|
|
129
92
|
/**
|
|
130
93
|
* Budget entity type
|
|
@@ -132,7 +95,6 @@ export type CreateBudgetRequestBody =
|
|
|
132
95
|
export const CreateBudgetType = {
|
|
133
96
|
ApiKey: "api_key",
|
|
134
97
|
Contact: "contact",
|
|
135
|
-
Workspace: "workspace",
|
|
136
98
|
} as const;
|
|
137
99
|
/**
|
|
138
100
|
* Budget entity type
|
|
@@ -229,58 +191,6 @@ export type CreateBudgetResponseBody = {
|
|
|
229
191
|
updated?: Date | undefined;
|
|
230
192
|
};
|
|
231
193
|
|
|
232
|
-
/** @internal */
|
|
233
|
-
export const CreateBudgetRequestBodyPeriod$inboundSchema: z.ZodNativeEnum<
|
|
234
|
-
typeof CreateBudgetRequestBodyPeriod
|
|
235
|
-
> = z.nativeEnum(CreateBudgetRequestBodyPeriod);
|
|
236
|
-
/** @internal */
|
|
237
|
-
export const CreateBudgetRequestBodyPeriod$outboundSchema: z.ZodNativeEnum<
|
|
238
|
-
typeof CreateBudgetRequestBodyPeriod
|
|
239
|
-
> = CreateBudgetRequestBodyPeriod$inboundSchema;
|
|
240
|
-
|
|
241
|
-
/** @internal */
|
|
242
|
-
export const WorkspaceBudget$inboundSchema: z.ZodType<
|
|
243
|
-
WorkspaceBudget,
|
|
244
|
-
z.ZodTypeDef,
|
|
245
|
-
unknown
|
|
246
|
-
> = z.object({
|
|
247
|
-
type: z.literal("workspace"),
|
|
248
|
-
period: CreateBudgetRequestBodyPeriod$inboundSchema,
|
|
249
|
-
amount: z.number(),
|
|
250
|
-
});
|
|
251
|
-
/** @internal */
|
|
252
|
-
export type WorkspaceBudget$Outbound = {
|
|
253
|
-
type: "workspace";
|
|
254
|
-
period: string;
|
|
255
|
-
amount: number;
|
|
256
|
-
};
|
|
257
|
-
|
|
258
|
-
/** @internal */
|
|
259
|
-
export const WorkspaceBudget$outboundSchema: z.ZodType<
|
|
260
|
-
WorkspaceBudget$Outbound,
|
|
261
|
-
z.ZodTypeDef,
|
|
262
|
-
WorkspaceBudget
|
|
263
|
-
> = z.object({
|
|
264
|
-
type: z.literal("workspace"),
|
|
265
|
-
period: CreateBudgetRequestBodyPeriod$outboundSchema,
|
|
266
|
-
amount: z.number(),
|
|
267
|
-
});
|
|
268
|
-
|
|
269
|
-
export function workspaceBudgetToJSON(
|
|
270
|
-
workspaceBudget: WorkspaceBudget,
|
|
271
|
-
): string {
|
|
272
|
-
return JSON.stringify(WorkspaceBudget$outboundSchema.parse(workspaceBudget));
|
|
273
|
-
}
|
|
274
|
-
export function workspaceBudgetFromJSON(
|
|
275
|
-
jsonString: string,
|
|
276
|
-
): SafeParseResult<WorkspaceBudget, SDKValidationError> {
|
|
277
|
-
return safeParse(
|
|
278
|
-
jsonString,
|
|
279
|
-
(x) => WorkspaceBudget$inboundSchema.parse(JSON.parse(x)),
|
|
280
|
-
`Failed to parse 'WorkspaceBudget' from JSON`,
|
|
281
|
-
);
|
|
282
|
-
}
|
|
283
|
-
|
|
284
194
|
/** @internal */
|
|
285
195
|
export const RequestBodyPeriod$inboundSchema: z.ZodNativeEnum<
|
|
286
196
|
typeof RequestBodyPeriod
|
|
@@ -343,14 +253,13 @@ export function contactBudgetFromJSON(
|
|
|
343
253
|
}
|
|
344
254
|
|
|
345
255
|
/** @internal */
|
|
346
|
-
export const
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
);
|
|
256
|
+
export const CreateBudgetRequestBodyPeriod$inboundSchema: z.ZodNativeEnum<
|
|
257
|
+
typeof CreateBudgetRequestBodyPeriod
|
|
258
|
+
> = z.nativeEnum(CreateBudgetRequestBodyPeriod);
|
|
350
259
|
/** @internal */
|
|
351
|
-
export const
|
|
352
|
-
|
|
353
|
-
|
|
260
|
+
export const CreateBudgetRequestBodyPeriod$outboundSchema: z.ZodNativeEnum<
|
|
261
|
+
typeof CreateBudgetRequestBodyPeriod
|
|
262
|
+
> = CreateBudgetRequestBodyPeriod$inboundSchema;
|
|
354
263
|
|
|
355
264
|
/** @internal */
|
|
356
265
|
export const APIKeyBudget$inboundSchema: z.ZodType<
|
|
@@ -360,7 +269,7 @@ export const APIKeyBudget$inboundSchema: z.ZodType<
|
|
|
360
269
|
> = z.object({
|
|
361
270
|
type: z.literal("api_key"),
|
|
362
271
|
entity_id: z.string(),
|
|
363
|
-
period:
|
|
272
|
+
period: CreateBudgetRequestBodyPeriod$inboundSchema,
|
|
364
273
|
amount: z.number(),
|
|
365
274
|
}).transform((v) => {
|
|
366
275
|
return remap$(v, {
|
|
@@ -383,7 +292,7 @@ export const APIKeyBudget$outboundSchema: z.ZodType<
|
|
|
383
292
|
> = z.object({
|
|
384
293
|
type: z.literal("api_key"),
|
|
385
294
|
entityId: z.string(),
|
|
386
|
-
period:
|
|
295
|
+
period: CreateBudgetRequestBodyPeriod$outboundSchema,
|
|
387
296
|
amount: z.number(),
|
|
388
297
|
}).transform((v) => {
|
|
389
298
|
return remap$(v, {
|
|
@@ -412,13 +321,11 @@ export const CreateBudgetRequestBody$inboundSchema: z.ZodType<
|
|
|
412
321
|
> = z.union([
|
|
413
322
|
z.lazy(() => APIKeyBudget$inboundSchema),
|
|
414
323
|
z.lazy(() => ContactBudget$inboundSchema),
|
|
415
|
-
z.lazy(() => WorkspaceBudget$inboundSchema),
|
|
416
324
|
]);
|
|
417
325
|
/** @internal */
|
|
418
326
|
export type CreateBudgetRequestBody$Outbound =
|
|
419
327
|
| APIKeyBudget$Outbound
|
|
420
|
-
| ContactBudget$Outbound
|
|
421
|
-
| WorkspaceBudget$Outbound;
|
|
328
|
+
| ContactBudget$Outbound;
|
|
422
329
|
|
|
423
330
|
/** @internal */
|
|
424
331
|
export const CreateBudgetRequestBody$outboundSchema: z.ZodType<
|
|
@@ -428,7 +335,6 @@ export const CreateBudgetRequestBody$outboundSchema: z.ZodType<
|
|
|
428
335
|
> = z.union([
|
|
429
336
|
z.lazy(() => APIKeyBudget$outboundSchema),
|
|
430
337
|
z.lazy(() => ContactBudget$outboundSchema),
|
|
431
|
-
z.lazy(() => WorkspaceBudget$outboundSchema),
|
|
432
338
|
]);
|
|
433
339
|
|
|
434
340
|
export function createBudgetRequestBodyToJSON(
|
|
@@ -583,7 +489,7 @@ export const CreateBudgetResponseBody$inboundSchema: z.ZodType<
|
|
|
583
489
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
584
490
|
.optional(),
|
|
585
491
|
updated: z.string().datetime({ offset: true }).default(
|
|
586
|
-
"2025-12-
|
|
492
|
+
"2025-12-11T11:32:34.996Z",
|
|
587
493
|
).transform(v => new Date(v)),
|
|
588
494
|
}).transform((v) => {
|
|
589
495
|
return remap$(v, {
|
|
@@ -623,7 +529,7 @@ export const CreateBudgetResponseBody$outboundSchema: z.ZodType<
|
|
|
623
529
|
isActive: z.boolean(),
|
|
624
530
|
consumption: z.lazy(() => Consumption$outboundSchema).optional(),
|
|
625
531
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
626
|
-
updated: z.date().default(() => new Date("2025-12-
|
|
532
|
+
updated: z.date().default(() => new Date("2025-12-11T11:32:34.996Z"))
|
|
627
533
|
.transform(v => v.toISOString()),
|
|
628
534
|
}).transform((v) => {
|
|
629
535
|
return remap$(v, {
|
|
@@ -167,7 +167,7 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
|
|
|
167
167
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
168
168
|
.optional(),
|
|
169
169
|
updated: z.string().datetime({ offset: true }).default(
|
|
170
|
-
"2025-12-
|
|
170
|
+
"2025-12-11T11:32:34.632Z",
|
|
171
171
|
).transform(v => new Date(v)),
|
|
172
172
|
}).transform((v) => {
|
|
173
173
|
return remap$(v, {
|
|
@@ -207,7 +207,7 @@ export const CreateContactResponseBody$outboundSchema: z.ZodType<
|
|
|
207
207
|
tags: z.array(z.string()).optional(),
|
|
208
208
|
metadata: z.record(z.any()).optional(),
|
|
209
209
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
210
|
-
updated: z.date().default(() => new Date("2025-12-
|
|
210
|
+
updated: z.date().default(() => new Date("2025-12-11T11:32:34.632Z"))
|
|
211
211
|
.transform(v => v.toISOString()),
|
|
212
212
|
}).transform((v) => {
|
|
213
213
|
return remap$(v, {
|
|
@@ -272,7 +272,7 @@ export const CreateConversationResponseBody$inboundSchema: z.ZodType<
|
|
|
272
272
|
z.ZodTypeDef,
|
|
273
273
|
unknown
|
|
274
274
|
> = z.object({
|
|
275
|
-
_id: z.string().default("
|
|
275
|
+
_id: z.string().default("conv_01kc6jyp29e89b72wvsxjkcm9e"),
|
|
276
276
|
entity_id: z.string(),
|
|
277
277
|
kind: CreateConversationKind$inboundSchema,
|
|
278
278
|
display_name: z.string(),
|
|
@@ -312,7 +312,7 @@ export const CreateConversationResponseBody$outboundSchema: z.ZodType<
|
|
|
312
312
|
z.ZodTypeDef,
|
|
313
313
|
CreateConversationResponseBody
|
|
314
314
|
> = z.object({
|
|
315
|
-
id: z.string().default("
|
|
315
|
+
id: z.string().default("conv_01kc6jyp29e89b72wvsxjkcm9e"),
|
|
316
316
|
entityId: z.string(),
|
|
317
317
|
kind: CreateConversationKind$outboundSchema,
|
|
318
318
|
displayName: z.string(),
|
|
@@ -187,7 +187,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
187
187
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
188
188
|
.optional(),
|
|
189
189
|
updated: z.string().datetime({ offset: true }).default(
|
|
190
|
-
"2025-12-
|
|
190
|
+
"2025-12-11T11:32:34.632Z",
|
|
191
191
|
).transform(v => new Date(v)),
|
|
192
192
|
}).transform((v) => {
|
|
193
193
|
return remap$(v, {
|
|
@@ -226,7 +226,7 @@ export const CreateDatasetResponseBody$outboundSchema: z.ZodType<
|
|
|
226
226
|
createdById: z.string().optional(),
|
|
227
227
|
updatedById: z.string().optional(),
|
|
228
228
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
229
|
-
updated: z.date().default(() => new Date("2025-12-
|
|
229
|
+
updated: z.date().default(() => new Date("2025-12-11T11:32:34.632Z"))
|
|
230
230
|
.transform(v => v.toISOString()),
|
|
231
231
|
}).transform((v) => {
|
|
232
232
|
return remap$(v, {
|
|
@@ -91,7 +91,7 @@ export type CreateDatasetItemMessagesToolMessage = {
|
|
|
91
91
|
/**
|
|
92
92
|
* Tool call that this message is responding to.
|
|
93
93
|
*/
|
|
94
|
-
toolCallId: string;
|
|
94
|
+
toolCallId: string | null;
|
|
95
95
|
cacheControl?: CreateDatasetItemMessagesCacheControl | undefined;
|
|
96
96
|
};
|
|
97
97
|
|
|
@@ -471,7 +471,7 @@ export type CreateDatasetItemMessagesDatasetsToolMessage = {
|
|
|
471
471
|
/**
|
|
472
472
|
* Tool call that this message is responding to.
|
|
473
473
|
*/
|
|
474
|
-
toolCallId: string;
|
|
474
|
+
toolCallId: string | null;
|
|
475
475
|
cacheControl?: CreateDatasetItemMessagesDatasetsCacheControl | undefined;
|
|
476
476
|
};
|
|
477
477
|
|
|
@@ -1105,7 +1105,7 @@ export const CreateDatasetItemMessagesToolMessage$inboundSchema: z.ZodType<
|
|
|
1105
1105
|
z.string(),
|
|
1106
1106
|
z.array(components.TextContentPartSchema$inboundSchema),
|
|
1107
1107
|
]),
|
|
1108
|
-
tool_call_id: z.string(),
|
|
1108
|
+
tool_call_id: z.nullable(z.string()),
|
|
1109
1109
|
cache_control: z.lazy(() =>
|
|
1110
1110
|
CreateDatasetItemMessagesCacheControl$inboundSchema
|
|
1111
1111
|
).optional(),
|
|
@@ -1119,7 +1119,7 @@ export const CreateDatasetItemMessagesToolMessage$inboundSchema: z.ZodType<
|
|
|
1119
1119
|
export type CreateDatasetItemMessagesToolMessage$Outbound = {
|
|
1120
1120
|
role: "tool";
|
|
1121
1121
|
content: string | Array<components.TextContentPartSchema$Outbound>;
|
|
1122
|
-
tool_call_id: string;
|
|
1122
|
+
tool_call_id: string | null;
|
|
1123
1123
|
cache_control?: CreateDatasetItemMessagesCacheControl$Outbound | undefined;
|
|
1124
1124
|
};
|
|
1125
1125
|
|
|
@@ -1134,7 +1134,7 @@ export const CreateDatasetItemMessagesToolMessage$outboundSchema: z.ZodType<
|
|
|
1134
1134
|
z.string(),
|
|
1135
1135
|
z.array(components.TextContentPartSchema$outboundSchema),
|
|
1136
1136
|
]),
|
|
1137
|
-
toolCallId: z.string(),
|
|
1137
|
+
toolCallId: z.nullable(z.string()),
|
|
1138
1138
|
cacheControl: z.lazy(() =>
|
|
1139
1139
|
CreateDatasetItemMessagesCacheControl$outboundSchema
|
|
1140
1140
|
).optional(),
|
|
@@ -2454,7 +2454,7 @@ export const CreateDatasetItemMessagesDatasetsToolMessage$inboundSchema:
|
|
|
2454
2454
|
z.string(),
|
|
2455
2455
|
z.array(components.TextContentPartSchema$inboundSchema),
|
|
2456
2456
|
]),
|
|
2457
|
-
tool_call_id: z.string(),
|
|
2457
|
+
tool_call_id: z.nullable(z.string()),
|
|
2458
2458
|
cache_control: z.lazy(() =>
|
|
2459
2459
|
CreateDatasetItemMessagesDatasetsCacheControl$inboundSchema
|
|
2460
2460
|
).optional(),
|
|
@@ -2468,7 +2468,7 @@ export const CreateDatasetItemMessagesDatasetsToolMessage$inboundSchema:
|
|
|
2468
2468
|
export type CreateDatasetItemMessagesDatasetsToolMessage$Outbound = {
|
|
2469
2469
|
role: "tool";
|
|
2470
2470
|
content: string | Array<components.TextContentPartSchema$Outbound>;
|
|
2471
|
-
tool_call_id: string;
|
|
2471
|
+
tool_call_id: string | null;
|
|
2472
2472
|
cache_control?:
|
|
2473
2473
|
| CreateDatasetItemMessagesDatasetsCacheControl$Outbound
|
|
2474
2474
|
| undefined;
|
|
@@ -2486,7 +2486,7 @@ export const CreateDatasetItemMessagesDatasetsToolMessage$outboundSchema:
|
|
|
2486
2486
|
z.string(),
|
|
2487
2487
|
z.array(components.TextContentPartSchema$outboundSchema),
|
|
2488
2488
|
]),
|
|
2489
|
-
toolCallId: z.string(),
|
|
2489
|
+
toolCallId: z.nullable(z.string()),
|
|
2490
2490
|
cacheControl: z.lazy(() =>
|
|
2491
2491
|
CreateDatasetItemMessagesDatasetsCacheControl$outboundSchema
|
|
2492
2492
|
).optional(),
|
|
@@ -3612,7 +3612,7 @@ export const Evaluations3$inboundSchema: z.ZodType<
|
|
|
3612
3612
|
source: CreateDatasetItemEvaluationsSource$inboundSchema.default("orq"),
|
|
3613
3613
|
reviewed_by_id: z.string(),
|
|
3614
3614
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
3615
|
-
"2025-12-
|
|
3615
|
+
"2025-12-11T11:32:45.718Z",
|
|
3616
3616
|
).transform(v => new Date(v)),
|
|
3617
3617
|
type: z.literal("string_array"),
|
|
3618
3618
|
values: z.array(z.string()),
|
|
@@ -3647,7 +3647,7 @@ export const Evaluations3$outboundSchema: z.ZodType<
|
|
|
3647
3647
|
humanReviewId: z.string(),
|
|
3648
3648
|
source: CreateDatasetItemEvaluationsSource$outboundSchema.default("orq"),
|
|
3649
3649
|
reviewedById: z.string(),
|
|
3650
|
-
reviewedAt: z.date().default(() => new Date("2025-12-
|
|
3650
|
+
reviewedAt: z.date().default(() => new Date("2025-12-11T11:32:45.718Z"))
|
|
3651
3651
|
.transform(v => v.toISOString()),
|
|
3652
3652
|
type: z.literal("string_array"),
|
|
3653
3653
|
values: z.array(z.string()),
|
|
@@ -3703,7 +3703,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
|
|
|
3703
3703
|
source: EvaluationsSource$inboundSchema.default("orq"),
|
|
3704
3704
|
reviewed_by_id: z.string(),
|
|
3705
3705
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
3706
|
-
"2025-12-
|
|
3706
|
+
"2025-12-11T11:32:45.717Z",
|
|
3707
3707
|
).transform(v => new Date(v)),
|
|
3708
3708
|
type: z.literal("number"),
|
|
3709
3709
|
value: z.number(),
|
|
@@ -3738,7 +3738,7 @@ export const Evaluations2$outboundSchema: z.ZodType<
|
|
|
3738
3738
|
humanReviewId: z.string(),
|
|
3739
3739
|
source: EvaluationsSource$outboundSchema.default("orq"),
|
|
3740
3740
|
reviewedById: z.string(),
|
|
3741
|
-
reviewedAt: z.date().default(() => new Date("2025-12-
|
|
3741
|
+
reviewedAt: z.date().default(() => new Date("2025-12-11T11:32:45.717Z"))
|
|
3742
3742
|
.transform(v => v.toISOString()),
|
|
3743
3743
|
type: z.literal("number"),
|
|
3744
3744
|
value: z.number(),
|
|
@@ -3792,7 +3792,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
|
|
|
3792
3792
|
source: Source$inboundSchema.default("orq"),
|
|
3793
3793
|
reviewed_by_id: z.string(),
|
|
3794
3794
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
3795
|
-
"2025-12-
|
|
3795
|
+
"2025-12-11T11:32:45.716Z",
|
|
3796
3796
|
).transform(v => new Date(v)),
|
|
3797
3797
|
type: z.literal("string"),
|
|
3798
3798
|
value: z.string(),
|
|
@@ -3827,7 +3827,7 @@ export const Evaluations1$outboundSchema: z.ZodType<
|
|
|
3827
3827
|
humanReviewId: z.string(),
|
|
3828
3828
|
source: Source$outboundSchema.default("orq"),
|
|
3829
3829
|
reviewedById: z.string(),
|
|
3830
|
-
reviewedAt: z.date().default(() => new Date("2025-12-
|
|
3830
|
+
reviewedAt: z.date().default(() => new Date("2025-12-11T11:32:45.716Z"))
|
|
3831
3831
|
.transform(v => v.toISOString()),
|
|
3832
3832
|
type: z.literal("string"),
|
|
3833
3833
|
value: z.string(),
|
|
@@ -3932,7 +3932,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
|
|
|
3932
3932
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
3933
3933
|
.optional(),
|
|
3934
3934
|
updated: z.string().datetime({ offset: true }).default(
|
|
3935
|
-
"2025-12-
|
|
3935
|
+
"2025-12-11T11:32:34.632Z",
|
|
3936
3936
|
).transform(v => new Date(v)),
|
|
3937
3937
|
}).transform((v) => {
|
|
3938
3938
|
return remap$(v, {
|
|
@@ -4010,7 +4010,7 @@ export const CreateDatasetItemResponseBody$outboundSchema: z.ZodType<
|
|
|
4010
4010
|
createdById: z.string().optional(),
|
|
4011
4011
|
updatedById: z.string().optional(),
|
|
4012
4012
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
4013
|
-
updated: z.date().default(() => new Date("2025-12-
|
|
4013
|
+
updated: z.date().default(() => new Date("2025-12-11T11:32:34.632Z"))
|
|
4014
4014
|
.transform(v => v.toISOString()),
|
|
4015
4015
|
}).transform((v) => {
|
|
4016
4016
|
return remap$(v, {
|
|
@@ -576,7 +576,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
576
576
|
z.ZodTypeDef,
|
|
577
577
|
unknown
|
|
578
578
|
> = z.object({
|
|
579
|
-
_id: z.string().default("
|
|
579
|
+
_id: z.string().default("01KC6JYPDYWQNE62HFNPFTF364"),
|
|
580
580
|
display_name: z.string(),
|
|
581
581
|
description: z.string().optional(),
|
|
582
582
|
status: CreateDatasourceStatus$inboundSchema,
|
|
@@ -619,7 +619,7 @@ export const CreateDatasourceResponseBody$outboundSchema: z.ZodType<
|
|
|
619
619
|
z.ZodTypeDef,
|
|
620
620
|
CreateDatasourceResponseBody
|
|
621
621
|
> = z.object({
|
|
622
|
-
id: z.string().default("
|
|
622
|
+
id: z.string().default("01KC6JYPDYWQNE62HFNPFTF364"),
|
|
623
623
|
displayName: z.string(),
|
|
624
624
|
description: z.string().optional(),
|
|
625
625
|
status: CreateDatasourceStatus$outboundSchema,
|