@orq-ai/node 4.5.0-rc.24 → 4.5.0-rc.26
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/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/createagentresponse.d.ts +5 -0
- package/models/components/createagentresponse.d.ts.map +1 -1
- package/models/components/createagentresponse.js +2 -0
- package/models/components/createagentresponse.js.map +1 -1
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/partdoneevent.js +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/responsedoneevent.d.ts +5 -0
- package/models/components/responsedoneevent.d.ts.map +1 -1
- package/models/components/responsedoneevent.js +2 -0
- package/models/components/responsedoneevent.js.map +1 -1
- package/models/components/responsestartedevent.d.ts +5 -0
- package/models/components/responsestartedevent.d.ts.map +1 -1
- package/models/components/responsestartedevent.js +2 -0
- package/models/components/responsestartedevent.js.map +1 -1
- package/models/components/telemetry.d.ts +20 -0
- package/models/components/telemetry.d.ts.map +1 -0
- package/models/components/telemetry.js +57 -0
- package/models/components/telemetry.js.map +1 -0
- package/models/operations/createagentrequest.d.ts +16 -460
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +21 -299
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createcontact.js +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/createeval.js +16 -16
- package/models/operations/createidentity.js +1 -1
- package/models/operations/createprompt.d.ts +30 -30
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +31 -29
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/fileget.js +1 -1
- package/models/operations/filelist.js +1 -1
- package/models/operations/fileupload.js +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/listagents.d.ts +0 -202
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +2 -139
- package/models/operations/listagents.js.map +1 -1
- 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.js +1 -1
- package/models/operations/retrieveagentrequest.d.ts +0 -202
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +2 -140
- package/models/operations/retrieveagentrequest.js.map +1 -1
- 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.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.d.ts +12 -254
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +16 -153
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +12 -254
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +15 -152
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +16 -460
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +21 -298
- package/models/operations/updateagent.js.map +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/updateeval.js +16 -16
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/createagentresponse.ts +6 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/components/partdoneevent.ts +1 -1
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/responsedoneevent.ts +6 -0
- package/src/models/components/responsestartedevent.ts +6 -0
- package/src/models/components/telemetry.ts +48 -0
- package/src/models/operations/createagentrequest.ts +49 -860
- package/src/models/operations/createcontact.ts +1 -1
- 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/createeval.ts +16 -16
- package/src/models/operations/createidentity.ts +1 -1
- package/src/models/operations/createprompt.ts +55 -66
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/fileget.ts +1 -1
- package/src/models/operations/filelist.ts +1 -1
- package/src/models/operations/fileupload.ts +1 -1
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/listagents.ts +0 -393
- 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 +1 -1
- package/src/models/operations/retrieveagentrequest.ts +0 -402
- 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 +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +35 -473
- package/src/models/operations/streamrunagent.ts +35 -492
- package/src/models/operations/updateagent.ts +36 -874
- 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/updateeval.ts +16 -16
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updatetool.ts +7 -7
|
@@ -134,7 +134,7 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
|
|
|
134
134
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
135
135
|
.optional(),
|
|
136
136
|
updated: z.string().datetime({ offset: true }).default(
|
|
137
|
-
"2026-03-
|
|
137
|
+
"2026-03-04T12:47:35.808Z",
|
|
138
138
|
).transform(v => new Date(v)),
|
|
139
139
|
}).transform((v) => {
|
|
140
140
|
return remap$(v, {
|
|
@@ -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-03-
|
|
141
|
+
"2026-03-04T12:47:35.808Z",
|
|
142
142
|
).transform(v => new Date(v)),
|
|
143
143
|
}).transform((v) => {
|
|
144
144
|
return remap$(v, {
|
|
@@ -2353,7 +2353,7 @@ export const Evaluations3$inboundSchema: z.ZodType<
|
|
|
2353
2353
|
),
|
|
2354
2354
|
reviewed_by_id: z.string(),
|
|
2355
2355
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2356
|
-
"2026-03-
|
|
2356
|
+
"2026-03-04T12:47:51.716Z",
|
|
2357
2357
|
).transform(v => new Date(v)),
|
|
2358
2358
|
type: z.literal("string_array"),
|
|
2359
2359
|
values: z.array(z.string()),
|
|
@@ -2398,7 +2398,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
|
|
|
2398
2398
|
source: CreateDatasetItemEvaluationsSource$inboundSchema.default("orq"),
|
|
2399
2399
|
reviewed_by_id: z.string(),
|
|
2400
2400
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2401
|
-
"2026-03-
|
|
2401
|
+
"2026-03-04T12:47:51.715Z",
|
|
2402
2402
|
).transform(v => new Date(v)),
|
|
2403
2403
|
type: z.literal("number"),
|
|
2404
2404
|
value: z.number(),
|
|
@@ -2443,7 +2443,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
|
|
|
2443
2443
|
source: EvaluationsSource$inboundSchema.default("orq"),
|
|
2444
2444
|
reviewed_by_id: z.string(),
|
|
2445
2445
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2446
|
-
"2026-03-
|
|
2446
|
+
"2026-03-04T12:47:51.714Z",
|
|
2447
2447
|
).transform(v => new Date(v)),
|
|
2448
2448
|
type: z.literal("string"),
|
|
2449
2449
|
value: z.string(),
|
|
@@ -2526,7 +2526,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
|
|
|
2526
2526
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2527
2527
|
.optional(),
|
|
2528
2528
|
updated: z.string().datetime({ offset: true }).default(
|
|
2529
|
-
"2026-03-
|
|
2529
|
+
"2026-03-04T12:47:35.808Z",
|
|
2530
2530
|
).transform(v => new Date(v)),
|
|
2531
2531
|
}).transform((v) => {
|
|
2532
2532
|
return remap$(v, {
|
|
@@ -403,7 +403,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
403
403
|
z.ZodTypeDef,
|
|
404
404
|
unknown
|
|
405
405
|
> = z.object({
|
|
406
|
-
_id: z.string().default("
|
|
406
|
+
_id: z.string().default("01KJWE7VSHVCZVATHT9YQ6DE45"),
|
|
407
407
|
display_name: z.string(),
|
|
408
408
|
description: z.string().optional(),
|
|
409
409
|
status: CreateDatasourceStatus$inboundSchema,
|
|
@@ -2245,8 +2245,8 @@ export const Typescript$inboundSchema: z.ZodType<
|
|
|
2245
2245
|
> = z.object({
|
|
2246
2246
|
_id: z.string(),
|
|
2247
2247
|
description: z.string(),
|
|
2248
|
-
created: z.string().default("2026-03-
|
|
2249
|
-
updated: z.string().default("2026-03-
|
|
2248
|
+
created: z.string().default("2026-03-04T12:47:37.126Z"),
|
|
2249
|
+
updated: z.string().default("2026-03-04T12:47:37.126Z"),
|
|
2250
2250
|
guardrail_config: z.union([
|
|
2251
2251
|
z.lazy(() =>
|
|
2252
2252
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody7Boolean$inboundSchema
|
|
@@ -2394,8 +2394,8 @@ export const Ragas$inboundSchema: z.ZodType<Ragas, z.ZodTypeDef, unknown> = z
|
|
|
2394
2394
|
.object({
|
|
2395
2395
|
_id: z.string(),
|
|
2396
2396
|
description: z.string(),
|
|
2397
|
-
created: z.string().default("2026-03-
|
|
2398
|
-
updated: z.string().default("2026-03-
|
|
2397
|
+
created: z.string().default("2026-03-04T12:47:37.126Z"),
|
|
2398
|
+
updated: z.string().default("2026-03-04T12:47:37.126Z"),
|
|
2399
2399
|
guardrail_config: z.union([
|
|
2400
2400
|
z.lazy(() =>
|
|
2401
2401
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody6Boolean$inboundSchema
|
|
@@ -3178,8 +3178,8 @@ export const CreateEvalResponseBodyFunction$inboundSchema: z.ZodType<
|
|
|
3178
3178
|
> = z.object({
|
|
3179
3179
|
_id: z.string(),
|
|
3180
3180
|
description: z.string(),
|
|
3181
|
-
created: z.string().default("2026-03-
|
|
3182
|
-
updated: z.string().default("2026-03-
|
|
3181
|
+
created: z.string().default("2026-03-04T12:47:37.126Z"),
|
|
3182
|
+
updated: z.string().default("2026-03-04T12:47:37.126Z"),
|
|
3183
3183
|
guardrail_config: z.union([
|
|
3184
3184
|
z.lazy(() =>
|
|
3185
3185
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBodyBoolean$inboundSchema
|
|
@@ -3357,8 +3357,8 @@ export const ResponseBodyPython$inboundSchema: z.ZodType<
|
|
|
3357
3357
|
> = z.object({
|
|
3358
3358
|
_id: z.string(),
|
|
3359
3359
|
description: z.string(),
|
|
3360
|
-
created: z.string().default("2026-03-
|
|
3361
|
-
updated: z.string().default("2026-03-
|
|
3360
|
+
created: z.string().default("2026-03-04T12:47:37.126Z"),
|
|
3361
|
+
updated: z.string().default("2026-03-04T12:47:37.126Z"),
|
|
3362
3362
|
guardrail_config: z.union([
|
|
3363
3363
|
z.lazy(() =>
|
|
3364
3364
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONBoolean$inboundSchema
|
|
@@ -3498,8 +3498,8 @@ export const ResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
3498
3498
|
> = z.object({
|
|
3499
3499
|
_id: z.string(),
|
|
3500
3500
|
description: z.string(),
|
|
3501
|
-
created: z.string().default("2026-03-
|
|
3502
|
-
updated: z.string().default("2026-03-
|
|
3501
|
+
created: z.string().default("2026-03-04T12:47:37.126Z"),
|
|
3502
|
+
updated: z.string().default("2026-03-04T12:47:37.126Z"),
|
|
3503
3503
|
guardrail_config: z.union([
|
|
3504
3504
|
z.lazy(() =>
|
|
3505
3505
|
CreateEvalGuardrailConfigEvalsResponse200Boolean$inboundSchema
|
|
@@ -3634,8 +3634,8 @@ export const ResponseBodyJSON$inboundSchema: z.ZodType<
|
|
|
3634
3634
|
> = z.object({
|
|
3635
3635
|
_id: z.string(),
|
|
3636
3636
|
description: z.string(),
|
|
3637
|
-
created: z.string().default("2026-03-
|
|
3638
|
-
updated: z.string().default("2026-03-
|
|
3637
|
+
created: z.string().default("2026-03-04T12:47:37.126Z"),
|
|
3638
|
+
updated: z.string().default("2026-03-04T12:47:37.126Z"),
|
|
3639
3639
|
guardrail_config: z.union([
|
|
3640
3640
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
3641
3641
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
@@ -3944,8 +3944,8 @@ export const CreateEvalLlm2$inboundSchema: z.ZodType<
|
|
|
3944
3944
|
> = z.object({
|
|
3945
3945
|
_id: z.string(),
|
|
3946
3946
|
description: z.string(),
|
|
3947
|
-
created: z.string().default("2026-03-
|
|
3948
|
-
updated: z.string().default("2026-03-
|
|
3947
|
+
created: z.string().default("2026-03-04T12:47:37.126Z"),
|
|
3948
|
+
updated: z.string().default("2026-03-04T12:47:37.126Z"),
|
|
3949
3949
|
guardrail_config: z.union([
|
|
3950
3950
|
z.lazy(() =>
|
|
3951
3951
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1LLMBoolean$inboundSchema
|
|
@@ -4088,8 +4088,8 @@ export const CreateEvalLlm1$inboundSchema: z.ZodType<
|
|
|
4088
4088
|
> = z.object({
|
|
4089
4089
|
_id: z.string(),
|
|
4090
4090
|
description: z.string(),
|
|
4091
|
-
created: z.string().default("2026-03-
|
|
4092
|
-
updated: z.string().default("2026-03-
|
|
4091
|
+
created: z.string().default("2026-03-04T12:47:37.126Z"),
|
|
4092
|
+
updated: z.string().default("2026-03-04T12:47:37.126Z"),
|
|
4093
4093
|
guardrail_config: z.union([
|
|
4094
4094
|
z.lazy(() =>
|
|
4095
4095
|
CreateEvalGuardrailConfigEvalsResponse200ApplicationJSONResponseBody1Boolean$inboundSchema
|
|
@@ -139,7 +139,7 @@ export const CreateIdentityResponseBody$inboundSchema: z.ZodType<
|
|
|
139
139
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
140
140
|
.optional(),
|
|
141
141
|
updated: z.string().datetime({ offset: true }).default(
|
|
142
|
-
"2026-03-
|
|
142
|
+
"2026-03-04T12:47:35.808Z",
|
|
143
143
|
).transform(v => new Date(v)),
|
|
144
144
|
}).transform((v) => {
|
|
145
145
|
return remap$(v, {
|
|
@@ -394,7 +394,7 @@ export type CreatePromptMessages =
|
|
|
394
394
|
/**
|
|
395
395
|
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
396
396
|
*/
|
|
397
|
-
export const
|
|
397
|
+
export const Voice = {
|
|
398
398
|
Alloy: "alloy",
|
|
399
399
|
Echo: "echo",
|
|
400
400
|
Fable: "fable",
|
|
@@ -405,12 +405,12 @@ export const CreatePromptVoice = {
|
|
|
405
405
|
/**
|
|
406
406
|
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
407
407
|
*/
|
|
408
|
-
export type
|
|
408
|
+
export type Voice = ClosedEnum<typeof Voice>;
|
|
409
409
|
|
|
410
410
|
/**
|
|
411
411
|
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
412
412
|
*/
|
|
413
|
-
export const
|
|
413
|
+
export const Format = {
|
|
414
414
|
Wav: "wav",
|
|
415
415
|
Mp3: "mp3",
|
|
416
416
|
Flac: "flac",
|
|
@@ -420,7 +420,7 @@ export const CreatePromptFormat = {
|
|
|
420
420
|
/**
|
|
421
421
|
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
422
422
|
*/
|
|
423
|
-
export type
|
|
423
|
+
export type Format = ClosedEnum<typeof Format>;
|
|
424
424
|
|
|
425
425
|
/**
|
|
426
426
|
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
@@ -429,11 +429,11 @@ export type CreatePromptAudio = {
|
|
|
429
429
|
/**
|
|
430
430
|
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
431
431
|
*/
|
|
432
|
-
voice:
|
|
432
|
+
voice: Voice;
|
|
433
433
|
/**
|
|
434
434
|
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
435
435
|
*/
|
|
436
|
-
format:
|
|
436
|
+
format: Format;
|
|
437
437
|
};
|
|
438
438
|
|
|
439
439
|
export type CreatePromptResponseFormatPromptsJsonSchema = {
|
|
@@ -535,7 +535,7 @@ export type CreatePromptStop = string | Array<string>;
|
|
|
535
535
|
/**
|
|
536
536
|
* Options for streaming response. Only set this when you set stream: true.
|
|
537
537
|
*/
|
|
538
|
-
export type
|
|
538
|
+
export type StreamOptions = {
|
|
539
539
|
/**
|
|
540
540
|
* If set, an additional chunk will be streamed before the data: [DONE] message. The usage field on this chunk shows the token usage statistics for the entire request, and the choices field will always be an empty array. All other chunks will also include a usage field, but with a null value.
|
|
541
541
|
*/
|
|
@@ -799,7 +799,7 @@ export type PromptInput = {
|
|
|
799
799
|
/**
|
|
800
800
|
* Options for streaming response. Only set this when you set stream: true.
|
|
801
801
|
*/
|
|
802
|
-
streamOptions?:
|
|
802
|
+
streamOptions?: StreamOptions | null | undefined;
|
|
803
803
|
thinking?:
|
|
804
804
|
| components.ThinkingConfigDisabledSchema
|
|
805
805
|
| components.ThinkingConfigEnabledSchema
|
|
@@ -910,7 +910,7 @@ export type ModelType = ClosedEnum<typeof ModelType>;
|
|
|
910
910
|
/**
|
|
911
911
|
* Only supported on `image` models.
|
|
912
912
|
*/
|
|
913
|
-
export const
|
|
913
|
+
export const CreatePromptFormat = {
|
|
914
914
|
Url: "url",
|
|
915
915
|
B64Json: "b64_json",
|
|
916
916
|
Text: "text",
|
|
@@ -919,9 +919,7 @@ export const CreatePromptPromptsFormat = {
|
|
|
919
919
|
/**
|
|
920
920
|
* Only supported on `image` models.
|
|
921
921
|
*/
|
|
922
|
-
export type
|
|
923
|
-
typeof CreatePromptPromptsFormat
|
|
924
|
-
>;
|
|
922
|
+
export type CreatePromptFormat = ClosedEnum<typeof CreatePromptFormat>;
|
|
925
923
|
|
|
926
924
|
export const CreatePromptResponseFormat6 = {
|
|
927
925
|
Json: "json",
|
|
@@ -1138,7 +1136,7 @@ export type ModelParameters = {
|
|
|
1138
1136
|
/**
|
|
1139
1137
|
* Only supported on `image` models.
|
|
1140
1138
|
*/
|
|
1141
|
-
format?:
|
|
1139
|
+
format?: CreatePromptFormat | undefined;
|
|
1142
1140
|
/**
|
|
1143
1141
|
* Only supported on `image` models.
|
|
1144
1142
|
*/
|
|
@@ -1388,7 +1386,7 @@ export type PromptConfig = {
|
|
|
1388
1386
|
/**
|
|
1389
1387
|
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
1390
1388
|
*/
|
|
1391
|
-
export const
|
|
1389
|
+
export const CreatePromptVoice = {
|
|
1392
1390
|
Alloy: "alloy",
|
|
1393
1391
|
Echo: "echo",
|
|
1394
1392
|
Fable: "fable",
|
|
@@ -1399,14 +1397,12 @@ export const CreatePromptPromptsVoice = {
|
|
|
1399
1397
|
/**
|
|
1400
1398
|
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
1401
1399
|
*/
|
|
1402
|
-
export type
|
|
1403
|
-
typeof CreatePromptPromptsVoice
|
|
1404
|
-
>;
|
|
1400
|
+
export type CreatePromptVoice = ClosedEnum<typeof CreatePromptVoice>;
|
|
1405
1401
|
|
|
1406
1402
|
/**
|
|
1407
1403
|
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
1408
1404
|
*/
|
|
1409
|
-
export const
|
|
1405
|
+
export const CreatePromptPromptsFormat = {
|
|
1410
1406
|
Wav: "wav",
|
|
1411
1407
|
Mp3: "mp3",
|
|
1412
1408
|
Flac: "flac",
|
|
@@ -1416,8 +1412,8 @@ export const CreatePromptPromptsResponse200Format = {
|
|
|
1416
1412
|
/**
|
|
1417
1413
|
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
1418
1414
|
*/
|
|
1419
|
-
export type
|
|
1420
|
-
typeof
|
|
1415
|
+
export type CreatePromptPromptsFormat = ClosedEnum<
|
|
1416
|
+
typeof CreatePromptPromptsFormat
|
|
1421
1417
|
>;
|
|
1422
1418
|
|
|
1423
1419
|
/**
|
|
@@ -1427,11 +1423,11 @@ export type CreatePromptPromptsAudio = {
|
|
|
1427
1423
|
/**
|
|
1428
1424
|
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
1429
1425
|
*/
|
|
1430
|
-
voice:
|
|
1426
|
+
voice: CreatePromptVoice;
|
|
1431
1427
|
/**
|
|
1432
1428
|
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
1433
1429
|
*/
|
|
1434
|
-
format:
|
|
1430
|
+
format: CreatePromptPromptsFormat;
|
|
1435
1431
|
};
|
|
1436
1432
|
|
|
1437
1433
|
export type CreatePromptResponseFormatPromptsResponseJsonSchema = {
|
|
@@ -1533,7 +1529,7 @@ export type CreatePromptPromptsStop = string | Array<string>;
|
|
|
1533
1529
|
/**
|
|
1534
1530
|
* Options for streaming response. Only set this when you set stream: true.
|
|
1535
1531
|
*/
|
|
1536
|
-
export type
|
|
1532
|
+
export type CreatePromptStreamOptions = {
|
|
1537
1533
|
/**
|
|
1538
1534
|
* If set, an additional chunk will be streamed before the data: [DONE] message. The usage field on this chunk shows the token usage statistics for the entire request, and the choices field will always be an empty array. All other chunks will also include a usage field, but with a null value.
|
|
1539
1535
|
*/
|
|
@@ -2123,7 +2119,7 @@ export type PromptField = {
|
|
|
2123
2119
|
/**
|
|
2124
2120
|
* Options for streaming response. Only set this when you set stream: true.
|
|
2125
2121
|
*/
|
|
2126
|
-
streamOptions?:
|
|
2122
|
+
streamOptions?: CreatePromptStreamOptions | null | undefined;
|
|
2127
2123
|
thinking?:
|
|
2128
2124
|
| components.ThinkingConfigDisabledSchema
|
|
2129
2125
|
| components.ThinkingConfigEnabledSchema
|
|
@@ -2926,14 +2922,13 @@ export function createPromptMessagesToJSON(
|
|
|
2926
2922
|
}
|
|
2927
2923
|
|
|
2928
2924
|
/** @internal */
|
|
2929
|
-
export const
|
|
2930
|
-
|
|
2931
|
-
|
|
2925
|
+
export const Voice$outboundSchema: z.ZodNativeEnum<typeof Voice> = z.nativeEnum(
|
|
2926
|
+
Voice,
|
|
2927
|
+
);
|
|
2932
2928
|
|
|
2933
2929
|
/** @internal */
|
|
2934
|
-
export const
|
|
2935
|
-
|
|
2936
|
-
> = z.nativeEnum(CreatePromptFormat);
|
|
2930
|
+
export const Format$outboundSchema: z.ZodNativeEnum<typeof Format> = z
|
|
2931
|
+
.nativeEnum(Format);
|
|
2937
2932
|
|
|
2938
2933
|
/** @internal */
|
|
2939
2934
|
export type CreatePromptAudio$Outbound = {
|
|
@@ -2947,8 +2942,8 @@ export const CreatePromptAudio$outboundSchema: z.ZodType<
|
|
|
2947
2942
|
z.ZodTypeDef,
|
|
2948
2943
|
CreatePromptAudio
|
|
2949
2944
|
> = z.object({
|
|
2950
|
-
voice:
|
|
2951
|
-
format:
|
|
2945
|
+
voice: Voice$outboundSchema,
|
|
2946
|
+
format: Format$outboundSchema,
|
|
2952
2947
|
});
|
|
2953
2948
|
|
|
2954
2949
|
export function createPromptAudioToJSON(
|
|
@@ -3120,15 +3115,15 @@ export function createPromptStopToJSON(
|
|
|
3120
3115
|
}
|
|
3121
3116
|
|
|
3122
3117
|
/** @internal */
|
|
3123
|
-
export type
|
|
3118
|
+
export type StreamOptions$Outbound = {
|
|
3124
3119
|
include_usage?: boolean | undefined;
|
|
3125
3120
|
};
|
|
3126
3121
|
|
|
3127
3122
|
/** @internal */
|
|
3128
|
-
export const
|
|
3129
|
-
|
|
3123
|
+
export const StreamOptions$outboundSchema: z.ZodType<
|
|
3124
|
+
StreamOptions$Outbound,
|
|
3130
3125
|
z.ZodTypeDef,
|
|
3131
|
-
|
|
3126
|
+
StreamOptions
|
|
3132
3127
|
> = z.object({
|
|
3133
3128
|
includeUsage: z.boolean().optional(),
|
|
3134
3129
|
}).transform((v) => {
|
|
@@ -3137,12 +3132,8 @@ export const CreatePromptStreamOptions$outboundSchema: z.ZodType<
|
|
|
3137
3132
|
});
|
|
3138
3133
|
});
|
|
3139
3134
|
|
|
3140
|
-
export function
|
|
3141
|
-
|
|
3142
|
-
): string {
|
|
3143
|
-
return JSON.stringify(
|
|
3144
|
-
CreatePromptStreamOptions$outboundSchema.parse(createPromptStreamOptions),
|
|
3145
|
-
);
|
|
3135
|
+
export function streamOptionsToJSON(streamOptions: StreamOptions): string {
|
|
3136
|
+
return JSON.stringify(StreamOptions$outboundSchema.parse(streamOptions));
|
|
3146
3137
|
}
|
|
3147
3138
|
|
|
3148
3139
|
/** @internal */
|
|
@@ -3512,7 +3503,7 @@ export type PromptInput$Outbound = {
|
|
|
3512
3503
|
verbosity?: string | undefined;
|
|
3513
3504
|
seed?: number | null | undefined;
|
|
3514
3505
|
stop?: string | Array<string> | null | undefined;
|
|
3515
|
-
stream_options?:
|
|
3506
|
+
stream_options?: StreamOptions$Outbound | null | undefined;
|
|
3516
3507
|
thinking?:
|
|
3517
3508
|
| components.ThinkingConfigDisabledSchema$Outbound
|
|
3518
3509
|
| components.ThinkingConfigEnabledSchema$Outbound
|
|
@@ -3564,9 +3555,8 @@ export const PromptInput$outboundSchema: z.ZodType<
|
|
|
3564
3555
|
verbosity: z.string().optional(),
|
|
3565
3556
|
seed: z.nullable(z.number()).optional(),
|
|
3566
3557
|
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
3567
|
-
streamOptions: z.nullable(
|
|
3568
|
-
|
|
3569
|
-
).optional(),
|
|
3558
|
+
streamOptions: z.nullable(z.lazy(() => StreamOptions$outboundSchema))
|
|
3559
|
+
.optional(),
|
|
3570
3560
|
thinking: z.union([
|
|
3571
3561
|
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
3572
3562
|
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
@@ -3656,9 +3646,9 @@ export const ModelType$inboundSchema: z.ZodNativeEnum<typeof ModelType> = z
|
|
|
3656
3646
|
.nativeEnum(ModelType);
|
|
3657
3647
|
|
|
3658
3648
|
/** @internal */
|
|
3659
|
-
export const
|
|
3660
|
-
typeof
|
|
3661
|
-
> = z.nativeEnum(
|
|
3649
|
+
export const CreatePromptFormat$inboundSchema: z.ZodNativeEnum<
|
|
3650
|
+
typeof CreatePromptFormat
|
|
3651
|
+
> = z.nativeEnum(CreatePromptFormat);
|
|
3662
3652
|
|
|
3663
3653
|
/** @internal */
|
|
3664
3654
|
export const CreatePromptResponseFormat6$inboundSchema: z.ZodNativeEnum<
|
|
@@ -3865,7 +3855,7 @@ export const ModelParameters$inboundSchema: z.ZodType<
|
|
|
3865
3855
|
presencePenalty: z.number().optional(),
|
|
3866
3856
|
numImages: z.number().optional(),
|
|
3867
3857
|
seed: z.number().optional(),
|
|
3868
|
-
format:
|
|
3858
|
+
format: CreatePromptFormat$inboundSchema.optional(),
|
|
3869
3859
|
dimensions: z.string().optional(),
|
|
3870
3860
|
quality: z.string().optional(),
|
|
3871
3861
|
style: z.string().optional(),
|
|
@@ -4188,15 +4178,14 @@ export function promptConfigFromJSON(
|
|
|
4188
4178
|
}
|
|
4189
4179
|
|
|
4190
4180
|
/** @internal */
|
|
4191
|
-
export const
|
|
4192
|
-
typeof
|
|
4193
|
-
> = z.nativeEnum(
|
|
4181
|
+
export const CreatePromptVoice$inboundSchema: z.ZodNativeEnum<
|
|
4182
|
+
typeof CreatePromptVoice
|
|
4183
|
+
> = z.nativeEnum(CreatePromptVoice);
|
|
4194
4184
|
|
|
4195
4185
|
/** @internal */
|
|
4196
|
-
export const
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
);
|
|
4186
|
+
export const CreatePromptPromptsFormat$inboundSchema: z.ZodNativeEnum<
|
|
4187
|
+
typeof CreatePromptPromptsFormat
|
|
4188
|
+
> = z.nativeEnum(CreatePromptPromptsFormat);
|
|
4200
4189
|
|
|
4201
4190
|
/** @internal */
|
|
4202
4191
|
export const CreatePromptPromptsAudio$inboundSchema: z.ZodType<
|
|
@@ -4204,8 +4193,8 @@ export const CreatePromptPromptsAudio$inboundSchema: z.ZodType<
|
|
|
4204
4193
|
z.ZodTypeDef,
|
|
4205
4194
|
unknown
|
|
4206
4195
|
> = z.object({
|
|
4207
|
-
voice:
|
|
4208
|
-
format:
|
|
4196
|
+
voice: CreatePromptVoice$inboundSchema,
|
|
4197
|
+
format: CreatePromptPromptsFormat$inboundSchema,
|
|
4209
4198
|
});
|
|
4210
4199
|
|
|
4211
4200
|
export function createPromptPromptsAudioFromJSON(
|
|
@@ -4371,8 +4360,8 @@ export function createPromptPromptsStopFromJSON(
|
|
|
4371
4360
|
}
|
|
4372
4361
|
|
|
4373
4362
|
/** @internal */
|
|
4374
|
-
export const
|
|
4375
|
-
|
|
4363
|
+
export const CreatePromptStreamOptions$inboundSchema: z.ZodType<
|
|
4364
|
+
CreatePromptStreamOptions,
|
|
4376
4365
|
z.ZodTypeDef,
|
|
4377
4366
|
unknown
|
|
4378
4367
|
> = z.object({
|
|
@@ -4383,13 +4372,13 @@ export const CreatePromptPromptsStreamOptions$inboundSchema: z.ZodType<
|
|
|
4383
4372
|
});
|
|
4384
4373
|
});
|
|
4385
4374
|
|
|
4386
|
-
export function
|
|
4375
|
+
export function createPromptStreamOptionsFromJSON(
|
|
4387
4376
|
jsonString: string,
|
|
4388
|
-
): SafeParseResult<
|
|
4377
|
+
): SafeParseResult<CreatePromptStreamOptions, SDKValidationError> {
|
|
4389
4378
|
return safeParse(
|
|
4390
4379
|
jsonString,
|
|
4391
|
-
(x) =>
|
|
4392
|
-
`Failed to parse '
|
|
4380
|
+
(x) => CreatePromptStreamOptions$inboundSchema.parse(JSON.parse(x)),
|
|
4381
|
+
`Failed to parse 'CreatePromptStreamOptions' from JSON`,
|
|
4393
4382
|
);
|
|
4394
4383
|
}
|
|
4395
4384
|
|
|
@@ -5264,7 +5253,7 @@ export const PromptField$inboundSchema: z.ZodType<
|
|
|
5264
5253
|
seed: z.nullable(z.number()).optional(),
|
|
5265
5254
|
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
5266
5255
|
stream_options: z.nullable(
|
|
5267
|
-
z.lazy(() =>
|
|
5256
|
+
z.lazy(() => CreatePromptStreamOptions$inboundSchema),
|
|
5268
5257
|
).optional(),
|
|
5269
5258
|
thinking: z.union([
|
|
5270
5259
|
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
@@ -1899,7 +1899,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1899
1899
|
z.ZodTypeDef,
|
|
1900
1900
|
unknown
|
|
1901
1901
|
> = z.object({
|
|
1902
|
-
_id: z.string().default("
|
|
1902
|
+
_id: z.string().default("tool_01KJWE7VM9ETXNDV007NHX37QR"),
|
|
1903
1903
|
path: z.string(),
|
|
1904
1904
|
key: z.string(),
|
|
1905
1905
|
display_name: z.string().optional(),
|
|
@@ -1998,7 +1998,7 @@ export const ResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
1998
1998
|
z.ZodTypeDef,
|
|
1999
1999
|
unknown
|
|
2000
2000
|
> = z.object({
|
|
2001
|
-
id: z.string().default("
|
|
2001
|
+
id: z.string().default("01KJWE7VM8VV51AKCPJZSGR7S4"),
|
|
2002
2002
|
name: z.string(),
|
|
2003
2003
|
description: z.string().optional(),
|
|
2004
2004
|
schema: z.lazy(() => CreateToolResponseBodySchema$inboundSchema),
|
|
@@ -2052,7 +2052,7 @@ export const ResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
2052
2052
|
z.ZodTypeDef,
|
|
2053
2053
|
unknown
|
|
2054
2054
|
> = z.object({
|
|
2055
|
-
_id: z.string().default("
|
|
2055
|
+
_id: z.string().default("tool_01KJWE7VM68K8HXPAR82JAYWZZ"),
|
|
2056
2056
|
path: z.string(),
|
|
2057
2057
|
key: z.string(),
|
|
2058
2058
|
display_name: z.string().optional(),
|
|
@@ -2240,7 +2240,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
2240
2240
|
z.ZodTypeDef,
|
|
2241
2241
|
unknown
|
|
2242
2242
|
> = z.object({
|
|
2243
|
-
_id: z.string().default("
|
|
2243
|
+
_id: z.string().default("tool_01KJWE7VM157X00ZCZAEKB7X7F"),
|
|
2244
2244
|
path: z.string(),
|
|
2245
2245
|
key: z.string(),
|
|
2246
2246
|
display_name: z.string().optional(),
|
|
@@ -2335,7 +2335,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
2335
2335
|
z.ZodTypeDef,
|
|
2336
2336
|
unknown
|
|
2337
2337
|
> = z.object({
|
|
2338
|
-
_id: z.string().default("
|
|
2338
|
+
_id: z.string().default("tool_01KJWE7VKQ8HJSADY06XRJEW5Q"),
|
|
2339
2339
|
path: z.string(),
|
|
2340
2340
|
key: z.string(),
|
|
2341
2341
|
display_name: z.string().optional(),
|
|
@@ -2438,7 +2438,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
2438
2438
|
z.ZodTypeDef,
|
|
2439
2439
|
unknown
|
|
2440
2440
|
> = z.object({
|
|
2441
|
-
_id: z.string().default("
|
|
2441
|
+
_id: z.string().default("tool_01KJWE7VKPT60T1DFK86P420H7"),
|
|
2442
2442
|
path: z.string(),
|
|
2443
2443
|
key: z.string(),
|
|
2444
2444
|
display_name: z.string().optional(),
|
|
@@ -94,7 +94,7 @@ export const FileGetResponseBody$inboundSchema: z.ZodType<
|
|
|
94
94
|
file_name: z.string(),
|
|
95
95
|
workspace_id: z.string(),
|
|
96
96
|
created: z.string().datetime({ offset: true }).default(
|
|
97
|
-
"2026-03-
|
|
97
|
+
"2026-03-04T12:47:39.166Z",
|
|
98
98
|
).transform(v => new Date(v)),
|
|
99
99
|
}).transform((v) => {
|
|
100
100
|
return remap$(v, {
|
|
@@ -125,7 +125,7 @@ export const FileListData$inboundSchema: z.ZodType<
|
|
|
125
125
|
file_name: z.string(),
|
|
126
126
|
workspace_id: z.string(),
|
|
127
127
|
created: z.string().datetime({ offset: true }).default(
|
|
128
|
-
"2026-03-
|
|
128
|
+
"2026-03-04T12:47:39.166Z",
|
|
129
129
|
).transform(v => new Date(v)),
|
|
130
130
|
}).transform((v) => {
|
|
131
131
|
return remap$(v, {
|
|
@@ -148,7 +148,7 @@ export const FileUploadResponseBody$inboundSchema: z.ZodType<
|
|
|
148
148
|
file_name: z.string(),
|
|
149
149
|
workspace_id: z.string(),
|
|
150
150
|
created: z.string().datetime({ offset: true }).default(
|
|
151
|
-
"2026-03-
|
|
151
|
+
"2026-03-04T12:47:39.166Z",
|
|
152
152
|
).transform(v => new Date(v)),
|
|
153
153
|
}).transform((v) => {
|
|
154
154
|
return remap$(v, {
|
|
@@ -768,7 +768,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
768
768
|
z.ZodTypeDef,
|
|
769
769
|
unknown
|
|
770
770
|
> = z.object({
|
|
771
|
-
_id: z.string().default("
|
|
771
|
+
_id: z.string().default("tool_01KJWE7VK726WQ57Z78SKWW3PF"),
|
|
772
772
|
path: z.string(),
|
|
773
773
|
key: z.string(),
|
|
774
774
|
display_name: z.string().optional(),
|
|
@@ -867,7 +867,7 @@ export const DataTools$inboundSchema: z.ZodType<
|
|
|
867
867
|
z.ZodTypeDef,
|
|
868
868
|
unknown
|
|
869
869
|
> = z.object({
|
|
870
|
-
id: z.string().default("
|
|
870
|
+
id: z.string().default("01KJWE7VK6GGKDPF9B1XB9NNR3"),
|
|
871
871
|
name: z.string(),
|
|
872
872
|
description: z.string().optional(),
|
|
873
873
|
schema: z.lazy(() => GetAllToolsDataSchema$inboundSchema),
|
|
@@ -918,7 +918,7 @@ export const DataMCPTool$inboundSchema: z.ZodType<
|
|
|
918
918
|
z.ZodTypeDef,
|
|
919
919
|
unknown
|
|
920
920
|
> = z.object({
|
|
921
|
-
_id: z.string().default("
|
|
921
|
+
_id: z.string().default("tool_01KJWE7VK54C7VJVGF6PTRYSYC"),
|
|
922
922
|
path: z.string(),
|
|
923
923
|
key: z.string(),
|
|
924
924
|
display_name: z.string().optional(),
|
|
@@ -1105,7 +1105,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
|
|
|
1105
1105
|
z.ZodTypeDef,
|
|
1106
1106
|
unknown
|
|
1107
1107
|
> = z.object({
|
|
1108
|
-
_id: z.string().default("
|
|
1108
|
+
_id: z.string().default("tool_01KJWE7VK3KAWGGFRKMVM5P6XX"),
|
|
1109
1109
|
path: z.string(),
|
|
1110
1110
|
key: z.string(),
|
|
1111
1111
|
display_name: z.string().optional(),
|
|
@@ -1200,7 +1200,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1200
1200
|
z.ZodTypeDef,
|
|
1201
1201
|
unknown
|
|
1202
1202
|
> = z.object({
|
|
1203
|
-
_id: z.string().default("
|
|
1203
|
+
_id: z.string().default("tool_01KJWE7VK114F731NFNDVYWTS4"),
|
|
1204
1204
|
path: z.string(),
|
|
1205
1205
|
key: z.string(),
|
|
1206
1206
|
display_name: z.string().optional(),
|
|
@@ -1304,7 +1304,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
|
|
|
1304
1304
|
z.ZodTypeDef,
|
|
1305
1305
|
unknown
|
|
1306
1306
|
> = z.object({
|
|
1307
|
-
_id: z.string().default("
|
|
1307
|
+
_id: z.string().default("tool_01KJWE7VK0HG2Y7656ATBVNDK5"),
|
|
1308
1308
|
path: z.string(),
|
|
1309
1309
|
key: z.string(),
|
|
1310
1310
|
display_name: z.string().optional(),
|