@gleanwork/api-client 0.19.2 → 0.20.0
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__/messages.test.js +1 -1
- package/dist/commonjs/__tests__/summarize.test.js +4 -4
- package/dist/commonjs/__tests__/summarize.test.js.map +1 -1
- package/dist/commonjs/funcs/chatCreate.d.ts +1 -7
- package/dist/commonjs/funcs/chatCreate.d.ts.map +1 -1
- package/dist/commonjs/funcs/chatCreate.js +3 -12
- 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 +4 -10
- package/dist/commonjs/react-query/chatCreate.d.ts.map +1 -1
- package/dist/commonjs/react-query/chatCreate.js +0 -3
- 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 +9 -5
- package/dist/commonjs/sdk/chat.d.ts.map +1 -1
- package/dist/commonjs/sdk/chat.js +11 -3
- package/dist/commonjs/sdk/chat.js.map +1 -1
- package/dist/esm/__tests__/messages.test.js +1 -1
- package/dist/esm/__tests__/summarize.test.js +4 -4
- package/dist/esm/__tests__/summarize.test.js.map +1 -1
- package/dist/esm/funcs/chatCreate.d.ts +1 -7
- package/dist/esm/funcs/chatCreate.d.ts.map +1 -1
- package/dist/esm/funcs/chatCreate.js +3 -11
- 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 +4 -10
- package/dist/esm/react-query/chatCreate.d.ts.map +1 -1
- package/dist/esm/react-query/chatCreate.js +0 -1
- 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 +9 -5
- package/dist/esm/sdk/chat.d.ts.map +1 -1
- package/dist/esm/sdk/chat.js +10 -1
- package/dist/esm/sdk/chat.js.map +1 -1
- package/jsr.json +2 -1
- package/package.json +1 -1
- package/src/__tests__/messages.test.ts +1 -1
- package/src/__tests__/summarize.test.ts +4 -4
- package/src/funcs/chatCreate.ts +10 -19
- 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 +5 -7
- package/src/react-query/chatCreateStream.ts +115 -0
- package/src/react-query/index.ts +1 -0
- package/src/sdk/chat.ts +23 -6
- 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,44 @@
|
|
|
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 { PlatformChatOutputMessage } from "./platformchatoutputmessage.js";
|
|
6
|
+
import { PlatformChatResponseError } from "./platformchatresponseerror.js";
|
|
7
|
+
export declare const PlatformChatFailedResponseObject: {
|
|
8
|
+
readonly Response: "RESPONSE";
|
|
9
|
+
};
|
|
10
|
+
export type PlatformChatFailedResponseObject = ClosedEnum<typeof PlatformChatFailedResponseObject>;
|
|
11
|
+
export declare const PlatformChatFailedResponseStatus: {
|
|
12
|
+
readonly Failed: "FAILED";
|
|
13
|
+
};
|
|
14
|
+
export type PlatformChatFailedResponseStatus = ClosedEnum<typeof PlatformChatFailedResponseStatus>;
|
|
15
|
+
export type PlatformChatFailedResponse = {
|
|
16
|
+
/**
|
|
17
|
+
* Platform-owned, non-persisted response envelope identifier in `resp_<uuid>` form. The same identifier is used for every event in one streamed response.
|
|
18
|
+
*
|
|
19
|
+
* @remarks
|
|
20
|
+
*/
|
|
21
|
+
id: string;
|
|
22
|
+
object: PlatformChatFailedResponseObject;
|
|
23
|
+
/**
|
|
24
|
+
* RFC 3339 UTC timestamp when the response was created.
|
|
25
|
+
*/
|
|
26
|
+
created_at: Date;
|
|
27
|
+
status: PlatformChatFailedResponseStatus;
|
|
28
|
+
output: Array<PlatformChatOutputMessage>;
|
|
29
|
+
store: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Present when the interaction was persisted.
|
|
32
|
+
*/
|
|
33
|
+
conversation_id?: string | null | undefined;
|
|
34
|
+
request_id: string;
|
|
35
|
+
error: PlatformChatResponseError;
|
|
36
|
+
};
|
|
37
|
+
/** @internal */
|
|
38
|
+
export declare const PlatformChatFailedResponseObject$inboundSchema: z.ZodNativeEnum<typeof PlatformChatFailedResponseObject>;
|
|
39
|
+
/** @internal */
|
|
40
|
+
export declare const PlatformChatFailedResponseStatus$inboundSchema: z.ZodNativeEnum<typeof PlatformChatFailedResponseStatus>;
|
|
41
|
+
/** @internal */
|
|
42
|
+
export declare const PlatformChatFailedResponse$inboundSchema: z.ZodType<PlatformChatFailedResponse, z.ZodTypeDef, unknown>;
|
|
43
|
+
export declare function platformChatFailedResponseFromJSON(jsonString: string): SafeParseResult<PlatformChatFailedResponse, SDKValidationError>;
|
|
44
|
+
//# sourceMappingURL=platformchatfailedresponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformchatfailedresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/platformchatfailedresponse.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,yBAAyB,EAE1B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,yBAAyB,EAE1B,MAAM,gCAAgC,CAAC;AAExC,eAAO,MAAM,gCAAgC;;CAEnC,CAAC;AACX,MAAM,MAAM,gCAAgC,GAAG,UAAU,CACvD,OAAO,gCAAgC,CACxC,CAAC;AAEF,eAAO,MAAM,gCAAgC;;CAEnC,CAAC;AACX,MAAM,MAAM,gCAAgC,GAAG,UAAU,CACvD,OAAO,gCAAgC,CACxC,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,gCAAgC,CAAC;IACzC;;OAEG;IACH,UAAU,EAAE,IAAI,CAAC;IACjB,MAAM,EAAE,gCAAgC,CAAC;IACzC,MAAM,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC;IACzC,KAAK,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC5C,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,yBAAyB,CAAC;CAClC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,aAAa,CAC1E,OAAO,gCAAgC,CACS,CAAC;AAEnD,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,aAAa,CAC1E,OAAO,gCAAgC,CACS,CAAC;AAEnD,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,OAAO,CAWP,CAAC;AAEH,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,0BAA0B,EAAE,kBAAkB,CAAC,CAMjE"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: e6542153b492
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { PlatformChatOutputMessage$inboundSchema, } from "./platformchatoutputmessage.js";
|
|
8
|
+
import { PlatformChatResponseError$inboundSchema, } from "./platformchatresponseerror.js";
|
|
9
|
+
export const PlatformChatFailedResponseObject = {
|
|
10
|
+
Response: "RESPONSE",
|
|
11
|
+
};
|
|
12
|
+
export const PlatformChatFailedResponseStatus = {
|
|
13
|
+
Failed: "FAILED",
|
|
14
|
+
};
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const PlatformChatFailedResponseObject$inboundSchema = z.nativeEnum(PlatformChatFailedResponseObject);
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const PlatformChatFailedResponseStatus$inboundSchema = z.nativeEnum(PlatformChatFailedResponseStatus);
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const PlatformChatFailedResponse$inboundSchema = z.object({
|
|
21
|
+
id: z.string(),
|
|
22
|
+
object: PlatformChatFailedResponseObject$inboundSchema,
|
|
23
|
+
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
24
|
+
status: PlatformChatFailedResponseStatus$inboundSchema,
|
|
25
|
+
output: z.array(PlatformChatOutputMessage$inboundSchema),
|
|
26
|
+
store: z.boolean(),
|
|
27
|
+
conversation_id: z.nullable(z.string()).optional(),
|
|
28
|
+
request_id: z.string(),
|
|
29
|
+
error: PlatformChatResponseError$inboundSchema,
|
|
30
|
+
});
|
|
31
|
+
export function platformChatFailedResponseFromJSON(jsonString) {
|
|
32
|
+
return safeParse(jsonString, (x) => PlatformChatFailedResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PlatformChatFailedResponse' from JSON`);
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=platformchatfailedresponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformchatfailedresponse.js","sourceRoot":"","sources":["../../../../src/models/components/platformchatfailedresponse.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAIjD,OAAO,EAEL,uCAAuC,GACxC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAEL,uCAAuC,GACxC,MAAM,gCAAgC,CAAC;AAExC,MAAM,CAAC,MAAM,gCAAgC,GAAG;IAC9C,QAAQ,EAAE,UAAU;CACZ,CAAC;AAKX,MAAM,CAAC,MAAM,gCAAgC,GAAG;IAC9C,MAAM,EAAE,QAAQ;CACR,CAAC;AA4BX,gBAAgB;AAChB,MAAM,CAAC,MAAM,8CAA8C,GAEvD,CAAC,CAAC,UAAU,CAAC,gCAAgC,CAAC,CAAC;AAEnD,gBAAgB;AAChB,MAAM,CAAC,MAAM,8CAA8C,GAEvD,CAAC,CAAC,UAAU,CAAC,gCAAgC,CAAC,CAAC;AAEnD,gBAAgB;AAChB,MAAM,CAAC,MAAM,wCAAwC,GAIjD,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,MAAM,EAAE,8CAA8C;IACtD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;IAC7E,MAAM,EAAE,8CAA8C;IACtD,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,uCAAuC,CAAC;IACxD,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE;IAClB,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAClD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,KAAK,EAAE,uCAAuC;CAC/C,CAAC,CAAC;AAEH,MAAM,UAAU,kCAAkC,CAChD,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wCAAwC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpE,wDAAwD,CACzD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
export type PlatformChatResponseError = {
|
|
5
|
+
/**
|
|
6
|
+
* Open snake_case error code aligned with ProblemDetail codes when present. Clients must tolerate unknown values; the set of codes is not a closed enum. Limit failures use `spend_limit_exceeded` (billing spend limit) and `token_limit_exceeded` (model context/token limit).
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
*/
|
|
10
|
+
code?: string | null | undefined;
|
|
11
|
+
message: string;
|
|
12
|
+
};
|
|
13
|
+
/** @internal */
|
|
14
|
+
export declare const PlatformChatResponseError$inboundSchema: z.ZodType<PlatformChatResponseError, z.ZodTypeDef, unknown>;
|
|
15
|
+
export declare function platformChatResponseErrorFromJSON(jsonString: string): SafeParseResult<PlatformChatResponseError, SDKValidationError>;
|
|
16
|
+
//# sourceMappingURL=platformchatresponseerror.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformchatresponseerror.d.ts","sourceRoot":"","sources":["../../../../src/models/components/platformchatresponseerror.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;AAErE,MAAM,MAAM,yBAAyB,GAAG;IACtC;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,wBAAgB,iCAAiC,CAC/C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,yBAAyB,EAAE,kBAAkB,CAAC,CAMhE"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 40a78a177ff2
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export const PlatformChatResponseError$inboundSchema = z.object({
|
|
9
|
+
code: z.nullable(z.string()).optional(),
|
|
10
|
+
message: z.string(),
|
|
11
|
+
});
|
|
12
|
+
export function platformChatResponseErrorFromJSON(jsonString) {
|
|
13
|
+
return safeParse(jsonString, (x) => PlatformChatResponseError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PlatformChatResponseError' from JSON`);
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=platformchatresponseerror.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformchatresponseerror.js","sourceRoot":"","sources":["../../../../src/models/components/platformchatresponseerror.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAcjD,gBAAgB;AAChB,MAAM,CAAC,MAAM,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACvC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC;AAEH,MAAM,UAAU,iCAAiC,CAC/C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uCAAuC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACnE,uDAAuD,CACxD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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 { PlatformChatStreamOutputTextDeltaServerSentEvent } from "./platformchatstreamoutputtextdeltaserversentevent.js";
|
|
5
|
+
import { PlatformChatStreamOutputTextDoneServerSentEvent } from "./platformchatstreamoutputtextdoneserversentevent.js";
|
|
6
|
+
import { PlatformChatStreamProgressServerSentEvent } from "./platformchatstreamprogressserversentevent.js";
|
|
7
|
+
import { PlatformChatStreamResponseCompletedServerSentEvent } from "./platformchatstreamresponsecompletedserversentevent.js";
|
|
8
|
+
import { PlatformChatStreamResponseCreatedServerSentEvent } from "./platformchatstreamresponsecreatedserversentevent.js";
|
|
9
|
+
import { PlatformChatStreamResponseFailedServerSentEvent } from "./platformchatstreamresponsefailedserversentevent.js";
|
|
10
|
+
/**
|
|
11
|
+
* A typed server-sent event.
|
|
12
|
+
*/
|
|
13
|
+
export type PlatformChatStreamEventServerSentEvent = PlatformChatStreamResponseCreatedServerSentEvent | PlatformChatStreamProgressServerSentEvent | PlatformChatStreamOutputTextDeltaServerSentEvent | PlatformChatStreamOutputTextDoneServerSentEvent | PlatformChatStreamResponseCompletedServerSentEvent | PlatformChatStreamResponseFailedServerSentEvent;
|
|
14
|
+
/** @internal */
|
|
15
|
+
export declare const PlatformChatStreamEventServerSentEvent$inboundSchema: z.ZodType<PlatformChatStreamEventServerSentEvent, z.ZodTypeDef, unknown>;
|
|
16
|
+
export declare function platformChatStreamEventServerSentEventFromJSON(jsonString: string): SafeParseResult<PlatformChatStreamEventServerSentEvent, SDKValidationError>;
|
|
17
|
+
//# sourceMappingURL=platformchatstreameventserversentevent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformchatstreameventserversentevent.d.ts","sourceRoot":"","sources":["../../../../src/models/components/platformchatstreameventserversentevent.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,gDAAgD,EAEjD,MAAM,uDAAuD,CAAC;AAC/D,OAAO,EACL,+CAA+C,EAEhD,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EACL,yCAAyC,EAE1C,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,kDAAkD,EAEnD,MAAM,yDAAyD,CAAC;AACjE,OAAO,EACL,gDAAgD,EAEjD,MAAM,uDAAuD,CAAC;AAC/D,OAAO,EACL,+CAA+C,EAEhD,MAAM,sDAAsD,CAAC;AAE9D;;GAEG;AACH,MAAM,MAAM,sCAAsC,GAC9C,gDAAgD,GAChD,yCAAyC,GACzC,gDAAgD,GAChD,+CAA+C,GAC/C,kDAAkD,GAClD,+CAA+C,CAAC;AAEpD,gBAAgB;AAChB,eAAO,MAAM,oDAAoD,EAAE,CAAC,CAAC,OAAO,CAC1E,sCAAsC,EACtC,CAAC,CAAC,UAAU,EACZ,OAAO,CAQP,CAAC;AAEH,wBAAgB,8CAA8C,CAC5D,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,sCAAsC,EAAE,kBAAkB,CAAC,CAO7E"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 1a2743e83004
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { PlatformChatStreamOutputTextDeltaServerSentEvent$inboundSchema, } from "./platformchatstreamoutputtextdeltaserversentevent.js";
|
|
8
|
+
import { PlatformChatStreamOutputTextDoneServerSentEvent$inboundSchema, } from "./platformchatstreamoutputtextdoneserversentevent.js";
|
|
9
|
+
import { PlatformChatStreamProgressServerSentEvent$inboundSchema, } from "./platformchatstreamprogressserversentevent.js";
|
|
10
|
+
import { PlatformChatStreamResponseCompletedServerSentEvent$inboundSchema, } from "./platformchatstreamresponsecompletedserversentevent.js";
|
|
11
|
+
import { PlatformChatStreamResponseCreatedServerSentEvent$inboundSchema, } from "./platformchatstreamresponsecreatedserversentevent.js";
|
|
12
|
+
import { PlatformChatStreamResponseFailedServerSentEvent$inboundSchema, } from "./platformchatstreamresponsefailedserversentevent.js";
|
|
13
|
+
/** @internal */
|
|
14
|
+
export const PlatformChatStreamEventServerSentEvent$inboundSchema = z.union([
|
|
15
|
+
PlatformChatStreamResponseCreatedServerSentEvent$inboundSchema,
|
|
16
|
+
PlatformChatStreamProgressServerSentEvent$inboundSchema,
|
|
17
|
+
PlatformChatStreamOutputTextDeltaServerSentEvent$inboundSchema,
|
|
18
|
+
PlatformChatStreamOutputTextDoneServerSentEvent$inboundSchema,
|
|
19
|
+
PlatformChatStreamResponseCompletedServerSentEvent$inboundSchema,
|
|
20
|
+
PlatformChatStreamResponseFailedServerSentEvent$inboundSchema,
|
|
21
|
+
]);
|
|
22
|
+
export function platformChatStreamEventServerSentEventFromJSON(jsonString) {
|
|
23
|
+
return safeParse(jsonString, (x) => PlatformChatStreamEventServerSentEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PlatformChatStreamEventServerSentEvent' from JSON`);
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=platformchatstreameventserversentevent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformchatstreameventserversentevent.js","sourceRoot":"","sources":["../../../../src/models/components/platformchatstreameventserversentevent.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,8DAA8D,GAC/D,MAAM,uDAAuD,CAAC;AAC/D,OAAO,EAEL,6DAA6D,GAC9D,MAAM,sDAAsD,CAAC;AAC9D,OAAO,EAEL,uDAAuD,GACxD,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAEL,gEAAgE,GACjE,MAAM,yDAAyD,CAAC;AACjE,OAAO,EAEL,8DAA8D,GAC/D,MAAM,uDAAuD,CAAC;AAC/D,OAAO,EAEL,6DAA6D,GAC9D,MAAM,sDAAsD,CAAC;AAa9D,gBAAgB;AAChB,MAAM,CAAC,MAAM,oDAAoD,GAI7D,CAAC,CAAC,KAAK,CAAC;IACV,8DAA8D;IAC9D,uDAAuD;IACvD,8DAA8D;IAC9D,6DAA6D;IAC7D,gEAAgE;IAChE,6DAA6D;CAC9D,CAAC,CAAC;AAEH,MAAM,UAAU,8CAA8C,CAC5D,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,oDAAoD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC3E,oEAAoE,CACrE,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 PlatformChatStreamOutputTextDeltaType: {
|
|
6
|
+
readonly ResponseOutputTextDelta: "RESPONSE_OUTPUT_TEXT_DELTA";
|
|
7
|
+
};
|
|
8
|
+
export type PlatformChatStreamOutputTextDeltaType = ClosedEnum<typeof PlatformChatStreamOutputTextDeltaType>;
|
|
9
|
+
export type PlatformChatStreamOutputTextDelta = {
|
|
10
|
+
type: PlatformChatStreamOutputTextDeltaType;
|
|
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
|
+
delta: string;
|
|
18
|
+
};
|
|
19
|
+
/** @internal */
|
|
20
|
+
export declare const PlatformChatStreamOutputTextDeltaType$inboundSchema: z.ZodNativeEnum<typeof PlatformChatStreamOutputTextDeltaType>;
|
|
21
|
+
/** @internal */
|
|
22
|
+
export declare const PlatformChatStreamOutputTextDelta$inboundSchema: z.ZodType<PlatformChatStreamOutputTextDelta, z.ZodTypeDef, unknown>;
|
|
23
|
+
export declare function platformChatStreamOutputTextDeltaFromJSON(jsonString: string): SafeParseResult<PlatformChatStreamOutputTextDelta, SDKValidationError>;
|
|
24
|
+
//# sourceMappingURL=platformchatstreamoutputtextdelta.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformchatstreamoutputtextdelta.d.ts","sourceRoot":"","sources":["../../../../src/models/components/platformchatstreamoutputtextdelta.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;IACpB,KAAK,EAAE,MAAM,CAAC;CACf,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,CAKP,CAAC;AAEH,wBAAgB,yCAAyC,CACvD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,iCAAiC,EAAE,kBAAkB,CAAC,CAMxE"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: fc0843cf9086
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
export const PlatformChatStreamOutputTextDeltaType = {
|
|
8
|
+
ResponseOutputTextDelta: "RESPONSE_OUTPUT_TEXT_DELTA",
|
|
9
|
+
};
|
|
10
|
+
/** @internal */
|
|
11
|
+
export const PlatformChatStreamOutputTextDeltaType$inboundSchema = z.nativeEnum(PlatformChatStreamOutputTextDeltaType);
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const PlatformChatStreamOutputTextDelta$inboundSchema = z.object({
|
|
14
|
+
type: PlatformChatStreamOutputTextDeltaType$inboundSchema,
|
|
15
|
+
response_id: z.string(),
|
|
16
|
+
delta: z.string(),
|
|
17
|
+
});
|
|
18
|
+
export function platformChatStreamOutputTextDeltaFromJSON(jsonString) {
|
|
19
|
+
return safeParse(jsonString, (x) => PlatformChatStreamOutputTextDelta$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PlatformChatStreamOutputTextDelta' from JSON`);
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=platformchatstreamoutputtextdelta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformchatstreamoutputtextdelta.js","sourceRoot":"","sources":["../../../../src/models/components/platformchatstreamoutputtextdelta.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,uBAAuB,EAAE,4BAA4B;CAC7C,CAAC;AAgBX,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;IACvB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,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 { PlatformChatStreamOutputTextDelta } from "./platformchatstreamoutputtextdelta.js";
|
|
5
|
+
export type PlatformChatStreamOutputTextDeltaServerSentEvent = {
|
|
6
|
+
id?: string | undefined;
|
|
7
|
+
event: "RESPONSE_OUTPUT_TEXT_DELTA";
|
|
8
|
+
data: PlatformChatStreamOutputTextDelta;
|
|
9
|
+
};
|
|
10
|
+
/** @internal */
|
|
11
|
+
export declare const PlatformChatStreamOutputTextDeltaServerSentEvent$inboundSchema: z.ZodType<PlatformChatStreamOutputTextDeltaServerSentEvent, z.ZodTypeDef, unknown>;
|
|
12
|
+
export declare function platformChatStreamOutputTextDeltaServerSentEventFromJSON(jsonString: string): SafeParseResult<PlatformChatStreamOutputTextDeltaServerSentEvent, SDKValidationError>;
|
|
13
|
+
//# sourceMappingURL=platformchatstreamoutputtextdeltaserversentevent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformchatstreamoutputtextdeltaserversentevent.d.ts","sourceRoot":"","sources":["../../../../src/models/components/platformchatstreamoutputtextdeltaserversentevent.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,4BAA4B,CAAC;IACpC,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: bcd6daa85743
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { PlatformChatStreamOutputTextDelta$inboundSchema, } from "./platformchatstreamoutputtextdelta.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const PlatformChatStreamOutputTextDeltaServerSentEvent$inboundSchema = z.object({
|
|
10
|
+
id: z.string().optional(),
|
|
11
|
+
event: z.literal("RESPONSE_OUTPUT_TEXT_DELTA"),
|
|
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(PlatformChatStreamOutputTextDelta$inboundSchema),
|
|
23
|
+
});
|
|
24
|
+
export function platformChatStreamOutputTextDeltaServerSentEventFromJSON(jsonString) {
|
|
25
|
+
return safeParse(jsonString, (x) => PlatformChatStreamOutputTextDeltaServerSentEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PlatformChatStreamOutputTextDeltaServerSentEvent' from JSON`);
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=platformchatstreamoutputtextdeltaserversentevent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformchatstreamoutputtextdeltaserversentevent.js","sourceRoot":"","sources":["../../../../src/models/components/platformchatstreamoutputtextdeltaserversentevent.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,4BAA4B,CAAC;IAC9C,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,24 @@
|
|
|
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 PlatformChatStreamOutputTextDoneType: {
|
|
6
|
+
readonly ResponseOutputTextDone: "RESPONSE_OUTPUT_TEXT_DONE";
|
|
7
|
+
};
|
|
8
|
+
export type PlatformChatStreamOutputTextDoneType = ClosedEnum<typeof PlatformChatStreamOutputTextDoneType>;
|
|
9
|
+
export type PlatformChatStreamOutputTextDone = {
|
|
10
|
+
type: PlatformChatStreamOutputTextDoneType;
|
|
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
|
+
text: string;
|
|
18
|
+
};
|
|
19
|
+
/** @internal */
|
|
20
|
+
export declare const PlatformChatStreamOutputTextDoneType$inboundSchema: z.ZodNativeEnum<typeof PlatformChatStreamOutputTextDoneType>;
|
|
21
|
+
/** @internal */
|
|
22
|
+
export declare const PlatformChatStreamOutputTextDone$inboundSchema: z.ZodType<PlatformChatStreamOutputTextDone, z.ZodTypeDef, unknown>;
|
|
23
|
+
export declare function platformChatStreamOutputTextDoneFromJSON(jsonString: string): SafeParseResult<PlatformChatStreamOutputTextDone, SDKValidationError>;
|
|
24
|
+
//# sourceMappingURL=platformchatstreamoutputtextdone.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformchatstreamoutputtextdone.d.ts","sourceRoot":"","sources":["../../../../src/models/components/platformchatstreamoutputtextdone.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,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,IAAI,EAAE,MAAM,CAAC;CACd,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,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 3a3b1f5d0f7c
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
export const PlatformChatStreamOutputTextDoneType = {
|
|
8
|
+
ResponseOutputTextDone: "RESPONSE_OUTPUT_TEXT_DONE",
|
|
9
|
+
};
|
|
10
|
+
/** @internal */
|
|
11
|
+
export const PlatformChatStreamOutputTextDoneType$inboundSchema = z.nativeEnum(PlatformChatStreamOutputTextDoneType);
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const PlatformChatStreamOutputTextDone$inboundSchema = z.object({
|
|
14
|
+
type: PlatformChatStreamOutputTextDoneType$inboundSchema,
|
|
15
|
+
response_id: z.string(),
|
|
16
|
+
text: z.string(),
|
|
17
|
+
});
|
|
18
|
+
export function platformChatStreamOutputTextDoneFromJSON(jsonString) {
|
|
19
|
+
return safeParse(jsonString, (x) => PlatformChatStreamOutputTextDone$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PlatformChatStreamOutputTextDone' from JSON`);
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=platformchatstreamoutputtextdone.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformchatstreamoutputtextdone.js","sourceRoot":"","sources":["../../../../src/models/components/platformchatstreamoutputtextdone.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAKjD,MAAM,CAAC,MAAM,oCAAoC,GAAG;IAClD,sBAAsB,EAAE,2BAA2B;CAC3C,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,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,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 { PlatformChatStreamOutputTextDone } from "./platformchatstreamoutputtextdone.js";
|
|
5
|
+
export type PlatformChatStreamOutputTextDoneServerSentEvent = {
|
|
6
|
+
id?: string | undefined;
|
|
7
|
+
event: "RESPONSE_OUTPUT_TEXT_DONE";
|
|
8
|
+
data: PlatformChatStreamOutputTextDone;
|
|
9
|
+
};
|
|
10
|
+
/** @internal */
|
|
11
|
+
export declare const PlatformChatStreamOutputTextDoneServerSentEvent$inboundSchema: z.ZodType<PlatformChatStreamOutputTextDoneServerSentEvent, z.ZodTypeDef, unknown>;
|
|
12
|
+
export declare function platformChatStreamOutputTextDoneServerSentEventFromJSON(jsonString: string): SafeParseResult<PlatformChatStreamOutputTextDoneServerSentEvent, SDKValidationError>;
|
|
13
|
+
//# sourceMappingURL=platformchatstreamoutputtextdoneserversentevent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformchatstreamoutputtextdoneserversentevent.d.ts","sourceRoot":"","sources":["../../../../src/models/components/platformchatstreamoutputtextdoneserversentevent.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,2BAA2B,CAAC;IACnC,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: 030050bc1577
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { PlatformChatStreamOutputTextDone$inboundSchema, } from "./platformchatstreamoutputtextdone.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const PlatformChatStreamOutputTextDoneServerSentEvent$inboundSchema = z.object({
|
|
10
|
+
id: z.string().optional(),
|
|
11
|
+
event: z.literal("RESPONSE_OUTPUT_TEXT_DONE"),
|
|
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(PlatformChatStreamOutputTextDone$inboundSchema),
|
|
23
|
+
});
|
|
24
|
+
export function platformChatStreamOutputTextDoneServerSentEventFromJSON(jsonString) {
|
|
25
|
+
return safeParse(jsonString, (x) => PlatformChatStreamOutputTextDoneServerSentEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PlatformChatStreamOutputTextDoneServerSentEvent' from JSON`);
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=platformchatstreamoutputtextdoneserversentevent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformchatstreamoutputtextdoneserversentevent.js","sourceRoot":"","sources":["../../../../src/models/components/platformchatstreamoutputtextdoneserversentevent.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,2BAA2B,CAAC;IAC7C,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"}
|
|
@@ -0,0 +1,29 @@
|
|
|
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 PlatformChatStreamProgressType: {
|
|
6
|
+
readonly ResponseProgress: "RESPONSE_PROGRESS";
|
|
7
|
+
};
|
|
8
|
+
export type PlatformChatStreamProgressType = ClosedEnum<typeof PlatformChatStreamProgressType>;
|
|
9
|
+
export type PlatformChatStreamProgress = {
|
|
10
|
+
type: PlatformChatStreamProgressType;
|
|
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
|
+
* Verbatim concatenated fragment text from an assistant UPDATE wire message. Display-oriented passthrough only; not part of the final answer and not present on terminal response snapshots.
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
*/
|
|
22
|
+
text: string;
|
|
23
|
+
};
|
|
24
|
+
/** @internal */
|
|
25
|
+
export declare const PlatformChatStreamProgressType$inboundSchema: z.ZodNativeEnum<typeof PlatformChatStreamProgressType>;
|
|
26
|
+
/** @internal */
|
|
27
|
+
export declare const PlatformChatStreamProgress$inboundSchema: z.ZodType<PlatformChatStreamProgress, z.ZodTypeDef, unknown>;
|
|
28
|
+
export declare function platformChatStreamProgressFromJSON(jsonString: string): SafeParseResult<PlatformChatStreamProgress, SDKValidationError>;
|
|
29
|
+
//# sourceMappingURL=platformchatstreamprogress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformchatstreamprogress.d.ts","sourceRoot":"","sources":["../../../../src/models/components/platformchatstreamprogress.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,8BAA8B;;CAEjC,CAAC;AACX,MAAM,MAAM,8BAA8B,GAAG,UAAU,CACrD,OAAO,8BAA8B,CACtC,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,IAAI,EAAE,8BAA8B,CAAC;IACrC;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4CAA4C,EAAE,CAAC,CAAC,aAAa,CACxE,OAAO,8BAA8B,CACS,CAAC;AAEjD,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,0BAA0B,EAAE,kBAAkB,CAAC,CAMjE"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: fdf796d73611
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
export const PlatformChatStreamProgressType = {
|
|
8
|
+
ResponseProgress: "RESPONSE_PROGRESS",
|
|
9
|
+
};
|
|
10
|
+
/** @internal */
|
|
11
|
+
export const PlatformChatStreamProgressType$inboundSchema = z.nativeEnum(PlatformChatStreamProgressType);
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const PlatformChatStreamProgress$inboundSchema = z.object({
|
|
14
|
+
type: PlatformChatStreamProgressType$inboundSchema,
|
|
15
|
+
response_id: z.string(),
|
|
16
|
+
text: z.string(),
|
|
17
|
+
});
|
|
18
|
+
export function platformChatStreamProgressFromJSON(jsonString) {
|
|
19
|
+
return safeParse(jsonString, (x) => PlatformChatStreamProgress$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PlatformChatStreamProgress' from JSON`);
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=platformchatstreamprogress.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformchatstreamprogress.js","sourceRoot":"","sources":["../../../../src/models/components/platformchatstreamprogress.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAKjD,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,gBAAgB,EAAE,mBAAmB;CAC7B,CAAC;AAqBX,gBAAgB;AAChB,MAAM,CAAC,MAAM,4CAA4C,GAErD,CAAC,CAAC,UAAU,CAAC,8BAA8B,CAAC,CAAC;AAEjD,gBAAgB;AAChB,MAAM,CAAC,MAAM,wCAAwC,GAIjD,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,4CAA4C;IAClD,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAC;AAEH,MAAM,UAAU,kCAAkC,CAChD,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wCAAwC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpE,wDAAwD,CACzD,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 { PlatformChatStreamProgress } from "./platformchatstreamprogress.js";
|
|
5
|
+
export type PlatformChatStreamProgressServerSentEvent = {
|
|
6
|
+
id?: string | undefined;
|
|
7
|
+
event: "RESPONSE_PROGRESS";
|
|
8
|
+
data: PlatformChatStreamProgress;
|
|
9
|
+
};
|
|
10
|
+
/** @internal */
|
|
11
|
+
export declare const PlatformChatStreamProgressServerSentEvent$inboundSchema: z.ZodType<PlatformChatStreamProgressServerSentEvent, z.ZodTypeDef, unknown>;
|
|
12
|
+
export declare function platformChatStreamProgressServerSentEventFromJSON(jsonString: string): SafeParseResult<PlatformChatStreamProgressServerSentEvent, SDKValidationError>;
|
|
13
|
+
//# sourceMappingURL=platformchatstreamprogressserversentevent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformchatstreamprogressserversentevent.d.ts","sourceRoot":"","sources":["../../../../src/models/components/platformchatstreamprogressserversentevent.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,0BAA0B,EAE3B,MAAM,iCAAiC,CAAC;AAEzC,MAAM,MAAM,yCAAyC,GAAG;IACtD,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,KAAK,EAAE,mBAAmB,CAAC;IAC3B,IAAI,EAAE,0BAA0B,CAAC;CAClC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uDAAuD,EAAE,CAAC,CAAC,OAAO,CAC7E,yCAAyC,EACzC,CAAC,CAAC,UAAU,EACZ,OAAO,CAaP,CAAC;AAEH,wBAAgB,iDAAiD,CAC/D,UAAU,EAAE,MAAM,GACjB,eAAe,CAChB,yCAAyC,EACzC,kBAAkB,CACnB,CASA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 5248bd43dea5
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { PlatformChatStreamProgress$inboundSchema, } from "./platformchatstreamprogress.js";
|
|
8
|
+
/** @internal */
|
|
9
|
+
export const PlatformChatStreamProgressServerSentEvent$inboundSchema = z.object({
|
|
10
|
+
id: z.string().optional(),
|
|
11
|
+
event: z.literal("RESPONSE_PROGRESS"),
|
|
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(PlatformChatStreamProgress$inboundSchema),
|
|
23
|
+
});
|
|
24
|
+
export function platformChatStreamProgressServerSentEventFromJSON(jsonString) {
|
|
25
|
+
return safeParse(jsonString, (x) => PlatformChatStreamProgressServerSentEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PlatformChatStreamProgressServerSentEvent' from JSON`);
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=platformchatstreamprogressserversentevent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformchatstreamprogressserversentevent.js","sourceRoot":"","sources":["../../../../src/models/components/platformchatstreamprogressserversentevent.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,wCAAwC,GACzC,MAAM,iCAAiC,CAAC;AAQzC,gBAAgB;AAChB,MAAM,CAAC,MAAM,uDAAuD,GAIhE,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,mBAAmB,CAAC;IACrC,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,wCAAwC,CAAC;CAClD,CAAC,CAAC;AAEH,MAAM,UAAU,iDAAiD,CAC/D,UAAkB;IAKlB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,uDAAuD,CAAC,KAAK,CAC3D,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CACd,EACH,uEAAuE,CACxE,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 { PlatformChatCompletedResponse } from "./platformchatcompletedresponse.js";
|
|
6
|
+
export declare const PlatformChatStreamResponseCompletedType: {
|
|
7
|
+
readonly ResponseCompleted: "RESPONSE_COMPLETED";
|
|
8
|
+
};
|
|
9
|
+
export type PlatformChatStreamResponseCompletedType = ClosedEnum<typeof PlatformChatStreamResponseCompletedType>;
|
|
10
|
+
export type PlatformChatStreamResponseCompleted = {
|
|
11
|
+
type: PlatformChatStreamResponseCompletedType;
|
|
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: PlatformChatCompletedResponse;
|
|
19
|
+
};
|
|
20
|
+
/** @internal */
|
|
21
|
+
export declare const PlatformChatStreamResponseCompletedType$inboundSchema: z.ZodNativeEnum<typeof PlatformChatStreamResponseCompletedType>;
|
|
22
|
+
/** @internal */
|
|
23
|
+
export declare const PlatformChatStreamResponseCompleted$inboundSchema: z.ZodType<PlatformChatStreamResponseCompleted, z.ZodTypeDef, unknown>;
|
|
24
|
+
export declare function platformChatStreamResponseCompletedFromJSON(jsonString: string): SafeParseResult<PlatformChatStreamResponseCompleted, SDKValidationError>;
|
|
25
|
+
//# sourceMappingURL=platformchatstreamresponsecompleted.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformchatstreamresponsecompleted.d.ts","sourceRoot":"","sources":["../../../../src/models/components/platformchatstreamresponsecompleted.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,6BAA6B,EAE9B,MAAM,oCAAoC,CAAC;AAE5C,eAAO,MAAM,uCAAuC;;CAE1C,CAAC;AACX,MAAM,MAAM,uCAAuC,GAAG,UAAU,CAC9D,OAAO,uCAAuC,CAC/C,CAAC;AAEF,MAAM,MAAM,mCAAmC,GAAG;IAChD,IAAI,EAAE,uCAAuC,CAAC;IAC9C;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,6BAA6B,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qDAAqD,EAChE,CAAC,CAAC,aAAa,CAAC,OAAO,uCAAuC,CACR,CAAC;AAEzD,gBAAgB;AAChB,eAAO,MAAM,iDAAiD,EAAE,CAAC,CAAC,OAAO,CACvE,mCAAmC,EACnC,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,wBAAgB,2CAA2C,CACzD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mCAAmC,EAAE,kBAAkB,CAAC,CAO1E"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: acec96f29e31
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { PlatformChatCompletedResponse$inboundSchema, } from "./platformchatcompletedresponse.js";
|
|
8
|
+
export const PlatformChatStreamResponseCompletedType = {
|
|
9
|
+
ResponseCompleted: "RESPONSE_COMPLETED",
|
|
10
|
+
};
|
|
11
|
+
/** @internal */
|
|
12
|
+
export const PlatformChatStreamResponseCompletedType$inboundSchema = z
|
|
13
|
+
.nativeEnum(PlatformChatStreamResponseCompletedType);
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const PlatformChatStreamResponseCompleted$inboundSchema = z.object({
|
|
16
|
+
type: PlatformChatStreamResponseCompletedType$inboundSchema,
|
|
17
|
+
response_id: z.string(),
|
|
18
|
+
response: PlatformChatCompletedResponse$inboundSchema,
|
|
19
|
+
});
|
|
20
|
+
export function platformChatStreamResponseCompletedFromJSON(jsonString) {
|
|
21
|
+
return safeParse(jsonString, (x) => PlatformChatStreamResponseCompleted$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PlatformChatStreamResponseCompleted' from JSON`);
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=platformchatstreamresponsecompleted.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformchatstreamresponsecompleted.js","sourceRoot":"","sources":["../../../../src/models/components/platformchatstreamresponsecompleted.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAIjD,OAAO,EAEL,2CAA2C,GAC5C,MAAM,oCAAoC,CAAC;AAE5C,MAAM,CAAC,MAAM,uCAAuC,GAAG;IACrD,iBAAiB,EAAE,oBAAoB;CAC/B,CAAC;AAgBX,gBAAgB;AAChB,MAAM,CAAC,MAAM,qDAAqD,GACE,CAAC;KAChE,UAAU,CAAC,uCAAuC,CAAC,CAAC;AAEzD,gBAAgB;AAChB,MAAM,CAAC,MAAM,iDAAiD,GAI1D,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,qDAAqD;IAC3D,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,QAAQ,EAAE,2CAA2C;CACtD,CAAC,CAAC;AAEH,MAAM,UAAU,2CAA2C,CACzD,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,iDAAiD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxE,iEAAiE,CAClE,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 { PlatformChatStreamResponseCompleted } from "./platformchatstreamresponsecompleted.js";
|
|
5
|
+
export type PlatformChatStreamResponseCompletedServerSentEvent = {
|
|
6
|
+
id?: string | undefined;
|
|
7
|
+
event: "RESPONSE_COMPLETED";
|
|
8
|
+
data: PlatformChatStreamResponseCompleted;
|
|
9
|
+
};
|
|
10
|
+
/** @internal */
|
|
11
|
+
export declare const PlatformChatStreamResponseCompletedServerSentEvent$inboundSchema: z.ZodType<PlatformChatStreamResponseCompletedServerSentEvent, z.ZodTypeDef, unknown>;
|
|
12
|
+
export declare function platformChatStreamResponseCompletedServerSentEventFromJSON(jsonString: string): SafeParseResult<PlatformChatStreamResponseCompletedServerSentEvent, SDKValidationError>;
|
|
13
|
+
//# sourceMappingURL=platformchatstreamresponsecompletedserversentevent.d.ts.map
|
package/dist/esm/models/components/platformchatstreamresponsecompletedserversentevent.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"platformchatstreamresponsecompletedserversentevent.d.ts","sourceRoot":"","sources":["../../../../src/models/components/platformchatstreamresponsecompletedserversentevent.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,mCAAmC,EAEpC,MAAM,0CAA0C,CAAC;AAElD,MAAM,MAAM,kDAAkD,GAAG;IAC/D,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB,KAAK,EAAE,oBAAoB,CAAC;IAC5B,IAAI,EAAE,mCAAmC,CAAC;CAC3C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gEAAgE,EAC3E,CAAC,CAAC,OAAO,CACP,kDAAkD,EAClD,CAAC,CAAC,UAAU,EACZ,OAAO,CAaP,CAAC;AAEL,wBAAgB,0DAA0D,CACxE,UAAU,EAAE,MAAM,GACjB,eAAe,CAChB,kDAAkD,EAClD,kBAAkB,CACnB,CASA"}
|