@mistralai/mistralai 2.0.0-alpha.1 → 2.1.0
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 +51 -37
- package/RUNTIMES.md +1 -1
- package/esm/extra/structChat.d.ts.map +1 -1
- package/esm/extra/structChat.js +72 -5
- package/esm/extra/structChat.js.map +1 -1
- package/esm/funcs/audioSpeechComplete.d.ts +22 -0
- package/esm/funcs/audioSpeechComplete.d.ts.map +1 -0
- package/esm/funcs/audioSpeechComplete.js +88 -0
- package/esm/funcs/audioSpeechComplete.js.map +1 -0
- package/esm/funcs/audioVoicesCreate.d.ts +18 -0
- package/esm/funcs/audioVoicesCreate.d.ts.map +1 -0
- package/esm/funcs/audioVoicesCreate.js +83 -0
- package/esm/funcs/audioVoicesCreate.js.map +1 -0
- package/esm/funcs/audioVoicesDelete.d.ts +19 -0
- package/esm/funcs/audioVoicesDelete.d.ts.map +1 -0
- package/esm/funcs/audioVoicesDelete.js +90 -0
- package/esm/funcs/audioVoicesDelete.js.map +1 -0
- package/esm/funcs/audioVoicesGet.d.ts +19 -0
- package/esm/funcs/audioVoicesGet.d.ts.map +1 -0
- package/esm/funcs/audioVoicesGet.js +89 -0
- package/esm/funcs/audioVoicesGet.js.map +1 -0
- package/esm/funcs/audioVoicesGetSampleAudio.d.ts +18 -0
- package/esm/funcs/audioVoicesGetSampleAudio.d.ts.map +1 -0
- package/esm/funcs/audioVoicesGetSampleAudio.js +91 -0
- package/esm/funcs/audioVoicesGetSampleAudio.js.map +1 -0
- package/esm/funcs/audioVoicesList.d.ts +19 -0
- package/esm/funcs/audioVoicesList.d.ts.map +1 -0
- package/esm/funcs/audioVoicesList.js +89 -0
- package/esm/funcs/audioVoicesList.js.map +1 -0
- package/esm/funcs/audioVoicesUpdate.d.ts +19 -0
- package/esm/funcs/audioVoicesUpdate.d.ts.map +1 -0
- package/esm/funcs/audioVoicesUpdate.js +93 -0
- package/esm/funcs/audioVoicesUpdate.js.map +1 -0
- package/esm/funcs/betaConnectorsGetAuthUrl.d.ts +19 -0
- package/esm/funcs/betaConnectorsGetAuthUrl.d.ts.map +1 -0
- package/esm/funcs/betaConnectorsGetAuthUrl.js +90 -0
- package/esm/funcs/betaConnectorsGetAuthUrl.js.map +1 -0
- package/esm/funcs/betaObservabilityJudgesJudgeConversation.d.ts +16 -0
- package/esm/funcs/betaObservabilityJudgesJudgeConversation.d.ts.map +1 -0
- package/esm/funcs/betaObservabilityJudgesJudgeConversation.js +91 -0
- package/esm/funcs/betaObservabilityJudgesJudgeConversation.js.map +1 -0
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/lib/config.js.map +1 -1
- package/esm/models/components/agent.d.ts +28 -5
- package/esm/models/components/agent.d.ts.map +1 -1
- package/esm/models/components/agent.js +14 -13
- package/esm/models/components/agent.js.map +1 -1
- package/esm/models/components/agentconversation.d.ts +2 -3
- package/esm/models/components/agentconversation.d.ts.map +1 -1
- package/esm/models/components/agentconversation.js +2 -1
- package/esm/models/components/agentconversation.js.map +1 -1
- package/esm/models/components/agentscompletionrequest.d.ts +28 -2
- package/esm/models/components/agentscompletionrequest.d.ts.map +1 -1
- package/esm/models/components/agentscompletionrequest.js +66 -13
- package/esm/models/components/agentscompletionrequest.js.map +1 -1
- package/esm/models/components/agentscompletionstreamrequest.d.ts +28 -2
- package/esm/models/components/agentscompletionstreamrequest.d.ts.map +1 -1
- package/esm/models/components/agentscompletionstreamrequest.js +66 -13
- package/esm/models/components/agentscompletionstreamrequest.js.map +1 -1
- package/esm/models/components/authurlresponse.d.ts +11 -0
- package/esm/models/components/authurlresponse.d.ts.map +1 -0
- package/esm/models/components/authurlresponse.js +20 -0
- package/esm/models/components/authurlresponse.js.map +1 -0
- package/esm/models/components/basefielddefinition.d.ts +4 -4
- package/esm/models/components/basefielddefinition.d.ts.map +1 -1
- package/esm/models/components/basefielddefinition.js +3 -4
- package/esm/models/components/basefielddefinition.js.map +1 -1
- package/esm/models/components/basemodelcard.d.ts +6 -0
- package/esm/models/components/basemodelcard.d.ts.map +1 -1
- package/esm/models/components/basemodelcard.js.map +1 -1
- package/esm/models/components/chatcompletionrequest.d.ts +31 -2
- package/esm/models/components/chatcompletionrequest.d.ts.map +1 -1
- package/esm/models/components/chatcompletionrequest.js +67 -14
- package/esm/models/components/chatcompletionrequest.js.map +1 -1
- package/esm/models/components/chatcompletionstreamrequest.d.ts +31 -2
- package/esm/models/components/chatcompletionstreamrequest.d.ts.map +1 -1
- package/esm/models/components/chatcompletionstreamrequest.js +67 -14
- package/esm/models/components/chatcompletionstreamrequest.js.map +1 -1
- package/esm/models/components/codeinterpretertool.d.ts +11 -2
- package/esm/models/components/codeinterpretertool.d.ts.map +1 -1
- package/esm/models/components/codeinterpretertool.js +9 -2
- package/esm/models/components/codeinterpretertool.js.map +1 -1
- package/esm/models/components/completionargs.d.ts +3 -0
- package/esm/models/components/completionargs.d.ts.map +1 -1
- package/esm/models/components/completionargs.js +5 -0
- package/esm/models/components/completionargs.js.map +1 -1
- package/esm/models/components/conversationrequest.d.ts +55 -10
- package/esm/models/components/conversationrequest.d.ts.map +1 -1
- package/esm/models/components/conversationrequest.js +14 -13
- package/esm/models/components/conversationrequest.js.map +1 -1
- package/esm/models/components/conversationresponse.d.ts +3 -5
- package/esm/models/components/conversationresponse.d.ts.map +1 -1
- package/esm/models/components/conversationresponse.js +1 -7
- package/esm/models/components/conversationresponse.js.map +1 -1
- package/esm/models/components/conversationrestartrequest.d.ts +3 -6
- package/esm/models/components/conversationrestartrequest.d.ts.map +1 -1
- package/esm/models/components/conversationrestartrequest.js +2 -1
- package/esm/models/components/conversationrestartrequest.js.map +1 -1
- package/esm/models/components/conversationrestartstreamrequest.d.ts +3 -6
- package/esm/models/components/conversationrestartstreamrequest.d.ts.map +1 -1
- package/esm/models/components/conversationrestartstreamrequest.js +2 -1
- package/esm/models/components/conversationrestartstreamrequest.js.map +1 -1
- package/esm/models/components/conversationstreamrequest.d.ts +55 -10
- package/esm/models/components/conversationstreamrequest.d.ts.map +1 -1
- package/esm/models/components/conversationstreamrequest.js +14 -13
- package/esm/models/components/conversationstreamrequest.js.map +1 -1
- package/esm/models/components/createagentrequest.d.ts +55 -10
- package/esm/models/components/createagentrequest.d.ts.map +1 -1
- package/esm/models/components/createagentrequest.js +14 -13
- package/esm/models/components/createagentrequest.js.map +1 -1
- package/esm/models/components/customconnector.d.ts +11 -2
- package/esm/models/components/customconnector.d.ts.map +1 -1
- package/esm/models/components/customconnector.js +9 -2
- package/esm/models/components/customconnector.js.map +1 -1
- package/esm/models/components/documentlibrarytool.d.ts +11 -2
- package/esm/models/components/documentlibrarytool.d.ts.map +1 -1
- package/esm/models/components/documentlibrarytool.js +9 -2
- package/esm/models/components/documentlibrarytool.js.map +1 -1
- package/esm/models/components/ftmodelcard.d.ts +6 -0
- package/esm/models/components/ftmodelcard.d.ts.map +1 -1
- package/esm/models/components/ftmodelcard.js.map +1 -1
- package/esm/models/components/imagegenerationtool.d.ts +11 -2
- package/esm/models/components/imagegenerationtool.d.ts.map +1 -1
- package/esm/models/components/imagegenerationtool.js +9 -2
- package/esm/models/components/imagegenerationtool.js.map +1 -1
- package/esm/models/components/imageurlchunk.d.ts +1 -1
- package/esm/models/components/index.d.ts +20 -0
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +20 -0
- package/esm/models/components/index.js.map +1 -1
- package/esm/models/components/instructrequest.d.ts +3 -0
- package/esm/models/components/instructrequest.d.ts.map +1 -1
- package/esm/models/components/instructrequest.js.map +1 -1
- package/esm/models/components/internalmetadata.d.ts +42 -0
- package/esm/models/components/internalmetadata.d.ts.map +1 -0
- package/esm/models/components/internalmetadata.js +56 -0
- package/esm/models/components/internalmetadata.js.map +1 -0
- package/esm/models/components/judgeconversationrequest.d.ts +22 -0
- package/esm/models/components/judgeconversationrequest.d.ts.map +1 -0
- package/esm/models/components/judgeconversationrequest.js +14 -0
- package/esm/models/components/judgeconversationrequest.js.map +1 -0
- package/esm/models/components/messagetokens.d.ts +17 -0
- package/esm/models/components/messagetokens.d.ts.map +1 -0
- package/esm/models/components/messagetokens.js +25 -0
- package/esm/models/components/messagetokens.js.map +1 -0
- package/esm/models/components/metadatadict.d.ts +23 -0
- package/esm/models/components/metadatadict.d.ts.map +1 -0
- package/esm/models/components/metadatadict.js +23 -0
- package/esm/models/components/metadatadict.js.map +1 -0
- package/esm/models/components/mirrorconfig.d.ts +24 -0
- package/esm/models/components/mirrorconfig.d.ts.map +1 -0
- package/esm/models/components/mirrorconfig.js +32 -0
- package/esm/models/components/mirrorconfig.js.map +1 -0
- package/esm/models/components/mirrorsource.d.ts +28 -0
- package/esm/models/components/mirrorsource.d.ts.map +1 -0
- package/esm/models/components/mirrorsource.js +43 -0
- package/esm/models/components/mirrorsource.js.map +1 -0
- package/esm/models/components/modelcapabilities.d.ts +9 -0
- package/esm/models/components/modelcapabilities.d.ts.map +1 -1
- package/esm/models/components/modelcapabilities.js +5 -0
- package/esm/models/components/modelcapabilities.js.map +1 -1
- package/esm/models/components/modelconversation.d.ts +28 -5
- package/esm/models/components/modelconversation.d.ts.map +1 -1
- package/esm/models/components/modelconversation.js +14 -13
- package/esm/models/components/modelconversation.js.map +1 -1
- package/esm/models/components/prompttokensdetails.d.ts +15 -0
- package/esm/models/components/prompttokensdetails.d.ts.map +1 -0
- package/esm/models/components/prompttokensdetails.js +21 -0
- package/esm/models/components/prompttokensdetails.js.map +1 -0
- package/esm/models/components/reasoningeffort.d.ts +12 -0
- package/esm/models/components/reasoningeffort.d.ts.map +1 -0
- package/esm/models/components/reasoningeffort.js +14 -0
- package/esm/models/components/reasoningeffort.js.map +1 -0
- package/esm/models/components/referencechunk.d.ts +11 -2
- package/esm/models/components/referencechunk.d.ts.map +1 -1
- package/esm/models/components/referencechunk.js +13 -2
- package/esm/models/components/referencechunk.js.map +1 -1
- package/esm/models/components/roles.d.ts +12 -0
- package/esm/models/components/roles.d.ts.map +1 -0
- package/esm/models/components/roles.js +15 -0
- package/esm/models/components/roles.js.map +1 -0
- package/esm/models/components/speechoutputformat.d.ts +13 -0
- package/esm/models/components/speechoutputformat.d.ts.map +1 -0
- package/esm/models/components/speechoutputformat.js +15 -0
- package/esm/models/components/speechoutputformat.js.map +1 -0
- package/esm/models/components/speechrequest.d.ts +37 -0
- package/esm/models/components/speechrequest.d.ts.map +1 -0
- package/esm/models/components/speechrequest.js +30 -0
- package/esm/models/components/speechrequest.js.map +1 -0
- package/esm/models/components/speechstreamaudiodelta.d.ts +11 -0
- package/esm/models/components/speechstreamaudiodelta.d.ts.map +1 -0
- package/esm/models/components/speechstreamaudiodelta.js +20 -0
- package/esm/models/components/speechstreamaudiodelta.js.map +1 -0
- package/esm/models/components/speechstreamdone.d.ts +12 -0
- package/esm/models/components/speechstreamdone.d.ts.map +1 -0
- package/esm/models/components/speechstreamdone.js +16 -0
- package/esm/models/components/speechstreamdone.js.map +1 -0
- package/esm/models/components/speechstreameventtypes.d.ts +10 -0
- package/esm/models/components/speechstreameventtypes.d.ts.map +1 -0
- package/esm/models/components/speechstreameventtypes.js +12 -0
- package/esm/models/components/speechstreameventtypes.js.map +1 -0
- package/esm/models/components/updateagentrequest.d.ts +55 -10
- package/esm/models/components/updateagentrequest.d.ts.map +1 -1
- package/esm/models/components/updateagentrequest.js +14 -13
- package/esm/models/components/updateagentrequest.js.map +1 -1
- package/esm/models/components/usageinfodollardefs.d.ts +18 -0
- package/esm/models/components/usageinfodollardefs.d.ts.map +1 -0
- package/esm/models/components/usageinfodollardefs.js +36 -0
- package/esm/models/components/usageinfodollardefs.js.map +1 -0
- package/esm/models/components/voicecreaterequest.d.ts +39 -0
- package/esm/models/components/voicecreaterequest.d.ts.map +1 -0
- package/esm/models/components/voicecreaterequest.js +29 -0
- package/esm/models/components/voicecreaterequest.js.map +1 -0
- package/esm/models/components/voicelistresponse.d.ts +18 -0
- package/esm/models/components/voicelistresponse.d.ts.map +1 -0
- package/esm/models/components/voicelistresponse.js +25 -0
- package/esm/models/components/voicelistresponse.js.map +1 -0
- package/esm/models/components/voiceresponse.d.ts +23 -0
- package/esm/models/components/voiceresponse.d.ts.map +1 -0
- package/esm/models/components/voiceresponse.js +32 -0
- package/esm/models/components/voiceresponse.js.map +1 -0
- package/esm/models/components/voiceupdaterequest.d.ts +23 -0
- package/esm/models/components/voiceupdaterequest.d.ts.map +1 -0
- package/esm/models/components/voiceupdaterequest.js +17 -0
- package/esm/models/components/voiceupdaterequest.js.map +1 -0
- package/esm/models/components/websearchpremiumtool.d.ts +11 -2
- package/esm/models/components/websearchpremiumtool.d.ts.map +1 -1
- package/esm/models/components/websearchpremiumtool.js +9 -2
- package/esm/models/components/websearchpremiumtool.js.map +1 -1
- package/esm/models/components/websearchtool.d.ts +11 -2
- package/esm/models/components/websearchtool.d.ts.map +1 -1
- package/esm/models/components/websearchtool.js +9 -2
- package/esm/models/components/websearchtool.js.map +1 -1
- package/esm/models/operations/connectorgetauthurlv1.d.ts +14 -0
- package/esm/models/operations/connectorgetauthurlv1.d.ts.map +1 -0
- package/esm/models/operations/connectorgetauthurlv1.js +20 -0
- package/esm/models/operations/connectorgetauthurlv1.js.map +1 -0
- package/esm/models/operations/deletevoicev1audiovoicesvoiceiddelete.d.ts +12 -0
- package/esm/models/operations/deletevoicev1audiovoicesvoiceiddelete.d.ts.map +1 -0
- package/esm/models/operations/deletevoicev1audiovoicesvoiceiddelete.js +18 -0
- package/esm/models/operations/deletevoicev1audiovoicesvoiceiddelete.js.map +1 -0
- package/esm/models/operations/getvoicesampleaudiov1audiovoicesvoiceidsampleget.d.ts +12 -0
- package/esm/models/operations/getvoicesampleaudiov1audiovoicesvoiceidsampleget.d.ts.map +1 -0
- package/esm/models/operations/getvoicesampleaudiov1audiovoicesvoiceidsampleget.js +19 -0
- package/esm/models/operations/getvoicesampleaudiov1audiovoicesvoiceidsampleget.js.map +1 -0
- package/esm/models/operations/getvoicev1audiovoicesvoiceidget.d.ts +12 -0
- package/esm/models/operations/getvoicev1audiovoicesvoiceidget.d.ts.map +1 -0
- package/esm/models/operations/getvoicev1audiovoicesvoiceidget.js +18 -0
- package/esm/models/operations/getvoicev1audiovoicesvoiceidget.js.map +1 -0
- package/esm/models/operations/index.d.ts +8 -0
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +8 -0
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/judgeconversationv1observabilityjudgesjudgeidlivejudgingpost.d.ts +15 -0
- package/esm/models/operations/judgeconversationv1observabilityjudgesjudgeidlivejudgingpost.d.ts.map +1 -0
- package/esm/models/operations/judgeconversationv1observabilityjudgesjudgeidlivejudgingpost.js +22 -0
- package/esm/models/operations/judgeconversationv1observabilityjudgesjudgeidlivejudgingpost.js.map +1 -0
- package/esm/models/operations/listvoicesv1audiovoicesget.d.ts +20 -0
- package/esm/models/operations/listvoicesv1audiovoicesget.d.ts.map +1 -0
- package/esm/models/operations/listvoicesv1audiovoicesget.js +14 -0
- package/esm/models/operations/listvoicesv1audiovoicesget.js.map +1 -0
- package/esm/models/operations/speechv1audiospeechpost.d.ts +37 -0
- package/esm/models/operations/speechv1audiospeechpost.d.ts.map +1 -0
- package/esm/models/operations/speechv1audiospeechpost.js +70 -0
- package/esm/models/operations/speechv1audiospeechpost.js.map +1 -0
- package/esm/models/operations/updatevoicev1audiovoicesvoiceidpatch.d.ts +15 -0
- package/esm/models/operations/updatevoicev1audiovoicesvoiceidpatch.d.ts.map +1 -0
- package/esm/models/operations/updatevoicev1audiovoicesvoiceidpatch.js +21 -0
- package/esm/models/operations/updatevoicev1audiovoicesvoiceidpatch.js.map +1 -0
- package/esm/sdk/audio.d.ts +6 -0
- package/esm/sdk/audio.d.ts.map +1 -1
- package/esm/sdk/audio.js +10 -0
- package/esm/sdk/audio.js.map +1 -1
- package/esm/sdk/connectors.d.ts +7 -0
- package/esm/sdk/connectors.d.ts.map +1 -1
- package/esm/sdk/connectors.js +10 -0
- package/esm/sdk/connectors.js.map +1 -1
- package/esm/sdk/judges.d.ts +4 -0
- package/esm/sdk/judges.d.ts.map +1 -1
- package/esm/sdk/judges.js +7 -0
- package/esm/sdk/judges.js.map +1 -1
- package/esm/sdk/sdk.d.ts +2 -2
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +4 -4
- package/esm/sdk/sdk.js.map +1 -1
- package/esm/sdk/speech.d.ts +14 -0
- package/esm/sdk/speech.d.ts.map +1 -0
- package/esm/sdk/speech.js +17 -0
- package/esm/sdk/speech.js.map +1 -0
- package/esm/sdk/voices.d.ts +48 -0
- package/esm/sdk/voices.d.ts.map +1 -0
- package/esm/sdk/voices.js +69 -0
- package/esm/sdk/voices.js.map +1 -0
- package/examples/src/gcp/async_chat_no_streaming.ts +2 -2
- package/jsr.json +1 -1
- package/package.json +8 -3
- package/packages/mistralai-gcp/examples/chatComplete.example.ts +3 -3
- package/packages/mistralai-gcp/src/core.ts +1 -1
- package/packages/mistralai-gcp/src/funcs/chatComplete.ts +7 -7
- package/packages/mistralai-gcp/src/funcs/chatStream.ts +7 -7
- package/packages/mistralai-gcp/src/funcs/fimComplete.ts +7 -7
- package/packages/mistralai-gcp/src/funcs/fimStream.ts +7 -7
- package/packages/mistralai-gcp/src/models/errors/httpvalidationerror.ts +2 -2
- package/packages/mistralai-gcp/src/models/errors/mistralgoogleclouderror.ts +2 -2
- package/packages/mistralai-gcp/src/models/errors/responsevalidationerror.ts +2 -2
- package/packages/mistralai-gcp/src/models/errors/sdkerror.ts +2 -2
- package/packages/mistralai-gcp/src/sdk/sdk.ts +6 -5
- package/src/extra/structChat.ts +71 -5
- package/src/funcs/audioSpeechComplete.ts +175 -0
- package/src/funcs/audioVoicesCreate.ts +170 -0
- package/src/funcs/audioVoicesDelete.ts +179 -0
- package/src/funcs/audioVoicesGet.ts +180 -0
- package/src/funcs/audioVoicesGetSampleAudio.ts +180 -0
- package/src/funcs/audioVoicesList.ts +178 -0
- package/src/funcs/audioVoicesUpdate.ts +182 -0
- package/src/funcs/betaConnectorsGetAuthUrl.ts +186 -0
- package/src/funcs/betaObservabilityJudgesJudgeConversation.ts +188 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/agent.ts +51 -26
- package/src/models/components/agentconversation.ts +3 -2
- package/src/models/components/agentscompletionrequest.ts +201 -15
- package/src/models/components/agentscompletionstreamrequest.ts +201 -15
- package/src/models/components/authurlresponse.ts +38 -0
- package/src/models/components/basefielddefinition.ts +8 -6
- package/src/models/components/basemodelcard.ts +6 -0
- package/src/models/components/chatcompletionrequest.ts +205 -16
- package/src/models/components/chatcompletionstreamrequest.ts +205 -16
- package/src/models/components/codeinterpretertool.ts +21 -4
- package/src/models/components/completionargs.ts +11 -0
- package/src/models/components/conversationrequest.ts +66 -39
- package/src/models/components/conversationresponse.ts +2 -20
- package/src/models/components/conversationrestartrequest.ts +8 -3
- package/src/models/components/conversationrestartstreamrequest.ts +8 -3
- package/src/models/components/conversationstreamrequest.ts +66 -39
- package/src/models/components/createagentrequest.ts +66 -39
- package/src/models/components/customconnector.ts +19 -4
- package/src/models/components/documentlibrarytool.ts +21 -4
- package/src/models/components/ftmodelcard.ts +6 -0
- package/src/models/components/imagegenerationtool.ts +21 -4
- package/src/models/components/imageurlchunk.ts +1 -1
- package/src/models/components/index.ts +20 -0
- package/src/models/components/instructrequest.ts +3 -0
- package/src/models/components/internalmetadata.ts +126 -0
- package/src/models/components/judgeconversationrequest.ts +34 -0
- package/src/models/components/messagetokens.ts +45 -0
- package/src/models/components/metadatadict.ts +55 -0
- package/src/models/components/mirrorconfig.ts +65 -0
- package/src/models/components/mirrorsource.ts +76 -0
- package/src/models/components/modelcapabilities.ts +14 -0
- package/src/models/components/modelconversation.ts +51 -26
- package/src/models/components/prompttokensdetails.ts +42 -0
- package/src/models/components/reasoningeffort.ts +25 -0
- package/src/models/components/referencechunk.ts +32 -4
- package/src/models/components/roles.ts +20 -0
- package/src/models/components/speechoutputformat.ts +21 -0
- package/src/models/components/speechrequest.ts +74 -0
- package/src/models/components/speechstreamaudiodelta.ts +38 -0
- package/src/models/components/speechstreamdone.ts +37 -0
- package/src/models/components/speechstreameventtypes.ts +20 -0
- package/src/models/components/updateagentrequest.ts +66 -39
- package/src/models/components/usageinfodollardefs.ts +63 -0
- package/src/models/components/voicecreaterequest.ts +74 -0
- package/src/models/components/voicelistresponse.ts +49 -0
- package/src/models/components/voiceresponse.ts +59 -0
- package/src/models/components/voiceupdaterequest.ts +46 -0
- package/src/models/components/websearchpremiumtool.ts +21 -4
- package/src/models/components/websearchtool.ts +19 -4
- package/src/models/operations/connectorgetauthurlv1.ts +42 -0
- package/src/models/operations/deletevoicev1audiovoicesvoiceiddelete.ts +40 -0
- package/src/models/operations/getvoicesampleaudiov1audiovoicesvoiceidsampleget.ts +39 -0
- package/src/models/operations/getvoicev1audiovoicesvoiceidget.ts +39 -0
- package/src/models/operations/index.ts +8 -0
- package/src/models/operations/judgeconversationv1observabilityjudgesjudgeidlivejudgingpost.ts +49 -0
- package/src/models/operations/listvoicesv1audiovoicesget.ts +42 -0
- package/src/models/operations/speechv1audiospeechpost.ts +146 -0
- package/src/models/operations/updatevoicev1audiovoicesvoiceidpatch.ts +45 -0
- package/src/sdk/audio.ts +12 -0
- package/src/sdk/connectors.ts +18 -0
- package/src/sdk/judges.ts +16 -0
- package/src/sdk/sdk.ts +5 -5
- package/src/sdk/speech.ts +31 -0
- package/src/sdk/voices.ts +119 -0
|
@@ -8,6 +8,7 @@ import { DocumentLibraryTool, DocumentLibraryTool$Outbound } from "./documentlib
|
|
|
8
8
|
import { FunctionTool, FunctionTool$Outbound } from "./functiontool.js";
|
|
9
9
|
import { GuardrailConfig, GuardrailConfig$Outbound } from "./guardrailconfig.js";
|
|
10
10
|
import { ImageGenerationTool, ImageGenerationTool$Outbound } from "./imagegenerationtool.js";
|
|
11
|
+
import { MetadataDict, MetadataDict$Outbound } from "./metadatadict.js";
|
|
11
12
|
import { WebSearchPremiumTool, WebSearchPremiumTool$Outbound } from "./websearchpremiumtool.js";
|
|
12
13
|
import { WebSearchTool, WebSearchTool$Outbound } from "./websearchtool.js";
|
|
13
14
|
export declare const ConversationStreamRequestHandoffExecution: {
|
|
@@ -15,7 +16,19 @@ export declare const ConversationStreamRequestHandoffExecution: {
|
|
|
15
16
|
readonly Server: "server";
|
|
16
17
|
};
|
|
17
18
|
export type ConversationStreamRequestHandoffExecution = ClosedEnum<typeof ConversationStreamRequestHandoffExecution>;
|
|
18
|
-
export type ConversationStreamRequestTool = CodeInterpreterTool
|
|
19
|
+
export type ConversationStreamRequestTool = (CodeInterpreterTool & {
|
|
20
|
+
type: "code_interpreter";
|
|
21
|
+
}) | (CustomConnector & {
|
|
22
|
+
type: "connector";
|
|
23
|
+
}) | (DocumentLibraryTool & {
|
|
24
|
+
type: "document_library";
|
|
25
|
+
}) | FunctionTool | (ImageGenerationTool & {
|
|
26
|
+
type: "image_generation";
|
|
27
|
+
}) | (WebSearchTool & {
|
|
28
|
+
type: "web_search";
|
|
29
|
+
}) | (WebSearchPremiumTool & {
|
|
30
|
+
type: "web_search_premium";
|
|
31
|
+
});
|
|
19
32
|
export type ConversationStreamRequestAgentVersion = string | number;
|
|
20
33
|
export type ConversationStreamRequest = {
|
|
21
34
|
inputs: ConversationInputs;
|
|
@@ -23,14 +36,24 @@ export type ConversationStreamRequest = {
|
|
|
23
36
|
store?: boolean | null | undefined;
|
|
24
37
|
handoffExecution?: ConversationStreamRequestHandoffExecution | null | undefined;
|
|
25
38
|
instructions?: string | null | undefined;
|
|
26
|
-
tools?: Array<CodeInterpreterTool
|
|
39
|
+
tools?: Array<(CodeInterpreterTool & {
|
|
40
|
+
type: "code_interpreter";
|
|
41
|
+
}) | (CustomConnector & {
|
|
42
|
+
type: "connector";
|
|
43
|
+
}) | (DocumentLibraryTool & {
|
|
44
|
+
type: "document_library";
|
|
45
|
+
}) | FunctionTool | (ImageGenerationTool & {
|
|
46
|
+
type: "image_generation";
|
|
47
|
+
}) | (WebSearchTool & {
|
|
48
|
+
type: "web_search";
|
|
49
|
+
}) | (WebSearchPremiumTool & {
|
|
50
|
+
type: "web_search_premium";
|
|
51
|
+
})> | null | undefined;
|
|
27
52
|
completionArgs?: CompletionArgs | null | undefined;
|
|
28
53
|
guardrails?: Array<GuardrailConfig> | null | undefined;
|
|
29
54
|
name?: string | null | undefined;
|
|
30
55
|
description?: string | null | undefined;
|
|
31
|
-
metadata?:
|
|
32
|
-
[k: string]: any;
|
|
33
|
-
} | null | undefined;
|
|
56
|
+
metadata?: MetadataDict | null | undefined;
|
|
34
57
|
agentId?: string | null | undefined;
|
|
35
58
|
agentVersion?: string | number | null | undefined;
|
|
36
59
|
model?: string | null | undefined;
|
|
@@ -38,7 +61,19 @@ export type ConversationStreamRequest = {
|
|
|
38
61
|
/** @internal */
|
|
39
62
|
export declare const ConversationStreamRequestHandoffExecution$outboundSchema: z.ZodEnum<typeof ConversationStreamRequestHandoffExecution>;
|
|
40
63
|
/** @internal */
|
|
41
|
-
export type ConversationStreamRequestTool$Outbound = CodeInterpreterTool$Outbound
|
|
64
|
+
export type ConversationStreamRequestTool$Outbound = (CodeInterpreterTool$Outbound & {
|
|
65
|
+
type: "code_interpreter";
|
|
66
|
+
}) | (CustomConnector$Outbound & {
|
|
67
|
+
type: "connector";
|
|
68
|
+
}) | (DocumentLibraryTool$Outbound & {
|
|
69
|
+
type: "document_library";
|
|
70
|
+
}) | FunctionTool$Outbound | (ImageGenerationTool$Outbound & {
|
|
71
|
+
type: "image_generation";
|
|
72
|
+
}) | (WebSearchTool$Outbound & {
|
|
73
|
+
type: "web_search";
|
|
74
|
+
}) | (WebSearchPremiumTool$Outbound & {
|
|
75
|
+
type: "web_search_premium";
|
|
76
|
+
});
|
|
42
77
|
/** @internal */
|
|
43
78
|
export declare const ConversationStreamRequestTool$outboundSchema: z.ZodType<ConversationStreamRequestTool$Outbound, ConversationStreamRequestTool>;
|
|
44
79
|
export declare function conversationStreamRequestToolToJSON(conversationStreamRequestTool: ConversationStreamRequestTool): string;
|
|
@@ -54,14 +89,24 @@ export type ConversationStreamRequest$Outbound = {
|
|
|
54
89
|
store?: boolean | null | undefined;
|
|
55
90
|
handoff_execution?: string | null | undefined;
|
|
56
91
|
instructions?: string | null | undefined;
|
|
57
|
-
tools?: Array<CodeInterpreterTool$Outbound
|
|
92
|
+
tools?: Array<(CodeInterpreterTool$Outbound & {
|
|
93
|
+
type: "code_interpreter";
|
|
94
|
+
}) | (CustomConnector$Outbound & {
|
|
95
|
+
type: "connector";
|
|
96
|
+
}) | (DocumentLibraryTool$Outbound & {
|
|
97
|
+
type: "document_library";
|
|
98
|
+
}) | FunctionTool$Outbound | (ImageGenerationTool$Outbound & {
|
|
99
|
+
type: "image_generation";
|
|
100
|
+
}) | (WebSearchTool$Outbound & {
|
|
101
|
+
type: "web_search";
|
|
102
|
+
}) | (WebSearchPremiumTool$Outbound & {
|
|
103
|
+
type: "web_search_premium";
|
|
104
|
+
})> | null | undefined;
|
|
58
105
|
completion_args?: CompletionArgs$Outbound | null | undefined;
|
|
59
106
|
guardrails?: Array<GuardrailConfig$Outbound> | null | undefined;
|
|
60
107
|
name?: string | null | undefined;
|
|
61
108
|
description?: string | null | undefined;
|
|
62
|
-
metadata?:
|
|
63
|
-
[k: string]: any;
|
|
64
|
-
} | null | undefined;
|
|
109
|
+
metadata?: MetadataDict$Outbound | null | undefined;
|
|
65
110
|
agent_id?: string | null | undefined;
|
|
66
111
|
agent_version?: string | number | null | undefined;
|
|
67
112
|
model?: string | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversationstreamrequest.d.ts","sourceRoot":"","sources":["../../../src/models/components/conversationstreamrequest.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,OAAO,EACL,mBAAmB,EACnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,cAAc,EACd,uBAAuB,EAExB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,kBAAkB,EAClB,2BAA2B,EAE5B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,eAAe,EACf,wBAAwB,EAEzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,mBAAmB,EACnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,YAAY,EACZ,qBAAqB,EAEtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,eAAe,EACf,wBAAwB,EAEzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,mBAAmB,EACnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,oBAAoB,EACpB,6BAA6B,EAE9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,aAAa,EACb,sBAAsB,EAEvB,MAAM,oBAAoB,CAAC;AAE5B,eAAO,MAAM,yCAAyC;;;CAG5C,CAAC;AACX,MAAM,MAAM,yCAAyC,GAAG,UAAU,CAChE,OAAO,yCAAyC,CACjD,CAAC;AAEF,MAAM,MAAM,6BAA6B,GACrC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"conversationstreamrequest.d.ts","sourceRoot":"","sources":["../../../src/models/components/conversationstreamrequest.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,OAAO,EACL,mBAAmB,EACnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,cAAc,EACd,uBAAuB,EAExB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,kBAAkB,EAClB,2BAA2B,EAE5B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,eAAe,EACf,wBAAwB,EAEzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,mBAAmB,EACnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,O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";
|
|
|
13
13
|
import { FunctionTool$outboundSchema, } from "./functiontool.js";
|
|
14
14
|
import { GuardrailConfig$outboundSchema, } from "./guardrailconfig.js";
|
|
15
15
|
import { ImageGenerationTool$outboundSchema, } from "./imagegenerationtool.js";
|
|
16
|
+
import { MetadataDict$outboundSchema, } from "./metadatadict.js";
|
|
16
17
|
import { WebSearchPremiumTool$outboundSchema, } from "./websearchpremiumtool.js";
|
|
17
18
|
import { WebSearchTool$outboundSchema, } from "./websearchtool.js";
|
|
18
19
|
export const ConversationStreamRequestHandoffExecution = {
|
|
@@ -23,13 +24,13 @@ export const ConversationStreamRequestHandoffExecution = {
|
|
|
23
24
|
export const ConversationStreamRequestHandoffExecution$outboundSchema = z.enum(ConversationStreamRequestHandoffExecution);
|
|
24
25
|
/** @internal */
|
|
25
26
|
export const ConversationStreamRequestTool$outboundSchema = z.union([
|
|
26
|
-
CodeInterpreterTool$outboundSchema,
|
|
27
|
-
CustomConnector$outboundSchema,
|
|
28
|
-
DocumentLibraryTool$outboundSchema,
|
|
27
|
+
CodeInterpreterTool$outboundSchema.and(z.object({ type: z.literal("code_interpreter") })),
|
|
28
|
+
CustomConnector$outboundSchema.and(z.object({ type: z.literal("connector") })),
|
|
29
|
+
DocumentLibraryTool$outboundSchema.and(z.object({ type: z.literal("document_library") })),
|
|
29
30
|
FunctionTool$outboundSchema,
|
|
30
|
-
ImageGenerationTool$outboundSchema,
|
|
31
|
-
WebSearchTool$outboundSchema,
|
|
32
|
-
WebSearchPremiumTool$outboundSchema,
|
|
31
|
+
ImageGenerationTool$outboundSchema.and(z.object({ type: z.literal("image_generation") })),
|
|
32
|
+
WebSearchTool$outboundSchema.and(z.object({ type: z.literal("web_search") })),
|
|
33
|
+
WebSearchPremiumTool$outboundSchema.and(z.object({ type: z.literal("web_search_premium") })),
|
|
33
34
|
]);
|
|
34
35
|
export function conversationStreamRequestToolToJSON(conversationStreamRequestTool) {
|
|
35
36
|
return JSON.stringify(ConversationStreamRequestTool$outboundSchema.parse(conversationStreamRequestTool));
|
|
@@ -47,19 +48,19 @@ export const ConversationStreamRequest$outboundSchema = z.object({
|
|
|
47
48
|
handoffExecution: z.nullable(ConversationStreamRequestHandoffExecution$outboundSchema).optional(),
|
|
48
49
|
instructions: z.nullable(z.string()).optional(),
|
|
49
50
|
tools: z.nullable(z.array(z.union([
|
|
50
|
-
CodeInterpreterTool$outboundSchema,
|
|
51
|
-
CustomConnector$outboundSchema,
|
|
52
|
-
DocumentLibraryTool$outboundSchema,
|
|
51
|
+
CodeInterpreterTool$outboundSchema.and(z.object({ type: z.literal("code_interpreter") })),
|
|
52
|
+
CustomConnector$outboundSchema.and(z.object({ type: z.literal("connector") })),
|
|
53
|
+
DocumentLibraryTool$outboundSchema.and(z.object({ type: z.literal("document_library") })),
|
|
53
54
|
FunctionTool$outboundSchema,
|
|
54
|
-
ImageGenerationTool$outboundSchema,
|
|
55
|
-
WebSearchTool$outboundSchema,
|
|
56
|
-
WebSearchPremiumTool$outboundSchema,
|
|
55
|
+
ImageGenerationTool$outboundSchema.and(z.object({ type: z.literal("image_generation") })),
|
|
56
|
+
WebSearchTool$outboundSchema.and(z.object({ type: z.literal("web_search") })),
|
|
57
|
+
WebSearchPremiumTool$outboundSchema.and(z.object({ type: z.literal("web_search_premium") })),
|
|
57
58
|
]))).optional(),
|
|
58
59
|
completionArgs: z.nullable(CompletionArgs$outboundSchema).optional(),
|
|
59
60
|
guardrails: z.nullable(z.array(GuardrailConfig$outboundSchema)).optional(),
|
|
60
61
|
name: z.nullable(z.string()).optional(),
|
|
61
62
|
description: z.nullable(z.string()).optional(),
|
|
62
|
-
metadata: z.nullable(
|
|
63
|
+
metadata: z.nullable(MetadataDict$outboundSchema).optional(),
|
|
63
64
|
agentId: z.nullable(z.string()).optional(),
|
|
64
65
|
agentVersion: z.nullable(smartUnion([z.string(), z.int()])).optional(),
|
|
65
66
|
model: z.nullable(z.string()).optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversationstreamrequest.js","sourceRoot":"","sources":["../../../src/models/components/conversationstreamrequest.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAE1D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAGL,kCAAkC,GACnC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAGL,6BAA6B,GAC9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,iCAAiC,GAClC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAGL,8BAA8B,GAC/B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAGL,kCAAkC,GACnC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAGL,2BAA2B,GAC5B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAGL,8BAA8B,GAC/B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAGL,kCAAkC,GACnC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAGL,mCAAmC,GACpC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAGL,4BAA4B,GAC7B,MAAM,oBAAoB,CAAC;AAE5B,MAAM,CAAC,MAAM,yCAAyC,GAAG;IACvD,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;CACR,CAAC;AA+CX,gBAAgB;AAChB,MAAM,CAAC,MAAM,wDAAwD,GACL,CAAC,CAAC,IAAI,CAClE,yCAAyC,CAC1C,CAAC;AAYJ,gBAAgB;AAChB,MAAM,CAAC,MAAM,4CAA4C,GAGrD,CAAC,CAAC,KAAK,CAAC;IACV,kCAAkC;
|
|
1
|
+
{"version":3,"file":"conversationstreamrequest.js","sourceRoot":"","sources":["../../../src/models/components/conversationstreamrequest.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;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
7
|
import { GuardrailConfig, GuardrailConfig$Outbound } from "./guardrailconfig.js";
|
|
8
8
|
import { ImageGenerationTool, ImageGenerationTool$Outbound } from "./imagegenerationtool.js";
|
|
9
|
+
import { MetadataDict, MetadataDict$Outbound } from "./metadatadict.js";
|
|
9
10
|
import { WebSearchPremiumTool, WebSearchPremiumTool$Outbound } from "./websearchpremiumtool.js";
|
|
10
11
|
import { WebSearchTool, WebSearchTool$Outbound } from "./websearchtool.js";
|
|
11
|
-
export type CreateAgentRequestTool = CodeInterpreterTool
|
|
12
|
+
export type CreateAgentRequestTool = (CodeInterpreterTool & {
|
|
13
|
+
type: "code_interpreter";
|
|
14
|
+
}) | (CustomConnector & {
|
|
15
|
+
type: "connector";
|
|
16
|
+
}) | (DocumentLibraryTool & {
|
|
17
|
+
type: "document_library";
|
|
18
|
+
}) | FunctionTool | (ImageGenerationTool & {
|
|
19
|
+
type: "image_generation";
|
|
20
|
+
}) | (WebSearchTool & {
|
|
21
|
+
type: "web_search";
|
|
22
|
+
}) | (WebSearchPremiumTool & {
|
|
23
|
+
type: "web_search_premium";
|
|
24
|
+
});
|
|
12
25
|
export type CreateAgentRequest = {
|
|
13
26
|
/**
|
|
14
27
|
* Instruction prompt the model will follow during the conversation.
|
|
@@ -17,7 +30,19 @@ export type CreateAgentRequest = {
|
|
|
17
30
|
/**
|
|
18
31
|
* List of tools which are available to the model during the conversation.
|
|
19
32
|
*/
|
|
20
|
-
tools?: Array<CodeInterpreterTool
|
|
33
|
+
tools?: Array<(CodeInterpreterTool & {
|
|
34
|
+
type: "code_interpreter";
|
|
35
|
+
}) | (CustomConnector & {
|
|
36
|
+
type: "connector";
|
|
37
|
+
}) | (DocumentLibraryTool & {
|
|
38
|
+
type: "document_library";
|
|
39
|
+
}) | FunctionTool | (ImageGenerationTool & {
|
|
40
|
+
type: "image_generation";
|
|
41
|
+
}) | (WebSearchTool & {
|
|
42
|
+
type: "web_search";
|
|
43
|
+
}) | (WebSearchPremiumTool & {
|
|
44
|
+
type: "web_search_premium";
|
|
45
|
+
})> | undefined;
|
|
21
46
|
/**
|
|
22
47
|
* White-listed arguments from the completion API
|
|
23
48
|
*/
|
|
@@ -27,29 +52,49 @@ export type CreateAgentRequest = {
|
|
|
27
52
|
name: string;
|
|
28
53
|
description?: string | null | undefined;
|
|
29
54
|
handoffs?: Array<string> | null | undefined;
|
|
30
|
-
metadata?:
|
|
31
|
-
[k: string]: any;
|
|
32
|
-
} | null | undefined;
|
|
55
|
+
metadata?: MetadataDict | null | undefined;
|
|
33
56
|
versionMessage?: string | null | undefined;
|
|
34
57
|
};
|
|
35
58
|
/** @internal */
|
|
36
|
-
export type CreateAgentRequestTool$Outbound = CodeInterpreterTool$Outbound
|
|
59
|
+
export type CreateAgentRequestTool$Outbound = (CodeInterpreterTool$Outbound & {
|
|
60
|
+
type: "code_interpreter";
|
|
61
|
+
}) | (CustomConnector$Outbound & {
|
|
62
|
+
type: "connector";
|
|
63
|
+
}) | (DocumentLibraryTool$Outbound & {
|
|
64
|
+
type: "document_library";
|
|
65
|
+
}) | FunctionTool$Outbound | (ImageGenerationTool$Outbound & {
|
|
66
|
+
type: "image_generation";
|
|
67
|
+
}) | (WebSearchTool$Outbound & {
|
|
68
|
+
type: "web_search";
|
|
69
|
+
}) | (WebSearchPremiumTool$Outbound & {
|
|
70
|
+
type: "web_search_premium";
|
|
71
|
+
});
|
|
37
72
|
/** @internal */
|
|
38
73
|
export declare const CreateAgentRequestTool$outboundSchema: z.ZodType<CreateAgentRequestTool$Outbound, CreateAgentRequestTool>;
|
|
39
74
|
export declare function createAgentRequestToolToJSON(createAgentRequestTool: CreateAgentRequestTool): string;
|
|
40
75
|
/** @internal */
|
|
41
76
|
export type CreateAgentRequest$Outbound = {
|
|
42
77
|
instructions?: string | null | undefined;
|
|
43
|
-
tools?: Array<CodeInterpreterTool$Outbound
|
|
78
|
+
tools?: Array<(CodeInterpreterTool$Outbound & {
|
|
79
|
+
type: "code_interpreter";
|
|
80
|
+
}) | (CustomConnector$Outbound & {
|
|
81
|
+
type: "connector";
|
|
82
|
+
}) | (DocumentLibraryTool$Outbound & {
|
|
83
|
+
type: "document_library";
|
|
84
|
+
}) | FunctionTool$Outbound | (ImageGenerationTool$Outbound & {
|
|
85
|
+
type: "image_generation";
|
|
86
|
+
}) | (WebSearchTool$Outbound & {
|
|
87
|
+
type: "web_search";
|
|
88
|
+
}) | (WebSearchPremiumTool$Outbound & {
|
|
89
|
+
type: "web_search_premium";
|
|
90
|
+
})> | undefined;
|
|
44
91
|
completion_args?: CompletionArgs$Outbound | undefined;
|
|
45
92
|
guardrails?: Array<GuardrailConfig$Outbound> | null | undefined;
|
|
46
93
|
model: string;
|
|
47
94
|
name: string;
|
|
48
95
|
description?: string | null | undefined;
|
|
49
96
|
handoffs?: Array<string> | null | undefined;
|
|
50
|
-
metadata?:
|
|
51
|
-
[k: string]: any;
|
|
52
|
-
} | null | undefined;
|
|
97
|
+
metadata?: MetadataDict$Outbound | null | undefined;
|
|
53
98
|
version_message?: string | null | undefined;
|
|
54
99
|
};
|
|
55
100
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createagentrequest.d.ts","sourceRoot":"","sources":["../../../src/models/components/createagentrequest.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EACL,mBAAmB,EACnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,cAAc,EACd,uBAAuB,EAExB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,eAAe,EACf,wBAAwB,EAEzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,mBAAmB,EACnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,YAAY,EACZ,qBAAqB,EAEtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,eAAe,EACf,wBAAwB,EAEzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,mBAAmB,EACnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,oBAAoB,EACpB,6BAA6B,EAE9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,aAAa,EACb,sBAAsB,EAEvB,MAAM,oBAAoB,CAAC;AAE5B,MAAM,MAAM,sBAAsB,GAC9B,mBAAmB,
|
|
1
|
+
{"version":3,"file":"createagentrequest.d.ts","sourceRoot":"","sources":["../../../src/models/components/createagentrequest.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EACL,mBAAmB,EACnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,cAAc,EACd,uBAAuB,EAExB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,eAAe,EACf,wBAAwB,EAEzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,mBAAmB,EACnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,YAAY,EACZ,qBAAqB,EAEtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,eAAe,EACf,wBAAwB,EAEzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,mBAAmB,EACnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,YAAY,EACZ,qBAAqB,EAEtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,oBAAoB,EACpB,6BAA6B,EAE9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,aAAa,EACb,sBAAsB,EAEvB,MAAM,oBAAoB,CAAC;AAE5B,MAAM,MAAM,sBAAsB,GAC9B,CAAC,mBAAmB,GAAG;IAAE,IAAI,EAAE,kBAAkB,CAAA;CAAE,CAAC,GACpD,CAAC,eAAe,GAAG;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,CAAC,GACzC,CAAC,mBAAmB,GAAG;IAAE,IAA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AE,IAAI,EAAE,YAAY,CAAA;KAAE,CAAC,GACjD,CAAC,6BAA6B,GAAG;QAAE,IAAI,EAAE,oBAAoB,CAAA;KAAE,CAAC,CACnE,GACC,SAAS,CAAC;IACd,eAAe,CAAC,EAAE,uBAAuB,GAAG,SAAS,CAAC;IACtD,UAAU,CAAC,EAAE,KAAK,CAAC,wBAAwB,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IAChE,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IAC5C,QAAQ,CAAC,EAAE,qBAAqB,GAAG,IAAI,GAAG,SAAS,CAAC;IACpD,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC7C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,2BAA2B,EAC3B,kBAAkB,CAuClB,CAAC;AAEH,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,kBAAkB,GACrC,MAAM,CAIR"}
|
|
@@ -11,17 +11,18 @@ import { DocumentLibraryTool$outboundSchema, } from "./documentlibrarytool.js";
|
|
|
11
11
|
import { FunctionTool$outboundSchema, } from "./functiontool.js";
|
|
12
12
|
import { GuardrailConfig$outboundSchema, } from "./guardrailconfig.js";
|
|
13
13
|
import { ImageGenerationTool$outboundSchema, } from "./imagegenerationtool.js";
|
|
14
|
+
import { MetadataDict$outboundSchema, } from "./metadatadict.js";
|
|
14
15
|
import { WebSearchPremiumTool$outboundSchema, } from "./websearchpremiumtool.js";
|
|
15
16
|
import { WebSearchTool$outboundSchema, } from "./websearchtool.js";
|
|
16
17
|
/** @internal */
|
|
17
18
|
export const CreateAgentRequestTool$outboundSchema = z.union([
|
|
18
|
-
CodeInterpreterTool$outboundSchema,
|
|
19
|
-
CustomConnector$outboundSchema,
|
|
20
|
-
DocumentLibraryTool$outboundSchema,
|
|
19
|
+
CodeInterpreterTool$outboundSchema.and(z.object({ type: z.literal("code_interpreter") })),
|
|
20
|
+
CustomConnector$outboundSchema.and(z.object({ type: z.literal("connector") })),
|
|
21
|
+
DocumentLibraryTool$outboundSchema.and(z.object({ type: z.literal("document_library") })),
|
|
21
22
|
FunctionTool$outboundSchema,
|
|
22
|
-
ImageGenerationTool$outboundSchema,
|
|
23
|
-
WebSearchTool$outboundSchema,
|
|
24
|
-
WebSearchPremiumTool$outboundSchema,
|
|
23
|
+
ImageGenerationTool$outboundSchema.and(z.object({ type: z.literal("image_generation") })),
|
|
24
|
+
WebSearchTool$outboundSchema.and(z.object({ type: z.literal("web_search") })),
|
|
25
|
+
WebSearchPremiumTool$outboundSchema.and(z.object({ type: z.literal("web_search_premium") })),
|
|
25
26
|
]);
|
|
26
27
|
export function createAgentRequestToolToJSON(createAgentRequestTool) {
|
|
27
28
|
return JSON.stringify(CreateAgentRequestTool$outboundSchema.parse(createAgentRequestTool));
|
|
@@ -30,13 +31,13 @@ export function createAgentRequestToolToJSON(createAgentRequestTool) {
|
|
|
30
31
|
export const CreateAgentRequest$outboundSchema = z.object({
|
|
31
32
|
instructions: z.nullable(z.string()).optional(),
|
|
32
33
|
tools: z.array(z.union([
|
|
33
|
-
CodeInterpreterTool$outboundSchema,
|
|
34
|
-
CustomConnector$outboundSchema,
|
|
35
|
-
DocumentLibraryTool$outboundSchema,
|
|
34
|
+
CodeInterpreterTool$outboundSchema.and(z.object({ type: z.literal("code_interpreter") })),
|
|
35
|
+
CustomConnector$outboundSchema.and(z.object({ type: z.literal("connector") })),
|
|
36
|
+
DocumentLibraryTool$outboundSchema.and(z.object({ type: z.literal("document_library") })),
|
|
36
37
|
FunctionTool$outboundSchema,
|
|
37
|
-
ImageGenerationTool$outboundSchema,
|
|
38
|
-
WebSearchTool$outboundSchema,
|
|
39
|
-
WebSearchPremiumTool$outboundSchema,
|
|
38
|
+
ImageGenerationTool$outboundSchema.and(z.object({ type: z.literal("image_generation") })),
|
|
39
|
+
WebSearchTool$outboundSchema.and(z.object({ type: z.literal("web_search") })),
|
|
40
|
+
WebSearchPremiumTool$outboundSchema.and(z.object({ type: z.literal("web_search_premium") })),
|
|
40
41
|
])).optional(),
|
|
41
42
|
completionArgs: CompletionArgs$outboundSchema.optional(),
|
|
42
43
|
guardrails: z.nullable(z.array(GuardrailConfig$outboundSchema)).optional(),
|
|
@@ -44,7 +45,7 @@ export const CreateAgentRequest$outboundSchema = z.object({
|
|
|
44
45
|
name: z.string(),
|
|
45
46
|
description: z.nullable(z.string()).optional(),
|
|
46
47
|
handoffs: z.nullable(z.array(z.string())).optional(),
|
|
47
|
-
metadata: z.nullable(
|
|
48
|
+
metadata: z.nullable(MetadataDict$outboundSchema).optional(),
|
|
48
49
|
versionMessage: z.nullable(z.string()).optional(),
|
|
49
50
|
}).transform((v) => {
|
|
50
51
|
return remap$(v, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createagentrequest.js","sourceRoot":"","sources":["../../../src/models/components/createagentrequest.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAGL,kCAAkC,GACnC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAGL,6BAA6B,GAC9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,8BAA8B,GAC/B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAGL,kCAAkC,GACnC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAGL,2BAA2B,GAC5B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAGL,8BAA8B,GAC/B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAGL,kCAAkC,GACnC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAGL,mCAAmC,GACpC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAGL,4BAA4B,GAC7B,MAAM,oBAAoB,CAAC;AAqD5B,gBAAgB;AAChB,MAAM,CAAC,MAAM,qCAAqC,GAG9C,CAAC,CAAC,KAAK,CAAC;IACV,kCAAkC;
|
|
1
|
+
{"version":3,"file":"createagentrequest.js","sourceRoot":"","sources":["../../../src/models/components/createagentrequest.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAGL,kCAAkC,GACnC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAGL,6BAA6B,GAC9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,8BAA8B,GAC/B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAGL,kCAAkC,GACnC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAGL,2BAA2B,GAC5B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAGL,8BAA8B,GAC/B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAGL,kCAAkC,GACnC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAGL,2BAA2B,GAC5B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAGL,mCAAmC,GACpC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAGL,4BAA4B,GAC7B,MAAM,oBAAoB,CAAC;AAqD5B,gBAAgB;AAChB,MAAM,CAAC,MAAM,qCAAqC,GAG9C,CAAC,CAAC,KAAK,CAAC;IACV,kCAAkC,CAAC,GAAG,CACpC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAClD;IACD,8BAA8B,CAAC,GAAG,CAChC,CAAC,CAAC,MAA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AAQ,EAAE;CAClD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IAClB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,cAAc,EAAE,iBAAiB;QACjC,cAAc,EAAE,iBAAiB;KAClC,CAAC,CAAC;AAAA,CACJ,CAAC,CAAC;AAEH,MAAM,UAAU,wBAAwB,CACtC,kBAAsC,EAC9B;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,iCAAiC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AAAA,CACH"}
|
|
@@ -1,18 +1,27 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
2
|
import * as discriminatedUnionTypes from "../../types/discriminatedUnion.js";
|
|
3
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
4
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
5
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
6
|
import { APIKeyAuth, APIKeyAuth$Outbound } from "./apikeyauth.js";
|
|
6
7
|
import { OAuth2TokenAuth, OAuth2TokenAuth$Outbound } from "./oauth2tokenauth.js";
|
|
7
8
|
import { ToolConfiguration, ToolConfiguration$Outbound } from "./toolconfiguration.js";
|
|
9
|
+
export declare const CustomConnectorType: {
|
|
10
|
+
readonly Connector: "connector";
|
|
11
|
+
};
|
|
12
|
+
export type CustomConnectorType = ClosedEnum<typeof CustomConnectorType>;
|
|
8
13
|
export type Authorization = APIKeyAuth | OAuth2TokenAuth | discriminatedUnionTypes.Unknown<"type">;
|
|
9
14
|
export type CustomConnector = {
|
|
10
|
-
type
|
|
15
|
+
type?: CustomConnectorType | undefined;
|
|
11
16
|
connectorId: string;
|
|
12
17
|
authorization?: APIKeyAuth | OAuth2TokenAuth | discriminatedUnionTypes.Unknown<"type"> | null | undefined;
|
|
13
18
|
toolConfiguration?: ToolConfiguration | null | undefined;
|
|
14
19
|
};
|
|
15
20
|
/** @internal */
|
|
21
|
+
export declare const CustomConnectorType$inboundSchema: z.ZodEnum<typeof CustomConnectorType>;
|
|
22
|
+
/** @internal */
|
|
23
|
+
export declare const CustomConnectorType$outboundSchema: z.ZodEnum<typeof CustomConnectorType>;
|
|
24
|
+
/** @internal */
|
|
16
25
|
export declare const Authorization$inboundSchema: z.ZodType<Authorization, unknown>;
|
|
17
26
|
/** @internal */
|
|
18
27
|
export type Authorization$Outbound = APIKeyAuth$Outbound | OAuth2TokenAuth$Outbound;
|
|
@@ -24,7 +33,7 @@ export declare function authorizationFromJSON(jsonString: string): SafeParseResu
|
|
|
24
33
|
export declare const CustomConnector$inboundSchema: z.ZodType<CustomConnector, unknown>;
|
|
25
34
|
/** @internal */
|
|
26
35
|
export type CustomConnector$Outbound = {
|
|
27
|
-
type:
|
|
36
|
+
type: string;
|
|
28
37
|
connector_id: string;
|
|
29
38
|
authorization?: APIKeyAuth$Outbound | OAuth2TokenAuth$Outbound | null | undefined;
|
|
30
39
|
tool_configuration?: ToolConfiguration$Outbound | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customconnector.d.ts","sourceRoot":"","sources":["../../../src/models/components/customconnector.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,KAAK,uBAAuB,MAAM,mCAAmC,CAAC;AAE7E,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,UAAU,EAEV,mBAAmB,EAEpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,eAAe,EAEf,wBAAwB,EAEzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,iBAAiB,EAEjB,0BAA0B,EAE3B,MAAM,wBAAwB,CAAC;AAEhC,MAAM,MAAM,aAAa,GACrB,UAAU,GACV,eAAe,GACf,uBAAuB,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;AAE5C,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"customconnector.d.ts","sourceRoot":"","sources":["../../../src/models/components/customconnector.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,KAAK,uBAAuB,MAAM,mCAAmC,CAAC;AAE7E,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,UAAU,EAEV,mBAAmB,EAEpB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,eAAe,EAEf,wBAAwB,EAEzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,iBAAiB,EAEjB,0BAA0B,EAE3B,MAAM,wBAAwB,CAAC;AAEhC,eAAO,MAAM,mBAAmB;;CAEtB,CAAC;AACX,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEzE,MAAM,MAAM,aAAa,GACrB,UAAU,GACV,eAAe,GACf,uBAAuB,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;AAE5C,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAC;IACvC,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EACV,UAAU,GACV,eAAe,GACf,uBAAuB,CAAC,OAAO,CAAC,MAAM,CAAC,GACvC,IAAI,GACJ,SAAS,CAAC;IACd,iBAAiB,CAAC,EAAE,iBAAiB,GAAG,IAAI,GAAG,SAAS,CAAC;CAC1D,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,OAAO,mBAAmB,CACG,CAAC;AAChC,gBAAgB;AA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Auth$inboundSchema, APIKeyAuth$outboundSchema, } from "./apikeyauth.js";
|
|
10
10
|
import { OAuth2TokenAuth$inboundSchema, OAuth2TokenAuth$outboundSchema, } from "./oauth2tokenauth.js";
|
|
11
11
|
import { ToolConfiguration$inboundSchema, ToolConfiguration$outboundSchema, } from "./toolconfiguration.js";
|
|
12
|
+
export const CustomConnectorType = {
|
|
13
|
+
Connector: "connector",
|
|
14
|
+
};
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const CustomConnectorType$inboundSchema = z.enum(CustomConnectorType);
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const CustomConnectorType$outboundSchema = CustomConnectorType$inboundSchema;
|
|
12
19
|
/** @internal */
|
|
13
20
|
export const Authorization$inboundSchema = discriminatedUnion("type", {
|
|
14
21
|
["api-key"]: APIKeyAuth$inboundSchema,
|
|
@@ -24,7 +31,7 @@ export function authorizationFromJSON(jsonString) {
|
|
|
24
31
|
}
|
|
25
32
|
/** @internal */
|
|
26
33
|
export const CustomConnector$inboundSchema = z.object({
|
|
27
|
-
type:
|
|
34
|
+
type: CustomConnectorType$inboundSchema.default("connector"),
|
|
28
35
|
connector_id: z.string(),
|
|
29
36
|
authorization: z.nullable(discriminatedUnion("type", {
|
|
30
37
|
["api-key"]: APIKeyAuth$inboundSchema,
|
|
@@ -39,7 +46,7 @@ export const CustomConnector$inboundSchema = z.object({
|
|
|
39
46
|
});
|
|
40
47
|
/** @internal */
|
|
41
48
|
export const CustomConnector$outboundSchema = z.object({
|
|
42
|
-
type:
|
|
49
|
+
type: CustomConnectorType$outboundSchema.default("connector"),
|
|
43
50
|
connectorId: z.string(),
|
|
44
51
|
authorization: z.nullable(z.union([APIKeyAuth$outboundSchema, OAuth2TokenAuth$outboundSchema])).optional(),
|
|
45
52
|
toolConfiguration: z.nullable(ToolConfiguration$outboundSchema).optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customconnector.js","sourceRoot":"","sources":["../../../src/models/components/customconnector.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"customconnector.js","sourceRoot":"","sources":["../../../src/models/components/customconnector.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAIvE,OAAO,EAEL,wBAAwB,EAExB,yBAAyB,GAC1B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAEL,6BAA6B,EAE7B,8BAA8B,GAC/B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,+BAA+B,EAE/B,gCAAgC,GACjC,MAAM,wBAAwB,CAAC;AAEhC,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,SAAS,EAAE,WAAW;CACd,CAAC;AAoBX,gBAAgB;AAChB,MAAM,CAAC,MAAM,iCAAiC,GAE1C,CAAC,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;AAChC,gBAAgB;AAChB,MAAM,CAAC,MAAM,kCAAkC,GAE3C,iCAAiC,CAAC;AAEtC,gBAAgB;AAChB,MAAM,CAAC,MAAM,2BAA2B,GACtC,kBAAkB,CAAC,MAAM,EAAE;IACzB,CAAC,SAAS,CAAC,EAAE,wBAAwB;IACrC,CAAC,cAAc,CAAC,EAAE,6BAA6B;CAChD,CAAC,CAAC;AAML,gBAAgB;AAChB,MAAM,CAAC,MAAM,4BAA4B,GAG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,MAAM,EAAE;IACvB,aAAa,EAAE,CAAC,CAAC,QAAQ,CACvB,CAAC,CAAC,KAAK,CAAC,CAAC,yBAAyB,EAAE,8BAA8B,CAAC,CAAC,CACrE,CAAC,QAAQ,EAAE;IACZ,iBAAiB,EAAE,CAAC,CAAC,QAAQ,CAAC,gCAAgC,CAAC,CAAC,QAAQ,EAAE;CAC3E,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IAClB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,WAAW,EAAE,cAAc;QAC3B,iBAAiB,EAAE,oBAAoB;KACxC,CAAC,CAAC;AAAA,CACJ,CAAC,CAAC;AAEH,MAAM,UAAU,qBAAqB,CACnC,eAAgC,EACxB;IACR,OAAO,IAAI,CAAC,SAAS,CAAC,8BAA8B,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;AAAA,CAC9E;AACD,MAAM,UAAU,uBAAuB,CACrC,UAAkB,EACoC;IACtD,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,6BAA6B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzD,6CAA6C,CAC9C,CAAC;AAAA,CACH"}
|
|
@@ -1,21 +1,30 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
2
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
5
|
import { ToolConfiguration, ToolConfiguration$Outbound } from "./toolconfiguration.js";
|
|
6
|
+
export declare const DocumentLibraryToolType: {
|
|
7
|
+
readonly DocumentLibrary: "document_library";
|
|
8
|
+
};
|
|
9
|
+
export type DocumentLibraryToolType = ClosedEnum<typeof DocumentLibraryToolType>;
|
|
5
10
|
export type DocumentLibraryTool = {
|
|
6
11
|
toolConfiguration?: ToolConfiguration | null | undefined;
|
|
7
|
-
type
|
|
12
|
+
type?: DocumentLibraryToolType | undefined;
|
|
8
13
|
/**
|
|
9
14
|
* Ids of the library in which to search.
|
|
10
15
|
*/
|
|
11
16
|
libraryIds: Array<string>;
|
|
12
17
|
};
|
|
13
18
|
/** @internal */
|
|
19
|
+
export declare const DocumentLibraryToolType$inboundSchema: z.ZodEnum<typeof DocumentLibraryToolType>;
|
|
20
|
+
/** @internal */
|
|
21
|
+
export declare const DocumentLibraryToolType$outboundSchema: z.ZodEnum<typeof DocumentLibraryToolType>;
|
|
22
|
+
/** @internal */
|
|
14
23
|
export declare const DocumentLibraryTool$inboundSchema: z.ZodType<DocumentLibraryTool, unknown>;
|
|
15
24
|
/** @internal */
|
|
16
25
|
export type DocumentLibraryTool$Outbound = {
|
|
17
26
|
tool_configuration?: ToolConfiguration$Outbound | null | undefined;
|
|
18
|
-
type:
|
|
27
|
+
type: string;
|
|
19
28
|
library_ids: Array<string>;
|
|
20
29
|
};
|
|
21
30
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"documentlibrarytool.d.ts","sourceRoot":"","sources":["../../../src/models/components/documentlibrarytool.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,iBAAiB,EAEjB,0BAA0B,EAE3B,MAAM,wBAAwB,CAAC;AAEhC,MAAM,MAAM,mBAAmB,GAAG;IAChC,iBAAiB,CAAC,EAAE,iBAAiB,GAAG,IAAI,GAAG,SAAS,CAAC;IACzD,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"documentlibrarytool.d.ts","sourceRoot":"","sources":["../../../src/models/components/documentlibrarytool.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG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ACvC,MAAM,CAIR;AACD,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAM1D"}
|
|
@@ -6,10 +6,17 @@ import * as z from "zod/v4";
|
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { ToolConfiguration$inboundSchema, ToolConfiguration$outboundSchema, } from "./toolconfiguration.js";
|
|
9
|
+
export const DocumentLibraryToolType = {
|
|
10
|
+
DocumentLibrary: "document_library",
|
|
11
|
+
};
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const DocumentLibraryToolType$inboundSchema = z.enum(DocumentLibraryToolType);
|
|
14
|
+
/** @internal */
|
|
15
|
+
export const DocumentLibraryToolType$outboundSchema = DocumentLibraryToolType$inboundSchema;
|
|
9
16
|
/** @internal */
|
|
10
17
|
export const DocumentLibraryTool$inboundSchema = z.object({
|
|
11
18
|
tool_configuration: z.nullable(ToolConfiguration$inboundSchema).optional(),
|
|
12
|
-
type:
|
|
19
|
+
type: DocumentLibraryToolType$inboundSchema.default("document_library"),
|
|
13
20
|
library_ids: z.array(z.string()),
|
|
14
21
|
}).transform((v) => {
|
|
15
22
|
return remap$(v, {
|
|
@@ -20,7 +27,7 @@ export const DocumentLibraryTool$inboundSchema = z.object({
|
|
|
20
27
|
/** @internal */
|
|
21
28
|
export const DocumentLibraryTool$outboundSchema = z.object({
|
|
22
29
|
toolConfiguration: z.nullable(ToolConfiguration$outboundSchema).optional(),
|
|
23
|
-
type:
|
|
30
|
+
type: DocumentLibraryToolType$outboundSchema.default("document_library"),
|
|
24
31
|
libraryIds: z.array(z.string()),
|
|
25
32
|
}).transform((v) => {
|
|
26
33
|
return remap$(v, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"documentlibrarytool.js","sourceRoot":"","sources":["../../../src/models/components/documentlibrarytool.ts"],"names":[],"mappings":"A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AAC;AAQH,gBAAgB;AAChB,MAAM,CAAC,MAAM,kCAAkC,GAG3C,CAAC,CAAC,MAAM,CAAC;IACX,iBAAiB,EAAE,CAAC,CAAC,QAAQ,CAAC,gCAAgC,CAAC,CAAC,QAAQ,EAAE;IAC1E,IAAI,EAAE,sCAAsC,CAAC,OAAO,CAAC,kBAAkB,CAAC;IACxE,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAChC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IAClB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,iBAAiB,EAAE,oBAAoB;QACvC,UAAU,EAAE,aAAa;KAC1B,CAAC,CAAC;AAAA,CACJ,CAAC,CAAC;AAEH,MAAM,UAAU,yBAAyB,CACvC,mBAAwC,EAChC;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,kCAAkC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAC9D,CAAC;AAAA,CACH;AACD,MAAM,UAAU,2BAA2B,CACzC,UAAkB,EACwC;IAC1D,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,iCAAiC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC7D,iDAAiD,CAClD,CAAC;AAAA,CACH"}
|
|
@@ -10,6 +10,12 @@ export type FTModelCard = {
|
|
|
10
10
|
object: string;
|
|
11
11
|
created?: number | undefined;
|
|
12
12
|
ownedBy: string;
|
|
13
|
+
/**
|
|
14
|
+
* This is populated by Harmattan, but some fields have a name
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
* that we don't want to expose in the API.
|
|
18
|
+
*/
|
|
13
19
|
capabilities: ModelCapabilities;
|
|
14
20
|
name?: string | null | undefined;
|
|
15
21
|
description?: string | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ftmodelcard.d.ts","sour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,EAAE,kBAAkB,CAAC,CAMlD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ftmodelcard.js","sourceRoot":"","sources":["../../../src/models/components/ftmodelcard.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,+BAA+B,GAChC,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"ftmodelcard.js","sourceRoot":"","sources":["../../../src/models/components/ftmodelcard.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,+BAA+B,GAChC,MAAM,wBAAwB,CAAC;AA8BhC,gBAAgB;AAChB,MAAM,CAAC,MAAM,yBAAyB,GAAoC,CAAC;KACxE,MAAM,CAAC;IACN,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC;IACnC,OAAO,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IAC3B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC;IACzC,YAAY,EAAE,+BAA+B;IAC7C,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;I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