@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
|
@@ -30,23 +30,4 @@ export declare class RequestTimeoutResponseError extends OpenRouterError {
|
|
|
30
30
|
}
|
|
31
31
|
/** @internal */
|
|
32
32
|
export declare const RequestTimeoutResponseError$inboundSchema: z.ZodType<RequestTimeoutResponseError, unknown>;
|
|
33
|
-
/** @internal */
|
|
34
|
-
export type RequestTimeoutResponseError$Outbound = {
|
|
35
|
-
error: models.RequestTimeoutResponseErrorData$Outbound;
|
|
36
|
-
user_id?: string | null | undefined;
|
|
37
|
-
};
|
|
38
|
-
/** @internal */
|
|
39
|
-
export declare const RequestTimeoutResponseError$outboundSchema: z.ZodType<RequestTimeoutResponseError$Outbound, RequestTimeoutResponseError>;
|
|
40
|
-
/**
|
|
41
|
-
* @internal
|
|
42
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
43
|
-
*/
|
|
44
|
-
export declare namespace RequestTimeoutResponseError$ {
|
|
45
|
-
/** @deprecated use `RequestTimeoutResponseError$inboundSchema` instead. */
|
|
46
|
-
const inboundSchema: z.ZodType<RequestTimeoutResponseError, unknown, z.core.$ZodTypeInternals<RequestTimeoutResponseError, unknown>>;
|
|
47
|
-
/** @deprecated use `RequestTimeoutResponseError$outboundSchema` instead. */
|
|
48
|
-
const outboundSchema: z.ZodType<RequestTimeoutResponseError$Outbound, RequestTimeoutResponseError, z.core.$ZodTypeInternals<RequestTimeoutResponseError$Outbound, RequestTimeoutResponseError>>;
|
|
49
|
-
/** @deprecated use `RequestTimeoutResponseError$Outbound` instead. */
|
|
50
|
-
type Outbound = RequestTimeoutResponseError$Outbound;
|
|
51
|
-
}
|
|
52
33
|
//# sourceMappingURL=requesttimeoutresponseerror.d.ts.map
|
|
@@ -38,26 +38,4 @@ export const RequestTimeoutResponseError$inboundSchema = z.object({
|
|
|
38
38
|
body: v.body$,
|
|
39
39
|
});
|
|
40
40
|
});
|
|
41
|
-
/** @internal */
|
|
42
|
-
export const RequestTimeoutResponseError$outboundSchema = z.custom(x => x instanceof RequestTimeoutResponseError)
|
|
43
|
-
.transform(v => v.data$)
|
|
44
|
-
.pipe(z.object({
|
|
45
|
-
error: models.RequestTimeoutResponseErrorData$outboundSchema,
|
|
46
|
-
userId: z.nullable(z.string()).optional(),
|
|
47
|
-
}).transform((v) => {
|
|
48
|
-
return remap$(v, {
|
|
49
|
-
userId: "user_id",
|
|
50
|
-
});
|
|
51
|
-
}));
|
|
52
|
-
/**
|
|
53
|
-
* @internal
|
|
54
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
55
|
-
*/
|
|
56
|
-
export var RequestTimeoutResponseError$;
|
|
57
|
-
(function (RequestTimeoutResponseError$) {
|
|
58
|
-
/** @deprecated use `RequestTimeoutResponseError$inboundSchema` instead. */
|
|
59
|
-
RequestTimeoutResponseError$.inboundSchema = RequestTimeoutResponseError$inboundSchema;
|
|
60
|
-
/** @deprecated use `RequestTimeoutResponseError$outboundSchema` instead. */
|
|
61
|
-
RequestTimeoutResponseError$.outboundSchema = RequestTimeoutResponseError$outboundSchema;
|
|
62
|
-
})(RequestTimeoutResponseError$ || (RequestTimeoutResponseError$ = {}));
|
|
63
41
|
//# sourceMappingURL=requesttimeoutresponseerror.js.map
|
|
@@ -30,23 +30,4 @@ export declare class ServiceUnavailableResponseError extends OpenRouterError {
|
|
|
30
30
|
}
|
|
31
31
|
/** @internal */
|
|
32
32
|
export declare const ServiceUnavailableResponseError$inboundSchema: z.ZodType<ServiceUnavailableResponseError, unknown>;
|
|
33
|
-
/** @internal */
|
|
34
|
-
export type ServiceUnavailableResponseError$Outbound = {
|
|
35
|
-
error: models.ServiceUnavailableResponseErrorData$Outbound;
|
|
36
|
-
user_id?: string | null | undefined;
|
|
37
|
-
};
|
|
38
|
-
/** @internal */
|
|
39
|
-
export declare const ServiceUnavailableResponseError$outboundSchema: z.ZodType<ServiceUnavailableResponseError$Outbound, ServiceUnavailableResponseError>;
|
|
40
|
-
/**
|
|
41
|
-
* @internal
|
|
42
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
43
|
-
*/
|
|
44
|
-
export declare namespace ServiceUnavailableResponseError$ {
|
|
45
|
-
/** @deprecated use `ServiceUnavailableResponseError$inboundSchema` instead. */
|
|
46
|
-
const inboundSchema: z.ZodType<ServiceUnavailableResponseError, unknown, z.core.$ZodTypeInternals<ServiceUnavailableResponseError, unknown>>;
|
|
47
|
-
/** @deprecated use `ServiceUnavailableResponseError$outboundSchema` instead. */
|
|
48
|
-
const outboundSchema: z.ZodType<ServiceUnavailableResponseError$Outbound, ServiceUnavailableResponseError, z.core.$ZodTypeInternals<ServiceUnavailableResponseError$Outbound, ServiceUnavailableResponseError>>;
|
|
49
|
-
/** @deprecated use `ServiceUnavailableResponseError$Outbound` instead. */
|
|
50
|
-
type Outbound = ServiceUnavailableResponseError$Outbound;
|
|
51
|
-
}
|
|
52
33
|
//# sourceMappingURL=serviceunavailableresponseerror.d.ts.map
|
|
@@ -38,26 +38,4 @@ export const ServiceUnavailableResponseError$inboundSchema = z.object({
|
|
|
38
38
|
body: v.body$,
|
|
39
39
|
});
|
|
40
40
|
});
|
|
41
|
-
/** @internal */
|
|
42
|
-
export const ServiceUnavailableResponseError$outboundSchema = z.custom(x => x instanceof ServiceUnavailableResponseError)
|
|
43
|
-
.transform(v => v.data$)
|
|
44
|
-
.pipe(z.object({
|
|
45
|
-
error: models.ServiceUnavailableResponseErrorData$outboundSchema,
|
|
46
|
-
userId: z.nullable(z.string()).optional(),
|
|
47
|
-
}).transform((v) => {
|
|
48
|
-
return remap$(v, {
|
|
49
|
-
userId: "user_id",
|
|
50
|
-
});
|
|
51
|
-
}));
|
|
52
|
-
/**
|
|
53
|
-
* @internal
|
|
54
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
55
|
-
*/
|
|
56
|
-
export var ServiceUnavailableResponseError$;
|
|
57
|
-
(function (ServiceUnavailableResponseError$) {
|
|
58
|
-
/** @deprecated use `ServiceUnavailableResponseError$inboundSchema` instead. */
|
|
59
|
-
ServiceUnavailableResponseError$.inboundSchema = ServiceUnavailableResponseError$inboundSchema;
|
|
60
|
-
/** @deprecated use `ServiceUnavailableResponseError$outboundSchema` instead. */
|
|
61
|
-
ServiceUnavailableResponseError$.outboundSchema = ServiceUnavailableResponseError$outboundSchema;
|
|
62
|
-
})(ServiceUnavailableResponseError$ || (ServiceUnavailableResponseError$ = {}));
|
|
63
41
|
//# sourceMappingURL=serviceunavailableresponseerror.js.map
|
|
@@ -30,23 +30,4 @@ export declare class TooManyRequestsResponseError extends OpenRouterError {
|
|
|
30
30
|
}
|
|
31
31
|
/** @internal */
|
|
32
32
|
export declare const TooManyRequestsResponseError$inboundSchema: z.ZodType<TooManyRequestsResponseError, unknown>;
|
|
33
|
-
/** @internal */
|
|
34
|
-
export type TooManyRequestsResponseError$Outbound = {
|
|
35
|
-
error: models.TooManyRequestsResponseErrorData$Outbound;
|
|
36
|
-
user_id?: string | null | undefined;
|
|
37
|
-
};
|
|
38
|
-
/** @internal */
|
|
39
|
-
export declare const TooManyRequestsResponseError$outboundSchema: z.ZodType<TooManyRequestsResponseError$Outbound, TooManyRequestsResponseError>;
|
|
40
|
-
/**
|
|
41
|
-
* @internal
|
|
42
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
43
|
-
*/
|
|
44
|
-
export declare namespace TooManyRequestsResponseError$ {
|
|
45
|
-
/** @deprecated use `TooManyRequestsResponseError$inboundSchema` instead. */
|
|
46
|
-
const inboundSchema: z.ZodType<TooManyRequestsResponseError, unknown, z.core.$ZodTypeInternals<TooManyRequestsResponseError, unknown>>;
|
|
47
|
-
/** @deprecated use `TooManyRequestsResponseError$outboundSchema` instead. */
|
|
48
|
-
const outboundSchema: z.ZodType<TooManyRequestsResponseError$Outbound, TooManyRequestsResponseError, z.core.$ZodTypeInternals<TooManyRequestsResponseError$Outbound, TooManyRequestsResponseError>>;
|
|
49
|
-
/** @deprecated use `TooManyRequestsResponseError$Outbound` instead. */
|
|
50
|
-
type Outbound = TooManyRequestsResponseError$Outbound;
|
|
51
|
-
}
|
|
52
33
|
//# sourceMappingURL=toomanyrequestsresponseerror.d.ts.map
|
|
@@ -38,26 +38,4 @@ export const TooManyRequestsResponseError$inboundSchema = z.object({
|
|
|
38
38
|
body: v.body$,
|
|
39
39
|
});
|
|
40
40
|
});
|
|
41
|
-
/** @internal */
|
|
42
|
-
export const TooManyRequestsResponseError$outboundSchema = z.custom(x => x instanceof TooManyRequestsResponseError)
|
|
43
|
-
.transform(v => v.data$)
|
|
44
|
-
.pipe(z.object({
|
|
45
|
-
error: models.TooManyRequestsResponseErrorData$outboundSchema,
|
|
46
|
-
userId: z.nullable(z.string()).optional(),
|
|
47
|
-
}).transform((v) => {
|
|
48
|
-
return remap$(v, {
|
|
49
|
-
userId: "user_id",
|
|
50
|
-
});
|
|
51
|
-
}));
|
|
52
|
-
/**
|
|
53
|
-
* @internal
|
|
54
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
55
|
-
*/
|
|
56
|
-
export var TooManyRequestsResponseError$;
|
|
57
|
-
(function (TooManyRequestsResponseError$) {
|
|
58
|
-
/** @deprecated use `TooManyRequestsResponseError$inboundSchema` instead. */
|
|
59
|
-
TooManyRequestsResponseError$.inboundSchema = TooManyRequestsResponseError$inboundSchema;
|
|
60
|
-
/** @deprecated use `TooManyRequestsResponseError$outboundSchema` instead. */
|
|
61
|
-
TooManyRequestsResponseError$.outboundSchema = TooManyRequestsResponseError$outboundSchema;
|
|
62
|
-
})(TooManyRequestsResponseError$ || (TooManyRequestsResponseError$ = {}));
|
|
63
41
|
//# sourceMappingURL=toomanyrequestsresponseerror.js.map
|
|
@@ -30,23 +30,4 @@ export declare class UnauthorizedResponseError extends OpenRouterError {
|
|
|
30
30
|
}
|
|
31
31
|
/** @internal */
|
|
32
32
|
export declare const UnauthorizedResponseError$inboundSchema: z.ZodType<UnauthorizedResponseError, unknown>;
|
|
33
|
-
/** @internal */
|
|
34
|
-
export type UnauthorizedResponseError$Outbound = {
|
|
35
|
-
error: models.UnauthorizedResponseErrorData$Outbound;
|
|
36
|
-
user_id?: string | null | undefined;
|
|
37
|
-
};
|
|
38
|
-
/** @internal */
|
|
39
|
-
export declare const UnauthorizedResponseError$outboundSchema: z.ZodType<UnauthorizedResponseError$Outbound, UnauthorizedResponseError>;
|
|
40
|
-
/**
|
|
41
|
-
* @internal
|
|
42
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
43
|
-
*/
|
|
44
|
-
export declare namespace UnauthorizedResponseError$ {
|
|
45
|
-
/** @deprecated use `UnauthorizedResponseError$inboundSchema` instead. */
|
|
46
|
-
const inboundSchema: z.ZodType<UnauthorizedResponseError, unknown, z.core.$ZodTypeInternals<UnauthorizedResponseError, unknown>>;
|
|
47
|
-
/** @deprecated use `UnauthorizedResponseError$outboundSchema` instead. */
|
|
48
|
-
const outboundSchema: z.ZodType<UnauthorizedResponseError$Outbound, UnauthorizedResponseError, z.core.$ZodTypeInternals<UnauthorizedResponseError$Outbound, UnauthorizedResponseError>>;
|
|
49
|
-
/** @deprecated use `UnauthorizedResponseError$Outbound` instead. */
|
|
50
|
-
type Outbound = UnauthorizedResponseError$Outbound;
|
|
51
|
-
}
|
|
52
33
|
//# sourceMappingURL=unauthorizedresponseerror.d.ts.map
|
|
@@ -38,26 +38,4 @@ export const UnauthorizedResponseError$inboundSchema = z.object({
|
|
|
38
38
|
body: v.body$,
|
|
39
39
|
});
|
|
40
40
|
});
|
|
41
|
-
/** @internal */
|
|
42
|
-
export const UnauthorizedResponseError$outboundSchema = z.custom(x => x instanceof UnauthorizedResponseError)
|
|
43
|
-
.transform(v => v.data$)
|
|
44
|
-
.pipe(z.object({
|
|
45
|
-
error: models.UnauthorizedResponseErrorData$outboundSchema,
|
|
46
|
-
userId: z.nullable(z.string()).optional(),
|
|
47
|
-
}).transform((v) => {
|
|
48
|
-
return remap$(v, {
|
|
49
|
-
userId: "user_id",
|
|
50
|
-
});
|
|
51
|
-
}));
|
|
52
|
-
/**
|
|
53
|
-
* @internal
|
|
54
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
55
|
-
*/
|
|
56
|
-
export var UnauthorizedResponseError$;
|
|
57
|
-
(function (UnauthorizedResponseError$) {
|
|
58
|
-
/** @deprecated use `UnauthorizedResponseError$inboundSchema` instead. */
|
|
59
|
-
UnauthorizedResponseError$.inboundSchema = UnauthorizedResponseError$inboundSchema;
|
|
60
|
-
/** @deprecated use `UnauthorizedResponseError$outboundSchema` instead. */
|
|
61
|
-
UnauthorizedResponseError$.outboundSchema = UnauthorizedResponseError$outboundSchema;
|
|
62
|
-
})(UnauthorizedResponseError$ || (UnauthorizedResponseError$ = {}));
|
|
63
41
|
//# sourceMappingURL=unauthorizedresponseerror.js.map
|
|
@@ -30,23 +30,4 @@ export declare class UnprocessableEntityResponseError extends OpenRouterError {
|
|
|
30
30
|
}
|
|
31
31
|
/** @internal */
|
|
32
32
|
export declare const UnprocessableEntityResponseError$inboundSchema: z.ZodType<UnprocessableEntityResponseError, unknown>;
|
|
33
|
-
/** @internal */
|
|
34
|
-
export type UnprocessableEntityResponseError$Outbound = {
|
|
35
|
-
error: models.UnprocessableEntityResponseErrorData$Outbound;
|
|
36
|
-
user_id?: string | null | undefined;
|
|
37
|
-
};
|
|
38
|
-
/** @internal */
|
|
39
|
-
export declare const UnprocessableEntityResponseError$outboundSchema: z.ZodType<UnprocessableEntityResponseError$Outbound, UnprocessableEntityResponseError>;
|
|
40
|
-
/**
|
|
41
|
-
* @internal
|
|
42
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
43
|
-
*/
|
|
44
|
-
export declare namespace UnprocessableEntityResponseError$ {
|
|
45
|
-
/** @deprecated use `UnprocessableEntityResponseError$inboundSchema` instead. */
|
|
46
|
-
const inboundSchema: z.ZodType<UnprocessableEntityResponseError, unknown, z.core.$ZodTypeInternals<UnprocessableEntityResponseError, unknown>>;
|
|
47
|
-
/** @deprecated use `UnprocessableEntityResponseError$outboundSchema` instead. */
|
|
48
|
-
const outboundSchema: z.ZodType<UnprocessableEntityResponseError$Outbound, UnprocessableEntityResponseError, z.core.$ZodTypeInternals<UnprocessableEntityResponseError$Outbound, UnprocessableEntityResponseError>>;
|
|
49
|
-
/** @deprecated use `UnprocessableEntityResponseError$Outbound` instead. */
|
|
50
|
-
type Outbound = UnprocessableEntityResponseError$Outbound;
|
|
51
|
-
}
|
|
52
33
|
//# sourceMappingURL=unprocessableentityresponseerror.d.ts.map
|
|
@@ -38,26 +38,4 @@ export const UnprocessableEntityResponseError$inboundSchema = z.object({
|
|
|
38
38
|
body: v.body$,
|
|
39
39
|
});
|
|
40
40
|
});
|
|
41
|
-
/** @internal */
|
|
42
|
-
export const UnprocessableEntityResponseError$outboundSchema = z.custom(x => x instanceof UnprocessableEntityResponseError)
|
|
43
|
-
.transform(v => v.data$)
|
|
44
|
-
.pipe(z.object({
|
|
45
|
-
error: models.UnprocessableEntityResponseErrorData$outboundSchema,
|
|
46
|
-
userId: z.nullable(z.string()).optional(),
|
|
47
|
-
}).transform((v) => {
|
|
48
|
-
return remap$(v, {
|
|
49
|
-
userId: "user_id",
|
|
50
|
-
});
|
|
51
|
-
}));
|
|
52
|
-
/**
|
|
53
|
-
* @internal
|
|
54
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
55
|
-
*/
|
|
56
|
-
export var UnprocessableEntityResponseError$;
|
|
57
|
-
(function (UnprocessableEntityResponseError$) {
|
|
58
|
-
/** @deprecated use `UnprocessableEntityResponseError$inboundSchema` instead. */
|
|
59
|
-
UnprocessableEntityResponseError$.inboundSchema = UnprocessableEntityResponseError$inboundSchema;
|
|
60
|
-
/** @deprecated use `UnprocessableEntityResponseError$outboundSchema` instead. */
|
|
61
|
-
UnprocessableEntityResponseError$.outboundSchema = UnprocessableEntityResponseError$outboundSchema;
|
|
62
|
-
})(UnprocessableEntityResponseError$ || (UnprocessableEntityResponseError$ = {}));
|
|
63
41
|
//# sourceMappingURL=unprocessableentityresponseerror.js.map
|
|
@@ -16,20 +16,6 @@ export type FileCitation = {
|
|
|
16
16
|
export declare const FileCitationType$inboundSchema: z.ZodEnum<typeof FileCitationType>;
|
|
17
17
|
/** @internal */
|
|
18
18
|
export declare const FileCitationType$outboundSchema: z.ZodEnum<typeof FileCitationType>;
|
|
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 declare namespace FileCitationType$ {
|
|
24
|
-
/** @deprecated use `FileCitationType$inboundSchema` instead. */
|
|
25
|
-
const inboundSchema: z.ZodEnum<{
|
|
26
|
-
readonly FileCitation: "file_citation";
|
|
27
|
-
}>;
|
|
28
|
-
/** @deprecated use `FileCitationType$outboundSchema` instead. */
|
|
29
|
-
const outboundSchema: z.ZodEnum<{
|
|
30
|
-
readonly FileCitation: "file_citation";
|
|
31
|
-
}>;
|
|
32
|
-
}
|
|
33
19
|
/** @internal */
|
|
34
20
|
export declare const FileCitation$inboundSchema: z.ZodType<FileCitation, unknown>;
|
|
35
21
|
/** @internal */
|
|
@@ -41,18 +27,6 @@ export type FileCitation$Outbound = {
|
|
|
41
27
|
};
|
|
42
28
|
/** @internal */
|
|
43
29
|
export declare const FileCitation$outboundSchema: z.ZodType<FileCitation$Outbound, FileCitation>;
|
|
44
|
-
/**
|
|
45
|
-
* @internal
|
|
46
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
47
|
-
*/
|
|
48
|
-
export declare namespace FileCitation$ {
|
|
49
|
-
/** @deprecated use `FileCitation$inboundSchema` instead. */
|
|
50
|
-
const inboundSchema: z.ZodType<FileCitation, unknown, z.core.$ZodTypeInternals<FileCitation, unknown>>;
|
|
51
|
-
/** @deprecated use `FileCitation$outboundSchema` instead. */
|
|
52
|
-
const outboundSchema: z.ZodType<FileCitation$Outbound, FileCitation, z.core.$ZodTypeInternals<FileCitation$Outbound, FileCitation>>;
|
|
53
|
-
/** @deprecated use `FileCitation$Outbound` instead. */
|
|
54
|
-
type Outbound = FileCitation$Outbound;
|
|
55
|
-
}
|
|
56
30
|
export declare function fileCitationToJSON(fileCitation: FileCitation): string;
|
|
57
31
|
export declare function fileCitationFromJSON(jsonString: string): SafeParseResult<FileCitation, SDKValidationError>;
|
|
58
32
|
//# sourceMappingURL=filecitation.d.ts.map
|
|
@@ -11,17 +11,6 @@ export const FileCitationType = {
|
|
|
11
11
|
export const FileCitationType$inboundSchema = z.enum(FileCitationType);
|
|
12
12
|
/** @internal */
|
|
13
13
|
export const FileCitationType$outboundSchema = FileCitationType$inboundSchema;
|
|
14
|
-
/**
|
|
15
|
-
* @internal
|
|
16
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
17
|
-
*/
|
|
18
|
-
export var FileCitationType$;
|
|
19
|
-
(function (FileCitationType$) {
|
|
20
|
-
/** @deprecated use `FileCitationType$inboundSchema` instead. */
|
|
21
|
-
FileCitationType$.inboundSchema = FileCitationType$inboundSchema;
|
|
22
|
-
/** @deprecated use `FileCitationType$outboundSchema` instead. */
|
|
23
|
-
FileCitationType$.outboundSchema = FileCitationType$outboundSchema;
|
|
24
|
-
})(FileCitationType$ || (FileCitationType$ = {}));
|
|
25
14
|
/** @internal */
|
|
26
15
|
export const FileCitation$inboundSchema = z
|
|
27
16
|
.object({
|
|
@@ -45,17 +34,6 @@ export const FileCitation$outboundSchema = z.object({
|
|
|
45
34
|
fileId: "file_id",
|
|
46
35
|
});
|
|
47
36
|
});
|
|
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 var FileCitation$;
|
|
53
|
-
(function (FileCitation$) {
|
|
54
|
-
/** @deprecated use `FileCitation$inboundSchema` instead. */
|
|
55
|
-
FileCitation$.inboundSchema = FileCitation$inboundSchema;
|
|
56
|
-
/** @deprecated use `FileCitation$outboundSchema` instead. */
|
|
57
|
-
FileCitation$.outboundSchema = FileCitation$outboundSchema;
|
|
58
|
-
})(FileCitation$ || (FileCitation$ = {}));
|
|
59
37
|
export function fileCitationToJSON(fileCitation) {
|
|
60
38
|
return JSON.stringify(FileCitation$outboundSchema.parse(fileCitation));
|
|
61
39
|
}
|
package/esm/models/filepath.d.ts
CHANGED
|
@@ -15,20 +15,6 @@ export type FilePath = {
|
|
|
15
15
|
export declare const FilePathType$inboundSchema: z.ZodEnum<typeof FilePathType>;
|
|
16
16
|
/** @internal */
|
|
17
17
|
export declare const FilePathType$outboundSchema: z.ZodEnum<typeof FilePathType>;
|
|
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 FilePathType$ {
|
|
23
|
-
/** @deprecated use `FilePathType$inboundSchema` instead. */
|
|
24
|
-
const inboundSchema: z.ZodEnum<{
|
|
25
|
-
readonly FilePath: "file_path";
|
|
26
|
-
}>;
|
|
27
|
-
/** @deprecated use `FilePathType$outboundSchema` instead. */
|
|
28
|
-
const outboundSchema: z.ZodEnum<{
|
|
29
|
-
readonly FilePath: "file_path";
|
|
30
|
-
}>;
|
|
31
|
-
}
|
|
32
18
|
/** @internal */
|
|
33
19
|
export declare const FilePath$inboundSchema: z.ZodType<FilePath, unknown>;
|
|
34
20
|
/** @internal */
|
|
@@ -39,18 +25,6 @@ export type FilePath$Outbound = {
|
|
|
39
25
|
};
|
|
40
26
|
/** @internal */
|
|
41
27
|
export declare const FilePath$outboundSchema: z.ZodType<FilePath$Outbound, FilePath>;
|
|
42
|
-
/**
|
|
43
|
-
* @internal
|
|
44
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
45
|
-
*/
|
|
46
|
-
export declare namespace FilePath$ {
|
|
47
|
-
/** @deprecated use `FilePath$inboundSchema` instead. */
|
|
48
|
-
const inboundSchema: z.ZodType<FilePath, unknown, z.core.$ZodTypeInternals<FilePath, unknown>>;
|
|
49
|
-
/** @deprecated use `FilePath$outboundSchema` instead. */
|
|
50
|
-
const outboundSchema: z.ZodType<FilePath$Outbound, FilePath, z.core.$ZodTypeInternals<FilePath$Outbound, FilePath>>;
|
|
51
|
-
/** @deprecated use `FilePath$Outbound` instead. */
|
|
52
|
-
type Outbound = FilePath$Outbound;
|
|
53
|
-
}
|
|
54
28
|
export declare function filePathToJSON(filePath: FilePath): string;
|
|
55
29
|
export declare function filePathFromJSON(jsonString: string): SafeParseResult<FilePath, SDKValidationError>;
|
|
56
30
|
//# sourceMappingURL=filepath.d.ts.map
|
package/esm/models/filepath.js
CHANGED
|
@@ -12,17 +12,6 @@ export const FilePathType$inboundSchema = z
|
|
|
12
12
|
.enum(FilePathType);
|
|
13
13
|
/** @internal */
|
|
14
14
|
export const FilePathType$outboundSchema = FilePathType$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 FilePathType$;
|
|
20
|
-
(function (FilePathType$) {
|
|
21
|
-
/** @deprecated use `FilePathType$inboundSchema` instead. */
|
|
22
|
-
FilePathType$.inboundSchema = FilePathType$inboundSchema;
|
|
23
|
-
/** @deprecated use `FilePathType$outboundSchema` instead. */
|
|
24
|
-
FilePathType$.outboundSchema = FilePathType$outboundSchema;
|
|
25
|
-
})(FilePathType$ || (FilePathType$ = {}));
|
|
26
15
|
/** @internal */
|
|
27
16
|
export const FilePath$inboundSchema = z.object({
|
|
28
17
|
type: FilePathType$inboundSchema,
|
|
@@ -44,17 +33,6 @@ export const FilePath$outboundSchema = z
|
|
|
44
33
|
fileId: "file_id",
|
|
45
34
|
});
|
|
46
35
|
});
|
|
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 var FilePath$;
|
|
52
|
-
(function (FilePath$) {
|
|
53
|
-
/** @deprecated use `FilePath$inboundSchema` instead. */
|
|
54
|
-
FilePath$.inboundSchema = FilePath$inboundSchema;
|
|
55
|
-
/** @deprecated use `FilePath$outboundSchema` instead. */
|
|
56
|
-
FilePath$.outboundSchema = FilePath$outboundSchema;
|
|
57
|
-
})(FilePath$ || (FilePath$ = {}));
|
|
58
36
|
export function filePathToJSON(filePath) {
|
|
59
37
|
return JSON.stringify(FilePath$outboundSchema.parse(filePath));
|
|
60
38
|
}
|
|
@@ -13,28 +13,5 @@ export type ForbiddenResponseErrorData = {
|
|
|
13
13
|
};
|
|
14
14
|
/** @internal */
|
|
15
15
|
export declare const ForbiddenResponseErrorData$inboundSchema: z.ZodType<ForbiddenResponseErrorData, unknown>;
|
|
16
|
-
/** @internal */
|
|
17
|
-
export type ForbiddenResponseErrorData$Outbound = {
|
|
18
|
-
code: number;
|
|
19
|
-
message: string;
|
|
20
|
-
metadata?: {
|
|
21
|
-
[k: string]: any | null;
|
|
22
|
-
} | null | undefined;
|
|
23
|
-
};
|
|
24
|
-
/** @internal */
|
|
25
|
-
export declare const ForbiddenResponseErrorData$outboundSchema: z.ZodType<ForbiddenResponseErrorData$Outbound, ForbiddenResponseErrorData>;
|
|
26
|
-
/**
|
|
27
|
-
* @internal
|
|
28
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
29
|
-
*/
|
|
30
|
-
export declare namespace ForbiddenResponseErrorData$ {
|
|
31
|
-
/** @deprecated use `ForbiddenResponseErrorData$inboundSchema` instead. */
|
|
32
|
-
const inboundSchema: z.ZodType<ForbiddenResponseErrorData, unknown, z.core.$ZodTypeInternals<ForbiddenResponseErrorData, unknown>>;
|
|
33
|
-
/** @deprecated use `ForbiddenResponseErrorData$outboundSchema` instead. */
|
|
34
|
-
const outboundSchema: z.ZodType<ForbiddenResponseErrorData$Outbound, ForbiddenResponseErrorData, z.core.$ZodTypeInternals<ForbiddenResponseErrorData$Outbound, ForbiddenResponseErrorData>>;
|
|
35
|
-
/** @deprecated use `ForbiddenResponseErrorData$Outbound` instead. */
|
|
36
|
-
type Outbound = ForbiddenResponseErrorData$Outbound;
|
|
37
|
-
}
|
|
38
|
-
export declare function forbiddenResponseErrorDataToJSON(forbiddenResponseErrorData: ForbiddenResponseErrorData): string;
|
|
39
16
|
export declare function forbiddenResponseErrorDataFromJSON(jsonString: string): SafeParseResult<ForbiddenResponseErrorData, SDKValidationError>;
|
|
40
17
|
//# sourceMappingURL=forbiddenresponseerrordata.d.ts.map
|
|
@@ -9,26 +9,6 @@ export const ForbiddenResponseErrorData$inboundSchema = z.object({
|
|
|
9
9
|
message: z.string(),
|
|
10
10
|
metadata: z.nullable(z.record(z.string(), z.nullable(z.any()))).optional(),
|
|
11
11
|
});
|
|
12
|
-
/** @internal */
|
|
13
|
-
export const ForbiddenResponseErrorData$outboundSchema = z.object({
|
|
14
|
-
code: z.number().int(),
|
|
15
|
-
message: z.string(),
|
|
16
|
-
metadata: z.nullable(z.record(z.string(), z.nullable(z.any()))).optional(),
|
|
17
|
-
});
|
|
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 var ForbiddenResponseErrorData$;
|
|
23
|
-
(function (ForbiddenResponseErrorData$) {
|
|
24
|
-
/** @deprecated use `ForbiddenResponseErrorData$inboundSchema` instead. */
|
|
25
|
-
ForbiddenResponseErrorData$.inboundSchema = ForbiddenResponseErrorData$inboundSchema;
|
|
26
|
-
/** @deprecated use `ForbiddenResponseErrorData$outboundSchema` instead. */
|
|
27
|
-
ForbiddenResponseErrorData$.outboundSchema = ForbiddenResponseErrorData$outboundSchema;
|
|
28
|
-
})(ForbiddenResponseErrorData$ || (ForbiddenResponseErrorData$ = {}));
|
|
29
|
-
export function forbiddenResponseErrorDataToJSON(forbiddenResponseErrorData) {
|
|
30
|
-
return JSON.stringify(ForbiddenResponseErrorData$outboundSchema.parse(forbiddenResponseErrorData));
|
|
31
|
-
}
|
|
32
12
|
export function forbiddenResponseErrorDataFromJSON(jsonString) {
|
|
33
13
|
return safeParse(jsonString, (x) => ForbiddenResponseErrorData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ForbiddenResponseErrorData' from JSON`);
|
|
34
14
|
}
|
|
@@ -11,14 +11,4 @@ export type ImageGenerationStatus = OpenEnum<typeof ImageGenerationStatus>;
|
|
|
11
11
|
export declare const ImageGenerationStatus$inboundSchema: z.ZodType<ImageGenerationStatus, unknown>;
|
|
12
12
|
/** @internal */
|
|
13
13
|
export declare const ImageGenerationStatus$outboundSchema: z.ZodType<ImageGenerationStatus, ImageGenerationStatus>;
|
|
14
|
-
/**
|
|
15
|
-
* @internal
|
|
16
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
17
|
-
*/
|
|
18
|
-
export declare namespace ImageGenerationStatus$ {
|
|
19
|
-
/** @deprecated use `ImageGenerationStatus$inboundSchema` instead. */
|
|
20
|
-
const inboundSchema: z.ZodType<ImageGenerationStatus, unknown, z.core.$ZodTypeInternals<ImageGenerationStatus, unknown>>;
|
|
21
|
-
/** @deprecated use `ImageGenerationStatus$outboundSchema` instead. */
|
|
22
|
-
const outboundSchema: z.ZodType<ImageGenerationStatus, ImageGenerationStatus, z.core.$ZodTypeInternals<ImageGenerationStatus, ImageGenerationStatus>>;
|
|
23
|
-
}
|
|
24
14
|
//# sourceMappingURL=imagegenerationstatus.d.ts.map
|
|
@@ -20,15 +20,4 @@ export const ImageGenerationStatus$outboundSchema = z.union([
|
|
|
20
20
|
z.enum(ImageGenerationStatus),
|
|
21
21
|
z.string().and(z.custom()),
|
|
22
22
|
]);
|
|
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 ImageGenerationStatus$;
|
|
28
|
-
(function (ImageGenerationStatus$) {
|
|
29
|
-
/** @deprecated use `ImageGenerationStatus$inboundSchema` instead. */
|
|
30
|
-
ImageGenerationStatus$.inboundSchema = ImageGenerationStatus$inboundSchema;
|
|
31
|
-
/** @deprecated use `ImageGenerationStatus$outboundSchema` instead. */
|
|
32
|
-
ImageGenerationStatus$.outboundSchema = ImageGenerationStatus$outboundSchema;
|
|
33
|
-
})(ImageGenerationStatus$ || (ImageGenerationStatus$ = {}));
|
|
34
23
|
//# sourceMappingURL=imagegenerationstatus.js.map
|
package/esm/models/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export * from "./chatmessagecontentitem.js";
|
|
|
10
10
|
export * from "./chatmessagecontentitemaudio.js";
|
|
11
11
|
export * from "./chatmessagecontentitemimage.js";
|
|
12
12
|
export * from "./chatmessagecontentitemtext.js";
|
|
13
|
+
export * from "./chatmessagecontentitemvideo.js";
|
|
13
14
|
export * from "./chatmessagetokenlogprob.js";
|
|
14
15
|
export * from "./chatmessagetokenlogprobs.js";
|
|
15
16
|
export * from "./chatmessagetoolcall.js";
|
|
@@ -127,8 +128,8 @@ export * from "./responsetextconfig.js";
|
|
|
127
128
|
export * from "./security.js";
|
|
128
129
|
export * from "./serviceunavailableresponseerrordata.js";
|
|
129
130
|
export * from "./systemmessage.js";
|
|
130
|
-
export * from "./tool.js";
|
|
131
131
|
export * from "./toolcallstatus.js";
|
|
132
|
+
export * from "./tooldefinitionjson.js";
|
|
132
133
|
export * from "./toolresponsemessage.js";
|
|
133
134
|
export * from "./toomanyrequestsresponseerrordata.js";
|
|
134
135
|
export * from "./topproviderinfo.js";
|
package/esm/models/index.js
CHANGED
|
@@ -13,6 +13,7 @@ export * from "./chatmessagecontentitem.js";
|
|
|
13
13
|
export * from "./chatmessagecontentitemaudio.js";
|
|
14
14
|
export * from "./chatmessagecontentitemimage.js";
|
|
15
15
|
export * from "./chatmessagecontentitemtext.js";
|
|
16
|
+
export * from "./chatmessagecontentitemvideo.js";
|
|
16
17
|
export * from "./chatmessagetokenlogprob.js";
|
|
17
18
|
export * from "./chatmessagetokenlogprobs.js";
|
|
18
19
|
export * from "./chatmessagetoolcall.js";
|
|
@@ -130,8 +131,8 @@ export * from "./responsetextconfig.js";
|
|
|
130
131
|
export * from "./security.js";
|
|
131
132
|
export * from "./serviceunavailableresponseerrordata.js";
|
|
132
133
|
export * from "./systemmessage.js";
|
|
133
|
-
export * from "./tool.js";
|
|
134
134
|
export * from "./toolcallstatus.js";
|
|
135
|
+
export * from "./tooldefinitionjson.js";
|
|
135
136
|
export * from "./toolresponsemessage.js";
|
|
136
137
|
export * from "./toomanyrequestsresponseerrordata.js";
|
|
137
138
|
export * from "./topproviderinfo.js";
|
|
@@ -10,16 +10,4 @@ export declare const InputModality: {
|
|
|
10
10
|
export type InputModality = OpenEnum<typeof InputModality>;
|
|
11
11
|
/** @internal */
|
|
12
12
|
export declare const InputModality$inboundSchema: z.ZodType<InputModality, unknown>;
|
|
13
|
-
/** @internal */
|
|
14
|
-
export declare const InputModality$outboundSchema: z.ZodType<InputModality, InputModality>;
|
|
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 InputModality$ {
|
|
20
|
-
/** @deprecated use `InputModality$inboundSchema` instead. */
|
|
21
|
-
const inboundSchema: z.ZodType<InputModality, unknown, z.core.$ZodTypeInternals<InputModality, unknown>>;
|
|
22
|
-
/** @deprecated use `InputModality$outboundSchema` instead. */
|
|
23
|
-
const outboundSchema: z.ZodType<InputModality, InputModality, z.core.$ZodTypeInternals<InputModality, InputModality>>;
|
|
24
|
-
}
|
|
25
13
|
//# sourceMappingURL=inputmodality.d.ts.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
import * as z from "zod/v4";
|
|
5
|
-
import { catchUnrecognizedEnum
|
|
5
|
+
import { catchUnrecognizedEnum } from "../types/enums.js";
|
|
6
6
|
export const InputModality = {
|
|
7
7
|
Text: "text",
|
|
8
8
|
Image: "image",
|
|
@@ -16,20 +16,4 @@ export const InputModality$inboundSchema = z
|
|
|
16
16
|
z.enum(InputModality),
|
|
17
17
|
z.string().transform(catchUnrecognizedEnum),
|
|
18
18
|
]);
|
|
19
|
-
/** @internal */
|
|
20
|
-
export const InputModality$outboundSchema = z.union([
|
|
21
|
-
z.enum(InputModality),
|
|
22
|
-
z.string().and(z.custom()),
|
|
23
|
-
]);
|
|
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 var InputModality$;
|
|
29
|
-
(function (InputModality$) {
|
|
30
|
-
/** @deprecated use `InputModality$inboundSchema` instead. */
|
|
31
|
-
InputModality$.inboundSchema = InputModality$inboundSchema;
|
|
32
|
-
/** @deprecated use `InputModality$outboundSchema` instead. */
|
|
33
|
-
InputModality$.outboundSchema = InputModality$outboundSchema;
|
|
34
|
-
})(InputModality$ || (InputModality$ = {}));
|
|
35
19
|
//# sourceMappingURL=inputmodality.js.map
|
|
@@ -33,16 +33,4 @@ export declare const InstructType: {
|
|
|
33
33
|
export type InstructType = OpenEnum<typeof InstructType>;
|
|
34
34
|
/** @internal */
|
|
35
35
|
export declare const InstructType$inboundSchema: z.ZodType<InstructType, unknown>;
|
|
36
|
-
/** @internal */
|
|
37
|
-
export declare const InstructType$outboundSchema: z.ZodType<InstructType, InstructType>;
|
|
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 declare namespace InstructType$ {
|
|
43
|
-
/** @deprecated use `InstructType$inboundSchema` instead. */
|
|
44
|
-
const inboundSchema: z.ZodType<InstructType, unknown, z.core.$ZodTypeInternals<InstructType, unknown>>;
|
|
45
|
-
/** @deprecated use `InstructType$outboundSchema` instead. */
|
|
46
|
-
const outboundSchema: z.ZodType<InstructType, InstructType, z.core.$ZodTypeInternals<InstructType, InstructType>>;
|
|
47
|
-
}
|
|
48
36
|
//# sourceMappingURL=instructtype.d.ts.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
import * as z from "zod/v4";
|
|
5
|
-
import { catchUnrecognizedEnum
|
|
5
|
+
import { catchUnrecognizedEnum } from "../types/enums.js";
|
|
6
6
|
/**
|
|
7
7
|
* Instruction format type
|
|
8
8
|
*/
|
|
@@ -36,20 +36,4 @@ export const InstructType$inboundSchema = z
|
|
|
36
36
|
z.enum(InstructType),
|
|
37
37
|
z.string().transform(catchUnrecognizedEnum),
|
|
38
38
|
]);
|
|
39
|
-
/** @internal */
|
|
40
|
-
export const InstructType$outboundSchema = z.union([
|
|
41
|
-
z.enum(InstructType),
|
|
42
|
-
z.string().and(z.custom()),
|
|
43
|
-
]);
|
|
44
|
-
/**
|
|
45
|
-
* @internal
|
|
46
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
47
|
-
*/
|
|
48
|
-
export var InstructType$;
|
|
49
|
-
(function (InstructType$) {
|
|
50
|
-
/** @deprecated use `InstructType$inboundSchema` instead. */
|
|
51
|
-
InstructType$.inboundSchema = InstructType$inboundSchema;
|
|
52
|
-
/** @deprecated use `InstructType$outboundSchema` instead. */
|
|
53
|
-
InstructType$.outboundSchema = InstructType$outboundSchema;
|
|
54
|
-
})(InstructType$ || (InstructType$ = {}));
|
|
55
39
|
//# sourceMappingURL=instructtype.js.map
|