@orq-ai/node 4.16.1 → 4.16.4
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/README.md +5 -3
- package/funcs/routerClassifyCreate.d.ts +10 -2
- package/funcs/routerClassifyCreate.d.ts.map +1 -1
- package/funcs/routerClassifyCreate.js +10 -2
- package/funcs/routerClassifyCreate.js.map +1 -1
- package/funcs/routerDecisionsCreate.d.ts +10 -2
- package/funcs/routerDecisionsCreate.d.ts.map +1 -1
- package/funcs/routerDecisionsCreate.js +11 -2
- package/funcs/routerDecisionsCreate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/classifycacheconfig.d.ts +33 -0
- package/models/components/classifycacheconfig.d.ts.map +1 -0
- package/models/components/classifycacheconfig.js +58 -0
- package/models/components/classifycacheconfig.js.map +1 -0
- package/models/components/classifytimeoutconfig.d.ts +15 -0
- package/models/components/classifytimeoutconfig.d.ts.map +1 -0
- package/models/components/classifytimeoutconfig.js +54 -0
- package/models/components/classifytimeoutconfig.js.map +1 -0
- package/models/components/environment.d.ts +1 -1
- package/models/components/index.d.ts +7 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +7 -0
- package/models/components/index.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/responsefunctioncallargumentsdonestreamevent.d.ts +4 -0
- package/models/components/responsefunctioncallargumentsdonestreamevent.d.ts.map +1 -1
- package/models/components/responsefunctioncallargumentsdonestreamevent.js +1 -0
- package/models/components/responsefunctioncallargumentsdonestreamevent.js.map +1 -1
- package/models/components/responseimagegenerationcallpartialimagestreamevent.d.ts +16 -0
- package/models/components/responseimagegenerationcallpartialimagestreamevent.d.ts.map +1 -1
- package/models/components/responseimagegenerationcallpartialimagestreamevent.js +5 -0
- package/models/components/responseimagegenerationcallpartialimagestreamevent.js.map +1 -1
- package/models/components/responsereasoningsummarypartaddedstreamevent.d.ts +4 -0
- package/models/components/responsereasoningsummarypartaddedstreamevent.d.ts.map +1 -1
- package/models/components/responsereasoningsummarypartaddedstreamevent.js +1 -0
- package/models/components/responsereasoningsummarypartaddedstreamevent.js.map +1 -1
- package/models/components/responsereasoningsummarypartdonestreamevent.d.ts +4 -0
- package/models/components/responsereasoningsummarypartdonestreamevent.d.ts.map +1 -1
- package/models/components/responsereasoningsummarypartdonestreamevent.js +1 -0
- package/models/components/responsereasoningsummarypartdonestreamevent.js.map +1 -1
- package/models/components/responseshellcallcommandaddedstreamevent.d.ts +35 -0
- package/models/components/responseshellcallcommandaddedstreamevent.d.ts.map +1 -0
- package/models/components/responseshellcallcommandaddedstreamevent.js +61 -0
- package/models/components/responseshellcallcommandaddedstreamevent.js.map +1 -0
- package/models/components/responseshellcallcommanddeltastreamevent.d.ts +39 -0
- package/models/components/responseshellcallcommanddeltastreamevent.d.ts.map +1 -0
- package/models/components/responseshellcallcommanddeltastreamevent.js +62 -0
- package/models/components/responseshellcallcommanddeltastreamevent.js.map +1 -0
- package/models/components/responseshellcallcommanddonestreamevent.d.ts +35 -0
- package/models/components/responseshellcallcommanddonestreamevent.d.ts.map +1 -0
- package/models/components/responseshellcallcommanddonestreamevent.js +61 -0
- package/models/components/responseshellcallcommanddonestreamevent.js.map +1 -0
- package/models/components/responseshellcalloutputcontentdeltastreamevent.d.ts +41 -0
- package/models/components/responseshellcalloutputcontentdeltastreamevent.d.ts.map +1 -0
- package/models/components/responseshellcalloutputcontentdeltastreamevent.js +63 -0
- package/models/components/responseshellcalloutputcontentdeltastreamevent.js.map +1 -0
- package/models/components/responseshellcalloutputcontentdonestreamevent.d.ts +38 -0
- package/models/components/responseshellcalloutputcontentdonestreamevent.d.ts.map +1 -0
- package/models/components/responseshellcalloutputcontentdonestreamevent.js +63 -0
- package/models/components/responseshellcalloutputcontentdonestreamevent.js.map +1 -0
- package/models/components/responsestreamevent.d.ts +6 -1
- package/models/components/responsestreamevent.d.ts.map +1 -1
- package/models/components/responsestreamevent.js +10 -0
- package/models/components/responsestreamevent.js.map +1 -1
- package/models/errors/createclassify.d.ts +23 -2
- package/models/errors/createclassify.d.ts.map +1 -1
- package/models/errors/createclassify.js +30 -2
- package/models/errors/createclassify.js.map +1 -1
- package/models/errors/createdecisions.d.ts +23 -2
- package/models/errors/createdecisions.d.ts.map +1 -1
- package/models/errors/createdecisions.js +30 -2
- package/models/errors/createdecisions.js.map +1 -1
- package/models/operations/createclassify.d.ts +4 -0
- package/models/operations/createclassify.d.ts.map +1 -1
- package/models/operations/createclassify.js +2 -0
- package/models/operations/createclassify.js.map +1 -1
- package/models/operations/createdecisions.d.ts +4 -0
- package/models/operations/createdecisions.d.ts.map +1 -1
- package/models/operations/createdecisions.js +2 -0
- package/models/operations/createdecisions.js.map +1 -1
- package/models/operations/createprompt.d.ts +2 -0
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +2 -0
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.js +4 -4
- package/models/operations/deploymentinvoke.d.ts +2 -0
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +2 -0
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deployments.d.ts +2 -0
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +2 -0
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +2 -0
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +2 -0
- package/models/operations/deploymentstream.js.map +1 -1
- package/models/operations/getallprompts.d.ts +2 -0
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +2 -0
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +4 -4
- package/models/operations/getoneprompt.d.ts +2 -0
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +2 -0
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +2 -0
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +2 -0
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listpromptversions.d.ts +2 -0
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +2 -0
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updateprompt.d.ts +2 -0
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +2 -0
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +6 -6
- package/packages/orq-rc/src/funcs/responsesCompact.ts +1 -1
- package/packages/orq-rc/src/funcs/routerAudioTranscriptionsCreate.ts +3 -0
- package/packages/orq-rc/src/funcs/routerAudioTranslationsCreate.ts +3 -0
- package/packages/orq-rc/src/funcs/routerClassifyCreate.ts +20 -1
- package/packages/orq-rc/src/funcs/routerDecisionsCreate.ts +17 -1
- package/packages/orq-rc/src/funcs/routerImagesEditsCreate.ts +3 -0
- package/packages/orq-rc/src/funcs/routerImagesVariationsCreate.ts +3 -0
- package/packages/orq-rc/src/funcs/routerModerationsCreate.ts +1 -1
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/models/components/classifycacheconfig.ts +59 -0
- package/packages/orq-rc/src/models/components/classifytimeoutconfig.ts +39 -0
- package/packages/orq-rc/src/models/components/environment.ts +1 -1
- package/packages/orq-rc/src/models/components/filecontentpartschema.ts +12 -3
- package/packages/orq-rc/src/models/components/index.ts +8 -1
- package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +2 -2
- package/packages/orq-rc/src/models/components/mcpgatewayplugin.ts +16 -0
- package/packages/orq-rc/src/models/components/modelsconfig.ts +13 -0
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/responsefunctioncallargumentsdonestreamevent.ts +5 -0
- package/packages/orq-rc/src/models/components/responseimagegenerationcallpartialimagestreamevent.ts +21 -0
- package/packages/orq-rc/src/models/components/responsereasoningsummarypartaddedstreamevent.ts +5 -0
- package/packages/orq-rc/src/models/components/responsereasoningsummarypartdonestreamevent.ts +5 -0
- package/packages/orq-rc/src/models/components/responseshellcallcommandaddedstreamevent.ts +78 -0
- package/packages/orq-rc/src/models/components/responseshellcallcommanddeltastreamevent.ts +83 -0
- package/packages/orq-rc/src/models/components/responseshellcallcommanddonestreamevent.ts +78 -0
- package/packages/orq-rc/src/models/components/responseshellcalloutputcontentdeltastreamevent.ts +85 -0
- package/packages/orq-rc/src/models/components/responseshellcalloutputcontentdonestreamevent.ts +82 -0
- package/packages/orq-rc/src/models/components/responsestreamevent.ts +30 -0
- package/packages/orq-rc/src/models/components/routingrulemodelsconfig.ts +16 -0
- package/packages/orq-rc/src/models/components/routingruleplugin.ts +22 -0
- package/packages/orq-rc/src/models/components/signalscheck.ts +51 -0
- package/packages/orq-rc/src/models/components/updateworkspacerequest.ts +4 -0
- package/packages/orq-rc/src/models/errors/createclassify.ts +54 -2
- package/packages/orq-rc/src/models/errors/createdecisions.ts +54 -2
- package/packages/orq-rc/src/models/errors/createmoderation.ts +2 -2
- package/packages/orq-rc/src/models/operations/compactresponse.ts +4 -4
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +26 -0
- package/packages/orq-rc/src/models/operations/createchatcompletion.ts +15 -1
- package/packages/orq-rc/src/models/operations/createclassify.ts +17 -0
- package/packages/orq-rc/src/models/operations/createcompletion.ts +14 -0
- package/packages/orq-rc/src/models/operations/createdecisions.ts +17 -0
- package/packages/orq-rc/src/models/operations/createembedding.ts +7 -0
- package/packages/orq-rc/src/models/operations/createimage.ts +14 -0
- package/packages/orq-rc/src/models/operations/createimageedit.ts +14 -0
- package/packages/orq-rc/src/models/operations/createimagevariation.ts +14 -0
- package/packages/orq-rc/src/models/operations/createmoderation.ts +3 -3
- package/packages/orq-rc/src/models/operations/createprompt.ts +17 -2
- package/packages/orq-rc/src/models/operations/creatererank.ts +14 -0
- package/packages/orq-rc/src/models/operations/createrouterresponse.ts +7 -0
- package/packages/orq-rc/src/models/operations/createspeech.ts +14 -0
- package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
- package/packages/orq-rc/src/models/operations/createtranscription.ts +14 -0
- package/packages/orq-rc/src/models/operations/createtranslation.ts +14 -0
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +2 -2
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +2 -0
- package/packages/orq-rc/src/models/operations/deployments.ts +2 -0
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +4 -2
- package/packages/orq-rc/src/models/operations/getallprompts.ts +9 -1
- package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +9 -1
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +9 -1
- package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/listagents.ts +12 -0
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +9 -1
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +12 -0
- package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
- package/packages/orq-rc/src/models/operations/runagent.ts +15 -1
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +15 -1
- package/packages/orq-rc/src/models/operations/tracesgetspan.ts +3 -0
- package/packages/orq-rc/src/models/operations/updateagent.ts +26 -0
- package/packages/orq-rc/src/models/operations/updateprompt.ts +17 -2
- package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
- package/packages/orq-rc/src/sdk/classify.ts +13 -1
- package/packages/orq-rc/src/sdk/decisions.ts +9 -1
- package/packages/orq-rc/src/sdk/responses.ts +1 -1
- package/sdk/classify.d.ts +9 -1
- package/sdk/classify.d.ts.map +1 -1
- package/sdk/classify.js +9 -1
- package/sdk/classify.js.map +1 -1
- package/sdk/decisions.d.ts +9 -1
- package/sdk/decisions.d.ts.map +1 -1
- package/sdk/decisions.js +9 -1
- package/sdk/decisions.js.map +1 -1
- package/src/funcs/routerClassifyCreate.ts +16 -1
- package/src/funcs/routerDecisionsCreate.ts +17 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/classifycacheconfig.ts +59 -0
- package/src/models/components/classifytimeoutconfig.ts +39 -0
- package/src/models/components/environment.ts +1 -1
- package/src/models/components/index.ts +7 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/responsefunctioncallargumentsdonestreamevent.ts +5 -0
- package/src/models/components/responseimagegenerationcallpartialimagestreamevent.ts +21 -0
- package/src/models/components/responsereasoningsummarypartaddedstreamevent.ts +5 -0
- package/src/models/components/responsereasoningsummarypartdonestreamevent.ts +5 -0
- package/src/models/components/responseshellcallcommandaddedstreamevent.ts +78 -0
- package/src/models/components/responseshellcallcommanddeltastreamevent.ts +83 -0
- package/src/models/components/responseshellcallcommanddonestreamevent.ts +78 -0
- package/src/models/components/responseshellcalloutputcontentdeltastreamevent.ts +85 -0
- package/src/models/components/responseshellcalloutputcontentdonestreamevent.ts +82 -0
- package/src/models/components/responsestreamevent.ts +30 -0
- package/src/models/errors/createclassify.ts +54 -2
- package/src/models/errors/createdecisions.ts +54 -2
- package/src/models/operations/createclassify.ts +6 -0
- package/src/models/operations/createdecisions.ts +6 -0
- package/src/models/operations/createprompt.ts +2 -0
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/deploymentinvoke.ts +2 -0
- package/src/models/operations/deployments.ts +2 -0
- package/src/models/operations/deploymentstream.ts +2 -0
- package/src/models/operations/getallprompts.ts +2 -0
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/getoneprompt.ts +2 -0
- package/src/models/operations/getpromptversion.ts +2 -0
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listpromptversions.ts +2 -0
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updateprompt.ts +2 -0
- package/src/models/operations/updatetool.ts +4 -4
- package/src/sdk/classify.ts +9 -1
- package/src/sdk/decisions.ts +9 -1
- package/packages/orq-rc/src/models/components/publiccompactionitem.ts +0 -79
|
@@ -285,7 +285,7 @@ export type UpdatePrompt24 = {
|
|
|
285
285
|
type: "file";
|
|
286
286
|
cacheControl?: UpdatePrompt2CacheControl | undefined;
|
|
287
287
|
/**
|
|
288
|
-
* File data for the content part. Must contain
|
|
288
|
+
* File data for the content part. Must contain exactly one of file_data, file_id or uri.
|
|
289
289
|
*/
|
|
290
290
|
file: components.FileContentPartSchema;
|
|
291
291
|
};
|
|
@@ -883,6 +883,10 @@ export type UpdatePromptPromptInput = {
|
|
|
883
883
|
| components.TraceScrubbingPlugin
|
|
884
884
|
>
|
|
885
885
|
| undefined;
|
|
886
|
+
/**
|
|
887
|
+
* HTTP status codes that trigger fallback. Enter up to 20 unique integers from 400 to 599. When omitted or empty, defaults to [408, 429, 500, 502, 503, 504, 529].
|
|
888
|
+
*/
|
|
889
|
+
fallbackOnCodes?: Array<number> | undefined;
|
|
886
890
|
/**
|
|
887
891
|
* Array of fallback models to use if primary model fails
|
|
888
892
|
*/
|
|
@@ -1438,8 +1442,10 @@ export const UpdatePromptProvider = {
|
|
|
1438
1442
|
Reson8: "reson8",
|
|
1439
1443
|
Meta: "meta",
|
|
1440
1444
|
Greenpt: "greenpt",
|
|
1445
|
+
Liquid: "liquid",
|
|
1441
1446
|
Typesafe: "typesafe",
|
|
1442
1447
|
Berget: "berget",
|
|
1448
|
+
Cloudflare: "cloudflare",
|
|
1443
1449
|
Slack: "slack",
|
|
1444
1450
|
Orq: "orq",
|
|
1445
1451
|
} as const;
|
|
@@ -2273,7 +2279,7 @@ export type UpdatePrompt2Prompts4 = {
|
|
|
2273
2279
|
type: "file";
|
|
2274
2280
|
cacheControl?: UpdatePrompt2PromptsCacheControl | undefined;
|
|
2275
2281
|
/**
|
|
2276
|
-
* File data for the content part. Must contain
|
|
2282
|
+
* File data for the content part. Must contain exactly one of file_data, file_id or uri.
|
|
2277
2283
|
*/
|
|
2278
2284
|
file: components.FileContentPartSchema;
|
|
2279
2285
|
};
|
|
@@ -2476,6 +2482,10 @@ export type UpdatePromptPromptField = {
|
|
|
2476
2482
|
| components.TraceScrubbingPlugin
|
|
2477
2483
|
>
|
|
2478
2484
|
| undefined;
|
|
2485
|
+
/**
|
|
2486
|
+
* HTTP status codes that trigger fallback. Enter up to 20 unique integers from 400 to 599. When omitted or empty, defaults to [408, 429, 500, 502, 503, 504, 529].
|
|
2487
|
+
*/
|
|
2488
|
+
fallbackOnCodes?: Array<number> | undefined;
|
|
2479
2489
|
/**
|
|
2480
2490
|
* Array of fallback models to use if primary model fails
|
|
2481
2491
|
*/
|
|
@@ -3944,6 +3954,7 @@ export type UpdatePromptPromptInput$Outbound = {
|
|
|
3944
3954
|
| components.TraceScrubbingPlugin$Outbound
|
|
3945
3955
|
>
|
|
3946
3956
|
| undefined;
|
|
3957
|
+
fallback_on_codes?: Array<number> | undefined;
|
|
3947
3958
|
fallbacks?: Array<UpdatePromptFallbacks$Outbound> | undefined;
|
|
3948
3959
|
retry?: UpdatePromptRetry$Outbound | undefined;
|
|
3949
3960
|
cache?: UpdatePromptCache$Outbound | undefined;
|
|
@@ -4015,6 +4026,7 @@ export const UpdatePromptPromptInput$outboundSchema: z.ZodType<
|
|
|
4015
4026
|
components.TraceScrubbingPlugin$outboundSchema,
|
|
4016
4027
|
]),
|
|
4017
4028
|
).optional(),
|
|
4029
|
+
fallbackOnCodes: z.array(z.number().int()).optional(),
|
|
4018
4030
|
fallbacks: z.array(z.lazy(() => UpdatePromptFallbacks$outboundSchema))
|
|
4019
4031
|
.optional(),
|
|
4020
4032
|
retry: z.lazy(() => UpdatePromptRetry$outboundSchema).optional(),
|
|
@@ -4039,6 +4051,7 @@ export const UpdatePromptPromptInput$outboundSchema: z.ZodType<
|
|
|
4039
4051
|
topK: "top_k",
|
|
4040
4052
|
toolChoice: "tool_choice",
|
|
4041
4053
|
parallelToolCalls: "parallel_tool_calls",
|
|
4054
|
+
fallbackOnCodes: "fallback_on_codes",
|
|
4042
4055
|
loadBalancer: "load_balancer",
|
|
4043
4056
|
cacheControl: "cache_control",
|
|
4044
4057
|
promptCacheKey: "prompt_cache_key",
|
|
@@ -5975,6 +5988,7 @@ export const UpdatePromptPromptField$inboundSchema: z.ZodType<
|
|
|
5975
5988
|
components.TraceScrubbingPlugin$inboundSchema,
|
|
5976
5989
|
]),
|
|
5977
5990
|
).optional(),
|
|
5991
|
+
fallback_on_codes: z.array(z.number().int()).optional(),
|
|
5978
5992
|
fallbacks: z.array(z.lazy(() => UpdatePromptPromptsFallbacks$inboundSchema))
|
|
5979
5993
|
.optional(),
|
|
5980
5994
|
retry: z.lazy(() => UpdatePromptPromptsRetry$inboundSchema).optional(),
|
|
@@ -6009,6 +6023,7 @@ export const UpdatePromptPromptField$inboundSchema: z.ZodType<
|
|
|
6009
6023
|
"top_k": "topK",
|
|
6010
6024
|
"tool_choice": "toolChoice",
|
|
6011
6025
|
"parallel_tool_calls": "parallelToolCalls",
|
|
6026
|
+
"fallback_on_codes": "fallbackOnCodes",
|
|
6012
6027
|
"load_balancer": "loadBalancer",
|
|
6013
6028
|
"cache_control": "cacheControl",
|
|
6014
6029
|
"prompt_cache_key": "promptCacheKey",
|
|
@@ -1764,7 +1764,7 @@ export const UpdateToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1764
1764
|
z.ZodTypeDef,
|
|
1765
1765
|
unknown
|
|
1766
1766
|
> = z.object({
|
|
1767
|
-
_id: z.string().default("
|
|
1767
|
+
_id: z.string().default("tool_01M4TGANYRGRNVW3P3H1TCHYNJ"),
|
|
1768
1768
|
path: z.string(),
|
|
1769
1769
|
key: z.string(),
|
|
1770
1770
|
display_name: z.string().optional(),
|
|
@@ -1959,7 +1959,7 @@ export const UpdateToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1959
1959
|
z.ZodTypeDef,
|
|
1960
1960
|
unknown
|
|
1961
1961
|
> = z.object({
|
|
1962
|
-
_id: z.string().default("
|
|
1962
|
+
_id: z.string().default("tool_01M4TGANYQQEDZ2BSGMPZ12KQX"),
|
|
1963
1963
|
path: z.string(),
|
|
1964
1964
|
key: z.string(),
|
|
1965
1965
|
display_name: z.string().optional(),
|
|
@@ -2054,7 +2054,7 @@ export const UpdateToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
2054
2054
|
z.ZodTypeDef,
|
|
2055
2055
|
unknown
|
|
2056
2056
|
> = z.object({
|
|
2057
|
-
_id: z.string().default("
|
|
2057
|
+
_id: z.string().default("tool_01M4TGANYQTXRVT68WXA6CYQBJ"),
|
|
2058
2058
|
path: z.string(),
|
|
2059
2059
|
key: z.string(),
|
|
2060
2060
|
display_name: z.string().optional(),
|
|
@@ -2157,7 +2157,7 @@ export const UpdateToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
2157
2157
|
z.ZodTypeDef,
|
|
2158
2158
|
unknown
|
|
2159
2159
|
> = z.object({
|
|
2160
|
-
_id: z.string().default("
|
|
2160
|
+
_id: z.string().default("tool_01M4TGANYPX498E0SFWC3MQKNF"),
|
|
2161
2161
|
path: z.string(),
|
|
2162
2162
|
key: z.string(),
|
|
2163
2163
|
display_name: z.string().optional(),
|
|
@@ -12,7 +12,19 @@ export class Classify extends ClientSDK {
|
|
|
12
12
|
* Classify
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* **
|
|
15
|
+
* **Deprecated.** Use `POST /v3/router/decisions` and `orq.router.decisions.create()` for new integrations. This endpoint remains available for backward compatibility with the same request and response contract.
|
|
16
|
+
*
|
|
17
|
+
* **Beta.** Evaluate content against named questions and receive structured answers, probabilities, and usage costs. Send the content as `state` and define each entry in `questions` as:
|
|
18
|
+
*
|
|
19
|
+
* - `noul`: estimate the probability that a statement is true.
|
|
20
|
+
* - `choice`: select an option from a set.
|
|
21
|
+
* - `score`: rate the content on an ordered scale.
|
|
22
|
+
*
|
|
23
|
+
* Use a native decision model or a supported chat model. Configure ordered `fallbacks`, optional `retry`, `timeout.call_timeout` in milliseconds, and an exact-match `cache`. Each retry and fallback gets a fresh timeout; omit `retry` to move directly to the next fallback on timeout. The response identifies the model that answered.
|
|
24
|
+
*
|
|
25
|
+
* Requires the `classify` API-key permission. PII plugins and guardrails are not applied. See the [Decisions guide](/ai-gateway/features/decisions) for supported models, probability interpretation, and refusals.
|
|
26
|
+
*
|
|
27
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
16
28
|
*/
|
|
17
29
|
async create(
|
|
18
30
|
request: operations.CreateClassifyRequestBody,
|
|
@@ -12,7 +12,15 @@ export class Decisions extends ClientSDK {
|
|
|
12
12
|
* Decisions
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* **Beta.**
|
|
15
|
+
* **Beta.** Evaluate content against named questions and receive structured answers, probabilities, and usage costs. Send the content as `state` and define each entry in `questions` as:
|
|
16
|
+
*
|
|
17
|
+
* - `noul`: estimate the probability that a statement is true.
|
|
18
|
+
* - `choice`: select an option from a set.
|
|
19
|
+
* - `score`: rate the content on an ordered scale.
|
|
20
|
+
*
|
|
21
|
+
* Use a native decision model or a supported chat model. Configure ordered `fallbacks`, optional `retry`, `timeout.call_timeout` in milliseconds, and an exact-match `cache`. Each retry and fallback gets a fresh timeout; omit `retry` to move directly to the next fallback on timeout. The response identifies the model that answered.
|
|
22
|
+
*
|
|
23
|
+
* Requires the `classify` API-key permission. PII plugins and guardrails are not applied. See the [Decisions guide](/ai-gateway/features/decisions) for supported models, probability interpretation, and refusals.
|
|
16
24
|
*/
|
|
17
25
|
async create(
|
|
18
26
|
request: operations.CreateDecisionsRequestBody,
|
|
@@ -16,7 +16,7 @@ export class Responses extends ClientSDK {
|
|
|
16
16
|
* Compact response
|
|
17
17
|
*
|
|
18
18
|
* @remarks
|
|
19
|
-
* Compacts a conversation by summarizing older items to free up context window space. Returns a compaction item containing the generated summary.
|
|
19
|
+
* Compacts a conversation by summarizing older items to free up context window space. Returns the next context window: a compaction item containing the generated summary, followed by the most recent items verbatim.
|
|
20
20
|
*/
|
|
21
21
|
async compact(
|
|
22
22
|
request: operations.CompactResponseRequestBody,
|
package/sdk/classify.d.ts
CHANGED
|
@@ -7,7 +7,15 @@ export declare class Classify extends ClientSDK {
|
|
|
7
7
|
* @remarks
|
|
8
8
|
* **Deprecated.** Use `POST /v3/router/decisions` and `orq.router.decisions.create()` for new integrations. This endpoint remains available for backward compatibility with the same request and response contract.
|
|
9
9
|
*
|
|
10
|
-
* **Beta.**
|
|
10
|
+
* **Beta.** Evaluate content against named questions and receive structured answers, probabilities, and usage costs. Send the content as `state` and define each entry in `questions` as:
|
|
11
|
+
*
|
|
12
|
+
* - `noul`: estimate the probability that a statement is true.
|
|
13
|
+
* - `choice`: select an option from a set.
|
|
14
|
+
* - `score`: rate the content on an ordered scale.
|
|
15
|
+
*
|
|
16
|
+
* Use a native decision model or a supported chat model. Configure ordered `fallbacks`, optional `retry`, `timeout.call_timeout` in milliseconds, and an exact-match `cache`. Each retry and fallback gets a fresh timeout; omit `retry` to move directly to the next fallback on timeout. The response identifies the model that answered.
|
|
17
|
+
*
|
|
18
|
+
* Requires the `classify` API-key permission. PII plugins and guardrails are not applied. See the [Decisions guide](/ai-gateway/features/decisions) for supported models, probability interpretation, and refusals.
|
|
11
19
|
*
|
|
12
20
|
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
13
21
|
*/
|
package/sdk/classify.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"classify.d.ts","sourceRoot":"","sources":["../src/sdk/classify.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,QAAS,SAAQ,SAAS;IACrC
|
|
1
|
+
{"version":3,"file":"classify.d.ts","sourceRoot":"","sources":["../src/sdk/classify.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,QAAS,SAAQ,SAAS;IACrC;;;;;;;;;;;;;;;;;OAiBG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,yBAAyB,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,0BAA0B,CAAC;CAOlD"}
|
package/sdk/classify.js
CHANGED
|
@@ -14,7 +14,15 @@ class Classify extends sdks_js_1.ClientSDK {
|
|
|
14
14
|
* @remarks
|
|
15
15
|
* **Deprecated.** Use `POST /v3/router/decisions` and `orq.router.decisions.create()` for new integrations. This endpoint remains available for backward compatibility with the same request and response contract.
|
|
16
16
|
*
|
|
17
|
-
* **Beta.**
|
|
17
|
+
* **Beta.** Evaluate content against named questions and receive structured answers, probabilities, and usage costs. Send the content as `state` and define each entry in `questions` as:
|
|
18
|
+
*
|
|
19
|
+
* - `noul`: estimate the probability that a statement is true.
|
|
20
|
+
* - `choice`: select an option from a set.
|
|
21
|
+
* - `score`: rate the content on an ordered scale.
|
|
22
|
+
*
|
|
23
|
+
* Use a native decision model or a supported chat model. Configure ordered `fallbacks`, optional `retry`, `timeout.call_timeout` in milliseconds, and an exact-match `cache`. Each retry and fallback gets a fresh timeout; omit `retry` to move directly to the next fallback on timeout. The response identifies the model that answered.
|
|
24
|
+
*
|
|
25
|
+
* Requires the `classify` API-key permission. PII plugins and guardrails are not applied. See the [Decisions guide](/ai-gateway/features/decisions) for supported models, probability interpretation, and refusals.
|
|
18
26
|
*
|
|
19
27
|
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
20
28
|
*/
|
package/sdk/classify.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"classify.js","sourceRoot":"","sources":["../src/sdk/classify.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,8EAAwE;AACxE,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,QAAS,SAAQ,mBAAS;IACrC
|
|
1
|
+
{"version":3,"file":"classify.js","sourceRoot":"","sources":["../src/sdk/classify.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,8EAAwE;AACxE,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,QAAS,SAAQ,mBAAS;IACrC;;;;;;;;;;;;;;;;;OAiBG;IACH,KAAK,CAAC,MAAM,CACV,OAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8CAAoB,EACrC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AA7BD,4BA6BC"}
|
package/sdk/decisions.d.ts
CHANGED
|
@@ -5,7 +5,15 @@ export declare class Decisions extends ClientSDK {
|
|
|
5
5
|
* Decisions
|
|
6
6
|
*
|
|
7
7
|
* @remarks
|
|
8
|
-
* **Beta.**
|
|
8
|
+
* **Beta.** Evaluate content against named questions and receive structured answers, probabilities, and usage costs. Send the content as `state` and define each entry in `questions` as:
|
|
9
|
+
*
|
|
10
|
+
* - `noul`: estimate the probability that a statement is true.
|
|
11
|
+
* - `choice`: select an option from a set.
|
|
12
|
+
* - `score`: rate the content on an ordered scale.
|
|
13
|
+
*
|
|
14
|
+
* Use a native decision model or a supported chat model. Configure ordered `fallbacks`, optional `retry`, `timeout.call_timeout` in milliseconds, and an exact-match `cache`. Each retry and fallback gets a fresh timeout; omit `retry` to move directly to the next fallback on timeout. The response identifies the model that answered.
|
|
15
|
+
*
|
|
16
|
+
* Requires the `classify` API-key permission. PII plugins and guardrails are not applied. See the [Decisions guide](/ai-gateway/features/decisions) for supported models, probability interpretation, and refusals.
|
|
9
17
|
*/
|
|
10
18
|
create(request: operations.CreateDecisionsRequestBody, options?: RequestOptions): Promise<operations.CreateDecisionsResponseBody>;
|
|
11
19
|
}
|
package/sdk/decisions.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decisions.d.ts","sourceRoot":"","sources":["../src/sdk/decisions.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,SAAU,SAAQ,SAAS;IACtC
|
|
1
|
+
{"version":3,"file":"decisions.d.ts","sourceRoot":"","sources":["../src/sdk/decisions.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,SAAU,SAAQ,SAAS;IACtC;;;;;;;;;;;;;OAaG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,0BAA0B,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,2BAA2B,CAAC;CAOnD"}
|
package/sdk/decisions.js
CHANGED
|
@@ -12,7 +12,15 @@ class Decisions extends sdks_js_1.ClientSDK {
|
|
|
12
12
|
* Decisions
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* **Beta.**
|
|
15
|
+
* **Beta.** Evaluate content against named questions and receive structured answers, probabilities, and usage costs. Send the content as `state` and define each entry in `questions` as:
|
|
16
|
+
*
|
|
17
|
+
* - `noul`: estimate the probability that a statement is true.
|
|
18
|
+
* - `choice`: select an option from a set.
|
|
19
|
+
* - `score`: rate the content on an ordered scale.
|
|
20
|
+
*
|
|
21
|
+
* Use a native decision model or a supported chat model. Configure ordered `fallbacks`, optional `retry`, `timeout.call_timeout` in milliseconds, and an exact-match `cache`. Each retry and fallback gets a fresh timeout; omit `retry` to move directly to the next fallback on timeout. The response identifies the model that answered.
|
|
22
|
+
*
|
|
23
|
+
* Requires the `classify` API-key permission. PII plugins and guardrails are not applied. See the [Decisions guide](/ai-gateway/features/decisions) for supported models, probability interpretation, and refusals.
|
|
16
24
|
*/
|
|
17
25
|
async create(request, options) {
|
|
18
26
|
return (0, fp_js_1.unwrapAsync)((0, routerDecisionsCreate_js_1.routerDecisionsCreate)(this, request, options));
|
package/sdk/decisions.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decisions.js","sourceRoot":"","sources":["../src/sdk/decisions.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,gFAA0E;AAC1E,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,SAAU,SAAQ,mBAAS;IACtC
|
|
1
|
+
{"version":3,"file":"decisions.js","sourceRoot":"","sources":["../src/sdk/decisions.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,gFAA0E;AAC1E,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,SAAU,SAAQ,mBAAS;IACtC;;;;;;;;;;;;;OAaG;IACH,KAAK,CAAC,MAAM,CACV,OAA8C,EAC9C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gDAAqB,EACtC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAzBD,8BAyBC"}
|
|
@@ -32,7 +32,15 @@ import { Result } from "../types/fp.js";
|
|
|
32
32
|
* @remarks
|
|
33
33
|
* **Deprecated.** Use `POST /v3/router/decisions` and `orq.router.decisions.create()` for new integrations. This endpoint remains available for backward compatibility with the same request and response contract.
|
|
34
34
|
*
|
|
35
|
-
* **Beta.**
|
|
35
|
+
* **Beta.** Evaluate content against named questions and receive structured answers, probabilities, and usage costs. Send the content as `state` and define each entry in `questions` as:
|
|
36
|
+
*
|
|
37
|
+
* - `noul`: estimate the probability that a statement is true.
|
|
38
|
+
* - `choice`: select an option from a set.
|
|
39
|
+
* - `score`: rate the content on an ordered scale.
|
|
40
|
+
*
|
|
41
|
+
* Use a native decision model or a supported chat model. Configure ordered `fallbacks`, optional `retry`, `timeout.call_timeout` in milliseconds, and an exact-match `cache`. Each retry and fallback gets a fresh timeout; omit `retry` to move directly to the next fallback on timeout. The response identifies the model that answered.
|
|
42
|
+
*
|
|
43
|
+
* Requires the `classify` API-key permission. PII plugins and guardrails are not applied. See the [Decisions guide](/ai-gateway/features/decisions) for supported models, probability interpretation, and refusals.
|
|
36
44
|
*
|
|
37
45
|
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
38
46
|
*/
|
|
@@ -46,6 +54,7 @@ export function routerClassifyCreate(
|
|
|
46
54
|
| errors.CreateClassifyResponseBody
|
|
47
55
|
| errors.CreateClassifyRouterClassifyResponseBody
|
|
48
56
|
| errors.CreateClassifyRouterClassifyResponseResponseBody
|
|
57
|
+
| errors.CreateClassifyRouterClassifyResponse408ResponseBody
|
|
49
58
|
| errors.CreateClassifyRouterClassifyResponse422ResponseBody
|
|
50
59
|
| errors.CreateClassifyRouterClassifyResponse429ResponseBody
|
|
51
60
|
| errors.CreateClassifyRouterClassifyResponse500ResponseBody
|
|
@@ -78,6 +87,7 @@ async function $do(
|
|
|
78
87
|
| errors.CreateClassifyResponseBody
|
|
79
88
|
| errors.CreateClassifyRouterClassifyResponseBody
|
|
80
89
|
| errors.CreateClassifyRouterClassifyResponseResponseBody
|
|
90
|
+
| errors.CreateClassifyRouterClassifyResponse408ResponseBody
|
|
81
91
|
| errors.CreateClassifyRouterClassifyResponse422ResponseBody
|
|
82
92
|
| errors.CreateClassifyRouterClassifyResponse429ResponseBody
|
|
83
93
|
| errors.CreateClassifyRouterClassifyResponse500ResponseBody
|
|
@@ -167,6 +177,7 @@ async function $do(
|
|
|
167
177
|
| errors.CreateClassifyResponseBody
|
|
168
178
|
| errors.CreateClassifyRouterClassifyResponseBody
|
|
169
179
|
| errors.CreateClassifyRouterClassifyResponseResponseBody
|
|
180
|
+
| errors.CreateClassifyRouterClassifyResponse408ResponseBody
|
|
170
181
|
| errors.CreateClassifyRouterClassifyResponse422ResponseBody
|
|
171
182
|
| errors.CreateClassifyRouterClassifyResponse429ResponseBody
|
|
172
183
|
| errors.CreateClassifyRouterClassifyResponse500ResponseBody
|
|
@@ -190,6 +201,10 @@ async function $do(
|
|
|
190
201
|
403,
|
|
191
202
|
errors.CreateClassifyRouterClassifyResponseResponseBody$inboundSchema,
|
|
192
203
|
),
|
|
204
|
+
M.jsonErr(
|
|
205
|
+
408,
|
|
206
|
+
errors.CreateClassifyRouterClassifyResponse408ResponseBody$inboundSchema,
|
|
207
|
+
),
|
|
193
208
|
M.jsonErr(
|
|
194
209
|
422,
|
|
195
210
|
errors.CreateClassifyRouterClassifyResponse422ResponseBody$inboundSchema,
|
|
@@ -30,7 +30,15 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* Decisions
|
|
31
31
|
*
|
|
32
32
|
* @remarks
|
|
33
|
-
* **Beta.**
|
|
33
|
+
* **Beta.** Evaluate content against named questions and receive structured answers, probabilities, and usage costs. Send the content as `state` and define each entry in `questions` as:
|
|
34
|
+
*
|
|
35
|
+
* - `noul`: estimate the probability that a statement is true.
|
|
36
|
+
* - `choice`: select an option from a set.
|
|
37
|
+
* - `score`: rate the content on an ordered scale.
|
|
38
|
+
*
|
|
39
|
+
* Use a native decision model or a supported chat model. Configure ordered `fallbacks`, optional `retry`, `timeout.call_timeout` in milliseconds, and an exact-match `cache`. Each retry and fallback gets a fresh timeout; omit `retry` to move directly to the next fallback on timeout. The response identifies the model that answered.
|
|
40
|
+
*
|
|
41
|
+
* Requires the `classify` API-key permission. PII plugins and guardrails are not applied. See the [Decisions guide](/ai-gateway/features/decisions) for supported models, probability interpretation, and refusals.
|
|
34
42
|
*/
|
|
35
43
|
export function routerDecisionsCreate(
|
|
36
44
|
client: OrqCore,
|
|
@@ -42,6 +50,7 @@ export function routerDecisionsCreate(
|
|
|
42
50
|
| errors.CreateDecisionsResponseBody
|
|
43
51
|
| errors.CreateDecisionsRouterDecisionsResponseBody
|
|
44
52
|
| errors.CreateDecisionsRouterDecisionsResponseResponseBody
|
|
53
|
+
| errors.CreateDecisionsRouterDecisionsResponse408ResponseBody
|
|
45
54
|
| errors.CreateDecisionsRouterDecisionsResponse422ResponseBody
|
|
46
55
|
| errors.CreateDecisionsRouterDecisionsResponse429ResponseBody
|
|
47
56
|
| errors.CreateDecisionsRouterDecisionsResponse500ResponseBody
|
|
@@ -74,6 +83,7 @@ async function $do(
|
|
|
74
83
|
| errors.CreateDecisionsResponseBody
|
|
75
84
|
| errors.CreateDecisionsRouterDecisionsResponseBody
|
|
76
85
|
| errors.CreateDecisionsRouterDecisionsResponseResponseBody
|
|
86
|
+
| errors.CreateDecisionsRouterDecisionsResponse408ResponseBody
|
|
77
87
|
| errors.CreateDecisionsRouterDecisionsResponse422ResponseBody
|
|
78
88
|
| errors.CreateDecisionsRouterDecisionsResponse429ResponseBody
|
|
79
89
|
| errors.CreateDecisionsRouterDecisionsResponse500ResponseBody
|
|
@@ -164,6 +174,7 @@ async function $do(
|
|
|
164
174
|
| errors.CreateDecisionsResponseBody
|
|
165
175
|
| errors.CreateDecisionsRouterDecisionsResponseBody
|
|
166
176
|
| errors.CreateDecisionsRouterDecisionsResponseResponseBody
|
|
177
|
+
| errors.CreateDecisionsRouterDecisionsResponse408ResponseBody
|
|
167
178
|
| errors.CreateDecisionsRouterDecisionsResponse422ResponseBody
|
|
168
179
|
| errors.CreateDecisionsRouterDecisionsResponse429ResponseBody
|
|
169
180
|
| errors.CreateDecisionsRouterDecisionsResponse500ResponseBody
|
|
@@ -187,6 +198,11 @@ async function $do(
|
|
|
187
198
|
403,
|
|
188
199
|
errors.CreateDecisionsRouterDecisionsResponseResponseBody$inboundSchema,
|
|
189
200
|
),
|
|
201
|
+
M.jsonErr(
|
|
202
|
+
408,
|
|
203
|
+
errors
|
|
204
|
+
.CreateDecisionsRouterDecisionsResponse408ResponseBody$inboundSchema,
|
|
205
|
+
),
|
|
190
206
|
M.jsonErr(
|
|
191
207
|
422,
|
|
192
208
|
errors
|
package/src/lib/config.ts
CHANGED
|
@@ -58,7 +58,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
58
58
|
export const SDK_METADATA = {
|
|
59
59
|
language: "typescript",
|
|
60
60
|
openapiDocVersion: "2.0",
|
|
61
|
-
sdkVersion: "4.16.
|
|
62
|
-
genVersion: "2.
|
|
63
|
-
userAgent: "speakeasy-sdk/typescript 4.16.
|
|
61
|
+
sdkVersion: "4.16.4",
|
|
62
|
+
genVersion: "2.948.4",
|
|
63
|
+
userAgent: "speakeasy-sdk/typescript 4.16.4 2.948.4 2.0 @orq-ai/node",
|
|
64
64
|
} as const;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Cache type. Only exact_match is supported.
|
|
10
|
+
*/
|
|
11
|
+
export const ClassifyCacheConfigType = {
|
|
12
|
+
ExactMatch: "exact_match",
|
|
13
|
+
} as const;
|
|
14
|
+
/**
|
|
15
|
+
* Cache type. Only exact_match is supported.
|
|
16
|
+
*/
|
|
17
|
+
export type ClassifyCacheConfigType = ClosedEnum<
|
|
18
|
+
typeof ClassifyCacheConfigType
|
|
19
|
+
>;
|
|
20
|
+
|
|
21
|
+
export type ClassifyCacheConfig = {
|
|
22
|
+
/**
|
|
23
|
+
* Time to live for the cached response in seconds, up to 259200 (3 days). Defaults to 3600.
|
|
24
|
+
*/
|
|
25
|
+
ttl?: number | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Cache type. Only exact_match is supported.
|
|
28
|
+
*/
|
|
29
|
+
type: ClassifyCacheConfigType;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const ClassifyCacheConfigType$outboundSchema: z.ZodNativeEnum<
|
|
34
|
+
typeof ClassifyCacheConfigType
|
|
35
|
+
> = z.nativeEnum(ClassifyCacheConfigType);
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export type ClassifyCacheConfig$Outbound = {
|
|
39
|
+
ttl?: number | undefined;
|
|
40
|
+
type: string;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/** @internal */
|
|
44
|
+
export const ClassifyCacheConfig$outboundSchema: z.ZodType<
|
|
45
|
+
ClassifyCacheConfig$Outbound,
|
|
46
|
+
z.ZodTypeDef,
|
|
47
|
+
ClassifyCacheConfig
|
|
48
|
+
> = z.object({
|
|
49
|
+
ttl: z.number().int().optional(),
|
|
50
|
+
type: ClassifyCacheConfigType$outboundSchema,
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
export function classifyCacheConfigToJSON(
|
|
54
|
+
classifyCacheConfig: ClassifyCacheConfig,
|
|
55
|
+
): string {
|
|
56
|
+
return JSON.stringify(
|
|
57
|
+
ClassifyCacheConfig$outboundSchema.parse(classifyCacheConfig),
|
|
58
|
+
);
|
|
59
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type ClassifyTimeoutConfig = {
|
|
9
|
+
/**
|
|
10
|
+
* Timeout in milliseconds for each model call. Set 2000 for two seconds. When retry is configured, timeout errors (408) are automatically retried.
|
|
11
|
+
*/
|
|
12
|
+
callTimeout: number;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export type ClassifyTimeoutConfig$Outbound = {
|
|
17
|
+
call_timeout: number;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const ClassifyTimeoutConfig$outboundSchema: z.ZodType<
|
|
22
|
+
ClassifyTimeoutConfig$Outbound,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
ClassifyTimeoutConfig
|
|
25
|
+
> = z.object({
|
|
26
|
+
callTimeout: z.number().int(),
|
|
27
|
+
}).transform((v) => {
|
|
28
|
+
return remap$(v, {
|
|
29
|
+
callTimeout: "call_timeout",
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export function classifyTimeoutConfigToJSON(
|
|
34
|
+
classifyTimeoutConfig: ClassifyTimeoutConfig,
|
|
35
|
+
): string {
|
|
36
|
+
return JSON.stringify(
|
|
37
|
+
ClassifyTimeoutConfig$outboundSchema.parse(classifyTimeoutConfig),
|
|
38
|
+
);
|
|
39
|
+
}
|
|
@@ -85,12 +85,14 @@ export * from "./chunksservicelistresponse.js";
|
|
|
85
85
|
export * from "./chunksservicesetenabledrequest.js";
|
|
86
86
|
export * from "./chunksserviceupdaterequest.js";
|
|
87
87
|
export * from "./classifyanswer.js";
|
|
88
|
+
export * from "./classifycacheconfig.js";
|
|
88
89
|
export * from "./classifychoiceanswer.js";
|
|
89
90
|
export * from "./classifyinputtokensdetails.js";
|
|
90
91
|
export * from "./classifynoulanswer.js";
|
|
91
92
|
export * from "./classifyrefusalanswer.js";
|
|
92
93
|
export * from "./classifyretryconfig.js";
|
|
93
94
|
export * from "./classifyscoreanswer.js";
|
|
95
|
+
export * from "./classifytimeoutconfig.js";
|
|
94
96
|
export * from "./classifyusage.js";
|
|
95
97
|
export * from "./codeinterpretertoolinput.js";
|
|
96
98
|
export * from "./codetoolinput.js";
|
|
@@ -546,6 +548,11 @@ export * from "./responsereasoningtextdonestreamevent.js";
|
|
|
546
548
|
export * from "./responserefusaldeltastreamevent.js";
|
|
547
549
|
export * from "./responserefusaldonestreamevent.js";
|
|
548
550
|
export * from "./responseretryconfig.js";
|
|
551
|
+
export * from "./responseshellcallcommandaddedstreamevent.js";
|
|
552
|
+
export * from "./responseshellcallcommanddeltastreamevent.js";
|
|
553
|
+
export * from "./responseshellcallcommanddonestreamevent.js";
|
|
554
|
+
export * from "./responseshellcalloutputcontentdeltastreamevent.js";
|
|
555
|
+
export * from "./responseshellcalloutputcontentdonestreamevent.js";
|
|
549
556
|
export * from "./responsestartedevent.js";
|
|
550
557
|
export * from "./responsestreamevent.js";
|
|
551
558
|
export * from "./responsestreamingevent.js";
|
|
@@ -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_01m4tkn0f8y5t0rhcv57fe95x6"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -23,6 +23,10 @@ export type ResponseFunctionCallArgumentsDoneStreamEvent = {
|
|
|
23
23
|
* ID of the output item this event refers to.
|
|
24
24
|
*/
|
|
25
25
|
itemId: string;
|
|
26
|
+
/**
|
|
27
|
+
* The function name.
|
|
28
|
+
*/
|
|
29
|
+
name?: string | undefined;
|
|
26
30
|
/**
|
|
27
31
|
* Index of the output item in the response output array.
|
|
28
32
|
*/
|
|
@@ -48,6 +52,7 @@ export const ResponseFunctionCallArgumentsDoneStreamEvent$inboundSchema:
|
|
|
48
52
|
z.object({
|
|
49
53
|
arguments: z.string(),
|
|
50
54
|
item_id: z.string(),
|
|
55
|
+
name: z.string().optional(),
|
|
51
56
|
output_index: z.number().int(),
|
|
52
57
|
sequence_number: z.number().int(),
|
|
53
58
|
type: z.literal("response.function_call_arguments.done"),
|
|
@@ -15,10 +15,18 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
15
15
|
* A `response.image_generation_call.partial_image` server-sent event.
|
|
16
16
|
*/
|
|
17
17
|
export type ResponseImageGenerationCallPartialImageStreamEvent = {
|
|
18
|
+
/**
|
|
19
|
+
* Image background.
|
|
20
|
+
*/
|
|
21
|
+
background?: string | undefined;
|
|
18
22
|
/**
|
|
19
23
|
* ID of the output item this event refers to.
|
|
20
24
|
*/
|
|
21
25
|
itemId: string;
|
|
26
|
+
/**
|
|
27
|
+
* Image encoding format.
|
|
28
|
+
*/
|
|
29
|
+
outputFormat?: string | undefined;
|
|
22
30
|
/**
|
|
23
31
|
* Index of the output item in the response output array.
|
|
24
32
|
*/
|
|
@@ -31,10 +39,18 @@ export type ResponseImageGenerationCallPartialImageStreamEvent = {
|
|
|
31
39
|
* Index of the partial image.
|
|
32
40
|
*/
|
|
33
41
|
partialImageIndex: number;
|
|
42
|
+
/**
|
|
43
|
+
* Image quality.
|
|
44
|
+
*/
|
|
45
|
+
quality?: string | undefined;
|
|
34
46
|
/**
|
|
35
47
|
* Monotonically increasing sequence number for ordering events.
|
|
36
48
|
*/
|
|
37
49
|
sequenceNumber: number;
|
|
50
|
+
/**
|
|
51
|
+
* Image dimensions.
|
|
52
|
+
*/
|
|
53
|
+
size?: string | undefined;
|
|
38
54
|
/**
|
|
39
55
|
* The event type. Discriminates the payload.
|
|
40
56
|
*/
|
|
@@ -50,11 +66,15 @@ export const ResponseImageGenerationCallPartialImageStreamEvent$inboundSchema:
|
|
|
50
66
|
unknown
|
|
51
67
|
> = collectExtraKeys$(
|
|
52
68
|
z.object({
|
|
69
|
+
background: z.string().optional(),
|
|
53
70
|
item_id: z.string(),
|
|
71
|
+
output_format: z.string().optional(),
|
|
54
72
|
output_index: z.number().int(),
|
|
55
73
|
partial_image_b64: z.string(),
|
|
56
74
|
partial_image_index: z.number().int(),
|
|
75
|
+
quality: z.string().optional(),
|
|
57
76
|
sequence_number: z.number().int(),
|
|
77
|
+
size: z.string().optional(),
|
|
58
78
|
type: z.literal("response.image_generation_call.partial_image"),
|
|
59
79
|
}).catchall(z.any()),
|
|
60
80
|
"additionalProperties",
|
|
@@ -62,6 +82,7 @@ export const ResponseImageGenerationCallPartialImageStreamEvent$inboundSchema:
|
|
|
62
82
|
).transform((v) => {
|
|
63
83
|
return remap$(v, {
|
|
64
84
|
"item_id": "itemId",
|
|
85
|
+
"output_format": "outputFormat",
|
|
65
86
|
"output_index": "outputIndex",
|
|
66
87
|
"partial_image_b64": "partialImageB64",
|
|
67
88
|
"partial_image_index": "partialImageIndex",
|