@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
|
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* Query reporting metrics
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Returns time-series, scalar, and top-list analytics for AI usage, cost, latency, evaluator results, and guardrail outcomes.
|
|
32
|
+
* Returns time-series, scalar, and top-list analytics for AI usage, cost, latency, evaluator results, and guardrail outcomes.
|
|
33
33
|
*/
|
|
34
34
|
export function reportingQuery(
|
|
35
35
|
client: OrqCore,
|
|
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* Aggregate traces
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Aggregate trace metrics using the structured trace filter contract.
|
|
32
|
+
* Aggregate trace metrics using the structured trace filter contract.
|
|
33
33
|
*/
|
|
34
34
|
export function tracesAggregate(
|
|
35
35
|
client: OrqCore,
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { OrqCore } from "../core.js";
|
|
6
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import * as components from "../models/components/index.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/httpclienterrors.js";
|
|
22
|
+
import { OrqError } from "../models/errors/orqerror.js";
|
|
23
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
24
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
25
|
+
import * as operations from "../models/operations/index.js";
|
|
26
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
+
import { Result } from "../types/fp.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Retrieve a workspace
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Retrieves a workspace by its key. A user session must be a member and does not need a workspace-scoped token. A management key may only retrieve the workspace bound to the key.
|
|
34
|
+
*/
|
|
35
|
+
export function workspacesGet(
|
|
36
|
+
client: OrqCore,
|
|
37
|
+
request: operations.WorkspaceGetRequest,
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): APIPromise<
|
|
40
|
+
Result<
|
|
41
|
+
components.GetWorkspaceResponse,
|
|
42
|
+
| OrqError
|
|
43
|
+
| ResponseValidationError
|
|
44
|
+
| ConnectionError
|
|
45
|
+
| RequestAbortedError
|
|
46
|
+
| RequestTimeoutError
|
|
47
|
+
| InvalidRequestError
|
|
48
|
+
| UnexpectedClientError
|
|
49
|
+
| SDKValidationError
|
|
50
|
+
>
|
|
51
|
+
> {
|
|
52
|
+
return new APIPromise($do(
|
|
53
|
+
client,
|
|
54
|
+
request,
|
|
55
|
+
options,
|
|
56
|
+
));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
async function $do(
|
|
60
|
+
client: OrqCore,
|
|
61
|
+
request: operations.WorkspaceGetRequest,
|
|
62
|
+
options?: RequestOptions,
|
|
63
|
+
): Promise<
|
|
64
|
+
[
|
|
65
|
+
Result<
|
|
66
|
+
components.GetWorkspaceResponse,
|
|
67
|
+
| OrqError
|
|
68
|
+
| ResponseValidationError
|
|
69
|
+
| ConnectionError
|
|
70
|
+
| RequestAbortedError
|
|
71
|
+
| RequestTimeoutError
|
|
72
|
+
| InvalidRequestError
|
|
73
|
+
| UnexpectedClientError
|
|
74
|
+
| SDKValidationError
|
|
75
|
+
>,
|
|
76
|
+
APICall,
|
|
77
|
+
]
|
|
78
|
+
> {
|
|
79
|
+
const parsed = safeParse(
|
|
80
|
+
request,
|
|
81
|
+
(value) => operations.WorkspaceGetRequest$outboundSchema.parse(value),
|
|
82
|
+
"Input validation failed",
|
|
83
|
+
);
|
|
84
|
+
if (!parsed.ok) {
|
|
85
|
+
return [parsed, { status: "invalid" }];
|
|
86
|
+
}
|
|
87
|
+
const payload = parsed.value;
|
|
88
|
+
const body = null;
|
|
89
|
+
|
|
90
|
+
const pathParams = {
|
|
91
|
+
key: encodeSimple("key", payload.key, {
|
|
92
|
+
explode: false,
|
|
93
|
+
charEncoding: "percent",
|
|
94
|
+
}),
|
|
95
|
+
};
|
|
96
|
+
const path = pathToFunc("/v2/workspaces/{key}")(pathParams);
|
|
97
|
+
|
|
98
|
+
const headers = new Headers(compactMap({
|
|
99
|
+
Accept: "application/json",
|
|
100
|
+
}));
|
|
101
|
+
|
|
102
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
103
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
104
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
105
|
+
|
|
106
|
+
const context = {
|
|
107
|
+
options: client._options,
|
|
108
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
109
|
+
operationID: "WorkspaceGet",
|
|
110
|
+
oAuth2Scopes: null,
|
|
111
|
+
|
|
112
|
+
resolvedSecurity: requestSecurity,
|
|
113
|
+
|
|
114
|
+
securitySource: client._options.apiKey,
|
|
115
|
+
retryConfig: options?.retries
|
|
116
|
+
|| client._options.retryConfig
|
|
117
|
+
|| { strategy: "none" },
|
|
118
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
const requestRes = client._createRequest(context, {
|
|
122
|
+
security: requestSecurity,
|
|
123
|
+
method: "GET",
|
|
124
|
+
baseURL: options?.serverURL,
|
|
125
|
+
path: path,
|
|
126
|
+
headers: headers,
|
|
127
|
+
body: body,
|
|
128
|
+
userAgent: client._options.userAgent,
|
|
129
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
|
|
130
|
+
}, options);
|
|
131
|
+
if (!requestRes.ok) {
|
|
132
|
+
return [requestRes, { status: "invalid" }];
|
|
133
|
+
}
|
|
134
|
+
const req = requestRes.value;
|
|
135
|
+
|
|
136
|
+
const doResult = await client._do(req, {
|
|
137
|
+
context,
|
|
138
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
139
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
140
|
+
retryConfig: context.retryConfig,
|
|
141
|
+
retryCodes: context.retryCodes,
|
|
142
|
+
});
|
|
143
|
+
if (!doResult.ok) {
|
|
144
|
+
return [doResult, { status: "request-error", request: req }];
|
|
145
|
+
}
|
|
146
|
+
const response = doResult.value;
|
|
147
|
+
|
|
148
|
+
const [result] = await M.match<
|
|
149
|
+
components.GetWorkspaceResponse,
|
|
150
|
+
| OrqError
|
|
151
|
+
| ResponseValidationError
|
|
152
|
+
| ConnectionError
|
|
153
|
+
| RequestAbortedError
|
|
154
|
+
| RequestTimeoutError
|
|
155
|
+
| InvalidRequestError
|
|
156
|
+
| UnexpectedClientError
|
|
157
|
+
| SDKValidationError
|
|
158
|
+
>(
|
|
159
|
+
M.json(200, components.GetWorkspaceResponse$inboundSchema),
|
|
160
|
+
M.fail("4XX"),
|
|
161
|
+
M.fail("5XX"),
|
|
162
|
+
)(response, req);
|
|
163
|
+
if (!result.ok) {
|
|
164
|
+
return [result, { status: "complete", request: req, response }];
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
return [result, { status: "complete", request: req, response }];
|
|
168
|
+
}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { OrqCore } from "../core.js";
|
|
6
|
+
import { encodeFormQuery } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import * as components from "../models/components/index.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/httpclienterrors.js";
|
|
22
|
+
import { OrqError } from "../models/errors/orqerror.js";
|
|
23
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
24
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
25
|
+
import * as operations from "../models/operations/index.js";
|
|
26
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
+
import { Result } from "../types/fp.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* List workspaces
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Returns workspaces the caller can access. A user session lists every membership. A management key lists only the workspace bound to the key. Project keys are rejected.
|
|
34
|
+
*/
|
|
35
|
+
export function workspacesList(
|
|
36
|
+
client: OrqCore,
|
|
37
|
+
request?: operations.WorkspaceListRequest | undefined,
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): APIPromise<
|
|
40
|
+
Result<
|
|
41
|
+
components.ListWorkspacesResponse,
|
|
42
|
+
| OrqError
|
|
43
|
+
| ResponseValidationError
|
|
44
|
+
| ConnectionError
|
|
45
|
+
| RequestAbortedError
|
|
46
|
+
| RequestTimeoutError
|
|
47
|
+
| InvalidRequestError
|
|
48
|
+
| UnexpectedClientError
|
|
49
|
+
| SDKValidationError
|
|
50
|
+
>
|
|
51
|
+
> {
|
|
52
|
+
return new APIPromise($do(
|
|
53
|
+
client,
|
|
54
|
+
request,
|
|
55
|
+
options,
|
|
56
|
+
));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
async function $do(
|
|
60
|
+
client: OrqCore,
|
|
61
|
+
request?: operations.WorkspaceListRequest | undefined,
|
|
62
|
+
options?: RequestOptions,
|
|
63
|
+
): Promise<
|
|
64
|
+
[
|
|
65
|
+
Result<
|
|
66
|
+
components.ListWorkspacesResponse,
|
|
67
|
+
| OrqError
|
|
68
|
+
| ResponseValidationError
|
|
69
|
+
| ConnectionError
|
|
70
|
+
| RequestAbortedError
|
|
71
|
+
| RequestTimeoutError
|
|
72
|
+
| InvalidRequestError
|
|
73
|
+
| UnexpectedClientError
|
|
74
|
+
| SDKValidationError
|
|
75
|
+
>,
|
|
76
|
+
APICall,
|
|
77
|
+
]
|
|
78
|
+
> {
|
|
79
|
+
const parsed = safeParse(
|
|
80
|
+
request,
|
|
81
|
+
(value) =>
|
|
82
|
+
operations.WorkspaceListRequest$outboundSchema.optional().parse(value),
|
|
83
|
+
"Input validation failed",
|
|
84
|
+
);
|
|
85
|
+
if (!parsed.ok) {
|
|
86
|
+
return [parsed, { status: "invalid" }];
|
|
87
|
+
}
|
|
88
|
+
const payload = parsed.value;
|
|
89
|
+
const body = null;
|
|
90
|
+
|
|
91
|
+
const path = pathToFunc("/v2/workspaces")();
|
|
92
|
+
|
|
93
|
+
const query = encodeFormQuery({
|
|
94
|
+
"ending_before": payload?.ending_before,
|
|
95
|
+
"limit": payload?.limit,
|
|
96
|
+
"starting_after": payload?.starting_after,
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
const headers = new Headers(compactMap({
|
|
100
|
+
Accept: "application/json",
|
|
101
|
+
}));
|
|
102
|
+
|
|
103
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
104
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
105
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
106
|
+
|
|
107
|
+
const context = {
|
|
108
|
+
options: client._options,
|
|
109
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
110
|
+
operationID: "WorkspaceList",
|
|
111
|
+
oAuth2Scopes: null,
|
|
112
|
+
|
|
113
|
+
resolvedSecurity: requestSecurity,
|
|
114
|
+
|
|
115
|
+
securitySource: client._options.apiKey,
|
|
116
|
+
retryConfig: options?.retries
|
|
117
|
+
|| client._options.retryConfig
|
|
118
|
+
|| { strategy: "none" },
|
|
119
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
const requestRes = client._createRequest(context, {
|
|
123
|
+
security: requestSecurity,
|
|
124
|
+
method: "GET",
|
|
125
|
+
baseURL: options?.serverURL,
|
|
126
|
+
path: path,
|
|
127
|
+
headers: headers,
|
|
128
|
+
query: query,
|
|
129
|
+
body: body,
|
|
130
|
+
userAgent: client._options.userAgent,
|
|
131
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
|
|
132
|
+
}, options);
|
|
133
|
+
if (!requestRes.ok) {
|
|
134
|
+
return [requestRes, { status: "invalid" }];
|
|
135
|
+
}
|
|
136
|
+
const req = requestRes.value;
|
|
137
|
+
|
|
138
|
+
const doResult = await client._do(req, {
|
|
139
|
+
context,
|
|
140
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
141
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
142
|
+
retryConfig: context.retryConfig,
|
|
143
|
+
retryCodes: context.retryCodes,
|
|
144
|
+
});
|
|
145
|
+
if (!doResult.ok) {
|
|
146
|
+
return [doResult, { status: "request-error", request: req }];
|
|
147
|
+
}
|
|
148
|
+
const response = doResult.value;
|
|
149
|
+
|
|
150
|
+
const [result] = await M.match<
|
|
151
|
+
components.ListWorkspacesResponse,
|
|
152
|
+
| OrqError
|
|
153
|
+
| ResponseValidationError
|
|
154
|
+
| ConnectionError
|
|
155
|
+
| RequestAbortedError
|
|
156
|
+
| RequestTimeoutError
|
|
157
|
+
| InvalidRequestError
|
|
158
|
+
| UnexpectedClientError
|
|
159
|
+
| SDKValidationError
|
|
160
|
+
>(
|
|
161
|
+
M.json(200, components.ListWorkspacesResponse$inboundSchema),
|
|
162
|
+
M.fail("4XX"),
|
|
163
|
+
M.fail("5XX"),
|
|
164
|
+
)(response, req);
|
|
165
|
+
if (!result.ok) {
|
|
166
|
+
return [result, { status: "complete", request: req, response }];
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
return [result, { status: "complete", request: req, response }];
|
|
170
|
+
}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { OrqCore } from "../core.js";
|
|
6
|
+
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import * as components from "../models/components/index.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/httpclienterrors.js";
|
|
22
|
+
import { OrqError } from "../models/errors/orqerror.js";
|
|
23
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
24
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
25
|
+
import * as operations from "../models/operations/index.js";
|
|
26
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
+
import { Result } from "../types/fp.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Update a workspace
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Partially updates a workspace. Omit a field to leave it unchanged. Set `archived` to true to archive, false to restore. The workspace key cannot be changed.
|
|
34
|
+
*/
|
|
35
|
+
export function workspacesUpdate(
|
|
36
|
+
client: OrqCore,
|
|
37
|
+
request: operations.WorkspaceUpdateRequest,
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): APIPromise<
|
|
40
|
+
Result<
|
|
41
|
+
components.UpdateWorkspaceResponse,
|
|
42
|
+
| OrqError
|
|
43
|
+
| ResponseValidationError
|
|
44
|
+
| ConnectionError
|
|
45
|
+
| RequestAbortedError
|
|
46
|
+
| RequestTimeoutError
|
|
47
|
+
| InvalidRequestError
|
|
48
|
+
| UnexpectedClientError
|
|
49
|
+
| SDKValidationError
|
|
50
|
+
>
|
|
51
|
+
> {
|
|
52
|
+
return new APIPromise($do(
|
|
53
|
+
client,
|
|
54
|
+
request,
|
|
55
|
+
options,
|
|
56
|
+
));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
async function $do(
|
|
60
|
+
client: OrqCore,
|
|
61
|
+
request: operations.WorkspaceUpdateRequest,
|
|
62
|
+
options?: RequestOptions,
|
|
63
|
+
): Promise<
|
|
64
|
+
[
|
|
65
|
+
Result<
|
|
66
|
+
components.UpdateWorkspaceResponse,
|
|
67
|
+
| OrqError
|
|
68
|
+
| ResponseValidationError
|
|
69
|
+
| ConnectionError
|
|
70
|
+
| RequestAbortedError
|
|
71
|
+
| RequestTimeoutError
|
|
72
|
+
| InvalidRequestError
|
|
73
|
+
| UnexpectedClientError
|
|
74
|
+
| SDKValidationError
|
|
75
|
+
>,
|
|
76
|
+
APICall,
|
|
77
|
+
]
|
|
78
|
+
> {
|
|
79
|
+
const parsed = safeParse(
|
|
80
|
+
request,
|
|
81
|
+
(value) => operations.WorkspaceUpdateRequest$outboundSchema.parse(value),
|
|
82
|
+
"Input validation failed",
|
|
83
|
+
);
|
|
84
|
+
if (!parsed.ok) {
|
|
85
|
+
return [parsed, { status: "invalid" }];
|
|
86
|
+
}
|
|
87
|
+
const payload = parsed.value;
|
|
88
|
+
const body = encodeJSON("body", payload.UpdateWorkspaceRequest, {
|
|
89
|
+
explode: true,
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
const pathParams = {
|
|
93
|
+
key: encodeSimple("key", payload.key, {
|
|
94
|
+
explode: false,
|
|
95
|
+
charEncoding: "percent",
|
|
96
|
+
}),
|
|
97
|
+
};
|
|
98
|
+
const path = pathToFunc("/v2/workspaces/{key}")(pathParams);
|
|
99
|
+
|
|
100
|
+
const headers = new Headers(compactMap({
|
|
101
|
+
"Content-Type": "application/json",
|
|
102
|
+
Accept: "application/json",
|
|
103
|
+
}));
|
|
104
|
+
|
|
105
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
106
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
107
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
108
|
+
|
|
109
|
+
const context = {
|
|
110
|
+
options: client._options,
|
|
111
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
112
|
+
operationID: "WorkspaceUpdate",
|
|
113
|
+
oAuth2Scopes: null,
|
|
114
|
+
|
|
115
|
+
resolvedSecurity: requestSecurity,
|
|
116
|
+
|
|
117
|
+
securitySource: client._options.apiKey,
|
|
118
|
+
retryConfig: options?.retries
|
|
119
|
+
|| client._options.retryConfig
|
|
120
|
+
|| { strategy: "none" },
|
|
121
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
const requestRes = client._createRequest(context, {
|
|
125
|
+
security: requestSecurity,
|
|
126
|
+
method: "PATCH",
|
|
127
|
+
baseURL: options?.serverURL,
|
|
128
|
+
path: path,
|
|
129
|
+
headers: headers,
|
|
130
|
+
body: body,
|
|
131
|
+
userAgent: client._options.userAgent,
|
|
132
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
|
|
133
|
+
}, options);
|
|
134
|
+
if (!requestRes.ok) {
|
|
135
|
+
return [requestRes, { status: "invalid" }];
|
|
136
|
+
}
|
|
137
|
+
const req = requestRes.value;
|
|
138
|
+
|
|
139
|
+
const doResult = await client._do(req, {
|
|
140
|
+
context,
|
|
141
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
142
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
143
|
+
retryConfig: context.retryConfig,
|
|
144
|
+
retryCodes: context.retryCodes,
|
|
145
|
+
});
|
|
146
|
+
if (!doResult.ok) {
|
|
147
|
+
return [doResult, { status: "request-error", request: req }];
|
|
148
|
+
}
|
|
149
|
+
const response = doResult.value;
|
|
150
|
+
|
|
151
|
+
const [result] = await M.match<
|
|
152
|
+
components.UpdateWorkspaceResponse,
|
|
153
|
+
| OrqError
|
|
154
|
+
| ResponseValidationError
|
|
155
|
+
| ConnectionError
|
|
156
|
+
| RequestAbortedError
|
|
157
|
+
| RequestTimeoutError
|
|
158
|
+
| InvalidRequestError
|
|
159
|
+
| UnexpectedClientError
|
|
160
|
+
| SDKValidationError
|
|
161
|
+
>(
|
|
162
|
+
M.json(200, components.UpdateWorkspaceResponse$inboundSchema),
|
|
163
|
+
M.fail("4XX"),
|
|
164
|
+
M.fail("5XX"),
|
|
165
|
+
)(response, req);
|
|
166
|
+
if (!result.ok) {
|
|
167
|
+
return [result, { status: "complete", request: req, response }];
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
return [result, { status: "complete", request: req, response }];
|
|
171
|
+
}
|
package/src/lib/config.ts
CHANGED
|
@@ -58,7 +58,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
58
58
|
export const SDK_METADATA = {
|
|
59
59
|
language: "typescript",
|
|
60
60
|
openapiDocVersion: "2.0",
|
|
61
|
-
sdkVersion: "4.15.0-rc.
|
|
62
|
-
genVersion: "2.
|
|
63
|
-
userAgent: "speakeasy-sdk/typescript 4.15.0-rc.
|
|
61
|
+
sdkVersion: "4.15.0-rc.21",
|
|
62
|
+
genVersion: "2.935.1",
|
|
63
|
+
userAgent: "speakeasy-sdk/typescript 4.15.0-rc.21 2.935.1 2.0 @orq-ai/node",
|
|
64
64
|
} as const;
|