@orq-ai/node 4.13.0-rc.53 → 4.13.0-rc.57
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/funcs/schedulesCreate.d.ts +1 -1
- package/funcs/schedulesCreate.js +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/apikeybudgetscoperestresponse.d.ts +16 -0
- package/models/components/apikeybudgetscoperestresponse.d.ts.map +1 -0
- package/models/components/apikeybudgetscoperestresponse.js +50 -0
- package/models/components/apikeybudgetscoperestresponse.js.map +1 -0
- package/models/components/budgetalertrestresponse.d.ts +31 -0
- package/models/components/budgetalertrestresponse.d.ts.map +1 -0
- package/models/components/budgetalertrestresponse.js +54 -0
- package/models/components/budgetalertrestresponse.js.map +1 -0
- package/models/components/budgetlimitsrestresponse.d.ts +28 -0
- package/models/components/budgetlimitsrestresponse.d.ts.map +1 -0
- package/models/components/budgetlimitsrestresponse.js +53 -0
- package/models/components/budgetlimitsrestresponse.js.map +1 -0
- package/models/components/{budget.d.ts → budgetrestresponse.d.ts} +16 -16
- package/models/components/budgetrestresponse.d.ts.map +1 -0
- package/models/components/{budget.js → budgetrestresponse.js} +20 -30
- package/models/components/budgetrestresponse.js.map +1 -0
- package/models/components/budgetscoperestresponse.d.ts +59 -0
- package/models/components/budgetscoperestresponse.d.ts.map +1 -0
- package/models/components/budgetscoperestresponse.js +61 -0
- package/models/components/budgetscoperestresponse.js.map +1 -0
- package/models/components/createbudgetresponse.d.ts +2 -2
- package/models/components/createbudgetresponse.d.ts.map +1 -1
- package/models/components/createbudgetresponse.js +2 -2
- package/models/components/createbudgetresponse.js.map +1 -1
- package/models/components/createwebhookrequest.d.ts +1 -1
- 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/getbudgetresponse.d.ts +2 -2
- package/models/components/getbudgetresponse.d.ts.map +1 -1
- package/models/components/getbudgetresponse.js +2 -2
- package/models/components/getbudgetresponse.js.map +1 -1
- package/models/components/identity.d.ts +8 -8
- package/models/components/identity.d.ts.map +1 -1
- package/models/components/identity.js +12 -14
- package/models/components/identity.js.map +1 -1
- package/models/components/identitybudgetscoperestresponse.d.ts +16 -0
- package/models/components/identitybudgetscoperestresponse.d.ts.map +1 -0
- package/models/components/identitybudgetscoperestresponse.js +50 -0
- package/models/components/identitybudgetscoperestresponse.js.map +1 -0
- package/models/components/index.d.ts +9 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +9 -1
- package/models/components/index.js.map +1 -1
- package/models/components/listbudgetsresponse.d.ts +2 -2
- package/models/components/listbudgetsresponse.d.ts.map +1 -1
- package/models/components/listbudgetsresponse.js +3 -8
- package/models/components/listbudgetsresponse.js.map +1 -1
- package/models/components/modelbudgetscope.d.ts +2 -2
- package/models/components/modelbudgetscope.d.ts.map +1 -1
- package/models/components/modelbudgetscope.js +2 -2
- package/models/components/modelbudgetscope.js.map +1 -1
- package/models/components/modelbudgetscoperestresponse.d.ts +17 -0
- package/models/components/modelbudgetscoperestresponse.d.ts.map +1 -0
- package/models/components/modelbudgetscoperestresponse.js +50 -0
- package/models/components/modelbudgetscoperestresponse.js.map +1 -0
- package/models/components/projectbudgetscoperestresponse.d.ts +13 -0
- package/models/components/projectbudgetscoperestresponse.d.ts.map +1 -0
- package/models/components/projectbudgetscoperestresponse.js +50 -0
- package/models/components/projectbudgetscoperestresponse.js.map +1 -0
- package/models/components/publicschedule.d.ts +13 -5
- package/models/components/publicschedule.d.ts.map +1 -1
- package/models/components/publicschedule.js +5 -1
- package/models/components/publicschedule.js.map +1 -1
- package/models/components/publicschedulepayload.d.ts +3 -3
- package/models/components/publicschedulepayload.d.ts.map +1 -1
- package/models/components/publicschedulepayload.js +2 -2
- package/models/components/publicschedulepayload.js.map +1 -1
- package/models/components/ratelimitrestresponse.d.ts +16 -0
- package/models/components/ratelimitrestresponse.d.ts.map +1 -0
- package/models/components/ratelimitrestresponse.js +50 -0
- package/models/components/ratelimitrestresponse.js.map +1 -0
- package/models/components/reasoningpart.js +1 -1
- package/models/components/resetbudgetconsumptionresponse.d.ts +2 -2
- package/models/components/resetbudgetconsumptionresponse.d.ts.map +1 -1
- package/models/components/resetbudgetconsumptionresponse.js +2 -2
- package/models/components/resetbudgetconsumptionresponse.js.map +1 -1
- package/models/components/updatebudgetresponse.d.ts +2 -2
- package/models/components/updatebudgetresponse.d.ts.map +1 -1
- package/models/components/updatebudgetresponse.js +2 -2
- package/models/components/updatebudgetresponse.js.map +1 -1
- package/models/components/webhook.d.ts +1 -1
- package/models/operations/billing.js +1 -1
- package/models/operations/createagentschedule.d.ts +17 -11
- package/models/operations/createagentschedule.d.ts.map +1 -1
- package/models/operations/createagentschedule.js +6 -4
- package/models/operations/createagentschedule.js.map +1 -1
- package/models/operations/createannotationqueue.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +5 -5
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/getalltools.js +6 -6
- package/models/operations/geteval.js +16 -16
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/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/retrieveagentschedule.d.ts +13 -5
- package/models/operations/retrieveagentschedule.d.ts.map +1 -1
- package/models/operations/retrieveagentschedule.js +5 -1
- package/models/operations/retrieveagentschedule.js.map +1 -1
- package/models/operations/retrieveannotationqueue.js +1 -1
- package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjson2.js +28 -28
- package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody14attributes2.js +28 -28
- package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody22attributesopenresponsesdetail.js +6 -6
- package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody23annotations.js +26 -26
- package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody27attributesopenresponsesoutput3type.js +6 -6
- package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody314.js +31 -31
- package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody5attributestype.js +22 -22
- package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody11attributestoplogprobs.js +14 -14
- package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody15attributesopenresponsesoutput4type.js +14 -14
- package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody17attributesopenresponsesoutput44type.js +16 -16
- package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody18type.js +24 -24
- package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody1attributestype.js +2 -2
- package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody21attributestoplogprobs.js +14 -14
- package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody29attributestoplogprobs.js +14 -14
- package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody32attributesopenresponsesoutput48type.js +18 -18
- package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody66.js +2 -2
- package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody7attributes5.js +16 -16
- package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody9attributes8.js +18 -18
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody1017.js +4 -4
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody11attributesorq7evaluatorconfigtype.js +21 -21
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody12attributesorq15annotator.js +5 -5
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody136.js +25 -25
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody14attributesorq14type.js +7 -7
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody15attributesorq7outputschema.js +21 -21
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody1618.js +3 -3
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody17attributesorq8kind.js +18 -18
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody18attributesorq12evaluatorconfigtype.js +11 -11
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody19attributesorq5kind.js +24 -24
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody20attributesorq14annotator.js +7 -7
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody21attributesorq7evaluatorconfigtype.js +21 -21
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody22attributesorqevaluatorconfigtype.js +28 -28
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody23attributesorq13evaluationtype.js +9 -9
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody24attributesorq7status.js +21 -21
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody25attributesorq18type.js +2 -2
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody2611.js +15 -15
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody27attributesorqevaluationtype.js +28 -28
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody28attributesorq14annotator.js +7 -7
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody29attributesorq7evaluatorconfigtype.js +21 -21
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody2attributesorq14type.js +7 -7
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody30attributesorq18evaluationtype.js +2 -2
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody31attributesorq16kind.js +4 -4
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody32attributesorq9evaluatorconfigtype.js +17 -17
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody33attributesannotator.js +30 -30
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody34attributesorq12evaluationtype.js +11 -11
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody35attributesorq5annotator.js +24 -24
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody3attributesorq14evaluationtype.js +7 -7
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody4attributesorq4kind.js +26 -26
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody5attributesorq11evaluatorconfigtype.js +13 -13
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody6attributesorq19annotator.js +1 -1
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody6value.js +32 -32
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody7attributesorq8evaluatorconfigtype.js +19 -19
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody8attributesorq18annotator.js +2 -2
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody9attributesorq9kind.js +17 -17
- package/models/operations/retrieveannotationqueueitemevaluationsannotator.js +32 -32
- package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody20attributesopenresponses6role.js +28 -28
- package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody26content.js +20 -20
- package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody28attributesopenresponses6role.js +28 -28
- package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody34attributesrole.js +24 -24
- package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200status.js +28 -28
- package/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody12attributes1.js +30 -30
- package/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody24attributescontent.js +14 -14
- package/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody332.js +4 -4
- package/models/operations/retrieveannotationqueueitemresponsebody.js +1 -1
- package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson10http.js +31 -31
- package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson16settings.js +32 -32
- package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson17context.js +1 -1
- package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson22call.js +1 -1
- package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson25engine.js +33 -33
- package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson27conversation.js +1 -1
- package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson30nodes.js +33 -33
- package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson33token.js +1 -1
- package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson8trace.js +33 -33
- package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjsonresponse.js +1 -1
- package/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse1.js +8 -8
- package/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody13attributesopenresponsesoutputtype.js +10 -10
- package/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody193.js +10 -10
- package/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody35attributestype.js +10 -10
- package/models/operations/retrievedatapoint.js +5 -5
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/twenty.js +1 -1
- package/models/operations/updateagentschedule.d.ts +22 -11
- package/models/operations/updateagentschedule.d.ts.map +1 -1
- package/models/operations/updateagentschedule.js +8 -4
- package/models/operations/updateagentschedule.js.map +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 +1 -1
- package/sdk/feedback.d.ts +2 -2
- package/sdk/feedback.js +2 -2
- package/sdk/schedules.d.ts +1 -1
- package/sdk/schedules.js +1 -1
- package/src/funcs/schedulesCreate.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/apikeybudgetscoperestresponse.ts +37 -0
- package/src/models/components/budgetalertrestresponse.ts +58 -0
- package/src/models/components/budgetlimitsrestresponse.ts +51 -0
- package/src/models/components/{budget.ts → budgetrestresponse.ts} +47 -47
- package/src/models/components/budgetscoperestresponse.ts +103 -0
- package/src/models/components/createbudgetresponse.ts +6 -3
- package/src/models/components/createwebhookrequest.ts +1 -1
- 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/getbudgetresponse.ts +6 -3
- package/src/models/components/identity.ts +39 -39
- package/src/models/components/identitybudgetscoperestresponse.ts +37 -0
- package/src/models/components/index.ts +9 -1
- package/src/models/components/listbudgetsresponse.ts +7 -9
- package/src/models/components/modelbudgetscope.ts +4 -4
- package/src/models/components/modelbudgetscoperestresponse.ts +38 -0
- package/src/models/components/projectbudgetscoperestresponse.ts +34 -0
- package/src/models/components/publicschedule.ts +17 -5
- package/src/models/components/publicschedulepayload.ts +5 -5
- package/src/models/components/ratelimitrestresponse.ts +37 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/resetbudgetconsumptionresponse.ts +6 -3
- package/src/models/components/updatebudgetresponse.ts +6 -3
- package/src/models/components/webhook.ts +1 -1
- package/src/models/operations/billing.ts +1 -1
- package/src/models/operations/createagentschedule.ts +21 -11
- package/src/models/operations/createannotationqueue.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +5 -5
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/geteval.ts +16 -16
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/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/retrieveagentschedule.ts +17 -5
- package/src/models/operations/retrieveannotationqueue.ts +1 -1
- package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjson2.ts +28 -28
- package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody14attributes2.ts +28 -28
- package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody22attributesopenresponsesdetail.ts +6 -6
- package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody23annotations.ts +26 -26
- package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody27attributesopenresponsesoutput3type.ts +6 -6
- package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody314.ts +31 -31
- package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody5attributestype.ts +22 -22
- package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody11attributestoplogprobs.ts +14 -14
- package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody15attributesopenresponsesoutput4type.ts +14 -14
- package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody17attributesopenresponsesoutput44type.ts +16 -16
- package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody18type.ts +24 -24
- package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody1attributestype.ts +2 -2
- package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody21attributestoplogprobs.ts +14 -14
- package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody29attributestoplogprobs.ts +14 -14
- package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody32attributesopenresponsesoutput48type.ts +18 -18
- package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody66.ts +2 -2
- package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody7attributes5.ts +16 -16
- package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody9attributes8.ts +18 -18
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody1017.ts +4 -4
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody11attributesorq7evaluatorconfigtype.ts +21 -21
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody12attributesorq15annotator.ts +5 -5
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody136.ts +25 -25
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody14attributesorq14type.ts +7 -7
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody15attributesorq7outputschema.ts +21 -21
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody1618.ts +3 -3
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody17attributesorq8kind.ts +18 -18
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody18attributesorq12evaluatorconfigtype.ts +11 -11
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody19attributesorq5kind.ts +24 -24
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody20attributesorq14annotator.ts +7 -7
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody21attributesorq7evaluatorconfigtype.ts +21 -21
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody22attributesorqevaluatorconfigtype.ts +28 -28
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody23attributesorq13evaluationtype.ts +9 -9
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody24attributesorq7status.ts +21 -21
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody25attributesorq18type.ts +2 -2
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody2611.ts +15 -15
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody27attributesorqevaluationtype.ts +28 -28
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody28attributesorq14annotator.ts +7 -7
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody29attributesorq7evaluatorconfigtype.ts +21 -21
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody2attributesorq14type.ts +7 -7
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody30attributesorq18evaluationtype.ts +2 -2
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody31attributesorq16kind.ts +4 -4
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody32attributesorq9evaluatorconfigtype.ts +17 -17
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody33attributesannotator.ts +30 -30
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody34attributesorq12evaluationtype.ts +11 -11
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody35attributesorq5annotator.ts +24 -24
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody3attributesorq14evaluationtype.ts +7 -7
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody4attributesorq4kind.ts +26 -26
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody5attributesorq11evaluatorconfigtype.ts +13 -13
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody6attributesorq19annotator.ts +1 -1
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody6value.ts +32 -32
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody7attributesorq8evaluatorconfigtype.ts +19 -19
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody8attributesorq18annotator.ts +2 -2
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody9attributesorq9kind.ts +17 -17
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotator.ts +32 -32
- package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody20attributesopenresponses6role.ts +28 -28
- package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody26content.ts +20 -20
- package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody28attributesopenresponses6role.ts +28 -28
- package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody34attributesrole.ts +24 -24
- package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200status.ts +28 -28
- package/src/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody12attributes1.ts +30 -30
- package/src/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody24attributescontent.ts +14 -14
- package/src/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody332.ts +4 -4
- package/src/models/operations/retrieveannotationqueueitemresponsebody.ts +1 -1
- package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson10http.ts +31 -31
- package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson16settings.ts +32 -32
- package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson17context.ts +1 -1
- package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson22call.ts +1 -1
- package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson25engine.ts +33 -33
- package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson27conversation.ts +1 -1
- package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson30nodes.ts +33 -33
- package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson33token.ts +1 -1
- package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson8trace.ts +33 -33
- package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjsonresponse.ts +1 -1
- package/src/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse1.ts +8 -8
- package/src/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody13attributesopenresponsesoutputtype.ts +10 -10
- package/src/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody193.ts +10 -10
- package/src/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody35attributestype.ts +10 -10
- package/src/models/operations/retrievedatapoint.ts +5 -5
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/twenty.ts +1 -1
- package/src/models/operations/updateagentschedule.ts +28 -11
- 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/feedback.ts +2 -2
- package/src/sdk/schedules.ts +1 -1
- package/models/components/budget.d.ts.map +0 -1
- package/models/components/budget.js.map +0 -1
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
/**
|
|
11
|
+
* Per-api-key cap. Replaces the legacy embedded `constraints.budget`
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
* on auth.apiKeys.
|
|
15
|
+
*/
|
|
16
|
+
export type ApiKeyBudgetScopeRestResponse = {
|
|
17
|
+
apiKeyId?: string | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const ApiKeyBudgetScopeRestResponse$inboundSchema: z.ZodType<
|
|
22
|
+
ApiKeyBudgetScopeRestResponse,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
apiKeyId: z.string().optional(),
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export function apiKeyBudgetScopeRestResponseFromJSON(
|
|
30
|
+
jsonString: string,
|
|
31
|
+
): SafeParseResult<ApiKeyBudgetScopeRestResponse, SDKValidationError> {
|
|
32
|
+
return safeParse(
|
|
33
|
+
jsonString,
|
|
34
|
+
(x) => ApiKeyBudgetScopeRestResponse$inboundSchema.parse(JSON.parse(x)),
|
|
35
|
+
`Failed to parse 'ApiKeyBudgetScopeRestResponse' from JSON`,
|
|
36
|
+
);
|
|
37
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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
|
+
import {
|
|
10
|
+
BudgetAlertDimension,
|
|
11
|
+
BudgetAlertDimension$inboundSchema,
|
|
12
|
+
} from "./budgetalertdimension.js";
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Notifies every listed notifier once current-period consumption on
|
|
16
|
+
*
|
|
17
|
+
* @remarks
|
|
18
|
+
* `dimension` reaches `threshold_percent` of the matching limit. Each alert
|
|
19
|
+
* fires at most once per period, re-arming on rollover or a limit change.
|
|
20
|
+
* The dimension must have a limit set, or the write is rejected.
|
|
21
|
+
*/
|
|
22
|
+
export type BudgetAlertRestResponse = {
|
|
23
|
+
/**
|
|
24
|
+
* Assigned by ORQ. Supply an existing id to edit that alert in place.
|
|
25
|
+
*/
|
|
26
|
+
id?: string | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Percentage of the dimension's limit at which the alert fires, 1–100.
|
|
29
|
+
*/
|
|
30
|
+
thresholdPercent: number;
|
|
31
|
+
/**
|
|
32
|
+
* Must be workspace-scoped; project-scoped notifiers are rejected.
|
|
33
|
+
*/
|
|
34
|
+
notifierIds: Array<string>;
|
|
35
|
+
dimension?: BudgetAlertDimension | undefined;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const BudgetAlertRestResponse$inboundSchema: z.ZodType<
|
|
40
|
+
BudgetAlertRestResponse,
|
|
41
|
+
z.ZodTypeDef,
|
|
42
|
+
unknown
|
|
43
|
+
> = z.object({
|
|
44
|
+
id: z.string().optional(),
|
|
45
|
+
thresholdPercent: z.number().int(),
|
|
46
|
+
notifierIds: z.array(z.string()),
|
|
47
|
+
dimension: BudgetAlertDimension$inboundSchema.optional(),
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
export function budgetAlertRestResponseFromJSON(
|
|
51
|
+
jsonString: string,
|
|
52
|
+
): SafeParseResult<BudgetAlertRestResponse, SDKValidationError> {
|
|
53
|
+
return safeParse(
|
|
54
|
+
jsonString,
|
|
55
|
+
(x) => BudgetAlertRestResponse$inboundSchema.parse(JSON.parse(x)),
|
|
56
|
+
`Failed to parse 'BudgetAlertRestResponse' from JSON`,
|
|
57
|
+
);
|
|
58
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
import { BudgetPeriod, BudgetPeriod$inboundSchema } from "./budgetperiod.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* BudgetLimits is the per-period spend and token ceiling. At least one
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* of `amount`, `token_limit`, or RateLimit.requests_per_minute MUST be
|
|
16
|
+
* set on a Budget; that invariant is enforced by the handler.
|
|
17
|
+
*/
|
|
18
|
+
export type BudgetLimitsRestResponse = {
|
|
19
|
+
period?: BudgetPeriod | undefined;
|
|
20
|
+
amount?: number | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Token ceiling. Carried as a double so it serializes as a JSON number
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* (proto int64 would serialize as a quoted string); token counts are
|
|
26
|
+
* whole and well within double's exact-integer range (2^53). Stored as
|
|
27
|
+
* an integer server-side.
|
|
28
|
+
*/
|
|
29
|
+
tokenLimit?: number | undefined;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/** @internal */
|
|
33
|
+
export const BudgetLimitsRestResponse$inboundSchema: z.ZodType<
|
|
34
|
+
BudgetLimitsRestResponse,
|
|
35
|
+
z.ZodTypeDef,
|
|
36
|
+
unknown
|
|
37
|
+
> = z.object({
|
|
38
|
+
period: BudgetPeriod$inboundSchema.optional(),
|
|
39
|
+
amount: z.number().optional(),
|
|
40
|
+
tokenLimit: z.number().optional(),
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
export function budgetLimitsRestResponseFromJSON(
|
|
44
|
+
jsonString: string,
|
|
45
|
+
): SafeParseResult<BudgetLimitsRestResponse, SDKValidationError> {
|
|
46
|
+
return safeParse(
|
|
47
|
+
jsonString,
|
|
48
|
+
(x) => BudgetLimitsRestResponse$inboundSchema.parse(JSON.parse(x)),
|
|
49
|
+
`Failed to parse 'BudgetLimitsRestResponse' from JSON`,
|
|
50
|
+
);
|
|
51
|
+
}
|
|
@@ -3,16 +3,27 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
import {
|
|
11
|
-
|
|
9
|
+
import {
|
|
10
|
+
BudgetAlertRestResponse,
|
|
11
|
+
BudgetAlertRestResponse$inboundSchema,
|
|
12
|
+
} from "./budgetalertrestresponse.js";
|
|
13
|
+
import {
|
|
14
|
+
BudgetLimitsRestResponse,
|
|
15
|
+
BudgetLimitsRestResponse$inboundSchema,
|
|
16
|
+
} from "./budgetlimitsrestresponse.js";
|
|
12
17
|
import { BudgetMatch, BudgetMatch$inboundSchema } from "./budgetmatch.js";
|
|
13
|
-
import {
|
|
18
|
+
import {
|
|
19
|
+
BudgetScopeRestResponse,
|
|
20
|
+
BudgetScopeRestResponse$inboundSchema,
|
|
21
|
+
} from "./budgetscoperestresponse.js";
|
|
14
22
|
import { BudgetUsage, BudgetUsage$inboundSchema } from "./budgetusage.js";
|
|
15
|
-
import {
|
|
23
|
+
import {
|
|
24
|
+
RateLimitRestResponse,
|
|
25
|
+
RateLimitRestResponse$inboundSchema,
|
|
26
|
+
} from "./ratelimitrestresponse.js";
|
|
16
27
|
|
|
17
28
|
/**
|
|
18
29
|
* Budget is the canonical record stored in MongoDB `budgets.entities`.
|
|
@@ -21,8 +32,8 @@ import { RateLimit, RateLimit$inboundSchema } from "./ratelimit.js";
|
|
|
21
32
|
* It replaces the embedded `constraints.budget` on api-keys and the
|
|
22
33
|
* legacy CONTACT-only `budgets.configs` collection (see ADR 0007).
|
|
23
34
|
*/
|
|
24
|
-
export type
|
|
25
|
-
budgetId
|
|
35
|
+
export type BudgetRestResponse = {
|
|
36
|
+
budgetId: string;
|
|
26
37
|
/**
|
|
27
38
|
* Denormalized metadata for UI rendering, list filters, and the
|
|
28
39
|
*
|
|
@@ -31,7 +42,7 @@ export type Budget = {
|
|
|
31
42
|
* `match` expression is the single source of matching semantics.
|
|
32
43
|
* Unset for budgets created from a raw CEL expression ("custom").
|
|
33
44
|
*/
|
|
34
|
-
scope?:
|
|
45
|
+
scope?: BudgetScopeRestResponse | undefined;
|
|
35
46
|
/**
|
|
36
47
|
* The matching semantics of the budget. The enforcement resolver
|
|
37
48
|
*
|
|
@@ -50,18 +61,18 @@ export type Budget = {
|
|
|
50
61
|
* of `amount`, `token_limit`, or RateLimit.requests_per_minute MUST be
|
|
51
62
|
* set on a Budget; that invariant is enforced by the handler.
|
|
52
63
|
*/
|
|
53
|
-
limits
|
|
64
|
+
limits: BudgetLimitsRestResponse;
|
|
54
65
|
/**
|
|
55
66
|
* RateLimit is the per-minute request ceiling. Enforced via atomic
|
|
56
67
|
*
|
|
57
68
|
* @remarks
|
|
58
69
|
* increment-first semantics in the enforcement middleware.
|
|
59
70
|
*/
|
|
60
|
-
rateLimit?:
|
|
61
|
-
isActive
|
|
71
|
+
rateLimit?: RateLimitRestResponse | undefined;
|
|
72
|
+
isActive: boolean;
|
|
62
73
|
expiresAt?: Date | undefined;
|
|
63
|
-
createdAt
|
|
64
|
-
updatedAt
|
|
74
|
+
createdAt: Date;
|
|
75
|
+
updatedAt: Date;
|
|
65
76
|
/**
|
|
66
77
|
* Live consumption for the current period, read from the Redis
|
|
67
78
|
*
|
|
@@ -75,46 +86,35 @@ export type Budget = {
|
|
|
75
86
|
/**
|
|
76
87
|
* Threshold notifications. Absent when the budget has none.
|
|
77
88
|
*/
|
|
78
|
-
alerts?: Array<
|
|
89
|
+
alerts?: Array<BudgetAlertRestResponse> | undefined;
|
|
79
90
|
};
|
|
80
91
|
|
|
81
92
|
/** @internal */
|
|
82
|
-
export const
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
alerts: z.array(BudgetAlert$inboundSchema).optional(),
|
|
101
|
-
}).transform((v) => {
|
|
102
|
-
return remap$(v, {
|
|
103
|
-
"budget_id": "budgetId",
|
|
104
|
-
"rate_limit": "rateLimit",
|
|
105
|
-
"is_active": "isActive",
|
|
106
|
-
"expires_at": "expiresAt",
|
|
107
|
-
"created_at": "createdAt",
|
|
108
|
-
"updated_at": "updatedAt",
|
|
109
|
-
});
|
|
110
|
-
});
|
|
93
|
+
export const BudgetRestResponse$inboundSchema: z.ZodType<
|
|
94
|
+
BudgetRestResponse,
|
|
95
|
+
z.ZodTypeDef,
|
|
96
|
+
unknown
|
|
97
|
+
> = z.object({
|
|
98
|
+
budgetId: z.string(),
|
|
99
|
+
scope: BudgetScopeRestResponse$inboundSchema.optional(),
|
|
100
|
+
match: BudgetMatch$inboundSchema.optional(),
|
|
101
|
+
limits: BudgetLimitsRestResponse$inboundSchema,
|
|
102
|
+
rateLimit: RateLimitRestResponse$inboundSchema.optional(),
|
|
103
|
+
isActive: z.boolean().default(false),
|
|
104
|
+
expiresAt: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
105
|
+
.optional(),
|
|
106
|
+
createdAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
107
|
+
updatedAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
108
|
+
usage: BudgetUsage$inboundSchema.optional(),
|
|
109
|
+
alerts: z.array(BudgetAlertRestResponse$inboundSchema).optional(),
|
|
110
|
+
});
|
|
111
111
|
|
|
112
|
-
export function
|
|
112
|
+
export function budgetRestResponseFromJSON(
|
|
113
113
|
jsonString: string,
|
|
114
|
-
): SafeParseResult<
|
|
114
|
+
): SafeParseResult<BudgetRestResponse, SDKValidationError> {
|
|
115
115
|
return safeParse(
|
|
116
116
|
jsonString,
|
|
117
|
-
(x) =>
|
|
118
|
-
`Failed to parse '
|
|
117
|
+
(x) => BudgetRestResponse$inboundSchema.parse(JSON.parse(x)),
|
|
118
|
+
`Failed to parse 'BudgetRestResponse' from JSON`,
|
|
119
119
|
);
|
|
120
120
|
}
|
|
@@ -0,0 +1,103 @@
|
|
|
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
|
+
import {
|
|
10
|
+
ApiKeyBudgetScopeRestResponse,
|
|
11
|
+
ApiKeyBudgetScopeRestResponse$inboundSchema,
|
|
12
|
+
} from "./apikeybudgetscoperestresponse.js";
|
|
13
|
+
import {
|
|
14
|
+
IdentityBudgetScopeRestResponse,
|
|
15
|
+
IdentityBudgetScopeRestResponse$inboundSchema,
|
|
16
|
+
} from "./identitybudgetscoperestresponse.js";
|
|
17
|
+
import {
|
|
18
|
+
ModelBudgetScopeRestResponse,
|
|
19
|
+
ModelBudgetScopeRestResponse$inboundSchema,
|
|
20
|
+
} from "./modelbudgetscoperestresponse.js";
|
|
21
|
+
import {
|
|
22
|
+
ProjectBudgetScopeRestResponse,
|
|
23
|
+
ProjectBudgetScopeRestResponse$inboundSchema,
|
|
24
|
+
} from "./projectbudgetscoperestresponse.js";
|
|
25
|
+
import {
|
|
26
|
+
ProviderBudgetScope,
|
|
27
|
+
ProviderBudgetScope$inboundSchema,
|
|
28
|
+
} from "./providerbudgetscope.js";
|
|
29
|
+
import {
|
|
30
|
+
WorkspaceBudgetScope,
|
|
31
|
+
WorkspaceBudgetScope$inboundSchema,
|
|
32
|
+
} from "./workspacebudgetscope.js";
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* BudgetScope is a closed oneof. Exactly one variant must be set. The
|
|
36
|
+
*
|
|
37
|
+
* @remarks
|
|
38
|
+
* six variants are ordered by enforcement precedence (most specific to
|
|
39
|
+
* most general) and mirror the BudgetScopeKind filter enum.
|
|
40
|
+
*/
|
|
41
|
+
export type BudgetScopeRestResponse = {
|
|
42
|
+
/**
|
|
43
|
+
* Workspace-wide ceiling. The implicit target is the caller's workspace.
|
|
44
|
+
*/
|
|
45
|
+
workspace?: WorkspaceBudgetScope | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Per-project cap.
|
|
48
|
+
*/
|
|
49
|
+
project?: ProjectBudgetScopeRestResponse | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Per-identity cap. Keyed by the contact's external_id (not the
|
|
52
|
+
*
|
|
53
|
+
* @remarks
|
|
54
|
+
* internal Mongo `_id`) so the scope is stable across imports.
|
|
55
|
+
*/
|
|
56
|
+
identity?: IdentityBudgetScopeRestResponse | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Per-api-key cap. Replaces the legacy embedded `constraints.budget`
|
|
59
|
+
*
|
|
60
|
+
* @remarks
|
|
61
|
+
* on auth.apiKeys.
|
|
62
|
+
*/
|
|
63
|
+
apiKey?: ApiKeyBudgetScopeRestResponse | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* Per-provider cap. The value is the provider enum string (e.g.
|
|
66
|
+
*
|
|
67
|
+
* @remarks
|
|
68
|
+
* "openai", "anthropic") drawn from ModelIntegrationIdentifier.
|
|
69
|
+
*/
|
|
70
|
+
provider?: ProviderBudgetScope | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* Per-model cap. The value is the FULL model reference as callers send
|
|
73
|
+
*
|
|
74
|
+
* @remarks
|
|
75
|
+
* it ("openai/gpt-4o", or "workspaceKey@openai/gpt-4o" for private
|
|
76
|
+
* models) — NOT the Mongo `_id` of the model master-data document.
|
|
77
|
+
*/
|
|
78
|
+
model?: ModelBudgetScopeRestResponse | undefined;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
/** @internal */
|
|
82
|
+
export const BudgetScopeRestResponse$inboundSchema: z.ZodType<
|
|
83
|
+
BudgetScopeRestResponse,
|
|
84
|
+
z.ZodTypeDef,
|
|
85
|
+
unknown
|
|
86
|
+
> = z.object({
|
|
87
|
+
workspace: WorkspaceBudgetScope$inboundSchema.optional(),
|
|
88
|
+
project: ProjectBudgetScopeRestResponse$inboundSchema.optional(),
|
|
89
|
+
identity: IdentityBudgetScopeRestResponse$inboundSchema.optional(),
|
|
90
|
+
apiKey: ApiKeyBudgetScopeRestResponse$inboundSchema.optional(),
|
|
91
|
+
provider: ProviderBudgetScope$inboundSchema.optional(),
|
|
92
|
+
model: ModelBudgetScopeRestResponse$inboundSchema.optional(),
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
export function budgetScopeRestResponseFromJSON(
|
|
96
|
+
jsonString: string,
|
|
97
|
+
): SafeParseResult<BudgetScopeRestResponse, SDKValidationError> {
|
|
98
|
+
return safeParse(
|
|
99
|
+
jsonString,
|
|
100
|
+
(x) => BudgetScopeRestResponse$inboundSchema.parse(JSON.parse(x)),
|
|
101
|
+
`Failed to parse 'BudgetScopeRestResponse' from JSON`,
|
|
102
|
+
);
|
|
103
|
+
}
|
|
@@ -6,13 +6,16 @@ import * as z from "zod/v3";
|
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
import {
|
|
9
|
+
import {
|
|
10
|
+
BudgetRestResponse,
|
|
11
|
+
BudgetRestResponse$inboundSchema,
|
|
12
|
+
} from "./budgetrestresponse.js";
|
|
10
13
|
|
|
11
14
|
export type CreateBudgetResponse = {
|
|
12
15
|
/**
|
|
13
16
|
* Newly created budget.
|
|
14
17
|
*/
|
|
15
|
-
budget
|
|
18
|
+
budget: BudgetRestResponse;
|
|
16
19
|
};
|
|
17
20
|
|
|
18
21
|
/** @internal */
|
|
@@ -21,7 +24,7 @@ export const CreateBudgetResponse$inboundSchema: z.ZodType<
|
|
|
21
24
|
z.ZodTypeDef,
|
|
22
25
|
unknown
|
|
23
26
|
> = z.object({
|
|
24
|
-
budget:
|
|
27
|
+
budget: BudgetRestResponse$inboundSchema,
|
|
25
28
|
});
|
|
26
29
|
|
|
27
30
|
export function createBudgetResponseFromJSON(
|
|
@@ -45,7 +45,7 @@ export type CreateWebhookRequest = {
|
|
|
45
45
|
*/
|
|
46
46
|
events: Array<string>;
|
|
47
47
|
/**
|
|
48
|
-
* Signing secret returned by `GET /v2/webhooks/secret`.
|
|
48
|
+
* Signing secret returned by `GET /v2/webhooks/secret`. Deliveries set `X-Orq-Signature` to the lowercase hexadecimal HMAC-SHA256 of the exact request body bytes.
|
|
49
49
|
*/
|
|
50
50
|
secret: string;
|
|
51
51
|
/**
|
|
@@ -860,8 +860,8 @@ export const EvaluatorResponseFunction$inboundSchema: z.ZodType<
|
|
|
860
860
|
> = z.object({
|
|
861
861
|
_id: z.string(),
|
|
862
862
|
description: z.string(),
|
|
863
|
-
created: z.string().default("2026-08-
|
|
864
|
-
updated: z.string().default("2026-08-
|
|
863
|
+
created: z.string().default("2026-08-07T07:22:35.553Z"),
|
|
864
|
+
updated: z.string().default("2026-08-07T07:22:35.553Z"),
|
|
865
865
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
866
866
|
project_id: z.string().optional(),
|
|
867
867
|
guardrail_config: z.any().optional(),
|
|
@@ -46,8 +46,8 @@ export const EvaluatorResponseHttp$inboundSchema: z.ZodType<
|
|
|
46
46
|
> = z.object({
|
|
47
47
|
_id: z.string(),
|
|
48
48
|
description: z.string(),
|
|
49
|
-
created: z.string().default("2026-08-
|
|
50
|
-
updated: z.string().default("2026-08-
|
|
49
|
+
created: z.string().default("2026-08-07T07:22:35.553Z"),
|
|
50
|
+
updated: z.string().default("2026-08-07T07:22:35.553Z"),
|
|
51
51
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
52
52
|
project_id: z.string().optional(),
|
|
53
53
|
guardrail_config: z.any().optional(),
|
|
@@ -32,8 +32,8 @@ export const EvaluatorResponseJsonSchema$inboundSchema: z.ZodType<
|
|
|
32
32
|
> = z.object({
|
|
33
33
|
_id: z.string(),
|
|
34
34
|
description: z.string(),
|
|
35
|
-
created: z.string().default("2026-08-
|
|
36
|
-
updated: z.string().default("2026-08-
|
|
35
|
+
created: z.string().default("2026-08-07T07:22:35.553Z"),
|
|
36
|
+
updated: z.string().default("2026-08-07T07:22:35.553Z"),
|
|
37
37
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
38
38
|
project_id: z.string().optional(),
|
|
39
39
|
guardrail_config: z.any().optional(),
|
|
@@ -271,8 +271,8 @@ export const EvaluatorResponseLlm$inboundSchema: z.ZodType<
|
|
|
271
271
|
> = z.object({
|
|
272
272
|
_id: z.string(),
|
|
273
273
|
description: z.string(),
|
|
274
|
-
created: z.string().default("2026-08-
|
|
275
|
-
updated: z.string().default("2026-08-
|
|
274
|
+
created: z.string().default("2026-08-07T07:22:35.553Z"),
|
|
275
|
+
updated: z.string().default("2026-08-07T07:22:35.553Z"),
|
|
276
276
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
277
277
|
project_id: z.string().optional(),
|
|
278
278
|
guardrail_config: z.any().optional(),
|
|
@@ -32,8 +32,8 @@ export const EvaluatorResponsePython$inboundSchema: z.ZodType<
|
|
|
32
32
|
> = z.object({
|
|
33
33
|
_id: z.string(),
|
|
34
34
|
description: z.string(),
|
|
35
|
-
created: z.string().default("2026-08-
|
|
36
|
-
updated: z.string().default("2026-08-
|
|
35
|
+
created: z.string().default("2026-08-07T07:22:35.553Z"),
|
|
36
|
+
updated: z.string().default("2026-08-07T07:22:35.553Z"),
|
|
37
37
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
38
38
|
project_id: z.string().optional(),
|
|
39
39
|
guardrail_config: z.any().optional(),
|
|
@@ -54,8 +54,8 @@ export const EvaluatorResponseRagas$inboundSchema: z.ZodType<
|
|
|
54
54
|
> = z.object({
|
|
55
55
|
_id: z.string(),
|
|
56
56
|
description: z.string(),
|
|
57
|
-
created: z.string().default("2026-08-
|
|
58
|
-
updated: z.string().default("2026-08-
|
|
57
|
+
created: z.string().default("2026-08-07T07:22:35.553Z"),
|
|
58
|
+
updated: z.string().default("2026-08-07T07:22:35.553Z"),
|
|
59
59
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
60
60
|
project_id: z.string().optional(),
|
|
61
61
|
guardrail_config: z.any().optional(),
|
|
@@ -32,8 +32,8 @@ export const EvaluatorResponseTypescript$inboundSchema: z.ZodType<
|
|
|
32
32
|
> = z.object({
|
|
33
33
|
_id: z.string(),
|
|
34
34
|
description: z.string(),
|
|
35
|
-
created: z.string().default("2026-08-
|
|
36
|
-
updated: z.string().default("2026-08-
|
|
35
|
+
created: z.string().default("2026-08-07T07:22:35.553Z"),
|
|
36
|
+
updated: z.string().default("2026-08-07T07:22:35.553Z"),
|
|
37
37
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
38
38
|
project_id: z.string().optional(),
|
|
39
39
|
guardrail_config: z.any().optional(),
|
|
@@ -6,13 +6,16 @@ import * as z from "zod/v3";
|
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
import {
|
|
9
|
+
import {
|
|
10
|
+
BudgetRestResponse,
|
|
11
|
+
BudgetRestResponse$inboundSchema,
|
|
12
|
+
} from "./budgetrestresponse.js";
|
|
10
13
|
|
|
11
14
|
export type GetBudgetResponse = {
|
|
12
15
|
/**
|
|
13
16
|
* Requested budget.
|
|
14
17
|
*/
|
|
15
|
-
budget
|
|
18
|
+
budget: BudgetRestResponse;
|
|
16
19
|
};
|
|
17
20
|
|
|
18
21
|
/** @internal */
|
|
@@ -21,7 +24,7 @@ export const GetBudgetResponse$inboundSchema: z.ZodType<
|
|
|
21
24
|
z.ZodTypeDef,
|
|
22
25
|
unknown
|
|
23
26
|
> = z.object({
|
|
24
|
-
budget:
|
|
27
|
+
budget: BudgetRestResponse$inboundSchema,
|
|
25
28
|
});
|
|
26
29
|
|
|
27
30
|
export function getBudgetResponseFromJSON(
|