@mistralai/mistralai 1.7.3 → 1.7.5
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 +60 -2
- package/docs/sdks/accesses/README.md +263 -0
- package/docs/sdks/audio/README.md +6 -0
- package/docs/sdks/documents/README.md +809 -0
- package/docs/sdks/libraries/README.md +395 -0
- package/docs/sdks/transcriptions/README.md +167 -0
- package/examples/src/async_audio_transcription_stream.ts +17 -0
- package/funcs/audioTranscriptionsComplete.d.ts +13 -0
- package/funcs/audioTranscriptionsComplete.d.ts.map +1 -0
- package/funcs/audioTranscriptionsComplete.js +133 -0
- package/funcs/audioTranscriptionsComplete.js.map +1 -0
- package/funcs/audioTranscriptionsStream.d.ts +14 -0
- package/funcs/audioTranscriptionsStream.d.ts.map +1 -0
- package/funcs/audioTranscriptionsStream.js +143 -0
- package/funcs/audioTranscriptionsStream.js.map +1 -0
- package/funcs/batchJobsList.js +1 -0
- package/funcs/batchJobsList.js.map +1 -1
- package/funcs/betaLibrariesAccessesDelete.d.ts +18 -0
- package/funcs/betaLibrariesAccessesDelete.d.ts.map +1 -0
- package/funcs/betaLibrariesAccessesDelete.js +113 -0
- package/funcs/betaLibrariesAccessesDelete.js.map +1 -0
- package/funcs/betaLibrariesAccessesList.d.ts +18 -0
- package/funcs/betaLibrariesAccessesList.d.ts.map +1 -0
- package/funcs/betaLibrariesAccessesList.js +112 -0
- package/funcs/betaLibrariesAccessesList.js.map +1 -0
- package/funcs/betaLibrariesAccessesUpdateOrCreate.d.ts +18 -0
- package/funcs/betaLibrariesAccessesUpdateOrCreate.d.ts.map +1 -0
- package/funcs/betaLibrariesAccessesUpdateOrCreate.js +113 -0
- package/funcs/betaLibrariesAccessesUpdateOrCreate.js.map +1 -0
- package/funcs/betaLibrariesCreate.d.ts +17 -0
- package/funcs/betaLibrariesCreate.d.ts.map +1 -0
- package/funcs/betaLibrariesCreate.js +106 -0
- package/funcs/betaLibrariesCreate.js.map +1 -0
- package/funcs/betaLibrariesDelete.d.ts +18 -0
- package/funcs/betaLibrariesDelete.d.ts.map +1 -0
- package/funcs/betaLibrariesDelete.js +112 -0
- package/funcs/betaLibrariesDelete.js.map +1 -0
- package/funcs/betaLibrariesDocumentsDelete.d.ts +17 -0
- package/funcs/betaLibrariesDocumentsDelete.d.ts.map +1 -0
- package/funcs/betaLibrariesDocumentsDelete.js +116 -0
- package/funcs/betaLibrariesDocumentsDelete.js.map +1 -0
- package/funcs/betaLibrariesDocumentsExtractedTextSignedUrl.d.ts +17 -0
- package/funcs/betaLibrariesDocumentsExtractedTextSignedUrl.d.ts.map +1 -0
- package/funcs/betaLibrariesDocumentsExtractedTextSignedUrl.js +118 -0
- package/funcs/betaLibrariesDocumentsExtractedTextSignedUrl.js.map +1 -0
- package/funcs/betaLibrariesDocumentsGet.d.ts +18 -0
- package/funcs/betaLibrariesDocumentsGet.d.ts.map +1 -0
- package/funcs/betaLibrariesDocumentsGet.js +116 -0
- package/funcs/betaLibrariesDocumentsGet.js.map +1 -0
- package/funcs/betaLibrariesDocumentsGetSignedUrl.d.ts +17 -0
- package/funcs/betaLibrariesDocumentsGetSignedUrl.d.ts.map +1 -0
- package/funcs/betaLibrariesDocumentsGetSignedUrl.js +116 -0
- package/funcs/betaLibrariesDocumentsGetSignedUrl.js.map +1 -0
- package/funcs/betaLibrariesDocumentsList.d.ts +18 -0
- package/funcs/betaLibrariesDocumentsList.d.ts.map +1 -0
- package/funcs/betaLibrariesDocumentsList.js +120 -0
- package/funcs/betaLibrariesDocumentsList.js.map +1 -0
- package/funcs/betaLibrariesDocumentsReprocess.d.ts +17 -0
- package/funcs/betaLibrariesDocumentsReprocess.d.ts.map +1 -0
- package/funcs/betaLibrariesDocumentsReprocess.js +116 -0
- package/funcs/betaLibrariesDocumentsReprocess.js.map +1 -0
- package/funcs/betaLibrariesDocumentsStatus.d.ts +18 -0
- package/funcs/betaLibrariesDocumentsStatus.d.ts.map +1 -0
- package/funcs/betaLibrariesDocumentsStatus.js +116 -0
- package/funcs/betaLibrariesDocumentsStatus.js.map +1 -0
- package/funcs/betaLibrariesDocumentsTextContent.d.ts +18 -0
- package/funcs/betaLibrariesDocumentsTextContent.d.ts.map +1 -0
- package/funcs/betaLibrariesDocumentsTextContent.js +116 -0
- package/funcs/betaLibrariesDocumentsTextContent.js.map +1 -0
- package/funcs/betaLibrariesDocumentsUpdate.d.ts +18 -0
- package/funcs/betaLibrariesDocumentsUpdate.d.ts.map +1 -0
- package/funcs/betaLibrariesDocumentsUpdate.js +117 -0
- package/funcs/betaLibrariesDocumentsUpdate.js.map +1 -0
- package/funcs/betaLibrariesDocumentsUpload.d.ts +18 -0
- package/funcs/betaLibrariesDocumentsUpload.d.ts.map +1 -0
- package/funcs/betaLibrariesDocumentsUpload.js +128 -0
- package/funcs/betaLibrariesDocumentsUpload.js.map +1 -0
- package/funcs/betaLibrariesGet.d.ts +18 -0
- package/funcs/betaLibrariesGet.d.ts.map +1 -0
- package/funcs/betaLibrariesGet.js +112 -0
- package/funcs/betaLibrariesGet.js.map +1 -0
- package/funcs/betaLibrariesList.d.ts +16 -0
- package/funcs/betaLibrariesList.d.ts.map +1 -0
- package/funcs/betaLibrariesList.js +92 -0
- package/funcs/betaLibrariesList.js.map +1 -0
- package/funcs/betaLibrariesUpdate.d.ts +18 -0
- package/funcs/betaLibrariesUpdate.d.ts.map +1 -0
- package/funcs/betaLibrariesUpdate.js +113 -0
- package/funcs/betaLibrariesUpdate.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/audiochunk.d.ts +54 -0
- package/models/components/audiochunk.d.ts.map +1 -0
- package/models/components/audiochunk.js +88 -0
- package/models/components/audiochunk.js.map +1 -0
- package/models/components/audiotranscriptionrequest.d.ts +57 -0
- package/models/components/audiotranscriptionrequest.d.ts.map +1 -0
- package/models/components/audiotranscriptionrequest.js +91 -0
- package/models/components/audiotranscriptionrequest.js.map +1 -0
- package/models/components/audiotranscriptionrequeststream.d.ts +57 -0
- package/models/components/audiotranscriptionrequeststream.d.ts.map +1 -0
- package/models/components/audiotranscriptionrequeststream.js +91 -0
- package/models/components/audiotranscriptionrequeststream.js.map +1 -0
- package/models/components/basemodelcard.d.ts +23 -0
- package/models/components/basemodelcard.d.ts.map +1 -1
- package/models/components/basemodelcard.js +19 -1
- package/models/components/basemodelcard.js.map +1 -1
- package/models/components/batchjobin.d.ts +4 -2
- package/models/components/batchjobin.d.ts.map +1 -1
- package/models/components/batchjobin.js +6 -2
- package/models/components/batchjobin.js.map +1 -1
- package/models/components/batchjobout.d.ts +4 -2
- package/models/components/batchjobout.d.ts.map +1 -1
- package/models/components/batchjobout.js +6 -2
- package/models/components/batchjobout.js.map +1 -1
- package/models/components/classifierftmodelout.d.ts +4 -0
- package/models/components/classifierftmodelout.d.ts.map +1 -1
- package/models/components/classifierftmodelout.js +8 -0
- package/models/components/classifierftmodelout.js.map +1 -1
- package/models/components/completionargs.d.ts +2 -2
- package/models/components/completionargs.d.ts.map +1 -1
- package/models/components/completionargs.js +2 -2
- package/models/components/completionargs.js.map +1 -1
- package/models/components/completionftmodelout.d.ts +4 -0
- package/models/components/completionftmodelout.d.ts.map +1 -1
- package/models/components/completionftmodelout.js +8 -0
- package/models/components/completionftmodelout.js.map +1 -1
- package/models/components/contentchunk.d.ts +10 -0
- package/models/components/contentchunk.d.ts.map +1 -1
- package/models/components/contentchunk.js +14 -0
- package/models/components/contentchunk.js.map +1 -1
- package/models/components/conversationevents.d.ts +17 -8
- package/models/components/conversationevents.d.ts.map +1 -1
- package/models/components/conversationevents.js +19 -8
- package/models/components/conversationevents.js.map +1 -1
- package/models/components/conversationhistory.d.ts +4 -4
- package/models/components/conversationhistory.d.ts.map +1 -1
- package/models/components/conversationhistory.js +8 -8
- package/models/components/conversationhistory.js.map +1 -1
- package/models/components/documentout.d.ts +61 -0
- package/models/components/documentout.d.ts.map +1 -0
- package/models/components/documentout.js +121 -0
- package/models/components/documentout.js.map +1 -0
- package/models/components/documenttextcontent.d.ts +29 -0
- package/models/components/documenttextcontent.d.ts.map +1 -0
- package/models/components/documenttextcontent.js +59 -0
- package/models/components/documenttextcontent.js.map +1 -0
- package/models/components/documentupdatein.d.ts +29 -0
- package/models/components/documentupdatein.d.ts.map +1 -0
- package/models/components/documentupdatein.js +59 -0
- package/models/components/documentupdatein.js.map +1 -0
- package/models/components/entitytype.d.ts +29 -0
- package/models/components/entitytype.d.ts.map +1 -0
- package/models/components/entitytype.js +62 -0
- package/models/components/entitytype.js.map +1 -0
- package/models/components/file.d.ts +31 -0
- package/models/components/file.d.ts.map +1 -0
- package/models/components/file.js +72 -0
- package/models/components/file.js.map +1 -0
- package/models/components/fileschema.d.ts +4 -0
- package/models/components/fileschema.d.ts.map +1 -1
- package/models/components/fileschema.js +4 -0
- package/models/components/fileschema.js.map +1 -1
- package/models/components/ftmodelcard.d.ts +23 -0
- package/models/components/ftmodelcard.d.ts.map +1 -1
- package/models/components/ftmodelcard.js +19 -1
- package/models/components/ftmodelcard.js.map +1 -1
- package/models/components/index.d.ts +31 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +31 -0
- package/models/components/index.js.map +1 -1
- package/models/components/inputentries.d.ts +2 -2
- package/models/components/inputentries.d.ts.map +1 -1
- package/models/components/inputentries.js +4 -4
- package/models/components/inputentries.js.map +1 -1
- package/models/components/libraryin.d.ts +33 -0
- package/models/components/libraryin.d.ts.map +1 -0
- package/models/components/libraryin.js +72 -0
- package/models/components/libraryin.js.map +1 -0
- package/models/components/libraryinupdate.d.ts +31 -0
- package/models/components/libraryinupdate.d.ts.map +1 -0
- package/models/components/libraryinupdate.js +61 -0
- package/models/components/libraryinupdate.js.map +1 -0
- package/models/components/libraryout.d.ts +59 -0
- package/models/components/libraryout.d.ts.map +1 -0
- package/models/components/libraryout.js +120 -0
- package/models/components/libraryout.js.map +1 -0
- package/models/components/listdocumentout.d.ts +33 -0
- package/models/components/listdocumentout.d.ts.map +1 -0
- package/models/components/listdocumentout.js +63 -0
- package/models/components/listdocumentout.js.map +1 -0
- package/models/components/listlibraryout.d.ts +30 -0
- package/models/components/listlibraryout.d.ts.map +1 -0
- package/models/components/listlibraryout.js +60 -0
- package/models/components/listlibraryout.js.map +1 -0
- package/models/components/listsharingout.d.ts +30 -0
- package/models/components/listsharingout.d.ts.map +1 -0
- package/models/components/listsharingout.js +60 -0
- package/models/components/listsharingout.js.map +1 -0
- package/models/components/messageinputentry.d.ts +10 -8
- package/models/components/messageinputentry.d.ts.map +1 -1
- package/models/components/messageinputentry.js +15 -13
- package/models/components/messageinputentry.js.map +1 -1
- package/models/components/paginationinfo.d.ts +37 -0
- package/models/components/paginationinfo.d.ts.map +1 -0
- package/models/components/paginationinfo.js +84 -0
- package/models/components/paginationinfo.js.map +1 -0
- package/models/components/processingstatusout.d.ts +31 -0
- package/models/components/processingstatusout.d.ts.map +1 -0
- package/models/components/processingstatusout.js +72 -0
- package/models/components/processingstatusout.js.map +1 -0
- package/models/components/retrievefileout.d.ts +4 -0
- package/models/components/retrievefileout.d.ts.map +1 -1
- package/models/components/retrievefileout.js +4 -0
- package/models/components/retrievefileout.js.map +1 -1
- package/models/components/shareenum.d.ts +22 -0
- package/models/components/shareenum.d.ts.map +1 -0
- package/models/components/shareenum.js +58 -0
- package/models/components/shareenum.js.map +1 -0
- package/models/components/sharingdelete.d.ts +40 -0
- package/models/components/sharingdelete.d.ts.map +1 -0
- package/models/components/sharingdelete.js +77 -0
- package/models/components/sharingdelete.js.map +1 -0
- package/models/components/sharingin.d.ts +43 -0
- package/models/components/sharingin.d.ts.map +1 -0
- package/models/components/sharingin.js +80 -0
- package/models/components/sharingin.js.map +1 -0
- package/models/components/sharingout.d.ts +39 -0
- package/models/components/sharingout.d.ts.map +1 -0
- package/models/components/sharingout.js +86 -0
- package/models/components/sharingout.js.map +1 -0
- package/models/components/ssetypes.d.ts +3 -0
- package/models/components/ssetypes.d.ts.map +1 -1
- package/models/components/ssetypes.js +1 -0
- package/models/components/ssetypes.js.map +1 -1
- package/models/components/thinkchunk.d.ts +82 -0
- package/models/components/thinkchunk.d.ts.map +1 -0
- package/models/components/thinkchunk.js +106 -0
- package/models/components/thinkchunk.js.map +1 -0
- package/models/components/timestampgranularity.d.ts +25 -0
- package/models/components/timestampgranularity.d.ts.map +1 -0
- package/models/components/timestampgranularity.js +49 -0
- package/models/components/timestampgranularity.js.map +1 -0
- package/models/components/toolcall.d.ts +23 -0
- package/models/components/toolcall.d.ts.map +1 -1
- package/models/components/toolcall.js +26 -1
- package/models/components/toolcall.js.map +1 -1
- package/models/components/toolexecutiondeltaevent.d.ts +63 -0
- package/models/components/toolexecutiondeltaevent.d.ts.map +1 -0
- package/models/components/toolexecutiondeltaevent.js +100 -0
- package/models/components/toolexecutiondeltaevent.js.map +1 -0
- package/models/components/toolexecutionentry.d.ts +2 -0
- package/models/components/toolexecutionentry.d.ts.map +1 -1
- package/models/components/toolexecutionentry.js +2 -0
- package/models/components/toolexecutionentry.js.map +1 -1
- package/models/components/toolexecutionstartedevent.d.ts +2 -0
- package/models/components/toolexecutionstartedevent.d.ts.map +1 -1
- package/models/components/toolexecutionstartedevent.js +2 -0
- package/models/components/toolexecutionstartedevent.js.map +1 -1
- package/models/components/toolreferencechunk.d.ts +4 -2
- package/models/components/toolreferencechunk.d.ts.map +1 -1
- package/models/components/toolreferencechunk.js +4 -2
- package/models/components/toolreferencechunk.js.map +1 -1
- package/models/components/transcriptionresponse.d.ts +43 -0
- package/models/components/transcriptionresponse.d.ts.map +1 -0
- package/models/components/transcriptionresponse.js +78 -0
- package/models/components/transcriptionresponse.js.map +1 -0
- package/models/components/transcriptionsegmentchunk.d.ts +62 -0
- package/models/components/transcriptionsegmentchunk.d.ts.map +1 -0
- package/models/components/transcriptionsegmentchunk.js +92 -0
- package/models/components/transcriptionsegmentchunk.js.map +1 -0
- package/models/components/transcriptionstreamdone.d.ts +68 -0
- package/models/components/transcriptionstreamdone.d.ts.map +1 -0
- package/models/components/transcriptionstreamdone.js +98 -0
- package/models/components/transcriptionstreamdone.js.map +1 -0
- package/models/components/transcriptionstreamevents.d.ts +89 -0
- package/models/components/transcriptionstreamevents.d.ts.map +1 -0
- package/models/components/transcriptionstreamevents.js +138 -0
- package/models/components/transcriptionstreamevents.js.map +1 -0
- package/models/components/transcriptionstreameventtypes.d.ts +34 -0
- package/models/components/transcriptionstreameventtypes.d.ts.map +1 -0
- package/models/components/transcriptionstreameventtypes.js +52 -0
- package/models/components/transcriptionstreameventtypes.js.map +1 -0
- package/models/components/transcriptionstreamlanguage.d.ts +58 -0
- package/models/components/transcriptionstreamlanguage.d.ts.map +1 -0
- package/models/components/transcriptionstreamlanguage.js +93 -0
- package/models/components/transcriptionstreamlanguage.js.map +1 -0
- package/models/components/transcriptionstreamsegmentdelta.d.ts +62 -0
- package/models/components/transcriptionstreamsegmentdelta.d.ts.map +1 -0
- package/models/components/transcriptionstreamsegmentdelta.js +92 -0
- package/models/components/transcriptionstreamsegmentdelta.js.map +1 -0
- package/models/components/transcriptionstreamtextdelta.d.ts +58 -0
- package/models/components/transcriptionstreamtextdelta.d.ts.map +1 -0
- package/models/components/transcriptionstreamtextdelta.js +88 -0
- package/models/components/transcriptionstreamtextdelta.js.map +1 -0
- package/models/components/uploadfileout.d.ts +4 -0
- package/models/components/uploadfileout.d.ts.map +1 -1
- package/models/components/uploadfileout.js +4 -0
- package/models/components/uploadfileout.js.map +1 -1
- package/models/components/usageinfo.d.ts +9 -3
- package/models/components/usageinfo.d.ts.map +1 -1
- package/models/components/usageinfo.js +22 -13
- package/models/components/usageinfo.js.map +1 -1
- package/models/operations/filesapiroutesuploadfile.d.ts +2 -29
- package/models/operations/filesapiroutesuploadfile.d.ts.map +1 -1
- package/models/operations/filesapiroutesuploadfile.js +3 -43
- package/models/operations/filesapiroutesuploadfile.js.map +1 -1
- package/models/operations/index.d.ts +16 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +16 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/jobsapiroutesbatchgetbatchjobs.d.ts +2 -0
- package/models/operations/jobsapiroutesbatchgetbatchjobs.d.ts.map +1 -1
- package/models/operations/jobsapiroutesbatchgetbatchjobs.js +4 -0
- package/models/operations/jobsapiroutesbatchgetbatchjobs.js.map +1 -1
- package/models/operations/librariesdeletev1.d.ts +29 -0
- package/models/operations/librariesdeletev1.d.ts.map +1 -0
- package/models/operations/librariesdeletev1.js +68 -0
- package/models/operations/librariesdeletev1.js.map +1 -0
- package/models/operations/librariesdocumentsdeletev1.d.ts +31 -0
- package/models/operations/librariesdocumentsdeletev1.d.ts.map +1 -0
- package/models/operations/librariesdocumentsdeletev1.js +72 -0
- package/models/operations/librariesdocumentsdeletev1.js.map +1 -0
- package/models/operations/librariesdocumentsgetextractedtextsignedurlv1.d.ts +31 -0
- package/models/operations/librariesdocumentsgetextractedtextsignedurlv1.d.ts.map +1 -0
- package/models/operations/librariesdocumentsgetextractedtextsignedurlv1.js +72 -0
- package/models/operations/librariesdocumentsgetextractedtextsignedurlv1.js.map +1 -0
- package/models/operations/librariesdocumentsgetsignedurlv1.d.ts +31 -0
- package/models/operations/librariesdocumentsgetsignedurlv1.d.ts.map +1 -0
- package/models/operations/librariesdocumentsgetsignedurlv1.js +72 -0
- package/models/operations/librariesdocumentsgetsignedurlv1.js.map +1 -0
- package/models/operations/librariesdocumentsgetstatusv1.d.ts +31 -0
- package/models/operations/librariesdocumentsgetstatusv1.d.ts.map +1 -0
- package/models/operations/librariesdocumentsgetstatusv1.js +72 -0
- package/models/operations/librariesdocumentsgetstatusv1.js.map +1 -0
- package/models/operations/librariesdocumentsgettextcontentv1.d.ts +31 -0
- package/models/operations/librariesdocumentsgettextcontentv1.d.ts.map +1 -0
- package/models/operations/librariesdocumentsgettextcontentv1.js +72 -0
- package/models/operations/librariesdocumentsgettextcontentv1.js.map +1 -0
- package/models/operations/librariesdocumentsgetv1.d.ts +31 -0
- package/models/operations/librariesdocumentsgetv1.d.ts.map +1 -0
- package/models/operations/librariesdocumentsgetv1.js +72 -0
- package/models/operations/librariesdocumentsgetv1.js.map +1 -0
- package/models/operations/librariesdocumentslistv1.d.ts +39 -0
- package/models/operations/librariesdocumentslistv1.d.ts.map +1 -0
- package/models/operations/librariesdocumentslistv1.js +84 -0
- package/models/operations/librariesdocumentslistv1.js.map +1 -0
- package/models/operations/librariesdocumentsreprocessv1.d.ts +31 -0
- package/models/operations/librariesdocumentsreprocessv1.d.ts.map +1 -0
- package/models/operations/librariesdocumentsreprocessv1.js +72 -0
- package/models/operations/librariesdocumentsreprocessv1.js.map +1 -0
- package/models/operations/librariesdocumentsupdatev1.d.ts +34 -0
- package/models/operations/librariesdocumentsupdatev1.d.ts.map +1 -0
- package/models/operations/librariesdocumentsupdatev1.js +77 -0
- package/models/operations/librariesdocumentsupdatev1.js.map +1 -0
- package/models/operations/librariesdocumentsuploadv1.d.ts +70 -0
- package/models/operations/librariesdocumentsuploadv1.d.ts.map +1 -0
- package/models/operations/librariesdocumentsuploadv1.js +101 -0
- package/models/operations/librariesdocumentsuploadv1.js.map +1 -0
- package/models/operations/librariesgetv1.d.ts +29 -0
- package/models/operations/librariesgetv1.d.ts.map +1 -0
- package/models/operations/librariesgetv1.js +68 -0
- package/models/operations/librariesgetv1.js.map +1 -0
- package/models/operations/librariessharecreatev1.d.ts +32 -0
- package/models/operations/librariessharecreatev1.d.ts.map +1 -0
- package/models/operations/librariessharecreatev1.js +73 -0
- package/models/operations/librariessharecreatev1.js.map +1 -0
- package/models/operations/librariessharedeletev1.d.ts +32 -0
- package/models/operations/librariessharedeletev1.d.ts.map +1 -0
- package/models/operations/librariessharedeletev1.js +73 -0
- package/models/operations/librariessharedeletev1.js.map +1 -0
- package/models/operations/librariessharelistv1.d.ts +29 -0
- package/models/operations/librariessharelistv1.d.ts.map +1 -0
- package/models/operations/librariessharelistv1.js +68 -0
- package/models/operations/librariessharelistv1.js.map +1 -0
- package/models/operations/librariesupdatev1.d.ts +32 -0
- package/models/operations/librariesupdatev1.d.ts.map +1 -0
- package/models/operations/librariesupdatev1.js +73 -0
- package/models/operations/librariesupdatev1.js.map +1 -0
- package/package.json +1 -1
- package/sdk/accesses.d.ts +27 -0
- package/sdk/accesses.d.ts.map +1 -0
- package/sdk/accesses.js +42 -0
- package/sdk/accesses.js.map +1 -0
- package/sdk/audio.d.ts +7 -0
- package/sdk/audio.d.ts.map +1 -0
- package/sdk/audio.js +15 -0
- package/sdk/audio.js.map +1 -0
- package/sdk/beta.d.ts +3 -0
- package/sdk/beta.d.ts.map +1 -1
- package/sdk/beta.js +4 -0
- package/sdk/beta.js.map +1 -1
- package/sdk/documents.d.ts +76 -0
- package/sdk/documents.d.ts.map +1 -0
- package/sdk/documents.js +112 -0
- package/sdk/documents.js.map +1 -0
- package/sdk/libraries.d.ts +47 -0
- package/sdk/libraries.d.ts.map +1 -0
- package/sdk/libraries.js +70 -0
- package/sdk/libraries.js.map +1 -0
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/sdk/transcriptions.d.ts +14 -0
- package/sdk/transcriptions.d.ts.map +1 -0
- package/sdk/transcriptions.js +26 -0
- package/sdk/transcriptions.js.map +1 -0
- package/src/funcs/audioTranscriptionsComplete.ts +193 -0
- package/src/funcs/audioTranscriptionsStream.ts +207 -0
- package/src/funcs/batchJobsList.ts +1 -0
- package/src/funcs/betaLibrariesAccessesDelete.ts +172 -0
- package/src/funcs/betaLibrariesAccessesList.ts +171 -0
- package/src/funcs/betaLibrariesAccessesUpdateOrCreate.ts +172 -0
- package/src/funcs/betaLibrariesCreate.ts +163 -0
- package/src/funcs/betaLibrariesDelete.ts +170 -0
- package/src/funcs/betaLibrariesDocumentsDelete.ts +177 -0
- package/src/funcs/betaLibrariesDocumentsExtractedTextSignedUrl.ts +179 -0
- package/src/funcs/betaLibrariesDocumentsGet.ts +177 -0
- package/src/funcs/betaLibrariesDocumentsGetSignedUrl.ts +179 -0
- package/src/funcs/betaLibrariesDocumentsList.ts +180 -0
- package/src/funcs/betaLibrariesDocumentsReprocess.ts +179 -0
- package/src/funcs/betaLibrariesDocumentsStatus.ts +179 -0
- package/src/funcs/betaLibrariesDocumentsTextContent.ts +179 -0
- package/src/funcs/betaLibrariesDocumentsUpdate.ts +178 -0
- package/src/funcs/betaLibrariesDocumentsUpload.ts +193 -0
- package/src/funcs/betaLibrariesGet.ts +170 -0
- package/src/funcs/betaLibrariesList.ts +136 -0
- package/src/funcs/betaLibrariesUpdate.ts +171 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/audiochunk.ts +102 -0
- package/src/models/components/audiotranscriptionrequest.ts +133 -0
- package/src/models/components/audiotranscriptionrequeststream.ts +135 -0
- package/src/models/components/basemodelcard.ts +28 -1
- package/src/models/components/batchjobin.ts +10 -4
- package/src/models/components/batchjobout.ts +10 -4
- package/src/models/components/classifierftmodelout.ts +12 -0
- package/src/models/components/completionargs.ts +4 -4
- package/src/models/components/completionftmodelout.ts +12 -0
- package/src/models/components/contentchunk.ts +38 -2
- package/src/models/components/conversationevents.ts +54 -24
- package/src/models/components/conversationhistory.ts +16 -16
- package/src/models/components/documentout.ts +158 -0
- package/src/models/components/documenttextcontent.ts +66 -0
- package/src/models/components/documentupdatein.ts +66 -0
- package/src/models/components/entitytype.ts +55 -0
- package/src/models/components/file.ts +73 -0
- package/src/models/components/fileschema.ts +8 -0
- package/src/models/components/ftmodelcard.ts +28 -1
- package/src/models/components/index.ts +31 -0
- package/src/models/components/inputentries.ts +8 -8
- package/src/models/components/libraryin.ts +79 -0
- package/src/models/components/libraryinupdate.ts +68 -0
- package/src/models/components/libraryout.ts +153 -0
- package/src/models/components/listdocumentout.ts +80 -0
- package/src/models/components/listlibraryout.ts +68 -0
- package/src/models/components/listsharingout.ts +68 -0
- package/src/models/components/messageinputentry.ts +20 -15
- package/src/models/components/paginationinfo.ts +95 -0
- package/src/models/components/processingstatusout.ts +81 -0
- package/src/models/components/retrievefileout.ts +8 -0
- package/src/models/components/shareenum.ts +48 -0
- package/src/models/components/sharingdelete.ts +94 -0
- package/src/models/components/sharingin.ts +103 -0
- package/src/models/components/sharingout.ts +99 -0
- package/src/models/components/ssetypes.ts +1 -0
- package/src/models/components/thinkchunk.ts +162 -0
- package/src/models/components/timestampgranularity.ts +32 -0
- package/src/models/components/toolcall.ts +50 -0
- package/src/models/components/toolexecutiondeltaevent.ts +136 -0
- package/src/models/components/toolexecutionentry.ts +4 -0
- package/src/models/components/toolexecutionstartedevent.ts +4 -0
- package/src/models/components/toolreferencechunk.ts +8 -4
- package/src/models/components/transcriptionresponse.ts +112 -0
- package/src/models/components/transcriptionsegmentchunk.ts +122 -0
- package/src/models/components/transcriptionstreamdone.ts +149 -0
- package/src/models/components/transcriptionstreamevents.ts +273 -0
- package/src/models/components/transcriptionstreameventtypes.ts +37 -0
- package/src/models/components/transcriptionstreamlanguage.ts +128 -0
- package/src/models/components/transcriptionstreamsegmentdelta.ts +133 -0
- package/src/models/components/transcriptionstreamtextdelta.ts +123 -0
- package/src/models/components/uploadfileout.ts +8 -0
- package/src/models/components/usageinfo.ts +37 -17
- package/src/models/operations/filesapiroutesuploadfile.ts +4 -69
- package/src/models/operations/index.ts +16 -0
- package/src/models/operations/jobsapiroutesbatchgetbatchjobs.ts +6 -0
- package/src/models/operations/librariesdeletev1.ts +75 -0
- package/src/models/operations/librariesdocumentsdeletev1.ts +84 -0
- package/src/models/operations/librariesdocumentsgetextractedtextsignedurlv1.ts +95 -0
- package/src/models/operations/librariesdocumentsgetsignedurlv1.ts +92 -0
- package/src/models/operations/librariesdocumentsgetstatusv1.ts +86 -0
- package/src/models/operations/librariesdocumentsgettextcontentv1.ts +93 -0
- package/src/models/operations/librariesdocumentsgetv1.ts +83 -0
- package/src/models/operations/librariesdocumentslistv1.ts +103 -0
- package/src/models/operations/librariesdocumentsreprocessv1.ts +86 -0
- package/src/models/operations/librariesdocumentsupdatev1.ts +91 -0
- package/src/models/operations/librariesdocumentsuploadv1.ts +172 -0
- package/src/models/operations/librariesgetv1.ts +75 -0
- package/src/models/operations/librariessharecreatev1.ts +84 -0
- package/src/models/operations/librariessharedeletev1.ts +84 -0
- package/src/models/operations/librariessharelistv1.ts +77 -0
- package/src/models/operations/librariesupdatev1.ts +82 -0
- package/src/sdk/accesses.ts +64 -0
- package/src/sdk/audio.ts +13 -0
- package/src/sdk/beta.ts +6 -0
- package/src/sdk/documents.ts +190 -0
- package/src/sdk/libraries.ts +110 -0
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/transcriptions.ts +40 -0
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type SharingOut = {
|
|
12
|
+
libraryId: string;
|
|
13
|
+
userId?: string | null | undefined;
|
|
14
|
+
orgId: string;
|
|
15
|
+
role: string;
|
|
16
|
+
shareWithType: string;
|
|
17
|
+
shareWithUuid: string;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const SharingOut$inboundSchema: z.ZodType<
|
|
22
|
+
SharingOut,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
library_id: z.string(),
|
|
27
|
+
user_id: z.nullable(z.string()).optional(),
|
|
28
|
+
org_id: z.string(),
|
|
29
|
+
role: z.string(),
|
|
30
|
+
share_with_type: z.string(),
|
|
31
|
+
share_with_uuid: z.string(),
|
|
32
|
+
}).transform((v) => {
|
|
33
|
+
return remap$(v, {
|
|
34
|
+
"library_id": "libraryId",
|
|
35
|
+
"user_id": "userId",
|
|
36
|
+
"org_id": "orgId",
|
|
37
|
+
"share_with_type": "shareWithType",
|
|
38
|
+
"share_with_uuid": "shareWithUuid",
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export type SharingOut$Outbound = {
|
|
44
|
+
library_id: string;
|
|
45
|
+
user_id?: string | null | undefined;
|
|
46
|
+
org_id: string;
|
|
47
|
+
role: string;
|
|
48
|
+
share_with_type: string;
|
|
49
|
+
share_with_uuid: string;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export const SharingOut$outboundSchema: z.ZodType<
|
|
54
|
+
SharingOut$Outbound,
|
|
55
|
+
z.ZodTypeDef,
|
|
56
|
+
SharingOut
|
|
57
|
+
> = z.object({
|
|
58
|
+
libraryId: z.string(),
|
|
59
|
+
userId: z.nullable(z.string()).optional(),
|
|
60
|
+
orgId: z.string(),
|
|
61
|
+
role: z.string(),
|
|
62
|
+
shareWithType: z.string(),
|
|
63
|
+
shareWithUuid: z.string(),
|
|
64
|
+
}).transform((v) => {
|
|
65
|
+
return remap$(v, {
|
|
66
|
+
libraryId: "library_id",
|
|
67
|
+
userId: "user_id",
|
|
68
|
+
orgId: "org_id",
|
|
69
|
+
shareWithType: "share_with_type",
|
|
70
|
+
shareWithUuid: "share_with_uuid",
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* @internal
|
|
76
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
77
|
+
*/
|
|
78
|
+
export namespace SharingOut$ {
|
|
79
|
+
/** @deprecated use `SharingOut$inboundSchema` instead. */
|
|
80
|
+
export const inboundSchema = SharingOut$inboundSchema;
|
|
81
|
+
/** @deprecated use `SharingOut$outboundSchema` instead. */
|
|
82
|
+
export const outboundSchema = SharingOut$outboundSchema;
|
|
83
|
+
/** @deprecated use `SharingOut$Outbound` instead. */
|
|
84
|
+
export type Outbound = SharingOut$Outbound;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function sharingOutToJSON(sharingOut: SharingOut): string {
|
|
88
|
+
return JSON.stringify(SharingOut$outboundSchema.parse(sharingOut));
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function sharingOutFromJSON(
|
|
92
|
+
jsonString: string,
|
|
93
|
+
): SafeParseResult<SharingOut, SDKValidationError> {
|
|
94
|
+
return safeParse(
|
|
95
|
+
jsonString,
|
|
96
|
+
(x) => SharingOut$inboundSchema.parse(JSON.parse(x)),
|
|
97
|
+
`Failed to parse 'SharingOut' from JSON`,
|
|
98
|
+
);
|
|
99
|
+
}
|
|
@@ -14,6 +14,7 @@ export const SSETypes = {
|
|
|
14
14
|
ConversationResponseError: "conversation.response.error",
|
|
15
15
|
MessageOutputDelta: "message.output.delta",
|
|
16
16
|
ToolExecutionStarted: "tool.execution.started",
|
|
17
|
+
ToolExecutionDelta: "tool.execution.delta",
|
|
17
18
|
ToolExecutionDone: "tool.execution.done",
|
|
18
19
|
AgentHandoffStarted: "agent.handoff.started",
|
|
19
20
|
AgentHandoffDone: "agent.handoff.done",
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
ReferenceChunk,
|
|
12
|
+
ReferenceChunk$inboundSchema,
|
|
13
|
+
ReferenceChunk$Outbound,
|
|
14
|
+
ReferenceChunk$outboundSchema,
|
|
15
|
+
} from "./referencechunk.js";
|
|
16
|
+
import {
|
|
17
|
+
TextChunk,
|
|
18
|
+
TextChunk$inboundSchema,
|
|
19
|
+
TextChunk$Outbound,
|
|
20
|
+
TextChunk$outboundSchema,
|
|
21
|
+
} from "./textchunk.js";
|
|
22
|
+
|
|
23
|
+
export type Thinking = ReferenceChunk | TextChunk;
|
|
24
|
+
|
|
25
|
+
export const ThinkChunkType = {
|
|
26
|
+
Thinking: "thinking",
|
|
27
|
+
} as const;
|
|
28
|
+
export type ThinkChunkType = ClosedEnum<typeof ThinkChunkType>;
|
|
29
|
+
|
|
30
|
+
export type ThinkChunk = {
|
|
31
|
+
thinking: Array<ReferenceChunk | TextChunk>;
|
|
32
|
+
/**
|
|
33
|
+
* Whether the thinking chunk is closed or not. Currently only used for prefixing.
|
|
34
|
+
*/
|
|
35
|
+
closed?: boolean | undefined;
|
|
36
|
+
type?: ThinkChunkType | undefined;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const Thinking$inboundSchema: z.ZodType<
|
|
41
|
+
Thinking,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
unknown
|
|
44
|
+
> = z.union([ReferenceChunk$inboundSchema, TextChunk$inboundSchema]);
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export type Thinking$Outbound = ReferenceChunk$Outbound | TextChunk$Outbound;
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const Thinking$outboundSchema: z.ZodType<
|
|
51
|
+
Thinking$Outbound,
|
|
52
|
+
z.ZodTypeDef,
|
|
53
|
+
Thinking
|
|
54
|
+
> = z.union([ReferenceChunk$outboundSchema, TextChunk$outboundSchema]);
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @internal
|
|
58
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
59
|
+
*/
|
|
60
|
+
export namespace Thinking$ {
|
|
61
|
+
/** @deprecated use `Thinking$inboundSchema` instead. */
|
|
62
|
+
export const inboundSchema = Thinking$inboundSchema;
|
|
63
|
+
/** @deprecated use `Thinking$outboundSchema` instead. */
|
|
64
|
+
export const outboundSchema = Thinking$outboundSchema;
|
|
65
|
+
/** @deprecated use `Thinking$Outbound` instead. */
|
|
66
|
+
export type Outbound = Thinking$Outbound;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function thinkingToJSON(thinking: Thinking): string {
|
|
70
|
+
return JSON.stringify(Thinking$outboundSchema.parse(thinking));
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function thinkingFromJSON(
|
|
74
|
+
jsonString: string,
|
|
75
|
+
): SafeParseResult<Thinking, SDKValidationError> {
|
|
76
|
+
return safeParse(
|
|
77
|
+
jsonString,
|
|
78
|
+
(x) => Thinking$inboundSchema.parse(JSON.parse(x)),
|
|
79
|
+
`Failed to parse 'Thinking' from JSON`,
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/** @internal */
|
|
84
|
+
export const ThinkChunkType$inboundSchema: z.ZodNativeEnum<
|
|
85
|
+
typeof ThinkChunkType
|
|
86
|
+
> = z.nativeEnum(ThinkChunkType);
|
|
87
|
+
|
|
88
|
+
/** @internal */
|
|
89
|
+
export const ThinkChunkType$outboundSchema: z.ZodNativeEnum<
|
|
90
|
+
typeof ThinkChunkType
|
|
91
|
+
> = ThinkChunkType$inboundSchema;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* @internal
|
|
95
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
96
|
+
*/
|
|
97
|
+
export namespace ThinkChunkType$ {
|
|
98
|
+
/** @deprecated use `ThinkChunkType$inboundSchema` instead. */
|
|
99
|
+
export const inboundSchema = ThinkChunkType$inboundSchema;
|
|
100
|
+
/** @deprecated use `ThinkChunkType$outboundSchema` instead. */
|
|
101
|
+
export const outboundSchema = ThinkChunkType$outboundSchema;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/** @internal */
|
|
105
|
+
export const ThinkChunk$inboundSchema: z.ZodType<
|
|
106
|
+
ThinkChunk,
|
|
107
|
+
z.ZodTypeDef,
|
|
108
|
+
unknown
|
|
109
|
+
> = z.object({
|
|
110
|
+
thinking: z.array(
|
|
111
|
+
z.union([ReferenceChunk$inboundSchema, TextChunk$inboundSchema]),
|
|
112
|
+
),
|
|
113
|
+
closed: z.boolean().optional(),
|
|
114
|
+
type: ThinkChunkType$inboundSchema.default("thinking"),
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
/** @internal */
|
|
118
|
+
export type ThinkChunk$Outbound = {
|
|
119
|
+
thinking: Array<ReferenceChunk$Outbound | TextChunk$Outbound>;
|
|
120
|
+
closed?: boolean | undefined;
|
|
121
|
+
type: string;
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
/** @internal */
|
|
125
|
+
export const ThinkChunk$outboundSchema: z.ZodType<
|
|
126
|
+
ThinkChunk$Outbound,
|
|
127
|
+
z.ZodTypeDef,
|
|
128
|
+
ThinkChunk
|
|
129
|
+
> = z.object({
|
|
130
|
+
thinking: z.array(
|
|
131
|
+
z.union([ReferenceChunk$outboundSchema, TextChunk$outboundSchema]),
|
|
132
|
+
),
|
|
133
|
+
closed: z.boolean().optional(),
|
|
134
|
+
type: ThinkChunkType$outboundSchema.default("thinking"),
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* @internal
|
|
139
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
140
|
+
*/
|
|
141
|
+
export namespace ThinkChunk$ {
|
|
142
|
+
/** @deprecated use `ThinkChunk$inboundSchema` instead. */
|
|
143
|
+
export const inboundSchema = ThinkChunk$inboundSchema;
|
|
144
|
+
/** @deprecated use `ThinkChunk$outboundSchema` instead. */
|
|
145
|
+
export const outboundSchema = ThinkChunk$outboundSchema;
|
|
146
|
+
/** @deprecated use `ThinkChunk$Outbound` instead. */
|
|
147
|
+
export type Outbound = ThinkChunk$Outbound;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export function thinkChunkToJSON(thinkChunk: ThinkChunk): string {
|
|
151
|
+
return JSON.stringify(ThinkChunk$outboundSchema.parse(thinkChunk));
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export function thinkChunkFromJSON(
|
|
155
|
+
jsonString: string,
|
|
156
|
+
): SafeParseResult<ThinkChunk, SDKValidationError> {
|
|
157
|
+
return safeParse(
|
|
158
|
+
jsonString,
|
|
159
|
+
(x) => ThinkChunk$inboundSchema.parse(JSON.parse(x)),
|
|
160
|
+
`Failed to parse 'ThinkChunk' from JSON`,
|
|
161
|
+
);
|
|
162
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const TimestampGranularity = {
|
|
9
|
+
Segment: "segment",
|
|
10
|
+
} as const;
|
|
11
|
+
export type TimestampGranularity = ClosedEnum<typeof TimestampGranularity>;
|
|
12
|
+
|
|
13
|
+
/** @internal */
|
|
14
|
+
export const TimestampGranularity$inboundSchema: z.ZodNativeEnum<
|
|
15
|
+
typeof TimestampGranularity
|
|
16
|
+
> = z.nativeEnum(TimestampGranularity);
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const TimestampGranularity$outboundSchema: z.ZodNativeEnum<
|
|
20
|
+
typeof TimestampGranularity
|
|
21
|
+
> = TimestampGranularity$inboundSchema;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @internal
|
|
25
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
26
|
+
*/
|
|
27
|
+
export namespace TimestampGranularity$ {
|
|
28
|
+
/** @deprecated use `TimestampGranularity$inboundSchema` instead. */
|
|
29
|
+
export const inboundSchema = TimestampGranularity$inboundSchema;
|
|
30
|
+
/** @deprecated use `TimestampGranularity$outboundSchema` instead. */
|
|
31
|
+
export const outboundSchema = TimestampGranularity$outboundSchema;
|
|
32
|
+
}
|
|
@@ -18,13 +18,60 @@ import {
|
|
|
18
18
|
ToolTypes$outboundSchema,
|
|
19
19
|
} from "./tooltypes.js";
|
|
20
20
|
|
|
21
|
+
export type Metadata = {};
|
|
22
|
+
|
|
21
23
|
export type ToolCall = {
|
|
22
24
|
id?: string | undefined;
|
|
23
25
|
type?: ToolTypes | undefined;
|
|
24
26
|
function: FunctionCall;
|
|
25
27
|
index?: number | undefined;
|
|
28
|
+
metadata?: Metadata | null | undefined;
|
|
26
29
|
};
|
|
27
30
|
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const Metadata$inboundSchema: z.ZodType<
|
|
33
|
+
Metadata,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
unknown
|
|
36
|
+
> = z.object({});
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type Metadata$Outbound = {};
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const Metadata$outboundSchema: z.ZodType<
|
|
43
|
+
Metadata$Outbound,
|
|
44
|
+
z.ZodTypeDef,
|
|
45
|
+
Metadata
|
|
46
|
+
> = z.object({});
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @internal
|
|
50
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
51
|
+
*/
|
|
52
|
+
export namespace Metadata$ {
|
|
53
|
+
/** @deprecated use `Metadata$inboundSchema` instead. */
|
|
54
|
+
export const inboundSchema = Metadata$inboundSchema;
|
|
55
|
+
/** @deprecated use `Metadata$outboundSchema` instead. */
|
|
56
|
+
export const outboundSchema = Metadata$outboundSchema;
|
|
57
|
+
/** @deprecated use `Metadata$Outbound` instead. */
|
|
58
|
+
export type Outbound = Metadata$Outbound;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function metadataToJSON(metadata: Metadata): string {
|
|
62
|
+
return JSON.stringify(Metadata$outboundSchema.parse(metadata));
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function metadataFromJSON(
|
|
66
|
+
jsonString: string,
|
|
67
|
+
): SafeParseResult<Metadata, SDKValidationError> {
|
|
68
|
+
return safeParse(
|
|
69
|
+
jsonString,
|
|
70
|
+
(x) => Metadata$inboundSchema.parse(JSON.parse(x)),
|
|
71
|
+
`Failed to parse 'Metadata' from JSON`,
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
|
|
28
75
|
/** @internal */
|
|
29
76
|
export const ToolCall$inboundSchema: z.ZodType<
|
|
30
77
|
ToolCall,
|
|
@@ -35,6 +82,7 @@ export const ToolCall$inboundSchema: z.ZodType<
|
|
|
35
82
|
type: ToolTypes$inboundSchema.optional(),
|
|
36
83
|
function: FunctionCall$inboundSchema,
|
|
37
84
|
index: z.number().int().default(0),
|
|
85
|
+
metadata: z.nullable(z.lazy(() => Metadata$inboundSchema)).optional(),
|
|
38
86
|
});
|
|
39
87
|
|
|
40
88
|
/** @internal */
|
|
@@ -43,6 +91,7 @@ export type ToolCall$Outbound = {
|
|
|
43
91
|
type?: string | undefined;
|
|
44
92
|
function: FunctionCall$Outbound;
|
|
45
93
|
index: number;
|
|
94
|
+
metadata?: Metadata$Outbound | null | undefined;
|
|
46
95
|
};
|
|
47
96
|
|
|
48
97
|
/** @internal */
|
|
@@ -55,6 +104,7 @@ export const ToolCall$outboundSchema: z.ZodType<
|
|
|
55
104
|
type: ToolTypes$outboundSchema.optional(),
|
|
56
105
|
function: FunctionCall$outboundSchema,
|
|
57
106
|
index: z.number().int().default(0),
|
|
107
|
+
metadata: z.nullable(z.lazy(() => Metadata$outboundSchema)).optional(),
|
|
58
108
|
});
|
|
59
109
|
|
|
60
110
|
/**
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
import {
|
|
12
|
+
BuiltInConnectors,
|
|
13
|
+
BuiltInConnectors$inboundSchema,
|
|
14
|
+
BuiltInConnectors$outboundSchema,
|
|
15
|
+
} from "./builtinconnectors.js";
|
|
16
|
+
|
|
17
|
+
export const ToolExecutionDeltaEventType = {
|
|
18
|
+
ToolExecutionDelta: "tool.execution.delta",
|
|
19
|
+
} as const;
|
|
20
|
+
export type ToolExecutionDeltaEventType = ClosedEnum<
|
|
21
|
+
typeof ToolExecutionDeltaEventType
|
|
22
|
+
>;
|
|
23
|
+
|
|
24
|
+
export type ToolExecutionDeltaEvent = {
|
|
25
|
+
type?: ToolExecutionDeltaEventType | undefined;
|
|
26
|
+
createdAt?: Date | undefined;
|
|
27
|
+
outputIndex?: number | undefined;
|
|
28
|
+
id: string;
|
|
29
|
+
name: BuiltInConnectors;
|
|
30
|
+
arguments: string;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const ToolExecutionDeltaEventType$inboundSchema: z.ZodNativeEnum<
|
|
35
|
+
typeof ToolExecutionDeltaEventType
|
|
36
|
+
> = z.nativeEnum(ToolExecutionDeltaEventType);
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const ToolExecutionDeltaEventType$outboundSchema: z.ZodNativeEnum<
|
|
40
|
+
typeof ToolExecutionDeltaEventType
|
|
41
|
+
> = ToolExecutionDeltaEventType$inboundSchema;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @internal
|
|
45
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
46
|
+
*/
|
|
47
|
+
export namespace ToolExecutionDeltaEventType$ {
|
|
48
|
+
/** @deprecated use `ToolExecutionDeltaEventType$inboundSchema` instead. */
|
|
49
|
+
export const inboundSchema = ToolExecutionDeltaEventType$inboundSchema;
|
|
50
|
+
/** @deprecated use `ToolExecutionDeltaEventType$outboundSchema` instead. */
|
|
51
|
+
export const outboundSchema = ToolExecutionDeltaEventType$outboundSchema;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const ToolExecutionDeltaEvent$inboundSchema: z.ZodType<
|
|
56
|
+
ToolExecutionDeltaEvent,
|
|
57
|
+
z.ZodTypeDef,
|
|
58
|
+
unknown
|
|
59
|
+
> = z.object({
|
|
60
|
+
type: ToolExecutionDeltaEventType$inboundSchema.default(
|
|
61
|
+
"tool.execution.delta",
|
|
62
|
+
),
|
|
63
|
+
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
64
|
+
.optional(),
|
|
65
|
+
output_index: z.number().int().default(0),
|
|
66
|
+
id: z.string(),
|
|
67
|
+
name: BuiltInConnectors$inboundSchema,
|
|
68
|
+
arguments: z.string(),
|
|
69
|
+
}).transform((v) => {
|
|
70
|
+
return remap$(v, {
|
|
71
|
+
"created_at": "createdAt",
|
|
72
|
+
"output_index": "outputIndex",
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
/** @internal */
|
|
77
|
+
export type ToolExecutionDeltaEvent$Outbound = {
|
|
78
|
+
type: string;
|
|
79
|
+
created_at?: string | undefined;
|
|
80
|
+
output_index: number;
|
|
81
|
+
id: string;
|
|
82
|
+
name: string;
|
|
83
|
+
arguments: string;
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
/** @internal */
|
|
87
|
+
export const ToolExecutionDeltaEvent$outboundSchema: z.ZodType<
|
|
88
|
+
ToolExecutionDeltaEvent$Outbound,
|
|
89
|
+
z.ZodTypeDef,
|
|
90
|
+
ToolExecutionDeltaEvent
|
|
91
|
+
> = z.object({
|
|
92
|
+
type: ToolExecutionDeltaEventType$outboundSchema.default(
|
|
93
|
+
"tool.execution.delta",
|
|
94
|
+
),
|
|
95
|
+
createdAt: z.date().transform(v => v.toISOString()).optional(),
|
|
96
|
+
outputIndex: z.number().int().default(0),
|
|
97
|
+
id: z.string(),
|
|
98
|
+
name: BuiltInConnectors$outboundSchema,
|
|
99
|
+
arguments: z.string(),
|
|
100
|
+
}).transform((v) => {
|
|
101
|
+
return remap$(v, {
|
|
102
|
+
createdAt: "created_at",
|
|
103
|
+
outputIndex: "output_index",
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* @internal
|
|
109
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
110
|
+
*/
|
|
111
|
+
export namespace ToolExecutionDeltaEvent$ {
|
|
112
|
+
/** @deprecated use `ToolExecutionDeltaEvent$inboundSchema` instead. */
|
|
113
|
+
export const inboundSchema = ToolExecutionDeltaEvent$inboundSchema;
|
|
114
|
+
/** @deprecated use `ToolExecutionDeltaEvent$outboundSchema` instead. */
|
|
115
|
+
export const outboundSchema = ToolExecutionDeltaEvent$outboundSchema;
|
|
116
|
+
/** @deprecated use `ToolExecutionDeltaEvent$Outbound` instead. */
|
|
117
|
+
export type Outbound = ToolExecutionDeltaEvent$Outbound;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function toolExecutionDeltaEventToJSON(
|
|
121
|
+
toolExecutionDeltaEvent: ToolExecutionDeltaEvent,
|
|
122
|
+
): string {
|
|
123
|
+
return JSON.stringify(
|
|
124
|
+
ToolExecutionDeltaEvent$outboundSchema.parse(toolExecutionDeltaEvent),
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export function toolExecutionDeltaEventFromJSON(
|
|
129
|
+
jsonString: string,
|
|
130
|
+
): SafeParseResult<ToolExecutionDeltaEvent, SDKValidationError> {
|
|
131
|
+
return safeParse(
|
|
132
|
+
jsonString,
|
|
133
|
+
(x) => ToolExecutionDeltaEvent$inboundSchema.parse(JSON.parse(x)),
|
|
134
|
+
`Failed to parse 'ToolExecutionDeltaEvent' from JSON`,
|
|
135
|
+
);
|
|
136
|
+
}
|
|
@@ -33,6 +33,7 @@ export type ToolExecutionEntry = {
|
|
|
33
33
|
completedAt?: Date | null | undefined;
|
|
34
34
|
id?: string | undefined;
|
|
35
35
|
name: BuiltInConnectors;
|
|
36
|
+
arguments: string;
|
|
36
37
|
info?: { [k: string]: any } | undefined;
|
|
37
38
|
};
|
|
38
39
|
|
|
@@ -93,6 +94,7 @@ export const ToolExecutionEntry$inboundSchema: z.ZodType<
|
|
|
93
94
|
).optional(),
|
|
94
95
|
id: z.string().optional(),
|
|
95
96
|
name: BuiltInConnectors$inboundSchema,
|
|
97
|
+
arguments: z.string(),
|
|
96
98
|
info: z.record(z.any()).optional(),
|
|
97
99
|
}).transform((v) => {
|
|
98
100
|
return remap$(v, {
|
|
@@ -109,6 +111,7 @@ export type ToolExecutionEntry$Outbound = {
|
|
|
109
111
|
completed_at?: string | null | undefined;
|
|
110
112
|
id?: string | undefined;
|
|
111
113
|
name: string;
|
|
114
|
+
arguments: string;
|
|
112
115
|
info?: { [k: string]: any } | undefined;
|
|
113
116
|
};
|
|
114
117
|
|
|
@@ -124,6 +127,7 @@ export const ToolExecutionEntry$outboundSchema: z.ZodType<
|
|
|
124
127
|
completedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
125
128
|
id: z.string().optional(),
|
|
126
129
|
name: BuiltInConnectors$outboundSchema,
|
|
130
|
+
arguments: z.string(),
|
|
127
131
|
info: z.record(z.any()).optional(),
|
|
128
132
|
}).transform((v) => {
|
|
129
133
|
return remap$(v, {
|
|
@@ -27,6 +27,7 @@ export type ToolExecutionStartedEvent = {
|
|
|
27
27
|
outputIndex?: number | undefined;
|
|
28
28
|
id: string;
|
|
29
29
|
name: BuiltInConnectors;
|
|
30
|
+
arguments: string;
|
|
30
31
|
};
|
|
31
32
|
|
|
32
33
|
/** @internal */
|
|
@@ -64,6 +65,7 @@ export const ToolExecutionStartedEvent$inboundSchema: z.ZodType<
|
|
|
64
65
|
output_index: z.number().int().default(0),
|
|
65
66
|
id: z.string(),
|
|
66
67
|
name: BuiltInConnectors$inboundSchema,
|
|
68
|
+
arguments: z.string(),
|
|
67
69
|
}).transform((v) => {
|
|
68
70
|
return remap$(v, {
|
|
69
71
|
"created_at": "createdAt",
|
|
@@ -78,6 +80,7 @@ export type ToolExecutionStartedEvent$Outbound = {
|
|
|
78
80
|
output_index: number;
|
|
79
81
|
id: string;
|
|
80
82
|
name: string;
|
|
83
|
+
arguments: string;
|
|
81
84
|
};
|
|
82
85
|
|
|
83
86
|
/** @internal */
|
|
@@ -93,6 +96,7 @@ export const ToolExecutionStartedEvent$outboundSchema: z.ZodType<
|
|
|
93
96
|
outputIndex: z.number().int().default(0),
|
|
94
97
|
id: z.string(),
|
|
95
98
|
name: BuiltInConnectors$outboundSchema,
|
|
99
|
+
arguments: z.string(),
|
|
96
100
|
}).transform((v) => {
|
|
97
101
|
return remap$(v, {
|
|
98
102
|
createdAt: "created_at",
|
|
@@ -23,7 +23,8 @@ export type ToolReferenceChunk = {
|
|
|
23
23
|
tool: BuiltInConnectors;
|
|
24
24
|
title: string;
|
|
25
25
|
url?: string | null | undefined;
|
|
26
|
-
|
|
26
|
+
favicon?: string | null | undefined;
|
|
27
|
+
description?: string | null | undefined;
|
|
27
28
|
};
|
|
28
29
|
|
|
29
30
|
/** @internal */
|
|
@@ -57,7 +58,8 @@ export const ToolReferenceChunk$inboundSchema: z.ZodType<
|
|
|
57
58
|
tool: BuiltInConnectors$inboundSchema,
|
|
58
59
|
title: z.string(),
|
|
59
60
|
url: z.nullable(z.string()).optional(),
|
|
60
|
-
|
|
61
|
+
favicon: z.nullable(z.string()).optional(),
|
|
62
|
+
description: z.nullable(z.string()).optional(),
|
|
61
63
|
});
|
|
62
64
|
|
|
63
65
|
/** @internal */
|
|
@@ -66,7 +68,8 @@ export type ToolReferenceChunk$Outbound = {
|
|
|
66
68
|
tool: string;
|
|
67
69
|
title: string;
|
|
68
70
|
url?: string | null | undefined;
|
|
69
|
-
|
|
71
|
+
favicon?: string | null | undefined;
|
|
72
|
+
description?: string | null | undefined;
|
|
70
73
|
};
|
|
71
74
|
|
|
72
75
|
/** @internal */
|
|
@@ -79,7 +82,8 @@ export const ToolReferenceChunk$outboundSchema: z.ZodType<
|
|
|
79
82
|
tool: BuiltInConnectors$outboundSchema,
|
|
80
83
|
title: z.string(),
|
|
81
84
|
url: z.nullable(z.string()).optional(),
|
|
82
|
-
|
|
85
|
+
favicon: z.nullable(z.string()).optional(),
|
|
86
|
+
description: z.nullable(z.string()).optional(),
|
|
83
87
|
});
|
|
84
88
|
|
|
85
89
|
/**
|