@orq-ai/node 4.14.0-rc.14 → 4.14.0-rc.16
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 +37 -52
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/accesslevel.d.ts +13 -0
- package/models/components/accesslevel.d.ts.map +1 -0
- package/models/components/{createpersonrequest.js → accesslevel.js} +11 -11
- package/models/components/accesslevel.js.map +1 -0
- package/models/components/createapikeyrequest.d.ts +3 -2
- package/models/components/createapikeyrequest.d.ts.map +1 -1
- package/models/components/createapikeyrequest.js +2 -1
- package/models/components/createapikeyrequest.js.map +1 -1
- package/models/components/createmanagementkeyrequest.d.ts +3 -2
- package/models/components/createmanagementkeyrequest.d.ts.map +1 -1
- package/models/components/createmanagementkeyrequest.js +2 -1
- package/models/components/createmanagementkeyrequest.js.map +1 -1
- package/models/components/domain.d.ts +13 -7
- package/models/components/domain.d.ts.map +1 -1
- package/models/components/domain.js +5 -1
- package/models/components/domain.js.map +1 -1
- package/models/components/domaingroup.d.ts +11 -0
- package/models/components/domaingroup.d.ts.map +1 -0
- package/models/components/{resendinvitationrequest.js → domaingroup.js} +9 -7
- package/models/components/domaingroup.js.map +1 -0
- package/models/components/embeddingorqparams.d.ts +3 -6
- package/models/components/embeddingorqparams.d.ts.map +1 -1
- package/models/components/embeddingorqparams.js +2 -2
- package/models/components/embeddingorqparams.js.map +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/index.d.ts +6 -11
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +6 -11
- package/models/components/index.js.map +1 -1
- package/models/components/listmanagementcapabilitiesresponse.d.ts +2 -2
- package/models/components/listmanagementcapabilitiesresponse.d.ts.map +1 -1
- package/models/components/listmanagementcapabilitiesresponse.js +2 -2
- package/models/components/listmanagementcapabilitiesresponse.js.map +1 -1
- package/models/components/managementdomain.d.ts +37 -0
- package/models/components/managementdomain.d.ts.map +1 -0
- package/models/components/{updatepersonrequest.js → managementdomain.js} +14 -12
- package/models/components/managementdomain.js.map +1 -0
- package/models/components/managementdomaingroup.d.ts +9 -0
- package/models/components/managementdomaingroup.d.ts.map +1 -0
- package/models/components/{personstatus.js → managementdomaingroup.js} +5 -7
- package/models/components/managementdomaingroup.js.map +1 -0
- package/models/components/managementkey.d.ts +2 -1
- package/models/components/managementkey.d.ts.map +1 -1
- package/models/components/managementkey.js +2 -1
- package/models/components/managementkey.js.map +1 -1
- package/models/components/publicresponseresource.d.ts +2 -5
- package/models/components/publicresponseresource.d.ts.map +1 -1
- package/models/components/publicresponseresource.js +2 -2
- package/models/components/publicresponseresource.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/responsetelemetry.d.ts +11 -0
- package/models/components/responsetelemetry.d.ts.map +1 -0
- package/models/components/{listpeopleresponse.js → responsetelemetry.js} +10 -11
- package/models/components/responsetelemetry.js.map +1 -0
- package/models/components/scopemode.d.ts +10 -0
- package/models/components/scopemode.d.ts.map +1 -0
- package/models/components/{deletepersonresponse.js → scopemode.js} +8 -8
- package/models/components/scopemode.js.map +1 -0
- package/models/components/updateapikeyrequest.d.ts +3 -2
- package/models/components/updateapikeyrequest.d.ts.map +1 -1
- package/models/components/updateapikeyrequest.js +2 -1
- package/models/components/updateapikeyrequest.js.map +1 -1
- package/models/components/updatemanagementkeyrequest.d.ts +3 -2
- package/models/components/updatemanagementkeyrequest.d.ts.map +1 -1
- package/models/components/updatemanagementkeyrequest.js +2 -1
- package/models/components/updatemanagementkeyrequest.js.map +1 -1
- package/models/operations/createannotationqueue.js +1 -1
- package/models/operations/createchatcompletion.d.ts +12 -12
- package/models/operations/createchatcompletion.d.ts.map +1 -1
- package/models/operations/createchatcompletion.js +5 -4
- package/models/operations/createchatcompletion.js.map +1 -1
- package/models/operations/createcompletion.d.ts +12 -12
- package/models/operations/createcompletion.d.ts.map +1 -1
- package/models/operations/createcompletion.js +4 -4
- package/models/operations/createcompletion.js.map +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/createknowledge.d.ts +82 -4
- package/models/operations/createknowledge.d.ts.map +1 -1
- package/models/operations/createknowledge.js +46 -1
- package/models/operations/createknowledge.js.map +1 -1
- package/models/operations/createrouterresponse.d.ts +1 -4
- package/models/operations/createrouterresponse.d.ts.map +1 -1
- package/models/operations/createrouterresponse.js +1 -1
- 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/getoneknowledge.d.ts +2 -2
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/index.d.ts +0 -5
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -5
- 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/listknowledgebases.d.ts +2 -2
- 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/responsebodyusage.d.ts +9 -9
- package/models/operations/responsebodyusage.d.ts.map +1 -1
- package/models/operations/responsebodyusage.js +4 -4
- package/models/operations/responsebodyusage.js.map +1 -1
- 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.js +7 -7
- 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.d.ts +9 -9
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody2source.d.ts.map +1 -1
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody2source.js +6 -6
- package/models/operations/retrieveannotationqueueitemevaluationsannotationqueuesresponse200applicationjsonresponsebody2source.js.map +1 -1
- 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/retrieveannotationqueueiteminputorq.d.ts +9 -9
- package/models/operations/retrieveannotationqueueiteminputorq.d.ts.map +1 -1
- package/models/operations/retrieveannotationqueueiteminputorq.js +4 -5
- package/models/operations/retrieveannotationqueueiteminputorq.js.map +1 -1
- 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.js +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/retrieveresponse.d.ts +1 -4
- package/models/operations/retrieveresponse.d.ts.map +1 -1
- package/models/operations/retrieveresponse.js +1 -1
- package/models/operations/retrieveresponse.js.map +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/searchknowledge.d.ts +12 -12
- package/models/operations/searchknowledge.d.ts.map +1 -1
- package/models/operations/searchknowledge.js +4 -4
- package/models/operations/searchknowledge.js.map +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/updateknowledge.d.ts +53 -53
- package/models/operations/updateknowledge.d.ts.map +1 -1
- package/models/operations/updateknowledge.js +38 -40
- package/models/operations/updateknowledge.js.map +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +9 -9
- package/sdk/feedback.d.ts +2 -2
- package/sdk/feedback.js +2 -2
- package/sdk/sdk.d.ts +0 -3
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +0 -4
- package/sdk/sdk.js.map +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/accesslevel.ts +20 -0
- package/src/models/components/createapikeyrequest.ts +4 -3
- package/src/models/components/createmanagementkeyrequest.ts +4 -3
- package/src/models/components/domain.ts +16 -8
- package/src/models/components/domaingroup.ts +17 -0
- package/src/models/components/embeddingorqparams.ts +7 -10
- 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/index.ts +6 -11
- package/src/models/components/listmanagementcapabilitiesresponse.ts +6 -3
- package/src/models/components/managementdomain.ts +70 -0
- package/src/models/components/managementdomaingroup.ts +16 -0
- package/src/models/components/managementkey.ts +3 -2
- package/src/models/components/publicresponseresource.ts +6 -6
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/responsetelemetry.ts +39 -0
- package/src/models/components/scopemode.ts +16 -0
- package/src/models/components/updateapikeyrequest.ts +4 -3
- package/src/models/components/updatemanagementkeyrequest.ts +4 -3
- package/src/models/operations/createannotationqueue.ts +1 -1
- package/src/models/operations/createchatcompletion.ts +16 -17
- package/src/models/operations/createcompletion.ts +15 -17
- 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/createknowledge.ts +157 -4
- package/src/models/operations/createrouterresponse.ts +2 -5
- 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/getoneknowledge.ts +2 -2
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/index.ts +0 -5
- 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/listknowledgebases.ts +2 -2
- 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/responsebodyusage.ts +12 -12
- 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 +7 -7
- 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 +14 -14
- 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/retrieveannotationqueueiteminputorq.ts +14 -13
- 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 +1 -1
- 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/retrieveresponse.ts +2 -5
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/searchknowledge.ts +15 -15
- 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/updateknowledge.ts +155 -127
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/feedback.ts +2 -2
- package/src/sdk/sdk.ts +0 -6
- package/funcs/peopleCreate.d.ts +0 -17
- package/funcs/peopleCreate.d.ts.map +0 -1
- package/funcs/peopleCreate.js +0 -115
- package/funcs/peopleCreate.js.map +0 -1
- package/funcs/peopleDelete.d.ts +0 -18
- package/funcs/peopleDelete.d.ts.map +0 -1
- package/funcs/peopleDelete.js +0 -121
- package/funcs/peopleDelete.js.map +0 -1
- package/funcs/peopleGet.d.ts +0 -18
- package/funcs/peopleGet.d.ts.map +0 -1
- package/funcs/peopleGet.js +0 -121
- package/funcs/peopleGet.js.map +0 -1
- package/funcs/peopleList.d.ts +0 -18
- package/funcs/peopleList.d.ts.map +0 -1
- package/funcs/peopleList.js +0 -121
- package/funcs/peopleList.js.map +0 -1
- package/funcs/peopleResendInvitation.d.ts +0 -18
- package/funcs/peopleResendInvitation.d.ts.map +0 -1
- package/funcs/peopleResendInvitation.js +0 -124
- package/funcs/peopleResendInvitation.js.map +0 -1
- package/funcs/peopleUpdate.d.ts +0 -18
- package/funcs/peopleUpdate.d.ts.map +0 -1
- package/funcs/peopleUpdate.js +0 -124
- package/funcs/peopleUpdate.js.map +0 -1
- package/models/components/createpersonrequest.d.ts +0 -25
- package/models/components/createpersonrequest.d.ts.map +0 -1
- package/models/components/createpersonrequest.js.map +0 -1
- package/models/components/createpersonresponse.d.ts +0 -14
- package/models/components/createpersonresponse.d.ts.map +0 -1
- package/models/components/createpersonresponse.js +0 -51
- package/models/components/createpersonresponse.js.map +0 -1
- package/models/components/deletepersonresponse.d.ts +0 -8
- package/models/components/deletepersonresponse.d.ts.map +0 -1
- package/models/components/deletepersonresponse.js.map +0 -1
- package/models/components/getpersonresponse.d.ts +0 -14
- package/models/components/getpersonresponse.d.ts.map +0 -1
- package/models/components/getpersonresponse.js +0 -51
- package/models/components/getpersonresponse.js.map +0 -1
- package/models/components/listpeopleresponse.d.ts +0 -25
- package/models/components/listpeopleresponse.d.ts.map +0 -1
- package/models/components/listpeopleresponse.js.map +0 -1
- package/models/components/person.d.ts +0 -51
- package/models/components/person.d.ts.map +0 -1
- package/models/components/person.js +0 -72
- package/models/components/person.js.map +0 -1
- package/models/components/personstatus.d.ts +0 -11
- package/models/components/personstatus.d.ts.map +0 -1
- package/models/components/personstatus.js.map +0 -1
- package/models/components/resendinvitationrequest.d.ts +0 -8
- package/models/components/resendinvitationrequest.d.ts.map +0 -1
- package/models/components/resendinvitationrequest.js.map +0 -1
- package/models/components/resendinvitationresponse.d.ts +0 -14
- package/models/components/resendinvitationresponse.d.ts.map +0 -1
- package/models/components/resendinvitationresponse.js +0 -51
- package/models/components/resendinvitationresponse.js.map +0 -1
- package/models/components/updatepersonrequest.d.ts +0 -30
- package/models/components/updatepersonrequest.d.ts.map +0 -1
- package/models/components/updatepersonrequest.js.map +0 -1
- package/models/components/updatepersonresponse.d.ts +0 -14
- package/models/components/updatepersonresponse.d.ts.map +0 -1
- package/models/components/updatepersonresponse.js +0 -51
- package/models/components/updatepersonresponse.js.map +0 -1
- package/models/operations/persondelete.d.ts +0 -15
- package/models/operations/persondelete.d.ts.map +0 -1
- package/models/operations/persondelete.js +0 -54
- package/models/operations/persondelete.js.map +0 -1
- package/models/operations/personget.d.ts +0 -15
- package/models/operations/personget.d.ts.map +0 -1
- package/models/operations/personget.js +0 -54
- package/models/operations/personget.js.map +0 -1
- package/models/operations/personlist.d.ts +0 -31
- package/models/operations/personlist.d.ts.map +0 -1
- package/models/operations/personlist.js +0 -57
- package/models/operations/personlist.js.map +0 -1
- package/models/operations/personresendinvitation.d.ts +0 -18
- package/models/operations/personresendinvitation.d.ts.map +0 -1
- package/models/operations/personresendinvitation.js +0 -57
- package/models/operations/personresendinvitation.js.map +0 -1
- package/models/operations/personupdate.d.ts +0 -18
- package/models/operations/personupdate.d.ts.map +0 -1
- package/models/operations/personupdate.js +0 -57
- package/models/operations/personupdate.js.map +0 -1
- package/sdk/people.d.ts +0 -48
- package/sdk/people.d.ts.map +0 -1
- package/sdk/people.js +0 -72
- package/sdk/people.js.map +0 -1
- package/src/funcs/peopleCreate.ts +0 -162
- package/src/funcs/peopleDelete.ts +0 -168
- package/src/funcs/peopleGet.ts +0 -168
- package/src/funcs/peopleList.ts +0 -170
- package/src/funcs/peopleResendInvitation.ts +0 -172
- package/src/funcs/peopleUpdate.ts +0 -171
- package/src/models/components/createpersonrequest.ts +0 -46
- package/src/models/components/createpersonresponse.ts +0 -35
- package/src/models/components/deletepersonresponse.ts +0 -27
- package/src/models/components/getpersonresponse.ts +0 -35
- package/src/models/components/listpeopleresponse.ts +0 -53
- package/src/models/components/person.ts +0 -95
- package/src/models/components/personstatus.ts +0 -17
- package/src/models/components/resendinvitationrequest.ts +0 -25
- package/src/models/components/resendinvitationresponse.ts +0 -35
- package/src/models/components/updatepersonrequest.ts +0 -58
- package/src/models/components/updatepersonresponse.ts +0 -35
- package/src/models/operations/persondelete.ts +0 -39
- package/src/models/operations/personget.ts +0 -39
- package/src/models/operations/personlist.ts +0 -58
- package/src/models/operations/personresendinvitation.ts +0 -46
- package/src/models/operations/personupdate.ts +0 -44
- package/src/sdk/people.ts +0 -118
|
@@ -1,57 +0,0 @@
|
|
|
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.PersonResendInvitationRequest$outboundSchema = void 0;
|
|
40
|
-
exports.personResendInvitationRequestToJSON = personResendInvitationRequestToJSON;
|
|
41
|
-
const z = __importStar(require("zod/v3"));
|
|
42
|
-
const primitives_js_1 = require("../../lib/primitives.js");
|
|
43
|
-
const components = __importStar(require("../components/index.js"));
|
|
44
|
-
/** @internal */
|
|
45
|
-
exports.PersonResendInvitationRequest$outboundSchema = z.object({
|
|
46
|
-
personId: z.string(),
|
|
47
|
-
resendInvitationRequest: components.ResendInvitationRequest$outboundSchema,
|
|
48
|
-
}).transform((v) => {
|
|
49
|
-
return (0, primitives_js_1.remap)(v, {
|
|
50
|
-
personId: "person_id",
|
|
51
|
-
resendInvitationRequest: "ResendInvitationRequest",
|
|
52
|
-
});
|
|
53
|
-
});
|
|
54
|
-
function personResendInvitationRequestToJSON(personResendInvitationRequest) {
|
|
55
|
-
return JSON.stringify(exports.PersonResendInvitationRequest$outboundSchema.parse(personResendInvitationRequest));
|
|
56
|
-
}
|
|
57
|
-
//# sourceMappingURL=personresendinvitation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"personresendinvitation.js","sourceRoot":"","sources":["../../src/models/operations/personresendinvitation.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCH,kFAQC;AAzCD,0CAA4B;AAC5B,2DAA0D;AAC1D,mEAAqD;AAgBrD,gBAAgB;AACH,QAAA,4CAA4C,GAIrD,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,uBAAuB,EAAE,UAAU,CAAC,sCAAsC;CAC3E,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,QAAQ,EAAE,WAAW;QACrB,uBAAuB,EAAE,yBAAyB;KACnD,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,mCAAmC,CACjD,6BAA4D;IAE5D,OAAO,IAAI,CAAC,SAAS,CACnB,oDAA4C,CAAC,KAAK,CAChD,6BAA6B,CAC9B,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import * as components from "../components/index.js";
|
|
3
|
-
export type PersonUpdateRequest = {
|
|
4
|
-
/**
|
|
5
|
-
* Person ID to update.
|
|
6
|
-
*/
|
|
7
|
-
personId: string;
|
|
8
|
-
updatePersonRequest: components.UpdatePersonRequest;
|
|
9
|
-
};
|
|
10
|
-
/** @internal */
|
|
11
|
-
export type PersonUpdateRequest$Outbound = {
|
|
12
|
-
person_id: string;
|
|
13
|
-
UpdatePersonRequest: components.UpdatePersonRequest$Outbound;
|
|
14
|
-
};
|
|
15
|
-
/** @internal */
|
|
16
|
-
export declare const PersonUpdateRequest$outboundSchema: z.ZodType<PersonUpdateRequest$Outbound, z.ZodTypeDef, PersonUpdateRequest>;
|
|
17
|
-
export declare function personUpdateRequestToJSON(personUpdateRequest: PersonUpdateRequest): string;
|
|
18
|
-
//# sourceMappingURL=personupdate.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"personupdate.d.ts","sourceRoot":"","sources":["../../src/models/operations/personupdate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAErD,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,mBAAmB,EAAE,UAAU,CAAC,mBAAmB,CAAC;CACrD,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,4BAA4B,GAAG;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,mBAAmB,EAAE,UAAU,CAAC,4BAA4B,CAAC;CAC9D,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,mBAAmB,CASnB,CAAC;AAEH,wBAAgB,yBAAyB,CACvC,mBAAmB,EAAE,mBAAmB,GACvC,MAAM,CAIR"}
|
|
@@ -1,57 +0,0 @@
|
|
|
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.PersonUpdateRequest$outboundSchema = void 0;
|
|
40
|
-
exports.personUpdateRequestToJSON = personUpdateRequestToJSON;
|
|
41
|
-
const z = __importStar(require("zod/v3"));
|
|
42
|
-
const primitives_js_1 = require("../../lib/primitives.js");
|
|
43
|
-
const components = __importStar(require("../components/index.js"));
|
|
44
|
-
/** @internal */
|
|
45
|
-
exports.PersonUpdateRequest$outboundSchema = z.object({
|
|
46
|
-
personId: z.string(),
|
|
47
|
-
updatePersonRequest: components.UpdatePersonRequest$outboundSchema,
|
|
48
|
-
}).transform((v) => {
|
|
49
|
-
return (0, primitives_js_1.remap)(v, {
|
|
50
|
-
personId: "person_id",
|
|
51
|
-
updatePersonRequest: "UpdatePersonRequest",
|
|
52
|
-
});
|
|
53
|
-
});
|
|
54
|
-
function personUpdateRequestToJSON(personUpdateRequest) {
|
|
55
|
-
return JSON.stringify(exports.PersonUpdateRequest$outboundSchema.parse(personUpdateRequest));
|
|
56
|
-
}
|
|
57
|
-
//# sourceMappingURL=personupdate.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"personupdate.js","sourceRoot":"","sources":["../../src/models/operations/personupdate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCH,8DAMC;AAvCD,0CAA4B;AAC5B,2DAA0D;AAC1D,mEAAqD;AAgBrD,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,mBAAmB,EAAE,UAAU,CAAC,kCAAkC;CACnE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,QAAQ,EAAE,WAAW;QACrB,mBAAmB,EAAE,qBAAqB;KAC3C,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,yBAAyB,CACvC,mBAAwC;IAExC,OAAO,IAAI,CAAC,SAAS,CACnB,0CAAkC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAC9D,CAAC;AACJ,CAAC"}
|
package/sdk/people.d.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
-
import * as components from "../models/components/index.js";
|
|
3
|
-
import * as operations from "../models/operations/index.js";
|
|
4
|
-
export declare class People extends ClientSDK {
|
|
5
|
-
/**
|
|
6
|
-
* List all people
|
|
7
|
-
*
|
|
8
|
-
* @remarks
|
|
9
|
-
* Returns a paginated list of people in the current workspace. Use `starting_after` or `ending_before` to page through large collections.
|
|
10
|
-
*/
|
|
11
|
-
list(request?: operations.PersonListRequest | undefined, options?: RequestOptions): Promise<components.ListPeopleResponse>;
|
|
12
|
-
/**
|
|
13
|
-
* Invite people to a workspace
|
|
14
|
-
*
|
|
15
|
-
* @remarks
|
|
16
|
-
* Invites one or more people to the current workspace. If an email is not already registered, a new account is created and an invitation email is sent. Existing accounts are linked directly to the workspace.
|
|
17
|
-
*/
|
|
18
|
-
create(request: components.CreatePersonRequest, options?: RequestOptions): Promise<components.CreatePersonResponse>;
|
|
19
|
-
/**
|
|
20
|
-
* Retrieve a person
|
|
21
|
-
*
|
|
22
|
-
* @remarks
|
|
23
|
-
* Retrieves the details of an existing workspace member or invited user by their person ID.
|
|
24
|
-
*/
|
|
25
|
-
get(request: operations.PersonGetRequest, options?: RequestOptions): Promise<components.GetPersonResponse>;
|
|
26
|
-
/**
|
|
27
|
-
* Delete a person
|
|
28
|
-
*
|
|
29
|
-
* @remarks
|
|
30
|
-
* Removes a member or invited user from the workspace. API keys owned by the removed user are cascade revoked. The response body is empty when the delete succeeds.
|
|
31
|
-
*/
|
|
32
|
-
delete(request: operations.PersonDeleteRequest, options?: RequestOptions): Promise<components.DeletePersonResponse>;
|
|
33
|
-
/**
|
|
34
|
-
* Update a person
|
|
35
|
-
*
|
|
36
|
-
* @remarks
|
|
37
|
-
* Updates the roles and group assignments of a workspace member. Omitted fields keep their current values.
|
|
38
|
-
*/
|
|
39
|
-
update(request: operations.PersonUpdateRequest, options?: RequestOptions): Promise<components.UpdatePersonResponse>;
|
|
40
|
-
/**
|
|
41
|
-
* Resend invitation
|
|
42
|
-
*
|
|
43
|
-
* @remarks
|
|
44
|
-
* Resends the invitation email to a pending workspace member. Has no effect if the person has already accepted.
|
|
45
|
-
*/
|
|
46
|
-
resendInvitation(request: operations.PersonResendInvitationRequest, options?: RequestOptions): Promise<components.ResendInvitationResponse>;
|
|
47
|
-
}
|
|
48
|
-
//# sourceMappingURL=people.d.ts.map
|
package/sdk/people.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"people.d.ts","sourceRoot":"","sources":["../src/sdk/people.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,MAAO,SAAQ,SAAS;IACnC;;;;;OAKG;IACG,IAAI,CACR,OAAO,CAAC,EAAE,UAAU,CAAC,iBAAiB,GAAG,SAAS,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC;IAQzC;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,oBAAoB,CAAC;IAQ3C;;;;;OAKG;IACG,GAAG,CACP,OAAO,EAAE,UAAU,CAAC,gBAAgB,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC;IAQxC;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,oBAAoB,CAAC;IAQ3C;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,oBAAoB,CAAC;IAQ3C;;;;;OAKG;IACG,gBAAgB,CACpB,OAAO,EAAE,UAAU,CAAC,6BAA6B,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,wBAAwB,CAAC;CAOhD"}
|
package/sdk/people.js
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.People = void 0;
|
|
7
|
-
const peopleCreate_js_1 = require("../funcs/peopleCreate.js");
|
|
8
|
-
const peopleDelete_js_1 = require("../funcs/peopleDelete.js");
|
|
9
|
-
const peopleGet_js_1 = require("../funcs/peopleGet.js");
|
|
10
|
-
const peopleList_js_1 = require("../funcs/peopleList.js");
|
|
11
|
-
const peopleResendInvitation_js_1 = require("../funcs/peopleResendInvitation.js");
|
|
12
|
-
const peopleUpdate_js_1 = require("../funcs/peopleUpdate.js");
|
|
13
|
-
const sdks_js_1 = require("../lib/sdks.js");
|
|
14
|
-
const fp_js_1 = require("../types/fp.js");
|
|
15
|
-
class People extends sdks_js_1.ClientSDK {
|
|
16
|
-
/**
|
|
17
|
-
* List all people
|
|
18
|
-
*
|
|
19
|
-
* @remarks
|
|
20
|
-
* Returns a paginated list of people in the current workspace. Use `starting_after` or `ending_before` to page through large collections.
|
|
21
|
-
*/
|
|
22
|
-
async list(request, options) {
|
|
23
|
-
return (0, fp_js_1.unwrapAsync)((0, peopleList_js_1.peopleList)(this, request, options));
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Invite people to a workspace
|
|
27
|
-
*
|
|
28
|
-
* @remarks
|
|
29
|
-
* Invites one or more people to the current workspace. If an email is not already registered, a new account is created and an invitation email is sent. Existing accounts are linked directly to the workspace.
|
|
30
|
-
*/
|
|
31
|
-
async create(request, options) {
|
|
32
|
-
return (0, fp_js_1.unwrapAsync)((0, peopleCreate_js_1.peopleCreate)(this, request, options));
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Retrieve a person
|
|
36
|
-
*
|
|
37
|
-
* @remarks
|
|
38
|
-
* Retrieves the details of an existing workspace member or invited user by their person ID.
|
|
39
|
-
*/
|
|
40
|
-
async get(request, options) {
|
|
41
|
-
return (0, fp_js_1.unwrapAsync)((0, peopleGet_js_1.peopleGet)(this, request, options));
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Delete a person
|
|
45
|
-
*
|
|
46
|
-
* @remarks
|
|
47
|
-
* Removes a member or invited user from the workspace. API keys owned by the removed user are cascade revoked. The response body is empty when the delete succeeds.
|
|
48
|
-
*/
|
|
49
|
-
async delete(request, options) {
|
|
50
|
-
return (0, fp_js_1.unwrapAsync)((0, peopleDelete_js_1.peopleDelete)(this, request, options));
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Update a person
|
|
54
|
-
*
|
|
55
|
-
* @remarks
|
|
56
|
-
* Updates the roles and group assignments of a workspace member. Omitted fields keep their current values.
|
|
57
|
-
*/
|
|
58
|
-
async update(request, options) {
|
|
59
|
-
return (0, fp_js_1.unwrapAsync)((0, peopleUpdate_js_1.peopleUpdate)(this, request, options));
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Resend invitation
|
|
63
|
-
*
|
|
64
|
-
* @remarks
|
|
65
|
-
* Resends the invitation email to a pending workspace member. Has no effect if the person has already accepted.
|
|
66
|
-
*/
|
|
67
|
-
async resendInvitation(request, options) {
|
|
68
|
-
return (0, fp_js_1.unwrapAsync)((0, peopleResendInvitation_js_1.peopleResendInvitation)(this, request, options));
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
exports.People = People;
|
|
72
|
-
//# sourceMappingURL=people.js.map
|
package/sdk/people.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"people.js","sourceRoot":"","sources":["../src/sdk/people.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,8DAAwD;AACxD,8DAAwD;AACxD,wDAAkD;AAClD,0DAAoD;AACpD,kFAA4E;AAC5E,8DAAwD;AACxD,4CAA2D;AAG3D,0CAA6C;AAE7C,MAAa,MAAO,SAAQ,mBAAS;IACnC;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CACR,OAAkD,EAClD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,0BAAU,EAC3B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAAuC,EACvC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8BAAY,EAC7B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,GAAG,CACP,OAAoC,EACpC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wBAAS,EAC1B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAAuC,EACvC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8BAAY,EAC7B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAAuC,EACvC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8BAAY,EAC7B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,gBAAgB,CACpB,OAAiD,EACjD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kDAAsB,EACvC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAtGD,wBAsGC"}
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { OrqCore } from "../core.js";
|
|
6
|
-
import { encodeJSON } from "../lib/encodings.js";
|
|
7
|
-
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
-
import * as M from "../lib/matchers.js";
|
|
9
|
-
import { compactMap } from "../lib/primitives.js";
|
|
10
|
-
import { safeParse } from "../lib/schemas.js";
|
|
11
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
-
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
-
import { pathToFunc } from "../lib/url.js";
|
|
14
|
-
import * as components from "../models/components/index.js";
|
|
15
|
-
import {
|
|
16
|
-
ConnectionError,
|
|
17
|
-
InvalidRequestError,
|
|
18
|
-
RequestAbortedError,
|
|
19
|
-
RequestTimeoutError,
|
|
20
|
-
UnexpectedClientError,
|
|
21
|
-
} from "../models/errors/httpclienterrors.js";
|
|
22
|
-
import { OrqError } from "../models/errors/orqerror.js";
|
|
23
|
-
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
24
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
25
|
-
import { APICall, APIPromise } from "../types/async.js";
|
|
26
|
-
import { Result } from "../types/fp.js";
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Invite people to a workspace
|
|
30
|
-
*
|
|
31
|
-
* @remarks
|
|
32
|
-
* Invites one or more people to the current workspace. If an email is not already registered, a new account is created and an invitation email is sent. Existing accounts are linked directly to the workspace.
|
|
33
|
-
*/
|
|
34
|
-
export function peopleCreate(
|
|
35
|
-
client: OrqCore,
|
|
36
|
-
request: components.CreatePersonRequest,
|
|
37
|
-
options?: RequestOptions,
|
|
38
|
-
): APIPromise<
|
|
39
|
-
Result<
|
|
40
|
-
components.CreatePersonResponse,
|
|
41
|
-
| OrqError
|
|
42
|
-
| ResponseValidationError
|
|
43
|
-
| ConnectionError
|
|
44
|
-
| RequestAbortedError
|
|
45
|
-
| RequestTimeoutError
|
|
46
|
-
| InvalidRequestError
|
|
47
|
-
| UnexpectedClientError
|
|
48
|
-
| SDKValidationError
|
|
49
|
-
>
|
|
50
|
-
> {
|
|
51
|
-
return new APIPromise($do(
|
|
52
|
-
client,
|
|
53
|
-
request,
|
|
54
|
-
options,
|
|
55
|
-
));
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
async function $do(
|
|
59
|
-
client: OrqCore,
|
|
60
|
-
request: components.CreatePersonRequest,
|
|
61
|
-
options?: RequestOptions,
|
|
62
|
-
): Promise<
|
|
63
|
-
[
|
|
64
|
-
Result<
|
|
65
|
-
components.CreatePersonResponse,
|
|
66
|
-
| OrqError
|
|
67
|
-
| ResponseValidationError
|
|
68
|
-
| ConnectionError
|
|
69
|
-
| RequestAbortedError
|
|
70
|
-
| RequestTimeoutError
|
|
71
|
-
| InvalidRequestError
|
|
72
|
-
| UnexpectedClientError
|
|
73
|
-
| SDKValidationError
|
|
74
|
-
>,
|
|
75
|
-
APICall,
|
|
76
|
-
]
|
|
77
|
-
> {
|
|
78
|
-
const parsed = safeParse(
|
|
79
|
-
request,
|
|
80
|
-
(value) => components.CreatePersonRequest$outboundSchema.parse(value),
|
|
81
|
-
"Input validation failed",
|
|
82
|
-
);
|
|
83
|
-
if (!parsed.ok) {
|
|
84
|
-
return [parsed, { status: "invalid" }];
|
|
85
|
-
}
|
|
86
|
-
const payload = parsed.value;
|
|
87
|
-
const body = encodeJSON("body", payload, { explode: true });
|
|
88
|
-
|
|
89
|
-
const path = pathToFunc("/v2/people")();
|
|
90
|
-
|
|
91
|
-
const headers = new Headers(compactMap({
|
|
92
|
-
"Content-Type": "application/json",
|
|
93
|
-
Accept: "application/json",
|
|
94
|
-
}));
|
|
95
|
-
|
|
96
|
-
const secConfig = await extractSecurity(client._options.apiKey);
|
|
97
|
-
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
98
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
99
|
-
|
|
100
|
-
const context = {
|
|
101
|
-
options: client._options,
|
|
102
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
103
|
-
operationID: "PersonCreate",
|
|
104
|
-
oAuth2Scopes: null,
|
|
105
|
-
|
|
106
|
-
resolvedSecurity: requestSecurity,
|
|
107
|
-
|
|
108
|
-
securitySource: client._options.apiKey,
|
|
109
|
-
retryConfig: options?.retries
|
|
110
|
-
|| client._options.retryConfig
|
|
111
|
-
|| { strategy: "none" },
|
|
112
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
const requestRes = client._createRequest(context, {
|
|
116
|
-
security: requestSecurity,
|
|
117
|
-
method: "POST",
|
|
118
|
-
baseURL: options?.serverURL,
|
|
119
|
-
path: path,
|
|
120
|
-
headers: headers,
|
|
121
|
-
body: body,
|
|
122
|
-
userAgent: client._options.userAgent,
|
|
123
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
|
|
124
|
-
}, options);
|
|
125
|
-
if (!requestRes.ok) {
|
|
126
|
-
return [requestRes, { status: "invalid" }];
|
|
127
|
-
}
|
|
128
|
-
const req = requestRes.value;
|
|
129
|
-
|
|
130
|
-
const doResult = await client._do(req, {
|
|
131
|
-
context,
|
|
132
|
-
isErrorStatusCode: (statusCode: number) =>
|
|
133
|
-
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
134
|
-
retryConfig: context.retryConfig,
|
|
135
|
-
retryCodes: context.retryCodes,
|
|
136
|
-
});
|
|
137
|
-
if (!doResult.ok) {
|
|
138
|
-
return [doResult, { status: "request-error", request: req }];
|
|
139
|
-
}
|
|
140
|
-
const response = doResult.value;
|
|
141
|
-
|
|
142
|
-
const [result] = await M.match<
|
|
143
|
-
components.CreatePersonResponse,
|
|
144
|
-
| OrqError
|
|
145
|
-
| ResponseValidationError
|
|
146
|
-
| ConnectionError
|
|
147
|
-
| RequestAbortedError
|
|
148
|
-
| RequestTimeoutError
|
|
149
|
-
| InvalidRequestError
|
|
150
|
-
| UnexpectedClientError
|
|
151
|
-
| SDKValidationError
|
|
152
|
-
>(
|
|
153
|
-
M.json(200, components.CreatePersonResponse$inboundSchema),
|
|
154
|
-
M.fail("4XX"),
|
|
155
|
-
M.fail("5XX"),
|
|
156
|
-
)(response, req);
|
|
157
|
-
if (!result.ok) {
|
|
158
|
-
return [result, { status: "complete", request: req, response }];
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
return [result, { status: "complete", request: req, response }];
|
|
162
|
-
}
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { OrqCore } from "../core.js";
|
|
6
|
-
import { encodeSimple } from "../lib/encodings.js";
|
|
7
|
-
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
-
import * as M from "../lib/matchers.js";
|
|
9
|
-
import { compactMap } from "../lib/primitives.js";
|
|
10
|
-
import { safeParse } from "../lib/schemas.js";
|
|
11
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
-
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
-
import { pathToFunc } from "../lib/url.js";
|
|
14
|
-
import * as components from "../models/components/index.js";
|
|
15
|
-
import {
|
|
16
|
-
ConnectionError,
|
|
17
|
-
InvalidRequestError,
|
|
18
|
-
RequestAbortedError,
|
|
19
|
-
RequestTimeoutError,
|
|
20
|
-
UnexpectedClientError,
|
|
21
|
-
} from "../models/errors/httpclienterrors.js";
|
|
22
|
-
import { OrqError } from "../models/errors/orqerror.js";
|
|
23
|
-
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
24
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
25
|
-
import * as operations from "../models/operations/index.js";
|
|
26
|
-
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
-
import { Result } from "../types/fp.js";
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Delete a person
|
|
31
|
-
*
|
|
32
|
-
* @remarks
|
|
33
|
-
* Removes a member or invited user from the workspace. API keys owned by the removed user are cascade revoked. The response body is empty when the delete succeeds.
|
|
34
|
-
*/
|
|
35
|
-
export function peopleDelete(
|
|
36
|
-
client: OrqCore,
|
|
37
|
-
request: operations.PersonDeleteRequest,
|
|
38
|
-
options?: RequestOptions,
|
|
39
|
-
): APIPromise<
|
|
40
|
-
Result<
|
|
41
|
-
components.DeletePersonResponse,
|
|
42
|
-
| OrqError
|
|
43
|
-
| ResponseValidationError
|
|
44
|
-
| ConnectionError
|
|
45
|
-
| RequestAbortedError
|
|
46
|
-
| RequestTimeoutError
|
|
47
|
-
| InvalidRequestError
|
|
48
|
-
| UnexpectedClientError
|
|
49
|
-
| SDKValidationError
|
|
50
|
-
>
|
|
51
|
-
> {
|
|
52
|
-
return new APIPromise($do(
|
|
53
|
-
client,
|
|
54
|
-
request,
|
|
55
|
-
options,
|
|
56
|
-
));
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
async function $do(
|
|
60
|
-
client: OrqCore,
|
|
61
|
-
request: operations.PersonDeleteRequest,
|
|
62
|
-
options?: RequestOptions,
|
|
63
|
-
): Promise<
|
|
64
|
-
[
|
|
65
|
-
Result<
|
|
66
|
-
components.DeletePersonResponse,
|
|
67
|
-
| OrqError
|
|
68
|
-
| ResponseValidationError
|
|
69
|
-
| ConnectionError
|
|
70
|
-
| RequestAbortedError
|
|
71
|
-
| RequestTimeoutError
|
|
72
|
-
| InvalidRequestError
|
|
73
|
-
| UnexpectedClientError
|
|
74
|
-
| SDKValidationError
|
|
75
|
-
>,
|
|
76
|
-
APICall,
|
|
77
|
-
]
|
|
78
|
-
> {
|
|
79
|
-
const parsed = safeParse(
|
|
80
|
-
request,
|
|
81
|
-
(value) => operations.PersonDeleteRequest$outboundSchema.parse(value),
|
|
82
|
-
"Input validation failed",
|
|
83
|
-
);
|
|
84
|
-
if (!parsed.ok) {
|
|
85
|
-
return [parsed, { status: "invalid" }];
|
|
86
|
-
}
|
|
87
|
-
const payload = parsed.value;
|
|
88
|
-
const body = null;
|
|
89
|
-
|
|
90
|
-
const pathParams = {
|
|
91
|
-
person_id: encodeSimple("person_id", payload.person_id, {
|
|
92
|
-
explode: false,
|
|
93
|
-
charEncoding: "percent",
|
|
94
|
-
}),
|
|
95
|
-
};
|
|
96
|
-
const path = pathToFunc("/v2/people/{person_id}")(pathParams);
|
|
97
|
-
|
|
98
|
-
const headers = new Headers(compactMap({
|
|
99
|
-
Accept: "application/json",
|
|
100
|
-
}));
|
|
101
|
-
|
|
102
|
-
const secConfig = await extractSecurity(client._options.apiKey);
|
|
103
|
-
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
104
|
-
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
105
|
-
|
|
106
|
-
const context = {
|
|
107
|
-
options: client._options,
|
|
108
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
109
|
-
operationID: "PersonDelete",
|
|
110
|
-
oAuth2Scopes: null,
|
|
111
|
-
|
|
112
|
-
resolvedSecurity: requestSecurity,
|
|
113
|
-
|
|
114
|
-
securitySource: client._options.apiKey,
|
|
115
|
-
retryConfig: options?.retries
|
|
116
|
-
|| client._options.retryConfig
|
|
117
|
-
|| { strategy: "none" },
|
|
118
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
119
|
-
};
|
|
120
|
-
|
|
121
|
-
const requestRes = client._createRequest(context, {
|
|
122
|
-
security: requestSecurity,
|
|
123
|
-
method: "DELETE",
|
|
124
|
-
baseURL: options?.serverURL,
|
|
125
|
-
path: path,
|
|
126
|
-
headers: headers,
|
|
127
|
-
body: body,
|
|
128
|
-
userAgent: client._options.userAgent,
|
|
129
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
|
|
130
|
-
}, options);
|
|
131
|
-
if (!requestRes.ok) {
|
|
132
|
-
return [requestRes, { status: "invalid" }];
|
|
133
|
-
}
|
|
134
|
-
const req = requestRes.value;
|
|
135
|
-
|
|
136
|
-
const doResult = await client._do(req, {
|
|
137
|
-
context,
|
|
138
|
-
isErrorStatusCode: (statusCode: number) =>
|
|
139
|
-
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
140
|
-
retryConfig: context.retryConfig,
|
|
141
|
-
retryCodes: context.retryCodes,
|
|
142
|
-
});
|
|
143
|
-
if (!doResult.ok) {
|
|
144
|
-
return [doResult, { status: "request-error", request: req }];
|
|
145
|
-
}
|
|
146
|
-
const response = doResult.value;
|
|
147
|
-
|
|
148
|
-
const [result] = await M.match<
|
|
149
|
-
components.DeletePersonResponse,
|
|
150
|
-
| OrqError
|
|
151
|
-
| ResponseValidationError
|
|
152
|
-
| ConnectionError
|
|
153
|
-
| RequestAbortedError
|
|
154
|
-
| RequestTimeoutError
|
|
155
|
-
| InvalidRequestError
|
|
156
|
-
| UnexpectedClientError
|
|
157
|
-
| SDKValidationError
|
|
158
|
-
>(
|
|
159
|
-
M.json(200, components.DeletePersonResponse$inboundSchema),
|
|
160
|
-
M.fail("4XX"),
|
|
161
|
-
M.fail("5XX"),
|
|
162
|
-
)(response, req);
|
|
163
|
-
if (!result.ok) {
|
|
164
|
-
return [result, { status: "complete", request: req, response }];
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
return [result, { status: "complete", request: req, response }];
|
|
168
|
-
}
|