@orq-ai/node 4.11.0-rc.5 → 4.11.0-rc.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/index.d.ts +23 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +23 -0
- package/models/components/index.js.map +1 -1
- package/models/components/publicresponseresource.d.ts +105 -0
- package/models/components/publicresponseresource.d.ts.map +1 -0
- package/models/components/publicresponseresource.js +138 -0
- package/models/components/publicresponseresource.js.map +1 -0
- package/models/components/reasoningpart.js +1 -1
- package/models/components/responsecodeinterpretercodedeltastreamevent.d.ts +61 -0
- package/models/components/responsecodeinterpretercodedeltastreamevent.d.ts.map +1 -0
- package/models/components/responsecodeinterpretercodedeltastreamevent.js +89 -0
- package/models/components/responsecodeinterpretercodedeltastreamevent.js.map +1 -0
- package/models/components/responsecodeinterpretercodedonestreamevent.d.ts +61 -0
- package/models/components/responsecodeinterpretercodedonestreamevent.d.ts.map +1 -0
- package/models/components/responsecodeinterpretercodedonestreamevent.js +89 -0
- package/models/components/responsecodeinterpretercodedonestreamevent.js.map +1 -0
- package/models/components/responsecontentpartstreamevent.d.ts +81 -0
- package/models/components/responsecontentpartstreamevent.d.ts.map +1 -0
- package/models/components/responsecontentpartstreamevent.js +100 -0
- package/models/components/responsecontentpartstreamevent.js.map +1 -0
- package/models/components/responseerrorstreamevent.d.ts +51 -0
- package/models/components/responseerrorstreamevent.d.ts.map +1 -0
- package/models/components/responseerrorstreamevent.js +85 -0
- package/models/components/responseerrorstreamevent.js.map +1 -0
- package/models/components/responsefunctioncallargumentsdeltastreamevent.d.ts +65 -0
- package/models/components/responsefunctioncallargumentsdeltastreamevent.d.ts.map +1 -0
- package/models/components/responsefunctioncallargumentsdeltastreamevent.js +90 -0
- package/models/components/responsefunctioncallargumentsdeltastreamevent.js.map +1 -0
- package/models/components/responsefunctioncallargumentsdonestreamevent.d.ts +61 -0
- package/models/components/responsefunctioncallargumentsdonestreamevent.d.ts.map +1 -0
- package/models/components/responsefunctioncallargumentsdonestreamevent.js +89 -0
- package/models/components/responsefunctioncallargumentsdonestreamevent.js.map +1 -0
- package/models/components/responsehostedtoolcallstreamevent.d.ts +97 -0
- package/models/components/responsehostedtoolcallstreamevent.d.ts.map +1 -0
- package/models/components/responsehostedtoolcallstreamevent.js +123 -0
- package/models/components/responsehostedtoolcallstreamevent.js.map +1 -0
- package/models/components/responseimagegenerationpartialimagestreamevent.d.ts +65 -0
- package/models/components/responseimagegenerationpartialimagestreamevent.d.ts.map +1 -0
- package/models/components/responseimagegenerationpartialimagestreamevent.js +92 -0
- package/models/components/responseimagegenerationpartialimagestreamevent.js.map +1 -0
- package/models/components/responselifecyclestreamevent.d.ts +73 -0
- package/models/components/responselifecyclestreamevent.d.ts.map +1 -0
- package/models/components/responselifecyclestreamevent.js +103 -0
- package/models/components/responselifecyclestreamevent.js.map +1 -0
- package/models/components/responsemcpcallargumentsdeltastreamevent.d.ts +61 -0
- package/models/components/responsemcpcallargumentsdeltastreamevent.d.ts.map +1 -0
- package/models/components/responsemcpcallargumentsdeltastreamevent.js +89 -0
- package/models/components/responsemcpcallargumentsdeltastreamevent.js.map +1 -0
- package/models/components/responsemcpcallargumentsdonestreamevent.d.ts +61 -0
- package/models/components/responsemcpcallargumentsdonestreamevent.d.ts.map +1 -0
- package/models/components/responsemcpcallargumentsdonestreamevent.js +89 -0
- package/models/components/responsemcpcallargumentsdonestreamevent.js.map +1 -0
- package/models/components/responseoutputitemstreamevent.d.ts +73 -0
- package/models/components/responseoutputitemstreamevent.d.ts.map +1 -0
- package/models/components/responseoutputitemstreamevent.js +96 -0
- package/models/components/responseoutputitemstreamevent.js.map +1 -0
- package/models/components/responseoutputtextannotationaddedstreamevent.d.ts +71 -0
- package/models/components/responseoutputtextannotationaddedstreamevent.d.ts.map +1 -0
- package/models/components/responseoutputtextannotationaddedstreamevent.js +93 -0
- package/models/components/responseoutputtextannotationaddedstreamevent.js.map +1 -0
- package/models/components/responseoutputtextdeltastreamevent.d.ts +75 -0
- package/models/components/responseoutputtextdeltastreamevent.d.ts.map +1 -0
- package/models/components/responseoutputtextdeltastreamevent.js +92 -0
- package/models/components/responseoutputtextdeltastreamevent.js.map +1 -0
- package/models/components/responseoutputtextdonestreamevent.d.ts +71 -0
- package/models/components/responseoutputtextdonestreamevent.d.ts.map +1 -0
- package/models/components/responseoutputtextdonestreamevent.js +91 -0
- package/models/components/responseoutputtextdonestreamevent.js.map +1 -0
- package/models/components/responsereasoningdeltastreamevent.d.ts +83 -0
- package/models/components/responsereasoningdeltastreamevent.d.ts.map +1 -0
- package/models/components/responsereasoningdeltastreamevent.js +101 -0
- package/models/components/responsereasoningdeltastreamevent.js.map +1 -0
- package/models/components/responsereasoningdonestreamevent.d.ts +79 -0
- package/models/components/responsereasoningdonestreamevent.d.ts.map +1 -0
- package/models/components/responsereasoningdonestreamevent.js +100 -0
- package/models/components/responsereasoningdonestreamevent.js.map +1 -0
- package/models/components/responsereasoningsummarypartstreamevent.d.ts +81 -0
- package/models/components/responsereasoningsummarypartstreamevent.d.ts.map +1 -0
- package/models/components/responsereasoningsummarypartstreamevent.js +102 -0
- package/models/components/responsereasoningsummarypartstreamevent.js.map +1 -0
- package/models/components/responsereasoningsummarytextdeltastreamevent.d.ts +69 -0
- package/models/components/responsereasoningsummarytextdeltastreamevent.d.ts.map +1 -0
- package/models/components/responsereasoningsummarytextdeltastreamevent.js +92 -0
- package/models/components/responsereasoningsummarytextdeltastreamevent.js.map +1 -0
- package/models/components/responsereasoningsummarytextdonestreamevent.d.ts +65 -0
- package/models/components/responsereasoningsummarytextdonestreamevent.d.ts.map +1 -0
- package/models/components/responsereasoningsummarytextdonestreamevent.js +91 -0
- package/models/components/responsereasoningsummarytextdonestreamevent.js.map +1 -0
- package/models/components/responserefusaldeltastreamevent.d.ts +65 -0
- package/models/components/responserefusaldeltastreamevent.d.ts.map +1 -0
- package/models/components/responserefusaldeltastreamevent.js +90 -0
- package/models/components/responserefusaldeltastreamevent.js.map +1 -0
- package/models/components/responserefusaldonestreamevent.d.ts +65 -0
- package/models/components/responserefusaldonestreamevent.d.ts.map +1 -0
- package/models/components/responserefusaldonestreamevent.js +90 -0
- package/models/components/responserefusaldonestreamevent.js.map +1 -0
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.js +16 -16
- package/models/operations/createrouterresponse.d.ts +127 -57
- package/models/operations/createrouterresponse.d.ts.map +1 -1
- package/models/operations/createrouterresponse.js +142 -61
- package/models/operations/createrouterresponse.js.map +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +3 -3
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updatetool.js +7 -7
- package/package.json +5 -5
- package/sdk/feedback.d.ts +4 -1
- package/sdk/feedback.d.ts.map +1 -1
- package/sdk/feedback.js +4 -1
- package/sdk/feedback.js.map +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/index.ts +23 -0
- package/src/models/components/publicresponseresource.ts +196 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/responsecodeinterpretercodedeltastreamevent.ts +149 -0
- package/src/models/components/responsecodeinterpretercodedonestreamevent.ts +146 -0
- package/src/models/components/responsecontentpartstreamevent.ts +157 -0
- package/src/models/components/responseerrorstreamevent.ts +116 -0
- package/src/models/components/responsefunctioncallargumentsdeltastreamevent.ts +153 -0
- package/src/models/components/responsefunctioncallargumentsdonestreamevent.ts +148 -0
- package/src/models/components/responsehostedtoolcallstreamevent.ts +186 -0
- package/src/models/components/responseimagegenerationpartialimagestreamevent.ts +156 -0
- package/src/models/components/responselifecyclestreamevent.ts +145 -0
- package/src/models/components/responsemcpcallargumentsdeltastreamevent.ts +145 -0
- package/src/models/components/responsemcpcallargumentsdonestreamevent.ts +145 -0
- package/src/models/components/responseoutputitemstreamevent.ts +144 -0
- package/src/models/components/responseoutputtextannotationaddedstreamevent.ts +160 -0
- package/src/models/components/responseoutputtextdeltastreamevent.ts +149 -0
- package/src/models/components/responseoutputtextdonestreamevent.ts +143 -0
- package/src/models/components/responsereasoningdeltastreamevent.ts +164 -0
- package/src/models/components/responsereasoningdonestreamevent.ts +159 -0
- package/src/models/components/responsereasoningsummarypartstreamevent.ts +171 -0
- package/src/models/components/responsereasoningsummarytextdeltastreamevent.ts +159 -0
- package/src/models/components/responsereasoningsummarytextdonestreamevent.ts +154 -0
- package/src/models/components/responserefusaldeltastreamevent.ts +137 -0
- package/src/models/components/responserefusaldonestreamevent.ts +137 -0
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/createrouterresponse.ts +468 -101
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/feedback.ts +4 -1
package/sdk/feedback.js
CHANGED
|
@@ -21,7 +21,10 @@ class Feedback extends sdks_js_1.ClientSDK {
|
|
|
21
21
|
return (0, fp_js_1.unwrapAsync)((0, feedbackRemove_js_1.feedbackRemove)(this, request, options));
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
* Create
|
|
24
|
+
* Create completion
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
* For sending requests to legacy completion models
|
|
25
28
|
*/
|
|
26
29
|
async create(request, options) {
|
|
27
30
|
return (0, fp_js_1.unwrapAsync)((0, feedbackCreate_js_1.feedbackCreate)(this, request, options));
|
package/sdk/feedback.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feedback.js","sourceRoot":"","sources":["../src/sdk/feedback.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,kEAA4D;AAC5D,sFAAgF;AAChF,kEAA4D;AAC5D,sFAAgF;AAChF,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,QAAS,SAAQ,mBAAS;IACrC,KAAK,CAAC,gBAAgB,CACpB,OAA0E,EAC1E,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sDAAwB,EACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,gBAAgB,CACpB,OAAoE,EACpE,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sDAAwB,EACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,MAAM,CACV,OAAgE,EAChE,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kCAAc,EAC/B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED
|
|
1
|
+
{"version":3,"file":"feedback.js","sourceRoot":"","sources":["../src/sdk/feedback.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,kEAA4D;AAC5D,sFAAgF;AAChF,kEAA4D;AAC5D,sFAAgF;AAChF,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,QAAS,SAAQ,mBAAS;IACrC,KAAK,CAAC,gBAAgB,CACpB,OAA0E,EAC1E,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sDAAwB,EACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,gBAAgB,CACpB,OAAoE,EACpE,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sDAAwB,EACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,MAAM,CACV,OAAgE,EAChE,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kCAAc,EAC/B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAA0D,EAC1D,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kCAAc,EAC/B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAlDD,4BAkDC"}
|
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.11.0-rc.
|
|
61
|
+
sdkVersion: "4.11.0-rc.6",
|
|
62
62
|
genVersion: "2.897.1",
|
|
63
|
-
userAgent: "speakeasy-sdk/typescript 4.11.0-rc.
|
|
63
|
+
userAgent: "speakeasy-sdk/typescript 4.11.0-rc.6 2.897.1 2.0 @orq-ai/node",
|
|
64
64
|
} as const;
|
|
@@ -116,6 +116,7 @@ export * from "./publicembeddingdata.js";
|
|
|
116
116
|
export * from "./publicembeddingusage.js";
|
|
117
117
|
export * from "./publicidentity.js";
|
|
118
118
|
export * from "./publicmodelentry.js";
|
|
119
|
+
export * from "./publicresponseresource.js";
|
|
119
120
|
export * from "./publicschedule.js";
|
|
120
121
|
export * from "./publicscheduleerrordetail.js";
|
|
121
122
|
export * from "./publicschedulepayload.js";
|
|
@@ -131,12 +132,34 @@ export * from "./redactrequest.js";
|
|
|
131
132
|
export * from "./redactresponse.js";
|
|
132
133
|
export * from "./refusalpartschema.js";
|
|
133
134
|
export * from "./requestlimit.js";
|
|
135
|
+
export * from "./responsecodeinterpretercodedeltastreamevent.js";
|
|
136
|
+
export * from "./responsecodeinterpretercodedonestreamevent.js";
|
|
137
|
+
export * from "./responsecontentpartstreamevent.js";
|
|
134
138
|
export * from "./responsedoneevent.js";
|
|
135
139
|
export * from "./responseerror.js";
|
|
140
|
+
export * from "./responseerrorstreamevent.js";
|
|
136
141
|
export * from "./responseexecutionlimits.js";
|
|
137
142
|
export * from "./responsefailedevent.js";
|
|
143
|
+
export * from "./responsefunctioncallargumentsdeltastreamevent.js";
|
|
144
|
+
export * from "./responsefunctioncallargumentsdonestreamevent.js";
|
|
145
|
+
export * from "./responsehostedtoolcallstreamevent.js";
|
|
138
146
|
export * from "./responseidentity.js";
|
|
147
|
+
export * from "./responseimagegenerationpartialimagestreamevent.js";
|
|
148
|
+
export * from "./responselifecyclestreamevent.js";
|
|
149
|
+
export * from "./responsemcpcallargumentsdeltastreamevent.js";
|
|
150
|
+
export * from "./responsemcpcallargumentsdonestreamevent.js";
|
|
139
151
|
export * from "./responsemeta.js";
|
|
152
|
+
export * from "./responseoutputitemstreamevent.js";
|
|
153
|
+
export * from "./responseoutputtextannotationaddedstreamevent.js";
|
|
154
|
+
export * from "./responseoutputtextdeltastreamevent.js";
|
|
155
|
+
export * from "./responseoutputtextdonestreamevent.js";
|
|
156
|
+
export * from "./responsereasoningdeltastreamevent.js";
|
|
157
|
+
export * from "./responsereasoningdonestreamevent.js";
|
|
158
|
+
export * from "./responsereasoningsummarypartstreamevent.js";
|
|
159
|
+
export * from "./responsereasoningsummarytextdeltastreamevent.js";
|
|
160
|
+
export * from "./responsereasoningsummarytextdonestreamevent.js";
|
|
161
|
+
export * from "./responserefusaldeltastreamevent.js";
|
|
162
|
+
export * from "./responserefusaldonestreamevent.js";
|
|
140
163
|
export * from "./responseretryconfig.js";
|
|
141
164
|
export * from "./responsestartedevent.js";
|
|
142
165
|
export * from "./responsestreamingevent.js";
|
|
@@ -0,0 +1,196 @@
|
|
|
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 { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
import {
|
|
12
|
+
ConversationParam,
|
|
13
|
+
ConversationParam$inboundSchema,
|
|
14
|
+
} from "./conversationparam.js";
|
|
15
|
+
import {
|
|
16
|
+
IncompleteDetails,
|
|
17
|
+
IncompleteDetails$inboundSchema,
|
|
18
|
+
} from "./incompletedetails.js";
|
|
19
|
+
import { MemoryParam, MemoryParam$inboundSchema } from "./memoryparam.js";
|
|
20
|
+
import { PublicUsage, PublicUsage$inboundSchema } from "./publicusage.js";
|
|
21
|
+
import { Reasoning, Reasoning$inboundSchema } from "./reasoning.js";
|
|
22
|
+
import { ResponseError, ResponseError$inboundSchema } from "./responseerror.js";
|
|
23
|
+
|
|
24
|
+
export const ServiceTier = {
|
|
25
|
+
Auto: "auto",
|
|
26
|
+
Default: "default",
|
|
27
|
+
Flex: "flex",
|
|
28
|
+
Priority: "priority",
|
|
29
|
+
} as const;
|
|
30
|
+
export type ServiceTier = ClosedEnum<typeof ServiceTier>;
|
|
31
|
+
|
|
32
|
+
export const PublicResponseResourceStatus = {
|
|
33
|
+
Queued: "queued",
|
|
34
|
+
InProgress: "in_progress",
|
|
35
|
+
Completed: "completed",
|
|
36
|
+
Failed: "failed",
|
|
37
|
+
Incomplete: "incomplete",
|
|
38
|
+
RequiresAction: "requires_action",
|
|
39
|
+
} as const;
|
|
40
|
+
export type PublicResponseResourceStatus = ClosedEnum<
|
|
41
|
+
typeof PublicResponseResourceStatus
|
|
42
|
+
>;
|
|
43
|
+
|
|
44
|
+
export const Truncation = {
|
|
45
|
+
Disabled: "disabled",
|
|
46
|
+
Auto: "auto",
|
|
47
|
+
} as const;
|
|
48
|
+
export type Truncation = ClosedEnum<typeof Truncation>;
|
|
49
|
+
|
|
50
|
+
export type PublicResponseResource = {
|
|
51
|
+
background: boolean;
|
|
52
|
+
completedAt: number | null;
|
|
53
|
+
conversation?: ConversationParam | undefined;
|
|
54
|
+
createdAt: number;
|
|
55
|
+
error: ResponseError;
|
|
56
|
+
frequencyPenalty: number;
|
|
57
|
+
id: string;
|
|
58
|
+
incompleteDetails: IncompleteDetails;
|
|
59
|
+
/**
|
|
60
|
+
* Array of input items (messages, function call outputs, etc.)
|
|
61
|
+
*/
|
|
62
|
+
input: Array<any> | null;
|
|
63
|
+
instructions: string | null;
|
|
64
|
+
maxOutputTokens: number | null;
|
|
65
|
+
maxToolCalls: number | null;
|
|
66
|
+
memory?: MemoryParam | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* Developer-defined key-value pairs attached to the response (OpenAI spec: Map<string, string>).
|
|
69
|
+
*/
|
|
70
|
+
metadata: { [k: string]: string };
|
|
71
|
+
model: string;
|
|
72
|
+
/**
|
|
73
|
+
* Always "response"
|
|
74
|
+
*/
|
|
75
|
+
object: string;
|
|
76
|
+
/**
|
|
77
|
+
* Array of output items (messages, function calls, reasoning, etc.)
|
|
78
|
+
*/
|
|
79
|
+
output: Array<any> | null;
|
|
80
|
+
parallelToolCalls: boolean;
|
|
81
|
+
presencePenalty: number;
|
|
82
|
+
previousResponseId: string | null;
|
|
83
|
+
promptCacheKey: string | null;
|
|
84
|
+
promptCacheRetention: string | null;
|
|
85
|
+
reasoning: Reasoning;
|
|
86
|
+
safetyIdentifier: string | null;
|
|
87
|
+
serviceTier: ServiceTier;
|
|
88
|
+
status: PublicResponseResourceStatus;
|
|
89
|
+
store: boolean;
|
|
90
|
+
temperature: number;
|
|
91
|
+
/**
|
|
92
|
+
* Text output configuration including format and verbosity
|
|
93
|
+
*/
|
|
94
|
+
text?: any | undefined;
|
|
95
|
+
/**
|
|
96
|
+
* Tool choice setting: "auto", "none", "required", or a specific function
|
|
97
|
+
*/
|
|
98
|
+
toolChoice?: any | undefined;
|
|
99
|
+
/**
|
|
100
|
+
* Array of tool configurations used in this response
|
|
101
|
+
*/
|
|
102
|
+
tools: Array<any> | null;
|
|
103
|
+
topLogprobs: number;
|
|
104
|
+
topP: number;
|
|
105
|
+
truncation: Truncation;
|
|
106
|
+
usage: PublicUsage;
|
|
107
|
+
user: string | null;
|
|
108
|
+
variables?: { [k: string]: any } | undefined;
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
/** @internal */
|
|
112
|
+
export const ServiceTier$inboundSchema: z.ZodNativeEnum<typeof ServiceTier> = z
|
|
113
|
+
.nativeEnum(ServiceTier);
|
|
114
|
+
|
|
115
|
+
/** @internal */
|
|
116
|
+
export const PublicResponseResourceStatus$inboundSchema: z.ZodNativeEnum<
|
|
117
|
+
typeof PublicResponseResourceStatus
|
|
118
|
+
> = z.nativeEnum(PublicResponseResourceStatus);
|
|
119
|
+
|
|
120
|
+
/** @internal */
|
|
121
|
+
export const Truncation$inboundSchema: z.ZodNativeEnum<typeof Truncation> = z
|
|
122
|
+
.nativeEnum(Truncation);
|
|
123
|
+
|
|
124
|
+
/** @internal */
|
|
125
|
+
export const PublicResponseResource$inboundSchema: z.ZodType<
|
|
126
|
+
PublicResponseResource,
|
|
127
|
+
z.ZodTypeDef,
|
|
128
|
+
unknown
|
|
129
|
+
> = z.object({
|
|
130
|
+
background: z.boolean(),
|
|
131
|
+
completed_at: z.nullable(z.number().int()),
|
|
132
|
+
conversation: ConversationParam$inboundSchema.optional(),
|
|
133
|
+
created_at: z.number().int(),
|
|
134
|
+
error: ResponseError$inboundSchema,
|
|
135
|
+
frequency_penalty: z.number(),
|
|
136
|
+
id: z.string(),
|
|
137
|
+
incomplete_details: IncompleteDetails$inboundSchema,
|
|
138
|
+
input: z.nullable(z.array(z.any())),
|
|
139
|
+
instructions: z.nullable(z.string()),
|
|
140
|
+
max_output_tokens: z.nullable(z.number().int()),
|
|
141
|
+
max_tool_calls: z.nullable(z.number().int()),
|
|
142
|
+
memory: MemoryParam$inboundSchema.optional(),
|
|
143
|
+
metadata: z.record(z.string()),
|
|
144
|
+
model: z.string(),
|
|
145
|
+
object: z.string(),
|
|
146
|
+
output: z.nullable(z.array(z.any())),
|
|
147
|
+
parallel_tool_calls: z.boolean(),
|
|
148
|
+
presence_penalty: z.number(),
|
|
149
|
+
previous_response_id: z.nullable(z.string()),
|
|
150
|
+
prompt_cache_key: z.nullable(z.string()),
|
|
151
|
+
prompt_cache_retention: z.nullable(z.string()),
|
|
152
|
+
reasoning: Reasoning$inboundSchema,
|
|
153
|
+
safety_identifier: z.nullable(z.string()),
|
|
154
|
+
service_tier: ServiceTier$inboundSchema,
|
|
155
|
+
status: PublicResponseResourceStatus$inboundSchema,
|
|
156
|
+
store: z.boolean(),
|
|
157
|
+
temperature: z.number(),
|
|
158
|
+
text: z.any().optional(),
|
|
159
|
+
tool_choice: z.any().optional(),
|
|
160
|
+
tools: z.nullable(z.array(z.any())),
|
|
161
|
+
top_logprobs: z.number().int(),
|
|
162
|
+
top_p: z.number(),
|
|
163
|
+
truncation: Truncation$inboundSchema,
|
|
164
|
+
usage: PublicUsage$inboundSchema,
|
|
165
|
+
user: z.nullable(z.string()),
|
|
166
|
+
variables: z.record(z.any()).optional(),
|
|
167
|
+
}).transform((v) => {
|
|
168
|
+
return remap$(v, {
|
|
169
|
+
"completed_at": "completedAt",
|
|
170
|
+
"created_at": "createdAt",
|
|
171
|
+
"frequency_penalty": "frequencyPenalty",
|
|
172
|
+
"incomplete_details": "incompleteDetails",
|
|
173
|
+
"max_output_tokens": "maxOutputTokens",
|
|
174
|
+
"max_tool_calls": "maxToolCalls",
|
|
175
|
+
"parallel_tool_calls": "parallelToolCalls",
|
|
176
|
+
"presence_penalty": "presencePenalty",
|
|
177
|
+
"previous_response_id": "previousResponseId",
|
|
178
|
+
"prompt_cache_key": "promptCacheKey",
|
|
179
|
+
"prompt_cache_retention": "promptCacheRetention",
|
|
180
|
+
"safety_identifier": "safetyIdentifier",
|
|
181
|
+
"service_tier": "serviceTier",
|
|
182
|
+
"tool_choice": "toolChoice",
|
|
183
|
+
"top_logprobs": "topLogprobs",
|
|
184
|
+
"top_p": "topP",
|
|
185
|
+
});
|
|
186
|
+
});
|
|
187
|
+
|
|
188
|
+
export function publicResponseResourceFromJSON(
|
|
189
|
+
jsonString: string,
|
|
190
|
+
): SafeParseResult<PublicResponseResource, SDKValidationError> {
|
|
191
|
+
return safeParse(
|
|
192
|
+
jsonString,
|
|
193
|
+
(x) => PublicResponseResource$inboundSchema.parse(JSON.parse(x)),
|
|
194
|
+
`Failed to parse 'PublicResponseResource' from JSON`,
|
|
195
|
+
);
|
|
196
|
+
}
|
|
@@ -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_01ktprqqkjhe2f0dgt0wfxx3xj"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -0,0 +1,149 @@
|
|
|
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 { ClosedEnum } from "../../types/enums.js";
|
|
12
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
13
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* The event type. Matches the SSE `event` field.
|
|
17
|
+
*/
|
|
18
|
+
export const ResponseCodeInterpreterCodeDeltaStreamEventType = {
|
|
19
|
+
ResponseCodeInterpreterCallCodeDelta:
|
|
20
|
+
"response.code_interpreter_call_code.delta",
|
|
21
|
+
} as const;
|
|
22
|
+
/**
|
|
23
|
+
* The event type. Matches the SSE `event` field.
|
|
24
|
+
*/
|
|
25
|
+
export type ResponseCodeInterpreterCodeDeltaStreamEventType = ClosedEnum<
|
|
26
|
+
typeof ResponseCodeInterpreterCodeDeltaStreamEventType
|
|
27
|
+
>;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* The event payload.
|
|
31
|
+
*/
|
|
32
|
+
export type ResponseCodeInterpreterCodeDeltaStreamEventData = {
|
|
33
|
+
/**
|
|
34
|
+
* Incremental text or argument chunk.
|
|
35
|
+
*/
|
|
36
|
+
delta: string;
|
|
37
|
+
/**
|
|
38
|
+
* ID of the output item this event refers to.
|
|
39
|
+
*/
|
|
40
|
+
itemId: string;
|
|
41
|
+
/**
|
|
42
|
+
* Index of the output item in the response output array.
|
|
43
|
+
*/
|
|
44
|
+
outputIndex: number;
|
|
45
|
+
/**
|
|
46
|
+
* Monotonically increasing sequence number for ordering events.
|
|
47
|
+
*/
|
|
48
|
+
sequenceNumber: number;
|
|
49
|
+
/**
|
|
50
|
+
* The event type. Matches the SSE `event` field.
|
|
51
|
+
*/
|
|
52
|
+
type: ResponseCodeInterpreterCodeDeltaStreamEventType;
|
|
53
|
+
additionalProperties?: { [k: string]: any } | undefined;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export type ResponseCodeInterpreterCodeDeltaStreamEvent = {
|
|
57
|
+
/**
|
|
58
|
+
* The event payload.
|
|
59
|
+
*/
|
|
60
|
+
data: ResponseCodeInterpreterCodeDeltaStreamEventData;
|
|
61
|
+
/**
|
|
62
|
+
* The SSE event name, equal to the payload's `type`.
|
|
63
|
+
*/
|
|
64
|
+
event: "response.code_interpreter_call_code.delta";
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
/** @internal */
|
|
68
|
+
export const ResponseCodeInterpreterCodeDeltaStreamEventType$inboundSchema:
|
|
69
|
+
z.ZodNativeEnum<typeof ResponseCodeInterpreterCodeDeltaStreamEventType> = z
|
|
70
|
+
.nativeEnum(ResponseCodeInterpreterCodeDeltaStreamEventType);
|
|
71
|
+
|
|
72
|
+
/** @internal */
|
|
73
|
+
export const ResponseCodeInterpreterCodeDeltaStreamEventData$inboundSchema:
|
|
74
|
+
z.ZodType<
|
|
75
|
+
ResponseCodeInterpreterCodeDeltaStreamEventData,
|
|
76
|
+
z.ZodTypeDef,
|
|
77
|
+
unknown
|
|
78
|
+
> = collectExtraKeys$(
|
|
79
|
+
z.object({
|
|
80
|
+
delta: z.string(),
|
|
81
|
+
item_id: z.string(),
|
|
82
|
+
output_index: z.number().int(),
|
|
83
|
+
sequence_number: z.number().int(),
|
|
84
|
+
type: ResponseCodeInterpreterCodeDeltaStreamEventType$inboundSchema,
|
|
85
|
+
}).catchall(z.any()),
|
|
86
|
+
"additionalProperties",
|
|
87
|
+
true,
|
|
88
|
+
).transform((v) => {
|
|
89
|
+
return remap$(v, {
|
|
90
|
+
"item_id": "itemId",
|
|
91
|
+
"output_index": "outputIndex",
|
|
92
|
+
"sequence_number": "sequenceNumber",
|
|
93
|
+
});
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
export function responseCodeInterpreterCodeDeltaStreamEventDataFromJSON(
|
|
97
|
+
jsonString: string,
|
|
98
|
+
): SafeParseResult<
|
|
99
|
+
ResponseCodeInterpreterCodeDeltaStreamEventData,
|
|
100
|
+
SDKValidationError
|
|
101
|
+
> {
|
|
102
|
+
return safeParse(
|
|
103
|
+
jsonString,
|
|
104
|
+
(x) =>
|
|
105
|
+
ResponseCodeInterpreterCodeDeltaStreamEventData$inboundSchema.parse(
|
|
106
|
+
JSON.parse(x),
|
|
107
|
+
),
|
|
108
|
+
`Failed to parse 'ResponseCodeInterpreterCodeDeltaStreamEventData' from JSON`,
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/** @internal */
|
|
113
|
+
export const ResponseCodeInterpreterCodeDeltaStreamEvent$inboundSchema:
|
|
114
|
+
z.ZodType<
|
|
115
|
+
ResponseCodeInterpreterCodeDeltaStreamEvent,
|
|
116
|
+
z.ZodTypeDef,
|
|
117
|
+
unknown
|
|
118
|
+
> = z.object({
|
|
119
|
+
data: z.unknown().transform((v, ctx) => {
|
|
120
|
+
if (typeof v !== "string") return v;
|
|
121
|
+
try {
|
|
122
|
+
return JSON.parse(v);
|
|
123
|
+
} catch (err) {
|
|
124
|
+
ctx.addIssue({ code: "custom", message: `malformed json: ${err}` });
|
|
125
|
+
return z.NEVER;
|
|
126
|
+
}
|
|
127
|
+
}).pipe(
|
|
128
|
+
z.lazy(() =>
|
|
129
|
+
ResponseCodeInterpreterCodeDeltaStreamEventData$inboundSchema
|
|
130
|
+
),
|
|
131
|
+
),
|
|
132
|
+
event: z.literal("response.code_interpreter_call_code.delta"),
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
export function responseCodeInterpreterCodeDeltaStreamEventFromJSON(
|
|
136
|
+
jsonString: string,
|
|
137
|
+
): SafeParseResult<
|
|
138
|
+
ResponseCodeInterpreterCodeDeltaStreamEvent,
|
|
139
|
+
SDKValidationError
|
|
140
|
+
> {
|
|
141
|
+
return safeParse(
|
|
142
|
+
jsonString,
|
|
143
|
+
(x) =>
|
|
144
|
+
ResponseCodeInterpreterCodeDeltaStreamEvent$inboundSchema.parse(
|
|
145
|
+
JSON.parse(x),
|
|
146
|
+
),
|
|
147
|
+
`Failed to parse 'ResponseCodeInterpreterCodeDeltaStreamEvent' from JSON`,
|
|
148
|
+
);
|
|
149
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
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 { ClosedEnum } from "../../types/enums.js";
|
|
12
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
13
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* The event type. Matches the SSE `event` field.
|
|
17
|
+
*/
|
|
18
|
+
export const ResponseCodeInterpreterCodeDoneStreamEventType = {
|
|
19
|
+
ResponseCodeInterpreterCallCodeDone:
|
|
20
|
+
"response.code_interpreter_call_code.done",
|
|
21
|
+
} as const;
|
|
22
|
+
/**
|
|
23
|
+
* The event type. Matches the SSE `event` field.
|
|
24
|
+
*/
|
|
25
|
+
export type ResponseCodeInterpreterCodeDoneStreamEventType = ClosedEnum<
|
|
26
|
+
typeof ResponseCodeInterpreterCodeDoneStreamEventType
|
|
27
|
+
>;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* The event payload.
|
|
31
|
+
*/
|
|
32
|
+
export type ResponseCodeInterpreterCodeDoneStreamEventData = {
|
|
33
|
+
/**
|
|
34
|
+
* The completed code interpreter code.
|
|
35
|
+
*/
|
|
36
|
+
code: string;
|
|
37
|
+
/**
|
|
38
|
+
* ID of the output item this event refers to.
|
|
39
|
+
*/
|
|
40
|
+
itemId: string;
|
|
41
|
+
/**
|
|
42
|
+
* Index of the output item in the response output array.
|
|
43
|
+
*/
|
|
44
|
+
outputIndex: number;
|
|
45
|
+
/**
|
|
46
|
+
* Monotonically increasing sequence number for ordering events.
|
|
47
|
+
*/
|
|
48
|
+
sequenceNumber: number;
|
|
49
|
+
/**
|
|
50
|
+
* The event type. Matches the SSE `event` field.
|
|
51
|
+
*/
|
|
52
|
+
type: ResponseCodeInterpreterCodeDoneStreamEventType;
|
|
53
|
+
additionalProperties?: { [k: string]: any } | undefined;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export type ResponseCodeInterpreterCodeDoneStreamEvent = {
|
|
57
|
+
/**
|
|
58
|
+
* The event payload.
|
|
59
|
+
*/
|
|
60
|
+
data: ResponseCodeInterpreterCodeDoneStreamEventData;
|
|
61
|
+
/**
|
|
62
|
+
* The SSE event name, equal to the payload's `type`.
|
|
63
|
+
*/
|
|
64
|
+
event: "response.code_interpreter_call_code.done";
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
/** @internal */
|
|
68
|
+
export const ResponseCodeInterpreterCodeDoneStreamEventType$inboundSchema:
|
|
69
|
+
z.ZodNativeEnum<typeof ResponseCodeInterpreterCodeDoneStreamEventType> = z
|
|
70
|
+
.nativeEnum(ResponseCodeInterpreterCodeDoneStreamEventType);
|
|
71
|
+
|
|
72
|
+
/** @internal */
|
|
73
|
+
export const ResponseCodeInterpreterCodeDoneStreamEventData$inboundSchema:
|
|
74
|
+
z.ZodType<
|
|
75
|
+
ResponseCodeInterpreterCodeDoneStreamEventData,
|
|
76
|
+
z.ZodTypeDef,
|
|
77
|
+
unknown
|
|
78
|
+
> = collectExtraKeys$(
|
|
79
|
+
z.object({
|
|
80
|
+
code: z.string(),
|
|
81
|
+
item_id: z.string(),
|
|
82
|
+
output_index: z.number().int(),
|
|
83
|
+
sequence_number: z.number().int(),
|
|
84
|
+
type: ResponseCodeInterpreterCodeDoneStreamEventType$inboundSchema,
|
|
85
|
+
}).catchall(z.any()),
|
|
86
|
+
"additionalProperties",
|
|
87
|
+
true,
|
|
88
|
+
).transform((v) => {
|
|
89
|
+
return remap$(v, {
|
|
90
|
+
"item_id": "itemId",
|
|
91
|
+
"output_index": "outputIndex",
|
|
92
|
+
"sequence_number": "sequenceNumber",
|
|
93
|
+
});
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
export function responseCodeInterpreterCodeDoneStreamEventDataFromJSON(
|
|
97
|
+
jsonString: string,
|
|
98
|
+
): SafeParseResult<
|
|
99
|
+
ResponseCodeInterpreterCodeDoneStreamEventData,
|
|
100
|
+
SDKValidationError
|
|
101
|
+
> {
|
|
102
|
+
return safeParse(
|
|
103
|
+
jsonString,
|
|
104
|
+
(x) =>
|
|
105
|
+
ResponseCodeInterpreterCodeDoneStreamEventData$inboundSchema.parse(
|
|
106
|
+
JSON.parse(x),
|
|
107
|
+
),
|
|
108
|
+
`Failed to parse 'ResponseCodeInterpreterCodeDoneStreamEventData' from JSON`,
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/** @internal */
|
|
113
|
+
export const ResponseCodeInterpreterCodeDoneStreamEvent$inboundSchema:
|
|
114
|
+
z.ZodType<ResponseCodeInterpreterCodeDoneStreamEvent, z.ZodTypeDef, unknown> =
|
|
115
|
+
z.object({
|
|
116
|
+
data: z.unknown().transform((v, ctx) => {
|
|
117
|
+
if (typeof v !== "string") return v;
|
|
118
|
+
try {
|
|
119
|
+
return JSON.parse(v);
|
|
120
|
+
} catch (err) {
|
|
121
|
+
ctx.addIssue({ code: "custom", message: `malformed json: ${err}` });
|
|
122
|
+
return z.NEVER;
|
|
123
|
+
}
|
|
124
|
+
}).pipe(
|
|
125
|
+
z.lazy(() =>
|
|
126
|
+
ResponseCodeInterpreterCodeDoneStreamEventData$inboundSchema
|
|
127
|
+
),
|
|
128
|
+
),
|
|
129
|
+
event: z.literal("response.code_interpreter_call_code.done"),
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
export function responseCodeInterpreterCodeDoneStreamEventFromJSON(
|
|
133
|
+
jsonString: string,
|
|
134
|
+
): SafeParseResult<
|
|
135
|
+
ResponseCodeInterpreterCodeDoneStreamEvent,
|
|
136
|
+
SDKValidationError
|
|
137
|
+
> {
|
|
138
|
+
return safeParse(
|
|
139
|
+
jsonString,
|
|
140
|
+
(x) =>
|
|
141
|
+
ResponseCodeInterpreterCodeDoneStreamEvent$inboundSchema.parse(
|
|
142
|
+
JSON.parse(x),
|
|
143
|
+
),
|
|
144
|
+
`Failed to parse 'ResponseCodeInterpreterCodeDoneStreamEvent' from JSON`,
|
|
145
|
+
);
|
|
146
|
+
}
|