@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
|
@@ -8,25 +8,6 @@ export const ChatStreamingMessageToolCallFunction$inboundSchema = z.object({
|
|
|
8
8
|
name: z.string().optional(),
|
|
9
9
|
arguments: z.string().optional(),
|
|
10
10
|
});
|
|
11
|
-
/** @internal */
|
|
12
|
-
export const ChatStreamingMessageToolCallFunction$outboundSchema = z.object({
|
|
13
|
-
name: z.string().optional(),
|
|
14
|
-
arguments: z.string().optional(),
|
|
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 ChatStreamingMessageToolCallFunction$;
|
|
21
|
-
(function (ChatStreamingMessageToolCallFunction$) {
|
|
22
|
-
/** @deprecated use `ChatStreamingMessageToolCallFunction$inboundSchema` instead. */
|
|
23
|
-
ChatStreamingMessageToolCallFunction$.inboundSchema = ChatStreamingMessageToolCallFunction$inboundSchema;
|
|
24
|
-
/** @deprecated use `ChatStreamingMessageToolCallFunction$outboundSchema` instead. */
|
|
25
|
-
ChatStreamingMessageToolCallFunction$.outboundSchema = ChatStreamingMessageToolCallFunction$outboundSchema;
|
|
26
|
-
})(ChatStreamingMessageToolCallFunction$ || (ChatStreamingMessageToolCallFunction$ = {}));
|
|
27
|
-
export function chatStreamingMessageToolCallFunctionToJSON(chatStreamingMessageToolCallFunction) {
|
|
28
|
-
return JSON.stringify(ChatStreamingMessageToolCallFunction$outboundSchema.parse(chatStreamingMessageToolCallFunction));
|
|
29
|
-
}
|
|
30
11
|
export function chatStreamingMessageToolCallFunctionFromJSON(jsonString) {
|
|
31
12
|
return safeParse(jsonString, (x) => ChatStreamingMessageToolCallFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ChatStreamingMessageToolCallFunction' from JSON`);
|
|
32
13
|
}
|
|
@@ -38,28 +19,6 @@ export const ChatStreamingMessageToolCall$inboundSchema = z.object({
|
|
|
38
19
|
function: z.lazy(() => ChatStreamingMessageToolCallFunction$inboundSchema)
|
|
39
20
|
.optional(),
|
|
40
21
|
});
|
|
41
|
-
/** @internal */
|
|
42
|
-
export const ChatStreamingMessageToolCall$outboundSchema = z.object({
|
|
43
|
-
index: z.number(),
|
|
44
|
-
id: z.string().optional(),
|
|
45
|
-
type: z.literal("function").optional(),
|
|
46
|
-
function: z.lazy(() => ChatStreamingMessageToolCallFunction$outboundSchema)
|
|
47
|
-
.optional(),
|
|
48
|
-
});
|
|
49
|
-
/**
|
|
50
|
-
* @internal
|
|
51
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
52
|
-
*/
|
|
53
|
-
export var ChatStreamingMessageToolCall$;
|
|
54
|
-
(function (ChatStreamingMessageToolCall$) {
|
|
55
|
-
/** @deprecated use `ChatStreamingMessageToolCall$inboundSchema` instead. */
|
|
56
|
-
ChatStreamingMessageToolCall$.inboundSchema = ChatStreamingMessageToolCall$inboundSchema;
|
|
57
|
-
/** @deprecated use `ChatStreamingMessageToolCall$outboundSchema` instead. */
|
|
58
|
-
ChatStreamingMessageToolCall$.outboundSchema = ChatStreamingMessageToolCall$outboundSchema;
|
|
59
|
-
})(ChatStreamingMessageToolCall$ || (ChatStreamingMessageToolCall$ = {}));
|
|
60
|
-
export function chatStreamingMessageToolCallToJSON(chatStreamingMessageToolCall) {
|
|
61
|
-
return JSON.stringify(ChatStreamingMessageToolCall$outboundSchema.parse(chatStreamingMessageToolCall));
|
|
62
|
-
}
|
|
63
22
|
export function chatStreamingMessageToolCallFromJSON(jsonString) {
|
|
64
23
|
return safeParse(jsonString, (x) => ChatStreamingMessageToolCall$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ChatStreamingMessageToolCall' from JSON`);
|
|
65
24
|
}
|
|
@@ -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 { ChatStreamingChoice
|
|
3
|
+
import { ChatGenerationTokenUsage } from "./chatgenerationtokenusage.js";
|
|
4
|
+
import { ChatStreamingChoice } from "./chatstreamingchoice.js";
|
|
5
5
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
6
6
|
export type ChatStreamingResponseChunkError = {
|
|
7
7
|
message: string;
|
|
@@ -22,76 +22,11 @@ export type ChatStreamingResponseChunk = {
|
|
|
22
22
|
};
|
|
23
23
|
/** @internal */
|
|
24
24
|
export declare const ChatStreamingResponseChunkError$inboundSchema: z.ZodType<ChatStreamingResponseChunkError, unknown>;
|
|
25
|
-
/** @internal */
|
|
26
|
-
export type ChatStreamingResponseChunkError$Outbound = {
|
|
27
|
-
message: string;
|
|
28
|
-
code: number;
|
|
29
|
-
};
|
|
30
|
-
/** @internal */
|
|
31
|
-
export declare const ChatStreamingResponseChunkError$outboundSchema: z.ZodType<ChatStreamingResponseChunkError$Outbound, ChatStreamingResponseChunkError>;
|
|
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 declare namespace ChatStreamingResponseChunkError$ {
|
|
37
|
-
/** @deprecated use `ChatStreamingResponseChunkError$inboundSchema` instead. */
|
|
38
|
-
const inboundSchema: z.ZodType<ChatStreamingResponseChunkError, unknown, z.core.$ZodTypeInternals<ChatStreamingResponseChunkError, unknown>>;
|
|
39
|
-
/** @deprecated use `ChatStreamingResponseChunkError$outboundSchema` instead. */
|
|
40
|
-
const outboundSchema: z.ZodType<ChatStreamingResponseChunkError$Outbound, ChatStreamingResponseChunkError, z.core.$ZodTypeInternals<ChatStreamingResponseChunkError$Outbound, ChatStreamingResponseChunkError>>;
|
|
41
|
-
/** @deprecated use `ChatStreamingResponseChunkError$Outbound` instead. */
|
|
42
|
-
type Outbound = ChatStreamingResponseChunkError$Outbound;
|
|
43
|
-
}
|
|
44
|
-
export declare function chatStreamingResponseChunkErrorToJSON(chatStreamingResponseChunkError: ChatStreamingResponseChunkError): string;
|
|
45
25
|
export declare function chatStreamingResponseChunkErrorFromJSON(jsonString: string): SafeParseResult<ChatStreamingResponseChunkError, SDKValidationError>;
|
|
46
26
|
/** @internal */
|
|
47
27
|
export declare const ChatStreamingResponseChunkData$inboundSchema: z.ZodType<ChatStreamingResponseChunkData, unknown>;
|
|
48
|
-
/** @internal */
|
|
49
|
-
export type ChatStreamingResponseChunkData$Outbound = {
|
|
50
|
-
id: string;
|
|
51
|
-
choices: Array<ChatStreamingChoice$Outbound>;
|
|
52
|
-
created: number;
|
|
53
|
-
model: string;
|
|
54
|
-
object: "chat.completion.chunk";
|
|
55
|
-
system_fingerprint?: string | null | undefined;
|
|
56
|
-
error?: ChatStreamingResponseChunkError$Outbound | undefined;
|
|
57
|
-
usage?: ChatGenerationTokenUsage$Outbound | undefined;
|
|
58
|
-
};
|
|
59
|
-
/** @internal */
|
|
60
|
-
export declare const ChatStreamingResponseChunkData$outboundSchema: z.ZodType<ChatStreamingResponseChunkData$Outbound, ChatStreamingResponseChunkData>;
|
|
61
|
-
/**
|
|
62
|
-
* @internal
|
|
63
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
64
|
-
*/
|
|
65
|
-
export declare namespace ChatStreamingResponseChunkData$ {
|
|
66
|
-
/** @deprecated use `ChatStreamingResponseChunkData$inboundSchema` instead. */
|
|
67
|
-
const inboundSchema: z.ZodType<ChatStreamingResponseChunkData, unknown, z.core.$ZodTypeInternals<ChatStreamingResponseChunkData, unknown>>;
|
|
68
|
-
/** @deprecated use `ChatStreamingResponseChunkData$outboundSchema` instead. */
|
|
69
|
-
const outboundSchema: z.ZodType<ChatStreamingResponseChunkData$Outbound, ChatStreamingResponseChunkData, z.core.$ZodTypeInternals<ChatStreamingResponseChunkData$Outbound, ChatStreamingResponseChunkData>>;
|
|
70
|
-
/** @deprecated use `ChatStreamingResponseChunkData$Outbound` instead. */
|
|
71
|
-
type Outbound = ChatStreamingResponseChunkData$Outbound;
|
|
72
|
-
}
|
|
73
|
-
export declare function chatStreamingResponseChunkDataToJSON(chatStreamingResponseChunkData: ChatStreamingResponseChunkData): string;
|
|
74
28
|
export declare function chatStreamingResponseChunkDataFromJSON(jsonString: string): SafeParseResult<ChatStreamingResponseChunkData, SDKValidationError>;
|
|
75
29
|
/** @internal */
|
|
76
30
|
export declare const ChatStreamingResponseChunk$inboundSchema: z.ZodType<ChatStreamingResponseChunk, unknown>;
|
|
77
|
-
/** @internal */
|
|
78
|
-
export type ChatStreamingResponseChunk$Outbound = {
|
|
79
|
-
data: ChatStreamingResponseChunkData$Outbound;
|
|
80
|
-
};
|
|
81
|
-
/** @internal */
|
|
82
|
-
export declare const ChatStreamingResponseChunk$outboundSchema: z.ZodType<ChatStreamingResponseChunk$Outbound, ChatStreamingResponseChunk>;
|
|
83
|
-
/**
|
|
84
|
-
* @internal
|
|
85
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
86
|
-
*/
|
|
87
|
-
export declare namespace ChatStreamingResponseChunk$ {
|
|
88
|
-
/** @deprecated use `ChatStreamingResponseChunk$inboundSchema` instead. */
|
|
89
|
-
const inboundSchema: z.ZodType<ChatStreamingResponseChunk, unknown, z.core.$ZodTypeInternals<ChatStreamingResponseChunk, unknown>>;
|
|
90
|
-
/** @deprecated use `ChatStreamingResponseChunk$outboundSchema` instead. */
|
|
91
|
-
const outboundSchema: z.ZodType<ChatStreamingResponseChunk$Outbound, ChatStreamingResponseChunk, z.core.$ZodTypeInternals<ChatStreamingResponseChunk$Outbound, ChatStreamingResponseChunk>>;
|
|
92
|
-
/** @deprecated use `ChatStreamingResponseChunk$Outbound` instead. */
|
|
93
|
-
type Outbound = ChatStreamingResponseChunk$Outbound;
|
|
94
|
-
}
|
|
95
|
-
export declare function chatStreamingResponseChunkToJSON(chatStreamingResponseChunk: ChatStreamingResponseChunk): string;
|
|
96
31
|
export declare function chatStreamingResponseChunkFromJSON(jsonString: string): SafeParseResult<ChatStreamingResponseChunk, SDKValidationError>;
|
|
97
32
|
//# sourceMappingURL=chatstreamingresponsechunk.d.ts.map
|
|
@@ -4,32 +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 { ChatGenerationTokenUsage$inboundSchema,
|
|
8
|
-
import { ChatStreamingChoice$inboundSchema,
|
|
7
|
+
import { ChatGenerationTokenUsage$inboundSchema, } from "./chatgenerationtokenusage.js";
|
|
8
|
+
import { ChatStreamingChoice$inboundSchema, } from "./chatstreamingchoice.js";
|
|
9
9
|
/** @internal */
|
|
10
10
|
export const ChatStreamingResponseChunkError$inboundSchema = z.object({
|
|
11
11
|
message: z.string(),
|
|
12
12
|
code: z.number(),
|
|
13
13
|
});
|
|
14
|
-
/** @internal */
|
|
15
|
-
export const ChatStreamingResponseChunkError$outboundSchema = z.object({
|
|
16
|
-
message: z.string(),
|
|
17
|
-
code: z.number(),
|
|
18
|
-
});
|
|
19
|
-
/**
|
|
20
|
-
* @internal
|
|
21
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
22
|
-
*/
|
|
23
|
-
export var ChatStreamingResponseChunkError$;
|
|
24
|
-
(function (ChatStreamingResponseChunkError$) {
|
|
25
|
-
/** @deprecated use `ChatStreamingResponseChunkError$inboundSchema` instead. */
|
|
26
|
-
ChatStreamingResponseChunkError$.inboundSchema = ChatStreamingResponseChunkError$inboundSchema;
|
|
27
|
-
/** @deprecated use `ChatStreamingResponseChunkError$outboundSchema` instead. */
|
|
28
|
-
ChatStreamingResponseChunkError$.outboundSchema = ChatStreamingResponseChunkError$outboundSchema;
|
|
29
|
-
})(ChatStreamingResponseChunkError$ || (ChatStreamingResponseChunkError$ = {}));
|
|
30
|
-
export function chatStreamingResponseChunkErrorToJSON(chatStreamingResponseChunkError) {
|
|
31
|
-
return JSON.stringify(ChatStreamingResponseChunkError$outboundSchema.parse(chatStreamingResponseChunkError));
|
|
32
|
-
}
|
|
33
14
|
export function chatStreamingResponseChunkErrorFromJSON(jsonString) {
|
|
34
15
|
return safeParse(jsonString, (x) => ChatStreamingResponseChunkError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ChatStreamingResponseChunkError' from JSON`);
|
|
35
16
|
}
|
|
@@ -48,36 +29,6 @@ export const ChatStreamingResponseChunkData$inboundSchema = z.object({
|
|
|
48
29
|
"system_fingerprint": "systemFingerprint",
|
|
49
30
|
});
|
|
50
31
|
});
|
|
51
|
-
/** @internal */
|
|
52
|
-
export const ChatStreamingResponseChunkData$outboundSchema = z.object({
|
|
53
|
-
id: z.string(),
|
|
54
|
-
choices: z.array(ChatStreamingChoice$outboundSchema),
|
|
55
|
-
created: z.number(),
|
|
56
|
-
model: z.string(),
|
|
57
|
-
object: z.literal("chat.completion.chunk"),
|
|
58
|
-
systemFingerprint: z.nullable(z.string()).optional(),
|
|
59
|
-
error: z.lazy(() => ChatStreamingResponseChunkError$outboundSchema)
|
|
60
|
-
.optional(),
|
|
61
|
-
usage: ChatGenerationTokenUsage$outboundSchema.optional(),
|
|
62
|
-
}).transform((v) => {
|
|
63
|
-
return remap$(v, {
|
|
64
|
-
systemFingerprint: "system_fingerprint",
|
|
65
|
-
});
|
|
66
|
-
});
|
|
67
|
-
/**
|
|
68
|
-
* @internal
|
|
69
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
70
|
-
*/
|
|
71
|
-
export var ChatStreamingResponseChunkData$;
|
|
72
|
-
(function (ChatStreamingResponseChunkData$) {
|
|
73
|
-
/** @deprecated use `ChatStreamingResponseChunkData$inboundSchema` instead. */
|
|
74
|
-
ChatStreamingResponseChunkData$.inboundSchema = ChatStreamingResponseChunkData$inboundSchema;
|
|
75
|
-
/** @deprecated use `ChatStreamingResponseChunkData$outboundSchema` instead. */
|
|
76
|
-
ChatStreamingResponseChunkData$.outboundSchema = ChatStreamingResponseChunkData$outboundSchema;
|
|
77
|
-
})(ChatStreamingResponseChunkData$ || (ChatStreamingResponseChunkData$ = {}));
|
|
78
|
-
export function chatStreamingResponseChunkDataToJSON(chatStreamingResponseChunkData) {
|
|
79
|
-
return JSON.stringify(ChatStreamingResponseChunkData$outboundSchema.parse(chatStreamingResponseChunkData));
|
|
80
|
-
}
|
|
81
32
|
export function chatStreamingResponseChunkDataFromJSON(jsonString) {
|
|
82
33
|
return safeParse(jsonString, (x) => ChatStreamingResponseChunkData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ChatStreamingResponseChunkData' from JSON`);
|
|
83
34
|
}
|
|
@@ -96,24 +47,6 @@ export const ChatStreamingResponseChunk$inboundSchema = z.object({
|
|
|
96
47
|
}
|
|
97
48
|
}).pipe(z.lazy(() => ChatStreamingResponseChunkData$inboundSchema)),
|
|
98
49
|
});
|
|
99
|
-
/** @internal */
|
|
100
|
-
export const ChatStreamingResponseChunk$outboundSchema = z.object({
|
|
101
|
-
data: z.lazy(() => ChatStreamingResponseChunkData$outboundSchema),
|
|
102
|
-
});
|
|
103
|
-
/**
|
|
104
|
-
* @internal
|
|
105
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
106
|
-
*/
|
|
107
|
-
export var ChatStreamingResponseChunk$;
|
|
108
|
-
(function (ChatStreamingResponseChunk$) {
|
|
109
|
-
/** @deprecated use `ChatStreamingResponseChunk$inboundSchema` instead. */
|
|
110
|
-
ChatStreamingResponseChunk$.inboundSchema = ChatStreamingResponseChunk$inboundSchema;
|
|
111
|
-
/** @deprecated use `ChatStreamingResponseChunk$outboundSchema` instead. */
|
|
112
|
-
ChatStreamingResponseChunk$.outboundSchema = ChatStreamingResponseChunk$outboundSchema;
|
|
113
|
-
})(ChatStreamingResponseChunk$ || (ChatStreamingResponseChunk$ = {}));
|
|
114
|
-
export function chatStreamingResponseChunkToJSON(chatStreamingResponseChunk) {
|
|
115
|
-
return JSON.stringify(ChatStreamingResponseChunk$outboundSchema.parse(chatStreamingResponseChunk));
|
|
116
|
-
}
|
|
117
50
|
export function chatStreamingResponseChunkFromJSON(jsonString) {
|
|
118
51
|
return safeParse(jsonString, (x) => ChatStreamingResponseChunk$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ChatStreamingResponseChunk' from JSON`);
|
|
119
52
|
}
|
|
@@ -1,29 +1,12 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
|
-
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
2
|
export type ChatStreamOptions = {
|
|
5
3
|
includeUsage?: boolean | undefined;
|
|
6
4
|
};
|
|
7
5
|
/** @internal */
|
|
8
|
-
export declare const ChatStreamOptions$inboundSchema: z.ZodType<ChatStreamOptions, unknown>;
|
|
9
|
-
/** @internal */
|
|
10
6
|
export type ChatStreamOptions$Outbound = {
|
|
11
7
|
include_usage?: boolean | undefined;
|
|
12
8
|
};
|
|
13
9
|
/** @internal */
|
|
14
10
|
export declare const ChatStreamOptions$outboundSchema: z.ZodType<ChatStreamOptions$Outbound, ChatStreamOptions>;
|
|
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 declare namespace ChatStreamOptions$ {
|
|
20
|
-
/** @deprecated use `ChatStreamOptions$inboundSchema` instead. */
|
|
21
|
-
const inboundSchema: z.ZodType<ChatStreamOptions, unknown, z.core.$ZodTypeInternals<ChatStreamOptions, unknown>>;
|
|
22
|
-
/** @deprecated use `ChatStreamOptions$outboundSchema` instead. */
|
|
23
|
-
const outboundSchema: z.ZodType<ChatStreamOptions$Outbound, ChatStreamOptions, z.core.$ZodTypeInternals<ChatStreamOptions$Outbound, ChatStreamOptions>>;
|
|
24
|
-
/** @deprecated use `ChatStreamOptions$Outbound` instead. */
|
|
25
|
-
type Outbound = ChatStreamOptions$Outbound;
|
|
26
|
-
}
|
|
27
11
|
export declare function chatStreamOptionsToJSON(chatStreamOptions: ChatStreamOptions): string;
|
|
28
|
-
export declare function chatStreamOptionsFromJSON(jsonString: string): SafeParseResult<ChatStreamOptions, SDKValidationError>;
|
|
29
12
|
//# sourceMappingURL=chatstreamoptions.d.ts.map
|
|
@@ -3,15 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as z from "zod/v4";
|
|
5
5
|
import { remap as remap$ } from "../lib/primitives.js";
|
|
6
|
-
import { safeParse } from "../lib/schemas.js";
|
|
7
|
-
/** @internal */
|
|
8
|
-
export const ChatStreamOptions$inboundSchema = z.object({
|
|
9
|
-
include_usage: z.boolean().optional(),
|
|
10
|
-
}).transform((v) => {
|
|
11
|
-
return remap$(v, {
|
|
12
|
-
"include_usage": "includeUsage",
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
6
|
/** @internal */
|
|
16
7
|
export const ChatStreamOptions$outboundSchema = z.object({
|
|
17
8
|
includeUsage: z.boolean().optional(),
|
|
@@ -20,21 +11,7 @@ export const ChatStreamOptions$outboundSchema = z.object({
|
|
|
20
11
|
includeUsage: "include_usage",
|
|
21
12
|
});
|
|
22
13
|
});
|
|
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 var ChatStreamOptions$;
|
|
28
|
-
(function (ChatStreamOptions$) {
|
|
29
|
-
/** @deprecated use `ChatStreamOptions$inboundSchema` instead. */
|
|
30
|
-
ChatStreamOptions$.inboundSchema = ChatStreamOptions$inboundSchema;
|
|
31
|
-
/** @deprecated use `ChatStreamOptions$outboundSchema` instead. */
|
|
32
|
-
ChatStreamOptions$.outboundSchema = ChatStreamOptions$outboundSchema;
|
|
33
|
-
})(ChatStreamOptions$ || (ChatStreamOptions$ = {}));
|
|
34
14
|
export function chatStreamOptionsToJSON(chatStreamOptions) {
|
|
35
15
|
return JSON.stringify(ChatStreamOptions$outboundSchema.parse(chatStreamOptions));
|
|
36
16
|
}
|
|
37
|
-
export function chatStreamOptionsFromJSON(jsonString) {
|
|
38
|
-
return safeParse(jsonString, (x) => ChatStreamOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ChatStreamOptions' from JSON`);
|
|
39
|
-
}
|
|
40
17
|
//# sourceMappingURL=chatstreamoptions.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
2
|
import { OpenEnum } from "../types/enums.js";
|
|
3
3
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
|
-
import { CompletionLogprobs
|
|
4
|
+
import { CompletionLogprobs } from "./completionlogprobs.js";
|
|
5
5
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
6
6
|
export declare const CompletionFinishReason: {
|
|
7
7
|
readonly Stop: "stop";
|
|
@@ -18,40 +18,6 @@ export type CompletionChoice = {
|
|
|
18
18
|
/** @internal */
|
|
19
19
|
export declare const CompletionFinishReason$inboundSchema: z.ZodType<CompletionFinishReason, unknown>;
|
|
20
20
|
/** @internal */
|
|
21
|
-
export declare const CompletionFinishReason$outboundSchema: z.ZodType<CompletionFinishReason, CompletionFinishReason>;
|
|
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 CompletionFinishReason$ {
|
|
27
|
-
/** @deprecated use `CompletionFinishReason$inboundSchema` instead. */
|
|
28
|
-
const inboundSchema: z.ZodType<CompletionFinishReason, unknown, z.core.$ZodTypeInternals<CompletionFinishReason, unknown>>;
|
|
29
|
-
/** @deprecated use `CompletionFinishReason$outboundSchema` instead. */
|
|
30
|
-
const outboundSchema: z.ZodType<CompletionFinishReason, CompletionFinishReason, z.core.$ZodTypeInternals<CompletionFinishReason, CompletionFinishReason>>;
|
|
31
|
-
}
|
|
32
|
-
/** @internal */
|
|
33
21
|
export declare const CompletionChoice$inboundSchema: z.ZodType<CompletionChoice, unknown>;
|
|
34
|
-
/** @internal */
|
|
35
|
-
export type CompletionChoice$Outbound = {
|
|
36
|
-
text: string;
|
|
37
|
-
index: number;
|
|
38
|
-
logprobs: CompletionLogprobs$Outbound | null;
|
|
39
|
-
finish_reason: string | null;
|
|
40
|
-
};
|
|
41
|
-
/** @internal */
|
|
42
|
-
export declare const CompletionChoice$outboundSchema: z.ZodType<CompletionChoice$Outbound, CompletionChoice>;
|
|
43
|
-
/**
|
|
44
|
-
* @internal
|
|
45
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
46
|
-
*/
|
|
47
|
-
export declare namespace CompletionChoice$ {
|
|
48
|
-
/** @deprecated use `CompletionChoice$inboundSchema` instead. */
|
|
49
|
-
const inboundSchema: z.ZodType<CompletionChoice, unknown, z.core.$ZodTypeInternals<CompletionChoice, unknown>>;
|
|
50
|
-
/** @deprecated use `CompletionChoice$outboundSchema` instead. */
|
|
51
|
-
const outboundSchema: z.ZodType<CompletionChoice$Outbound, CompletionChoice, z.core.$ZodTypeInternals<CompletionChoice$Outbound, CompletionChoice>>;
|
|
52
|
-
/** @deprecated use `CompletionChoice$Outbound` instead. */
|
|
53
|
-
type Outbound = CompletionChoice$Outbound;
|
|
54
|
-
}
|
|
55
|
-
export declare function completionChoiceToJSON(completionChoice: CompletionChoice): string;
|
|
56
22
|
export declare function completionChoiceFromJSON(jsonString: string): SafeParseResult<CompletionChoice, SDKValidationError>;
|
|
57
23
|
//# sourceMappingURL=completionchoice.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 { catchUnrecognizedEnum
|
|
8
|
-
import { CompletionLogprobs$inboundSchema,
|
|
7
|
+
import { catchUnrecognizedEnum } from "../types/enums.js";
|
|
8
|
+
import { CompletionLogprobs$inboundSchema, } from "./completionlogprobs.js";
|
|
9
9
|
export const CompletionFinishReason = {
|
|
10
10
|
Stop: "stop",
|
|
11
11
|
Length: "length",
|
|
@@ -18,22 +18,6 @@ export const CompletionFinishReason$inboundSchema = z
|
|
|
18
18
|
z.string().transform(catchUnrecognizedEnum),
|
|
19
19
|
]);
|
|
20
20
|
/** @internal */
|
|
21
|
-
export const CompletionFinishReason$outboundSchema = z.union([
|
|
22
|
-
z.enum(CompletionFinishReason),
|
|
23
|
-
z.string().and(z.custom()),
|
|
24
|
-
]);
|
|
25
|
-
/**
|
|
26
|
-
* @internal
|
|
27
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
28
|
-
*/
|
|
29
|
-
export var CompletionFinishReason$;
|
|
30
|
-
(function (CompletionFinishReason$) {
|
|
31
|
-
/** @deprecated use `CompletionFinishReason$inboundSchema` instead. */
|
|
32
|
-
CompletionFinishReason$.inboundSchema = CompletionFinishReason$inboundSchema;
|
|
33
|
-
/** @deprecated use `CompletionFinishReason$outboundSchema` instead. */
|
|
34
|
-
CompletionFinishReason$.outboundSchema = CompletionFinishReason$outboundSchema;
|
|
35
|
-
})(CompletionFinishReason$ || (CompletionFinishReason$ = {}));
|
|
36
|
-
/** @internal */
|
|
37
21
|
export const CompletionChoice$inboundSchema = z.object({
|
|
38
22
|
text: z.string(),
|
|
39
23
|
index: z.number(),
|
|
@@ -44,31 +28,6 @@ export const CompletionChoice$inboundSchema = z.object({
|
|
|
44
28
|
"finish_reason": "finishReason",
|
|
45
29
|
});
|
|
46
30
|
});
|
|
47
|
-
/** @internal */
|
|
48
|
-
export const CompletionChoice$outboundSchema = z.object({
|
|
49
|
-
text: z.string(),
|
|
50
|
-
index: z.number(),
|
|
51
|
-
logprobs: z.nullable(CompletionLogprobs$outboundSchema),
|
|
52
|
-
finishReason: z.nullable(CompletionFinishReason$outboundSchema),
|
|
53
|
-
}).transform((v) => {
|
|
54
|
-
return remap$(v, {
|
|
55
|
-
finishReason: "finish_reason",
|
|
56
|
-
});
|
|
57
|
-
});
|
|
58
|
-
/**
|
|
59
|
-
* @internal
|
|
60
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
61
|
-
*/
|
|
62
|
-
export var CompletionChoice$;
|
|
63
|
-
(function (CompletionChoice$) {
|
|
64
|
-
/** @deprecated use `CompletionChoice$inboundSchema` instead. */
|
|
65
|
-
CompletionChoice$.inboundSchema = CompletionChoice$inboundSchema;
|
|
66
|
-
/** @deprecated use `CompletionChoice$outboundSchema` instead. */
|
|
67
|
-
CompletionChoice$.outboundSchema = CompletionChoice$outboundSchema;
|
|
68
|
-
})(CompletionChoice$ || (CompletionChoice$ = {}));
|
|
69
|
-
export function completionChoiceToJSON(completionChoice) {
|
|
70
|
-
return JSON.stringify(CompletionChoice$outboundSchema.parse(completionChoice));
|
|
71
|
-
}
|
|
72
31
|
export function completionChoiceFromJSON(jsonString) {
|
|
73
32
|
return safeParse(jsonString, (x) => CompletionChoice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CompletionChoice' from JSON`);
|
|
74
33
|
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
|
-
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
2
|
import { ResponseFormatJSONSchema, ResponseFormatJSONSchema$Outbound } from "./responseformatjsonschema.js";
|
|
5
3
|
import { ResponseFormatTextGrammar, ResponseFormatTextGrammar$Outbound } from "./responseformattextgrammar.js";
|
|
6
4
|
export type Prompt = string | Array<string> | Array<number> | Array<Array<number>>;
|
|
@@ -46,155 +44,48 @@ export type CompletionCreateParams = {
|
|
|
46
44
|
responseFormat?: ResponseFormatJSONSchema | ResponseFormatTextGrammar | CompletionCreateParamsResponseFormatText | CompletionCreateParamsResponseFormatJSONObject | CompletionCreateParamsResponseFormatPython | null | undefined;
|
|
47
45
|
};
|
|
48
46
|
/** @internal */
|
|
49
|
-
export declare const Prompt$inboundSchema: z.ZodType<Prompt, unknown>;
|
|
50
|
-
/** @internal */
|
|
51
47
|
export type Prompt$Outbound = string | Array<string> | Array<number> | Array<Array<number>>;
|
|
52
48
|
/** @internal */
|
|
53
49
|
export declare const Prompt$outboundSchema: z.ZodType<Prompt$Outbound, Prompt>;
|
|
54
|
-
/**
|
|
55
|
-
* @internal
|
|
56
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
57
|
-
*/
|
|
58
|
-
export declare namespace Prompt$ {
|
|
59
|
-
/** @deprecated use `Prompt$inboundSchema` instead. */
|
|
60
|
-
const inboundSchema: z.ZodType<Prompt, unknown, z.core.$ZodTypeInternals<Prompt, unknown>>;
|
|
61
|
-
/** @deprecated use `Prompt$outboundSchema` instead. */
|
|
62
|
-
const outboundSchema: z.ZodType<Prompt$Outbound, Prompt, z.core.$ZodTypeInternals<Prompt$Outbound, Prompt>>;
|
|
63
|
-
/** @deprecated use `Prompt$Outbound` instead. */
|
|
64
|
-
type Outbound = Prompt$Outbound;
|
|
65
|
-
}
|
|
66
50
|
export declare function promptToJSON(prompt: Prompt): string;
|
|
67
|
-
export declare function promptFromJSON(jsonString: string): SafeParseResult<Prompt, SDKValidationError>;
|
|
68
|
-
/** @internal */
|
|
69
|
-
export declare const CompletionCreateParamsStop$inboundSchema: z.ZodType<CompletionCreateParamsStop, unknown>;
|
|
70
51
|
/** @internal */
|
|
71
52
|
export type CompletionCreateParamsStop$Outbound = string | Array<string>;
|
|
72
53
|
/** @internal */
|
|
73
54
|
export declare const CompletionCreateParamsStop$outboundSchema: z.ZodType<CompletionCreateParamsStop$Outbound, CompletionCreateParamsStop>;
|
|
74
|
-
/**
|
|
75
|
-
* @internal
|
|
76
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
77
|
-
*/
|
|
78
|
-
export declare namespace CompletionCreateParamsStop$ {
|
|
79
|
-
/** @deprecated use `CompletionCreateParamsStop$inboundSchema` instead. */
|
|
80
|
-
const inboundSchema: z.ZodType<CompletionCreateParamsStop, unknown, z.core.$ZodTypeInternals<CompletionCreateParamsStop, unknown>>;
|
|
81
|
-
/** @deprecated use `CompletionCreateParamsStop$outboundSchema` instead. */
|
|
82
|
-
const outboundSchema: z.ZodType<CompletionCreateParamsStop$Outbound, CompletionCreateParamsStop, z.core.$ZodTypeInternals<CompletionCreateParamsStop$Outbound, CompletionCreateParamsStop>>;
|
|
83
|
-
/** @deprecated use `CompletionCreateParamsStop$Outbound` instead. */
|
|
84
|
-
type Outbound = CompletionCreateParamsStop$Outbound;
|
|
85
|
-
}
|
|
86
55
|
export declare function completionCreateParamsStopToJSON(completionCreateParamsStop: CompletionCreateParamsStop): string;
|
|
87
|
-
export declare function completionCreateParamsStopFromJSON(jsonString: string): SafeParseResult<CompletionCreateParamsStop, SDKValidationError>;
|
|
88
|
-
/** @internal */
|
|
89
|
-
export declare const StreamOptions$inboundSchema: z.ZodType<StreamOptions, unknown>;
|
|
90
56
|
/** @internal */
|
|
91
57
|
export type StreamOptions$Outbound = {
|
|
92
58
|
include_usage?: boolean | null | undefined;
|
|
93
59
|
};
|
|
94
60
|
/** @internal */
|
|
95
61
|
export declare const StreamOptions$outboundSchema: z.ZodType<StreamOptions$Outbound, StreamOptions>;
|
|
96
|
-
/**
|
|
97
|
-
* @internal
|
|
98
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
99
|
-
*/
|
|
100
|
-
export declare namespace StreamOptions$ {
|
|
101
|
-
/** @deprecated use `StreamOptions$inboundSchema` instead. */
|
|
102
|
-
const inboundSchema: z.ZodType<StreamOptions, unknown, z.core.$ZodTypeInternals<StreamOptions, unknown>>;
|
|
103
|
-
/** @deprecated use `StreamOptions$outboundSchema` instead. */
|
|
104
|
-
const outboundSchema: z.ZodType<StreamOptions$Outbound, StreamOptions, z.core.$ZodTypeInternals<StreamOptions$Outbound, StreamOptions>>;
|
|
105
|
-
/** @deprecated use `StreamOptions$Outbound` instead. */
|
|
106
|
-
type Outbound = StreamOptions$Outbound;
|
|
107
|
-
}
|
|
108
62
|
export declare function streamOptionsToJSON(streamOptions: StreamOptions): string;
|
|
109
|
-
export declare function streamOptionsFromJSON(jsonString: string): SafeParseResult<StreamOptions, SDKValidationError>;
|
|
110
|
-
/** @internal */
|
|
111
|
-
export declare const CompletionCreateParamsResponseFormatPython$inboundSchema: z.ZodType<CompletionCreateParamsResponseFormatPython, unknown>;
|
|
112
63
|
/** @internal */
|
|
113
64
|
export type CompletionCreateParamsResponseFormatPython$Outbound = {
|
|
114
65
|
type: "python";
|
|
115
66
|
};
|
|
116
67
|
/** @internal */
|
|
117
68
|
export declare const CompletionCreateParamsResponseFormatPython$outboundSchema: z.ZodType<CompletionCreateParamsResponseFormatPython$Outbound, CompletionCreateParamsResponseFormatPython>;
|
|
118
|
-
/**
|
|
119
|
-
* @internal
|
|
120
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
121
|
-
*/
|
|
122
|
-
export declare namespace CompletionCreateParamsResponseFormatPython$ {
|
|
123
|
-
/** @deprecated use `CompletionCreateParamsResponseFormatPython$inboundSchema` instead. */
|
|
124
|
-
const inboundSchema: z.ZodType<CompletionCreateParamsResponseFormatPython, unknown, z.core.$ZodTypeInternals<CompletionCreateParamsResponseFormatPython, unknown>>;
|
|
125
|
-
/** @deprecated use `CompletionCreateParamsResponseFormatPython$outboundSchema` instead. */
|
|
126
|
-
const outboundSchema: z.ZodType<CompletionCreateParamsResponseFormatPython$Outbound, CompletionCreateParamsResponseFormatPython, z.core.$ZodTypeInternals<CompletionCreateParamsResponseFormatPython$Outbound, CompletionCreateParamsResponseFormatPython>>;
|
|
127
|
-
/** @deprecated use `CompletionCreateParamsResponseFormatPython$Outbound` instead. */
|
|
128
|
-
type Outbound = CompletionCreateParamsResponseFormatPython$Outbound;
|
|
129
|
-
}
|
|
130
69
|
export declare function completionCreateParamsResponseFormatPythonToJSON(completionCreateParamsResponseFormatPython: CompletionCreateParamsResponseFormatPython): string;
|
|
131
|
-
export declare function completionCreateParamsResponseFormatPythonFromJSON(jsonString: string): SafeParseResult<CompletionCreateParamsResponseFormatPython, SDKValidationError>;
|
|
132
|
-
/** @internal */
|
|
133
|
-
export declare const CompletionCreateParamsResponseFormatJSONObject$inboundSchema: z.ZodType<CompletionCreateParamsResponseFormatJSONObject, unknown>;
|
|
134
70
|
/** @internal */
|
|
135
71
|
export type CompletionCreateParamsResponseFormatJSONObject$Outbound = {
|
|
136
72
|
type: "json_object";
|
|
137
73
|
};
|
|
138
74
|
/** @internal */
|
|
139
75
|
export declare const CompletionCreateParamsResponseFormatJSONObject$outboundSchema: z.ZodType<CompletionCreateParamsResponseFormatJSONObject$Outbound, CompletionCreateParamsResponseFormatJSONObject>;
|
|
140
|
-
/**
|
|
141
|
-
* @internal
|
|
142
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
143
|
-
*/
|
|
144
|
-
export declare namespace CompletionCreateParamsResponseFormatJSONObject$ {
|
|
145
|
-
/** @deprecated use `CompletionCreateParamsResponseFormatJSONObject$inboundSchema` instead. */
|
|
146
|
-
const inboundSchema: z.ZodType<CompletionCreateParamsResponseFormatJSONObject, unknown, z.core.$ZodTypeInternals<CompletionCreateParamsResponseFormatJSONObject, unknown>>;
|
|
147
|
-
/** @deprecated use `CompletionCreateParamsResponseFormatJSONObject$outboundSchema` instead. */
|
|
148
|
-
const outboundSchema: z.ZodType<CompletionCreateParamsResponseFormatJSONObject$Outbound, CompletionCreateParamsResponseFormatJSONObject, z.core.$ZodTypeInternals<CompletionCreateParamsResponseFormatJSONObject$Outbound, CompletionCreateParamsResponseFormatJSONObject>>;
|
|
149
|
-
/** @deprecated use `CompletionCreateParamsResponseFormatJSONObject$Outbound` instead. */
|
|
150
|
-
type Outbound = CompletionCreateParamsResponseFormatJSONObject$Outbound;
|
|
151
|
-
}
|
|
152
76
|
export declare function completionCreateParamsResponseFormatJSONObjectToJSON(completionCreateParamsResponseFormatJSONObject: CompletionCreateParamsResponseFormatJSONObject): string;
|
|
153
|
-
export declare function completionCreateParamsResponseFormatJSONObjectFromJSON(jsonString: string): SafeParseResult<CompletionCreateParamsResponseFormatJSONObject, SDKValidationError>;
|
|
154
|
-
/** @internal */
|
|
155
|
-
export declare const CompletionCreateParamsResponseFormatText$inboundSchema: z.ZodType<CompletionCreateParamsResponseFormatText, unknown>;
|
|
156
77
|
/** @internal */
|
|
157
78
|
export type CompletionCreateParamsResponseFormatText$Outbound = {
|
|
158
79
|
type: "text";
|
|
159
80
|
};
|
|
160
81
|
/** @internal */
|
|
161
82
|
export declare const CompletionCreateParamsResponseFormatText$outboundSchema: z.ZodType<CompletionCreateParamsResponseFormatText$Outbound, CompletionCreateParamsResponseFormatText>;
|
|
162
|
-
/**
|
|
163
|
-
* @internal
|
|
164
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
165
|
-
*/
|
|
166
|
-
export declare namespace CompletionCreateParamsResponseFormatText$ {
|
|
167
|
-
/** @deprecated use `CompletionCreateParamsResponseFormatText$inboundSchema` instead. */
|
|
168
|
-
const inboundSchema: z.ZodType<CompletionCreateParamsResponseFormatText, unknown, z.core.$ZodTypeInternals<CompletionCreateParamsResponseFormatText, unknown>>;
|
|
169
|
-
/** @deprecated use `CompletionCreateParamsResponseFormatText$outboundSchema` instead. */
|
|
170
|
-
const outboundSchema: z.ZodType<CompletionCreateParamsResponseFormatText$Outbound, CompletionCreateParamsResponseFormatText, z.core.$ZodTypeInternals<CompletionCreateParamsResponseFormatText$Outbound, CompletionCreateParamsResponseFormatText>>;
|
|
171
|
-
/** @deprecated use `CompletionCreateParamsResponseFormatText$Outbound` instead. */
|
|
172
|
-
type Outbound = CompletionCreateParamsResponseFormatText$Outbound;
|
|
173
|
-
}
|
|
174
83
|
export declare function completionCreateParamsResponseFormatTextToJSON(completionCreateParamsResponseFormatText: CompletionCreateParamsResponseFormatText): string;
|
|
175
|
-
export declare function completionCreateParamsResponseFormatTextFromJSON(jsonString: string): SafeParseResult<CompletionCreateParamsResponseFormatText, SDKValidationError>;
|
|
176
|
-
/** @internal */
|
|
177
|
-
export declare const CompletionCreateParamsResponseFormatUnion$inboundSchema: z.ZodType<CompletionCreateParamsResponseFormatUnion, unknown>;
|
|
178
84
|
/** @internal */
|
|
179
85
|
export type CompletionCreateParamsResponseFormatUnion$Outbound = ResponseFormatJSONSchema$Outbound | ResponseFormatTextGrammar$Outbound | CompletionCreateParamsResponseFormatText$Outbound | CompletionCreateParamsResponseFormatJSONObject$Outbound | CompletionCreateParamsResponseFormatPython$Outbound;
|
|
180
86
|
/** @internal */
|
|
181
87
|
export declare const CompletionCreateParamsResponseFormatUnion$outboundSchema: z.ZodType<CompletionCreateParamsResponseFormatUnion$Outbound, CompletionCreateParamsResponseFormatUnion>;
|
|
182
|
-
/**
|
|
183
|
-
* @internal
|
|
184
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
185
|
-
*/
|
|
186
|
-
export declare namespace CompletionCreateParamsResponseFormatUnion$ {
|
|
187
|
-
/** @deprecated use `CompletionCreateParamsResponseFormatUnion$inboundSchema` instead. */
|
|
188
|
-
const inboundSchema: z.ZodType<CompletionCreateParamsResponseFormatUnion, unknown, z.core.$ZodTypeInternals<CompletionCreateParamsResponseFormatUnion, unknown>>;
|
|
189
|
-
/** @deprecated use `CompletionCreateParamsResponseFormatUnion$outboundSchema` instead. */
|
|
190
|
-
const outboundSchema: z.ZodType<CompletionCreateParamsResponseFormatUnion$Outbound, CompletionCreateParamsResponseFormatUnion, z.core.$ZodTypeInternals<CompletionCreateParamsResponseFormatUnion$Outbound, CompletionCreateParamsResponseFormatUnion>>;
|
|
191
|
-
/** @deprecated use `CompletionCreateParamsResponseFormatUnion$Outbound` instead. */
|
|
192
|
-
type Outbound = CompletionCreateParamsResponseFormatUnion$Outbound;
|
|
193
|
-
}
|
|
194
88
|
export declare function completionCreateParamsResponseFormatUnionToJSON(completionCreateParamsResponseFormatUnion: CompletionCreateParamsResponseFormatUnion): string;
|
|
195
|
-
export declare function completionCreateParamsResponseFormatUnionFromJSON(jsonString: string): SafeParseResult<CompletionCreateParamsResponseFormatUnion, SDKValidationError>;
|
|
196
|
-
/** @internal */
|
|
197
|
-
export declare const CompletionCreateParams$inboundSchema: z.ZodType<CompletionCreateParams, unknown>;
|
|
198
89
|
/** @internal */
|
|
199
90
|
export type CompletionCreateParams$Outbound = {
|
|
200
91
|
model?: string | undefined;
|
|
@@ -225,18 +116,5 @@ export type CompletionCreateParams$Outbound = {
|
|
|
225
116
|
};
|
|
226
117
|
/** @internal */
|
|
227
118
|
export declare const CompletionCreateParams$outboundSchema: z.ZodType<CompletionCreateParams$Outbound, CompletionCreateParams>;
|
|
228
|
-
/**
|
|
229
|
-
* @internal
|
|
230
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
231
|
-
*/
|
|
232
|
-
export declare namespace CompletionCreateParams$ {
|
|
233
|
-
/** @deprecated use `CompletionCreateParams$inboundSchema` instead. */
|
|
234
|
-
const inboundSchema: z.ZodType<CompletionCreateParams, unknown, z.core.$ZodTypeInternals<CompletionCreateParams, unknown>>;
|
|
235
|
-
/** @deprecated use `CompletionCreateParams$outboundSchema` instead. */
|
|
236
|
-
const outboundSchema: z.ZodType<CompletionCreateParams$Outbound, CompletionCreateParams, z.core.$ZodTypeInternals<CompletionCreateParams$Outbound, CompletionCreateParams>>;
|
|
237
|
-
/** @deprecated use `CompletionCreateParams$Outbound` instead. */
|
|
238
|
-
type Outbound = CompletionCreateParams$Outbound;
|
|
239
|
-
}
|
|
240
119
|
export declare function completionCreateParamsToJSON(completionCreateParams: CompletionCreateParams): string;
|
|
241
|
-
export declare function completionCreateParamsFromJSON(jsonString: string): SafeParseResult<CompletionCreateParams, SDKValidationError>;
|
|
242
120
|
//# sourceMappingURL=completioncreateparams.d.ts.map
|