@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
|
@@ -27,8 +27,8 @@ import { RateLimit, RateLimit$inboundSchema } from "./ratelimit.js";
|
|
|
27
27
|
* Live consumption (`usage`) is not attached on this path — call the
|
|
28
28
|
* Budgets API for current spend.
|
|
29
29
|
*/
|
|
30
|
-
export type
|
|
31
|
-
budgetId
|
|
30
|
+
export type Budget = {
|
|
31
|
+
budgetId: string;
|
|
32
32
|
/**
|
|
33
33
|
* Denormalized metadata for UI rendering, list filters, and the
|
|
34
34
|
*
|
|
@@ -56,7 +56,7 @@ export type IdentityBudget = {
|
|
|
56
56
|
* of `amount`, `token_limit`, or RateLimit.requests_per_minute MUST be
|
|
57
57
|
* set on a Budget; that invariant is enforced by the handler.
|
|
58
58
|
*/
|
|
59
|
-
limits
|
|
59
|
+
limits: BudgetLimits;
|
|
60
60
|
/**
|
|
61
61
|
* RateLimit is the per-minute request ceiling. Enforced via atomic
|
|
62
62
|
*
|
|
@@ -66,8 +66,8 @@ export type IdentityBudget = {
|
|
|
66
66
|
rateLimit?: RateLimit | undefined;
|
|
67
67
|
isActive?: boolean | undefined;
|
|
68
68
|
expiresAt?: Date | undefined;
|
|
69
|
-
createdAt
|
|
70
|
-
updatedAt
|
|
69
|
+
createdAt: Date;
|
|
70
|
+
updatedAt: Date;
|
|
71
71
|
/**
|
|
72
72
|
* Live consumption for the current period, read from the Redis
|
|
73
73
|
*
|
|
@@ -147,47 +147,47 @@ export type Identity = {
|
|
|
147
147
|
* Live consumption (`usage`) is not attached on this path — call the
|
|
148
148
|
* Budgets API for current spend.
|
|
149
149
|
*/
|
|
150
|
-
budget?:
|
|
150
|
+
budget?: Budget | undefined;
|
|
151
151
|
};
|
|
152
152
|
|
|
153
153
|
/** @internal */
|
|
154
|
-
export const
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
.
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
}).transform((v) => {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
154
|
+
export const Budget$inboundSchema: z.ZodType<Budget, z.ZodTypeDef, unknown> = z
|
|
155
|
+
.object({
|
|
156
|
+
budget_id: z.string(),
|
|
157
|
+
scope: BudgetScope$inboundSchema.optional(),
|
|
158
|
+
match: BudgetMatch$inboundSchema.optional(),
|
|
159
|
+
limits: BudgetLimits$inboundSchema,
|
|
160
|
+
rate_limit: RateLimit$inboundSchema.optional(),
|
|
161
|
+
is_active: z.boolean().optional(),
|
|
162
|
+
expires_at: z.string().datetime({ offset: true }).transform(v =>
|
|
163
|
+
new Date(v)
|
|
164
|
+
).optional(),
|
|
165
|
+
created_at: z.string().datetime({ offset: true }).transform(v =>
|
|
166
|
+
new Date(v)
|
|
167
|
+
),
|
|
168
|
+
updated_at: z.string().datetime({ offset: true }).transform(v =>
|
|
169
|
+
new Date(v)
|
|
170
|
+
),
|
|
171
|
+
usage: BudgetUsage$inboundSchema.optional(),
|
|
172
|
+
alerts: z.array(BudgetAlert$inboundSchema).optional(),
|
|
173
|
+
}).transform((v) => {
|
|
174
|
+
return remap$(v, {
|
|
175
|
+
"budget_id": "budgetId",
|
|
176
|
+
"rate_limit": "rateLimit",
|
|
177
|
+
"is_active": "isActive",
|
|
178
|
+
"expires_at": "expiresAt",
|
|
179
|
+
"created_at": "createdAt",
|
|
180
|
+
"updated_at": "updatedAt",
|
|
181
|
+
});
|
|
181
182
|
});
|
|
182
|
-
});
|
|
183
183
|
|
|
184
|
-
export function
|
|
184
|
+
export function budgetFromJSON(
|
|
185
185
|
jsonString: string,
|
|
186
|
-
): SafeParseResult<
|
|
186
|
+
): SafeParseResult<Budget, SDKValidationError> {
|
|
187
187
|
return safeParse(
|
|
188
188
|
jsonString,
|
|
189
|
-
(x) =>
|
|
190
|
-
`Failed to parse '
|
|
189
|
+
(x) => Budget$inboundSchema.parse(JSON.parse(x)),
|
|
190
|
+
`Failed to parse 'Budget' from JSON`,
|
|
191
191
|
);
|
|
192
192
|
}
|
|
193
193
|
|
|
@@ -208,7 +208,7 @@ export const Identity$inboundSchema: z.ZodType<
|
|
|
208
208
|
created: z.string(),
|
|
209
209
|
updated: z.string(),
|
|
210
210
|
metrics: IdentityMetrics$inboundSchema.optional(),
|
|
211
|
-
budget: z.lazy(() =>
|
|
211
|
+
budget: z.lazy(() => Budget$inboundSchema).optional(),
|
|
212
212
|
}).transform((v) => {
|
|
213
213
|
return remap$(v, {
|
|
214
214
|
"_id": "id",
|
|
@@ -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-identity cap. Keyed by the contact's external_id (not the
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
* internal Mongo `_id`) so the scope is stable across imports.
|
|
15
|
+
*/
|
|
16
|
+
export type IdentityBudgetScopeRestResponse = {
|
|
17
|
+
identityExternalId?: string | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const IdentityBudgetScopeRestResponse$inboundSchema: z.ZodType<
|
|
22
|
+
IdentityBudgetScopeRestResponse,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
identityExternalId: z.string().optional(),
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export function identityBudgetScopeRestResponseFromJSON(
|
|
30
|
+
jsonString: string,
|
|
31
|
+
): SafeParseResult<IdentityBudgetScopeRestResponse, SDKValidationError> {
|
|
32
|
+
return safeParse(
|
|
33
|
+
jsonString,
|
|
34
|
+
(x) => IdentityBudgetScopeRestResponse$inboundSchema.parse(JSON.parse(x)),
|
|
35
|
+
`Failed to parse 'IdentityBudgetScopeRestResponse' from JSON`,
|
|
36
|
+
);
|
|
37
|
+
}
|
|
@@ -29,6 +29,7 @@ export * from "./alerttriggerevent.js";
|
|
|
29
29
|
export * from "./allprojects.js";
|
|
30
30
|
export * from "./apierror.js";
|
|
31
31
|
export * from "./apikeybudgetscope.js";
|
|
32
|
+
export * from "./apikeybudgetscoperestresponse.js";
|
|
32
33
|
export * from "./apikeyowner.js";
|
|
33
34
|
export * from "./apikeyrestresponse.js";
|
|
34
35
|
export * from "./apikeystatus.js";
|
|
@@ -39,15 +40,18 @@ export * from "./autorouterv2creatorconfig.js";
|
|
|
39
40
|
export * from "./autorouterv2effortconfig.js";
|
|
40
41
|
export * from "./azurefoundrydeployment.js";
|
|
41
42
|
export * from "./azurefoundrydeploymentmasterdata.js";
|
|
42
|
-
export * from "./budget.js";
|
|
43
43
|
export * from "./budgetalert.js";
|
|
44
44
|
export * from "./budgetalertdimension.js";
|
|
45
|
+
export * from "./budgetalertrestresponse.js";
|
|
45
46
|
export * from "./budgetlimit.js";
|
|
46
47
|
export * from "./budgetlimits.js";
|
|
48
|
+
export * from "./budgetlimitsrestresponse.js";
|
|
47
49
|
export * from "./budgetmatch.js";
|
|
48
50
|
export * from "./budgetperiod.js";
|
|
51
|
+
export * from "./budgetrestresponse.js";
|
|
49
52
|
export * from "./budgetscope.js";
|
|
50
53
|
export * from "./budgetscopekind.js";
|
|
54
|
+
export * from "./budgetscoperestresponse.js";
|
|
51
55
|
export * from "./budgetsortfield.js";
|
|
52
56
|
export * from "./budgetusage.js";
|
|
53
57
|
export * from "./cacheconfig.js";
|
|
@@ -155,6 +159,7 @@ export * from "./guardrailrule.js";
|
|
|
155
159
|
export * from "./httptoolinput.js";
|
|
156
160
|
export * from "./identity.js";
|
|
157
161
|
export * from "./identitybudgetscope.js";
|
|
162
|
+
export * from "./identitybudgetscoperestresponse.js";
|
|
158
163
|
export * from "./identitymetrics.js";
|
|
159
164
|
export * from "./identitysortfield.js";
|
|
160
165
|
export * from "./imagecontentpartschema.js";
|
|
@@ -200,6 +205,7 @@ export * from "./mcpaccess.js";
|
|
|
200
205
|
export * from "./mcptoolinput.js";
|
|
201
206
|
export * from "./memoryparam.js";
|
|
202
207
|
export * from "./modelbudgetscope.js";
|
|
208
|
+
export * from "./modelbudgetscoperestresponse.js";
|
|
203
209
|
export * from "./modelconfigurationresponse.js";
|
|
204
210
|
export * from "./modeldocument.js";
|
|
205
211
|
export * from "./modelmetadata.js";
|
|
@@ -234,6 +240,7 @@ export * from "./pricing.js";
|
|
|
234
240
|
export * from "./pricingvariant.js";
|
|
235
241
|
export * from "./project.js";
|
|
236
242
|
export * from "./projectbudgetscope.js";
|
|
243
|
+
export * from "./projectbudgetscoperestresponse.js";
|
|
237
244
|
export * from "./projectscope.js";
|
|
238
245
|
export * from "./providerbudgetscope.js";
|
|
239
246
|
export * from "./providertoolinput.js";
|
|
@@ -259,6 +266,7 @@ export * from "./querytracesresponse.js";
|
|
|
259
266
|
export * from "./querywebhooksrequest.js";
|
|
260
267
|
export * from "./querywebhooksresponse.js";
|
|
261
268
|
export * from "./ratelimit.js";
|
|
269
|
+
export * from "./ratelimitrestresponse.js";
|
|
262
270
|
export * from "./reasoning.js";
|
|
263
271
|
export * from "./reasoningparam.js";
|
|
264
272
|
export * from "./reasoningpart.js";
|
|
@@ -3,11 +3,13 @@
|
|
|
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 {
|
|
9
|
+
import {
|
|
10
|
+
BudgetRestResponse,
|
|
11
|
+
BudgetRestResponse$inboundSchema,
|
|
12
|
+
} from "./budgetrestresponse.js";
|
|
11
13
|
|
|
12
14
|
export type ListBudgetsResponse = {
|
|
13
15
|
/**
|
|
@@ -17,7 +19,7 @@ export type ListBudgetsResponse = {
|
|
|
17
19
|
/**
|
|
18
20
|
* Page of budgets, ordered newest first.
|
|
19
21
|
*/
|
|
20
|
-
data: Array<
|
|
22
|
+
data: Array<BudgetRestResponse>;
|
|
21
23
|
/**
|
|
22
24
|
* Whether more budgets are available in the selected pagination
|
|
23
25
|
*
|
|
@@ -34,12 +36,8 @@ export const ListBudgetsResponse$inboundSchema: z.ZodType<
|
|
|
34
36
|
unknown
|
|
35
37
|
> = z.object({
|
|
36
38
|
object: z.string(),
|
|
37
|
-
data: z.array(
|
|
38
|
-
|
|
39
|
-
}).transform((v) => {
|
|
40
|
-
return remap$(v, {
|
|
41
|
-
"has_more": "hasMore",
|
|
42
|
-
});
|
|
39
|
+
data: z.array(BudgetRestResponse$inboundSchema),
|
|
40
|
+
hasMore: z.boolean().default(false),
|
|
43
41
|
});
|
|
44
42
|
|
|
45
43
|
export function listBudgetsResponseFromJSON(
|
|
@@ -16,7 +16,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
16
16
|
* models) — NOT the Mongo `_id` of the model master-data document.
|
|
17
17
|
*/
|
|
18
18
|
export type ModelBudgetScope = {
|
|
19
|
-
modelId
|
|
19
|
+
modelId: string;
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
/** @internal */
|
|
@@ -25,7 +25,7 @@ export const ModelBudgetScope$inboundSchema: z.ZodType<
|
|
|
25
25
|
z.ZodTypeDef,
|
|
26
26
|
unknown
|
|
27
27
|
> = z.object({
|
|
28
|
-
model_id: z.string()
|
|
28
|
+
model_id: z.string(),
|
|
29
29
|
}).transform((v) => {
|
|
30
30
|
return remap$(v, {
|
|
31
31
|
"model_id": "modelId",
|
|
@@ -33,7 +33,7 @@ export const ModelBudgetScope$inboundSchema: z.ZodType<
|
|
|
33
33
|
});
|
|
34
34
|
/** @internal */
|
|
35
35
|
export type ModelBudgetScope$Outbound = {
|
|
36
|
-
model_id
|
|
36
|
+
model_id: string;
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
/** @internal */
|
|
@@ -42,7 +42,7 @@ export const ModelBudgetScope$outboundSchema: z.ZodType<
|
|
|
42
42
|
z.ZodTypeDef,
|
|
43
43
|
ModelBudgetScope
|
|
44
44
|
> = z.object({
|
|
45
|
-
modelId: z.string()
|
|
45
|
+
modelId: z.string(),
|
|
46
46
|
}).transform((v) => {
|
|
47
47
|
return remap$(v, {
|
|
48
48
|
modelId: "model_id",
|
|
@@ -0,0 +1,38 @@
|
|
|
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-model cap. The value is the FULL model reference as callers send
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
* it ("openai/gpt-4o", or "workspaceKey@openai/gpt-4o" for private
|
|
15
|
+
* models) — NOT the Mongo `_id` of the model master-data document.
|
|
16
|
+
*/
|
|
17
|
+
export type ModelBudgetScopeRestResponse = {
|
|
18
|
+
modelId: string;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const ModelBudgetScopeRestResponse$inboundSchema: z.ZodType<
|
|
23
|
+
ModelBudgetScopeRestResponse,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
unknown
|
|
26
|
+
> = z.object({
|
|
27
|
+
modelId: z.string(),
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export function modelBudgetScopeRestResponseFromJSON(
|
|
31
|
+
jsonString: string,
|
|
32
|
+
): SafeParseResult<ModelBudgetScopeRestResponse, SDKValidationError> {
|
|
33
|
+
return safeParse(
|
|
34
|
+
jsonString,
|
|
35
|
+
(x) => ModelBudgetScopeRestResponse$inboundSchema.parse(JSON.parse(x)),
|
|
36
|
+
`Failed to parse 'ModelBudgetScopeRestResponse' from JSON`,
|
|
37
|
+
);
|
|
38
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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-project cap.
|
|
12
|
+
*/
|
|
13
|
+
export type ProjectBudgetScopeRestResponse = {
|
|
14
|
+
projectId?: string | undefined;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const ProjectBudgetScopeRestResponse$inboundSchema: z.ZodType<
|
|
19
|
+
ProjectBudgetScopeRestResponse,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
projectId: z.string().optional(),
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export function projectBudgetScopeRestResponseFromJSON(
|
|
27
|
+
jsonString: string,
|
|
28
|
+
): SafeParseResult<ProjectBudgetScopeRestResponse, SDKValidationError> {
|
|
29
|
+
return safeParse(
|
|
30
|
+
jsonString,
|
|
31
|
+
(x) => ProjectBudgetScopeRestResponse$inboundSchema.parse(JSON.parse(x)),
|
|
32
|
+
`Failed to parse 'ProjectBudgetScopeRestResponse' from JSON`,
|
|
33
|
+
);
|
|
34
|
+
}
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
} from "./publicschedulepayload.js";
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* Schedule type.
|
|
17
|
+
* Schedule type. Only cron can be created or updated; once and interval only appear on schedules stored before that restriction.
|
|
18
18
|
*/
|
|
19
19
|
export const PublicScheduleType = {
|
|
20
20
|
Cron: "cron",
|
|
@@ -22,7 +22,7 @@ export const PublicScheduleType = {
|
|
|
22
22
|
Interval: "interval",
|
|
23
23
|
} as const;
|
|
24
24
|
/**
|
|
25
|
-
* Schedule type.
|
|
25
|
+
* Schedule type. Only cron can be created or updated; once and interval only appear on schedules stored before that restriction.
|
|
26
26
|
*/
|
|
27
27
|
export type PublicScheduleType = ClosedEnum<typeof PublicScheduleType>;
|
|
28
28
|
|
|
@@ -42,7 +42,11 @@ export type PublicSchedule = {
|
|
|
42
42
|
*/
|
|
43
43
|
createdById: string;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Human-readable name of the schedule. Omitted for schedules created before display names were required.
|
|
46
|
+
*/
|
|
47
|
+
displayName?: string | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* 6-field cron expression. Schedules stored before the cron-only restriction may also return an @every duration or an @at RFC3339 timestamp.
|
|
46
50
|
*/
|
|
47
51
|
expression: string;
|
|
48
52
|
/**
|
|
@@ -50,7 +54,7 @@ export type PublicSchedule = {
|
|
|
50
54
|
*/
|
|
51
55
|
generation: number;
|
|
52
56
|
/**
|
|
53
|
-
* Whether the schedule is currently firing. once schedules flip to false automatically after firing.
|
|
57
|
+
* Whether the schedule is currently firing. Legacy once schedules flip to false automatically after firing.
|
|
54
58
|
*/
|
|
55
59
|
isActive: boolean;
|
|
56
60
|
/**
|
|
@@ -63,10 +67,14 @@ export type PublicSchedule = {
|
|
|
63
67
|
*/
|
|
64
68
|
triggerCount: number;
|
|
65
69
|
/**
|
|
66
|
-
* Schedule type.
|
|
70
|
+
* Schedule type. Only cron can be created or updated; once and interval only appear on schedules stored before that restriction.
|
|
67
71
|
*/
|
|
68
72
|
type: PublicScheduleType;
|
|
69
73
|
updated: Date;
|
|
74
|
+
/**
|
|
75
|
+
* ID of the API key that last updated the schedule. Omitted until the schedule is updated.
|
|
76
|
+
*/
|
|
77
|
+
updatedById?: string | undefined;
|
|
70
78
|
};
|
|
71
79
|
|
|
72
80
|
/** @internal */
|
|
@@ -85,6 +93,7 @@ export const PublicSchedule$inboundSchema: z.ZodType<
|
|
|
85
93
|
agent_tag: z.string().optional(),
|
|
86
94
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
87
95
|
created_by_id: z.string(),
|
|
96
|
+
display_name: z.string().optional(),
|
|
88
97
|
expression: z.string(),
|
|
89
98
|
generation: z.number().int(),
|
|
90
99
|
is_active: z.boolean(),
|
|
@@ -95,15 +104,18 @@ export const PublicSchedule$inboundSchema: z.ZodType<
|
|
|
95
104
|
trigger_count: z.number().int(),
|
|
96
105
|
type: PublicScheduleType$inboundSchema,
|
|
97
106
|
updated: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
107
|
+
updated_by_id: z.string().optional(),
|
|
98
108
|
}).transform((v) => {
|
|
99
109
|
return remap$(v, {
|
|
100
110
|
"_id": "id",
|
|
101
111
|
"agent_key": "agentKey",
|
|
102
112
|
"agent_tag": "agentTag",
|
|
103
113
|
"created_by_id": "createdById",
|
|
114
|
+
"display_name": "displayName",
|
|
104
115
|
"is_active": "isActive",
|
|
105
116
|
"last_triggered_at": "lastTriggeredAt",
|
|
106
117
|
"trigger_count": "triggerCount",
|
|
118
|
+
"updated_by_id": "updatedById",
|
|
107
119
|
});
|
|
108
120
|
});
|
|
109
121
|
|
|
@@ -18,9 +18,9 @@ export type PublicSchedulePayload = {
|
|
|
18
18
|
*/
|
|
19
19
|
memoryEntityId?: string | undefined;
|
|
20
20
|
/**
|
|
21
|
-
* Opaque key/value pairs attached to every response generated by this schedule.
|
|
21
|
+
* Opaque string key/value pairs attached to every response generated by this schedule.
|
|
22
22
|
*/
|
|
23
|
-
metadata?: { [k: string]:
|
|
23
|
+
metadata?: { [k: string]: string } | undefined;
|
|
24
24
|
/**
|
|
25
25
|
* Template variables substituted into instructions. Supports secret values: {"secret": true, "value": "..."}.
|
|
26
26
|
*/
|
|
@@ -35,7 +35,7 @@ export const PublicSchedulePayload$inboundSchema: z.ZodType<
|
|
|
35
35
|
> = z.object({
|
|
36
36
|
input: z.any().optional(),
|
|
37
37
|
memory_entity_id: z.string().optional(),
|
|
38
|
-
metadata: z.record(z.
|
|
38
|
+
metadata: z.record(z.string()).optional(),
|
|
39
39
|
variables: z.record(z.any()).optional(),
|
|
40
40
|
}).transform((v) => {
|
|
41
41
|
return remap$(v, {
|
|
@@ -46,7 +46,7 @@ export const PublicSchedulePayload$inboundSchema: z.ZodType<
|
|
|
46
46
|
export type PublicSchedulePayload$Outbound = {
|
|
47
47
|
input?: any | undefined;
|
|
48
48
|
memory_entity_id?: string | undefined;
|
|
49
|
-
metadata?: { [k: string]:
|
|
49
|
+
metadata?: { [k: string]: string } | undefined;
|
|
50
50
|
variables?: { [k: string]: any } | undefined;
|
|
51
51
|
};
|
|
52
52
|
|
|
@@ -58,7 +58,7 @@ export const PublicSchedulePayload$outboundSchema: z.ZodType<
|
|
|
58
58
|
> = z.object({
|
|
59
59
|
input: z.any().optional(),
|
|
60
60
|
memoryEntityId: z.string().optional(),
|
|
61
|
-
metadata: z.record(z.
|
|
61
|
+
metadata: z.record(z.string()).optional(),
|
|
62
62
|
variables: z.record(z.any()).optional(),
|
|
63
63
|
}).transform((v) => {
|
|
64
64
|
return remap$(v, {
|
|
@@ -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
|
+
* RateLimit is the per-minute request ceiling. Enforced via atomic
|
|
12
|
+
*
|
|
13
|
+
* @remarks
|
|
14
|
+
* increment-first semantics in the enforcement middleware.
|
|
15
|
+
*/
|
|
16
|
+
export type RateLimitRestResponse = {
|
|
17
|
+
requestsPerMinute?: number | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const RateLimitRestResponse$inboundSchema: z.ZodType<
|
|
22
|
+
RateLimitRestResponse,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
requestsPerMinute: z.number().int().optional(),
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export function rateLimitRestResponseFromJSON(
|
|
30
|
+
jsonString: string,
|
|
31
|
+
): SafeParseResult<RateLimitRestResponse, SDKValidationError> {
|
|
32
|
+
return safeParse(
|
|
33
|
+
jsonString,
|
|
34
|
+
(x) => RateLimitRestResponse$inboundSchema.parse(JSON.parse(x)),
|
|
35
|
+
`Failed to parse 'RateLimitRestResponse' from JSON`,
|
|
36
|
+
);
|
|
37
|
+
}
|
|
@@ -40,7 +40,7 @@ export const ReasoningPart$inboundSchema: z.ZodType<
|
|
|
40
40
|
z.ZodTypeDef,
|
|
41
41
|
unknown
|
|
42
42
|
> = z.object({
|
|
43
|
-
_id: z.string().default("
|
|
43
|
+
_id: z.string().default("reasoning_01kzdhmrswdr5jkzyb9bx50gtp"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -6,7 +6,10 @@ 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 ResetBudgetConsumptionResponse = {
|
|
12
15
|
/**
|
|
@@ -15,7 +18,7 @@ export type ResetBudgetConsumptionResponse = {
|
|
|
15
18
|
* @remarks
|
|
16
19
|
* were cleared.
|
|
17
20
|
*/
|
|
18
|
-
budget?:
|
|
21
|
+
budget?: BudgetRestResponse | undefined;
|
|
19
22
|
};
|
|
20
23
|
|
|
21
24
|
/** @internal */
|
|
@@ -24,7 +27,7 @@ export const ResetBudgetConsumptionResponse$inboundSchema: z.ZodType<
|
|
|
24
27
|
z.ZodTypeDef,
|
|
25
28
|
unknown
|
|
26
29
|
> = z.object({
|
|
27
|
-
budget:
|
|
30
|
+
budget: BudgetRestResponse$inboundSchema.optional(),
|
|
28
31
|
});
|
|
29
32
|
|
|
30
33
|
export function resetBudgetConsumptionResponseFromJSON(
|
|
@@ -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 UpdateBudgetResponse = {
|
|
12
15
|
/**
|
|
13
16
|
* Updated budget.
|
|
14
17
|
*/
|
|
15
|
-
budget
|
|
18
|
+
budget: BudgetRestResponse;
|
|
16
19
|
};
|
|
17
20
|
|
|
18
21
|
/** @internal */
|
|
@@ -21,7 +24,7 @@ export const UpdateBudgetResponse$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 updateBudgetResponseFromJSON(
|
|
@@ -46,7 +46,7 @@ export type Webhook = {
|
|
|
46
46
|
*/
|
|
47
47
|
events: Array<string>;
|
|
48
48
|
/**
|
|
49
|
-
* Signing secret used to
|
|
49
|
+
* Signing secret used to compute `X-Orq-Signature` as the lowercase hexadecimal HMAC-SHA256 of the exact request body bytes. Treat this value as sensitive.
|
|
50
50
|
*/
|
|
51
51
|
secret: string;
|
|
52
52
|
/**
|
|
@@ -4911,7 +4911,7 @@ export const RetrieveAnnotationQueueItemResponseBody2$inboundSchema: z.ZodType<
|
|
|
4911
4911
|
z.ZodTypeDef,
|
|
4912
4912
|
unknown
|
|
4913
4913
|
> = z.object({
|
|
4914
|
-
_id: z.string().default("
|
|
4914
|
+
_id: z.string().default("01KZDHMSEX3MW6R8TKQC6BYQ5J"),
|
|
4915
4915
|
name: z.string().optional(),
|
|
4916
4916
|
trace_id: z.string(),
|
|
4917
4917
|
duration: z.number().optional(),
|