UNPKG

corellium-typescript

Version:
1 lines 631 B
"use strict";exports.createProfileEndpoints=(r,e)=>({list:async()=>{const a=await r.GET("/v1/instances/{instanceId}/agent/v1/profile/profiles",{params:{path:{instanceId:e}}});if(a.error)throw new Error(a.error.error);return a.data},install:async a=>{const t=await r.POST("/v1/instances/{instanceId}/agent/v1/profile/install",{params:{path:{instanceId:e}},body:a});if(t.error)throw new Error(t.error.error);return t.data},delete:async a=>{const t=await r.DELETE("/v1/instances/{instanceId}/agent/v1/profile/profiles/{profileId}",{params:{path:{instanceId:e,profileId:a}}});if(t.error)throw new Error(t.error.error);return t.data}});