@orq-ai/node 3.11.3 → 3.11.5
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 +103 -103
- package/bin/mcp-server.js.map +26 -26
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +16 -16
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +16 -16
- package/package.json +1 -1
- package/packages/orq-rc/README.md +6 -6
- package/packages/orq-rc/docs/sdks/budgets/README.md +6 -6
- package/packages/orq-rc/examples/package-lock.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/funcs/budgetsCreate.ts +2 -2
- package/packages/orq-rc/src/funcs/budgetsDelete.ts +2 -2
- package/packages/orq-rc/src/funcs/budgetsUpdate.ts +2 -2
- package/packages/orq-rc/src/lib/config.ts +2 -2
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/tools/budgetsCreate.ts +2 -2
- package/packages/orq-rc/src/mcp-server/tools/budgetsDelete.ts +2 -2
- package/packages/orq-rc/src/mcp-server/tools/budgetsUpdate.ts +2 -2
- package/packages/orq-rc/src/models/operations/createbudget.ts +262 -60
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/createprompt.ts +2 -0
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +1 -0
- package/packages/orq-rc/src/models/operations/deployments.ts +1 -0
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getallprompts.ts +1 -0
- package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +1 -0
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +1 -0
- package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +1 -0
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/searchknowledge.ts +2 -0
- package/packages/orq-rc/src/models/operations/updatebudget.ts +32 -36
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/updateprompt.ts +2 -0
- package/packages/orq-rc/src/sdk/budgets.ts +6 -6
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +16 -16
- 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/getevals.ts +28 -28
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +16 -16
|
@@ -10,20 +10,64 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Workspace budget type
|
|
14
14
|
*/
|
|
15
|
-
export const
|
|
15
|
+
export const CreateBudgetRequestBodyBudgetsType = {
|
|
16
|
+
Workspace: "workspace",
|
|
17
|
+
} as const;
|
|
18
|
+
/**
|
|
19
|
+
* Workspace budget type
|
|
20
|
+
*/
|
|
21
|
+
export type CreateBudgetRequestBodyBudgetsType = ClosedEnum<
|
|
22
|
+
typeof CreateBudgetRequestBodyBudgetsType
|
|
23
|
+
>;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Budget period type
|
|
27
|
+
*/
|
|
28
|
+
export const RequestBodyPeriod = {
|
|
29
|
+
Daily: "daily",
|
|
30
|
+
Weekly: "weekly",
|
|
31
|
+
Monthly: "monthly",
|
|
32
|
+
Yearly: "yearly",
|
|
33
|
+
} as const;
|
|
34
|
+
/**
|
|
35
|
+
* Budget period type
|
|
36
|
+
*/
|
|
37
|
+
export type RequestBodyPeriod = ClosedEnum<typeof RequestBodyPeriod>;
|
|
38
|
+
|
|
39
|
+
export type RequestBody2 = {
|
|
40
|
+
/**
|
|
41
|
+
* Workspace budget type
|
|
42
|
+
*/
|
|
43
|
+
type: CreateBudgetRequestBodyBudgetsType;
|
|
44
|
+
/**
|
|
45
|
+
* Budget period type
|
|
46
|
+
*/
|
|
47
|
+
period: RequestBodyPeriod;
|
|
48
|
+
/**
|
|
49
|
+
* Budget amount in USD for the specified period
|
|
50
|
+
*/
|
|
51
|
+
amount: number;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Contact budget type
|
|
56
|
+
*/
|
|
57
|
+
export const CreateBudgetRequestBodyType = {
|
|
16
58
|
Contact: "contact",
|
|
17
59
|
} as const;
|
|
18
60
|
/**
|
|
19
|
-
*
|
|
61
|
+
* Contact budget type
|
|
20
62
|
*/
|
|
21
|
-
export type
|
|
63
|
+
export type CreateBudgetRequestBodyType = ClosedEnum<
|
|
64
|
+
typeof CreateBudgetRequestBodyType
|
|
65
|
+
>;
|
|
22
66
|
|
|
23
67
|
/**
|
|
24
68
|
* Budget period type
|
|
25
69
|
*/
|
|
26
|
-
export const
|
|
70
|
+
export const CreateBudgetRequestBodyPeriod = {
|
|
27
71
|
Daily: "daily",
|
|
28
72
|
Weekly: "weekly",
|
|
29
73
|
Monthly: "monthly",
|
|
@@ -32,13 +76,15 @@ export const Period = {
|
|
|
32
76
|
/**
|
|
33
77
|
* Budget period type
|
|
34
78
|
*/
|
|
35
|
-
export type
|
|
79
|
+
export type CreateBudgetRequestBodyPeriod = ClosedEnum<
|
|
80
|
+
typeof CreateBudgetRequestBodyPeriod
|
|
81
|
+
>;
|
|
36
82
|
|
|
37
|
-
export type
|
|
83
|
+
export type RequestBody1 = {
|
|
38
84
|
/**
|
|
39
|
-
*
|
|
85
|
+
* Contact budget type
|
|
40
86
|
*/
|
|
41
|
-
type:
|
|
87
|
+
type: CreateBudgetRequestBodyType;
|
|
42
88
|
/**
|
|
43
89
|
* Contact external ID
|
|
44
90
|
*/
|
|
@@ -46,17 +92,22 @@ export type CreateBudgetRequestBody = {
|
|
|
46
92
|
/**
|
|
47
93
|
* Budget period type
|
|
48
94
|
*/
|
|
49
|
-
period:
|
|
95
|
+
period: CreateBudgetRequestBodyPeriod;
|
|
50
96
|
/**
|
|
51
97
|
* Budget amount in USD for the specified period
|
|
52
98
|
*/
|
|
53
99
|
amount: number;
|
|
54
100
|
};
|
|
55
101
|
|
|
102
|
+
/**
|
|
103
|
+
* Create budget configuration for contact or workspace
|
|
104
|
+
*/
|
|
105
|
+
export type CreateBudgetRequestBody = RequestBody1 | RequestBody2;
|
|
106
|
+
|
|
56
107
|
/**
|
|
57
108
|
* Budget entity type
|
|
58
109
|
*/
|
|
59
|
-
export const
|
|
110
|
+
export const CreateBudgetType = {
|
|
60
111
|
ApiKey: "api_key",
|
|
61
112
|
Contact: "contact",
|
|
62
113
|
Workspace: "workspace",
|
|
@@ -64,9 +115,7 @@ export const CreateBudgetBudgetsType = {
|
|
|
64
115
|
/**
|
|
65
116
|
* Budget entity type
|
|
66
117
|
*/
|
|
67
|
-
export type
|
|
68
|
-
typeof CreateBudgetBudgetsType
|
|
69
|
-
>;
|
|
118
|
+
export type CreateBudgetType = ClosedEnum<typeof CreateBudgetType>;
|
|
70
119
|
|
|
71
120
|
/**
|
|
72
121
|
* Budget period type
|
|
@@ -126,7 +175,7 @@ export type CreateBudgetResponseBody = {
|
|
|
126
175
|
/**
|
|
127
176
|
* Budget entity type
|
|
128
177
|
*/
|
|
129
|
-
type:
|
|
178
|
+
type: CreateBudgetType;
|
|
130
179
|
/**
|
|
131
180
|
* Contact external identifier (present when type is "contact")
|
|
132
181
|
*/
|
|
@@ -155,54 +204,155 @@ export type CreateBudgetResponseBody = {
|
|
|
155
204
|
};
|
|
156
205
|
|
|
157
206
|
/** @internal */
|
|
158
|
-
export const
|
|
159
|
-
typeof
|
|
160
|
-
> = z.nativeEnum(
|
|
207
|
+
export const CreateBudgetRequestBodyBudgetsType$inboundSchema: z.ZodNativeEnum<
|
|
208
|
+
typeof CreateBudgetRequestBodyBudgetsType
|
|
209
|
+
> = z.nativeEnum(CreateBudgetRequestBodyBudgetsType);
|
|
161
210
|
|
|
162
211
|
/** @internal */
|
|
163
|
-
export const
|
|
164
|
-
typeof
|
|
165
|
-
> =
|
|
212
|
+
export const CreateBudgetRequestBodyBudgetsType$outboundSchema: z.ZodNativeEnum<
|
|
213
|
+
typeof CreateBudgetRequestBodyBudgetsType
|
|
214
|
+
> = CreateBudgetRequestBodyBudgetsType$inboundSchema;
|
|
166
215
|
|
|
167
216
|
/**
|
|
168
217
|
* @internal
|
|
169
218
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
170
219
|
*/
|
|
171
|
-
export namespace
|
|
172
|
-
/** @deprecated use `
|
|
173
|
-
export const inboundSchema =
|
|
174
|
-
/** @deprecated use `
|
|
175
|
-
export const outboundSchema =
|
|
220
|
+
export namespace CreateBudgetRequestBodyBudgetsType$ {
|
|
221
|
+
/** @deprecated use `CreateBudgetRequestBodyBudgetsType$inboundSchema` instead. */
|
|
222
|
+
export const inboundSchema = CreateBudgetRequestBodyBudgetsType$inboundSchema;
|
|
223
|
+
/** @deprecated use `CreateBudgetRequestBodyBudgetsType$outboundSchema` instead. */
|
|
224
|
+
export const outboundSchema =
|
|
225
|
+
CreateBudgetRequestBodyBudgetsType$outboundSchema;
|
|
176
226
|
}
|
|
177
227
|
|
|
178
228
|
/** @internal */
|
|
179
|
-
export const
|
|
180
|
-
|
|
229
|
+
export const RequestBodyPeriod$inboundSchema: z.ZodNativeEnum<
|
|
230
|
+
typeof RequestBodyPeriod
|
|
231
|
+
> = z.nativeEnum(RequestBodyPeriod);
|
|
181
232
|
|
|
182
233
|
/** @internal */
|
|
183
|
-
export const
|
|
184
|
-
|
|
234
|
+
export const RequestBodyPeriod$outboundSchema: z.ZodNativeEnum<
|
|
235
|
+
typeof RequestBodyPeriod
|
|
236
|
+
> = RequestBodyPeriod$inboundSchema;
|
|
185
237
|
|
|
186
238
|
/**
|
|
187
239
|
* @internal
|
|
188
240
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
189
241
|
*/
|
|
190
|
-
export namespace
|
|
191
|
-
/** @deprecated use `
|
|
192
|
-
export const inboundSchema =
|
|
193
|
-
/** @deprecated use `
|
|
194
|
-
export const outboundSchema =
|
|
242
|
+
export namespace RequestBodyPeriod$ {
|
|
243
|
+
/** @deprecated use `RequestBodyPeriod$inboundSchema` instead. */
|
|
244
|
+
export const inboundSchema = RequestBodyPeriod$inboundSchema;
|
|
245
|
+
/** @deprecated use `RequestBodyPeriod$outboundSchema` instead. */
|
|
246
|
+
export const outboundSchema = RequestBodyPeriod$outboundSchema;
|
|
195
247
|
}
|
|
196
248
|
|
|
197
249
|
/** @internal */
|
|
198
|
-
export const
|
|
199
|
-
|
|
250
|
+
export const RequestBody2$inboundSchema: z.ZodType<
|
|
251
|
+
RequestBody2,
|
|
200
252
|
z.ZodTypeDef,
|
|
201
253
|
unknown
|
|
202
254
|
> = z.object({
|
|
203
|
-
type:
|
|
255
|
+
type: CreateBudgetRequestBodyBudgetsType$inboundSchema,
|
|
256
|
+
period: RequestBodyPeriod$inboundSchema,
|
|
257
|
+
amount: z.number(),
|
|
258
|
+
});
|
|
259
|
+
|
|
260
|
+
/** @internal */
|
|
261
|
+
export type RequestBody2$Outbound = {
|
|
262
|
+
type: string;
|
|
263
|
+
period: string;
|
|
264
|
+
amount: number;
|
|
265
|
+
};
|
|
266
|
+
|
|
267
|
+
/** @internal */
|
|
268
|
+
export const RequestBody2$outboundSchema: z.ZodType<
|
|
269
|
+
RequestBody2$Outbound,
|
|
270
|
+
z.ZodTypeDef,
|
|
271
|
+
RequestBody2
|
|
272
|
+
> = z.object({
|
|
273
|
+
type: CreateBudgetRequestBodyBudgetsType$outboundSchema,
|
|
274
|
+
period: RequestBodyPeriod$outboundSchema,
|
|
275
|
+
amount: z.number(),
|
|
276
|
+
});
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* @internal
|
|
280
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
281
|
+
*/
|
|
282
|
+
export namespace RequestBody2$ {
|
|
283
|
+
/** @deprecated use `RequestBody2$inboundSchema` instead. */
|
|
284
|
+
export const inboundSchema = RequestBody2$inboundSchema;
|
|
285
|
+
/** @deprecated use `RequestBody2$outboundSchema` instead. */
|
|
286
|
+
export const outboundSchema = RequestBody2$outboundSchema;
|
|
287
|
+
/** @deprecated use `RequestBody2$Outbound` instead. */
|
|
288
|
+
export type Outbound = RequestBody2$Outbound;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
export function requestBody2ToJSON(requestBody2: RequestBody2): string {
|
|
292
|
+
return JSON.stringify(RequestBody2$outboundSchema.parse(requestBody2));
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
export function requestBody2FromJSON(
|
|
296
|
+
jsonString: string,
|
|
297
|
+
): SafeParseResult<RequestBody2, SDKValidationError> {
|
|
298
|
+
return safeParse(
|
|
299
|
+
jsonString,
|
|
300
|
+
(x) => RequestBody2$inboundSchema.parse(JSON.parse(x)),
|
|
301
|
+
`Failed to parse 'RequestBody2' from JSON`,
|
|
302
|
+
);
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
/** @internal */
|
|
306
|
+
export const CreateBudgetRequestBodyType$inboundSchema: z.ZodNativeEnum<
|
|
307
|
+
typeof CreateBudgetRequestBodyType
|
|
308
|
+
> = z.nativeEnum(CreateBudgetRequestBodyType);
|
|
309
|
+
|
|
310
|
+
/** @internal */
|
|
311
|
+
export const CreateBudgetRequestBodyType$outboundSchema: z.ZodNativeEnum<
|
|
312
|
+
typeof CreateBudgetRequestBodyType
|
|
313
|
+
> = CreateBudgetRequestBodyType$inboundSchema;
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* @internal
|
|
317
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
318
|
+
*/
|
|
319
|
+
export namespace CreateBudgetRequestBodyType$ {
|
|
320
|
+
/** @deprecated use `CreateBudgetRequestBodyType$inboundSchema` instead. */
|
|
321
|
+
export const inboundSchema = CreateBudgetRequestBodyType$inboundSchema;
|
|
322
|
+
/** @deprecated use `CreateBudgetRequestBodyType$outboundSchema` instead. */
|
|
323
|
+
export const outboundSchema = CreateBudgetRequestBodyType$outboundSchema;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/** @internal */
|
|
327
|
+
export const CreateBudgetRequestBodyPeriod$inboundSchema: z.ZodNativeEnum<
|
|
328
|
+
typeof CreateBudgetRequestBodyPeriod
|
|
329
|
+
> = z.nativeEnum(CreateBudgetRequestBodyPeriod);
|
|
330
|
+
|
|
331
|
+
/** @internal */
|
|
332
|
+
export const CreateBudgetRequestBodyPeriod$outboundSchema: z.ZodNativeEnum<
|
|
333
|
+
typeof CreateBudgetRequestBodyPeriod
|
|
334
|
+
> = CreateBudgetRequestBodyPeriod$inboundSchema;
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* @internal
|
|
338
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
339
|
+
*/
|
|
340
|
+
export namespace CreateBudgetRequestBodyPeriod$ {
|
|
341
|
+
/** @deprecated use `CreateBudgetRequestBodyPeriod$inboundSchema` instead. */
|
|
342
|
+
export const inboundSchema = CreateBudgetRequestBodyPeriod$inboundSchema;
|
|
343
|
+
/** @deprecated use `CreateBudgetRequestBodyPeriod$outboundSchema` instead. */
|
|
344
|
+
export const outboundSchema = CreateBudgetRequestBodyPeriod$outboundSchema;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
/** @internal */
|
|
348
|
+
export const RequestBody1$inboundSchema: z.ZodType<
|
|
349
|
+
RequestBody1,
|
|
350
|
+
z.ZodTypeDef,
|
|
351
|
+
unknown
|
|
352
|
+
> = z.object({
|
|
353
|
+
type: CreateBudgetRequestBodyType$inboundSchema,
|
|
204
354
|
entity_id: z.string(),
|
|
205
|
-
period:
|
|
355
|
+
period: CreateBudgetRequestBodyPeriod$inboundSchema,
|
|
206
356
|
amount: z.number(),
|
|
207
357
|
}).transform((v) => {
|
|
208
358
|
return remap$(v, {
|
|
@@ -211,7 +361,7 @@ export const CreateBudgetRequestBody$inboundSchema: z.ZodType<
|
|
|
211
361
|
});
|
|
212
362
|
|
|
213
363
|
/** @internal */
|
|
214
|
-
export type
|
|
364
|
+
export type RequestBody1$Outbound = {
|
|
215
365
|
type: string;
|
|
216
366
|
entity_id: string;
|
|
217
367
|
period: string;
|
|
@@ -219,14 +369,14 @@ export type CreateBudgetRequestBody$Outbound = {
|
|
|
219
369
|
};
|
|
220
370
|
|
|
221
371
|
/** @internal */
|
|
222
|
-
export const
|
|
223
|
-
|
|
372
|
+
export const RequestBody1$outboundSchema: z.ZodType<
|
|
373
|
+
RequestBody1$Outbound,
|
|
224
374
|
z.ZodTypeDef,
|
|
225
|
-
|
|
375
|
+
RequestBody1
|
|
226
376
|
> = z.object({
|
|
227
|
-
type:
|
|
377
|
+
type: CreateBudgetRequestBodyType$outboundSchema,
|
|
228
378
|
entityId: z.string(),
|
|
229
|
-
period:
|
|
379
|
+
period: CreateBudgetRequestBodyPeriod$outboundSchema,
|
|
230
380
|
amount: z.number(),
|
|
231
381
|
}).transform((v) => {
|
|
232
382
|
return remap$(v, {
|
|
@@ -234,6 +384,58 @@ export const CreateBudgetRequestBody$outboundSchema: z.ZodType<
|
|
|
234
384
|
});
|
|
235
385
|
});
|
|
236
386
|
|
|
387
|
+
/**
|
|
388
|
+
* @internal
|
|
389
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
390
|
+
*/
|
|
391
|
+
export namespace RequestBody1$ {
|
|
392
|
+
/** @deprecated use `RequestBody1$inboundSchema` instead. */
|
|
393
|
+
export const inboundSchema = RequestBody1$inboundSchema;
|
|
394
|
+
/** @deprecated use `RequestBody1$outboundSchema` instead. */
|
|
395
|
+
export const outboundSchema = RequestBody1$outboundSchema;
|
|
396
|
+
/** @deprecated use `RequestBody1$Outbound` instead. */
|
|
397
|
+
export type Outbound = RequestBody1$Outbound;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
export function requestBody1ToJSON(requestBody1: RequestBody1): string {
|
|
401
|
+
return JSON.stringify(RequestBody1$outboundSchema.parse(requestBody1));
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
export function requestBody1FromJSON(
|
|
405
|
+
jsonString: string,
|
|
406
|
+
): SafeParseResult<RequestBody1, SDKValidationError> {
|
|
407
|
+
return safeParse(
|
|
408
|
+
jsonString,
|
|
409
|
+
(x) => RequestBody1$inboundSchema.parse(JSON.parse(x)),
|
|
410
|
+
`Failed to parse 'RequestBody1' from JSON`,
|
|
411
|
+
);
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
/** @internal */
|
|
415
|
+
export const CreateBudgetRequestBody$inboundSchema: z.ZodType<
|
|
416
|
+
CreateBudgetRequestBody,
|
|
417
|
+
z.ZodTypeDef,
|
|
418
|
+
unknown
|
|
419
|
+
> = z.union([
|
|
420
|
+
z.lazy(() => RequestBody1$inboundSchema),
|
|
421
|
+
z.lazy(() => RequestBody2$inboundSchema),
|
|
422
|
+
]);
|
|
423
|
+
|
|
424
|
+
/** @internal */
|
|
425
|
+
export type CreateBudgetRequestBody$Outbound =
|
|
426
|
+
| RequestBody1$Outbound
|
|
427
|
+
| RequestBody2$Outbound;
|
|
428
|
+
|
|
429
|
+
/** @internal */
|
|
430
|
+
export const CreateBudgetRequestBody$outboundSchema: z.ZodType<
|
|
431
|
+
CreateBudgetRequestBody$Outbound,
|
|
432
|
+
z.ZodTypeDef,
|
|
433
|
+
CreateBudgetRequestBody
|
|
434
|
+
> = z.union([
|
|
435
|
+
z.lazy(() => RequestBody1$outboundSchema),
|
|
436
|
+
z.lazy(() => RequestBody2$outboundSchema),
|
|
437
|
+
]);
|
|
438
|
+
|
|
237
439
|
/**
|
|
238
440
|
* @internal
|
|
239
441
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
@@ -266,24 +468,24 @@ export function createBudgetRequestBodyFromJSON(
|
|
|
266
468
|
}
|
|
267
469
|
|
|
268
470
|
/** @internal */
|
|
269
|
-
export const
|
|
270
|
-
typeof
|
|
271
|
-
> = z.nativeEnum(
|
|
471
|
+
export const CreateBudgetType$inboundSchema: z.ZodNativeEnum<
|
|
472
|
+
typeof CreateBudgetType
|
|
473
|
+
> = z.nativeEnum(CreateBudgetType);
|
|
272
474
|
|
|
273
475
|
/** @internal */
|
|
274
|
-
export const
|
|
275
|
-
typeof
|
|
276
|
-
> =
|
|
476
|
+
export const CreateBudgetType$outboundSchema: z.ZodNativeEnum<
|
|
477
|
+
typeof CreateBudgetType
|
|
478
|
+
> = CreateBudgetType$inboundSchema;
|
|
277
479
|
|
|
278
480
|
/**
|
|
279
481
|
* @internal
|
|
280
482
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
281
483
|
*/
|
|
282
|
-
export namespace
|
|
283
|
-
/** @deprecated use `
|
|
284
|
-
export const inboundSchema =
|
|
285
|
-
/** @deprecated use `
|
|
286
|
-
export const outboundSchema =
|
|
484
|
+
export namespace CreateBudgetType$ {
|
|
485
|
+
/** @deprecated use `CreateBudgetType$inboundSchema` instead. */
|
|
486
|
+
export const inboundSchema = CreateBudgetType$inboundSchema;
|
|
487
|
+
/** @deprecated use `CreateBudgetType$outboundSchema` instead. */
|
|
488
|
+
export const outboundSchema = CreateBudgetType$outboundSchema;
|
|
287
489
|
}
|
|
288
490
|
|
|
289
491
|
/** @internal */
|
|
@@ -444,7 +646,7 @@ export const CreateBudgetResponseBody$inboundSchema: z.ZodType<
|
|
|
444
646
|
unknown
|
|
445
647
|
> = z.object({
|
|
446
648
|
_id: z.string(),
|
|
447
|
-
type:
|
|
649
|
+
type: CreateBudgetType$inboundSchema,
|
|
448
650
|
contact_id: z.string().optional(),
|
|
449
651
|
api_key_id: z.string().optional(),
|
|
450
652
|
budget: z.lazy(() => CreateBudgetBudget$inboundSchema),
|
|
@@ -453,7 +655,7 @@ export const CreateBudgetResponseBody$inboundSchema: z.ZodType<
|
|
|
453
655
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
454
656
|
.optional(),
|
|
455
657
|
updated: z.string().datetime({ offset: true }).default(
|
|
456
|
-
"2025-08-
|
|
658
|
+
"2025-08-20T11:38:10.692Z",
|
|
457
659
|
).transform(v => new Date(v)),
|
|
458
660
|
}).transform((v) => {
|
|
459
661
|
return remap$(v, {
|
|
@@ -484,14 +686,14 @@ export const CreateBudgetResponseBody$outboundSchema: z.ZodType<
|
|
|
484
686
|
CreateBudgetResponseBody
|
|
485
687
|
> = z.object({
|
|
486
688
|
id: z.string(),
|
|
487
|
-
type:
|
|
689
|
+
type: CreateBudgetType$outboundSchema,
|
|
488
690
|
contactId: z.string().optional(),
|
|
489
691
|
apiKeyId: z.string().optional(),
|
|
490
692
|
budget: z.lazy(() => CreateBudgetBudget$outboundSchema),
|
|
491
693
|
isActive: z.boolean(),
|
|
492
694
|
consumption: z.lazy(() => Consumption$outboundSchema).optional(),
|
|
493
695
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
494
|
-
updated: z.date().default(() => new Date("2025-08-
|
|
696
|
+
updated: z.date().default(() => new Date("2025-08-20T11:38:10.692Z"))
|
|
495
697
|
.transform(v => v.toISOString()),
|
|
496
698
|
}).transform((v) => {
|
|
497
699
|
return remap$(v, {
|
|
@@ -182,7 +182,7 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
|
|
|
182
182
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
183
183
|
.optional(),
|
|
184
184
|
updated: z.string().datetime({ offset: true }).default(
|
|
185
|
-
"2025-08-
|
|
185
|
+
"2025-08-20T11:38:10.692Z",
|
|
186
186
|
).transform(v => new Date(v)),
|
|
187
187
|
}).transform((v) => {
|
|
188
188
|
return remap$(v, {
|
|
@@ -223,7 +223,7 @@ export const CreateContactResponseBody$outboundSchema: z.ZodType<
|
|
|
223
223
|
tags: z.array(z.string()).optional(),
|
|
224
224
|
metadata: z.record(z.any()).optional(),
|
|
225
225
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
226
|
-
updated: z.date().default(() => new Date("2025-08-
|
|
226
|
+
updated: z.date().default(() => new Date("2025-08-20T11:38:10.692Z"))
|
|
227
227
|
.transform(v => v.toISOString()),
|
|
228
228
|
}).transform((v) => {
|
|
229
229
|
return remap$(v, {
|
|
@@ -211,7 +211,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
211
211
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
212
212
|
.optional(),
|
|
213
213
|
updated: z.string().datetime({ offset: true }).default(
|
|
214
|
-
"2025-08-
|
|
214
|
+
"2025-08-20T11:38:10.692Z",
|
|
215
215
|
).transform(v => new Date(v)),
|
|
216
216
|
}).transform((v) => {
|
|
217
217
|
return remap$(v, {
|
|
@@ -251,7 +251,7 @@ export const CreateDatasetResponseBody$outboundSchema: z.ZodType<
|
|
|
251
251
|
updatedById: z.string().optional(),
|
|
252
252
|
metadata: z.lazy(() => CreateDatasetMetadata$outboundSchema),
|
|
253
253
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
254
|
-
updated: z.date().default(() => new Date("2025-08-
|
|
254
|
+
updated: z.date().default(() => new Date("2025-08-20T11:38:10.692Z"))
|
|
255
255
|
.transform(v => v.toISOString()),
|
|
256
256
|
}).transform((v) => {
|
|
257
257
|
return remap$(v, {
|
|
@@ -5100,7 +5100,7 @@ export const ResponseBody$inboundSchema: z.ZodType<
|
|
|
5100
5100
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
5101
5101
|
.optional(),
|
|
5102
5102
|
updated: z.string().datetime({ offset: true }).default(
|
|
5103
|
-
"2025-08-
|
|
5103
|
+
"2025-08-20T11:38:10.692Z",
|
|
5104
5104
|
).transform(v => new Date(v)),
|
|
5105
5105
|
}).transform((v) => {
|
|
5106
5106
|
return remap$(v, {
|
|
@@ -5164,7 +5164,7 @@ export const ResponseBody$outboundSchema: z.ZodType<
|
|
|
5164
5164
|
createdById: z.string().optional(),
|
|
5165
5165
|
updatedById: z.string().optional(),
|
|
5166
5166
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
5167
|
-
updated: z.date().default(() => new Date("2025-08-
|
|
5167
|
+
updated: z.date().default(() => new Date("2025-08-20T11:38:10.692Z"))
|
|
5168
5168
|
.transform(v => v.toISOString()),
|
|
5169
5169
|
}).transform((v) => {
|
|
5170
5170
|
return remap$(v, {
|
|
@@ -751,7 +751,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
751
751
|
z.ZodTypeDef,
|
|
752
752
|
unknown
|
|
753
753
|
> = z.object({
|
|
754
|
-
_id: z.string().default("
|
|
754
|
+
_id: z.string().default("01K33MBNM5XXND6M7TFEGC96HR"),
|
|
755
755
|
display_name: z.string(),
|
|
756
756
|
description: z.string().optional(),
|
|
757
757
|
status: CreateDatasourceStatus$inboundSchema,
|
|
@@ -795,7 +795,7 @@ export const CreateDatasourceResponseBody$outboundSchema: z.ZodType<
|
|
|
795
795
|
z.ZodTypeDef,
|
|
796
796
|
CreateDatasourceResponseBody
|
|
797
797
|
> = z.object({
|
|
798
|
-
id: z.string().default("
|
|
798
|
+
id: z.string().default("01K33MBNM5XXND6M7TFEGC96HR"),
|
|
799
799
|
displayName: z.string(),
|
|
800
800
|
description: z.string().optional(),
|
|
801
801
|
status: CreateDatasourceStatus$outboundSchema,
|
|
@@ -2399,8 +2399,8 @@ export const ResponseBodyPython$inboundSchema: z.ZodType<
|
|
|
2399
2399
|
> = z.object({
|
|
2400
2400
|
_id: z.string(),
|
|
2401
2401
|
description: z.string(),
|
|
2402
|
-
created: z.string().default("2025-08-
|
|
2403
|
-
updated: z.string().default("2025-08-
|
|
2402
|
+
created: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
2403
|
+
updated: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
2404
2404
|
guardrail_config: z.union([
|
|
2405
2405
|
z.lazy(() =>
|
|
2406
2406
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$inboundSchema
|
|
@@ -2442,8 +2442,8 @@ export const ResponseBodyPython$outboundSchema: z.ZodType<
|
|
|
2442
2442
|
> = z.object({
|
|
2443
2443
|
id: z.string(),
|
|
2444
2444
|
description: z.string(),
|
|
2445
|
-
created: z.string().default("2025-08-
|
|
2446
|
-
updated: z.string().default("2025-08-
|
|
2445
|
+
created: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
2446
|
+
updated: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
2447
2447
|
guardrailConfig: z.union([
|
|
2448
2448
|
z.lazy(() =>
|
|
2449
2449
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyNumber$outboundSchema
|
|
@@ -2856,8 +2856,8 @@ export const ResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
2856
2856
|
> = z.object({
|
|
2857
2857
|
_id: z.string(),
|
|
2858
2858
|
description: z.string(),
|
|
2859
|
-
created: z.string().default("2025-08-
|
|
2860
|
-
updated: z.string().default("2025-08-
|
|
2859
|
+
created: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
2860
|
+
updated: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
2861
2861
|
guardrail_config: z.union([
|
|
2862
2862
|
z.lazy(() =>
|
|
2863
2863
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$inboundSchema
|
|
@@ -2905,8 +2905,8 @@ export const ResponseBodyHTTP$outboundSchema: z.ZodType<
|
|
|
2905
2905
|
> = z.object({
|
|
2906
2906
|
id: z.string(),
|
|
2907
2907
|
description: z.string(),
|
|
2908
|
-
created: z.string().default("2025-08-
|
|
2909
|
-
updated: z.string().default("2025-08-
|
|
2908
|
+
created: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
2909
|
+
updated: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
2910
2910
|
guardrailConfig: z.union([
|
|
2911
2911
|
z.lazy(() =>
|
|
2912
2912
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONNumber$outboundSchema
|
|
@@ -3283,8 +3283,8 @@ export const ResponseBodyJSON$inboundSchema: z.ZodType<
|
|
|
3283
3283
|
> = z.object({
|
|
3284
3284
|
_id: z.string(),
|
|
3285
3285
|
description: z.string(),
|
|
3286
|
-
created: z.string().default("2025-08-
|
|
3287
|
-
updated: z.string().default("2025-08-
|
|
3286
|
+
created: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
3287
|
+
updated: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
3288
3288
|
guardrail_config: z.union([
|
|
3289
3289
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponse200Number$inboundSchema),
|
|
3290
3290
|
z.lazy(() =>
|
|
@@ -3324,8 +3324,8 @@ export const ResponseBodyJSON$outboundSchema: z.ZodType<
|
|
|
3324
3324
|
> = z.object({
|
|
3325
3325
|
id: z.string(),
|
|
3326
3326
|
description: z.string(),
|
|
3327
|
-
created: z.string().default("2025-08-
|
|
3328
|
-
updated: z.string().default("2025-08-
|
|
3327
|
+
created: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
3328
|
+
updated: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
3329
3329
|
guardrailConfig: z.union([
|
|
3330
3330
|
z.lazy(() =>
|
|
3331
3331
|
CreateEvalGuardrailConfigEvalsResponse200Number$outboundSchema
|
|
@@ -3680,8 +3680,8 @@ export const ResponseBodyLLM$inboundSchema: z.ZodType<
|
|
|
3680
3680
|
> = z.object({
|
|
3681
3681
|
_id: z.string(),
|
|
3682
3682
|
description: z.string(),
|
|
3683
|
-
created: z.string().default("2025-08-
|
|
3684
|
-
updated: z.string().default("2025-08-
|
|
3683
|
+
created: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
3684
|
+
updated: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
3685
3685
|
guardrail_config: z.union([
|
|
3686
3686
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
3687
3687
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
@@ -3721,8 +3721,8 @@ export const ResponseBodyLLM$outboundSchema: z.ZodType<
|
|
|
3721
3721
|
> = z.object({
|
|
3722
3722
|
id: z.string(),
|
|
3723
3723
|
description: z.string(),
|
|
3724
|
-
created: z.string().default("2025-08-
|
|
3725
|
-
updated: z.string().default("2025-08-
|
|
3724
|
+
created: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
3725
|
+
updated: z.string().default("2025-08-20T11:38:13.202Z"),
|
|
3726
3726
|
guardrailConfig: z.union([
|
|
3727
3727
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseNumber$outboundSchema),
|
|
3728
3728
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$outboundSchema),
|
|
@@ -260,6 +260,7 @@ export const Provider = {
|
|
|
260
260
|
Litellm: "litellm",
|
|
261
261
|
Openailike: "openailike",
|
|
262
262
|
Cerebras: "cerebras",
|
|
263
|
+
Bytedance: "bytedance",
|
|
263
264
|
} as const;
|
|
264
265
|
export type Provider = ClosedEnum<typeof Provider>;
|
|
265
266
|
|
|
@@ -757,6 +758,7 @@ export const CreatePromptProvider = {
|
|
|
757
758
|
Litellm: "litellm",
|
|
758
759
|
Openailike: "openailike",
|
|
759
760
|
Cerebras: "cerebras",
|
|
761
|
+
Bytedance: "bytedance",
|
|
760
762
|
} as const;
|
|
761
763
|
export type CreatePromptProvider = ClosedEnum<typeof CreatePromptProvider>;
|
|
762
764
|
|