@orq-ai/node 4.16.0-rc.2 → 4.16.0-rc.22
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 +45 -44
- package/funcs/{telemetryQuery.d.ts → feedbackSubmit.d.ts} +4 -4
- package/funcs/{telemetryQuery.d.ts.map → feedbackSubmit.d.ts.map} +1 -1
- package/funcs/{telemetryQuery.js → feedbackSubmit.js} +9 -9
- package/funcs/{telemetryQuery.js.map → feedbackSubmit.js.map} +1 -1
- package/funcs/routerClassifyCreate.d.ts +18 -0
- package/funcs/routerClassifyCreate.d.ts.map +1 -0
- package/funcs/{telemetryListFacetValues.js → routerClassifyCreate.js} +14 -10
- package/funcs/routerClassifyCreate.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/models/components/classifyanswer.d.ts +56 -0
- package/models/components/classifyanswer.d.ts.map +1 -0
- package/models/components/{listtelemetryfacetvaluesresponse.js → classifyanswer.js} +23 -15
- package/models/components/classifyanswer.js.map +1 -0
- package/models/components/classifyretryconfig.d.ts +20 -0
- package/models/components/classifyretryconfig.d.ts.map +1 -0
- package/models/{operations/telemetrylistcapabilities.js → components/classifyretryconfig.js} +13 -8
- package/models/components/classifyretryconfig.js.map +1 -0
- package/models/components/classifyusage.d.ts +29 -0
- package/models/components/classifyusage.d.ts.map +1 -0
- package/models/components/{querytelemetrymeta.js → classifyusage.js} +16 -14
- package/models/components/classifyusage.js.map +1 -0
- package/models/components/index.d.ts +5 -15
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +5 -15
- package/models/components/index.js.map +1 -1
- package/models/components/modelmetadata.d.ts +2 -0
- package/models/components/modelmetadata.d.ts.map +1 -1
- package/models/components/modelmetadata.js +4 -0
- package/models/components/modelmetadata.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/submitfeedbackrequest.d.ts +21 -0
- package/models/components/submitfeedbackrequest.d.ts.map +1 -0
- package/models/components/{telemetryrow.js → submitfeedbackrequest.js} +15 -11
- package/models/components/submitfeedbackrequest.js.map +1 -0
- package/models/components/submitfeedbackresponse.d.ts +13 -0
- package/models/components/submitfeedbackresponse.d.ts.map +1 -0
- package/models/components/{telemetrydimensionsetcapability.js → submitfeedbackresponse.js} +8 -10
- package/models/components/submitfeedbackresponse.js.map +1 -0
- package/models/components/tracecompute.d.ts +0 -5
- package/models/components/tracecompute.d.ts.map +1 -1
- package/models/components/tracecompute.js +1 -11
- package/models/components/tracecompute.js.map +1 -1
- package/models/components/tracefilter.d.ts +0 -5
- package/models/components/tracefilter.d.ts.map +1 -1
- package/models/components/tracefilter.js +1 -12
- package/models/components/tracefilter.js.map +1 -1
- package/models/errors/createclassify.d.ts +67 -0
- package/models/errors/createclassify.d.ts.map +1 -0
- package/models/errors/createclassify.js +127 -0
- package/models/errors/createclassify.js.map +1 -0
- package/models/errors/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -0
- package/models/errors/index.js.map +1 -1
- package/models/operations/createclassify.d.ts +232 -0
- package/models/operations/createclassify.d.ts.map +1 -0
- package/models/operations/createclassify.js +145 -0
- package/models/operations/createclassify.js.map +1 -0
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +5 -5
- 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/deploymentgetconfig.d.ts +1 -0
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +1 -0
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +1 -0
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +1 -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 +1 -0
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +1 -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/index.d.ts +1 -1
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -1
- package/models/operations/index.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +5 -5
- package/models/operations/listdatasets.js +1 -1
- 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/retrievedatapoint.js +5 -5
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +5 -5
- package/models/operations/updatedataset.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 +7 -7
- package/sdk/classify.d.ts +12 -0
- package/sdk/classify.d.ts.map +1 -0
- package/sdk/classify.js +22 -0
- package/sdk/classify.js.map +1 -0
- package/sdk/feedback.d.ts +8 -0
- package/sdk/feedback.d.ts.map +1 -1
- package/sdk/feedback.js +10 -0
- package/sdk/feedback.js.map +1 -1
- package/sdk/router.d.ts +3 -0
- package/sdk/router.d.ts.map +1 -1
- package/sdk/router.js +4 -0
- package/sdk/router.js.map +1 -1
- package/sdk/sdk.d.ts +0 -3
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +0 -4
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/{telemetryQuery.ts → feedbackSubmit.ts} +12 -12
- package/src/funcs/{telemetryListFacetValues.ts → routerClassifyCreate.ts} +37 -15
- package/src/lib/config.ts +3 -3
- package/src/models/components/classifyanswer.ts +83 -0
- package/src/models/components/classifyretryconfig.ts +45 -0
- package/src/models/components/classifyusage.ts +63 -0
- package/src/models/components/index.ts +5 -15
- package/src/models/components/modelmetadata.ts +6 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/submitfeedbackrequest.ts +48 -0
- package/src/models/components/submitfeedbackresponse.ts +39 -0
- package/src/models/components/tracecompute.ts +0 -21
- package/src/models/components/tracefilter.ts +0 -22
- package/src/models/errors/createclassify.ts +155 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/operations/createclassify.ts +373 -0
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +5 -5
- package/src/models/operations/createprompt.ts +2 -0
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/deploymentgetconfig.ts +1 -0
- package/src/models/operations/deploymentinvoke.ts +1 -0
- package/src/models/operations/deployments.ts +2 -0
- package/src/models/operations/deploymentstream.ts +1 -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/index.ts +1 -1
- package/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/src/models/operations/listdatasets.ts +1 -1
- 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/retrievedatapoint.ts +5 -5
- package/src/models/operations/retrievedataset.ts +1 -1
- 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/updatedatapoint.ts +5 -5
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updateprompt.ts +2 -0
- package/src/models/operations/updatetool.ts +4 -4
- package/src/sdk/classify.ts +27 -0
- package/src/sdk/feedback.ts +19 -0
- package/src/sdk/router.ts +6 -0
- package/src/sdk/sdk.ts +0 -6
- package/funcs/telemetryListCapabilities.d.ts +0 -18
- package/funcs/telemetryListCapabilities.d.ts.map +0 -1
- package/funcs/telemetryListCapabilities.js +0 -120
- package/funcs/telemetryListCapabilities.js.map +0 -1
- package/funcs/telemetryListFacetValues.d.ts +0 -17
- package/funcs/telemetryListFacetValues.d.ts.map +0 -1
- package/funcs/telemetryListFacetValues.js.map +0 -1
- package/models/components/listtelemetrycapabilitiesresponse.d.ts +0 -11
- package/models/components/listtelemetrycapabilitiesresponse.d.ts.map +0 -1
- package/models/components/listtelemetrycapabilitiesresponse.js +0 -51
- package/models/components/listtelemetrycapabilitiesresponse.js.map +0 -1
- package/models/components/listtelemetryfacetvaluesrequest.d.ts +0 -28
- package/models/components/listtelemetryfacetvaluesrequest.d.ts.map +0 -1
- package/models/components/listtelemetryfacetvaluesrequest.js +0 -63
- package/models/components/listtelemetryfacetvaluesrequest.js.map +0 -1
- package/models/components/listtelemetryfacetvaluesresponse.d.ts +0 -13
- package/models/components/listtelemetryfacetvaluesresponse.d.ts.map +0 -1
- package/models/components/listtelemetryfacetvaluesresponse.js.map +0 -1
- package/models/components/querytelemetrymeta.d.ts +0 -14
- package/models/components/querytelemetrymeta.d.ts.map +0 -1
- package/models/components/querytelemetrymeta.js.map +0 -1
- package/models/components/querytelemetryrequest.d.ts +0 -100
- package/models/components/querytelemetryrequest.d.ts.map +0 -1
- package/models/components/querytelemetryrequest.js +0 -132
- package/models/components/querytelemetryrequest.js.map +0 -1
- package/models/components/querytelemetryresponse.d.ts +0 -18
- package/models/components/querytelemetryresponse.d.ts.map +0 -1
- package/models/components/querytelemetryresponse.js +0 -63
- package/models/components/querytelemetryresponse.js.map +0 -1
- package/models/components/telemetrydimensioncapability.d.ts +0 -15
- package/models/components/telemetrydimensioncapability.d.ts.map +0 -1
- package/models/components/telemetrydimensioncapability.js +0 -61
- package/models/components/telemetrydimensioncapability.js.map +0 -1
- package/models/components/telemetrydimensionsetcapability.d.ts +0 -12
- package/models/components/telemetrydimensionsetcapability.d.ts.map +0 -1
- package/models/components/telemetrydimensionsetcapability.js.map +0 -1
- package/models/components/telemetrymetriccapability.d.ts +0 -25
- package/models/components/telemetrymetriccapability.d.ts.map +0 -1
- package/models/components/telemetrymetriccapability.js +0 -74
- package/models/components/telemetrymetriccapability.js.map +0 -1
- package/models/components/telemetryquerymode.d.ts +0 -11
- package/models/components/telemetryquerymode.d.ts.map +0 -1
- package/models/components/telemetryquerymode.js +0 -48
- package/models/components/telemetryquerymode.js.map +0 -1
- package/models/components/telemetryresultkind.d.ts +0 -13
- package/models/components/telemetryresultkind.d.ts.map +0 -1
- package/models/components/telemetryresultkind.js +0 -50
- package/models/components/telemetryresultkind.js.map +0 -1
- package/models/components/telemetryrow.d.ts +0 -22
- package/models/components/telemetryrow.d.ts.map +0 -1
- package/models/components/telemetryrow.js.map +0 -1
- package/models/components/telemetrysource.d.ts +0 -14
- package/models/components/telemetrysource.d.ts.map +0 -1
- package/models/components/telemetrysource.js +0 -51
- package/models/components/telemetrysource.js.map +0 -1
- package/models/components/telemetrysourcecapability.d.ts +0 -14
- package/models/components/telemetrysourcecapability.d.ts.map +0 -1
- package/models/components/telemetrysourcecapability.js +0 -54
- package/models/components/telemetrysourcecapability.js.map +0 -1
- package/models/components/telemetryvaluecardinality.d.ts +0 -11
- package/models/components/telemetryvaluecardinality.d.ts.map +0 -1
- package/models/components/telemetryvaluecardinality.js +0 -48
- package/models/components/telemetryvaluecardinality.js.map +0 -1
- package/models/operations/telemetrylistcapabilities.d.ts +0 -13
- package/models/operations/telemetrylistcapabilities.d.ts.map +0 -1
- package/models/operations/telemetrylistcapabilities.js.map +0 -1
- package/sdk/telemetry.d.ts +0 -27
- package/sdk/telemetry.d.ts.map +0 -1
- package/sdk/telemetry.js +0 -42
- package/sdk/telemetry.js.map +0 -1
- package/src/funcs/telemetryListCapabilities.ts +0 -169
- package/src/models/components/listtelemetrycapabilitiesresponse.ts +0 -35
- package/src/models/components/listtelemetryfacetvaluesrequest.ts +0 -68
- package/src/models/components/listtelemetryfacetvaluesresponse.ts +0 -44
- package/src/models/components/querytelemetrymeta.ts +0 -46
- package/src/models/components/querytelemetryrequest.ts +0 -213
- package/src/models/components/querytelemetryresponse.ts +0 -55
- package/src/models/components/telemetrydimensioncapability.ts +0 -47
- package/src/models/components/telemetrydimensionsetcapability.ts +0 -40
- package/src/models/components/telemetrymetriccapability.ts +0 -80
- package/src/models/components/telemetryquerymode.ts +0 -18
- package/src/models/components/telemetryresultkind.ts +0 -21
- package/src/models/components/telemetryrow.ts +0 -42
- package/src/models/components/telemetrysource.ts +0 -23
- package/src/models/components/telemetrysourcecapability.ts +0 -43
- package/src/models/components/telemetryvaluecardinality.ts +0 -21
- package/src/models/operations/telemetrylistcapabilities.ts +0 -34
- package/src/sdk/telemetry.ts +0 -64
package/sdk/sdk.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.js","sourceRoot":"","sources":["../src/sdk/sdk.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,4CAA2C;AAC3C,2CAAqC;AACrC,2CAAqC;AACrC,+DAAyD;AACzD,qDAA+C;AAC/C,6CAAuC;AACvC,iDAA2C;AAC3C,6CAAuC;AACvC,+CAAyC;AACzC,+CAAyC;AACzC,qDAA+C;AAC/C,yCAAmC;AACnC,+CAAyC;AACzC,yCAAmC;AACnC,qDAA+C;AAC/C,2DAAqD;AACrD,qCAA+B;AAC/B,6DAAuD;AACvD,mDAA6C;AAC7C,iDAA2C;AAC3C,uCAAiC;AACjC,2DAAqD;AACrD,qDAA+C;AAC/C,mDAA6C;AAC7C,uDAAiD;AACjD,uDAAiD;AACjD,2CAAqC;AACrC,iDAA2C;AAC3C,qCAA+B;AAC/B,+CAAyC;AACzC,+CAAyC;AACzC,6CAAuC;AACvC,iDAA2C;AAC3C,iDAA2C;AAC3C,2CAAqC;AACrC,uDAAiD;AACjD,iDAA2C;AAC3C,+CAAyC;AACzC,2CAAqC;AACrC,uDAAiD;AACjD,
|
|
1
|
+
{"version":3,"file":"sdk.js","sourceRoot":"","sources":["../src/sdk/sdk.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,4CAA2C;AAC3C,2CAAqC;AACrC,2CAAqC;AACrC,+DAAyD;AACzD,qDAA+C;AAC/C,6CAAuC;AACvC,iDAA2C;AAC3C,6CAAuC;AACvC,+CAAyC;AACzC,+CAAyC;AACzC,qDAA+C;AAC/C,yCAAmC;AACnC,+CAAyC;AACzC,yCAAmC;AACnC,qDAA+C;AAC/C,2DAAqD;AACrD,qCAA+B;AAC/B,6DAAuD;AACvD,mDAA6C;AAC7C,iDAA2C;AAC3C,uCAAiC;AACjC,2DAAqD;AACrD,qDAA+C;AAC/C,mDAA6C;AAC7C,uDAAi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
27
|
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Submit feedback
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
*
|
|
32
|
+
* Report problems or request features for Orq.ai APIs, MCP tools, SDKs, and documentation.
|
|
33
33
|
*/
|
|
34
|
-
export function
|
|
34
|
+
export function feedbackSubmit(
|
|
35
35
|
client: OrqCore,
|
|
36
|
-
request: components.
|
|
36
|
+
request: components.SubmitFeedbackRequest,
|
|
37
37
|
options?: RequestOptions,
|
|
38
38
|
): APIPromise<
|
|
39
39
|
Result<
|
|
40
|
-
components.
|
|
40
|
+
components.SubmitFeedbackResponse,
|
|
41
41
|
| OrqError
|
|
42
42
|
| ResponseValidationError
|
|
43
43
|
| ConnectionError
|
|
@@ -57,12 +57,12 @@ export function telemetryQuery(
|
|
|
57
57
|
|
|
58
58
|
async function $do(
|
|
59
59
|
client: OrqCore,
|
|
60
|
-
request: components.
|
|
60
|
+
request: components.SubmitFeedbackRequest,
|
|
61
61
|
options?: RequestOptions,
|
|
62
62
|
): Promise<
|
|
63
63
|
[
|
|
64
64
|
Result<
|
|
65
|
-
components.
|
|
65
|
+
components.SubmitFeedbackResponse,
|
|
66
66
|
| OrqError
|
|
67
67
|
| ResponseValidationError
|
|
68
68
|
| ConnectionError
|
|
@@ -77,7 +77,7 @@ async function $do(
|
|
|
77
77
|
> {
|
|
78
78
|
const parsed = safeParse(
|
|
79
79
|
request,
|
|
80
|
-
(value) => components.
|
|
80
|
+
(value) => components.SubmitFeedbackRequest$outboundSchema.parse(value),
|
|
81
81
|
"Input validation failed",
|
|
82
82
|
);
|
|
83
83
|
if (!parsed.ok) {
|
|
@@ -86,7 +86,7 @@ async function $do(
|
|
|
86
86
|
const payload = parsed.value;
|
|
87
87
|
const body = encodeJSON("body", payload, { explode: true });
|
|
88
88
|
|
|
89
|
-
const path = pathToFunc("/v3/
|
|
89
|
+
const path = pathToFunc("/v3/submit-feedback")();
|
|
90
90
|
|
|
91
91
|
const headers = new Headers(compactMap({
|
|
92
92
|
"Content-Type": "application/json",
|
|
@@ -100,7 +100,7 @@ async function $do(
|
|
|
100
100
|
const context = {
|
|
101
101
|
options: client._options,
|
|
102
102
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
103
|
-
operationID: "
|
|
103
|
+
operationID: "SubmitFeedback",
|
|
104
104
|
oAuth2Scopes: null,
|
|
105
105
|
|
|
106
106
|
resolvedSecurity: requestSecurity,
|
|
@@ -140,7 +140,7 @@ async function $do(
|
|
|
140
140
|
const response = doResult.value;
|
|
141
141
|
|
|
142
142
|
const [result] = await M.match<
|
|
143
|
-
components.
|
|
143
|
+
components.SubmitFeedbackResponse,
|
|
144
144
|
| OrqError
|
|
145
145
|
| ResponseValidationError
|
|
146
146
|
| ConnectionError
|
|
@@ -150,7 +150,7 @@ async function $do(
|
|
|
150
150
|
| UnexpectedClientError
|
|
151
151
|
| SDKValidationError
|
|
152
152
|
>(
|
|
153
|
-
M.json(200, components.
|
|
153
|
+
M.json(200, components.SubmitFeedbackResponse$inboundSchema),
|
|
154
154
|
M.fail("4XX"),
|
|
155
155
|
M.fail("5XX"),
|
|
156
156
|
)(response, req);
|
|
@@ -11,7 +11,6 @@ import { safeParse } from "../lib/schemas.js";
|
|
|
11
11
|
import { RequestOptions } from "../lib/sdks.js";
|
|
12
12
|
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
13
|
import { pathToFunc } from "../lib/url.js";
|
|
14
|
-
import * as components from "../models/components/index.js";
|
|
15
14
|
import {
|
|
16
15
|
ConnectionError,
|
|
17
16
|
InvalidRequestError,
|
|
@@ -19,25 +18,30 @@ import {
|
|
|
19
18
|
RequestTimeoutError,
|
|
20
19
|
UnexpectedClientError,
|
|
21
20
|
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import * as errors from "../models/errors/index.js";
|
|
22
22
|
import { OrqError } from "../models/errors/orqerror.js";
|
|
23
23
|
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
24
24
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
25
|
+
import * as operations from "../models/operations/index.js";
|
|
25
26
|
import { APICall, APIPromise } from "../types/async.js";
|
|
26
27
|
import { Result } from "../types/fp.js";
|
|
27
28
|
|
|
28
29
|
/**
|
|
29
|
-
*
|
|
30
|
+
* Classify
|
|
30
31
|
*
|
|
31
32
|
* @remarks
|
|
32
|
-
*
|
|
33
|
+
* **Beta.** Runs typed classification questions (`noul`, `choice`, `score`) against the native classify model `typesafe/jev-latest` or a chat model that supports classify, such as `anthropic/claude-haiku-4-5`, `google-ai/gemini-3.8-flash` or `zai/glm-5.3-flash`. Chat models answer through one structured-output call and their probabilities are model-reported rather than calibrated. The request and response follow the TypeSafe classification contract; `model` in the response echoes the request and `usage` carries the computed cost like the Responses API. This endpoint currently does not apply PII plugins or guardrails.
|
|
33
34
|
*/
|
|
34
|
-
export function
|
|
35
|
+
export function routerClassifyCreate(
|
|
35
36
|
client: OrqCore,
|
|
36
|
-
request:
|
|
37
|
+
request: operations.CreateClassifyRequestBody,
|
|
37
38
|
options?: RequestOptions,
|
|
38
39
|
): APIPromise<
|
|
39
40
|
Result<
|
|
40
|
-
|
|
41
|
+
operations.CreateClassifyResponseBody,
|
|
42
|
+
| errors.CreateClassifyResponseBody
|
|
43
|
+
| errors.CreateClassifyRouterClassifyResponseBody
|
|
44
|
+
| errors.CreateClassifyRouterClassifyResponseResponseBody
|
|
41
45
|
| OrqError
|
|
42
46
|
| ResponseValidationError
|
|
43
47
|
| ConnectionError
|
|
@@ -57,12 +61,15 @@ export function telemetryListFacetValues(
|
|
|
57
61
|
|
|
58
62
|
async function $do(
|
|
59
63
|
client: OrqCore,
|
|
60
|
-
request:
|
|
64
|
+
request: operations.CreateClassifyRequestBody,
|
|
61
65
|
options?: RequestOptions,
|
|
62
66
|
): Promise<
|
|
63
67
|
[
|
|
64
68
|
Result<
|
|
65
|
-
|
|
69
|
+
operations.CreateClassifyResponseBody,
|
|
70
|
+
| errors.CreateClassifyResponseBody
|
|
71
|
+
| errors.CreateClassifyRouterClassifyResponseBody
|
|
72
|
+
| errors.CreateClassifyRouterClassifyResponseResponseBody
|
|
66
73
|
| OrqError
|
|
67
74
|
| ResponseValidationError
|
|
68
75
|
| ConnectionError
|
|
@@ -77,8 +84,7 @@ async function $do(
|
|
|
77
84
|
> {
|
|
78
85
|
const parsed = safeParse(
|
|
79
86
|
request,
|
|
80
|
-
(value) =>
|
|
81
|
-
components.ListTelemetryFacetValuesRequest$outboundSchema.parse(value),
|
|
87
|
+
(value) => operations.CreateClassifyRequestBody$outboundSchema.parse(value),
|
|
82
88
|
"Input validation failed",
|
|
83
89
|
);
|
|
84
90
|
if (!parsed.ok) {
|
|
@@ -87,7 +93,7 @@ async function $do(
|
|
|
87
93
|
const payload = parsed.value;
|
|
88
94
|
const body = encodeJSON("body", payload, { explode: true });
|
|
89
95
|
|
|
90
|
-
const path = pathToFunc("/v3/
|
|
96
|
+
const path = pathToFunc("/v3/router/classify")();
|
|
91
97
|
|
|
92
98
|
const headers = new Headers(compactMap({
|
|
93
99
|
"Content-Type": "application/json",
|
|
@@ -101,7 +107,7 @@ async function $do(
|
|
|
101
107
|
const context = {
|
|
102
108
|
options: client._options,
|
|
103
109
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
104
|
-
operationID: "
|
|
110
|
+
operationID: "CreateClassify",
|
|
105
111
|
oAuth2Scopes: null,
|
|
106
112
|
|
|
107
113
|
resolvedSecurity: requestSecurity,
|
|
@@ -140,8 +146,15 @@ async function $do(
|
|
|
140
146
|
}
|
|
141
147
|
const response = doResult.value;
|
|
142
148
|
|
|
149
|
+
const responseFields = {
|
|
150
|
+
HttpMeta: { Response: response, Request: req },
|
|
151
|
+
};
|
|
152
|
+
|
|
143
153
|
const [result] = await M.match<
|
|
144
|
-
|
|
154
|
+
operations.CreateClassifyResponseBody,
|
|
155
|
+
| errors.CreateClassifyResponseBody
|
|
156
|
+
| errors.CreateClassifyRouterClassifyResponseBody
|
|
157
|
+
| errors.CreateClassifyRouterClassifyResponseResponseBody
|
|
145
158
|
| OrqError
|
|
146
159
|
| ResponseValidationError
|
|
147
160
|
| ConnectionError
|
|
@@ -151,10 +164,19 @@ async function $do(
|
|
|
151
164
|
| UnexpectedClientError
|
|
152
165
|
| SDKValidationError
|
|
153
166
|
>(
|
|
154
|
-
M.json(200,
|
|
167
|
+
M.json(200, operations.CreateClassifyResponseBody$inboundSchema),
|
|
168
|
+
M.jsonErr(400, errors.CreateClassifyResponseBody$inboundSchema),
|
|
169
|
+
M.jsonErr(
|
|
170
|
+
422,
|
|
171
|
+
errors.CreateClassifyRouterClassifyResponseBody$inboundSchema,
|
|
172
|
+
),
|
|
173
|
+
M.jsonErr(
|
|
174
|
+
429,
|
|
175
|
+
errors.CreateClassifyRouterClassifyResponseResponseBody$inboundSchema,
|
|
176
|
+
),
|
|
155
177
|
M.fail("4XX"),
|
|
156
178
|
M.fail("5XX"),
|
|
157
|
-
)(response, req);
|
|
179
|
+
)(response, req, { extraFields: responseFields });
|
|
158
180
|
if (!result.ok) {
|
|
159
181
|
return [result, { status: "complete", request: req, response }];
|
|
160
182
|
}
|
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.0-rc.
|
|
62
|
-
genVersion: "2.
|
|
63
|
-
userAgent: "speakeasy-sdk/typescript 4.16.0-rc.
|
|
61
|
+
sdkVersion: "4.16.0-rc.22",
|
|
62
|
+
genVersion: "2.941.0",
|
|
63
|
+
userAgent: "speakeasy-sdk/typescript 4.16.0-rc.22 2.941.0 2.0 @orq-ai/node",
|
|
64
64
|
} as const;
|
|
@@ -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 { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* The question type this answer belongs to.
|
|
13
|
+
*/
|
|
14
|
+
export const ClassifyAnswerType = {
|
|
15
|
+
Noul: "noul",
|
|
16
|
+
Choice: "choice",
|
|
17
|
+
Score: "score",
|
|
18
|
+
} as const;
|
|
19
|
+
/**
|
|
20
|
+
* The question type this answer belongs to.
|
|
21
|
+
*/
|
|
22
|
+
export type ClassifyAnswerType = ClosedEnum<typeof ClassifyAnswerType>;
|
|
23
|
+
|
|
24
|
+
export type ClassifyAnswer = {
|
|
25
|
+
/**
|
|
26
|
+
* The selected option. Present for choice answers.
|
|
27
|
+
*/
|
|
28
|
+
choice?: string | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Probability of the selected option or level. Present for choice and score answers.
|
|
31
|
+
*/
|
|
32
|
+
confidence?: number | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Level index to level description. Present for score answers.
|
|
35
|
+
*/
|
|
36
|
+
legend?: { [k: string]: string } | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Probability between 0 and 1 that the statement holds. Present for noul answers.
|
|
39
|
+
*/
|
|
40
|
+
noul?: number | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Probability distribution over the options or levels. Present for choice and score answers.
|
|
43
|
+
*/
|
|
44
|
+
probabilities?: { [k: string]: number } | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* The selected level index. Present for score answers.
|
|
47
|
+
*/
|
|
48
|
+
score?: number | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* The question type this answer belongs to.
|
|
51
|
+
*/
|
|
52
|
+
type: ClassifyAnswerType;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const ClassifyAnswerType$inboundSchema: z.ZodNativeEnum<
|
|
57
|
+
typeof ClassifyAnswerType
|
|
58
|
+
> = z.nativeEnum(ClassifyAnswerType);
|
|
59
|
+
|
|
60
|
+
/** @internal */
|
|
61
|
+
export const ClassifyAnswer$inboundSchema: z.ZodType<
|
|
62
|
+
ClassifyAnswer,
|
|
63
|
+
z.ZodTypeDef,
|
|
64
|
+
unknown
|
|
65
|
+
> = z.object({
|
|
66
|
+
choice: z.string().optional(),
|
|
67
|
+
confidence: z.number().optional(),
|
|
68
|
+
legend: z.record(z.string()).optional(),
|
|
69
|
+
noul: z.number().optional(),
|
|
70
|
+
probabilities: z.record(z.number()).optional(),
|
|
71
|
+
score: z.number().optional(),
|
|
72
|
+
type: ClassifyAnswerType$inboundSchema,
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
export function classifyAnswerFromJSON(
|
|
76
|
+
jsonString: string,
|
|
77
|
+
): SafeParseResult<ClassifyAnswer, SDKValidationError> {
|
|
78
|
+
return safeParse(
|
|
79
|
+
jsonString,
|
|
80
|
+
(x) => ClassifyAnswer$inboundSchema.parse(JSON.parse(x)),
|
|
81
|
+
`Failed to parse 'ClassifyAnswer' from JSON`,
|
|
82
|
+
);
|
|
83
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 ClassifyRetryConfig = {
|
|
9
|
+
/**
|
|
10
|
+
* Number of retry attempts (1-5).
|
|
11
|
+
*/
|
|
12
|
+
count: number;
|
|
13
|
+
/**
|
|
14
|
+
* HTTP status codes that trigger retry logic.
|
|
15
|
+
*/
|
|
16
|
+
onCodes: Array<number> | null;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export type ClassifyRetryConfig$Outbound = {
|
|
21
|
+
count: number;
|
|
22
|
+
on_codes: Array<number> | null;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const ClassifyRetryConfig$outboundSchema: z.ZodType<
|
|
27
|
+
ClassifyRetryConfig$Outbound,
|
|
28
|
+
z.ZodTypeDef,
|
|
29
|
+
ClassifyRetryConfig
|
|
30
|
+
> = z.object({
|
|
31
|
+
count: z.number().int(),
|
|
32
|
+
onCodes: z.nullable(z.array(z.number().int())),
|
|
33
|
+
}).transform((v) => {
|
|
34
|
+
return remap$(v, {
|
|
35
|
+
onCodes: "on_codes",
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
export function classifyRetryConfigToJSON(
|
|
40
|
+
classifyRetryConfig: ClassifyRetryConfig,
|
|
41
|
+
): string {
|
|
42
|
+
return JSON.stringify(
|
|
43
|
+
ClassifyRetryConfig$outboundSchema.parse(classifyRetryConfig),
|
|
44
|
+
);
|
|
45
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
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 { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type ClassifyUsage = {
|
|
12
|
+
/**
|
|
13
|
+
* Cost (USD) of input tokens. Present when billing was computed for this request.
|
|
14
|
+
*/
|
|
15
|
+
inputCost?: number | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* The number of input tokens processed.
|
|
18
|
+
*/
|
|
19
|
+
inputTokens: number;
|
|
20
|
+
/**
|
|
21
|
+
* Cost (USD) of output tokens. 0 for typesafe/jev-latest. Present when billing was computed for this request.
|
|
22
|
+
*/
|
|
23
|
+
outputCost?: number | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* The number of output tokens generated. Free for typesafe/jev-latest, billed at the model rate for chat models.
|
|
26
|
+
*/
|
|
27
|
+
outputTokens: number;
|
|
28
|
+
/**
|
|
29
|
+
* Total cost (USD) of the request. Present when billing was computed for this request.
|
|
30
|
+
*/
|
|
31
|
+
totalCost?: number | undefined;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const ClassifyUsage$inboundSchema: z.ZodType<
|
|
36
|
+
ClassifyUsage,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
unknown
|
|
39
|
+
> = z.object({
|
|
40
|
+
input_cost: z.number().optional(),
|
|
41
|
+
input_tokens: z.number().int(),
|
|
42
|
+
output_cost: z.number().optional(),
|
|
43
|
+
output_tokens: z.number().int(),
|
|
44
|
+
total_cost: z.number().optional(),
|
|
45
|
+
}).transform((v) => {
|
|
46
|
+
return remap$(v, {
|
|
47
|
+
"input_cost": "inputCost",
|
|
48
|
+
"input_tokens": "inputTokens",
|
|
49
|
+
"output_cost": "outputCost",
|
|
50
|
+
"output_tokens": "outputTokens",
|
|
51
|
+
"total_cost": "totalCost",
|
|
52
|
+
});
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
export function classifyUsageFromJSON(
|
|
56
|
+
jsonString: string,
|
|
57
|
+
): SafeParseResult<ClassifyUsage, SDKValidationError> {
|
|
58
|
+
return safeParse(
|
|
59
|
+
jsonString,
|
|
60
|
+
(x) => ClassifyUsage$inboundSchema.parse(JSON.parse(x)),
|
|
61
|
+
`Failed to parse 'ClassifyUsage' from JSON`,
|
|
62
|
+
);
|
|
63
|
+
}
|
|
@@ -89,6 +89,9 @@ export * from "./chunksservicelistpaginatedresponse.js";
|
|
|
89
89
|
export * from "./chunksservicelistresponse.js";
|
|
90
90
|
export * from "./chunksservicesetenabledrequest.js";
|
|
91
91
|
export * from "./chunksserviceupdaterequest.js";
|
|
92
|
+
export * from "./classifyanswer.js";
|
|
93
|
+
export * from "./classifyretryconfig.js";
|
|
94
|
+
export * from "./classifyusage.js";
|
|
92
95
|
export * from "./codeinterpretertoolinput.js";
|
|
93
96
|
export * from "./codetoolinput.js";
|
|
94
97
|
export * from "./conversationparam.js";
|
|
@@ -306,9 +309,6 @@ export * from "./listroutingrulesresponse.js";
|
|
|
306
309
|
export * from "./listroutingruleusedmodelsresponse.js";
|
|
307
310
|
export * from "./listskillsresponse.js";
|
|
308
311
|
export * from "./listsmartroutersresponse.js";
|
|
309
|
-
export * from "./listtelemetrycapabilitiesresponse.js";
|
|
310
|
-
export * from "./listtelemetryfacetvaluesrequest.js";
|
|
311
|
-
export * from "./listtelemetryfacetvaluesresponse.js";
|
|
312
312
|
export * from "./listthreadsrequest.js";
|
|
313
313
|
export * from "./listthreadsresponse.js";
|
|
314
314
|
export * from "./listtracefacetsresponse.js";
|
|
@@ -426,9 +426,6 @@ export * from "./queryparamspagination.js";
|
|
|
426
426
|
export * from "./queryparamssort.js";
|
|
427
427
|
export * from "./queryreportrequest.js";
|
|
428
428
|
export * from "./queryreportresponse.js";
|
|
429
|
-
export * from "./querytelemetrymeta.js";
|
|
430
|
-
export * from "./querytelemetryrequest.js";
|
|
431
|
-
export * from "./querytelemetryresponse.js";
|
|
432
429
|
export * from "./querytracesrequest.js";
|
|
433
430
|
export * from "./querytracesresponse.js";
|
|
434
431
|
export * from "./querywebhooksrequest.js";
|
|
@@ -560,19 +557,12 @@ export * from "./streamoptions.js";
|
|
|
560
557
|
export * from "./structuredinput.js";
|
|
561
558
|
export * from "./structuredoutput.js";
|
|
562
559
|
export * from "./structuredtoolcall.js";
|
|
560
|
+
export * from "./submitfeedbackrequest.js";
|
|
561
|
+
export * from "./submitfeedbackresponse.js";
|
|
563
562
|
export * from "./syncmcpserverrequest.js";
|
|
564
563
|
export * from "./syncmcpserverresponse.js";
|
|
565
564
|
export * from "./syncstatus.js";
|
|
566
565
|
export * from "./telemetry.js";
|
|
567
|
-
export * from "./telemetrydimensioncapability.js";
|
|
568
|
-
export * from "./telemetrydimensionsetcapability.js";
|
|
569
|
-
export * from "./telemetrymetriccapability.js";
|
|
570
|
-
export * from "./telemetryquerymode.js";
|
|
571
|
-
export * from "./telemetryresultkind.js";
|
|
572
|
-
export * from "./telemetryrow.js";
|
|
573
|
-
export * from "./telemetrysource.js";
|
|
574
|
-
export * from "./telemetrysourcecapability.js";
|
|
575
|
-
export * from "./telemetryvaluecardinality.js";
|
|
576
566
|
export * from "./testmcpservertoolrequest.js";
|
|
577
567
|
export * from "./testmcpservertoolresponse.js";
|
|
578
568
|
export * from "./textcontentpartschema.js";
|
|
@@ -96,6 +96,7 @@ export type ModelMetadata = {
|
|
|
96
96
|
supportsBatchApi?: boolean | undefined;
|
|
97
97
|
supportsCacheControl?: boolean | undefined;
|
|
98
98
|
supportsCitations?: boolean | undefined;
|
|
99
|
+
supportsClassify?: boolean | undefined;
|
|
99
100
|
supportsCodeExecution?: boolean | undefined;
|
|
100
101
|
supportsCommercialUse?: boolean | undefined;
|
|
101
102
|
supportsComputerUse?: boolean | undefined;
|
|
@@ -229,6 +230,7 @@ export const ModelMetadata$inboundSchema: z.ZodType<
|
|
|
229
230
|
supports_batch_api: z.boolean().optional(),
|
|
230
231
|
supports_cache_control: z.boolean().optional(),
|
|
231
232
|
supports_citations: z.boolean().optional(),
|
|
233
|
+
supports_classify: z.boolean().optional(),
|
|
232
234
|
supports_code_execution: z.boolean().optional(),
|
|
233
235
|
supports_commercial_use: z.boolean().optional(),
|
|
234
236
|
supports_computer_use: z.boolean().optional(),
|
|
@@ -354,6 +356,7 @@ export const ModelMetadata$inboundSchema: z.ZodType<
|
|
|
354
356
|
"supports_batch_api": "supportsBatchApi",
|
|
355
357
|
"supports_cache_control": "supportsCacheControl",
|
|
356
358
|
"supports_citations": "supportsCitations",
|
|
359
|
+
"supports_classify": "supportsClassify",
|
|
357
360
|
"supports_code_execution": "supportsCodeExecution",
|
|
358
361
|
"supports_commercial_use": "supportsCommercialUse",
|
|
359
362
|
"supports_computer_use": "supportsComputerUse",
|
|
@@ -484,6 +487,7 @@ export type ModelMetadata$Outbound = {
|
|
|
484
487
|
supports_batch_api?: boolean | undefined;
|
|
485
488
|
supports_cache_control?: boolean | undefined;
|
|
486
489
|
supports_citations?: boolean | undefined;
|
|
490
|
+
supports_classify?: boolean | undefined;
|
|
487
491
|
supports_code_execution?: boolean | undefined;
|
|
488
492
|
supports_commercial_use?: boolean | undefined;
|
|
489
493
|
supports_computer_use?: boolean | undefined;
|
|
@@ -617,6 +621,7 @@ export const ModelMetadata$outboundSchema: z.ZodType<
|
|
|
617
621
|
supportsBatchApi: z.boolean().optional(),
|
|
618
622
|
supportsCacheControl: z.boolean().optional(),
|
|
619
623
|
supportsCitations: z.boolean().optional(),
|
|
624
|
+
supportsClassify: z.boolean().optional(),
|
|
620
625
|
supportsCodeExecution: z.boolean().optional(),
|
|
621
626
|
supportsCommercialUse: z.boolean().optional(),
|
|
622
627
|
supportsComputerUse: z.boolean().optional(),
|
|
@@ -742,6 +747,7 @@ export const ModelMetadata$outboundSchema: z.ZodType<
|
|
|
742
747
|
supportsBatchApi: "supports_batch_api",
|
|
743
748
|
supportsCacheControl: "supports_cache_control",
|
|
744
749
|
supportsCitations: "supports_citations",
|
|
750
|
+
supportsClassify: "supports_classify",
|
|
745
751
|
supportsCodeExecution: "supports_code_execution",
|
|
746
752
|
supportsCommercialUse: "supports_commercial_use",
|
|
747
753
|
supportsComputerUse: "supports_computer_use",
|
|
@@ -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_01m3jb73rwqcp5ztswtykx1vw6"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -0,0 +1,48 @@
|
|
|
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 SubmitFeedbackRequest = {
|
|
9
|
+
/**
|
|
10
|
+
* What happened, what was expected, and steps to reproduce. Do not include secrets.
|
|
11
|
+
*/
|
|
12
|
+
message: string;
|
|
13
|
+
category: string;
|
|
14
|
+
requestId?: string | undefined;
|
|
15
|
+
url?: string | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export type SubmitFeedbackRequest$Outbound = {
|
|
20
|
+
message: string;
|
|
21
|
+
category: string;
|
|
22
|
+
request_id?: string | undefined;
|
|
23
|
+
url?: string | undefined;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const SubmitFeedbackRequest$outboundSchema: z.ZodType<
|
|
28
|
+
SubmitFeedbackRequest$Outbound,
|
|
29
|
+
z.ZodTypeDef,
|
|
30
|
+
SubmitFeedbackRequest
|
|
31
|
+
> = z.object({
|
|
32
|
+
message: z.string(),
|
|
33
|
+
category: z.string(),
|
|
34
|
+
requestId: z.string().optional(),
|
|
35
|
+
url: z.string().optional(),
|
|
36
|
+
}).transform((v) => {
|
|
37
|
+
return remap$(v, {
|
|
38
|
+
requestId: "request_id",
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
export function submitFeedbackRequestToJSON(
|
|
43
|
+
submitFeedbackRequest: SubmitFeedbackRequest,
|
|
44
|
+
): string {
|
|
45
|
+
return JSON.stringify(
|
|
46
|
+
SubmitFeedbackRequest$outboundSchema.parse(submitFeedbackRequest),
|
|
47
|
+
);
|
|
48
|
+
}
|
|
@@ -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
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type SubmitFeedbackResponse = {
|
|
12
|
+
/**
|
|
13
|
+
* Reference included in the support email.
|
|
14
|
+
*/
|
|
15
|
+
feedbackId: string;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const SubmitFeedbackResponse$inboundSchema: z.ZodType<
|
|
20
|
+
SubmitFeedbackResponse,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
feedback_id: z.string(),
|
|
25
|
+
}).transform((v) => {
|
|
26
|
+
return remap$(v, {
|
|
27
|
+
"feedback_id": "feedbackId",
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
export function submitFeedbackResponseFromJSON(
|
|
32
|
+
jsonString: string,
|
|
33
|
+
): SafeParseResult<SubmitFeedbackResponse, SDKValidationError> {
|
|
34
|
+
return safeParse(
|
|
35
|
+
jsonString,
|
|
36
|
+
(x) => SubmitFeedbackResponse$inboundSchema.parse(JSON.parse(x)),
|
|
37
|
+
`Failed to parse 'SubmitFeedbackResponse' from JSON`,
|
|
38
|
+
);
|
|
39
|
+
}
|