@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
|
@@ -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
|
+
}
|
|
@@ -9,7 +9,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* File data for the content part. Must contain
|
|
12
|
+
* File data for the content part. Must contain exactly one of file_data, file_id or uri.
|
|
13
13
|
*/
|
|
14
14
|
export type FileContentPartSchema = {
|
|
15
15
|
/**
|
|
@@ -17,13 +17,17 @@ export type FileContentPartSchema = {
|
|
|
17
17
|
*/
|
|
18
18
|
fileData?: string | undefined;
|
|
19
19
|
/**
|
|
20
|
-
* URL
|
|
20
|
+
* URL of the file. Supported for PDFs on Anthropic Claude models and for `https://` and Google Cloud Storage `gs://` URIs on Vertex AI Gemini models.
|
|
21
21
|
*/
|
|
22
22
|
uri?: string | undefined;
|
|
23
23
|
/**
|
|
24
|
-
* MIME type of the file (e.g., application/pdf, image/png)
|
|
24
|
+
* MIME type of the file (e.g., application/pdf, image/png). Inferred from `filename` or the URI extension when omitted.
|
|
25
25
|
*/
|
|
26
26
|
mimeType?: string | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* A provider file reference: a Google Cloud Storage `gs://` URI for Vertex AI Gemini models, or an OpenAI file ID (`file-...`) for OpenAI models.
|
|
29
|
+
*/
|
|
30
|
+
fileId?: string | undefined;
|
|
27
31
|
/**
|
|
28
32
|
* The name of the file, used when passing the file to the model as a string.
|
|
29
33
|
*/
|
|
@@ -39,10 +43,12 @@ export const FileContentPartSchema$inboundSchema: z.ZodType<
|
|
|
39
43
|
file_data: z.string().optional(),
|
|
40
44
|
uri: z.string().optional(),
|
|
41
45
|
mimeType: z.string().optional(),
|
|
46
|
+
file_id: z.string().optional(),
|
|
42
47
|
filename: z.string().optional(),
|
|
43
48
|
}).transform((v) => {
|
|
44
49
|
return remap$(v, {
|
|
45
50
|
"file_data": "fileData",
|
|
51
|
+
"file_id": "fileId",
|
|
46
52
|
});
|
|
47
53
|
});
|
|
48
54
|
/** @internal */
|
|
@@ -50,6 +56,7 @@ export type FileContentPartSchema$Outbound = {
|
|
|
50
56
|
file_data?: string | undefined;
|
|
51
57
|
uri?: string | undefined;
|
|
52
58
|
mimeType?: string | undefined;
|
|
59
|
+
file_id?: string | undefined;
|
|
53
60
|
filename?: string | undefined;
|
|
54
61
|
};
|
|
55
62
|
|
|
@@ -62,10 +69,12 @@ export const FileContentPartSchema$outboundSchema: z.ZodType<
|
|
|
62
69
|
fileData: z.string().optional(),
|
|
63
70
|
uri: z.string().optional(),
|
|
64
71
|
mimeType: z.string().optional(),
|
|
72
|
+
fileId: z.string().optional(),
|
|
65
73
|
filename: z.string().optional(),
|
|
66
74
|
}).transform((v) => {
|
|
67
75
|
return remap$(v, {
|
|
68
76
|
fileData: "file_data",
|
|
77
|
+
fileId: "file_id",
|
|
69
78
|
});
|
|
70
79
|
});
|
|
71
80
|
|
|
@@ -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";
|
|
@@ -444,7 +446,6 @@ export * from "./projectbudgetscope.js";
|
|
|
444
446
|
export * from "./projectbudgetscoperestresponse.js";
|
|
445
447
|
export * from "./providerbudgetscope.js";
|
|
446
448
|
export * from "./providertoolinput.js";
|
|
447
|
-
export * from "./publiccompactionitem.js";
|
|
448
449
|
export * from "./publiccontact.js";
|
|
449
450
|
export * from "./publicembeddingdata.js";
|
|
450
451
|
export * from "./publicembeddingusage.js";
|
|
@@ -546,6 +547,11 @@ export * from "./responsereasoningtextdonestreamevent.js";
|
|
|
546
547
|
export * from "./responserefusaldeltastreamevent.js";
|
|
547
548
|
export * from "./responserefusaldonestreamevent.js";
|
|
548
549
|
export * from "./responseretryconfig.js";
|
|
550
|
+
export * from "./responseshellcallcommandaddedstreamevent.js";
|
|
551
|
+
export * from "./responseshellcallcommanddeltastreamevent.js";
|
|
552
|
+
export * from "./responseshellcallcommanddonestreamevent.js";
|
|
553
|
+
export * from "./responseshellcalloutputcontentdeltastreamevent.js";
|
|
554
|
+
export * from "./responseshellcalloutputcontentdonestreamevent.js";
|
|
549
555
|
export * from "./responsestartedevent.js";
|
|
550
556
|
export * from "./responsestreamevent.js";
|
|
551
557
|
export * from "./responsestreamingevent.js";
|
|
@@ -592,6 +598,7 @@ export * from "./sharing.js";
|
|
|
592
598
|
export * from "./sharingallprojects.js";
|
|
593
599
|
export * from "./sharingselectedprojects.js";
|
|
594
600
|
export * from "./sidekicktoolinput.js";
|
|
601
|
+
export * from "./signalscheck.js";
|
|
595
602
|
export * from "./singleprojectscope.js";
|
|
596
603
|
export * from "./skill.js";
|
|
597
604
|
export * from "./smartrouter.js";
|
|
@@ -316,7 +316,7 @@ export type InvokeDeploymentRequest24 = {
|
|
|
316
316
|
type: "file";
|
|
317
317
|
cacheControl?: TwoCacheControl | undefined;
|
|
318
318
|
/**
|
|
319
|
-
* File data for the content part. Must contain
|
|
319
|
+
* File data for the content part. Must contain exactly one of file_data, file_id or uri.
|
|
320
320
|
*/
|
|
321
321
|
file: FileContentPartSchema;
|
|
322
322
|
};
|
|
@@ -683,7 +683,7 @@ export type Two4 = {
|
|
|
683
683
|
type: "file";
|
|
684
684
|
cacheControl?: InvokeDeploymentRequest2CacheControl | undefined;
|
|
685
685
|
/**
|
|
686
|
-
* File data for the content part. Must contain
|
|
686
|
+
* File data for the content part. Must contain exactly one of file_data, file_id or uri.
|
|
687
687
|
*/
|
|
688
688
|
file: FileContentPartSchema;
|
|
689
689
|
};
|
|
@@ -18,6 +18,14 @@ export type McpGatewayPlugin = {
|
|
|
18
18
|
onFailure?: string | undefined;
|
|
19
19
|
threshold?: number | undefined;
|
|
20
20
|
mask?: Array<string> | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Regions of coverage by ISO 3166-1 alpha-2 code, or ["all"]. Combines with entities: the two selections are unioned.
|
|
23
|
+
*/
|
|
24
|
+
regions?: Array<string> | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Per-entity-type confidence cutoff. Every key must also appear in entities.
|
|
27
|
+
*/
|
|
28
|
+
entityThresholds?: { [k: string]: number } | undefined;
|
|
21
29
|
};
|
|
22
30
|
|
|
23
31
|
/** @internal */
|
|
@@ -32,9 +40,12 @@ export const McpGatewayPlugin$inboundSchema: z.ZodType<
|
|
|
32
40
|
on_failure: z.string().optional(),
|
|
33
41
|
threshold: z.number().optional(),
|
|
34
42
|
mask: z.array(z.string()).optional(),
|
|
43
|
+
regions: z.array(z.string()).optional(),
|
|
44
|
+
entity_thresholds: z.record(z.number()).optional(),
|
|
35
45
|
}).transform((v) => {
|
|
36
46
|
return remap$(v, {
|
|
37
47
|
"on_failure": "onFailure",
|
|
48
|
+
"entity_thresholds": "entityThresholds",
|
|
38
49
|
});
|
|
39
50
|
});
|
|
40
51
|
/** @internal */
|
|
@@ -45,6 +56,8 @@ export type McpGatewayPlugin$Outbound = {
|
|
|
45
56
|
on_failure?: string | undefined;
|
|
46
57
|
threshold?: number | undefined;
|
|
47
58
|
mask?: Array<string> | undefined;
|
|
59
|
+
regions?: Array<string> | undefined;
|
|
60
|
+
entity_thresholds?: { [k: string]: number } | undefined;
|
|
48
61
|
};
|
|
49
62
|
|
|
50
63
|
/** @internal */
|
|
@@ -59,9 +72,12 @@ export const McpGatewayPlugin$outboundSchema: z.ZodType<
|
|
|
59
72
|
onFailure: z.string().optional(),
|
|
60
73
|
threshold: z.number().optional(),
|
|
61
74
|
mask: z.array(z.string()).optional(),
|
|
75
|
+
regions: z.array(z.string()).optional(),
|
|
76
|
+
entityThresholds: z.record(z.number()).optional(),
|
|
62
77
|
}).transform((v) => {
|
|
63
78
|
return remap$(v, {
|
|
64
79
|
onFailure: "on_failure",
|
|
80
|
+
entityThresholds: "entity_thresholds",
|
|
65
81
|
});
|
|
66
82
|
});
|
|
67
83
|
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
8
|
import { ClosedEnum } from "../../types/enums.js";
|
|
8
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
@@ -23,6 +24,7 @@ export const ModelsConfigMode = {
|
|
|
23
24
|
export type ModelsConfigMode = ClosedEnum<typeof ModelsConfigMode>;
|
|
24
25
|
|
|
25
26
|
export type ModelsConfig = {
|
|
27
|
+
fallbackOnCodes?: Array<number> | null | undefined;
|
|
26
28
|
mode: ModelsConfigMode;
|
|
27
29
|
models: Array<ModelRef> | null;
|
|
28
30
|
};
|
|
@@ -42,11 +44,17 @@ export const ModelsConfig$inboundSchema: z.ZodType<
|
|
|
42
44
|
z.ZodTypeDef,
|
|
43
45
|
unknown
|
|
44
46
|
> = z.object({
|
|
47
|
+
fallback_on_codes: z.nullable(z.array(z.number().int())).optional(),
|
|
45
48
|
mode: ModelsConfigMode$inboundSchema,
|
|
46
49
|
models: z.nullable(z.array(ModelRef$inboundSchema)),
|
|
50
|
+
}).transform((v) => {
|
|
51
|
+
return remap$(v, {
|
|
52
|
+
"fallback_on_codes": "fallbackOnCodes",
|
|
53
|
+
});
|
|
47
54
|
});
|
|
48
55
|
/** @internal */
|
|
49
56
|
export type ModelsConfig$Outbound = {
|
|
57
|
+
fallback_on_codes?: Array<number> | null | undefined;
|
|
50
58
|
mode: string;
|
|
51
59
|
models: Array<ModelRef$Outbound> | null;
|
|
52
60
|
};
|
|
@@ -57,8 +65,13 @@ export const ModelsConfig$outboundSchema: z.ZodType<
|
|
|
57
65
|
z.ZodTypeDef,
|
|
58
66
|
ModelsConfig
|
|
59
67
|
> = z.object({
|
|
68
|
+
fallbackOnCodes: z.nullable(z.array(z.number().int())).optional(),
|
|
60
69
|
mode: ModelsConfigMode$outboundSchema,
|
|
61
70
|
models: z.nullable(z.array(ModelRef$outboundSchema)),
|
|
71
|
+
}).transform((v) => {
|
|
72
|
+
return remap$(v, {
|
|
73
|
+
fallbackOnCodes: "fallback_on_codes",
|
|
74
|
+
});
|
|
62
75
|
});
|
|
63
76
|
|
|
64
77
|
export function modelsConfigToJSON(modelsConfig: ModelsConfig): string {
|
|
@@ -40,7 +40,7 @@ export const ReasoningPart$inboundSchema: z.ZodType<
|
|
|
40
40
|
z.ZodTypeDef,
|
|
41
41
|
unknown
|
|
42
42
|
> = z.object({
|
|
43
|
-
_id: z.string().default("
|
|
43
|
+
_id: z.string().default("reasoning_01m4tganvhk0nn3p44far25wg3"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
package/packages/orq-rc/src/models/components/responsefunctioncallargumentsdonestreamevent.ts
CHANGED
|
@@ -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"),
|
package/packages/orq-rc/src/models/components/responseimagegenerationcallpartialimagestreamevent.ts
CHANGED
|
@@ -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",
|
package/packages/orq-rc/src/models/components/responsereasoningsummarypartaddedstreamevent.ts
CHANGED
|
@@ -31,6 +31,10 @@ export type ResponseReasoningSummaryPartAddedStreamEvent = {
|
|
|
31
31
|
* Monotonically increasing sequence number for ordering events.
|
|
32
32
|
*/
|
|
33
33
|
sequenceNumber: number;
|
|
34
|
+
/**
|
|
35
|
+
* The completed summary part status, when supplied.
|
|
36
|
+
*/
|
|
37
|
+
status?: string | undefined;
|
|
34
38
|
/**
|
|
35
39
|
* Index of the reasoning summary part.
|
|
36
40
|
*/
|
|
@@ -54,6 +58,7 @@ export const ResponseReasoningSummaryPartAddedStreamEvent$inboundSchema:
|
|
|
54
58
|
output_index: z.number().int(),
|
|
55
59
|
part: z.record(z.any()),
|
|
56
60
|
sequence_number: z.number().int(),
|
|
61
|
+
status: z.string().optional(),
|
|
57
62
|
summary_index: z.number().int(),
|
|
58
63
|
type: z.literal("response.reasoning_summary_part.added"),
|
|
59
64
|
}).catchall(z.any()),
|
package/packages/orq-rc/src/models/components/responsereasoningsummarypartdonestreamevent.ts
CHANGED
|
@@ -31,6 +31,10 @@ export type ResponseReasoningSummaryPartDoneStreamEvent = {
|
|
|
31
31
|
* Monotonically increasing sequence number for ordering events.
|
|
32
32
|
*/
|
|
33
33
|
sequenceNumber: number;
|
|
34
|
+
/**
|
|
35
|
+
* The completed summary part status, when supplied.
|
|
36
|
+
*/
|
|
37
|
+
status?: string | undefined;
|
|
34
38
|
/**
|
|
35
39
|
* Index of the reasoning summary part.
|
|
36
40
|
*/
|
|
@@ -54,6 +58,7 @@ export const ResponseReasoningSummaryPartDoneStreamEvent$inboundSchema:
|
|
|
54
58
|
output_index: z.number().int(),
|
|
55
59
|
part: z.record(z.any()),
|
|
56
60
|
sequence_number: z.number().int(),
|
|
61
|
+
status: z.string().optional(),
|
|
57
62
|
summary_index: z.number().int(),
|
|
58
63
|
type: z.literal("response.reasoning_summary_part.done"),
|
|
59
64
|
}).catchall(z.any()),
|
|
@@ -0,0 +1,78 @@
|
|
|
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
|
+
import {
|
|
8
|
+
collectExtraKeys as collectExtraKeys$,
|
|
9
|
+
safeParse,
|
|
10
|
+
} from "../../lib/schemas.js";
|
|
11
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
12
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* A `response.shell_call_command.added` server-sent event.
|
|
16
|
+
*/
|
|
17
|
+
export type ResponseShellCallCommandAddedStreamEvent = {
|
|
18
|
+
/**
|
|
19
|
+
* The shell command.
|
|
20
|
+
*/
|
|
21
|
+
command: string;
|
|
22
|
+
/**
|
|
23
|
+
* Index of the shell command.
|
|
24
|
+
*/
|
|
25
|
+
commandIndex: number;
|
|
26
|
+
/**
|
|
27
|
+
* Index of the output item in the response output array.
|
|
28
|
+
*/
|
|
29
|
+
outputIndex: number;
|
|
30
|
+
/**
|
|
31
|
+
* Monotonically increasing sequence number for ordering events.
|
|
32
|
+
*/
|
|
33
|
+
sequenceNumber: number;
|
|
34
|
+
/**
|
|
35
|
+
* The event type. Discriminates the payload.
|
|
36
|
+
*/
|
|
37
|
+
type: "response.shell_call_command.added";
|
|
38
|
+
additionalProperties?: { [k: string]: any } | undefined;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const ResponseShellCallCommandAddedStreamEvent$inboundSchema: z.ZodType<
|
|
43
|
+
ResponseShellCallCommandAddedStreamEvent,
|
|
44
|
+
z.ZodTypeDef,
|
|
45
|
+
unknown
|
|
46
|
+
> = collectExtraKeys$(
|
|
47
|
+
z.object({
|
|
48
|
+
command: z.string(),
|
|
49
|
+
command_index: z.number().int(),
|
|
50
|
+
output_index: z.number().int(),
|
|
51
|
+
sequence_number: z.number().int(),
|
|
52
|
+
type: z.literal("response.shell_call_command.added"),
|
|
53
|
+
}).catchall(z.any()),
|
|
54
|
+
"additionalProperties",
|
|
55
|
+
true,
|
|
56
|
+
).transform((v) => {
|
|
57
|
+
return remap$(v, {
|
|
58
|
+
"command_index": "commandIndex",
|
|
59
|
+
"output_index": "outputIndex",
|
|
60
|
+
"sequence_number": "sequenceNumber",
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
export function responseShellCallCommandAddedStreamEventFromJSON(
|
|
65
|
+
jsonString: string,
|
|
66
|
+
): SafeParseResult<
|
|
67
|
+
ResponseShellCallCommandAddedStreamEvent,
|
|
68
|
+
SDKValidationError
|
|
69
|
+
> {
|
|
70
|
+
return safeParse(
|
|
71
|
+
jsonString,
|
|
72
|
+
(x) =>
|
|
73
|
+
ResponseShellCallCommandAddedStreamEvent$inboundSchema.parse(
|
|
74
|
+
JSON.parse(x),
|
|
75
|
+
),
|
|
76
|
+
`Failed to parse 'ResponseShellCallCommandAddedStreamEvent' from JSON`,
|
|
77
|
+
);
|
|
78
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
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
|
+
import {
|
|
8
|
+
collectExtraKeys as collectExtraKeys$,
|
|
9
|
+
safeParse,
|
|
10
|
+
} from "../../lib/schemas.js";
|
|
11
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
12
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* A `response.shell_call_command.delta` server-sent event.
|
|
16
|
+
*/
|
|
17
|
+
export type ResponseShellCallCommandDeltaStreamEvent = {
|
|
18
|
+
/**
|
|
19
|
+
* Index of the shell command.
|
|
20
|
+
*/
|
|
21
|
+
commandIndex: number;
|
|
22
|
+
/**
|
|
23
|
+
* Incremental text or argument chunk.
|
|
24
|
+
*/
|
|
25
|
+
delta: string;
|
|
26
|
+
/**
|
|
27
|
+
* Obfuscation padding accompanying the delta, when present.
|
|
28
|
+
*/
|
|
29
|
+
obfuscation?: string | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Index of the output item in the response output array.
|
|
32
|
+
*/
|
|
33
|
+
outputIndex: number;
|
|
34
|
+
/**
|
|
35
|
+
* Monotonically increasing sequence number for ordering events.
|
|
36
|
+
*/
|
|
37
|
+
sequenceNumber: number;
|
|
38
|
+
/**
|
|
39
|
+
* The event type. Discriminates the payload.
|
|
40
|
+
*/
|
|
41
|
+
type: "response.shell_call_command.delta";
|
|
42
|
+
additionalProperties?: { [k: string]: any } | undefined;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const ResponseShellCallCommandDeltaStreamEvent$inboundSchema: z.ZodType<
|
|
47
|
+
ResponseShellCallCommandDeltaStreamEvent,
|
|
48
|
+
z.ZodTypeDef,
|
|
49
|
+
unknown
|
|
50
|
+
> = collectExtraKeys$(
|
|
51
|
+
z.object({
|
|
52
|
+
command_index: z.number().int(),
|
|
53
|
+
delta: z.string(),
|
|
54
|
+
obfuscation: z.string().optional(),
|
|
55
|
+
output_index: z.number().int(),
|
|
56
|
+
sequence_number: z.number().int(),
|
|
57
|
+
type: z.literal("response.shell_call_command.delta"),
|
|
58
|
+
}).catchall(z.any()),
|
|
59
|
+
"additionalProperties",
|
|
60
|
+
true,
|
|
61
|
+
).transform((v) => {
|
|
62
|
+
return remap$(v, {
|
|
63
|
+
"command_index": "commandIndex",
|
|
64
|
+
"output_index": "outputIndex",
|
|
65
|
+
"sequence_number": "sequenceNumber",
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
export function responseShellCallCommandDeltaStreamEventFromJSON(
|
|
70
|
+
jsonString: string,
|
|
71
|
+
): SafeParseResult<
|
|
72
|
+
ResponseShellCallCommandDeltaStreamEvent,
|
|
73
|
+
SDKValidationError
|
|
74
|
+
> {
|
|
75
|
+
return safeParse(
|
|
76
|
+
jsonString,
|
|
77
|
+
(x) =>
|
|
78
|
+
ResponseShellCallCommandDeltaStreamEvent$inboundSchema.parse(
|
|
79
|
+
JSON.parse(x),
|
|
80
|
+
),
|
|
81
|
+
`Failed to parse 'ResponseShellCallCommandDeltaStreamEvent' from JSON`,
|
|
82
|
+
);
|
|
83
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
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
|
+
import {
|
|
8
|
+
collectExtraKeys as collectExtraKeys$,
|
|
9
|
+
safeParse,
|
|
10
|
+
} from "../../lib/schemas.js";
|
|
11
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
12
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* A `response.shell_call_command.done` server-sent event.
|
|
16
|
+
*/
|
|
17
|
+
export type ResponseShellCallCommandDoneStreamEvent = {
|
|
18
|
+
/**
|
|
19
|
+
* The shell command.
|
|
20
|
+
*/
|
|
21
|
+
command: string;
|
|
22
|
+
/**
|
|
23
|
+
* Index of the shell command.
|
|
24
|
+
*/
|
|
25
|
+
commandIndex: number;
|
|
26
|
+
/**
|
|
27
|
+
* Index of the output item in the response output array.
|
|
28
|
+
*/
|
|
29
|
+
outputIndex: number;
|
|
30
|
+
/**
|
|
31
|
+
* Monotonically increasing sequence number for ordering events.
|
|
32
|
+
*/
|
|
33
|
+
sequenceNumber: number;
|
|
34
|
+
/**
|
|
35
|
+
* The event type. Discriminates the payload.
|
|
36
|
+
*/
|
|
37
|
+
type: "response.shell_call_command.done";
|
|
38
|
+
additionalProperties?: { [k: string]: any } | undefined;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const ResponseShellCallCommandDoneStreamEvent$inboundSchema: z.ZodType<
|
|
43
|
+
ResponseShellCallCommandDoneStreamEvent,
|
|
44
|
+
z.ZodTypeDef,
|
|
45
|
+
unknown
|
|
46
|
+
> = collectExtraKeys$(
|
|
47
|
+
z.object({
|
|
48
|
+
command: z.string(),
|
|
49
|
+
command_index: z.number().int(),
|
|
50
|
+
output_index: z.number().int(),
|
|
51
|
+
sequence_number: z.number().int(),
|
|
52
|
+
type: z.literal("response.shell_call_command.done"),
|
|
53
|
+
}).catchall(z.any()),
|
|
54
|
+
"additionalProperties",
|
|
55
|
+
true,
|
|
56
|
+
).transform((v) => {
|
|
57
|
+
return remap$(v, {
|
|
58
|
+
"command_index": "commandIndex",
|
|
59
|
+
"output_index": "outputIndex",
|
|
60
|
+
"sequence_number": "sequenceNumber",
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
export function responseShellCallCommandDoneStreamEventFromJSON(
|
|
65
|
+
jsonString: string,
|
|
66
|
+
): SafeParseResult<
|
|
67
|
+
ResponseShellCallCommandDoneStreamEvent,
|
|
68
|
+
SDKValidationError
|
|
69
|
+
> {
|
|
70
|
+
return safeParse(
|
|
71
|
+
jsonString,
|
|
72
|
+
(x) =>
|
|
73
|
+
ResponseShellCallCommandDoneStreamEvent$inboundSchema.parse(
|
|
74
|
+
JSON.parse(x),
|
|
75
|
+
),
|
|
76
|
+
`Failed to parse 'ResponseShellCallCommandDoneStreamEvent' from JSON`,
|
|
77
|
+
);
|
|
78
|
+
}
|