corellium-typescript
Version:
A beautiful TypeScript Corellium library.
1 lines • 631 B
JavaScript
const r=(r,a)=>({list:async()=>{const e=await r.GET("/v1/instances/{instanceId}/agent/v1/profile/profiles",{params:{path:{instanceId:a}}});if(e.error)throw new Error(e.error.error);return e.data},install:async e=>{const n=await r.POST("/v1/instances/{instanceId}/agent/v1/profile/install",{params:{path:{instanceId:a}},body:e});if(n.error)throw new Error(n.error.error);return n.data},delete:async e=>{const n=await r.DELETE("/v1/instances/{instanceId}/agent/v1/profile/profiles/{profileId}",{params:{path:{instanceId:a,profileId:e}}});if(n.error)throw new Error(n.error.error);return n.data}});export{r as createProfileEndpoints};