@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
|
@@ -10,26 +10,6 @@ export const RateLimit$inboundSchema = z.object({
|
|
|
10
10
|
interval: z.string(),
|
|
11
11
|
note: z.string(),
|
|
12
12
|
});
|
|
13
|
-
/** @internal */
|
|
14
|
-
export const RateLimit$outboundSchema = z.object({
|
|
15
|
-
requests: z.number(),
|
|
16
|
-
interval: z.string(),
|
|
17
|
-
note: z.string(),
|
|
18
|
-
});
|
|
19
|
-
/**
|
|
20
|
-
* @internal
|
|
21
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
22
|
-
*/
|
|
23
|
-
export var RateLimit$;
|
|
24
|
-
(function (RateLimit$) {
|
|
25
|
-
/** @deprecated use `RateLimit$inboundSchema` instead. */
|
|
26
|
-
RateLimit$.inboundSchema = RateLimit$inboundSchema;
|
|
27
|
-
/** @deprecated use `RateLimit$outboundSchema` instead. */
|
|
28
|
-
RateLimit$.outboundSchema = RateLimit$outboundSchema;
|
|
29
|
-
})(RateLimit$ || (RateLimit$ = {}));
|
|
30
|
-
export function rateLimitToJSON(rateLimit) {
|
|
31
|
-
return JSON.stringify(RateLimit$outboundSchema.parse(rateLimit));
|
|
32
|
-
}
|
|
33
13
|
export function rateLimitFromJSON(jsonString) {
|
|
34
14
|
return safeParse(jsonString, (x) => RateLimit$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RateLimit' from JSON`);
|
|
35
15
|
}
|
|
@@ -68,55 +48,6 @@ export const GetCurrentKeyData$inboundSchema = z.object({
|
|
|
68
48
|
"rate_limit": "rateLimit",
|
|
69
49
|
});
|
|
70
50
|
});
|
|
71
|
-
/** @internal */
|
|
72
|
-
export const GetCurrentKeyData$outboundSchema = z.object({
|
|
73
|
-
label: z.string(),
|
|
74
|
-
limit: z.nullable(z.number()),
|
|
75
|
-
usage: z.number(),
|
|
76
|
-
usageDaily: z.number(),
|
|
77
|
-
usageWeekly: z.number(),
|
|
78
|
-
usageMonthly: z.number(),
|
|
79
|
-
byokUsage: z.number(),
|
|
80
|
-
byokUsageDaily: z.number(),
|
|
81
|
-
byokUsageWeekly: z.number(),
|
|
82
|
-
byokUsageMonthly: z.number(),
|
|
83
|
-
isFreeTier: z.boolean(),
|
|
84
|
-
isProvisioningKey: z.boolean(),
|
|
85
|
-
limitRemaining: z.nullable(z.number()),
|
|
86
|
-
limitReset: z.nullable(z.string()),
|
|
87
|
-
includeByokInLimit: z.boolean(),
|
|
88
|
-
rateLimit: z.lazy(() => RateLimit$outboundSchema),
|
|
89
|
-
}).transform((v) => {
|
|
90
|
-
return remap$(v, {
|
|
91
|
-
usageDaily: "usage_daily",
|
|
92
|
-
usageWeekly: "usage_weekly",
|
|
93
|
-
usageMonthly: "usage_monthly",
|
|
94
|
-
byokUsage: "byok_usage",
|
|
95
|
-
byokUsageDaily: "byok_usage_daily",
|
|
96
|
-
byokUsageWeekly: "byok_usage_weekly",
|
|
97
|
-
byokUsageMonthly: "byok_usage_monthly",
|
|
98
|
-
isFreeTier: "is_free_tier",
|
|
99
|
-
isProvisioningKey: "is_provisioning_key",
|
|
100
|
-
limitRemaining: "limit_remaining",
|
|
101
|
-
limitReset: "limit_reset",
|
|
102
|
-
includeByokInLimit: "include_byok_in_limit",
|
|
103
|
-
rateLimit: "rate_limit",
|
|
104
|
-
});
|
|
105
|
-
});
|
|
106
|
-
/**
|
|
107
|
-
* @internal
|
|
108
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
109
|
-
*/
|
|
110
|
-
export var GetCurrentKeyData$;
|
|
111
|
-
(function (GetCurrentKeyData$) {
|
|
112
|
-
/** @deprecated use `GetCurrentKeyData$inboundSchema` instead. */
|
|
113
|
-
GetCurrentKeyData$.inboundSchema = GetCurrentKeyData$inboundSchema;
|
|
114
|
-
/** @deprecated use `GetCurrentKeyData$outboundSchema` instead. */
|
|
115
|
-
GetCurrentKeyData$.outboundSchema = GetCurrentKeyData$outboundSchema;
|
|
116
|
-
})(GetCurrentKeyData$ || (GetCurrentKeyData$ = {}));
|
|
117
|
-
export function getCurrentKeyDataToJSON(getCurrentKeyData) {
|
|
118
|
-
return JSON.stringify(GetCurrentKeyData$outboundSchema.parse(getCurrentKeyData));
|
|
119
|
-
}
|
|
120
51
|
export function getCurrentKeyDataFromJSON(jsonString) {
|
|
121
52
|
return safeParse(jsonString, (x) => GetCurrentKeyData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCurrentKeyData' from JSON`);
|
|
122
53
|
}
|
|
@@ -124,24 +55,6 @@ export function getCurrentKeyDataFromJSON(jsonString) {
|
|
|
124
55
|
export const GetCurrentKeyResponse$inboundSchema = z.object({
|
|
125
56
|
data: z.lazy(() => GetCurrentKeyData$inboundSchema),
|
|
126
57
|
});
|
|
127
|
-
/** @internal */
|
|
128
|
-
export const GetCurrentKeyResponse$outboundSchema = z.object({
|
|
129
|
-
data: z.lazy(() => GetCurrentKeyData$outboundSchema),
|
|
130
|
-
});
|
|
131
|
-
/**
|
|
132
|
-
* @internal
|
|
133
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
134
|
-
*/
|
|
135
|
-
export var GetCurrentKeyResponse$;
|
|
136
|
-
(function (GetCurrentKeyResponse$) {
|
|
137
|
-
/** @deprecated use `GetCurrentKeyResponse$inboundSchema` instead. */
|
|
138
|
-
GetCurrentKeyResponse$.inboundSchema = GetCurrentKeyResponse$inboundSchema;
|
|
139
|
-
/** @deprecated use `GetCurrentKeyResponse$outboundSchema` instead. */
|
|
140
|
-
GetCurrentKeyResponse$.outboundSchema = GetCurrentKeyResponse$outboundSchema;
|
|
141
|
-
})(GetCurrentKeyResponse$ || (GetCurrentKeyResponse$ = {}));
|
|
142
|
-
export function getCurrentKeyResponseToJSON(getCurrentKeyResponse) {
|
|
143
|
-
return JSON.stringify(GetCurrentKeyResponse$outboundSchema.parse(getCurrentKeyResponse));
|
|
144
|
-
}
|
|
145
58
|
export function getCurrentKeyResponseFromJSON(jsonString) {
|
|
146
59
|
return safeParse(jsonString, (x) => GetCurrentKeyResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetCurrentKeyResponse' from JSON`);
|
|
147
60
|
}
|
|
@@ -116,10 +116,6 @@ export type GetGenerationData = {
|
|
|
116
116
|
* Number of audio inputs in the prompt
|
|
117
117
|
*/
|
|
118
118
|
numInputAudioPrompt: number | null;
|
|
119
|
-
/**
|
|
120
|
-
* Number of video inputs in the prompt
|
|
121
|
-
*/
|
|
122
|
-
numVideoPrompt: number | null;
|
|
123
119
|
/**
|
|
124
120
|
* Number of media items in the completion
|
|
125
121
|
*/
|
|
@@ -163,115 +159,18 @@ export type GetGenerationResponse = {
|
|
|
163
159
|
data: GetGenerationData;
|
|
164
160
|
};
|
|
165
161
|
/** @internal */
|
|
166
|
-
export declare const GetGenerationRequest$inboundSchema: z.ZodType<GetGenerationRequest, unknown>;
|
|
167
|
-
/** @internal */
|
|
168
162
|
export type GetGenerationRequest$Outbound = {
|
|
169
163
|
id: string;
|
|
170
164
|
};
|
|
171
165
|
/** @internal */
|
|
172
166
|
export declare const GetGenerationRequest$outboundSchema: z.ZodType<GetGenerationRequest$Outbound, GetGenerationRequest>;
|
|
173
|
-
/**
|
|
174
|
-
* @internal
|
|
175
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
176
|
-
*/
|
|
177
|
-
export declare namespace GetGenerationRequest$ {
|
|
178
|
-
/** @deprecated use `GetGenerationRequest$inboundSchema` instead. */
|
|
179
|
-
const inboundSchema: z.ZodType<GetGenerationRequest, unknown, z.core.$ZodTypeInternals<GetGenerationRequest, unknown>>;
|
|
180
|
-
/** @deprecated use `GetGenerationRequest$outboundSchema` instead. */
|
|
181
|
-
const outboundSchema: z.ZodType<GetGenerationRequest$Outbound, GetGenerationRequest, z.core.$ZodTypeInternals<GetGenerationRequest$Outbound, GetGenerationRequest>>;
|
|
182
|
-
/** @deprecated use `GetGenerationRequest$Outbound` instead. */
|
|
183
|
-
type Outbound = GetGenerationRequest$Outbound;
|
|
184
|
-
}
|
|
185
167
|
export declare function getGenerationRequestToJSON(getGenerationRequest: GetGenerationRequest): string;
|
|
186
|
-
export declare function getGenerationRequestFromJSON(jsonString: string): SafeParseResult<GetGenerationRequest, SDKValidationError>;
|
|
187
168
|
/** @internal */
|
|
188
169
|
export declare const ApiType$inboundSchema: z.ZodType<ApiType, unknown>;
|
|
189
170
|
/** @internal */
|
|
190
|
-
export declare const ApiType$outboundSchema: z.ZodType<ApiType, ApiType>;
|
|
191
|
-
/**
|
|
192
|
-
* @internal
|
|
193
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
194
|
-
*/
|
|
195
|
-
export declare namespace ApiType$ {
|
|
196
|
-
/** @deprecated use `ApiType$inboundSchema` instead. */
|
|
197
|
-
const inboundSchema: z.ZodType<ApiType, unknown, z.core.$ZodTypeInternals<ApiType, unknown>>;
|
|
198
|
-
/** @deprecated use `ApiType$outboundSchema` instead. */
|
|
199
|
-
const outboundSchema: z.ZodType<ApiType, ApiType, z.core.$ZodTypeInternals<ApiType, ApiType>>;
|
|
200
|
-
}
|
|
201
|
-
/** @internal */
|
|
202
171
|
export declare const GetGenerationData$inboundSchema: z.ZodType<GetGenerationData, unknown>;
|
|
203
|
-
/** @internal */
|
|
204
|
-
export type GetGenerationData$Outbound = {
|
|
205
|
-
id: string;
|
|
206
|
-
upstream_id: string | null;
|
|
207
|
-
total_cost: number;
|
|
208
|
-
cache_discount: number | null;
|
|
209
|
-
upstream_inference_cost: number | null;
|
|
210
|
-
created_at: string;
|
|
211
|
-
model: string;
|
|
212
|
-
app_id: number | null;
|
|
213
|
-
streamed: boolean | null;
|
|
214
|
-
cancelled: boolean | null;
|
|
215
|
-
provider_name: string | null;
|
|
216
|
-
latency: number | null;
|
|
217
|
-
moderation_latency: number | null;
|
|
218
|
-
generation_time: number | null;
|
|
219
|
-
finish_reason: string | null;
|
|
220
|
-
tokens_prompt: number | null;
|
|
221
|
-
tokens_completion: number | null;
|
|
222
|
-
native_tokens_prompt: number | null;
|
|
223
|
-
native_tokens_completion: number | null;
|
|
224
|
-
native_tokens_completion_images: number | null;
|
|
225
|
-
native_tokens_reasoning: number | null;
|
|
226
|
-
native_tokens_cached: number | null;
|
|
227
|
-
num_media_prompt: number | null;
|
|
228
|
-
num_input_audio_prompt: number | null;
|
|
229
|
-
num_video_prompt: number | null;
|
|
230
|
-
num_media_completion: number | null;
|
|
231
|
-
num_search_results: number | null;
|
|
232
|
-
origin: string;
|
|
233
|
-
usage: number;
|
|
234
|
-
is_byok: boolean;
|
|
235
|
-
native_finish_reason: string | null;
|
|
236
|
-
external_user: string | null;
|
|
237
|
-
api_type: string | null;
|
|
238
|
-
};
|
|
239
|
-
/** @internal */
|
|
240
|
-
export declare const GetGenerationData$outboundSchema: z.ZodType<GetGenerationData$Outbound, GetGenerationData>;
|
|
241
|
-
/**
|
|
242
|
-
* @internal
|
|
243
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
244
|
-
*/
|
|
245
|
-
export declare namespace GetGenerationData$ {
|
|
246
|
-
/** @deprecated use `GetGenerationData$inboundSchema` instead. */
|
|
247
|
-
const inboundSchema: z.ZodType<GetGenerationData, unknown, z.core.$ZodTypeInternals<GetGenerationData, unknown>>;
|
|
248
|
-
/** @deprecated use `GetGenerationData$outboundSchema` instead. */
|
|
249
|
-
const outboundSchema: z.ZodType<GetGenerationData$Outbound, GetGenerationData, z.core.$ZodTypeInternals<GetGenerationData$Outbound, GetGenerationData>>;
|
|
250
|
-
/** @deprecated use `GetGenerationData$Outbound` instead. */
|
|
251
|
-
type Outbound = GetGenerationData$Outbound;
|
|
252
|
-
}
|
|
253
|
-
export declare function getGenerationDataToJSON(getGenerationData: GetGenerationData): string;
|
|
254
172
|
export declare function getGenerationDataFromJSON(jsonString: string): SafeParseResult<GetGenerationData, SDKValidationError>;
|
|
255
173
|
/** @internal */
|
|
256
174
|
export declare const GetGenerationResponse$inboundSchema: z.ZodType<GetGenerationResponse, unknown>;
|
|
257
|
-
/** @internal */
|
|
258
|
-
export type GetGenerationResponse$Outbound = {
|
|
259
|
-
data: GetGenerationData$Outbound;
|
|
260
|
-
};
|
|
261
|
-
/** @internal */
|
|
262
|
-
export declare const GetGenerationResponse$outboundSchema: z.ZodType<GetGenerationResponse$Outbound, GetGenerationResponse>;
|
|
263
|
-
/**
|
|
264
|
-
* @internal
|
|
265
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
266
|
-
*/
|
|
267
|
-
export declare namespace GetGenerationResponse$ {
|
|
268
|
-
/** @deprecated use `GetGenerationResponse$inboundSchema` instead. */
|
|
269
|
-
const inboundSchema: z.ZodType<GetGenerationResponse, unknown, z.core.$ZodTypeInternals<GetGenerationResponse, unknown>>;
|
|
270
|
-
/** @deprecated use `GetGenerationResponse$outboundSchema` instead. */
|
|
271
|
-
const outboundSchema: z.ZodType<GetGenerationResponse$Outbound, GetGenerationResponse, z.core.$ZodTypeInternals<GetGenerationResponse$Outbound, GetGenerationResponse>>;
|
|
272
|
-
/** @deprecated use `GetGenerationResponse$Outbound` instead. */
|
|
273
|
-
type Outbound = GetGenerationResponse$Outbound;
|
|
274
|
-
}
|
|
275
|
-
export declare function getGenerationResponseToJSON(getGenerationResponse: GetGenerationResponse): string;
|
|
276
175
|
export declare function getGenerationResponseFromJSON(jsonString: string): SafeParseResult<GetGenerationResponse, SDKValidationError>;
|
|
277
176
|
//# sourceMappingURL=getgeneration.d.ts.map
|
|
@@ -4,7 +4,7 @@
|
|
|
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
|
|
7
|
+
import { catchUnrecognizedEnum } from "../../types/enums.js";
|
|
8
8
|
/**
|
|
9
9
|
* Type of API used for the generation
|
|
10
10
|
*/
|
|
@@ -13,30 +13,12 @@ export const ApiType = {
|
|
|
13
13
|
Embeddings: "embeddings",
|
|
14
14
|
};
|
|
15
15
|
/** @internal */
|
|
16
|
-
export const GetGenerationRequest$inboundSchema = z.object({
|
|
17
|
-
id: z.string(),
|
|
18
|
-
});
|
|
19
|
-
/** @internal */
|
|
20
16
|
export const GetGenerationRequest$outboundSchema = z.object({
|
|
21
17
|
id: z.string(),
|
|
22
18
|
});
|
|
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 GetGenerationRequest$;
|
|
28
|
-
(function (GetGenerationRequest$) {
|
|
29
|
-
/** @deprecated use `GetGenerationRequest$inboundSchema` instead. */
|
|
30
|
-
GetGenerationRequest$.inboundSchema = GetGenerationRequest$inboundSchema;
|
|
31
|
-
/** @deprecated use `GetGenerationRequest$outboundSchema` instead. */
|
|
32
|
-
GetGenerationRequest$.outboundSchema = GetGenerationRequest$outboundSchema;
|
|
33
|
-
})(GetGenerationRequest$ || (GetGenerationRequest$ = {}));
|
|
34
19
|
export function getGenerationRequestToJSON(getGenerationRequest) {
|
|
35
20
|
return JSON.stringify(GetGenerationRequest$outboundSchema.parse(getGenerationRequest));
|
|
36
21
|
}
|
|
37
|
-
export function getGenerationRequestFromJSON(jsonString) {
|
|
38
|
-
return safeParse(jsonString, (x) => GetGenerationRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetGenerationRequest' from JSON`);
|
|
39
|
-
}
|
|
40
22
|
/** @internal */
|
|
41
23
|
export const ApiType$inboundSchema = z
|
|
42
24
|
.union([
|
|
@@ -44,22 +26,6 @@ export const ApiType$inboundSchema = z
|
|
|
44
26
|
z.string().transform(catchUnrecognizedEnum),
|
|
45
27
|
]);
|
|
46
28
|
/** @internal */
|
|
47
|
-
export const ApiType$outboundSchema = z.union([
|
|
48
|
-
z.enum(ApiType),
|
|
49
|
-
z.string().and(z.custom()),
|
|
50
|
-
]);
|
|
51
|
-
/**
|
|
52
|
-
* @internal
|
|
53
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
54
|
-
*/
|
|
55
|
-
export var ApiType$;
|
|
56
|
-
(function (ApiType$) {
|
|
57
|
-
/** @deprecated use `ApiType$inboundSchema` instead. */
|
|
58
|
-
ApiType$.inboundSchema = ApiType$inboundSchema;
|
|
59
|
-
/** @deprecated use `ApiType$outboundSchema` instead. */
|
|
60
|
-
ApiType$.outboundSchema = ApiType$outboundSchema;
|
|
61
|
-
})(ApiType$ || (ApiType$ = {}));
|
|
62
|
-
/** @internal */
|
|
63
29
|
export const GetGenerationData$inboundSchema = z.object({
|
|
64
30
|
id: z.string(),
|
|
65
31
|
upstream_id: z.nullable(z.string()),
|
|
@@ -85,7 +51,6 @@ export const GetGenerationData$inboundSchema = z.object({
|
|
|
85
51
|
native_tokens_cached: z.nullable(z.number()),
|
|
86
52
|
num_media_prompt: z.nullable(z.number()),
|
|
87
53
|
num_input_audio_prompt: z.nullable(z.number()),
|
|
88
|
-
num_video_prompt: z.nullable(z.number()),
|
|
89
54
|
num_media_completion: z.nullable(z.number()),
|
|
90
55
|
num_search_results: z.nullable(z.number()),
|
|
91
56
|
origin: z.string(),
|
|
@@ -115,7 +80,6 @@ export const GetGenerationData$inboundSchema = z.object({
|
|
|
115
80
|
"native_tokens_cached": "nativeTokensCached",
|
|
116
81
|
"num_media_prompt": "numMediaPrompt",
|
|
117
82
|
"num_input_audio_prompt": "numInputAudioPrompt",
|
|
118
|
-
"num_video_prompt": "numVideoPrompt",
|
|
119
83
|
"num_media_completion": "numMediaCompletion",
|
|
120
84
|
"num_search_results": "numSearchResults",
|
|
121
85
|
"is_byok": "isByok",
|
|
@@ -124,85 +88,6 @@ export const GetGenerationData$inboundSchema = z.object({
|
|
|
124
88
|
"api_type": "apiType",
|
|
125
89
|
});
|
|
126
90
|
});
|
|
127
|
-
/** @internal */
|
|
128
|
-
export const GetGenerationData$outboundSchema = z.object({
|
|
129
|
-
id: z.string(),
|
|
130
|
-
upstreamId: z.nullable(z.string()),
|
|
131
|
-
totalCost: z.number(),
|
|
132
|
-
cacheDiscount: z.nullable(z.number()),
|
|
133
|
-
upstreamInferenceCost: z.nullable(z.number()),
|
|
134
|
-
createdAt: z.string(),
|
|
135
|
-
model: z.string(),
|
|
136
|
-
appId: z.nullable(z.number()),
|
|
137
|
-
streamed: z.nullable(z.boolean()),
|
|
138
|
-
cancelled: z.nullable(z.boolean()),
|
|
139
|
-
providerName: z.nullable(z.string()),
|
|
140
|
-
latency: z.nullable(z.number()),
|
|
141
|
-
moderationLatency: z.nullable(z.number()),
|
|
142
|
-
generationTime: z.nullable(z.number()),
|
|
143
|
-
finishReason: z.nullable(z.string()),
|
|
144
|
-
tokensPrompt: z.nullable(z.number()),
|
|
145
|
-
tokensCompletion: z.nullable(z.number()),
|
|
146
|
-
nativeTokensPrompt: z.nullable(z.number()),
|
|
147
|
-
nativeTokensCompletion: z.nullable(z.number()),
|
|
148
|
-
nativeTokensCompletionImages: z.nullable(z.number()),
|
|
149
|
-
nativeTokensReasoning: z.nullable(z.number()),
|
|
150
|
-
nativeTokensCached: z.nullable(z.number()),
|
|
151
|
-
numMediaPrompt: z.nullable(z.number()),
|
|
152
|
-
numInputAudioPrompt: z.nullable(z.number()),
|
|
153
|
-
numVideoPrompt: z.nullable(z.number()),
|
|
154
|
-
numMediaCompletion: z.nullable(z.number()),
|
|
155
|
-
numSearchResults: z.nullable(z.number()),
|
|
156
|
-
origin: z.string(),
|
|
157
|
-
usage: z.number(),
|
|
158
|
-
isByok: z.boolean(),
|
|
159
|
-
nativeFinishReason: z.nullable(z.string()),
|
|
160
|
-
externalUser: z.nullable(z.string()),
|
|
161
|
-
apiType: z.nullable(ApiType$outboundSchema),
|
|
162
|
-
}).transform((v) => {
|
|
163
|
-
return remap$(v, {
|
|
164
|
-
upstreamId: "upstream_id",
|
|
165
|
-
totalCost: "total_cost",
|
|
166
|
-
cacheDiscount: "cache_discount",
|
|
167
|
-
upstreamInferenceCost: "upstream_inference_cost",
|
|
168
|
-
createdAt: "created_at",
|
|
169
|
-
appId: "app_id",
|
|
170
|
-
providerName: "provider_name",
|
|
171
|
-
moderationLatency: "moderation_latency",
|
|
172
|
-
generationTime: "generation_time",
|
|
173
|
-
finishReason: "finish_reason",
|
|
174
|
-
tokensPrompt: "tokens_prompt",
|
|
175
|
-
tokensCompletion: "tokens_completion",
|
|
176
|
-
nativeTokensPrompt: "native_tokens_prompt",
|
|
177
|
-
nativeTokensCompletion: "native_tokens_completion",
|
|
178
|
-
nativeTokensCompletionImages: "native_tokens_completion_images",
|
|
179
|
-
nativeTokensReasoning: "native_tokens_reasoning",
|
|
180
|
-
nativeTokensCached: "native_tokens_cached",
|
|
181
|
-
numMediaPrompt: "num_media_prompt",
|
|
182
|
-
numInputAudioPrompt: "num_input_audio_prompt",
|
|
183
|
-
numVideoPrompt: "num_video_prompt",
|
|
184
|
-
numMediaCompletion: "num_media_completion",
|
|
185
|
-
numSearchResults: "num_search_results",
|
|
186
|
-
isByok: "is_byok",
|
|
187
|
-
nativeFinishReason: "native_finish_reason",
|
|
188
|
-
externalUser: "external_user",
|
|
189
|
-
apiType: "api_type",
|
|
190
|
-
});
|
|
191
|
-
});
|
|
192
|
-
/**
|
|
193
|
-
* @internal
|
|
194
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
195
|
-
*/
|
|
196
|
-
export var GetGenerationData$;
|
|
197
|
-
(function (GetGenerationData$) {
|
|
198
|
-
/** @deprecated use `GetGenerationData$inboundSchema` instead. */
|
|
199
|
-
GetGenerationData$.inboundSchema = GetGenerationData$inboundSchema;
|
|
200
|
-
/** @deprecated use `GetGenerationData$outboundSchema` instead. */
|
|
201
|
-
GetGenerationData$.outboundSchema = GetGenerationData$outboundSchema;
|
|
202
|
-
})(GetGenerationData$ || (GetGenerationData$ = {}));
|
|
203
|
-
export function getGenerationDataToJSON(getGenerationData) {
|
|
204
|
-
return JSON.stringify(GetGenerationData$outboundSchema.parse(getGenerationData));
|
|
205
|
-
}
|
|
206
91
|
export function getGenerationDataFromJSON(jsonString) {
|
|
207
92
|
return safeParse(jsonString, (x) => GetGenerationData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetGenerationData' from JSON`);
|
|
208
93
|
}
|
|
@@ -210,24 +95,6 @@ export function getGenerationDataFromJSON(jsonString) {
|
|
|
210
95
|
export const GetGenerationResponse$inboundSchema = z.object({
|
|
211
96
|
data: z.lazy(() => GetGenerationData$inboundSchema),
|
|
212
97
|
});
|
|
213
|
-
/** @internal */
|
|
214
|
-
export const GetGenerationResponse$outboundSchema = z.object({
|
|
215
|
-
data: z.lazy(() => GetGenerationData$outboundSchema),
|
|
216
|
-
});
|
|
217
|
-
/**
|
|
218
|
-
* @internal
|
|
219
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
220
|
-
*/
|
|
221
|
-
export var GetGenerationResponse$;
|
|
222
|
-
(function (GetGenerationResponse$) {
|
|
223
|
-
/** @deprecated use `GetGenerationResponse$inboundSchema` instead. */
|
|
224
|
-
GetGenerationResponse$.inboundSchema = GetGenerationResponse$inboundSchema;
|
|
225
|
-
/** @deprecated use `GetGenerationResponse$outboundSchema` instead. */
|
|
226
|
-
GetGenerationResponse$.outboundSchema = GetGenerationResponse$outboundSchema;
|
|
227
|
-
})(GetGenerationResponse$ || (GetGenerationResponse$ = {}));
|
|
228
|
-
export function getGenerationResponseToJSON(getGenerationResponse) {
|
|
229
|
-
return JSON.stringify(GetGenerationResponse$outboundSchema.parse(getGenerationResponse));
|
|
230
|
-
}
|
|
231
98
|
export function getGenerationResponseFromJSON(jsonString) {
|
|
232
99
|
return safeParse(jsonString, (x) => GetGenerationResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetGenerationResponse' from JSON`);
|
|
233
100
|
}
|
|
@@ -94,86 +94,16 @@ export type GetKeyResponse = {
|
|
|
94
94
|
data: GetKeyData;
|
|
95
95
|
};
|
|
96
96
|
/** @internal */
|
|
97
|
-
export declare const GetKeyRequest$inboundSchema: z.ZodType<GetKeyRequest, unknown>;
|
|
98
|
-
/** @internal */
|
|
99
97
|
export type GetKeyRequest$Outbound = {
|
|
100
98
|
hash: string;
|
|
101
99
|
};
|
|
102
100
|
/** @internal */
|
|
103
101
|
export declare const GetKeyRequest$outboundSchema: z.ZodType<GetKeyRequest$Outbound, GetKeyRequest>;
|
|
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 GetKeyRequest$ {
|
|
109
|
-
/** @deprecated use `GetKeyRequest$inboundSchema` instead. */
|
|
110
|
-
const inboundSchema: z.ZodType<GetKeyRequest, unknown, z.core.$ZodTypeInternals<GetKeyRequest, unknown>>;
|
|
111
|
-
/** @deprecated use `GetKeyRequest$outboundSchema` instead. */
|
|
112
|
-
const outboundSchema: z.ZodType<GetKeyRequest$Outbound, GetKeyRequest, z.core.$ZodTypeInternals<GetKeyRequest$Outbound, GetKeyRequest>>;
|
|
113
|
-
/** @deprecated use `GetKeyRequest$Outbound` instead. */
|
|
114
|
-
type Outbound = GetKeyRequest$Outbound;
|
|
115
|
-
}
|
|
116
102
|
export declare function getKeyRequestToJSON(getKeyRequest: GetKeyRequest): string;
|
|
117
|
-
export declare function getKeyRequestFromJSON(jsonString: string): SafeParseResult<GetKeyRequest, SDKValidationError>;
|
|
118
103
|
/** @internal */
|
|
119
104
|
export declare const GetKeyData$inboundSchema: z.ZodType<GetKeyData, unknown>;
|
|
120
|
-
/** @internal */
|
|
121
|
-
export type GetKeyData$Outbound = {
|
|
122
|
-
hash: string;
|
|
123
|
-
name: string;
|
|
124
|
-
label: string;
|
|
125
|
-
disabled: boolean;
|
|
126
|
-
limit: number | null;
|
|
127
|
-
limit_remaining: number | null;
|
|
128
|
-
limit_reset: string | null;
|
|
129
|
-
include_byok_in_limit: boolean;
|
|
130
|
-
usage: number;
|
|
131
|
-
usage_daily: number;
|
|
132
|
-
usage_weekly: number;
|
|
133
|
-
usage_monthly: number;
|
|
134
|
-
byok_usage: number;
|
|
135
|
-
byok_usage_daily: number;
|
|
136
|
-
byok_usage_weekly: number;
|
|
137
|
-
byok_usage_monthly: number;
|
|
138
|
-
created_at: string;
|
|
139
|
-
updated_at: string | null;
|
|
140
|
-
};
|
|
141
|
-
/** @internal */
|
|
142
|
-
export declare const GetKeyData$outboundSchema: z.ZodType<GetKeyData$Outbound, GetKeyData>;
|
|
143
|
-
/**
|
|
144
|
-
* @internal
|
|
145
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
146
|
-
*/
|
|
147
|
-
export declare namespace GetKeyData$ {
|
|
148
|
-
/** @deprecated use `GetKeyData$inboundSchema` instead. */
|
|
149
|
-
const inboundSchema: z.ZodType<GetKeyData, unknown, z.core.$ZodTypeInternals<GetKeyData, unknown>>;
|
|
150
|
-
/** @deprecated use `GetKeyData$outboundSchema` instead. */
|
|
151
|
-
const outboundSchema: z.ZodType<GetKeyData$Outbound, GetKeyData, z.core.$ZodTypeInternals<GetKeyData$Outbound, GetKeyData>>;
|
|
152
|
-
/** @deprecated use `GetKeyData$Outbound` instead. */
|
|
153
|
-
type Outbound = GetKeyData$Outbound;
|
|
154
|
-
}
|
|
155
|
-
export declare function getKeyDataToJSON(getKeyData: GetKeyData): string;
|
|
156
105
|
export declare function getKeyDataFromJSON(jsonString: string): SafeParseResult<GetKeyData, SDKValidationError>;
|
|
157
106
|
/** @internal */
|
|
158
107
|
export declare const GetKeyResponse$inboundSchema: z.ZodType<GetKeyResponse, unknown>;
|
|
159
|
-
/** @internal */
|
|
160
|
-
export type GetKeyResponse$Outbound = {
|
|
161
|
-
data: GetKeyData$Outbound;
|
|
162
|
-
};
|
|
163
|
-
/** @internal */
|
|
164
|
-
export declare const GetKeyResponse$outboundSchema: z.ZodType<GetKeyResponse$Outbound, GetKeyResponse>;
|
|
165
|
-
/**
|
|
166
|
-
* @internal
|
|
167
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
168
|
-
*/
|
|
169
|
-
export declare namespace GetKeyResponse$ {
|
|
170
|
-
/** @deprecated use `GetKeyResponse$inboundSchema` instead. */
|
|
171
|
-
const inboundSchema: z.ZodType<GetKeyResponse, unknown, z.core.$ZodTypeInternals<GetKeyResponse, unknown>>;
|
|
172
|
-
/** @deprecated use `GetKeyResponse$outboundSchema` instead. */
|
|
173
|
-
const outboundSchema: z.ZodType<GetKeyResponse$Outbound, GetKeyResponse, z.core.$ZodTypeInternals<GetKeyResponse$Outbound, GetKeyResponse>>;
|
|
174
|
-
/** @deprecated use `GetKeyResponse$Outbound` instead. */
|
|
175
|
-
type Outbound = GetKeyResponse$Outbound;
|
|
176
|
-
}
|
|
177
|
-
export declare function getKeyResponseToJSON(getKeyResponse: GetKeyResponse): string;
|
|
178
108
|
export declare function getKeyResponseFromJSON(jsonString: string): SafeParseResult<GetKeyResponse, SDKValidationError>;
|
|
179
109
|
//# sourceMappingURL=getkey.d.ts.map
|
|
@@ -5,31 +5,12 @@ 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
7
|
/** @internal */
|
|
8
|
-
export const GetKeyRequest$inboundSchema = z
|
|
9
|
-
.object({
|
|
10
|
-
hash: z.string(),
|
|
11
|
-
});
|
|
12
|
-
/** @internal */
|
|
13
8
|
export const GetKeyRequest$outboundSchema = z.object({
|
|
14
9
|
hash: z.string(),
|
|
15
10
|
});
|
|
16
|
-
/**
|
|
17
|
-
* @internal
|
|
18
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
19
|
-
*/
|
|
20
|
-
export var GetKeyRequest$;
|
|
21
|
-
(function (GetKeyRequest$) {
|
|
22
|
-
/** @deprecated use `GetKeyRequest$inboundSchema` instead. */
|
|
23
|
-
GetKeyRequest$.inboundSchema = GetKeyRequest$inboundSchema;
|
|
24
|
-
/** @deprecated use `GetKeyRequest$outboundSchema` instead. */
|
|
25
|
-
GetKeyRequest$.outboundSchema = GetKeyRequest$outboundSchema;
|
|
26
|
-
})(GetKeyRequest$ || (GetKeyRequest$ = {}));
|
|
27
11
|
export function getKeyRequestToJSON(getKeyRequest) {
|
|
28
12
|
return JSON.stringify(GetKeyRequest$outboundSchema.parse(getKeyRequest));
|
|
29
13
|
}
|
|
30
|
-
export function getKeyRequestFromJSON(jsonString) {
|
|
31
|
-
return safeParse(jsonString, (x) => GetKeyRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetKeyRequest' from JSON`);
|
|
32
|
-
}
|
|
33
14
|
/** @internal */
|
|
34
15
|
export const GetKeyData$inboundSchema = z
|
|
35
16
|
.object({
|
|
@@ -67,56 +48,6 @@ export const GetKeyData$inboundSchema = z
|
|
|
67
48
|
"updated_at": "updatedAt",
|
|
68
49
|
});
|
|
69
50
|
});
|
|
70
|
-
/** @internal */
|
|
71
|
-
export const GetKeyData$outboundSchema = z.object({
|
|
72
|
-
hash: z.string(),
|
|
73
|
-
name: z.string(),
|
|
74
|
-
label: z.string(),
|
|
75
|
-
disabled: z.boolean(),
|
|
76
|
-
limit: z.nullable(z.number()),
|
|
77
|
-
limitRemaining: z.nullable(z.number()),
|
|
78
|
-
limitReset: z.nullable(z.string()),
|
|
79
|
-
includeByokInLimit: z.boolean(),
|
|
80
|
-
usage: z.number(),
|
|
81
|
-
usageDaily: z.number(),
|
|
82
|
-
usageWeekly: z.number(),
|
|
83
|
-
usageMonthly: z.number(),
|
|
84
|
-
byokUsage: z.number(),
|
|
85
|
-
byokUsageDaily: z.number(),
|
|
86
|
-
byokUsageWeekly: z.number(),
|
|
87
|
-
byokUsageMonthly: z.number(),
|
|
88
|
-
createdAt: z.string(),
|
|
89
|
-
updatedAt: z.nullable(z.string()),
|
|
90
|
-
}).transform((v) => {
|
|
91
|
-
return remap$(v, {
|
|
92
|
-
limitRemaining: "limit_remaining",
|
|
93
|
-
limitReset: "limit_reset",
|
|
94
|
-
includeByokInLimit: "include_byok_in_limit",
|
|
95
|
-
usageDaily: "usage_daily",
|
|
96
|
-
usageWeekly: "usage_weekly",
|
|
97
|
-
usageMonthly: "usage_monthly",
|
|
98
|
-
byokUsage: "byok_usage",
|
|
99
|
-
byokUsageDaily: "byok_usage_daily",
|
|
100
|
-
byokUsageWeekly: "byok_usage_weekly",
|
|
101
|
-
byokUsageMonthly: "byok_usage_monthly",
|
|
102
|
-
createdAt: "created_at",
|
|
103
|
-
updatedAt: "updated_at",
|
|
104
|
-
});
|
|
105
|
-
});
|
|
106
|
-
/**
|
|
107
|
-
* @internal
|
|
108
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
109
|
-
*/
|
|
110
|
-
export var GetKeyData$;
|
|
111
|
-
(function (GetKeyData$) {
|
|
112
|
-
/** @deprecated use `GetKeyData$inboundSchema` instead. */
|
|
113
|
-
GetKeyData$.inboundSchema = GetKeyData$inboundSchema;
|
|
114
|
-
/** @deprecated use `GetKeyData$outboundSchema` instead. */
|
|
115
|
-
GetKeyData$.outboundSchema = GetKeyData$outboundSchema;
|
|
116
|
-
})(GetKeyData$ || (GetKeyData$ = {}));
|
|
117
|
-
export function getKeyDataToJSON(getKeyData) {
|
|
118
|
-
return JSON.stringify(GetKeyData$outboundSchema.parse(getKeyData));
|
|
119
|
-
}
|
|
120
51
|
export function getKeyDataFromJSON(jsonString) {
|
|
121
52
|
return safeParse(jsonString, (x) => GetKeyData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetKeyData' from JSON`);
|
|
122
53
|
}
|
|
@@ -124,24 +55,6 @@ export function getKeyDataFromJSON(jsonString) {
|
|
|
124
55
|
export const GetKeyResponse$inboundSchema = z.object({
|
|
125
56
|
data: z.lazy(() => GetKeyData$inboundSchema),
|
|
126
57
|
});
|
|
127
|
-
/** @internal */
|
|
128
|
-
export const GetKeyResponse$outboundSchema = z.object({
|
|
129
|
-
data: z.lazy(() => GetKeyData$outboundSchema),
|
|
130
|
-
});
|
|
131
|
-
/**
|
|
132
|
-
* @internal
|
|
133
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
134
|
-
*/
|
|
135
|
-
export var GetKeyResponse$;
|
|
136
|
-
(function (GetKeyResponse$) {
|
|
137
|
-
/** @deprecated use `GetKeyResponse$inboundSchema` instead. */
|
|
138
|
-
GetKeyResponse$.inboundSchema = GetKeyResponse$inboundSchema;
|
|
139
|
-
/** @deprecated use `GetKeyResponse$outboundSchema` instead. */
|
|
140
|
-
GetKeyResponse$.outboundSchema = GetKeyResponse$outboundSchema;
|
|
141
|
-
})(GetKeyResponse$ || (GetKeyResponse$ = {}));
|
|
142
|
-
export function getKeyResponseToJSON(getKeyResponse) {
|
|
143
|
-
return JSON.stringify(GetKeyResponse$outboundSchema.parse(getKeyResponse));
|
|
144
|
-
}
|
|
145
58
|
export function getKeyResponseFromJSON(jsonString) {
|
|
146
59
|
return safeParse(jsonString, (x) => GetKeyResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetKeyResponse' from JSON`);
|
|
147
60
|
}
|
|
@@ -1,31 +1,14 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
2
|
export type GetModelsRequest = {
|
|
5
3
|
category?: string | undefined;
|
|
6
4
|
supportedParameters?: string | undefined;
|
|
7
5
|
};
|
|
8
6
|
/** @internal */
|
|
9
|
-
export declare const GetModelsRequest$inboundSchema: z.ZodType<GetModelsRequest, unknown>;
|
|
10
|
-
/** @internal */
|
|
11
7
|
export type GetModelsRequest$Outbound = {
|
|
12
8
|
category?: string | undefined;
|
|
13
9
|
supported_parameters?: string | undefined;
|
|
14
10
|
};
|
|
15
11
|
/** @internal */
|
|
16
12
|
export declare const GetModelsRequest$outboundSchema: z.ZodType<GetModelsRequest$Outbound, GetModelsRequest>;
|
|
17
|
-
/**
|
|
18
|
-
* @internal
|
|
19
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
20
|
-
*/
|
|
21
|
-
export declare namespace GetModelsRequest$ {
|
|
22
|
-
/** @deprecated use `GetModelsRequest$inboundSchema` instead. */
|
|
23
|
-
const inboundSchema: z.ZodType<GetModelsRequest, unknown, z.core.$ZodTypeInternals<GetModelsRequest, unknown>>;
|
|
24
|
-
/** @deprecated use `GetModelsRequest$outboundSchema` instead. */
|
|
25
|
-
const outboundSchema: z.ZodType<GetModelsRequest$Outbound, GetModelsRequest, z.core.$ZodTypeInternals<GetModelsRequest$Outbound, GetModelsRequest>>;
|
|
26
|
-
/** @deprecated use `GetModelsRequest$Outbound` instead. */
|
|
27
|
-
type Outbound = GetModelsRequest$Outbound;
|
|
28
|
-
}
|
|
29
13
|
export declare function getModelsRequestToJSON(getModelsRequest: GetModelsRequest): string;
|
|
30
|
-
export declare function getModelsRequestFromJSON(jsonString: string): SafeParseResult<GetModelsRequest, SDKValidationError>;
|
|
31
14
|
//# sourceMappingURL=getmodels.d.ts.map
|