@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
|
@@ -36,21 +36,15 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
39
|
+
exports.ApiKeyBudgetScopeRestResponse$inboundSchema = void 0;
|
|
40
|
+
exports.apiKeyBudgetScopeRestResponseFromJSON = apiKeyBudgetScopeRestResponseFromJSON;
|
|
41
41
|
const z = __importStar(require("zod/v3"));
|
|
42
|
-
const primitives_js_1 = require("../../lib/primitives.js");
|
|
43
42
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
-
const apikey_js_1 = require("./apikey.js");
|
|
45
43
|
/** @internal */
|
|
46
|
-
exports.
|
|
47
|
-
|
|
48
|
-
}).transform((v) => {
|
|
49
|
-
return (0, primitives_js_1.remap)(v, {
|
|
50
|
-
"api_key": "apiKey",
|
|
51
|
-
});
|
|
44
|
+
exports.ApiKeyBudgetScopeRestResponse$inboundSchema = z.object({
|
|
45
|
+
apiKeyId: z.string().optional(),
|
|
52
46
|
});
|
|
53
|
-
function
|
|
54
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
47
|
+
function apiKeyBudgetScopeRestResponseFromJSON(jsonString) {
|
|
48
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ApiKeyBudgetScopeRestResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ApiKeyBudgetScopeRestResponse' from JSON`);
|
|
55
49
|
}
|
|
56
|
-
//# sourceMappingURL=
|
|
50
|
+
//# sourceMappingURL=apikeybudgetscoperestresponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apikeybudgetscoperestresponse.js","sourceRoot":"","sources":["../../src/models/components/apikeybudgetscoperestresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BH,sFAQC;AAhCD,0CAA4B;AAC5B,qDAAiD;AAcjD,gBAAgB;AACH,QAAA,2CAA2C,GAIpD,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAC;AAEH,SAAgB,qCAAqC,CACnD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,mDAA2C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACvE,2DAA2D,CAC5D,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
2
|
import { ServiceAccountOwner, ServiceAccountOwner$Outbound } from "./serviceaccountowner.js";
|
|
5
3
|
import { UserOwner, UserOwner$Outbound } from "./userowner.js";
|
|
6
4
|
/**
|
|
@@ -18,8 +16,6 @@ export type ApiKeyOwner = {
|
|
|
18
16
|
serviceAccount?: ServiceAccountOwner | undefined;
|
|
19
17
|
};
|
|
20
18
|
/** @internal */
|
|
21
|
-
export declare const ApiKeyOwner$inboundSchema: z.ZodType<ApiKeyOwner, z.ZodTypeDef, unknown>;
|
|
22
|
-
/** @internal */
|
|
23
19
|
export type ApiKeyOwner$Outbound = {
|
|
24
20
|
user?: UserOwner$Outbound | undefined;
|
|
25
21
|
service_account?: ServiceAccountOwner$Outbound | undefined;
|
|
@@ -27,5 +23,4 @@ export type ApiKeyOwner$Outbound = {
|
|
|
27
23
|
/** @internal */
|
|
28
24
|
export declare const ApiKeyOwner$outboundSchema: z.ZodType<ApiKeyOwner$Outbound, z.ZodTypeDef, ApiKeyOwner>;
|
|
29
25
|
export declare function apiKeyOwnerToJSON(apiKeyOwner: ApiKeyOwner): string;
|
|
30
|
-
export declare function apiKeyOwnerFromJSON(jsonString: string): SafeParseResult<ApiKeyOwner, SDKValidationError>;
|
|
31
26
|
//# sourceMappingURL=apikeyowner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apikeyowner.d.ts","sourceRoot":"","sources":["../../src/models/components/apikeyowner.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"apikeyowner.d.ts","sourceRoot":"","sources":["../../src/models/components/apikeyowner.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EACL,mBAAmB,EACnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,SAAS,EACT,kBAAkB,EAEnB,MAAM,gBAAgB,CAAC;AAExB;;;;;;;;;GASG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAC7B,cAAc,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAC;CAClD,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;IACtC,eAAe,CAAC,EAAE,4BAA4B,GAAG,SAAS,CAAC;CAC5D,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAChD,oBAAoB,EACpB,CAAC,CAAC,UAAU,EACZ,WAAW,CAQX,CAAC;AAEH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAElE"}
|
|
@@ -36,24 +36,13 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.ApiKeyOwner$outboundSchema =
|
|
39
|
+
exports.ApiKeyOwner$outboundSchema = void 0;
|
|
40
40
|
exports.apiKeyOwnerToJSON = apiKeyOwnerToJSON;
|
|
41
|
-
exports.apiKeyOwnerFromJSON = apiKeyOwnerFromJSON;
|
|
42
41
|
const z = __importStar(require("zod/v3"));
|
|
43
42
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
44
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
45
43
|
const serviceaccountowner_js_1 = require("./serviceaccountowner.js");
|
|
46
44
|
const userowner_js_1 = require("./userowner.js");
|
|
47
45
|
/** @internal */
|
|
48
|
-
exports.ApiKeyOwner$inboundSchema = z.object({
|
|
49
|
-
user: userowner_js_1.UserOwner$inboundSchema.optional(),
|
|
50
|
-
service_account: serviceaccountowner_js_1.ServiceAccountOwner$inboundSchema.optional(),
|
|
51
|
-
}).transform((v) => {
|
|
52
|
-
return (0, primitives_js_1.remap)(v, {
|
|
53
|
-
"service_account": "serviceAccount",
|
|
54
|
-
});
|
|
55
|
-
});
|
|
56
|
-
/** @internal */
|
|
57
46
|
exports.ApiKeyOwner$outboundSchema = z.object({
|
|
58
47
|
user: userowner_js_1.UserOwner$outboundSchema.optional(),
|
|
59
48
|
serviceAccount: serviceaccountowner_js_1.ServiceAccountOwner$outboundSchema.optional(),
|
|
@@ -65,7 +54,4 @@ exports.ApiKeyOwner$outboundSchema = z.object({
|
|
|
65
54
|
function apiKeyOwnerToJSON(apiKeyOwner) {
|
|
66
55
|
return JSON.stringify(exports.ApiKeyOwner$outboundSchema.parse(apiKeyOwner));
|
|
67
56
|
}
|
|
68
|
-
function apiKeyOwnerFromJSON(jsonString) {
|
|
69
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ApiKeyOwner$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ApiKeyOwner' from JSON`);
|
|
70
|
-
}
|
|
71
57
|
//# sourceMappingURL=apikeyowner.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apikeyowner.js","sourceRoot":"","sources":["../../src/models/components/apikeyowner.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"apikeyowner.js","sourceRoot":"","sources":["../../src/models/components/apikeyowner.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkDH,8CAEC;AAlDD,0CAA4B;AAC5B,2DAA0D;AAC1D,qEAIkC;AAClC,iDAIwB;AAuBxB,gBAAgB;AACH,QAAA,0BAA0B,GAInC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,uCAAwB,CAAC,QAAQ,EAAE;IACzC,cAAc,EAAE,2DAAkC,CAAC,QAAQ,EAAE;CAC9D,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,cAAc,EAAE,iBAAiB;KAClC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,iBAAiB,CAAC,WAAwB;IACxD,OAAO,IAAI,CAAC,SAAS,CAAC,kCAA0B,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;AACvE,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
export type ApiKeyRestResponse = {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
workspaceId: string;
|
|
8
|
+
/**
|
|
9
|
+
* Raw on create/retrieve and masked in list responses.
|
|
10
|
+
*/
|
|
11
|
+
token: string;
|
|
12
|
+
active?: boolean | undefined;
|
|
13
|
+
isLegacy?: boolean | undefined;
|
|
14
|
+
source?: string | undefined;
|
|
15
|
+
budget?: {
|
|
16
|
+
[k: string]: any;
|
|
17
|
+
} | undefined;
|
|
18
|
+
expiration?: Date | undefined;
|
|
19
|
+
projects?: Array<string> | undefined;
|
|
20
|
+
createdById?: string | null | undefined;
|
|
21
|
+
updatedById?: string | null | undefined;
|
|
22
|
+
created?: Date | undefined;
|
|
23
|
+
updated?: Date | undefined;
|
|
24
|
+
consumption?: number | undefined;
|
|
25
|
+
tokenConsumption?: number | undefined;
|
|
26
|
+
requestsPerMinuteConsumption?: number | undefined;
|
|
27
|
+
owner?: {
|
|
28
|
+
[k: string]: any;
|
|
29
|
+
} | undefined;
|
|
30
|
+
projectScope?: {
|
|
31
|
+
[k: string]: any;
|
|
32
|
+
} | undefined;
|
|
33
|
+
permissionMode?: string | undefined;
|
|
34
|
+
access?: {
|
|
35
|
+
[k: string]: string;
|
|
36
|
+
} | undefined;
|
|
37
|
+
tokenPrefix?: string | undefined;
|
|
38
|
+
status?: string | undefined;
|
|
39
|
+
constraints?: {
|
|
40
|
+
[k: string]: any;
|
|
41
|
+
} | undefined;
|
|
42
|
+
mcpAccess?: {
|
|
43
|
+
[k: string]: any;
|
|
44
|
+
} | undefined;
|
|
45
|
+
legacyTokenFamily?: string | undefined;
|
|
46
|
+
legacyKeyId?: string | undefined;
|
|
47
|
+
lastUsedAt?: Date | undefined;
|
|
48
|
+
additionalProperties?: {
|
|
49
|
+
[k: string]: any;
|
|
50
|
+
} | undefined;
|
|
51
|
+
};
|
|
52
|
+
/** @internal */
|
|
53
|
+
export declare const ApiKeyRestResponse$inboundSchema: z.ZodType<ApiKeyRestResponse, z.ZodTypeDef, unknown>;
|
|
54
|
+
export declare function apiKeyRestResponseFromJSON(jsonString: string): SafeParseResult<ApiKeyRestResponse, SDKValidationError>;
|
|
55
|
+
//# sourceMappingURL=apikeyrestresponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apikeyrestresponse.d.ts","sourceRoot":"","sources":["../../src/models/components/apikeyrestresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAM5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,MAAM,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;IAC1C,UAAU,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC9B,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACrC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,OAAO,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,4BAA4B,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClD,KAAK,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;IACzC,YAAY,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;IAChD,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,MAAM,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;IAC7C,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,WAAW,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;IAC/C,SAAS,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;IAC7C,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,UAAU,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC9B,oBAAoB,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;CACzD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,kBAAkB,EAClB,CAAC,CAAC,UAAU,EACZ,OAAO,CAwDP,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.ApiKeyRestResponse$inboundSchema = void 0;
|
|
40
|
+
exports.apiKeyRestResponseFromJSON = apiKeyRestResponseFromJSON;
|
|
41
|
+
const z = __importStar(require("zod/v3"));
|
|
42
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
43
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
+
/** @internal */
|
|
45
|
+
exports.ApiKeyRestResponse$inboundSchema = (0, schemas_js_1.collectExtraKeys)(z.object({
|
|
46
|
+
id: z.string(),
|
|
47
|
+
name: z.string(),
|
|
48
|
+
workspace_id: z.string(),
|
|
49
|
+
token: z.string(),
|
|
50
|
+
active: z.boolean().optional(),
|
|
51
|
+
is_legacy: z.boolean().optional(),
|
|
52
|
+
source: z.string().optional(),
|
|
53
|
+
budget: z.record(z.any()).optional(),
|
|
54
|
+
expiration: z.string().datetime({ offset: true }).transform(v => new Date(v)).optional(),
|
|
55
|
+
projects: z.array(z.string()).optional(),
|
|
56
|
+
created_by_id: z.nullable(z.string()).optional(),
|
|
57
|
+
updated_by_id: z.nullable(z.string()).optional(),
|
|
58
|
+
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
59
|
+
.optional(),
|
|
60
|
+
updated: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
61
|
+
.optional(),
|
|
62
|
+
consumption: z.number().optional(),
|
|
63
|
+
token_consumption: z.number().optional(),
|
|
64
|
+
requests_per_minute_consumption: z.number().optional(),
|
|
65
|
+
owner: z.record(z.any()).optional(),
|
|
66
|
+
project_scope: z.record(z.any()).optional(),
|
|
67
|
+
permission_mode: z.string().optional(),
|
|
68
|
+
access: z.record(z.string()).optional(),
|
|
69
|
+
token_prefix: z.string().optional(),
|
|
70
|
+
status: z.string().optional(),
|
|
71
|
+
constraints: z.record(z.any()).optional(),
|
|
72
|
+
mcp_access: z.record(z.any()).optional(),
|
|
73
|
+
legacy_token_family: z.string().optional(),
|
|
74
|
+
legacy_key_id: z.string().optional(),
|
|
75
|
+
last_used_at: z.string().datetime({ offset: true }).transform(v => new Date(v)).optional(),
|
|
76
|
+
}).catchall(z.any()), "additionalProperties", true).transform((v) => {
|
|
77
|
+
return (0, primitives_js_1.remap)(v, {
|
|
78
|
+
"workspace_id": "workspaceId",
|
|
79
|
+
"is_legacy": "isLegacy",
|
|
80
|
+
"created_by_id": "createdById",
|
|
81
|
+
"updated_by_id": "updatedById",
|
|
82
|
+
"token_consumption": "tokenConsumption",
|
|
83
|
+
"requests_per_minute_consumption": "requestsPerMinuteConsumption",
|
|
84
|
+
"project_scope": "projectScope",
|
|
85
|
+
"permission_mode": "permissionMode",
|
|
86
|
+
"token_prefix": "tokenPrefix",
|
|
87
|
+
"mcp_access": "mcpAccess",
|
|
88
|
+
"legacy_token_family": "legacyTokenFamily",
|
|
89
|
+
"legacy_key_id": "legacyKeyId",
|
|
90
|
+
"last_used_at": "lastUsedAt",
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
function apiKeyRestResponseFromJSON(jsonString) {
|
|
94
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ApiKeyRestResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ApiKeyRestResponse' from JSON`);
|
|
95
|
+
}
|
|
96
|
+
//# sourceMappingURL=apikeyrestresponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"apikeyrestresponse.js","sourceRoot":"","sources":["../../src/models/components/apikeyrestresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4GH,gEAQC;AAlHD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAG8B;AAuC9B,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,IAAA,6BAAiB,EACnB,CAAC,CAAC,MAAM,CAAC;IACP,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC9B,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACjC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACpC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAC9D,IAAI,IAAI,CAAC,CAAC,CAAC,CACZ,CAAC,QAAQ,EAAE;IACZ,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACxC,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAChD,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAChD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;SACvE,QAAQ,EAAE;IACb,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;SACvE,QAAQ,EAAE;IACb,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxC,+BAA+B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtD,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACnC,aAAa,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC3C,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACvC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACzC,UAAU,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACxC,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1C,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAChE,IAAI,IAAI,CAAC,CAAC,CAAC,CACZ,CAAC,QAAQ,EAAE;CACb,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,EACpB,sBAAsB,EACtB,IAAI,CACL,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IAChB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,cAAc,EAAE,aAAa;QAC7B,WAAW,EAAE,UAAU;QACvB,eAAe,EAAE,aAAa;QAC9B,eAAe,EAAE,aAAa;QAC9B,mBAAmB,EAAE,kBAAkB;QACvC,iCAAiC,EAAE,8BAA8B;QACjE,eAAe,EAAE,cAAc;QAC/B,iBAAiB,EAAE,gBAAgB;QACnC,cAAc,EAAE,aAAa;QAC7B,YAAY,EAAE,WAAW;QACzB,qBAAqB,EAAE,mBAAmB;QAC1C,eAAe,EAAE,aAAa;QAC9B,cAAc,EAAE,YAAY;KAC7B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,0BAA0B,CACxC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wCAAgC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC5D,gDAAgD,CACjD,CAAC;AACJ,CAAC"}
|
|
@@ -8,7 +8,5 @@ export declare const ApiKeyStatus: {
|
|
|
8
8
|
};
|
|
9
9
|
export type ApiKeyStatus = ClosedEnum<typeof ApiKeyStatus>;
|
|
10
10
|
/** @internal */
|
|
11
|
-
export declare const ApiKeyStatus$inboundSchema: z.ZodNativeEnum<typeof ApiKeyStatus>;
|
|
12
|
-
/** @internal */
|
|
13
11
|
export declare const ApiKeyStatus$outboundSchema: z.ZodNativeEnum<typeof ApiKeyStatus>;
|
|
14
12
|
//# sourceMappingURL=apikeystatus.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apikeystatus.d.ts","sourceRoot":"","sources":["../../src/models/components/apikeystatus.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,YAAY;;;;;CAKf,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3D,gBAAgB;AAChB,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"apikeystatus.d.ts","sourceRoot":"","sources":["../../src/models/components/apikeystatus.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,YAAY;;;;;CAKf,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3D,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,YAAY,CACjD,CAAC"}
|
|
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.ApiKeyStatus$outboundSchema = exports.ApiKeyStatus
|
|
39
|
+
exports.ApiKeyStatus$outboundSchema = exports.ApiKeyStatus = void 0;
|
|
40
40
|
const z = __importStar(require("zod/v3"));
|
|
41
41
|
exports.ApiKeyStatus = {
|
|
42
42
|
ApiKeyStatusUnspecified: "API_KEY_STATUS_UNSPECIFIED",
|
|
@@ -45,7 +45,5 @@ exports.ApiKeyStatus = {
|
|
|
45
45
|
ApiKeyStatusRevoked: "API_KEY_STATUS_REVOKED",
|
|
46
46
|
};
|
|
47
47
|
/** @internal */
|
|
48
|
-
exports.ApiKeyStatus$
|
|
49
|
-
/** @internal */
|
|
50
|
-
exports.ApiKeyStatus$outboundSchema = exports.ApiKeyStatus$inboundSchema;
|
|
48
|
+
exports.ApiKeyStatus$outboundSchema = z.nativeEnum(exports.ApiKeyStatus);
|
|
51
49
|
//# sourceMappingURL=apikeystatus.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apikeystatus.js","sourceRoot":"","sources":["../../src/models/components/apikeystatus.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAGf,QAAA,YAAY,GAAG;IAC1B,uBAAuB,EAAE,4BAA4B;IACrD,kBAAkB,EAAE,uBAAuB;IAC3C,oBAAoB,EAAE,yBAAyB;IAC/C,mBAAmB,EAAE,wBAAwB;CACrC,CAAC;AAGX,gBAAgB;AACH,QAAA,
|
|
1
|
+
{"version":3,"file":"apikeystatus.js","sourceRoot":"","sources":["../../src/models/components/apikeystatus.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAGf,QAAA,YAAY,GAAG;IAC1B,uBAAuB,EAAE,4BAA4B;IACrD,kBAAkB,EAAE,uBAAuB;IAC3C,oBAAoB,EAAE,yBAAyB;IAC/C,mBAAmB,EAAE,wBAAwB;CACrC,CAAC;AAGX,gBAAgB;AACH,QAAA,2BAA2B,GACtC,CAAC,CAAC,UAAU,CAAC,oBAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { BudgetAlertDimension } from "./budgetalertdimension.js";
|
|
5
|
+
/**
|
|
6
|
+
* Notifies every listed notifier once current-period consumption on
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* `dimension` reaches `threshold_percent` of the matching limit. Each alert
|
|
10
|
+
* fires at most once per period, re-arming on rollover or a limit change.
|
|
11
|
+
* The dimension must have a limit set, or the write is rejected.
|
|
12
|
+
*/
|
|
13
|
+
export type BudgetAlertRestResponse = {
|
|
14
|
+
/**
|
|
15
|
+
* Assigned by ORQ. Supply an existing id to edit that alert in place.
|
|
16
|
+
*/
|
|
17
|
+
id?: string | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Percentage of the dimension's limit at which the alert fires, 1–100.
|
|
20
|
+
*/
|
|
21
|
+
thresholdPercent: number;
|
|
22
|
+
/**
|
|
23
|
+
* Must be workspace-scoped; project-scoped notifiers are rejected.
|
|
24
|
+
*/
|
|
25
|
+
notifierIds: Array<string>;
|
|
26
|
+
dimension?: BudgetAlertDimension | undefined;
|
|
27
|
+
};
|
|
28
|
+
/** @internal */
|
|
29
|
+
export declare const BudgetAlertRestResponse$inboundSchema: z.ZodType<BudgetAlertRestResponse, z.ZodTypeDef, unknown>;
|
|
30
|
+
export declare function budgetAlertRestResponseFromJSON(jsonString: string): SafeParseResult<BudgetAlertRestResponse, SDKValidationError>;
|
|
31
|
+
//# sourceMappingURL=budgetalertrestresponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"budgetalertrestresponse.d.ts","sourceRoot":"","sources":["../../src/models/components/budgetalertrestresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,oBAAoB,EAErB,MAAM,2BAA2B,CAAC;AAEnC;;;;;;;GAOG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxB;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC3B,SAAS,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;CAC9C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,uBAAuB,EACvB,CAAC,CAAC,UAAU,EACZ,OAAO,CAMP,CAAC;AAEH,wBAAgB,+BAA+B,CAC7C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,uBAAuB,EAAE,kBAAkB,CAAC,CAM9D"}
|
|
@@ -36,22 +36,19 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
39
|
+
exports.BudgetAlertRestResponse$inboundSchema = void 0;
|
|
40
|
+
exports.budgetAlertRestResponseFromJSON = budgetAlertRestResponseFromJSON;
|
|
41
41
|
const z = __importStar(require("zod/v3"));
|
|
42
|
-
const primitives_js_1 = require("../../lib/primitives.js");
|
|
43
42
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
-
const
|
|
43
|
+
const budgetalertdimension_js_1 = require("./budgetalertdimension.js");
|
|
45
44
|
/** @internal */
|
|
46
|
-
exports.
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"api_key": "apiKey",
|
|
52
|
-
});
|
|
45
|
+
exports.BudgetAlertRestResponse$inboundSchema = z.object({
|
|
46
|
+
id: z.string().optional(),
|
|
47
|
+
thresholdPercent: z.number().int(),
|
|
48
|
+
notifierIds: z.array(z.string()),
|
|
49
|
+
dimension: budgetalertdimension_js_1.BudgetAlertDimension$inboundSchema.optional(),
|
|
53
50
|
});
|
|
54
|
-
function
|
|
55
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
51
|
+
function budgetAlertRestResponseFromJSON(jsonString) {
|
|
52
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.BudgetAlertRestResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BudgetAlertRestResponse' from JSON`);
|
|
56
53
|
}
|
|
57
|
-
//# sourceMappingURL=
|
|
54
|
+
//# sourceMappingURL=budgetalertrestresponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"budgetalertrestresponse.js","sourceRoot":"","sources":["../../src/models/components/budgetalertrestresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CH,0EAQC;AArDD,0CAA4B;AAC5B,qDAAiD;AAGjD,uEAGmC;AA0BnC,gBAAgB;AACH,QAAA,qCAAqC,GAI9C,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAClC,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAChC,SAAS,EAAE,4DAAkC,CAAC,QAAQ,EAAE;CACzD,CAAC,CAAC;AAEH,SAAgB,+BAA+B,CAC7C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,6CAAqC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACjE,qDAAqD,CACtD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { BudgetPeriod } from "./budgetperiod.js";
|
|
5
|
+
/**
|
|
6
|
+
* BudgetLimits is the per-period spend and token ceiling. At least one
|
|
7
|
+
*
|
|
8
|
+
* @remarks
|
|
9
|
+
* of `amount`, `token_limit`, or RateLimit.requests_per_minute MUST be
|
|
10
|
+
* set on a Budget; that invariant is enforced by the handler.
|
|
11
|
+
*/
|
|
12
|
+
export type BudgetLimitsRestResponse = {
|
|
13
|
+
period?: BudgetPeriod | undefined;
|
|
14
|
+
amount?: number | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Token ceiling. Carried as a double so it serializes as a JSON number
|
|
17
|
+
*
|
|
18
|
+
* @remarks
|
|
19
|
+
* (proto int64 would serialize as a quoted string); token counts are
|
|
20
|
+
* whole and well within double's exact-integer range (2^53). Stored as
|
|
21
|
+
* an integer server-side.
|
|
22
|
+
*/
|
|
23
|
+
tokenLimit?: number | undefined;
|
|
24
|
+
};
|
|
25
|
+
/** @internal */
|
|
26
|
+
export declare const BudgetLimitsRestResponse$inboundSchema: z.ZodType<BudgetLimitsRestResponse, z.ZodTypeDef, unknown>;
|
|
27
|
+
export declare function budgetLimitsRestResponseFromJSON(jsonString: string): SafeParseResult<BudgetLimitsRestResponse, SDKValidationError>;
|
|
28
|
+
//# sourceMappingURL=budgetlimitsrestresponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"budgetlimitsrestresponse.d.ts","sourceRoot":"","sources":["../../src/models/components/budgetlimitsrestresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,YAAY,EAA8B,MAAM,mBAAmB,CAAC;AAE7E;;;;;;GAMG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,MAAM,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;IAClC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,wBAAgB,gCAAgC,CAC9C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,wBAAwB,EAAE,kBAAkB,CAAC,CAM/D"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.BudgetLimitsRestResponse$inboundSchema = void 0;
|
|
40
|
+
exports.budgetLimitsRestResponseFromJSON = budgetLimitsRestResponseFromJSON;
|
|
41
|
+
const z = __importStar(require("zod/v3"));
|
|
42
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
43
|
+
const budgetperiod_js_1 = require("./budgetperiod.js");
|
|
44
|
+
/** @internal */
|
|
45
|
+
exports.BudgetLimitsRestResponse$inboundSchema = z.object({
|
|
46
|
+
period: budgetperiod_js_1.BudgetPeriod$inboundSchema.optional(),
|
|
47
|
+
amount: z.number().optional(),
|
|
48
|
+
tokenLimit: z.number().optional(),
|
|
49
|
+
});
|
|
50
|
+
function budgetLimitsRestResponseFromJSON(jsonString) {
|
|
51
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.BudgetLimitsRestResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BudgetLimitsRestResponse' from JSON`);
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=budgetlimitsrestresponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"budgetlimitsrestresponse.js","sourceRoot":"","sources":["../../src/models/components/budgetlimitsrestresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwCH,4EAQC;AA9CD,0CAA4B;AAC5B,qDAAiD;AAGjD,uDAA6E;AAuB7E,gBAAgB;AACH,QAAA,sCAAsC,GAI/C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,4CAA0B,CAAC,QAAQ,EAAE;IAC7C,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC;AAEH,SAAgB,gCAAgC,CAC9C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8CAAsC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClE,sDAAsD,CACvD,CAAC;AACJ,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { BudgetAlertRestResponse } from "./budgetalertrestresponse.js";
|
|
5
|
+
import { BudgetLimitsRestResponse } from "./budgetlimitsrestresponse.js";
|
|
6
6
|
import { BudgetMatch } from "./budgetmatch.js";
|
|
7
|
-
import {
|
|
7
|
+
import { BudgetScopeRestResponse } from "./budgetscoperestresponse.js";
|
|
8
8
|
import { BudgetUsage } from "./budgetusage.js";
|
|
9
|
-
import {
|
|
9
|
+
import { RateLimitRestResponse } from "./ratelimitrestresponse.js";
|
|
10
10
|
/**
|
|
11
11
|
* Budget is the canonical record stored in MongoDB `budgets.entities`.
|
|
12
12
|
*
|
|
@@ -14,8 +14,8 @@ import { RateLimit } from "./ratelimit.js";
|
|
|
14
14
|
* It replaces the embedded `constraints.budget` on api-keys and the
|
|
15
15
|
* legacy CONTACT-only `budgets.configs` collection (see ADR 0007).
|
|
16
16
|
*/
|
|
17
|
-
export type
|
|
18
|
-
budgetId
|
|
17
|
+
export type BudgetRestResponse = {
|
|
18
|
+
budgetId: string;
|
|
19
19
|
/**
|
|
20
20
|
* Denormalized metadata for UI rendering, list filters, and the
|
|
21
21
|
*
|
|
@@ -24,7 +24,7 @@ export type Budget = {
|
|
|
24
24
|
* `match` expression is the single source of matching semantics.
|
|
25
25
|
* Unset for budgets created from a raw CEL expression ("custom").
|
|
26
26
|
*/
|
|
27
|
-
scope?:
|
|
27
|
+
scope?: BudgetScopeRestResponse | undefined;
|
|
28
28
|
/**
|
|
29
29
|
* The matching semantics of the budget. The enforcement resolver
|
|
30
30
|
*
|
|
@@ -43,18 +43,18 @@ export type Budget = {
|
|
|
43
43
|
* of `amount`, `token_limit`, or RateLimit.requests_per_minute MUST be
|
|
44
44
|
* set on a Budget; that invariant is enforced by the handler.
|
|
45
45
|
*/
|
|
46
|
-
limits
|
|
46
|
+
limits: BudgetLimitsRestResponse;
|
|
47
47
|
/**
|
|
48
48
|
* RateLimit is the per-minute request ceiling. Enforced via atomic
|
|
49
49
|
*
|
|
50
50
|
* @remarks
|
|
51
51
|
* increment-first semantics in the enforcement middleware.
|
|
52
52
|
*/
|
|
53
|
-
rateLimit?:
|
|
54
|
-
isActive
|
|
53
|
+
rateLimit?: RateLimitRestResponse | undefined;
|
|
54
|
+
isActive: boolean;
|
|
55
55
|
expiresAt?: Date | undefined;
|
|
56
|
-
createdAt
|
|
57
|
-
updatedAt
|
|
56
|
+
createdAt: Date;
|
|
57
|
+
updatedAt: Date;
|
|
58
58
|
/**
|
|
59
59
|
* Live consumption for the current period, read from the Redis
|
|
60
60
|
*
|
|
@@ -68,9 +68,9 @@ export type Budget = {
|
|
|
68
68
|
/**
|
|
69
69
|
* Threshold notifications. Absent when the budget has none.
|
|
70
70
|
*/
|
|
71
|
-
alerts?: Array<
|
|
71
|
+
alerts?: Array<BudgetAlertRestResponse> | undefined;
|
|
72
72
|
};
|
|
73
73
|
/** @internal */
|
|
74
|
-
export declare const
|
|
75
|
-
export declare function
|
|
76
|
-
//# sourceMappingURL=
|
|
74
|
+
export declare const BudgetRestResponse$inboundSchema: z.ZodType<BudgetRestResponse, z.ZodTypeDef, unknown>;
|
|
75
|
+
export declare function budgetRestResponseFromJSON(jsonString: string): SafeParseResult<BudgetRestResponse, SDKValidationError>;
|
|
76
|
+
//# sourceMappingURL=budgetrestresponse.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"budgetrestresponse.d.ts","sourceRoot":"","sources":["../../src/models/components/budgetrestresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,uBAAuB,EAExB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,wBAAwB,EAEzB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,WAAW,EAA6B,MAAM,kBAAkB,CAAC;AAC1E,OAAO,EACL,uBAAuB,EAExB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,WAAW,EAA6B,MAAM,kBAAkB,CAAC;AAC1E,OAAO,EACL,qBAAqB,EAEtB,MAAM,4BAA4B,CAAC;AAEpC;;;;;;GAMG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,uBAAuB,GAAG,SAAS,CAAC;IAC5C;;;;;;;;;OASG;IACH,KAAK,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IAChC;;;;;;OAMG;IACH,MAAM,EAAE,wBAAwB,CAAC;IACjC;;;;;OAKG;IACH,SAAS,CAAC,EAAE,qBAAqB,GAAG,SAAS,CAAC;IAC9C,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC7B,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB;;;;;;;;OAQG;IACH,KAAK,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IAChC;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,uBAAuB,CAAC,GAAG,SAAS,CAAC;CACrD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,kBAAkB,EAClB,CAAC,CAAC,UAAU,EACZ,OAAO,CAcP,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
|
|
@@ -36,42 +36,32 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
39
|
+
exports.BudgetRestResponse$inboundSchema = void 0;
|
|
40
|
+
exports.budgetRestResponseFromJSON = budgetRestResponseFromJSON;
|
|
41
41
|
const z = __importStar(require("zod/v3"));
|
|
42
|
-
const primitives_js_1 = require("../../lib/primitives.js");
|
|
43
42
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
|
-
const
|
|
45
|
-
const
|
|
43
|
+
const budgetalertrestresponse_js_1 = require("./budgetalertrestresponse.js");
|
|
44
|
+
const budgetlimitsrestresponse_js_1 = require("./budgetlimitsrestresponse.js");
|
|
46
45
|
const budgetmatch_js_1 = require("./budgetmatch.js");
|
|
47
|
-
const
|
|
46
|
+
const budgetscoperestresponse_js_1 = require("./budgetscoperestresponse.js");
|
|
48
47
|
const budgetusage_js_1 = require("./budgetusage.js");
|
|
49
|
-
const
|
|
48
|
+
const ratelimitrestresponse_js_1 = require("./ratelimitrestresponse.js");
|
|
50
49
|
/** @internal */
|
|
51
|
-
exports.
|
|
52
|
-
.
|
|
53
|
-
|
|
54
|
-
scope: budgetscope_js_1.BudgetScope$inboundSchema.optional(),
|
|
50
|
+
exports.BudgetRestResponse$inboundSchema = z.object({
|
|
51
|
+
budgetId: z.string(),
|
|
52
|
+
scope: budgetscoperestresponse_js_1.BudgetScopeRestResponse$inboundSchema.optional(),
|
|
55
53
|
match: budgetmatch_js_1.BudgetMatch$inboundSchema.optional(),
|
|
56
|
-
limits:
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
54
|
+
limits: budgetlimitsrestresponse_js_1.BudgetLimitsRestResponse$inboundSchema,
|
|
55
|
+
rateLimit: ratelimitrestresponse_js_1.RateLimitRestResponse$inboundSchema.optional(),
|
|
56
|
+
isActive: z.boolean().default(false),
|
|
57
|
+
expiresAt: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
58
|
+
.optional(),
|
|
59
|
+
createdAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
60
|
+
updatedAt: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
62
61
|
usage: budgetusage_js_1.BudgetUsage$inboundSchema.optional(),
|
|
63
|
-
alerts: z.array(
|
|
64
|
-
}).transform((v) => {
|
|
65
|
-
return (0, primitives_js_1.remap)(v, {
|
|
66
|
-
"budget_id": "budgetId",
|
|
67
|
-
"rate_limit": "rateLimit",
|
|
68
|
-
"is_active": "isActive",
|
|
69
|
-
"expires_at": "expiresAt",
|
|
70
|
-
"created_at": "createdAt",
|
|
71
|
-
"updated_at": "updatedAt",
|
|
72
|
-
});
|
|
62
|
+
alerts: z.array(budgetalertrestresponse_js_1.BudgetAlertRestResponse$inboundSchema).optional(),
|
|
73
63
|
});
|
|
74
|
-
function
|
|
75
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
64
|
+
function budgetRestResponseFromJSON(jsonString) {
|
|
65
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.BudgetRestResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BudgetRestResponse' from JSON`);
|
|
76
66
|
}
|
|
77
|
-
//# sourceMappingURL=
|
|
67
|
+
//# sourceMappingURL=budgetrestresponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"budgetrestresponse.js","sourceRoot":"","sources":["../../src/models/components/budgetrestresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6GH,gEAQC;AAnHD,0CAA4B;AAC5B,qDAAiD;AAGjD,6EAGsC;AACtC,+EAGuC;AACvC,qDAA0E;AAC1E,6EAGsC;AACtC,qDAA0E;AAC1E,yEAGoC;AAkEpC,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,KAAK,EAAE,kEAAqC,CAAC,QAAQ,EAAE;IACvD,KAAK,EAAE,0CAAyB,CAAC,QAAQ,EAAE;IAC3C,MAAM,EAAE,oEAAsC;IAC9C,SAAS,EAAE,8DAAmC,CAAC,QAAQ,EAAE;IACzD,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IACpC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;SACzE,QAAQ,EAAE;IACb,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;IAC5E,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;IAC5E,KAAK,EAAE,0CAAyB,CAAC,QAAQ,EAAE;IAC3C,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,kEAAqC,CAAC,CAAC,QAAQ,EAAE;CAClE,CAAC,CAAC;AAEH,SAAgB,0BAA0B,CACxC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wCAAgC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC5D,gDAAgD,CACjD,CAAC;AACJ,CAAC"}
|