@openrouter/sdk 0.1.2 → 0.1.3
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 +5 -70
- package/esm/models/chatgenerationtokenusage.js +5 -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 +0 -348
- package/esm/models/openresponsesrequest.js +16 -523
- 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 +0 -322
- package/esm/models/operations/createembeddings.js +2 -397
- 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
|
@@ -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 OutputModality = {
|
|
7
7
|
Text: "text",
|
|
8
8
|
Image: "image",
|
|
@@ -14,20 +14,4 @@ export const OutputModality$inboundSchema = z
|
|
|
14
14
|
z.enum(OutputModality),
|
|
15
15
|
z.string().transform(catchUnrecognizedEnum),
|
|
16
16
|
]);
|
|
17
|
-
/** @internal */
|
|
18
|
-
export const OutputModality$outboundSchema = z.union([
|
|
19
|
-
z.enum(OutputModality),
|
|
20
|
-
z.string().and(z.custom()),
|
|
21
|
-
]);
|
|
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 var OutputModality$;
|
|
27
|
-
(function (OutputModality$) {
|
|
28
|
-
/** @deprecated use `OutputModality$inboundSchema` instead. */
|
|
29
|
-
OutputModality$.inboundSchema = OutputModality$inboundSchema;
|
|
30
|
-
/** @deprecated use `OutputModality$outboundSchema` instead. */
|
|
31
|
-
OutputModality$.outboundSchema = OutputModality$outboundSchema;
|
|
32
|
-
})(OutputModality$ || (OutputModality$ = {}));
|
|
33
17
|
//# sourceMappingURL=outputmodality.js.map
|
|
@@ -28,16 +28,4 @@ export declare const Parameter: {
|
|
|
28
28
|
export type Parameter = OpenEnum<typeof Parameter>;
|
|
29
29
|
/** @internal */
|
|
30
30
|
export declare const Parameter$inboundSchema: z.ZodType<Parameter, unknown>;
|
|
31
|
-
/** @internal */
|
|
32
|
-
export declare const Parameter$outboundSchema: z.ZodType<Parameter, Parameter>;
|
|
33
|
-
/**
|
|
34
|
-
* @internal
|
|
35
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
36
|
-
*/
|
|
37
|
-
export declare namespace Parameter$ {
|
|
38
|
-
/** @deprecated use `Parameter$inboundSchema` instead. */
|
|
39
|
-
const inboundSchema: z.ZodType<Parameter, unknown, z.core.$ZodTypeInternals<Parameter, unknown>>;
|
|
40
|
-
/** @deprecated use `Parameter$outboundSchema` instead. */
|
|
41
|
-
const outboundSchema: z.ZodType<Parameter, Parameter, z.core.$ZodTypeInternals<Parameter, Parameter>>;
|
|
42
|
-
}
|
|
43
31
|
//# sourceMappingURL=parameter.d.ts.map
|
package/esm/models/parameter.js
CHANGED
|
@@ -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 Parameter = {
|
|
7
7
|
Temperature: "temperature",
|
|
8
8
|
TopP: "top_p",
|
|
@@ -34,21 +34,4 @@ export const Parameter$inboundSchema = z
|
|
|
34
34
|
z.enum(Parameter),
|
|
35
35
|
z.string().transform(catchUnrecognizedEnum),
|
|
36
36
|
]);
|
|
37
|
-
/** @internal */
|
|
38
|
-
export const Parameter$outboundSchema = z
|
|
39
|
-
.union([
|
|
40
|
-
z.enum(Parameter),
|
|
41
|
-
z.string().and(z.custom()),
|
|
42
|
-
]);
|
|
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 var Parameter$;
|
|
48
|
-
(function (Parameter$) {
|
|
49
|
-
/** @deprecated use `Parameter$inboundSchema` instead. */
|
|
50
|
-
Parameter$.inboundSchema = Parameter$inboundSchema;
|
|
51
|
-
/** @deprecated use `Parameter$outboundSchema` instead. */
|
|
52
|
-
Parameter$.outboundSchema = Parameter$outboundSchema;
|
|
53
|
-
})(Parameter$ || (Parameter$ = {}));
|
|
54
37
|
//# sourceMappingURL=parameter.js.map
|
|
@@ -13,28 +13,5 @@ export type PayloadTooLargeResponseErrorData = {
|
|
|
13
13
|
};
|
|
14
14
|
/** @internal */
|
|
15
15
|
export declare const PayloadTooLargeResponseErrorData$inboundSchema: z.ZodType<PayloadTooLargeResponseErrorData, unknown>;
|
|
16
|
-
/** @internal */
|
|
17
|
-
export type PayloadTooLargeResponseErrorData$Outbound = {
|
|
18
|
-
code: number;
|
|
19
|
-
message: string;
|
|
20
|
-
metadata?: {
|
|
21
|
-
[k: string]: any | null;
|
|
22
|
-
} | null | undefined;
|
|
23
|
-
};
|
|
24
|
-
/** @internal */
|
|
25
|
-
export declare const PayloadTooLargeResponseErrorData$outboundSchema: z.ZodType<PayloadTooLargeResponseErrorData$Outbound, PayloadTooLargeResponseErrorData>;
|
|
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 PayloadTooLargeResponseErrorData$ {
|
|
31
|
-
/** @deprecated use `PayloadTooLargeResponseErrorData$inboundSchema` instead. */
|
|
32
|
-
const inboundSchema: z.ZodType<PayloadTooLargeResponseErrorData, unknown, z.core.$ZodTypeInternals<PayloadTooLargeResponseErrorData, unknown>>;
|
|
33
|
-
/** @deprecated use `PayloadTooLargeResponseErrorData$outboundSchema` instead. */
|
|
34
|
-
const outboundSchema: z.ZodType<PayloadTooLargeResponseErrorData$Outbound, PayloadTooLargeResponseErrorData, z.core.$ZodTypeInternals<PayloadTooLargeResponseErrorData$Outbound, PayloadTooLargeResponseErrorData>>;
|
|
35
|
-
/** @deprecated use `PayloadTooLargeResponseErrorData$Outbound` instead. */
|
|
36
|
-
type Outbound = PayloadTooLargeResponseErrorData$Outbound;
|
|
37
|
-
}
|
|
38
|
-
export declare function payloadTooLargeResponseErrorDataToJSON(payloadTooLargeResponseErrorData: PayloadTooLargeResponseErrorData): string;
|
|
39
16
|
export declare function payloadTooLargeResponseErrorDataFromJSON(jsonString: string): SafeParseResult<PayloadTooLargeResponseErrorData, SDKValidationError>;
|
|
40
17
|
//# sourceMappingURL=payloadtoolargeresponseerrordata.d.ts.map
|
|
@@ -9,26 +9,6 @@ export const PayloadTooLargeResponseErrorData$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 PayloadTooLargeResponseErrorData$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 PayloadTooLargeResponseErrorData$;
|
|
23
|
-
(function (PayloadTooLargeResponseErrorData$) {
|
|
24
|
-
/** @deprecated use `PayloadTooLargeResponseErrorData$inboundSchema` instead. */
|
|
25
|
-
PayloadTooLargeResponseErrorData$.inboundSchema = PayloadTooLargeResponseErrorData$inboundSchema;
|
|
26
|
-
/** @deprecated use `PayloadTooLargeResponseErrorData$outboundSchema` instead. */
|
|
27
|
-
PayloadTooLargeResponseErrorData$.outboundSchema = PayloadTooLargeResponseErrorData$outboundSchema;
|
|
28
|
-
})(PayloadTooLargeResponseErrorData$ || (PayloadTooLargeResponseErrorData$ = {}));
|
|
29
|
-
export function payloadTooLargeResponseErrorDataToJSON(payloadTooLargeResponseErrorData) {
|
|
30
|
-
return JSON.stringify(PayloadTooLargeResponseErrorData$outboundSchema.parse(payloadTooLargeResponseErrorData));
|
|
31
|
-
}
|
|
32
12
|
export function payloadTooLargeResponseErrorDataFromJSON(jsonString) {
|
|
33
13
|
return safeParse(jsonString, (x) => PayloadTooLargeResponseErrorData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PayloadTooLargeResponseErrorData' from JSON`);
|
|
34
14
|
}
|
|
@@ -13,28 +13,5 @@ export type PaymentRequiredResponseErrorData = {
|
|
|
13
13
|
};
|
|
14
14
|
/** @internal */
|
|
15
15
|
export declare const PaymentRequiredResponseErrorData$inboundSchema: z.ZodType<PaymentRequiredResponseErrorData, unknown>;
|
|
16
|
-
/** @internal */
|
|
17
|
-
export type PaymentRequiredResponseErrorData$Outbound = {
|
|
18
|
-
code: number;
|
|
19
|
-
message: string;
|
|
20
|
-
metadata?: {
|
|
21
|
-
[k: string]: any | null;
|
|
22
|
-
} | null | undefined;
|
|
23
|
-
};
|
|
24
|
-
/** @internal */
|
|
25
|
-
export declare const PaymentRequiredResponseErrorData$outboundSchema: z.ZodType<PaymentRequiredResponseErrorData$Outbound, PaymentRequiredResponseErrorData>;
|
|
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 PaymentRequiredResponseErrorData$ {
|
|
31
|
-
/** @deprecated use `PaymentRequiredResponseErrorData$inboundSchema` instead. */
|
|
32
|
-
const inboundSchema: z.ZodType<PaymentRequiredResponseErrorData, unknown, z.core.$ZodTypeInternals<PaymentRequiredResponseErrorData, unknown>>;
|
|
33
|
-
/** @deprecated use `PaymentRequiredResponseErrorData$outboundSchema` instead. */
|
|
34
|
-
const outboundSchema: z.ZodType<PaymentRequiredResponseErrorData$Outbound, PaymentRequiredResponseErrorData, z.core.$ZodTypeInternals<PaymentRequiredResponseErrorData$Outbound, PaymentRequiredResponseErrorData>>;
|
|
35
|
-
/** @deprecated use `PaymentRequiredResponseErrorData$Outbound` instead. */
|
|
36
|
-
type Outbound = PaymentRequiredResponseErrorData$Outbound;
|
|
37
|
-
}
|
|
38
|
-
export declare function paymentRequiredResponseErrorDataToJSON(paymentRequiredResponseErrorData: PaymentRequiredResponseErrorData): string;
|
|
39
16
|
export declare function paymentRequiredResponseErrorDataFromJSON(jsonString: string): SafeParseResult<PaymentRequiredResponseErrorData, SDKValidationError>;
|
|
40
17
|
//# sourceMappingURL=paymentrequiredresponseerrordata.d.ts.map
|
|
@@ -9,26 +9,6 @@ export const PaymentRequiredResponseErrorData$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 PaymentRequiredResponseErrorData$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 PaymentRequiredResponseErrorData$;
|
|
23
|
-
(function (PaymentRequiredResponseErrorData$) {
|
|
24
|
-
/** @deprecated use `PaymentRequiredResponseErrorData$inboundSchema` instead. */
|
|
25
|
-
PaymentRequiredResponseErrorData$.inboundSchema = PaymentRequiredResponseErrorData$inboundSchema;
|
|
26
|
-
/** @deprecated use `PaymentRequiredResponseErrorData$outboundSchema` instead. */
|
|
27
|
-
PaymentRequiredResponseErrorData$.outboundSchema = PaymentRequiredResponseErrorData$outboundSchema;
|
|
28
|
-
})(PaymentRequiredResponseErrorData$ || (PaymentRequiredResponseErrorData$ = {}));
|
|
29
|
-
export function paymentRequiredResponseErrorDataToJSON(paymentRequiredResponseErrorData) {
|
|
30
|
-
return JSON.stringify(PaymentRequiredResponseErrorData$outboundSchema.parse(paymentRequiredResponseErrorData));
|
|
31
|
-
}
|
|
32
12
|
export function paymentRequiredResponseErrorDataFromJSON(jsonString) {
|
|
33
13
|
return safeParse(jsonString, (x) => PaymentRequiredResponseErrorData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PaymentRequiredResponseErrorData' from JSON`);
|
|
34
14
|
}
|
|
@@ -16,25 +16,5 @@ export type PerRequestLimits = {
|
|
|
16
16
|
};
|
|
17
17
|
/** @internal */
|
|
18
18
|
export declare const PerRequestLimits$inboundSchema: z.ZodType<PerRequestLimits, unknown>;
|
|
19
|
-
/** @internal */
|
|
20
|
-
export type PerRequestLimits$Outbound = {
|
|
21
|
-
prompt_tokens: number;
|
|
22
|
-
completion_tokens: number;
|
|
23
|
-
};
|
|
24
|
-
/** @internal */
|
|
25
|
-
export declare const PerRequestLimits$outboundSchema: z.ZodType<PerRequestLimits$Outbound, PerRequestLimits>;
|
|
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 PerRequestLimits$ {
|
|
31
|
-
/** @deprecated use `PerRequestLimits$inboundSchema` instead. */
|
|
32
|
-
const inboundSchema: z.ZodType<PerRequestLimits, unknown, z.core.$ZodTypeInternals<PerRequestLimits, unknown>>;
|
|
33
|
-
/** @deprecated use `PerRequestLimits$outboundSchema` instead. */
|
|
34
|
-
const outboundSchema: z.ZodType<PerRequestLimits$Outbound, PerRequestLimits, z.core.$ZodTypeInternals<PerRequestLimits$Outbound, PerRequestLimits>>;
|
|
35
|
-
/** @deprecated use `PerRequestLimits$Outbound` instead. */
|
|
36
|
-
type Outbound = PerRequestLimits$Outbound;
|
|
37
|
-
}
|
|
38
|
-
export declare function perRequestLimitsToJSON(perRequestLimits: PerRequestLimits): string;
|
|
39
19
|
export declare function perRequestLimitsFromJSON(jsonString: string): SafeParseResult<PerRequestLimits, SDKValidationError>;
|
|
40
20
|
//# sourceMappingURL=perrequestlimits.d.ts.map
|
|
@@ -14,30 +14,6 @@ export const PerRequestLimits$inboundSchema = z.object({
|
|
|
14
14
|
"completion_tokens": "completionTokens",
|
|
15
15
|
});
|
|
16
16
|
});
|
|
17
|
-
/** @internal */
|
|
18
|
-
export const PerRequestLimits$outboundSchema = z.object({
|
|
19
|
-
promptTokens: z.number(),
|
|
20
|
-
completionTokens: z.number(),
|
|
21
|
-
}).transform((v) => {
|
|
22
|
-
return remap$(v, {
|
|
23
|
-
promptTokens: "prompt_tokens",
|
|
24
|
-
completionTokens: "completion_tokens",
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
/**
|
|
28
|
-
* @internal
|
|
29
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
30
|
-
*/
|
|
31
|
-
export var PerRequestLimits$;
|
|
32
|
-
(function (PerRequestLimits$) {
|
|
33
|
-
/** @deprecated use `PerRequestLimits$inboundSchema` instead. */
|
|
34
|
-
PerRequestLimits$.inboundSchema = PerRequestLimits$inboundSchema;
|
|
35
|
-
/** @deprecated use `PerRequestLimits$outboundSchema` instead. */
|
|
36
|
-
PerRequestLimits$.outboundSchema = PerRequestLimits$outboundSchema;
|
|
37
|
-
})(PerRequestLimits$ || (PerRequestLimits$ = {}));
|
|
38
|
-
export function perRequestLimitsToJSON(perRequestLimits) {
|
|
39
|
-
return JSON.stringify(PerRequestLimits$outboundSchema.parse(perRequestLimits));
|
|
40
|
-
}
|
|
41
17
|
export function perRequestLimitsFromJSON(jsonString) {
|
|
42
18
|
return safeParse(jsonString, (x) => PerRequestLimits$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PerRequestLimits' from JSON`);
|
|
43
19
|
}
|
|
@@ -93,14 +93,4 @@ export type ProviderName = OpenEnum<typeof ProviderName>;
|
|
|
93
93
|
export declare const ProviderName$inboundSchema: z.ZodType<ProviderName, unknown>;
|
|
94
94
|
/** @internal */
|
|
95
95
|
export declare const ProviderName$outboundSchema: z.ZodType<ProviderName, ProviderName>;
|
|
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 ProviderName$ {
|
|
101
|
-
/** @deprecated use `ProviderName$inboundSchema` instead. */
|
|
102
|
-
const inboundSchema: z.ZodType<ProviderName, unknown, z.core.$ZodTypeInternals<ProviderName, unknown>>;
|
|
103
|
-
/** @deprecated use `ProviderName$outboundSchema` instead. */
|
|
104
|
-
const outboundSchema: z.ZodType<ProviderName, ProviderName, z.core.$ZodTypeInternals<ProviderName, ProviderName>>;
|
|
105
|
-
}
|
|
106
96
|
//# sourceMappingURL=providername.d.ts.map
|
|
@@ -102,15 +102,4 @@ export const ProviderName$outboundSchema = z.union([
|
|
|
102
102
|
z.enum(ProviderName),
|
|
103
103
|
z.string().and(z.custom()),
|
|
104
104
|
]);
|
|
105
|
-
/**
|
|
106
|
-
* @internal
|
|
107
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
108
|
-
*/
|
|
109
|
-
export var ProviderName$;
|
|
110
|
-
(function (ProviderName$) {
|
|
111
|
-
/** @deprecated use `ProviderName$inboundSchema` instead. */
|
|
112
|
-
ProviderName$.inboundSchema = ProviderName$inboundSchema;
|
|
113
|
-
/** @deprecated use `ProviderName$outboundSchema` instead. */
|
|
114
|
-
ProviderName$.outboundSchema = ProviderName$outboundSchema;
|
|
115
|
-
})(ProviderName$ || (ProviderName$ = {}));
|
|
116
105
|
//# sourceMappingURL=providername.js.map
|
|
@@ -13,28 +13,5 @@ export type ProviderOverloadedResponseErrorData = {
|
|
|
13
13
|
};
|
|
14
14
|
/** @internal */
|
|
15
15
|
export declare const ProviderOverloadedResponseErrorData$inboundSchema: z.ZodType<ProviderOverloadedResponseErrorData, unknown>;
|
|
16
|
-
/** @internal */
|
|
17
|
-
export type ProviderOverloadedResponseErrorData$Outbound = {
|
|
18
|
-
code: number;
|
|
19
|
-
message: string;
|
|
20
|
-
metadata?: {
|
|
21
|
-
[k: string]: any | null;
|
|
22
|
-
} | null | undefined;
|
|
23
|
-
};
|
|
24
|
-
/** @internal */
|
|
25
|
-
export declare const ProviderOverloadedResponseErrorData$outboundSchema: z.ZodType<ProviderOverloadedResponseErrorData$Outbound, ProviderOverloadedResponseErrorData>;
|
|
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 ProviderOverloadedResponseErrorData$ {
|
|
31
|
-
/** @deprecated use `ProviderOverloadedResponseErrorData$inboundSchema` instead. */
|
|
32
|
-
const inboundSchema: z.ZodType<ProviderOverloadedResponseErrorData, unknown, z.core.$ZodTypeInternals<ProviderOverloadedResponseErrorData, unknown>>;
|
|
33
|
-
/** @deprecated use `ProviderOverloadedResponseErrorData$outboundSchema` instead. */
|
|
34
|
-
const outboundSchema: z.ZodType<ProviderOverloadedResponseErrorData$Outbound, ProviderOverloadedResponseErrorData, z.core.$ZodTypeInternals<ProviderOverloadedResponseErrorData$Outbound, ProviderOverloadedResponseErrorData>>;
|
|
35
|
-
/** @deprecated use `ProviderOverloadedResponseErrorData$Outbound` instead. */
|
|
36
|
-
type Outbound = ProviderOverloadedResponseErrorData$Outbound;
|
|
37
|
-
}
|
|
38
|
-
export declare function providerOverloadedResponseErrorDataToJSON(providerOverloadedResponseErrorData: ProviderOverloadedResponseErrorData): string;
|
|
39
16
|
export declare function providerOverloadedResponseErrorDataFromJSON(jsonString: string): SafeParseResult<ProviderOverloadedResponseErrorData, SDKValidationError>;
|
|
40
17
|
//# sourceMappingURL=provideroverloadedresponseerrordata.d.ts.map
|
|
@@ -9,26 +9,6 @@ export const ProviderOverloadedResponseErrorData$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 ProviderOverloadedResponseErrorData$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 ProviderOverloadedResponseErrorData$;
|
|
23
|
-
(function (ProviderOverloadedResponseErrorData$) {
|
|
24
|
-
/** @deprecated use `ProviderOverloadedResponseErrorData$inboundSchema` instead. */
|
|
25
|
-
ProviderOverloadedResponseErrorData$.inboundSchema = ProviderOverloadedResponseErrorData$inboundSchema;
|
|
26
|
-
/** @deprecated use `ProviderOverloadedResponseErrorData$outboundSchema` instead. */
|
|
27
|
-
ProviderOverloadedResponseErrorData$.outboundSchema = ProviderOverloadedResponseErrorData$outboundSchema;
|
|
28
|
-
})(ProviderOverloadedResponseErrorData$ || (ProviderOverloadedResponseErrorData$ = {}));
|
|
29
|
-
export function providerOverloadedResponseErrorDataToJSON(providerOverloadedResponseErrorData) {
|
|
30
|
-
return JSON.stringify(ProviderOverloadedResponseErrorData$outboundSchema.parse(providerOverloadedResponseErrorData));
|
|
31
|
-
}
|
|
32
12
|
export function providerOverloadedResponseErrorDataFromJSON(jsonString) {
|
|
33
13
|
return safeParse(jsonString, (x) => ProviderOverloadedResponseErrorData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ProviderOverloadedResponseErrorData' from JSON`);
|
|
34
14
|
}
|
|
@@ -84,83 +84,10 @@ export type PublicEndpoint = {
|
|
|
84
84
|
};
|
|
85
85
|
/** @internal */
|
|
86
86
|
export declare const Pricing$inboundSchema: z.ZodType<Pricing, unknown>;
|
|
87
|
-
/** @internal */
|
|
88
|
-
export type Pricing$Outbound = {
|
|
89
|
-
prompt?: any | undefined;
|
|
90
|
-
completion?: any | undefined;
|
|
91
|
-
request?: any | undefined;
|
|
92
|
-
image?: any | undefined;
|
|
93
|
-
image_output?: any | undefined;
|
|
94
|
-
audio?: any | undefined;
|
|
95
|
-
input_audio_cache?: any | undefined;
|
|
96
|
-
web_search?: any | undefined;
|
|
97
|
-
internal_reasoning?: any | undefined;
|
|
98
|
-
input_cache_read?: any | undefined;
|
|
99
|
-
input_cache_write?: any | undefined;
|
|
100
|
-
discount?: number | undefined;
|
|
101
|
-
};
|
|
102
|
-
/** @internal */
|
|
103
|
-
export declare const Pricing$outboundSchema: z.ZodType<Pricing$Outbound, Pricing>;
|
|
104
|
-
/**
|
|
105
|
-
* @internal
|
|
106
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
107
|
-
*/
|
|
108
|
-
export declare namespace Pricing$ {
|
|
109
|
-
/** @deprecated use `Pricing$inboundSchema` instead. */
|
|
110
|
-
const inboundSchema: z.ZodType<Pricing, unknown, z.core.$ZodTypeInternals<Pricing, unknown>>;
|
|
111
|
-
/** @deprecated use `Pricing$outboundSchema` instead. */
|
|
112
|
-
const outboundSchema: z.ZodType<Pricing$Outbound, Pricing, z.core.$ZodTypeInternals<Pricing$Outbound, Pricing>>;
|
|
113
|
-
/** @deprecated use `Pricing$Outbound` instead. */
|
|
114
|
-
type Outbound = Pricing$Outbound;
|
|
115
|
-
}
|
|
116
|
-
export declare function pricingToJSON(pricing: Pricing): string;
|
|
117
87
|
export declare function pricingFromJSON(jsonString: string): SafeParseResult<Pricing, SDKValidationError>;
|
|
118
88
|
/** @internal */
|
|
119
89
|
export declare const PublicEndpointQuantization$inboundSchema: z.ZodType<PublicEndpointQuantization, unknown>;
|
|
120
90
|
/** @internal */
|
|
121
|
-
export declare const PublicEndpointQuantization$outboundSchema: z.ZodType<PublicEndpointQuantization, PublicEndpointQuantization>;
|
|
122
|
-
/**
|
|
123
|
-
* @internal
|
|
124
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
125
|
-
*/
|
|
126
|
-
export declare namespace PublicEndpointQuantization$ {
|
|
127
|
-
/** @deprecated use `PublicEndpointQuantization$inboundSchema` instead. */
|
|
128
|
-
const inboundSchema: z.ZodType<PublicEndpointQuantization, unknown, z.core.$ZodTypeInternals<PublicEndpointQuantization, unknown>>;
|
|
129
|
-
/** @deprecated use `PublicEndpointQuantization$outboundSchema` instead. */
|
|
130
|
-
const outboundSchema: z.ZodType<PublicEndpointQuantization, PublicEndpointQuantization, z.core.$ZodTypeInternals<PublicEndpointQuantization, PublicEndpointQuantization>>;
|
|
131
|
-
}
|
|
132
|
-
/** @internal */
|
|
133
91
|
export declare const PublicEndpoint$inboundSchema: z.ZodType<PublicEndpoint, unknown>;
|
|
134
|
-
/** @internal */
|
|
135
|
-
export type PublicEndpoint$Outbound = {
|
|
136
|
-
name: string;
|
|
137
|
-
model_name: string;
|
|
138
|
-
context_length: number;
|
|
139
|
-
pricing: Pricing$Outbound;
|
|
140
|
-
provider_name: string;
|
|
141
|
-
tag: string;
|
|
142
|
-
quantization: string | null;
|
|
143
|
-
max_completion_tokens: number | null;
|
|
144
|
-
max_prompt_tokens: number | null;
|
|
145
|
-
supported_parameters: Array<string>;
|
|
146
|
-
status?: number | undefined;
|
|
147
|
-
uptime_last_30m: number | null;
|
|
148
|
-
supports_implicit_caching: boolean;
|
|
149
|
-
};
|
|
150
|
-
/** @internal */
|
|
151
|
-
export declare const PublicEndpoint$outboundSchema: z.ZodType<PublicEndpoint$Outbound, PublicEndpoint>;
|
|
152
|
-
/**
|
|
153
|
-
* @internal
|
|
154
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
155
|
-
*/
|
|
156
|
-
export declare namespace PublicEndpoint$ {
|
|
157
|
-
/** @deprecated use `PublicEndpoint$inboundSchema` instead. */
|
|
158
|
-
const inboundSchema: z.ZodType<PublicEndpoint, unknown, z.core.$ZodTypeInternals<PublicEndpoint, unknown>>;
|
|
159
|
-
/** @deprecated use `PublicEndpoint$outboundSchema` instead. */
|
|
160
|
-
const outboundSchema: z.ZodType<PublicEndpoint$Outbound, PublicEndpoint, z.core.$ZodTypeInternals<PublicEndpoint$Outbound, PublicEndpoint>>;
|
|
161
|
-
/** @deprecated use `PublicEndpoint$Outbound` instead. */
|
|
162
|
-
type Outbound = PublicEndpoint$Outbound;
|
|
163
|
-
}
|
|
164
|
-
export declare function publicEndpointToJSON(publicEndpoint: PublicEndpoint): string;
|
|
165
92
|
export declare function publicEndpointFromJSON(jsonString: string): SafeParseResult<PublicEndpoint, SDKValidationError>;
|
|
166
93
|
//# sourceMappingURL=publicendpoint.d.ts.map
|
|
@@ -4,10 +4,10 @@
|
|
|
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 { EndpointStatus$inboundSchema,
|
|
9
|
-
import { Parameter$inboundSchema
|
|
10
|
-
import { ProviderName$inboundSchema
|
|
7
|
+
import { catchUnrecognizedEnum } from "../types/enums.js";
|
|
8
|
+
import { EndpointStatus$inboundSchema, } from "./endpointstatus.js";
|
|
9
|
+
import { Parameter$inboundSchema } from "./parameter.js";
|
|
10
|
+
import { ProviderName$inboundSchema } from "./providername.js";
|
|
11
11
|
export const PublicEndpointQuantization = {
|
|
12
12
|
Int4: "int4",
|
|
13
13
|
Int8: "int8",
|
|
@@ -43,45 +43,6 @@ export const Pricing$inboundSchema = z.object({
|
|
|
43
43
|
"input_cache_write": "inputCacheWrite",
|
|
44
44
|
});
|
|
45
45
|
});
|
|
46
|
-
/** @internal */
|
|
47
|
-
export const Pricing$outboundSchema = z
|
|
48
|
-
.object({
|
|
49
|
-
prompt: z.any().optional(),
|
|
50
|
-
completion: z.any().optional(),
|
|
51
|
-
request: z.any().optional(),
|
|
52
|
-
image: z.any().optional(),
|
|
53
|
-
imageOutput: z.any().optional(),
|
|
54
|
-
audio: z.any().optional(),
|
|
55
|
-
inputAudioCache: z.any().optional(),
|
|
56
|
-
webSearch: z.any().optional(),
|
|
57
|
-
internalReasoning: z.any().optional(),
|
|
58
|
-
inputCacheRead: z.any().optional(),
|
|
59
|
-
inputCacheWrite: z.any().optional(),
|
|
60
|
-
discount: z.number().optional(),
|
|
61
|
-
}).transform((v) => {
|
|
62
|
-
return remap$(v, {
|
|
63
|
-
imageOutput: "image_output",
|
|
64
|
-
inputAudioCache: "input_audio_cache",
|
|
65
|
-
webSearch: "web_search",
|
|
66
|
-
internalReasoning: "internal_reasoning",
|
|
67
|
-
inputCacheRead: "input_cache_read",
|
|
68
|
-
inputCacheWrite: "input_cache_write",
|
|
69
|
-
});
|
|
70
|
-
});
|
|
71
|
-
/**
|
|
72
|
-
* @internal
|
|
73
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
74
|
-
*/
|
|
75
|
-
export var Pricing$;
|
|
76
|
-
(function (Pricing$) {
|
|
77
|
-
/** @deprecated use `Pricing$inboundSchema` instead. */
|
|
78
|
-
Pricing$.inboundSchema = Pricing$inboundSchema;
|
|
79
|
-
/** @deprecated use `Pricing$outboundSchema` instead. */
|
|
80
|
-
Pricing$.outboundSchema = Pricing$outboundSchema;
|
|
81
|
-
})(Pricing$ || (Pricing$ = {}));
|
|
82
|
-
export function pricingToJSON(pricing) {
|
|
83
|
-
return JSON.stringify(Pricing$outboundSchema.parse(pricing));
|
|
84
|
-
}
|
|
85
46
|
export function pricingFromJSON(jsonString) {
|
|
86
47
|
return safeParse(jsonString, (x) => Pricing$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Pricing' from JSON`);
|
|
87
48
|
}
|
|
@@ -92,22 +53,6 @@ export const PublicEndpointQuantization$inboundSchema = z
|
|
|
92
53
|
z.string().transform(catchUnrecognizedEnum),
|
|
93
54
|
]);
|
|
94
55
|
/** @internal */
|
|
95
|
-
export const PublicEndpointQuantization$outboundSchema = z.union([
|
|
96
|
-
z.enum(PublicEndpointQuantization),
|
|
97
|
-
z.string().and(z.custom()),
|
|
98
|
-
]);
|
|
99
|
-
/**
|
|
100
|
-
* @internal
|
|
101
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
102
|
-
*/
|
|
103
|
-
export var PublicEndpointQuantization$;
|
|
104
|
-
(function (PublicEndpointQuantization$) {
|
|
105
|
-
/** @deprecated use `PublicEndpointQuantization$inboundSchema` instead. */
|
|
106
|
-
PublicEndpointQuantization$.inboundSchema = PublicEndpointQuantization$inboundSchema;
|
|
107
|
-
/** @deprecated use `PublicEndpointQuantization$outboundSchema` instead. */
|
|
108
|
-
PublicEndpointQuantization$.outboundSchema = PublicEndpointQuantization$outboundSchema;
|
|
109
|
-
})(PublicEndpointQuantization$ || (PublicEndpointQuantization$ = {}));
|
|
110
|
-
/** @internal */
|
|
111
56
|
export const PublicEndpoint$inboundSchema = z.object({
|
|
112
57
|
name: z.string(),
|
|
113
58
|
model_name: z.string(),
|
|
@@ -134,47 +79,6 @@ export const PublicEndpoint$inboundSchema = z.object({
|
|
|
134
79
|
"supports_implicit_caching": "supportsImplicitCaching",
|
|
135
80
|
});
|
|
136
81
|
});
|
|
137
|
-
/** @internal */
|
|
138
|
-
export const PublicEndpoint$outboundSchema = z.object({
|
|
139
|
-
name: z.string(),
|
|
140
|
-
modelName: z.string(),
|
|
141
|
-
contextLength: z.number(),
|
|
142
|
-
pricing: z.lazy(() => Pricing$outboundSchema),
|
|
143
|
-
providerName: ProviderName$outboundSchema,
|
|
144
|
-
tag: z.string(),
|
|
145
|
-
quantization: z.nullable(PublicEndpointQuantization$outboundSchema),
|
|
146
|
-
maxCompletionTokens: z.nullable(z.number()),
|
|
147
|
-
maxPromptTokens: z.nullable(z.number()),
|
|
148
|
-
supportedParameters: z.array(Parameter$outboundSchema),
|
|
149
|
-
status: EndpointStatus$outboundSchema.optional(),
|
|
150
|
-
uptimeLast30m: z.nullable(z.number()),
|
|
151
|
-
supportsImplicitCaching: z.boolean(),
|
|
152
|
-
}).transform((v) => {
|
|
153
|
-
return remap$(v, {
|
|
154
|
-
modelName: "model_name",
|
|
155
|
-
contextLength: "context_length",
|
|
156
|
-
providerName: "provider_name",
|
|
157
|
-
maxCompletionTokens: "max_completion_tokens",
|
|
158
|
-
maxPromptTokens: "max_prompt_tokens",
|
|
159
|
-
supportedParameters: "supported_parameters",
|
|
160
|
-
uptimeLast30m: "uptime_last_30m",
|
|
161
|
-
supportsImplicitCaching: "supports_implicit_caching",
|
|
162
|
-
});
|
|
163
|
-
});
|
|
164
|
-
/**
|
|
165
|
-
* @internal
|
|
166
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
167
|
-
*/
|
|
168
|
-
export var PublicEndpoint$;
|
|
169
|
-
(function (PublicEndpoint$) {
|
|
170
|
-
/** @deprecated use `PublicEndpoint$inboundSchema` instead. */
|
|
171
|
-
PublicEndpoint$.inboundSchema = PublicEndpoint$inboundSchema;
|
|
172
|
-
/** @deprecated use `PublicEndpoint$outboundSchema` instead. */
|
|
173
|
-
PublicEndpoint$.outboundSchema = PublicEndpoint$outboundSchema;
|
|
174
|
-
})(PublicEndpoint$ || (PublicEndpoint$ = {}));
|
|
175
|
-
export function publicEndpointToJSON(publicEndpoint) {
|
|
176
|
-
return JSON.stringify(PublicEndpoint$outboundSchema.parse(publicEndpoint));
|
|
177
|
-
}
|
|
178
82
|
export function publicEndpointFromJSON(jsonString) {
|
|
179
83
|
return safeParse(jsonString, (x) => PublicEndpoint$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PublicEndpoint' from JSON`);
|
|
180
84
|
}
|
|
@@ -53,35 +53,5 @@ export type PublicPricing = {
|
|
|
53
53
|
};
|
|
54
54
|
/** @internal */
|
|
55
55
|
export declare const PublicPricing$inboundSchema: z.ZodType<PublicPricing, unknown>;
|
|
56
|
-
/** @internal */
|
|
57
|
-
export type PublicPricing$Outbound = {
|
|
58
|
-
prompt?: any | undefined;
|
|
59
|
-
completion?: any | undefined;
|
|
60
|
-
request?: any | undefined;
|
|
61
|
-
image?: any | undefined;
|
|
62
|
-
image_output?: any | undefined;
|
|
63
|
-
audio?: any | undefined;
|
|
64
|
-
input_audio_cache?: any | undefined;
|
|
65
|
-
web_search?: any | undefined;
|
|
66
|
-
internal_reasoning?: any | undefined;
|
|
67
|
-
input_cache_read?: any | undefined;
|
|
68
|
-
input_cache_write?: any | undefined;
|
|
69
|
-
discount?: number | undefined;
|
|
70
|
-
};
|
|
71
|
-
/** @internal */
|
|
72
|
-
export declare const PublicPricing$outboundSchema: z.ZodType<PublicPricing$Outbound, PublicPricing>;
|
|
73
|
-
/**
|
|
74
|
-
* @internal
|
|
75
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
76
|
-
*/
|
|
77
|
-
export declare namespace PublicPricing$ {
|
|
78
|
-
/** @deprecated use `PublicPricing$inboundSchema` instead. */
|
|
79
|
-
const inboundSchema: z.ZodType<PublicPricing, unknown, z.core.$ZodTypeInternals<PublicPricing, unknown>>;
|
|
80
|
-
/** @deprecated use `PublicPricing$outboundSchema` instead. */
|
|
81
|
-
const outboundSchema: z.ZodType<PublicPricing$Outbound, PublicPricing, z.core.$ZodTypeInternals<PublicPricing$Outbound, PublicPricing>>;
|
|
82
|
-
/** @deprecated use `PublicPricing$Outbound` instead. */
|
|
83
|
-
type Outbound = PublicPricing$Outbound;
|
|
84
|
-
}
|
|
85
|
-
export declare function publicPricingToJSON(publicPricing: PublicPricing): string;
|
|
86
56
|
export declare function publicPricingFromJSON(jsonString: string): SafeParseResult<PublicPricing, SDKValidationError>;
|
|
87
57
|
//# sourceMappingURL=publicpricing.d.ts.map
|
|
@@ -29,44 +29,6 @@ export const PublicPricing$inboundSchema = z
|
|
|
29
29
|
"input_cache_write": "inputCacheWrite",
|
|
30
30
|
});
|
|
31
31
|
});
|
|
32
|
-
/** @internal */
|
|
33
|
-
export const PublicPricing$outboundSchema = z.object({
|
|
34
|
-
prompt: z.any().optional(),
|
|
35
|
-
completion: z.any().optional(),
|
|
36
|
-
request: z.any().optional(),
|
|
37
|
-
image: z.any().optional(),
|
|
38
|
-
imageOutput: z.any().optional(),
|
|
39
|
-
audio: z.any().optional(),
|
|
40
|
-
inputAudioCache: z.any().optional(),
|
|
41
|
-
webSearch: z.any().optional(),
|
|
42
|
-
internalReasoning: z.any().optional(),
|
|
43
|
-
inputCacheRead: z.any().optional(),
|
|
44
|
-
inputCacheWrite: z.any().optional(),
|
|
45
|
-
discount: z.number().optional(),
|
|
46
|
-
}).transform((v) => {
|
|
47
|
-
return remap$(v, {
|
|
48
|
-
imageOutput: "image_output",
|
|
49
|
-
inputAudioCache: "input_audio_cache",
|
|
50
|
-
webSearch: "web_search",
|
|
51
|
-
internalReasoning: "internal_reasoning",
|
|
52
|
-
inputCacheRead: "input_cache_read",
|
|
53
|
-
inputCacheWrite: "input_cache_write",
|
|
54
|
-
});
|
|
55
|
-
});
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
59
|
-
*/
|
|
60
|
-
export var PublicPricing$;
|
|
61
|
-
(function (PublicPricing$) {
|
|
62
|
-
/** @deprecated use `PublicPricing$inboundSchema` instead. */
|
|
63
|
-
PublicPricing$.inboundSchema = PublicPricing$inboundSchema;
|
|
64
|
-
/** @deprecated use `PublicPricing$outboundSchema` instead. */
|
|
65
|
-
PublicPricing$.outboundSchema = PublicPricing$outboundSchema;
|
|
66
|
-
})(PublicPricing$ || (PublicPricing$ = {}));
|
|
67
|
-
export function publicPricingToJSON(publicPricing) {
|
|
68
|
-
return JSON.stringify(PublicPricing$outboundSchema.parse(publicPricing));
|
|
69
|
-
}
|
|
70
32
|
export function publicPricingFromJSON(jsonString) {
|
|
71
33
|
return safeParse(jsonString, (x) => PublicPricing$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PublicPricing' from JSON`);
|
|
72
34
|
}
|
|
@@ -13,17 +13,5 @@ export declare const Quantization: {
|
|
|
13
13
|
};
|
|
14
14
|
export type Quantization = OpenEnum<typeof Quantization>;
|
|
15
15
|
/** @internal */
|
|
16
|
-
export declare const Quantization$inboundSchema: z.ZodType<Quantization, unknown>;
|
|
17
|
-
/** @internal */
|
|
18
16
|
export declare const Quantization$outboundSchema: z.ZodType<Quantization, Quantization>;
|
|
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 Quantization$ {
|
|
24
|
-
/** @deprecated use `Quantization$inboundSchema` instead. */
|
|
25
|
-
const inboundSchema: z.ZodType<Quantization, unknown, z.core.$ZodTypeInternals<Quantization, unknown>>;
|
|
26
|
-
/** @deprecated use `Quantization$outboundSchema` instead. */
|
|
27
|
-
const outboundSchema: z.ZodType<Quantization, Quantization, z.core.$ZodTypeInternals<Quantization, Quantization>>;
|
|
28
|
-
}
|
|
29
17
|
//# sourceMappingURL=quantization.d.ts.map
|