@mistralai/mistralai 1.14.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 +5 -3
- package/extra/realtime/connection.d.ts +1 -0
- package/extra/realtime/connection.d.ts.map +1 -1
- package/extra/realtime/connection.js +6 -0
- package/extra/realtime/connection.js.map +1 -1
- package/extra/realtime/transcription.d.ts.map +1 -1
- package/extra/realtime/transcription.js +3 -0
- package/extra/realtime/transcription.js.map +1 -1
- package/extra/structChat.js.map +1 -1
- package/funcs/batchJobsList.js +1 -0
- package/funcs/batchJobsList.js.map +1 -1
- 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/betaAgentsList.js +1 -0
- package/funcs/betaAgentsList.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/agentconversation.d.ts +1 -8
- package/models/components/agentconversation.d.ts.map +1 -1
- package/models/components/agentconversation.js +2 -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/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/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 +2 -2
- package/models/components/conversationrestartrequest.d.ts.map +1 -1
- package/models/components/conversationrestartrequest.js +1 -1
- package/models/components/conversationrestartrequest.js.map +1 -1
- package/models/components/conversationrestartstreamrequest.d.ts +2 -2
- package/models/components/conversationrestartstreamrequest.d.ts.map +1 -1
- package/models/components/conversationrestartstreamrequest.js +1 -1
- package/models/components/conversationrestartstreamrequest.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 +8 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +8 -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/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/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 +2 -0
- package/models/components/realtimetranscriptionsession.d.ts.map +1 -1
- package/models/components/realtimetranscriptionsession.js +4 -0
- package/models/components/realtimetranscriptionsession.js.map +1 -1
- 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/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 +2 -11
- package/models/components/transcriptionsegmentchunk.d.ts.map +1 -1
- package/models/components/transcriptionsegmentchunk.js +3 -10
- 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 +1 -8
- package/models/components/transcriptionstreamsegmentdelta.d.ts.map +1 -1
- package/models/components/transcriptionstreamsegmentdelta.js +2 -7
- 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/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/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/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -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 +1 -1
- package/sdk/mistralagents.d.ts +7 -0
- package/sdk/mistralagents.d.ts.map +1 -1
- package/sdk/mistralagents.js +10 -0
- package/sdk/mistralagents.js.map +1 -1
- package/src/extra/realtime/connection.ts +8 -0
- package/src/extra/realtime/transcription.ts +3 -0
- package/src/extra/structChat.ts +2 -2
- package/src/funcs/batchJobsList.ts +1 -0
- package/src/funcs/betaAgentsDeleteVersionAlias.ts +184 -0
- package/src/funcs/betaAgentsList.ts +1 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/agent.ts +5 -12
- package/src/models/components/agentconversation.ts +2 -15
- 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/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/conversationresponse.ts +2 -17
- package/src/models/components/conversationrestartrequest.ts +3 -3
- package/src/models/components/conversationrestartstreamrequest.ts +3 -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 +8 -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/modelconversation.ts +2 -15
- 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 +6 -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/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 +6 -18
- package/src/models/components/transcriptionstreamdone.ts +4 -25
- package/src/models/components/transcriptionstreamlanguage.ts +5 -24
- package/src/models/components/transcriptionstreamsegmentdelta.ts +2 -17
- 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/agentsapiv1agentsdeletealias.ts +41 -0
- package/src/models/operations/agentsapiv1agentslist.ts +9 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/jobsapiroutesbatchgetbatchjobs.ts +15 -0
- package/src/sdk/mistralagents.ts +18 -0
- package/tests/extra/realtime.test.ts +8 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modelconversation.d.ts","sourceRoot":"","sources":["../../src/models/components/modelconversation.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"modelconversation.d.ts","sourceRoot":"","sources":["../../src/models/components/modelconversation.ts"],"names":[],"mappings":"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"}
|
|
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.ModelConversation$inboundSchema = exports.
|
|
39
|
+
exports.ModelConversation$inboundSchema = exports.ModelConversationTools$inboundSchema = void 0;
|
|
40
40
|
exports.modelConversationToolsFromJSON = modelConversationToolsFromJSON;
|
|
41
41
|
exports.modelConversationFromJSON = modelConversationFromJSON;
|
|
42
42
|
const z = __importStar(require("zod/v3"));
|
|
@@ -49,9 +49,6 @@ const functiontool_js_1 = require("./functiontool.js");
|
|
|
49
49
|
const imagegenerationtool_js_1 = require("./imagegenerationtool.js");
|
|
50
50
|
const websearchpremiumtool_js_1 = require("./websearchpremiumtool.js");
|
|
51
51
|
const websearchtool_js_1 = require("./websearchtool.js");
|
|
52
|
-
exports.ModelConversationObject = {
|
|
53
|
-
Conversation: "conversation",
|
|
54
|
-
};
|
|
55
52
|
/** @internal */
|
|
56
53
|
exports.ModelConversationTools$inboundSchema = z.union([
|
|
57
54
|
codeinterpretertool_js_1.CodeInterpreterTool$inboundSchema.and(z.object({ type: z.literal("code_interpreter") })),
|
|
@@ -65,8 +62,6 @@ function modelConversationToolsFromJSON(jsonString) {
|
|
|
65
62
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ModelConversationTools$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ModelConversationTools' from JSON`);
|
|
66
63
|
}
|
|
67
64
|
/** @internal */
|
|
68
|
-
exports.ModelConversationObject$inboundSchema = z.nativeEnum(exports.ModelConversationObject);
|
|
69
|
-
/** @internal */
|
|
70
65
|
exports.ModelConversation$inboundSchema = z.object({
|
|
71
66
|
instructions: z.nullable(z.string()).optional(),
|
|
72
67
|
tools: z.array(z.union([
|
|
@@ -81,7 +76,7 @@ exports.ModelConversation$inboundSchema = z.object({
|
|
|
81
76
|
name: z.nullable(z.string()).optional(),
|
|
82
77
|
description: z.nullable(z.string()).optional(),
|
|
83
78
|
metadata: z.nullable(z.record(z.any())).optional(),
|
|
84
|
-
object:
|
|
79
|
+
object: z.literal("conversation").default("conversation"),
|
|
85
80
|
id: z.string(),
|
|
86
81
|
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
87
82
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modelconversation.js","sourceRoot":"","sources":["../../src/models/components/modelconversation.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"modelconversation.js","sourceRoot":"","sources":["../../src/models/components/modelconversation.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqGH,wEAQC;AA8CD,8DAQC;AAjKD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAGjD,qEAGkC;AAClC,2DAG6B;AAC7B,qEAGkC;AAClC,uDAA6E;AAC7E,qEAGkC;AAClC,uEAGmC;AACnC,yDAAgF;AAmDhF,gBAAgB;AACH,QAAA,oCAAoC,GAI7C,CAAC,CAAC,KAAK,CAAC;IACV,0DAAiC,CAAC,GAAG,CACnC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAClD;IACD,0DAAiC,CAAC,GAAG,CACnC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAClD;IACD,4CAA0B,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;IACzE,0DAAiC,CAAC,GAAG,CACnC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAClD;IACD,8CAA2B,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;IAC5E,4DAAkC,CAAC,GAAG,CACpC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC,EAAE,CAAC,CACpD;CACF,CAAC,CAAC;AAEH,SAAgB,8BAA8B,CAC5C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,4CAAoC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAChE,oDAAoD,CACrD,CAAC;AACJ,CAAC;AAED,gBAAgB;AACH,QAAA,+BAA+B,GAIxC,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC/C,KAAK,EAAE,CAAC,CAAC,KAAK,CACZ,CAAC,CAAC,KAAK,CAAC;QACN,0DAAiC,CAAC,GAAG,CACnC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAClD;QACD,0DAAiC,CAAC,GAAG,CACnC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAClD;QACD,4CAA0B,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;QACzE,0DAAiC,CAAC,GAAG,CACnC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAClD;QACD,8CAA2B,CAAC,GAAG,CAC7B,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,CAAC,CAC5C;QACD,4DAAkC,CAAC,GAAG,CACpC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC,EAAE,CAAC,CACpD;KACF,CAAC,CACH,CAAC,QAAQ,EAAE;IACZ,eAAe,EAAE,gDAA4B,CAAC,QAAQ,EAAE;IACxD,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACvC,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC9C,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;IAClD,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC;IACzD,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;IAC7E,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;IAC7E,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,iBAAiB,EAAE,gBAAgB;QACnC,YAAY,EAAE,WAAW;QACzB,YAAY,EAAE,WAAW;KAC1B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,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"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
export type RealtimeTranscriptionInputAudioAppend = {
|
|
5
|
+
type?: "input_audio.append" | undefined;
|
|
6
|
+
/**
|
|
7
|
+
* Base64-encoded raw PCM bytes matching the current audio_format. Max decoded size: 262144 bytes.
|
|
8
|
+
*/
|
|
9
|
+
audio: string;
|
|
10
|
+
};
|
|
11
|
+
/** @internal */
|
|
12
|
+
export declare const RealtimeTranscriptionInputAudioAppend$inboundSchema: z.ZodType<RealtimeTranscriptionInputAudioAppend, z.ZodTypeDef, unknown>;
|
|
13
|
+
/** @internal */
|
|
14
|
+
export type RealtimeTranscriptionInputAudioAppend$Outbound = {
|
|
15
|
+
type: "input_audio.append";
|
|
16
|
+
audio: string;
|
|
17
|
+
};
|
|
18
|
+
/** @internal */
|
|
19
|
+
export declare const RealtimeTranscriptionInputAudioAppend$outboundSchema: z.ZodType<RealtimeTranscriptionInputAudioAppend$Outbound, z.ZodTypeDef, RealtimeTranscriptionInputAudioAppend>;
|
|
20
|
+
export declare function realtimeTranscriptionInputAudioAppendToJSON(realtimeTranscriptionInputAudioAppend: RealtimeTranscriptionInputAudioAppend): string;
|
|
21
|
+
export declare function realtimeTranscriptionInputAudioAppendFromJSON(jsonString: string): SafeParseResult<RealtimeTranscriptionInputAudioAppend, SDKValidationError>;
|
|
22
|
+
//# sourceMappingURL=realtimetranscriptioninputaudioappend.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"realtimetranscriptioninputaudioappend.d.ts","sourceRoot":"","sources":["../../src/models/components/realtimetranscriptioninputaudioappend.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,qCAAqC,GAAG;IAClD,IAAI,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mDAAmD,EAAE,CAAC,CAAC,OAAO,CACzE,qCAAqC,EACrC,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,8CAA8C,GAAG;IAC3D,IAAI,EAAE,oBAAoB,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oDAAoD,EAAE,CAAC,CAAC,OAAO,CAC1E,8CAA8C,EAC9C,CAAC,CAAC,UAAU,EACZ,qCAAqC,CAIrC,CAAC;AAEH,wBAAgB,2CAA2C,CACzD,qCAAqC,EAAE,qCAAqC,GAC3E,MAAM,CAMR;AACD,wBAAgB,6CAA6C,CAC3D,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qCAAqC,EAAE,kBAAkB,CAAC,CAO5E"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.RealtimeTranscriptionInputAudioAppend$outboundSchema = exports.RealtimeTranscriptionInputAudioAppend$inboundSchema = void 0;
|
|
40
|
+
exports.realtimeTranscriptionInputAudioAppendToJSON = realtimeTranscriptionInputAudioAppendToJSON;
|
|
41
|
+
exports.realtimeTranscriptionInputAudioAppendFromJSON = realtimeTranscriptionInputAudioAppendFromJSON;
|
|
42
|
+
const z = __importStar(require("zod/v3"));
|
|
43
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
/** @internal */
|
|
45
|
+
exports.RealtimeTranscriptionInputAudioAppend$inboundSchema = z.object({
|
|
46
|
+
type: z.literal("input_audio.append").default("input_audio.append"),
|
|
47
|
+
audio: z.string(),
|
|
48
|
+
});
|
|
49
|
+
/** @internal */
|
|
50
|
+
exports.RealtimeTranscriptionInputAudioAppend$outboundSchema = z.object({
|
|
51
|
+
type: z.literal("input_audio.append").default("input_audio.append"),
|
|
52
|
+
audio: z.string(),
|
|
53
|
+
});
|
|
54
|
+
function realtimeTranscriptionInputAudioAppendToJSON(realtimeTranscriptionInputAudioAppend) {
|
|
55
|
+
return JSON.stringify(exports.RealtimeTranscriptionInputAudioAppend$outboundSchema.parse(realtimeTranscriptionInputAudioAppend));
|
|
56
|
+
}
|
|
57
|
+
function realtimeTranscriptionInputAudioAppendFromJSON(jsonString) {
|
|
58
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RealtimeTranscriptionInputAudioAppend$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RealtimeTranscriptionInputAudioAppend' from JSON`);
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=realtimetranscriptioninputaudioappend.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"realtimetranscriptioninputaudioappend.js","sourceRoot":"","sources":["../../src/models/components/realtimetranscriptioninputaudioappend.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCH,kGAQC;AACD,sGASC;AAxDD,0CAA4B;AAC5B,qDAAiD;AAYjD,gBAAgB;AACH,QAAA,mDAAmD,GAI5D,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC;IACnE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,oDAAoD,GAI7D,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC,oBAA6B,CAAC;IAC5E,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC;AAEH,SAAgB,2CAA2C,CACzD,qCAA4E;IAE5E,OAAO,IAAI,CAAC,SAAS,CACnB,4DAAoD,CAAC,KAAK,CACxD,qCAAqC,CACtC,CACF,CAAC;AACJ,CAAC;AACD,SAAgB,6CAA6C,CAC3D,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,2DAAmD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1E,mEAAmE,CACpE,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
export type RealtimeTranscriptionInputAudioEnd = {
|
|
5
|
+
type?: "input_audio.end" | undefined;
|
|
6
|
+
};
|
|
7
|
+
/** @internal */
|
|
8
|
+
export declare const RealtimeTranscriptionInputAudioEnd$inboundSchema: z.ZodType<RealtimeTranscriptionInputAudioEnd, z.ZodTypeDef, unknown>;
|
|
9
|
+
/** @internal */
|
|
10
|
+
export type RealtimeTranscriptionInputAudioEnd$Outbound = {
|
|
11
|
+
type: "input_audio.end";
|
|
12
|
+
};
|
|
13
|
+
/** @internal */
|
|
14
|
+
export declare const RealtimeTranscriptionInputAudioEnd$outboundSchema: z.ZodType<RealtimeTranscriptionInputAudioEnd$Outbound, z.ZodTypeDef, RealtimeTranscriptionInputAudioEnd>;
|
|
15
|
+
export declare function realtimeTranscriptionInputAudioEndToJSON(realtimeTranscriptionInputAudioEnd: RealtimeTranscriptionInputAudioEnd): string;
|
|
16
|
+
export declare function realtimeTranscriptionInputAudioEndFromJSON(jsonString: string): SafeParseResult<RealtimeTranscriptionInputAudioEnd, SDKValidationError>;
|
|
17
|
+
//# sourceMappingURL=realtimetranscriptioninputaudioend.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"realtimetranscriptioninputaudioend.d.ts","sourceRoot":"","sources":["../../src/models/components/realtimetranscriptioninputaudioend.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,kCAAkC,GAAG;IAC/C,IAAI,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;CACtC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gDAAgD,EAAE,CAAC,CAAC,OAAO,CACtE,kCAAkC,EAClC,CAAC,CAAC,UAAU,EACZ,OAAO,CAGP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,2CAA2C,GAAG;IACxD,IAAI,EAAE,iBAAiB,CAAC;CACzB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iDAAiD,EAAE,CAAC,CAAC,OAAO,CACvE,2CAA2C,EAC3C,CAAC,CAAC,UAAU,EACZ,kCAAkC,CAGlC,CAAC;AAEH,wBAAgB,wCAAwC,CACtD,kCAAkC,EAAE,kCAAkC,GACrE,MAAM,CAMR;AACD,wBAAgB,0CAA0C,CACxD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kCAAkC,EAAE,kBAAkB,CAAC,CAOzE"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.RealtimeTranscriptionInputAudioEnd$outboundSchema = exports.RealtimeTranscriptionInputAudioEnd$inboundSchema = void 0;
|
|
40
|
+
exports.realtimeTranscriptionInputAudioEndToJSON = realtimeTranscriptionInputAudioEndToJSON;
|
|
41
|
+
exports.realtimeTranscriptionInputAudioEndFromJSON = realtimeTranscriptionInputAudioEndFromJSON;
|
|
42
|
+
const z = __importStar(require("zod/v3"));
|
|
43
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
/** @internal */
|
|
45
|
+
exports.RealtimeTranscriptionInputAudioEnd$inboundSchema = z.object({
|
|
46
|
+
type: z.literal("input_audio.end").default("input_audio.end"),
|
|
47
|
+
});
|
|
48
|
+
/** @internal */
|
|
49
|
+
exports.RealtimeTranscriptionInputAudioEnd$outboundSchema = z.object({
|
|
50
|
+
type: z.literal("input_audio.end").default("input_audio.end"),
|
|
51
|
+
});
|
|
52
|
+
function realtimeTranscriptionInputAudioEndToJSON(realtimeTranscriptionInputAudioEnd) {
|
|
53
|
+
return JSON.stringify(exports.RealtimeTranscriptionInputAudioEnd$outboundSchema.parse(realtimeTranscriptionInputAudioEnd));
|
|
54
|
+
}
|
|
55
|
+
function realtimeTranscriptionInputAudioEndFromJSON(jsonString) {
|
|
56
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RealtimeTranscriptionInputAudioEnd$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RealtimeTranscriptionInputAudioEnd' from JSON`);
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=realtimetranscriptioninputaudioend.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"realtimetranscriptioninputaudioend.js","sourceRoot":"","sources":["../../src/models/components/realtimetranscriptioninputaudioend.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCH,4FAQC;AACD,gGASC;AAjDD,0CAA4B;AAC5B,qDAAiD;AAQjD,gBAAgB;AACH,QAAA,gDAAgD,GAIzD,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC;CAC9D,CAAC,CAAC;AAMH,gBAAgB;AACH,QAAA,iDAAiD,GAI1D,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAAO,CAAC,iBAA0B,CAAC;CACvE,CAAC,CAAC;AAEH,SAAgB,wCAAwC,CACtD,kCAAsE;IAEtE,OAAO,IAAI,CAAC,SAAS,CACnB,yDAAiD,CAAC,KAAK,CACrD,kCAAkC,CACnC,CACF,CAAC;AACJ,CAAC;AACD,SAAgB,0CAA0C,CACxD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,wDAAgD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACvE,gEAAgE,CACjE,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
export type RealtimeTranscriptionInputAudioFlush = {
|
|
5
|
+
type?: "input_audio.flush" | undefined;
|
|
6
|
+
};
|
|
7
|
+
/** @internal */
|
|
8
|
+
export declare const RealtimeTranscriptionInputAudioFlush$inboundSchema: z.ZodType<RealtimeTranscriptionInputAudioFlush, z.ZodTypeDef, unknown>;
|
|
9
|
+
/** @internal */
|
|
10
|
+
export type RealtimeTranscriptionInputAudioFlush$Outbound = {
|
|
11
|
+
type: "input_audio.flush";
|
|
12
|
+
};
|
|
13
|
+
/** @internal */
|
|
14
|
+
export declare const RealtimeTranscriptionInputAudioFlush$outboundSchema: z.ZodType<RealtimeTranscriptionInputAudioFlush$Outbound, z.ZodTypeDef, RealtimeTranscriptionInputAudioFlush>;
|
|
15
|
+
export declare function realtimeTranscriptionInputAudioFlushToJSON(realtimeTranscriptionInputAudioFlush: RealtimeTranscriptionInputAudioFlush): string;
|
|
16
|
+
export declare function realtimeTranscriptionInputAudioFlushFromJSON(jsonString: string): SafeParseResult<RealtimeTranscriptionInputAudioFlush, SDKValidationError>;
|
|
17
|
+
//# sourceMappingURL=realtimetranscriptioninputaudioflush.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"realtimetranscriptioninputaudioflush.d.ts","sourceRoot":"","sources":["../../src/models/components/realtimetranscriptioninputaudioflush.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,oCAAoC,GAAG;IACjD,IAAI,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kDAAkD,EAAE,CAAC,CAAC,OAAO,CACxE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,OAAO,CAGP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,6CAA6C,GAAG;IAC1D,IAAI,EAAE,mBAAmB,CAAC;CAC3B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mDAAmD,EAAE,CAAC,CAAC,OAAO,CACzE,6CAA6C,EAC7C,CAAC,CAAC,UAAU,EACZ,oCAAoC,CAGpC,CAAC;AAEH,wBAAgB,0CAA0C,CACxD,oCAAoC,EAAE,oCAAoC,GACzE,MAAM,CAMR;AACD,wBAAgB,4CAA4C,CAC1D,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oCAAoC,EAAE,kBAAkB,CAAC,CAO3E"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.RealtimeTranscriptionInputAudioFlush$outboundSchema = exports.RealtimeTranscriptionInputAudioFlush$inboundSchema = void 0;
|
|
40
|
+
exports.realtimeTranscriptionInputAudioFlushToJSON = realtimeTranscriptionInputAudioFlushToJSON;
|
|
41
|
+
exports.realtimeTranscriptionInputAudioFlushFromJSON = realtimeTranscriptionInputAudioFlushFromJSON;
|
|
42
|
+
const z = __importStar(require("zod/v3"));
|
|
43
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
/** @internal */
|
|
45
|
+
exports.RealtimeTranscriptionInputAudioFlush$inboundSchema = z.object({
|
|
46
|
+
type: z.literal("input_audio.flush").default("input_audio.flush"),
|
|
47
|
+
});
|
|
48
|
+
/** @internal */
|
|
49
|
+
exports.RealtimeTranscriptionInputAudioFlush$outboundSchema = z.object({
|
|
50
|
+
type: z.literal("input_audio.flush").default("input_audio.flush"),
|
|
51
|
+
});
|
|
52
|
+
function realtimeTranscriptionInputAudioFlushToJSON(realtimeTranscriptionInputAudioFlush) {
|
|
53
|
+
return JSON.stringify(exports.RealtimeTranscriptionInputAudioFlush$outboundSchema.parse(realtimeTranscriptionInputAudioFlush));
|
|
54
|
+
}
|
|
55
|
+
function realtimeTranscriptionInputAudioFlushFromJSON(jsonString) {
|
|
56
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RealtimeTranscriptionInputAudioFlush$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RealtimeTranscriptionInputAudioFlush' from JSON`);
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=realtimetranscriptioninputaudioflush.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"realtimetranscriptioninputaudioflush.js","sourceRoot":"","sources":["../../src/models/components/realtimetranscriptioninputaudioflush.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCH,gGAQC;AACD,oGASC;AAjDD,0CAA4B;AAC5B,qDAAiD;AAQjD,gBAAgB;AACH,QAAA,kDAAkD,GAI3D,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,OAAO,CAAC,mBAAmB,CAAC;CAClE,CAAC,CAAC;AAMH,gBAAgB;AACH,QAAA,mDAAmD,GAI5D,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,OAAO,CAAC,mBAA4B,CAAC;CAC3E,CAAC,CAAC;AAEH,SAAgB,0CAA0C,CACxD,oCAA0E;IAE1E,OAAO,IAAI,CAAC,SAAS,CACnB,2DAAmD,CAAC,KAAK,CACvD,oCAAoC,CACrC,CACF,CAAC;AACJ,CAAC;AACD,SAAgB,4CAA4C,CAC1D,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,0DAAkD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzE,kEAAkE,CACnE,CAAC;AACJ,CAAC"}
|
|
@@ -6,6 +6,7 @@ export type RealtimeTranscriptionSession = {
|
|
|
6
6
|
requestId: string;
|
|
7
7
|
model: string;
|
|
8
8
|
audioFormat: AudioFormat;
|
|
9
|
+
targetStreamingDelayMs?: number | null | undefined;
|
|
9
10
|
};
|
|
10
11
|
/** @internal */
|
|
11
12
|
export declare const RealtimeTranscriptionSession$inboundSchema: z.ZodType<RealtimeTranscriptionSession, z.ZodTypeDef, unknown>;
|
|
@@ -14,6 +15,7 @@ export type RealtimeTranscriptionSession$Outbound = {
|
|
|
14
15
|
request_id: string;
|
|
15
16
|
model: string;
|
|
16
17
|
audio_format: AudioFormat$Outbound;
|
|
18
|
+
target_streaming_delay_ms?: number | null | undefined;
|
|
17
19
|
};
|
|
18
20
|
/** @internal */
|
|
19
21
|
export declare const RealtimeTranscriptionSession$outboundSchema: z.ZodType<RealtimeTranscriptionSession$Outbound, z.ZodTypeDef, RealtimeTranscriptionSession>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"realtimetranscriptionsession.d.ts","sourceRoot":"","sources":["../../src/models/components/realtimetranscriptionsession.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,WAAW,EAEX,oBAAoB,EAErB,MAAM,kBAAkB,CAAC;AAE1B,MAAM,MAAM,4BAA4B,GAAG;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"realtimetranscriptionsession.d.ts","sourceRoot":"","sources":["../../src/models/components/realtimetranscriptionsession.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,WAAW,EAEX,oBAAoB,EAErB,MAAM,kBAAkB,CAAC;AAE1B,MAAM,MAAM,4BAA4B,GAAG;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,WAAW,CAAC;IACzB,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACpD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,OAAO,CAYP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,qCAAqC,GAAG;IAClD,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,oBAAoB,CAAC;IACnC,yBAAyB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACvD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,OAAO,CACjE,qCAAqC,EACrC,CAAC,CAAC,UAAU,EACZ,4BAA4B,CAY5B,CAAC;AAEH,wBAAgB,kCAAkC,CAChD,4BAA4B,EAAE,4BAA4B,GACzD,MAAM,CAMR;AACD,wBAAgB,oCAAoC,CAClD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,4BAA4B,EAAE,kBAAkB,CAAC,CAMnE"}
|
|
@@ -48,10 +48,12 @@ exports.RealtimeTranscriptionSession$inboundSchema = z.object({
|
|
|
48
48
|
request_id: z.string(),
|
|
49
49
|
model: z.string(),
|
|
50
50
|
audio_format: audioformat_js_1.AudioFormat$inboundSchema,
|
|
51
|
+
target_streaming_delay_ms: z.nullable(z.number().int()).optional(),
|
|
51
52
|
}).transform((v) => {
|
|
52
53
|
return (0, primitives_js_1.remap)(v, {
|
|
53
54
|
"request_id": "requestId",
|
|
54
55
|
"audio_format": "audioFormat",
|
|
56
|
+
"target_streaming_delay_ms": "targetStreamingDelayMs",
|
|
55
57
|
});
|
|
56
58
|
});
|
|
57
59
|
/** @internal */
|
|
@@ -59,10 +61,12 @@ exports.RealtimeTranscriptionSession$outboundSchema = z.object({
|
|
|
59
61
|
requestId: z.string(),
|
|
60
62
|
model: z.string(),
|
|
61
63
|
audioFormat: audioformat_js_1.AudioFormat$outboundSchema,
|
|
64
|
+
targetStreamingDelayMs: z.nullable(z.number().int()).optional(),
|
|
62
65
|
}).transform((v) => {
|
|
63
66
|
return (0, primitives_js_1.remap)(v, {
|
|
64
67
|
requestId: "request_id",
|
|
65
68
|
audioFormat: "audio_format",
|
|
69
|
+
targetStreamingDelayMs: "target_streaming_delay_ms",
|
|
66
70
|
});
|
|
67
71
|
});
|
|
68
72
|
function realtimeTranscriptionSessionToJSON(realtimeTranscriptionSession) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"realtimetranscriptionsession.js","sourceRoot":"","sources":["../../src/models/components/realtimetranscriptionsession.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"realtimetranscriptionsession.js","sourceRoot":"","sources":["../../src/models/components/realtimetranscriptionsession.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgEH,gFAQC;AACD,oFAQC;AA/ED,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAGjD,qDAK0B;AAS1B,gBAAgB;AACH,QAAA,0CAA0C,GAInD,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,YAAY,EAAE,0CAAyB;IACvC,yBAAyB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;CACnE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,YAAY,EAAE,WAAW;QACzB,cAAc,EAAE,aAAa;QAC7B,2BAA2B,EAAE,wBAAwB;KACtD,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AASH,gBAAgB;AACH,QAAA,2CAA2C,GAIpD,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,WAAW,EAAE,2CAA0B;IACvC,sBAAsB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;CAChE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,YAAY;QACvB,WAAW,EAAE,cAAc;QAC3B,sBAAsB,EAAE,2BAA2B;KACpD,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,kCAAkC,CAChD,4BAA0D;IAE1D,OAAO,IAAI,CAAC,SAAS,CACnB,mDAA2C,CAAC,KAAK,CAC/C,4BAA4B,CAC7B,CACF,CAAC;AACJ,CAAC;AACD,SAAgB,oCAAoC,CAClD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,kDAA0C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACtE,0DAA0D,CAC3D,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { RealtimeTranscriptionSessionUpdatePayload, RealtimeTranscriptionSessionUpdatePayload$Outbound } from "./realtimetranscriptionsessionupdatepayload.js";
|
|
5
|
+
export type RealtimeTranscriptionSessionUpdateMessage = {
|
|
6
|
+
type?: "session.update" | undefined;
|
|
7
|
+
session: RealtimeTranscriptionSessionUpdatePayload;
|
|
8
|
+
};
|
|
9
|
+
/** @internal */
|
|
10
|
+
export declare const RealtimeTranscriptionSessionUpdateMessage$inboundSchema: z.ZodType<RealtimeTranscriptionSessionUpdateMessage, z.ZodTypeDef, unknown>;
|
|
11
|
+
/** @internal */
|
|
12
|
+
export type RealtimeTranscriptionSessionUpdateMessage$Outbound = {
|
|
13
|
+
type: "session.update";
|
|
14
|
+
session: RealtimeTranscriptionSessionUpdatePayload$Outbound;
|
|
15
|
+
};
|
|
16
|
+
/** @internal */
|
|
17
|
+
export declare const RealtimeTranscriptionSessionUpdateMessage$outboundSchema: z.ZodType<RealtimeTranscriptionSessionUpdateMessage$Outbound, z.ZodTypeDef, RealtimeTranscriptionSessionUpdateMessage>;
|
|
18
|
+
export declare function realtimeTranscriptionSessionUpdateMessageToJSON(realtimeTranscriptionSessionUpdateMessage: RealtimeTranscriptionSessionUpdateMessage): string;
|
|
19
|
+
export declare function realtimeTranscriptionSessionUpdateMessageFromJSON(jsonString: string): SafeParseResult<RealtimeTranscriptionSessionUpdateMessage, SDKValidationError>;
|
|
20
|
+
//# sourceMappingURL=realtimetranscriptionsessionupdatemessage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"realtimetranscriptionsessionupdatemessage.d.ts","sourceRoot":"","sources":["../../src/models/components/realtimetranscriptionsessionupdatemessage.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,yCAAyC,EAEzC,kDAAkD,EAEnD,MAAM,gDAAgD,CAAC;AAExD,MAAM,MAAM,yCAAyC,GAAG;IACtD,IAAI,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;IACpC,OAAO,EAAE,yCAAyC,CAAC;CACpD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uDAAuD,EAAE,CAAC,CAAC,OAAO,CAC7E,yCAAyC,EACzC,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,kDAAkD,GAAG;IAC/D,IAAI,EAAE,gBAAgB,CAAC;IACvB,OAAO,EAAE,kDAAkD,CAAC;CAC7D,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wDAAwD,EACnE,CAAC,CAAC,OAAO,CACP,kDAAkD,EAClD,CAAC,CAAC,UAAU,EACZ,yCAAyC,CAIzC,CAAC;AAEL,wBAAgB,+CAA+C,CAC7D,yCAAyC,EACvC,yCAAyC,GAC1C,MAAM,CAMR;AACD,wBAAgB,iDAAiD,CAC/D,UAAU,EAAE,MAAM,GACjB,eAAe,CAChB,yCAAyC,EACzC,kBAAkB,CACnB,CASA"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.RealtimeTranscriptionSessionUpdateMessage$outboundSchema = exports.RealtimeTranscriptionSessionUpdateMessage$inboundSchema = void 0;
|
|
40
|
+
exports.realtimeTranscriptionSessionUpdateMessageToJSON = realtimeTranscriptionSessionUpdateMessageToJSON;
|
|
41
|
+
exports.realtimeTranscriptionSessionUpdateMessageFromJSON = realtimeTranscriptionSessionUpdateMessageFromJSON;
|
|
42
|
+
const z = __importStar(require("zod/v3"));
|
|
43
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
const realtimetranscriptionsessionupdatepayload_js_1 = require("./realtimetranscriptionsessionupdatepayload.js");
|
|
45
|
+
/** @internal */
|
|
46
|
+
exports.RealtimeTranscriptionSessionUpdateMessage$inboundSchema = z.object({
|
|
47
|
+
type: z.literal("session.update").default("session.update"),
|
|
48
|
+
session: realtimetranscriptionsessionupdatepayload_js_1.RealtimeTranscriptionSessionUpdatePayload$inboundSchema,
|
|
49
|
+
});
|
|
50
|
+
/** @internal */
|
|
51
|
+
exports.RealtimeTranscriptionSessionUpdateMessage$outboundSchema = z.object({
|
|
52
|
+
type: z.literal("session.update").default("session.update"),
|
|
53
|
+
session: realtimetranscriptionsessionupdatepayload_js_1.RealtimeTranscriptionSessionUpdatePayload$outboundSchema,
|
|
54
|
+
});
|
|
55
|
+
function realtimeTranscriptionSessionUpdateMessageToJSON(realtimeTranscriptionSessionUpdateMessage) {
|
|
56
|
+
return JSON.stringify(exports.RealtimeTranscriptionSessionUpdateMessage$outboundSchema.parse(realtimeTranscriptionSessionUpdateMessage));
|
|
57
|
+
}
|
|
58
|
+
function realtimeTranscriptionSessionUpdateMessageFromJSON(jsonString) {
|
|
59
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RealtimeTranscriptionSessionUpdateMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RealtimeTranscriptionSessionUpdateMessage' from JSON`);
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=realtimetranscriptionsessionupdatemessage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"realtimetranscriptionsessionupdatemessage.js","sourceRoot":"","sources":["../../src/models/components/realtimetranscriptionsessionupdatemessage.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4CH,0GASC;AACD,8GAcC;AAlED,0CAA4B;AAC5B,qDAAiD;AAGjD,iHAKwD;AAOxD,gBAAgB;AACH,QAAA,uDAAuD,GAIhE,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC;IAC3D,OAAO,EAAE,sGAAuD;CACjE,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,wDAAwD,GAK/D,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,OAAO,CAAC,gBAAyB,CAAC;IACpE,OAAO,EAAE,uGAAwD;CAClE,CAAC,CAAC;AAEL,SAAgB,+CAA+C,CAC7D,yCAC2C;IAE3C,OAAO,IAAI,CAAC,SAAS,CACnB,gEAAwD,CAAC,KAAK,CAC5D,yCAAyC,CAC1C,CACF,CAAC;AACJ,CAAC;AACD,SAAgB,iDAAiD,CAC/D,UAAkB;IAKlB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,+DAAuD,CAAC,KAAK,CAC3D,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CACd,EACH,uEAAuE,CACxE,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { AudioFormat, AudioFormat$Outbound } from "./audioformat.js";
|
|
5
|
+
export type RealtimeTranscriptionSessionUpdatePayload = {
|
|
6
|
+
/**
|
|
7
|
+
* Set before sending audio. Audio format updates are rejected after audio starts.
|
|
8
|
+
*/
|
|
9
|
+
audioFormat?: AudioFormat | null | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* Set before sending audio. Streaming delay updates are rejected after audio starts.
|
|
12
|
+
*/
|
|
13
|
+
targetStreamingDelayMs?: number | null | undefined;
|
|
14
|
+
};
|
|
15
|
+
/** @internal */
|
|
16
|
+
export declare const RealtimeTranscriptionSessionUpdatePayload$inboundSchema: z.ZodType<RealtimeTranscriptionSessionUpdatePayload, z.ZodTypeDef, unknown>;
|
|
17
|
+
/** @internal */
|
|
18
|
+
export type RealtimeTranscriptionSessionUpdatePayload$Outbound = {
|
|
19
|
+
audio_format?: AudioFormat$Outbound | null | undefined;
|
|
20
|
+
target_streaming_delay_ms?: number | null | undefined;
|
|
21
|
+
};
|
|
22
|
+
/** @internal */
|
|
23
|
+
export declare const RealtimeTranscriptionSessionUpdatePayload$outboundSchema: z.ZodType<RealtimeTranscriptionSessionUpdatePayload$Outbound, z.ZodTypeDef, RealtimeTranscriptionSessionUpdatePayload>;
|
|
24
|
+
export declare function realtimeTranscriptionSessionUpdatePayloadToJSON(realtimeTranscriptionSessionUpdatePayload: RealtimeTranscriptionSessionUpdatePayload): string;
|
|
25
|
+
export declare function realtimeTranscriptionSessionUpdatePayloadFromJSON(jsonString: string): SafeParseResult<RealtimeTranscriptionSessionUpdatePayload, SDKValidationError>;
|
|
26
|
+
//# sourceMappingURL=realtimetranscriptionsessionupdatepayload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"realtimetranscriptionsessionupdatepayload.d.ts","sourceRoot":"","sources":["../../src/models/components/realtimetranscriptionsessionupdatepayload.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,WAAW,EAEX,oBAAoB,EAErB,MAAM,kBAAkB,CAAC;AAE1B,MAAM,MAAM,yCAAyC,GAAG;IACtD;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,CAAC;IAC7C;;OAEG;IACH,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACpD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uDAAuD,EAAE,CAAC,CAAC,OAAO,CAC7E,yCAAyC,EACzC,CAAC,CAAC,UAAU,EACZ,OAAO,CASP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,kDAAkD,GAAG;IAC/D,YAAY,CAAC,EAAE,oBAAoB,GAAG,IAAI,GAAG,SAAS,CAAC;IACvD,yBAAyB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACvD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wDAAwD,EACnE,CAAC,CAAC,OAAO,CACP,kDAAkD,EAClD,CAAC,CAAC,UAAU,EACZ,yCAAyC,CASzC,CAAC;AAEL,wBAAgB,+CAA+C,CAC7D,yCAAyC,EACvC,yCAAyC,GAC1C,MAAM,CAMR;AACD,wBAAgB,iDAAiD,CAC/D,UAAU,EAAE,MAAM,GACjB,eAAe,CAChB,yCAAyC,EACzC,kBAAkB,CACnB,CASA"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.RealtimeTranscriptionSessionUpdatePayload$outboundSchema = exports.RealtimeTranscriptionSessionUpdatePayload$inboundSchema = void 0;
|
|
40
|
+
exports.realtimeTranscriptionSessionUpdatePayloadToJSON = realtimeTranscriptionSessionUpdatePayloadToJSON;
|
|
41
|
+
exports.realtimeTranscriptionSessionUpdatePayloadFromJSON = realtimeTranscriptionSessionUpdatePayloadFromJSON;
|
|
42
|
+
const z = __importStar(require("zod/v3"));
|
|
43
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
44
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
45
|
+
const audioformat_js_1 = require("./audioformat.js");
|
|
46
|
+
/** @internal */
|
|
47
|
+
exports.RealtimeTranscriptionSessionUpdatePayload$inboundSchema = z.object({
|
|
48
|
+
audio_format: z.nullable(audioformat_js_1.AudioFormat$inboundSchema).optional(),
|
|
49
|
+
target_streaming_delay_ms: z.nullable(z.number().int()).optional(),
|
|
50
|
+
}).transform((v) => {
|
|
51
|
+
return (0, primitives_js_1.remap)(v, {
|
|
52
|
+
"audio_format": "audioFormat",
|
|
53
|
+
"target_streaming_delay_ms": "targetStreamingDelayMs",
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
/** @internal */
|
|
57
|
+
exports.RealtimeTranscriptionSessionUpdatePayload$outboundSchema = z.object({
|
|
58
|
+
audioFormat: z.nullable(audioformat_js_1.AudioFormat$outboundSchema).optional(),
|
|
59
|
+
targetStreamingDelayMs: z.nullable(z.number().int()).optional(),
|
|
60
|
+
}).transform((v) => {
|
|
61
|
+
return (0, primitives_js_1.remap)(v, {
|
|
62
|
+
audioFormat: "audio_format",
|
|
63
|
+
targetStreamingDelayMs: "target_streaming_delay_ms",
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
function realtimeTranscriptionSessionUpdatePayloadToJSON(realtimeTranscriptionSessionUpdatePayload) {
|
|
67
|
+
return JSON.stringify(exports.RealtimeTranscriptionSessionUpdatePayload$outboundSchema.parse(realtimeTranscriptionSessionUpdatePayload));
|
|
68
|
+
}
|
|
69
|
+
function realtimeTranscriptionSessionUpdatePayloadFromJSON(jsonString) {
|
|
70
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RealtimeTranscriptionSessionUpdatePayload$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RealtimeTranscriptionSessionUpdatePayload' from JSON`);
|
|
71
|
+
}
|
|
72
|
+
//# sourceMappingURL=realtimetranscriptionsessionupdatepayload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"realtimetranscriptionsessionupdatepayload.js","sourceRoot":"","sources":["../../src/models/components/realtimetranscriptionsessionupdatepayload.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6DH,0GASC;AACD,8GAcC;AAnFD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAGjD,qDAK0B;AAa1B,gBAAgB;AACH,QAAA,uDAAuD,GAIhE,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,0CAAyB,CAAC,CAAC,QAAQ,EAAE;IAC9D,yBAAyB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;CACnE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,cAAc,EAAE,aAAa;QAC7B,2BAA2B,EAAE,wBAAwB;KACtD,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,wDAAwD,GAK/D,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,2CAA0B,CAAC,CAAC,QAAQ,EAAE;IAC9D,sBAAsB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;CAChE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,WAAW,EAAE,cAAc;QAC3B,sBAAsB,EAAE,2BAA2B;KACpD,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEL,SAAgB,+CAA+C,CAC7D,yCAC2C;IAE3C,OAAO,IAAI,CAAC,SAAS,CACnB,gEAAwD,CAAC,KAAK,CAC5D,yCAAyC,CAC1C,CACF,CAAC;AACJ,CAAC;AACD,SAAgB,iDAAiD,CAC/D,UAAkB;IAKlB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,+DAAuD,CAAC,KAAK,CAC3D,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CACd,EACH,uEAAuE,CACxE,CAAC;AACJ,CAAC"}
|