@orq-ai/node 4.14.0-rc.4 → 4.14.0-rc.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/funcs/identitiesCreate.d.ts +2 -1
- package/funcs/identitiesCreate.d.ts.map +1 -1
- package/funcs/identitiesCreate.js +8 -1
- package/funcs/identitiesCreate.js.map +1 -1
- package/funcs/routerImagesEditsCreate.d.ts.map +1 -1
- package/funcs/routerImagesEditsCreate.js +20 -1
- package/funcs/routerImagesEditsCreate.js.map +1 -1
- package/funcs/routerImagesVariationsCreate.d.ts.map +1 -1
- package/funcs/routerImagesVariationsCreate.js +20 -1
- package/funcs/routerImagesVariationsCreate.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/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/reasoningpart.js +1 -1
- package/models/operations/createannotationqueue.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +5 -5
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createidentity.d.ts +14 -0
- package/models/operations/createidentity.d.ts.map +1 -0
- package/models/operations/createidentity.js +58 -0
- package/models/operations/createidentity.js.map +1 -0
- package/models/operations/createimageedit.d.ts +14 -2
- package/models/operations/createimageedit.d.ts.map +1 -1
- package/models/operations/createimageedit.js +17 -2
- package/models/operations/createimageedit.js.map +1 -1
- package/models/operations/createimagevariation.d.ts +14 -2
- package/models/operations/createimagevariation.d.ts.map +1 -1
- package/models/operations/createimagevariation.js +17 -2
- package/models/operations/createimagevariation.js.map +1 -1
- package/models/operations/createrouterresponse.d.ts +10 -10
- package/models/operations/createrouterresponse.d.ts.map +1 -1
- package/models/operations/createrouterresponse.js +8 -8
- 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/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- 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/responsebodynodes.js +33 -33
- package/models/operations/retrieveannotationqueue.js +1 -1
- package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody204.js +31 -31
- package/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody8attributesopenresponsesoutput2.js +6 -6
- package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody13attributes5.js +16 -16
- package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody19attributeslogprobs.js +14 -14
- package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody21attributes8.js +18 -18
- package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody24attributesopenresponsesoutput44type.js +16 -16
- package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody257.js +2 -2
- package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody29attributesopenresponsesoutput44type.js +16 -16
- package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody307.js +2 -2
- package/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody44.js +16 -16
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse1.js +34 -34
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse20015.d.ts +1 -1
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse20015.d.ts.map +1 -1
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse20015.js +9 -8
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse20015.js.map +1 -1
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody102.js +32 -32
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody11attributesorq10kind.js +15 -15
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody12attributesorqsource.js +2 -2
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody13attributesorq8kind.js +19 -19
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody1417.js +4 -4
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody15attributesorq9evaluationtype.js +17 -17
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody16attributesstatus.js +30 -30
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody17attributesorq10evaluatorconfigtype.js +15 -15
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody18attributesorq14outputschema.js +7 -7
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody19attributesorq7annotator.js +21 -21
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody20attributesorq16annotator.js +4 -4
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody21attributesorq9annotator.js +17 -17
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody22attributesorq5outputschema.js +24 -24
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody23attributesorq15outputschema.js +5 -5
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody24attributesorq8annotator.js +19 -19
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody25attributesorq19kind.js +1 -1
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody25status.js +32 -32
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody26attributesorq12status.js +11 -11
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody27attributesorq4evaluationtype.js +26 -26
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody28attributesorq15outputschema.js +5 -5
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody29attributesorq8annotator.js +19 -19
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody2source.js +2 -2
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody30attributesorq19kind.js +1 -1
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody30status.js +32 -32
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody31attributesorq17type.js +3 -3
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody32attributesorqvalue.js +15 -15
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody33attributesevaluatorconfigtype.js +30 -30
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody3413.js +11 -11
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody35attributesorq5annotator.js +24 -24
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody3attributesorq19outputschema.js +1 -1
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody4attributesorq8outputschema.js +19 -19
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody6attributesorq4kind.js +26 -26
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody7attributesorq12status.js +11 -11
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody8attributesorqannotator.js +28 -28
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody9attributesorq12evaluatorconfigtype.js +11 -11
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponseevaluatorconfigtype.js +25 -25
- package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse2008.js +28 -28
- package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody11attributestype.js +20 -20
- package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody173.js +20 -20
- package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody18attributesopenresponses6role.js +28 -28
- package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody26attributesopenresponsestype.js +24 -24
- package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody321.js +20 -20
- package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody345.js +24 -24
- package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody7attributesopenresponsestype.js +24 -24
- package/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody9attributesrole.js +24 -24
- package/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody10role.js +2 -2
- package/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody155.js +18 -18
- package/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody16status.js +4 -4
- package/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody23attributes1.js +30 -30
- package/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody28attributes1.js +30 -30
- package/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody333.js +4 -4
- package/models/operations/retrieveannotationqueueitemresponsebody.js +1 -1
- package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson10evaluation.js +1 -1
- package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson12nodes.js +33 -33
- package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson14attributesresponse.js +31 -31
- package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson16score.js +1 -1
- package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson27choice.js +1 -1
- package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson31otlp.js +32 -32
- package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson33provider.js +1 -1
- package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson6response.d.ts +1 -1
- package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson6response.d.ts.map +1 -1
- package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson6response.js +3 -2
- package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson6response.js.map +1 -1
- package/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson8tool.js +1 -1
- package/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody22attributestype.js +10 -10
- package/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody27logprobs.js +8 -8
- package/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody353.js +10 -10
- package/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody6type.js +8 -8
- package/models/operations/retrievedatapoint.js +5 -5
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/summary4.js +10 -10
- package/models/operations/twentythree.js +1 -1
- package/models/operations/updateannotationqueue.js +1 -1
- package/models/operations/updatedatapoint.js +5 -5
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +3 -3
- package/sdk/identities.d.ts +1 -1
- package/src/funcs/identitiesCreate.ts +13 -5
- package/src/funcs/routerImagesEditsCreate.ts +33 -2
- package/src/funcs/routerImagesVariationsCreate.ts +33 -2
- package/src/lib/config.ts +2 -2
- 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/reasoningpart.ts +1 -1
- package/src/models/operations/createannotationqueue.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +5 -5
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createidentity.ts +40 -0
- package/src/models/operations/createimageedit.ts +34 -3
- package/src/models/operations/createimagevariation.ts +40 -3
- package/src/models/operations/createrouterresponse.ts +16 -16
- 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/index.ts +1 -0
- 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/responsebodynodes.ts +33 -33
- package/src/models/operations/retrieveannotationqueue.ts +1 -1
- package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody204.ts +31 -31
- package/src/models/operations/retrieveannotationqueueitem1annotationqueuesresponse200applicationjsonresponsebody8attributesopenresponsesoutput2.ts +6 -6
- package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody13attributes5.ts +16 -16
- package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody19attributeslogprobs.ts +14 -14
- package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody21attributes8.ts +18 -18
- package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody24attributesopenresponsesoutput44type.ts +16 -16
- package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody257.ts +2 -2
- package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody29attributesopenresponsesoutput44type.ts +16 -16
- package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody307.ts +2 -2
- package/src/models/operations/retrieveannotationqueueitemcontentannotationqueuesresponse200applicationjsonresponsebody44.ts +16 -16
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse1.ts +34 -34
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse20015.ts +10 -9
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody102.ts +32 -32
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody11attributesorq10kind.ts +15 -15
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody12attributesorqsource.ts +2 -2
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody13attributesorq8kind.ts +19 -19
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody1417.ts +4 -4
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody15attributesorq9evaluationtype.ts +17 -17
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody16attributesstatus.ts +30 -30
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody17attributesorq10evaluatorconfigtype.ts +15 -15
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody18attributesorq14outputschema.ts +7 -7
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody19attributesorq7annotator.ts +21 -21
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody20attributesorq16annotator.ts +4 -4
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody21attributesorq9annotator.ts +17 -17
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody22attributesorq5outputschema.ts +24 -24
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody23attributesorq15outputschema.ts +5 -5
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody24attributesorq8annotator.ts +19 -19
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody25attributesorq19kind.ts +1 -1
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody25status.ts +32 -32
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody26attributesorq12status.ts +11 -11
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody27attributesorq4evaluationtype.ts +26 -26
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody28attributesorq15outputschema.ts +5 -5
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody29attributesorq8annotator.ts +19 -19
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody2source.ts +2 -2
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody30attributesorq19kind.ts +1 -1
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody30status.ts +32 -32
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody31attributesorq17type.ts +3 -3
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody32attributesorqvalue.ts +15 -15
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody33attributesevaluatorconfigtype.ts +30 -30
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody3413.ts +11 -11
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody35attributesorq5annotator.ts +24 -24
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody3attributesorq19outputschema.ts +1 -1
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody4attributesorq8outputschema.ts +19 -19
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody6attributesorq4kind.ts +26 -26
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody7attributesorq12status.ts +11 -11
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody8attributesorqannotator.ts +28 -28
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody9attributesorq12evaluatorconfigtype.ts +11 -11
- package/src/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponseevaluatorconfigtype.ts +25 -25
- package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse2008.ts +28 -28
- package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody11attributestype.ts +20 -20
- package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody173.ts +20 -20
- package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody18attributesopenresponses6role.ts +28 -28
- package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody26attributesopenresponsestype.ts +24 -24
- package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody321.ts +20 -20
- package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody345.ts +24 -24
- package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody7attributesopenresponsestype.ts +24 -24
- package/src/models/operations/retrieveannotationqueueiteminputannotationqueuesresponse200applicationjsonresponsebody9attributesrole.ts +24 -24
- package/src/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody10role.ts +2 -2
- package/src/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody155.ts +18 -18
- package/src/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody16status.ts +4 -4
- package/src/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody23attributes1.ts +30 -30
- package/src/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody28attributes1.ts +30 -30
- package/src/models/operations/retrieveannotationqueueitemoutputannotationqueuesresponse200applicationjsonresponsebody333.ts +4 -4
- package/src/models/operations/retrieveannotationqueueitemresponsebody.ts +1 -1
- package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson10evaluation.ts +1 -1
- package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson12nodes.ts +33 -33
- package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson14attributesresponse.ts +31 -31
- package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson16score.ts +1 -1
- package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson27choice.ts +1 -1
- package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson31otlp.ts +32 -32
- package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson33provider.ts +1 -1
- package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson6response.ts +4 -3
- package/src/models/operations/retrieveannotationqueueitemresponsebodyannotationqueuesresponse200applicationjson8tool.ts +1 -1
- package/src/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody22attributestype.ts +10 -10
- package/src/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody27logprobs.ts +8 -8
- package/src/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody353.ts +10 -10
- package/src/models/operations/retrieveannotationqueueitemsummaryannotationqueuesresponse200applicationjsonresponsebody6type.ts +8 -8
- package/src/models/operations/retrievedatapoint.ts +5 -5
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/summary4.ts +10 -10
- package/src/models/operations/twentythree.ts +1 -1
- package/src/models/operations/updateannotationqueue.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +5 -5
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/identities.ts +1 -1
|
@@ -5,6 +5,7 @@ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeo
|
|
|
5
5
|
import { OrqError } from "../models/errors/orqerror.js";
|
|
6
6
|
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
7
7
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
8
|
+
import * as operations from "../models/operations/index.js";
|
|
8
9
|
import { APIPromise } from "../types/async.js";
|
|
9
10
|
import { Result } from "../types/fp.js";
|
|
10
11
|
/**
|
|
@@ -13,5 +14,5 @@ import { Result } from "../types/fp.js";
|
|
|
13
14
|
* @remarks
|
|
14
15
|
* Creates a new identity with a unique external_id. If an identity with the same external_id already exists, the operation will fail.
|
|
15
16
|
*/
|
|
16
|
-
export declare function identitiesCreate(client: OrqCore, request: components.CreateIdentityRequest, options?: RequestOptions): APIPromise<Result<
|
|
17
|
+
export declare function identitiesCreate(client: OrqCore, request: components.CreateIdentityRequest, options?: RequestOptions): APIPromise<Result<operations.CreateIdentityResponse, OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
17
18
|
//# sourceMappingURL=identitiesCreate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identitiesCreate.d.ts","sourceRoot":"","sources":["../src/funcs/identitiesCreate.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAMrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,sBAAsB,EAC/B,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
1
|
+
{"version":3,"file":"identitiesCreate.d.ts","sourceRoot":"","sources":["../src/funcs/identitiesCreate.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAMrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,sBAAsB,EAC/B,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -45,6 +45,7 @@ const schemas_js_1 = require("../lib/schemas.js");
|
|
|
45
45
|
const security_js_1 = require("../lib/security.js");
|
|
46
46
|
const url_js_1 = require("../lib/url.js");
|
|
47
47
|
const components = __importStar(require("../models/components/index.js"));
|
|
48
|
+
const operations = __importStar(require("../models/operations/index.js"));
|
|
48
49
|
const async_js_1 = require("../types/async.js");
|
|
49
50
|
/**
|
|
50
51
|
* Create an identity
|
|
@@ -106,7 +107,13 @@ async function $do(client, request, options) {
|
|
|
106
107
|
return [doResult, { status: "request-error", request: req }];
|
|
107
108
|
}
|
|
108
109
|
const response = doResult.value;
|
|
109
|
-
const
|
|
110
|
+
const responseFields = {
|
|
111
|
+
HttpMeta: { Response: response, Request: req },
|
|
112
|
+
};
|
|
113
|
+
const [result] = await M.match(M.json(201, operations.CreateIdentityResponse$inboundSchema, {
|
|
114
|
+
hdrs: true,
|
|
115
|
+
key: "Result",
|
|
116
|
+
}), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
110
117
|
if (!result.ok) {
|
|
111
118
|
return [result, { status: "complete", request: req, response }];
|
|
112
119
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identitiesCreate.js","sourceRoot":"","sources":["../src/funcs/identitiesCreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"identitiesCreate.js","sourceRoot":"","sources":["../src/funcs/identitiesCreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCH,4CAsBC;AAnDD,sDAAiD;AACjD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAC3C,0EAA4D;AAW5D,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;GAKG;AACH,SAAgB,gBAAgB,CAC9B,MAAe,EACf,OAAyC,EACzC,OAAwB;IAcxB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAe,EACf,OAAyC,EACzC,OAAwB;IAiBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,oCAAoC,CAAC,KAAK,CAAC,KAAK,CAAC,EACvE,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IACzC,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAA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V,GAAG,EAAE,QAAQ;KACd,CAAC,EACF,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routerImagesEditsCreate.d.ts","sourceRoot":"","sources":["../src/funcs/routerImagesEditsCreate.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"routerImagesEditsCreate.d.ts","sourceRoot":"","sources":["../src/funcs/routerImagesEditsCreate.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAWrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAExD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAGxC;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,0BAA0B,EAC9C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,2BAA2B,EACpC,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -38,6 +38,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.routerImagesEditsCreate = routerImagesEditsCreate;
|
|
40
40
|
const encodings_js_1 = require("../lib/encodings.js");
|
|
41
|
+
const files_js_1 = require("../lib/files.js");
|
|
41
42
|
const http_js_1 = require("../lib/http.js");
|
|
42
43
|
const M = __importStar(require("../lib/matchers.js"));
|
|
43
44
|
const primitives_js_1 = require("../lib/primitives.js");
|
|
@@ -46,6 +47,8 @@ const security_js_1 = require("../lib/security.js");
|
|
|
46
47
|
const url_js_1 = require("../lib/url.js");
|
|
47
48
|
const operations = __importStar(require("../models/operations/index.js"));
|
|
48
49
|
const async_js_1 = require("../types/async.js");
|
|
50
|
+
const blobs_js_1 = require("../types/blobs.js");
|
|
51
|
+
const streams_js_1 = require("../types/streams.js");
|
|
49
52
|
/**
|
|
50
53
|
* Create image edit
|
|
51
54
|
*
|
|
@@ -71,7 +74,23 @@ async function $do(client, request, options) {
|
|
|
71
74
|
(0, encodings_js_1.appendForm)(body, "fallbacks", (0, encodings_js_1.encodeJSON)("fallbacks", payload.fallbacks, { explode: true }));
|
|
72
75
|
}
|
|
73
76
|
if (payload.image !== undefined) {
|
|
74
|
-
(0,
|
|
77
|
+
if ((0, blobs_js_1.isBlobLike)(payload.image)) {
|
|
78
|
+
const file = payload.image;
|
|
79
|
+
const blob = await (0, encodings_js_1.normalizeBlob)(file);
|
|
80
|
+
const name = "name" in file ? file.name : undefined;
|
|
81
|
+
(0, encodings_js_1.appendForm)(body, "image", blob, name);
|
|
82
|
+
}
|
|
83
|
+
else if ((0, streams_js_1.isReadableStream)(payload.image.content)) {
|
|
84
|
+
const buffer = await (0, files_js_1.readableStreamToArrayBuffer)(payload.image.content);
|
|
85
|
+
const contentType = (0, files_js_1.getContentTypeFromFileName)(payload.image.fileName)
|
|
86
|
+
|| "application/octet-stream";
|
|
87
|
+
(0, encodings_js_1.appendForm)(body, "image", (0, files_js_1.bytesToBlob)(buffer, contentType), payload.image.fileName);
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
const contentType = (0, files_js_1.getContentTypeFromFileName)(payload.image.fileName)
|
|
91
|
+
|| "application/octet-stream";
|
|
92
|
+
(0, encodings_js_1.appendForm)(body, "image", (0, files_js_1.bytesToBlob)(payload.image.content, contentType), payload.image.fileName);
|
|
93
|
+
}
|
|
75
94
|
}
|
|
76
95
|
if (payload.load_balancer !== undefined) {
|
|
77
96
|
(0, encodings_js_1.appendForm)(body, "load_balancer", (0, encodings_js_1.encodeJSON)("load_balancer", payload.load_balancer, { explode: true }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routerImagesEditsCreate.js","sourceRoot":"","sources":["../src/funcs/routerImagesEditsCreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"routerImagesEditsCreate.js","sourceRoot":"","sources":["../src/funcs/routerImagesEditsCreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsCH,0DAsBC;AAzDD,sDAA4E;AAC5E,8CAIyB;AACzB,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAW3C,0E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AC;IAC/D,CAAC;IACD,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,CAAC;IAEhC,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAW5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,yCAAyC,CAAC,EACjE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACjB,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routerImagesVariationsCreate.d.ts","sourceRoot":"","sources":["../src/funcs/routerImagesVariationsCreate.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"routerImagesVariationsCreate.d.ts","sourceRoot":"","sources":["../src/funcs/routerImagesVariationsCreate.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAWrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAExD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAGxC;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,+BAA+B,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,gCAAgC,EACzC,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -38,6 +38,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.routerImagesVariationsCreate = routerImagesVariationsCreate;
|
|
40
40
|
const encodings_js_1 = require("../lib/encodings.js");
|
|
41
|
+
const files_js_1 = require("../lib/files.js");
|
|
41
42
|
const http_js_1 = require("../lib/http.js");
|
|
42
43
|
const M = __importStar(require("../lib/matchers.js"));
|
|
43
44
|
const primitives_js_1 = require("../lib/primitives.js");
|
|
@@ -46,6 +47,8 @@ const security_js_1 = require("../lib/security.js");
|
|
|
46
47
|
const url_js_1 = require("../lib/url.js");
|
|
47
48
|
const operations = __importStar(require("../models/operations/index.js"));
|
|
48
49
|
const async_js_1 = require("../types/async.js");
|
|
50
|
+
const blobs_js_1 = require("../types/blobs.js");
|
|
51
|
+
const streams_js_1 = require("../types/streams.js");
|
|
49
52
|
/**
|
|
50
53
|
* Create image variation
|
|
51
54
|
*
|
|
@@ -70,7 +73,23 @@ async function $do(client, request, options) {
|
|
|
70
73
|
(0, encodings_js_1.appendForm)(body, "fallbacks", (0, encodings_js_1.encodeJSON)("fallbacks", payload.fallbacks, { explode: true }));
|
|
71
74
|
}
|
|
72
75
|
if (payload.image !== undefined) {
|
|
73
|
-
(0,
|
|
76
|
+
if ((0, blobs_js_1.isBlobLike)(payload.image)) {
|
|
77
|
+
const file = payload.image;
|
|
78
|
+
const blob = await (0, encodings_js_1.normalizeBlob)(file);
|
|
79
|
+
const name = "name" in file ? file.name : undefined;
|
|
80
|
+
(0, encodings_js_1.appendForm)(body, "image", blob, name);
|
|
81
|
+
}
|
|
82
|
+
else if ((0, streams_js_1.isReadableStream)(payload.image.content)) {
|
|
83
|
+
const buffer = await (0, files_js_1.readableStreamToArrayBuffer)(payload.image.content);
|
|
84
|
+
const contentType = (0, files_js_1.getContentTypeFromFileName)(payload.image.fileName)
|
|
85
|
+
|| "application/octet-stream";
|
|
86
|
+
(0, encodings_js_1.appendForm)(body, "image", (0, files_js_1.bytesToBlob)(buffer, contentType), payload.image.fileName);
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
const contentType = (0, files_js_1.getContentTypeFromFileName)(payload.image.fileName)
|
|
90
|
+
|| "application/octet-stream";
|
|
91
|
+
(0, encodings_js_1.appendForm)(body, "image", (0, files_js_1.bytesToBlob)(payload.image.content, contentType), payload.image.fileName);
|
|
92
|
+
}
|
|
74
93
|
}
|
|
75
94
|
if (payload.load_balancer !== undefined) {
|
|
76
95
|
(0, encodings_js_1.appendForm)(body, "load_balancer", (0, encodings_js_1.encodeJSON)("load_balancer", payload.load_balancer, { explode: true }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routerImagesVariationsCreate.js","sourceRoot":"","sources":["../src/funcs/routerImagesVariationsCreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"routerImagesVariationsCreate.js","sourceRoot":"","sources":["../src/funcs/routerImagesVariationsCreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAs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AAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAW5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,8CAA8C,CAAC,EACtE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACjB,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
package/jsr.json
CHANGED
package/lib/config.d.ts
CHANGED
|
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
31
31
|
export declare const SDK_METADATA: {
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "2.0";
|
|
34
|
-
readonly sdkVersion: "4.14.0-rc.
|
|
34
|
+
readonly sdkVersion: "4.14.0-rc.6";
|
|
35
35
|
readonly genVersion: "2.928.0";
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 4.14.0-rc.
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 4.14.0-rc.6 2.928.0 2.0 @orq-ai/node";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -28,8 +28,8 @@ function serverURLFromOptions(options) {
|
|
|
28
28
|
exports.SDK_METADATA = {
|
|
29
29
|
language: "typescript",
|
|
30
30
|
openapiDocVersion: "2.0",
|
|
31
|
-
sdkVersion: "4.14.0-rc.
|
|
31
|
+
sdkVersion: "4.14.0-rc.6",
|
|
32
32
|
genVersion: "2.928.0",
|
|
33
|
-
userAgent: "speakeasy-sdk/typescript 4.14.0-rc.
|
|
33
|
+
userAgent: "speakeasy-sdk/typescript 4.14.0-rc.6 2.928.0 2.0 @orq-ai/node",
|
|
34
34
|
};
|
|
35
35
|
//# sourceMappingURL=config.js.map
|
|
@@ -366,8 +366,8 @@ function functionParamsFromJSON(jsonString) {
|
|
|
366
366
|
exports.EvaluatorResponseFunction$inboundSchema = z.object({
|
|
367
367
|
_id: z.string(),
|
|
368
368
|
description: z.string(),
|
|
369
|
-
created: z.string().default("2026-08-
|
|
370
|
-
updated: z.string().default("2026-08-
|
|
369
|
+
created: z.string().default("2026-08-11T11:07:42.432Z"),
|
|
370
|
+
updated: z.string().default("2026-08-11T11:07:42.432Z"),
|
|
371
371
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
372
372
|
project_id: z.string().optional(),
|
|
373
373
|
guardrail_config: z.any().optional(),
|
|
@@ -52,8 +52,8 @@ exports.Method$inboundSchema = z
|
|
|
52
52
|
exports.EvaluatorResponseHttp$inboundSchema = z.object({
|
|
53
53
|
_id: z.string(),
|
|
54
54
|
description: z.string(),
|
|
55
|
-
created: z.string().default("2026-08-
|
|
56
|
-
updated: z.string().default("2026-08-
|
|
55
|
+
created: z.string().default("2026-08-11T11:07:42.432Z"),
|
|
56
|
+
updated: z.string().default("2026-08-11T11:07:42.432Z"),
|
|
57
57
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
58
58
|
project_id: z.string().optional(),
|
|
59
59
|
guardrail_config: z.any().optional(),
|
|
@@ -45,8 +45,8 @@ const schemas_js_1 = require("../../lib/schemas.js");
|
|
|
45
45
|
exports.EvaluatorResponseJsonSchema$inboundSchema = z.object({
|
|
46
46
|
_id: z.string(),
|
|
47
47
|
description: z.string(),
|
|
48
|
-
created: z.string().default("2026-08-
|
|
49
|
-
updated: z.string().default("2026-08-
|
|
48
|
+
created: z.string().default("2026-08-11T11:07:42.432Z"),
|
|
49
|
+
updated: z.string().default("2026-08-11T11:07:42.432Z"),
|
|
50
50
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
51
51
|
project_id: z.string().optional(),
|
|
52
52
|
guardrail_config: z.any().optional(),
|
|
@@ -150,8 +150,8 @@ function juryFromJSON(jsonString) {
|
|
|
150
150
|
exports.EvaluatorResponseLlm$inboundSchema = z.object({
|
|
151
151
|
_id: z.string(),
|
|
152
152
|
description: z.string(),
|
|
153
|
-
created: z.string().default("2026-08-
|
|
154
|
-
updated: z.string().default("2026-08-
|
|
153
|
+
created: z.string().default("2026-08-11T11:07:42.432Z"),
|
|
154
|
+
updated: z.string().default("2026-08-11T11:07:42.432Z"),
|
|
155
155
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
156
156
|
project_id: z.string().optional(),
|
|
157
157
|
guardrail_config: z.any().optional(),
|
|
@@ -45,8 +45,8 @@ const schemas_js_1 = require("../../lib/schemas.js");
|
|
|
45
45
|
exports.EvaluatorResponsePython$inboundSchema = z.object({
|
|
46
46
|
_id: z.string(),
|
|
47
47
|
description: z.string(),
|
|
48
|
-
created: z.string().default("2026-08-
|
|
49
|
-
updated: z.string().default("2026-08-
|
|
48
|
+
created: z.string().default("2026-08-11T11:07:42.432Z"),
|
|
49
|
+
updated: z.string().default("2026-08-11T11:07:42.432Z"),
|
|
50
50
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
51
51
|
project_id: z.string().optional(),
|
|
52
52
|
guardrail_config: z.any().optional(),
|
|
@@ -62,8 +62,8 @@ exports.RagasMetric$inboundSchema = z
|
|
|
62
62
|
exports.EvaluatorResponseRagas$inboundSchema = z.object({
|
|
63
63
|
_id: z.string(),
|
|
64
64
|
description: z.string(),
|
|
65
|
-
created: z.string().default("2026-08-
|
|
66
|
-
updated: z.string().default("2026-08-
|
|
65
|
+
created: z.string().default("2026-08-11T11:07:42.432Z"),
|
|
66
|
+
updated: z.string().default("2026-08-11T11:07:42.432Z"),
|
|
67
67
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
68
68
|
project_id: z.string().optional(),
|
|
69
69
|
guardrail_config: z.any().optional(),
|
|
@@ -45,8 +45,8 @@ const schemas_js_1 = require("../../lib/schemas.js");
|
|
|
45
45
|
exports.EvaluatorResponseTypescript$inboundSchema = z.object({
|
|
46
46
|
_id: z.string(),
|
|
47
47
|
description: z.string(),
|
|
48
|
-
created: z.string().default("2026-08-
|
|
49
|
-
updated: z.string().default("2026-08-
|
|
48
|
+
created: z.string().default("2026-08-11T11:07:42.432Z"),
|
|
49
|
+
updated: z.string().default("2026-08-11T11:07:42.432Z"),
|
|
50
50
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
51
51
|
project_id: z.string().optional(),
|
|
52
52
|
guardrail_config: z.any().optional(),
|
|
@@ -43,7 +43,7 @@ const primitives_js_1 = require("../../lib/primitives.js");
|
|
|
43
43
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
44
44
|
/** @internal */
|
|
45
45
|
exports.ReasoningPart$inboundSchema = z.object({
|
|
46
|
-
_id: z.string().default("
|
|
46
|
+
_id: z.string().default("reasoning_01kzr83vyvxb7jgdnf9grejmkq"),
|
|
47
47
|
metadata: z.record(z.any()).optional(),
|
|
48
48
|
kind: z.literal("reasoning"),
|
|
49
49
|
reasoning: z.string(),
|
|
@@ -81,7 +81,7 @@ exports.CreateAnnotationQueueResponseBody$inboundSchema = z.object({
|
|
|
81
81
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
82
82
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
83
83
|
.optional(),
|
|
84
|
-
updated: z.string().datetime({ offset: true }).default("2026-08-
|
|
84
|
+
updated: z.string().datetime({ offset: true }).default("2026-08-11T11:07:40.374Z").transform(v => new Date(v)),
|
|
85
85
|
}).transform((v) => {
|
|
86
86
|
return (0, primitives_js_1.remap)(v, {
|
|
87
87
|
"_id": "id",
|
|
@@ -79,7 +79,7 @@ exports.CreateDatasetResponseBody$inboundSchema = z.object({
|
|
|
79
79
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
80
80
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
81
81
|
.optional(),
|
|
82
|
-
updated: z.string().datetime({ offset: true }).default("2026-08-
|
|
82
|
+
updated: z.string().datetime({ offset: true }).default("2026-08-11T11:07:40.374Z").transform(v => new Date(v)),
|
|
83
83
|
}).transform((v) => {
|
|
84
84
|
return (0, primitives_js_1.remap)(v, {
|
|
85
85
|
"_id": "id",
|
|
@@ -859,7 +859,7 @@ exports.Evaluations4$inboundSchema = z.object({
|
|
|
859
859
|
parent_annotation_id: z.string().optional(),
|
|
860
860
|
explanation: z.string().optional(),
|
|
861
861
|
reviewed_by_id: z.string(),
|
|
862
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2026-08-
|
|
862
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2026-08-11T11:07:55.752Z").transform(v => new Date(v)),
|
|
863
863
|
type: z.literal("string_array"),
|
|
864
864
|
values: z.array(z.string()),
|
|
865
865
|
}).transform((v) => {
|
|
@@ -912,7 +912,7 @@ exports.Evaluations3$inboundSchema = z.object({
|
|
|
912
912
|
parent_annotation_id: z.string().optional(),
|
|
913
913
|
explanation: z.string().optional(),
|
|
914
914
|
reviewed_by_id: z.string(),
|
|
915
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2026-08-
|
|
915
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2026-08-11T11:07:55.751Z").transform(v => new Date(v)),
|
|
916
916
|
type: z.literal("boolean"),
|
|
917
917
|
value: z.boolean(),
|
|
918
918
|
}).transform((v) => {
|
|
@@ -959,7 +959,7 @@ exports.Evaluations2$inboundSchema = z.object({
|
|
|
959
959
|
parent_annotation_id: z.string().optional(),
|
|
960
960
|
explanation: z.string().optional(),
|
|
961
961
|
reviewed_by_id: z.string(),
|
|
962
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2026-08-
|
|
962
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2026-08-11T11:07:55.751Z").transform(v => new Date(v)),
|
|
963
963
|
type: z.literal("number"),
|
|
964
964
|
value: z.number(),
|
|
965
965
|
}).transform((v) => {
|
|
@@ -1006,7 +1006,7 @@ exports.Evaluations1$inboundSchema = z.object({
|
|
|
1006
1006
|
parent_annotation_id: z.string().optional(),
|
|
1007
1007
|
explanation: z.string().optional(),
|
|
1008
1008
|
reviewed_by_id: z.string(),
|
|
1009
|
-
reviewed_at: z.string().datetime({ offset: true }).default("2026-08-
|
|
1009
|
+
reviewed_at: z.string().datetime({ offset: true }).default("2026-08-11T11:07:55.750Z").transform(v => new Date(v)),
|
|
1010
1010
|
type: z.literal("string"),
|
|
1011
1011
|
value: z.string(),
|
|
1012
1012
|
}).transform((v) => {
|
|
@@ -1057,7 +1057,7 @@ exports.CreateDatasetItemResponseBody$inboundSchema = z.object({
|
|
|
1057
1057
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
1058
1058
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
1059
1059
|
.optional(),
|
|
1060
|
-
updated: z.string().datetime({ offset: true }).default("2026-08-
|
|
1060
|
+
updated: z.string().datetime({ offset: true }).default("2026-08-11T11:07:40.374Z").transform(v => new Date(v)),
|
|
1061
1061
|
}).transform((v) => {
|
|
1062
1062
|
return (0, primitives_js_1.remap)(v, {
|
|
1063
1063
|
"_id": "id",
|
|
@@ -182,7 +182,7 @@ function createDatasourceMetadataFromJSON(jsonString) {
|
|
|
182
182
|
}
|
|
183
183
|
/** @internal */
|
|
184
184
|
exports.CreateDatasourceResponseBody$inboundSchema = z.object({
|
|
185
|
-
_id: z.string().default("
|
|
185
|
+
_id: z.string().default("01KZR83WD0YSE27EJ3E88EADGA"),
|
|
186
186
|
display_name: z.string(),
|
|
187
187
|
description: z.nullable(z.string()).optional(),
|
|
188
188
|
status: exports.CreateDatasourceStatus$inboundSchema,
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import * as components from "../components/index.js";
|
|
4
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
export type CreateIdentityResponse = {
|
|
6
|
+
headers: {
|
|
7
|
+
[k: string]: Array<string>;
|
|
8
|
+
};
|
|
9
|
+
result: components.CreateIdentityResponse;
|
|
10
|
+
};
|
|
11
|
+
/** @internal */
|
|
12
|
+
export declare const CreateIdentityResponse$inboundSchema: z.ZodType<CreateIdentityResponse, z.ZodTypeDef, unknown>;
|
|
13
|
+
export declare function createIdentityResponseFromJSON(jsonString: string): SafeParseResult<CreateIdentityResponse, SDKValidationError>;
|
|
14
|
+
//# sourceMappingURL=createidentity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createidentity.d.ts","sourceRoot":"","sources":["../../src/models/operations/createidentity.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,sBAAsB,GAAG;IACnC,OAAO,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;KAAE,CAAC;IACxC,MAAM,EAAE,UAAU,CAAC,sBAAsB,CAAC;CAC3C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,sBAAsB,EACtB,CAAC,CAAC,UAAU,EACZ,OAAO,CASP,CAAC;AAEH,wBAAgB,8BAA8B,CAC5C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,sBAAsB,EAAE,kBAAkB,CAAC,CAM7D"}
|
|
@@ -0,0 +1,58 @@
|
|
|
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.CreateIdentityResponse$inboundSchema = void 0;
|
|
40
|
+
exports.createIdentityResponseFromJSON = createIdentityResponseFromJSON;
|
|
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
|
+
const components = __importStar(require("../components/index.js"));
|
|
45
|
+
/** @internal */
|
|
46
|
+
exports.CreateIdentityResponse$inboundSchema = z.object({
|
|
47
|
+
Headers: z.record(z.array(z.string())).default({}),
|
|
48
|
+
Result: components.CreateIdentityResponse$inboundSchema,
|
|
49
|
+
}).transform((v) => {
|
|
50
|
+
return (0, primitives_js_1.remap)(v, {
|
|
51
|
+
"Headers": "headers",
|
|
52
|
+
"Result": "result",
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
function createIdentityResponseFromJSON(jsonString) {
|
|
56
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateIdentityResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateIdentityResponse' from JSON`);
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=createidentity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createidentity.js","sourceRoot":"","sources":["../../src/models/operations/createidentity.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BH,wEAQC;AAnCD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAEjD,mEAAqD;AAQrD,gBAAgB;AACH,QAAA,oCAAoC,GAI7C,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAClD,MAAM,EAAE,UAAU,CAAC,oCAAoC;CACxD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,SAAS;QACpB,QAAQ,EAAE,QAAQ;KACnB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,8BAA8B,CAC5C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,4CAAoC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAChE,oDAAoD,CACrD,CAAC;AACJ,CAAC"}
|
|
@@ -3,6 +3,10 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
3
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
4
|
import * as components from "../components/index.js";
|
|
5
5
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
6
|
+
export type Image = {
|
|
7
|
+
fileName: string;
|
|
8
|
+
content: ReadableStream<Uint8Array> | Blob | ArrayBuffer | Uint8Array;
|
|
9
|
+
};
|
|
6
10
|
/**
|
|
7
11
|
* The quality of the image that will be generated. Auto will automatically select the best quality for the given model.
|
|
8
12
|
*/
|
|
@@ -227,7 +231,7 @@ export type CreateImageEditRequestBody = {
|
|
|
227
231
|
/**
|
|
228
232
|
* The image(s) to edit. Must be a supported image file or an array of images. Each image should be a png, webp, or jpg file less than 50MB. You can provide up to 16 images.
|
|
229
233
|
*/
|
|
230
|
-
image?:
|
|
234
|
+
image?: Image | Blob | undefined;
|
|
231
235
|
/**
|
|
232
236
|
* A text description of the desired image(s).
|
|
233
237
|
*/
|
|
@@ -352,6 +356,14 @@ export type CreateImageEditResponseBody = {
|
|
|
352
356
|
usage?: CreateImageEditUsage | undefined;
|
|
353
357
|
};
|
|
354
358
|
/** @internal */
|
|
359
|
+
export type Image$Outbound = {
|
|
360
|
+
fileName: string;
|
|
361
|
+
content: ReadableStream<Uint8Array> | Blob | ArrayBuffer | Uint8Array;
|
|
362
|
+
};
|
|
363
|
+
/** @internal */
|
|
364
|
+
export declare const Image$outboundSchema: z.ZodType<Image$Outbound, z.ZodTypeDef, Image>;
|
|
365
|
+
export declare function imageToJSON(image: Image): string;
|
|
366
|
+
/** @internal */
|
|
355
367
|
export declare const CreateImageEditQuality$outboundSchema: z.ZodNativeEnum<typeof CreateImageEditQuality>;
|
|
356
368
|
/** @internal */
|
|
357
369
|
export declare const CreateImageEditResponseFormat$outboundSchema: z.ZodNativeEnum<typeof CreateImageEditResponseFormat>;
|
|
@@ -493,7 +505,7 @@ export declare function createImageEditOrqToJSON(createImageEditOrq: CreateImage
|
|
|
493
505
|
/** @internal */
|
|
494
506
|
export type CreateImageEditRequestBody$Outbound = {
|
|
495
507
|
model: string;
|
|
496
|
-
image?:
|
|
508
|
+
image?: Image$Outbound | Blob | undefined;
|
|
497
509
|
prompt: string;
|
|
498
510
|
n: number | null;
|
|
499
511
|
size?: string | null | undefined;
|