@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
package/README.md
CHANGED
|
@@ -336,6 +336,12 @@ run();
|
|
|
336
336
|
* [updateDocument](docs/sdks/memorystores/README.md#updatedocument) - Update a specific memory document
|
|
337
337
|
* [deleteDocument](docs/sdks/memorystores/README.md#deletedocument) - Delete a specific memory document
|
|
338
338
|
|
|
339
|
+
### [ModelCatalog](docs/sdks/modelcatalog/README.md)
|
|
340
|
+
|
|
341
|
+
* [list](docs/sdks/modelcatalog/README.md#list) - List the model catalog
|
|
342
|
+
* [listOfferings](docs/sdks/modelcatalog/README.md#listofferings) - List model catalog offerings
|
|
343
|
+
* [get](docs/sdks/modelcatalog/README.md#get) - Retrieve a model catalog entry
|
|
344
|
+
|
|
339
345
|
### [Models](docs/sdks/models/README.md)
|
|
340
346
|
|
|
341
347
|
* [create](docs/sdks/models/README.md#create) - Create custom model
|
|
@@ -686,6 +692,9 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
686
692
|
- [`memoryStoresUpdate`](docs/sdks/memorystores/README.md#update) - Update memory store
|
|
687
693
|
- [`memoryStoresUpdateDocument`](docs/sdks/memorystores/README.md#updatedocument) - Update a specific memory document
|
|
688
694
|
- [`memoryStoresUpdateMemory`](docs/sdks/memorystores/README.md#updatememory) - Update a specific memory
|
|
695
|
+
- [`modelCatalogGet`](docs/sdks/modelcatalog/README.md#get) - Retrieve a model catalog entry
|
|
696
|
+
- [`modelCatalogList`](docs/sdks/modelcatalog/README.md#list) - List the model catalog
|
|
697
|
+
- [`modelCatalogListOfferings`](docs/sdks/modelcatalog/README.md#listofferings) - List model catalog offerings
|
|
689
698
|
- [`modelsAzureFoundryDeployments`](docs/sdks/models/README.md#azurefoundrydeployments) - List Azure Foundry deployments under a resource
|
|
690
699
|
- [`modelsCreate`](docs/sdks/models/README.md#create) - Create custom model
|
|
691
700
|
- [`modelsCreateAwsBedrock`](docs/sdks/models/README.md#createawsbedrock) - Create AWS Bedrock custom model
|
|
@@ -1110,43 +1119,43 @@ run();
|
|
|
1110
1119
|
|
|
1111
1120
|
|
|
1112
1121
|
**Inherit from [`OrqError`](./src/models/errors/orqerror.ts)**:
|
|
1113
|
-
* [`HonoApiError`](./src/models/errors/honoapierror.ts): Applicable to 12 of
|
|
1114
|
-
* [`InvokeEvalResponseBody`](./src/models/errors/invokeevalresponsebody.ts): Bad request. Status code `400`. Applicable to 1 of
|
|
1115
|
-
* [`PostV2FeedbackResponseBody`](./src/models/errors/postv2feedbackresponsebody.ts): Bad Request. Status code `400`. Applicable to 1 of
|
|
1116
|
-
* [`CreateAgentScheduleResponseBody`](./src/models/errors/createagentscheduleresponsebody.ts): Invalid schedule type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of
|
|
1117
|
-
* [`UpdateAgentScheduleResponseBody`](./src/models/errors/updateagentscheduleresponsebody.ts): Invalid type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of
|
|
1118
|
-
* [`TriggerAgentScheduleResponseBody`](./src/models/errors/triggeragentscheduleresponsebody.ts): Schedule is inactive. Status code `400`. Applicable to 1 of
|
|
1119
|
-
* [`GetEvalsResponseBody`](./src/models/errors/getevalsresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of
|
|
1120
|
-
* [`CreateEvalResponseBody`](./src/models/errors/createevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of
|
|
1121
|
-
* [`GetEvalResponseBody`](./src/models/errors/getevalresponsebody.ts): No evaluator with this id exists in the authenticated workspace, or the request carries no workspace. Status code `404`. Applicable to 1 of
|
|
1122
|
-
* [`UpdateEvalResponseBody`](./src/models/errors/updateevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of
|
|
1123
|
-
* [`DeleteEvalResponseBody`](./src/models/errors/deleteevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of
|
|
1124
|
-
* [`InvokeEvalEvalsResponseBody`](./src/models/errors/invokeevalevalsresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of
|
|
1125
|
-
* [`GetV2EvaluatorsIdVersionsResponseBody`](./src/models/errors/getv2evaluatorsidversionsresponsebody.ts): Evaluator not found. Status code `404`. Applicable to 1 of
|
|
1126
|
-
* [`DeleteAgentResponseBody`](./src/models/errors/deleteagentresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or has already been deleted. Status code `404`. Applicable to 1 of
|
|
1127
|
-
* [`RetrieveAgentRequestResponseBody`](./src/models/errors/retrieveagentrequestresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or you do not have permission to access it. Status code `404`. Applicable to 1 of
|
|
1128
|
-
* [`UpdateAgentResponseBody`](./src/models/errors/updateagentresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or you do not have permission to modify it. Status code `404`. Applicable to 1 of
|
|
1129
|
-
* [`StreamRunAgentResponseBody`](./src/models/errors/streamrunagentresponsebody.ts): Model not found. Status code `404`. Applicable to 1 of
|
|
1130
|
-
* [`StreamAgentResponseBody`](./src/models/errors/streamagentresponsebody.ts): Agent not found. Status code `404`. Applicable to 1 of
|
|
1131
|
-
* [`UpdatePromptResponseBody`](./src/models/errors/updatepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of
|
|
1132
|
-
* [`DeletePromptResponseBody`](./src/models/errors/deletepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of
|
|
1133
|
-
* [`GetPromptVersionResponseBody`](./src/models/errors/getpromptversionresponsebody.ts): Not Found - The prompt or prompt version does not exist. Status code `404`. Applicable to 1 of
|
|
1134
|
-
* [`UpdateToolResponseBody`](./src/models/errors/updatetoolresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of
|
|
1135
|
-
* [`GetV2ToolsToolIdVersionsResponseBody`](./src/models/errors/getv2toolstoolidversionsresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of
|
|
1136
|
-
* [`GetV2ToolsToolIdVersionsVersionIdResponseBody`](./src/models/errors/getv2toolstoolidversionsversionidresponsebody.ts): Tool or version not found. Status code `404`. Applicable to 1 of
|
|
1137
|
-
* [`PostV2FeedbackRemoveResponseBody`](./src/models/errors/postv2feedbackremoveresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of
|
|
1138
|
-
* [`PostV2FeedbackFeedbackResponseBody`](./src/models/errors/postv2feedbackfeedbackresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of
|
|
1139
|
-
* [`CreateAgentScheduleSchedulesResponseBody`](./src/models/errors/createagentscheduleschedulesresponsebody.ts): Agent (or agent version, when agent_tag is set) not found. Status code `404`. Applicable to 1 of
|
|
1140
|
-
* [`DeleteAgentScheduleResponseBody`](./src/models/errors/deleteagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of
|
|
1141
|
-
* [`RetrieveAgentScheduleResponseBody`](./src/models/errors/retrieveagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of
|
|
1142
|
-
* [`UpdateAgentScheduleSchedulesResponseBody`](./src/models/errors/updateagentscheduleschedulesresponsebody.ts): Schedule or agent version not found. Status code `404`. Applicable to 1 of
|
|
1143
|
-
* [`TriggerAgentScheduleSchedulesResponseBody`](./src/models/errors/triggeragentscheduleschedulesresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of
|
|
1144
|
-
* [`RetrieveResponseResponseBody`](./src/models/errors/retrieveresponseresponsebody.ts): Response not found. Status code `404`. Applicable to 1 of
|
|
1145
|
-
* [`DeleteEvalEvalsResponseBody`](./src/models/errors/deleteevalevalsresponsebody.ts): The evaluator is still referenced as an evaluator or guardrail by one or more deployments. Status code `409`. Applicable to 1 of
|
|
1146
|
-
* [`CreateModerationResponseBody`](./src/models/errors/createmoderationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of
|
|
1147
|
-
* [`CreateTranscriptionResponseBody`](./src/models/errors/createtranscriptionresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of
|
|
1148
|
-
* [`CreateTranslationResponseBody`](./src/models/errors/createtranslationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of
|
|
1149
|
-
* [`InvokeEvalEvalsResponseResponseBody`](./src/models/errors/invokeevalevalsresponseresponsebody.ts): Error running the evaluator. Status code `500`. Applicable to 1 of
|
|
1122
|
+
* [`HonoApiError`](./src/models/errors/honoapierror.ts): Applicable to 12 of 254 methods.*
|
|
1123
|
+
* [`InvokeEvalResponseBody`](./src/models/errors/invokeevalresponsebody.ts): Bad request. Status code `400`. Applicable to 1 of 254 methods.*
|
|
1124
|
+
* [`PostV2FeedbackResponseBody`](./src/models/errors/postv2feedbackresponsebody.ts): Bad Request. Status code `400`. Applicable to 1 of 254 methods.*
|
|
1125
|
+
* [`CreateAgentScheduleResponseBody`](./src/models/errors/createagentscheduleresponsebody.ts): Invalid schedule type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of 254 methods.*
|
|
1126
|
+
* [`UpdateAgentScheduleResponseBody`](./src/models/errors/updateagentscheduleresponsebody.ts): Invalid type, expression, or sub-hour cadence. Status code `400`. Applicable to 1 of 254 methods.*
|
|
1127
|
+
* [`TriggerAgentScheduleResponseBody`](./src/models/errors/triggeragentscheduleresponsebody.ts): Schedule is inactive. Status code `400`. Applicable to 1 of 254 methods.*
|
|
1128
|
+
* [`GetEvalsResponseBody`](./src/models/errors/getevalsresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 254 methods.*
|
|
1129
|
+
* [`CreateEvalResponseBody`](./src/models/errors/createevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 254 methods.*
|
|
1130
|
+
* [`GetEvalResponseBody`](./src/models/errors/getevalresponsebody.ts): No evaluator with this id exists in the authenticated workspace, or the request carries no workspace. Status code `404`. Applicable to 1 of 254 methods.*
|
|
1131
|
+
* [`UpdateEvalResponseBody`](./src/models/errors/updateevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 254 methods.*
|
|
1132
|
+
* [`DeleteEvalResponseBody`](./src/models/errors/deleteevalresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 254 methods.*
|
|
1133
|
+
* [`InvokeEvalEvalsResponseBody`](./src/models/errors/invokeevalevalsresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 254 methods.*
|
|
1134
|
+
* [`GetV2EvaluatorsIdVersionsResponseBody`](./src/models/errors/getv2evaluatorsidversionsresponsebody.ts): Evaluator not found. Status code `404`. Applicable to 1 of 254 methods.*
|
|
1135
|
+
* [`DeleteAgentResponseBody`](./src/models/errors/deleteagentresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or has already been deleted. Status code `404`. Applicable to 1 of 254 methods.*
|
|
1136
|
+
* [`RetrieveAgentRequestResponseBody`](./src/models/errors/retrieveagentrequestresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or you do not have permission to access it. Status code `404`. Applicable to 1 of 254 methods.*
|
|
1137
|
+
* [`UpdateAgentResponseBody`](./src/models/errors/updateagentresponsebody.ts): Agent not found. The specified agent key does not exist in the workspace or you do not have permission to modify it. Status code `404`. Applicable to 1 of 254 methods.*
|
|
1138
|
+
* [`StreamRunAgentResponseBody`](./src/models/errors/streamrunagentresponsebody.ts): Model not found. Status code `404`. Applicable to 1 of 254 methods.*
|
|
1139
|
+
* [`StreamAgentResponseBody`](./src/models/errors/streamagentresponsebody.ts): Agent not found. Status code `404`. Applicable to 1 of 254 methods.*
|
|
1140
|
+
* [`UpdatePromptResponseBody`](./src/models/errors/updatepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of 254 methods.*
|
|
1141
|
+
* [`DeletePromptResponseBody`](./src/models/errors/deletepromptresponsebody.ts): Prompt not found. Status code `404`. Applicable to 1 of 254 methods.*
|
|
1142
|
+
* [`GetPromptVersionResponseBody`](./src/models/errors/getpromptversionresponsebody.ts): Not Found - The prompt or prompt version does not exist. Status code `404`. Applicable to 1 of 254 methods.*
|
|
1143
|
+
* [`UpdateToolResponseBody`](./src/models/errors/updatetoolresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of 254 methods.*
|
|
1144
|
+
* [`GetV2ToolsToolIdVersionsResponseBody`](./src/models/errors/getv2toolstoolidversionsresponsebody.ts): Tool not found. Status code `404`. Applicable to 1 of 254 methods.*
|
|
1145
|
+
* [`GetV2ToolsToolIdVersionsVersionIdResponseBody`](./src/models/errors/getv2toolstoolidversionsversionidresponsebody.ts): Tool or version not found. Status code `404`. Applicable to 1 of 254 methods.*
|
|
1146
|
+
* [`PostV2FeedbackRemoveResponseBody`](./src/models/errors/postv2feedbackremoveresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 254 methods.*
|
|
1147
|
+
* [`PostV2FeedbackFeedbackResponseBody`](./src/models/errors/postv2feedbackfeedbackresponsebody.ts): Workspace ID is not found on the request. Status code `404`. Applicable to 1 of 254 methods.*
|
|
1148
|
+
* [`CreateAgentScheduleSchedulesResponseBody`](./src/models/errors/createagentscheduleschedulesresponsebody.ts): Agent (or agent version, when agent_tag is set) not found. Status code `404`. Applicable to 1 of 254 methods.*
|
|
1149
|
+
* [`DeleteAgentScheduleResponseBody`](./src/models/errors/deleteagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 254 methods.*
|
|
1150
|
+
* [`RetrieveAgentScheduleResponseBody`](./src/models/errors/retrieveagentscheduleresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 254 methods.*
|
|
1151
|
+
* [`UpdateAgentScheduleSchedulesResponseBody`](./src/models/errors/updateagentscheduleschedulesresponsebody.ts): Schedule or agent version not found. Status code `404`. Applicable to 1 of 254 methods.*
|
|
1152
|
+
* [`TriggerAgentScheduleSchedulesResponseBody`](./src/models/errors/triggeragentscheduleschedulesresponsebody.ts): Schedule not found, or belongs to a different agent. Status code `404`. Applicable to 1 of 254 methods.*
|
|
1153
|
+
* [`RetrieveResponseResponseBody`](./src/models/errors/retrieveresponseresponsebody.ts): Response not found. Status code `404`. Applicable to 1 of 254 methods.*
|
|
1154
|
+
* [`DeleteEvalEvalsResponseBody`](./src/models/errors/deleteevalevalsresponsebody.ts): The evaluator is still referenced as an evaluator or guardrail by one or more deployments. Status code `409`. Applicable to 1 of 254 methods.*
|
|
1155
|
+
* [`CreateModerationResponseBody`](./src/models/errors/createmoderationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 254 methods.*
|
|
1156
|
+
* [`CreateTranscriptionResponseBody`](./src/models/errors/createtranscriptionresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 254 methods.*
|
|
1157
|
+
* [`CreateTranslationResponseBody`](./src/models/errors/createtranslationresponsebody.ts): Returns validation error. Status code `422`. Applicable to 1 of 254 methods.*
|
|
1158
|
+
* [`InvokeEvalEvalsResponseResponseBody`](./src/models/errors/invokeevalevalsresponseresponsebody.ts): Error running the evaluator. Status code `500`. Applicable to 1 of 254 methods.*
|
|
1150
1159
|
* [`ResponseValidationError`](./src/models/errors/responsevalidationerror.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string.
|
|
1151
1160
|
|
|
1152
1161
|
</details>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { OrqCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import * as components from "../models/components/index.js";
|
|
4
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
5
|
+
import { OrqError } from "../models/errors/orqerror.js";
|
|
6
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
8
|
+
import * as operations from "../models/operations/index.js";
|
|
9
|
+
import { APIPromise } from "../types/async.js";
|
|
10
|
+
import { Result } from "../types/fp.js";
|
|
11
|
+
/**
|
|
12
|
+
* Retrieve a model catalog entry
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Retrieves a single catalog entry by its id, `<provider>/<model>` (for example `openai/gpt-4o`). Unlike the list endpoints this also resolves deprecated models; check `deprecated` and `deprecation` on the response.
|
|
16
|
+
*/
|
|
17
|
+
export declare function modelCatalogGet(client: OrqCore, request: operations.ModelCatalogGetRequest, options?: RequestOptions): APIPromise<Result<components.GetModelCatalogModelResponse, OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
|
+
//# sourceMappingURL=modelCatalogGet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modelCatalogGet.d.ts","sourceRoot":"","sources":["../src/funcs/modelCatalogGet.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAMrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,sBAAsB,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,4BAA4B,EACrC,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.modelCatalogGet = modelCatalogGet;
|
|
40
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
41
|
+
const http_js_1 = require("../lib/http.js");
|
|
42
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
43
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
44
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
45
|
+
const security_js_1 = require("../lib/security.js");
|
|
46
|
+
const url_js_1 = require("../lib/url.js");
|
|
47
|
+
const components = __importStar(require("../models/components/index.js"));
|
|
48
|
+
const operations = __importStar(require("../models/operations/index.js"));
|
|
49
|
+
const async_js_1 = require("../types/async.js");
|
|
50
|
+
/**
|
|
51
|
+
* Retrieve a model catalog entry
|
|
52
|
+
*
|
|
53
|
+
* @remarks
|
|
54
|
+
* Retrieves a single catalog entry by its id, `<provider>/<model>` (for example `openai/gpt-4o`). Unlike the list endpoints this also resolves deprecated models; check `deprecated` and `deprecation` on the response.
|
|
55
|
+
*/
|
|
56
|
+
function modelCatalogGet(client, request, options) {
|
|
57
|
+
return new async_js_1.APIPromise($do(client, request, options));
|
|
58
|
+
}
|
|
59
|
+
async function $do(client, request, options) {
|
|
60
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.ModelCatalogGetRequest$outboundSchema.parse(value), "Input validation failed");
|
|
61
|
+
if (!parsed.ok) {
|
|
62
|
+
return [parsed, { status: "invalid" }];
|
|
63
|
+
}
|
|
64
|
+
const payload = parsed.value;
|
|
65
|
+
const body = null;
|
|
66
|
+
const pathParams = {
|
|
67
|
+
id: (0, encodings_js_1.encodeSimple)("id", payload.id, {
|
|
68
|
+
explode: false,
|
|
69
|
+
charEncoding: "percent",
|
|
70
|
+
}),
|
|
71
|
+
};
|
|
72
|
+
const path = (0, url_js_1.pathToFunc)("/v2/model-catalog/{id}")(pathParams);
|
|
73
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
74
|
+
Accept: "application/json",
|
|
75
|
+
}));
|
|
76
|
+
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
|
|
77
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
78
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
79
|
+
const context = {
|
|
80
|
+
options: client._options,
|
|
81
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
82
|
+
operationID: "ModelCatalogGet",
|
|
83
|
+
oAuth2Scopes: null,
|
|
84
|
+
resolvedSecurity: requestSecurity,
|
|
85
|
+
securitySource: client._options.apiKey,
|
|
86
|
+
retryConfig: options?.retries
|
|
87
|
+
|| client._options.retryConfig
|
|
88
|
+
|| { strategy: "none" },
|
|
89
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
90
|
+
};
|
|
91
|
+
const requestRes = client._createRequest(context, {
|
|
92
|
+
security: requestSecurity,
|
|
93
|
+
method: "GET",
|
|
94
|
+
baseURL: options?.serverURL,
|
|
95
|
+
path: path,
|
|
96
|
+
headers: headers,
|
|
97
|
+
body: body,
|
|
98
|
+
userAgent: client._options.userAgent,
|
|
99
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
|
|
100
|
+
}, options);
|
|
101
|
+
if (!requestRes.ok) {
|
|
102
|
+
return [requestRes, { status: "invalid" }];
|
|
103
|
+
}
|
|
104
|
+
const req = requestRes.value;
|
|
105
|
+
const doResult = await client._do(req, {
|
|
106
|
+
context,
|
|
107
|
+
isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
|
|
108
|
+
retryConfig: context.retryConfig,
|
|
109
|
+
retryCodes: context.retryCodes,
|
|
110
|
+
});
|
|
111
|
+
if (!doResult.ok) {
|
|
112
|
+
return [doResult, { status: "request-error", request: req }];
|
|
113
|
+
}
|
|
114
|
+
const response = doResult.value;
|
|
115
|
+
const [result] = await M.match(M.json(200, components.GetModelCatalogModelResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req);
|
|
116
|
+
if (!result.ok) {
|
|
117
|
+
return [result, { status: "complete", request: req, response }];
|
|
118
|
+
}
|
|
119
|
+
return [result, { status: "complete", request: req, response }];
|
|
120
|
+
}
|
|
121
|
+
//# sourceMappingURL=modelCatalogGet.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modelCatalogGet.js","sourceRoot":"","sources":["../src/funcs/modelCatalogGet.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCH,0CAsBC;AAnDD,sDAAmD;AACnD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAW5D,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;GAKG;AACH,SAAgB,eAAe,CAC7B,MAAe,EACf,OAA0C,EAC1C,OAAwB;IAcxB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAA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,UAAU;KAC/B,CAAC,CAAC;IACH,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;QACjB,OAAO,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC;IAC/D,CAAC;IACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAW5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,0CAA0C,CAAC,EAClE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACjB,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { OrqCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import * as components from "../models/components/index.js";
|
|
4
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
5
|
+
import { OrqError } from "../models/errors/orqerror.js";
|
|
6
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
8
|
+
import * as operations from "../models/operations/index.js";
|
|
9
|
+
import { APIPromise } from "../types/async.js";
|
|
10
|
+
import { Result } from "../types/fp.js";
|
|
11
|
+
/**
|
|
12
|
+
* List the model catalog
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Returns every model orq offers, optionally filtered, searched and sorted. Deprecated models are never listed; fetch one directly by id to inspect it. Unset `limit` returns the whole catalog. Use `starting_after` or `ending_before` to page through the collection.
|
|
16
|
+
*/
|
|
17
|
+
export declare function modelCatalogList(client: OrqCore, request?: operations.ModelCatalogListRequest | undefined, options?: RequestOptions): APIPromise<Result<components.ListModelCatalogResponse, OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
|
+
//# sourceMappingURL=modelCatalogList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modelCatalogList.d.ts","sourceRoot":"","sources":["../src/funcs/modelCatalogList.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAMrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,OAAO,EACf,OAAO,CAAC,EAAE,UAAU,CAAC,uBAAuB,GAAG,SAAS,EACxD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,wBAAwB,EACjC,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.modelCatalogList = modelCatalogList;
|
|
40
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
41
|
+
const http_js_1 = require("../lib/http.js");
|
|
42
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
43
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
44
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
45
|
+
const security_js_1 = require("../lib/security.js");
|
|
46
|
+
const url_js_1 = require("../lib/url.js");
|
|
47
|
+
const components = __importStar(require("../models/components/index.js"));
|
|
48
|
+
const operations = __importStar(require("../models/operations/index.js"));
|
|
49
|
+
const async_js_1 = require("../types/async.js");
|
|
50
|
+
/**
|
|
51
|
+
* List the model catalog
|
|
52
|
+
*
|
|
53
|
+
* @remarks
|
|
54
|
+
* Returns every model orq offers, optionally filtered, searched and sorted. Deprecated models are never listed; fetch one directly by id to inspect it. Unset `limit` returns the whole catalog. Use `starting_after` or `ending_before` to page through the collection.
|
|
55
|
+
*/
|
|
56
|
+
function modelCatalogList(client, request, options) {
|
|
57
|
+
return new async_js_1.APIPromise($do(client, request, options));
|
|
58
|
+
}
|
|
59
|
+
async function $do(client, request, options) {
|
|
60
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.ModelCatalogListRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
61
|
+
if (!parsed.ok) {
|
|
62
|
+
return [parsed, { status: "invalid" }];
|
|
63
|
+
}
|
|
64
|
+
const payload = parsed.value;
|
|
65
|
+
const body = null;
|
|
66
|
+
const path = (0, url_js_1.pathToFunc)("/v2/model-catalog")();
|
|
67
|
+
const query = (0, encodings_js_1.encodeFormQuery)({
|
|
68
|
+
"ending_before": payload?.ending_before,
|
|
69
|
+
"endpoint": payload?.endpoint,
|
|
70
|
+
"feature": payload?.feature,
|
|
71
|
+
"input_modality": payload?.input_modality,
|
|
72
|
+
"limit": payload?.limit,
|
|
73
|
+
"location": payload?.location,
|
|
74
|
+
"offering_of": payload?.offering_of,
|
|
75
|
+
"order": payload?.order,
|
|
76
|
+
"output_modality": payload?.output_modality,
|
|
77
|
+
"provider": payload?.provider,
|
|
78
|
+
"search": payload?.search,
|
|
79
|
+
"sort_by": payload?.sort_by,
|
|
80
|
+
"starting_after": payload?.starting_after,
|
|
81
|
+
"supported_parameter": payload?.supported_parameter,
|
|
82
|
+
"tier": payload?.tier,
|
|
83
|
+
});
|
|
84
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
85
|
+
Accept: "application/json",
|
|
86
|
+
}));
|
|
87
|
+
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
|
|
88
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
89
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
90
|
+
const context = {
|
|
91
|
+
options: client._options,
|
|
92
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
93
|
+
operationID: "ModelCatalogList",
|
|
94
|
+
oAuth2Scopes: null,
|
|
95
|
+
resolvedSecurity: requestSecurity,
|
|
96
|
+
securitySource: client._options.apiKey,
|
|
97
|
+
retryConfig: options?.retries
|
|
98
|
+
|| client._options.retryConfig
|
|
99
|
+
|| { strategy: "none" },
|
|
100
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
101
|
+
};
|
|
102
|
+
const requestRes = client._createRequest(context, {
|
|
103
|
+
security: requestSecurity,
|
|
104
|
+
method: "GET",
|
|
105
|
+
baseURL: options?.serverURL,
|
|
106
|
+
path: path,
|
|
107
|
+
headers: headers,
|
|
108
|
+
query: query,
|
|
109
|
+
body: body,
|
|
110
|
+
userAgent: client._options.userAgent,
|
|
111
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
|
|
112
|
+
}, options);
|
|
113
|
+
if (!requestRes.ok) {
|
|
114
|
+
return [requestRes, { status: "invalid" }];
|
|
115
|
+
}
|
|
116
|
+
const req = requestRes.value;
|
|
117
|
+
const doResult = await client._do(req, {
|
|
118
|
+
context,
|
|
119
|
+
isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
|
|
120
|
+
retryConfig: context.retryConfig,
|
|
121
|
+
retryCodes: context.retryCodes,
|
|
122
|
+
});
|
|
123
|
+
if (!doResult.ok) {
|
|
124
|
+
return [doResult, { status: "request-error", request: req }];
|
|
125
|
+
}
|
|
126
|
+
const response = doResult.value;
|
|
127
|
+
const [result] = await M.match(M.json(200, components.ListModelCatalogResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req);
|
|
128
|
+
if (!result.ok) {
|
|
129
|
+
return [result, { status: "complete", request: req, response }];
|
|
130
|
+
}
|
|
131
|
+
return [result, { status: "complete", request: req, response }];
|
|
132
|
+
}
|
|
133
|
+
//# sourceMappingURL=modelCatalogList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modelCatalogList.js","sourceRoot":"","sources":["../src/funcs/modelCatalogList.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCH,4CAsBC;AAnDD,sDAAsD;AACtD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAW5D,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;GAKG;AACH,SAAgB,gBAAgB,CAC9B,MAAe,EACf,OAAwD,EACxD,OAAwB;IAcxB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAA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EAAE,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { OrqCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import * as components from "../models/components/index.js";
|
|
4
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
5
|
+
import { OrqError } from "../models/errors/orqerror.js";
|
|
6
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
8
|
+
import * as operations from "../models/operations/index.js";
|
|
9
|
+
import { APIPromise } from "../types/async.js";
|
|
10
|
+
import { Result } from "../types/fp.js";
|
|
11
|
+
/**
|
|
12
|
+
* List model catalog offerings
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Returns every provider offering of one base model, identified by `<developer>/<stem>` (for example `anthropic/claude-opus-4-7`). Deprecated models are never listed.
|
|
16
|
+
*/
|
|
17
|
+
export declare function modelCatalogListOfferings(client: OrqCore, request: operations.ModelCatalogListOfferingsRequest, options?: RequestOptions): APIPromise<Result<components.ListModelCatalogOfferingsResponse, OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
|
+
//# sourceMappingURL=modelCatalogListOfferings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modelCatalogListOfferings.d.ts","sourceRoot":"","sources":["../src/funcs/modelCatalogListOfferings.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAMrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,yBAAyB,CACvC,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,gCAAgC,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,iCAAiC,EAC1C,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.modelCatalogListOfferings = modelCatalogListOfferings;
|
|
40
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
41
|
+
const http_js_1 = require("../lib/http.js");
|
|
42
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
43
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
44
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
45
|
+
const security_js_1 = require("../lib/security.js");
|
|
46
|
+
const url_js_1 = require("../lib/url.js");
|
|
47
|
+
const components = __importStar(require("../models/components/index.js"));
|
|
48
|
+
const operations = __importStar(require("../models/operations/index.js"));
|
|
49
|
+
const async_js_1 = require("../types/async.js");
|
|
50
|
+
/**
|
|
51
|
+
* List model catalog offerings
|
|
52
|
+
*
|
|
53
|
+
* @remarks
|
|
54
|
+
* Returns every provider offering of one base model, identified by `<developer>/<stem>` (for example `anthropic/claude-opus-4-7`). Deprecated models are never listed.
|
|
55
|
+
*/
|
|
56
|
+
function modelCatalogListOfferings(client, request, options) {
|
|
57
|
+
return new async_js_1.APIPromise($do(client, request, options));
|
|
58
|
+
}
|
|
59
|
+
async function $do(client, request, options) {
|
|
60
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.ModelCatalogListOfferingsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
61
|
+
if (!parsed.ok) {
|
|
62
|
+
return [parsed, { status: "invalid" }];
|
|
63
|
+
}
|
|
64
|
+
const payload = parsed.value;
|
|
65
|
+
const body = null;
|
|
66
|
+
const pathParams = {
|
|
67
|
+
model: (0, encodings_js_1.encodeSimple)("model", payload.model, {
|
|
68
|
+
explode: false,
|
|
69
|
+
charEncoding: "percent",
|
|
70
|
+
}),
|
|
71
|
+
};
|
|
72
|
+
const path = (0, url_js_1.pathToFunc)("/v2/model-catalog/{model}/offerings")(pathParams);
|
|
73
|
+
const query = (0, encodings_js_1.encodeFormQuery)({
|
|
74
|
+
"ending_before": payload.ending_before,
|
|
75
|
+
"endpoint": payload.endpoint,
|
|
76
|
+
"feature": payload.feature,
|
|
77
|
+
"input_modality": payload.input_modality,
|
|
78
|
+
"limit": payload.limit,
|
|
79
|
+
"location": payload.location,
|
|
80
|
+
"order": payload.order,
|
|
81
|
+
"output_modality": payload.output_modality,
|
|
82
|
+
"provider": payload.provider,
|
|
83
|
+
"search": payload.search,
|
|
84
|
+
"sort_by": payload.sort_by,
|
|
85
|
+
"starting_after": payload.starting_after,
|
|
86
|
+
"supported_parameter": payload.supported_parameter,
|
|
87
|
+
"tier": payload.tier,
|
|
88
|
+
});
|
|
89
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
90
|
+
Accept: "application/json",
|
|
91
|
+
}));
|
|
92
|
+
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
|
|
93
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
94
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
95
|
+
const context = {
|
|
96
|
+
options: client._options,
|
|
97
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
98
|
+
operationID: "ModelCatalogListOfferings",
|
|
99
|
+
oAuth2Scopes: null,
|
|
100
|
+
resolvedSecurity: requestSecurity,
|
|
101
|
+
securitySource: client._options.apiKey,
|
|
102
|
+
retryConfig: options?.retries
|
|
103
|
+
|| client._options.retryConfig
|
|
104
|
+
|| { strategy: "none" },
|
|
105
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
106
|
+
};
|
|
107
|
+
const requestRes = client._createRequest(context, {
|
|
108
|
+
security: requestSecurity,
|
|
109
|
+
method: "GET",
|
|
110
|
+
baseURL: options?.serverURL,
|
|
111
|
+
path: path,
|
|
112
|
+
headers: headers,
|
|
113
|
+
query: query,
|
|
114
|
+
body: body,
|
|
115
|
+
userAgent: client._options.userAgent,
|
|
116
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
|
|
117
|
+
}, options);
|
|
118
|
+
if (!requestRes.ok) {
|
|
119
|
+
return [requestRes, { status: "invalid" }];
|
|
120
|
+
}
|
|
121
|
+
const req = requestRes.value;
|
|
122
|
+
const doResult = await client._do(req, {
|
|
123
|
+
context,
|
|
124
|
+
isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
|
|
125
|
+
retryConfig: context.retryConfig,
|
|
126
|
+
retryCodes: context.retryCodes,
|
|
127
|
+
});
|
|
128
|
+
if (!doResult.ok) {
|
|
129
|
+
return [doResult, { status: "request-error", request: req }];
|
|
130
|
+
}
|
|
131
|
+
const response = doResult.value;
|
|
132
|
+
const [result] = await M.match(M.json(200, components.ListModelCatalogOfferingsResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req);
|
|
133
|
+
if (!result.ok) {
|
|
134
|
+
return [result, { status: "complete", request: req, response }];
|
|
135
|
+
}
|
|
136
|
+
return [result, { status: "complete", request: req, response }];
|
|
137
|
+
}
|
|
138
|
+
//# sourceMappingURL=modelCatalogListOfferings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modelCatalogListOfferings.js","sourceRoot":"","sources":["../src/funcs/modelCatalogListOfferings.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCH,8DAsBC;AAnDD,sDAAoE;AACpE,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAW5D,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;GAKG;AACH,SAAgB,yBAAyB,CACvC,MAAe,EACf,OAAoD,EACpD,OAAwB;IAcxB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAe,EACf,OAAoD,EACpD,OAAwB;IAiBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CACR,UAAU,CAAC,+CAA+C,CAAC,KAAK,CAAC,KAAK,CAAC,EACzE,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IACzC,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;IAC7B,MAAM,IAAI,GAAG,IAAI,CAAC;IAElB,MAAM,UAAU,GAAG;QACjB,KAAK,EAAE,IAAA,2BAAY,EAAC,OAAO,EAAE,OAAO,CAAC,KAAK,EAAE;YAC1C,OAAO,EAAE,KAAK;YACd,YAAY,EAAE,SAAS;SACxB,CAAC;KACH,CAAC;IACF,MAAM,IAAI,G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