@orq-ai/node 4.15.0-rc.2 → 4.15.0-rc.21
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/FUNCTIONS.md +3 -3
- package/README.md +101 -90
- package/examples/{evalsAll.example.ts → deploymentsList.example.ts} +2 -2
- package/funcs/annotationQueuesAddItems.d.ts +3 -2
- package/funcs/annotationQueuesAddItems.d.ts.map +1 -1
- package/funcs/annotationQueuesAddItems.js +6 -4
- package/funcs/annotationQueuesAddItems.js.map +1 -1
- package/funcs/annotationQueuesClear.d.ts +4 -3
- package/funcs/annotationQueuesClear.d.ts.map +1 -1
- package/funcs/annotationQueuesClear.js +5 -5
- package/funcs/annotationQueuesClear.js.map +1 -1
- package/funcs/annotationQueuesCreate.d.ts +3 -3
- package/funcs/annotationQueuesCreate.d.ts.map +1 -1
- package/funcs/annotationQueuesCreate.js +5 -8
- package/funcs/annotationQueuesCreate.js.map +1 -1
- package/funcs/annotationQueuesDelete.d.ts +3 -2
- package/funcs/annotationQueuesDelete.d.ts.map +1 -1
- package/funcs/annotationQueuesDelete.js +4 -4
- package/funcs/annotationQueuesDelete.js.map +1 -1
- package/funcs/annotationQueuesList.d.ts +3 -2
- package/funcs/annotationQueuesList.d.ts.map +1 -1
- package/funcs/annotationQueuesList.js +3 -2
- package/funcs/annotationQueuesList.js.map +1 -1
- package/funcs/annotationQueuesListItems.d.ts +3 -2
- package/funcs/annotationQueuesListItems.d.ts.map +1 -1
- package/funcs/annotationQueuesListItems.js +3 -2
- package/funcs/annotationQueuesListItems.js.map +1 -1
- package/funcs/annotationQueuesRemoveItems.d.ts +4 -3
- package/funcs/annotationQueuesRemoveItems.d.ts.map +1 -1
- package/funcs/annotationQueuesRemoveItems.js +8 -6
- package/funcs/annotationQueuesRemoveItems.js.map +1 -1
- package/funcs/annotationQueuesRetrieve.d.ts +3 -2
- package/funcs/annotationQueuesRetrieve.d.ts.map +1 -1
- package/funcs/annotationQueuesRetrieve.js +3 -2
- package/funcs/annotationQueuesRetrieve.js.map +1 -1
- package/funcs/annotationQueuesRetrieveItem.d.ts +2 -3
- package/funcs/annotationQueuesRetrieveItem.d.ts.map +1 -1
- package/funcs/annotationQueuesRetrieveItem.js +2 -3
- package/funcs/annotationQueuesRetrieveItem.js.map +1 -1
- package/funcs/annotationQueuesUpdate.d.ts +4 -3
- package/funcs/annotationQueuesUpdate.d.ts.map +1 -1
- package/funcs/annotationQueuesUpdate.js +7 -4
- package/funcs/annotationQueuesUpdate.js.map +1 -1
- package/funcs/auditLogsQuery.d.ts +17 -0
- package/funcs/auditLogsQuery.d.ts.map +1 -0
- package/funcs/{deploymentsInvoke.js → auditLogsQuery.js} +9 -10
- package/funcs/auditLogsQuery.js.map +1 -0
- package/funcs/evalsAll.d.ts +2 -2
- package/funcs/evalsAll.d.ts.map +1 -1
- package/funcs/evalsAll.js +2 -5
- package/funcs/evalsAll.js.map +1 -1
- package/funcs/evalsCreate.d.ts +2 -2
- package/funcs/evalsCreate.d.ts.map +1 -1
- package/funcs/evalsCreate.js +5 -20
- package/funcs/evalsCreate.js.map +1 -1
- package/funcs/evalsDelete.d.ts +2 -2
- package/funcs/evalsDelete.d.ts.map +1 -1
- package/funcs/evalsDelete.js +2 -6
- package/funcs/evalsDelete.js.map +1 -1
- package/funcs/evalsGet.d.ts +2 -2
- package/funcs/evalsGet.d.ts.map +1 -1
- package/funcs/evalsGet.js +2 -5
- package/funcs/evalsGet.js.map +1 -1
- package/funcs/{deploymentsInvoke.d.ts → evalsGetVersion.d.ts} +4 -4
- package/funcs/evalsGetVersion.d.ts.map +1 -0
- package/funcs/evalsGetVersion.js +125 -0
- package/funcs/evalsGetVersion.js.map +1 -0
- package/funcs/evalsListVersions.d.ts +3 -3
- package/funcs/evalsListVersions.d.ts.map +1 -1
- package/funcs/evalsListVersions.js +5 -8
- package/funcs/evalsListVersions.js.map +1 -1
- package/funcs/evalsUpdate.d.ts +2 -2
- package/funcs/evalsUpdate.d.ts.map +1 -1
- package/funcs/evalsUpdate.js +2 -5
- package/funcs/evalsUpdate.js.map +1 -1
- package/funcs/knowledgePreviewChunks.d.ts +18 -0
- package/funcs/knowledgePreviewChunks.d.ts.map +1 -0
- package/funcs/{deploymentsStream.js → knowledgePreviewChunks.js} +18 -25
- package/funcs/knowledgePreviewChunks.js.map +1 -0
- package/funcs/logsListFacets.d.ts +2 -3
- package/funcs/logsListFacets.d.ts.map +1 -1
- package/funcs/logsListFacets.js +5 -12
- package/funcs/logsListFacets.js.map +1 -1
- package/funcs/reportingQuery.d.ts +1 -1
- package/funcs/reportingQuery.js +1 -1
- package/funcs/tracesAggregate.d.ts +1 -1
- package/funcs/tracesAggregate.js +1 -1
- package/funcs/workspacesGet.d.ts +18 -0
- package/funcs/workspacesGet.d.ts.map +1 -0
- package/funcs/workspacesGet.js +121 -0
- package/funcs/workspacesGet.js.map +1 -0
- package/funcs/workspacesList.d.ts +18 -0
- package/funcs/workspacesList.d.ts.map +1 -0
- package/funcs/workspacesList.js +121 -0
- package/funcs/workspacesList.js.map +1 -0
- package/funcs/{deploymentsStream.d.ts → workspacesUpdate.d.ts} +5 -5
- package/funcs/workspacesUpdate.d.ts.map +1 -0
- package/funcs/workspacesUpdate.js +124 -0
- package/funcs/workspacesUpdate.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/encodings.d.ts +10 -9
- package/lib/encodings.d.ts.map +1 -1
- package/lib/encodings.js +29 -13
- package/lib/encodings.js.map +1 -1
- package/models/components/addannotationqueueitemsrequest.d.ts +16 -0
- package/models/components/addannotationqueueitemsrequest.d.ts.map +1 -0
- package/models/components/addannotationqueueitemsrequest.js +50 -0
- package/models/components/addannotationqueueitemsrequest.js.map +1 -0
- package/models/components/addannotationqueueitemsresponse.d.ts +14 -0
- package/models/components/addannotationqueueitemsresponse.d.ts.map +1 -0
- package/models/components/addannotationqueueitemsresponse.js +51 -0
- package/models/components/addannotationqueueitemsresponse.js.map +1 -0
- package/models/components/agentresponserequest.d.ts +20 -20
- package/models/components/agentresponserequest.d.ts.map +1 -1
- package/models/components/agentresponserequest.js +20 -20
- package/models/components/agentresponserequest.js.map +1 -1
- package/models/components/agentthoughtstreamingevent.d.ts +12 -12
- package/models/components/agentthoughtstreamingevent.d.ts.map +1 -1
- package/models/components/agentthoughtstreamingevent.js +17 -17
- package/models/components/agentthoughtstreamingevent.js.map +1 -1
- package/models/components/annotationqueue.d.ts +54 -0
- package/models/components/annotationqueue.d.ts.map +1 -0
- package/models/components/{evaluatorresponsehttp.js → annotationqueue.js} +22 -25
- package/models/components/annotationqueue.js.map +1 -0
- package/models/components/annotationqueueitem.d.ts +41 -0
- package/models/components/annotationqueueitem.d.ts.map +1 -0
- package/models/components/{evaluatorresponsepython.js → annotationqueueitem.js} +19 -18
- package/models/components/annotationqueueitem.js.map +1 -0
- package/models/components/annotationqueueitemref.d.ts +17 -0
- package/models/components/annotationqueueitemref.d.ts.map +1 -0
- package/models/{errors/getevals.js → components/annotationqueueitemref.js} +14 -26
- package/models/components/annotationqueueitemref.js.map +1 -0
- package/models/components/annotationqueuemetadata.d.ts +16 -0
- package/models/components/annotationqueuemetadata.d.ts.map +1 -0
- package/models/components/{evaluatorresponsejsonschema.js → annotationqueuemetadata.js} +8 -20
- package/models/components/annotationqueuemetadata.js.map +1 -0
- package/models/components/auditlog.d.ts +60 -0
- package/models/components/auditlog.d.ts.map +1 -0
- package/models/components/{evaluatorresponseragas.js → auditlog.js} +33 -36
- package/models/components/auditlog.js.map +1 -0
- package/models/components/auditlogfilter.d.ts +33 -0
- package/models/components/auditlogfilter.d.ts.map +1 -0
- package/models/components/auditlogfilter.js +52 -0
- package/models/components/auditlogfilter.js.map +1 -0
- package/models/components/auditlogfilterquery.d.ts +29 -0
- package/models/components/auditlogfilterquery.d.ts.map +1 -0
- package/models/components/auditlogfilterquery.js +52 -0
- package/models/components/auditlogfilterquery.js.map +1 -0
- package/models/components/auditlogpagination.d.ts +28 -0
- package/models/components/auditlogpagination.d.ts.map +1 -0
- package/models/{errors/createeval.js → components/auditlogpagination.js} +15 -26
- package/models/components/auditlogpagination.js.map +1 -0
- package/models/components/auditlogsort.d.ts +23 -0
- package/models/components/auditlogsort.d.ts.map +1 -0
- package/models/components/auditlogsort.js +50 -0
- package/models/components/auditlogsort.js.map +1 -0
- package/models/components/budgetmatch.d.ts +1 -7
- package/models/components/budgetmatch.d.ts.map +1 -1
- package/models/components/budgetmatch.js.map +1 -1
- package/models/components/budgetscope.d.ts +1 -5
- package/models/components/budgetscope.d.ts.map +1 -1
- package/models/components/budgetscope.js.map +1 -1
- package/models/components/budgetscoperestresponse.d.ts +1 -5
- package/models/components/budgetscoperestresponse.d.ts.map +1 -1
- package/models/components/budgetscoperestresponse.js.map +1 -1
- package/models/components/chunkingconfiguration.d.ts +263 -4
- package/models/components/chunkingconfiguration.d.ts.map +1 -1
- package/models/components/chunkingconfiguration.js +144 -1
- package/models/components/chunkingconfiguration.js.map +1 -1
- package/models/components/clearannotationqueueresponse.d.ts +8 -0
- package/models/components/clearannotationqueueresponse.d.ts.map +1 -0
- package/models/components/clearannotationqueueresponse.js +48 -0
- package/models/components/clearannotationqueueresponse.js.map +1 -0
- package/models/components/createannotationqueuerequest.d.ts +25 -0
- package/models/components/createannotationqueuerequest.d.ts.map +1 -0
- package/models/components/createannotationqueuerequest.js +57 -0
- package/models/components/createannotationqueuerequest.js.map +1 -0
- package/models/components/createapikeyrequest.d.ts +12 -0
- package/models/components/createapikeyrequest.d.ts.map +1 -1
- package/models/components/createapikeyrequest.js +1 -0
- package/models/components/createapikeyrequest.js.map +1 -1
- package/models/components/createmcpgatewayrequest.d.ts +6 -0
- package/models/components/createmcpgatewayrequest.d.ts.map +1 -1
- package/models/components/createmcpgatewayrequest.js +2 -0
- package/models/components/createmcpgatewayrequest.js.map +1 -1
- package/models/components/datasourcesservicepreviewchunksrequest.d.ts +15 -0
- package/models/components/datasourcesservicepreviewchunksrequest.d.ts.map +1 -0
- package/models/{errors/geteval.js → components/datasourcesservicepreviewchunksrequest.js} +15 -26
- package/models/components/datasourcesservicepreviewchunksrequest.js.map +1 -0
- package/models/components/datasourcesservicepreviewchunksresponse.d.ts +13 -0
- package/models/components/datasourcesservicepreviewchunksresponse.d.ts.map +1 -0
- package/models/components/datasourcesservicepreviewchunksresponse.js +53 -0
- package/models/components/datasourcesservicepreviewchunksresponse.js.map +1 -0
- package/models/components/deleteannotationqueueresponse.d.ts +8 -0
- package/models/components/deleteannotationqueueresponse.d.ts.map +1 -0
- package/models/components/deleteannotationqueueresponse.js +48 -0
- package/models/components/deleteannotationqueueresponse.js.map +1 -0
- package/models/components/deleteevaluatorresponse.d.ts +8 -0
- package/models/components/deleteevaluatorresponse.d.ts.map +1 -0
- package/models/components/deleteevaluatorresponse.js +48 -0
- package/models/components/deleteevaluatorresponse.js.map +1 -0
- package/models/components/evaluationcontext.d.ts +6 -6
- package/models/components/evaluationcontext.d.ts.map +1 -1
- package/models/components/evaluationcontext.js +6 -7
- package/models/components/evaluationcontext.js.map +1 -1
- package/models/components/evaluatordocumentresponse.d.ts +14 -0
- package/models/components/evaluatordocumentresponse.d.ts.map +1 -0
- package/models/components/evaluatordocumentresponse.js +56 -0
- package/models/components/evaluatordocumentresponse.js.map +1 -0
- package/models/components/filesystemtoolinput.d.ts +39 -9
- package/models/components/filesystemtoolinput.d.ts.map +1 -1
- package/models/components/filesystemtoolinput.js +28 -2
- package/models/components/filesystemtoolinput.js.map +1 -1
- package/models/components/getevaluatorversionresponse.d.ts +20 -0
- package/models/components/getevaluatorversionresponse.d.ts.map +1 -0
- package/models/components/getevaluatorversionresponse.js +57 -0
- package/models/components/getevaluatorversionresponse.js.map +1 -0
- package/models/components/getuploadfileurlresponse.d.ts +4 -0
- package/models/components/getuploadfileurlresponse.d.ts.map +1 -1
- package/models/components/getuploadfileurlresponse.js +1 -0
- package/models/components/getuploadfileurlresponse.js.map +1 -1
- package/models/components/getworkspaceresponse.d.ts +11 -0
- package/models/components/getworkspaceresponse.d.ts.map +1 -0
- package/models/components/getworkspaceresponse.js +51 -0
- package/models/components/getworkspaceresponse.js.map +1 -0
- package/models/components/index.d.ts +41 -9
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +41 -9
- package/models/components/index.js.map +1 -1
- package/models/components/listannotationqueueitemsresponse.d.ts +22 -0
- package/models/components/listannotationqueueitemsresponse.d.ts.map +1 -0
- package/models/components/{evaluatorresponsetypescript.js → listannotationqueueitemsresponse.js} +11 -20
- package/models/components/listannotationqueueitemsresponse.js.map +1 -0
- package/models/components/listannotationqueuesresponse.d.ts +22 -0
- package/models/components/listannotationqueuesresponse.d.ts.map +1 -0
- package/models/components/listannotationqueuesresponse.js +58 -0
- package/models/components/listannotationqueuesresponse.js.map +1 -0
- package/models/components/listevaluatorsresponse.d.ts +16 -0
- package/models/components/listevaluatorsresponse.d.ts.map +1 -0
- package/models/components/listevaluatorsresponse.js +63 -0
- package/models/components/listevaluatorsresponse.js.map +1 -0
- package/models/components/listevaluatorversionsresponse.d.ts +16 -0
- package/models/components/listevaluatorversionsresponse.d.ts.map +1 -0
- package/models/components/listevaluatorversionsresponse.js +63 -0
- package/models/components/listevaluatorversionsresponse.js.map +1 -0
- package/models/{operations/listlogfacets.d.ts → components/listlogfacetsrequest.d.ts} +8 -1
- package/models/components/listlogfacetsrequest.d.ts.map +1 -0
- package/models/{operations/listlogfacets.js → components/listlogfacetsrequest.js} +6 -1
- package/models/components/listlogfacetsrequest.js.map +1 -0
- package/models/components/listworkspacesresponse.d.ts +13 -0
- package/models/components/listworkspacesresponse.d.ts.map +1 -0
- package/models/components/listworkspacesresponse.js +58 -0
- package/models/components/listworkspacesresponse.js.map +1 -0
- package/models/components/mcpgateway.d.ts +5 -0
- package/models/components/mcpgateway.d.ts.map +1 -1
- package/models/components/mcpgateway.js +2 -0
- package/models/components/mcpgateway.js.map +1 -1
- package/models/components/mcpgatewayplugin.d.ts +30 -0
- package/models/components/mcpgatewayplugin.d.ts.map +1 -0
- package/models/components/mcpgatewayplugin.js +77 -0
- package/models/components/mcpgatewayplugin.js.map +1 -0
- package/models/components/modelmetadata.d.ts +2 -0
- package/models/components/modelmetadata.d.ts.map +1 -1
- package/models/components/modelmetadata.js +4 -0
- package/models/components/modelmetadata.js.map +1 -1
- package/models/components/modelsconfig.d.ts +5 -5
- package/models/components/modelsconfig.d.ts.map +1 -1
- package/models/components/modelsconfig.js +6 -6
- package/models/components/modelsconfig.js.map +1 -1
- package/models/components/monitorfilter.d.ts +8 -0
- package/models/components/monitorfilter.d.ts.map +1 -1
- package/models/components/monitorfilter.js +8 -0
- package/models/components/monitorfilter.js.map +1 -1
- package/models/components/piiredactionconfig.d.ts +7 -9
- package/models/components/piiredactionconfig.d.ts.map +1 -1
- package/models/components/piiredactionconfig.js.map +1 -1
- package/models/components/previewchunk.d.ts +11 -0
- package/models/components/previewchunk.d.ts.map +1 -0
- package/models/components/previewchunk.js +56 -0
- package/models/components/previewchunk.js.map +1 -0
- package/models/components/previewchunksmetadata.d.ts +15 -0
- package/models/components/previewchunksmetadata.d.ts.map +1 -0
- package/models/components/previewchunksmetadata.js +65 -0
- package/models/components/previewchunksmetadata.js.map +1 -0
- package/models/components/pricing.d.ts +4 -0
- package/models/components/pricing.d.ts.map +1 -1
- package/models/components/pricing.js +8 -0
- package/models/components/pricing.js.map +1 -1
- package/models/components/pricingvariant.d.ts +4 -0
- package/models/components/pricingvariant.d.ts.map +1 -1
- package/models/components/pricingvariant.js +8 -0
- package/models/components/pricingvariant.js.map +1 -1
- package/models/components/queryauditlogsrequest.d.ts +31 -0
- package/models/components/queryauditlogsrequest.d.ts.map +1 -0
- package/models/components/queryauditlogsrequest.js +54 -0
- package/models/components/queryauditlogsrequest.js.map +1 -0
- package/models/components/queryauditlogsresponse.d.ts +25 -0
- package/models/components/queryauditlogsresponse.d.ts.map +1 -0
- package/models/components/queryauditlogsresponse.js +60 -0
- package/models/components/queryauditlogsresponse.js.map +1 -0
- package/models/components/reasoningpart.js +1 -1
- package/models/components/removeannotationqueueitemsrequest.d.ts +15 -0
- package/models/components/removeannotationqueueitemsrequest.d.ts.map +1 -0
- package/models/components/removeannotationqueueitemsrequest.js +54 -0
- package/models/components/removeannotationqueueitemsrequest.js.map +1 -0
- package/models/components/removeannotationqueueitemsresponse.d.ts +8 -0
- package/models/components/removeannotationqueueitemsresponse.d.ts.map +1 -0
- package/models/{errors/updateeval.js → components/removeannotationqueueitemsresponse.js} +8 -28
- package/models/components/removeannotationqueueitemsresponse.js.map +1 -0
- package/models/components/searchknowledgerequest.d.ts +184 -184
- package/models/components/searchknowledgerequest.d.ts.map +1 -1
- package/models/components/searchknowledgerequest.js +229 -217
- package/models/components/searchknowledgerequest.js.map +1 -1
- package/models/components/textcontentpartschema.d.ts +10 -10
- package/models/components/textcontentpartschema.d.ts.map +1 -1
- package/models/components/textcontentpartschema.js +11 -11
- package/models/components/textcontentpartschema.js.map +1 -1
- package/models/components/updateannotationqueuerequest.d.ts +30 -0
- package/models/components/updateannotationqueuerequest.d.ts.map +1 -0
- package/models/components/updateannotationqueuerequest.js +59 -0
- package/models/components/updateannotationqueuerequest.js.map +1 -0
- package/models/components/updatemcpgatewayrequest.d.ts +6 -0
- package/models/components/updatemcpgatewayrequest.d.ts.map +1 -1
- package/models/components/updatemcpgatewayrequest.js +2 -0
- package/models/components/updatemcpgatewayrequest.js.map +1 -1
- package/models/components/updateworkspacerequest.d.ts +29 -0
- package/models/components/updateworkspacerequest.d.ts.map +1 -0
- package/models/components/updateworkspacerequest.js +69 -0
- package/models/components/updateworkspacerequest.js.map +1 -0
- package/models/components/updateworkspaceresponse.d.ts +11 -0
- package/models/components/updateworkspaceresponse.d.ts.map +1 -0
- package/models/components/updateworkspaceresponse.js +51 -0
- package/models/components/updateworkspaceresponse.js.map +1 -0
- package/models/components/upsertchunk.d.ts +5 -0
- package/models/components/upsertchunk.d.ts.map +1 -1
- package/models/components/upsertchunk.js +6 -0
- package/models/components/upsertchunk.js.map +1 -1
- package/models/components/value.d.ts +17 -0
- package/models/components/value.d.ts.map +1 -0
- package/models/components/value.js +54 -0
- package/models/components/value.js.map +1 -0
- package/models/components/workspace.d.ts +33 -0
- package/models/components/workspace.d.ts.map +1 -0
- package/models/components/workspace.js +88 -0
- package/models/components/workspace.js.map +1 -0
- package/models/components/workspacecapabilities.d.ts +11 -0
- package/models/components/workspacecapabilities.d.ts.map +1 -0
- package/models/components/workspacecapabilities.js +51 -0
- package/models/components/workspacecapabilities.js.map +1 -0
- package/models/components/workspaceorganization.d.ts +11 -0
- package/models/components/workspaceorganization.d.ts.map +1 -0
- package/models/components/workspaceorganization.js +51 -0
- package/models/components/workspaceorganization.js.map +1 -0
- package/models/components/workspacesettingsfields.d.ts +39 -0
- package/models/components/workspacesettingsfields.d.ts.map +1 -0
- package/models/components/workspacesettingsfields.js +99 -0
- package/models/components/workspacesettingsfields.js.map +1 -0
- package/models/errors/index.d.ts +0 -6
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +0 -6
- package/models/errors/index.js.map +1 -1
- package/models/operations/addannotationqueueitems.d.ts +3 -60
- package/models/operations/addannotationqueueitems.d.ts.map +1 -1
- package/models/operations/addannotationqueueitems.js +4 -55
- package/models/operations/addannotationqueueitems.js.map +1 -1
- package/models/operations/createagentrequest.d.ts +12 -12
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +11 -12
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createchatcompletion.d.ts +58 -58
- package/models/operations/createchatcompletion.d.ts.map +1 -1
- package/models/operations/createchatcompletion.js +80 -81
- package/models/operations/createchatcompletion.js.map +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +5 -5
- package/models/operations/createeval.d.ts +2 -312
- package/models/operations/createeval.d.ts.map +1 -1
- package/models/operations/createeval.js +2 -264
- package/models/operations/createeval.js.map +1 -1
- package/models/operations/createprompt.d.ts +14 -12
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +16 -13
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.d.ts +24 -24
- package/models/operations/createtool.d.ts.map +1 -1
- package/models/operations/createtool.js +29 -29
- package/models/operations/createtool.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +8 -8
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +10 -10
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deployments.d.ts +18 -16
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +20 -16
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/getallprompts.d.ts +2 -0
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +2 -0
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +4 -4
- package/models/operations/geteval.d.ts +0 -814
- package/models/operations/geteval.d.ts.map +1 -1
- package/models/operations/geteval.js +1 -1252
- package/models/operations/geteval.js.map +1 -1
- package/models/operations/getevals.d.ts +3 -41
- package/models/operations/getevals.d.ts.map +1 -1
- package/models/operations/getevals.js +3 -54
- package/models/operations/getevals.js.map +1 -1
- package/models/operations/getevalversion.d.ts +14 -0
- package/models/operations/getevalversion.d.ts.map +1 -0
- package/models/operations/getevalversion.js +55 -0
- package/models/operations/getevalversion.js.map +1 -0
- package/models/operations/getoneprompt.d.ts +2 -0
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +2 -0
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +2 -0
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +2 -0
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/index.d.ts +6 -5
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +6 -5
- package/models/operations/index.js.map +1 -1
- package/models/operations/listannotationqueueitems.d.ts +4 -72
- package/models/operations/listannotationqueueitems.d.ts.map +1 -1
- package/models/operations/listannotationqueueitems.js +2 -80
- package/models/operations/listannotationqueueitems.js.map +1 -1
- package/models/operations/listannotationqueues.d.ts +6 -81
- package/models/operations/listannotationqueues.d.ts.map +1 -1
- package/models/operations/listannotationqueues.js +2 -63
- package/models/operations/listannotationqueues.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +5 -5
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listevalversions.d.ts +21 -0
- package/models/operations/listevalversions.d.ts.map +1 -0
- package/models/operations/listevalversions.js +58 -0
- package/models/operations/listevalversions.js.map +1 -0
- package/models/operations/listpromptversions.d.ts +2 -0
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +2 -0
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/parse.d.ts +4 -4
- package/models/operations/parse.d.ts.map +1 -1
- package/models/operations/parse.js +4 -4
- package/models/operations/parse.js.map +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.d.ts +6 -6
- package/models/operations/postv2feedbackevaluation.d.ts.map +1 -1
- package/models/operations/postv2feedbackevaluation.js +10 -10
- package/models/operations/postv2feedbackevaluation.js.map +1 -1
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/previewdatasourcechunks.d.ts +15 -0
- package/models/operations/previewdatasourcechunks.d.ts.map +1 -0
- package/models/operations/previewdatasourcechunks.js +57 -0
- package/models/operations/previewdatasourcechunks.js.map +1 -0
- package/models/operations/removeannotationqueueitems.d.ts +3 -15
- package/models/operations/removeannotationqueueitems.d.ts.map +1 -1
- package/models/operations/removeannotationqueueitems.js +4 -15
- package/models/operations/removeannotationqueueitems.js.map +1 -1
- package/models/operations/retrieveannotationqueue.d.ts +0 -60
- package/models/operations/retrieveannotationqueue.d.ts.map +1 -1
- package/models/operations/retrieveannotationqueue.js +1 -43
- package/models/operations/retrieveannotationqueue.js.map +1 -1
- package/models/operations/retrieveannotationqueueitem.d.ts +9 -0
- package/models/operations/retrieveannotationqueueitem.d.ts.map +1 -1
- package/models/operations/retrieveannotationqueueitem.js +8 -1
- package/models/operations/retrieveannotationqueueitem.js.map +1 -1
- package/models/operations/retrievedatapoint.js +5 -5
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updateagent.d.ts +16 -16
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +17 -17
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updateannotationqueue.d.ts +3 -90
- package/models/operations/updateannotationqueue.d.ts.map +1 -1
- package/models/operations/updateannotationqueue.js +4 -63
- package/models/operations/updateannotationqueue.js.map +1 -1
- package/models/operations/updatedatapoint.js +5 -5
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updateeval.d.ts +4 -201
- package/models/operations/updateeval.d.ts.map +1 -1
- package/models/operations/updateeval.js +3 -160
- package/models/operations/updateeval.js.map +1 -1
- package/models/operations/updateprompt.d.ts +2 -0
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +2 -0
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +4 -4
- package/models/operations/workspaceget.d.ts +12 -0
- package/models/operations/workspaceget.d.ts.map +1 -0
- package/models/operations/workspaceget.js +49 -0
- package/models/operations/workspaceget.js.map +1 -0
- package/models/operations/workspacelist.d.ts +16 -0
- package/models/operations/workspacelist.d.ts.map +1 -0
- package/models/operations/workspacelist.js +57 -0
- package/models/operations/workspacelist.js.map +1 -0
- package/models/operations/workspaceupdate.d.ts +15 -0
- package/models/operations/workspaceupdate.d.ts.map +1 -0
- package/models/operations/workspaceupdate.js +56 -0
- package/models/operations/workspaceupdate.js.map +1 -0
- package/package.json +3 -3
- package/sdk/annotationqueues.d.ts +24 -24
- package/sdk/annotationqueues.d.ts.map +1 -1
- package/sdk/annotationqueues.js +18 -18
- package/sdk/annotationqueues.js.map +1 -1
- package/sdk/auditlogs.d.ts +12 -0
- package/sdk/auditlogs.d.ts.map +1 -0
- package/sdk/auditlogs.js +22 -0
- package/sdk/auditlogs.js.map +1 -0
- package/sdk/deployments.d.ts +0 -16
- package/sdk/deployments.d.ts.map +1 -1
- package/sdk/deployments.js +0 -20
- package/sdk/deployments.js.map +1 -1
- package/sdk/evals.d.ts +20 -13
- package/sdk/evals.d.ts.map +1 -1
- package/sdk/evals.js +22 -12
- package/sdk/evals.js.map +1 -1
- package/sdk/knowledge.d.ts +7 -0
- package/sdk/knowledge.d.ts.map +1 -1
- package/sdk/knowledge.js +10 -0
- package/sdk/knowledge.js.map +1 -1
- package/sdk/logs.d.ts +2 -2
- package/sdk/logs.d.ts.map +1 -1
- package/sdk/logs.js +1 -1
- package/sdk/logs.js.map +1 -1
- package/sdk/reporting.d.ts +1 -1
- package/sdk/reporting.js +1 -1
- package/sdk/sdk.d.ts +10 -4
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +14 -6
- package/sdk/sdk.js.map +1 -1
- package/sdk/traces.d.ts +1 -1
- package/sdk/traces.js +1 -1
- package/sdk/workspaces.d.ts +27 -0
- package/sdk/workspaces.d.ts.map +1 -0
- package/sdk/workspaces.js +42 -0
- package/sdk/workspaces.js.map +1 -0
- package/src/funcs/annotationQueuesAddItems.ts +9 -10
- package/src/funcs/annotationQueuesClear.ts +8 -8
- package/src/funcs/annotationQueuesCreate.ts +10 -13
- package/src/funcs/annotationQueuesDelete.ts +8 -8
- package/src/funcs/annotationQueuesList.ts +6 -5
- package/src/funcs/annotationQueuesListItems.ts +6 -5
- package/src/funcs/annotationQueuesRemoveItems.ts +12 -10
- package/src/funcs/annotationQueuesRetrieve.ts +6 -5
- package/src/funcs/annotationQueuesRetrieveItem.ts +8 -6
- package/src/funcs/annotationQueuesUpdate.ts +10 -7
- package/src/funcs/{deploymentsInvoke.ts → auditLogsQuery.ts} +12 -20
- package/src/funcs/evalsAll.ts +6 -14
- package/src/funcs/evalsCreate.ts +10 -35
- package/src/funcs/evalsDelete.ts +6 -19
- package/src/funcs/evalsGet.ts +6 -14
- package/src/funcs/evalsGetVersion.ts +174 -0
- package/src/funcs/evalsListVersions.ts +11 -20
- package/src/funcs/evalsUpdate.ts +6 -14
- package/src/funcs/{deploymentsStream.ts → knowledgePreviewChunks.ts} +29 -30
- package/src/funcs/logsListFacets.ts +8 -17
- package/src/funcs/reportingQuery.ts +1 -1
- package/src/funcs/tracesAggregate.ts +1 -1
- package/src/funcs/workspacesGet.ts +168 -0
- package/src/funcs/workspacesList.ts +170 -0
- package/src/funcs/workspacesUpdate.ts +171 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +58 -23
- package/src/models/components/addannotationqueueitemsrequest.ts +41 -0
- package/src/models/components/addannotationqueueitemsresponse.ts +38 -0
- package/src/models/components/agentresponserequest.ts +39 -41
- package/src/models/components/agentthoughtstreamingevent.ts +43 -55
- package/src/models/components/annotationqueue.ts +101 -0
- package/src/models/components/annotationqueueitem.ts +80 -0
- package/src/models/components/annotationqueueitemref.ts +43 -0
- package/src/models/components/annotationqueuemetadata.ts +42 -0
- package/src/models/components/auditlog.ts +122 -0
- package/src/models/components/auditlogfilter.ts +51 -0
- package/src/models/components/auditlogfilterquery.ts +54 -0
- package/src/models/components/auditlogpagination.ts +55 -0
- package/src/models/components/auditlogsort.ts +39 -0
- package/src/models/components/budgetmatch.ts +1 -7
- package/src/models/components/budgetscope.ts +1 -5
- package/src/models/components/budgetscoperestresponse.ts +1 -5
- package/src/models/components/chunkingconfiguration.ts +432 -4
- package/src/models/components/clearannotationqueueresponse.ts +27 -0
- package/src/models/components/createannotationqueuerequest.ts +54 -0
- package/src/models/components/createapikeyrequest.ts +9 -0
- package/src/models/components/createmcpgatewayrequest.ts +11 -0
- package/src/models/components/datasourcesservicepreviewchunksrequest.ts +48 -0
- package/src/models/components/datasourcesservicepreviewchunksresponse.ts +44 -0
- package/src/models/components/deleteannotationqueueresponse.ts +27 -0
- package/src/models/components/deleteevaluatorresponse.ts +27 -0
- package/src/models/components/evaluationcontext.ts +10 -15
- package/src/models/components/evaluatordocumentresponse.ts +50 -0
- package/src/models/components/filesystemtoolinput.ts +63 -6
- package/src/models/components/getevaluatorversionresponse.ts +58 -0
- package/src/models/components/getuploadfileurlresponse.ts +5 -0
- package/src/models/components/getworkspaceresponse.ts +32 -0
- package/src/models/components/index.ts +41 -9
- package/src/models/components/listannotationqueueitemsresponse.ts +53 -0
- package/src/models/components/listannotationqueuesresponse.ts +53 -0
- package/src/models/components/listevaluatorsresponse.ts +59 -0
- package/src/models/components/listevaluatorversionsresponse.ts +59 -0
- package/src/models/{operations/listlogfacets.ts → components/listlogfacetsrequest.ts} +15 -0
- package/src/models/components/listworkspacesresponse.ts +41 -0
- package/src/models/components/mcpgateway.ts +9 -0
- package/src/models/components/mcpgatewayplugin.ts +83 -0
- package/src/models/components/modelmetadata.ts +6 -0
- package/src/models/components/modelsconfig.ts +10 -11
- package/src/models/components/monitorfilter.ts +8 -0
- package/src/models/components/piiredactionconfig.ts +7 -9
- package/src/models/components/previewchunk.ts +38 -0
- package/src/models/components/previewchunksmetadata.ts +51 -0
- package/src/models/components/pricing.ts +12 -0
- package/src/models/components/pricingvariant.ts +12 -0
- package/src/models/components/queryauditlogsrequest.ts +64 -0
- package/src/models/components/queryauditlogsresponse.ts +55 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/removeannotationqueueitemsrequest.ts +41 -0
- package/src/models/components/removeannotationqueueitemsresponse.ts +28 -0
- package/src/models/components/searchknowledgerequest.ts +491 -711
- package/src/models/components/textcontentpartschema.ts +19 -23
- package/src/models/components/updateannotationqueuerequest.ts +61 -0
- package/src/models/components/updatemcpgatewayrequest.ts +11 -0
- package/src/models/components/updateworkspacerequest.ts +81 -0
- package/src/models/components/updateworkspaceresponse.ts +32 -0
- package/src/models/components/upsertchunk.ts +11 -0
- package/src/models/components/value.ts +24 -0
- package/src/models/components/workspace.ts +116 -0
- package/src/models/components/workspacecapabilities.ts +33 -0
- package/src/models/components/workspaceorganization.ts +33 -0
- package/src/models/components/workspacesettingsfields.ts +135 -0
- package/src/models/errors/index.ts +0 -6
- package/src/models/operations/addannotationqueueitems.ts +7 -139
- package/src/models/operations/createagentrequest.ts +20 -31
- package/src/models/operations/createchatcompletion.ts +248 -313
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +5 -5
- package/src/models/operations/createeval.ts +3 -644
- package/src/models/operations/createprompt.ts +26 -29
- package/src/models/operations/createtool.ts +55 -56
- package/src/models/operations/deploymentgetconfig.ts +16 -18
- package/src/models/operations/deployments.ts +44 -46
- package/src/models/operations/getallprompts.ts +2 -0
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/geteval.ts +0 -2770
- package/src/models/operations/getevals.ts +5 -119
- package/src/models/operations/getevalversion.ts +39 -0
- package/src/models/operations/getoneprompt.ts +2 -0
- package/src/models/operations/getpromptversion.ts +2 -0
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/index.ts +6 -5
- package/src/models/operations/listannotationqueueitems.ts +5 -183
- package/src/models/operations/listannotationqueues.ts +7 -173
- package/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listevalversions.ts +49 -0
- package/src/models/operations/listpromptversions.ts +2 -0
- package/src/models/operations/parse.ts +7 -7
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +14 -20
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/previewdatasourcechunks.ts +47 -0
- package/src/models/operations/removeannotationqueueitems.ts +8 -41
- package/src/models/operations/retrieveannotationqueue.ts +0 -123
- package/src/models/operations/retrieveannotationqueueitem.ts +31 -0
- package/src/models/operations/retrievedatapoint.ts +5 -5
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updateagent.ts +31 -40
- package/src/models/operations/updateannotationqueue.ts +7 -182
- package/src/models/operations/updatedatapoint.ts +5 -5
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updateeval.ts +6 -404
- package/src/models/operations/updateprompt.ts +2 -0
- package/src/models/operations/updatetool.ts +4 -4
- package/src/models/operations/workspaceget.ts +31 -0
- package/src/models/operations/workspacelist.ts +43 -0
- package/src/models/operations/workspaceupdate.ts +40 -0
- package/src/sdk/annotationqueues.ts +31 -31
- package/src/sdk/auditlogs.ts +27 -0
- package/src/sdk/deployments.ts +0 -38
- package/src/sdk/evals.ts +41 -23
- package/src/sdk/knowledge.ts +18 -0
- package/src/sdk/logs.ts +2 -2
- package/src/sdk/reporting.ts +1 -1
- package/src/sdk/sdk.ts +22 -10
- package/src/sdk/traces.ts +1 -1
- package/src/sdk/workspaces.ts +64 -0
- package/funcs/deploymentsInvoke.d.ts.map +0 -1
- package/funcs/deploymentsInvoke.js.map +0 -1
- package/funcs/deploymentsStream.d.ts.map +0 -1
- package/funcs/deploymentsStream.js.map +0 -1
- package/models/components/evaluatorresponsefunction.d.ts +0 -230
- package/models/components/evaluatorresponsefunction.d.ts.map +0 -1
- package/models/components/evaluatorresponsefunction.js +0 -422
- package/models/components/evaluatorresponsefunction.js.map +0 -1
- package/models/components/evaluatorresponsehttp.d.ts +0 -37
- package/models/components/evaluatorresponsehttp.d.ts.map +0 -1
- package/models/components/evaluatorresponsehttp.js.map +0 -1
- package/models/components/evaluatorresponsejsonschema.d.ts +0 -22
- package/models/components/evaluatorresponsejsonschema.d.ts.map +0 -1
- package/models/components/evaluatorresponsejsonschema.js.map +0 -1
- package/models/components/evaluatorresponsellm.d.ts +0 -101
- package/models/components/evaluatorresponsellm.d.ts.map +0 -1
- package/models/components/evaluatorresponsellm.js +0 -181
- package/models/components/evaluatorresponsellm.js.map +0 -1
- package/models/components/evaluatorresponsepython.d.ts +0 -22
- package/models/components/evaluatorresponsepython.d.ts.map +0 -1
- package/models/components/evaluatorresponsepython.js.map +0 -1
- package/models/components/evaluatorresponseragas.d.ts +0 -41
- package/models/components/evaluatorresponseragas.d.ts.map +0 -1
- package/models/components/evaluatorresponseragas.js.map +0 -1
- package/models/components/evaluatorresponsetypescript.d.ts +0 -22
- package/models/components/evaluatorresponsetypescript.d.ts.map +0 -1
- package/models/components/evaluatorresponsetypescript.js.map +0 -1
- package/models/components/invokedeploymentrequest.d.ts +0 -1544
- package/models/components/invokedeploymentrequest.d.ts.map +0 -1
- package/models/components/invokedeploymentrequest.js +0 -1108
- package/models/components/invokedeploymentrequest.js.map +0 -1
- package/models/components/publicspan.d.ts +0 -68
- package/models/components/publicspan.d.ts.map +0 -1
- package/models/components/publicspan.js +0 -94
- package/models/components/publicspan.js.map +0 -1
- package/models/errors/createeval.d.ts +0 -23
- package/models/errors/createeval.d.ts.map +0 -1
- package/models/errors/createeval.js.map +0 -1
- package/models/errors/deleteeval.d.ts +0 -43
- package/models/errors/deleteeval.d.ts.map +0 -1
- package/models/errors/deleteeval.js +0 -94
- package/models/errors/deleteeval.js.map +0 -1
- package/models/errors/geteval.d.ts +0 -23
- package/models/errors/geteval.d.ts.map +0 -1
- package/models/errors/geteval.js.map +0 -1
- package/models/errors/getevals.d.ts +0 -23
- package/models/errors/getevals.d.ts.map +0 -1
- package/models/errors/getevals.js.map +0 -1
- package/models/errors/getv2evaluatorsidversions.d.ts +0 -23
- package/models/errors/getv2evaluatorsidversions.d.ts.map +0 -1
- package/models/errors/getv2evaluatorsidversions.js +0 -68
- package/models/errors/getv2evaluatorsidversions.js.map +0 -1
- package/models/errors/updateeval.d.ts +0 -23
- package/models/errors/updateeval.d.ts.map +0 -1
- package/models/errors/updateeval.js.map +0 -1
- package/models/operations/createannotationqueue.d.ts +0 -85
- package/models/operations/createannotationqueue.d.ts.map +0 -1
- package/models/operations/createannotationqueue.js +0 -99
- package/models/operations/createannotationqueue.js.map +0 -1
- package/models/operations/deploymentinvoke.d.ts +0 -365
- package/models/operations/deploymentinvoke.d.ts.map +0 -1
- package/models/operations/deploymentinvoke.js +0 -370
- package/models/operations/deploymentinvoke.js.map +0 -1
- package/models/operations/deploymentstream.d.ts +0 -1897
- package/models/operations/deploymentstream.d.ts.map +0 -1
- package/models/operations/deploymentstream.js +0 -1483
- package/models/operations/deploymentstream.js.map +0 -1
- package/models/operations/getv2evaluatorsidversions.d.ts +0 -66
- package/models/operations/getv2evaluatorsidversions.d.ts.map +0 -1
- package/models/operations/getv2evaluatorsidversions.js +0 -106
- package/models/operations/getv2evaluatorsidversions.js.map +0 -1
- package/models/operations/listlogfacets.d.ts.map +0 -1
- package/models/operations/listlogfacets.js.map +0 -1
- package/src/models/components/evaluatorresponsefunction.ts +0 -922
- package/src/models/components/evaluatorresponsehttp.ts +0 -77
- package/src/models/components/evaluatorresponsejsonschema.ts +0 -60
- package/src/models/components/evaluatorresponsellm.ts +0 -310
- package/src/models/components/evaluatorresponsepython.ts +0 -60
- package/src/models/components/evaluatorresponseragas.ts +0 -84
- package/src/models/components/evaluatorresponsetypescript.ts +0 -60
- package/src/models/components/invokedeploymentrequest.ts +0 -3446
- package/src/models/components/publicspan.ts +0 -135
- package/src/models/errors/createeval.ts +0 -51
- package/src/models/errors/deleteeval.ts +0 -96
- package/src/models/errors/geteval.ts +0 -51
- package/src/models/errors/getevals.ts +0 -51
- package/src/models/errors/getv2evaluatorsidversions.ts +0 -51
- package/src/models/errors/updateeval.ts +0 -51
- package/src/models/operations/createannotationqueue.ts +0 -176
- package/src/models/operations/deploymentinvoke.ts +0 -731
- package/src/models/operations/deploymentstream.ts +0 -4562
- package/src/models/operations/getv2evaluatorsidversions.ts +0 -162
|
@@ -1,922 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod/v3";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
|
|
11
|
-
export type ThirtyTwo = {
|
|
12
|
-
type: "grammar_diversity";
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export type ThirtyOne = {
|
|
16
|
-
type: "lexical_repetition";
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export type Thirty = {
|
|
20
|
-
type: "sentences_count";
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export type TwentyNine = {
|
|
24
|
-
type: "words_count";
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export type TwentyEight = {
|
|
28
|
-
type: "gse_english_level";
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export type TwentySeven = {
|
|
32
|
-
type: "flesch_reading_ease";
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export type TwentySix = {
|
|
36
|
-
type: "most_repeated_words";
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
export type TwentyFive = {
|
|
40
|
-
type: "keywords_match";
|
|
41
|
-
keywords: Array<string>;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
export type TwentyFour = {
|
|
45
|
-
type: "levenshtein_distance";
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
export type TwentyThree = {
|
|
49
|
-
type: "cosine_similarity";
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
export type TwentyTwo = {
|
|
53
|
-
type: "meteor_score";
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
export type TwentyOne = {
|
|
57
|
-
type: "rouge_n";
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
export type Twenty = {
|
|
61
|
-
type: "bleu_score";
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
export type Nineteen = {
|
|
65
|
-
type: "bert_score";
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
export type Eighteen = {
|
|
69
|
-
type: "moderations_google";
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
export type Seventeen = {
|
|
73
|
-
type: "moderations_openai";
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
export type Sixteen = {
|
|
77
|
-
type: "is_valid_json";
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
export type Fifteen = {
|
|
81
|
-
type: "regex";
|
|
82
|
-
pattern: string;
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
export type Fourteen = {
|
|
86
|
-
type: "one_line";
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
export type Thirteen = {
|
|
90
|
-
type: "length_greater_than";
|
|
91
|
-
value: number;
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
export type Twelve = {
|
|
95
|
-
type: "length_between";
|
|
96
|
-
min: number;
|
|
97
|
-
max: number;
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
export type Eleven = {
|
|
101
|
-
type: "length_less_than";
|
|
102
|
-
value: number;
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
export type Ten = {
|
|
106
|
-
type: "exact_match";
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
export type Nine = {
|
|
110
|
-
type: "ends_with";
|
|
111
|
-
value: string;
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
export type Eight = {
|
|
115
|
-
type: "start_with";
|
|
116
|
-
value: string;
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
export type Seven = {
|
|
120
|
-
type: "contains_valid_link";
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
export type Six = {
|
|
124
|
-
type: "contains_url";
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
export type Five = {
|
|
128
|
-
type: "contains_email";
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
export type Four = {
|
|
132
|
-
type: "contains_any";
|
|
133
|
-
keywords: Array<string>;
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
export type Three = {
|
|
137
|
-
type: "contains_all";
|
|
138
|
-
keywords: Array<string>;
|
|
139
|
-
};
|
|
140
|
-
|
|
141
|
-
export type Two = {
|
|
142
|
-
type: "contains_none";
|
|
143
|
-
keywords: Array<string>;
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
export type One = {
|
|
147
|
-
type: "contains";
|
|
148
|
-
value: string;
|
|
149
|
-
};
|
|
150
|
-
|
|
151
|
-
export type FunctionParams =
|
|
152
|
-
| One
|
|
153
|
-
| Two
|
|
154
|
-
| Three
|
|
155
|
-
| Four
|
|
156
|
-
| Five
|
|
157
|
-
| Six
|
|
158
|
-
| Seven
|
|
159
|
-
| Eight
|
|
160
|
-
| Nine
|
|
161
|
-
| Ten
|
|
162
|
-
| Eleven
|
|
163
|
-
| Twelve
|
|
164
|
-
| Thirteen
|
|
165
|
-
| Fourteen
|
|
166
|
-
| Fifteen
|
|
167
|
-
| Sixteen
|
|
168
|
-
| Seventeen
|
|
169
|
-
| Eighteen
|
|
170
|
-
| Nineteen
|
|
171
|
-
| Twenty
|
|
172
|
-
| TwentyOne
|
|
173
|
-
| TwentyTwo
|
|
174
|
-
| TwentyThree
|
|
175
|
-
| TwentyFour
|
|
176
|
-
| TwentyFive
|
|
177
|
-
| TwentySix
|
|
178
|
-
| TwentySeven
|
|
179
|
-
| TwentyEight
|
|
180
|
-
| TwentyNine
|
|
181
|
-
| Thirty
|
|
182
|
-
| ThirtyOne
|
|
183
|
-
| ThirtyTwo;
|
|
184
|
-
|
|
185
|
-
export type EvaluatorResponseFunction = {
|
|
186
|
-
id: string;
|
|
187
|
-
description: string;
|
|
188
|
-
created: string;
|
|
189
|
-
updated: string;
|
|
190
|
-
updatedById?: string | null | undefined;
|
|
191
|
-
/**
|
|
192
|
-
* Unique identifier of the project owning this evaluator.
|
|
193
|
-
*/
|
|
194
|
-
projectId?: string | undefined;
|
|
195
|
-
guardrailConfig?: any | undefined;
|
|
196
|
-
type: "function_eval";
|
|
197
|
-
functionParams:
|
|
198
|
-
| One
|
|
199
|
-
| Two
|
|
200
|
-
| Three
|
|
201
|
-
| Four
|
|
202
|
-
| Five
|
|
203
|
-
| Six
|
|
204
|
-
| Seven
|
|
205
|
-
| Eight
|
|
206
|
-
| Nine
|
|
207
|
-
| Ten
|
|
208
|
-
| Eleven
|
|
209
|
-
| Twelve
|
|
210
|
-
| Thirteen
|
|
211
|
-
| Fourteen
|
|
212
|
-
| Fifteen
|
|
213
|
-
| Sixteen
|
|
214
|
-
| Seventeen
|
|
215
|
-
| Eighteen
|
|
216
|
-
| Nineteen
|
|
217
|
-
| Twenty
|
|
218
|
-
| TwentyOne
|
|
219
|
-
| TwentyTwo
|
|
220
|
-
| TwentyThree
|
|
221
|
-
| TwentyFour
|
|
222
|
-
| TwentyFive
|
|
223
|
-
| TwentySix
|
|
224
|
-
| TwentySeven
|
|
225
|
-
| TwentyEight
|
|
226
|
-
| TwentyNine
|
|
227
|
-
| Thirty
|
|
228
|
-
| ThirtyOne
|
|
229
|
-
| ThirtyTwo;
|
|
230
|
-
key: string;
|
|
231
|
-
};
|
|
232
|
-
|
|
233
|
-
/** @internal */
|
|
234
|
-
export const ThirtyTwo$inboundSchema: z.ZodType<
|
|
235
|
-
ThirtyTwo,
|
|
236
|
-
z.ZodTypeDef,
|
|
237
|
-
unknown
|
|
238
|
-
> = z.object({
|
|
239
|
-
type: z.literal("grammar_diversity"),
|
|
240
|
-
});
|
|
241
|
-
|
|
242
|
-
export function thirtyTwoFromJSON(
|
|
243
|
-
jsonString: string,
|
|
244
|
-
): SafeParseResult<ThirtyTwo, SDKValidationError> {
|
|
245
|
-
return safeParse(
|
|
246
|
-
jsonString,
|
|
247
|
-
(x) => ThirtyTwo$inboundSchema.parse(JSON.parse(x)),
|
|
248
|
-
`Failed to parse 'ThirtyTwo' from JSON`,
|
|
249
|
-
);
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
/** @internal */
|
|
253
|
-
export const ThirtyOne$inboundSchema: z.ZodType<
|
|
254
|
-
ThirtyOne,
|
|
255
|
-
z.ZodTypeDef,
|
|
256
|
-
unknown
|
|
257
|
-
> = z.object({
|
|
258
|
-
type: z.literal("lexical_repetition"),
|
|
259
|
-
});
|
|
260
|
-
|
|
261
|
-
export function thirtyOneFromJSON(
|
|
262
|
-
jsonString: string,
|
|
263
|
-
): SafeParseResult<ThirtyOne, SDKValidationError> {
|
|
264
|
-
return safeParse(
|
|
265
|
-
jsonString,
|
|
266
|
-
(x) => ThirtyOne$inboundSchema.parse(JSON.parse(x)),
|
|
267
|
-
`Failed to parse 'ThirtyOne' from JSON`,
|
|
268
|
-
);
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
/** @internal */
|
|
272
|
-
export const Thirty$inboundSchema: z.ZodType<Thirty, z.ZodTypeDef, unknown> = z
|
|
273
|
-
.object({
|
|
274
|
-
type: z.literal("sentences_count"),
|
|
275
|
-
});
|
|
276
|
-
|
|
277
|
-
export function thirtyFromJSON(
|
|
278
|
-
jsonString: string,
|
|
279
|
-
): SafeParseResult<Thirty, SDKValidationError> {
|
|
280
|
-
return safeParse(
|
|
281
|
-
jsonString,
|
|
282
|
-
(x) => Thirty$inboundSchema.parse(JSON.parse(x)),
|
|
283
|
-
`Failed to parse 'Thirty' from JSON`,
|
|
284
|
-
);
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
/** @internal */
|
|
288
|
-
export const TwentyNine$inboundSchema: z.ZodType<
|
|
289
|
-
TwentyNine,
|
|
290
|
-
z.ZodTypeDef,
|
|
291
|
-
unknown
|
|
292
|
-
> = z.object({
|
|
293
|
-
type: z.literal("words_count"),
|
|
294
|
-
});
|
|
295
|
-
|
|
296
|
-
export function twentyNineFromJSON(
|
|
297
|
-
jsonString: string,
|
|
298
|
-
): SafeParseResult<TwentyNine, SDKValidationError> {
|
|
299
|
-
return safeParse(
|
|
300
|
-
jsonString,
|
|
301
|
-
(x) => TwentyNine$inboundSchema.parse(JSON.parse(x)),
|
|
302
|
-
`Failed to parse 'TwentyNine' from JSON`,
|
|
303
|
-
);
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
/** @internal */
|
|
307
|
-
export const TwentyEight$inboundSchema: z.ZodType<
|
|
308
|
-
TwentyEight,
|
|
309
|
-
z.ZodTypeDef,
|
|
310
|
-
unknown
|
|
311
|
-
> = z.object({
|
|
312
|
-
type: z.literal("gse_english_level"),
|
|
313
|
-
});
|
|
314
|
-
|
|
315
|
-
export function twentyEightFromJSON(
|
|
316
|
-
jsonString: string,
|
|
317
|
-
): SafeParseResult<TwentyEight, SDKValidationError> {
|
|
318
|
-
return safeParse(
|
|
319
|
-
jsonString,
|
|
320
|
-
(x) => TwentyEight$inboundSchema.parse(JSON.parse(x)),
|
|
321
|
-
`Failed to parse 'TwentyEight' from JSON`,
|
|
322
|
-
);
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
/** @internal */
|
|
326
|
-
export const TwentySeven$inboundSchema: z.ZodType<
|
|
327
|
-
TwentySeven,
|
|
328
|
-
z.ZodTypeDef,
|
|
329
|
-
unknown
|
|
330
|
-
> = z.object({
|
|
331
|
-
type: z.literal("flesch_reading_ease"),
|
|
332
|
-
});
|
|
333
|
-
|
|
334
|
-
export function twentySevenFromJSON(
|
|
335
|
-
jsonString: string,
|
|
336
|
-
): SafeParseResult<TwentySeven, SDKValidationError> {
|
|
337
|
-
return safeParse(
|
|
338
|
-
jsonString,
|
|
339
|
-
(x) => TwentySeven$inboundSchema.parse(JSON.parse(x)),
|
|
340
|
-
`Failed to parse 'TwentySeven' from JSON`,
|
|
341
|
-
);
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
/** @internal */
|
|
345
|
-
export const TwentySix$inboundSchema: z.ZodType<
|
|
346
|
-
TwentySix,
|
|
347
|
-
z.ZodTypeDef,
|
|
348
|
-
unknown
|
|
349
|
-
> = z.object({
|
|
350
|
-
type: z.literal("most_repeated_words"),
|
|
351
|
-
});
|
|
352
|
-
|
|
353
|
-
export function twentySixFromJSON(
|
|
354
|
-
jsonString: string,
|
|
355
|
-
): SafeParseResult<TwentySix, SDKValidationError> {
|
|
356
|
-
return safeParse(
|
|
357
|
-
jsonString,
|
|
358
|
-
(x) => TwentySix$inboundSchema.parse(JSON.parse(x)),
|
|
359
|
-
`Failed to parse 'TwentySix' from JSON`,
|
|
360
|
-
);
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
/** @internal */
|
|
364
|
-
export const TwentyFive$inboundSchema: z.ZodType<
|
|
365
|
-
TwentyFive,
|
|
366
|
-
z.ZodTypeDef,
|
|
367
|
-
unknown
|
|
368
|
-
> = z.object({
|
|
369
|
-
type: z.literal("keywords_match"),
|
|
370
|
-
keywords: z.array(z.string()),
|
|
371
|
-
});
|
|
372
|
-
|
|
373
|
-
export function twentyFiveFromJSON(
|
|
374
|
-
jsonString: string,
|
|
375
|
-
): SafeParseResult<TwentyFive, SDKValidationError> {
|
|
376
|
-
return safeParse(
|
|
377
|
-
jsonString,
|
|
378
|
-
(x) => TwentyFive$inboundSchema.parse(JSON.parse(x)),
|
|
379
|
-
`Failed to parse 'TwentyFive' from JSON`,
|
|
380
|
-
);
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
/** @internal */
|
|
384
|
-
export const TwentyFour$inboundSchema: z.ZodType<
|
|
385
|
-
TwentyFour,
|
|
386
|
-
z.ZodTypeDef,
|
|
387
|
-
unknown
|
|
388
|
-
> = z.object({
|
|
389
|
-
type: z.literal("levenshtein_distance"),
|
|
390
|
-
});
|
|
391
|
-
|
|
392
|
-
export function twentyFourFromJSON(
|
|
393
|
-
jsonString: string,
|
|
394
|
-
): SafeParseResult<TwentyFour, SDKValidationError> {
|
|
395
|
-
return safeParse(
|
|
396
|
-
jsonString,
|
|
397
|
-
(x) => TwentyFour$inboundSchema.parse(JSON.parse(x)),
|
|
398
|
-
`Failed to parse 'TwentyFour' from JSON`,
|
|
399
|
-
);
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
/** @internal */
|
|
403
|
-
export const TwentyThree$inboundSchema: z.ZodType<
|
|
404
|
-
TwentyThree,
|
|
405
|
-
z.ZodTypeDef,
|
|
406
|
-
unknown
|
|
407
|
-
> = z.object({
|
|
408
|
-
type: z.literal("cosine_similarity"),
|
|
409
|
-
});
|
|
410
|
-
|
|
411
|
-
export function twentyThreeFromJSON(
|
|
412
|
-
jsonString: string,
|
|
413
|
-
): SafeParseResult<TwentyThree, SDKValidationError> {
|
|
414
|
-
return safeParse(
|
|
415
|
-
jsonString,
|
|
416
|
-
(x) => TwentyThree$inboundSchema.parse(JSON.parse(x)),
|
|
417
|
-
`Failed to parse 'TwentyThree' from JSON`,
|
|
418
|
-
);
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
/** @internal */
|
|
422
|
-
export const TwentyTwo$inboundSchema: z.ZodType<
|
|
423
|
-
TwentyTwo,
|
|
424
|
-
z.ZodTypeDef,
|
|
425
|
-
unknown
|
|
426
|
-
> = z.object({
|
|
427
|
-
type: z.literal("meteor_score"),
|
|
428
|
-
});
|
|
429
|
-
|
|
430
|
-
export function twentyTwoFromJSON(
|
|
431
|
-
jsonString: string,
|
|
432
|
-
): SafeParseResult<TwentyTwo, SDKValidationError> {
|
|
433
|
-
return safeParse(
|
|
434
|
-
jsonString,
|
|
435
|
-
(x) => TwentyTwo$inboundSchema.parse(JSON.parse(x)),
|
|
436
|
-
`Failed to parse 'TwentyTwo' from JSON`,
|
|
437
|
-
);
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
/** @internal */
|
|
441
|
-
export const TwentyOne$inboundSchema: z.ZodType<
|
|
442
|
-
TwentyOne,
|
|
443
|
-
z.ZodTypeDef,
|
|
444
|
-
unknown
|
|
445
|
-
> = z.object({
|
|
446
|
-
type: z.literal("rouge_n"),
|
|
447
|
-
});
|
|
448
|
-
|
|
449
|
-
export function twentyOneFromJSON(
|
|
450
|
-
jsonString: string,
|
|
451
|
-
): SafeParseResult<TwentyOne, SDKValidationError> {
|
|
452
|
-
return safeParse(
|
|
453
|
-
jsonString,
|
|
454
|
-
(x) => TwentyOne$inboundSchema.parse(JSON.parse(x)),
|
|
455
|
-
`Failed to parse 'TwentyOne' from JSON`,
|
|
456
|
-
);
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
/** @internal */
|
|
460
|
-
export const Twenty$inboundSchema: z.ZodType<Twenty, z.ZodTypeDef, unknown> = z
|
|
461
|
-
.object({
|
|
462
|
-
type: z.literal("bleu_score"),
|
|
463
|
-
});
|
|
464
|
-
|
|
465
|
-
export function twentyFromJSON(
|
|
466
|
-
jsonString: string,
|
|
467
|
-
): SafeParseResult<Twenty, SDKValidationError> {
|
|
468
|
-
return safeParse(
|
|
469
|
-
jsonString,
|
|
470
|
-
(x) => Twenty$inboundSchema.parse(JSON.parse(x)),
|
|
471
|
-
`Failed to parse 'Twenty' from JSON`,
|
|
472
|
-
);
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
/** @internal */
|
|
476
|
-
export const Nineteen$inboundSchema: z.ZodType<
|
|
477
|
-
Nineteen,
|
|
478
|
-
z.ZodTypeDef,
|
|
479
|
-
unknown
|
|
480
|
-
> = z.object({
|
|
481
|
-
type: z.literal("bert_score"),
|
|
482
|
-
});
|
|
483
|
-
|
|
484
|
-
export function nineteenFromJSON(
|
|
485
|
-
jsonString: string,
|
|
486
|
-
): SafeParseResult<Nineteen, SDKValidationError> {
|
|
487
|
-
return safeParse(
|
|
488
|
-
jsonString,
|
|
489
|
-
(x) => Nineteen$inboundSchema.parse(JSON.parse(x)),
|
|
490
|
-
`Failed to parse 'Nineteen' from JSON`,
|
|
491
|
-
);
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
/** @internal */
|
|
495
|
-
export const Eighteen$inboundSchema: z.ZodType<
|
|
496
|
-
Eighteen,
|
|
497
|
-
z.ZodTypeDef,
|
|
498
|
-
unknown
|
|
499
|
-
> = z.object({
|
|
500
|
-
type: z.literal("moderations_google"),
|
|
501
|
-
});
|
|
502
|
-
|
|
503
|
-
export function eighteenFromJSON(
|
|
504
|
-
jsonString: string,
|
|
505
|
-
): SafeParseResult<Eighteen, SDKValidationError> {
|
|
506
|
-
return safeParse(
|
|
507
|
-
jsonString,
|
|
508
|
-
(x) => Eighteen$inboundSchema.parse(JSON.parse(x)),
|
|
509
|
-
`Failed to parse 'Eighteen' from JSON`,
|
|
510
|
-
);
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
/** @internal */
|
|
514
|
-
export const Seventeen$inboundSchema: z.ZodType<
|
|
515
|
-
Seventeen,
|
|
516
|
-
z.ZodTypeDef,
|
|
517
|
-
unknown
|
|
518
|
-
> = z.object({
|
|
519
|
-
type: z.literal("moderations_openai"),
|
|
520
|
-
});
|
|
521
|
-
|
|
522
|
-
export function seventeenFromJSON(
|
|
523
|
-
jsonString: string,
|
|
524
|
-
): SafeParseResult<Seventeen, SDKValidationError> {
|
|
525
|
-
return safeParse(
|
|
526
|
-
jsonString,
|
|
527
|
-
(x) => Seventeen$inboundSchema.parse(JSON.parse(x)),
|
|
528
|
-
`Failed to parse 'Seventeen' from JSON`,
|
|
529
|
-
);
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
/** @internal */
|
|
533
|
-
export const Sixteen$inboundSchema: z.ZodType<Sixteen, z.ZodTypeDef, unknown> =
|
|
534
|
-
z.object({
|
|
535
|
-
type: z.literal("is_valid_json"),
|
|
536
|
-
});
|
|
537
|
-
|
|
538
|
-
export function sixteenFromJSON(
|
|
539
|
-
jsonString: string,
|
|
540
|
-
): SafeParseResult<Sixteen, SDKValidationError> {
|
|
541
|
-
return safeParse(
|
|
542
|
-
jsonString,
|
|
543
|
-
(x) => Sixteen$inboundSchema.parse(JSON.parse(x)),
|
|
544
|
-
`Failed to parse 'Sixteen' from JSON`,
|
|
545
|
-
);
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
/** @internal */
|
|
549
|
-
export const Fifteen$inboundSchema: z.ZodType<Fifteen, z.ZodTypeDef, unknown> =
|
|
550
|
-
z.object({
|
|
551
|
-
type: z.literal("regex"),
|
|
552
|
-
pattern: z.string(),
|
|
553
|
-
});
|
|
554
|
-
|
|
555
|
-
export function fifteenFromJSON(
|
|
556
|
-
jsonString: string,
|
|
557
|
-
): SafeParseResult<Fifteen, SDKValidationError> {
|
|
558
|
-
return safeParse(
|
|
559
|
-
jsonString,
|
|
560
|
-
(x) => Fifteen$inboundSchema.parse(JSON.parse(x)),
|
|
561
|
-
`Failed to parse 'Fifteen' from JSON`,
|
|
562
|
-
);
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
/** @internal */
|
|
566
|
-
export const Fourteen$inboundSchema: z.ZodType<
|
|
567
|
-
Fourteen,
|
|
568
|
-
z.ZodTypeDef,
|
|
569
|
-
unknown
|
|
570
|
-
> = z.object({
|
|
571
|
-
type: z.literal("one_line"),
|
|
572
|
-
});
|
|
573
|
-
|
|
574
|
-
export function fourteenFromJSON(
|
|
575
|
-
jsonString: string,
|
|
576
|
-
): SafeParseResult<Fourteen, SDKValidationError> {
|
|
577
|
-
return safeParse(
|
|
578
|
-
jsonString,
|
|
579
|
-
(x) => Fourteen$inboundSchema.parse(JSON.parse(x)),
|
|
580
|
-
`Failed to parse 'Fourteen' from JSON`,
|
|
581
|
-
);
|
|
582
|
-
}
|
|
583
|
-
|
|
584
|
-
/** @internal */
|
|
585
|
-
export const Thirteen$inboundSchema: z.ZodType<
|
|
586
|
-
Thirteen,
|
|
587
|
-
z.ZodTypeDef,
|
|
588
|
-
unknown
|
|
589
|
-
> = z.object({
|
|
590
|
-
type: z.literal("length_greater_than"),
|
|
591
|
-
value: z.number(),
|
|
592
|
-
});
|
|
593
|
-
|
|
594
|
-
export function thirteenFromJSON(
|
|
595
|
-
jsonString: string,
|
|
596
|
-
): SafeParseResult<Thirteen, SDKValidationError> {
|
|
597
|
-
return safeParse(
|
|
598
|
-
jsonString,
|
|
599
|
-
(x) => Thirteen$inboundSchema.parse(JSON.parse(x)),
|
|
600
|
-
`Failed to parse 'Thirteen' from JSON`,
|
|
601
|
-
);
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
/** @internal */
|
|
605
|
-
export const Twelve$inboundSchema: z.ZodType<Twelve, z.ZodTypeDef, unknown> = z
|
|
606
|
-
.object({
|
|
607
|
-
type: z.literal("length_between"),
|
|
608
|
-
min: z.number(),
|
|
609
|
-
max: z.number(),
|
|
610
|
-
});
|
|
611
|
-
|
|
612
|
-
export function twelveFromJSON(
|
|
613
|
-
jsonString: string,
|
|
614
|
-
): SafeParseResult<Twelve, SDKValidationError> {
|
|
615
|
-
return safeParse(
|
|
616
|
-
jsonString,
|
|
617
|
-
(x) => Twelve$inboundSchema.parse(JSON.parse(x)),
|
|
618
|
-
`Failed to parse 'Twelve' from JSON`,
|
|
619
|
-
);
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
/** @internal */
|
|
623
|
-
export const Eleven$inboundSchema: z.ZodType<Eleven, z.ZodTypeDef, unknown> = z
|
|
624
|
-
.object({
|
|
625
|
-
type: z.literal("length_less_than"),
|
|
626
|
-
value: z.number(),
|
|
627
|
-
});
|
|
628
|
-
|
|
629
|
-
export function elevenFromJSON(
|
|
630
|
-
jsonString: string,
|
|
631
|
-
): SafeParseResult<Eleven, SDKValidationError> {
|
|
632
|
-
return safeParse(
|
|
633
|
-
jsonString,
|
|
634
|
-
(x) => Eleven$inboundSchema.parse(JSON.parse(x)),
|
|
635
|
-
`Failed to parse 'Eleven' from JSON`,
|
|
636
|
-
);
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
/** @internal */
|
|
640
|
-
export const Ten$inboundSchema: z.ZodType<Ten, z.ZodTypeDef, unknown> = z
|
|
641
|
-
.object({
|
|
642
|
-
type: z.literal("exact_match"),
|
|
643
|
-
});
|
|
644
|
-
|
|
645
|
-
export function tenFromJSON(
|
|
646
|
-
jsonString: string,
|
|
647
|
-
): SafeParseResult<Ten, SDKValidationError> {
|
|
648
|
-
return safeParse(
|
|
649
|
-
jsonString,
|
|
650
|
-
(x) => Ten$inboundSchema.parse(JSON.parse(x)),
|
|
651
|
-
`Failed to parse 'Ten' from JSON`,
|
|
652
|
-
);
|
|
653
|
-
}
|
|
654
|
-
|
|
655
|
-
/** @internal */
|
|
656
|
-
export const Nine$inboundSchema: z.ZodType<Nine, z.ZodTypeDef, unknown> = z
|
|
657
|
-
.object({
|
|
658
|
-
type: z.literal("ends_with"),
|
|
659
|
-
value: z.string(),
|
|
660
|
-
});
|
|
661
|
-
|
|
662
|
-
export function nineFromJSON(
|
|
663
|
-
jsonString: string,
|
|
664
|
-
): SafeParseResult<Nine, SDKValidationError> {
|
|
665
|
-
return safeParse(
|
|
666
|
-
jsonString,
|
|
667
|
-
(x) => Nine$inboundSchema.parse(JSON.parse(x)),
|
|
668
|
-
`Failed to parse 'Nine' from JSON`,
|
|
669
|
-
);
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
/** @internal */
|
|
673
|
-
export const Eight$inboundSchema: z.ZodType<Eight, z.ZodTypeDef, unknown> = z
|
|
674
|
-
.object({
|
|
675
|
-
type: z.literal("start_with"),
|
|
676
|
-
value: z.string(),
|
|
677
|
-
});
|
|
678
|
-
|
|
679
|
-
export function eightFromJSON(
|
|
680
|
-
jsonString: string,
|
|
681
|
-
): SafeParseResult<Eight, SDKValidationError> {
|
|
682
|
-
return safeParse(
|
|
683
|
-
jsonString,
|
|
684
|
-
(x) => Eight$inboundSchema.parse(JSON.parse(x)),
|
|
685
|
-
`Failed to parse 'Eight' from JSON`,
|
|
686
|
-
);
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
/** @internal */
|
|
690
|
-
export const Seven$inboundSchema: z.ZodType<Seven, z.ZodTypeDef, unknown> = z
|
|
691
|
-
.object({
|
|
692
|
-
type: z.literal("contains_valid_link"),
|
|
693
|
-
});
|
|
694
|
-
|
|
695
|
-
export function sevenFromJSON(
|
|
696
|
-
jsonString: string,
|
|
697
|
-
): SafeParseResult<Seven, SDKValidationError> {
|
|
698
|
-
return safeParse(
|
|
699
|
-
jsonString,
|
|
700
|
-
(x) => Seven$inboundSchema.parse(JSON.parse(x)),
|
|
701
|
-
`Failed to parse 'Seven' from JSON`,
|
|
702
|
-
);
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
/** @internal */
|
|
706
|
-
export const Six$inboundSchema: z.ZodType<Six, z.ZodTypeDef, unknown> = z
|
|
707
|
-
.object({
|
|
708
|
-
type: z.literal("contains_url"),
|
|
709
|
-
});
|
|
710
|
-
|
|
711
|
-
export function sixFromJSON(
|
|
712
|
-
jsonString: string,
|
|
713
|
-
): SafeParseResult<Six, SDKValidationError> {
|
|
714
|
-
return safeParse(
|
|
715
|
-
jsonString,
|
|
716
|
-
(x) => Six$inboundSchema.parse(JSON.parse(x)),
|
|
717
|
-
`Failed to parse 'Six' from JSON`,
|
|
718
|
-
);
|
|
719
|
-
}
|
|
720
|
-
|
|
721
|
-
/** @internal */
|
|
722
|
-
export const Five$inboundSchema: z.ZodType<Five, z.ZodTypeDef, unknown> = z
|
|
723
|
-
.object({
|
|
724
|
-
type: z.literal("contains_email"),
|
|
725
|
-
});
|
|
726
|
-
|
|
727
|
-
export function fiveFromJSON(
|
|
728
|
-
jsonString: string,
|
|
729
|
-
): SafeParseResult<Five, SDKValidationError> {
|
|
730
|
-
return safeParse(
|
|
731
|
-
jsonString,
|
|
732
|
-
(x) => Five$inboundSchema.parse(JSON.parse(x)),
|
|
733
|
-
`Failed to parse 'Five' from JSON`,
|
|
734
|
-
);
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
/** @internal */
|
|
738
|
-
export const Four$inboundSchema: z.ZodType<Four, z.ZodTypeDef, unknown> = z
|
|
739
|
-
.object({
|
|
740
|
-
type: z.literal("contains_any"),
|
|
741
|
-
keywords: z.array(z.string()),
|
|
742
|
-
});
|
|
743
|
-
|
|
744
|
-
export function fourFromJSON(
|
|
745
|
-
jsonString: string,
|
|
746
|
-
): SafeParseResult<Four, SDKValidationError> {
|
|
747
|
-
return safeParse(
|
|
748
|
-
jsonString,
|
|
749
|
-
(x) => Four$inboundSchema.parse(JSON.parse(x)),
|
|
750
|
-
`Failed to parse 'Four' from JSON`,
|
|
751
|
-
);
|
|
752
|
-
}
|
|
753
|
-
|
|
754
|
-
/** @internal */
|
|
755
|
-
export const Three$inboundSchema: z.ZodType<Three, z.ZodTypeDef, unknown> = z
|
|
756
|
-
.object({
|
|
757
|
-
type: z.literal("contains_all"),
|
|
758
|
-
keywords: z.array(z.string()),
|
|
759
|
-
});
|
|
760
|
-
|
|
761
|
-
export function threeFromJSON(
|
|
762
|
-
jsonString: string,
|
|
763
|
-
): SafeParseResult<Three, SDKValidationError> {
|
|
764
|
-
return safeParse(
|
|
765
|
-
jsonString,
|
|
766
|
-
(x) => Three$inboundSchema.parse(JSON.parse(x)),
|
|
767
|
-
`Failed to parse 'Three' from JSON`,
|
|
768
|
-
);
|
|
769
|
-
}
|
|
770
|
-
|
|
771
|
-
/** @internal */
|
|
772
|
-
export const Two$inboundSchema: z.ZodType<Two, z.ZodTypeDef, unknown> = z
|
|
773
|
-
.object({
|
|
774
|
-
type: z.literal("contains_none"),
|
|
775
|
-
keywords: z.array(z.string()),
|
|
776
|
-
});
|
|
777
|
-
|
|
778
|
-
export function twoFromJSON(
|
|
779
|
-
jsonString: string,
|
|
780
|
-
): SafeParseResult<Two, SDKValidationError> {
|
|
781
|
-
return safeParse(
|
|
782
|
-
jsonString,
|
|
783
|
-
(x) => Two$inboundSchema.parse(JSON.parse(x)),
|
|
784
|
-
`Failed to parse 'Two' from JSON`,
|
|
785
|
-
);
|
|
786
|
-
}
|
|
787
|
-
|
|
788
|
-
/** @internal */
|
|
789
|
-
export const One$inboundSchema: z.ZodType<One, z.ZodTypeDef, unknown> = z
|
|
790
|
-
.object({
|
|
791
|
-
type: z.literal("contains"),
|
|
792
|
-
value: z.string(),
|
|
793
|
-
});
|
|
794
|
-
|
|
795
|
-
export function oneFromJSON(
|
|
796
|
-
jsonString: string,
|
|
797
|
-
): SafeParseResult<One, SDKValidationError> {
|
|
798
|
-
return safeParse(
|
|
799
|
-
jsonString,
|
|
800
|
-
(x) => One$inboundSchema.parse(JSON.parse(x)),
|
|
801
|
-
`Failed to parse 'One' from JSON`,
|
|
802
|
-
);
|
|
803
|
-
}
|
|
804
|
-
|
|
805
|
-
/** @internal */
|
|
806
|
-
export const FunctionParams$inboundSchema: z.ZodType<
|
|
807
|
-
FunctionParams,
|
|
808
|
-
z.ZodTypeDef,
|
|
809
|
-
unknown
|
|
810
|
-
> = z.union([
|
|
811
|
-
z.lazy(() => One$inboundSchema),
|
|
812
|
-
z.lazy(() => Two$inboundSchema),
|
|
813
|
-
z.lazy(() => Three$inboundSchema),
|
|
814
|
-
z.lazy(() => Four$inboundSchema),
|
|
815
|
-
z.lazy(() => Five$inboundSchema),
|
|
816
|
-
z.lazy(() => Six$inboundSchema),
|
|
817
|
-
z.lazy(() => Seven$inboundSchema),
|
|
818
|
-
z.lazy(() => Eight$inboundSchema),
|
|
819
|
-
z.lazy(() => Nine$inboundSchema),
|
|
820
|
-
z.lazy(() => Ten$inboundSchema),
|
|
821
|
-
z.lazy(() => Eleven$inboundSchema),
|
|
822
|
-
z.lazy(() => Twelve$inboundSchema),
|
|
823
|
-
z.lazy(() => Thirteen$inboundSchema),
|
|
824
|
-
z.lazy(() => Fourteen$inboundSchema),
|
|
825
|
-
z.lazy(() => Fifteen$inboundSchema),
|
|
826
|
-
z.lazy(() => Sixteen$inboundSchema),
|
|
827
|
-
z.lazy(() => Seventeen$inboundSchema),
|
|
828
|
-
z.lazy(() => Eighteen$inboundSchema),
|
|
829
|
-
z.lazy(() => Nineteen$inboundSchema),
|
|
830
|
-
z.lazy(() => Twenty$inboundSchema),
|
|
831
|
-
z.lazy(() => TwentyOne$inboundSchema),
|
|
832
|
-
z.lazy(() => TwentyTwo$inboundSchema),
|
|
833
|
-
z.lazy(() => TwentyThree$inboundSchema),
|
|
834
|
-
z.lazy(() => TwentyFour$inboundSchema),
|
|
835
|
-
z.lazy(() => TwentyFive$inboundSchema),
|
|
836
|
-
z.lazy(() => TwentySix$inboundSchema),
|
|
837
|
-
z.lazy(() => TwentySeven$inboundSchema),
|
|
838
|
-
z.lazy(() => TwentyEight$inboundSchema),
|
|
839
|
-
z.lazy(() => TwentyNine$inboundSchema),
|
|
840
|
-
z.lazy(() => Thirty$inboundSchema),
|
|
841
|
-
z.lazy(() => ThirtyOne$inboundSchema),
|
|
842
|
-
z.lazy(() => ThirtyTwo$inboundSchema),
|
|
843
|
-
]);
|
|
844
|
-
|
|
845
|
-
export function functionParamsFromJSON(
|
|
846
|
-
jsonString: string,
|
|
847
|
-
): SafeParseResult<FunctionParams, SDKValidationError> {
|
|
848
|
-
return safeParse(
|
|
849
|
-
jsonString,
|
|
850
|
-
(x) => FunctionParams$inboundSchema.parse(JSON.parse(x)),
|
|
851
|
-
`Failed to parse 'FunctionParams' from JSON`,
|
|
852
|
-
);
|
|
853
|
-
}
|
|
854
|
-
|
|
855
|
-
/** @internal */
|
|
856
|
-
export const EvaluatorResponseFunction$inboundSchema: z.ZodType<
|
|
857
|
-
EvaluatorResponseFunction,
|
|
858
|
-
z.ZodTypeDef,
|
|
859
|
-
unknown
|
|
860
|
-
> = z.object({
|
|
861
|
-
_id: z.string(),
|
|
862
|
-
description: z.string(),
|
|
863
|
-
created: z.string().default("2026-08-26T09:46:51.830Z"),
|
|
864
|
-
updated: z.string().default("2026-08-26T09:46:51.831Z"),
|
|
865
|
-
updated_by_id: z.nullable(z.string()).optional(),
|
|
866
|
-
project_id: z.string().optional(),
|
|
867
|
-
guardrail_config: z.any().optional(),
|
|
868
|
-
type: z.literal("function_eval"),
|
|
869
|
-
function_params: z.union([
|
|
870
|
-
z.lazy(() => One$inboundSchema),
|
|
871
|
-
z.lazy(() => Two$inboundSchema),
|
|
872
|
-
z.lazy(() => Three$inboundSchema),
|
|
873
|
-
z.lazy(() => Four$inboundSchema),
|
|
874
|
-
z.lazy(() => Five$inboundSchema),
|
|
875
|
-
z.lazy(() => Six$inboundSchema),
|
|
876
|
-
z.lazy(() => Seven$inboundSchema),
|
|
877
|
-
z.lazy(() => Eight$inboundSchema),
|
|
878
|
-
z.lazy(() => Nine$inboundSchema),
|
|
879
|
-
z.lazy(() => Ten$inboundSchema),
|
|
880
|
-
z.lazy(() => Eleven$inboundSchema),
|
|
881
|
-
z.lazy(() => Twelve$inboundSchema),
|
|
882
|
-
z.lazy(() => Thirteen$inboundSchema),
|
|
883
|
-
z.lazy(() => Fourteen$inboundSchema),
|
|
884
|
-
z.lazy(() => Fifteen$inboundSchema),
|
|
885
|
-
z.lazy(() => Sixteen$inboundSchema),
|
|
886
|
-
z.lazy(() => Seventeen$inboundSchema),
|
|
887
|
-
z.lazy(() => Eighteen$inboundSchema),
|
|
888
|
-
z.lazy(() => Nineteen$inboundSchema),
|
|
889
|
-
z.lazy(() => Twenty$inboundSchema),
|
|
890
|
-
z.lazy(() => TwentyOne$inboundSchema),
|
|
891
|
-
z.lazy(() => TwentyTwo$inboundSchema),
|
|
892
|
-
z.lazy(() => TwentyThree$inboundSchema),
|
|
893
|
-
z.lazy(() => TwentyFour$inboundSchema),
|
|
894
|
-
z.lazy(() => TwentyFive$inboundSchema),
|
|
895
|
-
z.lazy(() => TwentySix$inboundSchema),
|
|
896
|
-
z.lazy(() => TwentySeven$inboundSchema),
|
|
897
|
-
z.lazy(() => TwentyEight$inboundSchema),
|
|
898
|
-
z.lazy(() => TwentyNine$inboundSchema),
|
|
899
|
-
z.lazy(() => Thirty$inboundSchema),
|
|
900
|
-
z.lazy(() => ThirtyOne$inboundSchema),
|
|
901
|
-
z.lazy(() => ThirtyTwo$inboundSchema),
|
|
902
|
-
]),
|
|
903
|
-
key: z.string(),
|
|
904
|
-
}).transform((v) => {
|
|
905
|
-
return remap$(v, {
|
|
906
|
-
"_id": "id",
|
|
907
|
-
"updated_by_id": "updatedById",
|
|
908
|
-
"project_id": "projectId",
|
|
909
|
-
"guardrail_config": "guardrailConfig",
|
|
910
|
-
"function_params": "functionParams",
|
|
911
|
-
});
|
|
912
|
-
});
|
|
913
|
-
|
|
914
|
-
export function evaluatorResponseFunctionFromJSON(
|
|
915
|
-
jsonString: string,
|
|
916
|
-
): SafeParseResult<EvaluatorResponseFunction, SDKValidationError> {
|
|
917
|
-
return safeParse(
|
|
918
|
-
jsonString,
|
|
919
|
-
(x) => EvaluatorResponseFunction$inboundSchema.parse(JSON.parse(x)),
|
|
920
|
-
`Failed to parse 'EvaluatorResponseFunction' from JSON`,
|
|
921
|
-
);
|
|
922
|
-
}
|