@openrouter/sdk 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/funcs/modelsListEmbeddings.d.ts +18 -0
- package/esm/funcs/modelsListEmbeddings.js +72 -0
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/models/activityitem.d.ts +0 -29
- package/esm/models/activityitem.js +0 -38
- package/esm/models/assistantmessage.d.ts +0 -24
- package/esm/models/assistantmessage.js +0 -22
- package/esm/models/badgatewayresponseerrordata.d.ts +0 -23
- package/esm/models/badgatewayresponseerrordata.js +0 -20
- package/esm/models/badrequestresponseerrordata.d.ts +0 -23
- package/esm/models/badrequestresponseerrordata.js +0 -20
- package/esm/models/chatcompletionfinishreason.d.ts +0 -12
- package/esm/models/chatcompletionfinishreason.js +1 -17
- package/esm/models/chaterror.d.ts +0 -39
- package/esm/models/chaterror.js +0 -40
- package/esm/models/chatgenerationparams.d.ts +3 -122
- package/esm/models/chatgenerationparams.js +7 -195
- package/esm/models/chatgenerationtokenusage.d.ts +6 -70
- package/esm/models/chatgenerationtokenusage.js +7 -89
- package/esm/models/chatmessagecontentitem.d.ts +5 -12
- package/esm/models/chatmessagecontentitem.js +7 -11
- package/esm/models/chatmessagecontentitemaudio.d.ts +0 -34
- package/esm/models/chatmessagecontentitemaudio.js +0 -33
- package/esm/models/chatmessagecontentitemimage.d.ts +0 -34
- package/esm/models/chatmessagecontentitemimage.js +0 -33
- package/esm/models/chatmessagecontentitemtext.d.ts +0 -12
- package/esm/models/chatmessagecontentitemtext.js +0 -11
- package/esm/models/chatmessagecontentitemvideo.d.ts +32 -0
- package/esm/models/chatmessagecontentitemvideo.js +46 -0
- package/esm/models/chatmessagetokenlogprob.d.ts +0 -43
- package/esm/models/chatmessagetokenlogprob.js +0 -45
- package/esm/models/chatmessagetokenlogprobs.d.ts +1 -21
- package/esm/models/chatmessagetokenlogprobs.js +1 -20
- package/esm/models/chatmessagetoolcall.d.ts +0 -24
- package/esm/models/chatmessagetoolcall.js +0 -22
- package/esm/models/chatresponse.d.ts +2 -27
- package/esm/models/chatresponse.js +2 -30
- package/esm/models/chatresponsechoice.d.ts +2 -24
- package/esm/models/chatresponsechoice.js +3 -28
- package/esm/models/chatstreamingchoice.d.ts +2 -24
- package/esm/models/chatstreamingchoice.js +3 -28
- package/esm/models/chatstreamingmessagechunk.d.ts +1 -40
- package/esm/models/chatstreamingmessagechunk.js +1 -40
- package/esm/models/chatstreamingmessagetoolcall.d.ts +0 -42
- package/esm/models/chatstreamingmessagetoolcall.js +0 -41
- package/esm/models/chatstreamingresponsechunk.d.ts +2 -67
- package/esm/models/chatstreamingresponsechunk.js +2 -69
- package/esm/models/chatstreamoptions.d.ts +0 -17
- package/esm/models/chatstreamoptions.js +0 -23
- package/esm/models/completionchoice.d.ts +1 -35
- package/esm/models/completionchoice.js +2 -43
- package/esm/models/completioncreateparams.d.ts +0 -122
- package/esm/models/completioncreateparams.js +2 -200
- package/esm/models/completionlogprobs.d.ts +0 -24
- package/esm/models/completionlogprobs.js +0 -27
- package/esm/models/completionresponse.d.ts +2 -27
- package/esm/models/completionresponse.js +2 -30
- package/esm/models/completionusage.d.ts +0 -21
- package/esm/models/completionusage.js +0 -26
- package/esm/models/createchargerequest.d.ts +0 -29
- package/esm/models/createchargerequest.js +0 -43
- package/esm/models/defaultparameters.d.ts +0 -21
- package/esm/models/defaultparameters.js +0 -25
- package/esm/models/edgenetworktimeoutresponseerrordata.d.ts +0 -23
- package/esm/models/edgenetworktimeoutresponseerrordata.js +0 -20
- package/esm/models/endpointstatus.d.ts +0 -12
- package/esm/models/endpointstatus.js +1 -17
- package/esm/models/errors/badgatewayresponseerror.d.ts +0 -19
- package/esm/models/errors/badgatewayresponseerror.js +0 -22
- package/esm/models/errors/badrequestresponseerror.d.ts +0 -19
- package/esm/models/errors/badrequestresponseerror.js +0 -22
- package/esm/models/errors/chaterror.d.ts +0 -18
- package/esm/models/errors/chaterror.js +0 -17
- package/esm/models/errors/edgenetworktimeoutresponseerror.d.ts +0 -19
- package/esm/models/errors/edgenetworktimeoutresponseerror.js +0 -22
- package/esm/models/errors/forbiddenresponseerror.d.ts +0 -19
- package/esm/models/errors/forbiddenresponseerror.js +0 -22
- package/esm/models/errors/internalserverresponseerror.d.ts +0 -19
- package/esm/models/errors/internalserverresponseerror.js +0 -22
- package/esm/models/errors/notfoundresponseerror.d.ts +0 -19
- package/esm/models/errors/notfoundresponseerror.js +0 -22
- package/esm/models/errors/payloadtoolargeresponseerror.d.ts +0 -19
- package/esm/models/errors/payloadtoolargeresponseerror.js +0 -22
- package/esm/models/errors/paymentrequiredresponseerror.d.ts +0 -19
- package/esm/models/errors/paymentrequiredresponseerror.js +0 -22
- package/esm/models/errors/provideroverloadedresponseerror.d.ts +0 -19
- package/esm/models/errors/provideroverloadedresponseerror.js +0 -22
- package/esm/models/errors/requesttimeoutresponseerror.d.ts +0 -19
- package/esm/models/errors/requesttimeoutresponseerror.js +0 -22
- package/esm/models/errors/serviceunavailableresponseerror.d.ts +0 -19
- package/esm/models/errors/serviceunavailableresponseerror.js +0 -22
- package/esm/models/errors/toomanyrequestsresponseerror.d.ts +0 -19
- package/esm/models/errors/toomanyrequestsresponseerror.js +0 -22
- package/esm/models/errors/unauthorizedresponseerror.d.ts +0 -19
- package/esm/models/errors/unauthorizedresponseerror.js +0 -22
- package/esm/models/errors/unprocessableentityresponseerror.d.ts +0 -19
- package/esm/models/errors/unprocessableentityresponseerror.js +0 -22
- package/esm/models/filecitation.d.ts +0 -26
- package/esm/models/filecitation.js +0 -22
- package/esm/models/filepath.d.ts +0 -26
- package/esm/models/filepath.js +0 -22
- package/esm/models/forbiddenresponseerrordata.d.ts +0 -23
- package/esm/models/forbiddenresponseerrordata.js +0 -20
- package/esm/models/imagegenerationstatus.d.ts +0 -10
- package/esm/models/imagegenerationstatus.js +0 -11
- package/esm/models/index.d.ts +2 -1
- package/esm/models/index.js +2 -1
- package/esm/models/inputmodality.d.ts +0 -12
- package/esm/models/inputmodality.js +1 -17
- package/esm/models/instructtype.d.ts +0 -12
- package/esm/models/instructtype.js +1 -17
- package/esm/models/internalserverresponseerrordata.d.ts +0 -23
- package/esm/models/internalserverresponseerrordata.js +0 -20
- package/esm/models/jsonschemaconfig.d.ts +0 -17
- package/esm/models/jsonschemaconfig.js +0 -22
- package/esm/models/listendpointsresponse.d.ts +1 -60
- package/esm/models/listendpointsresponse.js +5 -73
- package/esm/models/message.d.ts +0 -47
- package/esm/models/message.js +5 -67
- package/esm/models/model.d.ts +5 -36
- package/esm/models/model.js +6 -46
- package/esm/models/modelarchitecture.d.ts +0 -35
- package/esm/models/modelarchitecture.js +4 -49
- package/esm/models/modelgroup.d.ts +0 -12
- package/esm/models/modelgroup.js +1 -18
- package/esm/models/modelscountresponse.d.ts +0 -38
- package/esm/models/modelscountresponse.js +0 -36
- package/esm/models/modelslistresponse.d.ts +1 -20
- package/esm/models/modelslistresponse.js +1 -19
- package/esm/models/namedtoolchoice.d.ts +0 -32
- package/esm/models/namedtoolchoice.js +0 -38
- package/esm/models/notfoundresponseerrordata.d.ts +0 -23
- package/esm/models/notfoundresponseerrordata.js +0 -20
- package/esm/models/openairesponsesannotation.d.ts +0 -12
- package/esm/models/openairesponsesannotation.js +0 -11
- package/esm/models/openairesponsesincludable.d.ts +0 -12
- package/esm/models/openairesponsesincludable.js +0 -18
- package/esm/models/openairesponsesincompletedetails.d.ts +0 -31
- package/esm/models/openairesponsesincompletedetails.js +1 -35
- package/esm/models/openairesponsesinputunion.d.ts +6 -431
- package/esm/models/openairesponsesinputunion.js +7 -463
- package/esm/models/openairesponsesprompt.d.ts +0 -24
- package/esm/models/openairesponsesprompt.js +0 -22
- package/esm/models/openairesponsesreasoningconfig.d.ts +0 -20
- package/esm/models/openairesponsesreasoningconfig.js +2 -21
- package/esm/models/openairesponsesreasoningeffort.d.ts +0 -10
- package/esm/models/openairesponsesreasoningeffort.js +0 -11
- package/esm/models/openairesponsesrefusalcontent.d.ts +0 -26
- package/esm/models/openairesponsesrefusalcontent.js +0 -22
- package/esm/models/openairesponsesresponsestatus.d.ts +0 -12
- package/esm/models/openairesponsesresponsestatus.js +1 -17
- package/esm/models/openairesponsesservicetier.d.ts +0 -12
- package/esm/models/openairesponsesservicetier.js +1 -17
- package/esm/models/openairesponsestoolchoiceunion.d.ts +0 -132
- package/esm/models/openairesponsestoolchoiceunion.js +0 -110
- package/esm/models/openairesponsestruncation.d.ts +0 -12
- package/esm/models/openairesponsestruncation.js +1 -17
- package/esm/models/openresponseseasyinputmessage.d.ts +0 -142
- package/esm/models/openresponseseasyinputmessage.js +9 -198
- package/esm/models/openresponseserrorevent.d.ts +0 -39
- package/esm/models/openresponseserrorevent.js +0 -39
- package/esm/models/openresponsesfunctioncalloutput.d.ts +0 -33
- package/esm/models/openresponsesfunctioncalloutput.js +2 -42
- package/esm/models/openresponsesfunctiontoolcall.d.ts +0 -33
- package/esm/models/openresponsesfunctiontoolcall.js +2 -43
- package/esm/models/openresponsesimagegencallcompleted.d.ts +0 -38
- package/esm/models/openresponsesimagegencallcompleted.js +0 -40
- package/esm/models/openresponsesimagegencallgenerating.d.ts +0 -38
- package/esm/models/openresponsesimagegencallgenerating.js +0 -40
- package/esm/models/openresponsesimagegencallinprogress.d.ts +0 -38
- package/esm/models/openresponsesimagegencallinprogress.js +0 -40
- package/esm/models/openresponsesimagegencallpartialimage.d.ts +0 -40
- package/esm/models/openresponsesimagegencallpartialimage.js +0 -44
- package/esm/models/openresponsesinput.d.ts +0 -32
- package/esm/models/openresponsesinput.js +11 -71
- package/esm/models/openresponsesinputmessageitem.d.ts +0 -111
- package/esm/models/openresponsesinputmessageitem.js +8 -148
- package/esm/models/openresponseslogprobs.d.ts +1 -22
- package/esm/models/openresponseslogprobs.js +1 -25
- package/esm/models/openresponsesnonstreamingresponse.d.ts +13 -138
- package/esm/models/openresponsesnonstreamingresponse.js +16 -157
- package/esm/models/openresponsesreasoning.d.ts +0 -108
- package/esm/models/openresponsesreasoning.js +6 -130
- package/esm/models/openresponsesreasoningconfig.d.ts +0 -17
- package/esm/models/openresponsesreasoningconfig.js +2 -28
- package/esm/models/openresponsesreasoningdeltaevent.d.ts +0 -40
- package/esm/models/openresponsesreasoningdeltaevent.js +0 -43
- package/esm/models/openresponsesreasoningdoneevent.d.ts +0 -40
- package/esm/models/openresponsesreasoningdoneevent.js +0 -43
- package/esm/models/openresponsesreasoningsummarypartaddedevent.d.ts +1 -41
- package/esm/models/openresponsesreasoningsummarypartaddedevent.js +1 -44
- package/esm/models/openresponsesreasoningsummarytextdeltaevent.d.ts +0 -40
- package/esm/models/openresponsesreasoningsummarytextdeltaevent.js +0 -43
- package/esm/models/openresponsesreasoningsummarytextdoneevent.d.ts +0 -40
- package/esm/models/openresponsesreasoningsummarytextdoneevent.js +0 -43
- package/esm/models/openresponsesrequest.d.ts +5 -356
- package/esm/models/openresponsesrequest.js +18 -530
- package/esm/models/openresponsesresponsetext.d.ts +0 -29
- package/esm/models/openresponsesresponsetext.js +1 -40
- package/esm/models/openresponsesstreamevent.d.ts +18 -732
- package/esm/models/openresponsesstreamevent.js +18 -808
- package/esm/models/openresponsestoplogprobs.d.ts +0 -20
- package/esm/models/openresponsestoplogprobs.js +0 -19
- package/esm/models/openresponsesusage.d.ts +0 -85
- package/esm/models/openresponsesusage.js +0 -105
- package/esm/models/openresponseswebsearch20250826tool.d.ts +0 -38
- package/esm/models/openresponseswebsearch20250826tool.js +0 -33
- package/esm/models/openresponseswebsearchpreview20250311tool.d.ts +0 -26
- package/esm/models/openresponseswebsearchpreview20250311tool.js +0 -22
- package/esm/models/openresponseswebsearchpreviewtool.d.ts +0 -26
- package/esm/models/openresponseswebsearchpreviewtool.js +0 -22
- package/esm/models/openresponseswebsearchtool.d.ts +0 -38
- package/esm/models/openresponseswebsearchtool.js +0 -33
- package/esm/models/operations/createauthkeyscode.d.ts +0 -67
- package/esm/models/operations/createauthkeyscode.js +0 -89
- package/esm/models/operations/createcoinbasecharge.d.ts +0 -144
- package/esm/models/operations/createcoinbasecharge.js +0 -170
- package/esm/models/operations/createembeddings.d.ts +5 -330
- package/esm/models/operations/createembeddings.js +4 -404
- package/esm/models/operations/createkeys.d.ts +0 -83
- package/esm/models/operations/createkeys.js +0 -113
- package/esm/models/operations/createresponses.d.ts +0 -36
- package/esm/models/operations/createresponses.js +0 -37
- package/esm/models/operations/deletekeys.d.ts +0 -34
- package/esm/models/operations/deletekeys.js +0 -36
- package/esm/models/operations/exchangeauthcodeforapikey.d.ts +0 -47
- package/esm/models/operations/exchangeauthcodeforapikey.js +0 -66
- package/esm/models/operations/getcredits.d.ts +0 -17
- package/esm/models/operations/getcredits.js +0 -16
- package/esm/models/operations/getcurrentkey.d.ts +0 -74
- package/esm/models/operations/getcurrentkey.js +0 -87
- package/esm/models/operations/getgeneration.d.ts +0 -101
- package/esm/models/operations/getgeneration.js +1 -134
- package/esm/models/operations/getkey.d.ts +0 -70
- package/esm/models/operations/getkey.js +0 -87
- package/esm/models/operations/getmodels.d.ts +0 -17
- package/esm/models/operations/getmodels.js +0 -24
- package/esm/models/operations/getparameters.d.ts +0 -93
- package/esm/models/operations/getparameters.js +0 -112
- package/esm/models/operations/getuseractivity.d.ts +0 -34
- package/esm/models/operations/getuseractivity.js +0 -36
- package/esm/models/operations/list.d.ts +0 -70
- package/esm/models/operations/list.js +0 -93
- package/esm/models/operations/listendpoints.d.ts +0 -34
- package/esm/models/operations/listendpoints.js +0 -37
- package/esm/models/operations/listendpointszdr.d.ts +0 -19
- package/esm/models/operations/listendpointszdr.js +0 -18
- package/esm/models/operations/listmodelsuser.d.ts +0 -17
- package/esm/models/operations/listmodelsuser.js +0 -19
- package/esm/models/operations/listproviders.d.ts +0 -42
- package/esm/models/operations/listproviders.js +0 -46
- package/esm/models/operations/sendchatcompletionrequest.d.ts +0 -17
- package/esm/models/operations/sendchatcompletionrequest.js +0 -16
- package/esm/models/operations/updatekeys.d.ts +0 -97
- package/esm/models/operations/updatekeys.js +0 -136
- package/esm/models/outputitemimagegenerationcall.d.ts +0 -38
- package/esm/models/outputitemimagegenerationcall.js +1 -35
- package/esm/models/outputmessage.d.ts +2 -139
- package/esm/models/outputmessage.js +2 -135
- package/esm/models/outputmodality.d.ts +0 -12
- package/esm/models/outputmodality.js +1 -17
- package/esm/models/parameter.d.ts +0 -12
- package/esm/models/parameter.js +1 -18
- package/esm/models/payloadtoolargeresponseerrordata.d.ts +0 -23
- package/esm/models/payloadtoolargeresponseerrordata.js +0 -20
- package/esm/models/paymentrequiredresponseerrordata.d.ts +0 -23
- package/esm/models/paymentrequiredresponseerrordata.js +0 -20
- package/esm/models/perrequestlimits.d.ts +0 -20
- package/esm/models/perrequestlimits.js +0 -24
- package/esm/models/providername.d.ts +0 -10
- package/esm/models/providername.js +0 -11
- package/esm/models/provideroverloadedresponseerrordata.d.ts +0 -23
- package/esm/models/provideroverloadedresponseerrordata.js +0 -20
- package/esm/models/publicendpoint.d.ts +0 -73
- package/esm/models/publicendpoint.js +4 -100
- package/esm/models/publicpricing.d.ts +0 -30
- package/esm/models/publicpricing.js +0 -38
- package/esm/models/quantization.d.ts +0 -12
- package/esm/models/quantization.js +0 -18
- package/esm/models/reasoningsummarytext.d.ts +0 -26
- package/esm/models/reasoningsummarytext.js +0 -22
- package/esm/models/reasoningsummaryverbosity.d.ts +0 -10
- package/esm/models/reasoningsummaryverbosity.js +0 -11
- package/esm/models/reasoningtextcontent.d.ts +0 -26
- package/esm/models/reasoningtextcontent.js +0 -22
- package/esm/models/requesttimeoutresponseerrordata.d.ts +0 -23
- package/esm/models/requesttimeoutresponseerrordata.js +0 -20
- package/esm/models/responseformatjsonschema.d.ts +0 -17
- package/esm/models/responseformatjsonschema.js +1 -25
- package/esm/models/responseformattextconfig.d.ts +0 -12
- package/esm/models/responseformattextconfig.js +0 -11
- package/esm/models/responseformattextgrammar.d.ts +0 -17
- package/esm/models/responseformattextgrammar.js +0 -20
- package/esm/models/responseinputaudio.d.ts +0 -48
- package/esm/models/responseinputaudio.js +0 -44
- package/esm/models/responseinputfile.d.ts +0 -26
- package/esm/models/responseinputfile.js +0 -22
- package/esm/models/responseinputimage.d.ts +0 -36
- package/esm/models/responseinputimage.js +0 -33
- package/esm/models/responseinputtext.d.ts +0 -26
- package/esm/models/responseinputtext.js +0 -22
- package/esm/models/responseoutputtext.d.ts +0 -26
- package/esm/models/responseoutputtext.js +0 -22
- package/esm/models/responseserrorfield.d.ts +0 -32
- package/esm/models/responseserrorfield.js +1 -36
- package/esm/models/responsesformatjsonobject.d.ts +0 -26
- package/esm/models/responsesformatjsonobject.js +0 -22
- package/esm/models/responsesformattext.d.ts +0 -26
- package/esm/models/responsesformattext.js +0 -22
- package/esm/models/responsesformattextjsonschemaconfig.d.ts +0 -26
- package/esm/models/responsesformattextjsonschemaconfig.js +0 -22
- package/esm/models/responsesimagegenerationcall.d.ts +0 -26
- package/esm/models/responsesimagegenerationcall.js +0 -22
- package/esm/models/responsesoutputitem.d.ts +6 -23
- package/esm/models/responsesoutputitem.js +6 -29
- package/esm/models/responsesoutputitemfilesearchcall.d.ts +0 -26
- package/esm/models/responsesoutputitemfilesearchcall.js +0 -22
- package/esm/models/responsesoutputitemfunctioncall.d.ts +0 -80
- package/esm/models/responsesoutputitemfunctioncall.js +0 -66
- package/esm/models/responsesoutputitemreasoning.d.ts +0 -80
- package/esm/models/responsesoutputitemreasoning.js +0 -66
- package/esm/models/responsesoutputmessage.d.ts +0 -106
- package/esm/models/responsesoutputmessage.js +0 -88
- package/esm/models/responsessearchcontextsize.d.ts +0 -10
- package/esm/models/responsessearchcontextsize.js +0 -11
- package/esm/models/responseswebsearchcalloutput.d.ts +0 -26
- package/esm/models/responseswebsearchcalloutput.js +0 -22
- package/esm/models/responseswebsearchuserlocation.d.ts +0 -26
- package/esm/models/responseswebsearchuserlocation.js +0 -22
- package/esm/models/responsetextconfig.d.ts +1 -33
- package/esm/models/responsetextconfig.js +2 -37
- package/esm/models/security.d.ts +0 -17
- package/esm/models/security.js +0 -19
- package/esm/models/serviceunavailableresponseerrordata.d.ts +0 -23
- package/esm/models/serviceunavailableresponseerrordata.js +0 -20
- package/esm/models/systemmessage.d.ts +0 -32
- package/esm/models/systemmessage.js +1 -42
- package/esm/models/toolcallstatus.d.ts +0 -10
- package/esm/models/toolcallstatus.js +0 -11
- package/esm/models/tooldefinitionjson.d.ts +34 -0
- package/esm/models/tooldefinitionjson.js +23 -0
- package/esm/models/toolresponsemessage.d.ts +0 -32
- package/esm/models/toolresponsemessage.js +1 -42
- package/esm/models/toomanyrequestsresponseerrordata.d.ts +0 -23
- package/esm/models/toomanyrequestsresponseerrordata.js +0 -20
- package/esm/models/topproviderinfo.d.ts +0 -21
- package/esm/models/topproviderinfo.js +0 -26
- package/esm/models/unauthorizedresponseerrordata.d.ts +0 -23
- package/esm/models/unauthorizedresponseerrordata.js +0 -20
- package/esm/models/unprocessableentityresponseerrordata.d.ts +0 -23
- package/esm/models/unprocessableentityresponseerrordata.js +0 -20
- package/esm/models/urlcitation.d.ts +0 -26
- package/esm/models/urlcitation.js +0 -22
- package/esm/models/usermessage.d.ts +0 -32
- package/esm/models/usermessage.js +1 -42
- package/esm/models/websearchpreviewtooluserlocation.d.ts +0 -26
- package/esm/models/websearchpreviewtooluserlocation.js +0 -22
- package/esm/models/websearchstatus.d.ts +0 -10
- package/esm/models/websearchstatus.js +0 -11
- package/esm/react-query/index.d.ts +1 -0
- package/esm/react-query/index.js +1 -0
- package/esm/react-query/modelsListEmbeddings.d.ts +29 -0
- package/esm/react-query/modelsListEmbeddings.js +66 -0
- package/esm/sdk/models.d.ts +7 -0
- package/esm/sdk/models.js +10 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/esm/models/tool.d.ts +0 -66
- package/esm/models/tool.js +0 -65
|
@@ -4,7 +4,6 @@
|
|
|
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, } from "../../types/enums.js";
|
|
8
7
|
/**
|
|
9
8
|
* New limit reset type for the API key (daily, weekly, monthly, or null for no reset). Resets happen automatically at midnight UTC, and weeks are Monday through Sunday.
|
|
10
9
|
*/
|
|
@@ -14,40 +13,10 @@ export const UpdateKeysLimitReset = {
|
|
|
14
13
|
Monthly: "monthly",
|
|
15
14
|
};
|
|
16
15
|
/** @internal */
|
|
17
|
-
export const UpdateKeysLimitReset$inboundSchema = z
|
|
18
|
-
.union([
|
|
19
|
-
z.enum(UpdateKeysLimitReset),
|
|
20
|
-
z.string().transform(catchUnrecognizedEnum),
|
|
21
|
-
]);
|
|
22
|
-
/** @internal */
|
|
23
16
|
export const UpdateKeysLimitReset$outboundSchema = z.union([
|
|
24
17
|
z.enum(UpdateKeysLimitReset),
|
|
25
18
|
z.string().and(z.custom()),
|
|
26
19
|
]);
|
|
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 UpdateKeysLimitReset$;
|
|
32
|
-
(function (UpdateKeysLimitReset$) {
|
|
33
|
-
/** @deprecated use `UpdateKeysLimitReset$inboundSchema` instead. */
|
|
34
|
-
UpdateKeysLimitReset$.inboundSchema = UpdateKeysLimitReset$inboundSchema;
|
|
35
|
-
/** @deprecated use `UpdateKeysLimitReset$outboundSchema` instead. */
|
|
36
|
-
UpdateKeysLimitReset$.outboundSchema = UpdateKeysLimitReset$outboundSchema;
|
|
37
|
-
})(UpdateKeysLimitReset$ || (UpdateKeysLimitReset$ = {}));
|
|
38
|
-
/** @internal */
|
|
39
|
-
export const UpdateKeysRequestBody$inboundSchema = z.object({
|
|
40
|
-
name: z.string().optional(),
|
|
41
|
-
disabled: z.boolean().optional(),
|
|
42
|
-
limit: z.nullable(z.number()).optional(),
|
|
43
|
-
limit_reset: z.nullable(UpdateKeysLimitReset$inboundSchema).optional(),
|
|
44
|
-
include_byok_in_limit: z.boolean().optional(),
|
|
45
|
-
}).transform((v) => {
|
|
46
|
-
return remap$(v, {
|
|
47
|
-
"limit_reset": "limitReset",
|
|
48
|
-
"include_byok_in_limit": "includeByokInLimit",
|
|
49
|
-
});
|
|
50
|
-
});
|
|
51
20
|
/** @internal */
|
|
52
21
|
export const UpdateKeysRequestBody$outboundSchema = z.object({
|
|
53
22
|
name: z.string().optional(),
|
|
@@ -61,32 +30,9 @@ export const UpdateKeysRequestBody$outboundSchema = z.object({
|
|
|
61
30
|
includeByokInLimit: "include_byok_in_limit",
|
|
62
31
|
});
|
|
63
32
|
});
|
|
64
|
-
/**
|
|
65
|
-
* @internal
|
|
66
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
67
|
-
*/
|
|
68
|
-
export var UpdateKeysRequestBody$;
|
|
69
|
-
(function (UpdateKeysRequestBody$) {
|
|
70
|
-
/** @deprecated use `UpdateKeysRequestBody$inboundSchema` instead. */
|
|
71
|
-
UpdateKeysRequestBody$.inboundSchema = UpdateKeysRequestBody$inboundSchema;
|
|
72
|
-
/** @deprecated use `UpdateKeysRequestBody$outboundSchema` instead. */
|
|
73
|
-
UpdateKeysRequestBody$.outboundSchema = UpdateKeysRequestBody$outboundSchema;
|
|
74
|
-
})(UpdateKeysRequestBody$ || (UpdateKeysRequestBody$ = {}));
|
|
75
33
|
export function updateKeysRequestBodyToJSON(updateKeysRequestBody) {
|
|
76
34
|
return JSON.stringify(UpdateKeysRequestBody$outboundSchema.parse(updateKeysRequestBody));
|
|
77
35
|
}
|
|
78
|
-
export function updateKeysRequestBodyFromJSON(jsonString) {
|
|
79
|
-
return safeParse(jsonString, (x) => UpdateKeysRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateKeysRequestBody' from JSON`);
|
|
80
|
-
}
|
|
81
|
-
/** @internal */
|
|
82
|
-
export const UpdateKeysRequest$inboundSchema = z.object({
|
|
83
|
-
hash: z.string(),
|
|
84
|
-
RequestBody: z.lazy(() => UpdateKeysRequestBody$inboundSchema),
|
|
85
|
-
}).transform((v) => {
|
|
86
|
-
return remap$(v, {
|
|
87
|
-
"RequestBody": "requestBody",
|
|
88
|
-
});
|
|
89
|
-
});
|
|
90
36
|
/** @internal */
|
|
91
37
|
export const UpdateKeysRequest$outboundSchema = z.object({
|
|
92
38
|
hash: z.string(),
|
|
@@ -96,23 +42,9 @@ export const UpdateKeysRequest$outboundSchema = z.object({
|
|
|
96
42
|
requestBody: "RequestBody",
|
|
97
43
|
});
|
|
98
44
|
});
|
|
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 UpdateKeysRequest$;
|
|
104
|
-
(function (UpdateKeysRequest$) {
|
|
105
|
-
/** @deprecated use `UpdateKeysRequest$inboundSchema` instead. */
|
|
106
|
-
UpdateKeysRequest$.inboundSchema = UpdateKeysRequest$inboundSchema;
|
|
107
|
-
/** @deprecated use `UpdateKeysRequest$outboundSchema` instead. */
|
|
108
|
-
UpdateKeysRequest$.outboundSchema = UpdateKeysRequest$outboundSchema;
|
|
109
|
-
})(UpdateKeysRequest$ || (UpdateKeysRequest$ = {}));
|
|
110
45
|
export function updateKeysRequestToJSON(updateKeysRequest) {
|
|
111
46
|
return JSON.stringify(UpdateKeysRequest$outboundSchema.parse(updateKeysRequest));
|
|
112
47
|
}
|
|
113
|
-
export function updateKeysRequestFromJSON(jsonString) {
|
|
114
|
-
return safeParse(jsonString, (x) => UpdateKeysRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateKeysRequest' from JSON`);
|
|
115
|
-
}
|
|
116
48
|
/** @internal */
|
|
117
49
|
export const UpdateKeysData$inboundSchema = z.object({
|
|
118
50
|
hash: z.string(),
|
|
@@ -149,56 +81,6 @@ export const UpdateKeysData$inboundSchema = z.object({
|
|
|
149
81
|
"updated_at": "updatedAt",
|
|
150
82
|
});
|
|
151
83
|
});
|
|
152
|
-
/** @internal */
|
|
153
|
-
export const UpdateKeysData$outboundSchema = z.object({
|
|
154
|
-
hash: z.string(),
|
|
155
|
-
name: z.string(),
|
|
156
|
-
label: z.string(),
|
|
157
|
-
disabled: z.boolean(),
|
|
158
|
-
limit: z.nullable(z.number()),
|
|
159
|
-
limitRemaining: z.nullable(z.number()),
|
|
160
|
-
limitReset: z.nullable(z.string()),
|
|
161
|
-
includeByokInLimit: z.boolean(),
|
|
162
|
-
usage: z.number(),
|
|
163
|
-
usageDaily: z.number(),
|
|
164
|
-
usageWeekly: z.number(),
|
|
165
|
-
usageMonthly: z.number(),
|
|
166
|
-
byokUsage: z.number(),
|
|
167
|
-
byokUsageDaily: z.number(),
|
|
168
|
-
byokUsageWeekly: z.number(),
|
|
169
|
-
byokUsageMonthly: z.number(),
|
|
170
|
-
createdAt: z.string(),
|
|
171
|
-
updatedAt: z.nullable(z.string()),
|
|
172
|
-
}).transform((v) => {
|
|
173
|
-
return remap$(v, {
|
|
174
|
-
limitRemaining: "limit_remaining",
|
|
175
|
-
limitReset: "limit_reset",
|
|
176
|
-
includeByokInLimit: "include_byok_in_limit",
|
|
177
|
-
usageDaily: "usage_daily",
|
|
178
|
-
usageWeekly: "usage_weekly",
|
|
179
|
-
usageMonthly: "usage_monthly",
|
|
180
|
-
byokUsage: "byok_usage",
|
|
181
|
-
byokUsageDaily: "byok_usage_daily",
|
|
182
|
-
byokUsageWeekly: "byok_usage_weekly",
|
|
183
|
-
byokUsageMonthly: "byok_usage_monthly",
|
|
184
|
-
createdAt: "created_at",
|
|
185
|
-
updatedAt: "updated_at",
|
|
186
|
-
});
|
|
187
|
-
});
|
|
188
|
-
/**
|
|
189
|
-
* @internal
|
|
190
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
191
|
-
*/
|
|
192
|
-
export var UpdateKeysData$;
|
|
193
|
-
(function (UpdateKeysData$) {
|
|
194
|
-
/** @deprecated use `UpdateKeysData$inboundSchema` instead. */
|
|
195
|
-
UpdateKeysData$.inboundSchema = UpdateKeysData$inboundSchema;
|
|
196
|
-
/** @deprecated use `UpdateKeysData$outboundSchema` instead. */
|
|
197
|
-
UpdateKeysData$.outboundSchema = UpdateKeysData$outboundSchema;
|
|
198
|
-
})(UpdateKeysData$ || (UpdateKeysData$ = {}));
|
|
199
|
-
export function updateKeysDataToJSON(updateKeysData) {
|
|
200
|
-
return JSON.stringify(UpdateKeysData$outboundSchema.parse(updateKeysData));
|
|
201
|
-
}
|
|
202
84
|
export function updateKeysDataFromJSON(jsonString) {
|
|
203
85
|
return safeParse(jsonString, (x) => UpdateKeysData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateKeysData' from JSON`);
|
|
204
86
|
}
|
|
@@ -206,24 +88,6 @@ export function updateKeysDataFromJSON(jsonString) {
|
|
|
206
88
|
export const UpdateKeysResponse$inboundSchema = z.object({
|
|
207
89
|
data: z.lazy(() => UpdateKeysData$inboundSchema),
|
|
208
90
|
});
|
|
209
|
-
/** @internal */
|
|
210
|
-
export const UpdateKeysResponse$outboundSchema = z.object({
|
|
211
|
-
data: z.lazy(() => UpdateKeysData$outboundSchema),
|
|
212
|
-
});
|
|
213
|
-
/**
|
|
214
|
-
* @internal
|
|
215
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
216
|
-
*/
|
|
217
|
-
export var UpdateKeysResponse$;
|
|
218
|
-
(function (UpdateKeysResponse$) {
|
|
219
|
-
/** @deprecated use `UpdateKeysResponse$inboundSchema` instead. */
|
|
220
|
-
UpdateKeysResponse$.inboundSchema = UpdateKeysResponse$inboundSchema;
|
|
221
|
-
/** @deprecated use `UpdateKeysResponse$outboundSchema` instead. */
|
|
222
|
-
UpdateKeysResponse$.outboundSchema = UpdateKeysResponse$outboundSchema;
|
|
223
|
-
})(UpdateKeysResponse$ || (UpdateKeysResponse$ = {}));
|
|
224
|
-
export function updateKeysResponseToJSON(updateKeysResponse) {
|
|
225
|
-
return JSON.stringify(UpdateKeysResponse$outboundSchema.parse(updateKeysResponse));
|
|
226
|
-
}
|
|
227
91
|
export function updateKeysResponseFromJSON(jsonString) {
|
|
228
92
|
return safeParse(jsonString, (x) => UpdateKeysResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateKeysResponse' from JSON`);
|
|
229
93
|
}
|
|
@@ -16,44 +16,6 @@ export type OutputItemImageGenerationCall = {
|
|
|
16
16
|
/** @internal */
|
|
17
17
|
export declare const OutputItemImageGenerationCallType$inboundSchema: z.ZodEnum<typeof OutputItemImageGenerationCallType>;
|
|
18
18
|
/** @internal */
|
|
19
|
-
export declare const OutputItemImageGenerationCallType$outboundSchema: z.ZodEnum<typeof OutputItemImageGenerationCallType>;
|
|
20
|
-
/**
|
|
21
|
-
* @internal
|
|
22
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
23
|
-
*/
|
|
24
|
-
export declare namespace OutputItemImageGenerationCallType$ {
|
|
25
|
-
/** @deprecated use `OutputItemImageGenerationCallType$inboundSchema` instead. */
|
|
26
|
-
const inboundSchema: z.ZodEnum<{
|
|
27
|
-
readonly ImageGenerationCall: "image_generation_call";
|
|
28
|
-
}>;
|
|
29
|
-
/** @deprecated use `OutputItemImageGenerationCallType$outboundSchema` instead. */
|
|
30
|
-
const outboundSchema: z.ZodEnum<{
|
|
31
|
-
readonly ImageGenerationCall: "image_generation_call";
|
|
32
|
-
}>;
|
|
33
|
-
}
|
|
34
|
-
/** @internal */
|
|
35
19
|
export declare const OutputItemImageGenerationCall$inboundSchema: z.ZodType<OutputItemImageGenerationCall, unknown>;
|
|
36
|
-
/** @internal */
|
|
37
|
-
export type OutputItemImageGenerationCall$Outbound = {
|
|
38
|
-
type: string;
|
|
39
|
-
id: string;
|
|
40
|
-
result: string | null;
|
|
41
|
-
status: string;
|
|
42
|
-
};
|
|
43
|
-
/** @internal */
|
|
44
|
-
export declare const OutputItemImageGenerationCall$outboundSchema: z.ZodType<OutputItemImageGenerationCall$Outbound, OutputItemImageGenerationCall>;
|
|
45
|
-
/**
|
|
46
|
-
* @internal
|
|
47
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
48
|
-
*/
|
|
49
|
-
export declare namespace OutputItemImageGenerationCall$ {
|
|
50
|
-
/** @deprecated use `OutputItemImageGenerationCall$inboundSchema` instead. */
|
|
51
|
-
const inboundSchema: z.ZodType<OutputItemImageGenerationCall, unknown, z.core.$ZodTypeInternals<OutputItemImageGenerationCall, unknown>>;
|
|
52
|
-
/** @deprecated use `OutputItemImageGenerationCall$outboundSchema` instead. */
|
|
53
|
-
const outboundSchema: z.ZodType<OutputItemImageGenerationCall$Outbound, OutputItemImageGenerationCall, z.core.$ZodTypeInternals<OutputItemImageGenerationCall$Outbound, OutputItemImageGenerationCall>>;
|
|
54
|
-
/** @deprecated use `OutputItemImageGenerationCall$Outbound` instead. */
|
|
55
|
-
type Outbound = OutputItemImageGenerationCall$Outbound;
|
|
56
|
-
}
|
|
57
|
-
export declare function outputItemImageGenerationCallToJSON(outputItemImageGenerationCall: OutputItemImageGenerationCall): string;
|
|
58
20
|
export declare function outputItemImageGenerationCallFromJSON(jsonString: string): SafeParseResult<OutputItemImageGenerationCall, SDKValidationError>;
|
|
59
21
|
//# sourceMappingURL=outputitemimagegenerationcall.d.ts.map
|
|
@@ -3,53 +3,19 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as z from "zod/v4";
|
|
5
5
|
import { safeParse } from "../lib/schemas.js";
|
|
6
|
-
import { ImageGenerationStatus$inboundSchema,
|
|
6
|
+
import { ImageGenerationStatus$inboundSchema, } from "./imagegenerationstatus.js";
|
|
7
7
|
export const OutputItemImageGenerationCallType = {
|
|
8
8
|
ImageGenerationCall: "image_generation_call",
|
|
9
9
|
};
|
|
10
10
|
/** @internal */
|
|
11
11
|
export const OutputItemImageGenerationCallType$inboundSchema = z.enum(OutputItemImageGenerationCallType);
|
|
12
12
|
/** @internal */
|
|
13
|
-
export const OutputItemImageGenerationCallType$outboundSchema = OutputItemImageGenerationCallType$inboundSchema;
|
|
14
|
-
/**
|
|
15
|
-
* @internal
|
|
16
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
17
|
-
*/
|
|
18
|
-
export var OutputItemImageGenerationCallType$;
|
|
19
|
-
(function (OutputItemImageGenerationCallType$) {
|
|
20
|
-
/** @deprecated use `OutputItemImageGenerationCallType$inboundSchema` instead. */
|
|
21
|
-
OutputItemImageGenerationCallType$.inboundSchema = OutputItemImageGenerationCallType$inboundSchema;
|
|
22
|
-
/** @deprecated use `OutputItemImageGenerationCallType$outboundSchema` instead. */
|
|
23
|
-
OutputItemImageGenerationCallType$.outboundSchema = OutputItemImageGenerationCallType$outboundSchema;
|
|
24
|
-
})(OutputItemImageGenerationCallType$ || (OutputItemImageGenerationCallType$ = {}));
|
|
25
|
-
/** @internal */
|
|
26
13
|
export const OutputItemImageGenerationCall$inboundSchema = z.object({
|
|
27
14
|
type: OutputItemImageGenerationCallType$inboundSchema,
|
|
28
15
|
id: z.string(),
|
|
29
16
|
result: z.nullable(z.string()),
|
|
30
17
|
status: ImageGenerationStatus$inboundSchema,
|
|
31
18
|
});
|
|
32
|
-
/** @internal */
|
|
33
|
-
export const OutputItemImageGenerationCall$outboundSchema = z.object({
|
|
34
|
-
type: OutputItemImageGenerationCallType$outboundSchema,
|
|
35
|
-
id: z.string(),
|
|
36
|
-
result: z.nullable(z.string()),
|
|
37
|
-
status: ImageGenerationStatus$outboundSchema,
|
|
38
|
-
});
|
|
39
|
-
/**
|
|
40
|
-
* @internal
|
|
41
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
42
|
-
*/
|
|
43
|
-
export var OutputItemImageGenerationCall$;
|
|
44
|
-
(function (OutputItemImageGenerationCall$) {
|
|
45
|
-
/** @deprecated use `OutputItemImageGenerationCall$inboundSchema` instead. */
|
|
46
|
-
OutputItemImageGenerationCall$.inboundSchema = OutputItemImageGenerationCall$inboundSchema;
|
|
47
|
-
/** @deprecated use `OutputItemImageGenerationCall$outboundSchema` instead. */
|
|
48
|
-
OutputItemImageGenerationCall$.outboundSchema = OutputItemImageGenerationCall$outboundSchema;
|
|
49
|
-
})(OutputItemImageGenerationCall$ || (OutputItemImageGenerationCall$ = {}));
|
|
50
|
-
export function outputItemImageGenerationCallToJSON(outputItemImageGenerationCall) {
|
|
51
|
-
return JSON.stringify(OutputItemImageGenerationCall$outboundSchema.parse(outputItemImageGenerationCall));
|
|
52
|
-
}
|
|
53
19
|
export function outputItemImageGenerationCallFromJSON(jsonString) {
|
|
54
20
|
return safeParse(jsonString, (x) => OutputItemImageGenerationCall$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputItemImageGenerationCall' from JSON`);
|
|
55
21
|
}
|
|
@@ -2,8 +2,8 @@ import * as z from "zod/v4";
|
|
|
2
2
|
import { ClosedEnum } from "../types/enums.js";
|
|
3
3
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
4
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
|
-
import { OpenAIResponsesRefusalContent
|
|
6
|
-
import { ResponseOutputText
|
|
5
|
+
import { OpenAIResponsesRefusalContent } from "./openairesponsesrefusalcontent.js";
|
|
6
|
+
import { ResponseOutputText } from "./responseoutputtext.js";
|
|
7
7
|
export declare const OutputMessageRole: {
|
|
8
8
|
readonly Assistant: "assistant";
|
|
9
9
|
};
|
|
@@ -36,157 +36,20 @@ export type OutputMessage = {
|
|
|
36
36
|
/** @internal */
|
|
37
37
|
export declare const OutputMessageRole$inboundSchema: z.ZodEnum<typeof OutputMessageRole>;
|
|
38
38
|
/** @internal */
|
|
39
|
-
export declare const OutputMessageRole$outboundSchema: z.ZodEnum<typeof OutputMessageRole>;
|
|
40
|
-
/**
|
|
41
|
-
* @internal
|
|
42
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
43
|
-
*/
|
|
44
|
-
export declare namespace OutputMessageRole$ {
|
|
45
|
-
/** @deprecated use `OutputMessageRole$inboundSchema` instead. */
|
|
46
|
-
const inboundSchema: z.ZodEnum<{
|
|
47
|
-
readonly Assistant: "assistant";
|
|
48
|
-
}>;
|
|
49
|
-
/** @deprecated use `OutputMessageRole$outboundSchema` instead. */
|
|
50
|
-
const outboundSchema: z.ZodEnum<{
|
|
51
|
-
readonly Assistant: "assistant";
|
|
52
|
-
}>;
|
|
53
|
-
}
|
|
54
|
-
/** @internal */
|
|
55
39
|
export declare const OutputMessageType$inboundSchema: z.ZodEnum<typeof OutputMessageType>;
|
|
56
40
|
/** @internal */
|
|
57
|
-
export declare const OutputMessageType$outboundSchema: z.ZodEnum<typeof OutputMessageType>;
|
|
58
|
-
/**
|
|
59
|
-
* @internal
|
|
60
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
61
|
-
*/
|
|
62
|
-
export declare namespace OutputMessageType$ {
|
|
63
|
-
/** @deprecated use `OutputMessageType$inboundSchema` instead. */
|
|
64
|
-
const inboundSchema: z.ZodEnum<{
|
|
65
|
-
readonly Message: "message";
|
|
66
|
-
}>;
|
|
67
|
-
/** @deprecated use `OutputMessageType$outboundSchema` instead. */
|
|
68
|
-
const outboundSchema: z.ZodEnum<{
|
|
69
|
-
readonly Message: "message";
|
|
70
|
-
}>;
|
|
71
|
-
}
|
|
72
|
-
/** @internal */
|
|
73
41
|
export declare const OutputMessageStatusInProgress$inboundSchema: z.ZodEnum<typeof OutputMessageStatusInProgress>;
|
|
74
42
|
/** @internal */
|
|
75
|
-
export declare const OutputMessageStatusInProgress$outboundSchema: z.ZodEnum<typeof OutputMessageStatusInProgress>;
|
|
76
|
-
/**
|
|
77
|
-
* @internal
|
|
78
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
79
|
-
*/
|
|
80
|
-
export declare namespace OutputMessageStatusInProgress$ {
|
|
81
|
-
/** @deprecated use `OutputMessageStatusInProgress$inboundSchema` instead. */
|
|
82
|
-
const inboundSchema: z.ZodEnum<{
|
|
83
|
-
readonly InProgress: "in_progress";
|
|
84
|
-
}>;
|
|
85
|
-
/** @deprecated use `OutputMessageStatusInProgress$outboundSchema` instead. */
|
|
86
|
-
const outboundSchema: z.ZodEnum<{
|
|
87
|
-
readonly InProgress: "in_progress";
|
|
88
|
-
}>;
|
|
89
|
-
}
|
|
90
|
-
/** @internal */
|
|
91
43
|
export declare const OutputMessageStatusIncomplete$inboundSchema: z.ZodEnum<typeof OutputMessageStatusIncomplete>;
|
|
92
44
|
/** @internal */
|
|
93
|
-
export declare const OutputMessageStatusIncomplete$outboundSchema: z.ZodEnum<typeof OutputMessageStatusIncomplete>;
|
|
94
|
-
/**
|
|
95
|
-
* @internal
|
|
96
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
97
|
-
*/
|
|
98
|
-
export declare namespace OutputMessageStatusIncomplete$ {
|
|
99
|
-
/** @deprecated use `OutputMessageStatusIncomplete$inboundSchema` instead. */
|
|
100
|
-
const inboundSchema: z.ZodEnum<{
|
|
101
|
-
readonly Incomplete: "incomplete";
|
|
102
|
-
}>;
|
|
103
|
-
/** @deprecated use `OutputMessageStatusIncomplete$outboundSchema` instead. */
|
|
104
|
-
const outboundSchema: z.ZodEnum<{
|
|
105
|
-
readonly Incomplete: "incomplete";
|
|
106
|
-
}>;
|
|
107
|
-
}
|
|
108
|
-
/** @internal */
|
|
109
45
|
export declare const OutputMessageStatusCompleted$inboundSchema: z.ZodEnum<typeof OutputMessageStatusCompleted>;
|
|
110
46
|
/** @internal */
|
|
111
|
-
export declare const OutputMessageStatusCompleted$outboundSchema: z.ZodEnum<typeof OutputMessageStatusCompleted>;
|
|
112
|
-
/**
|
|
113
|
-
* @internal
|
|
114
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
115
|
-
*/
|
|
116
|
-
export declare namespace OutputMessageStatusCompleted$ {
|
|
117
|
-
/** @deprecated use `OutputMessageStatusCompleted$inboundSchema` instead. */
|
|
118
|
-
const inboundSchema: z.ZodEnum<{
|
|
119
|
-
readonly Completed: "completed";
|
|
120
|
-
}>;
|
|
121
|
-
/** @deprecated use `OutputMessageStatusCompleted$outboundSchema` instead. */
|
|
122
|
-
const outboundSchema: z.ZodEnum<{
|
|
123
|
-
readonly Completed: "completed";
|
|
124
|
-
}>;
|
|
125
|
-
}
|
|
126
|
-
/** @internal */
|
|
127
47
|
export declare const OutputMessageStatusUnion$inboundSchema: z.ZodType<OutputMessageStatusUnion, unknown>;
|
|
128
|
-
/** @internal */
|
|
129
|
-
export type OutputMessageStatusUnion$Outbound = string | string | string;
|
|
130
|
-
/** @internal */
|
|
131
|
-
export declare const OutputMessageStatusUnion$outboundSchema: z.ZodType<OutputMessageStatusUnion$Outbound, OutputMessageStatusUnion>;
|
|
132
|
-
/**
|
|
133
|
-
* @internal
|
|
134
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
135
|
-
*/
|
|
136
|
-
export declare namespace OutputMessageStatusUnion$ {
|
|
137
|
-
/** @deprecated use `OutputMessageStatusUnion$inboundSchema` instead. */
|
|
138
|
-
const inboundSchema: z.ZodType<OutputMessageStatusUnion, unknown, z.core.$ZodTypeInternals<OutputMessageStatusUnion, unknown>>;
|
|
139
|
-
/** @deprecated use `OutputMessageStatusUnion$outboundSchema` instead. */
|
|
140
|
-
const outboundSchema: z.ZodType<string, OutputMessageStatusUnion, z.core.$ZodTypeInternals<string, OutputMessageStatusUnion>>;
|
|
141
|
-
/** @deprecated use `OutputMessageStatusUnion$Outbound` instead. */
|
|
142
|
-
type Outbound = OutputMessageStatusUnion$Outbound;
|
|
143
|
-
}
|
|
144
|
-
export declare function outputMessageStatusUnionToJSON(outputMessageStatusUnion: OutputMessageStatusUnion): string;
|
|
145
48
|
export declare function outputMessageStatusUnionFromJSON(jsonString: string): SafeParseResult<OutputMessageStatusUnion, SDKValidationError>;
|
|
146
49
|
/** @internal */
|
|
147
50
|
export declare const OutputMessageContent$inboundSchema: z.ZodType<OutputMessageContent, unknown>;
|
|
148
|
-
/** @internal */
|
|
149
|
-
export type OutputMessageContent$Outbound = ResponseOutputText$Outbound | OpenAIResponsesRefusalContent$Outbound;
|
|
150
|
-
/** @internal */
|
|
151
|
-
export declare const OutputMessageContent$outboundSchema: z.ZodType<OutputMessageContent$Outbound, OutputMessageContent>;
|
|
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 OutputMessageContent$ {
|
|
157
|
-
/** @deprecated use `OutputMessageContent$inboundSchema` instead. */
|
|
158
|
-
const inboundSchema: z.ZodType<OutputMessageContent, unknown, z.core.$ZodTypeInternals<OutputMessageContent, unknown>>;
|
|
159
|
-
/** @deprecated use `OutputMessageContent$outboundSchema` instead. */
|
|
160
|
-
const outboundSchema: z.ZodType<OutputMessageContent$Outbound, OutputMessageContent, z.core.$ZodTypeInternals<OutputMessageContent$Outbound, OutputMessageContent>>;
|
|
161
|
-
/** @deprecated use `OutputMessageContent$Outbound` instead. */
|
|
162
|
-
type Outbound = OutputMessageContent$Outbound;
|
|
163
|
-
}
|
|
164
|
-
export declare function outputMessageContentToJSON(outputMessageContent: OutputMessageContent): string;
|
|
165
51
|
export declare function outputMessageContentFromJSON(jsonString: string): SafeParseResult<OutputMessageContent, SDKValidationError>;
|
|
166
52
|
/** @internal */
|
|
167
53
|
export declare const OutputMessage$inboundSchema: z.ZodType<OutputMessage, unknown>;
|
|
168
|
-
/** @internal */
|
|
169
|
-
export type OutputMessage$Outbound = {
|
|
170
|
-
id: string;
|
|
171
|
-
role: string;
|
|
172
|
-
type: string;
|
|
173
|
-
status?: string | string | string | undefined;
|
|
174
|
-
content: Array<ResponseOutputText$Outbound | OpenAIResponsesRefusalContent$Outbound>;
|
|
175
|
-
};
|
|
176
|
-
/** @internal */
|
|
177
|
-
export declare const OutputMessage$outboundSchema: z.ZodType<OutputMessage$Outbound, OutputMessage>;
|
|
178
|
-
/**
|
|
179
|
-
* @internal
|
|
180
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
181
|
-
*/
|
|
182
|
-
export declare namespace OutputMessage$ {
|
|
183
|
-
/** @deprecated use `OutputMessage$inboundSchema` instead. */
|
|
184
|
-
const inboundSchema: z.ZodType<OutputMessage, unknown, z.core.$ZodTypeInternals<OutputMessage, unknown>>;
|
|
185
|
-
/** @deprecated use `OutputMessage$outboundSchema` instead. */
|
|
186
|
-
const outboundSchema: z.ZodType<OutputMessage$Outbound, OutputMessage, z.core.$ZodTypeInternals<OutputMessage$Outbound, OutputMessage>>;
|
|
187
|
-
/** @deprecated use `OutputMessage$Outbound` instead. */
|
|
188
|
-
type Outbound = OutputMessage$Outbound;
|
|
189
|
-
}
|
|
190
|
-
export declare function outputMessageToJSON(outputMessage: OutputMessage): string;
|
|
191
54
|
export declare function outputMessageFromJSON(jsonString: string): SafeParseResult<OutputMessage, SDKValidationError>;
|
|
192
55
|
//# sourceMappingURL=outputmessage.d.ts.map
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as z from "zod/v4";
|
|
5
5
|
import { safeParse } from "../lib/schemas.js";
|
|
6
|
-
import { OpenAIResponsesRefusalContent$inboundSchema,
|
|
7
|
-
import { ResponseOutputText$inboundSchema,
|
|
6
|
+
import { OpenAIResponsesRefusalContent$inboundSchema, } from "./openairesponsesrefusalcontent.js";
|
|
7
|
+
import { ResponseOutputText$inboundSchema, } from "./responseoutputtext.js";
|
|
8
8
|
export const OutputMessageRole = {
|
|
9
9
|
Assistant: "assistant",
|
|
10
10
|
};
|
|
@@ -23,104 +23,19 @@ export const OutputMessageStatusCompleted = {
|
|
|
23
23
|
/** @internal */
|
|
24
24
|
export const OutputMessageRole$inboundSchema = z.enum(OutputMessageRole);
|
|
25
25
|
/** @internal */
|
|
26
|
-
export const OutputMessageRole$outboundSchema = OutputMessageRole$inboundSchema;
|
|
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 OutputMessageRole$;
|
|
32
|
-
(function (OutputMessageRole$) {
|
|
33
|
-
/** @deprecated use `OutputMessageRole$inboundSchema` instead. */
|
|
34
|
-
OutputMessageRole$.inboundSchema = OutputMessageRole$inboundSchema;
|
|
35
|
-
/** @deprecated use `OutputMessageRole$outboundSchema` instead. */
|
|
36
|
-
OutputMessageRole$.outboundSchema = OutputMessageRole$outboundSchema;
|
|
37
|
-
})(OutputMessageRole$ || (OutputMessageRole$ = {}));
|
|
38
|
-
/** @internal */
|
|
39
26
|
export const OutputMessageType$inboundSchema = z.enum(OutputMessageType);
|
|
40
27
|
/** @internal */
|
|
41
|
-
export const OutputMessageType$outboundSchema = OutputMessageType$inboundSchema;
|
|
42
|
-
/**
|
|
43
|
-
* @internal
|
|
44
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
45
|
-
*/
|
|
46
|
-
export var OutputMessageType$;
|
|
47
|
-
(function (OutputMessageType$) {
|
|
48
|
-
/** @deprecated use `OutputMessageType$inboundSchema` instead. */
|
|
49
|
-
OutputMessageType$.inboundSchema = OutputMessageType$inboundSchema;
|
|
50
|
-
/** @deprecated use `OutputMessageType$outboundSchema` instead. */
|
|
51
|
-
OutputMessageType$.outboundSchema = OutputMessageType$outboundSchema;
|
|
52
|
-
})(OutputMessageType$ || (OutputMessageType$ = {}));
|
|
53
|
-
/** @internal */
|
|
54
28
|
export const OutputMessageStatusInProgress$inboundSchema = z.enum(OutputMessageStatusInProgress);
|
|
55
29
|
/** @internal */
|
|
56
|
-
export const OutputMessageStatusInProgress$outboundSchema = OutputMessageStatusInProgress$inboundSchema;
|
|
57
|
-
/**
|
|
58
|
-
* @internal
|
|
59
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
60
|
-
*/
|
|
61
|
-
export var OutputMessageStatusInProgress$;
|
|
62
|
-
(function (OutputMessageStatusInProgress$) {
|
|
63
|
-
/** @deprecated use `OutputMessageStatusInProgress$inboundSchema` instead. */
|
|
64
|
-
OutputMessageStatusInProgress$.inboundSchema = OutputMessageStatusInProgress$inboundSchema;
|
|
65
|
-
/** @deprecated use `OutputMessageStatusInProgress$outboundSchema` instead. */
|
|
66
|
-
OutputMessageStatusInProgress$.outboundSchema = OutputMessageStatusInProgress$outboundSchema;
|
|
67
|
-
})(OutputMessageStatusInProgress$ || (OutputMessageStatusInProgress$ = {}));
|
|
68
|
-
/** @internal */
|
|
69
30
|
export const OutputMessageStatusIncomplete$inboundSchema = z.enum(OutputMessageStatusIncomplete);
|
|
70
31
|
/** @internal */
|
|
71
|
-
export const OutputMessageStatusIncomplete$outboundSchema = OutputMessageStatusIncomplete$inboundSchema;
|
|
72
|
-
/**
|
|
73
|
-
* @internal
|
|
74
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
75
|
-
*/
|
|
76
|
-
export var OutputMessageStatusIncomplete$;
|
|
77
|
-
(function (OutputMessageStatusIncomplete$) {
|
|
78
|
-
/** @deprecated use `OutputMessageStatusIncomplete$inboundSchema` instead. */
|
|
79
|
-
OutputMessageStatusIncomplete$.inboundSchema = OutputMessageStatusIncomplete$inboundSchema;
|
|
80
|
-
/** @deprecated use `OutputMessageStatusIncomplete$outboundSchema` instead. */
|
|
81
|
-
OutputMessageStatusIncomplete$.outboundSchema = OutputMessageStatusIncomplete$outboundSchema;
|
|
82
|
-
})(OutputMessageStatusIncomplete$ || (OutputMessageStatusIncomplete$ = {}));
|
|
83
|
-
/** @internal */
|
|
84
32
|
export const OutputMessageStatusCompleted$inboundSchema = z.enum(OutputMessageStatusCompleted);
|
|
85
33
|
/** @internal */
|
|
86
|
-
export const OutputMessageStatusCompleted$outboundSchema = OutputMessageStatusCompleted$inboundSchema;
|
|
87
|
-
/**
|
|
88
|
-
* @internal
|
|
89
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
90
|
-
*/
|
|
91
|
-
export var OutputMessageStatusCompleted$;
|
|
92
|
-
(function (OutputMessageStatusCompleted$) {
|
|
93
|
-
/** @deprecated use `OutputMessageStatusCompleted$inboundSchema` instead. */
|
|
94
|
-
OutputMessageStatusCompleted$.inboundSchema = OutputMessageStatusCompleted$inboundSchema;
|
|
95
|
-
/** @deprecated use `OutputMessageStatusCompleted$outboundSchema` instead. */
|
|
96
|
-
OutputMessageStatusCompleted$.outboundSchema = OutputMessageStatusCompleted$outboundSchema;
|
|
97
|
-
})(OutputMessageStatusCompleted$ || (OutputMessageStatusCompleted$ = {}));
|
|
98
|
-
/** @internal */
|
|
99
34
|
export const OutputMessageStatusUnion$inboundSchema = z.union([
|
|
100
35
|
OutputMessageStatusCompleted$inboundSchema,
|
|
101
36
|
OutputMessageStatusIncomplete$inboundSchema,
|
|
102
37
|
OutputMessageStatusInProgress$inboundSchema,
|
|
103
38
|
]);
|
|
104
|
-
/** @internal */
|
|
105
|
-
export const OutputMessageStatusUnion$outboundSchema = z.union([
|
|
106
|
-
OutputMessageStatusCompleted$outboundSchema,
|
|
107
|
-
OutputMessageStatusIncomplete$outboundSchema,
|
|
108
|
-
OutputMessageStatusInProgress$outboundSchema,
|
|
109
|
-
]);
|
|
110
|
-
/**
|
|
111
|
-
* @internal
|
|
112
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
113
|
-
*/
|
|
114
|
-
export var OutputMessageStatusUnion$;
|
|
115
|
-
(function (OutputMessageStatusUnion$) {
|
|
116
|
-
/** @deprecated use `OutputMessageStatusUnion$inboundSchema` instead. */
|
|
117
|
-
OutputMessageStatusUnion$.inboundSchema = OutputMessageStatusUnion$inboundSchema;
|
|
118
|
-
/** @deprecated use `OutputMessageStatusUnion$outboundSchema` instead. */
|
|
119
|
-
OutputMessageStatusUnion$.outboundSchema = OutputMessageStatusUnion$outboundSchema;
|
|
120
|
-
})(OutputMessageStatusUnion$ || (OutputMessageStatusUnion$ = {}));
|
|
121
|
-
export function outputMessageStatusUnionToJSON(outputMessageStatusUnion) {
|
|
122
|
-
return JSON.stringify(OutputMessageStatusUnion$outboundSchema.parse(outputMessageStatusUnion));
|
|
123
|
-
}
|
|
124
39
|
export function outputMessageStatusUnionFromJSON(jsonString) {
|
|
125
40
|
return safeParse(jsonString, (x) => OutputMessageStatusUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputMessageStatusUnion' from JSON`);
|
|
126
41
|
}
|
|
@@ -129,25 +44,6 @@ export const OutputMessageContent$inboundSchema = z.union([
|
|
|
129
44
|
ResponseOutputText$inboundSchema,
|
|
130
45
|
OpenAIResponsesRefusalContent$inboundSchema,
|
|
131
46
|
]);
|
|
132
|
-
/** @internal */
|
|
133
|
-
export const OutputMessageContent$outboundSchema = z.union([
|
|
134
|
-
ResponseOutputText$outboundSchema,
|
|
135
|
-
OpenAIResponsesRefusalContent$outboundSchema,
|
|
136
|
-
]);
|
|
137
|
-
/**
|
|
138
|
-
* @internal
|
|
139
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
140
|
-
*/
|
|
141
|
-
export var OutputMessageContent$;
|
|
142
|
-
(function (OutputMessageContent$) {
|
|
143
|
-
/** @deprecated use `OutputMessageContent$inboundSchema` instead. */
|
|
144
|
-
OutputMessageContent$.inboundSchema = OutputMessageContent$inboundSchema;
|
|
145
|
-
/** @deprecated use `OutputMessageContent$outboundSchema` instead. */
|
|
146
|
-
OutputMessageContent$.outboundSchema = OutputMessageContent$outboundSchema;
|
|
147
|
-
})(OutputMessageContent$ || (OutputMessageContent$ = {}));
|
|
148
|
-
export function outputMessageContentToJSON(outputMessageContent) {
|
|
149
|
-
return JSON.stringify(OutputMessageContent$outboundSchema.parse(outputMessageContent));
|
|
150
|
-
}
|
|
151
47
|
export function outputMessageContentFromJSON(jsonString) {
|
|
152
48
|
return safeParse(jsonString, (x) => OutputMessageContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputMessageContent' from JSON`);
|
|
153
49
|
}
|
|
@@ -167,35 +63,6 @@ export const OutputMessage$inboundSchema = z
|
|
|
167
63
|
OpenAIResponsesRefusalContent$inboundSchema,
|
|
168
64
|
])),
|
|
169
65
|
});
|
|
170
|
-
/** @internal */
|
|
171
|
-
export const OutputMessage$outboundSchema = z.object({
|
|
172
|
-
id: z.string(),
|
|
173
|
-
role: OutputMessageRole$outboundSchema,
|
|
174
|
-
type: OutputMessageType$outboundSchema,
|
|
175
|
-
status: z.union([
|
|
176
|
-
OutputMessageStatusCompleted$outboundSchema,
|
|
177
|
-
OutputMessageStatusIncomplete$outboundSchema,
|
|
178
|
-
OutputMessageStatusInProgress$outboundSchema,
|
|
179
|
-
]).optional(),
|
|
180
|
-
content: z.array(z.union([
|
|
181
|
-
ResponseOutputText$outboundSchema,
|
|
182
|
-
OpenAIResponsesRefusalContent$outboundSchema,
|
|
183
|
-
])),
|
|
184
|
-
});
|
|
185
|
-
/**
|
|
186
|
-
* @internal
|
|
187
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
188
|
-
*/
|
|
189
|
-
export var OutputMessage$;
|
|
190
|
-
(function (OutputMessage$) {
|
|
191
|
-
/** @deprecated use `OutputMessage$inboundSchema` instead. */
|
|
192
|
-
OutputMessage$.inboundSchema = OutputMessage$inboundSchema;
|
|
193
|
-
/** @deprecated use `OutputMessage$outboundSchema` instead. */
|
|
194
|
-
OutputMessage$.outboundSchema = OutputMessage$outboundSchema;
|
|
195
|
-
})(OutputMessage$ || (OutputMessage$ = {}));
|
|
196
|
-
export function outputMessageToJSON(outputMessage) {
|
|
197
|
-
return JSON.stringify(OutputMessage$outboundSchema.parse(outputMessage));
|
|
198
|
-
}
|
|
199
66
|
export function outputMessageFromJSON(jsonString) {
|
|
200
67
|
return safeParse(jsonString, (x) => OutputMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputMessage' from JSON`);
|
|
201
68
|
}
|
|
@@ -8,16 +8,4 @@ export declare const OutputModality: {
|
|
|
8
8
|
export type OutputModality = OpenEnum<typeof OutputModality>;
|
|
9
9
|
/** @internal */
|
|
10
10
|
export declare const OutputModality$inboundSchema: z.ZodType<OutputModality, unknown>;
|
|
11
|
-
/** @internal */
|
|
12
|
-
export declare const OutputModality$outboundSchema: z.ZodType<OutputModality, OutputModality>;
|
|
13
|
-
/**
|
|
14
|
-
* @internal
|
|
15
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
16
|
-
*/
|
|
17
|
-
export declare namespace OutputModality$ {
|
|
18
|
-
/** @deprecated use `OutputModality$inboundSchema` instead. */
|
|
19
|
-
const inboundSchema: z.ZodType<OutputModality, unknown, z.core.$ZodTypeInternals<OutputModality, unknown>>;
|
|
20
|
-
/** @deprecated use `OutputModality$outboundSchema` instead. */
|
|
21
|
-
const outboundSchema: z.ZodType<OutputModality, OutputModality, z.core.$ZodTypeInternals<OutputModality, OutputModality>>;
|
|
22
|
-
}
|
|
23
11
|
//# sourceMappingURL=outputmodality.d.ts.map
|