@openrouter/sdk 0.1.2 → 0.1.4
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/esm/funcs/modelsListEmbeddings.d.ts +18 -0
- package/esm/funcs/modelsListEmbeddings.js +72 -0
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/models/activityitem.d.ts +0 -29
- package/esm/models/activityitem.js +0 -38
- package/esm/models/assistantmessage.d.ts +0 -24
- package/esm/models/assistantmessage.js +0 -22
- package/esm/models/badgatewayresponseerrordata.d.ts +0 -23
- package/esm/models/badgatewayresponseerrordata.js +0 -20
- package/esm/models/badrequestresponseerrordata.d.ts +0 -23
- package/esm/models/badrequestresponseerrordata.js +0 -20
- package/esm/models/chatcompletionfinishreason.d.ts +0 -12
- package/esm/models/chatcompletionfinishreason.js +1 -17
- package/esm/models/chaterror.d.ts +0 -39
- package/esm/models/chaterror.js +0 -40
- package/esm/models/chatgenerationparams.d.ts +3 -122
- package/esm/models/chatgenerationparams.js +7 -195
- package/esm/models/chatgenerationtokenusage.d.ts +6 -70
- package/esm/models/chatgenerationtokenusage.js +7 -89
- package/esm/models/chatmessagecontentitem.d.ts +5 -12
- package/esm/models/chatmessagecontentitem.js +7 -11
- package/esm/models/chatmessagecontentitemaudio.d.ts +0 -34
- package/esm/models/chatmessagecontentitemaudio.js +0 -33
- package/esm/models/chatmessagecontentitemimage.d.ts +0 -34
- package/esm/models/chatmessagecontentitemimage.js +0 -33
- package/esm/models/chatmessagecontentitemtext.d.ts +0 -12
- package/esm/models/chatmessagecontentitemtext.js +0 -11
- package/esm/models/chatmessagecontentitemvideo.d.ts +32 -0
- package/esm/models/chatmessagecontentitemvideo.js +46 -0
- package/esm/models/chatmessagetokenlogprob.d.ts +0 -43
- package/esm/models/chatmessagetokenlogprob.js +0 -45
- package/esm/models/chatmessagetokenlogprobs.d.ts +1 -21
- package/esm/models/chatmessagetokenlogprobs.js +1 -20
- package/esm/models/chatmessagetoolcall.d.ts +0 -24
- package/esm/models/chatmessagetoolcall.js +0 -22
- package/esm/models/chatresponse.d.ts +2 -27
- package/esm/models/chatresponse.js +2 -30
- package/esm/models/chatresponsechoice.d.ts +2 -24
- package/esm/models/chatresponsechoice.js +3 -28
- package/esm/models/chatstreamingchoice.d.ts +2 -24
- package/esm/models/chatstreamingchoice.js +3 -28
- package/esm/models/chatstreamingmessagechunk.d.ts +1 -40
- package/esm/models/chatstreamingmessagechunk.js +1 -40
- package/esm/models/chatstreamingmessagetoolcall.d.ts +0 -42
- package/esm/models/chatstreamingmessagetoolcall.js +0 -41
- package/esm/models/chatstreamingresponsechunk.d.ts +2 -67
- package/esm/models/chatstreamingresponsechunk.js +2 -69
- package/esm/models/chatstreamoptions.d.ts +0 -17
- package/esm/models/chatstreamoptions.js +0 -23
- package/esm/models/completionchoice.d.ts +1 -35
- package/esm/models/completionchoice.js +2 -43
- package/esm/models/completioncreateparams.d.ts +0 -122
- package/esm/models/completioncreateparams.js +2 -200
- package/esm/models/completionlogprobs.d.ts +0 -24
- package/esm/models/completionlogprobs.js +0 -27
- package/esm/models/completionresponse.d.ts +2 -27
- package/esm/models/completionresponse.js +2 -30
- package/esm/models/completionusage.d.ts +0 -21
- package/esm/models/completionusage.js +0 -26
- package/esm/models/createchargerequest.d.ts +0 -29
- package/esm/models/createchargerequest.js +0 -43
- package/esm/models/defaultparameters.d.ts +0 -21
- package/esm/models/defaultparameters.js +0 -25
- package/esm/models/edgenetworktimeoutresponseerrordata.d.ts +0 -23
- package/esm/models/edgenetworktimeoutresponseerrordata.js +0 -20
- package/esm/models/endpointstatus.d.ts +0 -12
- package/esm/models/endpointstatus.js +1 -17
- package/esm/models/errors/badgatewayresponseerror.d.ts +0 -19
- package/esm/models/errors/badgatewayresponseerror.js +0 -22
- package/esm/models/errors/badrequestresponseerror.d.ts +0 -19
- package/esm/models/errors/badrequestresponseerror.js +0 -22
- package/esm/models/errors/chaterror.d.ts +0 -18
- package/esm/models/errors/chaterror.js +0 -17
- package/esm/models/errors/edgenetworktimeoutresponseerror.d.ts +0 -19
- package/esm/models/errors/edgenetworktimeoutresponseerror.js +0 -22
- package/esm/models/errors/forbiddenresponseerror.d.ts +0 -19
- package/esm/models/errors/forbiddenresponseerror.js +0 -22
- package/esm/models/errors/internalserverresponseerror.d.ts +0 -19
- package/esm/models/errors/internalserverresponseerror.js +0 -22
- package/esm/models/errors/notfoundresponseerror.d.ts +0 -19
- package/esm/models/errors/notfoundresponseerror.js +0 -22
- package/esm/models/errors/payloadtoolargeresponseerror.d.ts +0 -19
- package/esm/models/errors/payloadtoolargeresponseerror.js +0 -22
- package/esm/models/errors/paymentrequiredresponseerror.d.ts +0 -19
- package/esm/models/errors/paymentrequiredresponseerror.js +0 -22
- package/esm/models/errors/provideroverloadedresponseerror.d.ts +0 -19
- package/esm/models/errors/provideroverloadedresponseerror.js +0 -22
- package/esm/models/errors/requesttimeoutresponseerror.d.ts +0 -19
- package/esm/models/errors/requesttimeoutresponseerror.js +0 -22
- package/esm/models/errors/serviceunavailableresponseerror.d.ts +0 -19
- package/esm/models/errors/serviceunavailableresponseerror.js +0 -22
- package/esm/models/errors/toomanyrequestsresponseerror.d.ts +0 -19
- package/esm/models/errors/toomanyrequestsresponseerror.js +0 -22
- package/esm/models/errors/unauthorizedresponseerror.d.ts +0 -19
- package/esm/models/errors/unauthorizedresponseerror.js +0 -22
- package/esm/models/errors/unprocessableentityresponseerror.d.ts +0 -19
- package/esm/models/errors/unprocessableentityresponseerror.js +0 -22
- package/esm/models/filecitation.d.ts +0 -26
- package/esm/models/filecitation.js +0 -22
- package/esm/models/filepath.d.ts +0 -26
- package/esm/models/filepath.js +0 -22
- package/esm/models/forbiddenresponseerrordata.d.ts +0 -23
- package/esm/models/forbiddenresponseerrordata.js +0 -20
- package/esm/models/imagegenerationstatus.d.ts +0 -10
- package/esm/models/imagegenerationstatus.js +0 -11
- package/esm/models/index.d.ts +2 -1
- package/esm/models/index.js +2 -1
- package/esm/models/inputmodality.d.ts +0 -12
- package/esm/models/inputmodality.js +1 -17
- package/esm/models/instructtype.d.ts +0 -12
- package/esm/models/instructtype.js +1 -17
- package/esm/models/internalserverresponseerrordata.d.ts +0 -23
- package/esm/models/internalserverresponseerrordata.js +0 -20
- package/esm/models/jsonschemaconfig.d.ts +0 -17
- package/esm/models/jsonschemaconfig.js +0 -22
- package/esm/models/listendpointsresponse.d.ts +1 -60
- package/esm/models/listendpointsresponse.js +5 -73
- package/esm/models/message.d.ts +0 -47
- package/esm/models/message.js +5 -67
- package/esm/models/model.d.ts +5 -36
- package/esm/models/model.js +6 -46
- package/esm/models/modelarchitecture.d.ts +0 -35
- package/esm/models/modelarchitecture.js +4 -49
- package/esm/models/modelgroup.d.ts +0 -12
- package/esm/models/modelgroup.js +1 -18
- package/esm/models/modelscountresponse.d.ts +0 -38
- package/esm/models/modelscountresponse.js +0 -36
- package/esm/models/modelslistresponse.d.ts +1 -20
- package/esm/models/modelslistresponse.js +1 -19
- package/esm/models/namedtoolchoice.d.ts +0 -32
- package/esm/models/namedtoolchoice.js +0 -38
- package/esm/models/notfoundresponseerrordata.d.ts +0 -23
- package/esm/models/notfoundresponseerrordata.js +0 -20
- package/esm/models/openairesponsesannotation.d.ts +0 -12
- package/esm/models/openairesponsesannotation.js +0 -11
- package/esm/models/openairesponsesincludable.d.ts +0 -12
- package/esm/models/openairesponsesincludable.js +0 -18
- package/esm/models/openairesponsesincompletedetails.d.ts +0 -31
- package/esm/models/openairesponsesincompletedetails.js +1 -35
- package/esm/models/openairesponsesinputunion.d.ts +6 -431
- package/esm/models/openairesponsesinputunion.js +7 -463
- package/esm/models/openairesponsesprompt.d.ts +0 -24
- package/esm/models/openairesponsesprompt.js +0 -22
- package/esm/models/openairesponsesreasoningconfig.d.ts +0 -20
- package/esm/models/openairesponsesreasoningconfig.js +2 -21
- package/esm/models/openairesponsesreasoningeffort.d.ts +0 -10
- package/esm/models/openairesponsesreasoningeffort.js +0 -11
- package/esm/models/openairesponsesrefusalcontent.d.ts +0 -26
- package/esm/models/openairesponsesrefusalcontent.js +0 -22
- package/esm/models/openairesponsesresponsestatus.d.ts +0 -12
- package/esm/models/openairesponsesresponsestatus.js +1 -17
- package/esm/models/openairesponsesservicetier.d.ts +0 -12
- package/esm/models/openairesponsesservicetier.js +1 -17
- package/esm/models/openairesponsestoolchoiceunion.d.ts +0 -132
- package/esm/models/openairesponsestoolchoiceunion.js +0 -110
- package/esm/models/openairesponsestruncation.d.ts +0 -12
- package/esm/models/openairesponsestruncation.js +1 -17
- package/esm/models/openresponseseasyinputmessage.d.ts +0 -142
- package/esm/models/openresponseseasyinputmessage.js +9 -198
- package/esm/models/openresponseserrorevent.d.ts +0 -39
- package/esm/models/openresponseserrorevent.js +0 -39
- package/esm/models/openresponsesfunctioncalloutput.d.ts +0 -33
- package/esm/models/openresponsesfunctioncalloutput.js +2 -42
- package/esm/models/openresponsesfunctiontoolcall.d.ts +0 -33
- package/esm/models/openresponsesfunctiontoolcall.js +2 -43
- package/esm/models/openresponsesimagegencallcompleted.d.ts +0 -38
- package/esm/models/openresponsesimagegencallcompleted.js +0 -40
- package/esm/models/openresponsesimagegencallgenerating.d.ts +0 -38
- package/esm/models/openresponsesimagegencallgenerating.js +0 -40
- package/esm/models/openresponsesimagegencallinprogress.d.ts +0 -38
- package/esm/models/openresponsesimagegencallinprogress.js +0 -40
- package/esm/models/openresponsesimagegencallpartialimage.d.ts +0 -40
- package/esm/models/openresponsesimagegencallpartialimage.js +0 -44
- package/esm/models/openresponsesinput.d.ts +0 -32
- package/esm/models/openresponsesinput.js +11 -71
- package/esm/models/openresponsesinputmessageitem.d.ts +0 -111
- package/esm/models/openresponsesinputmessageitem.js +8 -148
- package/esm/models/openresponseslogprobs.d.ts +1 -22
- package/esm/models/openresponseslogprobs.js +1 -25
- package/esm/models/openresponsesnonstreamingresponse.d.ts +13 -138
- package/esm/models/openresponsesnonstreamingresponse.js +16 -157
- package/esm/models/openresponsesreasoning.d.ts +0 -108
- package/esm/models/openresponsesreasoning.js +6 -130
- package/esm/models/openresponsesreasoningconfig.d.ts +0 -17
- package/esm/models/openresponsesreasoningconfig.js +2 -28
- package/esm/models/openresponsesreasoningdeltaevent.d.ts +0 -40
- package/esm/models/openresponsesreasoningdeltaevent.js +0 -43
- package/esm/models/openresponsesreasoningdoneevent.d.ts +0 -40
- package/esm/models/openresponsesreasoningdoneevent.js +0 -43
- package/esm/models/openresponsesreasoningsummarypartaddedevent.d.ts +1 -41
- package/esm/models/openresponsesreasoningsummarypartaddedevent.js +1 -44
- package/esm/models/openresponsesreasoningsummarytextdeltaevent.d.ts +0 -40
- package/esm/models/openresponsesreasoningsummarytextdeltaevent.js +0 -43
- package/esm/models/openresponsesreasoningsummarytextdoneevent.d.ts +0 -40
- package/esm/models/openresponsesreasoningsummarytextdoneevent.js +0 -43
- package/esm/models/openresponsesrequest.d.ts +5 -356
- package/esm/models/openresponsesrequest.js +18 -530
- package/esm/models/openresponsesresponsetext.d.ts +0 -29
- package/esm/models/openresponsesresponsetext.js +1 -40
- package/esm/models/openresponsesstreamevent.d.ts +18 -732
- package/esm/models/openresponsesstreamevent.js +18 -808
- package/esm/models/openresponsestoplogprobs.d.ts +0 -20
- package/esm/models/openresponsestoplogprobs.js +0 -19
- package/esm/models/openresponsesusage.d.ts +0 -85
- package/esm/models/openresponsesusage.js +0 -105
- package/esm/models/openresponseswebsearch20250826tool.d.ts +0 -38
- package/esm/models/openresponseswebsearch20250826tool.js +0 -33
- package/esm/models/openresponseswebsearchpreview20250311tool.d.ts +0 -26
- package/esm/models/openresponseswebsearchpreview20250311tool.js +0 -22
- package/esm/models/openresponseswebsearchpreviewtool.d.ts +0 -26
- package/esm/models/openresponseswebsearchpreviewtool.js +0 -22
- package/esm/models/openresponseswebsearchtool.d.ts +0 -38
- package/esm/models/openresponseswebsearchtool.js +0 -33
- package/esm/models/operations/createauthkeyscode.d.ts +0 -67
- package/esm/models/operations/createauthkeyscode.js +0 -89
- package/esm/models/operations/createcoinbasecharge.d.ts +0 -144
- package/esm/models/operations/createcoinbasecharge.js +0 -170
- package/esm/models/operations/createembeddings.d.ts +5 -330
- package/esm/models/operations/createembeddings.js +4 -404
- package/esm/models/operations/createkeys.d.ts +0 -83
- package/esm/models/operations/createkeys.js +0 -113
- package/esm/models/operations/createresponses.d.ts +0 -36
- package/esm/models/operations/createresponses.js +0 -37
- package/esm/models/operations/deletekeys.d.ts +0 -34
- package/esm/models/operations/deletekeys.js +0 -36
- package/esm/models/operations/exchangeauthcodeforapikey.d.ts +0 -47
- package/esm/models/operations/exchangeauthcodeforapikey.js +0 -66
- package/esm/models/operations/getcredits.d.ts +0 -17
- package/esm/models/operations/getcredits.js +0 -16
- package/esm/models/operations/getcurrentkey.d.ts +0 -74
- package/esm/models/operations/getcurrentkey.js +0 -87
- package/esm/models/operations/getgeneration.d.ts +0 -101
- package/esm/models/operations/getgeneration.js +1 -134
- package/esm/models/operations/getkey.d.ts +0 -70
- package/esm/models/operations/getkey.js +0 -87
- package/esm/models/operations/getmodels.d.ts +0 -17
- package/esm/models/operations/getmodels.js +0 -24
- package/esm/models/operations/getparameters.d.ts +0 -93
- package/esm/models/operations/getparameters.js +0 -112
- package/esm/models/operations/getuseractivity.d.ts +0 -34
- package/esm/models/operations/getuseractivity.js +0 -36
- package/esm/models/operations/list.d.ts +0 -70
- package/esm/models/operations/list.js +0 -93
- package/esm/models/operations/listendpoints.d.ts +0 -34
- package/esm/models/operations/listendpoints.js +0 -37
- package/esm/models/operations/listendpointszdr.d.ts +0 -19
- package/esm/models/operations/listendpointszdr.js +0 -18
- package/esm/models/operations/listmodelsuser.d.ts +0 -17
- package/esm/models/operations/listmodelsuser.js +0 -19
- package/esm/models/operations/listproviders.d.ts +0 -42
- package/esm/models/operations/listproviders.js +0 -46
- package/esm/models/operations/sendchatcompletionrequest.d.ts +0 -17
- package/esm/models/operations/sendchatcompletionrequest.js +0 -16
- package/esm/models/operations/updatekeys.d.ts +0 -97
- package/esm/models/operations/updatekeys.js +0 -136
- package/esm/models/outputitemimagegenerationcall.d.ts +0 -38
- package/esm/models/outputitemimagegenerationcall.js +1 -35
- package/esm/models/outputmessage.d.ts +2 -139
- package/esm/models/outputmessage.js +2 -135
- package/esm/models/outputmodality.d.ts +0 -12
- package/esm/models/outputmodality.js +1 -17
- package/esm/models/parameter.d.ts +0 -12
- package/esm/models/parameter.js +1 -18
- package/esm/models/payloadtoolargeresponseerrordata.d.ts +0 -23
- package/esm/models/payloadtoolargeresponseerrordata.js +0 -20
- package/esm/models/paymentrequiredresponseerrordata.d.ts +0 -23
- package/esm/models/paymentrequiredresponseerrordata.js +0 -20
- package/esm/models/perrequestlimits.d.ts +0 -20
- package/esm/models/perrequestlimits.js +0 -24
- package/esm/models/providername.d.ts +0 -10
- package/esm/models/providername.js +0 -11
- package/esm/models/provideroverloadedresponseerrordata.d.ts +0 -23
- package/esm/models/provideroverloadedresponseerrordata.js +0 -20
- package/esm/models/publicendpoint.d.ts +0 -73
- package/esm/models/publicendpoint.js +4 -100
- package/esm/models/publicpricing.d.ts +0 -30
- package/esm/models/publicpricing.js +0 -38
- package/esm/models/quantization.d.ts +0 -12
- package/esm/models/quantization.js +0 -18
- package/esm/models/reasoningsummarytext.d.ts +0 -26
- package/esm/models/reasoningsummarytext.js +0 -22
- package/esm/models/reasoningsummaryverbosity.d.ts +0 -10
- package/esm/models/reasoningsummaryverbosity.js +0 -11
- package/esm/models/reasoningtextcontent.d.ts +0 -26
- package/esm/models/reasoningtextcontent.js +0 -22
- package/esm/models/requesttimeoutresponseerrordata.d.ts +0 -23
- package/esm/models/requesttimeoutresponseerrordata.js +0 -20
- package/esm/models/responseformatjsonschema.d.ts +0 -17
- package/esm/models/responseformatjsonschema.js +1 -25
- package/esm/models/responseformattextconfig.d.ts +0 -12
- package/esm/models/responseformattextconfig.js +0 -11
- package/esm/models/responseformattextgrammar.d.ts +0 -17
- package/esm/models/responseformattextgrammar.js +0 -20
- package/esm/models/responseinputaudio.d.ts +0 -48
- package/esm/models/responseinputaudio.js +0 -44
- package/esm/models/responseinputfile.d.ts +0 -26
- package/esm/models/responseinputfile.js +0 -22
- package/esm/models/responseinputimage.d.ts +0 -36
- package/esm/models/responseinputimage.js +0 -33
- package/esm/models/responseinputtext.d.ts +0 -26
- package/esm/models/responseinputtext.js +0 -22
- package/esm/models/responseoutputtext.d.ts +0 -26
- package/esm/models/responseoutputtext.js +0 -22
- package/esm/models/responseserrorfield.d.ts +0 -32
- package/esm/models/responseserrorfield.js +1 -36
- package/esm/models/responsesformatjsonobject.d.ts +0 -26
- package/esm/models/responsesformatjsonobject.js +0 -22
- package/esm/models/responsesformattext.d.ts +0 -26
- package/esm/models/responsesformattext.js +0 -22
- package/esm/models/responsesformattextjsonschemaconfig.d.ts +0 -26
- package/esm/models/responsesformattextjsonschemaconfig.js +0 -22
- package/esm/models/responsesimagegenerationcall.d.ts +0 -26
- package/esm/models/responsesimagegenerationcall.js +0 -22
- package/esm/models/responsesoutputitem.d.ts +6 -23
- package/esm/models/responsesoutputitem.js +6 -29
- package/esm/models/responsesoutputitemfilesearchcall.d.ts +0 -26
- package/esm/models/responsesoutputitemfilesearchcall.js +0 -22
- package/esm/models/responsesoutputitemfunctioncall.d.ts +0 -80
- package/esm/models/responsesoutputitemfunctioncall.js +0 -66
- package/esm/models/responsesoutputitemreasoning.d.ts +0 -80
- package/esm/models/responsesoutputitemreasoning.js +0 -66
- package/esm/models/responsesoutputmessage.d.ts +0 -106
- package/esm/models/responsesoutputmessage.js +0 -88
- package/esm/models/responsessearchcontextsize.d.ts +0 -10
- package/esm/models/responsessearchcontextsize.js +0 -11
- package/esm/models/responseswebsearchcalloutput.d.ts +0 -26
- package/esm/models/responseswebsearchcalloutput.js +0 -22
- package/esm/models/responseswebsearchuserlocation.d.ts +0 -26
- package/esm/models/responseswebsearchuserlocation.js +0 -22
- package/esm/models/responsetextconfig.d.ts +1 -33
- package/esm/models/responsetextconfig.js +2 -37
- package/esm/models/security.d.ts +0 -17
- package/esm/models/security.js +0 -19
- package/esm/models/serviceunavailableresponseerrordata.d.ts +0 -23
- package/esm/models/serviceunavailableresponseerrordata.js +0 -20
- package/esm/models/systemmessage.d.ts +0 -32
- package/esm/models/systemmessage.js +1 -42
- package/esm/models/toolcallstatus.d.ts +0 -10
- package/esm/models/toolcallstatus.js +0 -11
- package/esm/models/tooldefinitionjson.d.ts +34 -0
- package/esm/models/tooldefinitionjson.js +23 -0
- package/esm/models/toolresponsemessage.d.ts +0 -32
- package/esm/models/toolresponsemessage.js +1 -42
- package/esm/models/toomanyrequestsresponseerrordata.d.ts +0 -23
- package/esm/models/toomanyrequestsresponseerrordata.js +0 -20
- package/esm/models/topproviderinfo.d.ts +0 -21
- package/esm/models/topproviderinfo.js +0 -26
- package/esm/models/unauthorizedresponseerrordata.d.ts +0 -23
- package/esm/models/unauthorizedresponseerrordata.js +0 -20
- package/esm/models/unprocessableentityresponseerrordata.d.ts +0 -23
- package/esm/models/unprocessableentityresponseerrordata.js +0 -20
- package/esm/models/urlcitation.d.ts +0 -26
- package/esm/models/urlcitation.js +0 -22
- package/esm/models/usermessage.d.ts +0 -32
- package/esm/models/usermessage.js +1 -42
- package/esm/models/websearchpreviewtooluserlocation.d.ts +0 -26
- package/esm/models/websearchpreviewtooluserlocation.js +0 -22
- package/esm/models/websearchstatus.d.ts +0 -10
- package/esm/models/websearchstatus.js +0 -11
- package/esm/react-query/index.d.ts +1 -0
- package/esm/react-query/index.js +1 -0
- package/esm/react-query/modelsListEmbeddings.d.ts +29 -0
- package/esm/react-query/modelsListEmbeddings.js +66 -0
- package/esm/sdk/models.d.ts +7 -0
- package/esm/sdk/models.js +10 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/esm/models/tool.d.ts +0 -66
- package/esm/models/tool.js +0 -65
|
@@ -11,26 +11,6 @@ export const TopLogprob$inboundSchema = z
|
|
|
11
11
|
logprob: z.number(),
|
|
12
12
|
bytes: z.nullable(z.array(z.number())),
|
|
13
13
|
});
|
|
14
|
-
/** @internal */
|
|
15
|
-
export const TopLogprob$outboundSchema = z.object({
|
|
16
|
-
token: z.string(),
|
|
17
|
-
logprob: z.number(),
|
|
18
|
-
bytes: z.nullable(z.array(z.number())),
|
|
19
|
-
});
|
|
20
|
-
/**
|
|
21
|
-
* @internal
|
|
22
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
23
|
-
*/
|
|
24
|
-
export var TopLogprob$;
|
|
25
|
-
(function (TopLogprob$) {
|
|
26
|
-
/** @deprecated use `TopLogprob$inboundSchema` instead. */
|
|
27
|
-
TopLogprob$.inboundSchema = TopLogprob$inboundSchema;
|
|
28
|
-
/** @deprecated use `TopLogprob$outboundSchema` instead. */
|
|
29
|
-
TopLogprob$.outboundSchema = TopLogprob$outboundSchema;
|
|
30
|
-
})(TopLogprob$ || (TopLogprob$ = {}));
|
|
31
|
-
export function topLogprobToJSON(topLogprob) {
|
|
32
|
-
return JSON.stringify(TopLogprob$outboundSchema.parse(topLogprob));
|
|
33
|
-
}
|
|
34
14
|
export function topLogprobFromJSON(jsonString) {
|
|
35
15
|
return safeParse(jsonString, (x) => TopLogprob$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TopLogprob' from JSON`);
|
|
36
16
|
}
|
|
@@ -45,31 +25,6 @@ export const ChatMessageTokenLogprob$inboundSchema = z.object({
|
|
|
45
25
|
"top_logprobs": "topLogprobs",
|
|
46
26
|
});
|
|
47
27
|
});
|
|
48
|
-
/** @internal */
|
|
49
|
-
export const ChatMessageTokenLogprob$outboundSchema = z.object({
|
|
50
|
-
token: z.string(),
|
|
51
|
-
logprob: z.number(),
|
|
52
|
-
bytes: z.nullable(z.array(z.number())),
|
|
53
|
-
topLogprobs: z.array(z.lazy(() => TopLogprob$outboundSchema)),
|
|
54
|
-
}).transform((v) => {
|
|
55
|
-
return remap$(v, {
|
|
56
|
-
topLogprobs: "top_logprobs",
|
|
57
|
-
});
|
|
58
|
-
});
|
|
59
|
-
/**
|
|
60
|
-
* @internal
|
|
61
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
62
|
-
*/
|
|
63
|
-
export var ChatMessageTokenLogprob$;
|
|
64
|
-
(function (ChatMessageTokenLogprob$) {
|
|
65
|
-
/** @deprecated use `ChatMessageTokenLogprob$inboundSchema` instead. */
|
|
66
|
-
ChatMessageTokenLogprob$.inboundSchema = ChatMessageTokenLogprob$inboundSchema;
|
|
67
|
-
/** @deprecated use `ChatMessageTokenLogprob$outboundSchema` instead. */
|
|
68
|
-
ChatMessageTokenLogprob$.outboundSchema = ChatMessageTokenLogprob$outboundSchema;
|
|
69
|
-
})(ChatMessageTokenLogprob$ || (ChatMessageTokenLogprob$ = {}));
|
|
70
|
-
export function chatMessageTokenLogprobToJSON(chatMessageTokenLogprob) {
|
|
71
|
-
return JSON.stringify(ChatMessageTokenLogprob$outboundSchema.parse(chatMessageTokenLogprob));
|
|
72
|
-
}
|
|
73
28
|
export function chatMessageTokenLogprobFromJSON(jsonString) {
|
|
74
29
|
return safeParse(jsonString, (x) => ChatMessageTokenLogprob$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ChatMessageTokenLogprob' from JSON`);
|
|
75
30
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
2
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
-
import { ChatMessageTokenLogprob
|
|
3
|
+
import { ChatMessageTokenLogprob } from "./chatmessagetokenlogprob.js";
|
|
4
4
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
5
|
export type ChatMessageTokenLogprobs = {
|
|
6
6
|
content: Array<ChatMessageTokenLogprob> | null;
|
|
@@ -8,25 +8,5 @@ export type ChatMessageTokenLogprobs = {
|
|
|
8
8
|
};
|
|
9
9
|
/** @internal */
|
|
10
10
|
export declare const ChatMessageTokenLogprobs$inboundSchema: z.ZodType<ChatMessageTokenLogprobs, unknown>;
|
|
11
|
-
/** @internal */
|
|
12
|
-
export type ChatMessageTokenLogprobs$Outbound = {
|
|
13
|
-
content: Array<ChatMessageTokenLogprob$Outbound> | null;
|
|
14
|
-
refusal: Array<ChatMessageTokenLogprob$Outbound> | null;
|
|
15
|
-
};
|
|
16
|
-
/** @internal */
|
|
17
|
-
export declare const ChatMessageTokenLogprobs$outboundSchema: z.ZodType<ChatMessageTokenLogprobs$Outbound, ChatMessageTokenLogprobs>;
|
|
18
|
-
/**
|
|
19
|
-
* @internal
|
|
20
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
21
|
-
*/
|
|
22
|
-
export declare namespace ChatMessageTokenLogprobs$ {
|
|
23
|
-
/** @deprecated use `ChatMessageTokenLogprobs$inboundSchema` instead. */
|
|
24
|
-
const inboundSchema: z.ZodType<ChatMessageTokenLogprobs, unknown, z.core.$ZodTypeInternals<ChatMessageTokenLogprobs, unknown>>;
|
|
25
|
-
/** @deprecated use `ChatMessageTokenLogprobs$outboundSchema` instead. */
|
|
26
|
-
const outboundSchema: z.ZodType<ChatMessageTokenLogprobs$Outbound, ChatMessageTokenLogprobs, z.core.$ZodTypeInternals<ChatMessageTokenLogprobs$Outbound, ChatMessageTokenLogprobs>>;
|
|
27
|
-
/** @deprecated use `ChatMessageTokenLogprobs$Outbound` instead. */
|
|
28
|
-
type Outbound = ChatMessageTokenLogprobs$Outbound;
|
|
29
|
-
}
|
|
30
|
-
export declare function chatMessageTokenLogprobsToJSON(chatMessageTokenLogprobs: ChatMessageTokenLogprobs): string;
|
|
31
11
|
export declare function chatMessageTokenLogprobsFromJSON(jsonString: string): SafeParseResult<ChatMessageTokenLogprobs, SDKValidationError>;
|
|
32
12
|
//# sourceMappingURL=chatmessagetokenlogprobs.d.ts.map
|
|
@@ -3,31 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as z from "zod/v4";
|
|
5
5
|
import { safeParse } from "../lib/schemas.js";
|
|
6
|
-
import { ChatMessageTokenLogprob$inboundSchema,
|
|
6
|
+
import { ChatMessageTokenLogprob$inboundSchema, } from "./chatmessagetokenlogprob.js";
|
|
7
7
|
/** @internal */
|
|
8
8
|
export const ChatMessageTokenLogprobs$inboundSchema = z.object({
|
|
9
9
|
content: z.nullable(z.array(ChatMessageTokenLogprob$inboundSchema)),
|
|
10
10
|
refusal: z.nullable(z.array(ChatMessageTokenLogprob$inboundSchema)),
|
|
11
11
|
});
|
|
12
|
-
/** @internal */
|
|
13
|
-
export const ChatMessageTokenLogprobs$outboundSchema = z.object({
|
|
14
|
-
content: z.nullable(z.array(ChatMessageTokenLogprob$outboundSchema)),
|
|
15
|
-
refusal: z.nullable(z.array(ChatMessageTokenLogprob$outboundSchema)),
|
|
16
|
-
});
|
|
17
|
-
/**
|
|
18
|
-
* @internal
|
|
19
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
20
|
-
*/
|
|
21
|
-
export var ChatMessageTokenLogprobs$;
|
|
22
|
-
(function (ChatMessageTokenLogprobs$) {
|
|
23
|
-
/** @deprecated use `ChatMessageTokenLogprobs$inboundSchema` instead. */
|
|
24
|
-
ChatMessageTokenLogprobs$.inboundSchema = ChatMessageTokenLogprobs$inboundSchema;
|
|
25
|
-
/** @deprecated use `ChatMessageTokenLogprobs$outboundSchema` instead. */
|
|
26
|
-
ChatMessageTokenLogprobs$.outboundSchema = ChatMessageTokenLogprobs$outboundSchema;
|
|
27
|
-
})(ChatMessageTokenLogprobs$ || (ChatMessageTokenLogprobs$ = {}));
|
|
28
|
-
export function chatMessageTokenLogprobsToJSON(chatMessageTokenLogprobs) {
|
|
29
|
-
return JSON.stringify(ChatMessageTokenLogprobs$outboundSchema.parse(chatMessageTokenLogprobs));
|
|
30
|
-
}
|
|
31
12
|
export function chatMessageTokenLogprobsFromJSON(jsonString) {
|
|
32
13
|
return safeParse(jsonString, (x) => ChatMessageTokenLogprobs$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ChatMessageTokenLogprobs' from JSON`);
|
|
33
14
|
}
|
|
@@ -19,18 +19,6 @@ export type ChatMessageToolCallFunction$Outbound = {
|
|
|
19
19
|
};
|
|
20
20
|
/** @internal */
|
|
21
21
|
export declare const ChatMessageToolCallFunction$outboundSchema: z.ZodType<ChatMessageToolCallFunction$Outbound, ChatMessageToolCallFunction>;
|
|
22
|
-
/**
|
|
23
|
-
* @internal
|
|
24
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
25
|
-
*/
|
|
26
|
-
export declare namespace ChatMessageToolCallFunction$ {
|
|
27
|
-
/** @deprecated use `ChatMessageToolCallFunction$inboundSchema` instead. */
|
|
28
|
-
const inboundSchema: z.ZodType<ChatMessageToolCallFunction, unknown, z.core.$ZodTypeInternals<ChatMessageToolCallFunction, unknown>>;
|
|
29
|
-
/** @deprecated use `ChatMessageToolCallFunction$outboundSchema` instead. */
|
|
30
|
-
const outboundSchema: z.ZodType<ChatMessageToolCallFunction$Outbound, ChatMessageToolCallFunction, z.core.$ZodTypeInternals<ChatMessageToolCallFunction$Outbound, ChatMessageToolCallFunction>>;
|
|
31
|
-
/** @deprecated use `ChatMessageToolCallFunction$Outbound` instead. */
|
|
32
|
-
type Outbound = ChatMessageToolCallFunction$Outbound;
|
|
33
|
-
}
|
|
34
22
|
export declare function chatMessageToolCallFunctionToJSON(chatMessageToolCallFunction: ChatMessageToolCallFunction): string;
|
|
35
23
|
export declare function chatMessageToolCallFunctionFromJSON(jsonString: string): SafeParseResult<ChatMessageToolCallFunction, SDKValidationError>;
|
|
36
24
|
/** @internal */
|
|
@@ -43,18 +31,6 @@ export type ChatMessageToolCall$Outbound = {
|
|
|
43
31
|
};
|
|
44
32
|
/** @internal */
|
|
45
33
|
export declare const ChatMessageToolCall$outboundSchema: z.ZodType<ChatMessageToolCall$Outbound, ChatMessageToolCall>;
|
|
46
|
-
/**
|
|
47
|
-
* @internal
|
|
48
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
49
|
-
*/
|
|
50
|
-
export declare namespace ChatMessageToolCall$ {
|
|
51
|
-
/** @deprecated use `ChatMessageToolCall$inboundSchema` instead. */
|
|
52
|
-
const inboundSchema: z.ZodType<ChatMessageToolCall, unknown, z.core.$ZodTypeInternals<ChatMessageToolCall, unknown>>;
|
|
53
|
-
/** @deprecated use `ChatMessageToolCall$outboundSchema` instead. */
|
|
54
|
-
const outboundSchema: z.ZodType<ChatMessageToolCall$Outbound, ChatMessageToolCall, z.core.$ZodTypeInternals<ChatMessageToolCall$Outbound, ChatMessageToolCall>>;
|
|
55
|
-
/** @deprecated use `ChatMessageToolCall$Outbound` instead. */
|
|
56
|
-
type Outbound = ChatMessageToolCall$Outbound;
|
|
57
|
-
}
|
|
58
34
|
export declare function chatMessageToolCallToJSON(chatMessageToolCall: ChatMessageToolCall): string;
|
|
59
35
|
export declare function chatMessageToolCallFromJSON(jsonString: string): SafeParseResult<ChatMessageToolCall, SDKValidationError>;
|
|
60
36
|
//# sourceMappingURL=chatmessagetoolcall.d.ts.map
|
|
@@ -13,17 +13,6 @@ export const ChatMessageToolCallFunction$outboundSchema = z.object({
|
|
|
13
13
|
name: z.string(),
|
|
14
14
|
arguments: z.string(),
|
|
15
15
|
});
|
|
16
|
-
/**
|
|
17
|
-
* @internal
|
|
18
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
19
|
-
*/
|
|
20
|
-
export var ChatMessageToolCallFunction$;
|
|
21
|
-
(function (ChatMessageToolCallFunction$) {
|
|
22
|
-
/** @deprecated use `ChatMessageToolCallFunction$inboundSchema` instead. */
|
|
23
|
-
ChatMessageToolCallFunction$.inboundSchema = ChatMessageToolCallFunction$inboundSchema;
|
|
24
|
-
/** @deprecated use `ChatMessageToolCallFunction$outboundSchema` instead. */
|
|
25
|
-
ChatMessageToolCallFunction$.outboundSchema = ChatMessageToolCallFunction$outboundSchema;
|
|
26
|
-
})(ChatMessageToolCallFunction$ || (ChatMessageToolCallFunction$ = {}));
|
|
27
16
|
export function chatMessageToolCallFunctionToJSON(chatMessageToolCallFunction) {
|
|
28
17
|
return JSON.stringify(ChatMessageToolCallFunction$outboundSchema.parse(chatMessageToolCallFunction));
|
|
29
18
|
}
|
|
@@ -42,17 +31,6 @@ export const ChatMessageToolCall$outboundSchema = z.object({
|
|
|
42
31
|
type: z.literal("function"),
|
|
43
32
|
function: z.lazy(() => ChatMessageToolCallFunction$outboundSchema),
|
|
44
33
|
});
|
|
45
|
-
/**
|
|
46
|
-
* @internal
|
|
47
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
48
|
-
*/
|
|
49
|
-
export var ChatMessageToolCall$;
|
|
50
|
-
(function (ChatMessageToolCall$) {
|
|
51
|
-
/** @deprecated use `ChatMessageToolCall$inboundSchema` instead. */
|
|
52
|
-
ChatMessageToolCall$.inboundSchema = ChatMessageToolCall$inboundSchema;
|
|
53
|
-
/** @deprecated use `ChatMessageToolCall$outboundSchema` instead. */
|
|
54
|
-
ChatMessageToolCall$.outboundSchema = ChatMessageToolCall$outboundSchema;
|
|
55
|
-
})(ChatMessageToolCall$ || (ChatMessageToolCall$ = {}));
|
|
56
34
|
export function chatMessageToolCallToJSON(chatMessageToolCall) {
|
|
57
35
|
return JSON.stringify(ChatMessageToolCall$outboundSchema.parse(chatMessageToolCall));
|
|
58
36
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
2
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
-
import { ChatGenerationTokenUsage
|
|
4
|
-
import { ChatResponseChoice
|
|
3
|
+
import { ChatGenerationTokenUsage } from "./chatgenerationtokenusage.js";
|
|
4
|
+
import { ChatResponseChoice } from "./chatresponsechoice.js";
|
|
5
5
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
6
6
|
export type ChatResponse = {
|
|
7
7
|
id: string;
|
|
@@ -14,30 +14,5 @@ export type ChatResponse = {
|
|
|
14
14
|
};
|
|
15
15
|
/** @internal */
|
|
16
16
|
export declare const ChatResponse$inboundSchema: z.ZodType<ChatResponse, unknown>;
|
|
17
|
-
/** @internal */
|
|
18
|
-
export type ChatResponse$Outbound = {
|
|
19
|
-
id: string;
|
|
20
|
-
choices: Array<ChatResponseChoice$Outbound>;
|
|
21
|
-
created: number;
|
|
22
|
-
model: string;
|
|
23
|
-
object: "chat.completion";
|
|
24
|
-
system_fingerprint?: string | null | undefined;
|
|
25
|
-
usage?: ChatGenerationTokenUsage$Outbound | undefined;
|
|
26
|
-
};
|
|
27
|
-
/** @internal */
|
|
28
|
-
export declare const ChatResponse$outboundSchema: z.ZodType<ChatResponse$Outbound, ChatResponse>;
|
|
29
|
-
/**
|
|
30
|
-
* @internal
|
|
31
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
32
|
-
*/
|
|
33
|
-
export declare namespace ChatResponse$ {
|
|
34
|
-
/** @deprecated use `ChatResponse$inboundSchema` instead. */
|
|
35
|
-
const inboundSchema: z.ZodType<ChatResponse, unknown, z.core.$ZodTypeInternals<ChatResponse, unknown>>;
|
|
36
|
-
/** @deprecated use `ChatResponse$outboundSchema` instead. */
|
|
37
|
-
const outboundSchema: z.ZodType<ChatResponse$Outbound, ChatResponse, z.core.$ZodTypeInternals<ChatResponse$Outbound, ChatResponse>>;
|
|
38
|
-
/** @deprecated use `ChatResponse$Outbound` instead. */
|
|
39
|
-
type Outbound = ChatResponse$Outbound;
|
|
40
|
-
}
|
|
41
|
-
export declare function chatResponseToJSON(chatResponse: ChatResponse): string;
|
|
42
17
|
export declare function chatResponseFromJSON(jsonString: string): SafeParseResult<ChatResponse, SDKValidationError>;
|
|
43
18
|
//# sourceMappingURL=chatresponse.d.ts.map
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
import * as z from "zod/v4";
|
|
5
5
|
import { remap as remap$ } from "../lib/primitives.js";
|
|
6
6
|
import { safeParse } from "../lib/schemas.js";
|
|
7
|
-
import { ChatGenerationTokenUsage$inboundSchema,
|
|
8
|
-
import { ChatResponseChoice$inboundSchema,
|
|
7
|
+
import { ChatGenerationTokenUsage$inboundSchema, } from "./chatgenerationtokenusage.js";
|
|
8
|
+
import { ChatResponseChoice$inboundSchema, } from "./chatresponsechoice.js";
|
|
9
9
|
/** @internal */
|
|
10
10
|
export const ChatResponse$inboundSchema = z
|
|
11
11
|
.object({
|
|
@@ -21,34 +21,6 @@ export const ChatResponse$inboundSchema = z
|
|
|
21
21
|
"system_fingerprint": "systemFingerprint",
|
|
22
22
|
});
|
|
23
23
|
});
|
|
24
|
-
/** @internal */
|
|
25
|
-
export const ChatResponse$outboundSchema = z.object({
|
|
26
|
-
id: z.string(),
|
|
27
|
-
choices: z.array(ChatResponseChoice$outboundSchema),
|
|
28
|
-
created: z.number(),
|
|
29
|
-
model: z.string(),
|
|
30
|
-
object: z.literal("chat.completion"),
|
|
31
|
-
systemFingerprint: z.nullable(z.string()).optional(),
|
|
32
|
-
usage: ChatGenerationTokenUsage$outboundSchema.optional(),
|
|
33
|
-
}).transform((v) => {
|
|
34
|
-
return remap$(v, {
|
|
35
|
-
systemFingerprint: "system_fingerprint",
|
|
36
|
-
});
|
|
37
|
-
});
|
|
38
|
-
/**
|
|
39
|
-
* @internal
|
|
40
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
41
|
-
*/
|
|
42
|
-
export var ChatResponse$;
|
|
43
|
-
(function (ChatResponse$) {
|
|
44
|
-
/** @deprecated use `ChatResponse$inboundSchema` instead. */
|
|
45
|
-
ChatResponse$.inboundSchema = ChatResponse$inboundSchema;
|
|
46
|
-
/** @deprecated use `ChatResponse$outboundSchema` instead. */
|
|
47
|
-
ChatResponse$.outboundSchema = ChatResponse$outboundSchema;
|
|
48
|
-
})(ChatResponse$ || (ChatResponse$ = {}));
|
|
49
|
-
export function chatResponseToJSON(chatResponse) {
|
|
50
|
-
return JSON.stringify(ChatResponse$outboundSchema.parse(chatResponse));
|
|
51
|
-
}
|
|
52
24
|
export function chatResponseFromJSON(jsonString) {
|
|
53
25
|
return safeParse(jsonString, (x) => ChatResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ChatResponse' from JSON`);
|
|
54
26
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
2
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
-
import { AssistantMessage
|
|
3
|
+
import { AssistantMessage } from "./assistantmessage.js";
|
|
4
4
|
import { ChatCompletionFinishReason } from "./chatcompletionfinishreason.js";
|
|
5
|
-
import { ChatMessageTokenLogprobs
|
|
5
|
+
import { ChatMessageTokenLogprobs } from "./chatmessagetokenlogprobs.js";
|
|
6
6
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
7
7
|
export type ChatResponseChoice = {
|
|
8
8
|
finishReason: ChatCompletionFinishReason | null;
|
|
@@ -12,27 +12,5 @@ export type ChatResponseChoice = {
|
|
|
12
12
|
};
|
|
13
13
|
/** @internal */
|
|
14
14
|
export declare const ChatResponseChoice$inboundSchema: z.ZodType<ChatResponseChoice, unknown>;
|
|
15
|
-
/** @internal */
|
|
16
|
-
export type ChatResponseChoice$Outbound = {
|
|
17
|
-
finish_reason: string | null;
|
|
18
|
-
index: number;
|
|
19
|
-
message: AssistantMessage$Outbound;
|
|
20
|
-
logprobs?: ChatMessageTokenLogprobs$Outbound | null | undefined;
|
|
21
|
-
};
|
|
22
|
-
/** @internal */
|
|
23
|
-
export declare const ChatResponseChoice$outboundSchema: z.ZodType<ChatResponseChoice$Outbound, ChatResponseChoice>;
|
|
24
|
-
/**
|
|
25
|
-
* @internal
|
|
26
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
27
|
-
*/
|
|
28
|
-
export declare namespace ChatResponseChoice$ {
|
|
29
|
-
/** @deprecated use `ChatResponseChoice$inboundSchema` instead. */
|
|
30
|
-
const inboundSchema: z.ZodType<ChatResponseChoice, unknown, z.core.$ZodTypeInternals<ChatResponseChoice, unknown>>;
|
|
31
|
-
/** @deprecated use `ChatResponseChoice$outboundSchema` instead. */
|
|
32
|
-
const outboundSchema: z.ZodType<ChatResponseChoice$Outbound, ChatResponseChoice, z.core.$ZodTypeInternals<ChatResponseChoice$Outbound, ChatResponseChoice>>;
|
|
33
|
-
/** @deprecated use `ChatResponseChoice$Outbound` instead. */
|
|
34
|
-
type Outbound = ChatResponseChoice$Outbound;
|
|
35
|
-
}
|
|
36
|
-
export declare function chatResponseChoiceToJSON(chatResponseChoice: ChatResponseChoice): string;
|
|
37
15
|
export declare function chatResponseChoiceFromJSON(jsonString: string): SafeParseResult<ChatResponseChoice, SDKValidationError>;
|
|
38
16
|
//# sourceMappingURL=chatresponsechoice.d.ts.map
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
import * as z from "zod/v4";
|
|
5
5
|
import { remap as remap$ } from "../lib/primitives.js";
|
|
6
6
|
import { safeParse } from "../lib/schemas.js";
|
|
7
|
-
import { AssistantMessage$inboundSchema,
|
|
8
|
-
import { ChatCompletionFinishReason$inboundSchema,
|
|
9
|
-
import { ChatMessageTokenLogprobs$inboundSchema,
|
|
7
|
+
import { AssistantMessage$inboundSchema, } from "./assistantmessage.js";
|
|
8
|
+
import { ChatCompletionFinishReason$inboundSchema, } from "./chatcompletionfinishreason.js";
|
|
9
|
+
import { ChatMessageTokenLogprobs$inboundSchema, } from "./chatmessagetokenlogprobs.js";
|
|
10
10
|
/** @internal */
|
|
11
11
|
export const ChatResponseChoice$inboundSchema = z.object({
|
|
12
12
|
finish_reason: z.nullable(ChatCompletionFinishReason$inboundSchema),
|
|
@@ -18,31 +18,6 @@ export const ChatResponseChoice$inboundSchema = z.object({
|
|
|
18
18
|
"finish_reason": "finishReason",
|
|
19
19
|
});
|
|
20
20
|
});
|
|
21
|
-
/** @internal */
|
|
22
|
-
export const ChatResponseChoice$outboundSchema = z.object({
|
|
23
|
-
finishReason: z.nullable(ChatCompletionFinishReason$outboundSchema),
|
|
24
|
-
index: z.number(),
|
|
25
|
-
message: AssistantMessage$outboundSchema,
|
|
26
|
-
logprobs: z.nullable(ChatMessageTokenLogprobs$outboundSchema).optional(),
|
|
27
|
-
}).transform((v) => {
|
|
28
|
-
return remap$(v, {
|
|
29
|
-
finishReason: "finish_reason",
|
|
30
|
-
});
|
|
31
|
-
});
|
|
32
|
-
/**
|
|
33
|
-
* @internal
|
|
34
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
35
|
-
*/
|
|
36
|
-
export var ChatResponseChoice$;
|
|
37
|
-
(function (ChatResponseChoice$) {
|
|
38
|
-
/** @deprecated use `ChatResponseChoice$inboundSchema` instead. */
|
|
39
|
-
ChatResponseChoice$.inboundSchema = ChatResponseChoice$inboundSchema;
|
|
40
|
-
/** @deprecated use `ChatResponseChoice$outboundSchema` instead. */
|
|
41
|
-
ChatResponseChoice$.outboundSchema = ChatResponseChoice$outboundSchema;
|
|
42
|
-
})(ChatResponseChoice$ || (ChatResponseChoice$ = {}));
|
|
43
|
-
export function chatResponseChoiceToJSON(chatResponseChoice) {
|
|
44
|
-
return JSON.stringify(ChatResponseChoice$outboundSchema.parse(chatResponseChoice));
|
|
45
|
-
}
|
|
46
21
|
export function chatResponseChoiceFromJSON(jsonString) {
|
|
47
22
|
return safeParse(jsonString, (x) => ChatResponseChoice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ChatResponseChoice' from JSON`);
|
|
48
23
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
2
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
3
|
import { ChatCompletionFinishReason } from "./chatcompletionfinishreason.js";
|
|
4
|
-
import { ChatMessageTokenLogprobs
|
|
5
|
-
import { ChatStreamingMessageChunk
|
|
4
|
+
import { ChatMessageTokenLogprobs } from "./chatmessagetokenlogprobs.js";
|
|
5
|
+
import { ChatStreamingMessageChunk } from "./chatstreamingmessagechunk.js";
|
|
6
6
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
7
7
|
export type ChatStreamingChoice = {
|
|
8
8
|
delta: ChatStreamingMessageChunk;
|
|
@@ -12,27 +12,5 @@ export type ChatStreamingChoice = {
|
|
|
12
12
|
};
|
|
13
13
|
/** @internal */
|
|
14
14
|
export declare const ChatStreamingChoice$inboundSchema: z.ZodType<ChatStreamingChoice, unknown>;
|
|
15
|
-
/** @internal */
|
|
16
|
-
export type ChatStreamingChoice$Outbound = {
|
|
17
|
-
delta: ChatStreamingMessageChunk$Outbound;
|
|
18
|
-
finish_reason: string | null;
|
|
19
|
-
index: number;
|
|
20
|
-
logprobs?: ChatMessageTokenLogprobs$Outbound | null | undefined;
|
|
21
|
-
};
|
|
22
|
-
/** @internal */
|
|
23
|
-
export declare const ChatStreamingChoice$outboundSchema: z.ZodType<ChatStreamingChoice$Outbound, ChatStreamingChoice>;
|
|
24
|
-
/**
|
|
25
|
-
* @internal
|
|
26
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
27
|
-
*/
|
|
28
|
-
export declare namespace ChatStreamingChoice$ {
|
|
29
|
-
/** @deprecated use `ChatStreamingChoice$inboundSchema` instead. */
|
|
30
|
-
const inboundSchema: z.ZodType<ChatStreamingChoice, unknown, z.core.$ZodTypeInternals<ChatStreamingChoice, unknown>>;
|
|
31
|
-
/** @deprecated use `ChatStreamingChoice$outboundSchema` instead. */
|
|
32
|
-
const outboundSchema: z.ZodType<ChatStreamingChoice$Outbound, ChatStreamingChoice, z.core.$ZodTypeInternals<ChatStreamingChoice$Outbound, ChatStreamingChoice>>;
|
|
33
|
-
/** @deprecated use `ChatStreamingChoice$Outbound` instead. */
|
|
34
|
-
type Outbound = ChatStreamingChoice$Outbound;
|
|
35
|
-
}
|
|
36
|
-
export declare function chatStreamingChoiceToJSON(chatStreamingChoice: ChatStreamingChoice): string;
|
|
37
15
|
export declare function chatStreamingChoiceFromJSON(jsonString: string): SafeParseResult<ChatStreamingChoice, SDKValidationError>;
|
|
38
16
|
//# sourceMappingURL=chatstreamingchoice.d.ts.map
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
import * as z from "zod/v4";
|
|
5
5
|
import { remap as remap$ } from "../lib/primitives.js";
|
|
6
6
|
import { safeParse } from "../lib/schemas.js";
|
|
7
|
-
import { ChatCompletionFinishReason$inboundSchema,
|
|
8
|
-
import { ChatMessageTokenLogprobs$inboundSchema,
|
|
9
|
-
import { ChatStreamingMessageChunk$inboundSchema,
|
|
7
|
+
import { ChatCompletionFinishReason$inboundSchema, } from "./chatcompletionfinishreason.js";
|
|
8
|
+
import { ChatMessageTokenLogprobs$inboundSchema, } from "./chatmessagetokenlogprobs.js";
|
|
9
|
+
import { ChatStreamingMessageChunk$inboundSchema, } from "./chatstreamingmessagechunk.js";
|
|
10
10
|
/** @internal */
|
|
11
11
|
export const ChatStreamingChoice$inboundSchema = z.object({
|
|
12
12
|
delta: ChatStreamingMessageChunk$inboundSchema,
|
|
@@ -18,31 +18,6 @@ export const ChatStreamingChoice$inboundSchema = z.object({
|
|
|
18
18
|
"finish_reason": "finishReason",
|
|
19
19
|
});
|
|
20
20
|
});
|
|
21
|
-
/** @internal */
|
|
22
|
-
export const ChatStreamingChoice$outboundSchema = z.object({
|
|
23
|
-
delta: ChatStreamingMessageChunk$outboundSchema,
|
|
24
|
-
finishReason: z.nullable(ChatCompletionFinishReason$outboundSchema),
|
|
25
|
-
index: z.number(),
|
|
26
|
-
logprobs: z.nullable(ChatMessageTokenLogprobs$outboundSchema).optional(),
|
|
27
|
-
}).transform((v) => {
|
|
28
|
-
return remap$(v, {
|
|
29
|
-
finishReason: "finish_reason",
|
|
30
|
-
});
|
|
31
|
-
});
|
|
32
|
-
/**
|
|
33
|
-
* @internal
|
|
34
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
35
|
-
*/
|
|
36
|
-
export var ChatStreamingChoice$;
|
|
37
|
-
(function (ChatStreamingChoice$) {
|
|
38
|
-
/** @deprecated use `ChatStreamingChoice$inboundSchema` instead. */
|
|
39
|
-
ChatStreamingChoice$.inboundSchema = ChatStreamingChoice$inboundSchema;
|
|
40
|
-
/** @deprecated use `ChatStreamingChoice$outboundSchema` instead. */
|
|
41
|
-
ChatStreamingChoice$.outboundSchema = ChatStreamingChoice$outboundSchema;
|
|
42
|
-
})(ChatStreamingChoice$ || (ChatStreamingChoice$ = {}));
|
|
43
|
-
export function chatStreamingChoiceToJSON(chatStreamingChoice) {
|
|
44
|
-
return JSON.stringify(ChatStreamingChoice$outboundSchema.parse(chatStreamingChoice));
|
|
45
|
-
}
|
|
46
21
|
export function chatStreamingChoiceFromJSON(jsonString) {
|
|
47
22
|
return safeParse(jsonString, (x) => ChatStreamingChoice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ChatStreamingChoice' from JSON`);
|
|
48
23
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
2
|
import { ClosedEnum } from "../types/enums.js";
|
|
3
3
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
|
-
import { ChatStreamingMessageToolCall
|
|
4
|
+
import { ChatStreamingMessageToolCall } from "./chatstreamingmessagetoolcall.js";
|
|
5
5
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
6
6
|
export declare const ChatStreamingMessageChunkRole: {
|
|
7
7
|
readonly Assistant: "assistant";
|
|
@@ -17,45 +17,6 @@ export type ChatStreamingMessageChunk = {
|
|
|
17
17
|
/** @internal */
|
|
18
18
|
export declare const ChatStreamingMessageChunkRole$inboundSchema: z.ZodEnum<typeof ChatStreamingMessageChunkRole>;
|
|
19
19
|
/** @internal */
|
|
20
|
-
export declare const ChatStreamingMessageChunkRole$outboundSchema: z.ZodEnum<typeof ChatStreamingMessageChunkRole>;
|
|
21
|
-
/**
|
|
22
|
-
* @internal
|
|
23
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
24
|
-
*/
|
|
25
|
-
export declare namespace ChatStreamingMessageChunkRole$ {
|
|
26
|
-
/** @deprecated use `ChatStreamingMessageChunkRole$inboundSchema` instead. */
|
|
27
|
-
const inboundSchema: z.ZodEnum<{
|
|
28
|
-
readonly Assistant: "assistant";
|
|
29
|
-
}>;
|
|
30
|
-
/** @deprecated use `ChatStreamingMessageChunkRole$outboundSchema` instead. */
|
|
31
|
-
const outboundSchema: z.ZodEnum<{
|
|
32
|
-
readonly Assistant: "assistant";
|
|
33
|
-
}>;
|
|
34
|
-
}
|
|
35
|
-
/** @internal */
|
|
36
20
|
export declare const ChatStreamingMessageChunk$inboundSchema: z.ZodType<ChatStreamingMessageChunk, unknown>;
|
|
37
|
-
/** @internal */
|
|
38
|
-
export type ChatStreamingMessageChunk$Outbound = {
|
|
39
|
-
role?: string | undefined;
|
|
40
|
-
content?: string | null | undefined;
|
|
41
|
-
reasoning?: string | null | undefined;
|
|
42
|
-
refusal?: string | null | undefined;
|
|
43
|
-
tool_calls?: Array<ChatStreamingMessageToolCall$Outbound> | undefined;
|
|
44
|
-
};
|
|
45
|
-
/** @internal */
|
|
46
|
-
export declare const ChatStreamingMessageChunk$outboundSchema: z.ZodType<ChatStreamingMessageChunk$Outbound, ChatStreamingMessageChunk>;
|
|
47
|
-
/**
|
|
48
|
-
* @internal
|
|
49
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
50
|
-
*/
|
|
51
|
-
export declare namespace ChatStreamingMessageChunk$ {
|
|
52
|
-
/** @deprecated use `ChatStreamingMessageChunk$inboundSchema` instead. */
|
|
53
|
-
const inboundSchema: z.ZodType<ChatStreamingMessageChunk, unknown, z.core.$ZodTypeInternals<ChatStreamingMessageChunk, unknown>>;
|
|
54
|
-
/** @deprecated use `ChatStreamingMessageChunk$outboundSchema` instead. */
|
|
55
|
-
const outboundSchema: z.ZodType<ChatStreamingMessageChunk$Outbound, ChatStreamingMessageChunk, z.core.$ZodTypeInternals<ChatStreamingMessageChunk$Outbound, ChatStreamingMessageChunk>>;
|
|
56
|
-
/** @deprecated use `ChatStreamingMessageChunk$Outbound` instead. */
|
|
57
|
-
type Outbound = ChatStreamingMessageChunk$Outbound;
|
|
58
|
-
}
|
|
59
|
-
export declare function chatStreamingMessageChunkToJSON(chatStreamingMessageChunk: ChatStreamingMessageChunk): string;
|
|
60
21
|
export declare function chatStreamingMessageChunkFromJSON(jsonString: string): SafeParseResult<ChatStreamingMessageChunk, SDKValidationError>;
|
|
61
22
|
//# sourceMappingURL=chatstreamingmessagechunk.d.ts.map
|
|
@@ -4,26 +4,13 @@
|
|
|
4
4
|
import * as z from "zod/v4";
|
|
5
5
|
import { remap as remap$ } from "../lib/primitives.js";
|
|
6
6
|
import { safeParse } from "../lib/schemas.js";
|
|
7
|
-
import { ChatStreamingMessageToolCall$inboundSchema,
|
|
7
|
+
import { ChatStreamingMessageToolCall$inboundSchema, } from "./chatstreamingmessagetoolcall.js";
|
|
8
8
|
export const ChatStreamingMessageChunkRole = {
|
|
9
9
|
Assistant: "assistant",
|
|
10
10
|
};
|
|
11
11
|
/** @internal */
|
|
12
12
|
export const ChatStreamingMessageChunkRole$inboundSchema = z.enum(ChatStreamingMessageChunkRole);
|
|
13
13
|
/** @internal */
|
|
14
|
-
export const ChatStreamingMessageChunkRole$outboundSchema = ChatStreamingMessageChunkRole$inboundSchema;
|
|
15
|
-
/**
|
|
16
|
-
* @internal
|
|
17
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
18
|
-
*/
|
|
19
|
-
export var ChatStreamingMessageChunkRole$;
|
|
20
|
-
(function (ChatStreamingMessageChunkRole$) {
|
|
21
|
-
/** @deprecated use `ChatStreamingMessageChunkRole$inboundSchema` instead. */
|
|
22
|
-
ChatStreamingMessageChunkRole$.inboundSchema = ChatStreamingMessageChunkRole$inboundSchema;
|
|
23
|
-
/** @deprecated use `ChatStreamingMessageChunkRole$outboundSchema` instead. */
|
|
24
|
-
ChatStreamingMessageChunkRole$.outboundSchema = ChatStreamingMessageChunkRole$outboundSchema;
|
|
25
|
-
})(ChatStreamingMessageChunkRole$ || (ChatStreamingMessageChunkRole$ = {}));
|
|
26
|
-
/** @internal */
|
|
27
14
|
export const ChatStreamingMessageChunk$inboundSchema = z.object({
|
|
28
15
|
role: ChatStreamingMessageChunkRole$inboundSchema.optional(),
|
|
29
16
|
content: z.nullable(z.string()).optional(),
|
|
@@ -35,32 +22,6 @@ export const ChatStreamingMessageChunk$inboundSchema = z.object({
|
|
|
35
22
|
"tool_calls": "toolCalls",
|
|
36
23
|
});
|
|
37
24
|
});
|
|
38
|
-
/** @internal */
|
|
39
|
-
export const ChatStreamingMessageChunk$outboundSchema = z.object({
|
|
40
|
-
role: ChatStreamingMessageChunkRole$outboundSchema.optional(),
|
|
41
|
-
content: z.nullable(z.string()).optional(),
|
|
42
|
-
reasoning: z.nullable(z.string()).optional(),
|
|
43
|
-
refusal: z.nullable(z.string()).optional(),
|
|
44
|
-
toolCalls: z.array(ChatStreamingMessageToolCall$outboundSchema).optional(),
|
|
45
|
-
}).transform((v) => {
|
|
46
|
-
return remap$(v, {
|
|
47
|
-
toolCalls: "tool_calls",
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
/**
|
|
51
|
-
* @internal
|
|
52
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
53
|
-
*/
|
|
54
|
-
export var ChatStreamingMessageChunk$;
|
|
55
|
-
(function (ChatStreamingMessageChunk$) {
|
|
56
|
-
/** @deprecated use `ChatStreamingMessageChunk$inboundSchema` instead. */
|
|
57
|
-
ChatStreamingMessageChunk$.inboundSchema = ChatStreamingMessageChunk$inboundSchema;
|
|
58
|
-
/** @deprecated use `ChatStreamingMessageChunk$outboundSchema` instead. */
|
|
59
|
-
ChatStreamingMessageChunk$.outboundSchema = ChatStreamingMessageChunk$outboundSchema;
|
|
60
|
-
})(ChatStreamingMessageChunk$ || (ChatStreamingMessageChunk$ = {}));
|
|
61
|
-
export function chatStreamingMessageChunkToJSON(chatStreamingMessageChunk) {
|
|
62
|
-
return JSON.stringify(ChatStreamingMessageChunk$outboundSchema.parse(chatStreamingMessageChunk));
|
|
63
|
-
}
|
|
64
25
|
export function chatStreamingMessageChunkFromJSON(jsonString) {
|
|
65
26
|
return safeParse(jsonString, (x) => ChatStreamingMessageChunk$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ChatStreamingMessageChunk' from JSON`);
|
|
66
27
|
}
|
|
@@ -13,50 +13,8 @@ export type ChatStreamingMessageToolCall = {
|
|
|
13
13
|
};
|
|
14
14
|
/** @internal */
|
|
15
15
|
export declare const ChatStreamingMessageToolCallFunction$inboundSchema: z.ZodType<ChatStreamingMessageToolCallFunction, unknown>;
|
|
16
|
-
/** @internal */
|
|
17
|
-
export type ChatStreamingMessageToolCallFunction$Outbound = {
|
|
18
|
-
name?: string | undefined;
|
|
19
|
-
arguments?: string | undefined;
|
|
20
|
-
};
|
|
21
|
-
/** @internal */
|
|
22
|
-
export declare const ChatStreamingMessageToolCallFunction$outboundSchema: z.ZodType<ChatStreamingMessageToolCallFunction$Outbound, ChatStreamingMessageToolCallFunction>;
|
|
23
|
-
/**
|
|
24
|
-
* @internal
|
|
25
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
26
|
-
*/
|
|
27
|
-
export declare namespace ChatStreamingMessageToolCallFunction$ {
|
|
28
|
-
/** @deprecated use `ChatStreamingMessageToolCallFunction$inboundSchema` instead. */
|
|
29
|
-
const inboundSchema: z.ZodType<ChatStreamingMessageToolCallFunction, unknown, z.core.$ZodTypeInternals<ChatStreamingMessageToolCallFunction, unknown>>;
|
|
30
|
-
/** @deprecated use `ChatStreamingMessageToolCallFunction$outboundSchema` instead. */
|
|
31
|
-
const outboundSchema: z.ZodType<ChatStreamingMessageToolCallFunction$Outbound, ChatStreamingMessageToolCallFunction, z.core.$ZodTypeInternals<ChatStreamingMessageToolCallFunction$Outbound, ChatStreamingMessageToolCallFunction>>;
|
|
32
|
-
/** @deprecated use `ChatStreamingMessageToolCallFunction$Outbound` instead. */
|
|
33
|
-
type Outbound = ChatStreamingMessageToolCallFunction$Outbound;
|
|
34
|
-
}
|
|
35
|
-
export declare function chatStreamingMessageToolCallFunctionToJSON(chatStreamingMessageToolCallFunction: ChatStreamingMessageToolCallFunction): string;
|
|
36
16
|
export declare function chatStreamingMessageToolCallFunctionFromJSON(jsonString: string): SafeParseResult<ChatStreamingMessageToolCallFunction, SDKValidationError>;
|
|
37
17
|
/** @internal */
|
|
38
18
|
export declare const ChatStreamingMessageToolCall$inboundSchema: z.ZodType<ChatStreamingMessageToolCall, unknown>;
|
|
39
|
-
/** @internal */
|
|
40
|
-
export type ChatStreamingMessageToolCall$Outbound = {
|
|
41
|
-
index: number;
|
|
42
|
-
id?: string | undefined;
|
|
43
|
-
type?: "function" | undefined;
|
|
44
|
-
function?: ChatStreamingMessageToolCallFunction$Outbound | undefined;
|
|
45
|
-
};
|
|
46
|
-
/** @internal */
|
|
47
|
-
export declare const ChatStreamingMessageToolCall$outboundSchema: z.ZodType<ChatStreamingMessageToolCall$Outbound, ChatStreamingMessageToolCall>;
|
|
48
|
-
/**
|
|
49
|
-
* @internal
|
|
50
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
51
|
-
*/
|
|
52
|
-
export declare namespace ChatStreamingMessageToolCall$ {
|
|
53
|
-
/** @deprecated use `ChatStreamingMessageToolCall$inboundSchema` instead. */
|
|
54
|
-
const inboundSchema: z.ZodType<ChatStreamingMessageToolCall, unknown, z.core.$ZodTypeInternals<ChatStreamingMessageToolCall, unknown>>;
|
|
55
|
-
/** @deprecated use `ChatStreamingMessageToolCall$outboundSchema` instead. */
|
|
56
|
-
const outboundSchema: z.ZodType<ChatStreamingMessageToolCall$Outbound, ChatStreamingMessageToolCall, z.core.$ZodTypeInternals<ChatStreamingMessageToolCall$Outbound, ChatStreamingMessageToolCall>>;
|
|
57
|
-
/** @deprecated use `ChatStreamingMessageToolCall$Outbound` instead. */
|
|
58
|
-
type Outbound = ChatStreamingMessageToolCall$Outbound;
|
|
59
|
-
}
|
|
60
|
-
export declare function chatStreamingMessageToolCallToJSON(chatStreamingMessageToolCall: ChatStreamingMessageToolCall): string;
|
|
61
19
|
export declare function chatStreamingMessageToolCallFromJSON(jsonString: string): SafeParseResult<ChatStreamingMessageToolCall, SDKValidationError>;
|
|
62
20
|
//# sourceMappingURL=chatstreamingmessagetoolcall.d.ts.map
|