@orq-ai/node 4.13.0-rc.52 → 4.13.0-rc.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/funcs/apiKeysCreate.d.ts +1 -1
- package/funcs/apiKeysCreate.d.ts.map +1 -1
- package/funcs/apiKeysCreate.js +1 -1
- package/funcs/apiKeysCreate.js.map +1 -1
- package/funcs/apiKeysDelete.d.ts +1 -2
- package/funcs/apiKeysDelete.d.ts.map +1 -1
- package/funcs/apiKeysDelete.js +3 -3
- package/funcs/apiKeysDelete.js.map +1 -1
- package/funcs/apiKeysGet.d.ts +1 -1
- package/funcs/apiKeysGet.d.ts.map +1 -1
- package/funcs/apiKeysGet.js +1 -1
- package/funcs/apiKeysGet.js.map +1 -1
- package/funcs/apiKeysList.d.ts +2 -2
- package/funcs/apiKeysList.d.ts.map +1 -1
- package/funcs/apiKeysList.js +3 -2
- package/funcs/apiKeysList.js.map +1 -1
- package/funcs/apiKeysUpdate.d.ts +1 -1
- package/funcs/apiKeysUpdate.d.ts.map +1 -1
- package/funcs/apiKeysUpdate.js +1 -1
- package/funcs/apiKeysUpdate.js.map +1 -1
- package/funcs/responsesGet.d.ts +2 -1
- package/funcs/responsesGet.d.ts.map +1 -1
- package/funcs/responsesGet.js +5 -1
- package/funcs/responsesGet.js.map +1 -1
- package/funcs/smartRoutersList.js +0 -1
- package/funcs/smartRoutersList.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/allprojects.d.ts +0 -5
- package/models/components/allprojects.d.ts.map +1 -1
- package/models/components/allprojects.js +1 -8
- package/models/components/allprojects.js.map +1 -1
- package/models/components/apierror.d.ts +14 -0
- package/models/components/apierror.d.ts.map +1 -0
- package/models/components/{deleteapikeyresponse.js → apierror.js} +12 -6
- package/models/components/apierror.js.map +1 -0
- package/models/components/apikeyowner.d.ts +0 -5
- package/models/components/apikeyowner.d.ts.map +1 -1
- package/models/components/apikeyowner.js +1 -15
- package/models/components/apikeyowner.js.map +1 -1
- package/models/components/apikeyrestresponse.d.ts +55 -0
- package/models/components/apikeyrestresponse.d.ts.map +1 -0
- package/models/components/apikeyrestresponse.js +96 -0
- package/models/components/apikeyrestresponse.js.map +1 -0
- package/models/components/apikeystatus.d.ts +0 -2
- package/models/components/apikeystatus.d.ts.map +1 -1
- package/models/components/apikeystatus.js +2 -4
- package/models/components/apikeystatus.js.map +1 -1
- package/models/components/cacheconfig.d.ts +14 -0
- package/models/components/cacheconfig.d.ts.map +1 -0
- package/models/components/{legacytokenfamily.js → cacheconfig.js} +10 -9
- package/models/components/cacheconfig.js.map +1 -0
- package/models/components/evaluatorresponsefunction.js +2 -2
- package/models/components/evaluatorresponsehttp.js +2 -2
- package/models/components/evaluatorresponsejsonschema.js +2 -2
- package/models/components/evaluatorresponsellm.js +2 -2
- package/models/components/evaluatorresponsepython.js +2 -2
- package/models/components/evaluatorresponseragas.js +2 -2
- package/models/components/evaluatorresponsetypescript.js +2 -2
- package/models/components/index.d.ts +7 -8
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +7 -8
- package/models/components/index.js.map +1 -1
- package/models/components/loadbalancerconfig.d.ts +15 -0
- package/models/components/loadbalancerconfig.d.ts.map +1 -0
- package/models/components/{smartroutermetrics.js → loadbalancerconfig.js} +9 -10
- package/models/components/loadbalancerconfig.js.map +1 -0
- package/models/components/loadbalancermodelconfig.d.ts +14 -0
- package/models/components/loadbalancermodelconfig.d.ts.map +1 -0
- package/models/components/loadbalancermodelconfig.js +50 -0
- package/models/components/loadbalancermodelconfig.js.map +1 -0
- package/models/components/mcpaccess.d.ts +0 -5
- package/models/components/mcpaccess.d.ts.map +1 -1
- package/models/components/mcpaccess.js +1 -18
- package/models/components/mcpaccess.js.map +1 -1
- package/models/components/permissionmode.d.ts +0 -2
- package/models/components/permissionmode.d.ts.map +1 -1
- package/models/components/permissionmode.js +2 -4
- package/models/components/permissionmode.js.map +1 -1
- package/models/components/projectscope.d.ts +0 -5
- package/models/components/projectscope.d.ts.map +1 -1
- package/models/components/projectscope.js +1 -11
- package/models/components/projectscope.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/securityconfig.d.ts +12 -0
- package/models/components/securityconfig.d.ts.map +1 -0
- package/models/components/securityconfig.js +49 -0
- package/models/components/securityconfig.js.map +1 -0
- package/models/components/serviceaccountowner.d.ts +0 -5
- package/models/components/serviceaccountowner.d.ts.map +1 -1
- package/models/components/serviceaccountowner.js +1 -8
- package/models/components/serviceaccountowner.js.map +1 -1
- package/models/components/singleproject.d.ts +0 -5
- package/models/components/singleproject.d.ts.map +1 -1
- package/models/components/singleproject.js +1 -14
- package/models/components/singleproject.js.map +1 -1
- package/models/components/smartrouter.d.ts +0 -2
- package/models/components/smartrouter.d.ts.map +1 -1
- package/models/components/smartrouter.js +0 -2
- package/models/components/smartrouter.js.map +1 -1
- package/models/components/timeoutconfig.d.ts +12 -0
- package/models/components/timeoutconfig.d.ts.map +1 -0
- package/models/components/{getapikeyresponse.js → timeoutconfig.js} +8 -10
- package/models/components/timeoutconfig.js.map +1 -0
- package/models/components/userowner.d.ts +0 -5
- package/models/components/userowner.d.ts.map +1 -1
- package/models/components/userowner.js +1 -14
- package/models/components/userowner.js.map +1 -1
- package/models/errors/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/retrieveresponse.d.ts +25 -0
- package/models/errors/retrieveresponse.d.ts.map +1 -0
- package/models/{components/createapikeyresponse.js → errors/retrieveresponse.js} +29 -15
- package/models/errors/retrieveresponse.js.map +1 -0
- package/models/operations/billing.js +1 -1
- package/models/operations/createannotationqueue.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +5 -5
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createrouterresponse.d.ts +18 -0
- package/models/operations/createrouterresponse.d.ts.map +1 -1
- package/models/operations/createrouterresponse.js +8 -0
- package/models/operations/createrouterresponse.js.map +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/getalltools.js +6 -6
- package/models/operations/geteval.js +16 -16
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listannotationqueues.js +1 -1
- package/models/operations/listdatasetdatapoints.js +5 -5
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrieveannotationqueue.js +1 -1
- package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjson2.js +28 -28
- package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody14attributes2.js +28 -28
- package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody22attributesopenresponsesdetail.js +6 -6
- package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody23annotations.js +26 -26
- package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody27attributesopenresponsesoutput3type.js +6 -6
- package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody314.js +31 -31
- package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody5attributestype.js +22 -22
- package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody11attributestoplogprobs.js +14 -14
- package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody15attributesopenresponsesoutput4type.js +14 -14
- package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody17attributesopenresponsesoutput44type.js +16 -16
- package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody18type.js +24 -24
- package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody1attributestype.js +2 -2
- package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody21attributestoplogprobs.js +14 -14
- package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody29attributestoplogprobs.js +14 -14
- package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody32attributesopenresponsesoutput48type.js +18 -18
- package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody66.js +2 -2
- package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody7attributes5.js +16 -16
- package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody9attributes8.js +18 -18
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody1017.js +4 -4
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody11attributesorq7evaluatorconfigtype.js +21 -21
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody12attributesorq15annotator.js +5 -5
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody136.js +25 -25
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody14attributesorq14type.js +7 -7
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody15attributesorq7outputschema.js +21 -21
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody1618.js +3 -3
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody17attributesorq8kind.js +18 -18
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody18attributesorq12evaluatorconfigtype.js +11 -11
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody19attributesorq5kind.js +24 -24
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody20attributesorq14annotator.js +7 -7
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody21attributesorq7evaluatorconfigtype.js +21 -21
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody22attributesorqevaluatorconfigtype.js +28 -28
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody23attributesorq13evaluationtype.js +9 -9
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody24attributesorq7status.js +21 -21
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody25attributesorq18type.js +2 -2
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody2611.js +15 -15
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody27attributesorqevaluationtype.js +28 -28
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody28attributesorq14annotator.js +7 -7
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody29attributesorq7evaluatorconfigtype.js +21 -21
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody2attributesorq14type.js +7 -7
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody30attributesorq18evaluationtype.js +2 -2
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody31attributesorq16kind.js +4 -4
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody32attributesorq9evaluatorconfigtype.js +17 -17
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody33attributesannotator.js +30 -30
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody34attributesorq12evaluationtype.js +11 -11
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody35attributesorq5annotator.js +24 -24
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody3attributesorq14evaluationtype.js +7 -7
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody4attributesorq4kind.js +26 -26
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody5attributesorq11evaluatorconfigtype.js +13 -13
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody6attributesorq19annotator.js +1 -1
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody6value.js +32 -32
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody7attributesorq8evaluatorconfigtype.js +19 -19
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody8attributesorq18annotator.js +2 -2
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody9attributesorq9kind.js +17 -17
- package/models/operations/retrieveannotationqueueitemevaluationsannotator.js +32 -32
- package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody20attributesopenresponses6role.js +28 -28
- package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody26content.js +20 -20
- package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody28attributesopenresponses6role.js +28 -28
- package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody34attributesrole.js +24 -24
- package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200status.js +28 -28
- package/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody12attributes1.js +30 -30
- package/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody24attributescontent.js +14 -14
- package/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody332.js +4 -4
- package/models/operations/retrieveannotationqueueitemresponsebody.js +1 -1
- package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson10http.js +31 -31
- package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson16settings.js +32 -32
- package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson17context.js +1 -1
- package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson22call.js +1 -1
- package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson25engine.js +33 -33
- package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson27conversation.js +1 -1
- package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson30nodes.js +33 -33
- package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson33token.js +1 -1
- package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson8trace.js +33 -33
- package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjsonresponse.js +1 -1
- package/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse1.js +8 -8
- package/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody13attributesopenresponsesoutputtype.js +10 -10
- package/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody193.js +10 -10
- package/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody35attributestype.js +10 -10
- package/models/operations/retrievedatapoint.js +5 -5
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/smartrouterlist.d.ts +0 -2
- package/models/operations/smartrouterlist.d.ts.map +1 -1
- package/models/operations/smartrouterlist.js +0 -2
- package/models/operations/smartrouterlist.js.map +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/twenty.js +1 -1
- package/models/operations/updateannotationqueue.js +1 -1
- package/models/operations/updatedatapoint.js +5 -5
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +3 -3
- package/sdk/apikeys.d.ts +6 -6
- package/sdk/apikeys.d.ts.map +1 -1
- package/sdk/apikeys.js +1 -1
- package/sdk/feedback.d.ts +2 -2
- package/sdk/feedback.js +2 -2
- package/src/funcs/apiKeysCreate.ts +4 -4
- package/src/funcs/apiKeysDelete.ts +6 -6
- package/src/funcs/apiKeysGet.ts +4 -4
- package/src/funcs/apiKeysList.ts +6 -5
- package/src/funcs/apiKeysUpdate.ts +4 -4
- package/src/funcs/responsesGet.ts +11 -2
- package/src/funcs/smartRoutersList.ts +0 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/allprojects.ts +0 -18
- package/src/models/components/apierror.ts +39 -0
- package/src/models/components/apikeyowner.ts +0 -27
- package/src/models/components/apikeyrestresponse.ts +119 -0
- package/src/models/components/apikeystatus.ts +1 -4
- package/src/models/components/cacheconfig.ts +30 -0
- package/src/models/components/evaluatorresponsefunction.ts +2 -2
- package/src/models/components/evaluatorresponsehttp.ts +2 -2
- package/src/models/components/evaluatorresponsejsonschema.ts +2 -2
- package/src/models/components/evaluatorresponsellm.ts +2 -2
- package/src/models/components/evaluatorresponsepython.ts +2 -2
- package/src/models/components/evaluatorresponseragas.ts +2 -2
- package/src/models/components/evaluatorresponsetypescript.ts +2 -2
- package/src/models/components/index.ts +7 -8
- package/src/models/components/loadbalancerconfig.ts +39 -0
- package/src/models/components/loadbalancermodelconfig.ts +34 -0
- package/src/models/components/mcpaccess.ts +0 -28
- package/src/models/components/permissionmode.ts +1 -5
- package/src/models/components/projectscope.ts +0 -23
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/securityconfig.ts +27 -0
- package/src/models/components/serviceaccountowner.ts +0 -18
- package/src/models/components/singleproject.ts +0 -24
- package/src/models/components/smartrouter.ts +0 -6
- package/src/models/components/timeoutconfig.ts +32 -0
- package/src/models/components/userowner.ts +0 -24
- package/src/models/errors/index.ts +1 -0
- package/src/models/errors/retrieveresponse.ts +56 -0
- package/src/models/operations/billing.ts +1 -1
- package/src/models/operations/createannotationqueue.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +5 -5
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createrouterresponse.ts +26 -0
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/geteval.ts +16 -16
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listannotationqueues.ts +1 -1
- package/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrieveannotationqueue.ts +1 -1
- package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjson2.ts +28 -28
- package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody14attributes2.ts +28 -28
- package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody22attributesopenresponsesdetail.ts +6 -6
- package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody23annotations.ts +26 -26
- package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody27attributesopenresponsesoutput3type.ts +6 -6
- package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody314.ts +31 -31
- package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody5attributestype.ts +22 -22
- package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody11attributestoplogprobs.ts +14 -14
- package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody15attributesopenresponsesoutput4type.ts +14 -14
- package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody17attributesopenresponsesoutput44type.ts +16 -16
- package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody18type.ts +24 -24
- package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody1attributestype.ts +2 -2
- package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody21attributestoplogprobs.ts +14 -14
- package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody29attributestoplogprobs.ts +14 -14
- package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody32attributesopenresponsesoutput48type.ts +18 -18
- package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody66.ts +2 -2
- package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody7attributes5.ts +16 -16
- package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody9attributes8.ts +18 -18
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody1017.ts +4 -4
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody11attributesorq7evaluatorconfigtype.ts +21 -21
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody12attributesorq15annotator.ts +5 -5
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody136.ts +25 -25
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody14attributesorq14type.ts +7 -7
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody15attributesorq7outputschema.ts +21 -21
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody1618.ts +3 -3
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody17attributesorq8kind.ts +18 -18
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody18attributesorq12evaluatorconfigtype.ts +11 -11
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody19attributesorq5kind.ts +24 -24
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody20attributesorq14annotator.ts +7 -7
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody21attributesorq7evaluatorconfigtype.ts +21 -21
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody22attributesorqevaluatorconfigtype.ts +28 -28
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody23attributesorq13evaluationtype.ts +9 -9
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody24attributesorq7status.ts +21 -21
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody25attributesorq18type.ts +2 -2
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody2611.ts +15 -15
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody27attributesorqevaluationtype.ts +28 -28
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody28attributesorq14annotator.ts +7 -7
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody29attributesorq7evaluatorconfigtype.ts +21 -21
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody2attributesorq14type.ts +7 -7
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody30attributesorq18evaluationtype.ts +2 -2
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody31attributesorq16kind.ts +4 -4
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody32attributesorq9evaluatorconfigtype.ts +17 -17
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody33attributesannotator.ts +30 -30
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody34attributesorq12evaluationtype.ts +11 -11
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody35attributesorq5annotator.ts +24 -24
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody3attributesorq14evaluationtype.ts +7 -7
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody4attributesorq4kind.ts +26 -26
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody5attributesorq11evaluatorconfigtype.ts +13 -13
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody6attributesorq19annotator.ts +1 -1
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody6value.ts +32 -32
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody7attributesorq8evaluatorconfigtype.ts +19 -19
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody8attributesorq18annotator.ts +2 -2
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody9attributesorq9kind.ts +17 -17
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotator.ts +32 -32
- package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody20attributesopenresponses6role.ts +28 -28
- package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody26content.ts +20 -20
- package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody28attributesopenresponses6role.ts +28 -28
- package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody34attributesrole.ts +24 -24
- package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200status.ts +28 -28
- package/src/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody12attributes1.ts +30 -30
- package/src/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody24attributescontent.ts +14 -14
- package/src/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody332.ts +4 -4
- package/src/models/operations/retrieveannotationqueueitemresponsebody.ts +1 -1
- package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson10http.ts +31 -31
- package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson16settings.ts +32 -32
- package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson17context.ts +1 -1
- package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson22call.ts +1 -1
- package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson25engine.ts +33 -33
- package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson27conversation.ts +1 -1
- package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson30nodes.ts +33 -33
- package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson33token.ts +1 -1
- package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson8trace.ts +33 -33
- package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjsonresponse.ts +1 -1
- package/src/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse1.ts +8 -8
- package/src/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody13attributesopenresponsesoutputtype.ts +10 -10
- package/src/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody193.ts +10 -10
- package/src/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody35attributestype.ts +10 -10
- package/src/models/operations/retrievedatapoint.ts +5 -5
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/smartrouterlist.ts +0 -4
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/twenty.ts +1 -1
- package/src/models/operations/updateannotationqueue.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +5 -5
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/apikeys.ts +6 -6
- package/src/sdk/feedback.ts +2 -2
- package/models/components/apikey.d.ts +0 -201
- package/models/components/apikey.d.ts.map +0 -1
- package/models/components/apikey.js +0 -127
- package/models/components/apikey.js.map +0 -1
- package/models/components/createapikeyresponse.d.ts +0 -22
- package/models/components/createapikeyresponse.d.ts.map +0 -1
- package/models/components/createapikeyresponse.js.map +0 -1
- package/models/components/deleteapikeyresponse.d.ts +0 -8
- package/models/components/deleteapikeyresponse.d.ts.map +0 -1
- package/models/components/deleteapikeyresponse.js.map +0 -1
- package/models/components/getapikeyresponse.d.ts +0 -14
- package/models/components/getapikeyresponse.d.ts.map +0 -1
- package/models/components/getapikeyresponse.js.map +0 -1
- package/models/components/legacytokenfamily.d.ts +0 -12
- package/models/components/legacytokenfamily.d.ts.map +0 -1
- package/models/components/legacytokenfamily.js.map +0 -1
- package/models/components/listapikeysresponse.d.ts +0 -28
- package/models/components/listapikeysresponse.d.ts.map +0 -1
- package/models/components/listapikeysresponse.js +0 -58
- package/models/components/listapikeysresponse.js.map +0 -1
- package/models/components/smartroutermetrics.d.ts +0 -23
- package/models/components/smartroutermetrics.d.ts.map +0 -1
- package/models/components/smartroutermetrics.js.map +0 -1
- package/models/components/updateapikeyresponse.d.ts +0 -14
- package/models/components/updateapikeyresponse.d.ts.map +0 -1
- package/models/components/updateapikeyresponse.js +0 -56
- package/models/components/updateapikeyresponse.js.map +0 -1
- package/src/models/components/apikey.ts +0 -304
- package/src/models/components/createapikeyresponse.ts +0 -49
- package/src/models/components/deleteapikeyresponse.ts +0 -27
- package/src/models/components/getapikeyresponse.ts +0 -40
- package/src/models/components/legacytokenfamily.ts +0 -19
- package/src/models/components/listapikeysresponse.ts +0 -56
- package/src/models/components/smartroutermetrics.ts +0 -44
- package/src/models/components/updateapikeyresponse.ts +0 -40
|
@@ -1,304 +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
|
-
import { ApiKeyOwner, ApiKeyOwner$inboundSchema } from "./apikeyowner.js";
|
|
11
|
-
import { ApiKeyStatus, ApiKeyStatus$inboundSchema } from "./apikeystatus.js";
|
|
12
|
-
import { BudgetAlert, BudgetAlert$inboundSchema } from "./budgetalert.js";
|
|
13
|
-
import { BudgetLimits, BudgetLimits$inboundSchema } from "./budgetlimits.js";
|
|
14
|
-
import { BudgetMatch, BudgetMatch$inboundSchema } from "./budgetmatch.js";
|
|
15
|
-
import { BudgetScope, BudgetScope$inboundSchema } from "./budgetscope.js";
|
|
16
|
-
import { BudgetUsage, BudgetUsage$inboundSchema } from "./budgetusage.js";
|
|
17
|
-
import {
|
|
18
|
-
LegacyTokenFamily,
|
|
19
|
-
LegacyTokenFamily$inboundSchema,
|
|
20
|
-
} from "./legacytokenfamily.js";
|
|
21
|
-
import { McpAccess, McpAccess$inboundSchema } from "./mcpaccess.js";
|
|
22
|
-
import {
|
|
23
|
-
PermissionMode,
|
|
24
|
-
PermissionMode$inboundSchema,
|
|
25
|
-
} from "./permissionmode.js";
|
|
26
|
-
import { ProjectScope, ProjectScope$inboundSchema } from "./projectscope.js";
|
|
27
|
-
import { RateLimit, RateLimit$inboundSchema } from "./ratelimit.js";
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* The budget scoped to this api-key, if one exists. Read-only here:
|
|
31
|
-
*
|
|
32
|
-
* @remarks
|
|
33
|
-
* budgets are created and managed through the Budgets API
|
|
34
|
-
* (scope.api_key). Populated only when the read request sets
|
|
35
|
-
* `include_budget`. Live consumption (`usage`) is not attached on this
|
|
36
|
-
* path — call the Budgets API for current spend.
|
|
37
|
-
*/
|
|
38
|
-
export type ApiKeyBudget = {
|
|
39
|
-
budgetId?: string | undefined;
|
|
40
|
-
/**
|
|
41
|
-
* Denormalized metadata for UI rendering, list filters, and the
|
|
42
|
-
*
|
|
43
|
-
* @remarks
|
|
44
|
-
* resolver's prefilter index. Never consulted for matching — the
|
|
45
|
-
* `match` expression is the single source of matching semantics.
|
|
46
|
-
* Unset for budgets created from a raw CEL expression ("custom").
|
|
47
|
-
*/
|
|
48
|
-
scope?: BudgetScope | undefined;
|
|
49
|
-
/**
|
|
50
|
-
* The matching semantics of the budget. The enforcement resolver
|
|
51
|
-
*
|
|
52
|
-
* @remarks
|
|
53
|
-
* evaluates `match.cel` against the request context; a budget
|
|
54
|
-
* applies to a request if and only if the expression evaluates to
|
|
55
|
-
* true. Scoped creates derive a canonical expression (e.g.
|
|
56
|
-
* `provider == "openai"`); an empty expression always matches
|
|
57
|
-
* (workspace-wide).
|
|
58
|
-
*/
|
|
59
|
-
match?: BudgetMatch | undefined;
|
|
60
|
-
/**
|
|
61
|
-
* BudgetLimits is the per-period spend and token ceiling. At least one
|
|
62
|
-
*
|
|
63
|
-
* @remarks
|
|
64
|
-
* of `amount`, `token_limit`, or RateLimit.requests_per_minute MUST be
|
|
65
|
-
* set on a Budget; that invariant is enforced by the handler.
|
|
66
|
-
*/
|
|
67
|
-
limits?: BudgetLimits | undefined;
|
|
68
|
-
/**
|
|
69
|
-
* RateLimit is the per-minute request ceiling. Enforced via atomic
|
|
70
|
-
*
|
|
71
|
-
* @remarks
|
|
72
|
-
* increment-first semantics in the enforcement middleware.
|
|
73
|
-
*/
|
|
74
|
-
rateLimit?: RateLimit | undefined;
|
|
75
|
-
isActive?: boolean | undefined;
|
|
76
|
-
expiresAt?: Date | undefined;
|
|
77
|
-
createdAt?: Date | undefined;
|
|
78
|
-
updatedAt?: Date | undefined;
|
|
79
|
-
/**
|
|
80
|
-
* Live consumption for the current period, read from the Redis
|
|
81
|
-
*
|
|
82
|
-
* @remarks
|
|
83
|
-
* counters the enforcement gate maintains. Populated by read paths
|
|
84
|
-
* (Get / List); omitted on write responses (Create / Update / Reset)
|
|
85
|
-
* where it carries no signal. Absent or all-zero for a budget that
|
|
86
|
-
* has not been spent against in the current period.
|
|
87
|
-
*/
|
|
88
|
-
usage?: BudgetUsage | undefined;
|
|
89
|
-
/**
|
|
90
|
-
* Threshold notifications. Absent when the budget has none.
|
|
91
|
-
*/
|
|
92
|
-
alerts?: Array<BudgetAlert> | undefined;
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* ApiKey is the canonical record stored in MongoDB `auth.apiKeys`.
|
|
97
|
-
*
|
|
98
|
-
* @remarks
|
|
99
|
-
* It is the source of truth for scope, permissions, owner, budget,
|
|
100
|
-
* expiration, and revocation (see ADR 0001).
|
|
101
|
-
*/
|
|
102
|
-
export type ApiKey = {
|
|
103
|
-
/**
|
|
104
|
-
* Canonical key identifier (ULID). Embedded in opaque tokens as
|
|
105
|
-
*
|
|
106
|
-
* @remarks
|
|
107
|
-
* `sk-orq-<id>-<secret>`.
|
|
108
|
-
*/
|
|
109
|
-
apiKeyId: string;
|
|
110
|
-
/**
|
|
111
|
-
* Human-readable name shown in the dashboard.
|
|
112
|
-
*/
|
|
113
|
-
name: string;
|
|
114
|
-
/**
|
|
115
|
-
* Owner attribution (drives lifecycle).
|
|
116
|
-
*/
|
|
117
|
-
owner: ApiKeyOwner;
|
|
118
|
-
/**
|
|
119
|
-
* Project authorization scope.
|
|
120
|
-
*/
|
|
121
|
-
projectScope: ProjectScope;
|
|
122
|
-
permissionMode: PermissionMode;
|
|
123
|
-
/**
|
|
124
|
-
* Per-domain access map. Only populated when `permission_mode` is
|
|
125
|
-
*
|
|
126
|
-
* @remarks
|
|
127
|
-
* `PERMISSION_MODE_RESTRICTED`. The authoritative list of valid
|
|
128
|
-
* keys and the per-domain read / write semantics are exposed at
|
|
129
|
-
* runtime via the capability catalog endpoint.
|
|
130
|
-
*
|
|
131
|
-
* Valid keys are the Domain.id values in the capability catalog —
|
|
132
|
-
* see libs/catalog/orq/apikeys/v1/catalog.textpb for the canonical
|
|
133
|
-
* list. The ids are intentionally not duplicated here to avoid drift.
|
|
134
|
-
*
|
|
135
|
-
* Values are AccessLevel enum names on the JSON wire:
|
|
136
|
-
* "ACCESS_LEVEL_NONE" — capability not granted
|
|
137
|
-
* "ACCESS_LEVEL_READ" — list / view verbs
|
|
138
|
-
* "ACCESS_LEVEL_WRITE" — list / view + mutating / execute verbs
|
|
139
|
-
*/
|
|
140
|
-
access?: { [k: string]: number } | undefined;
|
|
141
|
-
/**
|
|
142
|
-
* Displayable prefix for UI listings (e.g. "sk-orq-01HXY..."). Safe
|
|
143
|
-
*
|
|
144
|
-
* @remarks
|
|
145
|
-
* to expose.
|
|
146
|
-
*/
|
|
147
|
-
tokenPrefix: string;
|
|
148
|
-
status: ApiKeyStatus;
|
|
149
|
-
/**
|
|
150
|
-
* Audit: user who created the key. Optional. Distinct from
|
|
151
|
-
*
|
|
152
|
-
* @remarks
|
|
153
|
-
* `owner.user_id` — created_by is provenance only, while owner
|
|
154
|
-
* determines lifecycle binding.
|
|
155
|
-
*/
|
|
156
|
-
createdById?: string | undefined;
|
|
157
|
-
/**
|
|
158
|
-
* Audit: user who last updated the key.
|
|
159
|
-
*/
|
|
160
|
-
updatedById?: string | undefined;
|
|
161
|
-
/**
|
|
162
|
-
* Time the key was created.
|
|
163
|
-
*/
|
|
164
|
-
createdAt: Date;
|
|
165
|
-
/**
|
|
166
|
-
* Time the key was last updated.
|
|
167
|
-
*/
|
|
168
|
-
updatedAt: Date;
|
|
169
|
-
/**
|
|
170
|
-
* Last authenticated use. Updated via NATS debounce + 1% sampler.
|
|
171
|
-
*/
|
|
172
|
-
lastUsedAt?: Date | undefined;
|
|
173
|
-
/**
|
|
174
|
-
* Optional expiration. The authenticate hot-path rejects keys whose
|
|
175
|
-
*
|
|
176
|
-
* @remarks
|
|
177
|
-
* `expires_at` is in the past. Unset means the key never expires.
|
|
178
|
-
*/
|
|
179
|
-
expiresAt?: Date | undefined;
|
|
180
|
-
legacyTokenFamily?: LegacyTokenFamily | undefined;
|
|
181
|
-
/**
|
|
182
|
-
* Legacy MongoDB `_id` from before the canonical ULID was assigned.
|
|
183
|
-
*
|
|
184
|
-
* @remarks
|
|
185
|
-
* Used by the adapter to resolve a JWT back to this canonical record.
|
|
186
|
-
*/
|
|
187
|
-
legacyKeyId?: string | undefined;
|
|
188
|
-
/**
|
|
189
|
-
* The budget scoped to this api-key, if one exists. Read-only here:
|
|
190
|
-
*
|
|
191
|
-
* @remarks
|
|
192
|
-
* budgets are created and managed through the Budgets API
|
|
193
|
-
* (scope.api_key). Populated only when the read request sets
|
|
194
|
-
* `include_budget`. Live consumption (`usage`) is not attached on this
|
|
195
|
-
* path — call the Budgets API for current spend.
|
|
196
|
-
*/
|
|
197
|
-
budget?: ApiKeyBudget | undefined;
|
|
198
|
-
/**
|
|
199
|
-
* Optional MCP-gateway access restriction. Unset means the key can
|
|
200
|
-
*
|
|
201
|
-
* @remarks
|
|
202
|
-
* reach every MCP gateway allowed by its project scope. See
|
|
203
|
-
* McpAccess for the deny_all / allow-list semantics.
|
|
204
|
-
*/
|
|
205
|
-
mcpAccess?: McpAccess | undefined;
|
|
206
|
-
};
|
|
207
|
-
|
|
208
|
-
/** @internal */
|
|
209
|
-
export const ApiKeyBudget$inboundSchema: z.ZodType<
|
|
210
|
-
ApiKeyBudget,
|
|
211
|
-
z.ZodTypeDef,
|
|
212
|
-
unknown
|
|
213
|
-
> = z.object({
|
|
214
|
-
budget_id: z.string().optional(),
|
|
215
|
-
scope: BudgetScope$inboundSchema.optional(),
|
|
216
|
-
match: BudgetMatch$inboundSchema.optional(),
|
|
217
|
-
limits: BudgetLimits$inboundSchema.optional(),
|
|
218
|
-
rate_limit: RateLimit$inboundSchema.optional(),
|
|
219
|
-
is_active: z.boolean().optional(),
|
|
220
|
-
expires_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
221
|
-
.optional(),
|
|
222
|
-
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
223
|
-
.optional(),
|
|
224
|
-
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
225
|
-
.optional(),
|
|
226
|
-
usage: BudgetUsage$inboundSchema.optional(),
|
|
227
|
-
alerts: z.array(BudgetAlert$inboundSchema).optional(),
|
|
228
|
-
}).transform((v) => {
|
|
229
|
-
return remap$(v, {
|
|
230
|
-
"budget_id": "budgetId",
|
|
231
|
-
"rate_limit": "rateLimit",
|
|
232
|
-
"is_active": "isActive",
|
|
233
|
-
"expires_at": "expiresAt",
|
|
234
|
-
"created_at": "createdAt",
|
|
235
|
-
"updated_at": "updatedAt",
|
|
236
|
-
});
|
|
237
|
-
});
|
|
238
|
-
|
|
239
|
-
export function apiKeyBudgetFromJSON(
|
|
240
|
-
jsonString: string,
|
|
241
|
-
): SafeParseResult<ApiKeyBudget, SDKValidationError> {
|
|
242
|
-
return safeParse(
|
|
243
|
-
jsonString,
|
|
244
|
-
(x) => ApiKeyBudget$inboundSchema.parse(JSON.parse(x)),
|
|
245
|
-
`Failed to parse 'ApiKeyBudget' from JSON`,
|
|
246
|
-
);
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
/** @internal */
|
|
250
|
-
export const ApiKey$inboundSchema: z.ZodType<ApiKey, z.ZodTypeDef, unknown> = z
|
|
251
|
-
.object({
|
|
252
|
-
api_key_id: z.string(),
|
|
253
|
-
name: z.string(),
|
|
254
|
-
owner: ApiKeyOwner$inboundSchema,
|
|
255
|
-
project_scope: ProjectScope$inboundSchema,
|
|
256
|
-
permission_mode: PermissionMode$inboundSchema,
|
|
257
|
-
access: z.record(z.number().int()).optional(),
|
|
258
|
-
token_prefix: z.string(),
|
|
259
|
-
status: ApiKeyStatus$inboundSchema,
|
|
260
|
-
created_by_id: z.string().optional(),
|
|
261
|
-
updated_by_id: z.string().optional(),
|
|
262
|
-
created_at: z.string().datetime({ offset: true }).transform(v =>
|
|
263
|
-
new Date(v)
|
|
264
|
-
),
|
|
265
|
-
updated_at: z.string().datetime({ offset: true }).transform(v =>
|
|
266
|
-
new Date(v)
|
|
267
|
-
),
|
|
268
|
-
last_used_at: z.string().datetime({ offset: true }).transform(v =>
|
|
269
|
-
new Date(v)
|
|
270
|
-
).optional(),
|
|
271
|
-
expires_at: z.string().datetime({ offset: true }).transform(v =>
|
|
272
|
-
new Date(v)
|
|
273
|
-
).optional(),
|
|
274
|
-
legacy_token_family: LegacyTokenFamily$inboundSchema.optional(),
|
|
275
|
-
legacy_key_id: z.string().optional(),
|
|
276
|
-
budget: z.lazy(() => ApiKeyBudget$inboundSchema).optional(),
|
|
277
|
-
mcp_access: McpAccess$inboundSchema.optional(),
|
|
278
|
-
}).transform((v) => {
|
|
279
|
-
return remap$(v, {
|
|
280
|
-
"api_key_id": "apiKeyId",
|
|
281
|
-
"project_scope": "projectScope",
|
|
282
|
-
"permission_mode": "permissionMode",
|
|
283
|
-
"token_prefix": "tokenPrefix",
|
|
284
|
-
"created_by_id": "createdById",
|
|
285
|
-
"updated_by_id": "updatedById",
|
|
286
|
-
"created_at": "createdAt",
|
|
287
|
-
"updated_at": "updatedAt",
|
|
288
|
-
"last_used_at": "lastUsedAt",
|
|
289
|
-
"expires_at": "expiresAt",
|
|
290
|
-
"legacy_token_family": "legacyTokenFamily",
|
|
291
|
-
"legacy_key_id": "legacyKeyId",
|
|
292
|
-
"mcp_access": "mcpAccess",
|
|
293
|
-
});
|
|
294
|
-
});
|
|
295
|
-
|
|
296
|
-
export function apiKeyFromJSON(
|
|
297
|
-
jsonString: string,
|
|
298
|
-
): SafeParseResult<ApiKey, SDKValidationError> {
|
|
299
|
-
return safeParse(
|
|
300
|
-
jsonString,
|
|
301
|
-
(x) => ApiKey$inboundSchema.parse(JSON.parse(x)),
|
|
302
|
-
`Failed to parse 'ApiKey' from JSON`,
|
|
303
|
-
);
|
|
304
|
-
}
|
|
@@ -1,49 +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
|
-
import { ApiKey, ApiKey$inboundSchema } from "./apikey.js";
|
|
11
|
-
|
|
12
|
-
export type CreateApiKeyResponse = {
|
|
13
|
-
/**
|
|
14
|
-
* Newly minted api-key record.
|
|
15
|
-
*/
|
|
16
|
-
apiKey: ApiKey;
|
|
17
|
-
/**
|
|
18
|
-
* Raw bearer token in the form `sk-orq-<api_key_id>-<secret>`.
|
|
19
|
-
*
|
|
20
|
-
* @remarks
|
|
21
|
-
* Returned ONCE; the API never exposes this value again. Clients
|
|
22
|
-
* must persist it immediately on receipt.
|
|
23
|
-
*/
|
|
24
|
-
token: string;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
/** @internal */
|
|
28
|
-
export const CreateApiKeyResponse$inboundSchema: z.ZodType<
|
|
29
|
-
CreateApiKeyResponse,
|
|
30
|
-
z.ZodTypeDef,
|
|
31
|
-
unknown
|
|
32
|
-
> = z.object({
|
|
33
|
-
api_key: ApiKey$inboundSchema,
|
|
34
|
-
token: z.string(),
|
|
35
|
-
}).transform((v) => {
|
|
36
|
-
return remap$(v, {
|
|
37
|
-
"api_key": "apiKey",
|
|
38
|
-
});
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
export function createApiKeyResponseFromJSON(
|
|
42
|
-
jsonString: string,
|
|
43
|
-
): SafeParseResult<CreateApiKeyResponse, SDKValidationError> {
|
|
44
|
-
return safeParse(
|
|
45
|
-
jsonString,
|
|
46
|
-
(x) => CreateApiKeyResponse$inboundSchema.parse(JSON.parse(x)),
|
|
47
|
-
`Failed to parse 'CreateApiKeyResponse' from JSON`,
|
|
48
|
-
);
|
|
49
|
-
}
|
|
@@ -1,27 +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 { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
|
|
10
|
-
export type DeleteApiKeyResponse = {};
|
|
11
|
-
|
|
12
|
-
/** @internal */
|
|
13
|
-
export const DeleteApiKeyResponse$inboundSchema: z.ZodType<
|
|
14
|
-
DeleteApiKeyResponse,
|
|
15
|
-
z.ZodTypeDef,
|
|
16
|
-
unknown
|
|
17
|
-
> = z.object({});
|
|
18
|
-
|
|
19
|
-
export function deleteApiKeyResponseFromJSON(
|
|
20
|
-
jsonString: string,
|
|
21
|
-
): SafeParseResult<DeleteApiKeyResponse, SDKValidationError> {
|
|
22
|
-
return safeParse(
|
|
23
|
-
jsonString,
|
|
24
|
-
(x) => DeleteApiKeyResponse$inboundSchema.parse(JSON.parse(x)),
|
|
25
|
-
`Failed to parse 'DeleteApiKeyResponse' from JSON`,
|
|
26
|
-
);
|
|
27
|
-
}
|
|
@@ -1,40 +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
|
-
import { ApiKey, ApiKey$inboundSchema } from "./apikey.js";
|
|
11
|
-
|
|
12
|
-
export type GetApiKeyResponse = {
|
|
13
|
-
/**
|
|
14
|
-
* Requested api-key. Raw token never included.
|
|
15
|
-
*/
|
|
16
|
-
apiKey: ApiKey;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
/** @internal */
|
|
20
|
-
export const GetApiKeyResponse$inboundSchema: z.ZodType<
|
|
21
|
-
GetApiKeyResponse,
|
|
22
|
-
z.ZodTypeDef,
|
|
23
|
-
unknown
|
|
24
|
-
> = z.object({
|
|
25
|
-
api_key: ApiKey$inboundSchema,
|
|
26
|
-
}).transform((v) => {
|
|
27
|
-
return remap$(v, {
|
|
28
|
-
"api_key": "apiKey",
|
|
29
|
-
});
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
export function getApiKeyResponseFromJSON(
|
|
33
|
-
jsonString: string,
|
|
34
|
-
): SafeParseResult<GetApiKeyResponse, SDKValidationError> {
|
|
35
|
-
return safeParse(
|
|
36
|
-
jsonString,
|
|
37
|
-
(x) => GetApiKeyResponse$inboundSchema.parse(JSON.parse(x)),
|
|
38
|
-
`Failed to parse 'GetApiKeyResponse' from JSON`,
|
|
39
|
-
);
|
|
40
|
-
}
|
|
@@ -1,19 +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 { ClosedEnum } from "../../types/enums.js";
|
|
7
|
-
|
|
8
|
-
export const LegacyTokenFamily = {
|
|
9
|
-
LegacyTokenFamilyUnspecified: "LEGACY_TOKEN_FAMILY_UNSPECIFIED",
|
|
10
|
-
LegacyTokenFamilyRouterJwt: "LEGACY_TOKEN_FAMILY_ROUTER_JWT",
|
|
11
|
-
LegacyTokenFamilyProjectJwt: "LEGACY_TOKEN_FAMILY_PROJECT_JWT",
|
|
12
|
-
LegacyTokenFamilyWorkspaceJwt: "LEGACY_TOKEN_FAMILY_WORKSPACE_JWT",
|
|
13
|
-
} as const;
|
|
14
|
-
export type LegacyTokenFamily = ClosedEnum<typeof LegacyTokenFamily>;
|
|
15
|
-
|
|
16
|
-
/** @internal */
|
|
17
|
-
export const LegacyTokenFamily$inboundSchema: z.ZodNativeEnum<
|
|
18
|
-
typeof LegacyTokenFamily
|
|
19
|
-
> = z.nativeEnum(LegacyTokenFamily);
|
|
@@ -1,56 +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
|
-
import { ApiKey, ApiKey$inboundSchema } from "./apikey.js";
|
|
11
|
-
|
|
12
|
-
export type ListApiKeysResponse = {
|
|
13
|
-
/**
|
|
14
|
-
* Object discriminator for list responses; always `list`.
|
|
15
|
-
*/
|
|
16
|
-
object: string;
|
|
17
|
-
/**
|
|
18
|
-
* Page of api-keys, ordered newest first. `token_hash` and
|
|
19
|
-
*
|
|
20
|
-
* @remarks
|
|
21
|
-
* `api_key` are always elided in list responses.
|
|
22
|
-
*/
|
|
23
|
-
data: Array<ApiKey>;
|
|
24
|
-
/**
|
|
25
|
-
* Whether more api-keys are available in the selected pagination
|
|
26
|
-
*
|
|
27
|
-
* @remarks
|
|
28
|
-
* direction.
|
|
29
|
-
*/
|
|
30
|
-
hasMore: boolean;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
/** @internal */
|
|
34
|
-
export const ListApiKeysResponse$inboundSchema: z.ZodType<
|
|
35
|
-
ListApiKeysResponse,
|
|
36
|
-
z.ZodTypeDef,
|
|
37
|
-
unknown
|
|
38
|
-
> = z.object({
|
|
39
|
-
object: z.string(),
|
|
40
|
-
data: z.array(ApiKey$inboundSchema),
|
|
41
|
-
has_more: z.boolean(),
|
|
42
|
-
}).transform((v) => {
|
|
43
|
-
return remap$(v, {
|
|
44
|
-
"has_more": "hasMore",
|
|
45
|
-
});
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
export function listApiKeysResponseFromJSON(
|
|
49
|
-
jsonString: string,
|
|
50
|
-
): SafeParseResult<ListApiKeysResponse, SDKValidationError> {
|
|
51
|
-
return safeParse(
|
|
52
|
-
jsonString,
|
|
53
|
-
(x) => ListApiKeysResponse$inboundSchema.parse(JSON.parse(x)),
|
|
54
|
-
`Failed to parse 'ListApiKeysResponse' from JSON`,
|
|
55
|
-
);
|
|
56
|
-
}
|
|
@@ -1,44 +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 { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
|
|
10
|
-
export type SmartRouterMetrics = {
|
|
11
|
-
/**
|
|
12
|
-
* Total gateway requests served by the router over the window.
|
|
13
|
-
*/
|
|
14
|
-
requests: number;
|
|
15
|
-
/**
|
|
16
|
-
* Total cost in USD attributed to the router over the window.
|
|
17
|
-
*/
|
|
18
|
-
spend: number;
|
|
19
|
-
/**
|
|
20
|
-
* Requests per selected model, keyed by the provider/model reference.
|
|
21
|
-
*/
|
|
22
|
-
traffic: { [k: string]: number };
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
/** @internal */
|
|
26
|
-
export const SmartRouterMetrics$inboundSchema: z.ZodType<
|
|
27
|
-
SmartRouterMetrics,
|
|
28
|
-
z.ZodTypeDef,
|
|
29
|
-
unknown
|
|
30
|
-
> = z.object({
|
|
31
|
-
requests: z.number(),
|
|
32
|
-
spend: z.number(),
|
|
33
|
-
traffic: z.record(z.number()),
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
export function smartRouterMetricsFromJSON(
|
|
37
|
-
jsonString: string,
|
|
38
|
-
): SafeParseResult<SmartRouterMetrics, SDKValidationError> {
|
|
39
|
-
return safeParse(
|
|
40
|
-
jsonString,
|
|
41
|
-
(x) => SmartRouterMetrics$inboundSchema.parse(JSON.parse(x)),
|
|
42
|
-
`Failed to parse 'SmartRouterMetrics' from JSON`,
|
|
43
|
-
);
|
|
44
|
-
}
|
|
@@ -1,40 +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
|
-
import { ApiKey, ApiKey$inboundSchema } from "./apikey.js";
|
|
11
|
-
|
|
12
|
-
export type UpdateApiKeyResponse = {
|
|
13
|
-
/**
|
|
14
|
-
* Updated api-key.
|
|
15
|
-
*/
|
|
16
|
-
apiKey: ApiKey;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
/** @internal */
|
|
20
|
-
export const UpdateApiKeyResponse$inboundSchema: z.ZodType<
|
|
21
|
-
UpdateApiKeyResponse,
|
|
22
|
-
z.ZodTypeDef,
|
|
23
|
-
unknown
|
|
24
|
-
> = z.object({
|
|
25
|
-
api_key: ApiKey$inboundSchema,
|
|
26
|
-
}).transform((v) => {
|
|
27
|
-
return remap$(v, {
|
|
28
|
-
"api_key": "apiKey",
|
|
29
|
-
});
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
export function updateApiKeyResponseFromJSON(
|
|
33
|
-
jsonString: string,
|
|
34
|
-
): SafeParseResult<UpdateApiKeyResponse, SDKValidationError> {
|
|
35
|
-
return safeParse(
|
|
36
|
-
jsonString,
|
|
37
|
-
(x) => UpdateApiKeyResponse$inboundSchema.parse(JSON.parse(x)),
|
|
38
|
-
`Failed to parse 'UpdateApiKeyResponse' from JSON`,
|
|
39
|
-
);
|
|
40
|
-
}
|