@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
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ResponseReasoningSummaryPartStreamEvent$inboundSchema = exports.ResponseReasoningSummaryPartStreamEventEvent$inboundSchema = exports.ResponseReasoningSummaryPartStreamEventData$inboundSchema = exports.ResponseReasoningSummaryPartStreamEventType$inboundSchema = exports.ResponseReasoningSummaryPartStreamEventEvent = exports.ResponseReasoningSummaryPartStreamEventType = void 0;
|
|
40
|
+
exports.responseReasoningSummaryPartStreamEventDataFromJSON = responseReasoningSummaryPartStreamEventDataFromJSON;
|
|
41
|
+
exports.responseReasoningSummaryPartStreamEventFromJSON = responseReasoningSummaryPartStreamEventFromJSON;
|
|
42
|
+
const z = __importStar(require("zod/v3"));
|
|
43
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
44
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
45
|
+
/**
|
|
46
|
+
* The event type. Matches the SSE `event` field.
|
|
47
|
+
*/
|
|
48
|
+
exports.ResponseReasoningSummaryPartStreamEventType = {
|
|
49
|
+
ResponseReasoningSummaryPartAdded: "response.reasoning_summary_part.added",
|
|
50
|
+
ResponseReasoningSummaryPartDone: "response.reasoning_summary_part.done",
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* The SSE event name, equal to the payload's `type`.
|
|
54
|
+
*/
|
|
55
|
+
exports.ResponseReasoningSummaryPartStreamEventEvent = {
|
|
56
|
+
ResponseReasoningSummaryPartAdded: "response.reasoning_summary_part.added",
|
|
57
|
+
ResponseReasoningSummaryPartDone: "response.reasoning_summary_part.done",
|
|
58
|
+
};
|
|
59
|
+
/** @internal */
|
|
60
|
+
exports.ResponseReasoningSummaryPartStreamEventType$inboundSchema = z
|
|
61
|
+
.nativeEnum(exports.ResponseReasoningSummaryPartStreamEventType);
|
|
62
|
+
/** @internal */
|
|
63
|
+
exports.ResponseReasoningSummaryPartStreamEventData$inboundSchema = (0, schemas_js_1.collectExtraKeys)(z.object({
|
|
64
|
+
item_id: z.string(),
|
|
65
|
+
output_index: z.number().int(),
|
|
66
|
+
part: z.record(z.any()),
|
|
67
|
+
sequence_number: z.number().int(),
|
|
68
|
+
summary_index: z.number().int(),
|
|
69
|
+
type: exports.ResponseReasoningSummaryPartStreamEventType$inboundSchema,
|
|
70
|
+
}).catchall(z.any()), "additionalProperties", true).transform((v) => {
|
|
71
|
+
return (0, primitives_js_1.remap)(v, {
|
|
72
|
+
"item_id": "itemId",
|
|
73
|
+
"output_index": "outputIndex",
|
|
74
|
+
"sequence_number": "sequenceNumber",
|
|
75
|
+
"summary_index": "summaryIndex",
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
function responseReasoningSummaryPartStreamEventDataFromJSON(jsonString) {
|
|
79
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseReasoningSummaryPartStreamEventData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseReasoningSummaryPartStreamEventData' from JSON`);
|
|
80
|
+
}
|
|
81
|
+
/** @internal */
|
|
82
|
+
exports.ResponseReasoningSummaryPartStreamEventEvent$inboundSchema = z
|
|
83
|
+
.nativeEnum(exports.ResponseReasoningSummaryPartStreamEventEvent);
|
|
84
|
+
/** @internal */
|
|
85
|
+
exports.ResponseReasoningSummaryPartStreamEvent$inboundSchema = z.object({
|
|
86
|
+
data: z.unknown().transform((v, ctx) => {
|
|
87
|
+
if (typeof v !== "string")
|
|
88
|
+
return v;
|
|
89
|
+
try {
|
|
90
|
+
return JSON.parse(v);
|
|
91
|
+
}
|
|
92
|
+
catch (err) {
|
|
93
|
+
ctx.addIssue({ code: "custom", message: `malformed json: ${err}` });
|
|
94
|
+
return z.NEVER;
|
|
95
|
+
}
|
|
96
|
+
}).pipe(z.lazy(() => exports.ResponseReasoningSummaryPartStreamEventData$inboundSchema)),
|
|
97
|
+
event: exports.ResponseReasoningSummaryPartStreamEventEvent$inboundSchema,
|
|
98
|
+
});
|
|
99
|
+
function responseReasoningSummaryPartStreamEventFromJSON(jsonString) {
|
|
100
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseReasoningSummaryPartStreamEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseReasoningSummaryPartStreamEvent' from JSON`);
|
|
101
|
+
}
|
|
102
|
+
//# sourceMappingURL=responsereasoningsummarypartstreamevent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responsereasoningsummarypartstreamevent.js","sourceRoot":"","sources":["../../src/models/components/responsereasoningsummarypartstreamevent.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiHH,kHAcC;AA2BD,0GAcC;AAtKD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAG8B;AAK9B;;GAEG;AACU,QAAA,2CAA2C,GAAG;IACzD,iCAAiC,EAAE,uCAAuC;IAC1E,gCAAgC,EAAE,sCAAsC;CAChE,CAAC;AAuCX;;GAEG;AACU,QAAA,4CAA4C,GAAG;IAC1D,iCAAiC,EAAE,uCAAuC;IAC1E,gCAAgC,EAAE,sCAAsC;CAChE,CAAC;AAmBX,gBAAgB;AACH,QAAA,yDAAyD,GACE,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QACrC,IAAI,OAAO,CAAC,KAAK,QAAQ;YAAE,OAAO,CAAC,CAAC;QACpC,IAAI,CAAC;YACH,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACvB,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,GAAG,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,mBAAmB,GAAG,EAAE,EAAE,CAAC,CAAC;YACpE,OAAO,CAAC,CAAC,KAAK,CAAC;QACjB,CAAC;IACH,CAAC,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,iEAAyD,CAAC,CACxE;IACD,KAAK,EAAE,kEAA0D;CAClE,CAAC,CAAC;AAEH,SAAgB,+CAA+C,CAC7D,UAAkB;IAKlB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,6DAAqD,CAAC,KAAK,CACzD,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CACd,EACH,qEAAqE,CACtE,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
/**
|
|
6
|
+
* The event type. Matches the SSE `event` field.
|
|
7
|
+
*/
|
|
8
|
+
export declare const ResponseReasoningSummaryTextDeltaStreamEventType: {
|
|
9
|
+
readonly ResponseReasoningSummaryTextDelta: "response.reasoning_summary_text.delta";
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* The event type. Matches the SSE `event` field.
|
|
13
|
+
*/
|
|
14
|
+
export type ResponseReasoningSummaryTextDeltaStreamEventType = ClosedEnum<typeof ResponseReasoningSummaryTextDeltaStreamEventType>;
|
|
15
|
+
/**
|
|
16
|
+
* The event payload.
|
|
17
|
+
*/
|
|
18
|
+
export type ResponseReasoningSummaryTextDeltaStreamEventData = {
|
|
19
|
+
/**
|
|
20
|
+
* Incremental text or argument chunk.
|
|
21
|
+
*/
|
|
22
|
+
delta: string;
|
|
23
|
+
/**
|
|
24
|
+
* ID of the output item this event refers to.
|
|
25
|
+
*/
|
|
26
|
+
itemId: string;
|
|
27
|
+
/**
|
|
28
|
+
* Obfuscation padding accompanying the delta, when present.
|
|
29
|
+
*/
|
|
30
|
+
obfuscation?: string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Index of the output item in the response output array.
|
|
33
|
+
*/
|
|
34
|
+
outputIndex: number;
|
|
35
|
+
/**
|
|
36
|
+
* Monotonically increasing sequence number for ordering events.
|
|
37
|
+
*/
|
|
38
|
+
sequenceNumber: number;
|
|
39
|
+
/**
|
|
40
|
+
* Index of the reasoning summary part.
|
|
41
|
+
*/
|
|
42
|
+
summaryIndex: number;
|
|
43
|
+
/**
|
|
44
|
+
* The event type. Matches the SSE `event` field.
|
|
45
|
+
*/
|
|
46
|
+
type: ResponseReasoningSummaryTextDeltaStreamEventType;
|
|
47
|
+
additionalProperties?: {
|
|
48
|
+
[k: string]: any;
|
|
49
|
+
} | undefined;
|
|
50
|
+
};
|
|
51
|
+
export type ResponseReasoningSummaryTextDeltaStreamEvent = {
|
|
52
|
+
/**
|
|
53
|
+
* The event payload.
|
|
54
|
+
*/
|
|
55
|
+
data: ResponseReasoningSummaryTextDeltaStreamEventData;
|
|
56
|
+
/**
|
|
57
|
+
* The SSE event name, equal to the payload's `type`.
|
|
58
|
+
*/
|
|
59
|
+
event: "response.reasoning_summary_text.delta";
|
|
60
|
+
};
|
|
61
|
+
/** @internal */
|
|
62
|
+
export declare const ResponseReasoningSummaryTextDeltaStreamEventType$inboundSchema: z.ZodNativeEnum<typeof ResponseReasoningSummaryTextDeltaStreamEventType>;
|
|
63
|
+
/** @internal */
|
|
64
|
+
export declare const ResponseReasoningSummaryTextDeltaStreamEventData$inboundSchema: z.ZodType<ResponseReasoningSummaryTextDeltaStreamEventData, z.ZodTypeDef, unknown>;
|
|
65
|
+
export declare function responseReasoningSummaryTextDeltaStreamEventDataFromJSON(jsonString: string): SafeParseResult<ResponseReasoningSummaryTextDeltaStreamEventData, SDKValidationError>;
|
|
66
|
+
/** @internal */
|
|
67
|
+
export declare const ResponseReasoningSummaryTextDeltaStreamEvent$inboundSchema: z.ZodType<ResponseReasoningSummaryTextDeltaStreamEvent, z.ZodTypeDef, unknown>;
|
|
68
|
+
export declare function responseReasoningSummaryTextDeltaStreamEventFromJSON(jsonString: string): SafeParseResult<ResponseReasoningSummaryTextDeltaStreamEvent, SDKValidationError>;
|
|
69
|
+
//# sourceMappingURL=responsereasoningsummarytextdeltastreamevent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responsereasoningsummarytextdeltastreamevent.d.ts","sourceRoot":"","sources":["../../src/models/components/responsereasoningsummarytextdeltastreamevent.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAM5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,gDAAgD;;CAEnD,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,gDAAgD,GAAG,UAAU,CACvE,OAAO,gDAAgD,CACxD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,gDAAgD,GAAG;IAC7D;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,IAAI,EAAE,gDAAgD,CAAC;IACvD,oBAAoB,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;CACzD,CAAC;AAEF,MAAM,MAAM,4CAA4C,GAAG;IACzD;;OAEG;IACH,IAAI,EAAE,gDAAgD,CAAC;IACvD;;OAEG;IACH,KAAK,EAAE,uCAAuC,CAAC;CAChD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8DAA8D,EACzE,CAAC,CAAC,aAAa,CAAC,OAAO,gDAAgD,CACR,CAAC;AAElE,gBAAgB;AAChB,eAAO,MAAM,8DAA8D,EACzE,CAAC,CAAC,OAAO,CACP,gDAAgD,EAChD,CAAC,CAAC,UAAU,EACZ,OAAO,CAoBP,CAAC;AAEL,wBAAgB,wDAAwD,CACtE,UAAU,EAAE,MAAM,GACjB,eAAe,CAChB,gDAAgD,EAChD,kBAAkB,CACnB,CASA;AAED,gBAAgB;AAChB,eAAO,MAAM,0DAA0D,EACrE,CAAC,CAAC,OAAO,CACP,4CAA4C,EAC5C,CAAC,CAAC,UAAU,EACZ,OAAO,CAgBP,CAAC;AAEL,wBAAgB,oDAAoD,CAClE,UAAU,EAAE,MAAM,GACjB,eAAe,CAChB,4CAA4C,EAC5C,kBAAkB,CACnB,CASA"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ResponseReasoningSummaryTextDeltaStreamEvent$inboundSchema = exports.ResponseReasoningSummaryTextDeltaStreamEventData$inboundSchema = exports.ResponseReasoningSummaryTextDeltaStreamEventType$inboundSchema = exports.ResponseReasoningSummaryTextDeltaStreamEventType = void 0;
|
|
40
|
+
exports.responseReasoningSummaryTextDeltaStreamEventDataFromJSON = responseReasoningSummaryTextDeltaStreamEventDataFromJSON;
|
|
41
|
+
exports.responseReasoningSummaryTextDeltaStreamEventFromJSON = responseReasoningSummaryTextDeltaStreamEventFromJSON;
|
|
42
|
+
const z = __importStar(require("zod/v3"));
|
|
43
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
44
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
45
|
+
/**
|
|
46
|
+
* The event type. Matches the SSE `event` field.
|
|
47
|
+
*/
|
|
48
|
+
exports.ResponseReasoningSummaryTextDeltaStreamEventType = {
|
|
49
|
+
ResponseReasoningSummaryTextDelta: "response.reasoning_summary_text.delta",
|
|
50
|
+
};
|
|
51
|
+
/** @internal */
|
|
52
|
+
exports.ResponseReasoningSummaryTextDeltaStreamEventType$inboundSchema = z
|
|
53
|
+
.nativeEnum(exports.ResponseReasoningSummaryTextDeltaStreamEventType);
|
|
54
|
+
/** @internal */
|
|
55
|
+
exports.ResponseReasoningSummaryTextDeltaStreamEventData$inboundSchema = (0, schemas_js_1.collectExtraKeys)(z.object({
|
|
56
|
+
delta: z.string(),
|
|
57
|
+
item_id: z.string(),
|
|
58
|
+
obfuscation: z.string().optional(),
|
|
59
|
+
output_index: z.number().int(),
|
|
60
|
+
sequence_number: z.number().int(),
|
|
61
|
+
summary_index: z.number().int(),
|
|
62
|
+
type: exports.ResponseReasoningSummaryTextDeltaStreamEventType$inboundSchema,
|
|
63
|
+
}).catchall(z.any()), "additionalProperties", true).transform((v) => {
|
|
64
|
+
return (0, primitives_js_1.remap)(v, {
|
|
65
|
+
"item_id": "itemId",
|
|
66
|
+
"output_index": "outputIndex",
|
|
67
|
+
"sequence_number": "sequenceNumber",
|
|
68
|
+
"summary_index": "summaryIndex",
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
function responseReasoningSummaryTextDeltaStreamEventDataFromJSON(jsonString) {
|
|
72
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseReasoningSummaryTextDeltaStreamEventData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseReasoningSummaryTextDeltaStreamEventData' from JSON`);
|
|
73
|
+
}
|
|
74
|
+
/** @internal */
|
|
75
|
+
exports.ResponseReasoningSummaryTextDeltaStreamEvent$inboundSchema = z.object({
|
|
76
|
+
data: z.unknown().transform((v, ctx) => {
|
|
77
|
+
if (typeof v !== "string")
|
|
78
|
+
return v;
|
|
79
|
+
try {
|
|
80
|
+
return JSON.parse(v);
|
|
81
|
+
}
|
|
82
|
+
catch (err) {
|
|
83
|
+
ctx.addIssue({ code: "custom", message: `malformed json: ${err}` });
|
|
84
|
+
return z.NEVER;
|
|
85
|
+
}
|
|
86
|
+
}).pipe(z.lazy(() => exports.ResponseReasoningSummaryTextDeltaStreamEventData$inboundSchema)),
|
|
87
|
+
event: z.literal("response.reasoning_summary_text.delta"),
|
|
88
|
+
});
|
|
89
|
+
function responseReasoningSummaryTextDeltaStreamEventFromJSON(jsonString) {
|
|
90
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseReasoningSummaryTextDeltaStreamEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseReasoningSummaryTextDeltaStreamEvent' from JSON`);
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=responsereasoningsummarytextdeltastreamevent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responsereasoningsummarytextdeltastreamevent.js","sourceRoot":"","sources":["../../src/models/components/responsereasoningsummarytextdeltastreamevent.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuGH,4HAcC;AAyBD,oHAcC;AA1JD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAG8B;AAK9B;;GAEG;AACU,QAAA,gDAAgD,GAAG;IAC9D,iCAAiC,EAAE,uCAAuC;CAClE,CAAC;AAsDX,gBAAgB;AACH,QAAA,8DAA8D,GACE,CAAC;KACzE,UAAU,CAAC,wDAAgD,CAAC,CAAC;AAElE,gBAAgB;AACH,QAAA,8DAA8D,GAKrE,IAAA,6BAAiB,EACnB,CAAC,C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CAAC;YACb,GAAG,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,mBAAmB,GAAG,EAAE,EAAE,CAAC,CAAC;YACpE,OAAO,CAAC,CAAC,KAAK,CAAC;QACjB,CAAC;IACH,CAAC,CAAC,CAAC,IAAI,CACL,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CACV,sEAA8D,CAC/D,CACF;IACD,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,uCAAuC,CAAC;CAC1D,CAAC,CAAC;AAEL,SAAgB,oDAAoD,CAClE,UAAkB;IAKlB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,kEAA0D,CAAC,KAAK,CAC9D,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CACd,EACH,0EAA0E,CAC3E,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
/**
|
|
6
|
+
* The event type. Matches the SSE `event` field.
|
|
7
|
+
*/
|
|
8
|
+
export declare const ResponseReasoningSummaryTextDoneStreamEventType: {
|
|
9
|
+
readonly ResponseReasoningSummaryTextDone: "response.reasoning_summary_text.done";
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* The event type. Matches the SSE `event` field.
|
|
13
|
+
*/
|
|
14
|
+
export type ResponseReasoningSummaryTextDoneStreamEventType = ClosedEnum<typeof ResponseReasoningSummaryTextDoneStreamEventType>;
|
|
15
|
+
/**
|
|
16
|
+
* The event payload.
|
|
17
|
+
*/
|
|
18
|
+
export type ResponseReasoningSummaryTextDoneStreamEventData = {
|
|
19
|
+
/**
|
|
20
|
+
* ID of the output item this event refers to.
|
|
21
|
+
*/
|
|
22
|
+
itemId: string;
|
|
23
|
+
/**
|
|
24
|
+
* Index of the output item in the response output array.
|
|
25
|
+
*/
|
|
26
|
+
outputIndex: number;
|
|
27
|
+
/**
|
|
28
|
+
* Monotonically increasing sequence number for ordering events.
|
|
29
|
+
*/
|
|
30
|
+
sequenceNumber: number;
|
|
31
|
+
/**
|
|
32
|
+
* Index of the reasoning summary part.
|
|
33
|
+
*/
|
|
34
|
+
summaryIndex: number;
|
|
35
|
+
/**
|
|
36
|
+
* The completed reasoning summary text.
|
|
37
|
+
*/
|
|
38
|
+
text: string;
|
|
39
|
+
/**
|
|
40
|
+
* The event type. Matches the SSE `event` field.
|
|
41
|
+
*/
|
|
42
|
+
type: ResponseReasoningSummaryTextDoneStreamEventType;
|
|
43
|
+
additionalProperties?: {
|
|
44
|
+
[k: string]: any;
|
|
45
|
+
} | undefined;
|
|
46
|
+
};
|
|
47
|
+
export type ResponseReasoningSummaryTextDoneStreamEvent = {
|
|
48
|
+
/**
|
|
49
|
+
* The event payload.
|
|
50
|
+
*/
|
|
51
|
+
data: ResponseReasoningSummaryTextDoneStreamEventData;
|
|
52
|
+
/**
|
|
53
|
+
* The SSE event name, equal to the payload's `type`.
|
|
54
|
+
*/
|
|
55
|
+
event: "response.reasoning_summary_text.done";
|
|
56
|
+
};
|
|
57
|
+
/** @internal */
|
|
58
|
+
export declare const ResponseReasoningSummaryTextDoneStreamEventType$inboundSchema: z.ZodNativeEnum<typeof ResponseReasoningSummaryTextDoneStreamEventType>;
|
|
59
|
+
/** @internal */
|
|
60
|
+
export declare const ResponseReasoningSummaryTextDoneStreamEventData$inboundSchema: z.ZodType<ResponseReasoningSummaryTextDoneStreamEventData, z.ZodTypeDef, unknown>;
|
|
61
|
+
export declare function responseReasoningSummaryTextDoneStreamEventDataFromJSON(jsonString: string): SafeParseResult<ResponseReasoningSummaryTextDoneStreamEventData, SDKValidationError>;
|
|
62
|
+
/** @internal */
|
|
63
|
+
export declare const ResponseReasoningSummaryTextDoneStreamEvent$inboundSchema: z.ZodType<ResponseReasoningSummaryTextDoneStreamEvent, z.ZodTypeDef, unknown>;
|
|
64
|
+
export declare function responseReasoningSummaryTextDoneStreamEventFromJSON(jsonString: string): SafeParseResult<ResponseReasoningSummaryTextDoneStreamEvent, SDKValidationError>;
|
|
65
|
+
//# sourceMappingURL=responsereasoningsummarytextdonestreamevent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responsereasoningsummarytextdonestreamevent.d.ts","sourceRoot":"","sources":["../../src/models/components/responsereasoningsummarytextdonestreamevent.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAM5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,+CAA+C;;CAElD,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,+CAA+C,GAAG,UAAU,CACtE,OAAO,+CAA+C,CACvD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,+CAA+C,GAAG;IAC5D;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,EAAE,+CAA+C,CAAC;IACtD,oBAAoB,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;CACzD,CAAC;AAEF,MAAM,MAAM,2CAA2C,GAAG;IACxD;;OAEG;IACH,IAAI,EAAE,+CAA+C,CAAC;IACtD;;OAEG;IACH,KAAK,EAAE,sCAAsC,CAAC;CAC/C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6DAA6D,EACxE,CAAC,CAAC,aAAa,CAAC,OAAO,+CAA+C,CACR,CAAC;AAEjE,gBAAgB;AAChB,eAAO,MAAM,6DAA6D,EACxE,CAAC,CAAC,OAAO,CACP,+CAA+C,EAC/C,CAAC,CAAC,UAAU,EACZ,OAAO,CAmBP,CAAC;AAEL,wBAAgB,uDAAuD,CACrE,UAAU,EAAE,MAAM,GACjB,eAAe,CAChB,+CAA+C,EAC/C,kBAAkB,CACnB,CASA;AAED,gBAAgB;AAChB,eAAO,MAAM,yDAAyD,EACpE,CAAC,CAAC,OAAO,CACP,2CAA2C,EAC3C,CAAC,CAAC,UAAU,EACZ,OAAO,CAgBP,CAAC;AAEL,wBAAgB,mDAAmD,CACjE,UAAU,EAAE,MAAM,GACjB,eAAe,CAChB,2CAA2C,EAC3C,kBAAkB,CACnB,CASA"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ResponseReasoningSummaryTextDoneStreamEvent$inboundSchema = exports.ResponseReasoningSummaryTextDoneStreamEventData$inboundSchema = exports.ResponseReasoningSummaryTextDoneStreamEventType$inboundSchema = exports.ResponseReasoningSummaryTextDoneStreamEventType = void 0;
|
|
40
|
+
exports.responseReasoningSummaryTextDoneStreamEventDataFromJSON = responseReasoningSummaryTextDoneStreamEventDataFromJSON;
|
|
41
|
+
exports.responseReasoningSummaryTextDoneStreamEventFromJSON = responseReasoningSummaryTextDoneStreamEventFromJSON;
|
|
42
|
+
const z = __importStar(require("zod/v3"));
|
|
43
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
44
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
45
|
+
/**
|
|
46
|
+
* The event type. Matches the SSE `event` field.
|
|
47
|
+
*/
|
|
48
|
+
exports.ResponseReasoningSummaryTextDoneStreamEventType = {
|
|
49
|
+
ResponseReasoningSummaryTextDone: "response.reasoning_summary_text.done",
|
|
50
|
+
};
|
|
51
|
+
/** @internal */
|
|
52
|
+
exports.ResponseReasoningSummaryTextDoneStreamEventType$inboundSchema = z
|
|
53
|
+
.nativeEnum(exports.ResponseReasoningSummaryTextDoneStreamEventType);
|
|
54
|
+
/** @internal */
|
|
55
|
+
exports.ResponseReasoningSummaryTextDoneStreamEventData$inboundSchema = (0, schemas_js_1.collectExtraKeys)(z.object({
|
|
56
|
+
item_id: z.string(),
|
|
57
|
+
output_index: z.number().int(),
|
|
58
|
+
sequence_number: z.number().int(),
|
|
59
|
+
summary_index: z.number().int(),
|
|
60
|
+
text: z.string(),
|
|
61
|
+
type: exports.ResponseReasoningSummaryTextDoneStreamEventType$inboundSchema,
|
|
62
|
+
}).catchall(z.any()), "additionalProperties", true).transform((v) => {
|
|
63
|
+
return (0, primitives_js_1.remap)(v, {
|
|
64
|
+
"item_id": "itemId",
|
|
65
|
+
"output_index": "outputIndex",
|
|
66
|
+
"sequence_number": "sequenceNumber",
|
|
67
|
+
"summary_index": "summaryIndex",
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
function responseReasoningSummaryTextDoneStreamEventDataFromJSON(jsonString) {
|
|
71
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseReasoningSummaryTextDoneStreamEventData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseReasoningSummaryTextDoneStreamEventData' from JSON`);
|
|
72
|
+
}
|
|
73
|
+
/** @internal */
|
|
74
|
+
exports.ResponseReasoningSummaryTextDoneStreamEvent$inboundSchema = z.object({
|
|
75
|
+
data: z.unknown().transform((v, ctx) => {
|
|
76
|
+
if (typeof v !== "string")
|
|
77
|
+
return v;
|
|
78
|
+
try {
|
|
79
|
+
return JSON.parse(v);
|
|
80
|
+
}
|
|
81
|
+
catch (err) {
|
|
82
|
+
ctx.addIssue({ code: "custom", message: `malformed json: ${err}` });
|
|
83
|
+
return z.NEVER;
|
|
84
|
+
}
|
|
85
|
+
}).pipe(z.lazy(() => exports.ResponseReasoningSummaryTextDoneStreamEventData$inboundSchema)),
|
|
86
|
+
event: z.literal("response.reasoning_summary_text.done"),
|
|
87
|
+
});
|
|
88
|
+
function responseReasoningSummaryTextDoneStreamEventFromJSON(jsonString) {
|
|
89
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseReasoningSummaryTextDoneStreamEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseReasoningSummaryTextDoneStreamEvent' from JSON`);
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=responsereasoningsummarytextdonestreamevent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responsereasoningsummarytextdonestreamevent.js","sourceRoot":"","sources":["../../src/models/components/responsereasoningsummarytextdonestreamevent.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkGH,0HAcC;AAyBD,kHAcC;AArJD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAG8B;AAK9B;;GAEG;AACU,QAAA,+CAA+C,GAAG;IAC7D,gCAAgC,EAAE,sCAAsC;CAChE,CAAC;AAkDX,gBAAgB;AACH,QAAA,6DAA6D,GACE,CAAC;KACxE,UAAU,CAAC,uDAA+C,CAAC,CAAC;AAEjE,gBAAgB;AACH,QAAA,6DAA6D,GAKpE,IAAA,6BAAiB,EACnB,CAAC,CAAC,MAAM,CAAC;IACP,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC9B,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACjC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC/B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,qEAA6D;CACpE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,EACpB,sBAAsB,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yD,CAAC,KAAK,CAC7D,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CACd,EACH,yEAAyE,CAC1E,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
/**
|
|
6
|
+
* The event type. Matches the SSE `event` field.
|
|
7
|
+
*/
|
|
8
|
+
export declare const ResponseRefusalDeltaStreamEventType: {
|
|
9
|
+
readonly ResponseRefusalDelta: "response.refusal.delta";
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* The event type. Matches the SSE `event` field.
|
|
13
|
+
*/
|
|
14
|
+
export type ResponseRefusalDeltaStreamEventType = ClosedEnum<typeof ResponseRefusalDeltaStreamEventType>;
|
|
15
|
+
/**
|
|
16
|
+
* The event payload.
|
|
17
|
+
*/
|
|
18
|
+
export type ResponseRefusalDeltaStreamEventData = {
|
|
19
|
+
/**
|
|
20
|
+
* Index of the content part within the output item.
|
|
21
|
+
*/
|
|
22
|
+
contentIndex: number;
|
|
23
|
+
/**
|
|
24
|
+
* Incremental text or argument chunk.
|
|
25
|
+
*/
|
|
26
|
+
delta: string;
|
|
27
|
+
/**
|
|
28
|
+
* ID of the output item this event refers to.
|
|
29
|
+
*/
|
|
30
|
+
itemId: string;
|
|
31
|
+
/**
|
|
32
|
+
* Index of the output item in the response output array.
|
|
33
|
+
*/
|
|
34
|
+
outputIndex: number;
|
|
35
|
+
/**
|
|
36
|
+
* Monotonically increasing sequence number for ordering events.
|
|
37
|
+
*/
|
|
38
|
+
sequenceNumber: number;
|
|
39
|
+
/**
|
|
40
|
+
* The event type. Matches the SSE `event` field.
|
|
41
|
+
*/
|
|
42
|
+
type: ResponseRefusalDeltaStreamEventType;
|
|
43
|
+
additionalProperties?: {
|
|
44
|
+
[k: string]: any;
|
|
45
|
+
} | undefined;
|
|
46
|
+
};
|
|
47
|
+
export type ResponseRefusalDeltaStreamEvent = {
|
|
48
|
+
/**
|
|
49
|
+
* The event payload.
|
|
50
|
+
*/
|
|
51
|
+
data: ResponseRefusalDeltaStreamEventData;
|
|
52
|
+
/**
|
|
53
|
+
* The SSE event name, equal to the payload's `type`.
|
|
54
|
+
*/
|
|
55
|
+
event: "response.refusal.delta";
|
|
56
|
+
};
|
|
57
|
+
/** @internal */
|
|
58
|
+
export declare const ResponseRefusalDeltaStreamEventType$inboundSchema: z.ZodNativeEnum<typeof ResponseRefusalDeltaStreamEventType>;
|
|
59
|
+
/** @internal */
|
|
60
|
+
export declare const ResponseRefusalDeltaStreamEventData$inboundSchema: z.ZodType<ResponseRefusalDeltaStreamEventData, z.ZodTypeDef, unknown>;
|
|
61
|
+
export declare function responseRefusalDeltaStreamEventDataFromJSON(jsonString: string): SafeParseResult<ResponseRefusalDeltaStreamEventData, SDKValidationError>;
|
|
62
|
+
/** @internal */
|
|
63
|
+
export declare const ResponseRefusalDeltaStreamEvent$inboundSchema: z.ZodType<ResponseRefusalDeltaStreamEvent, z.ZodTypeDef, unknown>;
|
|
64
|
+
export declare function responseRefusalDeltaStreamEventFromJSON(jsonString: string): SafeParseResult<ResponseRefusalDeltaStreamEvent, SDKValidationError>;
|
|
65
|
+
//# sourceMappingURL=responserefusaldeltastreamevent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responserefusaldeltastreamevent.d.ts","sourceRoot":"","sources":["../../src/models/components/responserefusaldeltastreamevent.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAM5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;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CAMtE"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ResponseRefusalDeltaStreamEvent$inboundSchema = exports.ResponseRefusalDeltaStreamEventData$inboundSchema = exports.ResponseRefusalDeltaStreamEventType$inboundSchema = exports.ResponseRefusalDeltaStreamEventType = void 0;
|
|
40
|
+
exports.responseRefusalDeltaStreamEventDataFromJSON = responseRefusalDeltaStreamEventDataFromJSON;
|
|
41
|
+
exports.responseRefusalDeltaStreamEventFromJSON = responseRefusalDeltaStreamEventFromJSON;
|
|
42
|
+
const z = __importStar(require("zod/v3"));
|
|
43
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
44
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
45
|
+
/**
|
|
46
|
+
* The event type. Matches the SSE `event` field.
|
|
47
|
+
*/
|
|
48
|
+
exports.ResponseRefusalDeltaStreamEventType = {
|
|
49
|
+
ResponseRefusalDelta: "response.refusal.delta",
|
|
50
|
+
};
|
|
51
|
+
/** @internal */
|
|
52
|
+
exports.ResponseRefusalDeltaStreamEventType$inboundSchema = z.nativeEnum(exports.ResponseRefusalDeltaStreamEventType);
|
|
53
|
+
/** @internal */
|
|
54
|
+
exports.ResponseRefusalDeltaStreamEventData$inboundSchema = (0, schemas_js_1.collectExtraKeys)(z.object({
|
|
55
|
+
content_index: z.number().int(),
|
|
56
|
+
delta: z.string(),
|
|
57
|
+
item_id: z.string(),
|
|
58
|
+
output_index: z.number().int(),
|
|
59
|
+
sequence_number: z.number().int(),
|
|
60
|
+
type: exports.ResponseRefusalDeltaStreamEventType$inboundSchema,
|
|
61
|
+
}).catchall(z.any()), "additionalProperties", true).transform((v) => {
|
|
62
|
+
return (0, primitives_js_1.remap)(v, {
|
|
63
|
+
"content_index": "contentIndex",
|
|
64
|
+
"item_id": "itemId",
|
|
65
|
+
"output_index": "outputIndex",
|
|
66
|
+
"sequence_number": "sequenceNumber",
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
function responseRefusalDeltaStreamEventDataFromJSON(jsonString) {
|
|
70
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseRefusalDeltaStreamEventData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseRefusalDeltaStreamEventData' from JSON`);
|
|
71
|
+
}
|
|
72
|
+
/** @internal */
|
|
73
|
+
exports.ResponseRefusalDeltaStreamEvent$inboundSchema = z.object({
|
|
74
|
+
data: z.unknown().transform((v, ctx) => {
|
|
75
|
+
if (typeof v !== "string")
|
|
76
|
+
return v;
|
|
77
|
+
try {
|
|
78
|
+
return JSON.parse(v);
|
|
79
|
+
}
|
|
80
|
+
catch (err) {
|
|
81
|
+
ctx.addIssue({ code: "custom", message: `malformed json: ${err}` });
|
|
82
|
+
return z.NEVER;
|
|
83
|
+
}
|
|
84
|
+
}).pipe(z.lazy(() => exports.ResponseRefusalDeltaStreamEventData$inboundSchema)),
|
|
85
|
+
event: z.literal("response.refusal.delta"),
|
|
86
|
+
});
|
|
87
|
+
function responseRefusalDeltaStreamEventFromJSON(jsonString) {
|
|
88
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseRefusalDeltaStreamEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseRefusalDeltaStreamEvent' from JSON`);
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=responserefusaldeltastreamevent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responserefusaldeltastreamevent.js","sourceRoot":"","sources":["../../src/models/components/responserefusaldeltastreamevent.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiGH,kGASC;AAoBD,0FAQC;AApID,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAG8B;AAK9B;;GAEG;AACU,QAAA,mCAAmC,GAAG;IACjD,oBAAoB,EAAE,wBAAwB;CACtC,CAAC;AAkDX,gBAAgB;AACH,QAAA,iDAAiD,GAE1D,CAAC,CAAC,UAAU,CAAC,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