@gleanwork/api-client 0.19.2 → 0.20.1
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 +38 -0
- package/dist/commonjs/__tests__/summarize.test.js +2 -4
- package/dist/commonjs/__tests__/summarize.test.js.map +1 -1
- package/dist/commonjs/funcs/chatCreate.d.ts +2 -8
- package/dist/commonjs/funcs/chatCreate.d.ts.map +1 -1
- package/dist/commonjs/funcs/chatCreate.js +4 -13
- package/dist/commonjs/funcs/chatCreate.js.map +1 -1
- package/dist/commonjs/funcs/chatCreateStream.d.ts +20 -0
- package/dist/commonjs/funcs/chatCreateStream.d.ts.map +1 -0
- package/dist/commonjs/funcs/chatCreateStream.js +134 -0
- package/dist/commonjs/funcs/chatCreateStream.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/event-streams.d.ts +23 -0
- package/dist/commonjs/lib/event-streams.d.ts.map +1 -0
- package/dist/commonjs/lib/event-streams.js +168 -0
- package/dist/commonjs/lib/event-streams.js.map +1 -0
- package/dist/commonjs/models/components/chatmessagefragment.d.ts +1 -1
- package/dist/commonjs/models/components/index.d.ts +15 -1
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +15 -1
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/platformchatcompletedresponse.d.ts +4 -4
- package/dist/commonjs/models/components/platformchatcompletedresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/platformchatcompletedresponse.js +4 -5
- package/dist/commonjs/models/components/platformchatcompletedresponse.js.map +1 -1
- package/dist/commonjs/models/components/platformchatfailedresponse.d.ts +44 -0
- package/dist/commonjs/models/components/platformchatfailedresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/platformchatfailedresponse.js +71 -0
- package/dist/commonjs/models/components/platformchatfailedresponse.js.map +1 -0
- package/dist/commonjs/models/components/platformchatresponseerror.d.ts +16 -0
- package/dist/commonjs/models/components/platformchatresponseerror.d.ts.map +1 -0
- package/dist/commonjs/models/components/platformchatresponseerror.js +52 -0
- package/dist/commonjs/models/components/platformchatresponseerror.js.map +1 -0
- package/dist/commonjs/models/components/platformchatstreameventserversentevent.d.ts +17 -0
- package/dist/commonjs/models/components/platformchatstreameventserversentevent.d.ts.map +1 -0
- package/dist/commonjs/models/components/platformchatstreameventserversentevent.js +62 -0
- package/dist/commonjs/models/components/platformchatstreameventserversentevent.js.map +1 -0
- package/dist/commonjs/models/components/platformchatstreamoutputtextdelta.d.ts +24 -0
- package/dist/commonjs/models/components/platformchatstreamoutputtextdelta.d.ts.map +1 -0
- package/dist/commonjs/models/components/platformchatstreamoutputtextdelta.js +58 -0
- package/dist/commonjs/models/components/platformchatstreamoutputtextdelta.js.map +1 -0
- package/dist/commonjs/models/components/platformchatstreamoutputtextdeltaserversentevent.d.ts +13 -0
- package/dist/commonjs/models/components/platformchatstreamoutputtextdeltaserversentevent.d.ts.map +1 -0
- package/dist/commonjs/models/components/platformchatstreamoutputtextdeltaserversentevent.js +64 -0
- package/dist/commonjs/models/components/platformchatstreamoutputtextdeltaserversentevent.js.map +1 -0
- package/dist/commonjs/models/components/platformchatstreamoutputtextdone.d.ts +24 -0
- package/dist/commonjs/models/components/platformchatstreamoutputtextdone.d.ts.map +1 -0
- package/dist/commonjs/models/components/platformchatstreamoutputtextdone.js +58 -0
- package/dist/commonjs/models/components/platformchatstreamoutputtextdone.js.map +1 -0
- package/dist/commonjs/models/components/platformchatstreamoutputtextdoneserversentevent.d.ts +13 -0
- package/dist/commonjs/models/components/platformchatstreamoutputtextdoneserversentevent.d.ts.map +1 -0
- package/dist/commonjs/models/components/platformchatstreamoutputtextdoneserversentevent.js +64 -0
- package/dist/commonjs/models/components/platformchatstreamoutputtextdoneserversentevent.js.map +1 -0
- package/dist/commonjs/models/components/platformchatstreamprogress.d.ts +29 -0
- package/dist/commonjs/models/components/platformchatstreamprogress.d.ts.map +1 -0
- package/dist/commonjs/models/components/platformchatstreamprogress.js +58 -0
- package/dist/commonjs/models/components/platformchatstreamprogress.js.map +1 -0
- package/dist/commonjs/models/components/platformchatstreamprogressserversentevent.d.ts +13 -0
- package/dist/commonjs/models/components/platformchatstreamprogressserversentevent.d.ts.map +1 -0
- package/dist/commonjs/models/components/platformchatstreamprogressserversentevent.js +64 -0
- package/dist/commonjs/models/components/platformchatstreamprogressserversentevent.js.map +1 -0
- package/dist/commonjs/models/components/platformchatstreamresponsecompleted.d.ts +25 -0
- package/dist/commonjs/models/components/platformchatstreamresponsecompleted.d.ts.map +1 -0
- package/dist/commonjs/models/components/platformchatstreamresponsecompleted.js +60 -0
- package/dist/commonjs/models/components/platformchatstreamresponsecompleted.js.map +1 -0
- package/dist/commonjs/models/components/platformchatstreamresponsecompletedserversentevent.d.ts +13 -0
- package/dist/commonjs/models/components/platformchatstreamresponsecompletedserversentevent.d.ts.map +1 -0
- package/dist/commonjs/models/components/platformchatstreamresponsecompletedserversentevent.js +64 -0
- package/dist/commonjs/models/components/platformchatstreamresponsecompletedserversentevent.js.map +1 -0
- package/dist/commonjs/models/components/platformchatstreamresponsecreated.d.ts +23 -0
- package/dist/commonjs/models/components/platformchatstreamresponsecreated.d.ts.map +1 -0
- package/dist/commonjs/models/components/platformchatstreamresponsecreated.js +57 -0
- package/dist/commonjs/models/components/platformchatstreamresponsecreated.js.map +1 -0
- package/dist/commonjs/models/components/platformchatstreamresponsecreatedserversentevent.d.ts +13 -0
- package/dist/commonjs/models/components/platformchatstreamresponsecreatedserversentevent.d.ts.map +1 -0
- package/dist/commonjs/models/components/platformchatstreamresponsecreatedserversentevent.js +64 -0
- package/dist/commonjs/models/components/platformchatstreamresponsecreatedserversentevent.js.map +1 -0
- package/dist/commonjs/models/components/platformchatstreamresponsefailed.d.ts +25 -0
- package/dist/commonjs/models/components/platformchatstreamresponsefailed.d.ts.map +1 -0
- package/dist/commonjs/models/components/platformchatstreamresponsefailed.js +59 -0
- package/dist/commonjs/models/components/platformchatstreamresponsefailed.js.map +1 -0
- package/dist/commonjs/models/components/platformchatstreamresponsefailedserversentevent.d.ts +13 -0
- package/dist/commonjs/models/components/platformchatstreamresponsefailedserversentevent.d.ts.map +1 -0
- package/dist/commonjs/models/components/platformchatstreamresponsefailedserversentevent.js +64 -0
- package/dist/commonjs/models/components/platformchatstreamresponsefailedserversentevent.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +1 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/platformchatcreate.d.ts +41 -5
- package/dist/commonjs/models/operations/platformchatcreate.d.ts.map +1 -1
- package/dist/commonjs/models/operations/platformchatcreate.js +20 -7
- package/dist/commonjs/models/operations/platformchatcreate.js.map +1 -1
- package/dist/commonjs/models/operations/platformchatcreatestream.d.ts +45 -0
- package/dist/commonjs/models/operations/platformchatcreatestream.d.ts.map +1 -0
- package/dist/commonjs/models/{components/platformchatcreaterequest.js → operations/platformchatcreatestream.js} +17 -14
- package/dist/commonjs/models/operations/platformchatcreatestream.js.map +1 -0
- package/dist/commonjs/react-query/chatCreate.d.ts +5 -11
- package/dist/commonjs/react-query/chatCreate.d.ts.map +1 -1
- package/dist/commonjs/react-query/chatCreate.js +1 -4
- package/dist/commonjs/react-query/chatCreate.js.map +1 -1
- package/dist/commonjs/react-query/chatCreateStream.d.ts +31 -0
- package/dist/commonjs/react-query/chatCreateStream.d.ts.map +1 -0
- package/dist/commonjs/react-query/chatCreateStream.js +48 -0
- package/dist/commonjs/react-query/chatCreateStream.js.map +1 -0
- package/dist/commonjs/react-query/index.d.ts +1 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +1 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/sdk/chat.d.ts +10 -6
- package/dist/commonjs/sdk/chat.d.ts.map +1 -1
- package/dist/commonjs/sdk/chat.js +12 -4
- package/dist/commonjs/sdk/chat.js.map +1 -1
- package/dist/esm/__tests__/summarize.test.js +2 -4
- package/dist/esm/__tests__/summarize.test.js.map +1 -1
- package/dist/esm/funcs/chatCreate.d.ts +2 -8
- package/dist/esm/funcs/chatCreate.d.ts.map +1 -1
- package/dist/esm/funcs/chatCreate.js +4 -12
- package/dist/esm/funcs/chatCreate.js.map +1 -1
- package/dist/esm/funcs/chatCreateStream.d.ts +20 -0
- package/dist/esm/funcs/chatCreateStream.d.ts.map +1 -0
- package/dist/esm/funcs/chatCreateStream.js +98 -0
- package/dist/esm/funcs/chatCreateStream.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/event-streams.d.ts +23 -0
- package/dist/esm/lib/event-streams.d.ts.map +1 -0
- package/dist/esm/lib/event-streams.js +164 -0
- package/dist/esm/lib/event-streams.js.map +1 -0
- package/dist/esm/models/components/chatmessagefragment.d.ts +1 -1
- package/dist/esm/models/components/index.d.ts +15 -1
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +15 -1
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/platformchatcompletedresponse.d.ts +4 -4
- package/dist/esm/models/components/platformchatcompletedresponse.d.ts.map +1 -1
- package/dist/esm/models/components/platformchatcompletedresponse.js +3 -4
- package/dist/esm/models/components/platformchatcompletedresponse.js.map +1 -1
- package/dist/esm/models/components/platformchatfailedresponse.d.ts +44 -0
- package/dist/esm/models/components/platformchatfailedresponse.d.ts.map +1 -0
- package/dist/esm/models/components/platformchatfailedresponse.js +34 -0
- package/dist/esm/models/components/platformchatfailedresponse.js.map +1 -0
- package/dist/esm/models/components/platformchatresponseerror.d.ts +16 -0
- package/dist/esm/models/components/platformchatresponseerror.d.ts.map +1 -0
- package/dist/esm/models/components/platformchatresponseerror.js +15 -0
- package/dist/esm/models/components/platformchatresponseerror.js.map +1 -0
- package/dist/esm/models/components/platformchatstreameventserversentevent.d.ts +17 -0
- package/dist/esm/models/components/platformchatstreameventserversentevent.d.ts.map +1 -0
- package/dist/esm/models/components/platformchatstreameventserversentevent.js +25 -0
- package/dist/esm/models/components/platformchatstreameventserversentevent.js.map +1 -0
- package/dist/esm/models/components/platformchatstreamoutputtextdelta.d.ts +24 -0
- package/dist/esm/models/components/platformchatstreamoutputtextdelta.d.ts.map +1 -0
- package/dist/esm/models/components/platformchatstreamoutputtextdelta.js +21 -0
- package/dist/esm/models/components/platformchatstreamoutputtextdelta.js.map +1 -0
- package/dist/esm/models/components/platformchatstreamoutputtextdeltaserversentevent.d.ts +13 -0
- package/dist/esm/models/components/platformchatstreamoutputtextdeltaserversentevent.d.ts.map +1 -0
- package/dist/esm/models/components/platformchatstreamoutputtextdeltaserversentevent.js +27 -0
- package/dist/esm/models/components/platformchatstreamoutputtextdeltaserversentevent.js.map +1 -0
- package/dist/esm/models/components/platformchatstreamoutputtextdone.d.ts +24 -0
- package/dist/esm/models/components/platformchatstreamoutputtextdone.d.ts.map +1 -0
- package/dist/esm/models/components/platformchatstreamoutputtextdone.js +21 -0
- package/dist/esm/models/components/platformchatstreamoutputtextdone.js.map +1 -0
- package/dist/esm/models/components/platformchatstreamoutputtextdoneserversentevent.d.ts +13 -0
- package/dist/esm/models/components/platformchatstreamoutputtextdoneserversentevent.d.ts.map +1 -0
- package/dist/esm/models/components/platformchatstreamoutputtextdoneserversentevent.js +27 -0
- package/dist/esm/models/components/platformchatstreamoutputtextdoneserversentevent.js.map +1 -0
- package/dist/esm/models/components/platformchatstreamprogress.d.ts +29 -0
- package/dist/esm/models/components/platformchatstreamprogress.d.ts.map +1 -0
- package/dist/esm/models/components/platformchatstreamprogress.js +21 -0
- package/dist/esm/models/components/platformchatstreamprogress.js.map +1 -0
- package/dist/esm/models/components/platformchatstreamprogressserversentevent.d.ts +13 -0
- package/dist/esm/models/components/platformchatstreamprogressserversentevent.d.ts.map +1 -0
- package/dist/esm/models/components/platformchatstreamprogressserversentevent.js +27 -0
- package/dist/esm/models/components/platformchatstreamprogressserversentevent.js.map +1 -0
- package/dist/esm/models/components/platformchatstreamresponsecompleted.d.ts +25 -0
- package/dist/esm/models/components/platformchatstreamresponsecompleted.d.ts.map +1 -0
- package/dist/esm/models/components/platformchatstreamresponsecompleted.js +23 -0
- package/dist/esm/models/components/platformchatstreamresponsecompleted.js.map +1 -0
- package/dist/esm/models/components/platformchatstreamresponsecompletedserversentevent.d.ts +13 -0
- package/dist/esm/models/components/platformchatstreamresponsecompletedserversentevent.d.ts.map +1 -0
- package/dist/esm/models/components/platformchatstreamresponsecompletedserversentevent.js +27 -0
- package/dist/esm/models/components/platformchatstreamresponsecompletedserversentevent.js.map +1 -0
- package/dist/esm/models/components/platformchatstreamresponsecreated.d.ts +23 -0
- package/dist/esm/models/components/platformchatstreamresponsecreated.d.ts.map +1 -0
- package/dist/esm/models/components/platformchatstreamresponsecreated.js +20 -0
- package/dist/esm/models/components/platformchatstreamresponsecreated.js.map +1 -0
- package/dist/esm/models/components/platformchatstreamresponsecreatedserversentevent.d.ts +13 -0
- package/dist/esm/models/components/platformchatstreamresponsecreatedserversentevent.d.ts.map +1 -0
- package/dist/esm/models/components/platformchatstreamresponsecreatedserversentevent.js +27 -0
- package/dist/esm/models/components/platformchatstreamresponsecreatedserversentevent.js.map +1 -0
- package/dist/esm/models/components/platformchatstreamresponsefailed.d.ts +25 -0
- package/dist/esm/models/components/platformchatstreamresponsefailed.d.ts.map +1 -0
- package/dist/esm/models/components/platformchatstreamresponsefailed.js +22 -0
- package/dist/esm/models/components/platformchatstreamresponsefailed.js.map +1 -0
- package/dist/esm/models/components/platformchatstreamresponsefailedserversentevent.d.ts +13 -0
- package/dist/esm/models/components/platformchatstreamresponsefailedserversentevent.d.ts.map +1 -0
- package/dist/esm/models/components/platformchatstreamresponsefailedserversentevent.js +27 -0
- package/dist/esm/models/components/platformchatstreamresponsefailedserversentevent.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +1 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/platformchatcreate.d.ts +41 -5
- package/dist/esm/models/operations/platformchatcreate.d.ts.map +1 -1
- package/dist/esm/models/operations/platformchatcreate.js +17 -5
- package/dist/esm/models/operations/platformchatcreate.js.map +1 -1
- package/dist/esm/models/operations/platformchatcreatestream.d.ts +45 -0
- package/dist/esm/models/operations/platformchatcreatestream.d.ts.map +1 -0
- package/dist/esm/models/operations/platformchatcreatestream.js +28 -0
- package/dist/esm/models/operations/platformchatcreatestream.js.map +1 -0
- package/dist/esm/react-query/chatCreate.d.ts +5 -11
- package/dist/esm/react-query/chatCreate.d.ts.map +1 -1
- package/dist/esm/react-query/chatCreate.js +1 -2
- package/dist/esm/react-query/chatCreate.js.map +1 -1
- package/dist/esm/react-query/chatCreateStream.d.ts +31 -0
- package/dist/esm/react-query/chatCreateStream.d.ts.map +1 -0
- package/dist/esm/react-query/chatCreateStream.js +43 -0
- package/dist/esm/react-query/chatCreateStream.js.map +1 -0
- package/dist/esm/react-query/index.d.ts +1 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +1 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/sdk/chat.d.ts +10 -6
- package/dist/esm/sdk/chat.d.ts.map +1 -1
- package/dist/esm/sdk/chat.js +11 -2
- package/dist/esm/sdk/chat.js.map +1 -1
- package/jsr.json +2 -1
- package/package.json +1 -1
- package/src/__tests__/summarize.test.ts +2 -4
- package/src/funcs/chatCreate.ts +11 -20
- package/src/funcs/chatCreateStream.ts +197 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/event-streams.ts +192 -0
- package/src/models/components/chatmessagefragment.ts +1 -1
- package/src/models/components/index.ts +15 -1
- package/src/models/components/platformchatcompletedresponse.ts +9 -6
- package/src/models/components/platformchatfailedresponse.ts +92 -0
- package/src/models/components/platformchatresponseerror.ts +39 -0
- package/src/models/components/platformchatstreameventserversentevent.ts +69 -0
- package/src/models/components/platformchatstreamoutputtextdelta.ts +55 -0
- package/src/models/components/platformchatstreamoutputtextdeltaserversentevent.ts +55 -0
- package/src/models/components/platformchatstreamoutputtextdone.ts +55 -0
- package/src/models/components/platformchatstreamoutputtextdoneserversentevent.ts +55 -0
- package/src/models/components/platformchatstreamprogress.ts +59 -0
- package/src/models/components/platformchatstreamprogressserversentevent.ts +54 -0
- package/src/models/components/platformchatstreamresponsecompleted.ts +59 -0
- package/src/models/components/platformchatstreamresponsecompletedserversentevent.ts +55 -0
- package/src/models/components/platformchatstreamresponsecreated.ts +53 -0
- package/src/models/components/platformchatstreamresponsecreatedserversentevent.ts +55 -0
- package/src/models/components/platformchatstreamresponsefailed.ts +59 -0
- package/src/models/components/platformchatstreamresponsefailedserversentevent.ts +55 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/platformchatcreate.ts +75 -17
- package/src/models/operations/platformchatcreatestream.ts +96 -0
- package/src/react-query/chatCreate.ts +6 -8
- package/src/react-query/chatCreateStream.ts +115 -0
- package/src/react-query/index.ts +1 -0
- package/src/sdk/chat.ts +24 -7
- package/dist/commonjs/models/components/platformchatcreaterequest.d.ts +0 -50
- package/dist/commonjs/models/components/platformchatcreaterequest.d.ts.map +0 -1
- package/dist/commonjs/models/components/platformchatcreaterequest.js.map +0 -1
- package/dist/esm/models/components/platformchatcreaterequest.d.ts +0 -50
- package/dist/esm/models/components/platformchatcreaterequest.d.ts.map +0 -1
- package/dist/esm/models/components/platformchatcreaterequest.js +0 -25
- package/dist/esm/models/components/platformchatcreaterequest.js.map +0 -1
- package/src/models/components/platformchatcreaterequest.ts +0 -90
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: c836031cea7d
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { PlatformChatStreamResponseCompleted$inboundSchema, } from "./platformchatstreamresponsecompleted.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const PlatformChatStreamResponseCompletedServerSentEvent$inboundSchema = z.object({
|
|
10
|
+
id: z.string().optional(),
|
|
11
|
+
event: z.literal("RESPONSE_COMPLETED"),
|
|
12
|
+
data: z.unknown().transform((v, ctx) => {
|
|
13
|
+
if (typeof v !== "string")
|
|
14
|
+
return v;
|
|
15
|
+
try {
|
|
16
|
+
return JSON.parse(v);
|
|
17
|
+
}
|
|
18
|
+
catch (err) {
|
|
19
|
+
ctx.addIssue({ code: "custom", message: `malformed json: ${err}` });
|
|
20
|
+
return z.NEVER;
|
|
21
|
+
}
|
|
22
|
+
}).pipe(PlatformChatStreamResponseCompleted$inboundSchema),
|
|
23
|
+
});
|
|
24
|
+
export function platformChatStreamResponseCompletedServerSentEventFromJSON(jsonString) {
|
|
25
|
+
return safeParse(jsonString, (x) => PlatformChatStreamResponseCompletedServerSentEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PlatformChatStreamResponseCompletedServerSentEvent' from JSON`);
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=platformchatstreamresponsecompletedserversentevent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformchatstreamresponsecompletedserversentevent.js","sourceRoot":"","sources":["../../../../src/models/components/platformchatstreamresponsecompletedserversentevent.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,iDAAiD,GAClD,MAAM,0CAA0C,CAAC;AAQlD,gBAAgB;AAChB,MAAM,CAAC,MAAM,gEAAgE,GAKvE,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC;IACtC,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE;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,CAAC,iDAAiD,CAAC;CAC3D,CAAC,CAAC;AAEL,MAAM,UAAU,0DAA0D,CACxE,UAAkB;IAKlB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,gEAAgE,CAAC,KAAK,CACpE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CACd,EACH,gFAAgF,CACjF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
export declare const PlatformChatStreamResponseCreatedType: {
|
|
6
|
+
readonly ResponseCreated: "RESPONSE_CREATED";
|
|
7
|
+
};
|
|
8
|
+
export type PlatformChatStreamResponseCreatedType = ClosedEnum<typeof PlatformChatStreamResponseCreatedType>;
|
|
9
|
+
export type PlatformChatStreamResponseCreated = {
|
|
10
|
+
type: PlatformChatStreamResponseCreatedType;
|
|
11
|
+
/**
|
|
12
|
+
* Platform-owned, non-persisted response envelope identifier in `resp_<uuid>` form. The same identifier is used for every event in one streamed response.
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
*/
|
|
16
|
+
response_id: string;
|
|
17
|
+
};
|
|
18
|
+
/** @internal */
|
|
19
|
+
export declare const PlatformChatStreamResponseCreatedType$inboundSchema: z.ZodNativeEnum<typeof PlatformChatStreamResponseCreatedType>;
|
|
20
|
+
/** @internal */
|
|
21
|
+
export declare const PlatformChatStreamResponseCreated$inboundSchema: z.ZodType<PlatformChatStreamResponseCreated, z.ZodTypeDef, unknown>;
|
|
22
|
+
export declare function platformChatStreamResponseCreatedFromJSON(jsonString: string): SafeParseResult<PlatformChatStreamResponseCreated, SDKValidationError>;
|
|
23
|
+
//# sourceMappingURL=platformchatstreamresponsecreated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformchatstreamresponsecreated.d.ts","sourceRoot":"","sources":["../../../../src/models/components/platformchatstreamresponsecreated.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,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,eAAO,MAAM,qCAAqC;;CAExC,CAAC;AACX,MAAM,MAAM,qCAAqC,GAAG,UAAU,CAC5D,OAAO,qCAAqC,CAC7C,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAAG;IAC9C,IAAI,EAAE,qCAAqC,CAAC;IAC5C;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mDAAmD,EAC9D,CAAC,CAAC,aAAa,CAAC,OAAO,qCAAqC,CAE3D,CAAC;AAEJ,gBAAgB;AAChB,eAAO,MAAM,+CAA+C,EAAE,CAAC,CAAC,OAAO,CACrE,iCAAiC,EACjC,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,wBAAgB,yCAAyC,CACvD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,iCAAiC,EAAE,kBAAkB,CAAC,CAMxE"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: e696c4aff75f
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
export const PlatformChatStreamResponseCreatedType = {
|
|
8
|
+
ResponseCreated: "RESPONSE_CREATED",
|
|
9
|
+
};
|
|
10
|
+
/** @internal */
|
|
11
|
+
export const PlatformChatStreamResponseCreatedType$inboundSchema = z.nativeEnum(PlatformChatStreamResponseCreatedType);
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const PlatformChatStreamResponseCreated$inboundSchema = z.object({
|
|
14
|
+
type: PlatformChatStreamResponseCreatedType$inboundSchema,
|
|
15
|
+
response_id: z.string(),
|
|
16
|
+
});
|
|
17
|
+
export function platformChatStreamResponseCreatedFromJSON(jsonString) {
|
|
18
|
+
return safeParse(jsonString, (x) => PlatformChatStreamResponseCreated$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PlatformChatStreamResponseCreated' from JSON`);
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=platformchatstreamresponsecreated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformchatstreamresponsecreated.js","sourceRoot":"","sources":["../../../../src/models/components/platformchatstreamresponsecreated.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAKjD,MAAM,CAAC,MAAM,qCAAqC,GAAG;IACnD,eAAe,EAAE,kBAAkB;CAC3B,CAAC;AAeX,gBAAgB;AAChB,MAAM,CAAC,MAAM,mDAAmD,GACE,CAAC,CAAC,UAAU,CAC1E,qCAAqC,CACtC,CAAC;AAEJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,+CAA+C,GAIxD,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,mDAAmD;IACzD,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAC;AAEH,MAAM,UAAU,yCAAyC,CACvD,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,+CAA+C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC3E,+DAA+D,CAChE,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { PlatformChatStreamResponseCreated } from "./platformchatstreamresponsecreated.js";
|
|
5
|
+
export type PlatformChatStreamResponseCreatedServerSentEvent = {
|
|
6
|
+
id?: string | undefined;
|
|
7
|
+
event: "RESPONSE_CREATED";
|
|
8
|
+
data: PlatformChatStreamResponseCreated;
|
|
9
|
+
};
|
|
10
|
+
/** @internal */
|
|
11
|
+
export declare const PlatformChatStreamResponseCreatedServerSentEvent$inboundSchema: z.ZodType<PlatformChatStreamResponseCreatedServerSentEvent, z.ZodTypeDef, unknown>;
|
|
12
|
+
export declare function platformChatStreamResponseCreatedServerSentEventFromJSON(jsonString: string): SafeParseResult<PlatformChatStreamResponseCreatedServerSentEvent, SDKValidationError>;
|
|
13
|
+
//# sourceMappingURL=platformchatstreamresponsecreatedserversentevent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformchatstreamresponsecreatedserversentevent.d.ts","sourceRoot":"","sources":["../../../../src/models/components/platformchatstreamresponsecreatedserversentevent.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,iCAAiC,EAElC,MAAM,wCAAwC,CAAC;AAEhD,MAAM,MAAM,gDAAgD,GAAG;IAC7D,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,KAAK,EAAE,kBAAkB,CAAC;IAC1B,IAAI,EAAE,iCAAiC,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8DAA8D,EACzE,CAAC,CAAC,OAAO,CACP,gDAAgD,EAChD,CAAC,CAAC,UAAU,EACZ,OAAO,CAaP,CAAC;AAEL,wBAAgB,wDAAwD,CACtE,UAAU,EAAE,MAAM,GACjB,eAAe,CAChB,gDAAgD,EAChD,kBAAkB,CACnB,CASA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: eff9abd76433
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { PlatformChatStreamResponseCreated$inboundSchema, } from "./platformchatstreamresponsecreated.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const PlatformChatStreamResponseCreatedServerSentEvent$inboundSchema = z.object({
|
|
10
|
+
id: z.string().optional(),
|
|
11
|
+
event: z.literal("RESPONSE_CREATED"),
|
|
12
|
+
data: z.unknown().transform((v, ctx) => {
|
|
13
|
+
if (typeof v !== "string")
|
|
14
|
+
return v;
|
|
15
|
+
try {
|
|
16
|
+
return JSON.parse(v);
|
|
17
|
+
}
|
|
18
|
+
catch (err) {
|
|
19
|
+
ctx.addIssue({ code: "custom", message: `malformed json: ${err}` });
|
|
20
|
+
return z.NEVER;
|
|
21
|
+
}
|
|
22
|
+
}).pipe(PlatformChatStreamResponseCreated$inboundSchema),
|
|
23
|
+
});
|
|
24
|
+
export function platformChatStreamResponseCreatedServerSentEventFromJSON(jsonString) {
|
|
25
|
+
return safeParse(jsonString, (x) => PlatformChatStreamResponseCreatedServerSentEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PlatformChatStreamResponseCreatedServerSentEvent' from JSON`);
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=platformchatstreamresponsecreatedserversentevent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformchatstreamresponsecreatedserversentevent.js","sourceRoot":"","sources":["../../../../src/models/components/platformchatstreamresponsecreatedserversentevent.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,+CAA+C,GAChD,MAAM,wCAAwC,CAAC;AAQhD,gBAAgB;AAChB,MAAM,CAAC,MAAM,8DAA8D,GAKrE,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;IACpC,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE;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,CAAC,+CAA+C,CAAC;CACzD,CAAC,CAAC;AAEL,MAAM,UAAU,wDAAwD,CACtE,UAAkB;IAKlB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,8DAA8D,CAAC,KAAK,CAClE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CACd,EACH,8EAA8E,CAC/E,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
import { PlatformChatFailedResponse } from "./platformchatfailedresponse.js";
|
|
6
|
+
export declare const PlatformChatStreamResponseFailedType: {
|
|
7
|
+
readonly ResponseFailed: "RESPONSE_FAILED";
|
|
8
|
+
};
|
|
9
|
+
export type PlatformChatStreamResponseFailedType = ClosedEnum<typeof PlatformChatStreamResponseFailedType>;
|
|
10
|
+
export type PlatformChatStreamResponseFailed = {
|
|
11
|
+
type: PlatformChatStreamResponseFailedType;
|
|
12
|
+
/**
|
|
13
|
+
* Platform-owned, non-persisted response envelope identifier in `resp_<uuid>` form. The same identifier is used for every event in one streamed response.
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
*/
|
|
17
|
+
response_id: string;
|
|
18
|
+
response: PlatformChatFailedResponse;
|
|
19
|
+
};
|
|
20
|
+
/** @internal */
|
|
21
|
+
export declare const PlatformChatStreamResponseFailedType$inboundSchema: z.ZodNativeEnum<typeof PlatformChatStreamResponseFailedType>;
|
|
22
|
+
/** @internal */
|
|
23
|
+
export declare const PlatformChatStreamResponseFailed$inboundSchema: z.ZodType<PlatformChatStreamResponseFailed, z.ZodTypeDef, unknown>;
|
|
24
|
+
export declare function platformChatStreamResponseFailedFromJSON(jsonString: string): SafeParseResult<PlatformChatStreamResponseFailed, SDKValidationError>;
|
|
25
|
+
//# sourceMappingURL=platformchatstreamresponsefailed.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformchatstreamresponsefailed.d.ts","sourceRoot":"","sources":["../../../../src/models/components/platformchatstreamresponsefailed.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,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;AACrE,OAAO,EACL,0BAA0B,EAE3B,MAAM,iCAAiC,CAAC;AAEzC,eAAO,MAAM,oCAAoC;;CAEvC,CAAC;AACX,MAAM,MAAM,oCAAoC,GAAG,UAAU,CAC3D,OAAO,oCAAoC,CAC5C,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAAG;IAC7C,IAAI,EAAE,oCAAoC,CAAC;IAC3C;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,0BAA0B,CAAC;CACtC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kDAAkD,EAC7D,CAAC,CAAC,aAAa,CAAC,OAAO,oCAAoC,CAE1D,CAAC;AAEJ,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,OAAO,CACpE,gCAAgC,EAChC,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,wBAAgB,wCAAwC,CACtD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gCAAgC,EAAE,kBAAkB,CAAC,CAMvE"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 710179349337
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { PlatformChatFailedResponse$inboundSchema, } from "./platformchatfailedresponse.js";
|
|
8
|
+
export const PlatformChatStreamResponseFailedType = {
|
|
9
|
+
ResponseFailed: "RESPONSE_FAILED",
|
|
10
|
+
};
|
|
11
|
+
/** @internal */
|
|
12
|
+
export const PlatformChatStreamResponseFailedType$inboundSchema = z.nativeEnum(PlatformChatStreamResponseFailedType);
|
|
13
|
+
/** @internal */
|
|
14
|
+
export const PlatformChatStreamResponseFailed$inboundSchema = z.object({
|
|
15
|
+
type: PlatformChatStreamResponseFailedType$inboundSchema,
|
|
16
|
+
response_id: z.string(),
|
|
17
|
+
response: PlatformChatFailedResponse$inboundSchema,
|
|
18
|
+
});
|
|
19
|
+
export function platformChatStreamResponseFailedFromJSON(jsonString) {
|
|
20
|
+
return safeParse(jsonString, (x) => PlatformChatStreamResponseFailed$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PlatformChatStreamResponseFailed' from JSON`);
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=platformchatstreamresponsefailed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformchatstreamresponsefailed.js","sourceRoot":"","sources":["../../../../src/models/components/platformchatstreamresponsefailed.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAIjD,OAAO,EAEL,wCAAwC,GACzC,MAAM,iCAAiC,CAAC;AAEzC,MAAM,CAAC,MAAM,oCAAoC,GAAG;IAClD,cAAc,EAAE,iBAAiB;CACzB,CAAC;AAgBX,gBAAgB;AAChB,MAAM,CAAC,MAAM,kDAAkD,GACE,CAAC,CAAC,UAAU,CACzE,oCAAoC,CACrC,CAAC;AAEJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,8CAA8C,GAIvD,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,kDAAkD;IACxD,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,QAAQ,EAAE,wCAAwC;CACnD,CAAC,CAAC;AAEH,MAAM,UAAU,wCAAwC,CACtD,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8CAA8C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1E,8DAA8D,CAC/D,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { PlatformChatStreamResponseFailed } from "./platformchatstreamresponsefailed.js";
|
|
5
|
+
export type PlatformChatStreamResponseFailedServerSentEvent = {
|
|
6
|
+
id?: string | undefined;
|
|
7
|
+
event: "RESPONSE_FAILED";
|
|
8
|
+
data: PlatformChatStreamResponseFailed;
|
|
9
|
+
};
|
|
10
|
+
/** @internal */
|
|
11
|
+
export declare const PlatformChatStreamResponseFailedServerSentEvent$inboundSchema: z.ZodType<PlatformChatStreamResponseFailedServerSentEvent, z.ZodTypeDef, unknown>;
|
|
12
|
+
export declare function platformChatStreamResponseFailedServerSentEventFromJSON(jsonString: string): SafeParseResult<PlatformChatStreamResponseFailedServerSentEvent, SDKValidationError>;
|
|
13
|
+
//# sourceMappingURL=platformchatstreamresponsefailedserversentevent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformchatstreamresponsefailedserversentevent.d.ts","sourceRoot":"","sources":["../../../../src/models/components/platformchatstreamresponsefailedserversentevent.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,gCAAgC,EAEjC,MAAM,uCAAuC,CAAC;AAE/C,MAAM,MAAM,+CAA+C,GAAG;IAC5D,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,KAAK,EAAE,iBAAiB,CAAC;IACzB,IAAI,EAAE,gCAAgC,CAAC;CACxC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6DAA6D,EACxE,CAAC,CAAC,OAAO,CACP,+CAA+C,EAC/C,CAAC,CAAC,UAAU,EACZ,OAAO,CAaP,CAAC;AAEL,wBAAgB,uDAAuD,CACrE,UAAU,EAAE,MAAM,GACjB,eAAe,CAChB,+CAA+C,EAC/C,kBAAkB,CACnB,CASA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: bd824a2d14c5
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { PlatformChatStreamResponseFailed$inboundSchema, } from "./platformchatstreamresponsefailed.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const PlatformChatStreamResponseFailedServerSentEvent$inboundSchema = z.object({
|
|
10
|
+
id: z.string().optional(),
|
|
11
|
+
event: z.literal("RESPONSE_FAILED"),
|
|
12
|
+
data: z.unknown().transform((v, ctx) => {
|
|
13
|
+
if (typeof v !== "string")
|
|
14
|
+
return v;
|
|
15
|
+
try {
|
|
16
|
+
return JSON.parse(v);
|
|
17
|
+
}
|
|
18
|
+
catch (err) {
|
|
19
|
+
ctx.addIssue({ code: "custom", message: `malformed json: ${err}` });
|
|
20
|
+
return z.NEVER;
|
|
21
|
+
}
|
|
22
|
+
}).pipe(PlatformChatStreamResponseFailed$inboundSchema),
|
|
23
|
+
});
|
|
24
|
+
export function platformChatStreamResponseFailedServerSentEventFromJSON(jsonString) {
|
|
25
|
+
return safeParse(jsonString, (x) => PlatformChatStreamResponseFailedServerSentEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PlatformChatStreamResponseFailedServerSentEvent' from JSON`);
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=platformchatstreamresponsefailedserversentevent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformchatstreamresponsefailedserversentevent.js","sourceRoot":"","sources":["../../../../src/models/components/platformchatstreamresponsefailedserversentevent.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,8CAA8C,GAC/C,MAAM,uCAAuC,CAAC;AAQ/C,gBAAgB;AAChB,MAAM,CAAC,MAAM,6DAA6D,GAKpE,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC;IACnC,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE;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,CAAC,8CAA8C,CAAC;CACxD,CAAC,CAAC;AAEL,MAAM,UAAU,uDAAuD,CACrE,UAAkB;IAKlB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,6DAA6D,CAAC,KAAK,CACjE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CACd,EACH,6EAA6E,CAC9E,CAAC;AACJ,CAAC"}
|
|
@@ -73,6 +73,7 @@ export * from "./platformagentscreaterun.js";
|
|
|
73
73
|
export * from "./platformagentsget.js";
|
|
74
74
|
export * from "./platformagentsgetschemas.js";
|
|
75
75
|
export * from "./platformchatcreate.js";
|
|
76
|
+
export * from "./platformchatcreatestream.js";
|
|
76
77
|
export * from "./platformsearchfilters.js";
|
|
77
78
|
export * from "./platformskillscreateversion.js";
|
|
78
79
|
export * from "./platformskillsdelete.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/index.ts"],"names":[],"mappings":"AAKA,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cA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yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yCAAyC,CAAC;AACxD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,iCAAiC,CAAC;AAChD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,kDAAkD,CAAC;AACjE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,0CAA0C,CAAC;AACzD,cAAc,wCAAwC,CAAC;AACvD,cAAc,wDAAwD,CAAC;AACvE,cAAc,mDAAmD,CAAC;AAClE,cAAc,0DAA0D,CAAC;AACzE,cAAc,sBAAsB,CAAC;AACrC,cAAc,kCAAkC,CAAC;AACjD,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,yBAAyB,CAAC;AACxC,cAAc,4CAA4C,CAAC;AAC3D,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC"}
|
|
@@ -77,6 +77,7 @@ export * from "./platformagentscreaterun.js";
|
|
|
77
77
|
export * from "./platformagentsget.js";
|
|
78
78
|
export * from "./platformagentsgetschemas.js";
|
|
79
79
|
export * from "./platformchatcreate.js";
|
|
80
|
+
export * from "./platformchatcreatestream.js";
|
|
80
81
|
export * from "./platformsearchfilters.js";
|
|
81
82
|
export * from "./platformskillscreateversion.js";
|
|
82
83
|
export * from "./platformskillsdelete.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/operations/index.ts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AA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,kDAAkD,CAAC;AACjE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,0CAA0C,CAAC;AACzD,cAAc,wCAAwC,CAAC;AACvD,cAAc,wDAAwD,CAAC;AACvE,cAAc,mDAAmD,CAAC;AAClE,cAAc,0DAA0D,CAAC;AACzE,cAAc,sBAAsB,CAAC;AACrC,cAAc,kCAAkC,CAAC;AACjD,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,yBAAyB,CAAC;AACxC,cAAc,4CAA4C,CAAC;AAC3D,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/operations/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAA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AAC;AAC3D,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC"}
|
|
@@ -1,9 +1,45 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
2
|
import * as components from "../components/index.js";
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Either a plain string (single user turn) or a chronological array of `USER`/`ASSISTANT` messages. The final array message must be `USER`.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
*/
|
|
8
|
+
export type PlatformChatCreateInput = string | Array<components.PlatformChatInputMessage>;
|
|
9
|
+
export type PlatformChatCreateRequest = {
|
|
10
|
+
/**
|
|
11
|
+
* Either a plain string (single user turn) or a chronological array of `USER`/`ASSISTANT` messages. The final array message must be `USER`.
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
*/
|
|
15
|
+
input: string | Array<components.PlatformChatInputMessage>;
|
|
16
|
+
stream?: false | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* When true (default), persist the interaction and return a `conversation_id`. When false, run ephemerally with no persistence.
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
*/
|
|
22
|
+
store?: boolean | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Continue an existing stored conversation. Incompatible with message-array `input` and with `store: false`.
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
*/
|
|
28
|
+
conversation_id?: string | undefined;
|
|
29
|
+
};
|
|
6
30
|
/** @internal */
|
|
7
|
-
export
|
|
8
|
-
|
|
31
|
+
export type PlatformChatCreateInput$Outbound = string | Array<components.PlatformChatInputMessage$Outbound>;
|
|
32
|
+
/** @internal */
|
|
33
|
+
export declare const PlatformChatCreateInput$outboundSchema: z.ZodType<PlatformChatCreateInput$Outbound, z.ZodTypeDef, PlatformChatCreateInput>;
|
|
34
|
+
export declare function platformChatCreateInputToJSON(platformChatCreateInput: PlatformChatCreateInput): string;
|
|
35
|
+
/** @internal */
|
|
36
|
+
export type PlatformChatCreateRequest$Outbound = {
|
|
37
|
+
input: string | Array<components.PlatformChatInputMessage$Outbound>;
|
|
38
|
+
stream: false;
|
|
39
|
+
store: boolean;
|
|
40
|
+
conversation_id?: string | undefined;
|
|
41
|
+
};
|
|
42
|
+
/** @internal */
|
|
43
|
+
export declare const PlatformChatCreateRequest$outboundSchema: z.ZodType<PlatformChatCreateRequest$Outbound, z.ZodTypeDef, PlatformChatCreateRequest>;
|
|
44
|
+
export declare function platformChatCreateRequestToJSON(platformChatCreateRequest: PlatformChatCreateRequest): string;
|
|
9
45
|
//# sourceMappingURL=platformchatcreate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platformchatcreate.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/platformchatcreate.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"platformchatcreate.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/platformchatcreate.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAErD;;;;GAIG;AACH,MAAM,MAAM,uBAAuB,GAC/B,MAAM,GACN,KAAK,CAAC,UAAU,CAAC,wBAAwB,CAAC,CAAC;AAE/C,MAAM,MAAM,yBAAyB,GAAG;IACtC;;;;OAIG;IACH,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,UAAU,CAAC,wBAAwB,CAAC,CAAC;IAC3D,MAAM,CAAC,EAAE,KAAK,GAAG,SAAS,CAAC;IAC3B;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5B;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACtC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,gCAAgC,GACxC,MAAM,GACN,KAAK,CAAC,UAAU,CAAC,iCAAiC,CAAC,CAAC;AAExD,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,gCAAgC,EAChC,CAAC,CAAC,UAAU,EACZ,uBAAuB,CAIvB,CAAC;AAEH,wBAAgB,6BAA6B,CAC3C,uBAAuB,EAAE,uBAAuB,GAC/C,MAAM,CAIR;AAED,gBAAgB;AAChB,MAAM,MAAM,kCAAkC,GAAG;IAC/C,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,UAAU,CAAC,iCAAiC,CAAC,CAAC;IACpE,MAAM,EAAE,KAAK,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACtC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,kCAAkC,EAClC,CAAC,CAAC,UAAU,EACZ,yBAAyB,CASzB,CAAC;AAEH,wBAAgB,+BAA+B,CAC7C,yBAAyB,EAAE,yBAAyB,GACnD,MAAM,CAIR"}
|
|
@@ -3,14 +3,26 @@
|
|
|
3
3
|
* @generated-id: 61f71943248c
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
6
|
import * as components from "../components/index.js";
|
|
8
7
|
/** @internal */
|
|
9
|
-
export const
|
|
10
|
-
components.PlatformChatCompletedResponse$inboundSchema,
|
|
8
|
+
export const PlatformChatCreateInput$outboundSchema = z.union([
|
|
11
9
|
z.string(),
|
|
10
|
+
z.array(components.PlatformChatInputMessage$outboundSchema),
|
|
12
11
|
]);
|
|
13
|
-
export function
|
|
14
|
-
return
|
|
12
|
+
export function platformChatCreateInputToJSON(platformChatCreateInput) {
|
|
13
|
+
return JSON.stringify(PlatformChatCreateInput$outboundSchema.parse(platformChatCreateInput));
|
|
14
|
+
}
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const PlatformChatCreateRequest$outboundSchema = z.object({
|
|
17
|
+
input: z.union([
|
|
18
|
+
z.string(),
|
|
19
|
+
z.array(components.PlatformChatInputMessage$outboundSchema),
|
|
20
|
+
]),
|
|
21
|
+
stream: z.literal(false).default(false),
|
|
22
|
+
store: z.boolean().default(true),
|
|
23
|
+
conversation_id: z.string().optional(),
|
|
24
|
+
});
|
|
25
|
+
export function platformChatCreateRequestToJSON(platformChatCreateRequest) {
|
|
26
|
+
return JSON.stringify(PlatformChatCreateRequest$outboundSchema.parse(platformChatCreateRequest));
|
|
15
27
|
}
|
|
16
28
|
//# sourceMappingURL=platformchatcreate.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platformchatcreate.js","sourceRoot":"","sources":["../../../../src/models/operations/platformchatcreate.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,
|
|
1
|
+
{"version":3,"file":"platformchatcreate.js","sourceRoot":"","sources":["../../../../src/models/operations/platformchatcreate.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAsCrD,gBAAgB;AAChB,MAAM,CAAC,MAAM,sCAAsC,GAI/C,CAAC,CAAC,KAAK,CAAC;IACV,CAAC,CAAC,MAAM,EAAE;IACV,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,uCAAuC,CAAC;CAC5D,CAAC,CAAC;AAEH,MAAM,UAAU,6BAA6B,CAC3C,uBAAgD;IAEhD,OAAO,IAAI,CAAC,SAAS,CACnB,sCAAsC,CAAC,KAAK,CAAC,uBAAuB,CAAC,CACtE,CAAC;AACJ,CAAC;AAUD,gBAAgB;AAChB,MAAM,CAAC,MAAM,wCAAwC,GAIjD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC;QACb,CAAC,CAAC,MAAM,EAAE;QACV,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,uCAAuC,CAAC;KAC5D,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,KAAc,CAAC;IAChD,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;IAChC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC;AAEH,MAAM,UAAU,+BAA+B,CAC7C,yBAAoD;IAEpD,OAAO,IAAI,CAAC,SAAS,CACnB,wCAAwC,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAC1E,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import * as components from "../components/index.js";
|
|
3
|
+
/**
|
|
4
|
+
* Either a plain string (single user turn) or a chronological array of `USER`/`ASSISTANT` messages. The final array message must be `USER`.
|
|
5
|
+
*
|
|
6
|
+
* @remarks
|
|
7
|
+
*/
|
|
8
|
+
export type PlatformChatCreateStreamInput = string | Array<components.PlatformChatInputMessage>;
|
|
9
|
+
export type PlatformChatCreateStreamRequest = {
|
|
10
|
+
/**
|
|
11
|
+
* Either a plain string (single user turn) or a chronological array of `USER`/`ASSISTANT` messages. The final array message must be `USER`.
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
*/
|
|
15
|
+
input: string | Array<components.PlatformChatInputMessage>;
|
|
16
|
+
stream?: true | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* When true (default), persist the interaction and return a `conversation_id`. When false, run ephemerally with no persistence.
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
*/
|
|
22
|
+
store?: boolean | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Continue an existing stored conversation. Incompatible with message-array `input` and with `store: false`.
|
|
25
|
+
*
|
|
26
|
+
* @remarks
|
|
27
|
+
*/
|
|
28
|
+
conversation_id?: string | undefined;
|
|
29
|
+
};
|
|
30
|
+
/** @internal */
|
|
31
|
+
export type PlatformChatCreateStreamInput$Outbound = string | Array<components.PlatformChatInputMessage$Outbound>;
|
|
32
|
+
/** @internal */
|
|
33
|
+
export declare const PlatformChatCreateStreamInput$outboundSchema: z.ZodType<PlatformChatCreateStreamInput$Outbound, z.ZodTypeDef, PlatformChatCreateStreamInput>;
|
|
34
|
+
export declare function platformChatCreateStreamInputToJSON(platformChatCreateStreamInput: PlatformChatCreateStreamInput): string;
|
|
35
|
+
/** @internal */
|
|
36
|
+
export type PlatformChatCreateStreamRequest$Outbound = {
|
|
37
|
+
input: string | Array<components.PlatformChatInputMessage$Outbound>;
|
|
38
|
+
stream: true;
|
|
39
|
+
store: boolean;
|
|
40
|
+
conversation_id?: string | undefined;
|
|
41
|
+
};
|
|
42
|
+
/** @internal */
|
|
43
|
+
export declare const PlatformChatCreateStreamRequest$outboundSchema: z.ZodType<PlatformChatCreateStreamRequest$Outbound, z.ZodTypeDef, PlatformChatCreateStreamRequest>;
|
|
44
|
+
export declare function platformChatCreateStreamRequestToJSON(platformChatCreateStreamRequest: PlatformChatCreateStreamRequest): string;
|
|
45
|
+
//# sourceMappingURL=platformchatcreatestream.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformchatcreatestream.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/platformchatcreatestream.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAErD;;;;GAIG;AACH,MAAM,MAAM,6BAA6B,GACrC,MAAM,GACN,KAAK,CAAC,UAAU,CAAC,wBAAwB,CAAC,CAAC;AAE/C,MAAM,MAAM,+BAA+B,GAAG;IAC5C;;;;OAIG;IACH,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,UAAU,CAAC,wBAAwB,CAAC,CAAC;IAC3D,MAAM,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC1B;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5B;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACtC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,sCAAsC,GAC9C,MAAM,GACN,KAAK,CAAC,UAAU,CAAC,iCAAiC,CAAC,CAAC;AAExD,gBAAgB;AAChB,eAAO,MAAM,4CAA4C,EAAE,CAAC,CAAC,OAAO,CAClE,sCAAsC,EACtC,CAAC,CAAC,UAAU,EACZ,6BAA6B,CAI7B,CAAC;AAEH,wBAAgB,mCAAmC,CACjD,6BAA6B,EAAE,6BAA6B,GAC3D,MAAM,CAMR;AAED,gBAAgB;AAChB,MAAM,MAAM,wCAAwC,GAAG;IACrD,KAAK,EAAE,MAAM,GAAG,KAAK,CAAC,UAAU,CAAC,iCAAiC,CAAC,CAAC;IACpE,MAAM,EAAE,IAAI,CAAC;IACb,KAAK,EAAE,OAAO,CAAC;IACf,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACtC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,OAAO,CACpE,wCAAwC,EACxC,CAAC,CAAC,UAAU,EACZ,+BAA+B,CAS/B,CAAC;AAEH,wBAAgB,qCAAqC,CACnD,+BAA+B,EAAE,+BAA+B,GAC/D,MAAM,CAMR"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 7b911127469b
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import * as components from "../components/index.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const PlatformChatCreateStreamInput$outboundSchema = z.union([
|
|
9
|
+
z.string(),
|
|
10
|
+
z.array(components.PlatformChatInputMessage$outboundSchema),
|
|
11
|
+
]);
|
|
12
|
+
export function platformChatCreateStreamInputToJSON(platformChatCreateStreamInput) {
|
|
13
|
+
return JSON.stringify(PlatformChatCreateStreamInput$outboundSchema.parse(platformChatCreateStreamInput));
|
|
14
|
+
}
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const PlatformChatCreateStreamRequest$outboundSchema = z.object({
|
|
17
|
+
input: z.union([
|
|
18
|
+
z.string(),
|
|
19
|
+
z.array(components.PlatformChatInputMessage$outboundSchema),
|
|
20
|
+
]),
|
|
21
|
+
stream: z.literal(true).default(true),
|
|
22
|
+
store: z.boolean().default(true),
|
|
23
|
+
conversation_id: z.string().optional(),
|
|
24
|
+
});
|
|
25
|
+
export function platformChatCreateStreamRequestToJSON(platformChatCreateStreamRequest) {
|
|
26
|
+
return JSON.stringify(PlatformChatCreateStreamRequest$outboundSchema.parse(platformChatCreateStreamRequest));
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=platformchatcreatestream.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformchatcreatestream.js","sourceRoot":"","sources":["../../../../src/models/operations/platformchatcreatestream.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAsCrD,gBAAgB;AAChB,MAAM,CAAC,MAAM,4CAA4C,GAIrD,CAAC,CAAC,KAAK,CAAC;IACV,CAAC,CAAC,MAAM,EAAE;IACV,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,uCAAuC,CAAC;CAC5D,CAAC,CAAC;AAEH,MAAM,UAAU,mCAAmC,CACjD,6BAA4D;IAE5D,OAAO,IAAI,CAAC,SAAS,CACnB,4CAA4C,CAAC,KAAK,CAChD,6BAA6B,CAC9B,CACF,CAAC;AACJ,CAAC;AAUD,gBAAgB;AAChB,MAAM,CAAC,MAAM,8CAA8C,GAIvD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC;QACb,CAAC,CAAC,MAAM,EAAE;QACV,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC,uCAAuC,CAAC;KAC5D,CAAC;IACF,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,IAAa,CAAC;IAC9C,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;IAChC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC;AAEH,MAAM,UAAU,qCAAqC,CACnD,+BAAgE;IAEhE,OAAO,IAAI,CAAC,SAAS,CACnB,8CAA8C,CAAC,KAAK,CAClD,+BAA+B,CAChC,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { MutationKey, UseMutationResult } from "@tanstack/react-query";
|
|
2
2
|
import { GleanCore } from "../core.js";
|
|
3
|
-
import { CreateAcceptEnum } from "../funcs/chatCreate.js";
|
|
4
3
|
import { RequestOptions } from "../lib/sdks.js";
|
|
5
4
|
import * as components from "../models/components/index.js";
|
|
6
5
|
import { GleanBaseError } from "../models/errors/gleanbaseerror.js";
|
|
@@ -10,26 +9,21 @@ import { ResponseValidationError } from "../models/errors/responsevalidationerro
|
|
|
10
9
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
11
10
|
import * as operations from "../models/operations/index.js";
|
|
12
11
|
import { MutationHookOptions } from "./_types.js";
|
|
13
|
-
export { CreateAcceptEnum } from "../funcs/chatCreate.js";
|
|
14
12
|
export type ChatCreateMutationVariables = {
|
|
15
|
-
request:
|
|
16
|
-
options?: RequestOptions
|
|
17
|
-
acceptHeaderOverride?: CreateAcceptEnum;
|
|
18
|
-
};
|
|
13
|
+
request: operations.PlatformChatCreateRequest;
|
|
14
|
+
options?: RequestOptions;
|
|
19
15
|
};
|
|
20
|
-
export type ChatCreateMutationData =
|
|
16
|
+
export type ChatCreateMutationData = components.PlatformChatCompletedResponse;
|
|
21
17
|
export type ChatCreateMutationError = errors.PlatformProblemDetailError | GleanBaseError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError;
|
|
22
18
|
/**
|
|
23
19
|
* Create a chat response
|
|
24
20
|
*
|
|
25
21
|
* @remarks
|
|
26
|
-
* Run an assistant turn.
|
|
22
|
+
* Run an assistant turn. The default response is JSON. HTTP clients request server-sent events by setting `stream` to true in the JSON body. An `Accept: text/event-stream` header does not replace `stream`.
|
|
27
23
|
*/
|
|
28
24
|
export declare function useChatCreateMutation(options?: MutationHookOptions<ChatCreateMutationData, ChatCreateMutationError, ChatCreateMutationVariables>): UseMutationResult<ChatCreateMutationData, ChatCreateMutationError, ChatCreateMutationVariables>;
|
|
29
25
|
export declare function mutationKeyChatCreate(): MutationKey;
|
|
30
|
-
export declare function buildChatCreateMutation(client$: GleanCore, hookOptions?: RequestOptions
|
|
31
|
-
acceptHeaderOverride?: CreateAcceptEnum;
|
|
32
|
-
}): {
|
|
26
|
+
export declare function buildChatCreateMutation(client$: GleanCore, hookOptions?: RequestOptions): {
|
|
33
27
|
mutationKey: MutationKey;
|
|
34
28
|
mutationFn: (variables: ChatCreateMutationVariables) => Promise<ChatCreateMutationData>;
|
|
35
29
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatCreate.d.ts","sourceRoot":"","sources":["../../../src/react-query/chatCreate.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,WAAW,EAEX,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;
|
|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AA2B,CAC5B,CAMA;AAED,wBAAgB,qBAAqB,IAAI,WAAW,CAEnD;AAED,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,SAAS,EAClB,WAAW,CAAC,EAAE,cAAc,GAC3B;IACD,WAAW,EAAE,WAAW,CAAC;IACzB,UAAU,EAAE,CACV,SAAS,EAAE,2BAA2B,KACnC,OAAO,CAAC,sBAAsB,CAAC,CAAC;CACtC,CA0BA"}
|
|
@@ -7,12 +7,11 @@ import { chatCreate } from "../funcs/chatCreate.js";
|
|
|
7
7
|
import { combineSignals } from "../lib/primitives.js";
|
|
8
8
|
import { unwrapAsync } from "../types/fp.js";
|
|
9
9
|
import { useGleanContext } from "./_context.js";
|
|
10
|
-
export { CreateAcceptEnum } from "../funcs/chatCreate.js";
|
|
11
10
|
/**
|
|
12
11
|
* Create a chat response
|
|
13
12
|
*
|
|
14
13
|
* @remarks
|
|
15
|
-
* Run an assistant turn.
|
|
14
|
+
* Run an assistant turn. The default response is JSON. HTTP clients request server-sent events by setting `stream` to true in the JSON body. An `Accept: text/event-stream` header does not replace `stream`.
|
|
16
15
|
*/
|
|
17
16
|
export function useChatCreateMutation(options) {
|
|
18
17
|
const client = useGleanContext();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatCreate.js","sourceRoot":"","sources":["../../../src/react-query/chatCreate.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAEL,WAAW,GAEZ,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"chatCreate.js","sourceRoot":"","sources":["../../../src/react-query/chatCreate.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAEL,WAAW,GAEZ,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAetD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAqBhD;;;;;GAKG;AACH,MAAM,UAAU,qBAAqB,CACnC,OAIC;IAMD,MAAM,MAAM,GAAG,eAAe,EAAE,CAAC;IACjC,OAAO,WAAW,CAAC;QACjB,GAAG,uBAAuB,CAAC,MAAM,EAAE,OAAO,CAAC;QAC3C,GAAG,OAAO;KACX,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,qBAAqB;IACnC,OAAO,CAAC,uBAAuB,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;AACrD,CAAC;AAED,MAAM,UAAU,uBAAuB,CACrC,OAAkB,EAClB,WAA4B;IAO5B,OAAO;QACL,WAAW,EAAE,qBAAqB,EAAE;QACpC,UAAU,EAAE,SAAS,oBAAoB,CAAC,EACxC,OAAO,EACP,OAAO,GACR;YACC,MAAM,aAAa,GAAG;gBACpB,GAAG,WAAW;gBACd,GAAG,OAAO;gBACV,YAAY,EAAE;oBACZ,GAAG,WAAW,EAAE,YAAY;oBAC5B,GAAG,OAAO,EAAE,YAAY;oBACxB,MAAM,EAAE,cAAc,CACpB,WAAW,EAAE,YAAY,EAAE,MAAM,EACjC,OAAO,EAAE,YAAY,EAAE,MAAM,CAC9B;iBACF;aACF,CAAC;YACF,OAAO,WAAW,CAAC,UAAU,CAC3B,OAAO,EACP,OAAO,EACP,aAAa,CACd,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { MutationKey, UseMutationResult } from "@tanstack/react-query";
|
|
2
|
+
import { GleanCore } from "../core.js";
|
|
3
|
+
import { EventStream } from "../lib/event-streams.js";
|
|
4
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
5
|
+
import * as components from "../models/components/index.js";
|
|
6
|
+
import { GleanBaseError } from "../models/errors/gleanbaseerror.js";
|
|
7
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
8
|
+
import * as errors from "../models/errors/index.js";
|
|
9
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
10
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
11
|
+
import * as operations from "../models/operations/index.js";
|
|
12
|
+
import { MutationHookOptions } from "./_types.js";
|
|
13
|
+
export type ChatCreateStreamMutationVariables = {
|
|
14
|
+
request: operations.PlatformChatCreateStreamRequest;
|
|
15
|
+
options?: RequestOptions;
|
|
16
|
+
};
|
|
17
|
+
export type ChatCreateStreamMutationData = EventStream<components.PlatformChatStreamEventServerSentEvent>;
|
|
18
|
+
export type ChatCreateStreamMutationError = errors.PlatformProblemDetailError | GleanBaseError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError;
|
|
19
|
+
/**
|
|
20
|
+
* SDK-only logical operation. HTTP clients must call the base path; the URL fragment is not sent. Create a chat response
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* SDK-only logical operation. HTTP clients must call the base path; the URL fragment is not sent. Run an assistant turn. The default response is JSON. HTTP clients request server-sent events by setting `stream` to true in the JSON body. An `Accept: text/event-stream` header does not replace `stream`.
|
|
24
|
+
*/
|
|
25
|
+
export declare function useChatCreateStreamMutation(options?: MutationHookOptions<ChatCreateStreamMutationData, ChatCreateStreamMutationError, ChatCreateStreamMutationVariables>): UseMutationResult<ChatCreateStreamMutationData, ChatCreateStreamMutationError, ChatCreateStreamMutationVariables>;
|
|
26
|
+
export declare function mutationKeyChatCreateStream(): MutationKey;
|
|
27
|
+
export declare function buildChatCreateStreamMutation(client$: GleanCore, hookOptions?: RequestOptions): {
|
|
28
|
+
mutationKey: MutationKey;
|
|
29
|
+
mutationFn: (variables: ChatCreateStreamMutationVariables) => Promise<ChatCreateStreamMutationData>;
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=chatCreateStream.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chatCreateStream.d.ts","sourceRoot":"","sources":["../../../src/react-query/chatCreateStream.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,WAAW,EAEX,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,MAAM,iCAAiC,GAAG;IAC9C,OAAO,EAAE,UAAU,CAAC,+BAA+B,CAAC;IACpD,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,WAAW,CACpD,UAAU,CAAC,sCAAsC,CAClD,CAAC;AAEF,MAAM,MAAM,6BAA6B,GACrC,MAAM,CAAC,0BAA0B,GACjC,cAAc,GACd,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CAAC;AAEvB;;;;;GAKG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,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