@mistralai/mistralai 1.13.0 → 1.14.1
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/README.md +9 -3
- package/examples/src/async_audio_transcription_diarize.ts +17 -0
- package/examples/src/realtime_microphone.ts +163 -0
- package/examples/src/realtime_transcription.ts +225 -0
- package/extra/realtime/connection.d.ts +44 -0
- package/extra/realtime/connection.d.ts.map +1 -0
- package/extra/realtime/connection.js +299 -0
- package/extra/realtime/connection.js.map +1 -0
- package/extra/realtime/errors.d.ts +18 -0
- package/extra/realtime/errors.d.ts.map +1 -0
- package/extra/realtime/errors.js +21 -0
- package/extra/realtime/errors.js.map +1 -0
- package/extra/realtime/index.d.ts +15 -0
- package/extra/realtime/index.d.ts.map +1 -0
- package/extra/realtime/index.js +10 -0
- package/extra/realtime/index.js.map +1 -0
- package/extra/realtime/transcription.d.ts +17 -0
- package/extra/realtime/transcription.d.ts.map +1 -0
- package/extra/realtime/transcription.js +200 -0
- package/extra/realtime/transcription.js.map +1 -0
- package/extra/structChat.js.map +1 -1
- package/funcs/audioTranscriptionsComplete.js +6 -0
- package/funcs/audioTranscriptionsComplete.js.map +1 -1
- package/funcs/audioTranscriptionsStream.js +6 -0
- package/funcs/audioTranscriptionsStream.js.map +1 -1
- package/funcs/batchJobsList.js +1 -0
- package/funcs/batchJobsList.js.map +1 -1
- package/funcs/betaAgentsCreateVersionAlias.d.ts +19 -0
- package/funcs/betaAgentsCreateVersionAlias.d.ts.map +1 -0
- package/funcs/betaAgentsCreateVersionAlias.js +130 -0
- package/funcs/betaAgentsCreateVersionAlias.js.map +1 -0
- package/funcs/betaAgentsDeleteVersionAlias.d.ts +18 -0
- package/funcs/betaAgentsDeleteVersionAlias.d.ts.map +1 -0
- package/funcs/betaAgentsDeleteVersionAlias.js +128 -0
- package/funcs/betaAgentsDeleteVersionAlias.js.map +1 -0
- package/funcs/betaAgentsGet.d.ts +1 -1
- package/funcs/betaAgentsGet.js +1 -1
- package/funcs/betaAgentsGetVersion.js +1 -1
- package/funcs/betaAgentsGetVersion.js.map +1 -1
- package/funcs/betaAgentsList.js +1 -0
- package/funcs/betaAgentsList.js.map +1 -1
- package/funcs/betaAgentsListVersionAliases.d.ts +19 -0
- package/funcs/betaAgentsListVersionAliases.d.ts.map +1 -0
- package/funcs/betaAgentsListVersionAliases.js +126 -0
- package/funcs/betaAgentsListVersionAliases.js.map +1 -0
- package/funcs/filesList.js +1 -0
- package/funcs/filesList.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/agent.d.ts +2 -8
- package/models/components/agent.d.ts.map +1 -1
- package/models/components/agent.js +4 -8
- package/models/components/agent.js.map +1 -1
- package/models/components/agentaliasresponse.d.ts +13 -0
- package/models/components/agentaliasresponse.d.ts.map +1 -0
- package/models/components/agentaliasresponse.js +59 -0
- package/models/components/agentaliasresponse.js.map +1 -0
- package/models/components/agentconversation.d.ts +5 -8
- package/models/components/agentconversation.d.ts.map +1 -1
- package/models/components/agentconversation.js +8 -7
- package/models/components/agentconversation.js.map +1 -1
- package/models/components/agentcreationrequest.d.ts +2 -0
- package/models/components/agentcreationrequest.d.ts.map +1 -1
- package/models/components/agentcreationrequest.js +2 -0
- package/models/components/agentcreationrequest.js.map +1 -1
- package/models/components/agenthandoffdoneevent.d.ts +1 -8
- package/models/components/agenthandoffdoneevent.d.ts.map +1 -1
- package/models/components/agenthandoffdoneevent.js +2 -7
- package/models/components/agenthandoffdoneevent.js.map +1 -1
- package/models/components/agenthandoffentry.d.ts +4 -21
- package/models/components/agenthandoffentry.d.ts.map +1 -1
- package/models/components/agenthandoffentry.js +5 -19
- package/models/components/agenthandoffentry.js.map +1 -1
- package/models/components/agenthandoffstartedevent.d.ts +1 -8
- package/models/components/agenthandoffstartedevent.d.ts.map +1 -1
- package/models/components/agenthandoffstartedevent.js +2 -7
- package/models/components/agenthandoffstartedevent.js.map +1 -1
- package/models/components/agentupdaterequest.d.ts +2 -0
- package/models/components/agentupdaterequest.d.ts.map +1 -1
- package/models/components/agentupdaterequest.js +2 -0
- package/models/components/agentupdaterequest.js.map +1 -1
- package/models/components/archiveftmodelout.d.ts +1 -8
- package/models/components/archiveftmodelout.d.ts.map +1 -1
- package/models/components/archiveftmodelout.js +2 -7
- package/models/components/archiveftmodelout.js.map +1 -1
- package/models/components/assistantmessage.d.ts +2 -11
- package/models/components/assistantmessage.d.ts.map +1 -1
- package/models/components/assistantmessage.js +3 -10
- package/models/components/assistantmessage.js.map +1 -1
- package/models/components/audiochunk.d.ts +2 -11
- package/models/components/audiochunk.d.ts.map +1 -1
- package/models/components/audiochunk.js +3 -10
- package/models/components/audiochunk.js.map +1 -1
- package/models/components/audiotranscriptionrequest.d.ts +4 -0
- package/models/components/audiotranscriptionrequest.d.ts.map +1 -1
- package/models/components/audiotranscriptionrequest.js +3 -0
- package/models/components/audiotranscriptionrequest.js.map +1 -1
- package/models/components/audiotranscriptionrequeststream.d.ts +4 -0
- package/models/components/audiotranscriptionrequeststream.d.ts.map +1 -1
- package/models/components/audiotranscriptionrequeststream.js +3 -0
- package/models/components/audiotranscriptionrequeststream.js.map +1 -1
- package/models/components/basemodelcard.d.ts +0 -7
- package/models/components/basemodelcard.d.ts.map +1 -1
- package/models/components/basemodelcard.js +1 -6
- package/models/components/basemodelcard.js.map +1 -1
- package/models/components/batchjobout.d.ts +1 -8
- package/models/components/batchjobout.d.ts.map +1 -1
- package/models/components/batchjobout.js +2 -7
- package/models/components/batchjobout.js.map +1 -1
- package/models/components/batchjobsout.d.ts +1 -8
- package/models/components/batchjobsout.d.ts.map +1 -1
- package/models/components/batchjobsout.js +2 -7
- package/models/components/batchjobsout.js.map +1 -1
- package/models/components/classifierdetailedjobout.d.ts +2 -17
- package/models/components/classifierdetailedjobout.d.ts.map +1 -1
- package/models/components/classifierdetailedjobout.js +3 -13
- package/models/components/classifierdetailedjobout.js.map +1 -1
- package/models/components/classifierftmodelout.d.ts +2 -15
- package/models/components/classifierftmodelout.d.ts.map +1 -1
- package/models/components/classifierftmodelout.js +3 -13
- package/models/components/classifierftmodelout.js.map +1 -1
- package/models/components/classifierjobout.d.ts +2 -29
- package/models/components/classifierjobout.d.ts.map +1 -1
- package/models/components/classifierjobout.js +3 -19
- package/models/components/classifierjobout.js.map +1 -1
- package/models/components/codeinterpretertool.d.ts +3 -0
- package/models/components/codeinterpretertool.d.ts.map +1 -1
- package/models/components/codeinterpretertool.js +12 -0
- package/models/components/codeinterpretertool.js.map +1 -1
- package/models/components/completiondetailedjobout.d.ts +2 -17
- package/models/components/completiondetailedjobout.d.ts.map +1 -1
- package/models/components/completiondetailedjobout.js +3 -13
- package/models/components/completiondetailedjobout.js.map +1 -1
- package/models/components/completionftmodelout.d.ts +2 -15
- package/models/components/completionftmodelout.d.ts.map +1 -1
- package/models/components/completionftmodelout.js +3 -14
- package/models/components/completionftmodelout.js.map +1 -1
- package/models/components/completionjobout.d.ts +2 -29
- package/models/components/completionjobout.d.ts.map +1 -1
- package/models/components/completionjobout.js +3 -20
- package/models/components/completionjobout.js.map +1 -1
- package/models/components/conversationappendrequest.d.ts +5 -2
- package/models/components/conversationappendrequest.d.ts.map +1 -1
- package/models/components/conversationappendrequest.js +5 -1
- package/models/components/conversationappendrequest.js.map +1 -1
- package/models/components/conversationappendstreamrequest.d.ts +5 -2
- package/models/components/conversationappendstreamrequest.d.ts.map +1 -1
- package/models/components/conversationappendstreamrequest.js +5 -1
- package/models/components/conversationappendstreamrequest.js.map +1 -1
- package/models/components/conversationhistory.d.ts +1 -8
- package/models/components/conversationhistory.d.ts.map +1 -1
- package/models/components/conversationhistory.js +2 -7
- package/models/components/conversationhistory.js.map +1 -1
- package/models/components/conversationmessages.d.ts +1 -8
- package/models/components/conversationmessages.d.ts.map +1 -1
- package/models/components/conversationmessages.js +2 -7
- package/models/components/conversationmessages.js.map +1 -1
- package/models/components/conversationrequest.d.ts +8 -2
- package/models/components/conversationrequest.d.ts.map +1 -1
- package/models/components/conversationrequest.js +8 -2
- package/models/components/conversationrequest.js.map +1 -1
- package/models/components/conversationresponse.d.ts +1 -8
- package/models/components/conversationresponse.d.ts.map +1 -1
- package/models/components/conversationresponse.js +2 -7
- package/models/components/conversationresponse.js.map +1 -1
- package/models/components/conversationrestartrequest.d.ts +13 -4
- package/models/components/conversationrestartrequest.d.ts.map +1 -1
- package/models/components/conversationrestartrequest.js +9 -3
- package/models/components/conversationrestartrequest.js.map +1 -1
- package/models/components/conversationrestartstreamrequest.d.ts +13 -4
- package/models/components/conversationrestartstreamrequest.d.ts.map +1 -1
- package/models/components/conversationrestartstreamrequest.js +9 -3
- package/models/components/conversationrestartstreamrequest.js.map +1 -1
- package/models/components/conversationstreamrequest.d.ts +8 -2
- package/models/components/conversationstreamrequest.d.ts.map +1 -1
- package/models/components/conversationstreamrequest.js +8 -2
- package/models/components/conversationstreamrequest.js.map +1 -1
- package/models/components/documentlibrarytool.d.ts +3 -0
- package/models/components/documentlibrarytool.d.ts.map +1 -1
- package/models/components/documentlibrarytool.js +5 -0
- package/models/components/documentlibrarytool.js.map +1 -1
- package/models/components/documentout.d.ts +1 -1
- package/models/components/documentout.d.ts.map +1 -1
- package/models/components/documentout.js +2 -2
- package/models/components/documentout.js.map +1 -1
- package/models/components/documenturlchunk.d.ts +2 -11
- package/models/components/documenturlchunk.d.ts.map +1 -1
- package/models/components/documenturlchunk.js +3 -10
- package/models/components/documenturlchunk.js.map +1 -1
- package/models/components/ftmodelcard.d.ts +0 -7
- package/models/components/ftmodelcard.d.ts.map +1 -1
- package/models/components/ftmodelcard.js +1 -6
- package/models/components/ftmodelcard.js.map +1 -1
- package/models/components/functioncallentry.d.ts +13 -17
- package/models/components/functioncallentry.d.ts.map +1 -1
- package/models/components/functioncallentry.js +15 -16
- package/models/components/functioncallentry.js.map +1 -1
- package/models/components/functioncallevent.d.ts +8 -5
- package/models/components/functioncallevent.d.ts.map +1 -1
- package/models/components/functioncallevent.js +9 -5
- package/models/components/functioncallevent.js.map +1 -1
- package/models/components/functionresultentry.d.ts +4 -21
- package/models/components/functionresultentry.d.ts.map +1 -1
- package/models/components/functionresultentry.js +5 -19
- package/models/components/functionresultentry.js.map +1 -1
- package/models/components/functiontool.d.ts +5 -5
- package/models/components/functiontool.d.ts.map +1 -1
- package/models/components/functiontool.js +6 -6
- package/models/components/functiontool.js.map +1 -1
- package/models/components/githubrepositoryin.d.ts +2 -9
- package/models/components/githubrepositoryin.d.ts.map +1 -1
- package/models/components/githubrepositoryin.js +2 -7
- package/models/components/githubrepositoryin.js.map +1 -1
- package/models/components/githubrepositoryout.d.ts +1 -8
- package/models/components/githubrepositoryout.d.ts.map +1 -1
- package/models/components/githubrepositoryout.js +2 -7
- package/models/components/githubrepositoryout.js.map +1 -1
- package/models/components/imagedetail.d.ts +13 -0
- package/models/components/imagedetail.d.ts.map +1 -0
- package/models/components/imagedetail.js +51 -0
- package/models/components/imagedetail.js.map +1 -0
- package/models/components/imagegenerationtool.d.ts +3 -0
- package/models/components/imagegenerationtool.d.ts.map +1 -1
- package/models/components/imagegenerationtool.js +12 -0
- package/models/components/imagegenerationtool.js.map +1 -1
- package/models/components/imageurl.d.ts +2 -1
- package/models/components/imageurl.d.ts.map +1 -1
- package/models/components/imageurl.js +3 -2
- package/models/components/imageurl.js.map +1 -1
- package/models/components/imageurlchunk.d.ts +2 -11
- package/models/components/imageurlchunk.d.ts.map +1 -1
- package/models/components/imageurlchunk.js +3 -10
- package/models/components/imageurlchunk.js.map +1 -1
- package/models/components/index.d.ts +14 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +14 -0
- package/models/components/index.js.map +1 -1
- package/models/components/jobin.d.ts +0 -3
- package/models/components/jobin.d.ts.map +1 -1
- package/models/components/jobin.js.map +1 -1
- package/models/components/jobsout.d.ts +1 -8
- package/models/components/jobsout.d.ts.map +1 -1
- package/models/components/jobsout.js +2 -7
- package/models/components/jobsout.js.map +1 -1
- package/models/components/legacyjobmetadataout.d.ts +1 -8
- package/models/components/legacyjobmetadataout.d.ts.map +1 -1
- package/models/components/legacyjobmetadataout.js +2 -7
- package/models/components/legacyjobmetadataout.js.map +1 -1
- package/models/components/messageinputentry.d.ts +9 -25
- package/models/components/messageinputentry.d.ts.map +1 -1
- package/models/components/messageinputentry.js +10 -25
- package/models/components/messageinputentry.js.map +1 -1
- package/models/components/messageoutputentry.d.ts +6 -31
- package/models/components/messageoutputentry.d.ts.map +1 -1
- package/models/components/messageoutputentry.js +7 -28
- package/models/components/messageoutputentry.js.map +1 -1
- package/models/components/messageoutputevent.d.ts +2 -15
- package/models/components/messageoutputevent.d.ts.map +1 -1
- package/models/components/messageoutputevent.js +3 -13
- package/models/components/messageoutputevent.js.map +1 -1
- package/models/components/mistralpromptmode.d.ts +14 -0
- package/models/components/mistralpromptmode.d.ts.map +1 -1
- package/models/components/mistralpromptmode.js +7 -0
- package/models/components/mistralpromptmode.js.map +1 -1
- package/models/components/modelcapabilities.d.ts +1 -0
- package/models/components/modelcapabilities.d.ts.map +1 -1
- package/models/components/modelcapabilities.js +2 -0
- package/models/components/modelcapabilities.js.map +1 -1
- package/models/components/modelconversation.d.ts +1 -8
- package/models/components/modelconversation.d.ts.map +1 -1
- package/models/components/modelconversation.js +2 -7
- package/models/components/modelconversation.js.map +1 -1
- package/models/components/realtimetranscriptionerror.d.ts +20 -0
- package/models/components/realtimetranscriptionerror.d.ts.map +1 -0
- package/models/components/realtimetranscriptionerror.js +61 -0
- package/models/components/realtimetranscriptionerror.js.map +1 -0
- package/models/components/realtimetranscriptionerrordetail.d.ts +45 -0
- package/models/components/realtimetranscriptionerrordetail.d.ts.map +1 -0
- package/models/components/realtimetranscriptionerrordetail.js +72 -0
- package/models/components/realtimetranscriptionerrordetail.js.map +1 -0
- package/models/components/realtimetranscriptioninputaudioappend.d.ts +22 -0
- package/models/components/realtimetranscriptioninputaudioappend.d.ts.map +1 -0
- package/models/components/realtimetranscriptioninputaudioappend.js +60 -0
- package/models/components/realtimetranscriptioninputaudioappend.js.map +1 -0
- package/models/components/realtimetranscriptioninputaudioend.d.ts +17 -0
- package/models/components/realtimetranscriptioninputaudioend.d.ts.map +1 -0
- package/models/components/realtimetranscriptioninputaudioend.js +58 -0
- package/models/components/realtimetranscriptioninputaudioend.js.map +1 -0
- package/models/components/realtimetranscriptioninputaudioflush.d.ts +17 -0
- package/models/components/realtimetranscriptioninputaudioflush.d.ts.map +1 -0
- package/models/components/realtimetranscriptioninputaudioflush.js +58 -0
- package/models/components/realtimetranscriptioninputaudioflush.js.map +1 -0
- package/models/components/realtimetranscriptionsession.d.ts +24 -0
- package/models/components/realtimetranscriptionsession.d.ts.map +1 -0
- package/models/components/realtimetranscriptionsession.js +78 -0
- package/models/components/realtimetranscriptionsession.js.map +1 -0
- package/models/components/realtimetranscriptionsessioncreated.d.ts +20 -0
- package/models/components/realtimetranscriptionsessioncreated.d.ts.map +1 -0
- package/models/components/realtimetranscriptionsessioncreated.js +61 -0
- package/models/components/realtimetranscriptionsessioncreated.js.map +1 -0
- package/models/components/realtimetranscriptionsessionupdated.d.ts +20 -0
- package/models/components/realtimetranscriptionsessionupdated.d.ts.map +1 -0
- package/models/components/realtimetranscriptionsessionupdated.js +61 -0
- package/models/components/realtimetranscriptionsessionupdated.js.map +1 -0
- package/models/components/realtimetranscriptionsessionupdatemessage.d.ts +20 -0
- package/models/components/realtimetranscriptionsessionupdatemessage.d.ts.map +1 -0
- package/models/components/realtimetranscriptionsessionupdatemessage.js +61 -0
- package/models/components/realtimetranscriptionsessionupdatemessage.js.map +1 -0
- package/models/components/realtimetranscriptionsessionupdatepayload.d.ts +26 -0
- package/models/components/realtimetranscriptionsessionupdatepayload.d.ts.map +1 -0
- package/models/components/realtimetranscriptionsessionupdatepayload.js +72 -0
- package/models/components/realtimetranscriptionsessionupdatepayload.js.map +1 -0
- package/models/components/referencechunk.d.ts +2 -11
- package/models/components/referencechunk.d.ts.map +1 -1
- package/models/components/referencechunk.js +3 -10
- package/models/components/referencechunk.js.map +1 -1
- package/models/components/responsedoneevent.d.ts +1 -8
- package/models/components/responsedoneevent.d.ts.map +1 -1
- package/models/components/responsedoneevent.js +2 -7
- package/models/components/responsedoneevent.js.map +1 -1
- package/models/components/responseerrorevent.d.ts +1 -8
- package/models/components/responseerrorevent.d.ts.map +1 -1
- package/models/components/responseerrorevent.js +2 -7
- package/models/components/responseerrorevent.js.map +1 -1
- package/models/components/responsestartedevent.d.ts +1 -8
- package/models/components/responsestartedevent.d.ts.map +1 -1
- package/models/components/responsestartedevent.js +2 -7
- package/models/components/responsestartedevent.js.map +1 -1
- package/models/components/systemmessage.d.ts +2 -9
- package/models/components/systemmessage.d.ts.map +1 -1
- package/models/components/systemmessage.js +2 -7
- package/models/components/systemmessage.js.map +1 -1
- package/models/components/textchunk.d.ts +2 -11
- package/models/components/textchunk.d.ts.map +1 -1
- package/models/components/textchunk.js +3 -10
- package/models/components/textchunk.js.map +1 -1
- package/models/components/thinkchunk.d.ts +8 -20
- package/models/components/thinkchunk.d.ts.map +1 -1
- package/models/components/thinkchunk.js +10 -17
- package/models/components/thinkchunk.js.map +1 -1
- package/models/components/timestampgranularity.d.ts +1 -0
- package/models/components/timestampgranularity.d.ts.map +1 -1
- package/models/components/timestampgranularity.js +1 -0
- package/models/components/timestampgranularity.js.map +1 -1
- package/models/components/toolcallconfirmation.d.ts +22 -0
- package/models/components/toolcallconfirmation.d.ts.map +1 -0
- package/models/components/toolcallconfirmation.js +61 -0
- package/models/components/toolcallconfirmation.js.map +1 -0
- package/models/components/toolconfiguration.d.ts +21 -0
- package/models/components/toolconfiguration.d.ts.map +1 -0
- package/models/components/toolconfiguration.js +71 -0
- package/models/components/toolconfiguration.js.map +1 -0
- package/models/components/toolexecutiondeltaevent.d.ts +1 -8
- package/models/components/toolexecutiondeltaevent.d.ts.map +1 -1
- package/models/components/toolexecutiondeltaevent.js +2 -7
- package/models/components/toolexecutiondeltaevent.js.map +1 -1
- package/models/components/toolexecutiondoneevent.d.ts +1 -8
- package/models/components/toolexecutiondoneevent.d.ts.map +1 -1
- package/models/components/toolexecutiondoneevent.js +2 -7
- package/models/components/toolexecutiondoneevent.js.map +1 -1
- package/models/components/toolexecutionentry.d.ts +4 -21
- package/models/components/toolexecutionentry.d.ts.map +1 -1
- package/models/components/toolexecutionentry.js +5 -19
- package/models/components/toolexecutionentry.js.map +1 -1
- package/models/components/toolexecutionstartedevent.d.ts +1 -8
- package/models/components/toolexecutionstartedevent.d.ts.map +1 -1
- package/models/components/toolexecutionstartedevent.js +2 -7
- package/models/components/toolexecutionstartedevent.js.map +1 -1
- package/models/components/toolfilechunk.d.ts +2 -11
- package/models/components/toolfilechunk.d.ts.map +1 -1
- package/models/components/toolfilechunk.js +3 -10
- package/models/components/toolfilechunk.js.map +1 -1
- package/models/components/toolmessage.d.ts +2 -9
- package/models/components/toolmessage.d.ts.map +1 -1
- package/models/components/toolmessage.js +2 -7
- package/models/components/toolmessage.js.map +1 -1
- package/models/components/toolreferencechunk.d.ts +2 -11
- package/models/components/toolreferencechunk.d.ts.map +1 -1
- package/models/components/toolreferencechunk.js +3 -10
- package/models/components/toolreferencechunk.js.map +1 -1
- package/models/components/transcriptionsegmentchunk.d.ts +6 -11
- package/models/components/transcriptionsegmentchunk.d.ts.map +1 -1
- package/models/components/transcriptionsegmentchunk.js +13 -11
- package/models/components/transcriptionsegmentchunk.js.map +1 -1
- package/models/components/transcriptionstreamdone.d.ts +2 -11
- package/models/components/transcriptionstreamdone.d.ts.map +1 -1
- package/models/components/transcriptionstreamdone.js +3 -10
- package/models/components/transcriptionstreamdone.js.map +1 -1
- package/models/components/transcriptionstreamlanguage.d.ts +2 -11
- package/models/components/transcriptionstreamlanguage.d.ts.map +1 -1
- package/models/components/transcriptionstreamlanguage.js +3 -10
- package/models/components/transcriptionstreamlanguage.js.map +1 -1
- package/models/components/transcriptionstreamsegmentdelta.d.ts +2 -8
- package/models/components/transcriptionstreamsegmentdelta.d.ts.map +1 -1
- package/models/components/transcriptionstreamsegmentdelta.js +9 -8
- package/models/components/transcriptionstreamsegmentdelta.js.map +1 -1
- package/models/components/transcriptionstreamtextdelta.d.ts +2 -11
- package/models/components/transcriptionstreamtextdelta.d.ts.map +1 -1
- package/models/components/transcriptionstreamtextdelta.js +3 -10
- package/models/components/transcriptionstreamtextdelta.js.map +1 -1
- package/models/components/unarchiveftmodelout.d.ts +1 -8
- package/models/components/unarchiveftmodelout.d.ts.map +1 -1
- package/models/components/unarchiveftmodelout.js +2 -7
- package/models/components/unarchiveftmodelout.js.map +1 -1
- package/models/components/usermessage.d.ts +2 -9
- package/models/components/usermessage.d.ts.map +1 -1
- package/models/components/usermessage.js +2 -7
- package/models/components/usermessage.js.map +1 -1
- package/models/components/wandbintegration.d.ts +2 -9
- package/models/components/wandbintegration.d.ts.map +1 -1
- package/models/components/wandbintegration.js +2 -7
- package/models/components/wandbintegration.js.map +1 -1
- package/models/components/wandbintegrationout.d.ts +1 -8
- package/models/components/wandbintegrationout.d.ts.map +1 -1
- package/models/components/wandbintegrationout.js +2 -7
- package/models/components/wandbintegrationout.js.map +1 -1
- package/models/components/websearchpremiumtool.d.ts +3 -0
- package/models/components/websearchpremiumtool.d.ts.map +1 -1
- package/models/components/websearchpremiumtool.js +12 -0
- package/models/components/websearchpremiumtool.js.map +1 -1
- package/models/components/websearchtool.d.ts +3 -0
- package/models/components/websearchtool.d.ts.map +1 -1
- package/models/components/websearchtool.js +12 -0
- package/models/components/websearchtool.js.map +1 -1
- package/models/operations/agentsapiv1agentscreateorupdatealias.d.ts +16 -0
- package/models/operations/agentsapiv1agentscreateorupdatealias.d.ts.map +1 -0
- package/models/operations/agentsapiv1agentscreateorupdatealias.js +56 -0
- package/models/operations/agentsapiv1agentscreateorupdatealias.js.map +1 -0
- package/models/operations/agentsapiv1agentsdeletealias.d.ts +14 -0
- package/models/operations/agentsapiv1agentsdeletealias.d.ts.map +1 -0
- package/models/operations/agentsapiv1agentsdeletealias.js +55 -0
- package/models/operations/agentsapiv1agentsdeletealias.js.map +1 -0
- package/models/operations/agentsapiv1agentsget.d.ts +8 -2
- package/models/operations/agentsapiv1agentsget.d.ts.map +1 -1
- package/models/operations/agentsapiv1agentsget.js +8 -2
- package/models/operations/agentsapiv1agentsget.js.map +1 -1
- package/models/operations/agentsapiv1agentsgetversion.d.ts +2 -2
- package/models/operations/agentsapiv1agentsgetversion.js +1 -1
- package/models/operations/agentsapiv1agentsgetversion.js.map +1 -1
- package/models/operations/agentsapiv1agentslist.d.ts +8 -0
- package/models/operations/agentsapiv1agentslist.d.ts.map +1 -1
- package/models/operations/agentsapiv1agentslist.js +1 -0
- package/models/operations/agentsapiv1agentslist.js.map +1 -1
- package/models/operations/agentsapiv1agentslistversionaliases.d.ts +12 -0
- package/models/operations/agentsapiv1agentslistversionaliases.d.ts.map +1 -0
- package/models/operations/agentsapiv1agentslistversionaliases.js +54 -0
- package/models/operations/agentsapiv1agentslistversionaliases.js.map +1 -0
- package/models/operations/filesapirouteslistfiles.d.ts +2 -0
- package/models/operations/filesapirouteslistfiles.d.ts.map +1 -1
- package/models/operations/filesapirouteslistfiles.js +1 -0
- package/models/operations/filesapirouteslistfiles.js.map +1 -1
- package/models/operations/index.d.ts +3 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +3 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/jobsapiroutesbatchgetbatchjobs.d.ts +10 -0
- package/models/operations/jobsapiroutesbatchgetbatchjobs.d.ts.map +1 -1
- package/models/operations/jobsapiroutesbatchgetbatchjobs.js +10 -1
- package/models/operations/jobsapiroutesbatchgetbatchjobs.js.map +1 -1
- package/package.json +4 -1
- package/sdk/mistralagents.d.ts +22 -1
- package/sdk/mistralagents.d.ts.map +1 -1
- package/sdk/mistralagents.js +31 -1
- package/sdk/mistralagents.js.map +1 -1
- package/src/extra/realtime/connection.ts +459 -0
- package/src/extra/realtime/errors.ts +32 -0
- package/src/extra/realtime/index.ts +32 -0
- package/src/extra/realtime/transcription.ts +291 -0
- package/src/extra/structChat.ts +2 -2
- package/src/funcs/audioTranscriptionsComplete.ts +6 -0
- package/src/funcs/audioTranscriptionsStream.ts +6 -0
- package/src/funcs/batchJobsList.ts +1 -0
- package/src/funcs/betaAgentsCreateVersionAlias.ts +184 -0
- package/src/funcs/betaAgentsDeleteVersionAlias.ts +184 -0
- package/src/funcs/betaAgentsGet.ts +1 -1
- package/src/funcs/betaAgentsGetVersion.ts +1 -1
- package/src/funcs/betaAgentsList.ts +1 -0
- package/src/funcs/betaAgentsListVersionAliases.ts +179 -0
- package/src/funcs/filesList.ts +1 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/agent.ts +5 -12
- package/src/models/components/agentaliasresponse.ts +43 -0
- package/src/models/components/agentconversation.ts +20 -14
- package/src/models/components/agentcreationrequest.ts +4 -0
- package/src/models/components/agenthandoffdoneevent.ts +2 -15
- package/src/models/components/agenthandoffentry.ts +8 -39
- package/src/models/components/agenthandoffstartedevent.ts +2 -17
- package/src/models/components/agentupdaterequest.ts +4 -0
- package/src/models/components/archiveftmodelout.ts +2 -15
- package/src/models/components/assistantmessage.ts +4 -19
- package/src/models/components/audiochunk.ts +4 -19
- package/src/models/components/audiotranscriptionrequest.ts +7 -0
- package/src/models/components/audiotranscriptionrequeststream.ts +7 -0
- package/src/models/components/basemodelcard.ts +0 -11
- package/src/models/components/batchjobout.ts +2 -13
- package/src/models/components/batchjobsout.ts +2 -13
- package/src/models/components/classifierdetailedjobout.ts +4 -31
- package/src/models/components/classifierftmodelout.ts +4 -29
- package/src/models/components/classifierjobout.ts +4 -41
- package/src/models/components/codeinterpretertool.ts +19 -0
- package/src/models/components/completiondetailedjobout.ts +4 -31
- package/src/models/components/completionftmodelout.ts +4 -26
- package/src/models/components/completionjobout.ts +4 -38
- package/src/models/components/conversationappendrequest.ts +13 -3
- package/src/models/components/conversationappendstreamrequest.ts +13 -3
- package/src/models/components/conversationhistory.ts +2 -17
- package/src/models/components/conversationmessages.ts +2 -17
- package/src/models/components/conversationrequest.ts +19 -3
- package/src/models/components/conversationresponse.ts +2 -17
- package/src/models/components/conversationrestartrequest.ts +32 -6
- package/src/models/components/conversationrestartstreamrequest.ts +35 -6
- package/src/models/components/conversationstreamrequest.ts +25 -3
- package/src/models/components/documentlibrarytool.ts +12 -0
- package/src/models/components/documentout.ts +3 -3
- package/src/models/components/documenturlchunk.ts +4 -19
- package/src/models/components/ftmodelcard.ts +0 -11
- package/src/models/components/functioncallentry.ts +25 -33
- package/src/models/components/functioncallevent.ts +17 -8
- package/src/models/components/functionresultentry.ts +8 -41
- package/src/models/components/functiontool.ts +10 -11
- package/src/models/components/githubrepositoryin.ts +3 -14
- package/src/models/components/githubrepositoryout.ts +2 -15
- package/src/models/components/imagedetail.ts +20 -0
- package/src/models/components/imagegenerationtool.ts +19 -0
- package/src/models/components/imageurl.ts +8 -3
- package/src/models/components/imageurlchunk.ts +4 -19
- package/src/models/components/index.ts +14 -0
- package/src/models/components/jobin.ts +0 -3
- package/src/models/components/jobsout.ts +2 -13
- package/src/models/components/legacyjobmetadataout.ts +2 -15
- package/src/models/components/messageinputentry.ts +18 -45
- package/src/models/components/messageoutputentry.ts +12 -57
- package/src/models/components/messageoutputevent.ts +4 -25
- package/src/models/components/mistralpromptmode.ts +14 -0
- package/src/models/components/modelcapabilities.ts +3 -0
- package/src/models/components/modelconversation.ts +2 -15
- package/src/models/components/realtimetranscriptionerror.ts +61 -0
- package/src/models/components/realtimetranscriptionerrordetail.ts +94 -0
- package/src/models/components/realtimetranscriptioninputaudioappend.ts +61 -0
- package/src/models/components/realtimetranscriptioninputaudioend.ts +54 -0
- package/src/models/components/realtimetranscriptioninputaudioflush.ts +54 -0
- package/src/models/components/realtimetranscriptionsession.ts +84 -0
- package/src/models/components/realtimetranscriptionsessioncreated.ts +64 -0
- package/src/models/components/realtimetranscriptionsessionupdated.ts +64 -0
- package/src/models/components/realtimetranscriptionsessionupdatemessage.ts +71 -0
- package/src/models/components/realtimetranscriptionsessionupdatepayload.ts +88 -0
- package/src/models/components/referencechunk.ts +4 -19
- package/src/models/components/responsedoneevent.ts +2 -13
- package/src/models/components/responseerrorevent.ts +2 -13
- package/src/models/components/responsestartedevent.ts +2 -15
- package/src/models/components/systemmessage.ts +3 -14
- package/src/models/components/textchunk.ts +4 -19
- package/src/models/components/thinkchunk.ts +23 -39
- package/src/models/components/timestampgranularity.ts +1 -0
- package/src/models/components/toolcallconfirmation.ts +50 -0
- package/src/models/components/toolconfiguration.ts +68 -0
- package/src/models/components/toolexecutiondeltaevent.ts +2 -17
- package/src/models/components/toolexecutiondoneevent.ts +2 -15
- package/src/models/components/toolexecutionentry.ts +8 -39
- package/src/models/components/toolexecutionstartedevent.ts +2 -17
- package/src/models/components/toolfilechunk.ts +4 -19
- package/src/models/components/toolmessage.ts +3 -14
- package/src/models/components/toolreferencechunk.ts +4 -19
- package/src/models/components/transcriptionsegmentchunk.ts +20 -19
- package/src/models/components/transcriptionstreamdone.ts +4 -25
- package/src/models/components/transcriptionstreamlanguage.ts +5 -24
- package/src/models/components/transcriptionstreamsegmentdelta.ts +10 -18
- package/src/models/components/transcriptionstreamtextdelta.ts +7 -24
- package/src/models/components/unarchiveftmodelout.ts +2 -15
- package/src/models/components/usermessage.ts +3 -14
- package/src/models/components/wandbintegration.ts +3 -14
- package/src/models/components/wandbintegrationout.ts +2 -15
- package/src/models/components/websearchpremiumtool.ts +19 -0
- package/src/models/components/websearchtool.ts +19 -0
- package/src/models/operations/agentsapiv1agentscreateorupdatealias.ts +46 -0
- package/src/models/operations/agentsapiv1agentsdeletealias.ts +41 -0
- package/src/models/operations/agentsapiv1agentsget.ts +19 -3
- package/src/models/operations/agentsapiv1agentsgetversion.ts +3 -3
- package/src/models/operations/agentsapiv1agentslist.ts +9 -0
- package/src/models/operations/agentsapiv1agentslistversionaliases.ts +40 -0
- package/src/models/operations/filesapirouteslistfiles.ts +3 -0
- package/src/models/operations/index.ts +3 -0
- package/src/models/operations/jobsapiroutesbatchgetbatchjobs.ts +15 -0
- package/src/sdk/mistralagents.ts +55 -1
- package/tests/extra/realtime.test.ts +389 -0
|
@@ -26,6 +26,7 @@ export type ConversationStreamRequestTools = (CodeInterpreterTool & {
|
|
|
26
26
|
}) | (WebSearchPremiumTool & {
|
|
27
27
|
type: "web_search_premium";
|
|
28
28
|
});
|
|
29
|
+
export type ConversationStreamRequestAgentVersion = string | number;
|
|
29
30
|
export type ConversationStreamRequest = {
|
|
30
31
|
inputs: ConversationInputs;
|
|
31
32
|
stream?: boolean | undefined;
|
|
@@ -55,7 +56,7 @@ export type ConversationStreamRequest = {
|
|
|
55
56
|
[k: string]: any;
|
|
56
57
|
} | null | undefined;
|
|
57
58
|
agentId?: string | null | undefined;
|
|
58
|
-
agentVersion?: number | null | undefined;
|
|
59
|
+
agentVersion?: string | number | null | undefined;
|
|
59
60
|
model?: string | null | undefined;
|
|
60
61
|
};
|
|
61
62
|
/** @internal */
|
|
@@ -78,6 +79,11 @@ export type ConversationStreamRequestTools$Outbound = (CodeInterpreterTool$Outbo
|
|
|
78
79
|
export declare const ConversationStreamRequestTools$outboundSchema: z.ZodType<ConversationStreamRequestTools$Outbound, z.ZodTypeDef, ConversationStreamRequestTools>;
|
|
79
80
|
export declare function conversationStreamRequestToolsToJSON(conversationStreamRequestTools: ConversationStreamRequestTools): string;
|
|
80
81
|
/** @internal */
|
|
82
|
+
export type ConversationStreamRequestAgentVersion$Outbound = string | number;
|
|
83
|
+
/** @internal */
|
|
84
|
+
export declare const ConversationStreamRequestAgentVersion$outboundSchema: z.ZodType<ConversationStreamRequestAgentVersion$Outbound, z.ZodTypeDef, ConversationStreamRequestAgentVersion>;
|
|
85
|
+
export declare function conversationStreamRequestAgentVersionToJSON(conversationStreamRequestAgentVersion: ConversationStreamRequestAgentVersion): string;
|
|
86
|
+
/** @internal */
|
|
81
87
|
export type ConversationStreamRequest$Outbound = {
|
|
82
88
|
inputs: ConversationInputs$Outbound;
|
|
83
89
|
stream: boolean;
|
|
@@ -104,7 +110,7 @@ export type ConversationStreamRequest$Outbound = {
|
|
|
104
110
|
[k: string]: any;
|
|
105
111
|
} | null | undefined;
|
|
106
112
|
agent_id?: string | null | undefined;
|
|
107
|
-
agent_version?: number | null | undefined;
|
|
113
|
+
agent_version?: string | number | null | undefined;
|
|
108
114
|
model?: string | null | undefined;
|
|
109
115
|
};
|
|
110
116
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversationstreamrequest.d.ts","sourceRoot":"","sources":["../../src/models/components/conversationstreamrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EACL,mBAAmB,EACnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,cAAc,EACd,uBAAuB,EAExB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,kBAAkB,EAClB,2BAA2B,EAE5B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,mBAAmB,EACnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,YAAY,EACZ,qBAAqB,EAEtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,mBAAmB,EACnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,oBAAoB,EACpB,6BAA6B,EAE9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,aAAa,EACb,sBAAsB,EAEvB,MAAM,oBAAoB,CAAC;AAE5B,eAAO,MAAM,yCAAyC;;;CAG5C,CAAC;AACX,MAAM,MAAM,yCAAyC,GAAG,UAAU,CAChE,OAAO,yCAAyC,CACjD,CAAC;AAEF,MAAM,MAAM,8BAA8B,GACtC,CAAC,mBAAmB,GAAG;IAAE,IAAI,EAAE,kBAAkB,CAAA;CAAE,CAAC,GACpD,CAAC,mBAAmB,GAAG;IAAE,IAAI,EAAE,kBAAkB,CAAA;CAAE,CAAC,GACpD,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;IACxC,QAAQ,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,IAAI,GAAG,SAAS,CAAC;IACnD,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"conversationstreamrequest.d.ts","sourceRoot":"","sources":["../../src/models/components/conversationstreamrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EACL,mBAAmB,EACnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,cAAc,EACd,uBAAuB,EAExB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,kBAAkB,EAClB,2BAA2B,EAE5B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,mBAAmB,EACnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,YAAY,EACZ,qBAAqB,EAEtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,mBAAmB,EACnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,oBAAoB,EACpB,6BAA6B,EAE9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,aAAa,EACb,sBAAsB,EAEvB,MAAM,oBAAoB,CAAC;AAE5B,eAAO,MAAM,yCAAyC;;;CAG5C,CAAC;AACX,MAAM,MAAM,yCAAyC,GAAG,UAAU,CAChE,OAAO,yCAAyC,CACjD,CAAC;AAEF,MAAM,MAAM,8BAA8B,GACtC,CAAC,mBAAmB,GAAG;IAAE,IAAI,EAAE,kBAAkB,CAAA;CAAE,CAAC,GACpD,CAAC,mBAAmB,GAAG;IAAE,IAAI,EAAE,kBAAkB,CAAA;CAAE,C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,GAAG,IAAI,GAAG,SAAS,CAAC;IACnD,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACnD,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,kCAAkC,EAClC,CAAC,CAAC,UAAU,EACZ,yBAAyB,CA6CzB,CAAC;AAEH,wBAAgB,+BAA+B,CAC7C,yBAAyB,EAAE,yBAAyB,GACnD,MAAM,CAIR"}
|
|
@@ -36,8 +36,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.ConversationStreamRequest$outboundSchema = exports.ConversationStreamRequestTools$outboundSchema = exports.ConversationStreamRequestHandoffExecution$outboundSchema = exports.ConversationStreamRequestHandoffExecution = void 0;
|
|
39
|
+
exports.ConversationStreamRequest$outboundSchema = exports.ConversationStreamRequestAgentVersion$outboundSchema = exports.ConversationStreamRequestTools$outboundSchema = exports.ConversationStreamRequestHandoffExecution$outboundSchema = exports.ConversationStreamRequestHandoffExecution = void 0;
|
|
40
40
|
exports.conversationStreamRequestToolsToJSON = conversationStreamRequestToolsToJSON;
|
|
41
|
+
exports.conversationStreamRequestAgentVersionToJSON = conversationStreamRequestAgentVersionToJSON;
|
|
41
42
|
exports.conversationStreamRequestToJSON = conversationStreamRequestToJSON;
|
|
42
43
|
const z = __importStar(require("zod/v3"));
|
|
43
44
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
@@ -69,6 +70,11 @@ function conversationStreamRequestToolsToJSON(conversationStreamRequestTools) {
|
|
|
69
70
|
return JSON.stringify(exports.ConversationStreamRequestTools$outboundSchema.parse(conversationStreamRequestTools));
|
|
70
71
|
}
|
|
71
72
|
/** @internal */
|
|
73
|
+
exports.ConversationStreamRequestAgentVersion$outboundSchema = z.union([z.string(), z.number().int()]);
|
|
74
|
+
function conversationStreamRequestAgentVersionToJSON(conversationStreamRequestAgentVersion) {
|
|
75
|
+
return JSON.stringify(exports.ConversationStreamRequestAgentVersion$outboundSchema.parse(conversationStreamRequestAgentVersion));
|
|
76
|
+
}
|
|
77
|
+
/** @internal */
|
|
72
78
|
exports.ConversationStreamRequest$outboundSchema = z.object({
|
|
73
79
|
inputs: conversationinputs_js_1.ConversationInputs$outboundSchema,
|
|
74
80
|
stream: z.boolean().default(true),
|
|
@@ -88,7 +94,7 @@ exports.ConversationStreamRequest$outboundSchema = z.object({
|
|
|
88
94
|
description: z.nullable(z.string()).optional(),
|
|
89
95
|
metadata: z.nullable(z.record(z.any())).optional(),
|
|
90
96
|
agentId: z.nullable(z.string()).optional(),
|
|
91
|
-
agentVersion: z.nullable(z.number().int()).optional(),
|
|
97
|
+
agentVersion: z.nullable(z.union([z.string(), z.number().int()])).optional(),
|
|
92
98
|
model: z.nullable(z.string()).optional(),
|
|
93
99
|
}).transform((v) => {
|
|
94
100
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversationstreamrequest.js","sourceRoot":"","sources":["../../src/models/components/conversationstreamrequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"conversationstreamrequest.js","sourceRoot":"","sources":["../../src/models/components/conversationstreamrequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmIH,oFAQC;AAYD,kGAQC;AA+ED,0EAMC;AAlPD,0CAA4B;AAC5B,2DAA0D;AAE1D,qEAIkC;AAClC,2DAI6B;AAC7B,mEAIiC;AACjC,qEAIkC;AAClC,uDAI2B;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AAE,mBAAmB;QACrC,cAAc,EAAE,iBAAiB;QACjC,OAAO,EAAE,UAAU;QACnB,YAAY,EAAE,eAAe;KAC9B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,+BAA+B,CAC7C,yBAAoD;IAEpD,OAAO,IAAI,CAAC,SAAS,CACnB,gDAAwC,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAC1E,CAAC;AACJ,CAAC"}
|
|
@@ -2,11 +2,13 @@ import * as z from "zod/v3";
|
|
|
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 { ToolConfiguration, ToolConfiguration$Outbound } from "./toolconfiguration.js";
|
|
5
6
|
export declare const DocumentLibraryToolType: {
|
|
6
7
|
readonly DocumentLibrary: "document_library";
|
|
7
8
|
};
|
|
8
9
|
export type DocumentLibraryToolType = ClosedEnum<typeof DocumentLibraryToolType>;
|
|
9
10
|
export type DocumentLibraryTool = {
|
|
11
|
+
toolConfiguration?: ToolConfiguration | null | undefined;
|
|
10
12
|
type?: DocumentLibraryToolType | undefined;
|
|
11
13
|
/**
|
|
12
14
|
* Ids of the library in which to search.
|
|
@@ -21,6 +23,7 @@ export declare const DocumentLibraryToolType$outboundSchema: z.ZodNativeEnum<typ
|
|
|
21
23
|
export declare const DocumentLibraryTool$inboundSchema: z.ZodType<DocumentLibraryTool, z.ZodTypeDef, unknown>;
|
|
22
24
|
/** @internal */
|
|
23
25
|
export type DocumentLibraryTool$Outbound = {
|
|
26
|
+
tool_configuration?: ToolConfiguration$Outbound | null | undefined;
|
|
24
27
|
type: string;
|
|
25
28
|
library_ids: Array<string>;
|
|
26
29
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"documentlibrarytool.d.ts","sourceRoot":"","sources":["../../src/models/components/documentlibrarytool.ts"],"names":[],"mappings":"AAIA,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UP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,4BAA4B,GAAG;IACzC,kBAAkB,CAAC,EAAE,0BAA0B,GAAG,IAAI,GAAG,SAAS,CAAC;IACnE,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC5B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,mBAAmB,CAUnB,CAAC;AAEH,wBAAgB,yBAAyB,CACvC,mBAAmB,EAAE,mBAAmB,GACvC,MAAM,CAIR;AACD,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAM1D"}
|
|
@@ -42,6 +42,7 @@ exports.documentLibraryToolFromJSON = documentLibraryToolFromJSON;
|
|
|
42
42
|
const z = __importStar(require("zod/v3"));
|
|
43
43
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
44
44
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
45
|
+
const toolconfiguration_js_1 = require("./toolconfiguration.js");
|
|
45
46
|
exports.DocumentLibraryToolType = {
|
|
46
47
|
DocumentLibrary: "document_library",
|
|
47
48
|
};
|
|
@@ -51,19 +52,23 @@ exports.DocumentLibraryToolType$inboundSchema = z.nativeEnum(exports.DocumentLib
|
|
|
51
52
|
exports.DocumentLibraryToolType$outboundSchema = exports.DocumentLibraryToolType$inboundSchema;
|
|
52
53
|
/** @internal */
|
|
53
54
|
exports.DocumentLibraryTool$inboundSchema = z.object({
|
|
55
|
+
tool_configuration: z.nullable(toolconfiguration_js_1.ToolConfiguration$inboundSchema).optional(),
|
|
54
56
|
type: exports.DocumentLibraryToolType$inboundSchema.default("document_library"),
|
|
55
57
|
library_ids: z.array(z.string()),
|
|
56
58
|
}).transform((v) => {
|
|
57
59
|
return (0, primitives_js_1.remap)(v, {
|
|
60
|
+
"tool_configuration": "toolConfiguration",
|
|
58
61
|
"library_ids": "libraryIds",
|
|
59
62
|
});
|
|
60
63
|
});
|
|
61
64
|
/** @internal */
|
|
62
65
|
exports.DocumentLibraryTool$outboundSchema = z.object({
|
|
66
|
+
toolConfiguration: z.nullable(toolconfiguration_js_1.ToolConfiguration$outboundSchema).optional(),
|
|
63
67
|
type: exports.DocumentLibraryToolType$outboundSchema.default("document_library"),
|
|
64
68
|
libraryIds: z.array(z.string()),
|
|
65
69
|
}).transform((v) => {
|
|
66
70
|
return (0, primitives_js_1.remap)(v, {
|
|
71
|
+
toolConfiguration: "tool_configuration",
|
|
67
72
|
libraryIds: "library_ids",
|
|
68
73
|
});
|
|
69
74
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"documentlibrarytool.js","sourceRoot":"","sources":["../../src/models/components/documentlibrarytool.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"documentlibrarytool.js","sourceRoot":"","sources":["../../src/models/components/documentlibrarytool.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8EH,8DAMC;AACD,kEAQC;AA3FD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAIjD,iEAKgC;AAEnB,QAAA,uBAAuB,GAAG;IACrC,eAAe,EAAE,kBAAkB;CAC3B,CAAC;AAcX,gBAAgB;AACH,QAAA,qCAAqC,GAE9C,CAAC,CAAC,UAAU,CAAC,+BAAuB,CAAC,CAAC;AAC1C,gBAAgB;AACH,QAAA,sCAAsC,GAE/C,6CAAqC,CAAC;AAE1C,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,kBAAkB,EAAE,CAAC,CAAC,QAAQ,CAAC,sDAA+B,CAAC,CAAC,QAAQ,EAAE;IAC1E,IAAI,EAAE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15
|
numberOfPages?: number | null | undefined;
|
|
16
|
-
processingStatus: string;
|
|
17
16
|
uploadedById: string | null;
|
|
18
17
|
uploadedByType: string;
|
|
19
18
|
tokensProcessingMainContent?: number | null | undefined;
|
|
@@ -22,6 +21,7 @@ export type DocumentOut = {
|
|
|
22
21
|
attributes?: {
|
|
23
22
|
[k: string]: any;
|
|
24
23
|
} | null | undefined;
|
|
24
|
+
processingStatus: string;
|
|
25
25
|
tokensProcessingTotal: number;
|
|
26
26
|
};
|
|
27
27
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"documentout.d.ts","sourceRoot":"","sources":["../../src/models/components/documentout.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC,SAAS,EAAE,IAAI,CAAC;IAChB,eAAe,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C,
|
|
1
|
+
{"version":3,"file":"documentout.d.ts","sourceRoot":"","sources":["../../src/models/components/documentout.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG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,GACjB,eAAe,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAMlD"}
|
|
@@ -54,13 +54,13 @@ exports.DocumentOut$inboundSchema = z.object({
|
|
|
54
54
|
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
55
55
|
last_processed_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
|
|
56
56
|
number_of_pages: z.nullable(z.number().int()).optional(),
|
|
57
|
-
processing_status: z.string(),
|
|
58
57
|
uploaded_by_id: z.nullable(z.string()),
|
|
59
58
|
uploaded_by_type: z.string(),
|
|
60
59
|
tokens_processing_main_content: z.nullable(z.number().int()).optional(),
|
|
61
60
|
tokens_processing_summary: z.nullable(z.number().int()).optional(),
|
|
62
61
|
url: z.nullable(z.string()).optional(),
|
|
63
62
|
attributes: z.nullable(z.record(z.any())).optional(),
|
|
63
|
+
processing_status: z.string(),
|
|
64
64
|
tokens_processing_total: z.number().int(),
|
|
65
65
|
}).transform((v) => {
|
|
66
66
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -69,11 +69,11 @@ exports.DocumentOut$inboundSchema = z.object({
|
|
|
69
69
|
"created_at": "createdAt",
|
|
70
70
|
"last_processed_at": "lastProcessedAt",
|
|
71
71
|
"number_of_pages": "numberOfPages",
|
|
72
|
-
"processing_status": "processingStatus",
|
|
73
72
|
"uploaded_by_id": "uploadedById",
|
|
74
73
|
"uploaded_by_type": "uploadedByType",
|
|
75
74
|
"tokens_processing_main_content": "tokensProcessingMainContent",
|
|
76
75
|
"tokens_processing_summary": "tokensProcessingSummary",
|
|
76
|
+
"processing_status": "processingStatus",
|
|
77
77
|
"tokens_processing_total": "tokensProcessingTotal",
|
|
78
78
|
});
|
|
79
79
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"documentout.js","sourceRoot":"","sources":["../../src/models/components/documentout.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyE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,CAAC,iCAAyB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrD,yCAAyC,CAC1C,CAAC;AACJ,CAAC"}
|
|
@@ -1,30 +1,21 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
3
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
-
export declare const DocumentURLChunkType: {
|
|
6
|
-
readonly DocumentUrl: "document_url";
|
|
7
|
-
};
|
|
8
|
-
export type DocumentURLChunkType = ClosedEnum<typeof DocumentURLChunkType>;
|
|
9
4
|
export type DocumentURLChunk = {
|
|
5
|
+
type?: "document_url" | undefined;
|
|
10
6
|
documentUrl: string;
|
|
11
7
|
/**
|
|
12
8
|
* The filename of the document
|
|
13
9
|
*/
|
|
14
10
|
documentName?: string | null | undefined;
|
|
15
|
-
type?: DocumentURLChunkType | undefined;
|
|
16
11
|
};
|
|
17
12
|
/** @internal */
|
|
18
|
-
export declare const DocumentURLChunkType$inboundSchema: z.ZodNativeEnum<typeof DocumentURLChunkType>;
|
|
19
|
-
/** @internal */
|
|
20
|
-
export declare const DocumentURLChunkType$outboundSchema: z.ZodNativeEnum<typeof DocumentURLChunkType>;
|
|
21
|
-
/** @internal */
|
|
22
13
|
export declare const DocumentURLChunk$inboundSchema: z.ZodType<DocumentURLChunk, z.ZodTypeDef, unknown>;
|
|
23
14
|
/** @internal */
|
|
24
15
|
export type DocumentURLChunk$Outbound = {
|
|
16
|
+
type: "document_url";
|
|
25
17
|
document_url: string;
|
|
26
18
|
document_name?: string | null | undefined;
|
|
27
|
-
type: string;
|
|
28
19
|
};
|
|
29
20
|
/** @internal */
|
|
30
21
|
export declare const DocumentURLChunk$outboundSchema: z.ZodType<DocumentURLChunk$Outbound, z.ZodTypeDef, DocumentURLChunk>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"documenturlchunk.d.ts","sourceRoot":"","sources":["../../src/models/components/documenturlchunk.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"documenturlchunk.d.ts","sourceRoot":"","sources":["../../src/models/components/documenturlchunk.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC1C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,gBAAgB,EAChB,CAAC,CAAC,UAAU,EACZ,OAAO,CAUP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,yBAAyB,GAAG;IACtC,IAAI,EAAE,cAAc,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC3C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,gBAAgB,CAUhB,CAAC;AAEH,wBAAgB,sBAAsB,CACpC,gBAAgB,EAAE,gBAAgB,GACjC,MAAM,CAIR;AACD,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAMvD"}
|
|
@@ -36,24 +36,17 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.DocumentURLChunk$outboundSchema = exports.DocumentURLChunk$inboundSchema =
|
|
39
|
+
exports.DocumentURLChunk$outboundSchema = exports.DocumentURLChunk$inboundSchema = void 0;
|
|
40
40
|
exports.documentURLChunkToJSON = documentURLChunkToJSON;
|
|
41
41
|
exports.documentURLChunkFromJSON = documentURLChunkFromJSON;
|
|
42
42
|
const z = __importStar(require("zod/v3"));
|
|
43
43
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
44
44
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
45
|
-
exports.DocumentURLChunkType = {
|
|
46
|
-
DocumentUrl: "document_url",
|
|
47
|
-
};
|
|
48
|
-
/** @internal */
|
|
49
|
-
exports.DocumentURLChunkType$inboundSchema = z.nativeEnum(exports.DocumentURLChunkType);
|
|
50
|
-
/** @internal */
|
|
51
|
-
exports.DocumentURLChunkType$outboundSchema = exports.DocumentURLChunkType$inboundSchema;
|
|
52
45
|
/** @internal */
|
|
53
46
|
exports.DocumentURLChunk$inboundSchema = z.object({
|
|
47
|
+
type: z.literal("document_url").default("document_url"),
|
|
54
48
|
document_url: z.string(),
|
|
55
49
|
document_name: z.nullable(z.string()).optional(),
|
|
56
|
-
type: exports.DocumentURLChunkType$inboundSchema.default("document_url"),
|
|
57
50
|
}).transform((v) => {
|
|
58
51
|
return (0, primitives_js_1.remap)(v, {
|
|
59
52
|
"document_url": "documentUrl",
|
|
@@ -62,9 +55,9 @@ exports.DocumentURLChunk$inboundSchema = z.object({
|
|
|
62
55
|
});
|
|
63
56
|
/** @internal */
|
|
64
57
|
exports.DocumentURLChunk$outboundSchema = z.object({
|
|
58
|
+
type: z.literal("document_url").default("document_url"),
|
|
65
59
|
documentUrl: z.string(),
|
|
66
60
|
documentName: z.nullable(z.string()).optional(),
|
|
67
|
-
type: exports.DocumentURLChunkType$outboundSchema.default("document_url"),
|
|
68
61
|
}).transform((v) => {
|
|
69
62
|
return (0, primitives_js_1.remap)(v, {
|
|
70
63
|
documentUrl: "document_url",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"documenturlchunk.js","sourceRoot":"","sources":["../../src/models/components/documenturlchunk.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"documenturlchunk.js","sourceRoot":"","sources":["../../src/models/components/documenturlchunk.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuDH,wDAMC;AACD,4DAQC;AApED,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAajD,gBAAgB;AACH,QAAA,8BAA8B,GAIvC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC;IACvD,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CACjD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,cAAc,EAAE,aAAa;QAC7B,eAAe,EAAE,cAAc;KAChC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,+BAA+B,GAIxC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC,cAAuB,CAAC;IAChE,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAChD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,WAAW,EAAE,cAAc;QAC3B,YAAY,EAAE,eAAe;KAC9B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,sBAAsB,CACpC,gBAAkC;IAElC,OAAO,IAAI,CAAC,SAAS,CACnB,uCAA+B,CAAC,KAAK,CAAC,gBAAgB,CAAC,CACxD,CAAC;AACJ,CAAC;AACD,SAAgB,wBAAwB,CACtC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,sCAA8B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1D,8CAA8C,CAC/C,CAAC;AACJ,CAAC"}
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
3
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
4
|
import { ModelCapabilities } from "./modelcapabilities.js";
|
|
6
|
-
export declare const FTModelCardType: {
|
|
7
|
-
readonly FineTuned: "fine-tuned";
|
|
8
|
-
};
|
|
9
|
-
export type FTModelCardType = ClosedEnum<typeof FTModelCardType>;
|
|
10
5
|
/**
|
|
11
6
|
* Extra fields for fine-tuned models.
|
|
12
7
|
*/
|
|
@@ -29,8 +24,6 @@ export type FTModelCard = {
|
|
|
29
24
|
archived: boolean | undefined;
|
|
30
25
|
};
|
|
31
26
|
/** @internal */
|
|
32
|
-
export declare const FTModelCardType$inboundSchema: z.ZodNativeEnum<typeof FTModelCardType>;
|
|
33
|
-
/** @internal */
|
|
34
27
|
export declare const FTModelCard$inboundSchema: z.ZodType<FTModelCard, z.ZodTypeDef, unknown>;
|
|
35
28
|
export declare function ftModelCardFromJSON(jsonString: string): SafeParseResult<FTModelCard, SDKValidationError>;
|
|
36
29
|
//# sourceMappingURL=ftmodelcard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ftmodelcard.d.ts","sourceRoot":"","sources":["../../src/models/components/ftmodelcard.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ftmodelcard.d.ts","sourceRoot":"","sources":["../../src/models/components/ftmodelcard.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,iBAAiB,EAElB,MAAM,wBAAwB,CAAC;AAEhC;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,YAAY,EAAE,iBAAiB,CAAC;IAChC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACpC,WAAW,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC,2BAA2B,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxD,uBAAuB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpD,IAAI,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,OAAO,CAC/C,WAAW,EACX,CAAC,CAAC,UAAU,EACZ,OAAO,CA2BP,CAAC;AAEH,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAMlD"}
|
|
@@ -36,17 +36,12 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.FTModelCard$inboundSchema =
|
|
39
|
+
exports.FTModelCard$inboundSchema = void 0;
|
|
40
40
|
exports.ftModelCardFromJSON = ftModelCardFromJSON;
|
|
41
41
|
const z = __importStar(require("zod/v3"));
|
|
42
42
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
43
43
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
44
|
const modelcapabilities_js_1 = require("./modelcapabilities.js");
|
|
45
|
-
exports.FTModelCardType = {
|
|
46
|
-
FineTuned: "fine-tuned",
|
|
47
|
-
};
|
|
48
|
-
/** @internal */
|
|
49
|
-
exports.FTModelCardType$inboundSchema = z.nativeEnum(exports.FTModelCardType);
|
|
50
45
|
/** @internal */
|
|
51
46
|
exports.FTModelCard$inboundSchema = z.object({
|
|
52
47
|
id: z.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ftmodelcard.js","sourceRoot":"","sources":["../../src/models/components/ftmodelcard.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"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CAAC,QAAQ,EAAE;IAChE,yBAAyB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC5D,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC;IACnD,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;CACrC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,UAAU,EAAE,SAAS;QACrB,oBAAoB,EAAE,kBAAkB;QACxC,+BAA+B,EAAE,6BAA6B;QAC9D,2BAA2B,EAAE,yBAAyB;KACvD,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,mBAAmB,CACjC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,iCAAyB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrD,yCAAyC,CAC1C,CAAC;AACJ,CAAC"}
|
|
@@ -3,44 +3,40 @@ 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
5
|
import { FunctionCallEntryArguments, FunctionCallEntryArguments$Outbound } from "./functioncallentryarguments.js";
|
|
6
|
-
export declare const
|
|
7
|
-
readonly
|
|
6
|
+
export declare const ConfirmationStatus: {
|
|
7
|
+
readonly Pending: "pending";
|
|
8
|
+
readonly Allowed: "allowed";
|
|
9
|
+
readonly Denied: "denied";
|
|
8
10
|
};
|
|
9
|
-
export type
|
|
10
|
-
export declare const FunctionCallEntryType: {
|
|
11
|
-
readonly FunctionCall: "function.call";
|
|
12
|
-
};
|
|
13
|
-
export type FunctionCallEntryType = ClosedEnum<typeof FunctionCallEntryType>;
|
|
11
|
+
export type ConfirmationStatus = ClosedEnum<typeof ConfirmationStatus>;
|
|
14
12
|
export type FunctionCallEntry = {
|
|
15
|
-
object?:
|
|
16
|
-
type?:
|
|
13
|
+
object?: "entry" | undefined;
|
|
14
|
+
type?: "function.call" | undefined;
|
|
17
15
|
createdAt?: Date | undefined;
|
|
18
16
|
completedAt?: Date | null | undefined;
|
|
19
17
|
id?: string | undefined;
|
|
20
18
|
toolCallId: string;
|
|
21
19
|
name: string;
|
|
22
20
|
arguments: FunctionCallEntryArguments;
|
|
21
|
+
confirmationStatus?: ConfirmationStatus | null | undefined;
|
|
23
22
|
};
|
|
24
23
|
/** @internal */
|
|
25
|
-
export declare const
|
|
26
|
-
/** @internal */
|
|
27
|
-
export declare const FunctionCallEntryObject$outboundSchema: z.ZodNativeEnum<typeof FunctionCallEntryObject>;
|
|
28
|
-
/** @internal */
|
|
29
|
-
export declare const FunctionCallEntryType$inboundSchema: z.ZodNativeEnum<typeof FunctionCallEntryType>;
|
|
24
|
+
export declare const ConfirmationStatus$inboundSchema: z.ZodNativeEnum<typeof ConfirmationStatus>;
|
|
30
25
|
/** @internal */
|
|
31
|
-
export declare const
|
|
26
|
+
export declare const ConfirmationStatus$outboundSchema: z.ZodNativeEnum<typeof ConfirmationStatus>;
|
|
32
27
|
/** @internal */
|
|
33
28
|
export declare const FunctionCallEntry$inboundSchema: z.ZodType<FunctionCallEntry, z.ZodTypeDef, unknown>;
|
|
34
29
|
/** @internal */
|
|
35
30
|
export type FunctionCallEntry$Outbound = {
|
|
36
|
-
object:
|
|
37
|
-
type:
|
|
31
|
+
object: "entry";
|
|
32
|
+
type: "function.call";
|
|
38
33
|
created_at?: string | undefined;
|
|
39
34
|
completed_at?: string | null | undefined;
|
|
40
35
|
id?: string | undefined;
|
|
41
36
|
tool_call_id: string;
|
|
42
37
|
name: string;
|
|
43
38
|
arguments: FunctionCallEntryArguments$Outbound;
|
|
39
|
+
confirmation_status?: string | null | undefined;
|
|
44
40
|
};
|
|
45
41
|
/** @internal */
|
|
46
42
|
export declare const FunctionCallEntry$outboundSchema: z.ZodType<FunctionCallEntry$Outbound, z.ZodTypeDef, FunctionCallEntry>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functioncallentry.d.ts","sourceRoot":"","sources":["../../src/models/components/functioncallentry.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,0BAA0B,EAE1B,mCAAmC,EAEpC,MAAM,iCAAiC,CAAC;AAEzC,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"functioncallentry.d.ts","sourceRoot":"","sources":["../../src/models/components/functioncallentry.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,0BAA0B,EAE1B,mCAAmC,EAEpC,MAAM,iCAAiC,CAAC;AAEzC,eAAO,MAAM,kBAAkB;;;;CAIrB,CAAC;AACX,MAAM,MAAM,kBAAkB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEvE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,IAAI,CAAC,EAAE,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CAAC;AAEH,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR;AACD,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAMxD"}
|
|
@@ -36,31 +36,26 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.FunctionCallEntry$outboundSchema = exports.FunctionCallEntry$inboundSchema = exports.
|
|
39
|
+
exports.FunctionCallEntry$outboundSchema = exports.FunctionCallEntry$inboundSchema = exports.ConfirmationStatus$outboundSchema = exports.ConfirmationStatus$inboundSchema = exports.ConfirmationStatus = void 0;
|
|
40
40
|
exports.functionCallEntryToJSON = functionCallEntryToJSON;
|
|
41
41
|
exports.functionCallEntryFromJSON = functionCallEntryFromJSON;
|
|
42
42
|
const z = __importStar(require("zod/v3"));
|
|
43
43
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
44
44
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
45
45
|
const functioncallentryarguments_js_1 = require("./functioncallentryarguments.js");
|
|
46
|
-
exports.
|
|
47
|
-
|
|
46
|
+
exports.ConfirmationStatus = {
|
|
47
|
+
Pending: "pending",
|
|
48
|
+
Allowed: "allowed",
|
|
49
|
+
Denied: "denied",
|
|
48
50
|
};
|
|
49
|
-
exports.FunctionCallEntryType = {
|
|
50
|
-
FunctionCall: "function.call",
|
|
51
|
-
};
|
|
52
|
-
/** @internal */
|
|
53
|
-
exports.FunctionCallEntryObject$inboundSchema = z.nativeEnum(exports.FunctionCallEntryObject);
|
|
54
|
-
/** @internal */
|
|
55
|
-
exports.FunctionCallEntryObject$outboundSchema = exports.FunctionCallEntryObject$inboundSchema;
|
|
56
51
|
/** @internal */
|
|
57
|
-
exports.
|
|
52
|
+
exports.ConfirmationStatus$inboundSchema = z.nativeEnum(exports.ConfirmationStatus);
|
|
58
53
|
/** @internal */
|
|
59
|
-
exports.
|
|
54
|
+
exports.ConfirmationStatus$outboundSchema = exports.ConfirmationStatus$inboundSchema;
|
|
60
55
|
/** @internal */
|
|
61
56
|
exports.FunctionCallEntry$inboundSchema = z.object({
|
|
62
|
-
object:
|
|
63
|
-
type:
|
|
57
|
+
object: z.literal("entry").default("entry"),
|
|
58
|
+
type: z.literal("function.call").default("function.call"),
|
|
64
59
|
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
65
60
|
.optional(),
|
|
66
61
|
completed_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
|
|
@@ -68,28 +63,32 @@ exports.FunctionCallEntry$inboundSchema = z.object({
|
|
|
68
63
|
tool_call_id: z.string(),
|
|
69
64
|
name: z.string(),
|
|
70
65
|
arguments: functioncallentryarguments_js_1.FunctionCallEntryArguments$inboundSchema,
|
|
66
|
+
confirmation_status: z.nullable(exports.ConfirmationStatus$inboundSchema).optional(),
|
|
71
67
|
}).transform((v) => {
|
|
72
68
|
return (0, primitives_js_1.remap)(v, {
|
|
73
69
|
"created_at": "createdAt",
|
|
74
70
|
"completed_at": "completedAt",
|
|
75
71
|
"tool_call_id": "toolCallId",
|
|
72
|
+
"confirmation_status": "confirmationStatus",
|
|
76
73
|
});
|
|
77
74
|
});
|
|
78
75
|
/** @internal */
|
|
79
76
|
exports.FunctionCallEntry$outboundSchema = z.object({
|
|
80
|
-
object:
|
|
81
|
-
type:
|
|
77
|
+
object: z.literal("entry").default("entry"),
|
|
78
|
+
type: z.literal("function.call").default("function.call"),
|
|
82
79
|
createdAt: z.date().transform(v => v.toISOString()).optional(),
|
|
83
80
|
completedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
84
81
|
id: z.string().optional(),
|
|
85
82
|
toolCallId: z.string(),
|
|
86
83
|
name: z.string(),
|
|
87
84
|
arguments: functioncallentryarguments_js_1.FunctionCallEntryArguments$outboundSchema,
|
|
85
|
+
confirmationStatus: z.nullable(exports.ConfirmationStatus$outboundSchema).optional(),
|
|
88
86
|
}).transform((v) => {
|
|
89
87
|
return (0, primitives_js_1.remap)(v, {
|
|
90
88
|
createdAt: "created_at",
|
|
91
89
|
completedAt: "completed_at",
|
|
92
90
|
toolCallId: "tool_call_id",
|
|
91
|
+
confirmationStatus: "confirmation_status",
|
|
93
92
|
});
|
|
94
93
|
});
|
|
95
94
|
function functionCallEntryToJSON(functionCallEntry) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functioncallentry.js","sourceRoot":"","sources":["../../src/models/components/functioncallentry.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"functioncallentry.js","sourceRoot":"","sources":["../../src/models/components/functioncallentry.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0GH,0DAMC;AACD,8DAQC;AAvHD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAIjD,mFAKyC;AAE5B,QAAA,kBAAkB,GAAG;IAChC,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;CACR,CAAC;AAeX,gBAAgB;AACH,QAAA,gCAAgC,GAEzC,CAAC,CAAC,UAAU,CAAC,0BAAkB,CAAC,CAAC;AACrC,gBAAgB;AACH,QAAA,iCAAiC,GAE1C,wCAAgC,CAAC;AAErC,gBAAgB;AACH,QAAA,+BAA+B,GAIxC,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;IAC3C,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC;IACzD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,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AE;IAC9D,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC5E,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,SAAS,EAAE,yEAAyC;IACpD,kBAAkB,EAAE,CAAC,CAAC,QAAQ,CAAC,yCAAiC,CAAC,CAAC,QAAQ,EAAE;CAC7E,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,YAAY;QACvB,WAAW,EAAE,cAAc;QAC3B,UAAU,EAAE,cAAc;QAC1B,kBAAkB,EAAE,qBAAqB;KAC1C,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,uBAAuB,CACrC,iBAAoC;IAEpC,OAAO,IAAI,CAAC,SAAS,CACnB,wCAAgC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAC1D,CAAC;AACJ,CAAC;AACD,SAAgB,yBAAyB,CACvC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uCAA+B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC3D,+CAA+C,CAChD,CAAC;AACJ,CAAC"}
|
|
@@ -2,21 +2,24 @@ import * as z from "zod/v3";
|
|
|
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
|
-
export declare const
|
|
6
|
-
readonly
|
|
5
|
+
export declare const FunctionCallEventConfirmationStatus: {
|
|
6
|
+
readonly Pending: "pending";
|
|
7
|
+
readonly Allowed: "allowed";
|
|
8
|
+
readonly Denied: "denied";
|
|
7
9
|
};
|
|
8
|
-
export type
|
|
10
|
+
export type FunctionCallEventConfirmationStatus = ClosedEnum<typeof FunctionCallEventConfirmationStatus>;
|
|
9
11
|
export type FunctionCallEvent = {
|
|
10
|
-
type
|
|
12
|
+
type?: "function.call.delta" | undefined;
|
|
11
13
|
createdAt?: Date | undefined;
|
|
12
14
|
outputIndex: number | undefined;
|
|
13
15
|
id: string;
|
|
14
16
|
name: string;
|
|
15
17
|
toolCallId: string;
|
|
16
18
|
arguments: string;
|
|
19
|
+
confirmationStatus?: FunctionCallEventConfirmationStatus | null | undefined;
|
|
17
20
|
};
|
|
18
21
|
/** @internal */
|
|
19
|
-
export declare const
|
|
22
|
+
export declare const FunctionCallEventConfirmationStatus$inboundSchema: z.ZodNativeEnum<typeof FunctionCallEventConfirmationStatus>;
|
|
20
23
|
/** @internal */
|
|
21
24
|
export declare const FunctionCallEvent$inboundSchema: z.ZodType<FunctionCallEvent, z.ZodTypeDef, unknown>;
|
|
22
25
|
export declare function functionCallEventFromJSON(jsonString: string): SafeParseResult<FunctionCallEvent, SDKValidationError>;
|