@orq-ai/node 4.13.0-rc.52 → 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/README.md +2 -1
- package/funcs/apiKeysCreate.d.ts +1 -1
- package/funcs/apiKeysCreate.d.ts.map +1 -1
- package/funcs/apiKeysCreate.js +1 -1
- package/funcs/apiKeysCreate.js.map +1 -1
- package/funcs/apiKeysDelete.d.ts +1 -2
- package/funcs/apiKeysDelete.d.ts.map +1 -1
- package/funcs/apiKeysDelete.js +3 -3
- package/funcs/apiKeysDelete.js.map +1 -1
- package/funcs/apiKeysGet.d.ts +1 -1
- package/funcs/apiKeysGet.d.ts.map +1 -1
- package/funcs/apiKeysGet.js +1 -1
- package/funcs/apiKeysGet.js.map +1 -1
- package/funcs/apiKeysList.d.ts +2 -2
- package/funcs/apiKeysList.d.ts.map +1 -1
- package/funcs/apiKeysList.js +3 -2
- package/funcs/apiKeysList.js.map +1 -1
- package/funcs/apiKeysUpdate.d.ts +1 -1
- package/funcs/apiKeysUpdate.d.ts.map +1 -1
- package/funcs/apiKeysUpdate.js +1 -1
- package/funcs/apiKeysUpdate.js.map +1 -1
- package/funcs/responsesGet.d.ts +2 -1
- package/funcs/responsesGet.d.ts.map +1 -1
- package/funcs/responsesGet.js +5 -1
- package/funcs/responsesGet.js.map +1 -1
- package/funcs/schedulesCreate.d.ts +1 -1
- package/funcs/schedulesCreate.js +1 -1
- package/funcs/smartRoutersList.js +0 -1
- package/funcs/smartRoutersList.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/allprojects.d.ts +0 -5
- package/models/components/allprojects.d.ts.map +1 -1
- package/models/components/allprojects.js +1 -8
- package/models/components/allprojects.js.map +1 -1
- package/models/components/apierror.d.ts +14 -0
- package/models/components/apierror.d.ts.map +1 -0
- package/models/components/{deleteapikeyresponse.js → apierror.js} +12 -6
- package/models/components/apierror.js.map +1 -0
- package/models/components/apikeybudgetscoperestresponse.d.ts +16 -0
- package/models/components/apikeybudgetscoperestresponse.d.ts.map +1 -0
- package/models/components/{updateapikeyresponse.js → apikeybudgetscoperestresponse.js} +7 -13
- package/models/components/apikeybudgetscoperestresponse.js.map +1 -0
- package/models/components/apikeyowner.d.ts +0 -5
- package/models/components/apikeyowner.d.ts.map +1 -1
- package/models/components/apikeyowner.js +1 -15
- package/models/components/apikeyowner.js.map +1 -1
- package/models/components/apikeyrestresponse.d.ts +55 -0
- package/models/components/apikeyrestresponse.d.ts.map +1 -0
- package/models/components/apikeyrestresponse.js +96 -0
- package/models/components/apikeyrestresponse.js.map +1 -0
- package/models/components/apikeystatus.d.ts +0 -2
- package/models/components/apikeystatus.d.ts.map +1 -1
- package/models/components/apikeystatus.js +2 -4
- package/models/components/apikeystatus.js.map +1 -1
- package/models/components/budgetalertrestresponse.d.ts +31 -0
- package/models/components/budgetalertrestresponse.d.ts.map +1 -0
- package/models/components/{createapikeyresponse.js → budgetalertrestresponse.js} +11 -14
- 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/cacheconfig.d.ts +14 -0
- package/models/components/cacheconfig.d.ts.map +1 -0
- package/models/components/{legacytokenfamily.js → cacheconfig.js} +10 -9
- package/models/components/cacheconfig.js.map +1 -0
- package/models/components/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 +16 -9
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +16 -9
- 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/loadbalancerconfig.d.ts +15 -0
- package/models/components/loadbalancerconfig.d.ts.map +1 -0
- package/models/components/loadbalancerconfig.js +51 -0
- package/models/components/loadbalancerconfig.js.map +1 -0
- package/models/components/loadbalancermodelconfig.d.ts +14 -0
- package/models/components/loadbalancermodelconfig.d.ts.map +1 -0
- package/models/components/loadbalancermodelconfig.js +50 -0
- package/models/components/loadbalancermodelconfig.js.map +1 -0
- package/models/components/mcpaccess.d.ts +0 -5
- package/models/components/mcpaccess.d.ts.map +1 -1
- package/models/components/mcpaccess.js +1 -18
- package/models/components/mcpaccess.js.map +1 -1
- package/models/components/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/permissionmode.d.ts +0 -2
- package/models/components/permissionmode.d.ts.map +1 -1
- package/models/components/permissionmode.js +2 -4
- package/models/components/permissionmode.js.map +1 -1
- package/models/components/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/projectscope.d.ts +0 -5
- package/models/components/projectscope.d.ts.map +1 -1
- package/models/components/projectscope.js +1 -11
- package/models/components/projectscope.js.map +1 -1
- package/models/components/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/{smartroutermetrics.js → ratelimitrestresponse.js} +7 -9
- 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/securityconfig.d.ts +12 -0
- package/models/components/securityconfig.d.ts.map +1 -0
- package/models/components/securityconfig.js +49 -0
- package/models/components/securityconfig.js.map +1 -0
- package/models/components/serviceaccountowner.d.ts +0 -5
- package/models/components/serviceaccountowner.d.ts.map +1 -1
- package/models/components/serviceaccountowner.js +1 -8
- package/models/components/serviceaccountowner.js.map +1 -1
- package/models/components/singleproject.d.ts +0 -5
- package/models/components/singleproject.d.ts.map +1 -1
- package/models/components/singleproject.js +1 -14
- package/models/components/singleproject.js.map +1 -1
- package/models/components/smartrouter.d.ts +0 -2
- package/models/components/smartrouter.d.ts.map +1 -1
- package/models/components/smartrouter.js +0 -2
- package/models/components/smartrouter.js.map +1 -1
- package/models/components/timeoutconfig.d.ts +12 -0
- package/models/components/timeoutconfig.d.ts.map +1 -0
- package/models/components/{getapikeyresponse.js → timeoutconfig.js} +8 -10
- package/models/components/timeoutconfig.js.map +1 -0
- package/models/components/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/userowner.d.ts +0 -5
- package/models/components/userowner.d.ts.map +1 -1
- package/models/components/userowner.js +1 -14
- package/models/components/userowner.js.map +1 -1
- package/models/components/webhook.d.ts +1 -1
- package/models/errors/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/retrieveresponse.d.ts +25 -0
- package/models/errors/retrieveresponse.d.ts.map +1 -0
- package/models/{components/listapikeysresponse.js → errors/retrieveresponse.js} +29 -16
- package/models/errors/retrieveresponse.js.map +1 -0
- 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/createrouterresponse.d.ts +18 -0
- package/models/operations/createrouterresponse.d.ts.map +1 -1
- package/models/operations/createrouterresponse.js +8 -0
- package/models/operations/createrouterresponse.js.map +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/getalltools.js +6 -6
- package/models/operations/geteval.js +16 -16
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listannotationqueues.js +1 -1
- package/models/operations/listdatasetdatapoints.js +5 -5
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/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/smartrouterlist.d.ts +0 -2
- package/models/operations/smartrouterlist.d.ts.map +1 -1
- package/models/operations/smartrouterlist.js +0 -2
- package/models/operations/smartrouterlist.js.map +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/twenty.js +1 -1
- package/models/operations/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 +3 -3
- package/sdk/apikeys.d.ts +6 -6
- package/sdk/apikeys.d.ts.map +1 -1
- package/sdk/apikeys.js +1 -1
- package/sdk/feedback.d.ts +2 -2
- package/sdk/feedback.js +2 -2
- package/sdk/schedules.d.ts +1 -1
- package/sdk/schedules.js +1 -1
- package/src/funcs/apiKeysCreate.ts +4 -4
- package/src/funcs/apiKeysDelete.ts +6 -6
- package/src/funcs/apiKeysGet.ts +4 -4
- package/src/funcs/apiKeysList.ts +6 -5
- package/src/funcs/apiKeysUpdate.ts +4 -4
- package/src/funcs/responsesGet.ts +11 -2
- package/src/funcs/schedulesCreate.ts +1 -1
- package/src/funcs/smartRoutersList.ts +0 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/allprojects.ts +0 -18
- package/src/models/components/apierror.ts +39 -0
- package/src/models/components/apikeybudgetscoperestresponse.ts +37 -0
- package/src/models/components/apikeyowner.ts +0 -27
- package/src/models/components/apikeyrestresponse.ts +119 -0
- package/src/models/components/apikeystatus.ts +1 -4
- package/src/models/components/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/cacheconfig.ts +30 -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 +16 -9
- package/src/models/components/listbudgetsresponse.ts +7 -9
- package/src/models/components/loadbalancerconfig.ts +39 -0
- package/src/models/components/loadbalancermodelconfig.ts +34 -0
- package/src/models/components/mcpaccess.ts +0 -28
- package/src/models/components/modelbudgetscope.ts +4 -4
- package/src/models/components/modelbudgetscoperestresponse.ts +38 -0
- package/src/models/components/permissionmode.ts +1 -5
- package/src/models/components/projectbudgetscoperestresponse.ts +34 -0
- package/src/models/components/projectscope.ts +0 -23
- 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/securityconfig.ts +27 -0
- package/src/models/components/serviceaccountowner.ts +0 -18
- package/src/models/components/singleproject.ts +0 -24
- package/src/models/components/smartrouter.ts +0 -6
- package/src/models/components/timeoutconfig.ts +32 -0
- package/src/models/components/updatebudgetresponse.ts +6 -3
- package/src/models/components/userowner.ts +0 -24
- package/src/models/components/webhook.ts +1 -1
- package/src/models/errors/index.ts +1 -0
- package/src/models/errors/retrieveresponse.ts +56 -0
- package/src/models/operations/billing.ts +1 -1
- package/src/models/operations/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/createrouterresponse.ts +26 -0
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/geteval.ts +16 -16
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listannotationqueues.ts +1 -1
- package/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/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/smartrouterlist.ts +0 -4
- 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/apikeys.ts +6 -6
- package/src/sdk/feedback.ts +2 -2
- package/src/sdk/schedules.ts +1 -1
- package/models/components/apikey.d.ts +0 -201
- package/models/components/apikey.d.ts.map +0 -1
- package/models/components/apikey.js +0 -127
- package/models/components/apikey.js.map +0 -1
- package/models/components/budget.d.ts.map +0 -1
- package/models/components/budget.js.map +0 -1
- package/models/components/createapikeyresponse.d.ts +0 -22
- package/models/components/createapikeyresponse.d.ts.map +0 -1
- package/models/components/createapikeyresponse.js.map +0 -1
- package/models/components/deleteapikeyresponse.d.ts +0 -8
- package/models/components/deleteapikeyresponse.d.ts.map +0 -1
- package/models/components/deleteapikeyresponse.js.map +0 -1
- package/models/components/getapikeyresponse.d.ts +0 -14
- package/models/components/getapikeyresponse.d.ts.map +0 -1
- package/models/components/getapikeyresponse.js.map +0 -1
- package/models/components/legacytokenfamily.d.ts +0 -12
- package/models/components/legacytokenfamily.d.ts.map +0 -1
- package/models/components/legacytokenfamily.js.map +0 -1
- package/models/components/listapikeysresponse.d.ts +0 -28
- package/models/components/listapikeysresponse.d.ts.map +0 -1
- package/models/components/listapikeysresponse.js.map +0 -1
- package/models/components/smartroutermetrics.d.ts +0 -23
- package/models/components/smartroutermetrics.d.ts.map +0 -1
- package/models/components/smartroutermetrics.js.map +0 -1
- package/models/components/updateapikeyresponse.d.ts +0 -14
- package/models/components/updateapikeyresponse.d.ts.map +0 -1
- package/models/components/updateapikeyresponse.js.map +0 -1
- package/src/models/components/apikey.ts +0 -304
- package/src/models/components/createapikeyresponse.ts +0 -49
- package/src/models/components/deleteapikeyresponse.ts +0 -27
- package/src/models/components/getapikeyresponse.ts +0 -40
- package/src/models/components/legacytokenfamily.ts +0 -19
- package/src/models/components/listapikeysresponse.ts +0 -56
- package/src/models/components/smartroutermetrics.ts +0 -44
- package/src/models/components/updateapikeyresponse.ts +0 -40
|
@@ -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
|
+
}
|
|
@@ -27,9 +27,11 @@ export * from "./alertrun.js";
|
|
|
27
27
|
export * from "./alerttrigger.js";
|
|
28
28
|
export * from "./alerttriggerevent.js";
|
|
29
29
|
export * from "./allprojects.js";
|
|
30
|
-
export * from "./
|
|
30
|
+
export * from "./apierror.js";
|
|
31
31
|
export * from "./apikeybudgetscope.js";
|
|
32
|
+
export * from "./apikeybudgetscoperestresponse.js";
|
|
32
33
|
export * from "./apikeyowner.js";
|
|
34
|
+
export * from "./apikeyrestresponse.js";
|
|
33
35
|
export * from "./apikeystatus.js";
|
|
34
36
|
export * from "./audiocontentpartschema.js";
|
|
35
37
|
export * from "./autorouterconfig.js";
|
|
@@ -38,17 +40,21 @@ export * from "./autorouterv2creatorconfig.js";
|
|
|
38
40
|
export * from "./autorouterv2effortconfig.js";
|
|
39
41
|
export * from "./azurefoundrydeployment.js";
|
|
40
42
|
export * from "./azurefoundrydeploymentmasterdata.js";
|
|
41
|
-
export * from "./budget.js";
|
|
42
43
|
export * from "./budgetalert.js";
|
|
43
44
|
export * from "./budgetalertdimension.js";
|
|
45
|
+
export * from "./budgetalertrestresponse.js";
|
|
44
46
|
export * from "./budgetlimit.js";
|
|
45
47
|
export * from "./budgetlimits.js";
|
|
48
|
+
export * from "./budgetlimitsrestresponse.js";
|
|
46
49
|
export * from "./budgetmatch.js";
|
|
47
50
|
export * from "./budgetperiod.js";
|
|
51
|
+
export * from "./budgetrestresponse.js";
|
|
48
52
|
export * from "./budgetscope.js";
|
|
49
53
|
export * from "./budgetscopekind.js";
|
|
54
|
+
export * from "./budgetscoperestresponse.js";
|
|
50
55
|
export * from "./budgetsortfield.js";
|
|
51
56
|
export * from "./budgetusage.js";
|
|
57
|
+
export * from "./cacheconfig.js";
|
|
52
58
|
export * from "./codetoolinput.js";
|
|
53
59
|
export * from "./conversationparam.js";
|
|
54
60
|
export * from "./countwebhooksresponse.js";
|
|
@@ -56,7 +62,6 @@ export * from "./createagentresponse.js";
|
|
|
56
62
|
export * from "./createalertrequest.js";
|
|
57
63
|
export * from "./createalertresponse.js";
|
|
58
64
|
export * from "./createapikeyrequest.js";
|
|
59
|
-
export * from "./createapikeyresponse.js";
|
|
60
65
|
export * from "./createbudgetrequest.js";
|
|
61
66
|
export * from "./createbudgetresponse.js";
|
|
62
67
|
export * from "./createfilerequest.js";
|
|
@@ -80,7 +85,6 @@ export * from "./createwebhookrequest.js";
|
|
|
80
85
|
export * from "./datapart.js";
|
|
81
86
|
export * from "./datapoint.js";
|
|
82
87
|
export * from "./deletealertresponse.js";
|
|
83
|
-
export * from "./deleteapikeyresponse.js";
|
|
84
88
|
export * from "./deletebudgetresponse.js";
|
|
85
89
|
export * from "./deletefileresponse.js";
|
|
86
90
|
export * from "./deleteidentityresponse.js";
|
|
@@ -135,7 +139,6 @@ export * from "./functiontoolinput.js";
|
|
|
135
139
|
export * from "./generatewebhooksecretresponse.js";
|
|
136
140
|
export * from "./getagentresponse.js";
|
|
137
141
|
export * from "./getalertresponse.js";
|
|
138
|
-
export * from "./getapikeyresponse.js";
|
|
139
142
|
export * from "./getbudgetresponse.js";
|
|
140
143
|
export * from "./getfilecontentresponse.js";
|
|
141
144
|
export * from "./getfileresponse.js";
|
|
@@ -156,6 +159,7 @@ export * from "./guardrailrule.js";
|
|
|
156
159
|
export * from "./httptoolinput.js";
|
|
157
160
|
export * from "./identity.js";
|
|
158
161
|
export * from "./identitybudgetscope.js";
|
|
162
|
+
export * from "./identitybudgetscoperestresponse.js";
|
|
159
163
|
export * from "./identitymetrics.js";
|
|
160
164
|
export * from "./identitysortfield.js";
|
|
161
165
|
export * from "./imagecontentpartschema.js";
|
|
@@ -163,12 +167,10 @@ export * from "./incompletedetails.js";
|
|
|
163
167
|
export * from "./inputtokensdetails.js";
|
|
164
168
|
export * from "./invokedeploymentrequest.js";
|
|
165
169
|
export * from "./jsonschematoolinput.js";
|
|
166
|
-
export * from "./legacytokenfamily.js";
|
|
167
170
|
export * from "./limits.js";
|
|
168
171
|
export * from "./listalertsresponse.js";
|
|
169
172
|
export * from "./listalerttriggereventsresponse.js";
|
|
170
173
|
export * from "./listalerttriggersresponse.js";
|
|
171
|
-
export * from "./listapikeysresponse.js";
|
|
172
174
|
export * from "./listbudgetsresponse.js";
|
|
173
175
|
export * from "./listcapabilitiesresponse.js";
|
|
174
176
|
export * from "./listfilesresponse.js";
|
|
@@ -192,6 +194,8 @@ export * from "./listwebhooksresponse.js";
|
|
|
192
194
|
export * from "./litellmmodel.js";
|
|
193
195
|
export * from "./litellmmodelinfo.js";
|
|
194
196
|
export * from "./litellmparams.js";
|
|
197
|
+
export * from "./loadbalancerconfig.js";
|
|
198
|
+
export * from "./loadbalancermodelconfig.js";
|
|
195
199
|
export * from "./log.js";
|
|
196
200
|
export * from "./logpattern.js";
|
|
197
201
|
export * from "./managementkey.js";
|
|
@@ -201,6 +205,7 @@ export * from "./mcpaccess.js";
|
|
|
201
205
|
export * from "./mcptoolinput.js";
|
|
202
206
|
export * from "./memoryparam.js";
|
|
203
207
|
export * from "./modelbudgetscope.js";
|
|
208
|
+
export * from "./modelbudgetscoperestresponse.js";
|
|
204
209
|
export * from "./modelconfigurationresponse.js";
|
|
205
210
|
export * from "./modeldocument.js";
|
|
206
211
|
export * from "./modelmetadata.js";
|
|
@@ -235,6 +240,7 @@ export * from "./pricing.js";
|
|
|
235
240
|
export * from "./pricingvariant.js";
|
|
236
241
|
export * from "./project.js";
|
|
237
242
|
export * from "./projectbudgetscope.js";
|
|
243
|
+
export * from "./projectbudgetscoperestresponse.js";
|
|
238
244
|
export * from "./projectscope.js";
|
|
239
245
|
export * from "./providerbudgetscope.js";
|
|
240
246
|
export * from "./providertoolinput.js";
|
|
@@ -260,6 +266,7 @@ export * from "./querytracesresponse.js";
|
|
|
260
266
|
export * from "./querywebhooksrequest.js";
|
|
261
267
|
export * from "./querywebhooksresponse.js";
|
|
262
268
|
export * from "./ratelimit.js";
|
|
269
|
+
export * from "./ratelimitrestresponse.js";
|
|
263
270
|
export * from "./reasoning.js";
|
|
264
271
|
export * from "./reasoningparam.js";
|
|
265
272
|
export * from "./reasoningpart.js";
|
|
@@ -346,13 +353,13 @@ export * from "./searchlogsresponse.js";
|
|
|
346
353
|
export * from "./searchtracesrequest.js";
|
|
347
354
|
export * from "./searchtracesresponse.js";
|
|
348
355
|
export * from "./security.js";
|
|
356
|
+
export * from "./securityconfig.js";
|
|
349
357
|
export * from "./serviceaccountowner.js";
|
|
350
358
|
export * from "./setsmartrouterenabledrequest.js";
|
|
351
359
|
export * from "./setsmartrouterenabledresponse.js";
|
|
352
360
|
export * from "./singleproject.js";
|
|
353
361
|
export * from "./skill.js";
|
|
354
362
|
export * from "./smartrouter.js";
|
|
355
|
-
export * from "./smartroutermetrics.js";
|
|
356
363
|
export * from "./smartrouterprofile.js";
|
|
357
364
|
export * from "./spandetail.js";
|
|
358
365
|
export * from "./spansummary.js";
|
|
@@ -363,6 +370,7 @@ export * from "./textpart.js";
|
|
|
363
370
|
export * from "./thinkingconfigadaptiveschema.js";
|
|
364
371
|
export * from "./thinkingconfigdisabledschema.js";
|
|
365
372
|
export * from "./thinkingconfigenabledschema.js";
|
|
373
|
+
export * from "./timeoutconfig.js";
|
|
366
374
|
export * from "./timeoutstreamingevent.js";
|
|
367
375
|
export * from "./tokenlimit.js";
|
|
368
376
|
export * from "./toolcallpart.js";
|
|
@@ -392,7 +400,6 @@ export * from "./traceusage.js";
|
|
|
392
400
|
export * from "./updatealertrequest.js";
|
|
393
401
|
export * from "./updatealertresponse.js";
|
|
394
402
|
export * from "./updateapikeyrequest.js";
|
|
395
|
-
export * from "./updateapikeyresponse.js";
|
|
396
403
|
export * from "./updatebudgetrequest.js";
|
|
397
404
|
export * from "./updatebudgetresponse.js";
|
|
398
405
|
export * from "./updatefilerequest.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(
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import {
|
|
7
|
+
LoadBalancerModelConfig,
|
|
8
|
+
LoadBalancerModelConfig$Outbound,
|
|
9
|
+
LoadBalancerModelConfig$outboundSchema,
|
|
10
|
+
} from "./loadbalancermodelconfig.js";
|
|
11
|
+
|
|
12
|
+
export type LoadBalancerConfig = {
|
|
13
|
+
models: Array<LoadBalancerModelConfig> | null;
|
|
14
|
+
type: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export type LoadBalancerConfig$Outbound = {
|
|
19
|
+
models: Array<LoadBalancerModelConfig$Outbound> | null;
|
|
20
|
+
type: string;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const LoadBalancerConfig$outboundSchema: z.ZodType<
|
|
25
|
+
LoadBalancerConfig$Outbound,
|
|
26
|
+
z.ZodTypeDef,
|
|
27
|
+
LoadBalancerConfig
|
|
28
|
+
> = z.object({
|
|
29
|
+
models: z.nullable(z.array(LoadBalancerModelConfig$outboundSchema)),
|
|
30
|
+
type: z.string(),
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export function loadBalancerConfigToJSON(
|
|
34
|
+
loadBalancerConfig: LoadBalancerConfig,
|
|
35
|
+
): string {
|
|
36
|
+
return JSON.stringify(
|
|
37
|
+
LoadBalancerConfig$outboundSchema.parse(loadBalancerConfig),
|
|
38
|
+
);
|
|
39
|
+
}
|
|
@@ -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
|
+
|
|
7
|
+
export type LoadBalancerModelConfig = {
|
|
8
|
+
model: string;
|
|
9
|
+
weight: number;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type LoadBalancerModelConfig$Outbound = {
|
|
14
|
+
model: string;
|
|
15
|
+
weight: number;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const LoadBalancerModelConfig$outboundSchema: z.ZodType<
|
|
20
|
+
LoadBalancerModelConfig$Outbound,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
LoadBalancerModelConfig
|
|
23
|
+
> = z.object({
|
|
24
|
+
model: z.string(),
|
|
25
|
+
weight: z.number(),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export function loadBalancerModelConfigToJSON(
|
|
29
|
+
loadBalancerModelConfig: LoadBalancerModelConfig,
|
|
30
|
+
): string {
|
|
31
|
+
return JSON.stringify(
|
|
32
|
+
LoadBalancerModelConfig$outboundSchema.parse(loadBalancerModelConfig),
|
|
33
|
+
);
|
|
34
|
+
}
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
7
|
|
|
11
8
|
/**
|
|
12
9
|
* McpAccess optionally restricts which MCP gateways an API key may
|
|
@@ -54,22 +51,6 @@ export type McpAccess = {
|
|
|
54
51
|
toolsetIds?: Array<string> | undefined;
|
|
55
52
|
};
|
|
56
53
|
|
|
57
|
-
/** @internal */
|
|
58
|
-
export const McpAccess$inboundSchema: z.ZodType<
|
|
59
|
-
McpAccess,
|
|
60
|
-
z.ZodTypeDef,
|
|
61
|
-
unknown
|
|
62
|
-
> = z.object({
|
|
63
|
-
deny_all: z.boolean().optional(),
|
|
64
|
-
allowed_mcp_gateway_ids: z.array(z.string()).optional(),
|
|
65
|
-
toolset_ids: z.array(z.string()).optional(),
|
|
66
|
-
}).transform((v) => {
|
|
67
|
-
return remap$(v, {
|
|
68
|
-
"deny_all": "denyAll",
|
|
69
|
-
"allowed_mcp_gateway_ids": "allowedMcpGatewayIds",
|
|
70
|
-
"toolset_ids": "toolsetIds",
|
|
71
|
-
});
|
|
72
|
-
});
|
|
73
54
|
/** @internal */
|
|
74
55
|
export type McpAccess$Outbound = {
|
|
75
56
|
deny_all?: boolean | undefined;
|
|
@@ -97,12 +78,3 @@ export const McpAccess$outboundSchema: z.ZodType<
|
|
|
97
78
|
export function mcpAccessToJSON(mcpAccess: McpAccess): string {
|
|
98
79
|
return JSON.stringify(McpAccess$outboundSchema.parse(mcpAccess));
|
|
99
80
|
}
|
|
100
|
-
export function mcpAccessFromJSON(
|
|
101
|
-
jsonString: string,
|
|
102
|
-
): SafeParseResult<McpAccess, SDKValidationError> {
|
|
103
|
-
return safeParse(
|
|
104
|
-
jsonString,
|
|
105
|
-
(x) => McpAccess$inboundSchema.parse(JSON.parse(x)),
|
|
106
|
-
`Failed to parse 'McpAccess' from JSON`,
|
|
107
|
-
);
|
|
108
|
-
}
|
|
@@ -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
|
+
}
|
|
@@ -13,11 +13,7 @@ export const PermissionMode = {
|
|
|
13
13
|
} as const;
|
|
14
14
|
export type PermissionMode = ClosedEnum<typeof PermissionMode>;
|
|
15
15
|
|
|
16
|
-
/** @internal */
|
|
17
|
-
export const PermissionMode$inboundSchema: z.ZodNativeEnum<
|
|
18
|
-
typeof PermissionMode
|
|
19
|
-
> = z.nativeEnum(PermissionMode);
|
|
20
16
|
/** @internal */
|
|
21
17
|
export const PermissionMode$outboundSchema: z.ZodNativeEnum<
|
|
22
18
|
typeof PermissionMode
|
|
23
|
-
> = PermissionMode
|
|
19
|
+
> = z.nativeEnum(PermissionMode);
|
|
@@ -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
|
+
}
|
|
@@ -3,18 +3,13 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
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
6
|
import {
|
|
10
7
|
AllProjects,
|
|
11
|
-
AllProjects$inboundSchema,
|
|
12
8
|
AllProjects$Outbound,
|
|
13
9
|
AllProjects$outboundSchema,
|
|
14
10
|
} from "./allprojects.js";
|
|
15
11
|
import {
|
|
16
12
|
SingleProject,
|
|
17
|
-
SingleProject$inboundSchema,
|
|
18
13
|
SingleProject$Outbound,
|
|
19
14
|
SingleProject$outboundSchema,
|
|
20
15
|
} from "./singleproject.js";
|
|
@@ -31,15 +26,6 @@ export type ProjectScope = {
|
|
|
31
26
|
single?: SingleProject | undefined;
|
|
32
27
|
};
|
|
33
28
|
|
|
34
|
-
/** @internal */
|
|
35
|
-
export const ProjectScope$inboundSchema: z.ZodType<
|
|
36
|
-
ProjectScope,
|
|
37
|
-
z.ZodTypeDef,
|
|
38
|
-
unknown
|
|
39
|
-
> = z.object({
|
|
40
|
-
all: AllProjects$inboundSchema.optional(),
|
|
41
|
-
single: SingleProject$inboundSchema.optional(),
|
|
42
|
-
});
|
|
43
29
|
/** @internal */
|
|
44
30
|
export type ProjectScope$Outbound = {
|
|
45
31
|
all?: AllProjects$Outbound | undefined;
|
|
@@ -59,12 +45,3 @@ export const ProjectScope$outboundSchema: z.ZodType<
|
|
|
59
45
|
export function projectScopeToJSON(projectScope: ProjectScope): string {
|
|
60
46
|
return JSON.stringify(ProjectScope$outboundSchema.parse(projectScope));
|
|
61
47
|
}
|
|
62
|
-
export function projectScopeFromJSON(
|
|
63
|
-
jsonString: string,
|
|
64
|
-
): SafeParseResult<ProjectScope, SDKValidationError> {
|
|
65
|
-
return safeParse(
|
|
66
|
-
jsonString,
|
|
67
|
-
(x) => ProjectScope$inboundSchema.parse(JSON.parse(x)),
|
|
68
|
-
`Failed to parse 'ProjectScope' from JSON`,
|
|
69
|
-
);
|
|
70
|
-
}
|