@openrouter/sdk 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/funcs/modelsListEmbeddings.d.ts +18 -0
- package/esm/funcs/modelsListEmbeddings.js +72 -0
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/models/activityitem.d.ts +0 -29
- package/esm/models/activityitem.js +0 -38
- package/esm/models/assistantmessage.d.ts +0 -24
- package/esm/models/assistantmessage.js +0 -22
- package/esm/models/badgatewayresponseerrordata.d.ts +0 -23
- package/esm/models/badgatewayresponseerrordata.js +0 -20
- package/esm/models/badrequestresponseerrordata.d.ts +0 -23
- package/esm/models/badrequestresponseerrordata.js +0 -20
- package/esm/models/chatcompletionfinishreason.d.ts +0 -12
- package/esm/models/chatcompletionfinishreason.js +1 -17
- package/esm/models/chaterror.d.ts +0 -39
- package/esm/models/chaterror.js +0 -40
- package/esm/models/chatgenerationparams.d.ts +3 -122
- package/esm/models/chatgenerationparams.js +7 -195
- package/esm/models/chatgenerationtokenusage.d.ts +5 -70
- package/esm/models/chatgenerationtokenusage.js +5 -89
- package/esm/models/chatmessagecontentitem.d.ts +5 -12
- package/esm/models/chatmessagecontentitem.js +7 -11
- package/esm/models/chatmessagecontentitemaudio.d.ts +0 -34
- package/esm/models/chatmessagecontentitemaudio.js +0 -33
- package/esm/models/chatmessagecontentitemimage.d.ts +0 -34
- package/esm/models/chatmessagecontentitemimage.js +0 -33
- package/esm/models/chatmessagecontentitemtext.d.ts +0 -12
- package/esm/models/chatmessagecontentitemtext.js +0 -11
- package/esm/models/chatmessagecontentitemvideo.d.ts +32 -0
- package/esm/models/chatmessagecontentitemvideo.js +46 -0
- package/esm/models/chatmessagetokenlogprob.d.ts +0 -43
- package/esm/models/chatmessagetokenlogprob.js +0 -45
- package/esm/models/chatmessagetokenlogprobs.d.ts +1 -21
- package/esm/models/chatmessagetokenlogprobs.js +1 -20
- package/esm/models/chatmessagetoolcall.d.ts +0 -24
- package/esm/models/chatmessagetoolcall.js +0 -22
- package/esm/models/chatresponse.d.ts +2 -27
- package/esm/models/chatresponse.js +2 -30
- package/esm/models/chatresponsechoice.d.ts +2 -24
- package/esm/models/chatresponsechoice.js +3 -28
- package/esm/models/chatstreamingchoice.d.ts +2 -24
- package/esm/models/chatstreamingchoice.js +3 -28
- package/esm/models/chatstreamingmessagechunk.d.ts +1 -40
- package/esm/models/chatstreamingmessagechunk.js +1 -40
- package/esm/models/chatstreamingmessagetoolcall.d.ts +0 -42
- package/esm/models/chatstreamingmessagetoolcall.js +0 -41
- package/esm/models/chatstreamingresponsechunk.d.ts +2 -67
- package/esm/models/chatstreamingresponsechunk.js +2 -69
- package/esm/models/chatstreamoptions.d.ts +0 -17
- package/esm/models/chatstreamoptions.js +0 -23
- package/esm/models/completionchoice.d.ts +1 -35
- package/esm/models/completionchoice.js +2 -43
- package/esm/models/completioncreateparams.d.ts +0 -122
- package/esm/models/completioncreateparams.js +2 -200
- package/esm/models/completionlogprobs.d.ts +0 -24
- package/esm/models/completionlogprobs.js +0 -27
- package/esm/models/completionresponse.d.ts +2 -27
- package/esm/models/completionresponse.js +2 -30
- package/esm/models/completionusage.d.ts +0 -21
- package/esm/models/completionusage.js +0 -26
- package/esm/models/createchargerequest.d.ts +0 -29
- package/esm/models/createchargerequest.js +0 -43
- package/esm/models/defaultparameters.d.ts +0 -21
- package/esm/models/defaultparameters.js +0 -25
- package/esm/models/edgenetworktimeoutresponseerrordata.d.ts +0 -23
- package/esm/models/edgenetworktimeoutresponseerrordata.js +0 -20
- package/esm/models/endpointstatus.d.ts +0 -12
- package/esm/models/endpointstatus.js +1 -17
- package/esm/models/errors/badgatewayresponseerror.d.ts +0 -19
- package/esm/models/errors/badgatewayresponseerror.js +0 -22
- package/esm/models/errors/badrequestresponseerror.d.ts +0 -19
- package/esm/models/errors/badrequestresponseerror.js +0 -22
- package/esm/models/errors/chaterror.d.ts +0 -18
- package/esm/models/errors/chaterror.js +0 -17
- package/esm/models/errors/edgenetworktimeoutresponseerror.d.ts +0 -19
- package/esm/models/errors/edgenetworktimeoutresponseerror.js +0 -22
- package/esm/models/errors/forbiddenresponseerror.d.ts +0 -19
- package/esm/models/errors/forbiddenresponseerror.js +0 -22
- package/esm/models/errors/internalserverresponseerror.d.ts +0 -19
- package/esm/models/errors/internalserverresponseerror.js +0 -22
- package/esm/models/errors/notfoundresponseerror.d.ts +0 -19
- package/esm/models/errors/notfoundresponseerror.js +0 -22
- package/esm/models/errors/payloadtoolargeresponseerror.d.ts +0 -19
- package/esm/models/errors/payloadtoolargeresponseerror.js +0 -22
- package/esm/models/errors/paymentrequiredresponseerror.d.ts +0 -19
- package/esm/models/errors/paymentrequiredresponseerror.js +0 -22
- package/esm/models/errors/provideroverloadedresponseerror.d.ts +0 -19
- package/esm/models/errors/provideroverloadedresponseerror.js +0 -22
- package/esm/models/errors/requesttimeoutresponseerror.d.ts +0 -19
- package/esm/models/errors/requesttimeoutresponseerror.js +0 -22
- package/esm/models/errors/serviceunavailableresponseerror.d.ts +0 -19
- package/esm/models/errors/serviceunavailableresponseerror.js +0 -22
- package/esm/models/errors/toomanyrequestsresponseerror.d.ts +0 -19
- package/esm/models/errors/toomanyrequestsresponseerror.js +0 -22
- package/esm/models/errors/unauthorizedresponseerror.d.ts +0 -19
- package/esm/models/errors/unauthorizedresponseerror.js +0 -22
- package/esm/models/errors/unprocessableentityresponseerror.d.ts +0 -19
- package/esm/models/errors/unprocessableentityresponseerror.js +0 -22
- package/esm/models/filecitation.d.ts +0 -26
- package/esm/models/filecitation.js +0 -22
- package/esm/models/filepath.d.ts +0 -26
- package/esm/models/filepath.js +0 -22
- package/esm/models/forbiddenresponseerrordata.d.ts +0 -23
- package/esm/models/forbiddenresponseerrordata.js +0 -20
- package/esm/models/imagegenerationstatus.d.ts +0 -10
- package/esm/models/imagegenerationstatus.js +0 -11
- package/esm/models/index.d.ts +2 -1
- package/esm/models/index.js +2 -1
- package/esm/models/inputmodality.d.ts +0 -12
- package/esm/models/inputmodality.js +1 -17
- package/esm/models/instructtype.d.ts +0 -12
- package/esm/models/instructtype.js +1 -17
- package/esm/models/internalserverresponseerrordata.d.ts +0 -23
- package/esm/models/internalserverresponseerrordata.js +0 -20
- package/esm/models/jsonschemaconfig.d.ts +0 -17
- package/esm/models/jsonschemaconfig.js +0 -22
- package/esm/models/listendpointsresponse.d.ts +1 -60
- package/esm/models/listendpointsresponse.js +5 -73
- package/esm/models/message.d.ts +0 -47
- package/esm/models/message.js +5 -67
- package/esm/models/model.d.ts +5 -36
- package/esm/models/model.js +6 -46
- package/esm/models/modelarchitecture.d.ts +0 -35
- package/esm/models/modelarchitecture.js +4 -49
- package/esm/models/modelgroup.d.ts +0 -12
- package/esm/models/modelgroup.js +1 -18
- package/esm/models/modelscountresponse.d.ts +0 -38
- package/esm/models/modelscountresponse.js +0 -36
- package/esm/models/modelslistresponse.d.ts +1 -20
- package/esm/models/modelslistresponse.js +1 -19
- package/esm/models/namedtoolchoice.d.ts +0 -32
- package/esm/models/namedtoolchoice.js +0 -38
- package/esm/models/notfoundresponseerrordata.d.ts +0 -23
- package/esm/models/notfoundresponseerrordata.js +0 -20
- package/esm/models/openairesponsesannotation.d.ts +0 -12
- package/esm/models/openairesponsesannotation.js +0 -11
- package/esm/models/openairesponsesincludable.d.ts +0 -12
- package/esm/models/openairesponsesincludable.js +0 -18
- package/esm/models/openairesponsesincompletedetails.d.ts +0 -31
- package/esm/models/openairesponsesincompletedetails.js +1 -35
- package/esm/models/openairesponsesinputunion.d.ts +6 -431
- package/esm/models/openairesponsesinputunion.js +7 -463
- package/esm/models/openairesponsesprompt.d.ts +0 -24
- package/esm/models/openairesponsesprompt.js +0 -22
- package/esm/models/openairesponsesreasoningconfig.d.ts +0 -20
- package/esm/models/openairesponsesreasoningconfig.js +2 -21
- package/esm/models/openairesponsesreasoningeffort.d.ts +0 -10
- package/esm/models/openairesponsesreasoningeffort.js +0 -11
- package/esm/models/openairesponsesrefusalcontent.d.ts +0 -26
- package/esm/models/openairesponsesrefusalcontent.js +0 -22
- package/esm/models/openairesponsesresponsestatus.d.ts +0 -12
- package/esm/models/openairesponsesresponsestatus.js +1 -17
- package/esm/models/openairesponsesservicetier.d.ts +0 -12
- package/esm/models/openairesponsesservicetier.js +1 -17
- package/esm/models/openairesponsestoolchoiceunion.d.ts +0 -132
- package/esm/models/openairesponsestoolchoiceunion.js +0 -110
- package/esm/models/openairesponsestruncation.d.ts +0 -12
- package/esm/models/openairesponsestruncation.js +1 -17
- package/esm/models/openresponseseasyinputmessage.d.ts +0 -142
- package/esm/models/openresponseseasyinputmessage.js +9 -198
- package/esm/models/openresponseserrorevent.d.ts +0 -39
- package/esm/models/openresponseserrorevent.js +0 -39
- package/esm/models/openresponsesfunctioncalloutput.d.ts +0 -33
- package/esm/models/openresponsesfunctioncalloutput.js +2 -42
- package/esm/models/openresponsesfunctiontoolcall.d.ts +0 -33
- package/esm/models/openresponsesfunctiontoolcall.js +2 -43
- package/esm/models/openresponsesimagegencallcompleted.d.ts +0 -38
- package/esm/models/openresponsesimagegencallcompleted.js +0 -40
- package/esm/models/openresponsesimagegencallgenerating.d.ts +0 -38
- package/esm/models/openresponsesimagegencallgenerating.js +0 -40
- package/esm/models/openresponsesimagegencallinprogress.d.ts +0 -38
- package/esm/models/openresponsesimagegencallinprogress.js +0 -40
- package/esm/models/openresponsesimagegencallpartialimage.d.ts +0 -40
- package/esm/models/openresponsesimagegencallpartialimage.js +0 -44
- package/esm/models/openresponsesinput.d.ts +0 -32
- package/esm/models/openresponsesinput.js +11 -71
- package/esm/models/openresponsesinputmessageitem.d.ts +0 -111
- package/esm/models/openresponsesinputmessageitem.js +8 -148
- package/esm/models/openresponseslogprobs.d.ts +1 -22
- package/esm/models/openresponseslogprobs.js +1 -25
- package/esm/models/openresponsesnonstreamingresponse.d.ts +13 -138
- package/esm/models/openresponsesnonstreamingresponse.js +16 -157
- package/esm/models/openresponsesreasoning.d.ts +0 -108
- package/esm/models/openresponsesreasoning.js +6 -130
- package/esm/models/openresponsesreasoningconfig.d.ts +0 -17
- package/esm/models/openresponsesreasoningconfig.js +2 -28
- package/esm/models/openresponsesreasoningdeltaevent.d.ts +0 -40
- package/esm/models/openresponsesreasoningdeltaevent.js +0 -43
- package/esm/models/openresponsesreasoningdoneevent.d.ts +0 -40
- package/esm/models/openresponsesreasoningdoneevent.js +0 -43
- package/esm/models/openresponsesreasoningsummarypartaddedevent.d.ts +1 -41
- package/esm/models/openresponsesreasoningsummarypartaddedevent.js +1 -44
- package/esm/models/openresponsesreasoningsummarytextdeltaevent.d.ts +0 -40
- package/esm/models/openresponsesreasoningsummarytextdeltaevent.js +0 -43
- package/esm/models/openresponsesreasoningsummarytextdoneevent.d.ts +0 -40
- package/esm/models/openresponsesreasoningsummarytextdoneevent.js +0 -43
- package/esm/models/openresponsesrequest.d.ts +0 -348
- package/esm/models/openresponsesrequest.js +16 -523
- package/esm/models/openresponsesresponsetext.d.ts +0 -29
- package/esm/models/openresponsesresponsetext.js +1 -40
- package/esm/models/openresponsesstreamevent.d.ts +18 -732
- package/esm/models/openresponsesstreamevent.js +18 -808
- package/esm/models/openresponsestoplogprobs.d.ts +0 -20
- package/esm/models/openresponsestoplogprobs.js +0 -19
- package/esm/models/openresponsesusage.d.ts +0 -85
- package/esm/models/openresponsesusage.js +0 -105
- package/esm/models/openresponseswebsearch20250826tool.d.ts +0 -38
- package/esm/models/openresponseswebsearch20250826tool.js +0 -33
- package/esm/models/openresponseswebsearchpreview20250311tool.d.ts +0 -26
- package/esm/models/openresponseswebsearchpreview20250311tool.js +0 -22
- package/esm/models/openresponseswebsearchpreviewtool.d.ts +0 -26
- package/esm/models/openresponseswebsearchpreviewtool.js +0 -22
- package/esm/models/openresponseswebsearchtool.d.ts +0 -38
- package/esm/models/openresponseswebsearchtool.js +0 -33
- package/esm/models/operations/createauthkeyscode.d.ts +0 -67
- package/esm/models/operations/createauthkeyscode.js +0 -89
- package/esm/models/operations/createcoinbasecharge.d.ts +0 -144
- package/esm/models/operations/createcoinbasecharge.js +0 -170
- package/esm/models/operations/createembeddings.d.ts +0 -322
- package/esm/models/operations/createembeddings.js +2 -397
- package/esm/models/operations/createkeys.d.ts +0 -83
- package/esm/models/operations/createkeys.js +0 -113
- package/esm/models/operations/createresponses.d.ts +0 -36
- package/esm/models/operations/createresponses.js +0 -37
- package/esm/models/operations/deletekeys.d.ts +0 -34
- package/esm/models/operations/deletekeys.js +0 -36
- package/esm/models/operations/exchangeauthcodeforapikey.d.ts +0 -47
- package/esm/models/operations/exchangeauthcodeforapikey.js +0 -66
- package/esm/models/operations/getcredits.d.ts +0 -17
- package/esm/models/operations/getcredits.js +0 -16
- package/esm/models/operations/getcurrentkey.d.ts +0 -74
- package/esm/models/operations/getcurrentkey.js +0 -87
- package/esm/models/operations/getgeneration.d.ts +0 -101
- package/esm/models/operations/getgeneration.js +1 -134
- package/esm/models/operations/getkey.d.ts +0 -70
- package/esm/models/operations/getkey.js +0 -87
- package/esm/models/operations/getmodels.d.ts +0 -17
- package/esm/models/operations/getmodels.js +0 -24
- package/esm/models/operations/getparameters.d.ts +0 -93
- package/esm/models/operations/getparameters.js +0 -112
- package/esm/models/operations/getuseractivity.d.ts +0 -34
- package/esm/models/operations/getuseractivity.js +0 -36
- package/esm/models/operations/list.d.ts +0 -70
- package/esm/models/operations/list.js +0 -93
- package/esm/models/operations/listendpoints.d.ts +0 -34
- package/esm/models/operations/listendpoints.js +0 -37
- package/esm/models/operations/listendpointszdr.d.ts +0 -19
- package/esm/models/operations/listendpointszdr.js +0 -18
- package/esm/models/operations/listmodelsuser.d.ts +0 -17
- package/esm/models/operations/listmodelsuser.js +0 -19
- package/esm/models/operations/listproviders.d.ts +0 -42
- package/esm/models/operations/listproviders.js +0 -46
- package/esm/models/operations/sendchatcompletionrequest.d.ts +0 -17
- package/esm/models/operations/sendchatcompletionrequest.js +0 -16
- package/esm/models/operations/updatekeys.d.ts +0 -97
- package/esm/models/operations/updatekeys.js +0 -136
- package/esm/models/outputitemimagegenerationcall.d.ts +0 -38
- package/esm/models/outputitemimagegenerationcall.js +1 -35
- package/esm/models/outputmessage.d.ts +2 -139
- package/esm/models/outputmessage.js +2 -135
- package/esm/models/outputmodality.d.ts +0 -12
- package/esm/models/outputmodality.js +1 -17
- package/esm/models/parameter.d.ts +0 -12
- package/esm/models/parameter.js +1 -18
- package/esm/models/payloadtoolargeresponseerrordata.d.ts +0 -23
- package/esm/models/payloadtoolargeresponseerrordata.js +0 -20
- package/esm/models/paymentrequiredresponseerrordata.d.ts +0 -23
- package/esm/models/paymentrequiredresponseerrordata.js +0 -20
- package/esm/models/perrequestlimits.d.ts +0 -20
- package/esm/models/perrequestlimits.js +0 -24
- package/esm/models/providername.d.ts +0 -10
- package/esm/models/providername.js +0 -11
- package/esm/models/provideroverloadedresponseerrordata.d.ts +0 -23
- package/esm/models/provideroverloadedresponseerrordata.js +0 -20
- package/esm/models/publicendpoint.d.ts +0 -73
- package/esm/models/publicendpoint.js +4 -100
- package/esm/models/publicpricing.d.ts +0 -30
- package/esm/models/publicpricing.js +0 -38
- package/esm/models/quantization.d.ts +0 -12
- package/esm/models/quantization.js +0 -18
- package/esm/models/reasoningsummarytext.d.ts +0 -26
- package/esm/models/reasoningsummarytext.js +0 -22
- package/esm/models/reasoningsummaryverbosity.d.ts +0 -10
- package/esm/models/reasoningsummaryverbosity.js +0 -11
- package/esm/models/reasoningtextcontent.d.ts +0 -26
- package/esm/models/reasoningtextcontent.js +0 -22
- package/esm/models/requesttimeoutresponseerrordata.d.ts +0 -23
- package/esm/models/requesttimeoutresponseerrordata.js +0 -20
- package/esm/models/responseformatjsonschema.d.ts +0 -17
- package/esm/models/responseformatjsonschema.js +1 -25
- package/esm/models/responseformattextconfig.d.ts +0 -12
- package/esm/models/responseformattextconfig.js +0 -11
- package/esm/models/responseformattextgrammar.d.ts +0 -17
- package/esm/models/responseformattextgrammar.js +0 -20
- package/esm/models/responseinputaudio.d.ts +0 -48
- package/esm/models/responseinputaudio.js +0 -44
- package/esm/models/responseinputfile.d.ts +0 -26
- package/esm/models/responseinputfile.js +0 -22
- package/esm/models/responseinputimage.d.ts +0 -36
- package/esm/models/responseinputimage.js +0 -33
- package/esm/models/responseinputtext.d.ts +0 -26
- package/esm/models/responseinputtext.js +0 -22
- package/esm/models/responseoutputtext.d.ts +0 -26
- package/esm/models/responseoutputtext.js +0 -22
- package/esm/models/responseserrorfield.d.ts +0 -32
- package/esm/models/responseserrorfield.js +1 -36
- package/esm/models/responsesformatjsonobject.d.ts +0 -26
- package/esm/models/responsesformatjsonobject.js +0 -22
- package/esm/models/responsesformattext.d.ts +0 -26
- package/esm/models/responsesformattext.js +0 -22
- package/esm/models/responsesformattextjsonschemaconfig.d.ts +0 -26
- package/esm/models/responsesformattextjsonschemaconfig.js +0 -22
- package/esm/models/responsesimagegenerationcall.d.ts +0 -26
- package/esm/models/responsesimagegenerationcall.js +0 -22
- package/esm/models/responsesoutputitem.d.ts +6 -23
- package/esm/models/responsesoutputitem.js +6 -29
- package/esm/models/responsesoutputitemfilesearchcall.d.ts +0 -26
- package/esm/models/responsesoutputitemfilesearchcall.js +0 -22
- package/esm/models/responsesoutputitemfunctioncall.d.ts +0 -80
- package/esm/models/responsesoutputitemfunctioncall.js +0 -66
- package/esm/models/responsesoutputitemreasoning.d.ts +0 -80
- package/esm/models/responsesoutputitemreasoning.js +0 -66
- package/esm/models/responsesoutputmessage.d.ts +0 -106
- package/esm/models/responsesoutputmessage.js +0 -88
- package/esm/models/responsessearchcontextsize.d.ts +0 -10
- package/esm/models/responsessearchcontextsize.js +0 -11
- package/esm/models/responseswebsearchcalloutput.d.ts +0 -26
- package/esm/models/responseswebsearchcalloutput.js +0 -22
- package/esm/models/responseswebsearchuserlocation.d.ts +0 -26
- package/esm/models/responseswebsearchuserlocation.js +0 -22
- package/esm/models/responsetextconfig.d.ts +1 -33
- package/esm/models/responsetextconfig.js +2 -37
- package/esm/models/security.d.ts +0 -17
- package/esm/models/security.js +0 -19
- package/esm/models/serviceunavailableresponseerrordata.d.ts +0 -23
- package/esm/models/serviceunavailableresponseerrordata.js +0 -20
- package/esm/models/systemmessage.d.ts +0 -32
- package/esm/models/systemmessage.js +1 -42
- package/esm/models/toolcallstatus.d.ts +0 -10
- package/esm/models/toolcallstatus.js +0 -11
- package/esm/models/tooldefinitionjson.d.ts +34 -0
- package/esm/models/tooldefinitionjson.js +23 -0
- package/esm/models/toolresponsemessage.d.ts +0 -32
- package/esm/models/toolresponsemessage.js +1 -42
- package/esm/models/toomanyrequestsresponseerrordata.d.ts +0 -23
- package/esm/models/toomanyrequestsresponseerrordata.js +0 -20
- package/esm/models/topproviderinfo.d.ts +0 -21
- package/esm/models/topproviderinfo.js +0 -26
- package/esm/models/unauthorizedresponseerrordata.d.ts +0 -23
- package/esm/models/unauthorizedresponseerrordata.js +0 -20
- package/esm/models/unprocessableentityresponseerrordata.d.ts +0 -23
- package/esm/models/unprocessableentityresponseerrordata.js +0 -20
- package/esm/models/urlcitation.d.ts +0 -26
- package/esm/models/urlcitation.js +0 -22
- package/esm/models/usermessage.d.ts +0 -32
- package/esm/models/usermessage.js +1 -42
- package/esm/models/websearchpreviewtooluserlocation.d.ts +0 -26
- package/esm/models/websearchpreviewtooluserlocation.js +0 -22
- package/esm/models/websearchstatus.d.ts +0 -10
- package/esm/models/websearchstatus.js +0 -11
- package/esm/react-query/index.d.ts +1 -0
- package/esm/react-query/index.js +1 -0
- package/esm/react-query/modelsListEmbeddings.d.ts +29 -0
- package/esm/react-query/modelsListEmbeddings.js +66 -0
- package/esm/sdk/models.d.ts +7 -0
- package/esm/sdk/models.js +10 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/esm/models/tool.d.ts +0 -66
- package/esm/models/tool.js +0 -65
|
@@ -2,12 +2,12 @@ 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 { OutputItemImageGenerationCall
|
|
6
|
-
import { OutputMessage
|
|
7
|
-
import { ResponseInputAudio
|
|
8
|
-
import { ResponseInputFile
|
|
9
|
-
import { ResponseInputImage
|
|
10
|
-
import { ResponseInputText
|
|
5
|
+
import { OutputItemImageGenerationCall } from "./outputitemimagegenerationcall.js";
|
|
6
|
+
import { OutputMessage } from "./outputmessage.js";
|
|
7
|
+
import { ResponseInputAudio } from "./responseinputaudio.js";
|
|
8
|
+
import { ResponseInputFile } from "./responseinputfile.js";
|
|
9
|
+
import { ResponseInputImage } from "./responseinputimage.js";
|
|
10
|
+
import { ResponseInputText } from "./responseinputtext.js";
|
|
11
11
|
import { ToolCallStatus } from "./toolcallstatus.js";
|
|
12
12
|
export declare const OpenAIResponsesInputTypeFunctionCall: {
|
|
13
13
|
readonly FunctionCall: "function_call";
|
|
@@ -129,481 +129,56 @@ export type OpenAIResponsesInputUnion = string | Array<OpenAIResponsesInputFunct
|
|
|
129
129
|
/** @internal */
|
|
130
130
|
export declare const OpenAIResponsesInputTypeFunctionCall$inboundSchema: z.ZodEnum<typeof OpenAIResponsesInputTypeFunctionCall>;
|
|
131
131
|
/** @internal */
|
|
132
|
-
export declare const OpenAIResponsesInputTypeFunctionCall$outboundSchema: z.ZodEnum<typeof OpenAIResponsesInputTypeFunctionCall>;
|
|
133
|
-
/**
|
|
134
|
-
* @internal
|
|
135
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
136
|
-
*/
|
|
137
|
-
export declare namespace OpenAIResponsesInputTypeFunctionCall$ {
|
|
138
|
-
/** @deprecated use `OpenAIResponsesInputTypeFunctionCall$inboundSchema` instead. */
|
|
139
|
-
const inboundSchema: z.ZodEnum<{
|
|
140
|
-
readonly FunctionCall: "function_call";
|
|
141
|
-
}>;
|
|
142
|
-
/** @deprecated use `OpenAIResponsesInputTypeFunctionCall$outboundSchema` instead. */
|
|
143
|
-
const outboundSchema: z.ZodEnum<{
|
|
144
|
-
readonly FunctionCall: "function_call";
|
|
145
|
-
}>;
|
|
146
|
-
}
|
|
147
|
-
/** @internal */
|
|
148
132
|
export declare const OpenAIResponsesInputFunctionCall$inboundSchema: z.ZodType<OpenAIResponsesInputFunctionCall, unknown>;
|
|
149
|
-
/** @internal */
|
|
150
|
-
export type OpenAIResponsesInputFunctionCall$Outbound = {
|
|
151
|
-
type: string;
|
|
152
|
-
call_id: string;
|
|
153
|
-
name: string;
|
|
154
|
-
arguments: string;
|
|
155
|
-
id?: string | undefined;
|
|
156
|
-
status?: string | undefined;
|
|
157
|
-
};
|
|
158
|
-
/** @internal */
|
|
159
|
-
export declare const OpenAIResponsesInputFunctionCall$outboundSchema: z.ZodType<OpenAIResponsesInputFunctionCall$Outbound, OpenAIResponsesInputFunctionCall>;
|
|
160
|
-
/**
|
|
161
|
-
* @internal
|
|
162
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
163
|
-
*/
|
|
164
|
-
export declare namespace OpenAIResponsesInputFunctionCall$ {
|
|
165
|
-
/** @deprecated use `OpenAIResponsesInputFunctionCall$inboundSchema` instead. */
|
|
166
|
-
const inboundSchema: z.ZodType<OpenAIResponsesInputFunctionCall, unknown, z.core.$ZodTypeInternals<OpenAIResponsesInputFunctionCall, unknown>>;
|
|
167
|
-
/** @deprecated use `OpenAIResponsesInputFunctionCall$outboundSchema` instead. */
|
|
168
|
-
const outboundSchema: z.ZodType<OpenAIResponsesInputFunctionCall$Outbound, OpenAIResponsesInputFunctionCall, z.core.$ZodTypeInternals<OpenAIResponsesInputFunctionCall$Outbound, OpenAIResponsesInputFunctionCall>>;
|
|
169
|
-
/** @deprecated use `OpenAIResponsesInputFunctionCall$Outbound` instead. */
|
|
170
|
-
type Outbound = OpenAIResponsesInputFunctionCall$Outbound;
|
|
171
|
-
}
|
|
172
|
-
export declare function openAIResponsesInputFunctionCallToJSON(openAIResponsesInputFunctionCall: OpenAIResponsesInputFunctionCall): string;
|
|
173
133
|
export declare function openAIResponsesInputFunctionCallFromJSON(jsonString: string): SafeParseResult<OpenAIResponsesInputFunctionCall, SDKValidationError>;
|
|
174
134
|
/** @internal */
|
|
175
135
|
export declare const OpenAIResponsesInputTypeFunctionCallOutput$inboundSchema: z.ZodEnum<typeof OpenAIResponsesInputTypeFunctionCallOutput>;
|
|
176
136
|
/** @internal */
|
|
177
|
-
export declare const OpenAIResponsesInputTypeFunctionCallOutput$outboundSchema: z.ZodEnum<typeof OpenAIResponsesInputTypeFunctionCallOutput>;
|
|
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 OpenAIResponsesInputTypeFunctionCallOutput$ {
|
|
183
|
-
/** @deprecated use `OpenAIResponsesInputTypeFunctionCallOutput$inboundSchema` instead. */
|
|
184
|
-
const inboundSchema: z.ZodEnum<{
|
|
185
|
-
readonly FunctionCallOutput: "function_call_output";
|
|
186
|
-
}>;
|
|
187
|
-
/** @deprecated use `OpenAIResponsesInputTypeFunctionCallOutput$outboundSchema` instead. */
|
|
188
|
-
const outboundSchema: z.ZodEnum<{
|
|
189
|
-
readonly FunctionCallOutput: "function_call_output";
|
|
190
|
-
}>;
|
|
191
|
-
}
|
|
192
|
-
/** @internal */
|
|
193
137
|
export declare const OpenAIResponsesInputFunctionCallOutput$inboundSchema: z.ZodType<OpenAIResponsesInputFunctionCallOutput, unknown>;
|
|
194
|
-
/** @internal */
|
|
195
|
-
export type OpenAIResponsesInputFunctionCallOutput$Outbound = {
|
|
196
|
-
type: string;
|
|
197
|
-
id: string;
|
|
198
|
-
call_id: string;
|
|
199
|
-
output: string;
|
|
200
|
-
status?: string | undefined;
|
|
201
|
-
};
|
|
202
|
-
/** @internal */
|
|
203
|
-
export declare const OpenAIResponsesInputFunctionCallOutput$outboundSchema: z.ZodType<OpenAIResponsesInputFunctionCallOutput$Outbound, OpenAIResponsesInputFunctionCallOutput>;
|
|
204
|
-
/**
|
|
205
|
-
* @internal
|
|
206
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
207
|
-
*/
|
|
208
|
-
export declare namespace OpenAIResponsesInputFunctionCallOutput$ {
|
|
209
|
-
/** @deprecated use `OpenAIResponsesInputFunctionCallOutput$inboundSchema` instead. */
|
|
210
|
-
const inboundSchema: z.ZodType<OpenAIResponsesInputFunctionCallOutput, unknown, z.core.$ZodTypeInternals<OpenAIResponsesInputFunctionCallOutput, unknown>>;
|
|
211
|
-
/** @deprecated use `OpenAIResponsesInputFunctionCallOutput$outboundSchema` instead. */
|
|
212
|
-
const outboundSchema: z.ZodType<OpenAIResponsesInputFunctionCallOutput$Outbound, OpenAIResponsesInputFunctionCallOutput, z.core.$ZodTypeInternals<OpenAIResponsesInputFunctionCallOutput$Outbound, OpenAIResponsesInputFunctionCallOutput>>;
|
|
213
|
-
/** @deprecated use `OpenAIResponsesInputFunctionCallOutput$Outbound` instead. */
|
|
214
|
-
type Outbound = OpenAIResponsesInputFunctionCallOutput$Outbound;
|
|
215
|
-
}
|
|
216
|
-
export declare function openAIResponsesInputFunctionCallOutputToJSON(openAIResponsesInputFunctionCallOutput: OpenAIResponsesInputFunctionCallOutput): string;
|
|
217
138
|
export declare function openAIResponsesInputFunctionCallOutputFromJSON(jsonString: string): SafeParseResult<OpenAIResponsesInputFunctionCallOutput, SDKValidationError>;
|
|
218
139
|
/** @internal */
|
|
219
140
|
export declare const OpenAIResponsesInputTypeMessage2$inboundSchema: z.ZodEnum<typeof OpenAIResponsesInputTypeMessage2>;
|
|
220
141
|
/** @internal */
|
|
221
|
-
export declare const OpenAIResponsesInputTypeMessage2$outboundSchema: z.ZodEnum<typeof OpenAIResponsesInputTypeMessage2>;
|
|
222
|
-
/**
|
|
223
|
-
* @internal
|
|
224
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
225
|
-
*/
|
|
226
|
-
export declare namespace OpenAIResponsesInputTypeMessage2$ {
|
|
227
|
-
/** @deprecated use `OpenAIResponsesInputTypeMessage2$inboundSchema` instead. */
|
|
228
|
-
const inboundSchema: z.ZodEnum<{
|
|
229
|
-
readonly Message: "message";
|
|
230
|
-
}>;
|
|
231
|
-
/** @deprecated use `OpenAIResponsesInputTypeMessage2$outboundSchema` instead. */
|
|
232
|
-
const outboundSchema: z.ZodEnum<{
|
|
233
|
-
readonly Message: "message";
|
|
234
|
-
}>;
|
|
235
|
-
}
|
|
236
|
-
/** @internal */
|
|
237
142
|
export declare const OpenAIResponsesInputRoleDeveloper2$inboundSchema: z.ZodEnum<typeof OpenAIResponsesInputRoleDeveloper2>;
|
|
238
143
|
/** @internal */
|
|
239
|
-
export declare const OpenAIResponsesInputRoleDeveloper2$outboundSchema: z.ZodEnum<typeof OpenAIResponsesInputRoleDeveloper2>;
|
|
240
|
-
/**
|
|
241
|
-
* @internal
|
|
242
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
243
|
-
*/
|
|
244
|
-
export declare namespace OpenAIResponsesInputRoleDeveloper2$ {
|
|
245
|
-
/** @deprecated use `OpenAIResponsesInputRoleDeveloper2$inboundSchema` instead. */
|
|
246
|
-
const inboundSchema: z.ZodEnum<{
|
|
247
|
-
readonly Developer: "developer";
|
|
248
|
-
}>;
|
|
249
|
-
/** @deprecated use `OpenAIResponsesInputRoleDeveloper2$outboundSchema` instead. */
|
|
250
|
-
const outboundSchema: z.ZodEnum<{
|
|
251
|
-
readonly Developer: "developer";
|
|
252
|
-
}>;
|
|
253
|
-
}
|
|
254
|
-
/** @internal */
|
|
255
144
|
export declare const OpenAIResponsesInputRoleSystem2$inboundSchema: z.ZodEnum<typeof OpenAIResponsesInputRoleSystem2>;
|
|
256
145
|
/** @internal */
|
|
257
|
-
export declare const OpenAIResponsesInputRoleSystem2$outboundSchema: z.ZodEnum<typeof OpenAIResponsesInputRoleSystem2>;
|
|
258
|
-
/**
|
|
259
|
-
* @internal
|
|
260
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
261
|
-
*/
|
|
262
|
-
export declare namespace OpenAIResponsesInputRoleSystem2$ {
|
|
263
|
-
/** @deprecated use `OpenAIResponsesInputRoleSystem2$inboundSchema` instead. */
|
|
264
|
-
const inboundSchema: z.ZodEnum<{
|
|
265
|
-
readonly System: "system";
|
|
266
|
-
}>;
|
|
267
|
-
/** @deprecated use `OpenAIResponsesInputRoleSystem2$outboundSchema` instead. */
|
|
268
|
-
const outboundSchema: z.ZodEnum<{
|
|
269
|
-
readonly System: "system";
|
|
270
|
-
}>;
|
|
271
|
-
}
|
|
272
|
-
/** @internal */
|
|
273
146
|
export declare const OpenAIResponsesInputRoleUser2$inboundSchema: z.ZodEnum<typeof OpenAIResponsesInputRoleUser2>;
|
|
274
147
|
/** @internal */
|
|
275
|
-
export declare const OpenAIResponsesInputRoleUser2$outboundSchema: z.ZodEnum<typeof OpenAIResponsesInputRoleUser2>;
|
|
276
|
-
/**
|
|
277
|
-
* @internal
|
|
278
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
279
|
-
*/
|
|
280
|
-
export declare namespace OpenAIResponsesInputRoleUser2$ {
|
|
281
|
-
/** @deprecated use `OpenAIResponsesInputRoleUser2$inboundSchema` instead. */
|
|
282
|
-
const inboundSchema: z.ZodEnum<{
|
|
283
|
-
readonly User: "user";
|
|
284
|
-
}>;
|
|
285
|
-
/** @deprecated use `OpenAIResponsesInputRoleUser2$outboundSchema` instead. */
|
|
286
|
-
const outboundSchema: z.ZodEnum<{
|
|
287
|
-
readonly User: "user";
|
|
288
|
-
}>;
|
|
289
|
-
}
|
|
290
|
-
/** @internal */
|
|
291
148
|
export declare const OpenAIResponsesInputRoleUnion2$inboundSchema: z.ZodType<OpenAIResponsesInputRoleUnion2, unknown>;
|
|
292
|
-
/** @internal */
|
|
293
|
-
export type OpenAIResponsesInputRoleUnion2$Outbound = string | string | string;
|
|
294
|
-
/** @internal */
|
|
295
|
-
export declare const OpenAIResponsesInputRoleUnion2$outboundSchema: z.ZodType<OpenAIResponsesInputRoleUnion2$Outbound, OpenAIResponsesInputRoleUnion2>;
|
|
296
|
-
/**
|
|
297
|
-
* @internal
|
|
298
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
299
|
-
*/
|
|
300
|
-
export declare namespace OpenAIResponsesInputRoleUnion2$ {
|
|
301
|
-
/** @deprecated use `OpenAIResponsesInputRoleUnion2$inboundSchema` instead. */
|
|
302
|
-
const inboundSchema: z.ZodType<OpenAIResponsesInputRoleUnion2, unknown, z.core.$ZodTypeInternals<OpenAIResponsesInputRoleUnion2, unknown>>;
|
|
303
|
-
/** @deprecated use `OpenAIResponsesInputRoleUnion2$outboundSchema` instead. */
|
|
304
|
-
const outboundSchema: z.ZodType<string, OpenAIResponsesInputRoleUnion2, z.core.$ZodTypeInternals<string, OpenAIResponsesInputRoleUnion2>>;
|
|
305
|
-
/** @deprecated use `OpenAIResponsesInputRoleUnion2$Outbound` instead. */
|
|
306
|
-
type Outbound = OpenAIResponsesInputRoleUnion2$Outbound;
|
|
307
|
-
}
|
|
308
|
-
export declare function openAIResponsesInputRoleUnion2ToJSON(openAIResponsesInputRoleUnion2: OpenAIResponsesInputRoleUnion2): string;
|
|
309
149
|
export declare function openAIResponsesInputRoleUnion2FromJSON(jsonString: string): SafeParseResult<OpenAIResponsesInputRoleUnion2, SDKValidationError>;
|
|
310
150
|
/** @internal */
|
|
311
151
|
export declare const OpenAIResponsesInputContent3$inboundSchema: z.ZodType<OpenAIResponsesInputContent3, unknown>;
|
|
312
|
-
/** @internal */
|
|
313
|
-
export type OpenAIResponsesInputContent3$Outbound = (ResponseInputText$Outbound & {
|
|
314
|
-
type: "input_text";
|
|
315
|
-
}) | (ResponseInputImage$Outbound & {
|
|
316
|
-
type: "input_image";
|
|
317
|
-
}) | (ResponseInputAudio$Outbound & {
|
|
318
|
-
type: "input_audio";
|
|
319
|
-
}) | (ResponseInputFile$Outbound & {
|
|
320
|
-
type: "input_file";
|
|
321
|
-
});
|
|
322
|
-
/** @internal */
|
|
323
|
-
export declare const OpenAIResponsesInputContent3$outboundSchema: z.ZodType<OpenAIResponsesInputContent3$Outbound, OpenAIResponsesInputContent3>;
|
|
324
|
-
/**
|
|
325
|
-
* @internal
|
|
326
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
327
|
-
*/
|
|
328
|
-
export declare namespace OpenAIResponsesInputContent3$ {
|
|
329
|
-
/** @deprecated use `OpenAIResponsesInputContent3$inboundSchema` instead. */
|
|
330
|
-
const inboundSchema: z.ZodType<OpenAIResponsesInputContent3, unknown, z.core.$ZodTypeInternals<OpenAIResponsesInputContent3, unknown>>;
|
|
331
|
-
/** @deprecated use `OpenAIResponsesInputContent3$outboundSchema` instead. */
|
|
332
|
-
const outboundSchema: z.ZodType<OpenAIResponsesInputContent3$Outbound, OpenAIResponsesInputContent3, z.core.$ZodTypeInternals<OpenAIResponsesInputContent3$Outbound, OpenAIResponsesInputContent3>>;
|
|
333
|
-
/** @deprecated use `OpenAIResponsesInputContent3$Outbound` instead. */
|
|
334
|
-
type Outbound = OpenAIResponsesInputContent3$Outbound;
|
|
335
|
-
}
|
|
336
|
-
export declare function openAIResponsesInputContent3ToJSON(openAIResponsesInputContent3: OpenAIResponsesInputContent3): string;
|
|
337
152
|
export declare function openAIResponsesInputContent3FromJSON(jsonString: string): SafeParseResult<OpenAIResponsesInputContent3, SDKValidationError>;
|
|
338
153
|
/** @internal */
|
|
339
154
|
export declare const OpenAIResponsesInputMessage2$inboundSchema: z.ZodType<OpenAIResponsesInputMessage2, unknown>;
|
|
340
|
-
/** @internal */
|
|
341
|
-
export type OpenAIResponsesInputMessage2$Outbound = {
|
|
342
|
-
id: string;
|
|
343
|
-
type?: string | undefined;
|
|
344
|
-
role: string | string | string;
|
|
345
|
-
content: Array<(ResponseInputText$Outbound & {
|
|
346
|
-
type: "input_text";
|
|
347
|
-
}) | (ResponseInputImage$Outbound & {
|
|
348
|
-
type: "input_image";
|
|
349
|
-
}) | (ResponseInputAudio$Outbound & {
|
|
350
|
-
type: "input_audio";
|
|
351
|
-
}) | (ResponseInputFile$Outbound & {
|
|
352
|
-
type: "input_file";
|
|
353
|
-
})>;
|
|
354
|
-
};
|
|
355
|
-
/** @internal */
|
|
356
|
-
export declare const OpenAIResponsesInputMessage2$outboundSchema: z.ZodType<OpenAIResponsesInputMessage2$Outbound, OpenAIResponsesInputMessage2>;
|
|
357
|
-
/**
|
|
358
|
-
* @internal
|
|
359
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
360
|
-
*/
|
|
361
|
-
export declare namespace OpenAIResponsesInputMessage2$ {
|
|
362
|
-
/** @deprecated use `OpenAIResponsesInputMessage2$inboundSchema` instead. */
|
|
363
|
-
const inboundSchema: z.ZodType<OpenAIResponsesInputMessage2, unknown, z.core.$ZodTypeInternals<OpenAIResponsesInputMessage2, unknown>>;
|
|
364
|
-
/** @deprecated use `OpenAIResponsesInputMessage2$outboundSchema` instead. */
|
|
365
|
-
const outboundSchema: z.ZodType<OpenAIResponsesInputMessage2$Outbound, OpenAIResponsesInputMessage2, z.core.$ZodTypeInternals<OpenAIResponsesInputMessage2$Outbound, OpenAIResponsesInputMessage2>>;
|
|
366
|
-
/** @deprecated use `OpenAIResponsesInputMessage2$Outbound` instead. */
|
|
367
|
-
type Outbound = OpenAIResponsesInputMessage2$Outbound;
|
|
368
|
-
}
|
|
369
|
-
export declare function openAIResponsesInputMessage2ToJSON(openAIResponsesInputMessage2: OpenAIResponsesInputMessage2): string;
|
|
370
155
|
export declare function openAIResponsesInputMessage2FromJSON(jsonString: string): SafeParseResult<OpenAIResponsesInputMessage2, SDKValidationError>;
|
|
371
156
|
/** @internal */
|
|
372
157
|
export declare const OpenAIResponsesInputTypeMessage1$inboundSchema: z.ZodEnum<typeof OpenAIResponsesInputTypeMessage1>;
|
|
373
158
|
/** @internal */
|
|
374
|
-
export declare const OpenAIResponsesInputTypeMessage1$outboundSchema: z.ZodEnum<typeof OpenAIResponsesInputTypeMessage1>;
|
|
375
|
-
/**
|
|
376
|
-
* @internal
|
|
377
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
378
|
-
*/
|
|
379
|
-
export declare namespace OpenAIResponsesInputTypeMessage1$ {
|
|
380
|
-
/** @deprecated use `OpenAIResponsesInputTypeMessage1$inboundSchema` instead. */
|
|
381
|
-
const inboundSchema: z.ZodEnum<{
|
|
382
|
-
readonly Message: "message";
|
|
383
|
-
}>;
|
|
384
|
-
/** @deprecated use `OpenAIResponsesInputTypeMessage1$outboundSchema` instead. */
|
|
385
|
-
const outboundSchema: z.ZodEnum<{
|
|
386
|
-
readonly Message: "message";
|
|
387
|
-
}>;
|
|
388
|
-
}
|
|
389
|
-
/** @internal */
|
|
390
159
|
export declare const OpenAIResponsesInputRoleDeveloper1$inboundSchema: z.ZodEnum<typeof OpenAIResponsesInputRoleDeveloper1>;
|
|
391
160
|
/** @internal */
|
|
392
|
-
export declare const OpenAIResponsesInputRoleDeveloper1$outboundSchema: z.ZodEnum<typeof OpenAIResponsesInputRoleDeveloper1>;
|
|
393
|
-
/**
|
|
394
|
-
* @internal
|
|
395
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
396
|
-
*/
|
|
397
|
-
export declare namespace OpenAIResponsesInputRoleDeveloper1$ {
|
|
398
|
-
/** @deprecated use `OpenAIResponsesInputRoleDeveloper1$inboundSchema` instead. */
|
|
399
|
-
const inboundSchema: z.ZodEnum<{
|
|
400
|
-
readonly Developer: "developer";
|
|
401
|
-
}>;
|
|
402
|
-
/** @deprecated use `OpenAIResponsesInputRoleDeveloper1$outboundSchema` instead. */
|
|
403
|
-
const outboundSchema: z.ZodEnum<{
|
|
404
|
-
readonly Developer: "developer";
|
|
405
|
-
}>;
|
|
406
|
-
}
|
|
407
|
-
/** @internal */
|
|
408
161
|
export declare const OpenAIResponsesInputRoleAssistant$inboundSchema: z.ZodEnum<typeof OpenAIResponsesInputRoleAssistant>;
|
|
409
162
|
/** @internal */
|
|
410
|
-
export declare const OpenAIResponsesInputRoleAssistant$outboundSchema: z.ZodEnum<typeof OpenAIResponsesInputRoleAssistant>;
|
|
411
|
-
/**
|
|
412
|
-
* @internal
|
|
413
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
414
|
-
*/
|
|
415
|
-
export declare namespace OpenAIResponsesInputRoleAssistant$ {
|
|
416
|
-
/** @deprecated use `OpenAIResponsesInputRoleAssistant$inboundSchema` instead. */
|
|
417
|
-
const inboundSchema: z.ZodEnum<{
|
|
418
|
-
readonly Assistant: "assistant";
|
|
419
|
-
}>;
|
|
420
|
-
/** @deprecated use `OpenAIResponsesInputRoleAssistant$outboundSchema` instead. */
|
|
421
|
-
const outboundSchema: z.ZodEnum<{
|
|
422
|
-
readonly Assistant: "assistant";
|
|
423
|
-
}>;
|
|
424
|
-
}
|
|
425
|
-
/** @internal */
|
|
426
163
|
export declare const OpenAIResponsesInputRoleSystem1$inboundSchema: z.ZodEnum<typeof OpenAIResponsesInputRoleSystem1>;
|
|
427
164
|
/** @internal */
|
|
428
|
-
export declare const OpenAIResponsesInputRoleSystem1$outboundSchema: z.ZodEnum<typeof OpenAIResponsesInputRoleSystem1>;
|
|
429
|
-
/**
|
|
430
|
-
* @internal
|
|
431
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
432
|
-
*/
|
|
433
|
-
export declare namespace OpenAIResponsesInputRoleSystem1$ {
|
|
434
|
-
/** @deprecated use `OpenAIResponsesInputRoleSystem1$inboundSchema` instead. */
|
|
435
|
-
const inboundSchema: z.ZodEnum<{
|
|
436
|
-
readonly System: "system";
|
|
437
|
-
}>;
|
|
438
|
-
/** @deprecated use `OpenAIResponsesInputRoleSystem1$outboundSchema` instead. */
|
|
439
|
-
const outboundSchema: z.ZodEnum<{
|
|
440
|
-
readonly System: "system";
|
|
441
|
-
}>;
|
|
442
|
-
}
|
|
443
|
-
/** @internal */
|
|
444
165
|
export declare const OpenAIResponsesInputRoleUser1$inboundSchema: z.ZodEnum<typeof OpenAIResponsesInputRoleUser1>;
|
|
445
166
|
/** @internal */
|
|
446
|
-
export declare const OpenAIResponsesInputRoleUser1$outboundSchema: z.ZodEnum<typeof OpenAIResponsesInputRoleUser1>;
|
|
447
|
-
/**
|
|
448
|
-
* @internal
|
|
449
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
450
|
-
*/
|
|
451
|
-
export declare namespace OpenAIResponsesInputRoleUser1$ {
|
|
452
|
-
/** @deprecated use `OpenAIResponsesInputRoleUser1$inboundSchema` instead. */
|
|
453
|
-
const inboundSchema: z.ZodEnum<{
|
|
454
|
-
readonly User: "user";
|
|
455
|
-
}>;
|
|
456
|
-
/** @deprecated use `OpenAIResponsesInputRoleUser1$outboundSchema` instead. */
|
|
457
|
-
const outboundSchema: z.ZodEnum<{
|
|
458
|
-
readonly User: "user";
|
|
459
|
-
}>;
|
|
460
|
-
}
|
|
461
|
-
/** @internal */
|
|
462
167
|
export declare const OpenAIResponsesInputRoleUnion1$inboundSchema: z.ZodType<OpenAIResponsesInputRoleUnion1, unknown>;
|
|
463
|
-
/** @internal */
|
|
464
|
-
export type OpenAIResponsesInputRoleUnion1$Outbound = string | string | string | string;
|
|
465
|
-
/** @internal */
|
|
466
|
-
export declare const OpenAIResponsesInputRoleUnion1$outboundSchema: z.ZodType<OpenAIResponsesInputRoleUnion1$Outbound, OpenAIResponsesInputRoleUnion1>;
|
|
467
|
-
/**
|
|
468
|
-
* @internal
|
|
469
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
470
|
-
*/
|
|
471
|
-
export declare namespace OpenAIResponsesInputRoleUnion1$ {
|
|
472
|
-
/** @deprecated use `OpenAIResponsesInputRoleUnion1$inboundSchema` instead. */
|
|
473
|
-
const inboundSchema: z.ZodType<OpenAIResponsesInputRoleUnion1, unknown, z.core.$ZodTypeInternals<OpenAIResponsesInputRoleUnion1, unknown>>;
|
|
474
|
-
/** @deprecated use `OpenAIResponsesInputRoleUnion1$outboundSchema` instead. */
|
|
475
|
-
const outboundSchema: z.ZodType<string, OpenAIResponsesInputRoleUnion1, z.core.$ZodTypeInternals<string, OpenAIResponsesInputRoleUnion1>>;
|
|
476
|
-
/** @deprecated use `OpenAIResponsesInputRoleUnion1$Outbound` instead. */
|
|
477
|
-
type Outbound = OpenAIResponsesInputRoleUnion1$Outbound;
|
|
478
|
-
}
|
|
479
|
-
export declare function openAIResponsesInputRoleUnion1ToJSON(openAIResponsesInputRoleUnion1: OpenAIResponsesInputRoleUnion1): string;
|
|
480
168
|
export declare function openAIResponsesInputRoleUnion1FromJSON(jsonString: string): SafeParseResult<OpenAIResponsesInputRoleUnion1, SDKValidationError>;
|
|
481
169
|
/** @internal */
|
|
482
170
|
export declare const OpenAIResponsesInputContent1$inboundSchema: z.ZodType<OpenAIResponsesInputContent1, unknown>;
|
|
483
|
-
/** @internal */
|
|
484
|
-
export type OpenAIResponsesInputContent1$Outbound = (ResponseInputText$Outbound & {
|
|
485
|
-
type: "input_text";
|
|
486
|
-
}) | (ResponseInputImage$Outbound & {
|
|
487
|
-
type: "input_image";
|
|
488
|
-
}) | (ResponseInputAudio$Outbound & {
|
|
489
|
-
type: "input_audio";
|
|
490
|
-
}) | (ResponseInputFile$Outbound & {
|
|
491
|
-
type: "input_file";
|
|
492
|
-
});
|
|
493
|
-
/** @internal */
|
|
494
|
-
export declare const OpenAIResponsesInputContent1$outboundSchema: z.ZodType<OpenAIResponsesInputContent1$Outbound, OpenAIResponsesInputContent1>;
|
|
495
|
-
/**
|
|
496
|
-
* @internal
|
|
497
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
498
|
-
*/
|
|
499
|
-
export declare namespace OpenAIResponsesInputContent1$ {
|
|
500
|
-
/** @deprecated use `OpenAIResponsesInputContent1$inboundSchema` instead. */
|
|
501
|
-
const inboundSchema: z.ZodType<OpenAIResponsesInputContent1, unknown, z.core.$ZodTypeInternals<OpenAIResponsesInputContent1, unknown>>;
|
|
502
|
-
/** @deprecated use `OpenAIResponsesInputContent1$outboundSchema` instead. */
|
|
503
|
-
const outboundSchema: z.ZodType<OpenAIResponsesInputContent1$Outbound, OpenAIResponsesInputContent1, z.core.$ZodTypeInternals<OpenAIResponsesInputContent1$Outbound, OpenAIResponsesInputContent1>>;
|
|
504
|
-
/** @deprecated use `OpenAIResponsesInputContent1$Outbound` instead. */
|
|
505
|
-
type Outbound = OpenAIResponsesInputContent1$Outbound;
|
|
506
|
-
}
|
|
507
|
-
export declare function openAIResponsesInputContent1ToJSON(openAIResponsesInputContent1: OpenAIResponsesInputContent1): string;
|
|
508
171
|
export declare function openAIResponsesInputContent1FromJSON(jsonString: string): SafeParseResult<OpenAIResponsesInputContent1, SDKValidationError>;
|
|
509
172
|
/** @internal */
|
|
510
173
|
export declare const OpenAIResponsesInputContent2$inboundSchema: z.ZodType<OpenAIResponsesInputContent2, unknown>;
|
|
511
|
-
/** @internal */
|
|
512
|
-
export type OpenAIResponsesInputContent2$Outbound = Array<(ResponseInputText$Outbound & {
|
|
513
|
-
type: "input_text";
|
|
514
|
-
}) | (ResponseInputImage$Outbound & {
|
|
515
|
-
type: "input_image";
|
|
516
|
-
}) | (ResponseInputAudio$Outbound & {
|
|
517
|
-
type: "input_audio";
|
|
518
|
-
}) | (ResponseInputFile$Outbound & {
|
|
519
|
-
type: "input_file";
|
|
520
|
-
})> | string;
|
|
521
|
-
/** @internal */
|
|
522
|
-
export declare const OpenAIResponsesInputContent2$outboundSchema: z.ZodType<OpenAIResponsesInputContent2$Outbound, OpenAIResponsesInputContent2>;
|
|
523
|
-
/**
|
|
524
|
-
* @internal
|
|
525
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
526
|
-
*/
|
|
527
|
-
export declare namespace OpenAIResponsesInputContent2$ {
|
|
528
|
-
/** @deprecated use `OpenAIResponsesInputContent2$inboundSchema` instead. */
|
|
529
|
-
const inboundSchema: z.ZodType<OpenAIResponsesInputContent2, unknown, z.core.$ZodTypeInternals<OpenAIResponsesInputContent2, unknown>>;
|
|
530
|
-
/** @deprecated use `OpenAIResponsesInputContent2$outboundSchema` instead. */
|
|
531
|
-
const outboundSchema: z.ZodType<OpenAIResponsesInputContent2$Outbound, OpenAIResponsesInputContent2, z.core.$ZodTypeInternals<OpenAIResponsesInputContent2$Outbound, OpenAIResponsesInputContent2>>;
|
|
532
|
-
/** @deprecated use `OpenAIResponsesInputContent2$Outbound` instead. */
|
|
533
|
-
type Outbound = OpenAIResponsesInputContent2$Outbound;
|
|
534
|
-
}
|
|
535
|
-
export declare function openAIResponsesInputContent2ToJSON(openAIResponsesInputContent2: OpenAIResponsesInputContent2): string;
|
|
536
174
|
export declare function openAIResponsesInputContent2FromJSON(jsonString: string): SafeParseResult<OpenAIResponsesInputContent2, SDKValidationError>;
|
|
537
175
|
/** @internal */
|
|
538
176
|
export declare const OpenAIResponsesInputMessage1$inboundSchema: z.ZodType<OpenAIResponsesInputMessage1, unknown>;
|
|
539
|
-
/** @internal */
|
|
540
|
-
export type OpenAIResponsesInputMessage1$Outbound = {
|
|
541
|
-
type?: string | undefined;
|
|
542
|
-
role: string | string | string | string;
|
|
543
|
-
content: Array<(ResponseInputText$Outbound & {
|
|
544
|
-
type: "input_text";
|
|
545
|
-
}) | (ResponseInputImage$Outbound & {
|
|
546
|
-
type: "input_image";
|
|
547
|
-
}) | (ResponseInputAudio$Outbound & {
|
|
548
|
-
type: "input_audio";
|
|
549
|
-
}) | (ResponseInputFile$Outbound & {
|
|
550
|
-
type: "input_file";
|
|
551
|
-
})> | string;
|
|
552
|
-
};
|
|
553
|
-
/** @internal */
|
|
554
|
-
export declare const OpenAIResponsesInputMessage1$outboundSchema: z.ZodType<OpenAIResponsesInputMessage1$Outbound, OpenAIResponsesInputMessage1>;
|
|
555
|
-
/**
|
|
556
|
-
* @internal
|
|
557
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
558
|
-
*/
|
|
559
|
-
export declare namespace OpenAIResponsesInputMessage1$ {
|
|
560
|
-
/** @deprecated use `OpenAIResponsesInputMessage1$inboundSchema` instead. */
|
|
561
|
-
const inboundSchema: z.ZodType<OpenAIResponsesInputMessage1, unknown, z.core.$ZodTypeInternals<OpenAIResponsesInputMessage1, unknown>>;
|
|
562
|
-
/** @deprecated use `OpenAIResponsesInputMessage1$outboundSchema` instead. */
|
|
563
|
-
const outboundSchema: z.ZodType<OpenAIResponsesInputMessage1$Outbound, OpenAIResponsesInputMessage1, z.core.$ZodTypeInternals<OpenAIResponsesInputMessage1$Outbound, OpenAIResponsesInputMessage1>>;
|
|
564
|
-
/** @deprecated use `OpenAIResponsesInputMessage1$Outbound` instead. */
|
|
565
|
-
type Outbound = OpenAIResponsesInputMessage1$Outbound;
|
|
566
|
-
}
|
|
567
|
-
export declare function openAIResponsesInputMessage1ToJSON(openAIResponsesInputMessage1: OpenAIResponsesInputMessage1): string;
|
|
568
177
|
export declare function openAIResponsesInputMessage1FromJSON(jsonString: string): SafeParseResult<OpenAIResponsesInputMessage1, SDKValidationError>;
|
|
569
178
|
/** @internal */
|
|
570
179
|
export declare const OpenAIResponsesInputUnion1$inboundSchema: z.ZodType<OpenAIResponsesInputUnion1, unknown>;
|
|
571
|
-
/** @internal */
|
|
572
|
-
export type OpenAIResponsesInputUnion1$Outbound = OpenAIResponsesInputFunctionCallOutput$Outbound | OpenAIResponsesInputFunctionCall$Outbound | OutputItemImageGenerationCall$Outbound | OutputMessage$Outbound | OpenAIResponsesInputMessage2$Outbound | OpenAIResponsesInputMessage1$Outbound;
|
|
573
|
-
/** @internal */
|
|
574
|
-
export declare const OpenAIResponsesInputUnion1$outboundSchema: z.ZodType<OpenAIResponsesInputUnion1$Outbound, OpenAIResponsesInputUnion1>;
|
|
575
|
-
/**
|
|
576
|
-
* @internal
|
|
577
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
578
|
-
*/
|
|
579
|
-
export declare namespace OpenAIResponsesInputUnion1$ {
|
|
580
|
-
/** @deprecated use `OpenAIResponsesInputUnion1$inboundSchema` instead. */
|
|
581
|
-
const inboundSchema: z.ZodType<OpenAIResponsesInputUnion1, unknown, z.core.$ZodTypeInternals<OpenAIResponsesInputUnion1, unknown>>;
|
|
582
|
-
/** @deprecated use `OpenAIResponsesInputUnion1$outboundSchema` instead. */
|
|
583
|
-
const outboundSchema: z.ZodType<OpenAIResponsesInputUnion1$Outbound, OpenAIResponsesInputUnion1, z.core.$ZodTypeInternals<OpenAIResponsesInputUnion1$Outbound, OpenAIResponsesInputUnion1>>;
|
|
584
|
-
/** @deprecated use `OpenAIResponsesInputUnion1$Outbound` instead. */
|
|
585
|
-
type Outbound = OpenAIResponsesInputUnion1$Outbound;
|
|
586
|
-
}
|
|
587
|
-
export declare function openAIResponsesInputUnion1ToJSON(openAIResponsesInputUnion1: OpenAIResponsesInputUnion1): string;
|
|
588
180
|
export declare function openAIResponsesInputUnion1FromJSON(jsonString: string): SafeParseResult<OpenAIResponsesInputUnion1, SDKValidationError>;
|
|
589
181
|
/** @internal */
|
|
590
182
|
export declare const OpenAIResponsesInputUnion$inboundSchema: z.ZodType<OpenAIResponsesInputUnion, unknown>;
|
|
591
|
-
/** @internal */
|
|
592
|
-
export type OpenAIResponsesInputUnion$Outbound = string | Array<OpenAIResponsesInputFunctionCallOutput$Outbound | OpenAIResponsesInputFunctionCall$Outbound | OutputItemImageGenerationCall$Outbound | OutputMessage$Outbound | OpenAIResponsesInputMessage2$Outbound | OpenAIResponsesInputMessage1$Outbound> | any;
|
|
593
|
-
/** @internal */
|
|
594
|
-
export declare const OpenAIResponsesInputUnion$outboundSchema: z.ZodType<OpenAIResponsesInputUnion$Outbound, OpenAIResponsesInputUnion>;
|
|
595
|
-
/**
|
|
596
|
-
* @internal
|
|
597
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
598
|
-
*/
|
|
599
|
-
export declare namespace OpenAIResponsesInputUnion$ {
|
|
600
|
-
/** @deprecated use `OpenAIResponsesInputUnion$inboundSchema` instead. */
|
|
601
|
-
const inboundSchema: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
|
|
602
|
-
/** @deprecated use `OpenAIResponsesInputUnion$outboundSchema` instead. */
|
|
603
|
-
const outboundSchema: z.ZodType<any, any, z.core.$ZodTypeInternals<any, any>>;
|
|
604
|
-
/** @deprecated use `OpenAIResponsesInputUnion$Outbound` instead. */
|
|
605
|
-
type Outbound = OpenAIResponsesInputUnion$Outbound;
|
|
606
|
-
}
|
|
607
|
-
export declare function openAIResponsesInputUnionToJSON(openAIResponsesInputUnion: OpenAIResponsesInputUnion): string;
|
|
608
183
|
export declare function openAIResponsesInputUnionFromJSON(jsonString: string): SafeParseResult<OpenAIResponsesInputUnion, SDKValidationError>;
|
|
609
184
|
//# sourceMappingURL=openairesponsesinputunion.d.ts.map
|