@orq-ai/node 4.13.13 → 4.13.16
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 +46 -37
- package/funcs/modelCatalogGet.d.ts +18 -0
- package/funcs/modelCatalogGet.d.ts.map +1 -0
- package/funcs/modelCatalogGet.js +121 -0
- package/funcs/modelCatalogGet.js.map +1 -0
- package/funcs/modelCatalogList.d.ts +18 -0
- package/funcs/modelCatalogList.d.ts.map +1 -0
- package/funcs/modelCatalogList.js +133 -0
- package/funcs/modelCatalogList.js.map +1 -0
- package/funcs/modelCatalogListOfferings.d.ts +18 -0
- package/funcs/modelCatalogListOfferings.d.ts.map +1 -0
- package/funcs/modelCatalogListOfferings.js +138 -0
- package/funcs/modelCatalogListOfferings.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/evaluatorresponsefunction.js +2 -2
- package/models/components/evaluatorresponsehttp.js +2 -2
- package/models/components/evaluatorresponsejsonschema.js +2 -2
- package/models/components/evaluatorresponsellm.js +2 -2
- package/models/components/evaluatorresponsepython.js +2 -2
- package/models/components/evaluatorresponseragas.js +2 -2
- package/models/components/evaluatorresponsetypescript.js +2 -2
- package/models/components/getmodelcatalogmodelresponse.d.ts +14 -0
- package/models/components/getmodelcatalogmodelresponse.d.ts.map +1 -0
- package/models/components/getmodelcatalogmodelresponse.js +51 -0
- package/models/components/getmodelcatalogmodelresponse.js.map +1 -0
- package/models/components/index.d.ts +6 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +6 -0
- package/models/components/index.js.map +1 -1
- package/models/components/listmodelcatalogofferingsresponse.d.ts +25 -0
- package/models/components/listmodelcatalogofferingsresponse.d.ts.map +1 -0
- package/models/components/listmodelcatalogofferingsresponse.js +58 -0
- package/models/components/listmodelcatalogofferingsresponse.js.map +1 -0
- package/models/components/listmodelcatalogresponse.d.ts +25 -0
- package/models/components/listmodelcatalogresponse.d.ts.map +1 -0
- package/models/components/listmodelcatalogresponse.js +58 -0
- package/models/components/listmodelcatalogresponse.js.map +1 -0
- package/models/components/model.d.ts +129 -0
- package/models/components/model.d.ts.map +1 -0
- package/models/components/model.js +91 -0
- package/models/components/model.js.map +1 -0
- package/models/components/modelmodalities.d.ts +17 -0
- package/models/components/modelmodalities.d.ts.map +1 -0
- package/models/components/modelmodalities.js +51 -0
- package/models/components/modelmodalities.js.map +1 -0
- package/models/components/modelprovider.d.ts +17 -0
- package/models/components/modelprovider.d.ts.map +1 -0
- package/models/components/modelprovider.js +51 -0
- package/models/components/modelprovider.js.map +1 -0
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/billing.js +1 -1
- package/models/operations/createannotationqueue.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +5 -5
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/getalltools.js +6 -6
- package/models/operations/geteval.js +16 -16
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/index.d.ts +3 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +3 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listannotationqueues.js +1 -1
- package/models/operations/listdatasetdatapoints.js +5 -5
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/modelcatalogget.d.ts +15 -0
- package/models/operations/modelcatalogget.d.ts.map +1 -0
- package/models/operations/modelcatalogget.js +49 -0
- package/models/operations/modelcatalogget.js.map +1 -0
- package/models/operations/modelcataloglist.d.ts +103 -0
- package/models/operations/modelcataloglist.d.ts.map +1 -0
- package/models/operations/modelcataloglist.js +74 -0
- package/models/operations/modelcataloglist.js.map +1 -0
- package/models/operations/modelcataloglistofferings.d.ts +106 -0
- package/models/operations/modelcataloglistofferings.d.ts.map +1 -0
- package/models/operations/modelcataloglistofferings.js +73 -0
- package/models/operations/modelcataloglistofferings.js.map +1 -0
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrieveannotationqueue.js +1 -1
- package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjson2.js +28 -28
- package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody14attributes2.js +28 -28
- package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody22attributesopenresponsesdetail.js +6 -6
- package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody23annotations.js +26 -26
- package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody27attributesopenresponsesoutput3type.js +6 -6
- package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody314.js +31 -31
- package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody5attributestype.js +22 -22
- package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody11attributestoplogprobs.js +14 -14
- package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody15attributesopenresponsesoutput4type.js +14 -14
- package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody17attributesopenresponsesoutput44type.js +16 -16
- package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody18type.js +24 -24
- package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody1attributestype.js +2 -2
- package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody21attributestoplogprobs.js +14 -14
- package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody29attributestoplogprobs.js +14 -14
- package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody32attributesopenresponsesoutput48type.js +18 -18
- package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody66.js +2 -2
- package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody7attributes5.js +16 -16
- package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody9attributes8.js +18 -18
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody1017.js +4 -4
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody11attributesorq7evaluatorconfigtype.js +21 -21
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody12attributesorq15annotator.js +5 -5
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody136.js +25 -25
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody14attributesorq14type.js +7 -7
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody15attributesorq7outputschema.js +21 -21
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody1618.js +3 -3
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody17attributesorq8kind.js +18 -18
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody18attributesorq12evaluatorconfigtype.js +11 -11
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody19attributesorq5kind.js +24 -24
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody20attributesorq14annotator.js +7 -7
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody21attributesorq7evaluatorconfigtype.js +21 -21
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody22attributesorqevaluatorconfigtype.js +28 -28
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody23attributesorq13evaluationtype.js +9 -9
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody24attributesorq7status.js +21 -21
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody25attributesorq18type.js +2 -2
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody2611.js +15 -15
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody27attributesorqevaluationtype.js +28 -28
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody28attributesorq14annotator.js +7 -7
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody29attributesorq7evaluatorconfigtype.js +21 -21
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody2attributesorq14type.js +7 -7
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody30attributesorq18evaluationtype.js +2 -2
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody31attributesorq16kind.js +4 -4
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody32attributesorq9evaluatorconfigtype.js +17 -17
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody33attributesannotator.js +30 -30
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody34attributesorq12evaluationtype.js +11 -11
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody35attributesorq5annotator.js +24 -24
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody3attributesorq14evaluationtype.js +7 -7
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody4attributesorq4kind.js +26 -26
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody5attributesorq11evaluatorconfigtype.js +13 -13
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody6attributesorq19annotator.js +1 -1
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody6value.js +32 -32
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody7attributesorq8evaluatorconfigtype.js +19 -19
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody8attributesorq18annotator.js +2 -2
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody9attributesorq9kind.js +17 -17
- package/models/operations/retrieveannotationqueueitemevaluationsannotator.js +32 -32
- package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody20attributesopenresponses6role.js +28 -28
- package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody26content.js +20 -20
- package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody28attributesopenresponses6role.js +28 -28
- package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody34attributesrole.js +24 -24
- package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200status.js +28 -28
- package/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody12attributes1.js +30 -30
- package/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody24attributescontent.js +14 -14
- package/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody332.js +4 -4
- package/models/operations/retrieveannotationqueueitemresponsebody.js +1 -1
- package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson10http.js +31 -31
- package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson16settings.js +32 -32
- package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson17context.js +1 -1
- package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson22call.js +1 -1
- package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson25engine.js +33 -33
- package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson27conversation.js +1 -1
- package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson30nodes.js +33 -33
- package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson33token.js +1 -1
- package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson8trace.js +33 -33
- package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjsonresponse.js +1 -1
- package/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse1.js +8 -8
- package/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody13attributesopenresponsesoutputtype.js +10 -10
- package/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody193.js +10 -10
- package/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody35attributestype.js +10 -10
- package/models/operations/retrievedatapoint.js +5 -5
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/twenty.js +1 -1
- package/models/operations/updateannotationqueue.js +1 -1
- package/models/operations/updatedatapoint.js +5 -5
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +7 -7
- package/packages/orq-rc/src/funcs/agentsCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/agentsDelete.ts +1 -1
- package/packages/orq-rc/src/funcs/agentsInvoke.ts +1 -1
- package/packages/orq-rc/src/funcs/agentsList.ts +1 -1
- package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/agentsResponsesGet.ts +1 -1
- package/packages/orq-rc/src/funcs/agentsRetrieve.ts +1 -1
- package/packages/orq-rc/src/funcs/agentsRun.ts +1 -1
- package/packages/orq-rc/src/funcs/agentsStream.ts +1 -1
- package/packages/orq-rc/src/funcs/agentsStreamRun.ts +1 -1
- package/packages/orq-rc/src/funcs/agentsUpdate.ts +1 -1
- package/packages/orq-rc/src/funcs/annotationQueuesCreate.ts +3 -0
- package/packages/orq-rc/src/funcs/annotationQueuesDelete.ts +3 -0
- package/packages/orq-rc/src/funcs/annotationQueuesRetrieveItem.ts +1 -1
- package/packages/orq-rc/src/funcs/annotationQueuesUpdate.ts +3 -0
- package/packages/orq-rc/src/funcs/chunkingParse.ts +5 -4
- package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +4 -7
- package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +3 -0
- package/packages/orq-rc/src/funcs/evalsAll.ts +3 -0
- package/packages/orq-rc/src/funcs/evalsCreate.ts +3 -0
- package/packages/orq-rc/src/funcs/evalsDelete.ts +3 -0
- package/packages/orq-rc/src/funcs/evalsGet.ts +1 -5
- package/packages/orq-rc/src/funcs/evalsInvoke.ts +13 -24
- package/packages/orq-rc/src/funcs/evalsUpdate.ts +3 -0
- package/packages/orq-rc/src/funcs/guardrailRulesCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeCreate.ts +11 -8
- package/packages/orq-rc/src/funcs/knowledgeCreateChunks.ts +8 -4
- package/packages/orq-rc/src/funcs/knowledgeCreateDatasource.ts +11 -5
- package/packages/orq-rc/src/funcs/knowledgeDeleteChunk.ts +3 -0
- package/packages/orq-rc/src/funcs/knowledgeDeleteChunks.ts +11 -5
- package/packages/orq-rc/src/funcs/knowledgeGetChunksCount.ts +8 -5
- package/packages/orq-rc/src/funcs/knowledgeList.ts +5 -4
- package/packages/orq-rc/src/funcs/knowledgeListChunks.ts +8 -4
- package/packages/orq-rc/src/funcs/knowledgeListChunksPaginated.ts +11 -5
- package/packages/orq-rc/src/funcs/knowledgeListDatasources.ts +8 -5
- package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +5 -4
- package/packages/orq-rc/src/funcs/knowledgeRetrieveChunk.ts +8 -4
- package/packages/orq-rc/src/funcs/knowledgeRetrieveDatasource.ts +8 -4
- package/packages/orq-rc/src/funcs/knowledgeRetrieveFileUrl.ts +187 -0
- package/packages/orq-rc/src/funcs/knowledgeRetrieveProcessingStatus.ts +180 -0
- package/packages/orq-rc/src/funcs/knowledgeSearch.ts +8 -5
- package/packages/orq-rc/src/funcs/knowledgeToggleChunk.ts +181 -0
- package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +11 -5
- package/packages/orq-rc/src/funcs/knowledgeUpdateChunk.ts +11 -5
- package/packages/orq-rc/src/funcs/knowledgeUpdateDatasource.ts +11 -5
- package/packages/orq-rc/src/funcs/memoryStoresCreate.ts +9 -14
- package/packages/orq-rc/src/funcs/memoryStoresCreateDocument.ts +8 -5
- package/packages/orq-rc/src/funcs/memoryStoresCreateMemory.ts +8 -5
- package/packages/orq-rc/src/funcs/memoryStoresDeleteDocument.ts +4 -4
- package/packages/orq-rc/src/funcs/memoryStoresDeleteMemory.ts +4 -4
- package/packages/orq-rc/src/funcs/memoryStoresList.ts +5 -4
- package/packages/orq-rc/src/funcs/memoryStoresListDocuments.ts +5 -4
- package/packages/orq-rc/src/funcs/memoryStoresListMemories.ts +5 -4
- package/packages/orq-rc/src/funcs/memoryStoresRetrieve.ts +5 -4
- package/packages/orq-rc/src/funcs/memoryStoresRetrieveDocument.ts +5 -4
- package/packages/orq-rc/src/funcs/memoryStoresRetrieveMemory.ts +5 -4
- package/packages/orq-rc/src/funcs/memoryStoresUpdate.ts +8 -5
- package/packages/orq-rc/src/funcs/memoryStoresUpdateDocument.ts +8 -5
- package/packages/orq-rc/src/funcs/memoryStoresUpdateMemory.ts +8 -5
- package/packages/orq-rc/src/funcs/modelCatalogGet.ts +168 -0
- package/packages/orq-rc/src/funcs/modelCatalogList.ts +184 -0
- package/packages/orq-rc/src/funcs/modelCatalogListOfferings.ts +186 -0
- package/packages/orq-rc/src/funcs/promptsCreate.ts +3 -0
- package/packages/orq-rc/src/funcs/promptsDelete.ts +3 -0
- package/packages/orq-rc/src/funcs/promptsUpdate.ts +3 -0
- package/packages/orq-rc/src/funcs/routerAudioTranscriptionsCreate.ts +3 -0
- package/packages/orq-rc/src/funcs/routerAudioTranslationsCreate.ts +3 -0
- package/packages/orq-rc/src/funcs/routerModerationsCreate.ts +3 -0
- package/packages/orq-rc/src/funcs/toolsList.ts +1 -1
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/models/components/agenticragconfig.ts +43 -0
- package/packages/orq-rc/src/models/components/agentresponserequest.ts +14 -10
- package/packages/orq-rc/src/models/components/alertcondition.ts +3 -4
- package/packages/orq-rc/src/models/components/chunk.ts +35 -0
- package/packages/orq-rc/src/models/components/chunkingcleanupoptions.ts +64 -0
- package/packages/orq-rc/src/models/components/chunkingconfiguration.ts +111 -0
- package/packages/orq-rc/src/models/components/chunkmetadata.ts +42 -0
- package/packages/orq-rc/src/models/components/chunkprocessingattempts.ts +42 -0
- package/packages/orq-rc/src/models/components/chunksservicecountrequest.ts +63 -0
- package/packages/orq-rc/src/models/components/chunksservicecountresponse.ts +31 -0
- package/packages/orq-rc/src/models/components/chunksservicedeletemanyrequest.ts +41 -0
- package/packages/orq-rc/src/models/components/chunksservicedeletemanyresponse.ts +39 -0
- package/packages/orq-rc/src/models/components/chunksservicelistpaginatedrequest.ts +71 -0
- package/packages/orq-rc/src/models/components/chunksservicelistpaginatedresponse.ts +58 -0
- package/packages/orq-rc/src/models/components/chunksservicelistresponse.ts +57 -0
- package/packages/orq-rc/src/models/components/chunksservicesetenabledrequest.ts +33 -0
- package/packages/orq-rc/src/models/components/chunksserviceupdaterequest.ts +68 -0
- package/packages/orq-rc/src/models/components/countmetadata.ts +86 -0
- package/packages/orq-rc/src/models/components/createguardrailrulerequest.ts +0 -3
- package/packages/orq-rc/src/models/components/creatememorydocumentrequest.ts +42 -0
- package/packages/orq-rc/src/models/components/creatememoryrequest.ts +39 -0
- package/packages/orq-rc/src/models/components/creatememorystorerequest.ts +59 -0
- package/packages/orq-rc/src/models/components/datasource.ts +108 -0
- package/packages/orq-rc/src/models/components/datasourceattachment.ts +64 -0
- package/packages/orq-rc/src/models/components/datasourcechunkingoptions.ts +53 -0
- package/packages/orq-rc/src/models/components/datasourcesservicecreaterequest.ts +79 -0
- package/packages/orq-rc/src/models/components/datasourcesservicegetprocessingstatusresponse.ts +69 -0
- package/packages/orq-rc/src/models/components/datasourcesservicelistresponse.ts +55 -0
- package/packages/orq-rc/src/models/components/datasourcesserviceupdaterequest.ts +41 -0
- package/packages/orq-rc/src/models/components/domain.ts +12 -1
- package/packages/orq-rc/src/models/components/embeddingsconfig.ts +92 -0
- package/packages/orq-rc/src/models/components/embeddingsmodelparameters.ts +64 -0
- package/packages/orq-rc/src/models/components/evaluationcontext.ts +84 -0
- package/packages/orq-rc/src/models/components/evaluationresult.ts +108 -0
- package/packages/orq-rc/src/models/components/evaluatorresponsefunction.ts +2 -2
- package/packages/orq-rc/src/models/components/evaluatorresponsehttp.ts +2 -2
- package/packages/orq-rc/src/models/components/evaluatorresponsejsonschema.ts +2 -2
- package/packages/orq-rc/src/models/components/evaluatorresponsellm.ts +2 -2
- package/packages/orq-rc/src/models/components/evaluatorresponsepython.ts +2 -2
- package/packages/orq-rc/src/models/components/evaluatorresponseragas.ts +2 -2
- package/packages/orq-rc/src/models/components/evaluatorresponsetypescript.ts +2 -2
- package/packages/orq-rc/src/models/components/getmodelcatalogmodelresponse.ts +35 -0
- package/packages/orq-rc/src/models/components/getuploadfileurlresponse.ts +37 -0
- package/packages/orq-rc/src/models/components/guardrailrule.ts +0 -5
- package/packages/orq-rc/src/models/components/index.ts +78 -1
- package/packages/orq-rc/src/models/components/inputtokensdetails.ts +3 -0
- package/packages/orq-rc/src/models/components/internalretrievalconfig.ts +44 -0
- package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +100 -160
- package/packages/orq-rc/src/models/components/invokeevaluatorrequest.ts +133 -0
- package/packages/orq-rc/src/models/components/invokeevaluatorresponse.ts +47 -0
- package/packages/orq-rc/src/models/components/knowledge.ts +558 -0
- package/packages/orq-rc/src/models/components/knowledgebasesservicecreaterequest.ts +439 -0
- package/packages/orq-rc/src/models/components/knowledgebasesservicelistresponse.ts +51 -0
- package/packages/orq-rc/src/models/components/knowledgebasesserviceupdaterequest.ts +649 -0
- package/packages/orq-rc/src/models/components/knowledgechunk.ts +120 -0
- package/packages/orq-rc/src/models/components/knowledgemetadata.ts +48 -0
- package/packages/orq-rc/src/models/components/knowledgesettings.ts +54 -0
- package/packages/orq-rc/src/models/components/knowledgeupdatesettings.ts +55 -0
- package/packages/orq-rc/src/models/components/listmemoriesresponse.ts +54 -0
- package/packages/orq-rc/src/models/components/listmemorydocumentsresponse.ts +57 -0
- package/packages/orq-rc/src/models/components/listmemorystoresresponse.ts +54 -0
- package/packages/orq-rc/src/models/components/listmodelcatalogofferingsresponse.ts +53 -0
- package/packages/orq-rc/src/models/components/listmodelcatalogresponse.ts +53 -0
- package/packages/orq-rc/src/models/components/memory.ts +74 -0
- package/packages/orq-rc/src/models/components/memorydocument.ts +65 -0
- package/packages/orq-rc/src/models/components/memorystore.ts +80 -0
- package/packages/orq-rc/src/models/components/memorystoreembeddingconfig.ts +54 -0
- package/packages/orq-rc/src/models/components/model.ts +203 -0
- package/packages/orq-rc/src/models/components/modelartificialanalysis.ts +95 -0
- package/packages/orq-rc/src/models/components/modelmodalities.ts +39 -0
- package/packages/orq-rc/src/models/components/modelparameter.ts +49 -0
- package/packages/orq-rc/src/models/components/modelprovider.ts +60 -0
- package/packages/orq-rc/src/models/components/parseresponse.ts +32 -0
- package/packages/orq-rc/src/models/components/processingattempt.ts +52 -0
- package/packages/orq-rc/src/models/components/processingerror.ts +33 -0
- package/packages/orq-rc/src/models/components/publicembeddingdata.ts +9 -6
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/rerankconfig.ts +58 -0
- package/packages/orq-rc/src/models/components/rerankmodelparameters.ts +31 -0
- package/packages/orq-rc/src/models/components/searchknowledgematch.ts +77 -0
- package/packages/orq-rc/src/models/components/searchknowledgerequest.ts +1656 -0
- package/packages/orq-rc/src/models/components/searchknowledgeresponse.ts +38 -0
- package/packages/orq-rc/src/models/components/searchknowledgescores.ts +39 -0
- package/packages/orq-rc/src/models/components/searchoptions.ts +49 -0
- package/packages/orq-rc/src/models/components/searchrerankconfig.ts +51 -0
- package/packages/orq-rc/src/models/components/searchretrievalconfig.ts +153 -0
- package/packages/orq-rc/src/models/components/searchtype.ts +17 -0
- package/packages/orq-rc/src/models/components/structuredinput.ts +51 -0
- package/packages/orq-rc/src/models/components/structuredoutput.ts +44 -0
- package/packages/orq-rc/src/models/components/structuredtoolcall.ts +43 -0
- package/packages/orq-rc/src/models/components/updateguardrailrulerequest.ts +0 -3
- package/packages/orq-rc/src/models/components/updatememorydocumentrequest.ts +42 -0
- package/packages/orq-rc/src/models/components/updatememoryrequest.ts +31 -0
- package/packages/orq-rc/src/models/components/updatememorystorerequest.ts +37 -0
- package/packages/orq-rc/src/models/components/updatenotifierrequest.ts +17 -10
- package/packages/orq-rc/src/models/components/uploadpostpolicy.ts +33 -0
- package/packages/orq-rc/src/models/components/upsertchunk.ts +59 -0
- package/packages/orq-rc/src/models/errors/index.ts +1 -1
- package/packages/orq-rc/src/models/errors/knowledgeapierror.ts +59 -0
- package/packages/orq-rc/src/models/operations/createannotationqueue.ts +1 -1
- package/packages/orq-rc/src/models/operations/createchatcompletion.ts +171 -353
- package/packages/orq-rc/src/models/operations/createchunk.ts +4 -181
- package/packages/orq-rc/src/models/operations/createcompletion.ts +17 -125
- package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +35 -41
- package/packages/orq-rc/src/models/operations/createdatasource.ts +7 -486
- package/packages/orq-rc/src/models/operations/creatememory.ts +5 -106
- package/packages/orq-rc/src/models/operations/creatememorydocument.ts +6 -110
- package/packages/orq-rc/src/models/operations/createrouterresponse.ts +6 -6
- package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
- package/packages/orq-rc/src/models/operations/createtranscription.ts +28 -33
- package/packages/orq-rc/src/models/operations/deletechunk.ts +8 -17
- package/packages/orq-rc/src/models/operations/deletechunks.ts +7 -85
- package/packages/orq-rc/src/models/operations/deletedatasource.ts +0 -6
- package/packages/orq-rc/src/models/operations/deleteknowledge.ts +0 -3
- package/packages/orq-rc/src/models/operations/deletememory.ts +0 -6
- package/packages/orq-rc/src/models/operations/deletememorydocument.ts +0 -9
- package/packages/orq-rc/src/models/operations/deletememorystore.ts +0 -3
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +227 -398
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +24 -24
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +45 -160
- package/packages/orq-rc/src/models/operations/getallmemories.ts +1 -109
- package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +1 -107
- package/packages/orq-rc/src/models/operations/getallmemorystores.ts +1 -149
- package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
- package/packages/orq-rc/src/models/operations/getchunkscount.ts +6 -141
- package/packages/orq-rc/src/models/operations/geteval.ts +25 -25
- package/packages/orq-rc/src/models/operations/getonechunk.ts +8 -135
- package/packages/orq-rc/src/models/operations/getonedatasourceprocessingstatus.ts +43 -0
- package/packages/orq-rc/src/models/operations/getonefileuploadurl.ts +54 -0
- package/packages/orq-rc/src/models/operations/getoneknowledge.ts +0 -616
- package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/index.ts +6 -2
- package/packages/orq-rc/src/models/operations/invokeeval.ts +5 -1298
- package/packages/orq-rc/src/models/operations/listannotationqueueitems.ts +50 -58
- package/packages/orq-rc/src/models/operations/listannotationqueues.ts +1 -1
- package/packages/orq-rc/src/models/operations/listchunks.ts +1 -159
- package/packages/orq-rc/src/models/operations/listchunkspaginated.ts +8 -269
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
- package/packages/orq-rc/src/models/operations/listdatasources.ts +0 -242
- package/packages/orq-rc/src/models/operations/listknowledgebases.ts +0 -589
- package/packages/orq-rc/src/models/operations/modelcatalogget.ts +34 -0
- package/packages/orq-rc/src/models/operations/modelcataloglist.ts +163 -0
- package/packages/orq-rc/src/models/operations/modelcataloglistofferings.ts +175 -0
- package/packages/orq-rc/src/models/operations/parse.ts +114 -89
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +24 -30
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2routerocr.ts +7 -11
- package/packages/orq-rc/src/models/operations/retrieveannotationqueue.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +16 -16
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +0 -182
- package/packages/orq-rc/src/models/operations/retrievememory.ts +0 -72
- package/packages/orq-rc/src/models/operations/retrievememorydocument.ts +0 -72
- package/packages/orq-rc/src/models/operations/retrievememorystore.ts +0 -108
- package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
- package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/searchknowledge.ts +13 -1728
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateannotationqueue.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatechunk.ts +14 -200
- package/packages/orq-rc/src/models/operations/updatechunkenabled.ts +51 -0
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +5 -5
- package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +7 -216
- package/packages/orq-rc/src/models/operations/updateknowledge.ts +8 -1223
- package/packages/orq-rc/src/models/operations/updatememory.ts +5 -102
- package/packages/orq-rc/src/models/operations/updatememorydocument.ts +6 -113
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +5 -152
- package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
- package/packages/orq-rc/src/sdk/agents.ts +9 -9
- package/packages/orq-rc/src/sdk/annotationqueues.ts +10 -1
- package/packages/orq-rc/src/sdk/chunking.ts +2 -1
- package/packages/orq-rc/src/sdk/datasets.ts +4 -1
- package/packages/orq-rc/src/sdk/evals.ts +18 -6
- package/packages/orq-rc/src/sdk/feedback.ts +0 -6
- package/packages/orq-rc/src/sdk/guardrailrules.ts +1 -1
- package/packages/orq-rc/src/sdk/knowledge.ts +151 -57
- package/packages/orq-rc/src/sdk/memorystores.ts +57 -56
- package/packages/orq-rc/src/sdk/modelcatalog.ts +64 -0
- package/packages/orq-rc/src/sdk/moderations.ts +3 -0
- package/packages/orq-rc/src/sdk/orqresponses.ts +2 -2
- package/packages/orq-rc/src/sdk/prompts.ts +9 -0
- package/packages/orq-rc/src/sdk/sdk.ts +21 -15
- package/packages/orq-rc/src/sdk/tools.ts +1 -1
- package/packages/orq-rc/src/sdk/transcriptions.ts +3 -0
- package/packages/orq-rc/src/sdk/translations.ts +3 -0
- package/sdk/modelcatalog.d.ts +27 -0
- package/sdk/modelcatalog.d.ts.map +1 -0
- package/sdk/modelcatalog.js +42 -0
- package/sdk/modelcatalog.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/src/funcs/modelCatalogGet.ts +168 -0
- package/src/funcs/modelCatalogList.ts +182 -0
- package/src/funcs/modelCatalogListOfferings.ts +187 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/evaluatorresponsefunction.ts +2 -2
- package/src/models/components/evaluatorresponsehttp.ts +2 -2
- package/src/models/components/evaluatorresponsejsonschema.ts +2 -2
- package/src/models/components/evaluatorresponsellm.ts +2 -2
- package/src/models/components/evaluatorresponsepython.ts +2 -2
- package/src/models/components/evaluatorresponseragas.ts +2 -2
- package/src/models/components/evaluatorresponsetypescript.ts +2 -2
- package/src/models/components/getmodelcatalogmodelresponse.ts +35 -0
- package/src/models/components/index.ts +6 -0
- package/src/models/components/listmodelcatalogofferingsresponse.ts +53 -0
- package/src/models/components/listmodelcatalogresponse.ts +53 -0
- package/src/models/components/model.ts +206 -0
- package/src/models/components/modelmodalities.ts +39 -0
- package/src/models/components/modelprovider.ts +39 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/billing.ts +1 -1
- package/src/models/operations/createannotationqueue.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +5 -5
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/geteval.ts +16 -16
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/index.ts +3 -0
- package/src/models/operations/listannotationqueues.ts +1 -1
- package/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/modelcatalogget.ts +34 -0
- package/src/models/operations/modelcataloglist.ts +147 -0
- package/src/models/operations/modelcataloglistofferings.ts +151 -0
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrieveannotationqueue.ts +1 -1
- package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjson2.ts +28 -28
- package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody14attributes2.ts +28 -28
- package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody22attributesopenresponsesdetail.ts +6 -6
- package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody23annotations.ts +26 -26
- package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody27attributesopenresponsesoutput3type.ts +6 -6
- package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody314.ts +31 -31
- package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody5attributestype.ts +22 -22
- package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody11attributestoplogprobs.ts +14 -14
- package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody15attributesopenresponsesoutput4type.ts +14 -14
- package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody17attributesopenresponsesoutput44type.ts +16 -16
- package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody18type.ts +24 -24
- package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody1attributestype.ts +2 -2
- package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody21attributestoplogprobs.ts +14 -14
- package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody29attributestoplogprobs.ts +14 -14
- package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody32attributesopenresponsesoutput48type.ts +18 -18
- package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody66.ts +2 -2
- package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody7attributes5.ts +16 -16
- package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody9attributes8.ts +18 -18
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody1017.ts +4 -4
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody11attributesorq7evaluatorconfigtype.ts +21 -21
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody12attributesorq15annotator.ts +5 -5
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody136.ts +25 -25
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody14attributesorq14type.ts +7 -7
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody15attributesorq7outputschema.ts +21 -21
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody1618.ts +3 -3
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody17attributesorq8kind.ts +18 -18
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody18attributesorq12evaluatorconfigtype.ts +11 -11
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody19attributesorq5kind.ts +24 -24
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody20attributesorq14annotator.ts +7 -7
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody21attributesorq7evaluatorconfigtype.ts +21 -21
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody22attributesorqevaluatorconfigtype.ts +28 -28
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody23attributesorq13evaluationtype.ts +9 -9
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody24attributesorq7status.ts +21 -21
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody25attributesorq18type.ts +2 -2
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody2611.ts +15 -15
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody27attributesorqevaluationtype.ts +28 -28
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody28attributesorq14annotator.ts +7 -7
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody29attributesorq7evaluatorconfigtype.ts +21 -21
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody2attributesorq14type.ts +7 -7
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody30attributesorq18evaluationtype.ts +2 -2
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody31attributesorq16kind.ts +4 -4
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody32attributesorq9evaluatorconfigtype.ts +17 -17
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody33attributesannotator.ts +30 -30
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody34attributesorq12evaluationtype.ts +11 -11
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody35attributesorq5annotator.ts +24 -24
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody3attributesorq14evaluationtype.ts +7 -7
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody4attributesorq4kind.ts +26 -26
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody5attributesorq11evaluatorconfigtype.ts +13 -13
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody6attributesorq19annotator.ts +1 -1
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody6value.ts +32 -32
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody7attributesorq8evaluatorconfigtype.ts +19 -19
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody8attributesorq18annotator.ts +2 -2
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody9attributesorq9kind.ts +17 -17
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotator.ts +32 -32
- package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody20attributesopenresponses6role.ts +28 -28
- package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody26content.ts +20 -20
- package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody28attributesopenresponses6role.ts +28 -28
- package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody34attributesrole.ts +24 -24
- package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200status.ts +28 -28
- package/src/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody12attributes1.ts +30 -30
- package/src/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody24attributescontent.ts +14 -14
- package/src/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody332.ts +4 -4
- package/src/models/operations/retrieveannotationqueueitemresponsebody.ts +1 -1
- package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson10http.ts +31 -31
- package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson16settings.ts +32 -32
- package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson17context.ts +1 -1
- package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson22call.ts +1 -1
- package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson25engine.ts +33 -33
- package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson27conversation.ts +1 -1
- package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson30nodes.ts +33 -33
- package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson33token.ts +1 -1
- package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson8trace.ts +33 -33
- package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjsonresponse.ts +1 -1
- package/src/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse1.ts +8 -8
- package/src/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody13attributesopenresponsesoutputtype.ts +10 -10
- package/src/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody193.ts +10 -10
- package/src/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody35attributestype.ts +10 -10
- package/src/models/operations/retrievedatapoint.ts +5 -5
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/twenty.ts +1 -1
- package/src/models/operations/updateannotationqueue.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +5 -5
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/modelcatalog.ts +64 -0
- package/src/sdk/sdk.ts +6 -0
- package/packages/orq-rc/src/models/components/evaluatorvariablevalue.ts +0 -38
- package/packages/orq-rc/src/models/errors/invokeeval.ts +0 -141
- package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -1117
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +0 -199
|
@@ -4,878 +4,19 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* The retrieval type to use for the knowledge base. If not provided, Hybrid Search will be used as a default query strategy.
|
|
14
|
-
*/
|
|
15
|
-
export const RequestBodyRetrievalType = {
|
|
16
|
-
VectorSearch: "vector_search",
|
|
17
|
-
KeywordSearch: "keyword_search",
|
|
18
|
-
HybridSearch: "hybrid_search",
|
|
19
|
-
} as const;
|
|
20
|
-
/**
|
|
21
|
-
* The retrieval type to use for the knowledge base. If not provided, Hybrid Search will be used as a default query strategy.
|
|
22
|
-
*/
|
|
23
|
-
export type RequestBodyRetrievalType = ClosedEnum<
|
|
24
|
-
typeof RequestBodyRetrievalType
|
|
25
|
-
>;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* The rerank configuration for the knowledge base. Only the fields provided are updated, any field omitted keeps its currently configured value. Send `null` to disable reranking.
|
|
29
|
-
*/
|
|
30
|
-
export type UpdateKnowledgeRequestBodyKnowledgeRerankConfig = {
|
|
31
|
-
/**
|
|
32
|
-
* The number of results to return by the reranking model
|
|
33
|
-
*/
|
|
34
|
-
topK?: number | undefined;
|
|
35
|
-
/**
|
|
36
|
-
* The threshold value used to filter the rerank results, only documents with a relevance score greater than the threshold will be returned
|
|
37
|
-
*/
|
|
38
|
-
rerankThreshold?: number | undefined;
|
|
39
|
-
/**
|
|
40
|
-
* The rerank model to use for the knowledge base.
|
|
41
|
-
*/
|
|
42
|
-
rerankModel: string;
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* The Agentic RAG configuration for the knowledge base. If `null` is provided, Agentic RAG will be disabled.
|
|
47
|
-
*/
|
|
48
|
-
export type UpdateKnowledgeRequestBodyKnowledgeAgenticRagConfig = {
|
|
49
|
-
/**
|
|
50
|
-
* The model to use for the Agentic RAG
|
|
51
|
-
*/
|
|
52
|
-
model: string;
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* The retrieval settings for the knowledge base.
|
|
57
|
-
*/
|
|
58
|
-
export type UpdateKnowledgeRequestBodyKnowledgeRetrievalSettings = {
|
|
59
|
-
/**
|
|
60
|
-
* The retrieval type to use for the knowledge base. If not provided, Hybrid Search will be used as a default query strategy.
|
|
61
|
-
*/
|
|
62
|
-
retrievalType?: RequestBodyRetrievalType | undefined;
|
|
63
|
-
/**
|
|
64
|
-
* The number of results to return from the search.
|
|
65
|
-
*/
|
|
66
|
-
topK?: number | undefined;
|
|
67
|
-
/**
|
|
68
|
-
* The threshold value used to filter the search results, only documents with a relevance score greater than the threshold will be returned
|
|
69
|
-
*/
|
|
70
|
-
threshold?: number | undefined;
|
|
71
|
-
/**
|
|
72
|
-
* The rerank configuration for the knowledge base. Only the fields provided are updated, any field omitted keeps its currently configured value. Send `null` to disable reranking.
|
|
73
|
-
*/
|
|
74
|
-
rerankConfig?:
|
|
75
|
-
| UpdateKnowledgeRequestBodyKnowledgeRerankConfig
|
|
76
|
-
| null
|
|
77
|
-
| undefined;
|
|
78
|
-
/**
|
|
79
|
-
* The Agentic RAG configuration for the knowledge base. If `null` is provided, Agentic RAG will be disabled.
|
|
80
|
-
*/
|
|
81
|
-
agenticRagConfig?:
|
|
82
|
-
| UpdateKnowledgeRequestBodyKnowledgeAgenticRagConfig
|
|
83
|
-
| null
|
|
84
|
-
| undefined;
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
export const UpdateKnowledgeRequestBodyKnowledgeType = {
|
|
88
|
-
Internal: "internal",
|
|
89
|
-
} as const;
|
|
90
|
-
export type UpdateKnowledgeRequestBodyKnowledgeType = ClosedEnum<
|
|
91
|
-
typeof UpdateKnowledgeRequestBodyKnowledgeType
|
|
92
|
-
>;
|
|
93
|
-
|
|
94
|
-
export type UpdateKnowledgeRequestBody2 = {
|
|
95
|
-
/**
|
|
96
|
-
* The description of the knowledge base.
|
|
97
|
-
*/
|
|
98
|
-
description?: string | null | undefined;
|
|
99
|
-
/**
|
|
100
|
-
* The embeddings model used for the knowledge base. If the models is provided and is different than the previous set model, all the datasources in the knowledge base will be re-embedded.
|
|
101
|
-
*/
|
|
102
|
-
embeddingModel?: string | undefined;
|
|
103
|
-
/**
|
|
104
|
-
* Entity storage path.
|
|
105
|
-
*
|
|
106
|
-
* @remarks
|
|
107
|
-
*
|
|
108
|
-
* With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element must be the display name of an existing project, followed by nested folders (auto-created as needed). Example: `Default Project/agents`.
|
|
109
|
-
*
|
|
110
|
-
* With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
|
|
111
|
-
*/
|
|
112
|
-
path?: string | undefined;
|
|
113
|
-
/**
|
|
114
|
-
* The retrieval settings for the knowledge base.
|
|
115
|
-
*/
|
|
116
|
-
retrievalSettings?:
|
|
117
|
-
| UpdateKnowledgeRequestBodyKnowledgeRetrievalSettings
|
|
118
|
-
| undefined;
|
|
119
|
-
type?: UpdateKnowledgeRequestBodyKnowledgeType | undefined;
|
|
120
|
-
};
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* The rerank configuration for the knowledge base. Only the fields provided are updated, any field omitted keeps its currently configured value. Send `null` to disable reranking.
|
|
124
|
-
*/
|
|
125
|
-
export type UpdateKnowledgeRequestBodyRerankConfig = {
|
|
126
|
-
/**
|
|
127
|
-
* The number of results to return by the reranking model
|
|
128
|
-
*/
|
|
129
|
-
topK?: number | undefined;
|
|
130
|
-
/**
|
|
131
|
-
* The threshold value used to filter the rerank results, only documents with a relevance score greater than the threshold will be returned
|
|
132
|
-
*/
|
|
133
|
-
rerankThreshold?: number | undefined;
|
|
134
|
-
/**
|
|
135
|
-
* The rerank model to use for the knowledge base.
|
|
136
|
-
*/
|
|
137
|
-
rerankModel: string;
|
|
138
|
-
};
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* The Agentic RAG configuration for the knowledge base. If `null` is provided, Agentic RAG will be disabled.
|
|
142
|
-
*/
|
|
143
|
-
export type UpdateKnowledgeRequestBodyAgenticRagConfig = {
|
|
144
|
-
/**
|
|
145
|
-
* The model to use for the Agentic RAG
|
|
146
|
-
*/
|
|
147
|
-
model: string;
|
|
148
|
-
};
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* The retrieval settings for the knowledge base.
|
|
152
|
-
*/
|
|
153
|
-
export type UpdateKnowledgeRequestBodyRetrievalSettings = {
|
|
154
|
-
/**
|
|
155
|
-
* The number of results to return from the search.
|
|
156
|
-
*/
|
|
157
|
-
topK?: number | undefined;
|
|
158
|
-
/**
|
|
159
|
-
* The threshold value used to filter the search results, only documents with a relevance score greater than the threshold will be returned
|
|
160
|
-
*/
|
|
161
|
-
threshold?: number | undefined;
|
|
162
|
-
/**
|
|
163
|
-
* The rerank configuration for the knowledge base. Only the fields provided are updated, any field omitted keeps its currently configured value. Send `null` to disable reranking.
|
|
164
|
-
*/
|
|
165
|
-
rerankConfig?: UpdateKnowledgeRequestBodyRerankConfig | null | undefined;
|
|
166
|
-
/**
|
|
167
|
-
* The Agentic RAG configuration for the knowledge base. If `null` is provided, Agentic RAG will be disabled.
|
|
168
|
-
*/
|
|
169
|
-
agenticRagConfig?:
|
|
170
|
-
| UpdateKnowledgeRequestBodyAgenticRagConfig
|
|
171
|
-
| null
|
|
172
|
-
| undefined;
|
|
173
|
-
};
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* Configuration for the external knowledge base.
|
|
177
|
-
*/
|
|
178
|
-
export type RequestBodyExternalConfig = {
|
|
179
|
-
/**
|
|
180
|
-
* The name of the external knowledge base.
|
|
181
|
-
*/
|
|
182
|
-
name?: string | undefined;
|
|
183
|
-
/**
|
|
184
|
-
* The API URL for the external knowledge base.
|
|
185
|
-
*/
|
|
186
|
-
apiUrl?: string | undefined;
|
|
187
|
-
/**
|
|
188
|
-
* The API key for the external knowledge base.
|
|
189
|
-
*/
|
|
190
|
-
apiKey?: string | undefined;
|
|
191
|
-
};
|
|
192
|
-
|
|
193
|
-
export const UpdateKnowledgeRequestBodyType = {
|
|
194
|
-
External: "external",
|
|
195
|
-
} as const;
|
|
196
|
-
export type UpdateKnowledgeRequestBodyType = ClosedEnum<
|
|
197
|
-
typeof UpdateKnowledgeRequestBodyType
|
|
198
|
-
>;
|
|
199
|
-
|
|
200
|
-
export type UpdateKnowledgeRequestBody1 = {
|
|
201
|
-
/**
|
|
202
|
-
* The description of the knowledge base.
|
|
203
|
-
*/
|
|
204
|
-
description?: string | null | undefined;
|
|
205
|
-
/**
|
|
206
|
-
* Entity storage path.
|
|
207
|
-
*
|
|
208
|
-
* @remarks
|
|
209
|
-
*
|
|
210
|
-
* With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element must be the display name of an existing project, followed by nested folders (auto-created as needed). Example: `Default Project/agents`.
|
|
211
|
-
*
|
|
212
|
-
* With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
|
|
213
|
-
*/
|
|
214
|
-
path?: string | undefined;
|
|
215
|
-
/**
|
|
216
|
-
* The retrieval settings for the knowledge base.
|
|
217
|
-
*/
|
|
218
|
-
retrievalSettings?: UpdateKnowledgeRequestBodyRetrievalSettings | undefined;
|
|
219
|
-
/**
|
|
220
|
-
* Configuration for the external knowledge base.
|
|
221
|
-
*/
|
|
222
|
-
externalConfig?: RequestBodyExternalConfig | undefined;
|
|
223
|
-
type?: UpdateKnowledgeRequestBodyType | undefined;
|
|
224
|
-
};
|
|
225
|
-
|
|
226
|
-
export type UpdateKnowledgeRequestBody =
|
|
227
|
-
| UpdateKnowledgeRequestBody1
|
|
228
|
-
| UpdateKnowledgeRequestBody2;
|
|
7
|
+
import * as components from "../components/index.js";
|
|
229
8
|
|
|
230
9
|
export type UpdateKnowledgeRequest = {
|
|
231
|
-
/**
|
|
232
|
-
* The unique identifier of the knowledge base
|
|
233
|
-
*/
|
|
234
10
|
knowledgeId: string;
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
export const UpdateKnowledgeResponseBodyKnowledgeType = {
|
|
239
|
-
External: "external",
|
|
240
|
-
} as const;
|
|
241
|
-
export type UpdateKnowledgeResponseBodyKnowledgeType = ClosedEnum<
|
|
242
|
-
typeof UpdateKnowledgeResponseBodyKnowledgeType
|
|
243
|
-
>;
|
|
244
|
-
|
|
245
|
-
/**
|
|
246
|
-
* The rerank configuration for the knowledge base. In case the model is provided it will be used to enhance the search precision.
|
|
247
|
-
*/
|
|
248
|
-
export type UpdateKnowledgeResponseBodyKnowledgeRerankConfig = {
|
|
249
|
-
/**
|
|
250
|
-
* The number of results to return by the reranking model
|
|
251
|
-
*/
|
|
252
|
-
topK: number;
|
|
253
|
-
/**
|
|
254
|
-
* The threshold value used to filter the rerank results, only documents with a relevance score greater than the threshold will be returned
|
|
255
|
-
*/
|
|
256
|
-
rerankThreshold: number;
|
|
257
|
-
/**
|
|
258
|
-
* The rerank model to use for the knowledge base.
|
|
259
|
-
*/
|
|
260
|
-
rerankModel: string;
|
|
261
|
-
};
|
|
262
|
-
|
|
263
|
-
/**
|
|
264
|
-
* The Agentic RAG configuration for the knowledge base. If `null` is provided, Agentic RAG will be disabled.
|
|
265
|
-
*/
|
|
266
|
-
export type UpdateKnowledgeResponseBodyKnowledgeAgenticRagConfig = {
|
|
267
|
-
/**
|
|
268
|
-
* The model to use for the Agentic RAG
|
|
269
|
-
*/
|
|
270
|
-
model: string;
|
|
271
|
-
};
|
|
272
|
-
|
|
273
|
-
/**
|
|
274
|
-
* The retrieval settings for the knowledge base.
|
|
275
|
-
*/
|
|
276
|
-
export type UpdateKnowledgeResponseBodyKnowledgeRetrievalSettings = {
|
|
277
|
-
/**
|
|
278
|
-
* The number of results to return from the search.
|
|
279
|
-
*/
|
|
280
|
-
topK: number;
|
|
281
|
-
/**
|
|
282
|
-
* The threshold value used to filter the search results, only documents with a relevance score greater than the threshold will be returned
|
|
283
|
-
*/
|
|
284
|
-
threshold: number;
|
|
285
|
-
/**
|
|
286
|
-
* The rerank configuration for the knowledge base. In case the model is provided it will be used to enhance the search precision.
|
|
287
|
-
*/
|
|
288
|
-
rerankConfig?:
|
|
289
|
-
| UpdateKnowledgeResponseBodyKnowledgeRerankConfig
|
|
290
|
-
| null
|
|
291
|
-
| undefined;
|
|
292
|
-
/**
|
|
293
|
-
* The Agentic RAG configuration for the knowledge base. If `null` is provided, Agentic RAG will be disabled.
|
|
294
|
-
*/
|
|
295
|
-
agenticRagConfig?:
|
|
296
|
-
| UpdateKnowledgeResponseBodyKnowledgeAgenticRagConfig
|
|
297
|
-
| null
|
|
298
|
-
| undefined;
|
|
299
|
-
};
|
|
300
|
-
|
|
301
|
-
export type UpdateKnowledgeResponseBodyExternalConfig = {
|
|
302
|
-
/**
|
|
303
|
-
* The name of the external knowledge base.
|
|
304
|
-
*/
|
|
305
|
-
name: string;
|
|
306
|
-
/**
|
|
307
|
-
* The API URL of the external knowledge base.
|
|
308
|
-
*/
|
|
309
|
-
apiUrl: string;
|
|
310
|
-
};
|
|
311
|
-
|
|
312
|
-
export type UpdateKnowledgeResponseBody2 = {
|
|
313
|
-
/**
|
|
314
|
-
* The unique identifier of the knowledge base.
|
|
315
|
-
*/
|
|
316
|
-
id: string;
|
|
317
|
-
/**
|
|
318
|
-
* The creation date of the knowledge base.
|
|
319
|
-
*/
|
|
320
|
-
created: string;
|
|
321
|
-
/**
|
|
322
|
-
* The description of the knowledge base.
|
|
323
|
-
*/
|
|
324
|
-
description?: string | null | undefined;
|
|
325
|
-
/**
|
|
326
|
-
* The unique key of the knowledge base.
|
|
327
|
-
*/
|
|
328
|
-
key: string;
|
|
329
|
-
/**
|
|
330
|
-
* The project/domain ID of the knowledge base.
|
|
331
|
-
*/
|
|
332
|
-
domainId: string;
|
|
333
|
-
/**
|
|
334
|
-
* Entity storage path.
|
|
335
|
-
*
|
|
336
|
-
* @remarks
|
|
337
|
-
*
|
|
338
|
-
* With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element must be the display name of an existing project, followed by nested folders (auto-created as needed). Example: `Default Project/agents`.
|
|
339
|
-
*
|
|
340
|
-
* With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
|
|
341
|
-
*/
|
|
342
|
-
path?: string | undefined;
|
|
343
|
-
createdById?: string | null | undefined;
|
|
344
|
-
updatedById?: string | null | undefined;
|
|
345
|
-
/**
|
|
346
|
-
* The last update date of the knowledge base.
|
|
347
|
-
*/
|
|
348
|
-
updated: string;
|
|
349
|
-
type: UpdateKnowledgeResponseBodyKnowledgeType;
|
|
350
|
-
/**
|
|
351
|
-
* The retrieval settings for the knowledge base.
|
|
352
|
-
*/
|
|
353
|
-
retrievalSettings?:
|
|
354
|
-
| UpdateKnowledgeResponseBodyKnowledgeRetrievalSettings
|
|
355
|
-
| undefined;
|
|
356
|
-
externalConfig: UpdateKnowledgeResponseBodyExternalConfig;
|
|
357
|
-
};
|
|
358
|
-
|
|
359
|
-
export const UpdateKnowledgeResponseBodyType = {
|
|
360
|
-
Internal: "internal",
|
|
361
|
-
} as const;
|
|
362
|
-
export type UpdateKnowledgeResponseBodyType = ClosedEnum<
|
|
363
|
-
typeof UpdateKnowledgeResponseBodyType
|
|
364
|
-
>;
|
|
365
|
-
|
|
366
|
-
/**
|
|
367
|
-
* The retrieval type to use for the knowledge base. If not provided, Hybrid Search will be used as a default query strategy.
|
|
368
|
-
*/
|
|
369
|
-
export const UpdateKnowledgeResponseBodyRetrievalType = {
|
|
370
|
-
VectorSearch: "vector_search",
|
|
371
|
-
KeywordSearch: "keyword_search",
|
|
372
|
-
HybridSearch: "hybrid_search",
|
|
373
|
-
} as const;
|
|
374
|
-
/**
|
|
375
|
-
* The retrieval type to use for the knowledge base. If not provided, Hybrid Search will be used as a default query strategy.
|
|
376
|
-
*/
|
|
377
|
-
export type UpdateKnowledgeResponseBodyRetrievalType = ClosedEnum<
|
|
378
|
-
typeof UpdateKnowledgeResponseBodyRetrievalType
|
|
379
|
-
>;
|
|
380
|
-
|
|
381
|
-
/**
|
|
382
|
-
* The rerank configuration for the knowledge base. In case the model is provided it will be used to enhance the search precision.
|
|
383
|
-
*/
|
|
384
|
-
export type UpdateKnowledgeResponseBodyRerankConfig = {
|
|
385
|
-
/**
|
|
386
|
-
* The number of results to return by the reranking model
|
|
387
|
-
*/
|
|
388
|
-
topK: number;
|
|
389
|
-
/**
|
|
390
|
-
* The threshold value used to filter the rerank results, only documents with a relevance score greater than the threshold will be returned
|
|
391
|
-
*/
|
|
392
|
-
rerankThreshold: number;
|
|
393
|
-
/**
|
|
394
|
-
* The rerank model to use for the knowledge base.
|
|
395
|
-
*/
|
|
396
|
-
rerankModel: string;
|
|
397
|
-
};
|
|
398
|
-
|
|
399
|
-
/**
|
|
400
|
-
* The Agentic RAG configuration for the knowledge base. If `null` is provided, Agentic RAG will be disabled.
|
|
401
|
-
*/
|
|
402
|
-
export type UpdateKnowledgeResponseBodyAgenticRagConfig = {
|
|
403
|
-
/**
|
|
404
|
-
* The model to use for the Agentic RAG
|
|
405
|
-
*/
|
|
406
|
-
model: string;
|
|
407
|
-
};
|
|
408
|
-
|
|
409
|
-
/**
|
|
410
|
-
* The retrieval settings for the knowledge base. If not provided, Hybrid Search will be used as a default query strategy.
|
|
411
|
-
*/
|
|
412
|
-
export type UpdateKnowledgeResponseBodyRetrievalSettings = {
|
|
413
|
-
/**
|
|
414
|
-
* The retrieval type to use for the knowledge base. If not provided, Hybrid Search will be used as a default query strategy.
|
|
415
|
-
*/
|
|
416
|
-
retrievalType: UpdateKnowledgeResponseBodyRetrievalType;
|
|
417
|
-
/**
|
|
418
|
-
* The number of results to return from the search.
|
|
419
|
-
*/
|
|
420
|
-
topK: number;
|
|
421
|
-
/**
|
|
422
|
-
* The threshold value used to filter the search results, only documents with a relevance score greater than the threshold will be returned
|
|
423
|
-
*/
|
|
424
|
-
threshold: number;
|
|
425
|
-
/**
|
|
426
|
-
* The rerank configuration for the knowledge base. In case the model is provided it will be used to enhance the search precision.
|
|
427
|
-
*/
|
|
428
|
-
rerankConfig?: UpdateKnowledgeResponseBodyRerankConfig | null | undefined;
|
|
429
|
-
/**
|
|
430
|
-
* The Agentic RAG configuration for the knowledge base. If `null` is provided, Agentic RAG will be disabled.
|
|
431
|
-
*/
|
|
432
|
-
agenticRagConfig?:
|
|
433
|
-
| UpdateKnowledgeResponseBodyAgenticRagConfig
|
|
434
|
-
| null
|
|
435
|
-
| undefined;
|
|
436
|
-
};
|
|
437
|
-
|
|
438
|
-
export type UpdateKnowledgeResponseBody1 = {
|
|
439
|
-
/**
|
|
440
|
-
* The unique identifier of the knowledge base.
|
|
441
|
-
*/
|
|
442
|
-
id: string;
|
|
443
|
-
/**
|
|
444
|
-
* The creation date of the knowledge base.
|
|
445
|
-
*/
|
|
446
|
-
created: string;
|
|
447
|
-
/**
|
|
448
|
-
* The description of the knowledge base.
|
|
449
|
-
*/
|
|
450
|
-
description?: string | null | undefined;
|
|
451
|
-
/**
|
|
452
|
-
* The unique key of the knowledge base.
|
|
453
|
-
*/
|
|
454
|
-
key: string;
|
|
455
|
-
/**
|
|
456
|
-
* The project/domain ID of the knowledge base.
|
|
457
|
-
*/
|
|
458
|
-
domainId: string;
|
|
459
|
-
/**
|
|
460
|
-
* Entity storage path.
|
|
461
|
-
*
|
|
462
|
-
* @remarks
|
|
463
|
-
*
|
|
464
|
-
* With workspace-level API keys, use the format `project/folder/subfolder/...`. The first element must be the display name of an existing project, followed by nested folders (auto-created as needed). Example: `Default Project/agents`.
|
|
465
|
-
*
|
|
466
|
-
* With project-level API keys, the project is predetermined by the API key, so the path is relative to that project. Example: `agents`. For backward compatibility, a leading project name is ignored when it matches the scoped project.
|
|
467
|
-
*/
|
|
468
|
-
path?: string | undefined;
|
|
469
|
-
createdById?: string | null | undefined;
|
|
470
|
-
updatedById?: string | null | undefined;
|
|
471
|
-
/**
|
|
472
|
-
* The last update date of the knowledge base.
|
|
473
|
-
*/
|
|
474
|
-
updated: string;
|
|
475
|
-
type: UpdateKnowledgeResponseBodyType;
|
|
476
|
-
/**
|
|
477
|
-
* The retrieval settings for the knowledge base. If not provided, Hybrid Search will be used as a default query strategy.
|
|
478
|
-
*/
|
|
479
|
-
retrievalSettings?: UpdateKnowledgeResponseBodyRetrievalSettings | undefined;
|
|
480
|
-
/**
|
|
481
|
-
* The embeddings model used for the knowledge base.
|
|
482
|
-
*/
|
|
483
|
-
model: string;
|
|
484
|
-
};
|
|
485
|
-
|
|
486
|
-
/**
|
|
487
|
-
* Knowledge successfully updated
|
|
488
|
-
*/
|
|
489
|
-
export type UpdateKnowledgeResponseBody =
|
|
490
|
-
| UpdateKnowledgeResponseBody1
|
|
491
|
-
| UpdateKnowledgeResponseBody2;
|
|
492
|
-
|
|
493
|
-
/** @internal */
|
|
494
|
-
export const RequestBodyRetrievalType$outboundSchema: z.ZodNativeEnum<
|
|
495
|
-
typeof RequestBodyRetrievalType
|
|
496
|
-
> = z.nativeEnum(RequestBodyRetrievalType);
|
|
497
|
-
|
|
498
|
-
/** @internal */
|
|
499
|
-
export type UpdateKnowledgeRequestBodyKnowledgeRerankConfig$Outbound = {
|
|
500
|
-
top_k?: number | undefined;
|
|
501
|
-
rerank_threshold?: number | undefined;
|
|
502
|
-
rerank_model: string;
|
|
503
|
-
};
|
|
504
|
-
|
|
505
|
-
/** @internal */
|
|
506
|
-
export const UpdateKnowledgeRequestBodyKnowledgeRerankConfig$outboundSchema:
|
|
507
|
-
z.ZodType<
|
|
508
|
-
UpdateKnowledgeRequestBodyKnowledgeRerankConfig$Outbound,
|
|
509
|
-
z.ZodTypeDef,
|
|
510
|
-
UpdateKnowledgeRequestBodyKnowledgeRerankConfig
|
|
511
|
-
> = z.object({
|
|
512
|
-
topK: z.number().int().optional(),
|
|
513
|
-
rerankThreshold: z.number().optional(),
|
|
514
|
-
rerankModel: z.string(),
|
|
515
|
-
}).transform((v) => {
|
|
516
|
-
return remap$(v, {
|
|
517
|
-
topK: "top_k",
|
|
518
|
-
rerankThreshold: "rerank_threshold",
|
|
519
|
-
rerankModel: "rerank_model",
|
|
520
|
-
});
|
|
521
|
-
});
|
|
522
|
-
|
|
523
|
-
export function updateKnowledgeRequestBodyKnowledgeRerankConfigToJSON(
|
|
524
|
-
updateKnowledgeRequestBodyKnowledgeRerankConfig:
|
|
525
|
-
UpdateKnowledgeRequestBodyKnowledgeRerankConfig,
|
|
526
|
-
): string {
|
|
527
|
-
return JSON.stringify(
|
|
528
|
-
UpdateKnowledgeRequestBodyKnowledgeRerankConfig$outboundSchema.parse(
|
|
529
|
-
updateKnowledgeRequestBodyKnowledgeRerankConfig,
|
|
530
|
-
),
|
|
531
|
-
);
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
/** @internal */
|
|
535
|
-
export type UpdateKnowledgeRequestBodyKnowledgeAgenticRagConfig$Outbound = {
|
|
536
|
-
model: string;
|
|
537
|
-
};
|
|
538
|
-
|
|
539
|
-
/** @internal */
|
|
540
|
-
export const UpdateKnowledgeRequestBodyKnowledgeAgenticRagConfig$outboundSchema:
|
|
541
|
-
z.ZodType<
|
|
542
|
-
UpdateKnowledgeRequestBodyKnowledgeAgenticRagConfig$Outbound,
|
|
543
|
-
z.ZodTypeDef,
|
|
544
|
-
UpdateKnowledgeRequestBodyKnowledgeAgenticRagConfig
|
|
545
|
-
> = z.object({
|
|
546
|
-
model: z.string(),
|
|
547
|
-
});
|
|
548
|
-
|
|
549
|
-
export function updateKnowledgeRequestBodyKnowledgeAgenticRagConfigToJSON(
|
|
550
|
-
updateKnowledgeRequestBodyKnowledgeAgenticRagConfig:
|
|
551
|
-
UpdateKnowledgeRequestBodyKnowledgeAgenticRagConfig,
|
|
552
|
-
): string {
|
|
553
|
-
return JSON.stringify(
|
|
554
|
-
UpdateKnowledgeRequestBodyKnowledgeAgenticRagConfig$outboundSchema.parse(
|
|
555
|
-
updateKnowledgeRequestBodyKnowledgeAgenticRagConfig,
|
|
556
|
-
),
|
|
557
|
-
);
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
-
/** @internal */
|
|
561
|
-
export type UpdateKnowledgeRequestBodyKnowledgeRetrievalSettings$Outbound = {
|
|
562
|
-
retrieval_type?: string | undefined;
|
|
563
|
-
top_k?: number | undefined;
|
|
564
|
-
threshold?: number | undefined;
|
|
565
|
-
rerank_config?:
|
|
566
|
-
| UpdateKnowledgeRequestBodyKnowledgeRerankConfig$Outbound
|
|
567
|
-
| null
|
|
568
|
-
| undefined;
|
|
569
|
-
agentic_rag_config?:
|
|
570
|
-
| UpdateKnowledgeRequestBodyKnowledgeAgenticRagConfig$Outbound
|
|
571
|
-
| null
|
|
572
|
-
| undefined;
|
|
11
|
+
knowledgeBasesServiceUpdateRequest:
|
|
12
|
+
components.KnowledgeBasesServiceUpdateRequest;
|
|
573
13
|
};
|
|
574
14
|
|
|
575
|
-
/** @internal */
|
|
576
|
-
export const UpdateKnowledgeRequestBodyKnowledgeRetrievalSettings$outboundSchema:
|
|
577
|
-
z.ZodType<
|
|
578
|
-
UpdateKnowledgeRequestBodyKnowledgeRetrievalSettings$Outbound,
|
|
579
|
-
z.ZodTypeDef,
|
|
580
|
-
UpdateKnowledgeRequestBodyKnowledgeRetrievalSettings
|
|
581
|
-
> = z.object({
|
|
582
|
-
retrievalType: RequestBodyRetrievalType$outboundSchema.optional(),
|
|
583
|
-
topK: z.number().int().optional(),
|
|
584
|
-
threshold: z.number().optional(),
|
|
585
|
-
rerankConfig: z.nullable(
|
|
586
|
-
z.lazy(() =>
|
|
587
|
-
UpdateKnowledgeRequestBodyKnowledgeRerankConfig$outboundSchema
|
|
588
|
-
),
|
|
589
|
-
).optional(),
|
|
590
|
-
agenticRagConfig: z.nullable(
|
|
591
|
-
z.lazy(() =>
|
|
592
|
-
UpdateKnowledgeRequestBodyKnowledgeAgenticRagConfig$outboundSchema
|
|
593
|
-
),
|
|
594
|
-
).optional(),
|
|
595
|
-
}).transform((v) => {
|
|
596
|
-
return remap$(v, {
|
|
597
|
-
retrievalType: "retrieval_type",
|
|
598
|
-
topK: "top_k",
|
|
599
|
-
rerankConfig: "rerank_config",
|
|
600
|
-
agenticRagConfig: "agentic_rag_config",
|
|
601
|
-
});
|
|
602
|
-
});
|
|
603
|
-
|
|
604
|
-
export function updateKnowledgeRequestBodyKnowledgeRetrievalSettingsToJSON(
|
|
605
|
-
updateKnowledgeRequestBodyKnowledgeRetrievalSettings:
|
|
606
|
-
UpdateKnowledgeRequestBodyKnowledgeRetrievalSettings,
|
|
607
|
-
): string {
|
|
608
|
-
return JSON.stringify(
|
|
609
|
-
UpdateKnowledgeRequestBodyKnowledgeRetrievalSettings$outboundSchema.parse(
|
|
610
|
-
updateKnowledgeRequestBodyKnowledgeRetrievalSettings,
|
|
611
|
-
),
|
|
612
|
-
);
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
/** @internal */
|
|
616
|
-
export const UpdateKnowledgeRequestBodyKnowledgeType$outboundSchema:
|
|
617
|
-
z.ZodNativeEnum<typeof UpdateKnowledgeRequestBodyKnowledgeType> = z
|
|
618
|
-
.nativeEnum(UpdateKnowledgeRequestBodyKnowledgeType);
|
|
619
|
-
|
|
620
|
-
/** @internal */
|
|
621
|
-
export type UpdateKnowledgeRequestBody2$Outbound = {
|
|
622
|
-
description?: string | null | undefined;
|
|
623
|
-
embedding_model?: string | undefined;
|
|
624
|
-
path?: string | undefined;
|
|
625
|
-
retrieval_settings?:
|
|
626
|
-
| UpdateKnowledgeRequestBodyKnowledgeRetrievalSettings$Outbound
|
|
627
|
-
| undefined;
|
|
628
|
-
type: string;
|
|
629
|
-
};
|
|
630
|
-
|
|
631
|
-
/** @internal */
|
|
632
|
-
export const UpdateKnowledgeRequestBody2$outboundSchema: z.ZodType<
|
|
633
|
-
UpdateKnowledgeRequestBody2$Outbound,
|
|
634
|
-
z.ZodTypeDef,
|
|
635
|
-
UpdateKnowledgeRequestBody2
|
|
636
|
-
> = z.object({
|
|
637
|
-
description: z.nullable(z.string()).optional(),
|
|
638
|
-
embeddingModel: z.string().optional(),
|
|
639
|
-
path: z.string().optional(),
|
|
640
|
-
retrievalSettings: z.lazy(() =>
|
|
641
|
-
UpdateKnowledgeRequestBodyKnowledgeRetrievalSettings$outboundSchema
|
|
642
|
-
).optional(),
|
|
643
|
-
type: UpdateKnowledgeRequestBodyKnowledgeType$outboundSchema.default(
|
|
644
|
-
"internal",
|
|
645
|
-
),
|
|
646
|
-
}).transform((v) => {
|
|
647
|
-
return remap$(v, {
|
|
648
|
-
embeddingModel: "embedding_model",
|
|
649
|
-
retrievalSettings: "retrieval_settings",
|
|
650
|
-
});
|
|
651
|
-
});
|
|
652
|
-
|
|
653
|
-
export function updateKnowledgeRequestBody2ToJSON(
|
|
654
|
-
updateKnowledgeRequestBody2: UpdateKnowledgeRequestBody2,
|
|
655
|
-
): string {
|
|
656
|
-
return JSON.stringify(
|
|
657
|
-
UpdateKnowledgeRequestBody2$outboundSchema.parse(
|
|
658
|
-
updateKnowledgeRequestBody2,
|
|
659
|
-
),
|
|
660
|
-
);
|
|
661
|
-
}
|
|
662
|
-
|
|
663
|
-
/** @internal */
|
|
664
|
-
export type UpdateKnowledgeRequestBodyRerankConfig$Outbound = {
|
|
665
|
-
top_k?: number | undefined;
|
|
666
|
-
rerank_threshold?: number | undefined;
|
|
667
|
-
rerank_model: string;
|
|
668
|
-
};
|
|
669
|
-
|
|
670
|
-
/** @internal */
|
|
671
|
-
export const UpdateKnowledgeRequestBodyRerankConfig$outboundSchema: z.ZodType<
|
|
672
|
-
UpdateKnowledgeRequestBodyRerankConfig$Outbound,
|
|
673
|
-
z.ZodTypeDef,
|
|
674
|
-
UpdateKnowledgeRequestBodyRerankConfig
|
|
675
|
-
> = z.object({
|
|
676
|
-
topK: z.number().int().optional(),
|
|
677
|
-
rerankThreshold: z.number().optional(),
|
|
678
|
-
rerankModel: z.string(),
|
|
679
|
-
}).transform((v) => {
|
|
680
|
-
return remap$(v, {
|
|
681
|
-
topK: "top_k",
|
|
682
|
-
rerankThreshold: "rerank_threshold",
|
|
683
|
-
rerankModel: "rerank_model",
|
|
684
|
-
});
|
|
685
|
-
});
|
|
686
|
-
|
|
687
|
-
export function updateKnowledgeRequestBodyRerankConfigToJSON(
|
|
688
|
-
updateKnowledgeRequestBodyRerankConfig:
|
|
689
|
-
UpdateKnowledgeRequestBodyRerankConfig,
|
|
690
|
-
): string {
|
|
691
|
-
return JSON.stringify(
|
|
692
|
-
UpdateKnowledgeRequestBodyRerankConfig$outboundSchema.parse(
|
|
693
|
-
updateKnowledgeRequestBodyRerankConfig,
|
|
694
|
-
),
|
|
695
|
-
);
|
|
696
|
-
}
|
|
697
|
-
|
|
698
|
-
/** @internal */
|
|
699
|
-
export type UpdateKnowledgeRequestBodyAgenticRagConfig$Outbound = {
|
|
700
|
-
model: string;
|
|
701
|
-
};
|
|
702
|
-
|
|
703
|
-
/** @internal */
|
|
704
|
-
export const UpdateKnowledgeRequestBodyAgenticRagConfig$outboundSchema:
|
|
705
|
-
z.ZodType<
|
|
706
|
-
UpdateKnowledgeRequestBodyAgenticRagConfig$Outbound,
|
|
707
|
-
z.ZodTypeDef,
|
|
708
|
-
UpdateKnowledgeRequestBodyAgenticRagConfig
|
|
709
|
-
> = z.object({
|
|
710
|
-
model: z.string(),
|
|
711
|
-
});
|
|
712
|
-
|
|
713
|
-
export function updateKnowledgeRequestBodyAgenticRagConfigToJSON(
|
|
714
|
-
updateKnowledgeRequestBodyAgenticRagConfig:
|
|
715
|
-
UpdateKnowledgeRequestBodyAgenticRagConfig,
|
|
716
|
-
): string {
|
|
717
|
-
return JSON.stringify(
|
|
718
|
-
UpdateKnowledgeRequestBodyAgenticRagConfig$outboundSchema.parse(
|
|
719
|
-
updateKnowledgeRequestBodyAgenticRagConfig,
|
|
720
|
-
),
|
|
721
|
-
);
|
|
722
|
-
}
|
|
723
|
-
|
|
724
|
-
/** @internal */
|
|
725
|
-
export type UpdateKnowledgeRequestBodyRetrievalSettings$Outbound = {
|
|
726
|
-
top_k?: number | undefined;
|
|
727
|
-
threshold?: number | undefined;
|
|
728
|
-
rerank_config?:
|
|
729
|
-
| UpdateKnowledgeRequestBodyRerankConfig$Outbound
|
|
730
|
-
| null
|
|
731
|
-
| undefined;
|
|
732
|
-
agentic_rag_config?:
|
|
733
|
-
| UpdateKnowledgeRequestBodyAgenticRagConfig$Outbound
|
|
734
|
-
| null
|
|
735
|
-
| undefined;
|
|
736
|
-
};
|
|
737
|
-
|
|
738
|
-
/** @internal */
|
|
739
|
-
export const UpdateKnowledgeRequestBodyRetrievalSettings$outboundSchema:
|
|
740
|
-
z.ZodType<
|
|
741
|
-
UpdateKnowledgeRequestBodyRetrievalSettings$Outbound,
|
|
742
|
-
z.ZodTypeDef,
|
|
743
|
-
UpdateKnowledgeRequestBodyRetrievalSettings
|
|
744
|
-
> = z.object({
|
|
745
|
-
topK: z.number().int().optional(),
|
|
746
|
-
threshold: z.number().optional(),
|
|
747
|
-
rerankConfig: z.nullable(
|
|
748
|
-
z.lazy(() => UpdateKnowledgeRequestBodyRerankConfig$outboundSchema),
|
|
749
|
-
).optional(),
|
|
750
|
-
agenticRagConfig: z.nullable(
|
|
751
|
-
z.lazy(() => UpdateKnowledgeRequestBodyAgenticRagConfig$outboundSchema),
|
|
752
|
-
).optional(),
|
|
753
|
-
}).transform((v) => {
|
|
754
|
-
return remap$(v, {
|
|
755
|
-
topK: "top_k",
|
|
756
|
-
rerankConfig: "rerank_config",
|
|
757
|
-
agenticRagConfig: "agentic_rag_config",
|
|
758
|
-
});
|
|
759
|
-
});
|
|
760
|
-
|
|
761
|
-
export function updateKnowledgeRequestBodyRetrievalSettingsToJSON(
|
|
762
|
-
updateKnowledgeRequestBodyRetrievalSettings:
|
|
763
|
-
UpdateKnowledgeRequestBodyRetrievalSettings,
|
|
764
|
-
): string {
|
|
765
|
-
return JSON.stringify(
|
|
766
|
-
UpdateKnowledgeRequestBodyRetrievalSettings$outboundSchema.parse(
|
|
767
|
-
updateKnowledgeRequestBodyRetrievalSettings,
|
|
768
|
-
),
|
|
769
|
-
);
|
|
770
|
-
}
|
|
771
|
-
|
|
772
|
-
/** @internal */
|
|
773
|
-
export type RequestBodyExternalConfig$Outbound = {
|
|
774
|
-
name?: string | undefined;
|
|
775
|
-
api_url?: string | undefined;
|
|
776
|
-
api_key?: string | undefined;
|
|
777
|
-
};
|
|
778
|
-
|
|
779
|
-
/** @internal */
|
|
780
|
-
export const RequestBodyExternalConfig$outboundSchema: z.ZodType<
|
|
781
|
-
RequestBodyExternalConfig$Outbound,
|
|
782
|
-
z.ZodTypeDef,
|
|
783
|
-
RequestBodyExternalConfig
|
|
784
|
-
> = z.object({
|
|
785
|
-
name: z.string().optional(),
|
|
786
|
-
apiUrl: z.string().optional(),
|
|
787
|
-
apiKey: z.string().optional(),
|
|
788
|
-
}).transform((v) => {
|
|
789
|
-
return remap$(v, {
|
|
790
|
-
apiUrl: "api_url",
|
|
791
|
-
apiKey: "api_key",
|
|
792
|
-
});
|
|
793
|
-
});
|
|
794
|
-
|
|
795
|
-
export function requestBodyExternalConfigToJSON(
|
|
796
|
-
requestBodyExternalConfig: RequestBodyExternalConfig,
|
|
797
|
-
): string {
|
|
798
|
-
return JSON.stringify(
|
|
799
|
-
RequestBodyExternalConfig$outboundSchema.parse(requestBodyExternalConfig),
|
|
800
|
-
);
|
|
801
|
-
}
|
|
802
|
-
|
|
803
|
-
/** @internal */
|
|
804
|
-
export const UpdateKnowledgeRequestBodyType$outboundSchema: z.ZodNativeEnum<
|
|
805
|
-
typeof UpdateKnowledgeRequestBodyType
|
|
806
|
-
> = z.nativeEnum(UpdateKnowledgeRequestBodyType);
|
|
807
|
-
|
|
808
|
-
/** @internal */
|
|
809
|
-
export type UpdateKnowledgeRequestBody1$Outbound = {
|
|
810
|
-
description?: string | null | undefined;
|
|
811
|
-
path?: string | undefined;
|
|
812
|
-
retrieval_settings?:
|
|
813
|
-
| UpdateKnowledgeRequestBodyRetrievalSettings$Outbound
|
|
814
|
-
| undefined;
|
|
815
|
-
external_config?: RequestBodyExternalConfig$Outbound | undefined;
|
|
816
|
-
type: string;
|
|
817
|
-
};
|
|
818
|
-
|
|
819
|
-
/** @internal */
|
|
820
|
-
export const UpdateKnowledgeRequestBody1$outboundSchema: z.ZodType<
|
|
821
|
-
UpdateKnowledgeRequestBody1$Outbound,
|
|
822
|
-
z.ZodTypeDef,
|
|
823
|
-
UpdateKnowledgeRequestBody1
|
|
824
|
-
> = z.object({
|
|
825
|
-
description: z.nullable(z.string()).optional(),
|
|
826
|
-
path: z.string().optional(),
|
|
827
|
-
retrievalSettings: z.lazy(() =>
|
|
828
|
-
UpdateKnowledgeRequestBodyRetrievalSettings$outboundSchema
|
|
829
|
-
).optional(),
|
|
830
|
-
externalConfig: z.lazy(() => RequestBodyExternalConfig$outboundSchema)
|
|
831
|
-
.optional(),
|
|
832
|
-
type: UpdateKnowledgeRequestBodyType$outboundSchema.default("external"),
|
|
833
|
-
}).transform((v) => {
|
|
834
|
-
return remap$(v, {
|
|
835
|
-
retrievalSettings: "retrieval_settings",
|
|
836
|
-
externalConfig: "external_config",
|
|
837
|
-
});
|
|
838
|
-
});
|
|
839
|
-
|
|
840
|
-
export function updateKnowledgeRequestBody1ToJSON(
|
|
841
|
-
updateKnowledgeRequestBody1: UpdateKnowledgeRequestBody1,
|
|
842
|
-
): string {
|
|
843
|
-
return JSON.stringify(
|
|
844
|
-
UpdateKnowledgeRequestBody1$outboundSchema.parse(
|
|
845
|
-
updateKnowledgeRequestBody1,
|
|
846
|
-
),
|
|
847
|
-
);
|
|
848
|
-
}
|
|
849
|
-
|
|
850
|
-
/** @internal */
|
|
851
|
-
export type UpdateKnowledgeRequestBody$Outbound =
|
|
852
|
-
| UpdateKnowledgeRequestBody1$Outbound
|
|
853
|
-
| UpdateKnowledgeRequestBody2$Outbound;
|
|
854
|
-
|
|
855
|
-
/** @internal */
|
|
856
|
-
export const UpdateKnowledgeRequestBody$outboundSchema: z.ZodType<
|
|
857
|
-
UpdateKnowledgeRequestBody$Outbound,
|
|
858
|
-
z.ZodTypeDef,
|
|
859
|
-
UpdateKnowledgeRequestBody
|
|
860
|
-
> = z.union([
|
|
861
|
-
z.lazy(() => UpdateKnowledgeRequestBody1$outboundSchema),
|
|
862
|
-
z.lazy(() => UpdateKnowledgeRequestBody2$outboundSchema),
|
|
863
|
-
]);
|
|
864
|
-
|
|
865
|
-
export function updateKnowledgeRequestBodyToJSON(
|
|
866
|
-
updateKnowledgeRequestBody: UpdateKnowledgeRequestBody,
|
|
867
|
-
): string {
|
|
868
|
-
return JSON.stringify(
|
|
869
|
-
UpdateKnowledgeRequestBody$outboundSchema.parse(updateKnowledgeRequestBody),
|
|
870
|
-
);
|
|
871
|
-
}
|
|
872
|
-
|
|
873
15
|
/** @internal */
|
|
874
16
|
export type UpdateKnowledgeRequest$Outbound = {
|
|
875
17
|
knowledge_id: string;
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
| UpdateKnowledgeRequestBody2$Outbound;
|
|
18
|
+
KnowledgeBasesServiceUpdateRequest:
|
|
19
|
+
components.KnowledgeBasesServiceUpdateRequest$Outbound;
|
|
879
20
|
};
|
|
880
21
|
|
|
881
22
|
/** @internal */
|
|
@@ -885,14 +26,12 @@ export const UpdateKnowledgeRequest$outboundSchema: z.ZodType<
|
|
|
885
26
|
UpdateKnowledgeRequest
|
|
886
27
|
> = z.object({
|
|
887
28
|
knowledgeId: z.string(),
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
z.lazy(() => UpdateKnowledgeRequestBody2$outboundSchema),
|
|
891
|
-
]),
|
|
29
|
+
knowledgeBasesServiceUpdateRequest:
|
|
30
|
+
components.KnowledgeBasesServiceUpdateRequest$outboundSchema,
|
|
892
31
|
}).transform((v) => {
|
|
893
32
|
return remap$(v, {
|
|
894
33
|
knowledgeId: "knowledge_id",
|
|
895
|
-
|
|
34
|
+
knowledgeBasesServiceUpdateRequest: "KnowledgeBasesServiceUpdateRequest",
|
|
896
35
|
});
|
|
897
36
|
});
|
|
898
37
|
|
|
@@ -903,357 +42,3 @@ export function updateKnowledgeRequestToJSON(
|
|
|
903
42
|
UpdateKnowledgeRequest$outboundSchema.parse(updateKnowledgeRequest),
|
|
904
43
|
);
|
|
905
44
|
}
|
|
906
|
-
|
|
907
|
-
/** @internal */
|
|
908
|
-
export const UpdateKnowledgeResponseBodyKnowledgeType$inboundSchema:
|
|
909
|
-
z.ZodNativeEnum<typeof UpdateKnowledgeResponseBodyKnowledgeType> = z
|
|
910
|
-
.nativeEnum(UpdateKnowledgeResponseBodyKnowledgeType);
|
|
911
|
-
|
|
912
|
-
/** @internal */
|
|
913
|
-
export const UpdateKnowledgeResponseBodyKnowledgeRerankConfig$inboundSchema:
|
|
914
|
-
z.ZodType<
|
|
915
|
-
UpdateKnowledgeResponseBodyKnowledgeRerankConfig,
|
|
916
|
-
z.ZodTypeDef,
|
|
917
|
-
unknown
|
|
918
|
-
> = z.object({
|
|
919
|
-
top_k: z.number().int().default(5),
|
|
920
|
-
rerank_threshold: z.number().default(0.5),
|
|
921
|
-
rerank_model: z.string(),
|
|
922
|
-
}).transform((v) => {
|
|
923
|
-
return remap$(v, {
|
|
924
|
-
"top_k": "topK",
|
|
925
|
-
"rerank_threshold": "rerankThreshold",
|
|
926
|
-
"rerank_model": "rerankModel",
|
|
927
|
-
});
|
|
928
|
-
});
|
|
929
|
-
|
|
930
|
-
export function updateKnowledgeResponseBodyKnowledgeRerankConfigFromJSON(
|
|
931
|
-
jsonString: string,
|
|
932
|
-
): SafeParseResult<
|
|
933
|
-
UpdateKnowledgeResponseBodyKnowledgeRerankConfig,
|
|
934
|
-
SDKValidationError
|
|
935
|
-
> {
|
|
936
|
-
return safeParse(
|
|
937
|
-
jsonString,
|
|
938
|
-
(x) =>
|
|
939
|
-
UpdateKnowledgeResponseBodyKnowledgeRerankConfig$inboundSchema.parse(
|
|
940
|
-
JSON.parse(x),
|
|
941
|
-
),
|
|
942
|
-
`Failed to parse 'UpdateKnowledgeResponseBodyKnowledgeRerankConfig' from JSON`,
|
|
943
|
-
);
|
|
944
|
-
}
|
|
945
|
-
|
|
946
|
-
/** @internal */
|
|
947
|
-
export const UpdateKnowledgeResponseBodyKnowledgeAgenticRagConfig$inboundSchema:
|
|
948
|
-
z.ZodType<
|
|
949
|
-
UpdateKnowledgeResponseBodyKnowledgeAgenticRagConfig,
|
|
950
|
-
z.ZodTypeDef,
|
|
951
|
-
unknown
|
|
952
|
-
> = z.object({
|
|
953
|
-
model: z.string(),
|
|
954
|
-
});
|
|
955
|
-
|
|
956
|
-
export function updateKnowledgeResponseBodyKnowledgeAgenticRagConfigFromJSON(
|
|
957
|
-
jsonString: string,
|
|
958
|
-
): SafeParseResult<
|
|
959
|
-
UpdateKnowledgeResponseBodyKnowledgeAgenticRagConfig,
|
|
960
|
-
SDKValidationError
|
|
961
|
-
> {
|
|
962
|
-
return safeParse(
|
|
963
|
-
jsonString,
|
|
964
|
-
(x) =>
|
|
965
|
-
UpdateKnowledgeResponseBodyKnowledgeAgenticRagConfig$inboundSchema.parse(
|
|
966
|
-
JSON.parse(x),
|
|
967
|
-
),
|
|
968
|
-
`Failed to parse 'UpdateKnowledgeResponseBodyKnowledgeAgenticRagConfig' from JSON`,
|
|
969
|
-
);
|
|
970
|
-
}
|
|
971
|
-
|
|
972
|
-
/** @internal */
|
|
973
|
-
export const UpdateKnowledgeResponseBodyKnowledgeRetrievalSettings$inboundSchema:
|
|
974
|
-
z.ZodType<
|
|
975
|
-
UpdateKnowledgeResponseBodyKnowledgeRetrievalSettings,
|
|
976
|
-
z.ZodTypeDef,
|
|
977
|
-
unknown
|
|
978
|
-
> = z.object({
|
|
979
|
-
top_k: z.number().int().default(5),
|
|
980
|
-
threshold: z.number().default(0),
|
|
981
|
-
rerank_config: z.nullable(
|
|
982
|
-
z.lazy(() =>
|
|
983
|
-
UpdateKnowledgeResponseBodyKnowledgeRerankConfig$inboundSchema
|
|
984
|
-
),
|
|
985
|
-
).optional(),
|
|
986
|
-
agentic_rag_config: z.nullable(
|
|
987
|
-
z.lazy(() =>
|
|
988
|
-
UpdateKnowledgeResponseBodyKnowledgeAgenticRagConfig$inboundSchema
|
|
989
|
-
),
|
|
990
|
-
).optional(),
|
|
991
|
-
}).transform((v) => {
|
|
992
|
-
return remap$(v, {
|
|
993
|
-
"top_k": "topK",
|
|
994
|
-
"rerank_config": "rerankConfig",
|
|
995
|
-
"agentic_rag_config": "agenticRagConfig",
|
|
996
|
-
});
|
|
997
|
-
});
|
|
998
|
-
|
|
999
|
-
export function updateKnowledgeResponseBodyKnowledgeRetrievalSettingsFromJSON(
|
|
1000
|
-
jsonString: string,
|
|
1001
|
-
): SafeParseResult<
|
|
1002
|
-
UpdateKnowledgeResponseBodyKnowledgeRetrievalSettings,
|
|
1003
|
-
SDKValidationError
|
|
1004
|
-
> {
|
|
1005
|
-
return safeParse(
|
|
1006
|
-
jsonString,
|
|
1007
|
-
(x) =>
|
|
1008
|
-
UpdateKnowledgeResponseBodyKnowledgeRetrievalSettings$inboundSchema.parse(
|
|
1009
|
-
JSON.parse(x),
|
|
1010
|
-
),
|
|
1011
|
-
`Failed to parse 'UpdateKnowledgeResponseBodyKnowledgeRetrievalSettings' from JSON`,
|
|
1012
|
-
);
|
|
1013
|
-
}
|
|
1014
|
-
|
|
1015
|
-
/** @internal */
|
|
1016
|
-
export const UpdateKnowledgeResponseBodyExternalConfig$inboundSchema: z.ZodType<
|
|
1017
|
-
UpdateKnowledgeResponseBodyExternalConfig,
|
|
1018
|
-
z.ZodTypeDef,
|
|
1019
|
-
unknown
|
|
1020
|
-
> = z.object({
|
|
1021
|
-
name: z.string(),
|
|
1022
|
-
api_url: z.string(),
|
|
1023
|
-
}).transform((v) => {
|
|
1024
|
-
return remap$(v, {
|
|
1025
|
-
"api_url": "apiUrl",
|
|
1026
|
-
});
|
|
1027
|
-
});
|
|
1028
|
-
|
|
1029
|
-
export function updateKnowledgeResponseBodyExternalConfigFromJSON(
|
|
1030
|
-
jsonString: string,
|
|
1031
|
-
): SafeParseResult<
|
|
1032
|
-
UpdateKnowledgeResponseBodyExternalConfig,
|
|
1033
|
-
SDKValidationError
|
|
1034
|
-
> {
|
|
1035
|
-
return safeParse(
|
|
1036
|
-
jsonString,
|
|
1037
|
-
(x) =>
|
|
1038
|
-
UpdateKnowledgeResponseBodyExternalConfig$inboundSchema.parse(
|
|
1039
|
-
JSON.parse(x),
|
|
1040
|
-
),
|
|
1041
|
-
`Failed to parse 'UpdateKnowledgeResponseBodyExternalConfig' from JSON`,
|
|
1042
|
-
);
|
|
1043
|
-
}
|
|
1044
|
-
|
|
1045
|
-
/** @internal */
|
|
1046
|
-
export const UpdateKnowledgeResponseBody2$inboundSchema: z.ZodType<
|
|
1047
|
-
UpdateKnowledgeResponseBody2,
|
|
1048
|
-
z.ZodTypeDef,
|
|
1049
|
-
unknown
|
|
1050
|
-
> = z.object({
|
|
1051
|
-
_id: z.string(),
|
|
1052
|
-
created: z.string(),
|
|
1053
|
-
description: z.nullable(z.string()).optional(),
|
|
1054
|
-
key: z.string(),
|
|
1055
|
-
domain_id: z.string(),
|
|
1056
|
-
path: z.string().optional(),
|
|
1057
|
-
created_by_id: z.nullable(z.string()).optional(),
|
|
1058
|
-
updated_by_id: z.nullable(z.string()).optional(),
|
|
1059
|
-
updated: z.string(),
|
|
1060
|
-
type: UpdateKnowledgeResponseBodyKnowledgeType$inboundSchema.default(
|
|
1061
|
-
"external",
|
|
1062
|
-
),
|
|
1063
|
-
retrieval_settings: z.lazy(() =>
|
|
1064
|
-
UpdateKnowledgeResponseBodyKnowledgeRetrievalSettings$inboundSchema
|
|
1065
|
-
).optional(),
|
|
1066
|
-
external_config: z.lazy(() =>
|
|
1067
|
-
UpdateKnowledgeResponseBodyExternalConfig$inboundSchema
|
|
1068
|
-
),
|
|
1069
|
-
}).transform((v) => {
|
|
1070
|
-
return remap$(v, {
|
|
1071
|
-
"_id": "id",
|
|
1072
|
-
"domain_id": "domainId",
|
|
1073
|
-
"created_by_id": "createdById",
|
|
1074
|
-
"updated_by_id": "updatedById",
|
|
1075
|
-
"retrieval_settings": "retrievalSettings",
|
|
1076
|
-
"external_config": "externalConfig",
|
|
1077
|
-
});
|
|
1078
|
-
});
|
|
1079
|
-
|
|
1080
|
-
export function updateKnowledgeResponseBody2FromJSON(
|
|
1081
|
-
jsonString: string,
|
|
1082
|
-
): SafeParseResult<UpdateKnowledgeResponseBody2, SDKValidationError> {
|
|
1083
|
-
return safeParse(
|
|
1084
|
-
jsonString,
|
|
1085
|
-
(x) => UpdateKnowledgeResponseBody2$inboundSchema.parse(JSON.parse(x)),
|
|
1086
|
-
`Failed to parse 'UpdateKnowledgeResponseBody2' from JSON`,
|
|
1087
|
-
);
|
|
1088
|
-
}
|
|
1089
|
-
|
|
1090
|
-
/** @internal */
|
|
1091
|
-
export const UpdateKnowledgeResponseBodyType$inboundSchema: z.ZodNativeEnum<
|
|
1092
|
-
typeof UpdateKnowledgeResponseBodyType
|
|
1093
|
-
> = z.nativeEnum(UpdateKnowledgeResponseBodyType);
|
|
1094
|
-
|
|
1095
|
-
/** @internal */
|
|
1096
|
-
export const UpdateKnowledgeResponseBodyRetrievalType$inboundSchema:
|
|
1097
|
-
z.ZodNativeEnum<typeof UpdateKnowledgeResponseBodyRetrievalType> = z
|
|
1098
|
-
.nativeEnum(UpdateKnowledgeResponseBodyRetrievalType);
|
|
1099
|
-
|
|
1100
|
-
/** @internal */
|
|
1101
|
-
export const UpdateKnowledgeResponseBodyRerankConfig$inboundSchema: z.ZodType<
|
|
1102
|
-
UpdateKnowledgeResponseBodyRerankConfig,
|
|
1103
|
-
z.ZodTypeDef,
|
|
1104
|
-
unknown
|
|
1105
|
-
> = z.object({
|
|
1106
|
-
top_k: z.number().int().default(5),
|
|
1107
|
-
rerank_threshold: z.number().default(0.5),
|
|
1108
|
-
rerank_model: z.string(),
|
|
1109
|
-
}).transform((v) => {
|
|
1110
|
-
return remap$(v, {
|
|
1111
|
-
"top_k": "topK",
|
|
1112
|
-
"rerank_threshold": "rerankThreshold",
|
|
1113
|
-
"rerank_model": "rerankModel",
|
|
1114
|
-
});
|
|
1115
|
-
});
|
|
1116
|
-
|
|
1117
|
-
export function updateKnowledgeResponseBodyRerankConfigFromJSON(
|
|
1118
|
-
jsonString: string,
|
|
1119
|
-
): SafeParseResult<
|
|
1120
|
-
UpdateKnowledgeResponseBodyRerankConfig,
|
|
1121
|
-
SDKValidationError
|
|
1122
|
-
> {
|
|
1123
|
-
return safeParse(
|
|
1124
|
-
jsonString,
|
|
1125
|
-
(x) =>
|
|
1126
|
-
UpdateKnowledgeResponseBodyRerankConfig$inboundSchema.parse(
|
|
1127
|
-
JSON.parse(x),
|
|
1128
|
-
),
|
|
1129
|
-
`Failed to parse 'UpdateKnowledgeResponseBodyRerankConfig' from JSON`,
|
|
1130
|
-
);
|
|
1131
|
-
}
|
|
1132
|
-
|
|
1133
|
-
/** @internal */
|
|
1134
|
-
export const UpdateKnowledgeResponseBodyAgenticRagConfig$inboundSchema:
|
|
1135
|
-
z.ZodType<
|
|
1136
|
-
UpdateKnowledgeResponseBodyAgenticRagConfig,
|
|
1137
|
-
z.ZodTypeDef,
|
|
1138
|
-
unknown
|
|
1139
|
-
> = z.object({
|
|
1140
|
-
model: z.string(),
|
|
1141
|
-
});
|
|
1142
|
-
|
|
1143
|
-
export function updateKnowledgeResponseBodyAgenticRagConfigFromJSON(
|
|
1144
|
-
jsonString: string,
|
|
1145
|
-
): SafeParseResult<
|
|
1146
|
-
UpdateKnowledgeResponseBodyAgenticRagConfig,
|
|
1147
|
-
SDKValidationError
|
|
1148
|
-
> {
|
|
1149
|
-
return safeParse(
|
|
1150
|
-
jsonString,
|
|
1151
|
-
(x) =>
|
|
1152
|
-
UpdateKnowledgeResponseBodyAgenticRagConfig$inboundSchema.parse(
|
|
1153
|
-
JSON.parse(x),
|
|
1154
|
-
),
|
|
1155
|
-
`Failed to parse 'UpdateKnowledgeResponseBodyAgenticRagConfig' from JSON`,
|
|
1156
|
-
);
|
|
1157
|
-
}
|
|
1158
|
-
|
|
1159
|
-
/** @internal */
|
|
1160
|
-
export const UpdateKnowledgeResponseBodyRetrievalSettings$inboundSchema:
|
|
1161
|
-
z.ZodType<
|
|
1162
|
-
UpdateKnowledgeResponseBodyRetrievalSettings,
|
|
1163
|
-
z.ZodTypeDef,
|
|
1164
|
-
unknown
|
|
1165
|
-
> = z.object({
|
|
1166
|
-
retrieval_type: UpdateKnowledgeResponseBodyRetrievalType$inboundSchema
|
|
1167
|
-
.default("hybrid_search"),
|
|
1168
|
-
top_k: z.number().int().default(5),
|
|
1169
|
-
threshold: z.number().default(0),
|
|
1170
|
-
rerank_config: z.nullable(
|
|
1171
|
-
z.lazy(() => UpdateKnowledgeResponseBodyRerankConfig$inboundSchema),
|
|
1172
|
-
).optional(),
|
|
1173
|
-
agentic_rag_config: z.nullable(
|
|
1174
|
-
z.lazy(() => UpdateKnowledgeResponseBodyAgenticRagConfig$inboundSchema),
|
|
1175
|
-
).optional(),
|
|
1176
|
-
}).transform((v) => {
|
|
1177
|
-
return remap$(v, {
|
|
1178
|
-
"retrieval_type": "retrievalType",
|
|
1179
|
-
"top_k": "topK",
|
|
1180
|
-
"rerank_config": "rerankConfig",
|
|
1181
|
-
"agentic_rag_config": "agenticRagConfig",
|
|
1182
|
-
});
|
|
1183
|
-
});
|
|
1184
|
-
|
|
1185
|
-
export function updateKnowledgeResponseBodyRetrievalSettingsFromJSON(
|
|
1186
|
-
jsonString: string,
|
|
1187
|
-
): SafeParseResult<
|
|
1188
|
-
UpdateKnowledgeResponseBodyRetrievalSettings,
|
|
1189
|
-
SDKValidationError
|
|
1190
|
-
> {
|
|
1191
|
-
return safeParse(
|
|
1192
|
-
jsonString,
|
|
1193
|
-
(x) =>
|
|
1194
|
-
UpdateKnowledgeResponseBodyRetrievalSettings$inboundSchema.parse(
|
|
1195
|
-
JSON.parse(x),
|
|
1196
|
-
),
|
|
1197
|
-
`Failed to parse 'UpdateKnowledgeResponseBodyRetrievalSettings' from JSON`,
|
|
1198
|
-
);
|
|
1199
|
-
}
|
|
1200
|
-
|
|
1201
|
-
/** @internal */
|
|
1202
|
-
export const UpdateKnowledgeResponseBody1$inboundSchema: z.ZodType<
|
|
1203
|
-
UpdateKnowledgeResponseBody1,
|
|
1204
|
-
z.ZodTypeDef,
|
|
1205
|
-
unknown
|
|
1206
|
-
> = z.object({
|
|
1207
|
-
_id: z.string(),
|
|
1208
|
-
created: z.string(),
|
|
1209
|
-
description: z.nullable(z.string()).optional(),
|
|
1210
|
-
key: z.string(),
|
|
1211
|
-
domain_id: z.string(),
|
|
1212
|
-
path: z.string().optional(),
|
|
1213
|
-
created_by_id: z.nullable(z.string()).optional(),
|
|
1214
|
-
updated_by_id: z.nullable(z.string()).optional(),
|
|
1215
|
-
updated: z.string(),
|
|
1216
|
-
type: UpdateKnowledgeResponseBodyType$inboundSchema.default("internal"),
|
|
1217
|
-
retrieval_settings: z.lazy(() =>
|
|
1218
|
-
UpdateKnowledgeResponseBodyRetrievalSettings$inboundSchema
|
|
1219
|
-
).optional(),
|
|
1220
|
-
model: z.string(),
|
|
1221
|
-
}).transform((v) => {
|
|
1222
|
-
return remap$(v, {
|
|
1223
|
-
"_id": "id",
|
|
1224
|
-
"domain_id": "domainId",
|
|
1225
|
-
"created_by_id": "createdById",
|
|
1226
|
-
"updated_by_id": "updatedById",
|
|
1227
|
-
"retrieval_settings": "retrievalSettings",
|
|
1228
|
-
});
|
|
1229
|
-
});
|
|
1230
|
-
|
|
1231
|
-
export function updateKnowledgeResponseBody1FromJSON(
|
|
1232
|
-
jsonString: string,
|
|
1233
|
-
): SafeParseResult<UpdateKnowledgeResponseBody1, SDKValidationError> {
|
|
1234
|
-
return safeParse(
|
|
1235
|
-
jsonString,
|
|
1236
|
-
(x) => UpdateKnowledgeResponseBody1$inboundSchema.parse(JSON.parse(x)),
|
|
1237
|
-
`Failed to parse 'UpdateKnowledgeResponseBody1' from JSON`,
|
|
1238
|
-
);
|
|
1239
|
-
}
|
|
1240
|
-
|
|
1241
|
-
/** @internal */
|
|
1242
|
-
export const UpdateKnowledgeResponseBody$inboundSchema: z.ZodType<
|
|
1243
|
-
UpdateKnowledgeResponseBody,
|
|
1244
|
-
z.ZodTypeDef,
|
|
1245
|
-
unknown
|
|
1246
|
-
> = z.union([
|
|
1247
|
-
z.lazy(() => UpdateKnowledgeResponseBody1$inboundSchema),
|
|
1248
|
-
z.lazy(() => UpdateKnowledgeResponseBody2$inboundSchema),
|
|
1249
|
-
]);
|
|
1250
|
-
|
|
1251
|
-
export function updateKnowledgeResponseBodyFromJSON(
|
|
1252
|
-
jsonString: string,
|
|
1253
|
-
): SafeParseResult<UpdateKnowledgeResponseBody, SDKValidationError> {
|
|
1254
|
-
return safeParse(
|
|
1255
|
-
jsonString,
|
|
1256
|
-
(x) => UpdateKnowledgeResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
1257
|
-
`Failed to parse 'UpdateKnowledgeResponseBody' from JSON`,
|
|
1258
|
-
);
|
|
1259
|
-
}
|