@openrouter/sdk 0.1.1 → 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
|
@@ -4,13 +4,13 @@
|
|
|
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 { OutputItemImageGenerationCall$inboundSchema,
|
|
8
|
-
import { OutputMessage$inboundSchema
|
|
9
|
-
import { ResponseInputAudio$inboundSchema,
|
|
10
|
-
import { ResponseInputFile$inboundSchema,
|
|
11
|
-
import { ResponseInputImage$inboundSchema,
|
|
12
|
-
import { ResponseInputText$inboundSchema,
|
|
13
|
-
import { ToolCallStatus$inboundSchema,
|
|
7
|
+
import { OutputItemImageGenerationCall$inboundSchema, } from "./outputitemimagegenerationcall.js";
|
|
8
|
+
import { OutputMessage$inboundSchema } from "./outputmessage.js";
|
|
9
|
+
import { ResponseInputAudio$inboundSchema, } from "./responseinputaudio.js";
|
|
10
|
+
import { ResponseInputFile$inboundSchema, } from "./responseinputfile.js";
|
|
11
|
+
import { ResponseInputImage$inboundSchema, } from "./responseinputimage.js";
|
|
12
|
+
import { ResponseInputText$inboundSchema, } from "./responseinputtext.js";
|
|
13
|
+
import { ToolCallStatus$inboundSchema, } from "./toolcallstatus.js";
|
|
14
14
|
export const OpenAIResponsesInputTypeFunctionCall = {
|
|
15
15
|
FunctionCall: "function_call",
|
|
16
16
|
};
|
|
@@ -47,19 +47,6 @@ export const OpenAIResponsesInputRoleUser1 = {
|
|
|
47
47
|
/** @internal */
|
|
48
48
|
export const OpenAIResponsesInputTypeFunctionCall$inboundSchema = z.enum(OpenAIResponsesInputTypeFunctionCall);
|
|
49
49
|
/** @internal */
|
|
50
|
-
export const OpenAIResponsesInputTypeFunctionCall$outboundSchema = OpenAIResponsesInputTypeFunctionCall$inboundSchema;
|
|
51
|
-
/**
|
|
52
|
-
* @internal
|
|
53
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
54
|
-
*/
|
|
55
|
-
export var OpenAIResponsesInputTypeFunctionCall$;
|
|
56
|
-
(function (OpenAIResponsesInputTypeFunctionCall$) {
|
|
57
|
-
/** @deprecated use `OpenAIResponsesInputTypeFunctionCall$inboundSchema` instead. */
|
|
58
|
-
OpenAIResponsesInputTypeFunctionCall$.inboundSchema = OpenAIResponsesInputTypeFunctionCall$inboundSchema;
|
|
59
|
-
/** @deprecated use `OpenAIResponsesInputTypeFunctionCall$outboundSchema` instead. */
|
|
60
|
-
OpenAIResponsesInputTypeFunctionCall$.outboundSchema = OpenAIResponsesInputTypeFunctionCall$outboundSchema;
|
|
61
|
-
})(OpenAIResponsesInputTypeFunctionCall$ || (OpenAIResponsesInputTypeFunctionCall$ = {}));
|
|
62
|
-
/** @internal */
|
|
63
50
|
export const OpenAIResponsesInputFunctionCall$inboundSchema = z.object({
|
|
64
51
|
type: OpenAIResponsesInputTypeFunctionCall$inboundSchema,
|
|
65
52
|
call_id: z.string(),
|
|
@@ -72,52 +59,12 @@ export const OpenAIResponsesInputFunctionCall$inboundSchema = z.object({
|
|
|
72
59
|
"call_id": "callId",
|
|
73
60
|
});
|
|
74
61
|
});
|
|
75
|
-
/** @internal */
|
|
76
|
-
export const OpenAIResponsesInputFunctionCall$outboundSchema = z.object({
|
|
77
|
-
type: OpenAIResponsesInputTypeFunctionCall$outboundSchema,
|
|
78
|
-
callId: z.string(),
|
|
79
|
-
name: z.string(),
|
|
80
|
-
arguments: z.string(),
|
|
81
|
-
id: z.string().optional(),
|
|
82
|
-
status: ToolCallStatus$outboundSchema.optional(),
|
|
83
|
-
}).transform((v) => {
|
|
84
|
-
return remap$(v, {
|
|
85
|
-
callId: "call_id",
|
|
86
|
-
});
|
|
87
|
-
});
|
|
88
|
-
/**
|
|
89
|
-
* @internal
|
|
90
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
91
|
-
*/
|
|
92
|
-
export var OpenAIResponsesInputFunctionCall$;
|
|
93
|
-
(function (OpenAIResponsesInputFunctionCall$) {
|
|
94
|
-
/** @deprecated use `OpenAIResponsesInputFunctionCall$inboundSchema` instead. */
|
|
95
|
-
OpenAIResponsesInputFunctionCall$.inboundSchema = OpenAIResponsesInputFunctionCall$inboundSchema;
|
|
96
|
-
/** @deprecated use `OpenAIResponsesInputFunctionCall$outboundSchema` instead. */
|
|
97
|
-
OpenAIResponsesInputFunctionCall$.outboundSchema = OpenAIResponsesInputFunctionCall$outboundSchema;
|
|
98
|
-
})(OpenAIResponsesInputFunctionCall$ || (OpenAIResponsesInputFunctionCall$ = {}));
|
|
99
|
-
export function openAIResponsesInputFunctionCallToJSON(openAIResponsesInputFunctionCall) {
|
|
100
|
-
return JSON.stringify(OpenAIResponsesInputFunctionCall$outboundSchema.parse(openAIResponsesInputFunctionCall));
|
|
101
|
-
}
|
|
102
62
|
export function openAIResponsesInputFunctionCallFromJSON(jsonString) {
|
|
103
63
|
return safeParse(jsonString, (x) => OpenAIResponsesInputFunctionCall$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenAIResponsesInputFunctionCall' from JSON`);
|
|
104
64
|
}
|
|
105
65
|
/** @internal */
|
|
106
66
|
export const OpenAIResponsesInputTypeFunctionCallOutput$inboundSchema = z.enum(OpenAIResponsesInputTypeFunctionCallOutput);
|
|
107
67
|
/** @internal */
|
|
108
|
-
export const OpenAIResponsesInputTypeFunctionCallOutput$outboundSchema = OpenAIResponsesInputTypeFunctionCallOutput$inboundSchema;
|
|
109
|
-
/**
|
|
110
|
-
* @internal
|
|
111
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
112
|
-
*/
|
|
113
|
-
export var OpenAIResponsesInputTypeFunctionCallOutput$;
|
|
114
|
-
(function (OpenAIResponsesInputTypeFunctionCallOutput$) {
|
|
115
|
-
/** @deprecated use `OpenAIResponsesInputTypeFunctionCallOutput$inboundSchema` instead. */
|
|
116
|
-
OpenAIResponsesInputTypeFunctionCallOutput$.inboundSchema = OpenAIResponsesInputTypeFunctionCallOutput$inboundSchema;
|
|
117
|
-
/** @deprecated use `OpenAIResponsesInputTypeFunctionCallOutput$outboundSchema` instead. */
|
|
118
|
-
OpenAIResponsesInputTypeFunctionCallOutput$.outboundSchema = OpenAIResponsesInputTypeFunctionCallOutput$outboundSchema;
|
|
119
|
-
})(OpenAIResponsesInputTypeFunctionCallOutput$ || (OpenAIResponsesInputTypeFunctionCallOutput$ = {}));
|
|
120
|
-
/** @internal */
|
|
121
68
|
export const OpenAIResponsesInputFunctionCallOutput$inboundSchema = z.object({
|
|
122
69
|
type: OpenAIResponsesInputTypeFunctionCallOutput$inboundSchema,
|
|
123
70
|
id: z.string(),
|
|
@@ -129,121 +76,23 @@ export const OpenAIResponsesInputFunctionCallOutput$inboundSchema = z.object({
|
|
|
129
76
|
"call_id": "callId",
|
|
130
77
|
});
|
|
131
78
|
});
|
|
132
|
-
/** @internal */
|
|
133
|
-
export const OpenAIResponsesInputFunctionCallOutput$outboundSchema = z.object({
|
|
134
|
-
type: OpenAIResponsesInputTypeFunctionCallOutput$outboundSchema,
|
|
135
|
-
id: z.string(),
|
|
136
|
-
callId: z.string(),
|
|
137
|
-
output: z.string(),
|
|
138
|
-
status: ToolCallStatus$outboundSchema.optional(),
|
|
139
|
-
}).transform((v) => {
|
|
140
|
-
return remap$(v, {
|
|
141
|
-
callId: "call_id",
|
|
142
|
-
});
|
|
143
|
-
});
|
|
144
|
-
/**
|
|
145
|
-
* @internal
|
|
146
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
147
|
-
*/
|
|
148
|
-
export var OpenAIResponsesInputFunctionCallOutput$;
|
|
149
|
-
(function (OpenAIResponsesInputFunctionCallOutput$) {
|
|
150
|
-
/** @deprecated use `OpenAIResponsesInputFunctionCallOutput$inboundSchema` instead. */
|
|
151
|
-
OpenAIResponsesInputFunctionCallOutput$.inboundSchema = OpenAIResponsesInputFunctionCallOutput$inboundSchema;
|
|
152
|
-
/** @deprecated use `OpenAIResponsesInputFunctionCallOutput$outboundSchema` instead. */
|
|
153
|
-
OpenAIResponsesInputFunctionCallOutput$.outboundSchema = OpenAIResponsesInputFunctionCallOutput$outboundSchema;
|
|
154
|
-
})(OpenAIResponsesInputFunctionCallOutput$ || (OpenAIResponsesInputFunctionCallOutput$ = {}));
|
|
155
|
-
export function openAIResponsesInputFunctionCallOutputToJSON(openAIResponsesInputFunctionCallOutput) {
|
|
156
|
-
return JSON.stringify(OpenAIResponsesInputFunctionCallOutput$outboundSchema.parse(openAIResponsesInputFunctionCallOutput));
|
|
157
|
-
}
|
|
158
79
|
export function openAIResponsesInputFunctionCallOutputFromJSON(jsonString) {
|
|
159
80
|
return safeParse(jsonString, (x) => OpenAIResponsesInputFunctionCallOutput$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenAIResponsesInputFunctionCallOutput' from JSON`);
|
|
160
81
|
}
|
|
161
82
|
/** @internal */
|
|
162
83
|
export const OpenAIResponsesInputTypeMessage2$inboundSchema = z.enum(OpenAIResponsesInputTypeMessage2);
|
|
163
84
|
/** @internal */
|
|
164
|
-
export const OpenAIResponsesInputTypeMessage2$outboundSchema = OpenAIResponsesInputTypeMessage2$inboundSchema;
|
|
165
|
-
/**
|
|
166
|
-
* @internal
|
|
167
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
168
|
-
*/
|
|
169
|
-
export var OpenAIResponsesInputTypeMessage2$;
|
|
170
|
-
(function (OpenAIResponsesInputTypeMessage2$) {
|
|
171
|
-
/** @deprecated use `OpenAIResponsesInputTypeMessage2$inboundSchema` instead. */
|
|
172
|
-
OpenAIResponsesInputTypeMessage2$.inboundSchema = OpenAIResponsesInputTypeMessage2$inboundSchema;
|
|
173
|
-
/** @deprecated use `OpenAIResponsesInputTypeMessage2$outboundSchema` instead. */
|
|
174
|
-
OpenAIResponsesInputTypeMessage2$.outboundSchema = OpenAIResponsesInputTypeMessage2$outboundSchema;
|
|
175
|
-
})(OpenAIResponsesInputTypeMessage2$ || (OpenAIResponsesInputTypeMessage2$ = {}));
|
|
176
|
-
/** @internal */
|
|
177
85
|
export const OpenAIResponsesInputRoleDeveloper2$inboundSchema = z.enum(OpenAIResponsesInputRoleDeveloper2);
|
|
178
86
|
/** @internal */
|
|
179
|
-
export const OpenAIResponsesInputRoleDeveloper2$outboundSchema = OpenAIResponsesInputRoleDeveloper2$inboundSchema;
|
|
180
|
-
/**
|
|
181
|
-
* @internal
|
|
182
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
183
|
-
*/
|
|
184
|
-
export var OpenAIResponsesInputRoleDeveloper2$;
|
|
185
|
-
(function (OpenAIResponsesInputRoleDeveloper2$) {
|
|
186
|
-
/** @deprecated use `OpenAIResponsesInputRoleDeveloper2$inboundSchema` instead. */
|
|
187
|
-
OpenAIResponsesInputRoleDeveloper2$.inboundSchema = OpenAIResponsesInputRoleDeveloper2$inboundSchema;
|
|
188
|
-
/** @deprecated use `OpenAIResponsesInputRoleDeveloper2$outboundSchema` instead. */
|
|
189
|
-
OpenAIResponsesInputRoleDeveloper2$.outboundSchema = OpenAIResponsesInputRoleDeveloper2$outboundSchema;
|
|
190
|
-
})(OpenAIResponsesInputRoleDeveloper2$ || (OpenAIResponsesInputRoleDeveloper2$ = {}));
|
|
191
|
-
/** @internal */
|
|
192
87
|
export const OpenAIResponsesInputRoleSystem2$inboundSchema = z.enum(OpenAIResponsesInputRoleSystem2);
|
|
193
88
|
/** @internal */
|
|
194
|
-
export const OpenAIResponsesInputRoleSystem2$outboundSchema = OpenAIResponsesInputRoleSystem2$inboundSchema;
|
|
195
|
-
/**
|
|
196
|
-
* @internal
|
|
197
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
198
|
-
*/
|
|
199
|
-
export var OpenAIResponsesInputRoleSystem2$;
|
|
200
|
-
(function (OpenAIResponsesInputRoleSystem2$) {
|
|
201
|
-
/** @deprecated use `OpenAIResponsesInputRoleSystem2$inboundSchema` instead. */
|
|
202
|
-
OpenAIResponsesInputRoleSystem2$.inboundSchema = OpenAIResponsesInputRoleSystem2$inboundSchema;
|
|
203
|
-
/** @deprecated use `OpenAIResponsesInputRoleSystem2$outboundSchema` instead. */
|
|
204
|
-
OpenAIResponsesInputRoleSystem2$.outboundSchema = OpenAIResponsesInputRoleSystem2$outboundSchema;
|
|
205
|
-
})(OpenAIResponsesInputRoleSystem2$ || (OpenAIResponsesInputRoleSystem2$ = {}));
|
|
206
|
-
/** @internal */
|
|
207
89
|
export const OpenAIResponsesInputRoleUser2$inboundSchema = z.enum(OpenAIResponsesInputRoleUser2);
|
|
208
90
|
/** @internal */
|
|
209
|
-
export const OpenAIResponsesInputRoleUser2$outboundSchema = OpenAIResponsesInputRoleUser2$inboundSchema;
|
|
210
|
-
/**
|
|
211
|
-
* @internal
|
|
212
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
213
|
-
*/
|
|
214
|
-
export var OpenAIResponsesInputRoleUser2$;
|
|
215
|
-
(function (OpenAIResponsesInputRoleUser2$) {
|
|
216
|
-
/** @deprecated use `OpenAIResponsesInputRoleUser2$inboundSchema` instead. */
|
|
217
|
-
OpenAIResponsesInputRoleUser2$.inboundSchema = OpenAIResponsesInputRoleUser2$inboundSchema;
|
|
218
|
-
/** @deprecated use `OpenAIResponsesInputRoleUser2$outboundSchema` instead. */
|
|
219
|
-
OpenAIResponsesInputRoleUser2$.outboundSchema = OpenAIResponsesInputRoleUser2$outboundSchema;
|
|
220
|
-
})(OpenAIResponsesInputRoleUser2$ || (OpenAIResponsesInputRoleUser2$ = {}));
|
|
221
|
-
/** @internal */
|
|
222
91
|
export const OpenAIResponsesInputRoleUnion2$inboundSchema = z.union([
|
|
223
92
|
OpenAIResponsesInputRoleUser2$inboundSchema,
|
|
224
93
|
OpenAIResponsesInputRoleSystem2$inboundSchema,
|
|
225
94
|
OpenAIResponsesInputRoleDeveloper2$inboundSchema,
|
|
226
95
|
]);
|
|
227
|
-
/** @internal */
|
|
228
|
-
export const OpenAIResponsesInputRoleUnion2$outboundSchema = z.union([
|
|
229
|
-
OpenAIResponsesInputRoleUser2$outboundSchema,
|
|
230
|
-
OpenAIResponsesInputRoleSystem2$outboundSchema,
|
|
231
|
-
OpenAIResponsesInputRoleDeveloper2$outboundSchema,
|
|
232
|
-
]);
|
|
233
|
-
/**
|
|
234
|
-
* @internal
|
|
235
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
236
|
-
*/
|
|
237
|
-
export var OpenAIResponsesInputRoleUnion2$;
|
|
238
|
-
(function (OpenAIResponsesInputRoleUnion2$) {
|
|
239
|
-
/** @deprecated use `OpenAIResponsesInputRoleUnion2$inboundSchema` instead. */
|
|
240
|
-
OpenAIResponsesInputRoleUnion2$.inboundSchema = OpenAIResponsesInputRoleUnion2$inboundSchema;
|
|
241
|
-
/** @deprecated use `OpenAIResponsesInputRoleUnion2$outboundSchema` instead. */
|
|
242
|
-
OpenAIResponsesInputRoleUnion2$.outboundSchema = OpenAIResponsesInputRoleUnion2$outboundSchema;
|
|
243
|
-
})(OpenAIResponsesInputRoleUnion2$ || (OpenAIResponsesInputRoleUnion2$ = {}));
|
|
244
|
-
export function openAIResponsesInputRoleUnion2ToJSON(openAIResponsesInputRoleUnion2) {
|
|
245
|
-
return JSON.stringify(OpenAIResponsesInputRoleUnion2$outboundSchema.parse(openAIResponsesInputRoleUnion2));
|
|
246
|
-
}
|
|
247
96
|
export function openAIResponsesInputRoleUnion2FromJSON(jsonString) {
|
|
248
97
|
return safeParse(jsonString, (x) => OpenAIResponsesInputRoleUnion2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenAIResponsesInputRoleUnion2' from JSON`);
|
|
249
98
|
}
|
|
@@ -262,35 +111,6 @@ export const OpenAIResponsesInputContent3$inboundSchema = z.union([
|
|
|
262
111
|
type: v.type,
|
|
263
112
|
}))),
|
|
264
113
|
]);
|
|
265
|
-
/** @internal */
|
|
266
|
-
export const OpenAIResponsesInputContent3$outboundSchema = z.union([
|
|
267
|
-
ResponseInputText$outboundSchema.and(z.object({ type: z.literal("input_text") }).transform((v) => ({
|
|
268
|
-
type: v.type,
|
|
269
|
-
}))),
|
|
270
|
-
ResponseInputImage$outboundSchema.and(z.object({ type: z.literal("input_image") }).transform((v) => ({
|
|
271
|
-
type: v.type,
|
|
272
|
-
}))),
|
|
273
|
-
ResponseInputAudio$outboundSchema.and(z.object({ type: z.literal("input_audio") }).transform((v) => ({
|
|
274
|
-
type: v.type,
|
|
275
|
-
}))),
|
|
276
|
-
ResponseInputFile$outboundSchema.and(z.object({ type: z.literal("input_file") }).transform((v) => ({
|
|
277
|
-
type: v.type,
|
|
278
|
-
}))),
|
|
279
|
-
]);
|
|
280
|
-
/**
|
|
281
|
-
* @internal
|
|
282
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
283
|
-
*/
|
|
284
|
-
export var OpenAIResponsesInputContent3$;
|
|
285
|
-
(function (OpenAIResponsesInputContent3$) {
|
|
286
|
-
/** @deprecated use `OpenAIResponsesInputContent3$inboundSchema` instead. */
|
|
287
|
-
OpenAIResponsesInputContent3$.inboundSchema = OpenAIResponsesInputContent3$inboundSchema;
|
|
288
|
-
/** @deprecated use `OpenAIResponsesInputContent3$outboundSchema` instead. */
|
|
289
|
-
OpenAIResponsesInputContent3$.outboundSchema = OpenAIResponsesInputContent3$outboundSchema;
|
|
290
|
-
})(OpenAIResponsesInputContent3$ || (OpenAIResponsesInputContent3$ = {}));
|
|
291
|
-
export function openAIResponsesInputContent3ToJSON(openAIResponsesInputContent3) {
|
|
292
|
-
return JSON.stringify(OpenAIResponsesInputContent3$outboundSchema.parse(openAIResponsesInputContent3));
|
|
293
|
-
}
|
|
294
114
|
export function openAIResponsesInputContent3FromJSON(jsonString) {
|
|
295
115
|
return safeParse(jsonString, (x) => OpenAIResponsesInputContent3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenAIResponsesInputContent3' from JSON`);
|
|
296
116
|
}
|
|
@@ -318,150 +138,26 @@ export const OpenAIResponsesInputMessage2$inboundSchema = z.object({
|
|
|
318
138
|
}))),
|
|
319
139
|
])),
|
|
320
140
|
});
|
|
321
|
-
/** @internal */
|
|
322
|
-
export const OpenAIResponsesInputMessage2$outboundSchema = z.object({
|
|
323
|
-
id: z.string(),
|
|
324
|
-
type: OpenAIResponsesInputTypeMessage2$outboundSchema.optional(),
|
|
325
|
-
role: z.union([
|
|
326
|
-
OpenAIResponsesInputRoleUser2$outboundSchema,
|
|
327
|
-
OpenAIResponsesInputRoleSystem2$outboundSchema,
|
|
328
|
-
OpenAIResponsesInputRoleDeveloper2$outboundSchema,
|
|
329
|
-
]),
|
|
330
|
-
content: z.array(z.union([
|
|
331
|
-
ResponseInputText$outboundSchema.and(z.object({ type: z.literal("input_text") }).transform((v) => ({
|
|
332
|
-
type: v.type,
|
|
333
|
-
}))),
|
|
334
|
-
ResponseInputImage$outboundSchema.and(z.object({ type: z.literal("input_image") }).transform((v) => ({
|
|
335
|
-
type: v.type,
|
|
336
|
-
}))),
|
|
337
|
-
ResponseInputAudio$outboundSchema.and(z.object({ type: z.literal("input_audio") }).transform((v) => ({
|
|
338
|
-
type: v.type,
|
|
339
|
-
}))),
|
|
340
|
-
ResponseInputFile$outboundSchema.and(z.object({ type: z.literal("input_file") }).transform((v) => ({
|
|
341
|
-
type: v.type,
|
|
342
|
-
}))),
|
|
343
|
-
])),
|
|
344
|
-
});
|
|
345
|
-
/**
|
|
346
|
-
* @internal
|
|
347
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
348
|
-
*/
|
|
349
|
-
export var OpenAIResponsesInputMessage2$;
|
|
350
|
-
(function (OpenAIResponsesInputMessage2$) {
|
|
351
|
-
/** @deprecated use `OpenAIResponsesInputMessage2$inboundSchema` instead. */
|
|
352
|
-
OpenAIResponsesInputMessage2$.inboundSchema = OpenAIResponsesInputMessage2$inboundSchema;
|
|
353
|
-
/** @deprecated use `OpenAIResponsesInputMessage2$outboundSchema` instead. */
|
|
354
|
-
OpenAIResponsesInputMessage2$.outboundSchema = OpenAIResponsesInputMessage2$outboundSchema;
|
|
355
|
-
})(OpenAIResponsesInputMessage2$ || (OpenAIResponsesInputMessage2$ = {}));
|
|
356
|
-
export function openAIResponsesInputMessage2ToJSON(openAIResponsesInputMessage2) {
|
|
357
|
-
return JSON.stringify(OpenAIResponsesInputMessage2$outboundSchema.parse(openAIResponsesInputMessage2));
|
|
358
|
-
}
|
|
359
141
|
export function openAIResponsesInputMessage2FromJSON(jsonString) {
|
|
360
142
|
return safeParse(jsonString, (x) => OpenAIResponsesInputMessage2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenAIResponsesInputMessage2' from JSON`);
|
|
361
143
|
}
|
|
362
144
|
/** @internal */
|
|
363
145
|
export const OpenAIResponsesInputTypeMessage1$inboundSchema = z.enum(OpenAIResponsesInputTypeMessage1);
|
|
364
146
|
/** @internal */
|
|
365
|
-
export const OpenAIResponsesInputTypeMessage1$outboundSchema = OpenAIResponsesInputTypeMessage1$inboundSchema;
|
|
366
|
-
/**
|
|
367
|
-
* @internal
|
|
368
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
369
|
-
*/
|
|
370
|
-
export var OpenAIResponsesInputTypeMessage1$;
|
|
371
|
-
(function (OpenAIResponsesInputTypeMessage1$) {
|
|
372
|
-
/** @deprecated use `OpenAIResponsesInputTypeMessage1$inboundSchema` instead. */
|
|
373
|
-
OpenAIResponsesInputTypeMessage1$.inboundSchema = OpenAIResponsesInputTypeMessage1$inboundSchema;
|
|
374
|
-
/** @deprecated use `OpenAIResponsesInputTypeMessage1$outboundSchema` instead. */
|
|
375
|
-
OpenAIResponsesInputTypeMessage1$.outboundSchema = OpenAIResponsesInputTypeMessage1$outboundSchema;
|
|
376
|
-
})(OpenAIResponsesInputTypeMessage1$ || (OpenAIResponsesInputTypeMessage1$ = {}));
|
|
377
|
-
/** @internal */
|
|
378
147
|
export const OpenAIResponsesInputRoleDeveloper1$inboundSchema = z.enum(OpenAIResponsesInputRoleDeveloper1);
|
|
379
148
|
/** @internal */
|
|
380
|
-
export const OpenAIResponsesInputRoleDeveloper1$outboundSchema = OpenAIResponsesInputRoleDeveloper1$inboundSchema;
|
|
381
|
-
/**
|
|
382
|
-
* @internal
|
|
383
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
384
|
-
*/
|
|
385
|
-
export var OpenAIResponsesInputRoleDeveloper1$;
|
|
386
|
-
(function (OpenAIResponsesInputRoleDeveloper1$) {
|
|
387
|
-
/** @deprecated use `OpenAIResponsesInputRoleDeveloper1$inboundSchema` instead. */
|
|
388
|
-
OpenAIResponsesInputRoleDeveloper1$.inboundSchema = OpenAIResponsesInputRoleDeveloper1$inboundSchema;
|
|
389
|
-
/** @deprecated use `OpenAIResponsesInputRoleDeveloper1$outboundSchema` instead. */
|
|
390
|
-
OpenAIResponsesInputRoleDeveloper1$.outboundSchema = OpenAIResponsesInputRoleDeveloper1$outboundSchema;
|
|
391
|
-
})(OpenAIResponsesInputRoleDeveloper1$ || (OpenAIResponsesInputRoleDeveloper1$ = {}));
|
|
392
|
-
/** @internal */
|
|
393
149
|
export const OpenAIResponsesInputRoleAssistant$inboundSchema = z.enum(OpenAIResponsesInputRoleAssistant);
|
|
394
150
|
/** @internal */
|
|
395
|
-
export const OpenAIResponsesInputRoleAssistant$outboundSchema = OpenAIResponsesInputRoleAssistant$inboundSchema;
|
|
396
|
-
/**
|
|
397
|
-
* @internal
|
|
398
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
399
|
-
*/
|
|
400
|
-
export var OpenAIResponsesInputRoleAssistant$;
|
|
401
|
-
(function (OpenAIResponsesInputRoleAssistant$) {
|
|
402
|
-
/** @deprecated use `OpenAIResponsesInputRoleAssistant$inboundSchema` instead. */
|
|
403
|
-
OpenAIResponsesInputRoleAssistant$.inboundSchema = OpenAIResponsesInputRoleAssistant$inboundSchema;
|
|
404
|
-
/** @deprecated use `OpenAIResponsesInputRoleAssistant$outboundSchema` instead. */
|
|
405
|
-
OpenAIResponsesInputRoleAssistant$.outboundSchema = OpenAIResponsesInputRoleAssistant$outboundSchema;
|
|
406
|
-
})(OpenAIResponsesInputRoleAssistant$ || (OpenAIResponsesInputRoleAssistant$ = {}));
|
|
407
|
-
/** @internal */
|
|
408
151
|
export const OpenAIResponsesInputRoleSystem1$inboundSchema = z.enum(OpenAIResponsesInputRoleSystem1);
|
|
409
152
|
/** @internal */
|
|
410
|
-
export const OpenAIResponsesInputRoleSystem1$outboundSchema = OpenAIResponsesInputRoleSystem1$inboundSchema;
|
|
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 var OpenAIResponsesInputRoleSystem1$;
|
|
416
|
-
(function (OpenAIResponsesInputRoleSystem1$) {
|
|
417
|
-
/** @deprecated use `OpenAIResponsesInputRoleSystem1$inboundSchema` instead. */
|
|
418
|
-
OpenAIResponsesInputRoleSystem1$.inboundSchema = OpenAIResponsesInputRoleSystem1$inboundSchema;
|
|
419
|
-
/** @deprecated use `OpenAIResponsesInputRoleSystem1$outboundSchema` instead. */
|
|
420
|
-
OpenAIResponsesInputRoleSystem1$.outboundSchema = OpenAIResponsesInputRoleSystem1$outboundSchema;
|
|
421
|
-
})(OpenAIResponsesInputRoleSystem1$ || (OpenAIResponsesInputRoleSystem1$ = {}));
|
|
422
|
-
/** @internal */
|
|
423
153
|
export const OpenAIResponsesInputRoleUser1$inboundSchema = z.enum(OpenAIResponsesInputRoleUser1);
|
|
424
154
|
/** @internal */
|
|
425
|
-
export const OpenAIResponsesInputRoleUser1$outboundSchema = OpenAIResponsesInputRoleUser1$inboundSchema;
|
|
426
|
-
/**
|
|
427
|
-
* @internal
|
|
428
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
429
|
-
*/
|
|
430
|
-
export var OpenAIResponsesInputRoleUser1$;
|
|
431
|
-
(function (OpenAIResponsesInputRoleUser1$) {
|
|
432
|
-
/** @deprecated use `OpenAIResponsesInputRoleUser1$inboundSchema` instead. */
|
|
433
|
-
OpenAIResponsesInputRoleUser1$.inboundSchema = OpenAIResponsesInputRoleUser1$inboundSchema;
|
|
434
|
-
/** @deprecated use `OpenAIResponsesInputRoleUser1$outboundSchema` instead. */
|
|
435
|
-
OpenAIResponsesInputRoleUser1$.outboundSchema = OpenAIResponsesInputRoleUser1$outboundSchema;
|
|
436
|
-
})(OpenAIResponsesInputRoleUser1$ || (OpenAIResponsesInputRoleUser1$ = {}));
|
|
437
|
-
/** @internal */
|
|
438
155
|
export const OpenAIResponsesInputRoleUnion1$inboundSchema = z.union([
|
|
439
156
|
OpenAIResponsesInputRoleUser1$inboundSchema,
|
|
440
157
|
OpenAIResponsesInputRoleSystem1$inboundSchema,
|
|
441
158
|
OpenAIResponsesInputRoleAssistant$inboundSchema,
|
|
442
159
|
OpenAIResponsesInputRoleDeveloper1$inboundSchema,
|
|
443
160
|
]);
|
|
444
|
-
/** @internal */
|
|
445
|
-
export const OpenAIResponsesInputRoleUnion1$outboundSchema = z.union([
|
|
446
|
-
OpenAIResponsesInputRoleUser1$outboundSchema,
|
|
447
|
-
OpenAIResponsesInputRoleSystem1$outboundSchema,
|
|
448
|
-
OpenAIResponsesInputRoleAssistant$outboundSchema,
|
|
449
|
-
OpenAIResponsesInputRoleDeveloper1$outboundSchema,
|
|
450
|
-
]);
|
|
451
|
-
/**
|
|
452
|
-
* @internal
|
|
453
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
454
|
-
*/
|
|
455
|
-
export var OpenAIResponsesInputRoleUnion1$;
|
|
456
|
-
(function (OpenAIResponsesInputRoleUnion1$) {
|
|
457
|
-
/** @deprecated use `OpenAIResponsesInputRoleUnion1$inboundSchema` instead. */
|
|
458
|
-
OpenAIResponsesInputRoleUnion1$.inboundSchema = OpenAIResponsesInputRoleUnion1$inboundSchema;
|
|
459
|
-
/** @deprecated use `OpenAIResponsesInputRoleUnion1$outboundSchema` instead. */
|
|
460
|
-
OpenAIResponsesInputRoleUnion1$.outboundSchema = OpenAIResponsesInputRoleUnion1$outboundSchema;
|
|
461
|
-
})(OpenAIResponsesInputRoleUnion1$ || (OpenAIResponsesInputRoleUnion1$ = {}));
|
|
462
|
-
export function openAIResponsesInputRoleUnion1ToJSON(openAIResponsesInputRoleUnion1) {
|
|
463
|
-
return JSON.stringify(OpenAIResponsesInputRoleUnion1$outboundSchema.parse(openAIResponsesInputRoleUnion1));
|
|
464
|
-
}
|
|
465
161
|
export function openAIResponsesInputRoleUnion1FromJSON(jsonString) {
|
|
466
162
|
return safeParse(jsonString, (x) => OpenAIResponsesInputRoleUnion1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenAIResponsesInputRoleUnion1' from JSON`);
|
|
467
163
|
}
|
|
@@ -480,35 +176,6 @@ export const OpenAIResponsesInputContent1$inboundSchema = z.union([
|
|
|
480
176
|
type: v.type,
|
|
481
177
|
}))),
|
|
482
178
|
]);
|
|
483
|
-
/** @internal */
|
|
484
|
-
export const OpenAIResponsesInputContent1$outboundSchema = z.union([
|
|
485
|
-
ResponseInputText$outboundSchema.and(z.object({ type: z.literal("input_text") }).transform((v) => ({
|
|
486
|
-
type: v.type,
|
|
487
|
-
}))),
|
|
488
|
-
ResponseInputImage$outboundSchema.and(z.object({ type: z.literal("input_image") }).transform((v) => ({
|
|
489
|
-
type: v.type,
|
|
490
|
-
}))),
|
|
491
|
-
ResponseInputAudio$outboundSchema.and(z.object({ type: z.literal("input_audio") }).transform((v) => ({
|
|
492
|
-
type: v.type,
|
|
493
|
-
}))),
|
|
494
|
-
ResponseInputFile$outboundSchema.and(z.object({ type: z.literal("input_file") }).transform((v) => ({
|
|
495
|
-
type: v.type,
|
|
496
|
-
}))),
|
|
497
|
-
]);
|
|
498
|
-
/**
|
|
499
|
-
* @internal
|
|
500
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
501
|
-
*/
|
|
502
|
-
export var OpenAIResponsesInputContent1$;
|
|
503
|
-
(function (OpenAIResponsesInputContent1$) {
|
|
504
|
-
/** @deprecated use `OpenAIResponsesInputContent1$inboundSchema` instead. */
|
|
505
|
-
OpenAIResponsesInputContent1$.inboundSchema = OpenAIResponsesInputContent1$inboundSchema;
|
|
506
|
-
/** @deprecated use `OpenAIResponsesInputContent1$outboundSchema` instead. */
|
|
507
|
-
OpenAIResponsesInputContent1$.outboundSchema = OpenAIResponsesInputContent1$outboundSchema;
|
|
508
|
-
})(OpenAIResponsesInputContent1$ || (OpenAIResponsesInputContent1$ = {}));
|
|
509
|
-
export function openAIResponsesInputContent1ToJSON(openAIResponsesInputContent1) {
|
|
510
|
-
return JSON.stringify(OpenAIResponsesInputContent1$outboundSchema.parse(openAIResponsesInputContent1));
|
|
511
|
-
}
|
|
512
179
|
export function openAIResponsesInputContent1FromJSON(jsonString) {
|
|
513
180
|
return safeParse(jsonString, (x) => OpenAIResponsesInputContent1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenAIResponsesInputContent1' from JSON`);
|
|
514
181
|
}
|
|
@@ -530,38 +197,6 @@ export const OpenAIResponsesInputContent2$inboundSchema = z.union([
|
|
|
530
197
|
])),
|
|
531
198
|
z.string(),
|
|
532
199
|
]);
|
|
533
|
-
/** @internal */
|
|
534
|
-
export const OpenAIResponsesInputContent2$outboundSchema = z.union([
|
|
535
|
-
z.array(z.union([
|
|
536
|
-
ResponseInputText$outboundSchema.and(z.object({ type: z.literal("input_text") }).transform((v) => ({
|
|
537
|
-
type: v.type,
|
|
538
|
-
}))),
|
|
539
|
-
ResponseInputImage$outboundSchema.and(z.object({ type: z.literal("input_image") }).transform((v) => ({
|
|
540
|
-
type: v.type,
|
|
541
|
-
}))),
|
|
542
|
-
ResponseInputAudio$outboundSchema.and(z.object({ type: z.literal("input_audio") }).transform((v) => ({
|
|
543
|
-
type: v.type,
|
|
544
|
-
}))),
|
|
545
|
-
ResponseInputFile$outboundSchema.and(z.object({ type: z.literal("input_file") }).transform((v) => ({
|
|
546
|
-
type: v.type,
|
|
547
|
-
}))),
|
|
548
|
-
])),
|
|
549
|
-
z.string(),
|
|
550
|
-
]);
|
|
551
|
-
/**
|
|
552
|
-
* @internal
|
|
553
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
554
|
-
*/
|
|
555
|
-
export var OpenAIResponsesInputContent2$;
|
|
556
|
-
(function (OpenAIResponsesInputContent2$) {
|
|
557
|
-
/** @deprecated use `OpenAIResponsesInputContent2$inboundSchema` instead. */
|
|
558
|
-
OpenAIResponsesInputContent2$.inboundSchema = OpenAIResponsesInputContent2$inboundSchema;
|
|
559
|
-
/** @deprecated use `OpenAIResponsesInputContent2$outboundSchema` instead. */
|
|
560
|
-
OpenAIResponsesInputContent2$.outboundSchema = OpenAIResponsesInputContent2$outboundSchema;
|
|
561
|
-
})(OpenAIResponsesInputContent2$ || (OpenAIResponsesInputContent2$ = {}));
|
|
562
|
-
export function openAIResponsesInputContent2ToJSON(openAIResponsesInputContent2) {
|
|
563
|
-
return JSON.stringify(OpenAIResponsesInputContent2$outboundSchema.parse(openAIResponsesInputContent2));
|
|
564
|
-
}
|
|
565
200
|
export function openAIResponsesInputContent2FromJSON(jsonString) {
|
|
566
201
|
return safeParse(jsonString, (x) => OpenAIResponsesInputContent2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenAIResponsesInputContent2' from JSON`);
|
|
567
202
|
}
|
|
@@ -592,47 +227,6 @@ export const OpenAIResponsesInputMessage1$inboundSchema = z.object({
|
|
|
592
227
|
z.string(),
|
|
593
228
|
]),
|
|
594
229
|
});
|
|
595
|
-
/** @internal */
|
|
596
|
-
export const OpenAIResponsesInputMessage1$outboundSchema = z.object({
|
|
597
|
-
type: OpenAIResponsesInputTypeMessage1$outboundSchema.optional(),
|
|
598
|
-
role: z.union([
|
|
599
|
-
OpenAIResponsesInputRoleUser1$outboundSchema,
|
|
600
|
-
OpenAIResponsesInputRoleSystem1$outboundSchema,
|
|
601
|
-
OpenAIResponsesInputRoleAssistant$outboundSchema,
|
|
602
|
-
OpenAIResponsesInputRoleDeveloper1$outboundSchema,
|
|
603
|
-
]),
|
|
604
|
-
content: z.union([
|
|
605
|
-
z.array(z.union([
|
|
606
|
-
ResponseInputText$outboundSchema.and(z.object({ type: z.literal("input_text") }).transform((v) => ({
|
|
607
|
-
type: v.type,
|
|
608
|
-
}))),
|
|
609
|
-
ResponseInputImage$outboundSchema.and(z.object({ type: z.literal("input_image") }).transform((v) => ({
|
|
610
|
-
type: v.type,
|
|
611
|
-
}))),
|
|
612
|
-
ResponseInputAudio$outboundSchema.and(z.object({ type: z.literal("input_audio") }).transform((v) => ({
|
|
613
|
-
type: v.type,
|
|
614
|
-
}))),
|
|
615
|
-
ResponseInputFile$outboundSchema.and(z.object({ type: z.literal("input_file") }).transform((v) => ({
|
|
616
|
-
type: v.type,
|
|
617
|
-
}))),
|
|
618
|
-
])),
|
|
619
|
-
z.string(),
|
|
620
|
-
]),
|
|
621
|
-
});
|
|
622
|
-
/**
|
|
623
|
-
* @internal
|
|
624
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
625
|
-
*/
|
|
626
|
-
export var OpenAIResponsesInputMessage1$;
|
|
627
|
-
(function (OpenAIResponsesInputMessage1$) {
|
|
628
|
-
/** @deprecated use `OpenAIResponsesInputMessage1$inboundSchema` instead. */
|
|
629
|
-
OpenAIResponsesInputMessage1$.inboundSchema = OpenAIResponsesInputMessage1$inboundSchema;
|
|
630
|
-
/** @deprecated use `OpenAIResponsesInputMessage1$outboundSchema` instead. */
|
|
631
|
-
OpenAIResponsesInputMessage1$.outboundSchema = OpenAIResponsesInputMessage1$outboundSchema;
|
|
632
|
-
})(OpenAIResponsesInputMessage1$ || (OpenAIResponsesInputMessage1$ = {}));
|
|
633
|
-
export function openAIResponsesInputMessage1ToJSON(openAIResponsesInputMessage1) {
|
|
634
|
-
return JSON.stringify(OpenAIResponsesInputMessage1$outboundSchema.parse(openAIResponsesInputMessage1));
|
|
635
|
-
}
|
|
636
230
|
export function openAIResponsesInputMessage1FromJSON(jsonString) {
|
|
637
231
|
return safeParse(jsonString, (x) => OpenAIResponsesInputMessage1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenAIResponsesInputMessage1' from JSON`);
|
|
638
232
|
}
|
|
@@ -645,29 +239,6 @@ export const OpenAIResponsesInputUnion1$inboundSchema = z.union([
|
|
|
645
239
|
z.lazy(() => OpenAIResponsesInputMessage2$inboundSchema),
|
|
646
240
|
z.lazy(() => OpenAIResponsesInputMessage1$inboundSchema),
|
|
647
241
|
]);
|
|
648
|
-
/** @internal */
|
|
649
|
-
export const OpenAIResponsesInputUnion1$outboundSchema = z.union([
|
|
650
|
-
z.lazy(() => OpenAIResponsesInputFunctionCallOutput$outboundSchema),
|
|
651
|
-
z.lazy(() => OpenAIResponsesInputFunctionCall$outboundSchema),
|
|
652
|
-
OutputItemImageGenerationCall$outboundSchema,
|
|
653
|
-
OutputMessage$outboundSchema,
|
|
654
|
-
z.lazy(() => OpenAIResponsesInputMessage2$outboundSchema),
|
|
655
|
-
z.lazy(() => OpenAIResponsesInputMessage1$outboundSchema),
|
|
656
|
-
]);
|
|
657
|
-
/**
|
|
658
|
-
* @internal
|
|
659
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
660
|
-
*/
|
|
661
|
-
export var OpenAIResponsesInputUnion1$;
|
|
662
|
-
(function (OpenAIResponsesInputUnion1$) {
|
|
663
|
-
/** @deprecated use `OpenAIResponsesInputUnion1$inboundSchema` instead. */
|
|
664
|
-
OpenAIResponsesInputUnion1$.inboundSchema = OpenAIResponsesInputUnion1$inboundSchema;
|
|
665
|
-
/** @deprecated use `OpenAIResponsesInputUnion1$outboundSchema` instead. */
|
|
666
|
-
OpenAIResponsesInputUnion1$.outboundSchema = OpenAIResponsesInputUnion1$outboundSchema;
|
|
667
|
-
})(OpenAIResponsesInputUnion1$ || (OpenAIResponsesInputUnion1$ = {}));
|
|
668
|
-
export function openAIResponsesInputUnion1ToJSON(openAIResponsesInputUnion1) {
|
|
669
|
-
return JSON.stringify(OpenAIResponsesInputUnion1$outboundSchema.parse(openAIResponsesInputUnion1));
|
|
670
|
-
}
|
|
671
242
|
export function openAIResponsesInputUnion1FromJSON(jsonString) {
|
|
672
243
|
return safeParse(jsonString, (x) => OpenAIResponsesInputUnion1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenAIResponsesInputUnion1' from JSON`);
|
|
673
244
|
}
|
|
@@ -684,33 +255,6 @@ export const OpenAIResponsesInputUnion$inboundSchema = z.union([
|
|
|
684
255
|
])),
|
|
685
256
|
z.any(),
|
|
686
257
|
]);
|
|
687
|
-
/** @internal */
|
|
688
|
-
export const OpenAIResponsesInputUnion$outboundSchema = z.union([
|
|
689
|
-
z.string(),
|
|
690
|
-
z.array(z.union([
|
|
691
|
-
z.lazy(() => OpenAIResponsesInputFunctionCallOutput$outboundSchema),
|
|
692
|
-
z.lazy(() => OpenAIResponsesInputFunctionCall$outboundSchema),
|
|
693
|
-
OutputItemImageGenerationCall$outboundSchema,
|
|
694
|
-
OutputMessage$outboundSchema,
|
|
695
|
-
z.lazy(() => OpenAIResponsesInputMessage2$outboundSchema),
|
|
696
|
-
z.lazy(() => OpenAIResponsesInputMessage1$outboundSchema),
|
|
697
|
-
])),
|
|
698
|
-
z.any(),
|
|
699
|
-
]);
|
|
700
|
-
/**
|
|
701
|
-
* @internal
|
|
702
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
703
|
-
*/
|
|
704
|
-
export var OpenAIResponsesInputUnion$;
|
|
705
|
-
(function (OpenAIResponsesInputUnion$) {
|
|
706
|
-
/** @deprecated use `OpenAIResponsesInputUnion$inboundSchema` instead. */
|
|
707
|
-
OpenAIResponsesInputUnion$.inboundSchema = OpenAIResponsesInputUnion$inboundSchema;
|
|
708
|
-
/** @deprecated use `OpenAIResponsesInputUnion$outboundSchema` instead. */
|
|
709
|
-
OpenAIResponsesInputUnion$.outboundSchema = OpenAIResponsesInputUnion$outboundSchema;
|
|
710
|
-
})(OpenAIResponsesInputUnion$ || (OpenAIResponsesInputUnion$ = {}));
|
|
711
|
-
export function openAIResponsesInputUnionToJSON(openAIResponsesInputUnion) {
|
|
712
|
-
return JSON.stringify(OpenAIResponsesInputUnion$outboundSchema.parse(openAIResponsesInputUnion));
|
|
713
|
-
}
|
|
714
258
|
export function openAIResponsesInputUnionFromJSON(jsonString) {
|
|
715
259
|
return safeParse(jsonString, (x) => OpenAIResponsesInputUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenAIResponsesInputUnion' from JSON`);
|
|
716
260
|
}
|
|
@@ -17,18 +17,6 @@ export declare const Variables$inboundSchema: z.ZodType<Variables, unknown>;
|
|
|
17
17
|
export type Variables$Outbound = ResponseInputText$Outbound | ResponseInputImage$Outbound | ResponseInputFile$Outbound | string;
|
|
18
18
|
/** @internal */
|
|
19
19
|
export declare const Variables$outboundSchema: z.ZodType<Variables$Outbound, Variables>;
|
|
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 Variables$ {
|
|
25
|
-
/** @deprecated use `Variables$inboundSchema` instead. */
|
|
26
|
-
const inboundSchema: z.ZodType<Variables, unknown, z.core.$ZodTypeInternals<Variables, unknown>>;
|
|
27
|
-
/** @deprecated use `Variables$outboundSchema` instead. */
|
|
28
|
-
const outboundSchema: z.ZodType<Variables$Outbound, Variables, z.core.$ZodTypeInternals<Variables$Outbound, Variables>>;
|
|
29
|
-
/** @deprecated use `Variables$Outbound` instead. */
|
|
30
|
-
type Outbound = Variables$Outbound;
|
|
31
|
-
}
|
|
32
20
|
export declare function variablesToJSON(variables: Variables): string;
|
|
33
21
|
export declare function variablesFromJSON(jsonString: string): SafeParseResult<Variables, SDKValidationError>;
|
|
34
22
|
/** @internal */
|
|
@@ -42,18 +30,6 @@ export type OpenAIResponsesPrompt$Outbound = {
|
|
|
42
30
|
};
|
|
43
31
|
/** @internal */
|
|
44
32
|
export declare const OpenAIResponsesPrompt$outboundSchema: z.ZodType<OpenAIResponsesPrompt$Outbound, OpenAIResponsesPrompt>;
|
|
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 OpenAIResponsesPrompt$ {
|
|
50
|
-
/** @deprecated use `OpenAIResponsesPrompt$inboundSchema` instead. */
|
|
51
|
-
const inboundSchema: z.ZodType<OpenAIResponsesPrompt, unknown, z.core.$ZodTypeInternals<OpenAIResponsesPrompt, unknown>>;
|
|
52
|
-
/** @deprecated use `OpenAIResponsesPrompt$outboundSchema` instead. */
|
|
53
|
-
const outboundSchema: z.ZodType<OpenAIResponsesPrompt$Outbound, OpenAIResponsesPrompt, z.core.$ZodTypeInternals<OpenAIResponsesPrompt$Outbound, OpenAIResponsesPrompt>>;
|
|
54
|
-
/** @deprecated use `OpenAIResponsesPrompt$Outbound` instead. */
|
|
55
|
-
type Outbound = OpenAIResponsesPrompt$Outbound;
|
|
56
|
-
}
|
|
57
33
|
export declare function openAIResponsesPromptToJSON(openAIResponsesPrompt: OpenAIResponsesPrompt): string;
|
|
58
34
|
export declare function openAIResponsesPromptFromJSON(jsonString: string): SafeParseResult<OpenAIResponsesPrompt, SDKValidationError>;
|
|
59
35
|
//# sourceMappingURL=openairesponsesprompt.d.ts.map
|
|
@@ -20,17 +20,6 @@ export const Variables$outboundSchema = z.union([
|
|
|
20
20
|
ResponseInputFile$outboundSchema,
|
|
21
21
|
z.string(),
|
|
22
22
|
]);
|
|
23
|
-
/**
|
|
24
|
-
* @internal
|
|
25
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
26
|
-
*/
|
|
27
|
-
export var Variables$;
|
|
28
|
-
(function (Variables$) {
|
|
29
|
-
/** @deprecated use `Variables$inboundSchema` instead. */
|
|
30
|
-
Variables$.inboundSchema = Variables$inboundSchema;
|
|
31
|
-
/** @deprecated use `Variables$outboundSchema` instead. */
|
|
32
|
-
Variables$.outboundSchema = Variables$outboundSchema;
|
|
33
|
-
})(Variables$ || (Variables$ = {}));
|
|
34
23
|
export function variablesToJSON(variables) {
|
|
35
24
|
return JSON.stringify(Variables$outboundSchema.parse(variables));
|
|
36
25
|
}
|
|
@@ -57,17 +46,6 @@ export const OpenAIResponsesPrompt$outboundSchema = z.object({
|
|
|
57
46
|
z.string(),
|
|
58
47
|
]))).optional(),
|
|
59
48
|
});
|
|
60
|
-
/**
|
|
61
|
-
* @internal
|
|
62
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
63
|
-
*/
|
|
64
|
-
export var OpenAIResponsesPrompt$;
|
|
65
|
-
(function (OpenAIResponsesPrompt$) {
|
|
66
|
-
/** @deprecated use `OpenAIResponsesPrompt$inboundSchema` instead. */
|
|
67
|
-
OpenAIResponsesPrompt$.inboundSchema = OpenAIResponsesPrompt$inboundSchema;
|
|
68
|
-
/** @deprecated use `OpenAIResponsesPrompt$outboundSchema` instead. */
|
|
69
|
-
OpenAIResponsesPrompt$.outboundSchema = OpenAIResponsesPrompt$outboundSchema;
|
|
70
|
-
})(OpenAIResponsesPrompt$ || (OpenAIResponsesPrompt$ = {}));
|
|
71
49
|
export function openAIResponsesPromptToJSON(openAIResponsesPrompt) {
|
|
72
50
|
return JSON.stringify(OpenAIResponsesPrompt$outboundSchema.parse(openAIResponsesPrompt));
|
|
73
51
|
}
|