@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,1676 +4,23 @@
|
|
|
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";
|
|
7
|
+
import * as components from "../components/index.js";
|
|
11
8
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
* The type of search to perform. Send `null` or omit to use the knowledge base configured `retrieval_type`
|
|
22
|
-
*/
|
|
23
|
-
export type SearchType = ClosedEnum<typeof SearchType>;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Exists
|
|
27
|
-
*/
|
|
28
|
-
export type SearchKnowledgeOrExists = {
|
|
29
|
-
exists: boolean;
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export type SearchKnowledgeOrKnowledgeNin = string | number | boolean;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Not in
|
|
36
|
-
*/
|
|
37
|
-
export type SearchKnowledgeOrNin = {
|
|
38
|
-
nin: Array<string | number | boolean>;
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
export type SearchKnowledgeOrKnowledgeIn = string | number | boolean;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* In
|
|
45
|
-
*/
|
|
46
|
-
export type SearchKnowledgeOrIn = {
|
|
47
|
-
in: Array<string | number | boolean>;
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Less than or equal to
|
|
52
|
-
*/
|
|
53
|
-
export type SearchKnowledgeOrLte = {
|
|
54
|
-
lte: number;
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Less than
|
|
59
|
-
*/
|
|
60
|
-
export type SearchKnowledgeOrLt = {
|
|
61
|
-
lt: number;
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Greater than or equal to
|
|
66
|
-
*/
|
|
67
|
-
export type SearchKnowledgeOrGte = {
|
|
68
|
-
gte: number;
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Greater than
|
|
73
|
-
*/
|
|
74
|
-
export type SearchKnowledgeOrGt = {
|
|
75
|
-
gt: number;
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
export type SearchKnowledgeOrKnowledgeNe = string | number | boolean;
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* Not equal to
|
|
82
|
-
*/
|
|
83
|
-
export type SearchKnowledgeOrNe = {
|
|
84
|
-
ne: string | number | boolean;
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
export type SearchKnowledgeOrKnowledgeEq = string | number | boolean;
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* Equal to
|
|
91
|
-
*/
|
|
92
|
-
export type SearchKnowledgeOrEq = {
|
|
93
|
-
eq: string | number | boolean;
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
export type SearchKnowledgeFilterByOr =
|
|
97
|
-
| SearchKnowledgeOrEq
|
|
98
|
-
| SearchKnowledgeOrNe
|
|
99
|
-
| SearchKnowledgeOrGt
|
|
100
|
-
| SearchKnowledgeOrGte
|
|
101
|
-
| SearchKnowledgeOrLt
|
|
102
|
-
| SearchKnowledgeOrLte
|
|
103
|
-
| SearchKnowledgeOrIn
|
|
104
|
-
| SearchKnowledgeOrNin
|
|
105
|
-
| SearchKnowledgeOrExists;
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* Or
|
|
109
|
-
*/
|
|
110
|
-
export type FilterByOr = {
|
|
111
|
-
or: Array<
|
|
112
|
-
{
|
|
113
|
-
[k: string]:
|
|
114
|
-
| SearchKnowledgeOrEq
|
|
115
|
-
| SearchKnowledgeOrNe
|
|
116
|
-
| SearchKnowledgeOrGt
|
|
117
|
-
| SearchKnowledgeOrGte
|
|
118
|
-
| SearchKnowledgeOrLt
|
|
119
|
-
| SearchKnowledgeOrLte
|
|
120
|
-
| SearchKnowledgeOrIn
|
|
121
|
-
| SearchKnowledgeOrNin
|
|
122
|
-
| SearchKnowledgeOrExists;
|
|
123
|
-
}
|
|
124
|
-
>;
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* Exists
|
|
129
|
-
*/
|
|
130
|
-
export type SearchKnowledgeAndExists = {
|
|
131
|
-
exists: boolean;
|
|
132
|
-
};
|
|
133
|
-
|
|
134
|
-
export type SearchKnowledgeAndKnowledgeNin = string | number | boolean;
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* Not in
|
|
138
|
-
*/
|
|
139
|
-
export type SearchKnowledgeAndNin = {
|
|
140
|
-
nin: Array<string | number | boolean>;
|
|
141
|
-
};
|
|
142
|
-
|
|
143
|
-
export type SearchKnowledgeAndKnowledgeIn = string | number | boolean;
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* In
|
|
147
|
-
*/
|
|
148
|
-
export type SearchKnowledgeAndIn = {
|
|
149
|
-
in: Array<string | number | boolean>;
|
|
150
|
-
};
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* Less than or equal to
|
|
154
|
-
*/
|
|
155
|
-
export type SearchKnowledgeAndLte = {
|
|
156
|
-
lte: number;
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* Less than
|
|
161
|
-
*/
|
|
162
|
-
export type SearchKnowledgeAndLt = {
|
|
163
|
-
lt: number;
|
|
164
|
-
};
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* Greater than or equal to
|
|
168
|
-
*/
|
|
169
|
-
export type SearchKnowledgeAndGte = {
|
|
170
|
-
gte: number;
|
|
171
|
-
};
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* Greater than
|
|
175
|
-
*/
|
|
176
|
-
export type SearchKnowledgeAndGt = {
|
|
177
|
-
gt: number;
|
|
178
|
-
};
|
|
179
|
-
|
|
180
|
-
export type SearchKnowledgeAndKnowledgeNe = string | number | boolean;
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* Not equal to
|
|
184
|
-
*/
|
|
185
|
-
export type SearchKnowledgeAndNe = {
|
|
186
|
-
ne: string | number | boolean;
|
|
187
|
-
};
|
|
188
|
-
|
|
189
|
-
export type SearchKnowledgeAndKnowledgeEq = string | number | boolean;
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* Equal to
|
|
193
|
-
*/
|
|
194
|
-
export type SearchKnowledgeAndEq = {
|
|
195
|
-
eq: string | number | boolean;
|
|
196
|
-
};
|
|
197
|
-
|
|
198
|
-
export type SearchKnowledgeFilterByAnd =
|
|
199
|
-
| SearchKnowledgeAndEq
|
|
200
|
-
| SearchKnowledgeAndNe
|
|
201
|
-
| SearchKnowledgeAndGt
|
|
202
|
-
| SearchKnowledgeAndGte
|
|
203
|
-
| SearchKnowledgeAndLt
|
|
204
|
-
| SearchKnowledgeAndLte
|
|
205
|
-
| SearchKnowledgeAndIn
|
|
206
|
-
| SearchKnowledgeAndNin
|
|
207
|
-
| SearchKnowledgeAndExists;
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* And
|
|
211
|
-
*/
|
|
212
|
-
export type FilterByAnd = {
|
|
213
|
-
and: Array<
|
|
214
|
-
{
|
|
215
|
-
[k: string]:
|
|
216
|
-
| SearchKnowledgeAndEq
|
|
217
|
-
| SearchKnowledgeAndNe
|
|
218
|
-
| SearchKnowledgeAndGt
|
|
219
|
-
| SearchKnowledgeAndGte
|
|
220
|
-
| SearchKnowledgeAndLt
|
|
221
|
-
| SearchKnowledgeAndLte
|
|
222
|
-
| SearchKnowledgeAndIn
|
|
223
|
-
| SearchKnowledgeAndNin
|
|
224
|
-
| SearchKnowledgeAndExists;
|
|
225
|
-
}
|
|
226
|
-
>;
|
|
227
|
-
};
|
|
228
|
-
|
|
229
|
-
/**
|
|
230
|
-
* Exists
|
|
231
|
-
*/
|
|
232
|
-
export type SearchKnowledge1Exists = {
|
|
233
|
-
exists: boolean;
|
|
234
|
-
};
|
|
235
|
-
|
|
236
|
-
export type SearchKnowledge1KnowledgeNin = string | number | boolean;
|
|
237
|
-
|
|
238
|
-
/**
|
|
239
|
-
* Not in
|
|
240
|
-
*/
|
|
241
|
-
export type SearchKnowledge1Nin = {
|
|
242
|
-
nin: Array<string | number | boolean>;
|
|
243
|
-
};
|
|
244
|
-
|
|
245
|
-
export type SearchKnowledge1KnowledgeIn = string | number | boolean;
|
|
246
|
-
|
|
247
|
-
/**
|
|
248
|
-
* In
|
|
249
|
-
*/
|
|
250
|
-
export type SearchKnowledge1In = {
|
|
251
|
-
in: Array<string | number | boolean>;
|
|
252
|
-
};
|
|
253
|
-
|
|
254
|
-
/**
|
|
255
|
-
* Less than or equal to
|
|
256
|
-
*/
|
|
257
|
-
export type SearchKnowledge1Lte = {
|
|
258
|
-
lte: number;
|
|
259
|
-
};
|
|
260
|
-
|
|
261
|
-
/**
|
|
262
|
-
* Less than
|
|
263
|
-
*/
|
|
264
|
-
export type SearchKnowledge1Lt = {
|
|
265
|
-
lt: number;
|
|
266
|
-
};
|
|
267
|
-
|
|
268
|
-
/**
|
|
269
|
-
* Greater than or equal to
|
|
270
|
-
*/
|
|
271
|
-
export type SearchKnowledge1Gte = {
|
|
272
|
-
gte: number;
|
|
273
|
-
};
|
|
274
|
-
|
|
275
|
-
/**
|
|
276
|
-
* Greater than
|
|
277
|
-
*/
|
|
278
|
-
export type SearchKnowledge1Gt = {
|
|
279
|
-
gt: number;
|
|
280
|
-
};
|
|
281
|
-
|
|
282
|
-
export type SearchKnowledge1KnowledgeNe = string | number | boolean;
|
|
283
|
-
|
|
284
|
-
/**
|
|
285
|
-
* Not equal to
|
|
286
|
-
*/
|
|
287
|
-
export type SearchKnowledge1Ne = {
|
|
288
|
-
ne: string | number | boolean;
|
|
289
|
-
};
|
|
290
|
-
|
|
291
|
-
export type SearchKnowledge1KnowledgeEq = string | number | boolean;
|
|
292
|
-
|
|
293
|
-
/**
|
|
294
|
-
* Equal to
|
|
295
|
-
*/
|
|
296
|
-
export type SearchKnowledge1Eq = {
|
|
297
|
-
eq: string | number | boolean;
|
|
298
|
-
};
|
|
299
|
-
|
|
300
|
-
export type FilterBy1 =
|
|
301
|
-
| SearchKnowledge1Eq
|
|
302
|
-
| SearchKnowledge1Ne
|
|
303
|
-
| SearchKnowledge1Gt
|
|
304
|
-
| SearchKnowledge1Gte
|
|
305
|
-
| SearchKnowledge1Lt
|
|
306
|
-
| SearchKnowledge1Lte
|
|
307
|
-
| SearchKnowledge1In
|
|
308
|
-
| SearchKnowledge1Nin
|
|
309
|
-
| SearchKnowledge1Exists;
|
|
310
|
-
|
|
311
|
-
/**
|
|
312
|
-
* The metadata filter to apply to the search. Check the [Searching a Knowledge Base](https://docs.orq.ai/docs/knowledge/api#knowledge-base-search) for more information.
|
|
313
|
-
*/
|
|
314
|
-
export type FilterBy = FilterByAnd | FilterByOr | {
|
|
315
|
-
[k: string]:
|
|
316
|
-
| SearchKnowledge1Eq
|
|
317
|
-
| SearchKnowledge1Ne
|
|
318
|
-
| SearchKnowledge1Gt
|
|
319
|
-
| SearchKnowledge1Gte
|
|
320
|
-
| SearchKnowledge1Lt
|
|
321
|
-
| SearchKnowledge1Lte
|
|
322
|
-
| SearchKnowledge1In
|
|
323
|
-
| SearchKnowledge1Nin
|
|
324
|
-
| SearchKnowledge1Exists;
|
|
325
|
-
};
|
|
326
|
-
|
|
327
|
-
/**
|
|
328
|
-
* Additional search options
|
|
329
|
-
*/
|
|
330
|
-
export type SearchOptions = {
|
|
331
|
-
/**
|
|
332
|
-
* Whether to include the vector in the chunk
|
|
333
|
-
*/
|
|
334
|
-
includeVectors?: boolean | undefined;
|
|
335
|
-
/**
|
|
336
|
-
* Whether to include the metadata in the chunk
|
|
337
|
-
*/
|
|
338
|
-
includeMetadata?: boolean | undefined;
|
|
339
|
-
/**
|
|
340
|
-
* Whether to include the scores in the chunk
|
|
341
|
-
*/
|
|
342
|
-
includeScores?: boolean | undefined;
|
|
343
|
-
};
|
|
344
|
-
|
|
345
|
-
/**
|
|
346
|
-
* Override the rerank configuration for this search. If not provided, will use the knowledge base configured rerank settings.
|
|
347
|
-
*/
|
|
348
|
-
export type RerankConfig = {
|
|
349
|
-
/**
|
|
350
|
-
* The name of the rerank model to use. Refer to the [model list](https://docs.orq.ai/docs/proxy#/rerank-models).
|
|
351
|
-
*/
|
|
352
|
-
model: string;
|
|
353
|
-
/**
|
|
354
|
-
* The threshold value used to filter the rerank results, only documents with a relevance score greater than the threshold will be returned
|
|
355
|
-
*/
|
|
356
|
-
threshold?: number | undefined;
|
|
357
|
-
/**
|
|
358
|
-
* The number of top results to return after reranking. Defaults to `10`.
|
|
359
|
-
*/
|
|
360
|
-
topK?: number | undefined;
|
|
361
|
-
};
|
|
362
|
-
|
|
363
|
-
/**
|
|
364
|
-
* Override the agentic RAG configuration for this search. If not provided, will use the knowledge base configured agentic RAG settings.
|
|
365
|
-
*/
|
|
366
|
-
export type AgenticRagConfig = {
|
|
367
|
-
/**
|
|
368
|
-
* The name of the model for the Agent to use. Refer to the [model list](https://docs.orq.ai/docs/proxy#/chat-models).
|
|
369
|
-
*/
|
|
370
|
-
model: string;
|
|
371
|
-
};
|
|
372
|
-
|
|
373
|
-
/**
|
|
374
|
-
* A search request for chunks in a knowledge base
|
|
375
|
-
*/
|
|
376
|
-
export type SearchKnowledgeRequestBody = {
|
|
377
|
-
/**
|
|
378
|
-
* The query to use to search the knowledge base
|
|
379
|
-
*/
|
|
380
|
-
query: string;
|
|
381
|
-
/**
|
|
382
|
-
* The number of results to return. Send `null` or omit to use the knowledge base configured `top_k`.
|
|
383
|
-
*/
|
|
384
|
-
topK?: number | null | undefined;
|
|
385
|
-
/**
|
|
386
|
-
* The threshold to apply to the search. Send `null` or omit to use the knowledge base configured `threshold`
|
|
387
|
-
*/
|
|
388
|
-
threshold?: number | null | undefined;
|
|
389
|
-
/**
|
|
390
|
-
* The type of search to perform. Send `null` or omit to use the knowledge base configured `retrieval_type`
|
|
391
|
-
*/
|
|
392
|
-
searchType?: SearchType | null | undefined;
|
|
393
|
-
/**
|
|
394
|
-
* The metadata filter to apply to the search. Check the [Searching a Knowledge Base](https://docs.orq.ai/docs/knowledge/api#knowledge-base-search) for more information.
|
|
395
|
-
*/
|
|
396
|
-
filterBy?: FilterByAnd | FilterByOr | {
|
|
397
|
-
[k: string]:
|
|
398
|
-
| SearchKnowledge1Eq
|
|
399
|
-
| SearchKnowledge1Ne
|
|
400
|
-
| SearchKnowledge1Gt
|
|
401
|
-
| SearchKnowledge1Gte
|
|
402
|
-
| SearchKnowledge1Lt
|
|
403
|
-
| SearchKnowledge1Lte
|
|
404
|
-
| SearchKnowledge1In
|
|
405
|
-
| SearchKnowledge1Nin
|
|
406
|
-
| SearchKnowledge1Exists;
|
|
407
|
-
} | undefined;
|
|
408
|
-
/**
|
|
409
|
-
* Additional search options
|
|
410
|
-
*/
|
|
411
|
-
searchOptions?: SearchOptions | undefined;
|
|
412
|
-
/**
|
|
413
|
-
* Override the rerank configuration for this search. If not provided, will use the knowledge base configured rerank settings.
|
|
414
|
-
*/
|
|
415
|
-
rerankConfig?: RerankConfig | undefined;
|
|
416
|
-
/**
|
|
417
|
-
* Override the agentic RAG configuration for this search. If not provided, will use the knowledge base configured agentic RAG settings.
|
|
418
|
-
*/
|
|
419
|
-
agenticRagConfig?: AgenticRagConfig | undefined;
|
|
420
|
-
};
|
|
421
|
-
|
|
422
|
-
export type SearchKnowledgeRequest = {
|
|
423
|
-
/**
|
|
424
|
-
* The unique identifier or key of the knowledge base
|
|
425
|
-
*/
|
|
426
|
-
knowledgeId: string;
|
|
427
|
-
/**
|
|
428
|
-
* A search request for chunks in a knowledge base
|
|
429
|
-
*/
|
|
430
|
-
requestBody?: SearchKnowledgeRequestBody | undefined;
|
|
431
|
-
};
|
|
432
|
-
|
|
433
|
-
export type Scores = {
|
|
434
|
-
rerankScore?: number | undefined;
|
|
435
|
-
searchScore?: number | undefined;
|
|
436
|
-
};
|
|
437
|
-
|
|
438
|
-
export type Matches = {
|
|
439
|
-
id: string;
|
|
440
|
-
text: string;
|
|
441
|
-
vector?: Array<number> | undefined;
|
|
442
|
-
metadata?: { [k: string]: any } | undefined;
|
|
443
|
-
scores?: Scores | undefined;
|
|
444
|
-
};
|
|
445
|
-
|
|
446
|
-
/**
|
|
447
|
-
* Search knowledge base
|
|
448
|
-
*/
|
|
449
|
-
export type SearchKnowledgeResponseBody = {
|
|
450
|
-
matches: Array<Matches>;
|
|
451
|
-
};
|
|
452
|
-
|
|
453
|
-
/** @internal */
|
|
454
|
-
export const SearchType$outboundSchema: z.ZodNativeEnum<typeof SearchType> = z
|
|
455
|
-
.nativeEnum(SearchType);
|
|
456
|
-
|
|
457
|
-
/** @internal */
|
|
458
|
-
export type SearchKnowledgeOrExists$Outbound = {
|
|
459
|
-
exists: boolean;
|
|
460
|
-
};
|
|
461
|
-
|
|
462
|
-
/** @internal */
|
|
463
|
-
export const SearchKnowledgeOrExists$outboundSchema: z.ZodType<
|
|
464
|
-
SearchKnowledgeOrExists$Outbound,
|
|
465
|
-
z.ZodTypeDef,
|
|
466
|
-
SearchKnowledgeOrExists
|
|
467
|
-
> = z.object({
|
|
468
|
-
exists: z.boolean(),
|
|
469
|
-
});
|
|
470
|
-
|
|
471
|
-
export function searchKnowledgeOrExistsToJSON(
|
|
472
|
-
searchKnowledgeOrExists: SearchKnowledgeOrExists,
|
|
473
|
-
): string {
|
|
474
|
-
return JSON.stringify(
|
|
475
|
-
SearchKnowledgeOrExists$outboundSchema.parse(searchKnowledgeOrExists),
|
|
476
|
-
);
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
/** @internal */
|
|
480
|
-
export type SearchKnowledgeOrKnowledgeNin$Outbound = string | number | boolean;
|
|
481
|
-
|
|
482
|
-
/** @internal */
|
|
483
|
-
export const SearchKnowledgeOrKnowledgeNin$outboundSchema: z.ZodType<
|
|
484
|
-
SearchKnowledgeOrKnowledgeNin$Outbound,
|
|
485
|
-
z.ZodTypeDef,
|
|
486
|
-
SearchKnowledgeOrKnowledgeNin
|
|
487
|
-
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
488
|
-
|
|
489
|
-
export function searchKnowledgeOrKnowledgeNinToJSON(
|
|
490
|
-
searchKnowledgeOrKnowledgeNin: SearchKnowledgeOrKnowledgeNin,
|
|
491
|
-
): string {
|
|
492
|
-
return JSON.stringify(
|
|
493
|
-
SearchKnowledgeOrKnowledgeNin$outboundSchema.parse(
|
|
494
|
-
searchKnowledgeOrKnowledgeNin,
|
|
495
|
-
),
|
|
496
|
-
);
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
/** @internal */
|
|
500
|
-
export type SearchKnowledgeOrNin$Outbound = {
|
|
501
|
-
nin: Array<string | number | boolean>;
|
|
502
|
-
};
|
|
503
|
-
|
|
504
|
-
/** @internal */
|
|
505
|
-
export const SearchKnowledgeOrNin$outboundSchema: z.ZodType<
|
|
506
|
-
SearchKnowledgeOrNin$Outbound,
|
|
507
|
-
z.ZodTypeDef,
|
|
508
|
-
SearchKnowledgeOrNin
|
|
509
|
-
> = z.object({
|
|
510
|
-
nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
511
|
-
});
|
|
512
|
-
|
|
513
|
-
export function searchKnowledgeOrNinToJSON(
|
|
514
|
-
searchKnowledgeOrNin: SearchKnowledgeOrNin,
|
|
515
|
-
): string {
|
|
516
|
-
return JSON.stringify(
|
|
517
|
-
SearchKnowledgeOrNin$outboundSchema.parse(searchKnowledgeOrNin),
|
|
518
|
-
);
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
/** @internal */
|
|
522
|
-
export type SearchKnowledgeOrKnowledgeIn$Outbound = string | number | boolean;
|
|
523
|
-
|
|
524
|
-
/** @internal */
|
|
525
|
-
export const SearchKnowledgeOrKnowledgeIn$outboundSchema: z.ZodType<
|
|
526
|
-
SearchKnowledgeOrKnowledgeIn$Outbound,
|
|
527
|
-
z.ZodTypeDef,
|
|
528
|
-
SearchKnowledgeOrKnowledgeIn
|
|
529
|
-
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
530
|
-
|
|
531
|
-
export function searchKnowledgeOrKnowledgeInToJSON(
|
|
532
|
-
searchKnowledgeOrKnowledgeIn: SearchKnowledgeOrKnowledgeIn,
|
|
533
|
-
): string {
|
|
534
|
-
return JSON.stringify(
|
|
535
|
-
SearchKnowledgeOrKnowledgeIn$outboundSchema.parse(
|
|
536
|
-
searchKnowledgeOrKnowledgeIn,
|
|
537
|
-
),
|
|
538
|
-
);
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
/** @internal */
|
|
542
|
-
export type SearchKnowledgeOrIn$Outbound = {
|
|
543
|
-
in: Array<string | number | boolean>;
|
|
544
|
-
};
|
|
545
|
-
|
|
546
|
-
/** @internal */
|
|
547
|
-
export const SearchKnowledgeOrIn$outboundSchema: z.ZodType<
|
|
548
|
-
SearchKnowledgeOrIn$Outbound,
|
|
549
|
-
z.ZodTypeDef,
|
|
550
|
-
SearchKnowledgeOrIn
|
|
551
|
-
> = z.object({
|
|
552
|
-
in: z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
553
|
-
});
|
|
554
|
-
|
|
555
|
-
export function searchKnowledgeOrInToJSON(
|
|
556
|
-
searchKnowledgeOrIn: SearchKnowledgeOrIn,
|
|
557
|
-
): string {
|
|
558
|
-
return JSON.stringify(
|
|
559
|
-
SearchKnowledgeOrIn$outboundSchema.parse(searchKnowledgeOrIn),
|
|
560
|
-
);
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
/** @internal */
|
|
564
|
-
export type SearchKnowledgeOrLte$Outbound = {
|
|
565
|
-
lte: number;
|
|
566
|
-
};
|
|
567
|
-
|
|
568
|
-
/** @internal */
|
|
569
|
-
export const SearchKnowledgeOrLte$outboundSchema: z.ZodType<
|
|
570
|
-
SearchKnowledgeOrLte$Outbound,
|
|
571
|
-
z.ZodTypeDef,
|
|
572
|
-
SearchKnowledgeOrLte
|
|
573
|
-
> = z.object({
|
|
574
|
-
lte: z.number(),
|
|
575
|
-
});
|
|
576
|
-
|
|
577
|
-
export function searchKnowledgeOrLteToJSON(
|
|
578
|
-
searchKnowledgeOrLte: SearchKnowledgeOrLte,
|
|
579
|
-
): string {
|
|
580
|
-
return JSON.stringify(
|
|
581
|
-
SearchKnowledgeOrLte$outboundSchema.parse(searchKnowledgeOrLte),
|
|
582
|
-
);
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
/** @internal */
|
|
586
|
-
export type SearchKnowledgeOrLt$Outbound = {
|
|
587
|
-
lt: number;
|
|
588
|
-
};
|
|
589
|
-
|
|
590
|
-
/** @internal */
|
|
591
|
-
export const SearchKnowledgeOrLt$outboundSchema: z.ZodType<
|
|
592
|
-
SearchKnowledgeOrLt$Outbound,
|
|
593
|
-
z.ZodTypeDef,
|
|
594
|
-
SearchKnowledgeOrLt
|
|
595
|
-
> = z.object({
|
|
596
|
-
lt: z.number(),
|
|
597
|
-
});
|
|
598
|
-
|
|
599
|
-
export function searchKnowledgeOrLtToJSON(
|
|
600
|
-
searchKnowledgeOrLt: SearchKnowledgeOrLt,
|
|
601
|
-
): string {
|
|
602
|
-
return JSON.stringify(
|
|
603
|
-
SearchKnowledgeOrLt$outboundSchema.parse(searchKnowledgeOrLt),
|
|
604
|
-
);
|
|
605
|
-
}
|
|
606
|
-
|
|
607
|
-
/** @internal */
|
|
608
|
-
export type SearchKnowledgeOrGte$Outbound = {
|
|
609
|
-
gte: number;
|
|
610
|
-
};
|
|
611
|
-
|
|
612
|
-
/** @internal */
|
|
613
|
-
export const SearchKnowledgeOrGte$outboundSchema: z.ZodType<
|
|
614
|
-
SearchKnowledgeOrGte$Outbound,
|
|
615
|
-
z.ZodTypeDef,
|
|
616
|
-
SearchKnowledgeOrGte
|
|
617
|
-
> = z.object({
|
|
618
|
-
gte: z.number(),
|
|
619
|
-
});
|
|
620
|
-
|
|
621
|
-
export function searchKnowledgeOrGteToJSON(
|
|
622
|
-
searchKnowledgeOrGte: SearchKnowledgeOrGte,
|
|
623
|
-
): string {
|
|
624
|
-
return JSON.stringify(
|
|
625
|
-
SearchKnowledgeOrGte$outboundSchema.parse(searchKnowledgeOrGte),
|
|
626
|
-
);
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
/** @internal */
|
|
630
|
-
export type SearchKnowledgeOrGt$Outbound = {
|
|
631
|
-
gt: number;
|
|
632
|
-
};
|
|
633
|
-
|
|
634
|
-
/** @internal */
|
|
635
|
-
export const SearchKnowledgeOrGt$outboundSchema: z.ZodType<
|
|
636
|
-
SearchKnowledgeOrGt$Outbound,
|
|
637
|
-
z.ZodTypeDef,
|
|
638
|
-
SearchKnowledgeOrGt
|
|
639
|
-
> = z.object({
|
|
640
|
-
gt: z.number(),
|
|
641
|
-
});
|
|
642
|
-
|
|
643
|
-
export function searchKnowledgeOrGtToJSON(
|
|
644
|
-
searchKnowledgeOrGt: SearchKnowledgeOrGt,
|
|
645
|
-
): string {
|
|
646
|
-
return JSON.stringify(
|
|
647
|
-
SearchKnowledgeOrGt$outboundSchema.parse(searchKnowledgeOrGt),
|
|
648
|
-
);
|
|
649
|
-
}
|
|
650
|
-
|
|
651
|
-
/** @internal */
|
|
652
|
-
export type SearchKnowledgeOrKnowledgeNe$Outbound = string | number | boolean;
|
|
653
|
-
|
|
654
|
-
/** @internal */
|
|
655
|
-
export const SearchKnowledgeOrKnowledgeNe$outboundSchema: z.ZodType<
|
|
656
|
-
SearchKnowledgeOrKnowledgeNe$Outbound,
|
|
657
|
-
z.ZodTypeDef,
|
|
658
|
-
SearchKnowledgeOrKnowledgeNe
|
|
659
|
-
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
660
|
-
|
|
661
|
-
export function searchKnowledgeOrKnowledgeNeToJSON(
|
|
662
|
-
searchKnowledgeOrKnowledgeNe: SearchKnowledgeOrKnowledgeNe,
|
|
663
|
-
): string {
|
|
664
|
-
return JSON.stringify(
|
|
665
|
-
SearchKnowledgeOrKnowledgeNe$outboundSchema.parse(
|
|
666
|
-
searchKnowledgeOrKnowledgeNe,
|
|
667
|
-
),
|
|
668
|
-
);
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
/** @internal */
|
|
672
|
-
export type SearchKnowledgeOrNe$Outbound = {
|
|
673
|
-
ne: string | number | boolean;
|
|
674
|
-
};
|
|
675
|
-
|
|
676
|
-
/** @internal */
|
|
677
|
-
export const SearchKnowledgeOrNe$outboundSchema: z.ZodType<
|
|
678
|
-
SearchKnowledgeOrNe$Outbound,
|
|
679
|
-
z.ZodTypeDef,
|
|
680
|
-
SearchKnowledgeOrNe
|
|
681
|
-
> = z.object({
|
|
682
|
-
ne: z.union([z.string(), z.number(), z.boolean()]),
|
|
683
|
-
});
|
|
684
|
-
|
|
685
|
-
export function searchKnowledgeOrNeToJSON(
|
|
686
|
-
searchKnowledgeOrNe: SearchKnowledgeOrNe,
|
|
687
|
-
): string {
|
|
688
|
-
return JSON.stringify(
|
|
689
|
-
SearchKnowledgeOrNe$outboundSchema.parse(searchKnowledgeOrNe),
|
|
690
|
-
);
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
/** @internal */
|
|
694
|
-
export type SearchKnowledgeOrKnowledgeEq$Outbound = string | number | boolean;
|
|
695
|
-
|
|
696
|
-
/** @internal */
|
|
697
|
-
export const SearchKnowledgeOrKnowledgeEq$outboundSchema: z.ZodType<
|
|
698
|
-
SearchKnowledgeOrKnowledgeEq$Outbound,
|
|
699
|
-
z.ZodTypeDef,
|
|
700
|
-
SearchKnowledgeOrKnowledgeEq
|
|
701
|
-
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
702
|
-
|
|
703
|
-
export function searchKnowledgeOrKnowledgeEqToJSON(
|
|
704
|
-
searchKnowledgeOrKnowledgeEq: SearchKnowledgeOrKnowledgeEq,
|
|
705
|
-
): string {
|
|
706
|
-
return JSON.stringify(
|
|
707
|
-
SearchKnowledgeOrKnowledgeEq$outboundSchema.parse(
|
|
708
|
-
searchKnowledgeOrKnowledgeEq,
|
|
709
|
-
),
|
|
710
|
-
);
|
|
711
|
-
}
|
|
712
|
-
|
|
713
|
-
/** @internal */
|
|
714
|
-
export type SearchKnowledgeOrEq$Outbound = {
|
|
715
|
-
eq: string | number | boolean;
|
|
716
|
-
};
|
|
717
|
-
|
|
718
|
-
/** @internal */
|
|
719
|
-
export const SearchKnowledgeOrEq$outboundSchema: z.ZodType<
|
|
720
|
-
SearchKnowledgeOrEq$Outbound,
|
|
721
|
-
z.ZodTypeDef,
|
|
722
|
-
SearchKnowledgeOrEq
|
|
723
|
-
> = z.object({
|
|
724
|
-
eq: z.union([z.string(), z.number(), z.boolean()]),
|
|
725
|
-
});
|
|
726
|
-
|
|
727
|
-
export function searchKnowledgeOrEqToJSON(
|
|
728
|
-
searchKnowledgeOrEq: SearchKnowledgeOrEq,
|
|
729
|
-
): string {
|
|
730
|
-
return JSON.stringify(
|
|
731
|
-
SearchKnowledgeOrEq$outboundSchema.parse(searchKnowledgeOrEq),
|
|
732
|
-
);
|
|
733
|
-
}
|
|
734
|
-
|
|
735
|
-
/** @internal */
|
|
736
|
-
export type SearchKnowledgeFilterByOr$Outbound =
|
|
737
|
-
| SearchKnowledgeOrEq$Outbound
|
|
738
|
-
| SearchKnowledgeOrNe$Outbound
|
|
739
|
-
| SearchKnowledgeOrGt$Outbound
|
|
740
|
-
| SearchKnowledgeOrGte$Outbound
|
|
741
|
-
| SearchKnowledgeOrLt$Outbound
|
|
742
|
-
| SearchKnowledgeOrLte$Outbound
|
|
743
|
-
| SearchKnowledgeOrIn$Outbound
|
|
744
|
-
| SearchKnowledgeOrNin$Outbound
|
|
745
|
-
| SearchKnowledgeOrExists$Outbound;
|
|
746
|
-
|
|
747
|
-
/** @internal */
|
|
748
|
-
export const SearchKnowledgeFilterByOr$outboundSchema: z.ZodType<
|
|
749
|
-
SearchKnowledgeFilterByOr$Outbound,
|
|
750
|
-
z.ZodTypeDef,
|
|
751
|
-
SearchKnowledgeFilterByOr
|
|
752
|
-
> = z.union([
|
|
753
|
-
z.lazy(() => SearchKnowledgeOrEq$outboundSchema),
|
|
754
|
-
z.lazy(() => SearchKnowledgeOrNe$outboundSchema),
|
|
755
|
-
z.lazy(() => SearchKnowledgeOrGt$outboundSchema),
|
|
756
|
-
z.lazy(() => SearchKnowledgeOrGte$outboundSchema),
|
|
757
|
-
z.lazy(() => SearchKnowledgeOrLt$outboundSchema),
|
|
758
|
-
z.lazy(() => SearchKnowledgeOrLte$outboundSchema),
|
|
759
|
-
z.lazy(() => SearchKnowledgeOrIn$outboundSchema),
|
|
760
|
-
z.lazy(() => SearchKnowledgeOrNin$outboundSchema),
|
|
761
|
-
z.lazy(() => SearchKnowledgeOrExists$outboundSchema),
|
|
762
|
-
]);
|
|
763
|
-
|
|
764
|
-
export function searchKnowledgeFilterByOrToJSON(
|
|
765
|
-
searchKnowledgeFilterByOr: SearchKnowledgeFilterByOr,
|
|
766
|
-
): string {
|
|
767
|
-
return JSON.stringify(
|
|
768
|
-
SearchKnowledgeFilterByOr$outboundSchema.parse(searchKnowledgeFilterByOr),
|
|
769
|
-
);
|
|
770
|
-
}
|
|
771
|
-
|
|
772
|
-
/** @internal */
|
|
773
|
-
export type FilterByOr$Outbound = {
|
|
774
|
-
or: Array<
|
|
775
|
-
{
|
|
776
|
-
[k: string]:
|
|
777
|
-
| SearchKnowledgeOrEq$Outbound
|
|
778
|
-
| SearchKnowledgeOrNe$Outbound
|
|
779
|
-
| SearchKnowledgeOrGt$Outbound
|
|
780
|
-
| SearchKnowledgeOrGte$Outbound
|
|
781
|
-
| SearchKnowledgeOrLt$Outbound
|
|
782
|
-
| SearchKnowledgeOrLte$Outbound
|
|
783
|
-
| SearchKnowledgeOrIn$Outbound
|
|
784
|
-
| SearchKnowledgeOrNin$Outbound
|
|
785
|
-
| SearchKnowledgeOrExists$Outbound;
|
|
786
|
-
}
|
|
787
|
-
>;
|
|
788
|
-
};
|
|
789
|
-
|
|
790
|
-
/** @internal */
|
|
791
|
-
export const FilterByOr$outboundSchema: z.ZodType<
|
|
792
|
-
FilterByOr$Outbound,
|
|
793
|
-
z.ZodTypeDef,
|
|
794
|
-
FilterByOr
|
|
795
|
-
> = z.object({
|
|
796
|
-
or: z.array(
|
|
797
|
-
z.record(z.union([
|
|
798
|
-
z.lazy(() => SearchKnowledgeOrEq$outboundSchema),
|
|
799
|
-
z.lazy(() =>
|
|
800
|
-
SearchKnowledgeOrNe$outboundSchema
|
|
801
|
-
),
|
|
802
|
-
z.lazy(() => SearchKnowledgeOrGt$outboundSchema),
|
|
803
|
-
z.lazy(() => SearchKnowledgeOrGte$outboundSchema),
|
|
804
|
-
z.lazy(() => SearchKnowledgeOrLt$outboundSchema),
|
|
805
|
-
z.lazy(() => SearchKnowledgeOrLte$outboundSchema),
|
|
806
|
-
z.lazy(() => SearchKnowledgeOrIn$outboundSchema),
|
|
807
|
-
z.lazy(() => SearchKnowledgeOrNin$outboundSchema),
|
|
808
|
-
z.lazy(() => SearchKnowledgeOrExists$outboundSchema),
|
|
809
|
-
])),
|
|
810
|
-
),
|
|
811
|
-
});
|
|
812
|
-
|
|
813
|
-
export function filterByOrToJSON(filterByOr: FilterByOr): string {
|
|
814
|
-
return JSON.stringify(FilterByOr$outboundSchema.parse(filterByOr));
|
|
815
|
-
}
|
|
816
|
-
|
|
817
|
-
/** @internal */
|
|
818
|
-
export type SearchKnowledgeAndExists$Outbound = {
|
|
819
|
-
exists: boolean;
|
|
820
|
-
};
|
|
821
|
-
|
|
822
|
-
/** @internal */
|
|
823
|
-
export const SearchKnowledgeAndExists$outboundSchema: z.ZodType<
|
|
824
|
-
SearchKnowledgeAndExists$Outbound,
|
|
825
|
-
z.ZodTypeDef,
|
|
826
|
-
SearchKnowledgeAndExists
|
|
827
|
-
> = z.object({
|
|
828
|
-
exists: z.boolean(),
|
|
829
|
-
});
|
|
830
|
-
|
|
831
|
-
export function searchKnowledgeAndExistsToJSON(
|
|
832
|
-
searchKnowledgeAndExists: SearchKnowledgeAndExists,
|
|
833
|
-
): string {
|
|
834
|
-
return JSON.stringify(
|
|
835
|
-
SearchKnowledgeAndExists$outboundSchema.parse(searchKnowledgeAndExists),
|
|
836
|
-
);
|
|
837
|
-
}
|
|
838
|
-
|
|
839
|
-
/** @internal */
|
|
840
|
-
export type SearchKnowledgeAndKnowledgeNin$Outbound = string | number | boolean;
|
|
841
|
-
|
|
842
|
-
/** @internal */
|
|
843
|
-
export const SearchKnowledgeAndKnowledgeNin$outboundSchema: z.ZodType<
|
|
844
|
-
SearchKnowledgeAndKnowledgeNin$Outbound,
|
|
845
|
-
z.ZodTypeDef,
|
|
846
|
-
SearchKnowledgeAndKnowledgeNin
|
|
847
|
-
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
848
|
-
|
|
849
|
-
export function searchKnowledgeAndKnowledgeNinToJSON(
|
|
850
|
-
searchKnowledgeAndKnowledgeNin: SearchKnowledgeAndKnowledgeNin,
|
|
851
|
-
): string {
|
|
852
|
-
return JSON.stringify(
|
|
853
|
-
SearchKnowledgeAndKnowledgeNin$outboundSchema.parse(
|
|
854
|
-
searchKnowledgeAndKnowledgeNin,
|
|
855
|
-
),
|
|
856
|
-
);
|
|
857
|
-
}
|
|
858
|
-
|
|
859
|
-
/** @internal */
|
|
860
|
-
export type SearchKnowledgeAndNin$Outbound = {
|
|
861
|
-
nin: Array<string | number | boolean>;
|
|
862
|
-
};
|
|
863
|
-
|
|
864
|
-
/** @internal */
|
|
865
|
-
export const SearchKnowledgeAndNin$outboundSchema: z.ZodType<
|
|
866
|
-
SearchKnowledgeAndNin$Outbound,
|
|
867
|
-
z.ZodTypeDef,
|
|
868
|
-
SearchKnowledgeAndNin
|
|
869
|
-
> = z.object({
|
|
870
|
-
nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
871
|
-
});
|
|
872
|
-
|
|
873
|
-
export function searchKnowledgeAndNinToJSON(
|
|
874
|
-
searchKnowledgeAndNin: SearchKnowledgeAndNin,
|
|
875
|
-
): string {
|
|
876
|
-
return JSON.stringify(
|
|
877
|
-
SearchKnowledgeAndNin$outboundSchema.parse(searchKnowledgeAndNin),
|
|
878
|
-
);
|
|
879
|
-
}
|
|
880
|
-
|
|
881
|
-
/** @internal */
|
|
882
|
-
export type SearchKnowledgeAndKnowledgeIn$Outbound = string | number | boolean;
|
|
883
|
-
|
|
884
|
-
/** @internal */
|
|
885
|
-
export const SearchKnowledgeAndKnowledgeIn$outboundSchema: z.ZodType<
|
|
886
|
-
SearchKnowledgeAndKnowledgeIn$Outbound,
|
|
887
|
-
z.ZodTypeDef,
|
|
888
|
-
SearchKnowledgeAndKnowledgeIn
|
|
889
|
-
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
890
|
-
|
|
891
|
-
export function searchKnowledgeAndKnowledgeInToJSON(
|
|
892
|
-
searchKnowledgeAndKnowledgeIn: SearchKnowledgeAndKnowledgeIn,
|
|
893
|
-
): string {
|
|
894
|
-
return JSON.stringify(
|
|
895
|
-
SearchKnowledgeAndKnowledgeIn$outboundSchema.parse(
|
|
896
|
-
searchKnowledgeAndKnowledgeIn,
|
|
897
|
-
),
|
|
898
|
-
);
|
|
899
|
-
}
|
|
900
|
-
|
|
901
|
-
/** @internal */
|
|
902
|
-
export type SearchKnowledgeAndIn$Outbound = {
|
|
903
|
-
in: Array<string | number | boolean>;
|
|
904
|
-
};
|
|
905
|
-
|
|
906
|
-
/** @internal */
|
|
907
|
-
export const SearchKnowledgeAndIn$outboundSchema: z.ZodType<
|
|
908
|
-
SearchKnowledgeAndIn$Outbound,
|
|
909
|
-
z.ZodTypeDef,
|
|
910
|
-
SearchKnowledgeAndIn
|
|
911
|
-
> = z.object({
|
|
912
|
-
in: z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
913
|
-
});
|
|
914
|
-
|
|
915
|
-
export function searchKnowledgeAndInToJSON(
|
|
916
|
-
searchKnowledgeAndIn: SearchKnowledgeAndIn,
|
|
917
|
-
): string {
|
|
918
|
-
return JSON.stringify(
|
|
919
|
-
SearchKnowledgeAndIn$outboundSchema.parse(searchKnowledgeAndIn),
|
|
920
|
-
);
|
|
921
|
-
}
|
|
922
|
-
|
|
923
|
-
/** @internal */
|
|
924
|
-
export type SearchKnowledgeAndLte$Outbound = {
|
|
925
|
-
lte: number;
|
|
926
|
-
};
|
|
927
|
-
|
|
928
|
-
/** @internal */
|
|
929
|
-
export const SearchKnowledgeAndLte$outboundSchema: z.ZodType<
|
|
930
|
-
SearchKnowledgeAndLte$Outbound,
|
|
931
|
-
z.ZodTypeDef,
|
|
932
|
-
SearchKnowledgeAndLte
|
|
933
|
-
> = z.object({
|
|
934
|
-
lte: z.number(),
|
|
935
|
-
});
|
|
936
|
-
|
|
937
|
-
export function searchKnowledgeAndLteToJSON(
|
|
938
|
-
searchKnowledgeAndLte: SearchKnowledgeAndLte,
|
|
939
|
-
): string {
|
|
940
|
-
return JSON.stringify(
|
|
941
|
-
SearchKnowledgeAndLte$outboundSchema.parse(searchKnowledgeAndLte),
|
|
942
|
-
);
|
|
943
|
-
}
|
|
944
|
-
|
|
945
|
-
/** @internal */
|
|
946
|
-
export type SearchKnowledgeAndLt$Outbound = {
|
|
947
|
-
lt: number;
|
|
948
|
-
};
|
|
949
|
-
|
|
950
|
-
/** @internal */
|
|
951
|
-
export const SearchKnowledgeAndLt$outboundSchema: z.ZodType<
|
|
952
|
-
SearchKnowledgeAndLt$Outbound,
|
|
953
|
-
z.ZodTypeDef,
|
|
954
|
-
SearchKnowledgeAndLt
|
|
955
|
-
> = z.object({
|
|
956
|
-
lt: z.number(),
|
|
957
|
-
});
|
|
958
|
-
|
|
959
|
-
export function searchKnowledgeAndLtToJSON(
|
|
960
|
-
searchKnowledgeAndLt: SearchKnowledgeAndLt,
|
|
961
|
-
): string {
|
|
962
|
-
return JSON.stringify(
|
|
963
|
-
SearchKnowledgeAndLt$outboundSchema.parse(searchKnowledgeAndLt),
|
|
964
|
-
);
|
|
965
|
-
}
|
|
966
|
-
|
|
967
|
-
/** @internal */
|
|
968
|
-
export type SearchKnowledgeAndGte$Outbound = {
|
|
969
|
-
gte: number;
|
|
970
|
-
};
|
|
971
|
-
|
|
972
|
-
/** @internal */
|
|
973
|
-
export const SearchKnowledgeAndGte$outboundSchema: z.ZodType<
|
|
974
|
-
SearchKnowledgeAndGte$Outbound,
|
|
975
|
-
z.ZodTypeDef,
|
|
976
|
-
SearchKnowledgeAndGte
|
|
977
|
-
> = z.object({
|
|
978
|
-
gte: z.number(),
|
|
979
|
-
});
|
|
980
|
-
|
|
981
|
-
export function searchKnowledgeAndGteToJSON(
|
|
982
|
-
searchKnowledgeAndGte: SearchKnowledgeAndGte,
|
|
983
|
-
): string {
|
|
984
|
-
return JSON.stringify(
|
|
985
|
-
SearchKnowledgeAndGte$outboundSchema.parse(searchKnowledgeAndGte),
|
|
986
|
-
);
|
|
987
|
-
}
|
|
988
|
-
|
|
989
|
-
/** @internal */
|
|
990
|
-
export type SearchKnowledgeAndGt$Outbound = {
|
|
991
|
-
gt: number;
|
|
992
|
-
};
|
|
993
|
-
|
|
994
|
-
/** @internal */
|
|
995
|
-
export const SearchKnowledgeAndGt$outboundSchema: z.ZodType<
|
|
996
|
-
SearchKnowledgeAndGt$Outbound,
|
|
997
|
-
z.ZodTypeDef,
|
|
998
|
-
SearchKnowledgeAndGt
|
|
999
|
-
> = z.object({
|
|
1000
|
-
gt: z.number(),
|
|
1001
|
-
});
|
|
1002
|
-
|
|
1003
|
-
export function searchKnowledgeAndGtToJSON(
|
|
1004
|
-
searchKnowledgeAndGt: SearchKnowledgeAndGt,
|
|
1005
|
-
): string {
|
|
1006
|
-
return JSON.stringify(
|
|
1007
|
-
SearchKnowledgeAndGt$outboundSchema.parse(searchKnowledgeAndGt),
|
|
1008
|
-
);
|
|
1009
|
-
}
|
|
1010
|
-
|
|
1011
|
-
/** @internal */
|
|
1012
|
-
export type SearchKnowledgeAndKnowledgeNe$Outbound = string | number | boolean;
|
|
1013
|
-
|
|
1014
|
-
/** @internal */
|
|
1015
|
-
export const SearchKnowledgeAndKnowledgeNe$outboundSchema: z.ZodType<
|
|
1016
|
-
SearchKnowledgeAndKnowledgeNe$Outbound,
|
|
1017
|
-
z.ZodTypeDef,
|
|
1018
|
-
SearchKnowledgeAndKnowledgeNe
|
|
1019
|
-
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
1020
|
-
|
|
1021
|
-
export function searchKnowledgeAndKnowledgeNeToJSON(
|
|
1022
|
-
searchKnowledgeAndKnowledgeNe: SearchKnowledgeAndKnowledgeNe,
|
|
1023
|
-
): string {
|
|
1024
|
-
return JSON.stringify(
|
|
1025
|
-
SearchKnowledgeAndKnowledgeNe$outboundSchema.parse(
|
|
1026
|
-
searchKnowledgeAndKnowledgeNe,
|
|
1027
|
-
),
|
|
1028
|
-
);
|
|
1029
|
-
}
|
|
1030
|
-
|
|
1031
|
-
/** @internal */
|
|
1032
|
-
export type SearchKnowledgeAndNe$Outbound = {
|
|
1033
|
-
ne: string | number | boolean;
|
|
1034
|
-
};
|
|
1035
|
-
|
|
1036
|
-
/** @internal */
|
|
1037
|
-
export const SearchKnowledgeAndNe$outboundSchema: z.ZodType<
|
|
1038
|
-
SearchKnowledgeAndNe$Outbound,
|
|
1039
|
-
z.ZodTypeDef,
|
|
1040
|
-
SearchKnowledgeAndNe
|
|
1041
|
-
> = z.object({
|
|
1042
|
-
ne: z.union([z.string(), z.number(), z.boolean()]),
|
|
1043
|
-
});
|
|
1044
|
-
|
|
1045
|
-
export function searchKnowledgeAndNeToJSON(
|
|
1046
|
-
searchKnowledgeAndNe: SearchKnowledgeAndNe,
|
|
1047
|
-
): string {
|
|
1048
|
-
return JSON.stringify(
|
|
1049
|
-
SearchKnowledgeAndNe$outboundSchema.parse(searchKnowledgeAndNe),
|
|
1050
|
-
);
|
|
1051
|
-
}
|
|
1052
|
-
|
|
1053
|
-
/** @internal */
|
|
1054
|
-
export type SearchKnowledgeAndKnowledgeEq$Outbound = string | number | boolean;
|
|
1055
|
-
|
|
1056
|
-
/** @internal */
|
|
1057
|
-
export const SearchKnowledgeAndKnowledgeEq$outboundSchema: z.ZodType<
|
|
1058
|
-
SearchKnowledgeAndKnowledgeEq$Outbound,
|
|
1059
|
-
z.ZodTypeDef,
|
|
1060
|
-
SearchKnowledgeAndKnowledgeEq
|
|
1061
|
-
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
1062
|
-
|
|
1063
|
-
export function searchKnowledgeAndKnowledgeEqToJSON(
|
|
1064
|
-
searchKnowledgeAndKnowledgeEq: SearchKnowledgeAndKnowledgeEq,
|
|
1065
|
-
): string {
|
|
1066
|
-
return JSON.stringify(
|
|
1067
|
-
SearchKnowledgeAndKnowledgeEq$outboundSchema.parse(
|
|
1068
|
-
searchKnowledgeAndKnowledgeEq,
|
|
1069
|
-
),
|
|
1070
|
-
);
|
|
1071
|
-
}
|
|
1072
|
-
|
|
1073
|
-
/** @internal */
|
|
1074
|
-
export type SearchKnowledgeAndEq$Outbound = {
|
|
1075
|
-
eq: string | number | boolean;
|
|
1076
|
-
};
|
|
1077
|
-
|
|
1078
|
-
/** @internal */
|
|
1079
|
-
export const SearchKnowledgeAndEq$outboundSchema: z.ZodType<
|
|
1080
|
-
SearchKnowledgeAndEq$Outbound,
|
|
1081
|
-
z.ZodTypeDef,
|
|
1082
|
-
SearchKnowledgeAndEq
|
|
1083
|
-
> = z.object({
|
|
1084
|
-
eq: z.union([z.string(), z.number(), z.boolean()]),
|
|
1085
|
-
});
|
|
1086
|
-
|
|
1087
|
-
export function searchKnowledgeAndEqToJSON(
|
|
1088
|
-
searchKnowledgeAndEq: SearchKnowledgeAndEq,
|
|
1089
|
-
): string {
|
|
1090
|
-
return JSON.stringify(
|
|
1091
|
-
SearchKnowledgeAndEq$outboundSchema.parse(searchKnowledgeAndEq),
|
|
1092
|
-
);
|
|
1093
|
-
}
|
|
1094
|
-
|
|
1095
|
-
/** @internal */
|
|
1096
|
-
export type SearchKnowledgeFilterByAnd$Outbound =
|
|
1097
|
-
| SearchKnowledgeAndEq$Outbound
|
|
1098
|
-
| SearchKnowledgeAndNe$Outbound
|
|
1099
|
-
| SearchKnowledgeAndGt$Outbound
|
|
1100
|
-
| SearchKnowledgeAndGte$Outbound
|
|
1101
|
-
| SearchKnowledgeAndLt$Outbound
|
|
1102
|
-
| SearchKnowledgeAndLte$Outbound
|
|
1103
|
-
| SearchKnowledgeAndIn$Outbound
|
|
1104
|
-
| SearchKnowledgeAndNin$Outbound
|
|
1105
|
-
| SearchKnowledgeAndExists$Outbound;
|
|
1106
|
-
|
|
1107
|
-
/** @internal */
|
|
1108
|
-
export const SearchKnowledgeFilterByAnd$outboundSchema: z.ZodType<
|
|
1109
|
-
SearchKnowledgeFilterByAnd$Outbound,
|
|
1110
|
-
z.ZodTypeDef,
|
|
1111
|
-
SearchKnowledgeFilterByAnd
|
|
1112
|
-
> = z.union([
|
|
1113
|
-
z.lazy(() => SearchKnowledgeAndEq$outboundSchema),
|
|
1114
|
-
z.lazy(() => SearchKnowledgeAndNe$outboundSchema),
|
|
1115
|
-
z.lazy(() => SearchKnowledgeAndGt$outboundSchema),
|
|
1116
|
-
z.lazy(() => SearchKnowledgeAndGte$outboundSchema),
|
|
1117
|
-
z.lazy(() => SearchKnowledgeAndLt$outboundSchema),
|
|
1118
|
-
z.lazy(() => SearchKnowledgeAndLte$outboundSchema),
|
|
1119
|
-
z.lazy(() => SearchKnowledgeAndIn$outboundSchema),
|
|
1120
|
-
z.lazy(() => SearchKnowledgeAndNin$outboundSchema),
|
|
1121
|
-
z.lazy(() => SearchKnowledgeAndExists$outboundSchema),
|
|
1122
|
-
]);
|
|
1123
|
-
|
|
1124
|
-
export function searchKnowledgeFilterByAndToJSON(
|
|
1125
|
-
searchKnowledgeFilterByAnd: SearchKnowledgeFilterByAnd,
|
|
1126
|
-
): string {
|
|
1127
|
-
return JSON.stringify(
|
|
1128
|
-
SearchKnowledgeFilterByAnd$outboundSchema.parse(searchKnowledgeFilterByAnd),
|
|
1129
|
-
);
|
|
1130
|
-
}
|
|
1131
|
-
|
|
1132
|
-
/** @internal */
|
|
1133
|
-
export type FilterByAnd$Outbound = {
|
|
1134
|
-
and: Array<
|
|
1135
|
-
{
|
|
1136
|
-
[k: string]:
|
|
1137
|
-
| SearchKnowledgeAndEq$Outbound
|
|
1138
|
-
| SearchKnowledgeAndNe$Outbound
|
|
1139
|
-
| SearchKnowledgeAndGt$Outbound
|
|
1140
|
-
| SearchKnowledgeAndGte$Outbound
|
|
1141
|
-
| SearchKnowledgeAndLt$Outbound
|
|
1142
|
-
| SearchKnowledgeAndLte$Outbound
|
|
1143
|
-
| SearchKnowledgeAndIn$Outbound
|
|
1144
|
-
| SearchKnowledgeAndNin$Outbound
|
|
1145
|
-
| SearchKnowledgeAndExists$Outbound;
|
|
1146
|
-
}
|
|
1147
|
-
>;
|
|
1148
|
-
};
|
|
1149
|
-
|
|
1150
|
-
/** @internal */
|
|
1151
|
-
export const FilterByAnd$outboundSchema: z.ZodType<
|
|
1152
|
-
FilterByAnd$Outbound,
|
|
1153
|
-
z.ZodTypeDef,
|
|
1154
|
-
FilterByAnd
|
|
1155
|
-
> = z.object({
|
|
1156
|
-
and: z.array(
|
|
1157
|
-
z.record(z.union([
|
|
1158
|
-
z.lazy(() => SearchKnowledgeAndEq$outboundSchema),
|
|
1159
|
-
z.lazy(() =>
|
|
1160
|
-
SearchKnowledgeAndNe$outboundSchema
|
|
1161
|
-
),
|
|
1162
|
-
z.lazy(() => SearchKnowledgeAndGt$outboundSchema),
|
|
1163
|
-
z.lazy(() => SearchKnowledgeAndGte$outboundSchema),
|
|
1164
|
-
z.lazy(() => SearchKnowledgeAndLt$outboundSchema),
|
|
1165
|
-
z.lazy(() => SearchKnowledgeAndLte$outboundSchema),
|
|
1166
|
-
z.lazy(() => SearchKnowledgeAndIn$outboundSchema),
|
|
1167
|
-
z.lazy(() => SearchKnowledgeAndNin$outboundSchema),
|
|
1168
|
-
z.lazy(() => SearchKnowledgeAndExists$outboundSchema),
|
|
1169
|
-
])),
|
|
1170
|
-
),
|
|
1171
|
-
});
|
|
1172
|
-
|
|
1173
|
-
export function filterByAndToJSON(filterByAnd: FilterByAnd): string {
|
|
1174
|
-
return JSON.stringify(FilterByAnd$outboundSchema.parse(filterByAnd));
|
|
1175
|
-
}
|
|
1176
|
-
|
|
1177
|
-
/** @internal */
|
|
1178
|
-
export type SearchKnowledge1Exists$Outbound = {
|
|
1179
|
-
exists: boolean;
|
|
1180
|
-
};
|
|
1181
|
-
|
|
1182
|
-
/** @internal */
|
|
1183
|
-
export const SearchKnowledge1Exists$outboundSchema: z.ZodType<
|
|
1184
|
-
SearchKnowledge1Exists$Outbound,
|
|
1185
|
-
z.ZodTypeDef,
|
|
1186
|
-
SearchKnowledge1Exists
|
|
1187
|
-
> = z.object({
|
|
1188
|
-
exists: z.boolean(),
|
|
1189
|
-
});
|
|
1190
|
-
|
|
1191
|
-
export function searchKnowledge1ExistsToJSON(
|
|
1192
|
-
searchKnowledge1Exists: SearchKnowledge1Exists,
|
|
1193
|
-
): string {
|
|
1194
|
-
return JSON.stringify(
|
|
1195
|
-
SearchKnowledge1Exists$outboundSchema.parse(searchKnowledge1Exists),
|
|
1196
|
-
);
|
|
1197
|
-
}
|
|
1198
|
-
|
|
1199
|
-
/** @internal */
|
|
1200
|
-
export type SearchKnowledge1KnowledgeNin$Outbound = string | number | boolean;
|
|
1201
|
-
|
|
1202
|
-
/** @internal */
|
|
1203
|
-
export const SearchKnowledge1KnowledgeNin$outboundSchema: z.ZodType<
|
|
1204
|
-
SearchKnowledge1KnowledgeNin$Outbound,
|
|
1205
|
-
z.ZodTypeDef,
|
|
1206
|
-
SearchKnowledge1KnowledgeNin
|
|
1207
|
-
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
1208
|
-
|
|
1209
|
-
export function searchKnowledge1KnowledgeNinToJSON(
|
|
1210
|
-
searchKnowledge1KnowledgeNin: SearchKnowledge1KnowledgeNin,
|
|
1211
|
-
): string {
|
|
1212
|
-
return JSON.stringify(
|
|
1213
|
-
SearchKnowledge1KnowledgeNin$outboundSchema.parse(
|
|
1214
|
-
searchKnowledge1KnowledgeNin,
|
|
1215
|
-
),
|
|
1216
|
-
);
|
|
1217
|
-
}
|
|
1218
|
-
|
|
1219
|
-
/** @internal */
|
|
1220
|
-
export type SearchKnowledge1Nin$Outbound = {
|
|
1221
|
-
nin: Array<string | number | boolean>;
|
|
1222
|
-
};
|
|
1223
|
-
|
|
1224
|
-
/** @internal */
|
|
1225
|
-
export const SearchKnowledge1Nin$outboundSchema: z.ZodType<
|
|
1226
|
-
SearchKnowledge1Nin$Outbound,
|
|
1227
|
-
z.ZodTypeDef,
|
|
1228
|
-
SearchKnowledge1Nin
|
|
1229
|
-
> = z.object({
|
|
1230
|
-
nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
1231
|
-
});
|
|
1232
|
-
|
|
1233
|
-
export function searchKnowledge1NinToJSON(
|
|
1234
|
-
searchKnowledge1Nin: SearchKnowledge1Nin,
|
|
1235
|
-
): string {
|
|
1236
|
-
return JSON.stringify(
|
|
1237
|
-
SearchKnowledge1Nin$outboundSchema.parse(searchKnowledge1Nin),
|
|
1238
|
-
);
|
|
1239
|
-
}
|
|
1240
|
-
|
|
1241
|
-
/** @internal */
|
|
1242
|
-
export type SearchKnowledge1KnowledgeIn$Outbound = string | number | boolean;
|
|
1243
|
-
|
|
1244
|
-
/** @internal */
|
|
1245
|
-
export const SearchKnowledge1KnowledgeIn$outboundSchema: z.ZodType<
|
|
1246
|
-
SearchKnowledge1KnowledgeIn$Outbound,
|
|
1247
|
-
z.ZodTypeDef,
|
|
1248
|
-
SearchKnowledge1KnowledgeIn
|
|
1249
|
-
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
1250
|
-
|
|
1251
|
-
export function searchKnowledge1KnowledgeInToJSON(
|
|
1252
|
-
searchKnowledge1KnowledgeIn: SearchKnowledge1KnowledgeIn,
|
|
1253
|
-
): string {
|
|
1254
|
-
return JSON.stringify(
|
|
1255
|
-
SearchKnowledge1KnowledgeIn$outboundSchema.parse(
|
|
1256
|
-
searchKnowledge1KnowledgeIn,
|
|
1257
|
-
),
|
|
1258
|
-
);
|
|
1259
|
-
}
|
|
1260
|
-
|
|
1261
|
-
/** @internal */
|
|
1262
|
-
export type SearchKnowledge1In$Outbound = {
|
|
1263
|
-
in: Array<string | number | boolean>;
|
|
1264
|
-
};
|
|
1265
|
-
|
|
1266
|
-
/** @internal */
|
|
1267
|
-
export const SearchKnowledge1In$outboundSchema: z.ZodType<
|
|
1268
|
-
SearchKnowledge1In$Outbound,
|
|
1269
|
-
z.ZodTypeDef,
|
|
1270
|
-
SearchKnowledge1In
|
|
1271
|
-
> = z.object({
|
|
1272
|
-
in: z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
1273
|
-
});
|
|
1274
|
-
|
|
1275
|
-
export function searchKnowledge1InToJSON(
|
|
1276
|
-
searchKnowledge1In: SearchKnowledge1In,
|
|
1277
|
-
): string {
|
|
1278
|
-
return JSON.stringify(
|
|
1279
|
-
SearchKnowledge1In$outboundSchema.parse(searchKnowledge1In),
|
|
1280
|
-
);
|
|
1281
|
-
}
|
|
1282
|
-
|
|
1283
|
-
/** @internal */
|
|
1284
|
-
export type SearchKnowledge1Lte$Outbound = {
|
|
1285
|
-
lte: number;
|
|
1286
|
-
};
|
|
1287
|
-
|
|
1288
|
-
/** @internal */
|
|
1289
|
-
export const SearchKnowledge1Lte$outboundSchema: z.ZodType<
|
|
1290
|
-
SearchKnowledge1Lte$Outbound,
|
|
1291
|
-
z.ZodTypeDef,
|
|
1292
|
-
SearchKnowledge1Lte
|
|
1293
|
-
> = z.object({
|
|
1294
|
-
lte: z.number(),
|
|
1295
|
-
});
|
|
1296
|
-
|
|
1297
|
-
export function searchKnowledge1LteToJSON(
|
|
1298
|
-
searchKnowledge1Lte: SearchKnowledge1Lte,
|
|
1299
|
-
): string {
|
|
1300
|
-
return JSON.stringify(
|
|
1301
|
-
SearchKnowledge1Lte$outboundSchema.parse(searchKnowledge1Lte),
|
|
1302
|
-
);
|
|
1303
|
-
}
|
|
1304
|
-
|
|
1305
|
-
/** @internal */
|
|
1306
|
-
export type SearchKnowledge1Lt$Outbound = {
|
|
1307
|
-
lt: number;
|
|
1308
|
-
};
|
|
1309
|
-
|
|
1310
|
-
/** @internal */
|
|
1311
|
-
export const SearchKnowledge1Lt$outboundSchema: z.ZodType<
|
|
1312
|
-
SearchKnowledge1Lt$Outbound,
|
|
1313
|
-
z.ZodTypeDef,
|
|
1314
|
-
SearchKnowledge1Lt
|
|
1315
|
-
> = z.object({
|
|
1316
|
-
lt: z.number(),
|
|
1317
|
-
});
|
|
1318
|
-
|
|
1319
|
-
export function searchKnowledge1LtToJSON(
|
|
1320
|
-
searchKnowledge1Lt: SearchKnowledge1Lt,
|
|
1321
|
-
): string {
|
|
1322
|
-
return JSON.stringify(
|
|
1323
|
-
SearchKnowledge1Lt$outboundSchema.parse(searchKnowledge1Lt),
|
|
1324
|
-
);
|
|
1325
|
-
}
|
|
1326
|
-
|
|
1327
|
-
/** @internal */
|
|
1328
|
-
export type SearchKnowledge1Gte$Outbound = {
|
|
1329
|
-
gte: number;
|
|
1330
|
-
};
|
|
1331
|
-
|
|
1332
|
-
/** @internal */
|
|
1333
|
-
export const SearchKnowledge1Gte$outboundSchema: z.ZodType<
|
|
1334
|
-
SearchKnowledge1Gte$Outbound,
|
|
1335
|
-
z.ZodTypeDef,
|
|
1336
|
-
SearchKnowledge1Gte
|
|
1337
|
-
> = z.object({
|
|
1338
|
-
gte: z.number(),
|
|
1339
|
-
});
|
|
1340
|
-
|
|
1341
|
-
export function searchKnowledge1GteToJSON(
|
|
1342
|
-
searchKnowledge1Gte: SearchKnowledge1Gte,
|
|
1343
|
-
): string {
|
|
1344
|
-
return JSON.stringify(
|
|
1345
|
-
SearchKnowledge1Gte$outboundSchema.parse(searchKnowledge1Gte),
|
|
1346
|
-
);
|
|
1347
|
-
}
|
|
1348
|
-
|
|
1349
|
-
/** @internal */
|
|
1350
|
-
export type SearchKnowledge1Gt$Outbound = {
|
|
1351
|
-
gt: number;
|
|
1352
|
-
};
|
|
1353
|
-
|
|
1354
|
-
/** @internal */
|
|
1355
|
-
export const SearchKnowledge1Gt$outboundSchema: z.ZodType<
|
|
1356
|
-
SearchKnowledge1Gt$Outbound,
|
|
1357
|
-
z.ZodTypeDef,
|
|
1358
|
-
SearchKnowledge1Gt
|
|
1359
|
-
> = z.object({
|
|
1360
|
-
gt: z.number(),
|
|
1361
|
-
});
|
|
1362
|
-
|
|
1363
|
-
export function searchKnowledge1GtToJSON(
|
|
1364
|
-
searchKnowledge1Gt: SearchKnowledge1Gt,
|
|
1365
|
-
): string {
|
|
1366
|
-
return JSON.stringify(
|
|
1367
|
-
SearchKnowledge1Gt$outboundSchema.parse(searchKnowledge1Gt),
|
|
1368
|
-
);
|
|
1369
|
-
}
|
|
1370
|
-
|
|
1371
|
-
/** @internal */
|
|
1372
|
-
export type SearchKnowledge1KnowledgeNe$Outbound = string | number | boolean;
|
|
1373
|
-
|
|
1374
|
-
/** @internal */
|
|
1375
|
-
export const SearchKnowledge1KnowledgeNe$outboundSchema: z.ZodType<
|
|
1376
|
-
SearchKnowledge1KnowledgeNe$Outbound,
|
|
1377
|
-
z.ZodTypeDef,
|
|
1378
|
-
SearchKnowledge1KnowledgeNe
|
|
1379
|
-
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
1380
|
-
|
|
1381
|
-
export function searchKnowledge1KnowledgeNeToJSON(
|
|
1382
|
-
searchKnowledge1KnowledgeNe: SearchKnowledge1KnowledgeNe,
|
|
1383
|
-
): string {
|
|
1384
|
-
return JSON.stringify(
|
|
1385
|
-
SearchKnowledge1KnowledgeNe$outboundSchema.parse(
|
|
1386
|
-
searchKnowledge1KnowledgeNe,
|
|
1387
|
-
),
|
|
1388
|
-
);
|
|
1389
|
-
}
|
|
1390
|
-
|
|
1391
|
-
/** @internal */
|
|
1392
|
-
export type SearchKnowledge1Ne$Outbound = {
|
|
1393
|
-
ne: string | number | boolean;
|
|
1394
|
-
};
|
|
1395
|
-
|
|
1396
|
-
/** @internal */
|
|
1397
|
-
export const SearchKnowledge1Ne$outboundSchema: z.ZodType<
|
|
1398
|
-
SearchKnowledge1Ne$Outbound,
|
|
1399
|
-
z.ZodTypeDef,
|
|
1400
|
-
SearchKnowledge1Ne
|
|
1401
|
-
> = z.object({
|
|
1402
|
-
ne: z.union([z.string(), z.number(), z.boolean()]),
|
|
1403
|
-
});
|
|
1404
|
-
|
|
1405
|
-
export function searchKnowledge1NeToJSON(
|
|
1406
|
-
searchKnowledge1Ne: SearchKnowledge1Ne,
|
|
1407
|
-
): string {
|
|
1408
|
-
return JSON.stringify(
|
|
1409
|
-
SearchKnowledge1Ne$outboundSchema.parse(searchKnowledge1Ne),
|
|
1410
|
-
);
|
|
1411
|
-
}
|
|
1412
|
-
|
|
1413
|
-
/** @internal */
|
|
1414
|
-
export type SearchKnowledge1KnowledgeEq$Outbound = string | number | boolean;
|
|
1415
|
-
|
|
1416
|
-
/** @internal */
|
|
1417
|
-
export const SearchKnowledge1KnowledgeEq$outboundSchema: z.ZodType<
|
|
1418
|
-
SearchKnowledge1KnowledgeEq$Outbound,
|
|
1419
|
-
z.ZodTypeDef,
|
|
1420
|
-
SearchKnowledge1KnowledgeEq
|
|
1421
|
-
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
1422
|
-
|
|
1423
|
-
export function searchKnowledge1KnowledgeEqToJSON(
|
|
1424
|
-
searchKnowledge1KnowledgeEq: SearchKnowledge1KnowledgeEq,
|
|
1425
|
-
): string {
|
|
1426
|
-
return JSON.stringify(
|
|
1427
|
-
SearchKnowledge1KnowledgeEq$outboundSchema.parse(
|
|
1428
|
-
searchKnowledge1KnowledgeEq,
|
|
1429
|
-
),
|
|
1430
|
-
);
|
|
1431
|
-
}
|
|
1432
|
-
|
|
1433
|
-
/** @internal */
|
|
1434
|
-
export type SearchKnowledge1Eq$Outbound = {
|
|
1435
|
-
eq: string | number | boolean;
|
|
1436
|
-
};
|
|
1437
|
-
|
|
1438
|
-
/** @internal */
|
|
1439
|
-
export const SearchKnowledge1Eq$outboundSchema: z.ZodType<
|
|
1440
|
-
SearchKnowledge1Eq$Outbound,
|
|
1441
|
-
z.ZodTypeDef,
|
|
1442
|
-
SearchKnowledge1Eq
|
|
1443
|
-
> = z.object({
|
|
1444
|
-
eq: z.union([z.string(), z.number(), z.boolean()]),
|
|
1445
|
-
});
|
|
1446
|
-
|
|
1447
|
-
export function searchKnowledge1EqToJSON(
|
|
1448
|
-
searchKnowledge1Eq: SearchKnowledge1Eq,
|
|
1449
|
-
): string {
|
|
1450
|
-
return JSON.stringify(
|
|
1451
|
-
SearchKnowledge1Eq$outboundSchema.parse(searchKnowledge1Eq),
|
|
1452
|
-
);
|
|
1453
|
-
}
|
|
1454
|
-
|
|
1455
|
-
/** @internal */
|
|
1456
|
-
export type FilterBy1$Outbound =
|
|
1457
|
-
| SearchKnowledge1Eq$Outbound
|
|
1458
|
-
| SearchKnowledge1Ne$Outbound
|
|
1459
|
-
| SearchKnowledge1Gt$Outbound
|
|
1460
|
-
| SearchKnowledge1Gte$Outbound
|
|
1461
|
-
| SearchKnowledge1Lt$Outbound
|
|
1462
|
-
| SearchKnowledge1Lte$Outbound
|
|
1463
|
-
| SearchKnowledge1In$Outbound
|
|
1464
|
-
| SearchKnowledge1Nin$Outbound
|
|
1465
|
-
| SearchKnowledge1Exists$Outbound;
|
|
1466
|
-
|
|
1467
|
-
/** @internal */
|
|
1468
|
-
export const FilterBy1$outboundSchema: z.ZodType<
|
|
1469
|
-
FilterBy1$Outbound,
|
|
1470
|
-
z.ZodTypeDef,
|
|
1471
|
-
FilterBy1
|
|
1472
|
-
> = z.union([
|
|
1473
|
-
z.lazy(() => SearchKnowledge1Eq$outboundSchema),
|
|
1474
|
-
z.lazy(() => SearchKnowledge1Ne$outboundSchema),
|
|
1475
|
-
z.lazy(() => SearchKnowledge1Gt$outboundSchema),
|
|
1476
|
-
z.lazy(() => SearchKnowledge1Gte$outboundSchema),
|
|
1477
|
-
z.lazy(() => SearchKnowledge1Lt$outboundSchema),
|
|
1478
|
-
z.lazy(() => SearchKnowledge1Lte$outboundSchema),
|
|
1479
|
-
z.lazy(() => SearchKnowledge1In$outboundSchema),
|
|
1480
|
-
z.lazy(() => SearchKnowledge1Nin$outboundSchema),
|
|
1481
|
-
z.lazy(() => SearchKnowledge1Exists$outboundSchema),
|
|
1482
|
-
]);
|
|
1483
|
-
|
|
1484
|
-
export function filterBy1ToJSON(filterBy1: FilterBy1): string {
|
|
1485
|
-
return JSON.stringify(FilterBy1$outboundSchema.parse(filterBy1));
|
|
1486
|
-
}
|
|
1487
|
-
|
|
1488
|
-
/** @internal */
|
|
1489
|
-
export type FilterBy$Outbound = FilterByAnd$Outbound | FilterByOr$Outbound | {
|
|
1490
|
-
[k: string]:
|
|
1491
|
-
| SearchKnowledge1Eq$Outbound
|
|
1492
|
-
| SearchKnowledge1Ne$Outbound
|
|
1493
|
-
| SearchKnowledge1Gt$Outbound
|
|
1494
|
-
| SearchKnowledge1Gte$Outbound
|
|
1495
|
-
| SearchKnowledge1Lt$Outbound
|
|
1496
|
-
| SearchKnowledge1Lte$Outbound
|
|
1497
|
-
| SearchKnowledge1In$Outbound
|
|
1498
|
-
| SearchKnowledge1Nin$Outbound
|
|
1499
|
-
| SearchKnowledge1Exists$Outbound;
|
|
1500
|
-
};
|
|
1501
|
-
|
|
1502
|
-
/** @internal */
|
|
1503
|
-
export const FilterBy$outboundSchema: z.ZodType<
|
|
1504
|
-
FilterBy$Outbound,
|
|
1505
|
-
z.ZodTypeDef,
|
|
1506
|
-
FilterBy
|
|
1507
|
-
> = z.union([
|
|
1508
|
-
z.lazy(() => FilterByAnd$outboundSchema),
|
|
1509
|
-
z.lazy(() => FilterByOr$outboundSchema),
|
|
1510
|
-
z.record(z.union([
|
|
1511
|
-
z.lazy(() => SearchKnowledge1Eq$outboundSchema),
|
|
1512
|
-
z.lazy(() => SearchKnowledge1Ne$outboundSchema),
|
|
1513
|
-
z.lazy(() => SearchKnowledge1Gt$outboundSchema),
|
|
1514
|
-
z.lazy(() => SearchKnowledge1Gte$outboundSchema),
|
|
1515
|
-
z.lazy(() => SearchKnowledge1Lt$outboundSchema),
|
|
1516
|
-
z.lazy(() => SearchKnowledge1Lte$outboundSchema),
|
|
1517
|
-
z.lazy(() => SearchKnowledge1In$outboundSchema),
|
|
1518
|
-
z.lazy(() => SearchKnowledge1Nin$outboundSchema),
|
|
1519
|
-
z.lazy(() => SearchKnowledge1Exists$outboundSchema),
|
|
1520
|
-
])),
|
|
1521
|
-
]);
|
|
1522
|
-
|
|
1523
|
-
export function filterByToJSON(filterBy: FilterBy): string {
|
|
1524
|
-
return JSON.stringify(FilterBy$outboundSchema.parse(filterBy));
|
|
1525
|
-
}
|
|
1526
|
-
|
|
1527
|
-
/** @internal */
|
|
1528
|
-
export type SearchOptions$Outbound = {
|
|
1529
|
-
include_vectors?: boolean | undefined;
|
|
1530
|
-
include_metadata?: boolean | undefined;
|
|
1531
|
-
include_scores?: boolean | undefined;
|
|
1532
|
-
};
|
|
1533
|
-
|
|
1534
|
-
/** @internal */
|
|
1535
|
-
export const SearchOptions$outboundSchema: z.ZodType<
|
|
1536
|
-
SearchOptions$Outbound,
|
|
1537
|
-
z.ZodTypeDef,
|
|
1538
|
-
SearchOptions
|
|
1539
|
-
> = z.object({
|
|
1540
|
-
includeVectors: z.boolean().optional(),
|
|
1541
|
-
includeMetadata: z.boolean().optional(),
|
|
1542
|
-
includeScores: z.boolean().optional(),
|
|
1543
|
-
}).transform((v) => {
|
|
1544
|
-
return remap$(v, {
|
|
1545
|
-
includeVectors: "include_vectors",
|
|
1546
|
-
includeMetadata: "include_metadata",
|
|
1547
|
-
includeScores: "include_scores",
|
|
1548
|
-
});
|
|
1549
|
-
});
|
|
1550
|
-
|
|
1551
|
-
export function searchOptionsToJSON(searchOptions: SearchOptions): string {
|
|
1552
|
-
return JSON.stringify(SearchOptions$outboundSchema.parse(searchOptions));
|
|
1553
|
-
}
|
|
1554
|
-
|
|
1555
|
-
/** @internal */
|
|
1556
|
-
export type RerankConfig$Outbound = {
|
|
1557
|
-
model: string;
|
|
1558
|
-
threshold: number;
|
|
1559
|
-
top_k: number;
|
|
1560
|
-
};
|
|
1561
|
-
|
|
1562
|
-
/** @internal */
|
|
1563
|
-
export const RerankConfig$outboundSchema: z.ZodType<
|
|
1564
|
-
RerankConfig$Outbound,
|
|
1565
|
-
z.ZodTypeDef,
|
|
1566
|
-
RerankConfig
|
|
1567
|
-
> = z.object({
|
|
1568
|
-
model: z.string(),
|
|
1569
|
-
threshold: z.number().default(0),
|
|
1570
|
-
topK: z.number().int().default(10),
|
|
1571
|
-
}).transform((v) => {
|
|
1572
|
-
return remap$(v, {
|
|
1573
|
-
topK: "top_k",
|
|
1574
|
-
});
|
|
1575
|
-
});
|
|
1576
|
-
|
|
1577
|
-
export function rerankConfigToJSON(rerankConfig: RerankConfig): string {
|
|
1578
|
-
return JSON.stringify(RerankConfig$outboundSchema.parse(rerankConfig));
|
|
1579
|
-
}
|
|
1580
|
-
|
|
1581
|
-
/** @internal */
|
|
1582
|
-
export type AgenticRagConfig$Outbound = {
|
|
1583
|
-
model: string;
|
|
1584
|
-
};
|
|
1585
|
-
|
|
1586
|
-
/** @internal */
|
|
1587
|
-
export const AgenticRagConfig$outboundSchema: z.ZodType<
|
|
1588
|
-
AgenticRagConfig$Outbound,
|
|
1589
|
-
z.ZodTypeDef,
|
|
1590
|
-
AgenticRagConfig
|
|
1591
|
-
> = z.object({
|
|
1592
|
-
model: z.string(),
|
|
1593
|
-
});
|
|
1594
|
-
|
|
1595
|
-
export function agenticRagConfigToJSON(
|
|
1596
|
-
agenticRagConfig: AgenticRagConfig,
|
|
1597
|
-
): string {
|
|
1598
|
-
return JSON.stringify(
|
|
1599
|
-
AgenticRagConfig$outboundSchema.parse(agenticRagConfig),
|
|
1600
|
-
);
|
|
1601
|
-
}
|
|
1602
|
-
|
|
1603
|
-
/** @internal */
|
|
1604
|
-
export type SearchKnowledgeRequestBody$Outbound = {
|
|
1605
|
-
query: string;
|
|
1606
|
-
top_k?: number | null | undefined;
|
|
1607
|
-
threshold?: number | null | undefined;
|
|
1608
|
-
search_type?: string | null | undefined;
|
|
1609
|
-
filter_by?: FilterByAnd$Outbound | FilterByOr$Outbound | {
|
|
1610
|
-
[k: string]:
|
|
1611
|
-
| SearchKnowledge1Eq$Outbound
|
|
1612
|
-
| SearchKnowledge1Ne$Outbound
|
|
1613
|
-
| SearchKnowledge1Gt$Outbound
|
|
1614
|
-
| SearchKnowledge1Gte$Outbound
|
|
1615
|
-
| SearchKnowledge1Lt$Outbound
|
|
1616
|
-
| SearchKnowledge1Lte$Outbound
|
|
1617
|
-
| SearchKnowledge1In$Outbound
|
|
1618
|
-
| SearchKnowledge1Nin$Outbound
|
|
1619
|
-
| SearchKnowledge1Exists$Outbound;
|
|
1620
|
-
} | undefined;
|
|
1621
|
-
search_options?: SearchOptions$Outbound | undefined;
|
|
1622
|
-
rerank_config?: RerankConfig$Outbound | undefined;
|
|
1623
|
-
agentic_rag_config?: AgenticRagConfig$Outbound | undefined;
|
|
9
|
+
export type SearchKnowledgeRequest = {
|
|
10
|
+
/**
|
|
11
|
+
* The unique identifier or key of the knowledge base.
|
|
12
|
+
*/
|
|
13
|
+
knowledgeId: string;
|
|
14
|
+
/**
|
|
15
|
+
* A search request for chunks in a knowledge base
|
|
16
|
+
*/
|
|
17
|
+
searchKnowledgeRequest: components.SearchKnowledgeRequest;
|
|
1624
18
|
};
|
|
1625
19
|
|
|
1626
|
-
/** @internal */
|
|
1627
|
-
export const SearchKnowledgeRequestBody$outboundSchema: z.ZodType<
|
|
1628
|
-
SearchKnowledgeRequestBody$Outbound,
|
|
1629
|
-
z.ZodTypeDef,
|
|
1630
|
-
SearchKnowledgeRequestBody
|
|
1631
|
-
> = z.object({
|
|
1632
|
-
query: z.string(),
|
|
1633
|
-
topK: z.nullable(z.number().int()).optional(),
|
|
1634
|
-
threshold: z.nullable(z.number()).optional(),
|
|
1635
|
-
searchType: z.nullable(SearchType$outboundSchema).optional(),
|
|
1636
|
-
filterBy: z.union([
|
|
1637
|
-
z.lazy(() => FilterByAnd$outboundSchema),
|
|
1638
|
-
z.lazy(() => FilterByOr$outboundSchema),
|
|
1639
|
-
z.record(z.union([
|
|
1640
|
-
z.lazy(() => SearchKnowledge1Eq$outboundSchema),
|
|
1641
|
-
z.lazy(() => SearchKnowledge1Ne$outboundSchema),
|
|
1642
|
-
z.lazy(() => SearchKnowledge1Gt$outboundSchema),
|
|
1643
|
-
z.lazy(() => SearchKnowledge1Gte$outboundSchema),
|
|
1644
|
-
z.lazy(() => SearchKnowledge1Lt$outboundSchema),
|
|
1645
|
-
z.lazy(() => SearchKnowledge1Lte$outboundSchema),
|
|
1646
|
-
z.lazy(() => SearchKnowledge1In$outboundSchema),
|
|
1647
|
-
z.lazy(() => SearchKnowledge1Nin$outboundSchema),
|
|
1648
|
-
z.lazy(() => SearchKnowledge1Exists$outboundSchema),
|
|
1649
|
-
])),
|
|
1650
|
-
]).optional(),
|
|
1651
|
-
searchOptions: z.lazy(() => SearchOptions$outboundSchema).optional(),
|
|
1652
|
-
rerankConfig: z.lazy(() => RerankConfig$outboundSchema).optional(),
|
|
1653
|
-
agenticRagConfig: z.lazy(() => AgenticRagConfig$outboundSchema).optional(),
|
|
1654
|
-
}).transform((v) => {
|
|
1655
|
-
return remap$(v, {
|
|
1656
|
-
topK: "top_k",
|
|
1657
|
-
searchType: "search_type",
|
|
1658
|
-
filterBy: "filter_by",
|
|
1659
|
-
searchOptions: "search_options",
|
|
1660
|
-
rerankConfig: "rerank_config",
|
|
1661
|
-
agenticRagConfig: "agentic_rag_config",
|
|
1662
|
-
});
|
|
1663
|
-
});
|
|
1664
|
-
|
|
1665
|
-
export function searchKnowledgeRequestBodyToJSON(
|
|
1666
|
-
searchKnowledgeRequestBody: SearchKnowledgeRequestBody,
|
|
1667
|
-
): string {
|
|
1668
|
-
return JSON.stringify(
|
|
1669
|
-
SearchKnowledgeRequestBody$outboundSchema.parse(searchKnowledgeRequestBody),
|
|
1670
|
-
);
|
|
1671
|
-
}
|
|
1672
|
-
|
|
1673
20
|
/** @internal */
|
|
1674
21
|
export type SearchKnowledgeRequest$Outbound = {
|
|
1675
22
|
knowledge_id: string;
|
|
1676
|
-
|
|
23
|
+
SearchKnowledgeRequest: components.SearchKnowledgeRequest$Outbound;
|
|
1677
24
|
};
|
|
1678
25
|
|
|
1679
26
|
/** @internal */
|
|
@@ -1683,12 +30,11 @@ export const SearchKnowledgeRequest$outboundSchema: z.ZodType<
|
|
|
1683
30
|
SearchKnowledgeRequest
|
|
1684
31
|
> = z.object({
|
|
1685
32
|
knowledgeId: z.string(),
|
|
1686
|
-
|
|
1687
|
-
.optional(),
|
|
33
|
+
searchKnowledgeRequest: components.SearchKnowledgeRequest$outboundSchema,
|
|
1688
34
|
}).transform((v) => {
|
|
1689
35
|
return remap$(v, {
|
|
1690
36
|
knowledgeId: "knowledge_id",
|
|
1691
|
-
|
|
37
|
+
searchKnowledgeRequest: "SearchKnowledgeRequest",
|
|
1692
38
|
});
|
|
1693
39
|
});
|
|
1694
40
|
|
|
@@ -1699,64 +45,3 @@ export function searchKnowledgeRequestToJSON(
|
|
|
1699
45
|
SearchKnowledgeRequest$outboundSchema.parse(searchKnowledgeRequest),
|
|
1700
46
|
);
|
|
1701
47
|
}
|
|
1702
|
-
|
|
1703
|
-
/** @internal */
|
|
1704
|
-
export const Scores$inboundSchema: z.ZodType<Scores, z.ZodTypeDef, unknown> = z
|
|
1705
|
-
.object({
|
|
1706
|
-
rerank_score: z.number().optional(),
|
|
1707
|
-
search_score: z.number().optional(),
|
|
1708
|
-
}).transform((v) => {
|
|
1709
|
-
return remap$(v, {
|
|
1710
|
-
"rerank_score": "rerankScore",
|
|
1711
|
-
"search_score": "searchScore",
|
|
1712
|
-
});
|
|
1713
|
-
});
|
|
1714
|
-
|
|
1715
|
-
export function scoresFromJSON(
|
|
1716
|
-
jsonString: string,
|
|
1717
|
-
): SafeParseResult<Scores, SDKValidationError> {
|
|
1718
|
-
return safeParse(
|
|
1719
|
-
jsonString,
|
|
1720
|
-
(x) => Scores$inboundSchema.parse(JSON.parse(x)),
|
|
1721
|
-
`Failed to parse 'Scores' from JSON`,
|
|
1722
|
-
);
|
|
1723
|
-
}
|
|
1724
|
-
|
|
1725
|
-
/** @internal */
|
|
1726
|
-
export const Matches$inboundSchema: z.ZodType<Matches, z.ZodTypeDef, unknown> =
|
|
1727
|
-
z.object({
|
|
1728
|
-
id: z.string(),
|
|
1729
|
-
text: z.string(),
|
|
1730
|
-
vector: z.array(z.number()).optional(),
|
|
1731
|
-
metadata: z.record(z.any()).optional(),
|
|
1732
|
-
scores: z.lazy(() => Scores$inboundSchema).optional(),
|
|
1733
|
-
});
|
|
1734
|
-
|
|
1735
|
-
export function matchesFromJSON(
|
|
1736
|
-
jsonString: string,
|
|
1737
|
-
): SafeParseResult<Matches, SDKValidationError> {
|
|
1738
|
-
return safeParse(
|
|
1739
|
-
jsonString,
|
|
1740
|
-
(x) => Matches$inboundSchema.parse(JSON.parse(x)),
|
|
1741
|
-
`Failed to parse 'Matches' from JSON`,
|
|
1742
|
-
);
|
|
1743
|
-
}
|
|
1744
|
-
|
|
1745
|
-
/** @internal */
|
|
1746
|
-
export const SearchKnowledgeResponseBody$inboundSchema: z.ZodType<
|
|
1747
|
-
SearchKnowledgeResponseBody,
|
|
1748
|
-
z.ZodTypeDef,
|
|
1749
|
-
unknown
|
|
1750
|
-
> = z.object({
|
|
1751
|
-
matches: z.array(z.lazy(() => Matches$inboundSchema)),
|
|
1752
|
-
});
|
|
1753
|
-
|
|
1754
|
-
export function searchKnowledgeResponseBodyFromJSON(
|
|
1755
|
-
jsonString: string,
|
|
1756
|
-
): SafeParseResult<SearchKnowledgeResponseBody, SDKValidationError> {
|
|
1757
|
-
return safeParse(
|
|
1758
|
-
jsonString,
|
|
1759
|
-
(x) => SearchKnowledgeResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
1760
|
-
`Failed to parse 'SearchKnowledgeResponseBody' from JSON`,
|
|
1761
|
-
);
|
|
1762
|
-
}
|