@orq-ai/node 4.11.0-rc.7 → 4.11.0-rc.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/index.d.ts +33 -8
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +33 -8
- package/models/components/index.js.map +1 -1
- package/models/components/publicresponseresource.d.ts +4 -4
- package/models/components/publicresponseresource.d.ts.map +1 -1
- package/models/components/publicresponseresource.js +4 -4
- package/models/components/publicresponseresource.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/responsecodeinterpretercallcodedeltastreamevent.d.ts +35 -0
- package/models/components/responsecodeinterpretercallcodedeltastreamevent.d.ts.map +1 -0
- package/models/components/{responsecodeinterpretercodedeltastreamevent.js → responsecodeinterpretercallcodedeltastreamevent.js} +7 -35
- package/models/components/responsecodeinterpretercallcodedeltastreamevent.js.map +1 -0
- package/models/components/responsecodeinterpretercallcodedonestreamevent.d.ts +35 -0
- package/models/components/responsecodeinterpretercallcodedonestreamevent.d.ts.map +1 -0
- package/models/components/{responsecodeinterpretercodedonestreamevent.js → responsecodeinterpretercallcodedonestreamevent.js} +7 -35
- package/models/components/responsecodeinterpretercallcodedonestreamevent.js.map +1 -0
- package/models/components/responsecodeinterpretercallcompletedstreamevent.d.ts +31 -0
- package/models/components/responsecodeinterpretercallcompletedstreamevent.d.ts.map +1 -0
- package/models/components/responsecodeinterpretercallcompletedstreamevent.js +60 -0
- package/models/components/responsecodeinterpretercallcompletedstreamevent.js.map +1 -0
- package/models/components/responsecodeinterpretercallinprogressstreamevent.d.ts +31 -0
- package/models/components/responsecodeinterpretercallinprogressstreamevent.d.ts.map +1 -0
- package/models/components/responsecodeinterpretercallinprogressstreamevent.js +60 -0
- package/models/components/responsecodeinterpretercallinprogressstreamevent.js.map +1 -0
- package/models/components/responsecodeinterpretercallinterpretingstreamevent.d.ts +31 -0
- package/models/components/responsecodeinterpretercallinterpretingstreamevent.d.ts.map +1 -0
- package/models/components/responsecodeinterpretercallinterpretingstreamevent.js +60 -0
- package/models/components/responsecodeinterpretercallinterpretingstreamevent.js.map +1 -0
- package/models/components/responsecompletedstreamevent.d.ts +25 -0
- package/models/components/responsecompletedstreamevent.d.ts.map +1 -0
- package/models/components/responsecompletedstreamevent.js +58 -0
- package/models/components/responsecompletedstreamevent.js.map +1 -0
- package/models/components/responsecontentpartaddedstreamevent.d.ts +41 -0
- package/models/components/responsecontentpartaddedstreamevent.d.ts.map +1 -0
- package/models/components/responsecontentpartaddedstreamevent.js +63 -0
- package/models/components/responsecontentpartaddedstreamevent.js.map +1 -0
- package/models/components/responsecontentpartdonestreamevent.d.ts +41 -0
- package/models/components/responsecontentpartdonestreamevent.d.ts.map +1 -0
- package/models/components/responsecontentpartdonestreamevent.js +63 -0
- package/models/components/responsecontentpartdonestreamevent.js.map +1 -0
- package/models/components/responsecreatedstreamevent.d.ts +25 -0
- package/models/components/responsecreatedstreamevent.d.ts.map +1 -0
- package/models/components/responsecreatedstreamevent.js +58 -0
- package/models/components/responsecreatedstreamevent.js.map +1 -0
- package/models/components/responseerrorstreamevent.d.ts +4 -30
- package/models/components/responseerrorstreamevent.d.ts.map +1 -1
- package/models/components/responseerrorstreamevent.js +3 -30
- package/models/components/responseerrorstreamevent.js.map +1 -1
- package/models/components/responsefailedstreamevent.d.ts +25 -0
- package/models/components/responsefailedstreamevent.d.ts.map +1 -0
- package/models/components/responsefailedstreamevent.js +58 -0
- package/models/components/responsefailedstreamevent.js.map +1 -0
- package/models/components/responsefilesearchcallcompletedstreamevent.d.ts +31 -0
- package/models/components/responsefilesearchcallcompletedstreamevent.d.ts.map +1 -0
- package/models/components/responsefilesearchcallcompletedstreamevent.js +60 -0
- package/models/components/responsefilesearchcallcompletedstreamevent.js.map +1 -0
- package/models/components/responsefilesearchcallinprogressstreamevent.d.ts +31 -0
- package/models/components/responsefilesearchcallinprogressstreamevent.d.ts.map +1 -0
- package/models/components/responsefilesearchcallinprogressstreamevent.js +60 -0
- package/models/components/responsefilesearchcallinprogressstreamevent.js.map +1 -0
- package/models/components/responsefilesearchcallsearchingstreamevent.d.ts +31 -0
- package/models/components/responsefilesearchcallsearchingstreamevent.d.ts.map +1 -0
- package/models/components/responsefilesearchcallsearchingstreamevent.js +60 -0
- package/models/components/responsefilesearchcallsearchingstreamevent.js.map +1 -0
- package/models/components/responsefunctioncallargumentsdeltastreamevent.d.ts +4 -30
- package/models/components/responsefunctioncallargumentsdeltastreamevent.d.ts.map +1 -1
- package/models/components/responsefunctioncallargumentsdeltastreamevent.js +3 -31
- package/models/components/responsefunctioncallargumentsdeltastreamevent.js.map +1 -1
- package/models/components/responsefunctioncallargumentsdonestreamevent.d.ts +4 -30
- package/models/components/responsefunctioncallargumentsdonestreamevent.d.ts.map +1 -1
- package/models/components/responsefunctioncallargumentsdonestreamevent.js +3 -31
- package/models/components/responsefunctioncallargumentsdonestreamevent.js.map +1 -1
- package/models/components/responseimagegenerationcallcompletedstreamevent.d.ts +31 -0
- package/models/components/responseimagegenerationcallcompletedstreamevent.d.ts.map +1 -0
- package/models/components/responseimagegenerationcallcompletedstreamevent.js +60 -0
- package/models/components/responseimagegenerationcallcompletedstreamevent.js.map +1 -0
- package/models/components/responseimagegenerationcallgeneratingstreamevent.d.ts +31 -0
- package/models/components/responseimagegenerationcallgeneratingstreamevent.d.ts.map +1 -0
- package/models/components/responseimagegenerationcallgeneratingstreamevent.js +60 -0
- package/models/components/responseimagegenerationcallgeneratingstreamevent.js.map +1 -0
- package/models/components/responseimagegenerationcallinprogressstreamevent.d.ts +31 -0
- package/models/components/responseimagegenerationcallinprogressstreamevent.d.ts.map +1 -0
- package/models/components/responseimagegenerationcallinprogressstreamevent.js +60 -0
- package/models/components/responseimagegenerationcallinprogressstreamevent.js.map +1 -0
- package/models/components/responseimagegenerationcallpartialimagestreamevent.d.ts +39 -0
- package/models/components/responseimagegenerationcallpartialimagestreamevent.d.ts.map +1 -0
- package/models/components/{responseimagegenerationpartialimagestreamevent.js → responseimagegenerationcallpartialimagestreamevent.js} +7 -35
- package/models/components/responseimagegenerationcallpartialimagestreamevent.js.map +1 -0
- package/models/components/responseincompletestreamevent.d.ts +25 -0
- package/models/components/responseincompletestreamevent.d.ts.map +1 -0
- package/models/components/responseincompletestreamevent.js +58 -0
- package/models/components/responseincompletestreamevent.js.map +1 -0
- package/models/components/responseinprogressstreamevent.d.ts +25 -0
- package/models/components/responseinprogressstreamevent.d.ts.map +1 -0
- package/models/components/responseinprogressstreamevent.js +58 -0
- package/models/components/responseinprogressstreamevent.js.map +1 -0
- package/models/components/responsemcpcallargumentsdeltastreamevent.d.ts +6 -32
- package/models/components/responsemcpcallargumentsdeltastreamevent.d.ts.map +1 -1
- package/models/components/responsemcpcallargumentsdeltastreamevent.js +6 -34
- package/models/components/responsemcpcallargumentsdeltastreamevent.js.map +1 -1
- package/models/components/responsemcpcallargumentsdonestreamevent.d.ts +6 -32
- package/models/components/responsemcpcallargumentsdonestreamevent.d.ts.map +1 -1
- package/models/components/responsemcpcallargumentsdonestreamevent.js +6 -34
- package/models/components/responsemcpcallargumentsdonestreamevent.js.map +1 -1
- package/models/components/responsemcpcallcompletedstreamevent.d.ts +31 -0
- package/models/components/responsemcpcallcompletedstreamevent.d.ts.map +1 -0
- package/models/components/responsemcpcallcompletedstreamevent.js +60 -0
- package/models/components/responsemcpcallcompletedstreamevent.js.map +1 -0
- package/models/components/responsemcpcallfailedstreamevent.d.ts +31 -0
- package/models/components/responsemcpcallfailedstreamevent.d.ts.map +1 -0
- package/models/components/responsemcpcallfailedstreamevent.js +60 -0
- package/models/components/responsemcpcallfailedstreamevent.js.map +1 -0
- package/models/components/responsemcpcallinprogressstreamevent.d.ts +31 -0
- package/models/components/responsemcpcallinprogressstreamevent.d.ts.map +1 -0
- package/models/components/responsemcpcallinprogressstreamevent.js +60 -0
- package/models/components/responsemcpcallinprogressstreamevent.js.map +1 -0
- package/models/components/responseoutputitemaddedstreamevent.d.ts +33 -0
- package/models/components/responseoutputitemaddedstreamevent.d.ts.map +1 -0
- package/models/components/responseoutputitemaddedstreamevent.js +59 -0
- package/models/components/responseoutputitemaddedstreamevent.js.map +1 -0
- package/models/components/responseoutputitemdonestreamevent.d.ts +33 -0
- package/models/components/responseoutputitemdonestreamevent.d.ts.map +1 -0
- package/models/components/responseoutputitemdonestreamevent.js +59 -0
- package/models/components/responseoutputitemdonestreamevent.js.map +1 -0
- package/models/components/responseoutputtextannotationaddedstreamevent.d.ts +4 -30
- package/models/components/responseoutputtextannotationaddedstreamevent.d.ts.map +1 -1
- package/models/components/responseoutputtextannotationaddedstreamevent.js +3 -31
- package/models/components/responseoutputtextannotationaddedstreamevent.js.map +1 -1
- package/models/components/responseoutputtextdeltastreamevent.d.ts +4 -30
- package/models/components/responseoutputtextdeltastreamevent.d.ts.map +1 -1
- package/models/components/responseoutputtextdeltastreamevent.js +3 -30
- package/models/components/responseoutputtextdeltastreamevent.js.map +1 -1
- package/models/components/responseoutputtextdonestreamevent.d.ts +4 -30
- package/models/components/responseoutputtextdonestreamevent.d.ts.map +1 -1
- package/models/components/responseoutputtextdonestreamevent.js +3 -30
- package/models/components/responseoutputtextdonestreamevent.js.map +1 -1
- package/models/components/responsequeuedstreamevent.d.ts +25 -0
- package/models/components/responsequeuedstreamevent.d.ts.map +1 -0
- package/models/components/responsequeuedstreamevent.js +58 -0
- package/models/components/responsequeuedstreamevent.js.map +1 -0
- package/models/components/responsereasoningdeltastreamevent.d.ts +4 -44
- package/models/components/responsereasoningdeltastreamevent.d.ts.map +1 -1
- package/models/components/responsereasoningdeltastreamevent.js +3 -40
- package/models/components/responsereasoningdeltastreamevent.js.map +1 -1
- package/models/components/responsereasoningdonestreamevent.d.ts +4 -44
- package/models/components/responsereasoningdonestreamevent.d.ts.map +1 -1
- package/models/components/responsereasoningdonestreamevent.js +3 -40
- package/models/components/responsereasoningdonestreamevent.js.map +1 -1
- package/models/components/responsereasoningsummarypartaddedstreamevent.d.ts +41 -0
- package/models/components/responsereasoningsummarypartaddedstreamevent.d.ts.map +1 -0
- package/models/components/responsereasoningsummarypartaddedstreamevent.js +63 -0
- package/models/components/responsereasoningsummarypartaddedstreamevent.js.map +1 -0
- package/models/components/responsereasoningsummarypartdonestreamevent.d.ts +41 -0
- package/models/components/responsereasoningsummarypartdonestreamevent.d.ts.map +1 -0
- package/models/components/responsereasoningsummarypartdonestreamevent.js +63 -0
- package/models/components/responsereasoningsummarypartdonestreamevent.js.map +1 -0
- package/models/components/responsereasoningsummarytextdeltastreamevent.d.ts +4 -30
- package/models/components/responsereasoningsummarytextdeltastreamevent.d.ts.map +1 -1
- package/models/components/responsereasoningsummarytextdeltastreamevent.js +3 -31
- package/models/components/responsereasoningsummarytextdeltastreamevent.js.map +1 -1
- package/models/components/responsereasoningsummarytextdonestreamevent.d.ts +4 -30
- package/models/components/responsereasoningsummarytextdonestreamevent.d.ts.map +1 -1
- package/models/components/responsereasoningsummarytextdonestreamevent.js +3 -31
- package/models/components/responsereasoningsummarytextdonestreamevent.js.map +1 -1
- package/models/components/responsereasoningtextdeltastreamevent.d.ts +43 -0
- package/models/components/responsereasoningtextdeltastreamevent.d.ts.map +1 -0
- package/models/components/responsereasoningtextdeltastreamevent.js +64 -0
- package/models/components/responsereasoningtextdeltastreamevent.js.map +1 -0
- package/models/components/responsereasoningtextdonestreamevent.d.ts +39 -0
- package/models/components/responsereasoningtextdonestreamevent.d.ts.map +1 -0
- package/models/components/responsereasoningtextdonestreamevent.js +63 -0
- package/models/components/responsereasoningtextdonestreamevent.js.map +1 -0
- package/models/components/responserefusaldeltastreamevent.d.ts +4 -30
- package/models/components/responserefusaldeltastreamevent.d.ts.map +1 -1
- package/models/components/responserefusaldeltastreamevent.js +3 -30
- package/models/components/responserefusaldeltastreamevent.js.map +1 -1
- package/models/components/responserefusaldonestreamevent.d.ts +4 -30
- package/models/components/responserefusaldonestreamevent.d.ts.map +1 -1
- package/models/components/responserefusaldonestreamevent.js +3 -30
- package/models/components/responserefusaldonestreamevent.js.map +1 -1
- package/models/components/responsestreamevent.d.ts +57 -0
- package/models/components/responsestreamevent.d.ts.map +1 -0
- package/models/components/responsestreamevent.js +141 -0
- package/models/components/responsestreamevent.js.map +1 -0
- package/models/components/responsewebsearchcallcompletedstreamevent.d.ts +31 -0
- package/models/components/responsewebsearchcallcompletedstreamevent.d.ts.map +1 -0
- package/models/components/responsewebsearchcallcompletedstreamevent.js +60 -0
- package/models/components/responsewebsearchcallcompletedstreamevent.js.map +1 -0
- package/models/components/responsewebsearchcallinprogressstreamevent.d.ts +31 -0
- package/models/components/responsewebsearchcallinprogressstreamevent.d.ts.map +1 -0
- package/models/components/responsewebsearchcallinprogressstreamevent.js +60 -0
- package/models/components/responsewebsearchcallinprogressstreamevent.js.map +1 -0
- package/models/components/responsewebsearchcallsearchingstreamevent.d.ts +31 -0
- package/models/components/responsewebsearchcallsearchingstreamevent.d.ts.map +1 -0
- package/models/components/responsewebsearchcallsearchingstreamevent.js +60 -0
- package/models/components/responsewebsearchcallsearchingstreamevent.js.map +1 -0
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.js +16 -16
- package/models/operations/createrouterresponse.d.ts +8 -127
- package/models/operations/createrouterresponse.d.ts.map +1 -1
- package/models/operations/createrouterresponse.js +17 -140
- package/models/operations/createrouterresponse.js.map +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +3 -3
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updatetool.js +7 -7
- package/package.json +3 -3
- package/sdk/feedback.d.ts +0 -3
- package/sdk/feedback.d.ts.map +1 -1
- package/sdk/feedback.js +0 -3
- package/sdk/feedback.js.map +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/index.ts +33 -8
- package/src/models/components/publicresponseresource.ts +8 -8
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/responsecodeinterpretercallcodedeltastreamevent.ts +79 -0
- package/src/models/components/responsecodeinterpretercallcodedonestreamevent.ts +79 -0
- package/src/models/components/responsecodeinterpretercallcompletedstreamevent.ts +74 -0
- package/src/models/components/responsecodeinterpretercallinprogressstreamevent.ts +74 -0
- package/src/models/components/responsecodeinterpretercallinterpretingstreamevent.ts +74 -0
- package/src/models/components/responsecompletedstreamevent.ts +61 -0
- package/src/models/components/responsecontentpartaddedstreamevent.ts +79 -0
- package/src/models/components/responsecontentpartdonestreamevent.ts +79 -0
- package/src/models/components/responsecreatedstreamevent.ts +61 -0
- package/src/models/components/responseerrorstreamevent.ts +7 -65
- package/src/models/components/responsefailedstreamevent.ts +61 -0
- package/src/models/components/responsefilesearchcallcompletedstreamevent.ts +71 -0
- package/src/models/components/responsefilesearchcallinprogressstreamevent.ts +74 -0
- package/src/models/components/responsefilesearchcallsearchingstreamevent.ts +71 -0
- package/src/models/components/responsefunctioncallargumentsdeltastreamevent.ts +7 -76
- package/src/models/components/responsefunctioncallargumentsdonestreamevent.ts +7 -76
- package/src/models/components/responseimagegenerationcallcompletedstreamevent.ts +74 -0
- package/src/models/components/responseimagegenerationcallgeneratingstreamevent.ts +74 -0
- package/src/models/components/responseimagegenerationcallinprogressstreamevent.ts +74 -0
- package/src/models/components/responseimagegenerationcallpartialimagestreamevent.ts +86 -0
- package/src/models/components/responseincompletestreamevent.ts +61 -0
- package/src/models/components/responseinprogressstreamevent.ts +61 -0
- package/src/models/components/responsemcpcallargumentsdeltastreamevent.ts +26 -93
- package/src/models/components/responsemcpcallargumentsdonestreamevent.ts +26 -93
- package/src/models/components/responsemcpcallcompletedstreamevent.ts +68 -0
- package/src/models/components/responsemcpcallfailedstreamevent.ts +67 -0
- package/src/models/components/responsemcpcallinprogressstreamevent.ts +68 -0
- package/src/models/components/responseoutputitemaddedstreamevent.ts +67 -0
- package/src/models/components/responseoutputitemdonestreamevent.ts +66 -0
- package/src/models/components/responseoutputtextannotationaddedstreamevent.ts +7 -76
- package/src/models/components/responseoutputtextdeltastreamevent.ts +7 -67
- package/src/models/components/responseoutputtextdonestreamevent.ts +7 -67
- package/src/models/components/responsequeuedstreamevent.ts +61 -0
- package/src/models/components/responsereasoningdeltastreamevent.ts +7 -88
- package/src/models/components/responsereasoningdonestreamevent.ts +7 -88
- package/src/models/components/responsereasoningsummarypartaddedstreamevent.ts +85 -0
- package/src/models/components/responsereasoningsummarypartdonestreamevent.ts +85 -0
- package/src/models/components/responsereasoningsummarytextdeltastreamevent.ts +7 -76
- package/src/models/components/responsereasoningsummarytextdonestreamevent.ts +7 -76
- package/src/models/components/responsereasoningtextdeltastreamevent.ts +84 -0
- package/src/models/components/responsereasoningtextdonestreamevent.ts +79 -0
- package/src/models/components/responserefusaldeltastreamevent.ts +7 -66
- package/src/models/components/responserefusaldonestreamevent.ts +7 -66
- package/src/models/components/responsestreamevent.ts +307 -0
- package/src/models/components/responsewebsearchcallcompletedstreamevent.ts +73 -0
- package/src/models/components/responsewebsearchcallinprogressstreamevent.ts +71 -0
- package/src/models/components/responsewebsearchcallsearchingstreamevent.ts +73 -0
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/createrouterresponse.ts +24 -468
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/feedback.ts +0 -3
- package/models/components/responsecodeinterpretercodedeltastreamevent.d.ts +0 -61
- package/models/components/responsecodeinterpretercodedeltastreamevent.d.ts.map +0 -1
- package/models/components/responsecodeinterpretercodedeltastreamevent.js.map +0 -1
- package/models/components/responsecodeinterpretercodedonestreamevent.d.ts +0 -61
- package/models/components/responsecodeinterpretercodedonestreamevent.d.ts.map +0 -1
- package/models/components/responsecodeinterpretercodedonestreamevent.js.map +0 -1
- package/models/components/responsecontentpartstreamevent.d.ts +0 -81
- package/models/components/responsecontentpartstreamevent.d.ts.map +0 -1
- package/models/components/responsecontentpartstreamevent.js +0 -100
- package/models/components/responsecontentpartstreamevent.js.map +0 -1
- package/models/components/responsehostedtoolcallstreamevent.d.ts +0 -97
- package/models/components/responsehostedtoolcallstreamevent.d.ts.map +0 -1
- package/models/components/responsehostedtoolcallstreamevent.js +0 -123
- package/models/components/responsehostedtoolcallstreamevent.js.map +0 -1
- package/models/components/responseimagegenerationpartialimagestreamevent.d.ts +0 -65
- package/models/components/responseimagegenerationpartialimagestreamevent.d.ts.map +0 -1
- package/models/components/responseimagegenerationpartialimagestreamevent.js.map +0 -1
- package/models/components/responselifecyclestreamevent.d.ts +0 -73
- package/models/components/responselifecyclestreamevent.d.ts.map +0 -1
- package/models/components/responselifecyclestreamevent.js +0 -103
- package/models/components/responselifecyclestreamevent.js.map +0 -1
- package/models/components/responseoutputitemstreamevent.d.ts +0 -73
- package/models/components/responseoutputitemstreamevent.d.ts.map +0 -1
- package/models/components/responseoutputitemstreamevent.js +0 -96
- package/models/components/responseoutputitemstreamevent.js.map +0 -1
- package/models/components/responsereasoningsummarypartstreamevent.d.ts +0 -81
- package/models/components/responsereasoningsummarypartstreamevent.d.ts.map +0 -1
- package/models/components/responsereasoningsummarypartstreamevent.js +0 -102
- package/models/components/responsereasoningsummarypartstreamevent.js.map +0 -1
- package/src/models/components/responsecodeinterpretercodedeltastreamevent.ts +0 -149
- package/src/models/components/responsecodeinterpretercodedonestreamevent.ts +0 -146
- package/src/models/components/responsecontentpartstreamevent.ts +0 -157
- package/src/models/components/responsehostedtoolcallstreamevent.ts +0 -186
- package/src/models/components/responseimagegenerationpartialimagestreamevent.ts +0 -156
- package/src/models/components/responselifecyclestreamevent.ts +0 -145
- package/src/models/components/responseoutputitemstreamevent.ts +0 -144
- package/src/models/components/responsereasoningsummarypartstreamevent.ts +0 -171
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import {
|
|
8
|
+
collectExtraKeys as collectExtraKeys$,
|
|
9
|
+
safeParse,
|
|
10
|
+
} from "../../lib/schemas.js";
|
|
11
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
12
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* A `response.content_part.done` server-sent event.
|
|
16
|
+
*/
|
|
17
|
+
export type ResponseContentPartDoneStreamEvent = {
|
|
18
|
+
/**
|
|
19
|
+
* Index of the content part within the output item.
|
|
20
|
+
*/
|
|
21
|
+
contentIndex: number;
|
|
22
|
+
/**
|
|
23
|
+
* ID of the output item this event refers to.
|
|
24
|
+
*/
|
|
25
|
+
itemId: string;
|
|
26
|
+
/**
|
|
27
|
+
* Index of the output item in the response output array.
|
|
28
|
+
*/
|
|
29
|
+
outputIndex: number;
|
|
30
|
+
/**
|
|
31
|
+
* The content part.
|
|
32
|
+
*/
|
|
33
|
+
part: { [k: string]: any };
|
|
34
|
+
/**
|
|
35
|
+
* Monotonically increasing sequence number for ordering events.
|
|
36
|
+
*/
|
|
37
|
+
sequenceNumber: number;
|
|
38
|
+
/**
|
|
39
|
+
* The event type. Discriminates the payload.
|
|
40
|
+
*/
|
|
41
|
+
type: "response.content_part.done";
|
|
42
|
+
additionalProperties?: { [k: string]: any } | undefined;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const ResponseContentPartDoneStreamEvent$inboundSchema: z.ZodType<
|
|
47
|
+
ResponseContentPartDoneStreamEvent,
|
|
48
|
+
z.ZodTypeDef,
|
|
49
|
+
unknown
|
|
50
|
+
> = collectExtraKeys$(
|
|
51
|
+
z.object({
|
|
52
|
+
content_index: z.number().int(),
|
|
53
|
+
item_id: z.string(),
|
|
54
|
+
output_index: z.number().int(),
|
|
55
|
+
part: z.record(z.any()),
|
|
56
|
+
sequence_number: z.number().int(),
|
|
57
|
+
type: z.literal("response.content_part.done"),
|
|
58
|
+
}).catchall(z.any()),
|
|
59
|
+
"additionalProperties",
|
|
60
|
+
true,
|
|
61
|
+
).transform((v) => {
|
|
62
|
+
return remap$(v, {
|
|
63
|
+
"content_index": "contentIndex",
|
|
64
|
+
"item_id": "itemId",
|
|
65
|
+
"output_index": "outputIndex",
|
|
66
|
+
"sequence_number": "sequenceNumber",
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
export function responseContentPartDoneStreamEventFromJSON(
|
|
71
|
+
jsonString: string,
|
|
72
|
+
): SafeParseResult<ResponseContentPartDoneStreamEvent, SDKValidationError> {
|
|
73
|
+
return safeParse(
|
|
74
|
+
jsonString,
|
|
75
|
+
(x) =>
|
|
76
|
+
ResponseContentPartDoneStreamEvent$inboundSchema.parse(JSON.parse(x)),
|
|
77
|
+
`Failed to parse 'ResponseContentPartDoneStreamEvent' from JSON`,
|
|
78
|
+
);
|
|
79
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import {
|
|
8
|
+
collectExtraKeys as collectExtraKeys$,
|
|
9
|
+
safeParse,
|
|
10
|
+
} from "../../lib/schemas.js";
|
|
11
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
12
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
13
|
+
import {
|
|
14
|
+
PublicResponseResource,
|
|
15
|
+
PublicResponseResource$inboundSchema,
|
|
16
|
+
} from "./publicresponseresource.js";
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* A `response.created` server-sent event.
|
|
20
|
+
*/
|
|
21
|
+
export type ResponseCreatedStreamEvent = {
|
|
22
|
+
response: PublicResponseResource;
|
|
23
|
+
/**
|
|
24
|
+
* Monotonically increasing sequence number for ordering events.
|
|
25
|
+
*/
|
|
26
|
+
sequenceNumber: number;
|
|
27
|
+
/**
|
|
28
|
+
* The event type. Discriminates the payload.
|
|
29
|
+
*/
|
|
30
|
+
type: "response.created";
|
|
31
|
+
additionalProperties?: { [k: string]: any } | undefined;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const ResponseCreatedStreamEvent$inboundSchema: z.ZodType<
|
|
36
|
+
ResponseCreatedStreamEvent,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
unknown
|
|
39
|
+
> = collectExtraKeys$(
|
|
40
|
+
z.object({
|
|
41
|
+
response: PublicResponseResource$inboundSchema,
|
|
42
|
+
sequence_number: z.number().int(),
|
|
43
|
+
type: z.literal("response.created"),
|
|
44
|
+
}).catchall(z.any()),
|
|
45
|
+
"additionalProperties",
|
|
46
|
+
true,
|
|
47
|
+
).transform((v) => {
|
|
48
|
+
return remap$(v, {
|
|
49
|
+
"sequence_number": "sequenceNumber",
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
export function responseCreatedStreamEventFromJSON(
|
|
54
|
+
jsonString: string,
|
|
55
|
+
): SafeParseResult<ResponseCreatedStreamEvent, SDKValidationError> {
|
|
56
|
+
return safeParse(
|
|
57
|
+
jsonString,
|
|
58
|
+
(x) => ResponseCreatedStreamEvent$inboundSchema.parse(JSON.parse(x)),
|
|
59
|
+
`Failed to parse 'ResponseCreatedStreamEvent' from JSON`,
|
|
60
|
+
);
|
|
61
|
+
}
|
|
@@ -8,66 +8,36 @@ import {
|
|
|
8
8
|
collectExtraKeys as collectExtraKeys$,
|
|
9
9
|
safeParse,
|
|
10
10
|
} from "../../lib/schemas.js";
|
|
11
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
12
11
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
13
12
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
14
13
|
import { ResponseError, ResponseError$inboundSchema } from "./responseerror.js";
|
|
15
14
|
|
|
16
15
|
/**
|
|
17
|
-
*
|
|
16
|
+
* A `error` server-sent event.
|
|
18
17
|
*/
|
|
19
|
-
export
|
|
20
|
-
Error: "error",
|
|
21
|
-
} as const;
|
|
22
|
-
/**
|
|
23
|
-
* The event type. Matches the SSE `event` field.
|
|
24
|
-
*/
|
|
25
|
-
export type ResponseErrorStreamEventType = ClosedEnum<
|
|
26
|
-
typeof ResponseErrorStreamEventType
|
|
27
|
-
>;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* The event payload.
|
|
31
|
-
*/
|
|
32
|
-
export type ResponseErrorStreamEventData = {
|
|
18
|
+
export type ResponseErrorStreamEvent = {
|
|
33
19
|
error: ResponseError;
|
|
34
20
|
/**
|
|
35
21
|
* Monotonically increasing sequence number for ordering events.
|
|
36
22
|
*/
|
|
37
23
|
sequenceNumber: number;
|
|
38
24
|
/**
|
|
39
|
-
* The event type.
|
|
25
|
+
* The event type. Discriminates the payload.
|
|
40
26
|
*/
|
|
41
|
-
type:
|
|
27
|
+
type: "error";
|
|
42
28
|
additionalProperties?: { [k: string]: any } | undefined;
|
|
43
29
|
};
|
|
44
30
|
|
|
45
|
-
export type ResponseErrorStreamEvent = {
|
|
46
|
-
/**
|
|
47
|
-
* The event payload.
|
|
48
|
-
*/
|
|
49
|
-
data: ResponseErrorStreamEventData;
|
|
50
|
-
/**
|
|
51
|
-
* The SSE event name, equal to the payload's `type`.
|
|
52
|
-
*/
|
|
53
|
-
event: "error";
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
/** @internal */
|
|
57
|
-
export const ResponseErrorStreamEventType$inboundSchema: z.ZodNativeEnum<
|
|
58
|
-
typeof ResponseErrorStreamEventType
|
|
59
|
-
> = z.nativeEnum(ResponseErrorStreamEventType);
|
|
60
|
-
|
|
61
31
|
/** @internal */
|
|
62
|
-
export const
|
|
63
|
-
|
|
32
|
+
export const ResponseErrorStreamEvent$inboundSchema: z.ZodType<
|
|
33
|
+
ResponseErrorStreamEvent,
|
|
64
34
|
z.ZodTypeDef,
|
|
65
35
|
unknown
|
|
66
36
|
> = collectExtraKeys$(
|
|
67
37
|
z.object({
|
|
68
38
|
error: ResponseError$inboundSchema,
|
|
69
39
|
sequence_number: z.number().int(),
|
|
70
|
-
type:
|
|
40
|
+
type: z.literal("error"),
|
|
71
41
|
}).catchall(z.any()),
|
|
72
42
|
"additionalProperties",
|
|
73
43
|
true,
|
|
@@ -77,34 +47,6 @@ export const ResponseErrorStreamEventData$inboundSchema: z.ZodType<
|
|
|
77
47
|
});
|
|
78
48
|
});
|
|
79
49
|
|
|
80
|
-
export function responseErrorStreamEventDataFromJSON(
|
|
81
|
-
jsonString: string,
|
|
82
|
-
): SafeParseResult<ResponseErrorStreamEventData, SDKValidationError> {
|
|
83
|
-
return safeParse(
|
|
84
|
-
jsonString,
|
|
85
|
-
(x) => ResponseErrorStreamEventData$inboundSchema.parse(JSON.parse(x)),
|
|
86
|
-
`Failed to parse 'ResponseErrorStreamEventData' from JSON`,
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/** @internal */
|
|
91
|
-
export const ResponseErrorStreamEvent$inboundSchema: z.ZodType<
|
|
92
|
-
ResponseErrorStreamEvent,
|
|
93
|
-
z.ZodTypeDef,
|
|
94
|
-
unknown
|
|
95
|
-
> = z.object({
|
|
96
|
-
data: z.unknown().transform((v, ctx) => {
|
|
97
|
-
if (typeof v !== "string") return v;
|
|
98
|
-
try {
|
|
99
|
-
return JSON.parse(v);
|
|
100
|
-
} catch (err) {
|
|
101
|
-
ctx.addIssue({ code: "custom", message: `malformed json: ${err}` });
|
|
102
|
-
return z.NEVER;
|
|
103
|
-
}
|
|
104
|
-
}).pipe(z.lazy(() => ResponseErrorStreamEventData$inboundSchema)),
|
|
105
|
-
event: z.literal("error"),
|
|
106
|
-
});
|
|
107
|
-
|
|
108
50
|
export function responseErrorStreamEventFromJSON(
|
|
109
51
|
jsonString: string,
|
|
110
52
|
): SafeParseResult<ResponseErrorStreamEvent, SDKValidationError> {
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import {
|
|
8
|
+
collectExtraKeys as collectExtraKeys$,
|
|
9
|
+
safeParse,
|
|
10
|
+
} from "../../lib/schemas.js";
|
|
11
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
12
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
13
|
+
import {
|
|
14
|
+
PublicResponseResource,
|
|
15
|
+
PublicResponseResource$inboundSchema,
|
|
16
|
+
} from "./publicresponseresource.js";
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* A `response.failed` server-sent event.
|
|
20
|
+
*/
|
|
21
|
+
export type ResponseFailedStreamEvent = {
|
|
22
|
+
response: PublicResponseResource;
|
|
23
|
+
/**
|
|
24
|
+
* Monotonically increasing sequence number for ordering events.
|
|
25
|
+
*/
|
|
26
|
+
sequenceNumber: number;
|
|
27
|
+
/**
|
|
28
|
+
* The event type. Discriminates the payload.
|
|
29
|
+
*/
|
|
30
|
+
type: "response.failed";
|
|
31
|
+
additionalProperties?: { [k: string]: any } | undefined;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const ResponseFailedStreamEvent$inboundSchema: z.ZodType<
|
|
36
|
+
ResponseFailedStreamEvent,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
unknown
|
|
39
|
+
> = collectExtraKeys$(
|
|
40
|
+
z.object({
|
|
41
|
+
response: PublicResponseResource$inboundSchema,
|
|
42
|
+
sequence_number: z.number().int(),
|
|
43
|
+
type: z.literal("response.failed"),
|
|
44
|
+
}).catchall(z.any()),
|
|
45
|
+
"additionalProperties",
|
|
46
|
+
true,
|
|
47
|
+
).transform((v) => {
|
|
48
|
+
return remap$(v, {
|
|
49
|
+
"sequence_number": "sequenceNumber",
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
export function responseFailedStreamEventFromJSON(
|
|
54
|
+
jsonString: string,
|
|
55
|
+
): SafeParseResult<ResponseFailedStreamEvent, SDKValidationError> {
|
|
56
|
+
return safeParse(
|
|
57
|
+
jsonString,
|
|
58
|
+
(x) => ResponseFailedStreamEvent$inboundSchema.parse(JSON.parse(x)),
|
|
59
|
+
`Failed to parse 'ResponseFailedStreamEvent' from JSON`,
|
|
60
|
+
);
|
|
61
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import {
|
|
8
|
+
collectExtraKeys as collectExtraKeys$,
|
|
9
|
+
safeParse,
|
|
10
|
+
} from "../../lib/schemas.js";
|
|
11
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
12
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* A `response.file_search_call.completed` server-sent event.
|
|
16
|
+
*/
|
|
17
|
+
export type ResponseFileSearchCallCompletedStreamEvent = {
|
|
18
|
+
/**
|
|
19
|
+
* ID of the output item this event refers to.
|
|
20
|
+
*/
|
|
21
|
+
itemId: string;
|
|
22
|
+
/**
|
|
23
|
+
* Index of the output item in the response output array.
|
|
24
|
+
*/
|
|
25
|
+
outputIndex: number;
|
|
26
|
+
/**
|
|
27
|
+
* Monotonically increasing sequence number for ordering events.
|
|
28
|
+
*/
|
|
29
|
+
sequenceNumber: number;
|
|
30
|
+
/**
|
|
31
|
+
* The event type. Discriminates the payload.
|
|
32
|
+
*/
|
|
33
|
+
type: "response.file_search_call.completed";
|
|
34
|
+
additionalProperties?: { [k: string]: any } | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const ResponseFileSearchCallCompletedStreamEvent$inboundSchema:
|
|
39
|
+
z.ZodType<ResponseFileSearchCallCompletedStreamEvent, z.ZodTypeDef, unknown> =
|
|
40
|
+
collectExtraKeys$(
|
|
41
|
+
z.object({
|
|
42
|
+
item_id: z.string(),
|
|
43
|
+
output_index: z.number().int(),
|
|
44
|
+
sequence_number: z.number().int(),
|
|
45
|
+
type: z.literal("response.file_search_call.completed"),
|
|
46
|
+
}).catchall(z.any()),
|
|
47
|
+
"additionalProperties",
|
|
48
|
+
true,
|
|
49
|
+
).transform((v) => {
|
|
50
|
+
return remap$(v, {
|
|
51
|
+
"item_id": "itemId",
|
|
52
|
+
"output_index": "outputIndex",
|
|
53
|
+
"sequence_number": "sequenceNumber",
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
export function responseFileSearchCallCompletedStreamEventFromJSON(
|
|
58
|
+
jsonString: string,
|
|
59
|
+
): SafeParseResult<
|
|
60
|
+
ResponseFileSearchCallCompletedStreamEvent,
|
|
61
|
+
SDKValidationError
|
|
62
|
+
> {
|
|
63
|
+
return safeParse(
|
|
64
|
+
jsonString,
|
|
65
|
+
(x) =>
|
|
66
|
+
ResponseFileSearchCallCompletedStreamEvent$inboundSchema.parse(
|
|
67
|
+
JSON.parse(x),
|
|
68
|
+
),
|
|
69
|
+
`Failed to parse 'ResponseFileSearchCallCompletedStreamEvent' from JSON`,
|
|
70
|
+
);
|
|
71
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import {
|
|
8
|
+
collectExtraKeys as collectExtraKeys$,
|
|
9
|
+
safeParse,
|
|
10
|
+
} from "../../lib/schemas.js";
|
|
11
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
12
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* A `response.file_search_call.in_progress` server-sent event.
|
|
16
|
+
*/
|
|
17
|
+
export type ResponseFileSearchCallInProgressStreamEvent = {
|
|
18
|
+
/**
|
|
19
|
+
* ID of the output item this event refers to.
|
|
20
|
+
*/
|
|
21
|
+
itemId: string;
|
|
22
|
+
/**
|
|
23
|
+
* Index of the output item in the response output array.
|
|
24
|
+
*/
|
|
25
|
+
outputIndex: number;
|
|
26
|
+
/**
|
|
27
|
+
* Monotonically increasing sequence number for ordering events.
|
|
28
|
+
*/
|
|
29
|
+
sequenceNumber: number;
|
|
30
|
+
/**
|
|
31
|
+
* The event type. Discriminates the payload.
|
|
32
|
+
*/
|
|
33
|
+
type: "response.file_search_call.in_progress";
|
|
34
|
+
additionalProperties?: { [k: string]: any } | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const ResponseFileSearchCallInProgressStreamEvent$inboundSchema:
|
|
39
|
+
z.ZodType<
|
|
40
|
+
ResponseFileSearchCallInProgressStreamEvent,
|
|
41
|
+
z.ZodTypeDef,
|
|
42
|
+
unknown
|
|
43
|
+
> = collectExtraKeys$(
|
|
44
|
+
z.object({
|
|
45
|
+
item_id: z.string(),
|
|
46
|
+
output_index: z.number().int(),
|
|
47
|
+
sequence_number: z.number().int(),
|
|
48
|
+
type: z.literal("response.file_search_call.in_progress"),
|
|
49
|
+
}).catchall(z.any()),
|
|
50
|
+
"additionalProperties",
|
|
51
|
+
true,
|
|
52
|
+
).transform((v) => {
|
|
53
|
+
return remap$(v, {
|
|
54
|
+
"item_id": "itemId",
|
|
55
|
+
"output_index": "outputIndex",
|
|
56
|
+
"sequence_number": "sequenceNumber",
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
export function responseFileSearchCallInProgressStreamEventFromJSON(
|
|
61
|
+
jsonString: string,
|
|
62
|
+
): SafeParseResult<
|
|
63
|
+
ResponseFileSearchCallInProgressStreamEvent,
|
|
64
|
+
SDKValidationError
|
|
65
|
+
> {
|
|
66
|
+
return safeParse(
|
|
67
|
+
jsonString,
|
|
68
|
+
(x) =>
|
|
69
|
+
ResponseFileSearchCallInProgressStreamEvent$inboundSchema.parse(
|
|
70
|
+
JSON.parse(x),
|
|
71
|
+
),
|
|
72
|
+
`Failed to parse 'ResponseFileSearchCallInProgressStreamEvent' from JSON`,
|
|
73
|
+
);
|
|
74
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import {
|
|
8
|
+
collectExtraKeys as collectExtraKeys$,
|
|
9
|
+
safeParse,
|
|
10
|
+
} from "../../lib/schemas.js";
|
|
11
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
12
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* A `response.file_search_call.searching` server-sent event.
|
|
16
|
+
*/
|
|
17
|
+
export type ResponseFileSearchCallSearchingStreamEvent = {
|
|
18
|
+
/**
|
|
19
|
+
* ID of the output item this event refers to.
|
|
20
|
+
*/
|
|
21
|
+
itemId: string;
|
|
22
|
+
/**
|
|
23
|
+
* Index of the output item in the response output array.
|
|
24
|
+
*/
|
|
25
|
+
outputIndex: number;
|
|
26
|
+
/**
|
|
27
|
+
* Monotonically increasing sequence number for ordering events.
|
|
28
|
+
*/
|
|
29
|
+
sequenceNumber: number;
|
|
30
|
+
/**
|
|
31
|
+
* The event type. Discriminates the payload.
|
|
32
|
+
*/
|
|
33
|
+
type: "response.file_search_call.searching";
|
|
34
|
+
additionalProperties?: { [k: string]: any } | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const ResponseFileSearchCallSearchingStreamEvent$inboundSchema:
|
|
39
|
+
z.ZodType<ResponseFileSearchCallSearchingStreamEvent, z.ZodTypeDef, unknown> =
|
|
40
|
+
collectExtraKeys$(
|
|
41
|
+
z.object({
|
|
42
|
+
item_id: z.string(),
|
|
43
|
+
output_index: z.number().int(),
|
|
44
|
+
sequence_number: z.number().int(),
|
|
45
|
+
type: z.literal("response.file_search_call.searching"),
|
|
46
|
+
}).catchall(z.any()),
|
|
47
|
+
"additionalProperties",
|
|
48
|
+
true,
|
|
49
|
+
).transform((v) => {
|
|
50
|
+
return remap$(v, {
|
|
51
|
+
"item_id": "itemId",
|
|
52
|
+
"output_index": "outputIndex",
|
|
53
|
+
"sequence_number": "sequenceNumber",
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
export function responseFileSearchCallSearchingStreamEventFromJSON(
|
|
58
|
+
jsonString: string,
|
|
59
|
+
): SafeParseResult<
|
|
60
|
+
ResponseFileSearchCallSearchingStreamEvent,
|
|
61
|
+
SDKValidationError
|
|
62
|
+
> {
|
|
63
|
+
return safeParse(
|
|
64
|
+
jsonString,
|
|
65
|
+
(x) =>
|
|
66
|
+
ResponseFileSearchCallSearchingStreamEvent$inboundSchema.parse(
|
|
67
|
+
JSON.parse(x),
|
|
68
|
+
),
|
|
69
|
+
`Failed to parse 'ResponseFileSearchCallSearchingStreamEvent' from JSON`,
|
|
70
|
+
);
|
|
71
|
+
}
|
|
@@ -8,27 +8,13 @@ import {
|
|
|
8
8
|
collectExtraKeys as collectExtraKeys$,
|
|
9
9
|
safeParse,
|
|
10
10
|
} from "../../lib/schemas.js";
|
|
11
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
12
11
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
13
12
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
14
13
|
|
|
15
14
|
/**
|
|
16
|
-
*
|
|
15
|
+
* A `response.function_call_arguments.delta` server-sent event.
|
|
17
16
|
*/
|
|
18
|
-
export
|
|
19
|
-
ResponseFunctionCallArgumentsDelta: "response.function_call_arguments.delta",
|
|
20
|
-
} as const;
|
|
21
|
-
/**
|
|
22
|
-
* The event type. Matches the SSE `event` field.
|
|
23
|
-
*/
|
|
24
|
-
export type ResponseFunctionCallArgumentsDeltaStreamEventType = ClosedEnum<
|
|
25
|
-
typeof ResponseFunctionCallArgumentsDeltaStreamEventType
|
|
26
|
-
>;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* The event payload.
|
|
30
|
-
*/
|
|
31
|
-
export type ResponseFunctionCallArgumentsDeltaStreamEventData = {
|
|
17
|
+
export type ResponseFunctionCallArgumentsDeltaStreamEvent = {
|
|
32
18
|
/**
|
|
33
19
|
* Incremental text or argument chunk.
|
|
34
20
|
*/
|
|
@@ -50,32 +36,16 @@ export type ResponseFunctionCallArgumentsDeltaStreamEventData = {
|
|
|
50
36
|
*/
|
|
51
37
|
sequenceNumber: number;
|
|
52
38
|
/**
|
|
53
|
-
* The event type.
|
|
39
|
+
* The event type. Discriminates the payload.
|
|
54
40
|
*/
|
|
55
|
-
type:
|
|
41
|
+
type: "response.function_call_arguments.delta";
|
|
56
42
|
additionalProperties?: { [k: string]: any } | undefined;
|
|
57
43
|
};
|
|
58
44
|
|
|
59
|
-
export type ResponseFunctionCallArgumentsDeltaStreamEvent = {
|
|
60
|
-
/**
|
|
61
|
-
* The event payload.
|
|
62
|
-
*/
|
|
63
|
-
data: ResponseFunctionCallArgumentsDeltaStreamEventData;
|
|
64
|
-
/**
|
|
65
|
-
* The SSE event name, equal to the payload's `type`.
|
|
66
|
-
*/
|
|
67
|
-
event: "response.function_call_arguments.delta";
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
/** @internal */
|
|
71
|
-
export const ResponseFunctionCallArgumentsDeltaStreamEventType$inboundSchema:
|
|
72
|
-
z.ZodNativeEnum<typeof ResponseFunctionCallArgumentsDeltaStreamEventType> = z
|
|
73
|
-
.nativeEnum(ResponseFunctionCallArgumentsDeltaStreamEventType);
|
|
74
|
-
|
|
75
45
|
/** @internal */
|
|
76
|
-
export const
|
|
46
|
+
export const ResponseFunctionCallArgumentsDeltaStreamEvent$inboundSchema:
|
|
77
47
|
z.ZodType<
|
|
78
|
-
|
|
48
|
+
ResponseFunctionCallArgumentsDeltaStreamEvent,
|
|
79
49
|
z.ZodTypeDef,
|
|
80
50
|
unknown
|
|
81
51
|
> = collectExtraKeys$(
|
|
@@ -85,7 +55,7 @@ export const ResponseFunctionCallArgumentsDeltaStreamEventData$inboundSchema:
|
|
|
85
55
|
obfuscation: z.string().optional(),
|
|
86
56
|
output_index: z.number().int(),
|
|
87
57
|
sequence_number: z.number().int(),
|
|
88
|
-
type:
|
|
58
|
+
type: z.literal("response.function_call_arguments.delta"),
|
|
89
59
|
}).catchall(z.any()),
|
|
90
60
|
"additionalProperties",
|
|
91
61
|
true,
|
|
@@ -97,45 +67,6 @@ export const ResponseFunctionCallArgumentsDeltaStreamEventData$inboundSchema:
|
|
|
97
67
|
});
|
|
98
68
|
});
|
|
99
69
|
|
|
100
|
-
export function responseFunctionCallArgumentsDeltaStreamEventDataFromJSON(
|
|
101
|
-
jsonString: string,
|
|
102
|
-
): SafeParseResult<
|
|
103
|
-
ResponseFunctionCallArgumentsDeltaStreamEventData,
|
|
104
|
-
SDKValidationError
|
|
105
|
-
> {
|
|
106
|
-
return safeParse(
|
|
107
|
-
jsonString,
|
|
108
|
-
(x) =>
|
|
109
|
-
ResponseFunctionCallArgumentsDeltaStreamEventData$inboundSchema.parse(
|
|
110
|
-
JSON.parse(x),
|
|
111
|
-
),
|
|
112
|
-
`Failed to parse 'ResponseFunctionCallArgumentsDeltaStreamEventData' from JSON`,
|
|
113
|
-
);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
/** @internal */
|
|
117
|
-
export const ResponseFunctionCallArgumentsDeltaStreamEvent$inboundSchema:
|
|
118
|
-
z.ZodType<
|
|
119
|
-
ResponseFunctionCallArgumentsDeltaStreamEvent,
|
|
120
|
-
z.ZodTypeDef,
|
|
121
|
-
unknown
|
|
122
|
-
> = z.object({
|
|
123
|
-
data: z.unknown().transform((v, ctx) => {
|
|
124
|
-
if (typeof v !== "string") return v;
|
|
125
|
-
try {
|
|
126
|
-
return JSON.parse(v);
|
|
127
|
-
} catch (err) {
|
|
128
|
-
ctx.addIssue({ code: "custom", message: `malformed json: ${err}` });
|
|
129
|
-
return z.NEVER;
|
|
130
|
-
}
|
|
131
|
-
}).pipe(
|
|
132
|
-
z.lazy(() =>
|
|
133
|
-
ResponseFunctionCallArgumentsDeltaStreamEventData$inboundSchema
|
|
134
|
-
),
|
|
135
|
-
),
|
|
136
|
-
event: z.literal("response.function_call_arguments.delta"),
|
|
137
|
-
});
|
|
138
|
-
|
|
139
70
|
export function responseFunctionCallArgumentsDeltaStreamEventFromJSON(
|
|
140
71
|
jsonString: string,
|
|
141
72
|
): SafeParseResult<
|